Class Contract


  • public class Contract
    extends java.lang.Object
    Methods and type signatures supported by a contract.
    Since:
    0.0.1
    • Constructor Summary

      Constructors 
      Constructor Description
      Contract()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.List<EntryPoint> getEntryPoints()
      entry_points(Array) - A list of entry points.
      java.util.List<NamedKey> getNamedKeys()
      named_keys(Array) - A list of named keys.
      java.lang.String getPackageHash()
      contract_package_hash(String) - The hash address of the contract package.
      java.lang.String getProtocolVersion()
      protocol_version(String) - ?
      java.lang.String getWasmHash()
      contract_wasm_hash(String) The hash address of the contract wasm.
      int hashCode()  
      void setEntryPoints​(java.util.List<EntryPoint> entryPoints)
      entry_points(Array) - A list of entry points.
      void setNamedKeys​(java.util.List<NamedKey> namedKeys)
      named_keys(Array) - A list of named keys.
      void setPackageHash​(java.lang.String packageHash)
      contract_package_hash(String) - The hash address of the contract package.
      void setProtocolVersion​(java.lang.String protocolVersion)
      protocol_version(String) - ?
      void setWasmHash​(java.lang.String wasmHash)
      contract_wasm_hash(String) The hash address of the contract wasm.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Contract

        public Contract()
    • Method Detail

      • getPackageHash

        public java.lang.String getPackageHash()
        contract_package_hash(String) - The hash address of the contract package.
      • getWasmHash

        public java.lang.String getWasmHash()
        contract_wasm_hash(String) The hash address of the contract wasm.
      • getEntryPoints

        public java.util.List<EntryPoint> getEntryPoints()
        entry_points(Array) - A list of entry points.
      • getNamedKeys

        public java.util.List<NamedKey> getNamedKeys()
        named_keys(Array) - A list of named keys.
      • getProtocolVersion

        public java.lang.String getProtocolVersion()
        protocol_version(String) - ?
      • setPackageHash

        public void setPackageHash​(java.lang.String packageHash)
        contract_package_hash(String) - The hash address of the contract package.
      • setWasmHash

        public void setWasmHash​(java.lang.String wasmHash)
        contract_wasm_hash(String) The hash address of the contract wasm.
      • setEntryPoints

        public void setEntryPoints​(java.util.List<EntryPoint> entryPoints)
        entry_points(Array) - A list of entry points.
      • setNamedKeys

        public void setNamedKeys​(java.util.List<NamedKey> namedKeys)
        named_keys(Array) - A list of named keys.
      • setProtocolVersion

        public void setProtocolVersion​(java.lang.String protocolVersion)
        protocol_version(String) - ?
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object