Skip to content

Commit

Permalink
update starcoin-gas-schedule (#4202)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Sep 23, 2024
1 parent ecd01db commit ab99064
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions vm/gas-schedule/src/gas_schedule/move_stdlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ crate::gas_schedule::macros::define_gas_parameters!(MoveStdlibGasParameters, "mo
[string_sub_string_base:InternalGas, "string.sub_string.base", 0 * MUL],
[string_sub_string_per_byte:InternalGasPerByte, "string.sub_string.per_byte", (4 + 1) * MUL],
[string_index_of_base:InternalGas, "string.index_of.base", 0 * MUL],
[string_index_of_per_byte_pattern: InternalGasPerByte, "string.index_of.per_byte_pattern", 73],
[string_index_of_per_byte_searched:InternalGasPerByte, "string.index_of.per_byte_searched", (4 + 1) * MUL],
[vector_spawn_from_base:InternalGas, "vector.spawn_from.base", 0 * MUL],
]);
4 changes: 2 additions & 2 deletions vm/gas-schedule/src/gas_schedule/starcoin_framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ crate::gas_schedule::macros::define_gas_parameters!(StarcoinFrameworkGasParamete
[signature_ed25519_verify_base : InternalGas, "signature.ed25519.verify.base", 0 * MUL],
[signature_ed25519_verify_per_byte: InternalGasPerByte, "signature.ed25519.verify.per_byte",(26 + 1) * MUL],

// [account_create_signer_base: InternalGas, "account.create_signer.base", (24 + 1) * MUL],
[account_create_signer_base: InternalGas, "account.create_signer.base", (24 + 1) * MUL],
[account_destroy_signer_base: InternalGas, "account.destroy_signer.base", (212 + 1)* MUL],

[token_name_of_base: InternalGas, "token.name_of.base", (2002 + 1) * MUL],
Expand All @@ -27,7 +27,7 @@ crate::gas_schedule::macros::define_gas_parameters!(StarcoinFrameworkGasParamete
//[hash_keccak256_per_byte: InternalGasPerByte, "hash.keccak256.per_byte", (64 + 1) *MUL],
//[hash_ripemd160_base:InternalGas , "hash.ripemd160.base", 0 * MUL],
//[hash_ripemd160_per_byte: InternalGasPerByte, "hash.ripemd160.per_byte", (64 + 1) * MUL],
// [signature_ec_recover_base: InternalGas, "signature.ec_recover.base", 0 * MUL],
[signature_ec_recover_base: InternalGas, "signature.ec_recover.base", 0 * MUL],
[signature_ec_recover_per_byte: InternalGasPerByte, "signature.ec_recover.per_byte", (128 + 1) * MUL],

// XXX FIXME YSG, need to remove?
Expand Down

0 comments on commit ab99064

Please sign in to comment.