UNPKG

@thirdweb-dev/contracts-js

Version:
209 lines • 3.99 kB
[ { "type": "function", "name": "getDefaultRoyaltyInfo", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoyaltyInfoForToken", "inputs": [ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "royaltyInfo", "inputs": [ { "name": "tokenId", "type": "uint256", "internalType": "uint256" }, { "name": "salePrice", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "receiver", "type": "address", "internalType": "address" }, { "name": "royaltyAmount", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "setDefaultRoyaltyInfo", "inputs": [ { "name": "_royaltyRecipient", "type": "address", "internalType": "address" }, { "name": "_royaltyBps", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setRoyaltyInfoForToken", "inputs": [ { "name": "_tokenId", "type": "uint256", "internalType": "uint256" }, { "name": "_recipient", "type": "address", "internalType": "address" }, { "name": "_bps", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "supportsInterface", "inputs": [ { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "event", "name": "DefaultRoyalty", "inputs": [ { "name": "newRoyaltyRecipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newRoyaltyBps", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "RoyaltyForToken", "inputs": [ { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "royaltyRecipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "royaltyBps", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "error", "name": "RoyaltyExceededMaxFeeBps", "inputs": [ { "name": "max", "type": "uint256", "internalType": "uint256" }, { "name": "actual", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "RoyaltyInvalidRecipient", "inputs": [ { "name": "recipient", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "RoyaltyUnauthorized", "inputs": [] } ]