Safe Haskell | None |
---|---|
Language | Haskell2010 |
Operations related to upgradeable contracts.
Synopsis
- data UStoreValueUnpackFailed = UStoreValueUnpackFailed ByteString Text
- data UStoreElemRef
- = UrField MText
- | UrSubmap MText (SomeConstrainedValue PackedValScope')
- readContractUStore :: forall v m. (UnpackedValScope v, HasTezosRpc m) => Address -> UStoreElemRef -> m (Value v)
- readContractUStoreEntrypoint :: HasTezosRpc m => Address -> MText -> m [ExpandedOp]
Documentation
data UStoreValueUnpackFailed Source #
Failed to code UStore value to given type.
Instances
data UStoreElemRef Source #
UrField MText | |
UrSubmap MText (SomeConstrainedValue PackedValScope') |
readContractUStore :: forall v m. (UnpackedValScope v, HasTezosRpc m) => Address -> UStoreElemRef -> m (Value v) Source #
Read UStore
value of given contract.
This essentially requires contract having only one big_map bytes bytes
in storage.
readContractUStoreEntrypoint :: HasTezosRpc m => Address -> MText -> m [ExpandedOp] Source #
Read an UStore
entrypoint. For contracts which are filled with
storage-driven approach.
Unlike readContractUStore
, here we don't need to know exact type of
value (lambda) in order to unpack it, thus returning code in untyped
representation.