Class: PoolToken<TokenType>
entities.PoolToken
Type parameters
Name | Type |
---|---|
TokenType | extends string |
Constructors
constructor
• new PoolToken<TokenType
>(PoolTokenData
, chainList
): PoolToken
<TokenType
>
Type parameters
Name | Type |
---|---|
TokenType | extends string |
Parameters
Name | Type |
---|---|
PoolTokenData | Record <TokenType , PoolTokenDataType <TokenType >> |
chainList | number [] |
Returns
PoolToken
<TokenType
>
Defined in
Properties
PoolTokenData
• PoolTokenData: Record
<TokenType
, PoolTokenDataType
<TokenType
>>
Defined in
chainList
• chainList: number
[]
Defined in
Methods
getPoolTokenDataType
▸ getPoolTokenDataType(tokenAddress
): undefined
| PoolTokenDataType
<string
>
Parameters
Name | Type |
---|---|
tokenAddress | string |
Returns
undefined
| PoolTokenDataType
<string
>
Defined in
createPoolTokenDict
▸ createPoolTokenDict<TokenType
>(dict
, chainList
): PoolToken
<TokenType
>
Type parameters
Name | Type |
---|---|
TokenType | extends string |
Parameters
Name | Type |
---|---|
dict | Record <TokenType , PoolTokenDataType <TokenType >> |
chainList | number [] |
Returns
PoolToken
<TokenType
>