pub struct ExtCostsConfigView {Show 87 fields
pub alt_bn128_g1_multiexp_base: Option<NearGas>,
pub alt_bn128_g1_multiexp_element: Option<NearGas>,
pub alt_bn128_g1_sum_base: Option<NearGas>,
pub alt_bn128_g1_sum_element: Option<NearGas>,
pub alt_bn128_pairing_check_base: Option<NearGas>,
pub alt_bn128_pairing_check_element: Option<NearGas>,
pub base: Option<NearGas>,
pub bls12381_g1_multiexp_base: Option<NearGas>,
pub bls12381_g1_multiexp_element: Option<NearGas>,
pub bls12381_g2_multiexp_base: Option<NearGas>,
pub bls12381_g2_multiexp_element: Option<NearGas>,
pub bls12381_map_fp2_to_g2_base: Option<NearGas>,
pub bls12381_map_fp2_to_g2_element: Option<NearGas>,
pub bls12381_map_fp_to_g1_base: Option<NearGas>,
pub bls12381_map_fp_to_g1_element: Option<NearGas>,
pub bls12381_p1_decompress_base: Option<NearGas>,
pub bls12381_p1_decompress_element: Option<NearGas>,
pub bls12381_p1_sum_base: Option<NearGas>,
pub bls12381_p1_sum_element: Option<NearGas>,
pub bls12381_p2_decompress_base: Option<NearGas>,
pub bls12381_p2_decompress_element: Option<NearGas>,
pub bls12381_p2_sum_base: Option<NearGas>,
pub bls12381_p2_sum_element: Option<NearGas>,
pub bls12381_pairing_base: Option<NearGas>,
pub bls12381_pairing_element: Option<NearGas>,
pub contract_compile_base: Option<NearGas>,
pub contract_compile_bytes: Option<NearGas>,
pub contract_loading_base: Option<NearGas>,
pub contract_loading_bytes: Option<NearGas>,
pub ecrecover_base: Option<NearGas>,
pub ed25519_verify_base: Option<NearGas>,
pub ed25519_verify_byte: Option<NearGas>,
pub keccak256_base: Option<NearGas>,
pub keccak256_byte: Option<NearGas>,
pub keccak512_base: Option<NearGas>,
pub keccak512_byte: Option<NearGas>,
pub log_base: Option<NearGas>,
pub log_byte: Option<NearGas>,
pub promise_and_base: Option<NearGas>,
pub promise_and_per_promise: Option<NearGas>,
pub promise_return: Option<NearGas>,
pub read_cached_trie_node: Option<NearGas>,
pub read_memory_base: Option<NearGas>,
pub read_memory_byte: Option<NearGas>,
pub read_register_base: Option<NearGas>,
pub read_register_byte: Option<NearGas>,
pub ripemd160_base: Option<NearGas>,
pub ripemd160_block: Option<NearGas>,
pub sha256_base: Option<NearGas>,
pub sha256_byte: Option<NearGas>,
pub storage_has_key_base: Option<NearGas>,
pub storage_has_key_byte: Option<NearGas>,
pub storage_iter_create_from_byte: Option<NearGas>,
pub storage_iter_create_prefix_base: Option<NearGas>,
pub storage_iter_create_prefix_byte: Option<NearGas>,
pub storage_iter_create_range_base: Option<NearGas>,
pub storage_iter_create_to_byte: Option<NearGas>,
pub storage_iter_next_base: Option<NearGas>,
pub storage_iter_next_key_byte: Option<NearGas>,
pub storage_iter_next_value_byte: Option<NearGas>,
pub storage_large_read_overhead_base: Option<NearGas>,
pub storage_large_read_overhead_byte: Option<NearGas>,
pub storage_read_base: Option<NearGas>,
pub storage_read_key_byte: Option<NearGas>,
pub storage_read_value_byte: Option<NearGas>,
pub storage_remove_base: Option<NearGas>,
pub storage_remove_key_byte: Option<NearGas>,
pub storage_remove_ret_value_byte: Option<NearGas>,
pub storage_write_base: Option<NearGas>,
pub storage_write_evicted_byte: Option<NearGas>,
pub storage_write_key_byte: Option<NearGas>,
pub storage_write_value_byte: Option<NearGas>,
pub touching_trie_node: Option<NearGas>,
pub utf16_decoding_base: Option<NearGas>,
pub utf16_decoding_byte: Option<NearGas>,
pub utf8_decoding_base: Option<NearGas>,
pub utf8_decoding_byte: Option<NearGas>,
pub validator_stake_base: Option<NearGas>,
pub validator_total_stake_base: Option<NearGas>,
pub write_memory_base: Option<NearGas>,
pub write_memory_byte: Option<NearGas>,
pub write_register_base: Option<NearGas>,
pub write_register_byte: Option<NearGas>,
pub yield_create_base: Option<NearGas>,
pub yield_create_byte: Option<NearGas>,
pub yield_resume_base: Option<NearGas>,
pub yield_resume_byte: Option<NearGas>,
}Expand description
Typed view of ExtCostsConfig to preserve JSON output field names in protocol config RPC output.
JSON schema
{
"description": "Typed view of ExtCostsConfig to preserve JSON output field names in protocol\nconfig RPC output.",
"type": "object",
"properties": {
"alt_bn128_g1_multiexp_base": {
"description": "Base cost for multiexp",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"alt_bn128_g1_multiexp_element": {
"description": "Per element cost for multiexp",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"alt_bn128_g1_sum_base": {
"description": "Base cost for sum",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"alt_bn128_g1_sum_element": {
"description": "Per element cost for sum",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"alt_bn128_pairing_check_base": {
"description": "Base cost for pairing check",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"alt_bn128_pairing_check_element": {
"description": "Per element cost for pairing check",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"base": {
"description": "Base cost for calling a host function.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"bls12381_g1_multiexp_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_g1_multiexp_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_g2_multiexp_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_g2_multiexp_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_map_fp2_to_g2_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_map_fp2_to_g2_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_map_fp_to_g1_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_map_fp_to_g1_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p1_decompress_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p1_decompress_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p1_sum_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p1_sum_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p2_decompress_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p2_decompress_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p2_sum_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_p2_sum_element": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_pairing_base": {
"$ref": "#/components/schemas/NearGas"
},
"bls12381_pairing_element": {
"$ref": "#/components/schemas/NearGas"
},
"contract_compile_base": {
"$ref": "#/components/schemas/NearGas"
},
"contract_compile_bytes": {
"$ref": "#/components/schemas/NearGas"
},
"contract_loading_base": {
"description": "Base cost of loading a pre-compiled contract",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"contract_loading_bytes": {
"description": "Cost per byte of loading a pre-compiled contract",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"ecrecover_base": {
"description": "Cost of calling ecrecover",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"ed25519_verify_base": {
"description": "Cost of getting ed25519 base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"ed25519_verify_byte": {
"description": "Cost of getting ed25519 per byte",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"keccak256_base": {
"description": "Cost of getting sha256 base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"keccak256_byte": {
"description": "Cost of getting sha256 per byte",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"keccak512_base": {
"description": "Cost of getting sha256 base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"keccak512_byte": {
"description": "Cost of getting sha256 per byte",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"log_base": {
"description": "Cost for calling logging.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"log_byte": {
"description": "Cost for logging per byte",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"promise_and_base": {
"description": "Cost for calling `promise_and`",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"promise_and_per_promise": {
"description": "Cost for calling `promise_and` for each promise",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"promise_return": {
"description": "Cost for calling `promise_return`",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"read_cached_trie_node": {
"description": "Cost for reading trie node from memory",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"read_memory_base": {
"description": "Base cost for guest memory read",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"read_memory_byte": {
"description": "Cost for guest memory read",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"read_register_base": {
"description": "Base cost for reading from register",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"read_register_byte": {
"description": "Cost for reading byte from register",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"ripemd160_base": {
"description": "Cost of getting ripemd160 base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"ripemd160_block": {
"description": "Cost of getting ripemd160 per message block",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"sha256_base": {
"description": "Cost of getting sha256 base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"sha256_byte": {
"description": "Cost of getting sha256 per byte",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_has_key_base": {
"description": "Storage trie check for key existence cost base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_has_key_byte": {
"description": "Storage trie check for key existence per key byte",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_create_from_byte": {
"description": "Create trie range iterator cost per byte of from key.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_create_prefix_base": {
"description": "Create trie prefix iterator cost base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_create_prefix_byte": {
"description": "Create trie prefix iterator cost per byte.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_create_range_base": {
"description": "Create trie range iterator cost base",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_create_to_byte": {
"description": "Create trie range iterator cost per byte of to key.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_next_base": {
"description": "Trie iterator per key base cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_next_key_byte": {
"description": "Trie iterator next key byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_iter_next_value_byte": {
"description": "Trie iterator next key byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_large_read_overhead_base": {
"description": "Storage trie read key overhead base cost, when doing large reads",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_large_read_overhead_byte": {
"description": "Storage trie read key overhead per-byte cost, when doing large reads",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_read_base": {
"description": "Storage trie read key base cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_read_key_byte": {
"description": "Storage trie read key per byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_read_value_byte": {
"description": "Storage trie read value cost per byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_remove_base": {
"description": "Remove key from trie base cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_remove_key_byte": {
"description": "Remove key from trie per byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_remove_ret_value_byte": {
"description": "Remove key from trie ret value byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_write_base": {
"description": "Storage trie write key base cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_write_evicted_byte": {
"description": "Storage trie write cost per byte of evicted value.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_write_key_byte": {
"description": "Storage trie write key per byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"storage_write_value_byte": {
"description": "Storage trie write value per byte cost",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"touching_trie_node": {
"description": "Cost per reading trie node from DB",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"utf16_decoding_base": {
"description": "Base cost of decoding utf16. It's used for `log_utf16`.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"utf16_decoding_byte": {
"description": "Cost per byte of decoding utf16. It's used for `log_utf16`.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"utf8_decoding_base": {
"description": "Base cost of decoding utf8. It's used for `log_utf8` and `panic_utf8`.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"utf8_decoding_byte": {
"description": "Cost per byte of decoding utf8. It's used for `log_utf8` and `panic_utf8`.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"validator_stake_base": {
"description": "Cost of calling `validator_stake`.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"validator_total_stake_base": {
"description": "Cost of calling `validator_total_stake`.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"write_memory_base": {
"description": "Base cost for guest memory write",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"write_memory_byte": {
"description": "Cost for guest memory write per byte",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"write_register_base": {
"description": "Base cost for writing into register",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"write_register_byte": {
"description": "Cost for writing byte into register",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"yield_create_base": {
"description": "Base cost for creating a yield promise.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"yield_create_byte": {
"description": "Per byte cost of arguments and method name.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"yield_resume_base": {
"description": "Base cost for resuming a yield receipt.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
},
"yield_resume_byte": {
"description": "Per byte cost of resume payload.",
"allOf": [
{
"$ref": "#/components/schemas/NearGas"
}
]
}
}
}Fields§
§alt_bn128_g1_multiexp_base: Option<NearGas>Base cost for multiexp
alt_bn128_g1_multiexp_element: Option<NearGas>Per element cost for multiexp
alt_bn128_g1_sum_base: Option<NearGas>Base cost for sum
alt_bn128_g1_sum_element: Option<NearGas>Per element cost for sum
alt_bn128_pairing_check_base: Option<NearGas>Base cost for pairing check
alt_bn128_pairing_check_element: Option<NearGas>Per element cost for pairing check
base: Option<NearGas>Base cost for calling a host function.
bls12381_g1_multiexp_base: Option<NearGas>§bls12381_g1_multiexp_element: Option<NearGas>§bls12381_g2_multiexp_base: Option<NearGas>§bls12381_g2_multiexp_element: Option<NearGas>§bls12381_map_fp2_to_g2_base: Option<NearGas>§bls12381_map_fp2_to_g2_element: Option<NearGas>§bls12381_map_fp_to_g1_base: Option<NearGas>§bls12381_map_fp_to_g1_element: Option<NearGas>§bls12381_p1_decompress_base: Option<NearGas>§bls12381_p1_decompress_element: Option<NearGas>§bls12381_p1_sum_base: Option<NearGas>§bls12381_p1_sum_element: Option<NearGas>§bls12381_p2_decompress_base: Option<NearGas>§bls12381_p2_decompress_element: Option<NearGas>§bls12381_p2_sum_base: Option<NearGas>§bls12381_p2_sum_element: Option<NearGas>§bls12381_pairing_base: Option<NearGas>§bls12381_pairing_element: Option<NearGas>§contract_compile_base: Option<NearGas>§contract_compile_bytes: Option<NearGas>§contract_loading_base: Option<NearGas>Base cost of loading a pre-compiled contract
contract_loading_bytes: Option<NearGas>Cost per byte of loading a pre-compiled contract
ecrecover_base: Option<NearGas>Cost of calling ecrecover
ed25519_verify_base: Option<NearGas>Cost of getting ed25519 base
ed25519_verify_byte: Option<NearGas>Cost of getting ed25519 per byte
keccak256_base: Option<NearGas>Cost of getting sha256 base
keccak256_byte: Option<NearGas>Cost of getting sha256 per byte
keccak512_base: Option<NearGas>Cost of getting sha256 base
keccak512_byte: Option<NearGas>Cost of getting sha256 per byte
log_base: Option<NearGas>Cost for calling logging.
log_byte: Option<NearGas>Cost for logging per byte
promise_and_base: Option<NearGas>Cost for calling promise_and
promise_and_per_promise: Option<NearGas>Cost for calling promise_and for each promise
promise_return: Option<NearGas>Cost for calling promise_return
read_cached_trie_node: Option<NearGas>Cost for reading trie node from memory
read_memory_base: Option<NearGas>Base cost for guest memory read
read_memory_byte: Option<NearGas>Cost for guest memory read
read_register_base: Option<NearGas>Base cost for reading from register
read_register_byte: Option<NearGas>Cost for reading byte from register
ripemd160_base: Option<NearGas>Cost of getting ripemd160 base
ripemd160_block: Option<NearGas>Cost of getting ripemd160 per message block
sha256_base: Option<NearGas>Cost of getting sha256 base
sha256_byte: Option<NearGas>Cost of getting sha256 per byte
storage_has_key_base: Option<NearGas>Storage trie check for key existence cost base
storage_has_key_byte: Option<NearGas>Storage trie check for key existence per key byte
storage_iter_create_from_byte: Option<NearGas>Create trie range iterator cost per byte of from key.
storage_iter_create_prefix_base: Option<NearGas>Create trie prefix iterator cost base
storage_iter_create_prefix_byte: Option<NearGas>Create trie prefix iterator cost per byte.
storage_iter_create_range_base: Option<NearGas>Create trie range iterator cost base
storage_iter_create_to_byte: Option<NearGas>Create trie range iterator cost per byte of to key.
storage_iter_next_base: Option<NearGas>Trie iterator per key base cost
storage_iter_next_key_byte: Option<NearGas>Trie iterator next key byte cost
storage_iter_next_value_byte: Option<NearGas>Trie iterator next key byte cost
storage_large_read_overhead_base: Option<NearGas>Storage trie read key overhead base cost, when doing large reads
storage_large_read_overhead_byte: Option<NearGas>Storage trie read key overhead per-byte cost, when doing large reads
storage_read_base: Option<NearGas>Storage trie read key base cost
storage_read_key_byte: Option<NearGas>Storage trie read key per byte cost
storage_read_value_byte: Option<NearGas>Storage trie read value cost per byte cost
storage_remove_base: Option<NearGas>Remove key from trie base cost
storage_remove_key_byte: Option<NearGas>Remove key from trie per byte cost
storage_remove_ret_value_byte: Option<NearGas>Remove key from trie ret value byte cost
storage_write_base: Option<NearGas>Storage trie write key base cost
storage_write_evicted_byte: Option<NearGas>Storage trie write cost per byte of evicted value.
storage_write_key_byte: Option<NearGas>Storage trie write key per byte cost
storage_write_value_byte: Option<NearGas>Storage trie write value per byte cost
touching_trie_node: Option<NearGas>Cost per reading trie node from DB
utf16_decoding_base: Option<NearGas>Base cost of decoding utf16. It’s used for log_utf16.
utf16_decoding_byte: Option<NearGas>Cost per byte of decoding utf16. It’s used for log_utf16.
utf8_decoding_base: Option<NearGas>Base cost of decoding utf8. It’s used for log_utf8 and panic_utf8.
utf8_decoding_byte: Option<NearGas>Cost per byte of decoding utf8. It’s used for log_utf8 and panic_utf8.
validator_stake_base: Option<NearGas>Cost of calling validator_stake.
validator_total_stake_base: Option<NearGas>Cost of calling validator_total_stake.
write_memory_base: Option<NearGas>Base cost for guest memory write
write_memory_byte: Option<NearGas>Cost for guest memory write per byte
write_register_base: Option<NearGas>Base cost for writing into register
write_register_byte: Option<NearGas>Cost for writing byte into register
yield_create_base: Option<NearGas>Base cost for creating a yield promise.
yield_create_byte: Option<NearGas>Per byte cost of arguments and method name.
yield_resume_base: Option<NearGas>Base cost for resuming a yield receipt.
yield_resume_byte: Option<NearGas>Per byte cost of resume payload.
Trait Implementations§
Source§impl Clone for ExtCostsConfigView
impl Clone for ExtCostsConfigView
Source§fn clone(&self) -> ExtCostsConfigView
fn clone(&self) -> ExtCostsConfigView
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more