MinimalTest
0xstabby.eth
MinimalTest
Test for testing OnChainTraits without ERC721 overhead
Methods
_name
function _name() external view returns (string)
Returns
Name |
Type |
Description |
_0 |
string |
undefined |
_symbol
function _symbol() external view returns (string)
Returns
Name |
Type |
Description |
_0 |
string |
undefined |
description
function description() external view returns (string)
Returns
Name |
Type |
Description |
_0 |
string |
undefined |
getImage
function getImage(uint256 id) external view returns (string)
Get image
Can be overridden
Parameters
Name |
Type |
Description |
id |
uint256 |
To get image for |
Returns
Name |
Type |
Description |
_0 |
string |
String of base64 encoded svg |
function getMetadata(uint256 id) external view returns (string)
Get metadata for id
Can be overridden
Parameters
Name |
Type |
Description |
id |
uint256 |
To grab metadata for |
Returns
Name |
Type |
Description |
_0 |
string |
String of base64 encoded metadata |
getTraits
function getTraits(uint256 id) external view returns (struct OnChainDataStructs.Trait[])
Get traits for id
Can be overridden
Parameters
Name |
Type |
Description |
id |
uint256 |
To grab traits for |
Returns
Name |
Type |
Description |
_0 |
OnChainDataStructs.Trait[] |
Array of Traits |
seed
function seed() external view returns (uint256)
Returns
Name |
Type |
Description |
_0 |
uint256 |
undefined |
tokenURI
function tokenURI(uint256 id) external view returns (string)
TokenURI returns base64URI metadata with a base64URI image
Parameters
Name |
Type |
Description |
id |
uint256 |
Of ERC721 |
Returns
Name |
Type |
Description |
_0 |
string |
undefined |
traitTypeCount
function traitTypeCount() external view returns (uint256)
Returns
Name |
Type |
Description |
_0 |
uint256 |
undefined |
traitValueCount
function traitValueCount() external view returns (uint256)
Returns
Name |
Type |
Description |
_0 |
uint256 |
undefined |