Interface

OrderEntity

OrderEntity

Properties:
Name Type Description
assetRefId number

Reference asset ID for listing in Marketplace

orderType OrderType

Type of order (SELL/BUY)

  • SELL if order is listing for sale - BUY if order is purchased by users
status OrderStatus

Status of order (ACTIVE/ CANCELLED/ FILLED/ INACTIVE)

expiredAt string

Timestamp with string format to define the expiration of order (Default as 12 years)

fees Array.<Fees>

The list fees define for the order entity

includeFees boolean

The flag to identify the order contains fee or not

assetIdBuy string

The hex string of the token buy (ETH / ERC_20 / MYRIA_TOKEN)

vaultIdBuy number

Vault ID of token buy (ETH /ERC_20 ex Myria, USDT tokens...)

assetIdSell string

The hex string of the token sell (NFT / MINTABLE_ERC721 / ERC721)

vaultIdSell number

Vault ID of token sell (it's MINTABLE_ERC721 / NFT)

amountBuy string

The ETH price that owner set for the listing assets (quantized amount)

amountSell string

The quantized amount sell of the assets (it's always 1 if asset is NFT - MINTABLE_ERC721/ERC_721)

nonQuantizedAmountBuy string

The ETH price that owner set for the listing assets (original amount)

  • For example, if the asset is listing with 2 ETH (nonQuantizedAmountSell = 1, nonQuantizedAmountBuy = 2 ETH)
nonQuantizedAmountSell string

The original amount token sell (it's always 1 if asset is NFT - MINTABLE_ERC721/ERC_721)

starkKey string

Stark of current owner for NFTs

nonce string

The unique nonce to identify the transaction creating order

starkSignature SplitSignature

Stark's signature includes r and s hex to prove the owner of transaction for listing

View Source types/OrderTypes.ts, line 84