Package org.polkadot.types.type
Class Schedule
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,Codec>
-
- org.polkadot.types.codec.Struct
-
- org.polkadot.types.type.Schedule
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,Codec
public class Schedule extends Struct
Definition of the cost schedule and other parameterizations for wasm vm- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Schedule(java.lang.Object value)
-
Method Summary
Modifier and Type Method Description GasgetGrowMemCost()Gas cost of a growing memory by single page.U32getMaxMemoryPages()What is the maximal memory pages amount is allowed to have for a contract.U32getMaxStackHeight()How tall the stack is allowed to grow?GasgetPutCodePerByteCost()Cost of putting a byte of code into the storage.GasgetRegularOpCost()Gas cost of a regular operation.GasgetReturnDataPerByteCost()Gas cost per one byte returned.GasgetSandboxDataReadCost()Gas cost per one byte read from the sandbox memory.GasgetSandboxDataWriteCost()Gas cost per one byte written to the sandbox memory.U32getVersion()Version of the schedule.-
Methods inherited from class org.polkadot.types.codec.Struct
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, with
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
getGrowMemCost
public Gas getGrowMemCost()
Gas cost of a growing memory by single page.
-
getMaxMemoryPages
public U32 getMaxMemoryPages()
What is the maximal memory pages amount is allowed to have for a contract.
-
getMaxStackHeight
public U32 getMaxStackHeight()
How tall the stack is allowed to grow?
-
getPutCodePerByteCost
public Gas getPutCodePerByteCost()
Cost of putting a byte of code into the storage.
-
getRegularOpCost
public Gas getRegularOpCost()
Gas cost of a regular operation.
-
getReturnDataPerByteCost
public Gas getReturnDataPerByteCost()
Gas cost per one byte returned.
-
getSandboxDataReadCost
public Gas getSandboxDataReadCost()
Gas cost per one byte read from the sandbox memory.
-
getSandboxDataWriteCost
public Gas getSandboxDataWriteCost()
Gas cost per one byte written to the sandbox memory.
-
getVersion
public U32 getVersion()
Version of the schedule.
-
-