Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VmCachedInstantiation for future use #116

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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