cb5cc75f837b7e0da6e14a27f692fbce564f9c45003b84c33354d3aac105ca6a
Contract interface exposed by this module
Contract: arena_escrow
Init:
Parameter:
{
"admin": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"operator": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"payees": [
"<AccountAddress>"
],
"submitters": [
"<AccountAddress>"
]
}
Methods:
- "anchor"
Parameter:
{
"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>"
],
"round": "<UInt64>",
"turn": "<UInt8>"
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"OnlyAccount": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"ZeroDeposit": []
},
{
"PayoutMismatch": []
},
{
"TransferFailed": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"AlreadyOpened": []
},
{
"NotOpened": []
},
{
"AlreadyAnchored": []
},
{
"LogFull": []
}
]
}
- "deposit"
Parameter:
{
"round": "<UInt64>"
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"OnlyAccount": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"ZeroDeposit": []
},
{
"PayoutMismatch": []
},
{
"TransferFailed": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"AlreadyOpened": []
},
{
"NotOpened": []
},
{
"AlreadyAnchored": []
},
{
"LogFull": []
}
]
}
- "open_round"
Parameter:
{
"anchor": [
"<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>"
],
"round": "<UInt64>"
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"OnlyAccount": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"ZeroDeposit": []
},
{
"PayoutMismatch": []
},
{
"TransferFailed": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"AlreadyOpened": []
},
{
"NotOpened": []
},
{
"AlreadyAnchored": []
},
{
"LogFull": []
}
]
}
- "refund"
Parameter:
"<UInt64>"
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"OnlyAccount": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"ZeroDeposit": []
},
{
"PayoutMismatch": []
},
{
"TransferFailed": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"AlreadyOpened": []
},
{
"NotOpened": []
},
{
"AlreadyAnchored": []
},
{
"LogFull": []
}
]
}
- "set_roles"
Parameter:
{
"operator": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"payees": [
"<AccountAddress>"
],
"submitters": [
"<AccountAddress>"
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"OnlyAccount": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"ZeroDeposit": []
},
{
"PayoutMismatch": []
},
{
"TransferFailed": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"AlreadyOpened": []
},
{
"NotOpened": []
},
{
"AlreadyAnchored": []
},
{
"LogFull": []
}
]
}
- "settle"
Parameter:
{
"payouts": [
[
"<AccountAddress>",
"<Amount in microCCD>"
]
],
"reveal_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>"
],
"round": "<UInt64>",
"transcript_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>"
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"OnlyAccount": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"ZeroDeposit": []
},
{
"PayoutMismatch": []
},
{
"TransferFailed": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"AlreadyOpened": []
},
{
"NotOpened": []
},
{
"AlreadyAnchored": []
},
{
"LogFull": []
}
]
}
- "view_admin"
Return value:
"<AccountAddress>"
- "view_roles"
Return value:
{
"admin": "<AccountAddress>",
"operator": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"payees": [
"<AccountAddress>"
],
"submitters": [
"<AccountAddress>"
]
}
- "view_round"
Parameter:
"<UInt64>"
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"OnlyAccount": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"ZeroDeposit": []
},
{
"PayoutMismatch": []
},
{
"TransferFailed": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"AlreadyOpened": []
},
{
"NotOpened": []
},
{
"AlreadyAnchored": []
},
{
"LogFull": []
}
]
}
Return value:
{
"deposits": [
[
"<AccountAddress>",
"<Amount in microCCD>"
]
],
"mid_anchor": {
"Enum": [
{
"None": []
},
{
"Some": [
[
"<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>",
"<UInt8>"
]
]
]
}
]
},
"open_anchor": {
"Enum": [
{
"None": []
},
{
"Some": [
[
"<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>"
]
]
}
]
},
"reveal_hash": {
"Enum": [
{
"None": []
},
{
"Some": [
[
"<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>"
]
]
}
]
},
"status": {
"Enum": [
{
"Open": []
},
{
"Settled": []
},
{
"Refunded": []
}
]
},
"total": "<Amount in microCCD>",
"transcript_hash": {
"Enum": [
{
"None": []
},
{
"Some": [
[
"<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": [
{
"Deposited": [
{
"account": "<AccountAddress>",
"amount": "<Amount in microCCD>",
"round": "<UInt64>"
}
]
},
{
"Opened": [
{
"anchor": [
"<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>"
],
"round": "<UInt64>"
}
]
},
{
"Anchored": [
{
"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>"
],
"round": "<UInt64>",
"turn": "<UInt8>"
}
]
},
{
"Settled": [
{
"paid_out": "<Amount in microCCD>",
"reveal_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>"
],
"round": "<UInt64>",
"transcript_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>"
]
}
]
},
{
"Refunded": [
{
"returned": "<Amount in microCCD>",
"round": "<UInt64>"
}
]
},
{
"RolesSet": [
{
"operator": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"payees": [
"<AccountAddress>"
],
"submitters": [
"<AccountAddress>"
]
}
]
}
]
}