@swingby-protocol/sdk
Version:
An implementation of the Swingby standard development kit for NodeJS and JavaScript.
24 lines (22 loc) • 613 B
text/typescript
import type { SkybridgeContext } from '..';
import type { SkybridgeMode } from '../../modes';
export const buildContext = async <M extends SkybridgeMode>({
mode,
}: {
mode: M;
}): Promise<SkybridgeContext<M>> => {
return {
mode,
affiliateApi: 'https://affiliate.swingby.network',
servers: {
swapNode: {
btc_erc: 'https://btc-wbtc-mainnet.quantexe.com',
btc_bep20: 'https://tbtc-bsc-1.swingby.network',
},
indexer: {
btc_erc: 'https://indexer.swingby.network/bb-eth',
btc_bep20: 'https://indexer.swingby.network/bb-bsc',
},
},
};
};