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 cost types for int256 arithmetics #110

Merged
merged 1 commit into from
Jun 16, 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
12 changes: 11 additions & 1 deletion Stellar-contract-config-setting.x
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,17 @@ enum ContractCostType {
// Cost of computing an ECDSA secp256k1 signature from bytes.
ComputeEcdsaSecp256k1Sig = 23,
// Cost of recovering an ECDSA secp256k1 key from a signature.
RecoverEcdsaSecp256k1Key = 24
RecoverEcdsaSecp256k1Key = 24,
// Cost of int256 addition (`+`) and subtraction (`-`) operations
Int256AddSub = 25,
// Cost of int256 multiplication (`*`) operation
Int256Mul = 26,
// Cost of int256 division (`/`) operation
Int256Div = 27,
// Cost of int256 power (`exp`) operation
Int256Pow = 28,
// Cost of int256 shift (`shl`, `shr`) operation
Int256Shift = 29
};

struct ContractCostParamEntry {
Expand Down