Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new Mainnet(__namedParameters: { registeredTokens?: RegisteredToken[]; onChange?: any }, fetch: any): Mainnet
  • Parameters

    • __namedParameters: { registeredTokens?: RegisteredToken[]; onChange?: any }
      • Optional registeredTokens?: RegisteredToken[]
      • onChange: function
        • onChange(): void
        • Returns void

    • fetch: any

    Returns Mainnet

Properties

defaultTokens

defaultTokens: StandardToken[]

host

host: string

id

id: string

isCustom

isCustom: boolean

Optional ledgerCanisterId

ledgerCanisterId: string

name

name: string

registeredNFTS

registeredNFTS: RegisteredNFT[]

registeredTokens

registeredTokens: RegisteredToken[]

Accessors

tokens

  • Returns StandardToken[]

Methods

createAgent

  • createAgent(__namedParameters: { defaultIdentity: SignIdentity }): HttpAgent
  • Parameters

    • __namedParameters: { defaultIdentity: SignIdentity }
      • defaultIdentity: SignIdentity

    Returns HttpAgent

edit

  • edit(): void
  • Returns void

getNftInfo

  • getNftInfo(__namedParameters: Object): Promise<{ canisterId: string; description?: string; icon?: string; name: string; registeredBy: never[]; standard: string; tokens: NFTDetails<string | bigint>[] }>
  • Parameters

    • __namedParameters: Object

    Returns Promise<{ canisterId: string; description?: string; icon?: string; name: string; registeredBy: never[]; standard: string; tokens: NFTDetails<string | bigint>[] }>

getTokenInfo

  • Parameters

    • __namedParameters: Object

    Returns Promise<RegisteredToken>

getTokens

  • Parameters

    • walletId: any

    Returns StandardToken[]

registerNFT

  • registerNFT(__namedParameters: Object): Promise<RegisteredNFT[]>
  • Parameters

    • __namedParameters: Object

    Returns Promise<RegisteredNFT[]>

registerToken

  • registerToken(__namedParameters: { canisterId: string; defaultIdentity: SignIdentity; logo?: string; standard: string; walletId: string }): Promise<StandardToken[]>
  • Parameters

    • __namedParameters: { canisterId: string; defaultIdentity: SignIdentity; logo?: string; standard: string; walletId: string }
      • canisterId: string
      • defaultIdentity: SignIdentity
      • Optional logo?: string
      • standard: string
      • walletId: string

    Returns Promise<StandardToken[]>

removeToken

  • removeToken(__namedParameters: { canisterId: string }): Promise<RegisteredToken[]>
  • Parameters

    • __namedParameters: { canisterId: string }
      • canisterId: string

    Returns Promise<RegisteredToken[]>

toJSON

  • Returns Omit<NetworkParams, "onChange">

tokenByCanisterId

  • tokenByCanisterId(canisterId: string): undefined | StandardToken

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Constructor
  • Method
  • Interface
  • Interface with type parameter
  • Inherited property
  • Inherited method
  • Enumeration