@azuro-org/abis
Version:
ABIs for Azuro protocol smart-contracts
652 lines (651 loc) • 12.5 kB
JSON
[
{
"inputs": [],
"name": "AlreadyResolved",
"type": "error"
},
{
"inputs": [],
"name": "BetAlreadyClaimed",
"type": "error"
},
{
"inputs": [],
"name": "BetDoesNotExist",
"type": "error"
},
{
"inputs": [],
"name": "BetExpired",
"type": "error"
},
{
"inputs": [],
"name": "BigOdds",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
}
],
"name": "ConditionNotResolved",
"type": "error"
},
{
"inputs": [],
"name": "ConditionNotRunning",
"type": "error"
},
{
"inputs": [],
"name": "ECDSAInvalidSignature",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "length",
"type": "uint256"
}
],
"name": "ECDSAInvalidSignatureLength",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"name": "ECDSAInvalidSignatureS",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectChainId",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectFreeBet",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectTokensList",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientContractBalance",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [],
"name": "InvalidSignature",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [],
"name": "OnlyFreeBetOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"inputs": [
{
"internalType": "enum SafeCast.Type",
"name": "to",
"type": "uint8"
}
],
"name": "SafeCastError",
"type": "error"
},
{
"inputs": [],
"name": "SmallOdds",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "freeBetId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "core",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "payout",
"type": "uint256"
}
],
"name": "BettorReward",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "FeeWithdrawn",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "freeBetId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "token",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "core",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "payout",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "odds",
"type": "uint256"
}
],
"name": "NewBet",
"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": [
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address",
"name": "manager",
"type": "address"
}
],
"indexed": false,
"internalType": "struct ISuperFreeBet.TokenData",
"name": "token",
"type": "tuple"
}
],
"name": "TokenChanged",
"type": "event"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "freeBet",
"type": "address"
},
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "freeBetId",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint128",
"name": "amount",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "minOdds",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "expiresAt",
"type": "uint64"
}
],
"internalType": "struct ISuperFreeBet.FreeBetData",
"name": "freeBetData",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
},
{
"internalType": "address",
"name": "core",
"type": "address"
},
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "uint128",
"name": "outcome",
"type": "uint128"
}
],
"name": "bet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address",
"name": "manager",
"type": "address"
}
],
"internalType": "struct ISuperFreeBet.TokenData[]",
"name": "tokenData",
"type": "tuple[]"
}
],
"name": "changeTokensList",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "factory",
"outputs": [
{
"internalType": "contract ISuperFreeBetFactory",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "freeBets",
"outputs": [
{
"internalType": "uint128",
"name": "amount",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "payout",
"type": "uint128"
},
{
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "uint128",
"name": "outcome",
"type": "uint128"
},
{
"internalType": "address",
"name": "core",
"type": "address"
},
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address",
"name": "manager",
"type": "address"
}
],
"internalType": "struct ISuperFreeBet.TokenData[]",
"name": "initTokens",
"type": "tuple[]"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "lockedReserve",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "reservedFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "freeBetIds",
"type": "uint256[]"
}
],
"name": "resolveBets",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "tokenManagers",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "tokens_",
"type": "address[]"
},
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "withdrawFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "withdrawReserve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]