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

Restricts the execution of a function to only accounts that have a specific role assigned.

Functions

constructor

Initializes the SABT contract and sets the deployer as the default admin role.

initialize

Initializes the SABT contract with the provided membership and metadata contract addresses.

Parameters

mint

Mints a new SABT token for a specified membership.

Parameters

Returns the UID (unique identifier) of the minted token.

meta

Retrieves the metadata of a token by its meta ID.

Parameters

Returns the metadata of the token.

metaId

Retrieves the meta ID of a membership token by its UID.

Parameters

Returns the meta ID of the membership token.

setMetaId

Sets the meta ID of a membership token.

Parameters

transfer

Transfers a token from the sender to the specified address.

Parameters

supportsInterface

Checks if a contract supports a specific interface.

Parameters

Returns true if the contract supports the interface; otherwise, false.

Last updated