Skip to content

Commit

Permalink
chore: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Jul 24, 2023
1 parent 52b3d0c commit 0e17928
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions packages/sdk-ui-ts/src/denom/DenomClientAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
TokenInfo,
getIbcTokenMetaFromDenomTrace,
type Token,
TokenMeta,
} from '@injectivelabs/token-metadata'
import { getTokenFromAlchemyTokenMetaResponse } from '../utils/alchemy'
import { getTokenFromContractStateResponse } from '../utils/cw20'
Expand All @@ -28,12 +29,12 @@ import { IbcApplicationsTransferV1Transfer } from '@injectivelabs/core-proto-ts'
import { ErrorType, GeneralException } from '@injectivelabs/exceptions'

export class DenomClientAsync {
private denomClient: DenomClient

private web3Client: Web3Client | undefined

private endpoints: NetworkEndpoints

private denomClient: DenomClient

private chainWasmApi: ChainGrpcWasmApi

private chainBankApi: ChainGrpcBankApi
Expand Down Expand Up @@ -158,6 +159,26 @@ export class DenomClientAsync {
return token
}

getDenomTokenInfo(denom: string): TokenInfo | undefined {
return this.denomClient.getDenomTokenInfo(denom)
}

getTokenMetaDataBySymbol(symbol: string): TokenMeta | undefined {
return this.denomClient.getTokenMetaDataBySymbol(symbol)
}

getTokenMetaDataByAddress(address: string): TokenMeta | undefined {
return this.denomClient.getTokenMetaDataByAddress(address)
}

getTokenMetaDataByName(name: string): TokenMeta | undefined {
return this.denomClient.getTokenMetaDataByName(name)
}

getCoinGeckoId(denom: string): string {
return this.denomClient.getCoinGeckoId(denom)
}

private async getFactoryDenomMetadata(
denom: string,
): Promise<Metadata | undefined> {
Expand Down

0 comments on commit 0e17928

Please sign in to comment.