# Class: ComputeBudget
# Table of contents
# Constructors
# Accessors
- altBn128AdditionCost
- altBn128G1Compress
- altBn128G1Decompress
- altBn128G2Compress
- altBn128G2Decompress
- altBn128MultiplicationCost
- altBn128PairingOnePairCostFirst
- altBn128PairingOnePairCostOther
- bigModularExponentiationBaseCost
- bigModularExponentiationCostDivisor
- computeUnitLimit
- cpiBytesPerUnit
- createProgramAddressUnits
- curve25519EdwardsAddCost
- curve25519EdwardsMsmBaseCost
- curve25519EdwardsMsmIncrementalCost
- curve25519EdwardsMultiplyCost
- curve25519EdwardsSubtractCost
- curve25519EdwardsValidatePointCost
- curve25519RistrettoAddCost
- curve25519RistrettoMsmBaseCost
- curve25519RistrettoMsmIncrementalCost
- curve25519RistrettoMultiplyCost
- curve25519RistrettoSubtractCost
- curve25519RistrettoValidatePointCost
- getRemainingComputeUnitsCost
- heapCost
- heapSize
- invokeUnits
- log64Units
- logPubkeyUnits
- maxCallDepth
- maxCpiInstructionSize
- maxInstructionStackDepth
- maxInstructionTraceLength
- memOpBaseCost
- poseidonCostCoefficientA
- poseidonCostCoefficientC
- secp256K1RecoverCost
- sha256BaseCost
- sha256ByteCost
- sha256MaxSlices
- stackFrameSize
- syscallBaseCost
- sysvarBaseCost
# Constructors
# constructor
• new ComputeBudget()
# Defined in
internal.d.ts:113 (opens new window)
# Accessors
# altBn128AdditionCost
• get
altBn128AdditionCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:179 (opens new window)
• set
altBn128AdditionCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:178 (opens new window)
# altBn128G1Compress
• get
altBn128G1Compress(): bigint
# Returns
bigint
# Defined in
internal.d.ts:197 (opens new window)
• set
altBn128G1Compress(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:196 (opens new window)
# altBn128G1Decompress
• get
altBn128G1Decompress(): bigint
# Returns
bigint
# Defined in
internal.d.ts:199 (opens new window)
• set
altBn128G1Decompress(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:198 (opens new window)
# altBn128G2Compress
• get
altBn128G2Compress(): bigint
# Returns
bigint
# Defined in
internal.d.ts:201 (opens new window)
• set
altBn128G2Compress(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:200 (opens new window)
# altBn128G2Decompress
• get
altBn128G2Decompress(): bigint
# Returns
bigint
# Defined in
internal.d.ts:203 (opens new window)
• set
altBn128G2Decompress(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:202 (opens new window)
# altBn128MultiplicationCost
• get
altBn128MultiplicationCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:181 (opens new window)
• set
altBn128MultiplicationCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:180 (opens new window)
# altBn128PairingOnePairCostFirst
• get
altBn128PairingOnePairCostFirst(): bigint
# Returns
bigint
# Defined in
internal.d.ts:183 (opens new window)
• set
altBn128PairingOnePairCostFirst(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:182 (opens new window)
# altBn128PairingOnePairCostOther
• get
altBn128PairingOnePairCostOther(): bigint
# Returns
bigint
# Defined in
internal.d.ts:185 (opens new window)
• set
altBn128PairingOnePairCostOther(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:184 (opens new window)
# bigModularExponentiationBaseCost
• get
bigModularExponentiationBaseCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:187 (opens new window)
• set
bigModularExponentiationBaseCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:186 (opens new window)
# bigModularExponentiationCostDivisor
• get
bigModularExponentiationCostDivisor(): bigint
# Returns
bigint
# Defined in
internal.d.ts:189 (opens new window)
• set
bigModularExponentiationCostDivisor(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:188 (opens new window)
# computeUnitLimit
• get
computeUnitLimit(): bigint
# Returns
bigint
# Defined in
internal.d.ts:114 (opens new window)
• set
computeUnitLimit(limit
): void
# Parameters
Name | Type |
---|---|
limit | bigint |
# Returns
void
# Defined in
internal.d.ts:115 (opens new window)
# cpiBytesPerUnit
• get
cpiBytesPerUnit(): bigint
# Returns
bigint
# Defined in
internal.d.ts:141 (opens new window)
• set
cpiBytesPerUnit(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:140 (opens new window)
# createProgramAddressUnits
• get
createProgramAddressUnits(): bigint
# Returns
bigint
# Defined in
internal.d.ts:119 (opens new window)
• set
createProgramAddressUnits(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:118 (opens new window)
# curve25519EdwardsAddCost
• get
curve25519EdwardsAddCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:151 (opens new window)
• set
curve25519EdwardsAddCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:150 (opens new window)
# curve25519EdwardsMsmBaseCost
• get
curve25519EdwardsMsmBaseCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:157 (opens new window)
• set
curve25519EdwardsMsmBaseCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:156 (opens new window)
# curve25519EdwardsMsmIncrementalCost
• get
curve25519EdwardsMsmIncrementalCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:159 (opens new window)
• set
curve25519EdwardsMsmIncrementalCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:158 (opens new window)
# curve25519EdwardsMultiplyCost
• get
curve25519EdwardsMultiplyCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:155 (opens new window)
• set
curve25519EdwardsMultiplyCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:154 (opens new window)
# curve25519EdwardsSubtractCost
• get
curve25519EdwardsSubtractCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:153 (opens new window)
• set
curve25519EdwardsSubtractCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:152 (opens new window)
# curve25519EdwardsValidatePointCost
• get
curve25519EdwardsValidatePointCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:149 (opens new window)
• set
curve25519EdwardsValidatePointCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:148 (opens new window)
# curve25519RistrettoAddCost
• get
curve25519RistrettoAddCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:163 (opens new window)
• set
curve25519RistrettoAddCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:162 (opens new window)
# curve25519RistrettoMsmBaseCost
• get
curve25519RistrettoMsmBaseCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:169 (opens new window)
• set
curve25519RistrettoMsmBaseCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:168 (opens new window)
# curve25519RistrettoMsmIncrementalCost
• get
curve25519RistrettoMsmIncrementalCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:171 (opens new window)
• set
curve25519RistrettoMsmIncrementalCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:170 (opens new window)
# curve25519RistrettoMultiplyCost
• get
curve25519RistrettoMultiplyCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:167 (opens new window)
• set
curve25519RistrettoMultiplyCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:166 (opens new window)
# curve25519RistrettoSubtractCost
• get
curve25519RistrettoSubtractCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:165 (opens new window)
• set
curve25519RistrettoSubtractCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:164 (opens new window)
# curve25519RistrettoValidatePointCost
• get
curve25519RistrettoValidatePointCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:161 (opens new window)
• set
curve25519RistrettoValidatePointCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:160 (opens new window)
# getRemainingComputeUnitsCost
• get
getRemainingComputeUnitsCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:195 (opens new window)
• set
getRemainingComputeUnitsCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:194 (opens new window)
# heapCost
• get
heapCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:175 (opens new window)
• set
heapCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:174 (opens new window)
# heapSize
• get
heapSize(): number
# Returns
number
# Defined in
internal.d.ts:173 (opens new window)
• set
heapSize(val
): void
# Parameters
Name | Type |
---|---|
val | number |
# Returns
void
# Defined in
internal.d.ts:172 (opens new window)
# invokeUnits
• get
invokeUnits(): bigint
# Returns
bigint
# Defined in
internal.d.ts:121 (opens new window)
• set
invokeUnits(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:120 (opens new window)
# log64Units
• get
log64Units(): bigint
# Returns
bigint
# Defined in
internal.d.ts:117 (opens new window)
• set
log64Units(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:116 (opens new window)
# logPubkeyUnits
• get
logPubkeyUnits(): bigint
# Returns
bigint
# Defined in
internal.d.ts:137 (opens new window)
• set
logPubkeyUnits(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:136 (opens new window)
# maxCallDepth
• get
maxCallDepth(): bigint
# Returns
bigint
# Defined in
internal.d.ts:133 (opens new window)
• set
maxCallDepth(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:132 (opens new window)
# maxCpiInstructionSize
• get
maxCpiInstructionSize(): bigint
# Returns
bigint
# Defined in
internal.d.ts:139 (opens new window)
• set
maxCpiInstructionSize(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:138 (opens new window)
# maxInstructionStackDepth
• get
maxInstructionStackDepth(): bigint
# Returns
bigint
# Defined in
internal.d.ts:123 (opens new window)
• set
maxInstructionStackDepth(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:122 (opens new window)
# maxInstructionTraceLength
• get
maxInstructionTraceLength(): bigint
# Returns
bigint
# Defined in
internal.d.ts:125 (opens new window)
• set
maxInstructionTraceLength(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:124 (opens new window)
# memOpBaseCost
• get
memOpBaseCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:177 (opens new window)
• set
memOpBaseCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:176 (opens new window)
# poseidonCostCoefficientA
• get
poseidonCostCoefficientA(): bigint
# Returns
bigint
# Defined in
internal.d.ts:191 (opens new window)
• set
poseidonCostCoefficientA(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:190 (opens new window)
# poseidonCostCoefficientC
• get
poseidonCostCoefficientC(): bigint
# Returns
bigint
# Defined in
internal.d.ts:193 (opens new window)
• set
poseidonCostCoefficientC(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:192 (opens new window)
# secp256K1RecoverCost
• get
secp256K1RecoverCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:145 (opens new window)
• set
secp256K1RecoverCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:144 (opens new window)
# sha256BaseCost
• get
sha256BaseCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:127 (opens new window)
• set
sha256BaseCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:126 (opens new window)
# sha256ByteCost
• get
sha256ByteCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:129 (opens new window)
• set
sha256ByteCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:128 (opens new window)
# sha256MaxSlices
• get
sha256MaxSlices(): bigint
# Returns
bigint
# Defined in
internal.d.ts:131 (opens new window)
• set
sha256MaxSlices(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:130 (opens new window)
# stackFrameSize
• get
stackFrameSize(): bigint
# Returns
bigint
# Defined in
internal.d.ts:135 (opens new window)
• set
stackFrameSize(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:134 (opens new window)
# syscallBaseCost
• get
syscallBaseCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:147 (opens new window)
• set
syscallBaseCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void
# Defined in
internal.d.ts:146 (opens new window)
# sysvarBaseCost
• get
sysvarBaseCost(): bigint
# Returns
bigint
# Defined in
internal.d.ts:143 (opens new window)
• set
sysvarBaseCost(val
): void
# Parameters
Name | Type |
---|---|
val | bigint |
# Returns
void