Repository Public
1// Live READ-ONLY check of the THORChain swap adapter (price discovery). Nothing is built, signed or broadcast.2// npx tsx scripts/smoke-swap-thorchain.mts3// See scripts/lib/smoke-native-swap.mts for what is verified.4import { THORCHAIN_API_VERSION, THORCHAIN_CONFIG } from '../packages/swap/src/providers/thorchain.ts';5import { native, smokeNativeSwap, token } from './lib/smoke-native-swap.mts';67await smokeNativeSwap(THORCHAIN_CONFIG, THORCHAIN_API_VERSION, [8 { from: native('bitcoin'), to: native('ethereum') },9 { from: native('ethereum'), to: native('bitcoin') },10 { from: native('bitcoin'), to: token('ethereum', 'USDC') },11 { from: native('dogecoin'), to: native('bitcoin') },12 { from: token('ethereum', 'USDC'), to: native('bitcoin') },13 { from: native('litecoin'), to: native('ethereum') },14 { from: native('xrpl'), to: native('tron') },15 { from: native('solana'), to: token('avalanche', 'USDC') },16 { from: native('bitcoin'), to: native('ethereum'), units: 20, slippageBps: 300, note: 'large: streaming expected' },17 { from: native('bitcoin'), to: native('ethereum'), usd: 2, expect: 'no_route', note: '(below recommended_min_amount_in)' },18 { from: native('bitcoin'), to: token('ethereum', 'LINK'), expect: 'unsupported', note: '(ETH.LINK pool is Staged)' },19]);20