updateHandler(sender, contract, currency, handlers)
Feature
Return raw operation for updating handlers of contract. The handlers of contract has some right to the contract. Note : Can check the handlers of contract using getContractInfo()
Parameters
string sender, // owner of contract,
string contract address,
string currencyID,
array handlers,
Return Value
object update operator operation
The operations executed by operators
NFT
register-model (
nft.registerModel())update-model-config (
nft.updateModelConfig())
Note: The operator doesn’t have permission to execute mint. Only the owner of contract and whitelist can mint.
Credential
register-model (
credential.registerModel())add-template (
credential.addTemplate())issue (
credential.issue())revoke (
credential.revoke())
Timestamp
register-model (
timestamp.registerModel())issue (
timestamp.(())
Token
register-model (
token.registerModel())mint (
token.mint())
Point
register-model (
point.registerModel())mint (
point.mint())
DAO
register-model (
dao.registerModel())update-model-config (
dao.updateModelConfig())
example
Last updated