@thirdweb-dev/contracts-js
Version:
513 lines • 11.4 kB
JSON
[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "_msgData",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes",
"internalType": "bytes"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_msgSender",
"inputs": [],
"outputs": [
{
"name": "sender",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "acceptOffer",
"inputs": [
{
"name": "_offerId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "cancelOffer",
"inputs": [
{
"name": "_offerId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getAllOffers",
"inputs": [
{
"name": "_startId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_endId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_allOffers",
"type": "tuple[]",
"internalType": "struct IOffers.Offer[]",
"components": [
{
"name": "offerId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "quantity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expirationTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "offeror",
"type": "address",
"internalType": "address"
},
{
"name": "assetContract",
"type": "address",
"internalType": "address"
},
{
"name": "currency",
"type": "address",
"internalType": "address"
},
{
"name": "tokenType",
"type": "uint8",
"internalType": "enum IOffers.TokenType"
},
{
"name": "status",
"type": "uint8",
"internalType": "enum IOffers.Status"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getAllValidOffers",
"inputs": [
{
"name": "_startId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_endId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_validOffers",
"type": "tuple[]",
"internalType": "struct IOffers.Offer[]",
"components": [
{
"name": "offerId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "quantity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expirationTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "offeror",
"type": "address",
"internalType": "address"
},
{
"name": "assetContract",
"type": "address",
"internalType": "address"
},
{
"name": "currency",
"type": "address",
"internalType": "address"
},
{
"name": "tokenType",
"type": "uint8",
"internalType": "enum IOffers.TokenType"
},
{
"name": "status",
"type": "uint8",
"internalType": "enum IOffers.Status"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getOffer",
"inputs": [
{
"name": "_offerId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "_offer",
"type": "tuple",
"internalType": "struct IOffers.Offer",
"components": [
{
"name": "offerId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "quantity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expirationTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "offeror",
"type": "address",
"internalType": "address"
},
{
"name": "assetContract",
"type": "address",
"internalType": "address"
},
{
"name": "currency",
"type": "address",
"internalType": "address"
},
{
"name": "tokenType",
"type": "uint8",
"internalType": "enum IOffers.TokenType"
},
{
"name": "status",
"type": "uint8",
"internalType": "enum IOffers.Status"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "makeOffer",
"inputs": [
{
"name": "_params",
"type": "tuple",
"internalType": "struct IOffers.OfferParams",
"components": [
{
"name": "assetContract",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "quantity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "currency",
"type": "address",
"internalType": "address"
},
{
"name": "totalPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expirationTimestamp",
"type": "uint256",
"internalType": "uint256"
}
]
}
],
"outputs": [
{
"name": "_offerId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "totalOffers",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "AcceptedOffer",
"inputs": [
{
"name": "offeror",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "offerId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "assetContract",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "seller",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "quantityBought",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "totalPricePaid",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CancelledOffer",
"inputs": [
{
"name": "offeror",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "offerId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewOffer",
"inputs": [
{
"name": "offeror",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "offerId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "assetContract",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "offer",
"type": "tuple",
"indexed": false,
"internalType": "struct IOffers.Offer",
"components": [
{
"name": "offerId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "quantity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "totalPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "expirationTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "offeror",
"type": "address",
"internalType": "address"
},
{
"name": "assetContract",
"type": "address",
"internalType": "address"
},
{
"name": "currency",
"type": "address",
"internalType": "address"
},
{
"name": "tokenType",
"type": "uint8",
"internalType": "enum IOffers.TokenType"
},
{
"name": "status",
"type": "uint8",
"internalType": "enum IOffers.Status"
}
]
}
],
"anonymous": false
},
{
"type": "error",
"name": "CurrencyTransferLibMismatchedValue",
"inputs": [
{
"name": "expected",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "actual",
"type": "uint256",
"internalType": "uint256"
}
]
}
]