@azuro-org/abis
Version:
ABIs for Azuro protocol smart-contracts
522 lines (521 loc) • 12 kB
JSON
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"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": true,
"internalType": "address",
"name": "relayer",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "RelayerRewarded",
"type": "event"
},
{
"inputs": [],
"name": "_CLIENTBETDATA_TYPEHASH",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_CLIENTDATA_TYPEHASH",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_COMBOPART_TYPE_TYPEHASH",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_SUBBET_TYPEHASH",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"internalType": "address",
"name": "betOwner",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "enum IOrder.ConditionKind",
"name": "conditionKind",
"type": "uint8"
},
{
"internalType": "uint64[]",
"name": "odds",
"type": "uint64[]"
},
{
"internalType": "uint128[]",
"name": "outcomes",
"type": "uint128[]"
},
{
"internalType": "uint128",
"name": "payoutLimit",
"type": "uint128"
},
{
"internalType": "uint8",
"name": "winningOutcomesCount",
"type": "uint8"
}
],
"internalType": "struct IOrder.ConditionData[]",
"name": "conditionDatas",
"type": "tuple[]"
},
{
"internalType": "enum IOrder.BetType",
"name": "betType",
"type": "uint8"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "bytes",
"name": "clientBetData",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "bettorSignature",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "oracleSignature",
"type": "bytes"
}
],
"internalType": "struct IOrder.OrderData[]",
"name": "orders",
"type": "tuple[]"
}
],
"name": "betFor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"internalType": "address",
"name": "betOwner",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "enum IOrder.ConditionKind",
"name": "conditionKind",
"type": "uint8"
},
{
"internalType": "uint64[]",
"name": "odds",
"type": "uint64[]"
},
{
"internalType": "uint128[]",
"name": "outcomes",
"type": "uint128[]"
},
{
"internalType": "uint128",
"name": "payoutLimit",
"type": "uint128"
},
{
"internalType": "uint8",
"name": "winningOutcomesCount",
"type": "uint8"
}
],
"internalType": "struct IOrder.ConditionData[]",
"name": "conditionDatas",
"type": "tuple[]"
},
{
"internalType": "enum IOrder.BetType",
"name": "betType",
"type": "uint8"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "bytes",
"name": "clientBetData",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "bettorSignature",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "oracleSignature",
"type": "bytes"
}
],
"internalType": "struct IOrder.OrderData",
"name": "order",
"type": "tuple"
}
],
"name": "getClientData",
"outputs": [
{
"components": [
{
"internalType": "string",
"name": "attention",
"type": "string"
},
{
"internalType": "address",
"name": "affiliate",
"type": "address"
},
{
"internalType": "address",
"name": "core",
"type": "address"
},
{
"internalType": "uint256",
"name": "expiresAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "relayerFeeAmount",
"type": "uint256"
}
],
"internalType": "struct IOrder.ClientData",
"name": "clientData",
"type": "tuple"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "bettor",
"type": "address"
},
{
"internalType": "address",
"name": "betOwner",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "gameId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "conditionId",
"type": "uint256"
},
{
"internalType": "enum IOrder.ConditionKind",
"name": "conditionKind",
"type": "uint8"
},
{
"internalType": "uint64[]",
"name": "odds",
"type": "uint64[]"
},
{
"internalType": "uint128[]",
"name": "outcomes",
"type": "uint128[]"
},
{
"internalType": "uint128",
"name": "payoutLimit",
"type": "uint128"
},
{
"internalType": "uint8",
"name": "winningOutcomesCount",
"type": "uint8"
}
],
"internalType": "struct IOrder.ConditionData[]",
"name": "conditionDatas",
"type": "tuple[]"
},
{
"internalType": "enum IOrder.BetType",
"name": "betType",
"type": "uint8"
},
{
"internalType": "address",
"name": "oracle",
"type": "address"
},
{
"internalType": "bytes",
"name": "clientBetData",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "bettorSignature",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "oracleSignature",
"type": "bytes"
}
],
"internalType": "struct IOrder.OrderData",
"name": "order",
"type": "tuple"
}
],
"name": "getOrderBetsAmounts",
"outputs": [
{
"internalType": "uint128",
"name": "totalAmount",
"type": "uint128"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "lp_",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "lp",
"outputs": [
{
"internalType": "contract ILP",
"name": "",
"type": "address"
}
],
"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": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]