Skip to content

Commit

Permalink
docs(changeset): Added coinGeckoId as an optional property of the Tok…
Browse files Browse the repository at this point in the history
…enConfigSchema
  • Loading branch information
tkporter committed Nov 8, 2024
1 parent fa42482 commit c2bda83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-actors-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Added coinGeckoId as an optional property of the TokenConfigSchema
4 changes: 4 additions & 0 deletions typescript/sdk/src/token/IToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const TokenConfigSchema = z.object({
.array(TokenConnectionConfigSchema)
.optional()
.describe('The list of token connections (e.g. warp or IBC)'),
coinGeckoId: z
.string()
.optional()
.describe('The CoinGecko id of the token, used for price lookups'),
});

export type TokenArgs = Omit<
Expand Down

0 comments on commit c2bda83

Please sign in to comment.