644c50701180038aeee61db2f17f4d83ffa1d97953d021db7dfad54837446b47
Contract interface exposed by this module
Contract: arena_chips
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": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"LogFull": []
}
]
}
- "balance_of"
Parameter:
"<AccountAddress>"
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"LogFull": []
}
]
}
Return value:
"<UInt64>"
- "grant"
Parameter:
{
"account": "<AccountAddress>",
"chips": "<UInt64>"
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"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>",
"seats": [
[
"<AccountAddress>",
"<UInt64>"
]
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"LogFull": []
}
]
}
- "refund"
Parameter:
"<UInt64>"
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"LogFull": []
}
]
}
- "set_roles"
Parameter:
{
"operator": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"payees": [
"<AccountAddress>"
],
"submitters": [
"<AccountAddress>"
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"LogFull": []
}
]
}
- "settle"
Parameter:
{
"attached": "<UInt64>",
"payouts": [
[
"<AccountAddress>",
"<UInt64>"
]
],
"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": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"LogFull": []
}
]
}
- "view_roles"
Return value:
{
"admin": "<AccountAddress>",
"operator": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"payees": [
"<AccountAddress>"
],
"submitters": [
"<AccountAddress>"
]
}
- "view_round"
Parameter:
"<UInt64>"
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"Unauthorized": []
},
{
"AlreadyOpened": []
},
{
"UnknownRound": []
},
{
"RoundClosed": []
},
{
"DuplicateSeat": []
},
{
"Insufficient": []
},
{
"Zero": []
},
{
"PayoutMismatch": []
},
{
"DuplicatePayee": []
},
{
"NotAllowedPayee": []
},
{
"HouseInsufficient": []
},
{
"AlreadyAnchored": []
},
{
"Overflow": []
},
{
"LogFull": []
}
]
}
Return value:
{
"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": [
"<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>"
]
]
}
]
},
"stakes": [
[
"<AccountAddress>",
"<UInt64>"
]
],
"status": {
"Enum": [
{
"Open": []
},
{
"Settled": []
},
{
"Refunded": []
}
]
},
"total": "<UInt64>",
"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": [
{
"Granted": [
{
"account": "<AccountAddress>",
"by": "<AccountAddress>",
"chips": "<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>",
"seats": [
[
"<AccountAddress>",
"<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": [
{
"attached": "<UInt64>",
"paid_out": "<UInt64>",
"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": "<UInt64>",
"round": "<UInt64>"
}
]
},
{
"RolesSet": [
{
"operator": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
},
"payees": [
"<AccountAddress>"
],
"submitters": [
"<AccountAddress>"
]
}
]
}
]
}