MetadataStorage

Code

quipuswap-core/MetadataStorage.ligo at master · madfish-solutions/quipuswap-core
GitHub

State-Changing Functions

update_owners(add, owner)

1
(pair %update_owners (bool %add) (address %owner))
Copied!
Adds or removes contract owners. Can be called by any of the owners.
Parameter
Type
Description
owner
address
Address of the candidate to check
add
bool
Flag that determines whether the owner should be added or removed

update_storage(new_metadata)

1
(big_map %update_storage string bytes)
Copied!
Updates metadata. Only callable by any of the owners.
Parameter
Type
Description
metadata
big_map(string, bytes)
Map with new metadata

Read-Only Functions

get_metadata(receiver) -> metadata

1
(contract %get_metadata (big_map string bytes))
Copied!
Reads and sends metadata to the contract.
Type
Description
metadata
contract(big_map(string, bytes))
Contract that receives the data

API

1
parameter (or
2
(or (contract %get_metadata (big_map string bytes))
3
(pair %update_owners (bool %add) (address %owner)))
4
(big_map %update_storage string bytes));
Copied!
Last modified 6mo ago