Module Tezos_raw_protocol_alpha.Clst_storage

get_storage ctxt returns the storage retrieved and parsed from the context. It doesn't fail if the storage didn't exist in the context, i.e. the CLST contract has not been originated.

get_balance_from_storage ctxt storage address returns the balance from the given address, extracted from the CLST contract's storage. Returns `zero_n` if no balance has been found, following FA2.1 specification.

get_balance context contract retrieves the balance of a given contract on the CLST contract. This is a combination of `get_storage` and `get_balance_from_storage`.

set_balance_from_storage ctxt storage address amount updates the balance of the given address to amount.