MarketplaceV3
thirdweb.com
Methods
DEFAULT_ADMIN_ROLE
Returns
_0
bytes32
undefined
_getPluginForFunction
View address of the plugged-in functionality contract for a given function signature.
Parameters
_selector
bytes4
undefined
Returns
_0
address
undefined
addPlugin
Parameters
_plugin
IPluginMap.Plugin
undefined
contractType
Returns the type of the contract.
Returns
_0
bytes32
undefined
contractURI
Returns the metadata URI of the contract.
Returns
_0
string
undefined
contractVersion
Returns the version of the contract.
Returns
_0
uint8
undefined
getAllFunctionsOfPlugin
View all funtionality as list of function signatures.
Parameters
_pluginAddress
address
undefined
Returns
registered
bytes4[]
undefined
getAllPlugins
View all funtionality existing on the contract.
Returns
registered
IPluginMap.Plugin[]
undefined
getPlatformFeeInfo
Returns the platform fee recipient and bps.
Returns
_0
address
undefined
_1
uint16
undefined
getPluginForFunction
View address of the plugged-in functionality contract for a given function signature.
Parameters
_selector
bytes4
undefined
Returns
_0
address
undefined
getRoleAdmin
Returns the admin role that controls the specified role.
See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
Returns
_0
bytes32
undefined
getRoleMember
Returns the role-member from a list of members for a role, at a given index.
Returns member
who has role
, at index
of role-members list. See struct {RoleMembers}, and mapping {roleMembers}
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
index
uint256
Index in list of current members for the role.
Returns
member
address
Address of account that has role
getRoleMemberCount
Returns total number of accounts that have a role.
Returns count
of accounts that have role
. See struct {RoleMembers}, and mapping {roleMembers}
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
Returns
count
uint256
Total number of accounts that have role
grantRole
Grants a role to an account, if not previously granted.
Caller must have admin role for the role
. Emits {RoleGranted Event}.
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
account
address
Address of the account to which the role is being granted.
hasRole
Checks whether an account has a particular role.
Returns true
if account
has been granted role
.
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
account
address
Address of the account for which the role is being checked.
Returns
_0
bool
undefined
hasRoleWithSwitch
Checks whether an account has a particular role; role restrictions can be swtiched on and off.
Returns true
if account
has been granted role
. Role restrictions can be swtiched on and off: - If address(0) has ROLE, then the ROLE restrictions don't apply. - If address(0) does not have ROLE, then the ROLE restrictions will apply.
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
account
address
Address of the account for which the role is being checked.
Returns
_0
bool
undefined
initialize
Initiliazes the contract, like a constructor.
Parameters
_defaultAdmin
address
undefined
_contractURI
string
undefined
_trustedForwarders
address[]
undefined
_platformFeeRecipient
address
undefined
_platformFeeBps
uint16
undefined
isTrustedForwarder
Parameters
forwarder
address
undefined
Returns
_0
bool
undefined
multicall
Receives and executes a batch of function calls on this contract.
Receives and executes a batch of function calls on this contract.
Parameters
data
bytes[]
The bytes data that makes up the batch of function calls to execute.
Returns
results
bytes[]
The bytes data that makes up the result of the batch of function calls executed.
onERC1155BatchReceived
Parameters
_0
address
undefined
_1
address
undefined
_2
uint256[]
undefined
_3
uint256[]
undefined
_4
bytes
undefined
Returns
_0
bytes4
undefined
onERC1155Received
Parameters
_0
address
undefined
_1
address
undefined
_2
uint256
undefined
_3
uint256
undefined
_4
bytes
undefined
Returns
_0
bytes4
undefined
onERC721Received
Parameters
_0
address
undefined
_1
address
undefined
_2
uint256
undefined
_3
bytes
undefined
Returns
_0
bytes4
undefined
pluginMap
Returns
_0
address
undefined
removePlugin
Remove existing functionality from the contract.
Parameters
_selector
bytes4
undefined
renounceRole
Revokes role from the account.
Caller must have the role
, with caller being the same as account
. Emits {RoleRevoked Event}.
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
account
address
Address of the account from which the role is being revoked.
revokeRole
Revokes role from an account.
Caller must have admin role for the role
. Emits {RoleRevoked Event}.
Parameters
role
bytes32
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
account
address
Address of the account from which the role is being revoked.
setContractURI
Lets a contract admin set the URI for contract-level metadata.
Caller should be authorized to setup contractURI, e.g. contract admin. See {_canSetContractURI}. Emits {ContractURIUpdated Event}.
Parameters
_uri
string
keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
setPlatformFeeInfo
Updates the platform fee recipient and bps.
Caller should be authorized to set platform fee info. See {_canSetPlatformFeeInfo}. Emits {PlatformFeeInfoUpdated Event}; See {_setupPlatformFeeInfo}.
Parameters
_platformFeeRecipient
address
Address to be set as new platformFeeRecipient.
_platformFeeBps
uint256
Updated platformFeeBps.
supportsInterface
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
updatePlugin
Parameters
_plugin
IPluginMap.Plugin
undefined
Events
ContractURIUpdated
Parameters
prevURI
string
undefined
newURI
string
undefined
PlatformFeeInfoUpdated
Parameters
platformFeeRecipient indexed
address
undefined
platformFeeBps
uint256
undefined
PluginAdded
Parameters
functionSelector indexed
bytes4
undefined
pluginAddress indexed
address
undefined
PluginRemoved
Parameters
functionSelector indexed
bytes4
undefined
pluginAddress indexed
address
undefined
PluginSet
Parameters
functionSelector indexed
bytes4
undefined
functionSignature indexed
string
undefined
pluginAddress indexed
address
undefined
PluginUpdated
Parameters
functionSelector indexed
bytes4
undefined
oldPluginAddress indexed
address
undefined
newPluginAddress indexed
address
undefined
RoleAdminChanged
Parameters
role indexed
bytes32
undefined
previousAdminRole indexed
bytes32
undefined
newAdminRole indexed
bytes32
undefined
RoleGranted
Parameters
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
undefined
RoleRevoked
Parameters
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
undefined
Last updated