morley-upgradeable-0.3: Upgradeability infrastructure based on Morley.
Safe HaskellNone
LanguageHaskell2010

Lorentz.Contracts.Upgradeable.Client

Description

Operations related to upgradeable contracts.

Synopsis

Documentation

data UStoreElemRef Source #

Constructors

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.