diff --git a/examples/basic/node-solana/index.ts b/examples/basic/node-solana/index.ts index 53d3efa..fa98c2c 100644 --- a/examples/basic/node-solana/index.ts +++ b/examples/basic/node-solana/index.ts @@ -6,7 +6,6 @@ import { TransactionType, } from 'rango-sdk-basic' import { - logMeta, logQuote, logWallet, logSwap, @@ -58,10 +57,6 @@ logWallet(walletAddress) const API_KEY = 'c6381a79-2817-4602-83bf-6a641a409e32' const rango = new RangoClient(API_KEY) -// get blockchains and tokens meta data -const meta = await rango.meta() -logMeta(meta) - // some example tokens for test purpose const sourceBlockchain = 'SOLANA' const sourceTokenAddress = null diff --git a/examples/basic/node-starknet/index.ts b/examples/basic/node-starknet/index.ts index 51deb10..53647b0 100644 --- a/examples/basic/node-starknet/index.ts +++ b/examples/basic/node-starknet/index.ts @@ -6,7 +6,6 @@ import { TransactionType, } from 'rango-sdk-basic' import { - logMeta, logQuote, logWallet, logSwap, @@ -35,10 +34,6 @@ logWallet(walletAddress) const API_KEY = 'c6381a79-2817-4602-83bf-6a641a409e32' const rango = new RangoClient(API_KEY) -// get blockchains and tokens meta data -const meta = await rango.meta() -logMeta(meta) - // some example tokens for test purpose const sourceBlockchain = 'STARKNET' const sourceTokenAddress = diff --git a/examples/basic/node-tron/index.ts b/examples/basic/node-tron/index.ts index 8b18a13..cd0a426 100644 --- a/examples/basic/node-tron/index.ts +++ b/examples/basic/node-tron/index.ts @@ -6,7 +6,6 @@ import { TransactionType, } from 'rango-sdk-basic' import { - logMeta, logQuote, logWallet, logSwap, @@ -32,10 +31,6 @@ logWallet(walletAddress) const API_KEY = 'c6381a79-2817-4602-83bf-6a641a409e32' const rango = new RangoClient(API_KEY) -// get blockchains and tokens meta data -const meta = await rango.meta() -logMeta(meta) - // some example tokens for test purpose const sourceBlockchain = 'TRON' const sourceTokenAddress = null diff --git a/examples/basic/shared/utils/meta.ts b/examples/basic/shared/utils/meta.ts deleted file mode 100644 index 4431d78..0000000 --- a/examples/basic/shared/utils/meta.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Token } from 'rango-sdk-basic' - -export function findToken( - tokens: Token[], - blockchain: string, - address: string | null -): Token { - const token = tokens.find( - (token) => token.blockchain === blockchain && token.address == address - ) - if (!token) { - throw new Error( - `There was no token with blockchain=${blockchain} & address=${address}` - ) - } - return token -}