UNPKG

@thirdweb-dev/contracts-js

Version:
735 lines • 15 kB
[ { "type": "constructor", "inputs": [ { "name": "_defaultAdmin", "type": "address", "internalType": "address" }, { "name": "_trustedForwarder", "type": "address", "internalType": "address" }, { "name": "_prevPublisher", "type": "address", "internalType": "contract IContractPublisher" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "DEFAULT_ADMIN_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "getAllPublishedContracts", "inputs": [ { "name": "_publisher", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "published", "type": "tuple[]", "internalType": "struct IContractPublisher.CustomContractInstance[]", "components": [ { "name": "contractId", "type": "string", "internalType": "string" }, { "name": "publishTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "publishMetadataUri", "type": "string", "internalType": "string" }, { "name": "bytecodeHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "implementation", "type": "address", "internalType": "address" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getPublishedContract", "inputs": [ { "name": "_publisher", "type": "address", "internalType": "address" }, { "name": "_contractId", "type": "string", "internalType": "string" } ], "outputs": [ { "name": "published", "type": "tuple", "internalType": "struct IContractPublisher.CustomContractInstance", "components": [ { "name": "contractId", "type": "string", "internalType": "string" }, { "name": "publishTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "publishMetadataUri", "type": "string", "internalType": "string" }, { "name": "bytecodeHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "implementation", "type": "address", "internalType": "address" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getPublishedContractVersions", "inputs": [ { "name": "_publisher", "type": "address", "internalType": "address" }, { "name": "_contractId", "type": "string", "internalType": "string" } ], "outputs": [ { "name": "published", "type": "tuple[]", "internalType": "struct IContractPublisher.CustomContractInstance[]", "components": [ { "name": "contractId", "type": "string", "internalType": "string" }, { "name": "publishTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "publishMetadataUri", "type": "string", "internalType": "string" }, { "name": "bytecodeHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "implementation", "type": "address", "internalType": "address" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getPublishedUriFromCompilerUri", "inputs": [ { "name": "compilerMetadataUri", "type": "string", "internalType": "string" } ], "outputs": [ { "name": "publishedMetadataUris", "type": "string[]", "internalType": "string[]" } ], "stateMutability": "view" }, { "type": "function", "name": "getPublisherProfileUri", "inputs": [ { "name": "publisher", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "uri", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleAdmin", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMember", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "index", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMemberCount", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "grantRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "hasRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isPaused", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isTrustedForwarder", "inputs": [ { "name": "forwarder", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "multicall", "inputs": [ { "name": "data", "type": "bytes[]", "internalType": "bytes[]" } ], "outputs": [ { "name": "results", "type": "bytes[]", "internalType": "bytes[]" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "prevPublisher", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract IContractPublisher" } ], "stateMutability": "view" }, { "type": "function", "name": "publishContract", "inputs": [ { "name": "_publisher", "type": "address", "internalType": "address" }, { "name": "_contractId", "type": "string", "internalType": "string" }, { "name": "_publishMetadataUri", "type": "string", "internalType": "string" }, { "name": "_compilerMetadataUri", "type": "string", "internalType": "string" }, { "name": "_bytecodeHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "_implementation", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "renounceRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "revokeRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPause", "inputs": [ { "name": "_pause", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPrevPublisher", "inputs": [ { "name": "_prevPublisher", "type": "address", "internalType": "contract IContractPublisher" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPublisherProfileUri", "inputs": [ { "name": "publisher", "type": "address", "internalType": "address" }, { "name": "uri", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "supportsInterface", "inputs": [ { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "unpublishContract", "inputs": [ { "name": "_publisher", "type": "address", "internalType": "address" }, { "name": "_contractId", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "ContractPublished", "inputs": [ { "name": "operator", "type": "address", "indexed": true, "internalType": "address" }, { "name": "publisher", "type": "address", "indexed": true, "internalType": "address" }, { "name": "publishedContract", "type": "tuple", "indexed": false, "internalType": "struct IContractPublisher.CustomContractInstance", "components": [ { "name": "contractId", "type": "string", "internalType": "string" }, { "name": "publishTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "publishMetadataUri", "type": "string", "internalType": "string" }, { "name": "bytecodeHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "implementation", "type": "address", "internalType": "address" } ] } ], "anonymous": false }, { "type": "event", "name": "ContractUnpublished", "inputs": [ { "name": "operator", "type": "address", "indexed": true, "internalType": "address" }, { "name": "publisher", "type": "address", "indexed": true, "internalType": "address" }, { "name": "contractId", "type": "string", "indexed": true, "internalType": "string" } ], "anonymous": false }, { "type": "event", "name": "Paused", "inputs": [ { "name": "isPaused", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "PublisherProfileUpdated", "inputs": [ { "name": "publisher", "type": "address", "indexed": true, "internalType": "address" }, { "name": "prevURI", "type": "string", "indexed": false, "internalType": "string" }, { "name": "newURI", "type": "string", "indexed": false, "internalType": "string" } ], "anonymous": false }, { "type": "event", "name": "RoleAdminChanged", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "previousAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "newAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "RoleGranted", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "RoleRevoked", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false } ]