b08fcfda4d0fe4b1ea49105fd9bff8461eba0fbc6ec143d24d1cb397d65a8864
Contract interface exposed by this module
Contract: cis5_wallet
Init:
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Methods:
- "ccdBalanceOf"
Parameter:
[
"<String of size 64 containing lowercase hex characters.>"
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
"<Amount in microCCD>"
]
- "ccdBalanceOfAccount"
Parameter:
"<String of size 64 containing lowercase hex characters.>"
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
"<Amount in microCCD>"
- "cis2BalanceOf"
Parameter:
[
{
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"public_key": "<String of size 64 containing lowercase hex characters.>",
"token_id": "<String with lowercase hex>"
}
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
"<String of size at most 74 containing an unsigned integer.>"
]
- "cis2TokensOfAccount"
Parameter:
{
"public_key": "<String of size 64 containing lowercase hex characters.>"
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
{
"amount": "<String of size at most 74 containing an unsigned integer.>",
"token_contract": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_id": "<String with lowercase hex>"
}
]
- "depositCcd"
Parameter:
"<String of size 64 containing lowercase hex characters.>"
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
- "depositCis2Tokens"
Parameter:
{
"amount": "<String of size at most 74 containing an unsigned integer.>",
"data": "<String with lowercase hex>",
"from": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
},
"token_id": "<String with lowercase hex>"
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
- "getCcdTransferMessageHash"
Parameter:
{
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": "<Amount in microCCD>",
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_transfers": [
{
"to": "<String of size 64 containing lowercase hex characters.>",
"transfer_amount": "<Amount in microCCD>"
}
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
"<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>"
]
- "getCcdWithdrawMessageHash"
Parameter:
{
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": "<Amount in microCCD>",
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_withdraws": [
{
"data": "<String with lowercase hex>",
"to": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"<String>"
]
}
]
},
"withdraw_amount": "<Amount in microCCD>"
}
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
"<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>"
]
- "getCis2TransferMessageHash"
Parameter:
{
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
},
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_transfers": [
{
"to": "<String of size 64 containing lowercase hex characters.>",
"transfer_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
}
}
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
"<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>"
]
- "getCis2WithdrawMessageHash"
Parameter:
{
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
},
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_withdraws": [
{
"data": "<String with lowercase hex>",
"to": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"<String>"
]
}
]
},
"withdraw_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
}
}
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
"<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>"
]
- "nonceOf"
Parameter:
[
"<String of size 64 containing lowercase hex characters.>"
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
"<UInt64>"
]
- "setImplementors"
Parameter:
{
"id": "<String>",
"implementors": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
- "supports"
Parameter:
[
"<String>"
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Return value:
[
{
"Enum": [
{
"NoSupport": []
},
{
"Support": []
},
{
"SupportBy": [
[
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
]
}
]
}
]
- "transferCcd"
Parameter:
[
{
"message": {
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": "<Amount in microCCD>",
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_transfers": [
{
"to": "<String of size 64 containing lowercase hex characters.>",
"transfer_amount": "<Amount in microCCD>"
}
]
},
"signature": "<String of size 128 containing lowercase hex characters.>",
"signer": "<String of size 64 containing lowercase hex characters.>"
}
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
- "transferCis2Tokens"
Parameter:
[
{
"message": {
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
},
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_transfers": [
{
"to": "<String of size 64 containing lowercase hex characters.>",
"transfer_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
}
}
]
},
"signature": "<String of size 128 containing lowercase hex characters.>",
"signer": "<String of size 64 containing lowercase hex characters.>"
}
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
- "withdrawCcd"
Parameter:
[
{
"message": {
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": "<Amount in microCCD>",
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_withdraws": [
{
"data": "<String with lowercase hex>",
"to": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"<String>"
]
}
]
},
"withdraw_amount": "<Amount in microCCD>"
}
]
},
"signature": "<String of size 128 containing lowercase hex characters.>",
"signer": "<String of size 64 containing lowercase hex characters.>"
}
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
- "withdrawCis2Tokens"
Parameter:
[
{
"message": {
"entry_point": "<String>",
"expiry_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"nonce": "<UInt64>",
"service_fee_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
},
"service_fee_recipient": "<String of size 64 containing lowercase hex characters.>",
"simple_withdraws": [
{
"data": "<String with lowercase hex>",
"to": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"<String>"
]
}
]
},
"withdraw_amount": {
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
}
}
]
},
"signature": "<String of size 128 containing lowercase hex characters.>",
"signer": "<String of size 64 containing lowercase hex characters.>"
}
]
Error:
{
"Enum": [
{
"ParseParams": []
},
{
"LogFull": []
},
{
"LogMalformed": []
},
{
"OnlyContract": []
},
{
"InsufficientFunds": []
},
{
"WrongSignature": []
},
{
"NonceMismatch": []
},
{
"Expired": []
},
{
"WrongEntryPoint": []
},
{
"UnAuthorized": []
},
{
"Overflow": []
},
{
"InvalidData": []
}
]
}
Event:
{
"Enum": [
{
"TransferCis2Tokens": [
{
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"from": "<String of size 64 containing lowercase hex characters.>",
"to": "<String of size 64 containing lowercase hex characters.>",
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
}
]
},
{
"TransferCcd": [
{
"ccd_amount": "<Amount in microCCD>",
"from": "<String of size 64 containing lowercase hex characters.>",
"to": "<String of size 64 containing lowercase hex characters.>"
}
]
},
{
"WithdrawCis2Tokens": [
{
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"from": "<String of size 64 containing lowercase hex characters.>",
"to": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
},
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
}
]
},
{
"WithdrawCcd": [
{
"ccd_amount": "<Amount in microCCD>",
"from": "<String of size 64 containing lowercase hex characters.>",
"to": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
}
}
]
},
{
"DepositCis2Tokens": [
{
"cis2_token_contract_address": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"from": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
},
"to": "<String of size 64 containing lowercase hex characters.>",
"token_amount": "<String of size at most 74 containing an unsigned integer.>",
"token_id": "<String with lowercase hex>"
}
]
},
{
"DepositCcd": [
{
"ccd_amount": "<Amount in microCCD>",
"from": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
},
"to": "<String of size 64 containing lowercase hex characters.>"
}
]
},
{
"Nonce": [
{
"nonce": "<UInt64>",
"public_key": "<String of size 64 containing lowercase hex characters.>"
}
]
}
]
}