-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgameABI.json
1 lines (1 loc) · 6.93 KB
/
gameABI.json
1
[ { "inputs": [ { "internalType": "address", "name": "_token", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "gameID", "type": "uint256" } ], "name": "BidReceived", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "gameID", "type": "uint256" } ], "name": "GameCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "gameID", "type": "uint256" }, { "indexed": false, "internalType": "bytes32", "name": "winningHash", "type": "bytes32" } ], "name": "GameInitialized", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "gameID", "type": "uint256" } ], "name": "GameStarted", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "_newAdmin", "type": "address" } ], "name": "addAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_token", "type": "address" } ], "name": "addSupportedToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" }, { "internalType": "uint8", "name": "_tokenAmount", "type": "uint8" } ], "name": "bidGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint8", "name": "_maxCoin", "type": "uint8" } ], "name": "changeMax", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint8", "name": "_minCoin", "type": "uint8" } ], "name": "changeMin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" }, { "internalType": "uint16", "name": "_tippingAmount", "type": "uint16" }, { "internalType": "bytes32", "name": "_randomHash", "type": "bytes32" } ], "name": "endGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "gameBalances", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "gameInfos", "outputs": [ { "internalType": "address", "name": "bidToken", "type": "address" }, { "internalType": "uint256", "name": "bidIncrement", "type": "uint256" }, { "internalType": "uint8", "name": "startingCoinAmount", "type": "uint8" }, { "internalType": "uint8", "name": "playerCount", "type": "uint8" }, { "internalType": "uint256", "name": "minimumDeposit", "type": "uint256" }, { "internalType": "bytes32", "name": "winningHash", "type": "bytes32" }, { "internalType": "uint16", "name": "totalBid", "type": "uint16" }, { "internalType": "uint16", "name": "turn", "type": "uint16" }, { "internalType": "bool", "name": "isEnded", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "gamePlayers", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" } ], "name": "getCurrentPlayer", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" } ], "name": "getGameRequirements", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" }, { "internalType": "string", "name": "", "type": "string" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_player", "type": "address" }, { "internalType": "uint256", "name": "_gameID", "type": "uint256" } ], "name": "getPlayerOrder", "outputs": [ { "internalType": "uint256", "name": "order", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" } ], "name": "getPlayers", "outputs": [ { "internalType": "address[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" }, { "internalType": "bytes32", "name": "_winningHash", "type": "bytes32" } ], "name": "initGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "isAdmin", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" } ], "name": "joinGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_gameID", "type": "uint256" } ], "name": "leaveGame", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "maxCoin", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "minCoin", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_bidToken", "type": "address" }, { "internalType": "uint256", "name": "_bidIncrement", "type": "uint256" }, { "internalType": "uint8", "name": "_playerCount", "type": "uint8" }, { "internalType": "uint8", "name": "_startingCoinAmount", "type": "uint8" } ], "name": "newGame", "outputs": [ { "internalType": "uint256", "name": "currentGameID", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "nextGameID", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_newAdmin", "type": "address" } ], "name": "removeAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_token", "type": "address" } ], "name": "removeSupportedToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "supportedTokens", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" } ]