Module-level declarations
Operations
Link copied to clipboard
@mount("ft4.test.lock_asset")
operation lock_asset(type: text, account_id: byte_array, asset_id: byte_array, amount: big_integer)
Operation to lock a specific amount of a specific asset from a specific account.
Link copied to clipboard
@mount("ft4.test.register_asset")
operation register_asset(name: text, symbol: text, decimals: integer, issuing_blockchain_rid: byte_array, icon_url: text)
Operation to register a new asset on the blockchain with the provided info. Note however that the initial balance of this asset is alway 0 so to actually use this newly created asset, you will have to mint some of it.
Link copied to clipboard
@mount("ft4.test.unlock_asset")
operation unlock_asset(type: text, account_id: byte_array, asset_id: byte_array, amount: big_integer)
Operation to unlock a specific amount of a specific asset from a specific account which was previously locked using the lock(...)
operation.