@azuro-org/abis
Version:
ABIs for Azuro protocol smart-contracts
457 lines (456 loc) • 8.74 kB
JSON
[
{
"inputs": [],
"name": "BetAlreadyPaid",
"type": "error"
},
{
"inputs": [],
"name": "BetAlreadyResolved",
"type": "error"
},
{
"inputs": [],
"name": "BetNotOwned",
"type": "error"
},
{
"inputs": [],
"name": "BetOwnerSignatureExpired",
"type": "error"
},
{
"inputs": [],
"name": "BettingContractNotAllowed",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientBalance",
"type": "error"
},
{
"inputs": [],
"name": "InvalidBetOwnerSignature",
"type": "error"
},
{
"inputs": [],
"name": "InvalidChainId",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOdds",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOddsCount",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOracleSignature",
"type": "error"
},
{
"inputs": [],
"name": "NothingChanged",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "bettingContract",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "betOwner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "betId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint64",
"name": "odds",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint256",
"name": "payout",
"type": "uint256"
}
],
"name": "BetCashedOut",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "bettingContract",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "betToken",
"type": "address"
}
],
"name": "BettingContractUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "isOracle",
"type": "bool"
}
],
"name": "OracleUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "betTokens",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "betOwner",
"type": "address"
},
{
"components": [
{
"internalType": "string",
"name": "attention",
"type": "string"
},
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint256",
"name": "betId",
"type": "uint256"
},
{
"internalType": "address",
"name": "bettingContract",
"type": "address"
},
{
"internalType": "uint64",
"name": "minOdds",
"type": "uint64"
}
],
"internalType": "struct ICashOut.CashOutItem[]",
"name": "items",
"type": "tuple[]"
},
{
"internalType": "uint64",
"name": "expiresAt",
"type": "uint64"
}
],
"internalType": "struct ICashOut.CashOutOrder",
"name": "order",
"type": "tuple"
},
{
"internalType": "uint64[]",
"name": "odds",
"type": "uint64[]"
},
{
"internalType": "bytes",
"name": "betOwnerSignature",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "oracleSignature",
"type": "bytes"
}
],
"name": "cashOutBets",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "checkOwner",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "payoutToken_",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "isOracle",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "paused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "payoutToken",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "bettingContract",
"type": "address"
},
{
"internalType": "address",
"name": "betToken",
"type": "address"
}
],
"name": "updateBettingContract",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "bool",
"name": "isOracle_",
"type": "bool"
}
],
"name": "updateOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "withdrawToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]