Skip to content

Commit

Permalink
Add VmCachedInstantiation for future use (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayz22 authored Jun 21, 2023
1 parent 7b40310 commit 0c44aa7
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Stellar-contract-config-setting.x
Original file line number Diff line number Diff line change
Expand Up @@ -129,28 +129,30 @@ enum ContractCostType {
VmMemWrite = 17,
// Cost of instantiation a VM from wasm bytes code.
VmInstantiation = 18,
// Cost of instantiation a VM from a cached state.
VmCachedInstantiation = 19,
// Roundtrip cost of invoking a VM function from the host.
InvokeVmFunction = 19,
InvokeVmFunction = 20,
// Cost of charging a value to the budgeting system.
ChargeBudget = 20,
ChargeBudget = 21,
// Cost of computing a keccak256 hash from bytes.
ComputeKeccak256Hash = 21,
ComputeKeccak256Hash = 22,
// Cost of computing an ECDSA secp256k1 pubkey from bytes.
ComputeEcdsaSecp256k1Key = 22,
ComputeEcdsaSecp256k1Key = 23,
// Cost of computing an ECDSA secp256k1 signature from bytes.
ComputeEcdsaSecp256k1Sig = 23,
ComputeEcdsaSecp256k1Sig = 24,
// Cost of recovering an ECDSA secp256k1 key from a signature.
RecoverEcdsaSecp256k1Key = 24,
RecoverEcdsaSecp256k1Key = 25,
// Cost of int256 addition (`+`) and subtraction (`-`) operations
Int256AddSub = 25,
Int256AddSub = 26,
// Cost of int256 multiplication (`*`) operation
Int256Mul = 26,
Int256Mul = 27,
// Cost of int256 division (`/`) operation
Int256Div = 27,
Int256Div = 28,
// Cost of int256 power (`exp`) operation
Int256Pow = 28,
Int256Pow = 29,
// Cost of int256 shift (`shl`, `shr`) operation
Int256Shift = 29
Int256Shift = 30
};

struct ContractCostParamEntry {
Expand Down

0 comments on commit 0c44aa7

Please sign in to comment.