UNPKG

@reown/appkit-common

Version:

The full stack toolkit to build onchain app UX.

14 lines 484 B
import { erc20ABI } from '../contracts/erc20.js'; import { swapABI } from '../contracts/swap.js'; import { usdtABI } from '../contracts/usdt.js'; import { ConstantsUtil } from './ConstantsUtil.js'; export const ContractUtil = { getERC20Abi: (tokenAddress) => { if (ConstantsUtil.USDT_CONTRACT_ADDRESSES.includes(tokenAddress)) { return usdtABI; } return erc20ABI; }, getSwapAbi: () => swapABI }; //# sourceMappingURL=ContractUtil.js.map