Links

Config

@dataxfi/datax.js / Exports / Config

Class: Config

Table of contents

Constructors

  • constructor

Properties

  • custom
  • default
  • extra
  • networkId
  • web3

Methods

  • getCustomConfig
  • getNetwork

Constructors

constructor

new Config(web3, networkId)
Parameters
Name
Type
web3
any
networkId
string
Defined in

Properties

custom

custom: Object
Type declaration
Name
Type
1
{ datatokenList: string = "Qmc8Dp1U2kW6FJbpUYGr5W6sVyJsQeQzVundT9vooCH6aX"; routerAddress: string = "0x8d41dd706b964408f7702c8b52488023731b6748"; tokenList: string = "QmQi1sNZVP52urWq4TzLWx9dPRWNrvR4CUFgCEsocGkj5X" }
1.datatokenList
string
1.routerAddress
string
1.tokenList
string
1285
{ datatokenList: string = ""; routerAddress: string = ""; tokenList: string = "" }
1285.datatokenList
string
1285.routerAddress
string
1285.tokenList
string
137
{ datatokenList: string = ""; routerAddress: string = "0xf2E1cf99b69C7c1152EF273217Adb62F5dAe3886"; tokenList: string = "" }
137.datatokenList
string
137.routerAddress
string
137.tokenList
string
246
{ datatokenList: string = ""; routerAddress: string = "0x44b89BA2796E43aF07aBeF6D3324C8273e64F0dE"; tokenList: string = "" }
246.datatokenList
string
246.routerAddress
string
246.tokenList
string
4
{ datatokenList: string = "QmUcsbmbYT6sFTAzsoH1jtgzwi9B3RhBsZzFHjbs6igoQg"; routerAddress: string = "0x0B9376Ae7203657fEab7108cfe83e328e7a99ABf"; tokenList: string = "" }
4.datatokenList
string
4.routerAddress
string
4.tokenList
string
56
{ datatokenList: string = ""; routerAddress: string = ""; tokenList: string = "" }
56.datatokenList
string
56.routerAddress
string
56.tokenList
string
Defined in

default

default: any = null
Defined in

extra

Private extra: Object
Type declaration
Name
Type
maxUint256
string
pinataAPIBaseUrl
string
pinataRestUrl
string
Defined in

networkId

Private networkId: any = null
Defined in

web3

Private web3: any = null
Defined in

Methods

getCustomConfig

Private getCustomConfig(networkId): any
Parameters
Name
Type
networkId
any
Returns
any
Defined in

getNetwork

getNetwork(networkId): string
return network using network id
Parameters
Name
Type
networkId
string
Returns
string
Defined in