UNPKG

@uniswap/smart-wallet-sdk

Version:

⚒️ An SDK for building applications with smart wallets on Uniswap

18 lines 979 B
import { getAllSmartWalletVersions, SMART_WALLET_ADDRESSES, SupportedChainIds, SMART_WALLET_VERSIONS, SmartWalletVersion } from "./constants"; describe('constants', () => { it('SMART_WALLET_ADDRESSES should be latest versions', () => { const chainIdValues = Object.values(SupportedChainIds) .filter(value => typeof value === 'number'); for (const chainId of chainIdValues) { expect(SMART_WALLET_ADDRESSES[chainId]).toEqual(SMART_WALLET_VERSIONS[chainId][SmartWalletVersion.LATEST]); } }); it('getAllSmartWalletVersions should return all versions for a given chain id', () => { const chainIdValues = Object.values(SupportedChainIds) .filter(value => typeof value === 'number'); for (const chainId of chainIdValues) { expect(getAllSmartWalletVersions(chainId)).toEqual(Object.values(SMART_WALLET_VERSIONS[chainId])); } }); }); //# sourceMappingURL=constants.test.js.map