ISoulboundIdentity
Methods
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
Name | Type | Description |
---|---|---|
_owner | address | An address for whom to query the balance |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | The number of SBTs owned by _owner , possibly zero |
getSoulName
function getSoulName() external view returns (contract ISoulName)
Returns
Name | Type | Description |
---|---|---|
_0 | contract ISoulName | undefined |
mint
function mint(address to) external payable returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
to | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
mint
function mint(address paymentMethod, address to) external payable returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
paymentMethod | address | undefined |
to | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
mintIdentityWithName
function mintIdentityWithName(address to, string name, uint256 yearsPeriod, string _tokenURI) external payable returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
to | address | undefined |
name | string | undefined |
yearsPeriod | uint256 | undefined |
_tokenURI | string | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
mintIdentityWithName
function mintIdentityWithName(address paymentMethod, address to, string name, uint256 yearsPeriod, string _tokenURI) external payable returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
paymentMethod | address | undefined |
to | address | undefined |
name | string | undefined |
yearsPeriod | uint256 | undefined |
_tokenURI | string | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
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
Name | Type | Description |
---|---|---|
_tokenId | uint256 | The identifier for an SBT |
Returns
Name | Type | Description |
---|---|---|
_0 | address | The address of the owner of the SBT |
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
Name | Type | Description |
---|---|---|
interfaceId | bytes4 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
tokenOfOwner
function tokenOfOwner(address owner) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
owner | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
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
Name | Type | Description |
---|---|---|
_owner indexed | address | undefined |
_tokenId indexed | uint256 | undefined |
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
Name | Type | Description |
---|---|---|
_owner indexed | address | undefined |
_tokenId indexed | uint256 | undefined |