Icon LinkModule: @fuel-ts/utils

Icon LinkClasses

Icon LinkVariables

Icon LinkdefaultConsensusKey

Const defaultConsensusKey: "0xa449b1ffee0e2205fa924c6740cc48b3b473aa28587df6dab12abc245d1f5298"

Icon LinkDefined in

packages/utils/src/utils/defaultSnapshotConfigs.ts:11 Icon Link


Icon LinkdefaultSnapshotConfigs

Const defaultSnapshotConfigs: Object

Icon LinkType declaration

NameType
chainConfigJson{ chain_name: string = "local_testnet"; consensus: { PoA: { signing_key: string = "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d" } } ; consensus_parameters: { V1: { base_asset_id: string = "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"; block_gas_limit: number = 100000000; chain_id: number = 0; contract_params: { V1: { contract_max_size: number = 262144; max_storage_slots: number = 1760 } } ; fee_params: { V1: { gas_per_byte: number = 63; gas_price_factor: number = 92 } } ; gas_costs: { V1: { add: number = 2; addi: number = 2; aloc: number = 2; and: number = 2; andi: number = 2; bal: number = 86; bhei: number = 2; bhsh: number = 2; burn: number = 25770; call: { LightOperation: { base: number = 18190; units_per_gas: number = 5 } } ; cb: number = 2; ccp: { LightOperation: { base: number = 48; units_per_gas: number = 22 } } ; cfei: number = 2; cfsi: number = 2; contract_root: { LightOperation: { base: number = 42; units_per_gas: number = 2 } } ; croo: { LightOperation: { base: number = 131; units_per_gas: number = 2 } } ; csiz: { LightOperation: { base: number = 45; units_per_gas: number = 237 } } ; div: number = 2; divi: number = 2; eck1: number = 3114; ecr1: number = 42270; ed19: number = 2878; eq: number = 2; exp: number = 2; expi: number = 2; flag: number = 1; gm: number = 2; gt: number = 2; gtf: number = 12; ji: number = 2; jmp: number = 2; jmpb: number = 1; jmpf: number = 1; jne: number = 2; jneb: number = 1; jnef: number = 1; jnei: number = 2; jnzb: number = 1; jnzf: number = 1; jnzi: number = 2; k256: { LightOperation: { base: number = 37; units_per_gas: number = 3 } } ; lb: number = 2; ldc: { LightOperation: { base: number = 39; units_per_gas: number = 68 } } ; log: number = 165; logd: { LightOperation: { base: number = 565; units_per_gas: number = 2 } } ; lt: number = 2; lw: number = 2; mcl: { LightOperation: { base: number = 3; units_per_gas: number = 564 } } ; mcli: { LightOperation: { base: number = 3; units_per_gas: number = 560 } } ; mcp: { LightOperation: { base: number = 4; units_per_gas: number = 185 } } ; mcpi: { LightOperation: { base: number = 9; units_per_gas: number = 455 } } ; meq: { LightOperation: { base: number = 3; units_per_gas: number = 766 } } ; mint: number = 29024; mldv: number = 3; mlog: number = 2; mod_op: number = 2; modi: number = 2; move_op: number = 2; movi: number = 2; mroo: number = 4; mul: number = 2; muli: number = 2; new_storage_per_byte: number = 63; noop: number = 1; not: number = 2; or: number = 2; ori: number = 2; poph: number = 3; popl: number = 3; pshh: number = 4; pshl: number = 4; ret: number = 134; retd: { LightOperation: { base: number = 485; units_per_gas: number = 3 } } ; rvrt: number = 153; s256: { LightOperation: { base: number = 42; units_per_gas: number = 3 } } ; sb: number = 2; scwq: { HeavyOperation: { base: number = 21672; gas_per_unit: number = 22146 } } ; sll: number = 2; slli: number = 2; smo: { LightOperation: { base: number = 44437; units_per_gas: number = 1 } } ; srl: number = 2; srli: number = 2; srw: number = 209; srwq: { HeavyOperation: { base: number = 239; gas_per_unit: number = 234 } } ; state_root: { HeavyOperation: { base: number = 323; gas_per_unit: number = 169 } } ; sub: number = 2; subi: number = 2; sw: number = 2; sww: number = 22501; swwq: { HeavyOperation: { base: number = 22724; gas_per_unit: number = 21231 } } ; time: number = 50; tr: number = 33912; tro: number = 24294; vm_initialization: { HeavyOperation: { base: number = 5254820; gas_per_unit: number = 0 } } ; wdam: number = 9; wdcm: number = 2; wddv: number = 5; wdmd: number = 10; wdml: number = 3; wdmm: number = 10; wdop: number = 3; wqam: number = 11; wqcm: number = 3; wqdv: number = 6; wqmd: number = 17; wqml: number = 4; wqmm: number = 10; wqop: number = 3; xor: number = 2; xori: number = 2 } } ; predicate_params: { V1: { max_gas_per_predicate: number = 100000000; max_message_data_length: number = 102400; max_predicate_data_length: number = 102400; max_predicate_length: number = 102400 } } ; privileged_address: string = "0000000000000000000000000000000000000000000000000000000000000000"; script_params: { V1: { max_script_data_length: number = 102400; max_script_length: number = 102400 } } ; tx_params: { V1: { max_bytecode_subsections: number = 256; max_gas_per_tx: number = 100000000; max_inputs: number = 255; max_outputs: number = 255; max_size: number = 262144; max_witnesses: number = 255 } } } } }
chainConfigJson.chain_namestring
chainConfigJson.consensus{ PoA: { signing_key: string = "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d" } }
chainConfigJson.consensus.PoA{ signing_key: string = "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d" }
chainConfigJson.consensus.PoA.signing_keystring
chainConfigJson.consensus_parameters{ V1: { base_asset_id: string = "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"; block_gas_limit: number = 100000000; chain_id: number = 0; contract_params: { V1: { contract_max_size: number = 262144; max_storage_slots: number = 1760 } } ; fee_params: { V1: { gas_per_byte: number = 63; gas_price_factor: number = 92 } } ; gas_costs: { V1: { add: number = 2; addi: number = 2; aloc: number = 2; and: number = 2; andi: number = 2; bal: number = 86; bhei: number = 2; bhsh: number = 2; burn: number = 25770; call: { LightOperation: { base: number = 18190; units_per_gas: number = 5 } } ; cb: number = 2; ccp: { LightOperation: { base: number = 48; units_per_gas: number = 22 } } ; cfei: number = 2; cfsi: number = 2; contract_root: { LightOperation: { base: number = 42; units_per_gas: number = 2 } } ; croo: { LightOperation: { base: number = 131; units_per_gas: number = 2 } } ; csiz: { LightOperation: { base: number = 45; units_per_gas: number = 237 } } ; div: number = 2; divi: number = 2; eck1: number = 3114; ecr1: number = 42270; ed19: number = 2878; eq: number = 2; exp: number = 2; expi: number = 2; flag: number = 1; gm: number = 2; gt: number = 2; gtf: number = 12; ji: number = 2; jmp: number = 2; jmpb: number = 1; jmpf: number = 1; jne: number = 2; jneb: number = 1; jnef: number = 1; jnei: number = 2; jnzb: number = 1; jnzf: number = 1; jnzi: number = 2; k256: { LightOperation: { base: number = 37; units_per_gas: number = 3 } } ; lb: number = 2; ldc: { LightOperation: { base: number = 39; units_per_gas: number = 68 } } ; log: number = 165; logd: { LightOperation: { base: number = 565; units_per_gas: number = 2 } } ; lt: number = 2; lw: number = 2; mcl: { LightOperation: { base: number = 3; units_per_gas: number = 564 } } ; mcli: { LightOperation: { base: number = 3; units_per_gas: number = 560 } } ; mcp: { LightOperation: { base: number = 4; units_per_gas: number = 185 } } ; mcpi: { LightOperation: { base: number = 9; units_per_gas: number = 455 } } ; meq: { LightOperation: { base: number = 3; units_per_gas: number = 766 } } ; mint: number = 29024; mldv: number = 3; mlog: number = 2; mod_op: number = 2; modi: number = 2; move_op: number = 2; movi: number = 2; mroo: number = 4; mul: number = 2; muli: number = 2; new_storage_per_byte: number = 63; noop: number = 1; not: number = 2; or: number = 2; ori: number = 2; poph: number = 3; popl: number = 3; pshh: number = 4; pshl: number = 4; ret: number = 134; retd: { LightOperation: { base: number = 485; units_per_gas: number = 3 } } ; rvrt: number = 153; s256: { LightOperation: { base: number = 42; units_per_gas: number = 3 } } ; sb: number = 2; scwq: { HeavyOperation: { base: number = 21672; gas_per_unit: number = 22146 } } ; sll: number = 2; slli: number = 2; smo: { LightOperation: { base: number = 44437; units_per_gas: number = 1 } } ; srl: number = 2; srli: number = 2; srw: number = 209; srwq: { HeavyOperation: { base: number = 239; gas_per_unit: number = 234 } } ; state_root: { HeavyOperation: { base: number = 323; gas_per_unit: number = 169 } } ; sub: number = 2; subi: number = 2; sw: number = 2; sww: number = 22501; swwq: { HeavyOperation: { base: number = 22724; gas_per_unit: number = 21231 } } ; time: number = 50; tr: number = 33912; tro: number = 24294; vm_initialization: { HeavyOperation: { base: number = 5254820; gas_per_unit: number = 0 } } ; wdam: number = 9; wdcm: number = 2; wddv: number = 5; wdmd: number = 10; wdml: number = 3; wdmm: number = 10; wdop: number = 3; wqam: number = 11; wqcm: number = 3; wqdv: number = 6; wqmd: number = 17; wqml: number = 4; wqmm: number = 10; wqop: number = 3; xor: number = 2; xori: number = 2 } } ; predicate_params: { V1: { max_gas_per_predicate: number = 100000000; max_message_data_length: number = 102400; max_predicate_data_length: number = 102400; max_predicate_length: number = 102400 } } ; privileged_address: string = "0000000000000000000000000000000000000000000000000000000000000000"; script_params: { V1: { max_script_data_length: number = 102400; max_script_length: number = 102400 } } ; tx_params: { V1: { max_bytecode_subsections: number = 256; max_gas_per_tx: number = 100000000; max_inputs: number = 255; max_outputs: number = 255; max_size: number = 262144; max_witnesses: number = 255 } } } }
chainConfigJson.consensus_parameters.V1{ base_asset_id: string = "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"; block_gas_limit: number = 100000000; chain_id: number = 0; contract_params: { V1: { contract_max_size: number = 262144; max_storage_slots: number = 1760 } } ; fee_params: { V1: { gas_per_byte: number = 63; gas_price_factor: number = 92 } } ; gas_costs: { V1: { add: number = 2; addi: number = 2; aloc: number = 2; and: number = 2; andi: number = 2; bal: number = 86; bhei: number = 2; bhsh: number = 2; burn: number = 25770; call: { LightOperation: { base: number = 18190; units_per_gas: number = 5 } } ; cb: number = 2; ccp: { LightOperation: { base: number = 48; units_per_gas: number = 22 } } ; cfei: number = 2; cfsi: number = 2; contract_root: { LightOperation: { base: number = 42; units_per_gas: number = 2 } } ; croo: { LightOperation: { base: number = 131; units_per_gas: number = 2 } } ; csiz: { LightOperation: { base: number = 45; units_per_gas: number = 237 } } ; div: number = 2; divi: number = 2; eck1: number = 3114; ecr1: number = 42270; ed19: number = 2878; eq: number = 2; exp: number = 2; expi: number = 2; flag: number = 1; gm: number = 2; gt: number = 2; gtf: number = 12; ji: number = 2; jmp: number = 2; jmpb: number = 1; jmpf: number = 1; jne: number = 2; jneb: number = 1; jnef: number = 1; jnei: number = 2; jnzb: number = 1; jnzf: number = 1; jnzi: number = 2; k256: { LightOperation: { base: number = 37; units_per_gas: number = 3 } } ; lb: number = 2; ldc: { LightOperation: { base: number = 39; units_per_gas: number = 68 } } ; log: number = 165; logd: { LightOperation: { base: number = 565; units_per_gas: number = 2 } } ; lt: number = 2; lw: number = 2; mcl: { LightOperation: { base: number = 3; units_per_gas: number = 564 } } ; mcli: { LightOperation: { base: number = 3; units_per_gas: number = 560 } } ; mcp: { LightOperation: { base: number = 4; units_per_gas: number = 185 } } ; mcpi: { LightOperation: { base: number = 9; units_per_gas: number = 455 } } ; meq: { LightOperation: { base: number = 3; units_per_gas: number = 766 } } ; mint: number = 29024; mldv: number = 3; mlog: number = 2; mod_op: number = 2; modi: number = 2; move_op: number = 2; movi: number = 2; mroo: number = 4; mul: number = 2; muli: number = 2; new_storage_per_byte: number = 63; noop: number = 1; not: number = 2; or: number = 2; ori: number = 2; poph: number = 3; popl: number = 3; pshh: number = 4; pshl: number = 4; ret: number = 134; retd: { LightOperation: { base: number = 485; units_per_gas: number = 3 } } ; rvrt: number = 153; s256: { LightOperation: { base: number = 42; units_per_gas: number = 3 } } ; sb: number = 2; scwq: { HeavyOperation: { base: number = 21672; gas_per_unit: number = 22146 } } ; sll: number = 2; slli: number = 2; smo: { LightOperation: { base: number = 44437; units_per_gas: number = 1 } } ; srl: number = 2; srli: number = 2; srw: number = 209; srwq: { HeavyOperation: { base: number = 239; gas_per_unit: number = 234 } } ; state_root: { HeavyOperation: { base: number = 323; gas_per_unit: number = 169 } } ; sub: number = 2; subi: number = 2; sw: number = 2; sww: number = 22501; swwq: { HeavyOperation: { base: number = 22724; gas_per_unit: number = 21231 } } ; time: number = 50; tr: number = 33912; tro: number = 24294; vm_initialization: { HeavyOperation: { base: number = 5254820; gas_per_unit: number = 0 } } ; wdam: number = 9; wdcm: number = 2; wddv: number = 5; wdmd: number = 10; wdml: number = 3; wdmm: number = 10; wdop: number = 3; wqam: number = 11; wqcm: number = 3; wqdv: number = 6; wqmd: number = 17; wqml: number = 4; wqmm: number = 10; wqop: number = 3; xor: number = 2; xori: number = 2 } } ; predicate_params: { V1: { max_gas_per_predicate: number = 100000000; max_message_data_length: number = 102400; max_predicate_data_length: number = 102400; max_predicate_length: number = 102400 } } ; privileged_address: string = "0000000000000000000000000000000000000000000000000000000000000000"; script_params: { V1: { max_script_data_length: number = 102400; max_script_length: number = 102400 } } ; tx_params: { V1: { max_bytecode_subsections: number = 256; max_gas_per_tx: number = 100000000; max_inputs: number = 255; max_outputs: number = 255; max_size: number = 262144; max_witnesses: number = 255 } } }
chainConfigJson.consensus_parameters.V1.base_asset_idstring
chainConfigJson.consensus_parameters.V1.block_gas_limitnumber
chainConfigJson.consensus_parameters.V1.chain_idnumber
chainConfigJson.consensus_parameters.V1.contract_params{ V1: { contract_max_size: number = 262144; max_storage_slots: number = 1760 } }
chainConfigJson.consensus_parameters.V1.contract_params.V1{ contract_max_size: number = 262144; max_storage_slots: number = 1760 }
chainConfigJson.consensus_parameters.V1.contract_params.V1.contract_max_sizenumber
chainConfigJson.consensus_parameters.V1.contract_params.V1.max_storage_slotsnumber
chainConfigJson.consensus_parameters.V1.fee_params{ V1: { gas_per_byte: number = 63; gas_price_factor: number = 92 } }
chainConfigJson.consensus_parameters.V1.fee_params.V1{ gas_per_byte: number = 63; gas_price_factor: number = 92 }
chainConfigJson.consensus_parameters.V1.fee_params.V1.gas_per_bytenumber
chainConfigJson.consensus_parameters.V1.fee_params.V1.gas_price_factornumber
chainConfigJson.consensus_parameters.V1.gas_costs{ V1: { add: number = 2; addi: number = 2; aloc: number = 2; and: number = 2; andi: number = 2; bal: number = 86; bhei: number = 2; bhsh: number = 2; burn: number = 25770; call: { LightOperation: { base: number = 18190; units_per_gas: number = 5 } } ; cb: number = 2; ccp: { LightOperation: { base: number = 48; units_per_gas: number = 22 } } ; cfei: number = 2; cfsi: number = 2; contract_root: { LightOperation: { base: number = 42; units_per_gas: number = 2 } } ; croo: { LightOperation: { base: number = 131; units_per_gas: number = 2 } } ; csiz: { LightOperation: { base: number = 45; units_per_gas: number = 237 } } ; div: number = 2; divi: number = 2; eck1: number = 3114; ecr1: number = 42270; ed19: number = 2878; eq: number = 2; exp: number = 2; expi: number = 2; flag: number = 1; gm: number = 2; gt: number = 2; gtf: number = 12; ji: number = 2; jmp: number = 2; jmpb: number = 1; jmpf: number = 1; jne: number = 2; jneb: number = 1; jnef: number = 1; jnei: number = 2; jnzb: number = 1; jnzf: number = 1; jnzi: number = 2; k256: { LightOperation: { base: number = 37; units_per_gas: number = 3 } } ; lb: number = 2; ldc: { LightOperation: { base: number = 39; units_per_gas: number = 68 } } ; log: number = 165; logd: { LightOperation: { base: number = 565; units_per_gas: number = 2 } } ; lt: number = 2; lw: number = 2; mcl: { LightOperation: { base: number = 3; units_per_gas: number = 564 } } ; mcli: { LightOperation: { base: number = 3; units_per_gas: number = 560 } } ; mcp: { LightOperation: { base: number = 4; units_per_gas: number = 185 } } ; mcpi: { LightOperation: { base: number = 9; units_per_gas: number = 455 } } ; meq: { LightOperation: { base: number = 3; units_per_gas: number = 766 } } ; mint: number = 29024; mldv: number = 3; mlog: number = 2; mod_op: number = 2; modi: number = 2; move_op: number = 2; movi: number = 2; mroo: number = 4; mul: number = 2; muli: number = 2; new_storage_per_byte: number = 63; noop: number = 1; not: number = 2; or: number = 2; ori: number = 2; poph: number = 3; popl: number = 3; pshh: number = 4; pshl: number = 4; ret: number = 134; retd: { LightOperation: { base: number = 485; units_per_gas: number = 3 } } ; rvrt: number = 153; s256: { LightOperation: { base: number = 42; units_per_gas: number = 3 } } ; sb: number = 2; scwq: { HeavyOperation: { base: number = 21672; gas_per_unit: number = 22146 } } ; sll: number = 2; slli: number = 2; smo: { LightOperation: { base: number = 44437; units_per_gas: number = 1 } } ; srl: number = 2; srli: number = 2; srw: number = 209; srwq: { HeavyOperation: { base: number = 239; gas_per_unit: number = 234 } } ; state_root: { HeavyOperation: { base: number = 323; gas_per_unit: number = 169 } } ; sub: number = 2; subi: number = 2; sw: number = 2; sww: number = 22501; swwq: { HeavyOperation: { base: number = 22724; gas_per_unit: number = 21231 } } ; time: number = 50; tr: number = 33912; tro: number = 24294; vm_initialization: { HeavyOperation: { base: number = 5254820; gas_per_unit: number = 0 } } ; wdam: number = 9; wdcm: number = 2; wddv: number = 5; wdmd: number = 10; wdml: number = 3; wdmm: number = 10; wdop: number = 3; wqam: number = 11; wqcm: number = 3; wqdv: number = 6; wqmd: number = 17; wqml: number = 4; wqmm: number = 10; wqop: number = 3; xor: number = 2; xori: number = 2 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1{ add: number = 2; addi: number = 2; aloc: number = 2; and: number = 2; andi: number = 2; bal: number = 86; bhei: number = 2; bhsh: number = 2; burn: number = 25770; call: { LightOperation: { base: number = 18190; units_per_gas: number = 5 } } ; cb: number = 2; ccp: { LightOperation: { base: number = 48; units_per_gas: number = 22 } } ; cfei: number = 2; cfsi: number = 2; contract_root: { LightOperation: { base: number = 42; units_per_gas: number = 2 } } ; croo: { LightOperation: { base: number = 131; units_per_gas: number = 2 } } ; csiz: { LightOperation: { base: number = 45; units_per_gas: number = 237 } } ; div: number = 2; divi: number = 2; eck1: number = 3114; ecr1: number = 42270; ed19: number = 2878; eq: number = 2; exp: number = 2; expi: number = 2; flag: number = 1; gm: number = 2; gt: number = 2; gtf: number = 12; ji: number = 2; jmp: number = 2; jmpb: number = 1; jmpf: number = 1; jne: number = 2; jneb: number = 1; jnef: number = 1; jnei: number = 2; jnzb: number = 1; jnzf: number = 1; jnzi: number = 2; k256: { LightOperation: { base: number = 37; units_per_gas: number = 3 } } ; lb: number = 2; ldc: { LightOperation: { base: number = 39; units_per_gas: number = 68 } } ; log: number = 165; logd: { LightOperation: { base: number = 565; units_per_gas: number = 2 } } ; lt: number = 2; lw: number = 2; mcl: { LightOperation: { base: number = 3; units_per_gas: number = 564 } } ; mcli: { LightOperation: { base: number = 3; units_per_gas: number = 560 } } ; mcp: { LightOperation: { base: number = 4; units_per_gas: number = 185 } } ; mcpi: { LightOperation: { base: number = 9; units_per_gas: number = 455 } } ; meq: { LightOperation: { base: number = 3; units_per_gas: number = 766 } } ; mint: number = 29024; mldv: number = 3; mlog: number = 2; mod_op: number = 2; modi: number = 2; move_op: number = 2; movi: number = 2; mroo: number = 4; mul: number = 2; muli: number = 2; new_storage_per_byte: number = 63; noop: number = 1; not: number = 2; or: number = 2; ori: number = 2; poph: number = 3; popl: number = 3; pshh: number = 4; pshl: number = 4; ret: number = 134; retd: { LightOperation: { base: number = 485; units_per_gas: number = 3 } } ; rvrt: number = 153; s256: { LightOperation: { base: number = 42; units_per_gas: number = 3 } } ; sb: number = 2; scwq: { HeavyOperation: { base: number = 21672; gas_per_unit: number = 22146 } } ; sll: number = 2; slli: number = 2; smo: { LightOperation: { base: number = 44437; units_per_gas: number = 1 } } ; srl: number = 2; srli: number = 2; srw: number = 209; srwq: { HeavyOperation: { base: number = 239; gas_per_unit: number = 234 } } ; state_root: { HeavyOperation: { base: number = 323; gas_per_unit: number = 169 } } ; sub: number = 2; subi: number = 2; sw: number = 2; sww: number = 22501; swwq: { HeavyOperation: { base: number = 22724; gas_per_unit: number = 21231 } } ; time: number = 50; tr: number = 33912; tro: number = 24294; vm_initialization: { HeavyOperation: { base: number = 5254820; gas_per_unit: number = 0 } } ; wdam: number = 9; wdcm: number = 2; wddv: number = 5; wdmd: number = 10; wdml: number = 3; wdmm: number = 10; wdop: number = 3; wqam: number = 11; wqcm: number = 3; wqdv: number = 6; wqmd: number = 17; wqml: number = 4; wqmm: number = 10; wqop: number = 3; xor: number = 2; xori: number = 2 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.addnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.addinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.alocnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.andnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.andinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.balnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.bheinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.bhshnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.burnnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.call{ LightOperation: { base: number = 18190; units_per_gas: number = 5 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.call.LightOperation{ base: number = 18190; units_per_gas: number = 5 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.call.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.call.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.cbnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ccp{ LightOperation: { base: number = 48; units_per_gas: number = 22 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ccp.LightOperation{ base: number = 48; units_per_gas: number = 22 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ccp.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ccp.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.cfeinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.cfsinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.contract_root{ LightOperation: { base: number = 42; units_per_gas: number = 2 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.contract_root.LightOperation{ base: number = 42; units_per_gas: number = 2 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.contract_root.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.contract_root.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.croo{ LightOperation: { base: number = 131; units_per_gas: number = 2 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.croo.LightOperation{ base: number = 131; units_per_gas: number = 2 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.croo.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.croo.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.csiz{ LightOperation: { base: number = 45; units_per_gas: number = 237 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.csiz.LightOperation{ base: number = 45; units_per_gas: number = 237 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.csiz.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.csiz.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.divnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.divinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.eck1number
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ecr1number
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ed19number
chainConfigJson.consensus_parameters.V1.gas_costs.V1.eqnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.expnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.expinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.flagnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.gmnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.gtnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.gtfnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jmpnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jmpbnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jmpfnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jnenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jnebnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jnefnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jneinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jnzbnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jnzfnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.jnzinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.k256{ LightOperation: { base: number = 37; units_per_gas: number = 3 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.k256.LightOperation{ base: number = 37; units_per_gas: number = 3 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.k256.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.k256.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.lbnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ldc{ LightOperation: { base: number = 39; units_per_gas: number = 68 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ldc.LightOperation{ base: number = 39; units_per_gas: number = 68 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ldc.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ldc.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.lognumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.logd{ LightOperation: { base: number = 565; units_per_gas: number = 2 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.logd.LightOperation{ base: number = 565; units_per_gas: number = 2 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.logd.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.logd.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ltnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.lwnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcl{ LightOperation: { base: number = 3; units_per_gas: number = 564 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcl.LightOperation{ base: number = 3; units_per_gas: number = 564 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcl.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcl.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcli{ LightOperation: { base: number = 3; units_per_gas: number = 560 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcli.LightOperation{ base: number = 3; units_per_gas: number = 560 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcli.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcli.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcp{ LightOperation: { base: number = 4; units_per_gas: number = 185 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcp.LightOperation{ base: number = 4; units_per_gas: number = 185 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcp.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcp.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcpi{ LightOperation: { base: number = 9; units_per_gas: number = 455 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcpi.LightOperation{ base: number = 9; units_per_gas: number = 455 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcpi.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mcpi.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.meq{ LightOperation: { base: number = 3; units_per_gas: number = 766 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.meq.LightOperation{ base: number = 3; units_per_gas: number = 766 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.meq.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.meq.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mintnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mldvnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mlognumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mod_opnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.modinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.move_opnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.movinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mroonumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mulnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.mulinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.new_storage_per_bytenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.noopnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.notnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.ornumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.orinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.pophnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.poplnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.pshhnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.pshlnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.retnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.retd{ LightOperation: { base: number = 485; units_per_gas: number = 3 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.retd.LightOperation{ base: number = 485; units_per_gas: number = 3 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.retd.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.retd.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.rvrtnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.s256{ LightOperation: { base: number = 42; units_per_gas: number = 3 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.s256.LightOperation{ base: number = 42; units_per_gas: number = 3 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.s256.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.s256.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.sbnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.scwq{ HeavyOperation: { base: number = 21672; gas_per_unit: number = 22146 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.scwq.HeavyOperation{ base: number = 21672; gas_per_unit: number = 22146 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.scwq.HeavyOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.scwq.HeavyOperation.gas_per_unitnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.sllnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.sllinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.smo{ LightOperation: { base: number = 44437; units_per_gas: number = 1 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.smo.LightOperation{ base: number = 44437; units_per_gas: number = 1 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.smo.LightOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.smo.LightOperation.units_per_gasnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.srlnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.srlinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.srwnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.srwq{ HeavyOperation: { base: number = 239; gas_per_unit: number = 234 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.srwq.HeavyOperation{ base: number = 239; gas_per_unit: number = 234 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.srwq.HeavyOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.srwq.HeavyOperation.gas_per_unitnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.state_root{ HeavyOperation: { base: number = 323; gas_per_unit: number = 169 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.state_root.HeavyOperation{ base: number = 323; gas_per_unit: number = 169 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.state_root.HeavyOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.state_root.HeavyOperation.gas_per_unitnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.subnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.subinumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.swnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.swwnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.swwq{ HeavyOperation: { base: number = 22724; gas_per_unit: number = 21231 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.swwq.HeavyOperation{ base: number = 22724; gas_per_unit: number = 21231 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.swwq.HeavyOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.swwq.HeavyOperation.gas_per_unitnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.timenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.trnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.tronumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.vm_initialization{ HeavyOperation: { base: number = 5254820; gas_per_unit: number = 0 } }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.vm_initialization.HeavyOperation{ base: number = 5254820; gas_per_unit: number = 0 }
chainConfigJson.consensus_parameters.V1.gas_costs.V1.vm_initialization.HeavyOperation.basenumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.vm_initialization.HeavyOperation.gas_per_unitnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wdamnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wdcmnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wddvnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wdmdnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wdmlnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wdmmnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wdopnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wqamnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wqcmnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wqdvnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wqmdnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wqmlnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wqmmnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.wqopnumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.xornumber
chainConfigJson.consensus_parameters.V1.gas_costs.V1.xorinumber
chainConfigJson.consensus_parameters.V1.predicate_params{ V1: { max_gas_per_predicate: number = 100000000; max_message_data_length: number = 102400; max_predicate_data_length: number = 102400; max_predicate_length: number = 102400 } }
chainConfigJson.consensus_parameters.V1.predicate_params.V1{ max_gas_per_predicate: number = 100000000; max_message_data_length: number = 102400; max_predicate_data_length: number = 102400; max_predicate_length: number = 102400 }
chainConfigJson.consensus_parameters.V1.predicate_params.V1.max_gas_per_predicatenumber
chainConfigJson.consensus_parameters.V1.predicate_params.V1.max_message_data_lengthnumber
chainConfigJson.consensus_parameters.V1.predicate_params.V1.max_predicate_data_lengthnumber
chainConfigJson.consensus_parameters.V1.predicate_params.V1.max_predicate_lengthnumber
chainConfigJson.consensus_parameters.V1.privileged_addressstring
chainConfigJson.consensus_parameters.V1.script_params{ V1: { max_script_data_length: number = 102400; max_script_length: number = 102400 } }
chainConfigJson.consensus_parameters.V1.script_params.V1{ max_script_data_length: number = 102400; max_script_length: number = 102400 }
chainConfigJson.consensus_parameters.V1.script_params.V1.max_script_data_lengthnumber
chainConfigJson.consensus_parameters.V1.script_params.V1.max_script_lengthnumber
chainConfigJson.consensus_parameters.V1.tx_params{ V1: { max_bytecode_subsections: number = 256; max_gas_per_tx: number = 100000000; max_inputs: number = 255; max_outputs: number = 255; max_size: number = 262144; max_witnesses: number = 255 } }
chainConfigJson.consensus_parameters.V1.tx_params.V1{ max_bytecode_subsections: number = 256; max_gas_per_tx: number = 100000000; max_inputs: number = 255; max_outputs: number = 255; max_size: number = 262144; max_witnesses: number = 255 }
chainConfigJson.consensus_parameters.V1.tx_params.V1.max_bytecode_subsectionsnumber
chainConfigJson.consensus_parameters.V1.tx_params.V1.max_gas_per_txnumber
chainConfigJson.consensus_parameters.V1.tx_params.V1.max_inputsnumber
chainConfigJson.consensus_parameters.V1.tx_params.V1.max_outputsnumber
chainConfigJson.consensus_parameters.V1.tx_params.V1.max_sizenumber
chainConfigJson.consensus_parameters.V1.tx_params.V1.max_witnessesnumber
metadataJson{ chain_config: string = "chainConfig.json"; table_encoding: { Json: { filepath: string = "stateConfig.json" } } }
metadataJson.chain_configstring
metadataJson.table_encoding{ Json: { filepath: string = "stateConfig.json" } }
metadataJson.table_encoding.Json{ filepath: string = "stateConfig.json" }
metadataJson.table_encoding.Json.filepathstring
stateConfigJson{ block_height: number = 0; coins: { amount: number = 18446744073709551615; asset_id: string = "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"; output_index: number = 0; owner: string = "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d"; tx_id: string = "0x0000000000000000000000000000000000000000000000000000000000000001"; tx_pointer_block_height: number = 0; tx_pointer_tx_idx: number = 0 }[] ; contracts: never[] = []; da_block_height: number = 0; messages: { amount: number = 18446744073709551615; da_height: number = 0; data: string = ""; nonce: string = "0101010101010101010101010101010101010101010101010101010101010101"; recipient: string = "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba"; sender: string = "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f" }[] }
stateConfigJson.block_heightnumber
stateConfigJson.coins{ amount: number = 18446744073709551615; asset_id: string = "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07"; output_index: number = 0; owner: string = "0x94ffcc53b892684acefaebc8a3d4a595e528a8cf664eeb3ef36f1020b0809d0d"; tx_id: string = "0x0000000000000000000000000000000000000000000000000000000000000001"; tx_pointer_block_height: number = 0; tx_pointer_tx_idx: number = 0 }[]
stateConfigJson.contractsnever[]
stateConfigJson.da_block_heightnumber
stateConfigJson.messages{ amount: number = 18446744073709551615; da_height: number = 0; data: string = ""; nonce: string = "0101010101010101010101010101010101010101010101010101010101010101"; recipient: string = "0x69a2b736b60159b43bb8a4f98c0589f6da5fa3a3d101e8e269c499eb942753ba"; sender: string = "0xc43454aa38dd91f88109a4b7aef5efb96ce34e3f24992fe0f81d233ca686f80f" }[]

Icon LinkDefined in

packages/utils/src/utils/defaultSnapshotConfigs.ts:5 Icon Link

Icon LinkFunctions

Icon Linkarrayify

arrayify(value, name?, copy?): Uint8Array

Get a typed Uint8Array from a BytesLike object.

Icon LinkParameters

NameTypeDefault valueDescription
valueBytesLike undefinedthe BytesLike data.
name?stringundefineda display name for the error result.
copybooleantruecreate a copy of the original data (if applicable).

Icon LinkReturns

Uint8Array

  • a typed Uint8Array.

Icon LinkDefined in

packages/utils/src/utils/arrayify.ts:12 Icon Link


Icon LinkcapitalizeString

capitalizeString(str): string

Icon LinkParameters

NameType
strstring

Icon LinkReturns

string

Icon LinkDefined in

packages/utils/src/utils/capitalizeString.ts:1 Icon Link


Icon LinkchunkAndPadBytes

chunkAndPadBytes(bytes, chunkSize): Uint8Array[]

Function to take a byte array and split into chunks of a given size

Icon LinkParameters

NameTypeDescription
bytesUint8ArrayThe byte array to chunk
chunkSizenumberThe size of each chunk

Icon LinkReturns

Uint8Array[]

An array of byte arrays of a specified size

Icon LinkDefined in

packages/utils/src/utils/chunkAndPadBytes.ts:8 Icon Link


Icon Linkconcat

concat(arrays): Uint8Array

Concatenates multiple BytesLike into a single Uint8Array.

Icon LinkParameters

NameTypeDescription
arraysreadonly BytesLike []The arrays to concatenate.

Icon LinkReturns

Uint8Array

  • The concatenated array.

Icon LinkDefined in

packages/utils/src/utils/concat.ts:38 Icon Link


Icon LinkconcatBytes

concatBytes(arrays): Uint8Array

Concatenates multiple Uint8Arrays into a single Uint8Array.

Icon LinkParameters

NameTypeDescription
arraysreadonly Uint8Array[] | readonly number[][]The arrays to concatenate.

Icon LinkReturns

Uint8Array

  • The concatenated array.

Icon LinkDefined in

packages/utils/src/utils/concat.ts:11 Icon Link


Icon LinkdataSlice

dataSlice(data, start?, end?): string

Returns a hex string by slicing data from the start offset to the end offset.

Icon LinkParameters

NameTypeDescription
dataBytesLike the data to be sliced.
start?numberthe start offset (default: 0).
end?numberthe end offset (default: length of data).

Icon LinkReturns

string

  • a sliced hex string from start to end.

Icon LinkDefined in

packages/utils/src/utils/dataSlice.ts:15 Icon Link


Icon LinkdecodeBase58

decodeBase58(value): BN

Icon LinkParameters

NameType
valuestring

Icon LinkReturns

BN

Icon LinkDefined in

packages/utils/src/utils/base58.ts:51 Icon Link


Icon LinkencodeBase58

encodeBase58(_value): string

Encode value as a Base58-encoded string.

Icon LinkParameters

NameType
_valueBytesLike

Icon LinkReturns

string

Icon LinkDefined in

packages/utils/src/utils/base58.ts:30 Icon Link


Icon Linkhexlify

hexlify(data): string

Returns a hex representation of the inputted bytes.

Icon LinkParameters

NameType
dataBytesLike

Icon LinkReturns

string

Icon LinkDefined in

packages/utils/src/utils/hexlify.ts:10 Icon Link


Icon LinkisDefined

isDefined<T>(value): value is T

Icon LinkType parameters

Name
T

Icon LinkParameters

NameType
valueundefined | T

Icon LinkReturns

value is T

Icon LinkDefined in

packages/utils/src/utils/isDefined.ts:1 Icon Link


Icon LinknormalizeString

normalizeString(str): string

Converts some.string-value into SomeStringValue.

Examples: my-simple.test —— MySimpleTest myFile.ts —— MyFileTs my-abi.json —— MyAbiJson

Icon LinkParameters

NameType
strstring

Icon LinkReturns

string

Icon LinkDefined in

packages/utils/src/utils/normalizeString.ts:11 Icon Link


Icon LinktoUtf8Bytes

toUtf8Bytes(stri, form?): Uint8Array

Returns the UTF-8 byte representation of str.

If form is disabled, the string is not normalized.

Icon LinkParameters

NameTypeDefault valueDescription
stristringundefinedthe string to convert to UTF-8 bytes.
formbooleantruewhether to normalize the string.

Icon LinkReturns

Uint8Array

  • the UTF-8 byte representation of str.

Icon LinkDefined in

packages/utils/src/utils/toUtf8Bytes.ts:11 Icon Link


Icon LinktoUtf8String

toUtf8String(bytes): string

Returns the string represented by the UTF-8 data bytes.

Icon LinkParameters

NameTypeDescription
bytesBytesLike the UTF-8 data bytes

Icon LinkReturns

string

the string represented by the UTF-8 data bytes

Icon LinkDefined in

packages/utils/src/utils/toUtf8String.ts:179 Icon Link