Documentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Git Source
Inherits:
ERC721A, RulesEngineClientERC721A
Functions
constructor
Constructor for the Example ERC721A token.
Initializes the token with a name and symbol.
constructor(string memory name, string memory symbol) ERC721A(name, symbol);
Parameters
| Name | Type | Description |
|---|
name | string | The name of the token. |
symbol | string | The symbol of the token. |
mint
Mints new tokens to the specified address.
function mint(address to, uint256 quantity) public payable virtual checksPoliciesERC721AMintAfter(to, quantity);
Parameters
| Name | Type | Description |
|---|
to | address | The address of the recipient. |
quantity | uint256 | The number of tokens to mint. |
safeTransferFrom
Safely transfers a token from one address to another.
This function overrides the ERC721A-safeTransferFrom function and interacts with the Rules Engine to ensure
compliance with transfer policies. It includes additional checks for policy compliance.
function safeTransferFrom(address from, address to, uint256 tokenId)
public
payable
override
checksPoliciesERC721ASafeTransferFromBefore(from, to, tokenId);
Parameters
| Name | Type | Description |
|---|
from | address | The address of the current token owner. |
to | address | The address of the recipient. |
tokenId | uint256 | The ID of the token to transfer. |
safeBatchTransferFrom
Safely transfers tokenIds from one address to another.
function safeBatchTransferFrom(address by, address from, address to, uint256[] memory tokenIds, bytes memory data)
public
virtual
checksPoliciesERC721ASafeBatchTransferFromBefore(by, from, to, tokenIds, data);
Parameters
| Name | Type | Description |
|---|
by | address | The approved address. |
from | address | The sending address. |
to | address | The receiving address. |
tokenIds | uint256[] | The token identifiers. |
data | bytes | Generic data to pass along with the transfer. |