08f71acbd16cdaca1e4184dbbc59b773ffc8f93c76fe2e56bfbd50bfcbee9d1d
Contract interface exposed by this module
Contract: CIS-8
Init:
Parameter:
{
"admin": "<AccountAddress>",
"genesis_hash": [
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>"
]
}
Methods:
- "getAdmin"
Return value:
{
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
}
- "ownerOfKey"
Parameter:
{
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
}
}
Return value:
{
"Enum": [
{
"None": []
},
{
"Some": [
{
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
},
"last_updated": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"metadata": [
{
"key": "<String>",
"value": "<String>"
}
],
"owner": "<AccountAddress>",
"proof_scheme": "<String>",
"status": {
"Enum": [
{
"Active": []
},
{
"Revoked": []
}
]
}
}
]
}
]
}
- "registerExternalKey"
Parameter:
{
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
},
"metadata": [
{
"key": "<String>",
"value": "<String>"
}
],
"proof": {
"scheme": "<String>",
"signature": [
"<UInt8>"
]
}
}
- "revoke"
Parameter:
{
"identifier": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
}
}
- "supports"
Parameter:
[
"<String>"
]
Return value:
[
{
"Enum": [
{
"NoSupport": []
},
{
"Support": []
},
{
"SupportBy": [
[
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
]
}
]
}
]
- "transferAdmin"
Parameter:
{
"new_admin": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
}
}
- "updateMetadata"
Parameter:
{
"identifier": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
},
"metadata": [
{
"key": "<String>",
"value": "<String>"
}
]
}
- "upgrade"
Parameter:
{
"migrate": {
"Enum": [
{
"None": []
},
{
"Some": [
[
"<String>",
"<String with lowercase hex>"
]
]
}
]
},
"new_module": "<String of size 64 containing lowercase hex characters.>"
}
- "view"
Return value:
{
"admin": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"by_key": [
{
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
},
"last_updated": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"metadata": [
{
"key": "<String>",
"value": "<String>"
}
],
"owner": "<AccountAddress>",
"proof_scheme": "<String>",
"status": {
"Enum": [
{
"Active": []
},
{
"Revoked": []
}
]
}
}
],
"genesis_hash": [
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>"
]
}
Event:
{
"Enum": [
{
"ExternalKeyRegistered": [
{
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
},
"metadata": [
{
"key": "<String>",
"value": "<String>"
}
],
"owner": "<AccountAddress>",
"proof_scheme": "<String>"
}
]
},
{
"ExternalKeyRevoked": [
{
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
},
"owner": "<AccountAddress>"
}
]
},
{
"UpdateMetadata": [
{
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
},
"metadata": [
{
"key": "<String>",
"value": "<String>"
}
]
}
]
},
{
"Upgraded": [
{
"new_module": "<String of size 64 containing lowercase hex characters.>",
"upgraded_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
]
},
{
"AdminTransferred": [
{
"new": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"previous": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"updated_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
]
}
]
}