UNPKG

@thirdweb-dev/contracts-js

Version:
596 lines • 11.6 kB
[ { "type": "constructor", "inputs": [ { "name": "_pluginMap", "type": "address", "internalType": "address" }, { "name": "_trustedForwarders", "type": "address[]", "internalType": "address[]" } ], "stateMutability": "nonpayable" }, { "type": "fallback", "stateMutability": "payable" }, { "type": "receive", "stateMutability": "payable" }, { "type": "function", "name": "DEFAULT_ADMIN_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "_getPluginForFunction", "inputs": [ { "name": "_selector", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "addPlugin", "inputs": [ { "name": "_plugin", "type": "tuple", "internalType": "struct IPluginMap.Plugin", "components": [ { "name": "functionSelector", "type": "bytes4", "internalType": "bytes4" }, { "name": "functionSignature", "type": "string", "internalType": "string" }, { "name": "pluginAddress", "type": "address", "internalType": "address" } ] } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "getAllFunctionsOfPlugin", "inputs": [ { "name": "_pluginAddress", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "registered", "type": "bytes4[]", "internalType": "bytes4[]" } ], "stateMutability": "view" }, { "type": "function", "name": "getAllPlugins", "inputs": [], "outputs": [ { "name": "registered", "type": "tuple[]", "internalType": "struct IPluginMap.Plugin[]", "components": [ { "name": "functionSelector", "type": "bytes4", "internalType": "bytes4" }, { "name": "functionSignature", "type": "string", "internalType": "string" }, { "name": "pluginAddress", "type": "address", "internalType": "address" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getPluginForFunction", "inputs": [ { "name": "_selector", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "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": "member", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMemberCount", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "count", "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": "hasRoleWithSwitch", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "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": "pluginMap", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "removePlugin", "inputs": [ { "name": "_selector", "type": "bytes4", "internalType": "bytes4" } ], "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": "supportsInterface", "inputs": [ { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "updatePlugin", "inputs": [ { "name": "_plugin", "type": "tuple", "internalType": "struct IPluginMap.Plugin", "components": [ { "name": "functionSelector", "type": "bytes4", "internalType": "bytes4" }, { "name": "functionSignature", "type": "string", "internalType": "string" }, { "name": "pluginAddress", "type": "address", "internalType": "address" } ] } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "PluginAdded", "inputs": [ { "name": "functionSelector", "type": "bytes4", "indexed": true, "internalType": "bytes4" }, { "name": "pluginAddress", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PluginRemoved", "inputs": [ { "name": "functionSelector", "type": "bytes4", "indexed": true, "internalType": "bytes4" }, { "name": "pluginAddress", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PluginSet", "inputs": [ { "name": "functionSelector", "type": "bytes4", "indexed": true, "internalType": "bytes4" }, { "name": "functionSignature", "type": "string", "indexed": true, "internalType": "string" }, { "name": "pluginAddress", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "PluginUpdated", "inputs": [ { "name": "functionSelector", "type": "bytes4", "indexed": true, "internalType": "bytes4" }, { "name": "oldPluginAddress", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newPluginAddress", "type": "address", "indexed": true, "internalType": "address" } ], "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 } ]