Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Schedule​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      Gas getGrowMemCost()
      Gas cost of a growing memory by single page.
      U32 getMaxMemoryPages()
      What is the maximal memory pages amount is allowed to have for a contract.
      U32 getMaxStackHeight()
      How tall the stack is allowed to grow?
      Gas getPutCodePerByteCost()
      Cost of putting a byte of code into the storage.
      Gas getRegularOpCost()
      Gas cost of a regular operation.
      Gas getReturnDataPerByteCost()
      Gas cost per one byte returned.
      Gas getSandboxDataReadCost()
      Gas cost per one byte read from the sandbox memory.
      Gas getSandboxDataWriteCost()
      Gas cost per one byte written to the sandbox memory.
      U32 getVersion()
      Version of the schedule.
      • 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
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • Schedule

        public Schedule​(java.lang.Object value)
    • 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.