Package 

Interface StateModule

  • All Implemented Interfaces:

    
    public interface StateModule
    
                        

    Interface for getting Runtime metadata and fetching Storage Items

    • Constructor Detail

    • Method Detail

      • fetchStorageItem

         abstract <T extends Any> T fetchStorageItem(RuntimeModuleStorageItem item, ByteArrayConvertible key, RuntimeModuleStorage storage, KClass<T> type)

        Fetches storage item

        Parameters:
        item - an item to be hashed to get a key which can be used as RpcRequest's parameters
        key - A key to be used when hashing in a storage hasher.
        storage - storage for which a storage hasher is created, which hashes the item
      • fetchStorageItem

         abstract <T extends Any> T fetchStorageItem(RuntimeModuleStorageItem item, List<ByteArrayConvertible> keys, RuntimeModuleStorage storage, KClass<T> type)

        Fetches storage item

        Parameters:
        item - an item to be hashed to get a key which can be used as RpcRequest's parameters
        keys - Keys to be used when hashing in a storage hasher.
        storage - storage for which a storage hasher is created, which hashes the item