Global

Members

EnvTypes

# EnvTypes

Enum for environments (DEV/STAGING/PREPROD/PROD)

View Source typesBundle.ts, line 16

KeyNotification

# KeyNotification

Type of Key Config Email (ALL, SettlementRequest, DepositRequest, WithdrawalRequest, TransferRequest, MintRequest, FullWithdrawalRequest, FalseFullWithdrawalRequest, BulkTransferTransactionsResult, MultiTransactionRequest, RoyaltyTransferRequest, TokenBurnRequest ) KeyNotification.All: Config All option notification email KeyNotification.SettlementRequest: Config SettlementRequest KeyNotification.DepositRequest: Config DepositRequest KeyNotification.WithdrawalRequest: Config WithdrawalRequest KeyNotification.TransferRequest: Config TransferRequest KeyNotification.MintRequest: Config MintRequest KeyNotification.FullWithdrawalRequest: Config FullWithdrawalRequest KeyNotification.FalseFullWithdrawalRequest: Config FalseFullWithdrawalRequest KeyNotification.BulkTransferTransactionsResult: Config BulkTransferTransactionsResult KeyNotification.MultiTransactionRequest: Config MultiTransactionRequest KeyNotification.RoyaltyTransferRequest: Config RoyaltyTransferRequest KeyNotification.TokenBurnRequest: Config TokenBurnRequest

View Source types/UserTypes.ts, line 31

OrderBuy

# OrderBuy

OrderBuy Sort enum for the order list by ASC/ DESC

View Source types/AssetTypes.ts, line 8

UserType

# UserType

Type of users onboarding to Myria system (PARTNER/CUSTOMER) UserType.Partner : Track all of registered user come to Myria through Partner/Game Studios UserType.Customer: Track all of user come to Myria directly on the Website

View Source types/UserTypes.ts, line 11

Methods

# async WithdrawOnchainParams(withdrawalParams, options) → {Promise.<TxResult>}

The withdraw on-chain function to withdraw the Tokens available in the On-chain to User's Wallet

Parameters:
Name Type Description
withdrawalParams WithdrawOnchainParams

The withdraw on-chain params where it include both of the StarkKey and AssetType

options SendOptions

The native options for withdraw on-chain options

View Source modules/WithdrawalModule.ts, line 580

The promise with transaction results

Promise.<TxResult>

# waitFor()

Util function to return a promise which is resolved in provided milliseconds

View Source utils/RetryUtils.ts, line 27

Type Definitions

enum

# AnimationType

AnimationType for videos (such as mp4, webm)

View Source types/AssetTypes.ts, line 41

enum

# AssetOrderBy

The order by of listed assets (ASC/DESC) in the created time

View Source types/OrderTypes.ts, line 24

enum

# AssetStatus

Status to indicate the asset state on system

  • MINT_FAILED: The asset has been minted failed on system due to some of potential reason
  • MINTING: The minting is on processing at system
  • MINTED: The asset has been minted successfully in Myria System
  • UNKNOWN: Unknown status of the assets
  • WITHDRAWING: The withdraw offchain is progressing on background at System
  • WITHDRAWAL_COMPLETED: The full process of withdraw is completed. Users has received on-chain balance in Metamask already.

View Source types/AssetTypes.ts, line 13

enum

# AssetType

Type of the assets minted in Myria System (MINTABLE_ERC20 / MINTABLE_ERC721)

View Source types/AssetTypes.ts, line 32

Object

# ConfirmationType

(Hash/Confirmed/Both/Simulate/Sender)

View Source types/CommonTypes.ts, line 8

string

# EnvTypes

View Source typesBundle.ts, line 9

enum

# FeeType

Fee type support in Myria System (ROYALTY)

View Source types/MintTypes.ts, line 2

enum

# FeeTypes

Properties:
Name Type Description
id number

ID of fee on the database

address string

The wallet address to receive the fee

percentage number

The percentage of fee for purchased/traded transaction

feeType string

Type of FEE (currently support for ROYALTY only)

id number
address string
percentage number
feeType string

View Source types/AssetTypes.ts, line 90

string

# OrderBuy

sorting option for order buy

View Source types/AssetTypes.ts, line 2

enum

# OrderStatus

(INITIAL / ACTIVE / FILLED / FAILED / CANCELLED / INACTIVE / EXPIRED)

View Source types/OrderTypes.ts, line 11

enum

# OrderType

(BUY/SELL)

View Source types/OrderTypes.ts, line 3

Object

# OwnerAssetsCount

Properties:
Name Type Description
starkKey string

Stark key of the owner's NFT

totalAssets string

Total assets that the users owns

starkKey string
totalAssets string

View Source types/CollectionTypes.ts, line 190

Object

# PaginationType

Properties:
Name Type Attributes Description
limit number <optional>

Maximum items per page

page page <optional>

the index of page

route route <optional>

the suggested link to route to related API

limit number <optional>
page number <optional>
route string <optional>

View Source types/CollectionTypes.ts, line 242

string

# TokenType

Type of Token (ETH / ERC20 / ERC721 / MINTABLE_ERC20 / MINTABLE_ERC721)

View Source types/CommonTypes.ts, line 34

String

# TransactionStatus

Status of transaction (Prepare/FailedGateway/Pending/Success/Failed)

View Source types/TransactionTypes.ts, line 21

string

# TransactionType

Type of transaction (Settlement/Deposit/Withdrawal/Transfer/Mint/FullWithdrawal)

View Source types/TransactionTypes.ts, line 2

string

# UserType

UserType

View Source types/UserTypes.ts, line 2

Object

# WithdrawAndMintParams

Properties:
Name Type Description
starkKey string

The stark public key of user

walletAddress string

The eth wallet address that is to intend for withdrawAndMint

assetType string

The hex string to identify the assets/tokens (computed with Starkware algorithm)

mintingBlob string

The minting blob as the unique string and immutable data for the assets which is stored in the on-chain

starkKey string
walletAddress string
assetType string
mintingBlob string

View Source types/WithdrawType.ts, line 52

Object

# WithdrawOnchainParams

The withdraw on-chain function to withdraw the Tokens available in the On-chain to User's Wallet

View Source modules/WithdrawalModule.ts, line 283

Object

# WithdrawOnchainParams

Properties:
Name Type Description
starkKey string

The stark public key of user

assetType string

The hex string to identify the assets/tokens (computed with Starkware algorithm)

starkKey string
assetType string

View Source types/WithdrawType.ts, line 44