Skip to content

Commit

Permalink
feat(app): show wrapping for onchain asset quality (#3623)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor authored Jan 23, 2025
2 parents fc19d4d + 19ed12c commit 49dfa17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/src/lib/queries/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export const tokenInfoQuery = (chainId: string, denom: string, chains: Array<Cha

// note the non-decoded denom is used
let graphqlToken = chain?.tokens.find(t => t.denom === denom) ?? null
console.log("graphqltoken", graphqlToken)

if (graphqlToken?.wrapping && graphqlToken.wrapping.length > 0) {
tokenInfoMulti.combined.wrapping = graphqlToken.wrapping
}

// GraphQL info
if (graphqlToken?.representations && graphqlToken.representations.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion typescript-sdk/playground/stargaze-to-holesky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const cliArgs = parseArgs({

const PRIVATE_KEY = cliArgs.values["private-key"]
const STARS_DENOM = "ustars"
const AMOUNT = 13n
const AMOUNT = 420n
const RECEIVER = "0x153919669Edc8A5D0c8D1E4507c9CE60435A1177"
const SOURCE_CHAIN_ID = "elgafar-1"
const DESTINATION_CHAIN_ID = "17000"
Expand Down

0 comments on commit 49dfa17

Please sign in to comment.