Skip to content

Instantly share code, notes, and snippets.

@agar3s
Created December 1, 2021 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agar3s/9f27ea31ed2ccbd1ae6d30f7e5537dd5 to your computer and use it in GitHub Desktop.
Save agar3s/9f27ea31ed2ccbd1ae6d30f7e5537dd5 to your computer and use it in GitHub Desktop.
the bug adventure show - testnet smart contract abi
[
{
"inputs": [
{
"internalType": "uint8[]",
"name": "_global_accessories",
"type": "uint8[]"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
}
],
"name": "linePeeked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"indexed": false,
"internalType": "uint24",
"name": "points",
"type": "uint24"
}
],
"name": "pointsRewarded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"indexed": false,
"internalType": "uint32",
"name": "token_id",
"type": "uint32"
}
],
"name": "tokenRewarded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"indexed": false,
"internalType": "uint24",
"name": "turn",
"type": "uint24"
}
],
"name": "turnAssigned",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "uuid",
"type": "string"
},
{
"indexed": false,
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
}
],
"name": "userAllocated",
"type": "event"
},
{
"inputs": [],
"name": "_baseURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"name": "accessories_prices",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"name": "accessories_prices_points",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
}
],
"name": "addToLine",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "address_user",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "uuid",
"type": "string"
},
{
"internalType": "bytes32",
"name": "unlock_key",
"type": "bytes32"
}
],
"name": "allocateUser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "accessory_id",
"type": "uint8"
}
],
"name": "buyAccessory",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "accessory_id",
"type": "uint8"
}
],
"name": "buyAccessoryWithPoints",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "first_in_line",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "game_tokens",
"outputs": [
{
"internalType": "string",
"name": "uri_metadata",
"type": "string"
},
{
"internalType": "uint24",
"name": "owner",
"type": "uint24"
},
{
"internalType": "bool",
"name": "migrated",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
}
],
"name": "getAccessoriesForUser",
"outputs": [
{
"internalType": "uint8[]",
"name": "",
"type": "uint8[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
}
],
"name": "getGameTokens",
"outputs": [
{
"components": [
{
"internalType": "string",
"name": "uri_metadata",
"type": "string"
},
{
"internalType": "uint24",
"name": "owner",
"type": "uint24"
},
{
"internalType": "bool",
"name": "migrated",
"type": "bool"
}
],
"internalType": "struct BugShow.GameToken[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getGlobalAccessories",
"outputs": [
{
"internalType": "uint8[]",
"name": "",
"type": "uint8[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLine",
"outputs": [
{
"internalType": "uint24[]",
"name": "",
"type": "uint24[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
}
],
"name": "getUserObject",
"outputs": [
{
"components": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"internalType": "address",
"name": "blockchain_address",
"type": "address"
},
{
"internalType": "bytes32",
"name": "unlock_key",
"type": "bytes32"
},
{
"internalType": "uint8[]",
"name": "accessories",
"type": "uint8[]"
},
{
"internalType": "uint32[]",
"name": "game_tokens",
"type": "uint32[]"
},
{
"internalType": "uint24",
"name": "points",
"type": "uint24"
},
{
"internalType": "bool",
"name": "claimed",
"type": "bool"
},
{
"internalType": "uint24",
"name": "turn",
"type": "uint24"
}
],
"internalType": "struct BugShow.GameUser",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "global_accessories",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"internalType": "uint8",
"name": "accessory_id",
"type": "uint8"
}
],
"name": "hasAccessory",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "last_in_line",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "last_turn",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"name": "line",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "line_length",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"name": "line_turn",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address payable",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "peek",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "premium_accessories",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "price_to_unlock_user",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "accessory_id",
"type": "uint8"
}
],
"name": "removeAccessoryForPublic",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"internalType": "string",
"name": "uri_metadata",
"type": "string"
}
],
"name": "rewardGameToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"internalType": "uint24",
"name": "points",
"type": "uint24"
}
],
"name": "rewardPoints",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "uri",
"type": "string"
}
],
"name": "setBaseURI",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "_max_line_capacity",
"type": "uint16"
}
],
"name": "setMaxLineCapacity",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "_max_points_rewards",
"type": "uint16"
}
],
"name": "setMaxPointsReward",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "accessory_id",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "uint24",
"name": "points_price",
"type": "uint24"
}
],
"name": "setPriceForAccessory",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
}
],
"name": "setPriceToUnlockUser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"internalType": "string",
"name": "secret",
"type": "string"
}
],
"name": "takeUserOwnership",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "test",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
}
],
"name": "turnsToPlay",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "accessory_id",
"type": "uint8"
}
],
"name": "unlockAccessoryForPublic",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "user_id",
"type": "uint24"
},
{
"internalType": "uint8",
"name": "accessory_id",
"type": "uint8"
}
],
"name": "unlockAccessoryForUser",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"name": "user_address",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"name": "user_points",
"outputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24",
"name": "",
"type": "uint24"
}
],
"name": "user_unlock",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment