Masa Finance
MasaNFT
Non-fungible token is a token that is not fungible.
Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, that inherits from {ERC721Enumerable}, {Ownable}, {AccessControl} and {ERC721Burnable}.
function DEFAULT_ADMIN_ROLE() external view returns (bytes32)
| Name |
Type |
Description |
| _0 |
bytes32 |
undefined |
function MINTER_ROLE() external view returns (bytes32)
| Name |
Type |
Description |
| _0 |
bytes32 |
undefined |
function approve(address to, uint256 tokenId) external nonpayable
See {IERC721-approve}.
| Name |
Type |
Description |
| to |
address |
undefined |
| tokenId |
uint256 |
undefined |
function balanceOf(address owner) external view returns (uint256)
See {IERC721-balanceOf}.
| Name |
Type |
Description |
| owner |
address |
undefined |
| Name |
Type |
Description |
| _0 |
uint256 |
undefined |
function burn(uint256 tokenId) external nonpayable
Burns tokenId. See {ERC721-_burn}. Requirements: - The caller must own tokenId or be an approved operator.
| Name |
Type |
Description |
| tokenId |
uint256 |
undefined |
function exists(uint256 tokenId) external view returns (bool)
Returns true if the token exists
Returns true if the token has been minted
| Name |
Type |
Description |
| tokenId |
uint256 |
Token to check |
| Name |
Type |
Description |
| _0 |
bool |
True if the token exists |
function getApproved(uint256 tokenId) external view returns (address)
See {IERC721-getApproved}.
| Name |
Type |
Description |
| tokenId |
uint256 |
undefined |
| Name |
Type |
Description |
| _0 |
address |
undefined |
function getRoleAdmin(bytes32 role) external view returns (bytes32)
Returns the admin role that controls role. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.
| Name |
Type |
Description |
| role |
bytes32 |
undefined |
| Name |
Type |
Description |
| _0 |
bytes32 |
undefined |
function grantRole(bytes32 role, address account) external nonpayable
Grants role to account. If account had not been already granted role, emits a {RoleGranted} event. Requirements: - the caller must have role's admin role. May emit a {RoleGranted} event.
| Name |
Type |
Description |
| role |
bytes32 |
undefined |
| account |
address |
undefined |
function hasRole(bytes32 role, address account) external view returns (bool)
Returns true if account has been granted role.
| Name |
Type |
Description |
| role |
bytes32 |
undefined |
| account |
address |
undefined |
| Name |
Type |
Description |
| _0 |
bool |
undefined |
function isApprovedForAll(address owner, address operator) external view returns (bool)
See {IERC721-isApprovedForAll}.
| Name |
Type |
Description |
| owner |
address |
undefined |
| operator |
address |
undefined |
| Name |
Type |
Description |
| _0 |
bool |
undefined |
function name() external view returns (string)
See {IERC721Metadata-name}.
| Name |
Type |
Description |
| _0 |
string |
undefined |
function owner() external view returns (address)
Returns the address of the current owner.
| Name |
Type |
Description |
| _0 |
address |
undefined |
function ownerOf(uint256 tokenId) external view returns (address)
See {IERC721-ownerOf}.
| Name |
Type |
Description |
| tokenId |
uint256 |
undefined |
| Name |
Type |
Description |
| _0 |
address |
undefined |
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call onlyOwner functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.
function renounceRole(bytes32 role, address account) external nonpayable
Revokes role from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked role, emits a {RoleRevoked} event. Requirements: - the caller must be account. May emit a {RoleRevoked} event.
| Name |
Type |
Description |
| role |
bytes32 |
undefined |
| account |
address |
undefined |
function revokeRole(bytes32 role, address account) external nonpayable
Revokes role from account. If account had been granted role, emits a {RoleRevoked} event. Requirements: - the caller must have role's admin role. May emit a {RoleRevoked} event.
| Name |
Type |
Description |
| role |
bytes32 |
undefined |
| account |
address |
undefined |
function safeTransferFrom(address from, address to, uint256 tokenId) external nonpayable
See {IERC721-safeTransferFrom}.
| Name |
Type |
Description |
| from |
address |
undefined |
| to |
address |
undefined |
| tokenId |
uint256 |
undefined |
function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) external nonpayable
See {IERC721-safeTransferFrom}.
| Name |
Type |
Description |
| from |
address |
undefined |
| to |
address |
undefined |
| tokenId |
uint256 |
undefined |
| data |
bytes |
undefined |
function setApprovalForAll(address operator, bool approved) external nonpayable
See {IERC721-setApprovalForAll}.
| Name |
Type |
Description |
| operator |
address |
undefined |
| approved |
bool |
undefined |
function supportsInterface(bytes4 interfaceId) external view returns (bool)
Query if a contract implements an interface
Interface identification is specified in ERC-165.
| Name |
Type |
Description |
| interfaceId |
bytes4 |
The interface identifier, as specified in ERC-165 |
| Name |
Type |
Description |
| _0 |
bool |
true if the contract implements interfaceId and interfaceId is not 0xffffffff, false otherwise |
function symbol() external view returns (string)
See {IERC721Metadata-symbol}.
| Name |
Type |
Description |
| _0 |
string |
undefined |
function tokenByIndex(uint256 index) external view returns (uint256)
See {IERC721Enumerable-tokenByIndex}.
| Name |
Type |
Description |
| index |
uint256 |
undefined |
| Name |
Type |
Description |
| _0 |
uint256 |
undefined |
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256)
See {IERC721Enumerable-tokenOfOwnerByIndex}.
| Name |
Type |
Description |
| owner |
address |
undefined |
| index |
uint256 |
undefined |
| Name |
Type |
Description |
| _0 |
uint256 |
undefined |
function tokenURI(uint256 tokenId) external view returns (string)
A distinct Uniform Resource Identifier (URI) for a given asset.
Throws if _tokenId is not a valid NFT. URIs are defined in RFC 3986. The URI may point to a JSON file that conforms to the "ERC721 Metadata JSON Schema".
| Name |
Type |
Description |
| tokenId |
uint256 |
NFT to get the URI of |
| Name |
Type |
Description |
| _0 |
string |
URI of the NFT |
function totalSupply() external view returns (uint256)
See {IERC721Enumerable-totalSupply}.
| Name |
Type |
Description |
| _0 |
uint256 |
undefined |
function transferFrom(address from, address to, uint256 tokenId) external nonpayable
See {IERC721-transferFrom}.
| Name |
Type |
Description |
| from |
address |
undefined |
| to |
address |
undefined |
| tokenId |
uint256 |
undefined |
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.
| Name |
Type |
Description |
| newOwner |
address |
undefined |
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
Emitted when owner enables approved to manage the tokenId token.
| Name |
Type |
Description |
owner indexed |
address |
undefined |
approved indexed |
address |
undefined |
tokenId indexed |
uint256 |
undefined |
event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
Emitted when owner enables or disables (approved) operator to manage all of its assets.
| Name |
Type |
Description |
owner indexed |
address |
undefined |
operator indexed |
address |
undefined |
| approved |
bool |
undefined |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
| Name |
Type |
Description |
previousOwner indexed |
address |
undefined |
newOwner indexed |
address |
undefined |
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
Emitted when newAdminRole is set as role's admin role, replacing previousAdminRole DEFAULT_ADMIN_ROLE is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. Available since v3.1.
| Name |
Type |
Description |
role indexed |
bytes32 |
undefined |
previousAdminRole indexed |
bytes32 |
undefined |
newAdminRole indexed |
bytes32 |
undefined |
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
Emitted when account is granted role. sender is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}.
| Name |
Type |
Description |
role indexed |
bytes32 |
undefined |
account indexed |
address |
undefined |
sender indexed |
address |
undefined |
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Emitted when account is revoked role. sender is the account that originated the contract call: - if using revokeRole, it is the admin role bearer - if using renounceRole, it is the role bearer (i.e. account)
| Name |
Type |
Description |
role indexed |
bytes32 |
undefined |
account indexed |
address |
undefined |
sender indexed |
address |
undefined |
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
Emitted when tokenId token is transferred from from to to.
| Name |
Type |
Description |
from indexed |
address |
undefined |
to indexed |
address |
undefined |
tokenId indexed |
uint256 |
undefined |