Skip to main content

ILinkableSBT

Methods

addLinkPrice

function addLinkPrice() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

addLinkPriceMASA

function addLinkPriceMASA() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

balanceOf

function balanceOf(address _owner) external view returns (uint256)

Count all SBTs assigned to an owner

SBTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.

Parameters

NameTypeDescription
_owneraddressAn address for whom to query the balance

Returns

NameTypeDescription
_0uint256The number of SBTs owned by _owner, possibly zero

ownerOf

function ownerOf(uint256 _tokenId) external view returns (address)

Find the owner of an SBT

SBTs assigned to zero address are considered invalid, and queries about them do throw.

Parameters

NameTypeDescription
_tokenIduint256The identifier for an SBT

Returns

NameTypeDescription
_0addressThe address of the owner of the SBT

queryLinkPrice

function queryLinkPrice() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

queryLinkPriceMASA

function queryLinkPriceMASA() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

Parameters

NameTypeDescription
interfaceIdbytes4undefined

Returns

NameTypeDescription
_0boolundefined

Events

Burn

event Burn(address indexed _owner, uint256 indexed _tokenId)

This emits when an SBT is burned This event emits when SBTs are destroyed

Parameters

NameTypeDescription
_owner indexedaddressundefined
_tokenId indexeduint256undefined

Mint

event Mint(address indexed _owner, uint256 indexed _tokenId)

This emits when an SBT is newly minted. This event emits when SBTs are created

Parameters

NameTypeDescription
_owner indexedaddressundefined
_tokenId indexeduint256undefined