diff --git a/src/consts/interfaces.consts.ts b/src/consts/interfaces.consts.ts index b139b40..43a8c09 100644 --- a/src/consts/interfaces.consts.ts +++ b/src/consts/interfaces.consts.ts @@ -243,11 +243,14 @@ export interface ISquidChain { } export interface ISquidToken { + active: boolean chainId: string address: string + decimals: number name: string symbol: string logoURI: string + usdPrice: number } export interface ICreateClaimXChainPayload { diff --git a/src/index.ts b/src/index.ts index 11ff1d1..d36ae69 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2199,7 +2199,11 @@ async function getXChainOptionsForLink({ sourceChainId, tokenType, }: interfaces.IGetCrossChainOptionsForLinkParams): Promise< - Array + Array< + interfaces.ISquidChain & { + tokens: Pick[] + } + > > { if (tokenType > 1) { throw new interfaces.SDKStatus( @@ -2221,7 +2225,10 @@ async function getXChainOptionsForLink({ const supportedTokens = await getSquidTokens({ isTestnet }) - const supportedTokensMap = new Map() + const supportedTokensMap = new Map< + string, + Pick[] + >() supportedTokens.forEach(({ chainId, address, name, symbol, logoURI }) => { if (!supportedTokensMap.has(chainId)) {