From 460462dcc03014f8c68b668d1cc04223e10f896f Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Tue, 3 Dec 2024 20:01:06 +0800 Subject: [PATCH] fix starcoin-config unit test --- config/example/barnard/genesis_config.json | 2086 ++++++++++++--- config/example/main/genesis_config.json | 2094 ++++++++++++--- config/example/proxima/genesis_config.json | 2342 +++++++++++++---- config/example/vega/genesis_config.json | 2092 ++++++++++++--- config/src/account_vault_config.rs | 4 +- config/src/genesis_config.rs | 8 +- config/src/lib.rs | 4 +- config/src/tests.rs | 15 + scripts/nextest.sh | 1 + .../src/lib.rs | 2 +- vm/types/src/on_chain_config/gas_schedule.rs | 4 +- vm/vm-runtime/src/lib.rs | 2 +- vm/vm-runtime/src/starcoin_vm.rs | 2 +- 13 files changed, 7108 insertions(+), 1548 deletions(-) diff --git a/config/example/barnard/genesis_config.json b/config/example/barnard/genesis_config.json index c923ddffff..79e39e530a 100644 --- a/config/example/barnard/genesis_config.json +++ b/config/example/barnard/genesis_config.json @@ -15,355 +15,1741 @@ "time_mint_period": 94608000, "vm_config": { "gas_schedule": { - "instruction_table": [ - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 638, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1132, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 3, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 41, - "memory_gas": 1 - }, - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 23, - "memory_gas": 1 - }, - { - "instruction_gas": 459, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 582, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 34, - "memory_gas": 1 - }, - { - "instruction_gas": 15, - "memory_gas": 1 - }, - { - "instruction_gas": 14, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 27, - "memory_gas": 1 - } - ], - "native_table": [ - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - }, - { - "instruction_gas": 61, - "memory_gas": 1 - }, - { - "instruction_gas": 3351, - "memory_gas": 1 - }, - { - "instruction_gas": 181, - "memory_gas": 1 - }, - { - "instruction_gas": 98, - "memory_gas": 1 - }, - { - "instruction_gas": 84, - "memory_gas": 1 - }, - { - "instruction_gas": 1334, - "memory_gas": 1 - }, - { - "instruction_gas": 1902, - "memory_gas": 1 - }, - { - "instruction_gas": 53, - "memory_gas": 1 - }, - { - "instruction_gas": 227, - "memory_gas": 1 - }, - { - "instruction_gas": 572, - "memory_gas": 1 - }, - { - "instruction_gas": 1436, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 353, - "memory_gas": 1 - }, - { - "instruction_gas": 24, - "memory_gas": 1 - }, - { - "instruction_gas": 212, - "memory_gas": 1 - }, - { - "instruction_gas": 52, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 2002, - "memory_gas": 1 - } - ], - "gas_constants": { - "global_memory_per_byte_cost": 4, - "global_memory_per_byte_write_cost": 9, - "min_transaction_gas_units": 600, - "large_transaction_cutoff": 600, - "intrinsic_gas_per_byte": 8, - "maximum_number_of_gas_units": 40000000, - "min_price_per_gas_unit": 1, - "max_price_per_gas_unit": 10000, - "max_transaction_size_in_bytes": 40960, - "gas_unit_scaling_factor": 1, - "default_account_size": 800 - } + "feature_version": 13, + "entries": [ + [ + "instr.pop", + 2 + ], + [ + "instr.ret", + 639 + ], + [ + "instr.br_true", + 2 + ], + [ + "instr.br_false", + 2 + ], + [ + "instr.branch", + 2 + ], + [ + "instr.ld_u64", + 2 + ], + [ + "instr.ld_const.per_byte", + 2 + ], + [ + "instr.ld_true", + 2 + ], + [ + "instr.ld_false", + 2 + ], + [ + "instr.copy_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.move_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.st_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.mut_borrow_loc", + 3 + ], + [ + "instr.imm_borrow_loc", + 2 + ], + [ + "instr.mut_borrow_field", + 2 + ], + [ + "instr.imm_borrow_field", + 2 + ], + [ + "instr.call.per_arg", + 1133 + ], + [ + "instr.pack.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack.per_abs_mem_unit", + 3 + ], + [ + "instr.read_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.write_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.add", + 2 + ], + [ + "instr.sub", + 2 + ], + [ + "instr.mul", + 2 + ], + [ + "instr.mod", + 2 + ], + [ + "instr.div", + 4 + ], + [ + "instr.bit_or", + 3 + ], + [ + "instr.bit_and", + 3 + ], + [ + "instr.xor", + 2 + ], + [ + "instr.or", + 3 + ], + [ + "instr.and", + 2 + ], + [ + "instr.not", + 2 + ], + [ + "instr.eq.per_abs_mem_unit", + 2 + ], + [ + "instr.neq.per_abs_mem_unit", + 2 + ], + [ + "instr.lt", + 2 + ], + [ + "instr.gt", + 2 + ], + [ + "instr.le", + 3 + ], + [ + "instr.ge", + 2 + ], + [ + "instr.abort", + 2 + ], + [ + "instr.nop", + 2 + ], + [ + "instr.exists.per_abs_mem_unit", + 42 + ], + [ + "instr.mut_borrow_global.per_abs_mem_unit", + 22 + ], + [ + "instr.imm_borrow_global.per_abs_mem_unit", + 24 + ], + [ + "instr.move_from.per_abs_mem_unit", + 460 + ], + [ + "instr.move_to.per_abs_mem_unit", + 14 + ], + [ + "instr.freeze_ref", + 2 + ], + [ + "instr.shl", + 3 + ], + [ + "instr.shr", + 2 + ], + [ + "instr.ld_u8", + 2 + ], + [ + "instr.ld_u128", + 2 + ], + [ + "instr.cast_u8", + 3 + ], + [ + "instr.cast_u64", + 2 + ], + [ + "instr.cast_u128", + 2 + ], + [ + "instr.mut_borrow_field_generic.base", + 2 + ], + [ + "instr.imm_borrow_field_generic.base", + 2 + ], + [ + "instr.call_generic.per_arg", + 583 + ], + [ + "instr.pack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.exists_generic.per_abs_mem_unit", + 35 + ], + [ + "instr.mut_borrow_global_generic.per_abs_mem_unit", + 16 + ], + [ + "instr.imm_borrow_global_generic.per_abs_mem_unit", + 15 + ], + [ + "instr.move_from_generic.per_abs_mem_unit", + 14 + ], + [ + "instr.move_to_generic.per_abs_mem_unit", + 28 + ], + [ + "instr.ld_u16", + 3 + ], + [ + "instr.ld_u32", + 2 + ], + [ + "instr.ld_u256", + 3 + ], + [ + "instr.cast_u16", + 3 + ], + [ + "instr.cast_u32", + 2 + ], + [ + "instr.cast_u256", + 3 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 22 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 65 + ], + [ + "starcoin_natives.signature.ed25519_verify.per_byte", + 62 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 182 + ], + [ + "move_stdlib.vector.length.base", + 99 + ], + [ + "move_stdlib.vector.empty.base", + 85 + ], + [ + "move_stdlib.vector.borrow.base", + 1335 + ], + [ + "move_stdlib.vector.push_back.legacy_per_abstract_memory_unit", + 54 + ], + [ + "move_stdlib.vector.pop_back.base", + 228 + ], + [ + "move_stdlib.vector.destroy_empty.base", + 573 + ], + [ + "move_stdlib.vector.swap.base", + 1437 + ], + [ + "starcoin_natives.signature.ed25519_validate_key.per_byte", + 27 + ], + [ + "move_stdlib.signer.borrow_address.base", + 354 + ], + [ + "starcoin_natives.account.create_signer.base", + 25 + ], + [ + "starcoin_natives.account.destroy_signer.base", + 213 + ], + [ + "nursery.event.write_to_event_store.unit_cost", + 53 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 27 + ], + [ + "starcoin_natives.token.name_of.base", + 2003 + ], + [ + "nursery.debug.print.base_cost", + 1 + ], + [ + "nursery.debug.print_stack_trace.base_cost", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 182 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "txn.global_memory_per_byte_cost", + 4 + ], + [ + "txn.global_memory_per_byte_write_cost", + 9 + ], + [ + "txn.min_transaction_gas_units", + 600 + ], + [ + "txn.large_transaction_cutoff", + 600 + ], + [ + "txn.intrinsic_gas_per_byte", + 8 + ], + [ + "txn.maximum_number_of_gas_units", + 40000000 + ], + [ + "txn.min_price_per_gas_unit", + 1 + ], + [ + "txn.max_price_per_gas_unit", + 10000 + ], + [ + "txn.max_transaction_size_in_bytes", + 40960 + ], + [ + "txn.gas_unit_scaling_factor", + 1 + ], + [ + "txn.default_account_size", + 800 + ], + [ + "txn.max_execution_gas", + 920000000 + ], + [ + "misc.abs_val.u8", + 1 + ], + [ + "misc.abs_val.u16", + 1 + ], + [ + "misc.abs_val.u32", + 1 + ], + [ + "misc.abs_val.u64", + 1 + ], + [ + "misc.abs_val.u128", + 1 + ], + [ + "misc.abs_val.u256", + 1 + ], + [ + "misc.abs_val.bool", + 1 + ], + [ + "misc.abs_val.address", + 1 + ], + [ + "misc.abs_val.struct", + 1 + ], + [ + "misc.abs_val.vector", + 1 + ], + [ + "misc.abs_val.reference", + 1 + ], + [ + "misc.abs_val.per_u8_packed", + 1 + ], + [ + "misc.abs_val.per_u16_packed", + 1 + ], + [ + "misc.abs_val.per_u32_packed", + 1 + ], + [ + "misc.abs_val.per_u64_packed", + 1 + ], + [ + "misc.abs_val.per_u128_packed", + 1 + ], + [ + "misc.abs_val.per_u256_packed", + 1 + ], + [ + "misc.abs_val.per_bool_packed", + 1 + ], + [ + "misc.abs_val.per_address_packed", + 1 + ], + [ + "move_stdlib.hash.sha2_256.base", + 1 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.base", + 1 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "move_stdlib.signer.borrow_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 1 + ], + [ + "move_stdlib.string.check_utf8.base", + 1 + ], + [ + "move_stdlib.string.check_utf8.per_byte", + 1 + ], + [ + "move_stdlib.string.is_char_boundary.base", + 1 + ], + [ + "move_stdlib.string.sub_string.base", + 1 + ], + [ + "move_stdlib.string.sub_string.per_byte", + 1 + ], + [ + "move_stdlib.string.index_of.base", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_pattern", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_searched", + 1 + ], + [ + "move_stdlib.vector.spawn_from.base", + 1 + ], + [ + "table.new_table_handle.base", + 1 + ], + [ + "table.add_box.per_byte_serialized", + 1 + ], + [ + "table.borrow_box.per_byte_serialized", + 1 + ], + [ + "table.remove_box.per_byte_serialized", + 1 + ], + [ + "table.contains_box.per_byte_serialized", + 1 + ], + [ + "table.destroy_empty_box.base", + 1 + ], + [ + "table.drop_unchecked_box.base", + 1 + ], + [ + "table.common.load.base", + 1 + ], + [ + "table.common.load.base_new", + 1 + ], + [ + "table.common.load.per_byte", + 1 + ], + [ + "table.common.load.failure", + 1 + ], + [ + "table.add_box.base", + 1 + ], + [ + "table.borrow_box.base", + 1 + ], + [ + "table.contains_box.base", + 1 + ], + [ + "table.remove_box.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.account.destroy_signer.base", + 1 + ], + [ + "starcoin_framework.token.name_of.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.base", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.per_byte", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.base", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.u256.add.base", + 1 + ], + [ + "starcoin_framework.u256.sub.base", + 1 + ], + [ + "starcoin_framework.u256.mul.base", + 1 + ], + [ + "starcoin_framework.u256.div.base", + 1 + ], + [ + "starcoin_framework.u256.rem.base", + 1 + ], + [ + "starcoin_framework.u256.pow.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.per_byte", + 1 + ], + [ + "starcoin_framework.account.create_address.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.bls12381.base", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pop_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pairing", + 1 + ], + [ + "starcoin_framework.bls12381.per_msg_hashing", + 1 + ], + [ + "starcoin_framework.bls12381.per_byte_hashing", + 1 + ], + [ + "starcoin_framework.signature.base", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_small_order_check", + 1 + ], + [ + "starcoin_framework.signature.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_sig_strict_verify", + 1 + ], + [ + "starcoin_framework.signature.per_msg_hashing_base", + 1 + ], + [ + "starcoin_framework.signature.per_msg_byte_hashing", + 1 + ], + [ + "starcoin_framework.secp256k1.base", + 1 + ], + [ + "starcoin_framework.secp256k1.ecdsa_recover", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_add", + 1 + ], + [ + "starcoin_framework.ristretto255.point_clone", + 1 + ], + [ + "starcoin_framework.ristretto255.point_compress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_decompress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_equals", + 1 + ], + [ + "starcoin_framework.ristretto255.point_from_64_uniform_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.point_identity", + 1 + ], + [ + "starcoin_framework.ristretto255.point_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.point_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.point_parse_arg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_byte", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_hash", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_add", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_reduced_from_32_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_uniform_from_64_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u128", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u64", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_invert", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_is_canonical", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_parse_arg", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.base", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.per_byte", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.bulletproofs.base", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_bit_rangeproof_verify", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_byte_rangeproof_deserialize", + 1 + ], + [ + "starcoin_framework.type_info.type_of.base", + 1 + ], + [ + "starcoin_framework.type_info.type_of.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.type_name.base", + 1 + ], + [ + "starcoin_framework.type_info.type_name.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.chain_id.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.per_byte", + 1 + ], + [ + "starcoin_framework.function_info.check_dispatch_type_compatibility_impl.base", + 1 + ], + [ + "starcoin_framework.function_info.load_function.base", + 1 + ], + [ + "starcoin_framework.dispatchable_fungible_asset.dispatch.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.base", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.per_byte", + 1 + ], + [ + "starcoin_framework.util.from_bytes.base", + 1 + ], + [ + "starcoin_framework.util.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.transaction_context.get_txn_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.get_script_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.generate_unique_address.base", + 1 + ], + [ + "starcoin_framework.transaction_context.sender.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.per_signer", + 1 + ], + [ + "starcoin_framework.transaction_context.fee_payer.base", + 1 + ], + [ + "starcoin_framework.transaction_context.max_gas_amount.base", + 1 + ], + [ + "starcoin_framework.transaction_context.gas_unit_price.base", + 1 + ], + [ + "starcoin_framework.transaction_context.chain_id.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.code.request_publish.base", + 1 + ], + [ + "starcoin_framework.code.request_publish.per_byte", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.base", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.state_storage.get_usage.base", + 1 + ], + [ + "starcoin_framework.aggregator.add.base", + 1 + ], + [ + "starcoin_framework.aggregator.read.base", + 1 + ], + [ + "starcoin_framework.aggregator.sub.base", + 1 + ], + [ + "starcoin_framework.aggregator.destroy.base", + 1 + ], + [ + "starcoin_framework.aggregator_factory.new_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_add.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_sub.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.is_at_least.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.per_byte", + 1 + ], + [ + "starcoin_framework.aggregator_v2.copy_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.per_byte", + 1 + ], + [ + "starcoin_framework.object.exists_at.base", + 1 + ], + [ + "starcoin_framework.object.user_derived_address.base", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_byte_loaded", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_item_loaded", + 1 + ], + [ + "starcoin_framework.string_utils.format.base", + 1 + ], + [ + "starcoin_framework.string_utils.format.per_byte", + 1 + ] + ] } }, "publishing_option": { @@ -400,4 +1786,4 @@ "time_service_type": "RealTimeService", "transaction_timeout": 86400, "dag_effective_height": 18446744073709551615 -} +} \ No newline at end of file diff --git a/config/example/main/genesis_config.json b/config/example/main/genesis_config.json index ae7188f116..a0dd3291e6 100644 --- a/config/example/main/genesis_config.json +++ b/config/example/main/genesis_config.json @@ -15,359 +15,1745 @@ "time_mint_period": 94608000, "vm_config": { "gas_schedule": { - "instruction_table": [ - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 638, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1132, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 3, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 41, - "memory_gas": 1 - }, - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 23, - "memory_gas": 1 - }, - { - "instruction_gas": 459, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 582, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 34, - "memory_gas": 1 - }, - { - "instruction_gas": 15, - "memory_gas": 1 - }, - { - "instruction_gas": 14, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 27, - "memory_gas": 1 - } - ], - "native_table": [ - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - }, - { - "instruction_gas": 61, - "memory_gas": 1 - }, - { - "instruction_gas": 3351, - "memory_gas": 1 - }, - { - "instruction_gas": 181, - "memory_gas": 1 - }, - { - "instruction_gas": 98, - "memory_gas": 1 - }, - { - "instruction_gas": 84, - "memory_gas": 1 - }, - { - "instruction_gas": 1334, - "memory_gas": 1 - }, - { - "instruction_gas": 1902, - "memory_gas": 1 - }, - { - "instruction_gas": 53, - "memory_gas": 1 - }, - { - "instruction_gas": 227, - "memory_gas": 1 - }, - { - "instruction_gas": 572, - "memory_gas": 1 - }, - { - "instruction_gas": 1436, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 353, - "memory_gas": 1 - }, - { - "instruction_gas": 24, - "memory_gas": 1 - }, - { - "instruction_gas": 212, - "memory_gas": 1 - }, - { - "instruction_gas": 52, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 2002, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - } - ], - "gas_constants": { - "global_memory_per_byte_cost": 4, - "global_memory_per_byte_write_cost": 9, - "min_transaction_gas_units": 600, - "large_transaction_cutoff": 600, - "intrinsic_gas_per_byte": 8, - "maximum_number_of_gas_units": 40000000, - "min_price_per_gas_unit": 1, - "max_price_per_gas_unit": 10000, - "max_transaction_size_in_bytes": 60000, - "gas_unit_scaling_factor": 1, - "default_account_size": 800 - } + "feature_version": 13, + "entries": [ + [ + "instr.pop", + 2 + ], + [ + "instr.ret", + 639 + ], + [ + "instr.br_true", + 2 + ], + [ + "instr.br_false", + 2 + ], + [ + "instr.branch", + 2 + ], + [ + "instr.ld_u64", + 2 + ], + [ + "instr.ld_const.per_byte", + 2 + ], + [ + "instr.ld_true", + 2 + ], + [ + "instr.ld_false", + 2 + ], + [ + "instr.copy_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.move_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.st_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.mut_borrow_loc", + 3 + ], + [ + "instr.imm_borrow_loc", + 2 + ], + [ + "instr.mut_borrow_field", + 2 + ], + [ + "instr.imm_borrow_field", + 2 + ], + [ + "instr.call.per_arg", + 1133 + ], + [ + "instr.pack.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack.per_abs_mem_unit", + 3 + ], + [ + "instr.read_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.write_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.add", + 2 + ], + [ + "instr.sub", + 2 + ], + [ + "instr.mul", + 2 + ], + [ + "instr.mod", + 2 + ], + [ + "instr.div", + 4 + ], + [ + "instr.bit_or", + 3 + ], + [ + "instr.bit_and", + 3 + ], + [ + "instr.xor", + 2 + ], + [ + "instr.or", + 3 + ], + [ + "instr.and", + 2 + ], + [ + "instr.not", + 2 + ], + [ + "instr.eq.per_abs_mem_unit", + 2 + ], + [ + "instr.neq.per_abs_mem_unit", + 2 + ], + [ + "instr.lt", + 2 + ], + [ + "instr.gt", + 2 + ], + [ + "instr.le", + 3 + ], + [ + "instr.ge", + 2 + ], + [ + "instr.abort", + 2 + ], + [ + "instr.nop", + 2 + ], + [ + "instr.exists.per_abs_mem_unit", + 42 + ], + [ + "instr.mut_borrow_global.per_abs_mem_unit", + 22 + ], + [ + "instr.imm_borrow_global.per_abs_mem_unit", + 24 + ], + [ + "instr.move_from.per_abs_mem_unit", + 460 + ], + [ + "instr.move_to.per_abs_mem_unit", + 14 + ], + [ + "instr.freeze_ref", + 2 + ], + [ + "instr.shl", + 3 + ], + [ + "instr.shr", + 2 + ], + [ + "instr.ld_u8", + 2 + ], + [ + "instr.ld_u128", + 2 + ], + [ + "instr.cast_u8", + 3 + ], + [ + "instr.cast_u64", + 2 + ], + [ + "instr.cast_u128", + 2 + ], + [ + "instr.mut_borrow_field_generic.base", + 2 + ], + [ + "instr.imm_borrow_field_generic.base", + 2 + ], + [ + "instr.call_generic.per_arg", + 583 + ], + [ + "instr.pack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.exists_generic.per_abs_mem_unit", + 35 + ], + [ + "instr.mut_borrow_global_generic.per_abs_mem_unit", + 16 + ], + [ + "instr.imm_borrow_global_generic.per_abs_mem_unit", + 15 + ], + [ + "instr.move_from_generic.per_abs_mem_unit", + 14 + ], + [ + "instr.move_to_generic.per_abs_mem_unit", + 28 + ], + [ + "instr.ld_u16", + 3 + ], + [ + "instr.ld_u32", + 2 + ], + [ + "instr.ld_u256", + 3 + ], + [ + "instr.cast_u16", + 3 + ], + [ + "instr.cast_u32", + 2 + ], + [ + "instr.cast_u256", + 3 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 22 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 65 + ], + [ + "starcoin_natives.signature.ed25519_verify.per_byte", + 62 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 182 + ], + [ + "move_stdlib.vector.length.base", + 99 + ], + [ + "move_stdlib.vector.empty.base", + 85 + ], + [ + "move_stdlib.vector.borrow.base", + 1335 + ], + [ + "move_stdlib.vector.push_back.legacy_per_abstract_memory_unit", + 54 + ], + [ + "move_stdlib.vector.pop_back.base", + 228 + ], + [ + "move_stdlib.vector.destroy_empty.base", + 573 + ], + [ + "move_stdlib.vector.swap.base", + 1437 + ], + [ + "starcoin_natives.signature.ed25519_validate_key.per_byte", + 27 + ], + [ + "move_stdlib.signer.borrow_address.base", + 354 + ], + [ + "starcoin_natives.account.create_signer.base", + 25 + ], + [ + "starcoin_natives.account.destroy_signer.base", + 213 + ], + [ + "nursery.event.write_to_event_store.unit_cost", + 53 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 27 + ], + [ + "starcoin_natives.token.name_of.base", + 2003 + ], + [ + "starcoin_natives.hash.keccak256.per_byte", + 65 + ], + [ + "nursery.debug.print.base_cost", + 1 + ], + [ + "nursery.debug.print_stack_trace.base_cost", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 182 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "txn.global_memory_per_byte_cost", + 4 + ], + [ + "txn.global_memory_per_byte_write_cost", + 9 + ], + [ + "txn.min_transaction_gas_units", + 600 + ], + [ + "txn.large_transaction_cutoff", + 600 + ], + [ + "txn.intrinsic_gas_per_byte", + 8 + ], + [ + "txn.maximum_number_of_gas_units", + 40000000 + ], + [ + "txn.min_price_per_gas_unit", + 1 + ], + [ + "txn.max_price_per_gas_unit", + 10000 + ], + [ + "txn.max_transaction_size_in_bytes", + 60000 + ], + [ + "txn.gas_unit_scaling_factor", + 1 + ], + [ + "txn.default_account_size", + 800 + ], + [ + "txn.max_execution_gas", + 920000000 + ], + [ + "misc.abs_val.u8", + 1 + ], + [ + "misc.abs_val.u16", + 1 + ], + [ + "misc.abs_val.u32", + 1 + ], + [ + "misc.abs_val.u64", + 1 + ], + [ + "misc.abs_val.u128", + 1 + ], + [ + "misc.abs_val.u256", + 1 + ], + [ + "misc.abs_val.bool", + 1 + ], + [ + "misc.abs_val.address", + 1 + ], + [ + "misc.abs_val.struct", + 1 + ], + [ + "misc.abs_val.vector", + 1 + ], + [ + "misc.abs_val.reference", + 1 + ], + [ + "misc.abs_val.per_u8_packed", + 1 + ], + [ + "misc.abs_val.per_u16_packed", + 1 + ], + [ + "misc.abs_val.per_u32_packed", + 1 + ], + [ + "misc.abs_val.per_u64_packed", + 1 + ], + [ + "misc.abs_val.per_u128_packed", + 1 + ], + [ + "misc.abs_val.per_u256_packed", + 1 + ], + [ + "misc.abs_val.per_bool_packed", + 1 + ], + [ + "misc.abs_val.per_address_packed", + 1 + ], + [ + "move_stdlib.hash.sha2_256.base", + 1 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.base", + 1 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "move_stdlib.signer.borrow_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 1 + ], + [ + "move_stdlib.string.check_utf8.base", + 1 + ], + [ + "move_stdlib.string.check_utf8.per_byte", + 1 + ], + [ + "move_stdlib.string.is_char_boundary.base", + 1 + ], + [ + "move_stdlib.string.sub_string.base", + 1 + ], + [ + "move_stdlib.string.sub_string.per_byte", + 1 + ], + [ + "move_stdlib.string.index_of.base", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_pattern", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_searched", + 1 + ], + [ + "move_stdlib.vector.spawn_from.base", + 1 + ], + [ + "table.new_table_handle.base", + 1 + ], + [ + "table.add_box.per_byte_serialized", + 1 + ], + [ + "table.borrow_box.per_byte_serialized", + 1 + ], + [ + "table.remove_box.per_byte_serialized", + 1 + ], + [ + "table.contains_box.per_byte_serialized", + 1 + ], + [ + "table.destroy_empty_box.base", + 1 + ], + [ + "table.drop_unchecked_box.base", + 1 + ], + [ + "table.common.load.base", + 1 + ], + [ + "table.common.load.base_new", + 1 + ], + [ + "table.common.load.per_byte", + 1 + ], + [ + "table.common.load.failure", + 1 + ], + [ + "table.add_box.base", + 1 + ], + [ + "table.borrow_box.base", + 1 + ], + [ + "table.contains_box.base", + 1 + ], + [ + "table.remove_box.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.account.destroy_signer.base", + 1 + ], + [ + "starcoin_framework.token.name_of.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.base", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.per_byte", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.base", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.u256.add.base", + 1 + ], + [ + "starcoin_framework.u256.sub.base", + 1 + ], + [ + "starcoin_framework.u256.mul.base", + 1 + ], + [ + "starcoin_framework.u256.div.base", + 1 + ], + [ + "starcoin_framework.u256.rem.base", + 1 + ], + [ + "starcoin_framework.u256.pow.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.per_byte", + 1 + ], + [ + "starcoin_framework.account.create_address.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.bls12381.base", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pop_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pairing", + 1 + ], + [ + "starcoin_framework.bls12381.per_msg_hashing", + 1 + ], + [ + "starcoin_framework.bls12381.per_byte_hashing", + 1 + ], + [ + "starcoin_framework.signature.base", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_small_order_check", + 1 + ], + [ + "starcoin_framework.signature.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_sig_strict_verify", + 1 + ], + [ + "starcoin_framework.signature.per_msg_hashing_base", + 1 + ], + [ + "starcoin_framework.signature.per_msg_byte_hashing", + 1 + ], + [ + "starcoin_framework.secp256k1.base", + 1 + ], + [ + "starcoin_framework.secp256k1.ecdsa_recover", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_add", + 1 + ], + [ + "starcoin_framework.ristretto255.point_clone", + 1 + ], + [ + "starcoin_framework.ristretto255.point_compress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_decompress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_equals", + 1 + ], + [ + "starcoin_framework.ristretto255.point_from_64_uniform_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.point_identity", + 1 + ], + [ + "starcoin_framework.ristretto255.point_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.point_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.point_parse_arg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_byte", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_hash", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_add", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_reduced_from_32_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_uniform_from_64_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u128", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u64", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_invert", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_is_canonical", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_parse_arg", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.base", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.per_byte", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.bulletproofs.base", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_bit_rangeproof_verify", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_byte_rangeproof_deserialize", + 1 + ], + [ + "starcoin_framework.type_info.type_of.base", + 1 + ], + [ + "starcoin_framework.type_info.type_of.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.type_name.base", + 1 + ], + [ + "starcoin_framework.type_info.type_name.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.chain_id.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.per_byte", + 1 + ], + [ + "starcoin_framework.function_info.check_dispatch_type_compatibility_impl.base", + 1 + ], + [ + "starcoin_framework.function_info.load_function.base", + 1 + ], + [ + "starcoin_framework.dispatchable_fungible_asset.dispatch.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.base", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.per_byte", + 1 + ], + [ + "starcoin_framework.util.from_bytes.base", + 1 + ], + [ + "starcoin_framework.util.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.transaction_context.get_txn_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.get_script_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.generate_unique_address.base", + 1 + ], + [ + "starcoin_framework.transaction_context.sender.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.per_signer", + 1 + ], + [ + "starcoin_framework.transaction_context.fee_payer.base", + 1 + ], + [ + "starcoin_framework.transaction_context.max_gas_amount.base", + 1 + ], + [ + "starcoin_framework.transaction_context.gas_unit_price.base", + 1 + ], + [ + "starcoin_framework.transaction_context.chain_id.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.code.request_publish.base", + 1 + ], + [ + "starcoin_framework.code.request_publish.per_byte", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.base", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.state_storage.get_usage.base", + 1 + ], + [ + "starcoin_framework.aggregator.add.base", + 1 + ], + [ + "starcoin_framework.aggregator.read.base", + 1 + ], + [ + "starcoin_framework.aggregator.sub.base", + 1 + ], + [ + "starcoin_framework.aggregator.destroy.base", + 1 + ], + [ + "starcoin_framework.aggregator_factory.new_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_add.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_sub.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.is_at_least.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.per_byte", + 1 + ], + [ + "starcoin_framework.aggregator_v2.copy_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.per_byte", + 1 + ], + [ + "starcoin_framework.object.exists_at.base", + 1 + ], + [ + "starcoin_framework.object.user_derived_address.base", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_byte_loaded", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_item_loaded", + 1 + ], + [ + "starcoin_framework.string_utils.format.base", + 1 + ], + [ + "starcoin_framework.string_utils.format.per_byte", + 1 + ] + ] } }, "publishing_option": { @@ -404,4 +1790,4 @@ "time_service_type": "RealTimeService", "transaction_timeout": 86400, "dag_effective_height": 18446744073709551615 -} +} \ No newline at end of file diff --git a/config/example/proxima/genesis_config.json b/config/example/proxima/genesis_config.json index 9f03b96339..ef27475d47 100644 --- a/config/example/proxima/genesis_config.json +++ b/config/example/proxima/genesis_config.json @@ -15,483 +15,1869 @@ "time_mint_period": 7884000, "vm_config": { "gas_schedule": { - "instruction_table": [ - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 638, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1132, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 3, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 41, - "memory_gas": 1 - }, - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 23, - "memory_gas": 1 - }, - { - "instruction_gas": 459, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 582, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 34, - "memory_gas": 1 - }, - { - "instruction_gas": 15, - "memory_gas": 1 - }, - { - "instruction_gas": 14, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 27, - "memory_gas": 1 - }, - { - "instruction_gas": 84, - "memory_gas": 1 - }, - { - "instruction_gas": 98, - "memory_gas": 1 - }, - { - "instruction_gas": 1334, - "memory_gas": 1 - }, - { - "instruction_gas": 1902, - "memory_gas": 1 - }, - { - "instruction_gas": 53, - "memory_gas": 1 - }, - { - "instruction_gas": 227, - "memory_gas": 1 - }, - { - "instruction_gas": 572, - "memory_gas": 1 - }, - { - "instruction_gas": 1436, - "memory_gas": 1 - } - ], - "native_table": [ - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - }, - { - "instruction_gas": 61, - "memory_gas": 1 - }, - { - "instruction_gas": 3351, - "memory_gas": 1 - }, - { - "instruction_gas": 181, - "memory_gas": 1 - }, - { - "instruction_gas": 98, - "memory_gas": 1 - }, - { - "instruction_gas": 84, - "memory_gas": 1 - }, - { - "instruction_gas": 1334, - "memory_gas": 1 - }, - { - "instruction_gas": 1902, - "memory_gas": 1 - }, - { - "instruction_gas": 53, - "memory_gas": 1 - }, - { - "instruction_gas": 227, - "memory_gas": 1 - }, - { - "instruction_gas": 572, - "memory_gas": 1 - }, - { - "instruction_gas": 1436, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 353, - "memory_gas": 1 - }, - { - "instruction_gas": 24, - "memory_gas": 1 - }, - { - "instruction_gas": 212, - "memory_gas": 1 - }, - { - "instruction_gas": 52, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 2002, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - }, - { - "instruction_gas": 128, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 10, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 8, - "memory_gas": 1 - }, - { - "instruction_gas": 40, - "memory_gas": 1 - }, - { - "instruction_gas": 20, - "memory_gas": 1 - }, - { - "instruction_gas": 10, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 10, - "memory_gas": 1 - }, - { - "instruction_gas": 8, - "memory_gas": 1 - }, - { - "instruction_gas": 40, - "memory_gas": 1 - }, - { - "instruction_gas": 20, - "memory_gas": 1 - }, - { - "instruction_gas": 73, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - }, - { - "instruction_gas": 4, - "memory_gas": 1 - } - ], - "gas_constants": { - "global_memory_per_byte_cost": 4, - "global_memory_per_byte_write_cost": 9, - "min_transaction_gas_units": 600, - "large_transaction_cutoff": 600, - "intrinsic_gas_per_byte": 8, - "maximum_number_of_gas_units": 40000000, - "min_price_per_gas_unit": 1, - "max_price_per_gas_unit": 10000, - "max_transaction_size_in_bytes": 131072, - "gas_unit_scaling_factor": 1, - "default_account_size": 800 - } + "feature_version": 13, + "entries": [ + [ + "instr.pop", + 2 + ], + [ + "instr.ret", + 639 + ], + [ + "instr.br_true", + 2 + ], + [ + "instr.br_false", + 2 + ], + [ + "instr.branch", + 2 + ], + [ + "instr.ld_u64", + 2 + ], + [ + "instr.ld_const.per_byte", + 2 + ], + [ + "instr.ld_true", + 2 + ], + [ + "instr.ld_false", + 2 + ], + [ + "instr.copy_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.move_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.st_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.mut_borrow_loc", + 3 + ], + [ + "instr.imm_borrow_loc", + 2 + ], + [ + "instr.mut_borrow_field", + 2 + ], + [ + "instr.imm_borrow_field", + 2 + ], + [ + "instr.call.per_arg", + 1133 + ], + [ + "instr.pack.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack.per_abs_mem_unit", + 3 + ], + [ + "instr.read_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.write_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.add", + 2 + ], + [ + "instr.sub", + 2 + ], + [ + "instr.mul", + 2 + ], + [ + "instr.mod", + 2 + ], + [ + "instr.div", + 4 + ], + [ + "instr.bit_or", + 3 + ], + [ + "instr.bit_and", + 3 + ], + [ + "instr.xor", + 2 + ], + [ + "instr.or", + 3 + ], + [ + "instr.and", + 2 + ], + [ + "instr.not", + 2 + ], + [ + "instr.eq.per_abs_mem_unit", + 2 + ], + [ + "instr.neq.per_abs_mem_unit", + 2 + ], + [ + "instr.lt", + 2 + ], + [ + "instr.gt", + 2 + ], + [ + "instr.le", + 3 + ], + [ + "instr.ge", + 2 + ], + [ + "instr.abort", + 2 + ], + [ + "instr.nop", + 2 + ], + [ + "instr.exists.per_abs_mem_unit", + 42 + ], + [ + "instr.mut_borrow_global.per_abs_mem_unit", + 22 + ], + [ + "instr.imm_borrow_global.per_abs_mem_unit", + 24 + ], + [ + "instr.move_from.per_abs_mem_unit", + 460 + ], + [ + "instr.move_to.per_abs_mem_unit", + 14 + ], + [ + "instr.freeze_ref", + 2 + ], + [ + "instr.shl", + 3 + ], + [ + "instr.shr", + 2 + ], + [ + "instr.ld_u8", + 2 + ], + [ + "instr.ld_u128", + 2 + ], + [ + "instr.cast_u8", + 3 + ], + [ + "instr.cast_u64", + 2 + ], + [ + "instr.cast_u128", + 2 + ], + [ + "instr.mut_borrow_field_generic.base", + 2 + ], + [ + "instr.imm_borrow_field_generic.base", + 2 + ], + [ + "instr.call_generic.per_arg", + 583 + ], + [ + "instr.pack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.exists_generic.per_abs_mem_unit", + 35 + ], + [ + "instr.mut_borrow_global_generic.per_abs_mem_unit", + 16 + ], + [ + "instr.imm_borrow_global_generic.per_abs_mem_unit", + 15 + ], + [ + "instr.move_from_generic.per_abs_mem_unit", + 14 + ], + [ + "instr.move_to_generic.per_abs_mem_unit", + 28 + ], + [ + "instr.vec_pack.per_elem", + 85 + ], + [ + "instr.vec_len.base", + 99 + ], + [ + "instr.vec_imm_borrow.base", + 1335 + ], + [ + "instr.vec_mut_borrow.base", + 1903 + ], + [ + "instr.vec_push_back.per_abs_mem_unit", + 54 + ], + [ + "instr.vec_pop_back.base", + 228 + ], + [ + "instr.vec_unpack.per_expected_elem", + 573 + ], + [ + "instr.vec_swap.base", + 1437 + ], + [ + "instr.ld_u16", + 3 + ], + [ + "instr.ld_u32", + 2 + ], + [ + "instr.ld_u256", + 3 + ], + [ + "instr.cast_u16", + 3 + ], + [ + "instr.cast_u32", + 2 + ], + [ + "instr.cast_u256", + 3 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 22 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 65 + ], + [ + "starcoin_natives.signature.ed25519_verify.per_byte", + 62 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 182 + ], + [ + "move_stdlib.vector.length.base", + 99 + ], + [ + "move_stdlib.vector.empty.base", + 85 + ], + [ + "move_stdlib.vector.borrow.base", + 1335 + ], + [ + "move_stdlib.vector.push_back.legacy_per_abstract_memory_unit", + 54 + ], + [ + "move_stdlib.vector.pop_back.base", + 228 + ], + [ + "move_stdlib.vector.destroy_empty.base", + 573 + ], + [ + "move_stdlib.vector.swap.base", + 1437 + ], + [ + "starcoin_natives.signature.ed25519_validate_key.per_byte", + 27 + ], + [ + "move_stdlib.signer.borrow_address.base", + 354 + ], + [ + "starcoin_natives.account.create_signer.base", + 25 + ], + [ + "starcoin_natives.account.destroy_signer.base", + 213 + ], + [ + "nursery.event.write_to_event_store.unit_cost", + 53 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 27 + ], + [ + "starcoin_natives.token.name_of.base", + 2003 + ], + [ + "starcoin_natives.hash.keccak256.per_byte", + 65 + ], + [ + "starcoin_natives.hash.ripemd160.per_byte", + 65 + ], + [ + "starcoin_natives.signature.ec_recover.per_byte", + 129 + ], + [ + "starcoin_natives.u256.from_bytes.per_byte", + 3 + ], + [ + "starcoin_natives.u256.add.base", + 5 + ], + [ + "starcoin_natives.u256.sub.base", + 5 + ], + [ + "starcoin_natives.u256.mul.base", + 5 + ], + [ + "starcoin_natives.u256.div.base", + 11 + ], + [ + "starcoin_natives.u256.rem.base", + 5 + ], + [ + "starcoin_natives.u256.pow.base", + 9 + ], + [ + "move_stdlib.vector.append.legacy_per_abstract_memory_unit", + 41 + ], + [ + "move_stdlib.vector.remove.legacy_per_abstract_memory_unit", + 21 + ], + [ + "move_stdlib.vector.reverse.legacy_per_abstract_memory_unit", + 11 + ], + [ + "table.new_table_handle.base", + 5 + ], + [ + "table.add_box.per_byte_serialized", + 5 + ], + [ + "table.borrow_box.per_byte_serialized", + 11 + ], + [ + "table.remove_box.per_byte_serialized", + 9 + ], + [ + "table.contains_box.per_byte_serialized", + 41 + ], + [ + "table.destroy_empty_box.base", + 21 + ], + [ + "table.drop_unchecked_box.base", + 74 + ], + [ + "move_stdlib.string.check_utf8.per_byte", + 5 + ], + [ + "move_stdlib.string.sub_string.per_byte", + 5 + ], + [ + "move_stdlib.string.is_char_boundary.base", + 5 + ], + [ + "move_stdlib.string.index_of.per_byte_searched", + 5 + ], + [ + "nursery.debug.print.base_cost", + 1 + ], + [ + "nursery.debug.print_stack_trace.base_cost", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 182 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "txn.global_memory_per_byte_cost", + 4 + ], + [ + "txn.global_memory_per_byte_write_cost", + 9 + ], + [ + "txn.min_transaction_gas_units", + 600 + ], + [ + "txn.large_transaction_cutoff", + 600 + ], + [ + "txn.intrinsic_gas_per_byte", + 8 + ], + [ + "txn.maximum_number_of_gas_units", + 40000000 + ], + [ + "txn.min_price_per_gas_unit", + 1 + ], + [ + "txn.max_price_per_gas_unit", + 10000 + ], + [ + "txn.max_transaction_size_in_bytes", + 131072 + ], + [ + "txn.gas_unit_scaling_factor", + 1 + ], + [ + "txn.default_account_size", + 800 + ], + [ + "txn.max_execution_gas", + 920000000 + ], + [ + "misc.abs_val.u8", + 1 + ], + [ + "misc.abs_val.u16", + 1 + ], + [ + "misc.abs_val.u32", + 1 + ], + [ + "misc.abs_val.u64", + 1 + ], + [ + "misc.abs_val.u128", + 1 + ], + [ + "misc.abs_val.u256", + 1 + ], + [ + "misc.abs_val.bool", + 1 + ], + [ + "misc.abs_val.address", + 1 + ], + [ + "misc.abs_val.struct", + 1 + ], + [ + "misc.abs_val.vector", + 1 + ], + [ + "misc.abs_val.reference", + 1 + ], + [ + "misc.abs_val.per_u8_packed", + 1 + ], + [ + "misc.abs_val.per_u16_packed", + 1 + ], + [ + "misc.abs_val.per_u32_packed", + 1 + ], + [ + "misc.abs_val.per_u64_packed", + 1 + ], + [ + "misc.abs_val.per_u128_packed", + 1 + ], + [ + "misc.abs_val.per_u256_packed", + 1 + ], + [ + "misc.abs_val.per_bool_packed", + 1 + ], + [ + "misc.abs_val.per_address_packed", + 1 + ], + [ + "move_stdlib.hash.sha2_256.base", + 1 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.base", + 1 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "move_stdlib.signer.borrow_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 1 + ], + [ + "move_stdlib.string.check_utf8.base", + 1 + ], + [ + "move_stdlib.string.check_utf8.per_byte", + 1 + ], + [ + "move_stdlib.string.is_char_boundary.base", + 1 + ], + [ + "move_stdlib.string.sub_string.base", + 1 + ], + [ + "move_stdlib.string.sub_string.per_byte", + 1 + ], + [ + "move_stdlib.string.index_of.base", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_pattern", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_searched", + 1 + ], + [ + "move_stdlib.vector.spawn_from.base", + 1 + ], + [ + "table.new_table_handle.base", + 1 + ], + [ + "table.add_box.per_byte_serialized", + 1 + ], + [ + "table.borrow_box.per_byte_serialized", + 1 + ], + [ + "table.remove_box.per_byte_serialized", + 1 + ], + [ + "table.contains_box.per_byte_serialized", + 1 + ], + [ + "table.destroy_empty_box.base", + 1 + ], + [ + "table.drop_unchecked_box.base", + 1 + ], + [ + "table.common.load.base", + 1 + ], + [ + "table.common.load.base_new", + 1 + ], + [ + "table.common.load.per_byte", + 1 + ], + [ + "table.common.load.failure", + 1 + ], + [ + "table.add_box.base", + 1 + ], + [ + "table.borrow_box.base", + 1 + ], + [ + "table.contains_box.base", + 1 + ], + [ + "table.remove_box.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.account.destroy_signer.base", + 1 + ], + [ + "starcoin_framework.token.name_of.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.base", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.per_byte", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.base", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.u256.add.base", + 1 + ], + [ + "starcoin_framework.u256.sub.base", + 1 + ], + [ + "starcoin_framework.u256.mul.base", + 1 + ], + [ + "starcoin_framework.u256.div.base", + 1 + ], + [ + "starcoin_framework.u256.rem.base", + 1 + ], + [ + "starcoin_framework.u256.pow.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.per_byte", + 1 + ], + [ + "starcoin_framework.account.create_address.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.bls12381.base", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pop_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pairing", + 1 + ], + [ + "starcoin_framework.bls12381.per_msg_hashing", + 1 + ], + [ + "starcoin_framework.bls12381.per_byte_hashing", + 1 + ], + [ + "starcoin_framework.signature.base", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_small_order_check", + 1 + ], + [ + "starcoin_framework.signature.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_sig_strict_verify", + 1 + ], + [ + "starcoin_framework.signature.per_msg_hashing_base", + 1 + ], + [ + "starcoin_framework.signature.per_msg_byte_hashing", + 1 + ], + [ + "starcoin_framework.secp256k1.base", + 1 + ], + [ + "starcoin_framework.secp256k1.ecdsa_recover", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_add", + 1 + ], + [ + "starcoin_framework.ristretto255.point_clone", + 1 + ], + [ + "starcoin_framework.ristretto255.point_compress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_decompress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_equals", + 1 + ], + [ + "starcoin_framework.ristretto255.point_from_64_uniform_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.point_identity", + 1 + ], + [ + "starcoin_framework.ristretto255.point_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.point_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.point_parse_arg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_byte", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_hash", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_add", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_reduced_from_32_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_uniform_from_64_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u128", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u64", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_invert", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_is_canonical", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_parse_arg", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.base", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.per_byte", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.bulletproofs.base", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_bit_rangeproof_verify", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_byte_rangeproof_deserialize", + 1 + ], + [ + "starcoin_framework.type_info.type_of.base", + 1 + ], + [ + "starcoin_framework.type_info.type_of.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.type_name.base", + 1 + ], + [ + "starcoin_framework.type_info.type_name.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.chain_id.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.per_byte", + 1 + ], + [ + "starcoin_framework.function_info.check_dispatch_type_compatibility_impl.base", + 1 + ], + [ + "starcoin_framework.function_info.load_function.base", + 1 + ], + [ + "starcoin_framework.dispatchable_fungible_asset.dispatch.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.base", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.per_byte", + 1 + ], + [ + "starcoin_framework.util.from_bytes.base", + 1 + ], + [ + "starcoin_framework.util.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.transaction_context.get_txn_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.get_script_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.generate_unique_address.base", + 1 + ], + [ + "starcoin_framework.transaction_context.sender.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.per_signer", + 1 + ], + [ + "starcoin_framework.transaction_context.fee_payer.base", + 1 + ], + [ + "starcoin_framework.transaction_context.max_gas_amount.base", + 1 + ], + [ + "starcoin_framework.transaction_context.gas_unit_price.base", + 1 + ], + [ + "starcoin_framework.transaction_context.chain_id.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.code.request_publish.base", + 1 + ], + [ + "starcoin_framework.code.request_publish.per_byte", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.base", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.state_storage.get_usage.base", + 1 + ], + [ + "starcoin_framework.aggregator.add.base", + 1 + ], + [ + "starcoin_framework.aggregator.read.base", + 1 + ], + [ + "starcoin_framework.aggregator.sub.base", + 1 + ], + [ + "starcoin_framework.aggregator.destroy.base", + 1 + ], + [ + "starcoin_framework.aggregator_factory.new_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_add.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_sub.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.is_at_least.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.per_byte", + 1 + ], + [ + "starcoin_framework.aggregator_v2.copy_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.per_byte", + 1 + ], + [ + "starcoin_framework.object.exists_at.base", + 1 + ], + [ + "starcoin_framework.object.user_derived_address.base", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_byte_loaded", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_item_loaded", + 1 + ], + [ + "starcoin_framework.string_utils.format.base", + 1 + ], + [ + "starcoin_framework.string_utils.format.per_byte", + 1 + ] + ] } }, "publishing_option": { @@ -528,4 +1914,4 @@ "time_service_type": "RealTimeService", "transaction_timeout": 86400, "dag_effective_height": 0 -} +} \ No newline at end of file diff --git a/config/example/vega/genesis_config.json b/config/example/vega/genesis_config.json index 1ab9bee7cc..0d9827ad05 100644 --- a/config/example/vega/genesis_config.json +++ b/config/example/vega/genesis_config.json @@ -15,359 +15,1745 @@ "time_mint_period": 94608000, "vm_config": { "gas_schedule": { - "instruction_table": [ - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 638, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1132, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 3, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 41, - "memory_gas": 1 - }, - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 23, - "memory_gas": 1 - }, - { - "instruction_gas": 459, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 1, - "memory_gas": 1 - }, - { - "instruction_gas": 582, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 2, - "memory_gas": 1 - }, - { - "instruction_gas": 34, - "memory_gas": 1 - }, - { - "instruction_gas": 15, - "memory_gas": 1 - }, - { - "instruction_gas": 14, - "memory_gas": 1 - }, - { - "instruction_gas": 13, - "memory_gas": 1 - }, - { - "instruction_gas": 27, - "memory_gas": 1 - } - ], - "native_table": [ - { - "instruction_gas": 21, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - }, - { - "instruction_gas": 61, - "memory_gas": 1 - }, - { - "instruction_gas": 3351, - "memory_gas": 1 - }, - { - "instruction_gas": 181, - "memory_gas": 1 - }, - { - "instruction_gas": 98, - "memory_gas": 1 - }, - { - "instruction_gas": 84, - "memory_gas": 1 - }, - { - "instruction_gas": 1334, - "memory_gas": 1 - }, - { - "instruction_gas": 1902, - "memory_gas": 1 - }, - { - "instruction_gas": 53, - "memory_gas": 1 - }, - { - "instruction_gas": 227, - "memory_gas": 1 - }, - { - "instruction_gas": 572, - "memory_gas": 1 - }, - { - "instruction_gas": 1436, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 353, - "memory_gas": 1 - }, - { - "instruction_gas": 24, - "memory_gas": 1 - }, - { - "instruction_gas": 212, - "memory_gas": 1 - }, - { - "instruction_gas": 52, - "memory_gas": 1 - }, - { - "instruction_gas": 26, - "memory_gas": 1 - }, - { - "instruction_gas": 2002, - "memory_gas": 1 - }, - { - "instruction_gas": 64, - "memory_gas": 1 - } - ], - "gas_constants": { - "global_memory_per_byte_cost": 4, - "global_memory_per_byte_write_cost": 9, - "min_transaction_gas_units": 600, - "large_transaction_cutoff": 600, - "intrinsic_gas_per_byte": 8, - "maximum_number_of_gas_units": 40000000, - "min_price_per_gas_unit": 1, - "max_price_per_gas_unit": 10000, - "max_transaction_size_in_bytes": 60000, - "gas_unit_scaling_factor": 1, - "default_account_size": 800 - } + "feature_version": 13, + "entries": [ + [ + "instr.pop", + 2 + ], + [ + "instr.ret", + 639 + ], + [ + "instr.br_true", + 2 + ], + [ + "instr.br_false", + 2 + ], + [ + "instr.branch", + 2 + ], + [ + "instr.ld_u64", + 2 + ], + [ + "instr.ld_const.per_byte", + 2 + ], + [ + "instr.ld_true", + 2 + ], + [ + "instr.ld_false", + 2 + ], + [ + "instr.copy_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.move_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.st_loc.per_abs_mem_unit", + 2 + ], + [ + "instr.mut_borrow_loc", + 3 + ], + [ + "instr.imm_borrow_loc", + 2 + ], + [ + "instr.mut_borrow_field", + 2 + ], + [ + "instr.imm_borrow_field", + 2 + ], + [ + "instr.call.per_arg", + 1133 + ], + [ + "instr.pack.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack.per_abs_mem_unit", + 3 + ], + [ + "instr.read_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.write_ref.per_abs_mem_unit", + 2 + ], + [ + "instr.add", + 2 + ], + [ + "instr.sub", + 2 + ], + [ + "instr.mul", + 2 + ], + [ + "instr.mod", + 2 + ], + [ + "instr.div", + 4 + ], + [ + "instr.bit_or", + 3 + ], + [ + "instr.bit_and", + 3 + ], + [ + "instr.xor", + 2 + ], + [ + "instr.or", + 3 + ], + [ + "instr.and", + 2 + ], + [ + "instr.not", + 2 + ], + [ + "instr.eq.per_abs_mem_unit", + 2 + ], + [ + "instr.neq.per_abs_mem_unit", + 2 + ], + [ + "instr.lt", + 2 + ], + [ + "instr.gt", + 2 + ], + [ + "instr.le", + 3 + ], + [ + "instr.ge", + 2 + ], + [ + "instr.abort", + 2 + ], + [ + "instr.nop", + 2 + ], + [ + "instr.exists.per_abs_mem_unit", + 42 + ], + [ + "instr.mut_borrow_global.per_abs_mem_unit", + 22 + ], + [ + "instr.imm_borrow_global.per_abs_mem_unit", + 24 + ], + [ + "instr.move_from.per_abs_mem_unit", + 460 + ], + [ + "instr.move_to.per_abs_mem_unit", + 14 + ], + [ + "instr.freeze_ref", + 2 + ], + [ + "instr.shl", + 3 + ], + [ + "instr.shr", + 2 + ], + [ + "instr.ld_u8", + 2 + ], + [ + "instr.ld_u128", + 2 + ], + [ + "instr.cast_u8", + 3 + ], + [ + "instr.cast_u64", + 2 + ], + [ + "instr.cast_u128", + 2 + ], + [ + "instr.mut_borrow_field_generic.base", + 2 + ], + [ + "instr.imm_borrow_field_generic.base", + 2 + ], + [ + "instr.call_generic.per_arg", + 583 + ], + [ + "instr.pack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.unpack_generic.per_abs_mem_unit", + 3 + ], + [ + "instr.exists_generic.per_abs_mem_unit", + 35 + ], + [ + "instr.mut_borrow_global_generic.per_abs_mem_unit", + 16 + ], + [ + "instr.imm_borrow_global_generic.per_abs_mem_unit", + 15 + ], + [ + "instr.move_from_generic.per_abs_mem_unit", + 14 + ], + [ + "instr.move_to_generic.per_abs_mem_unit", + 28 + ], + [ + "instr.ld_u16", + 3 + ], + [ + "instr.ld_u32", + 2 + ], + [ + "instr.ld_u256", + 3 + ], + [ + "instr.cast_u16", + 3 + ], + [ + "instr.cast_u32", + 2 + ], + [ + "instr.cast_u256", + 3 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 22 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 65 + ], + [ + "starcoin_natives.signature.ed25519_verify.per_byte", + 62 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 182 + ], + [ + "move_stdlib.vector.length.base", + 99 + ], + [ + "move_stdlib.vector.empty.base", + 85 + ], + [ + "move_stdlib.vector.borrow.base", + 1335 + ], + [ + "move_stdlib.vector.push_back.legacy_per_abstract_memory_unit", + 54 + ], + [ + "move_stdlib.vector.pop_back.base", + 228 + ], + [ + "move_stdlib.vector.destroy_empty.base", + 573 + ], + [ + "move_stdlib.vector.swap.base", + 1437 + ], + [ + "starcoin_natives.signature.ed25519_validate_key.per_byte", + 27 + ], + [ + "move_stdlib.signer.borrow_address.base", + 354 + ], + [ + "starcoin_natives.account.create_signer.base", + 25 + ], + [ + "starcoin_natives.account.destroy_signer.base", + 213 + ], + [ + "nursery.event.write_to_event_store.unit_cost", + 53 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 27 + ], + [ + "starcoin_natives.token.name_of.base", + 2003 + ], + [ + "starcoin_natives.hash.keccak256.per_byte", + 65 + ], + [ + "nursery.debug.print.base_cost", + 1 + ], + [ + "nursery.debug.print_stack_trace.base_cost", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 182 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "txn.global_memory_per_byte_cost", + 4 + ], + [ + "txn.global_memory_per_byte_write_cost", + 9 + ], + [ + "txn.min_transaction_gas_units", + 600 + ], + [ + "txn.large_transaction_cutoff", + 600 + ], + [ + "txn.intrinsic_gas_per_byte", + 8 + ], + [ + "txn.maximum_number_of_gas_units", + 40000000 + ], + [ + "txn.min_price_per_gas_unit", + 1 + ], + [ + "txn.max_price_per_gas_unit", + 10000 + ], + [ + "txn.max_transaction_size_in_bytes", + 60000 + ], + [ + "txn.gas_unit_scaling_factor", + 1 + ], + [ + "txn.default_account_size", + 800 + ], + [ + "txn.max_execution_gas", + 920000000 + ], + [ + "misc.abs_val.u8", + 1 + ], + [ + "misc.abs_val.u16", + 1 + ], + [ + "misc.abs_val.u32", + 1 + ], + [ + "misc.abs_val.u64", + 1 + ], + [ + "misc.abs_val.u128", + 1 + ], + [ + "misc.abs_val.u256", + 1 + ], + [ + "misc.abs_val.bool", + 1 + ], + [ + "misc.abs_val.address", + 1 + ], + [ + "misc.abs_val.struct", + 1 + ], + [ + "misc.abs_val.vector", + 1 + ], + [ + "misc.abs_val.reference", + 1 + ], + [ + "misc.abs_val.per_u8_packed", + 1 + ], + [ + "misc.abs_val.per_u16_packed", + 1 + ], + [ + "misc.abs_val.per_u32_packed", + 1 + ], + [ + "misc.abs_val.per_u64_packed", + 1 + ], + [ + "misc.abs_val.per_u128_packed", + 1 + ], + [ + "misc.abs_val.per_u256_packed", + 1 + ], + [ + "misc.abs_val.per_bool_packed", + 1 + ], + [ + "misc.abs_val.per_address_packed", + 1 + ], + [ + "move_stdlib.hash.sha2_256.base", + 1 + ], + [ + "move_stdlib.hash.sha2_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha2_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.hash.sha3_256.base", + 1 + ], + [ + "move_stdlib.hash.sha3_256.per_byte", + 1 + ], + [ + "move_stdlib.hash.sha3_256.legacy_min_input_len", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.per_byte_serialized", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.failure", + 1 + ], + [ + "move_stdlib.bcs.to_bytes.legacy_min_output_size", + 1 + ], + [ + "move_stdlib.signer.borrow_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.base", + 1 + ], + [ + "move_stdlib.bcs.to_address.per_byte", + 1 + ], + [ + "move_stdlib.string.check_utf8.base", + 1 + ], + [ + "move_stdlib.string.check_utf8.per_byte", + 1 + ], + [ + "move_stdlib.string.is_char_boundary.base", + 1 + ], + [ + "move_stdlib.string.sub_string.base", + 1 + ], + [ + "move_stdlib.string.sub_string.per_byte", + 1 + ], + [ + "move_stdlib.string.index_of.base", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_pattern", + 1 + ], + [ + "move_stdlib.string.index_of.per_byte_searched", + 1 + ], + [ + "move_stdlib.vector.spawn_from.base", + 1 + ], + [ + "table.new_table_handle.base", + 1 + ], + [ + "table.add_box.per_byte_serialized", + 1 + ], + [ + "table.borrow_box.per_byte_serialized", + 1 + ], + [ + "table.remove_box.per_byte_serialized", + 1 + ], + [ + "table.contains_box.per_byte_serialized", + 1 + ], + [ + "table.destroy_empty_box.base", + 1 + ], + [ + "table.drop_unchecked_box.base", + 1 + ], + [ + "table.common.load.base", + 1 + ], + [ + "table.common.load.base_new", + 1 + ], + [ + "table.common.load.per_byte", + 1 + ], + [ + "table.common.load.failure", + 1 + ], + [ + "table.add_box.base", + 1 + ], + [ + "table.borrow_box.base", + 1 + ], + [ + "table.contains_box.base", + 1 + ], + [ + "table.remove_box.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.account.destroy_signer.base", + 1 + ], + [ + "starcoin_framework.token.name_of.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.base", + 1 + ], + [ + "starcoin_framework.signature.ec_recover.per_byte", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.base", + 1 + ], + [ + "starcoin_framework.u256.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.u256.add.base", + 1 + ], + [ + "starcoin_framework.u256.sub.base", + 1 + ], + [ + "starcoin_framework.u256.mul.base", + 1 + ], + [ + "starcoin_framework.u256.div.base", + 1 + ], + [ + "starcoin_framework.u256.rem.base", + 1 + ], + [ + "starcoin_framework.u256.pow.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.pubkey.per_byte", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.base", + 1 + ], + [ + "starcoin_framework.signature.ed25519.verify.per_byte", + 1 + ], + [ + "starcoin_framework.account.create_address.base", + 1 + ], + [ + "starcoin_framework.account.create_signer.base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fq_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bn254_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_clone", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_pow_u256", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fq12_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_deser", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_div", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_from_u64", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_inv", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_one", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_serialize", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_square", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_fr_zero", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g1_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_deser_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_comp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_affine_serialize_uncomp", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_add", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_double", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_eq", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_generator", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_infinity", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_neg", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_scalar_mul", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_sub", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_g2_proj_to_affine", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_multi_pairing_per_pair", + 1 + ], + [ + "starcoin_framework.algebra.ark_bls12_381_pairing", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g1_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_base", + 1 + ], + [ + "starcoin_framework.algebra.ark_h2c_bls12381g2_xmd_sha256_sswu_per_msg_byte", + 1 + ], + [ + "starcoin_framework.bls12381.base", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_pubkey_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_aggregate", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_subgroup_check", + 1 + ], + [ + "starcoin_framework.bls12381.per_sig_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pop_verify", + 1 + ], + [ + "starcoin_framework.bls12381.per_pairing", + 1 + ], + [ + "starcoin_framework.bls12381.per_msg_hashing", + 1 + ], + [ + "starcoin_framework.bls12381.per_byte_hashing", + 1 + ], + [ + "starcoin_framework.signature.base", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_pubkey_small_order_check", + 1 + ], + [ + "starcoin_framework.signature.per_sig_deserialize", + 1 + ], + [ + "starcoin_framework.signature.per_sig_strict_verify", + 1 + ], + [ + "starcoin_framework.signature.per_msg_hashing_base", + 1 + ], + [ + "starcoin_framework.signature.per_msg_byte_hashing", + 1 + ], + [ + "starcoin_framework.secp256k1.base", + 1 + ], + [ + "starcoin_framework.secp256k1.ecdsa_recover", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.basepoint_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_add", + 1 + ], + [ + "starcoin_framework.ristretto255.point_clone", + 1 + ], + [ + "starcoin_framework.ristretto255.point_compress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_decompress", + 1 + ], + [ + "starcoin_framework.ristretto255.point_equals", + 1 + ], + [ + "starcoin_framework.ristretto255.point_from_64_uniform_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.point_identity", + 1 + ], + [ + "starcoin_framework.ristretto255.point_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_double_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.point_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.point_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.point_parse_arg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_byte", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sha512_per_hash", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_add", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_reduced_from_32_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_uniform_from_64_bytes", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u128", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_from_u64", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_invert", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_is_canonical", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_mul", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_neg", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_sub", + 1 + ], + [ + "starcoin_framework.ristretto255.scalar_parse_arg", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.base", + 1 + ], + [ + "starcoin_framework.hash.sip_hash.per_byte", + 1 + ], + [ + "starcoin_framework.hash.keccak256.base", + 1 + ], + [ + "starcoin_framework.hash.keccak256.per_byte", + 1 + ], + [ + "starcoin_framework.bulletproofs.base", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_bit_rangeproof_verify", + 1 + ], + [ + "starcoin_framework.bulletproofs.per_byte_rangeproof_deserialize", + 1 + ], + [ + "starcoin_framework.type_info.type_of.base", + 1 + ], + [ + "starcoin_framework.type_info.type_of.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.type_name.base", + 1 + ], + [ + "starcoin_framework.type_info.type_name.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.type_info.chain_id.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.base", + 1 + ], + [ + "starcoin_framework.function_info.is_identifier.per_byte", + 1 + ], + [ + "starcoin_framework.function_info.check_dispatch_type_compatibility_impl.base", + 1 + ], + [ + "starcoin_framework.function_info.load_function.base", + 1 + ], + [ + "starcoin_framework.dispatchable_fungible_asset.dispatch.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha2_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.base", + 1 + ], + [ + "starcoin_framework.hash.sha3_512.per_byte", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.base", + 1 + ], + [ + "starcoin_framework.hash.ripemd160.per_byte", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.base", + 1 + ], + [ + "starcoin_framework.hash.blake2b_256.per_byte", + 1 + ], + [ + "starcoin_framework.util.from_bytes.base", + 1 + ], + [ + "starcoin_framework.util.from_bytes.per_byte", + 1 + ], + [ + "starcoin_framework.transaction_context.get_txn_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.get_script_hash.base", + 1 + ], + [ + "starcoin_framework.transaction_context.generate_unique_address.base", + 1 + ], + [ + "starcoin_framework.transaction_context.sender.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.base", + 1 + ], + [ + "starcoin_framework.transaction_context.secondary_signers.per_signer", + 1 + ], + [ + "starcoin_framework.transaction_context.fee_payer.base", + 1 + ], + [ + "starcoin_framework.transaction_context.max_gas_amount.base", + 1 + ], + [ + "starcoin_framework.transaction_context.gas_unit_price.base", + 1 + ], + [ + "starcoin_framework.transaction_context.chain_id.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.entry_function_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.base", + 1 + ], + [ + "starcoin_framework.transaction_context.multisig_payload.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.code.request_publish.base", + 1 + ], + [ + "starcoin_framework.code.request_publish.per_byte", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.base", + 1 + ], + [ + "starcoin_framework.event.write_to_event_store.per_abstract_memory_unit", + 1 + ], + [ + "starcoin_framework.state_storage.get_usage.base", + 1 + ], + [ + "starcoin_framework.aggregator.add.base", + 1 + ], + [ + "starcoin_framework.aggregator.read.base", + 1 + ], + [ + "starcoin_framework.aggregator.sub.base", + 1 + ], + [ + "starcoin_framework.aggregator.destroy.base", + 1 + ], + [ + "starcoin_framework.aggregator_factory.new_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_aggregator.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_add.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.try_sub.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.is_at_least.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.create_snapshot.per_byte", + 1 + ], + [ + "starcoin_framework.aggregator_v2.copy_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.read_snapshot.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.base", + 1 + ], + [ + "starcoin_framework.aggregator_v2.string_concat.per_byte", + 1 + ], + [ + "starcoin_framework.object.exists_at.base", + 1 + ], + [ + "starcoin_framework.object.user_derived_address.base", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_byte_loaded", + 1 + ], + [ + "starcoin_framework.object.exists_at.per_item_loaded", + 1 + ], + [ + "starcoin_framework.string_utils.format.base", + 1 + ], + [ + "starcoin_framework.string_utils.format.per_byte", + 1 + ] + ] } }, "publishing_option": { diff --git a/config/src/account_vault_config.rs b/config/src/account_vault_config.rs index af39a853fd..68cf7d03ae 100644 --- a/config/src/account_vault_config.rs +++ b/config/src/account_vault_config.rs @@ -3,7 +3,7 @@ use crate::{BaseConfig, ConfigModule, StarcoinOpt}; use anyhow::Result; -use clap::{value_parser, Parser}; +use clap::Parser; use once_cell::sync::Lazy; use serde::{Deserialize, Serialize}; use std::path::PathBuf; @@ -15,7 +15,7 @@ static G_DEFAULT_DIR: Lazy = Lazy::new(|| PathBuf::from("account_vaults #[serde(deny_unknown_fields)] pub struct AccountVaultConfig { #[serde(skip_serializing_if = "Option::is_none")] - #[arg(long = "vault-dir", value_parser = value_parser!(std::ffi::OsString))] + #[arg(long = "vault-dir", value_parser)] /// Account vault dir config. /// Default: account_vaults in data_dir dir: Option, diff --git a/config/src/genesis_config.rs b/config/src/genesis_config.rs index 1461b9030b..d8717d4610 100644 --- a/config/src/genesis_config.rs +++ b/config/src/genesis_config.rs @@ -765,7 +765,7 @@ pub static G_DAG_TEST_CONFIG: Lazy = Lazy::new(|| { time_mint_period: G_DEFAULT_TIME_LOCKED_PERIOD, vm_config: VMConfig { gas_schedule: GasSchedule { - feature_vesion: LATEST_GAS_FEATURE_VERSION, + feature_version: LATEST_GAS_FEATURE_VERSION, entries: StarcoinGasParameters::initial() .to_on_chain_gas_schedule(LATEST_GAS_FEATURE_VERSION), }, @@ -820,7 +820,7 @@ pub static G_TEST_CONFIG: Lazy = Lazy::new(|| { time_mint_period: G_DEFAULT_TIME_LOCKED_PERIOD, vm_config: VMConfig { gas_schedule: GasSchedule { - feature_vesion: LATEST_GAS_FEATURE_VERSION, + feature_version: LATEST_GAS_FEATURE_VERSION, entries: StarcoinGasParameters::initial() .to_on_chain_gas_schedule(LATEST_GAS_FEATURE_VERSION), }, @@ -878,7 +878,7 @@ pub static G_DEV_CONFIG: Lazy = Lazy::new(|| { time_mint_period: 3600 * 24, vm_config: VMConfig { gas_schedule: GasSchedule { - feature_vesion: LATEST_GAS_FEATURE_VERSION, + feature_version: LATEST_GAS_FEATURE_VERSION, entries: StarcoinGasParameters::initial() .to_on_chain_gas_schedule(LATEST_GAS_FEATURE_VERSION), }, @@ -940,7 +940,7 @@ pub static G_HALLEY_CONFIG: Lazy = Lazy::new(|| { time_mint_period: 3600 * 24 * 31, vm_config: VMConfig { gas_schedule: GasSchedule { - feature_vesion: LATEST_GAS_FEATURE_VERSION, + feature_version: LATEST_GAS_FEATURE_VERSION, entries: StarcoinGasParameters::initial() .to_on_chain_gas_schedule(LATEST_GAS_FEATURE_VERSION), }, diff --git a/config/src/lib.rs b/config/src/lib.rs index 4c7ee71adc..99c9f0f182 100644 --- a/config/src/lib.rs +++ b/config/src/lib.rs @@ -5,7 +5,7 @@ use crate::account_vault_config::AccountVaultConfig; use crate::helper::{load_config, save_config}; use crate::sync_config::SyncConfig; use anyhow::{ensure, format_err, Result}; -use clap::{value_parser, Parser}; +use clap::Parser; use git_version::git_version; use once_cell::sync::Lazy; use serde::{de::DeserializeOwned, Deserialize, Serialize}; @@ -182,7 +182,7 @@ pub struct StarcoinOpt { pub connect: Option, #[serde(skip_serializing_if = "Option::is_none")] - #[arg(long = "data-dir", short = 'd', value_parser = value_parser!(std::ffi::OsString))] + #[arg(long = "data-dir", short = 'd', value_parser)] /// Path to data dir, this dir is base dir, the final data_dir is base_dir/chain_network_name pub base_data_dir: Option, diff --git a/config/src/tests.rs b/config/src/tests.rs index 73bbb80bb3..6bceaa9c28 100644 --- a/config/src/tests.rs +++ b/config/src/tests.rs @@ -187,3 +187,18 @@ fn test_check_method_in_api_sets() { assert!(!ApiSet::UnsafeContext.check_rpc_method("unknown")); assert!(!ApiSet::UnsafeContext.check_rpc_method("")); } + +#[test] +fn print_all_genesis_config() { + for net in BuiltinNetworkID::networks() { + if net.is_dev() || net.is_test() || net.is_dag_test() { + continue; + } + let genesis_config = net.genesis_config(); + println!("genesis config for network: {}", net); + println!( + "{}\n\n\n", + serde_json::to_string_pretty(genesis_config).unwrap() + ); + } +} diff --git a/scripts/nextest.sh b/scripts/nextest.sh index 333f987ced..9e1b7fb78a 100755 --- a/scripts/nextest.sh +++ b/scripts/nextest.sh @@ -27,6 +27,7 @@ cargo nextest run \ -p starcoin-vm-runtime \ -p starcoin-genesis \ -p starcoin-node \ +-p starcoin-config \ --retries 2 --build-jobs 8 --test-threads 12 --no-fail-fast --failure-output immediate-final diff --git a/vm/starcoin-transactional-test-harness/src/lib.rs b/vm/starcoin-transactional-test-harness/src/lib.rs index 83190fb1cd..33880a17d9 100644 --- a/vm/starcoin-transactional-test-harness/src/lib.rs +++ b/vm/starcoin-transactional-test-harness/src/lib.rs @@ -592,7 +592,7 @@ impl<'a> StarcoinTestAdapter<'a> { .gas_schedule; let gas_parameters = StarcoinGasParameters::from_on_chain_gas_schedule( &gs.clone().to_btree_map(), - gs.feature_vesion, + gs.feature_version, ) .unwrap(); let max_number_of_gas_units = gas_parameters.vm.txn.maximum_number_of_gas_units; diff --git a/vm/types/src/on_chain_config/gas_schedule.rs b/vm/types/src/on_chain_config/gas_schedule.rs index c2f6462046..c97a87f123 100644 --- a/vm/types/src/on_chain_config/gas_schedule.rs +++ b/vm/types/src/on_chain_config/gas_schedule.rs @@ -21,7 +21,7 @@ pub static G_GAS_SCHEDULE_GAS_SCHEDULE: Lazy = #[derive(Clone, Debug, Deserialize, PartialEq, Eq, Serialize)] pub struct GasSchedule { - pub feature_vesion: u64, + pub feature_version: u64, pub entries: Vec<(String, u64)>, } @@ -690,7 +690,7 @@ impl From<&CostTable> for GasSchedule { append_extra_gas_cost_framework_upgrade(&mut entries); Self { - feature_vesion: 13, + feature_version: 13, entries, } } diff --git a/vm/vm-runtime/src/lib.rs b/vm/vm-runtime/src/lib.rs index 70692fba78..dace7a2e40 100644 --- a/vm/vm-runtime/src/lib.rs +++ b/vm/vm-runtime/src/lib.rs @@ -93,7 +93,7 @@ pub(crate) fn discard_error_output(err: StatusCode) -> TransactionOutput { pub(crate) fn default_gas_schedule() -> GasSchedule { GasSchedule { - feature_vesion: LATEST_GAS_FEATURE_VERSION, + feature_version: LATEST_GAS_FEATURE_VERSION, entries: StarcoinGasParameters::initial() .to_on_chain_gas_schedule(LATEST_GAS_FEATURE_VERSION), } diff --git a/vm/vm-runtime/src/starcoin_vm.rs b/vm/vm-runtime/src/starcoin_vm.rs index a6ee6a0f50..0d43e0b090 100644 --- a/vm/vm-runtime/src/starcoin_vm.rs +++ b/vm/vm-runtime/src/starcoin_vm.rs @@ -179,7 +179,7 @@ impl StarcoinVM { bail!("failed to load gas schedule!"); } Some(gs) => { - let gas_feature_version = gs.feature_vesion; + let gas_feature_version = gs.feature_version; let gas_schdule_treemap = gs.clone().to_btree_map(); let gas_params = StarcoinGasParameters::from_on_chain_gas_schedule( &gas_schdule_treemap,