Skip to main content

Asset

Read more about asset here

Asset consist of 4 parameters:

  • tokenType: can be in a range from 0 to 4, and is used to identify the type of token being used
    • 0: NATIVE
    • 1: ERC20
    • 2: ERC721
    • 3: ERC998
    • 4: ERC1155
  • token: specifies the contract address of the token
  • tokenId: is used to identify the specific token being used, and is only relevant for non-fungible tokens
  • amount: represents the quantity of tokens being exchanged, and is only relevant for fungible tokens

Validation

Validation model reference

  • NativeDto = NATIVE
  • CoinDto = NATIVE, ERC20
  • NftDto = ERC721, ERC998
  • SemiCoinDto = NATIVE, ERC20, ERC1155
  • SemiNftDto = ERC721, ERC998, ERC1155
  • NotNativeDto = ERC20, ERC721, ERC998, ERC1155
  • AllTypesDto = NATIVE, ERC20, ERC721, ERC998, ERC1155

General validation rules

Market

PurchasePrice
TEMPLATESemiCoinDto
LOTTERY TICKETSemiCoinDto
RAFFLE TICKETSemiCoinDto
LOOT BOXSemiCoinDto
MYSTERY BOXSemiCoinDto

Admin Mechanic

MechanicsItemPrice
CLAIM TEMPLATESemiNftDtoN/A
CLAIM TOKENNotNativeDtoN/A
CLAIM VESTINGERC20N/A
VESTINGCoinDtoN/A
WAIT LISTSemiNftDtoN/A
DISCRETEN/ASemiCoinDto
CRAFTSemiNftDto ️NotNativeDto
MERGENftDto ️NftDto
DISMANTLENotNativeDtoNftDto
RENTN/ASemiCoinDto
ASSET PROMOSemiNftDtoCoinDto

User Mechanics

MechanicsItemPrice
RENTN/ASemiCoinDto
WRAPPERAllTypesDtoN/A

Boxes

MechanicsContentPrice
MYSTERY BOXNftDtoSemiCoinDto
LOOT BOXNotNativeDtoSemiCoinDto

Finance

MechanicsDepositReward
STAKINGAllTypesDtoAllTypesDto
PONZICoinDtoCoinDto

Ecommerce

MechanicsItemPrice
PRODUCTN/ACoinDto
PRODUCT PROMON/ACoinDto