SABT
This Solidity smart contract defines a standard Account Bound Token (SABT) contract. Let's break down the variables, events, functions, and internal functions present in this contract:
State Variables
Modifiers
onlyRole
onlyRole
Restricts the execution of a function to only accounts that have a specific role assigned.
Functions
constructor
constructor
Initializes the SABT contract and sets the deployer as the default admin role.
initialize
initialize
Initializes the SABT contract with the provided membership and metadata contract addresses.
Parameters
mint
mint
Mints a new SABT token for a specified membership.
Parameters
Returns the UID (unique identifier) of the minted token.
meta
meta
Retrieves the metadata of a token by its meta ID.
Parameters
Returns the metadata of the token.
metaId
metaId
Retrieves the meta ID of a membership token by its UID.
Parameters
Returns the meta ID of the membership token.
setMetaId
setMetaId
Sets the meta ID of a membership token.
Parameters
transfer
transfer
Transfers a token from the sender to the specified address.
Parameters
supportsInterface
supportsInterface
Checks if a contract supports a specific interface.
Parameters
Returns true if the contract supports the interface; otherwise, false.
Last updated