@azuro-org/abis
Version:
ABIs for Azuro protocol smart-contracts
1,409 lines (1,408 loc) • 27.3 kB
JSON
[
{
"inputs": [],
"name": "ActionNotAllowed",
"type": "error"
},
{
"inputs": [],
"name": "AlreadyClaimed",
"type": "error"
},
{
"inputs": [],
"name": "BetRejected",
"type": "error"
},
{
"inputs": [],
"name": "CantChangeFlag",
"type": "error"
},
{
"inputs": [],
"name": "ConditionAlreadyCreated",
"type": "error"
},
{
"inputs": [],
"name": "ConditionAlreadyResolved",
"type": "error"
},
{
"inputs": [],
"name": "ConditionNotExists",
"type": "error"
},
{
"inputs": [],
"name": "ConditionNotFinished",
"type": "error"
},
{
"inputs": [],
"name": "DisputeNotPassed",
"type": "error"
},
{
"inputs": [],
"name": "GameAlreadyStarted",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectBettingPeriod",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectMargin",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectRewardId",
"type": "error"
},
{
"inputs": [],
"name": "IncorrectTimestamp",
"type": "error"
},
{
"inputs": [],
"name": "InvalidProof",
"type": "error"
},
{
"inputs": [],
"name": "LargeFundsRatio",
"type": "error"
},
{
"inputs": [],
"name": "MinBlocksNotPassed",
"type": "error"
},
{
"inputs": [],
"name": "MustPrevRewardsDisputePassed",
"type": "error"
},
{
"inputs": [],
"name": "NoPendingReward",
"type": "error"
},
{
"inputs": [],
"name": "OnlyAffMaster",
"type": "error"
},
{
"inputs": [],
"name": "OnlyBetOwner",
"type": "error"
},
{
"inputs": [],
"name": "OnlyLp",
"type": "error"
},
{
"inputs": [],
"name": "OutOfBettingPeriod",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "waitTime",
"type": "uint64"
}
],
"name": "ResolveTooEarly",
"type": "error"
},
{
"inputs": [],
"name": "SameOutcomes",
"type": "error"
},
{
"inputs": [],
"name": "SmallBet",
"type": "error"
},
{
"inputs": [],
"name": "SmallOdds",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "pendingRewardsCount",
"type": "uint256"
}
],
"name": "StartOutOfRange",
"type": "error"
},
{
"inputs": [],
"name": "WrongOutcome",
"type": "error"
},
{
"inputs": [],
"name": "WrongRootOrDisputePassed",
"type": "error"
},
{
"inputs": [],
"name": "WrongToken",
"type": "error"
},
{
"inputs": [],
"name": "ZeroBalance",
"type": "error"
},
{
"inputs": [],
"name": "ZeroOdds",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "setNumber",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint128",
"name": "rewardsToDistribute",
"type": "uint128"
}
],
"name": "AffRewardsSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "newbatchMinBlocks",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint64",
"name": "newbatchMaxBlocks",
"type": "uint64"
}
],
"name": "BatchLimitsChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "batchId",
"type": "uint256"
}
],
"name": "BatchRejected",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "oracleConditionId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
}
],
"name": "ConditionCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint8",
"name": "state",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint64",
"name": "outcomeWin",
"type": "uint64"
},
{
"indexed": false,
"internalType": "int128",
"name": "lpProfit",
"type": "int128"
}
],
"name": "ConditionResolved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bool",
"name": "flag",
"type": "bool"
}
],
"name": "ConditionStopped",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "affiliate",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "batchId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "betId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint64",
"name": "outcomeId",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint128",
"name": "amount",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint64",
"name": "minOdds",
"type": "uint64"
}
],
"name": "NewLiveBet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint64[2]",
"name": "newOdds",
"type": "uint64[2]"
}
],
"name": "OddsChanged",
"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"
},
{
"inputs": [],
"name": "BET_ID_MASK",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MULTIPLIERDEC",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "affRewards",
"outputs": [
{
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"internalType": "uint128",
"name": "coreRewards",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "blockNumber",
"type": "uint64"
},
{
"internalType": "bool",
"name": "disputePassed",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "azuroBet",
"outputs": [
{
"internalType": "contract IAzuroBet",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "batchMaxBlocks",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "batchMinBlocks",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "batches",
"outputs": [
{
"internalType": "uint128",
"name": "startBlock",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "startTime",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "batchesIds",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "betGroups",
"outputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "batchId",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "minOdds",
"type": "uint64"
},
{
"internalType": "uint8",
"name": "outcomeIndex",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "bets",
"outputs": [
{
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"internalType": "uint128",
"name": "amount",
"type": "uint128"
},
{
"internalType": "bool",
"name": "isClaimed",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "uint128",
"name": "amount",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "outcome",
"type": "uint64"
}
],
"name": "calcOdds",
"outputs": [
{
"internalType": "uint64",
"name": "odds",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
}
],
"name": "cancelByMaintainer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "oracleConditionId",
"type": "uint256"
}
],
"name": "cancelByOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "newBatchMinBlocks",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "newBatchMaxBlocks",
"type": "uint64"
}
],
"name": "changeBatchLimits",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "uint64[2]",
"name": "newOdds",
"type": "uint64[2]"
}
],
"name": "changeOddsByMaintainer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "oracleConditionId",
"type": "uint256"
},
{
"internalType": "uint64[2]",
"name": "newOdds",
"type": "uint64[2]"
}
],
"name": "changeOddsByOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "checkOwner",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "betId",
"type": "uint256"
}
],
"name": "claimBetToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
}
],
"name": "conditionBatches",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "conditions",
"outputs": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"internalType": "uint128",
"name": "reinforcement",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "affiliatesReward",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "outcomeWin",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "margin",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "endsAt",
"type": "uint64"
},
{
"internalType": "enum ICondition.ConditionState",
"name": "state",
"type": "uint8"
},
{
"internalType": "uint48",
"name": "leaf",
"type": "uint48"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "oracleConditionId",
"type": "uint256"
},
{
"internalType": "uint64[2]",
"name": "odds",
"type": "uint64[2]"
},
{
"internalType": "uint64[2]",
"name": "outcomes",
"type": "uint64[2]"
},
{
"internalType": "uint128",
"name": "reinforcement",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "margin",
"type": "uint64"
}
],
"name": "createCondition",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
}
],
"name": "executeBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "betId",
"type": "uint256"
}
],
"name": "getBetInfo",
"outputs": [
{
"internalType": "bool",
"name": "rejected",
"type": "bool"
},
{
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"internalType": "uint128",
"name": "betAmount",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "odds",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
}
],
"name": "getCondition",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"internalType": "uint128[2]",
"name": "funds",
"type": "uint128[2]"
},
{
"internalType": "uint128[2]",
"name": "virtualFunds",
"type": "uint128[2]"
},
{
"internalType": "uint128",
"name": "reinforcement",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "affiliatesReward",
"type": "uint128"
},
{
"internalType": "uint64[2]",
"name": "outcomes",
"type": "uint64[2]"
},
{
"internalType": "uint64",
"name": "outcomeWin",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "margin",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "endsAt",
"type": "uint64"
},
{
"internalType": "enum ICondition.ConditionState",
"name": "state",
"type": "uint8"
},
{
"internalType": "uint48",
"name": "leaf",
"type": "uint48"
}
],
"internalType": "struct ICondition.Condition",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "outcomeIndex",
"type": "uint256"
}
],
"name": "getTokenId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getTokenInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"internalType": "uint128[2]",
"name": "funds",
"type": "uint128[2]"
},
{
"internalType": "uint128[2]",
"name": "virtualFunds",
"type": "uint128[2]"
},
{
"internalType": "uint128",
"name": "reinforcement",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "affiliatesReward",
"type": "uint128"
},
{
"internalType": "uint64[2]",
"name": "outcomes",
"type": "uint64[2]"
},
{
"internalType": "uint64",
"name": "outcomeWin",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "margin",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "endsAt",
"type": "uint64"
},
{
"internalType": "enum ICondition.ConditionState",
"name": "state",
"type": "uint8"
},
{
"internalType": "uint48",
"name": "leaf",
"type": "uint48"
}
],
"internalType": "struct ICondition.Condition",
"name": "",
"type": "tuple"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "azuroBet_",
"type": "address"
},
{
"internalType": "address",
"name": "lp_",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "lastBatchId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lastBetId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lp",
"outputs": [
{
"internalType": "contract ILP",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "oracleConditionIds",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"internalType": "uint128",
"name": "amount",
"type": "uint128"
},
{
"components": [
{
"internalType": "address",
"name": "affiliate",
"type": "address"
},
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "outcomeId",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "minOdds",
"type": "uint64"
}
],
"internalType": "struct ICoreBase.BetData",
"name": "data",
"type": "tuple"
}
],
"name": "putBet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "rewardId",
"type": "uint256"
}
],
"name": "releaseAffRewards",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "affiliate",
"type": "address"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "resolveAffiliateReward",
"outputs": [
{
"internalType": "uint128",
"name": "",
"type": "uint128"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "oracleConditionId",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "outcomeWin",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "endsAt",
"type": "uint64"
}
],
"name": "resolveCondition",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "resolvePayout",
"outputs": [
{
"internalType": "uint128",
"name": "",
"type": "uint128"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "merkleRoot",
"type": "bytes32"
}
],
"name": "setAffRewards",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "bool",
"name": "flag",
"type": "bool"
}
],
"name": "stopCondition",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "viewPayout",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "uint128",
"name": "",
"type": "uint128"
}
],
"stateMutability": "view",
"type": "function"
}
]