EarnPmBets.abi.json
unknown
json
a year ago
10 kB
11
Indexable
[
{
"inputs": [
{
"internalType": "address",
"name": "_stakingManager",
"type": "address"
},
{
"internalType": "contract IEarnPMController",
"name": "_earnPMController",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"internalType": "uint256",
"name": "transactionNonce",
"type": "uint256"
},
{
"internalType": "address",
"name": "payingAssetAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "payingErc1155TokenId",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "payingErc721TokenIds",
"type": "uint256[]"
},
{
"internalType": "uint256",
"name": "payingAssetAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "marketAssetAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "sharesAmount",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "marketId",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "optionIndex",
"type": "uint8"
},
{
"internalType": "enum AssetType",
"name": "assetType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
}
],
"internalType": "struct EarnPMBets.BetData",
"name": "betData",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "bet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"internalType": "address",
"name": "assetAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "erc1155TokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "ipfsHash",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "marketStartDate",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "marketEndDate",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "executionDeadline",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "marketId",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "optionsCount",
"type": "uint8"
},
{
"internalType": "enum AssetType",
"name": "assetType",
"type": "uint8"
}
],
"internalType": "struct EarnPMBets.MarketCreationData",
"name": "marketData",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "createMarket",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "earnPMController",
"outputs": [
{
"internalType": "contract IEarnPMController",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "marketId",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "tokenId",
"type": "uint8"
}
],
"name": "formatId",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "isNonceUsed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"name": "markets",
"outputs": [
{
"internalType": "bytes32",
"name": "ipfsHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "marketAssetId",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "marketStartDate",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "marketEndDate",
"type": "uint32"
},
{
"internalType": "uint8",
"name": "optionsCount",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC1155BatchReceived",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC1155Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC721Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "pmContract",
"outputs": [
{
"internalType": "contract IEarnPM",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "stakingManager",
"outputs": [
{
"internalType": "contract IEarnStakingManager",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "transactionsIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]Editor is loading...
Leave a Comment