UNPKG

@uniswap/smart-wallet-sdk

Version:

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

20 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const constants_1 = require("./constants"); describe('constants', () => { it('SMART_WALLET_ADDRESSES should be latest versions', () => { const chainIdValues = Object.values(constants_1.SupportedChainIds) .filter(value => typeof value === 'number'); for (const chainId of chainIdValues) { expect(constants_1.SMART_WALLET_ADDRESSES[chainId]).toEqual(constants_1.SMART_WALLET_VERSIONS[chainId][constants_1.SmartWalletVersion.LATEST]); } }); it('getAllSmartWalletVersions should return all versions for a given chain id', () => { const chainIdValues = Object.values(constants_1.SupportedChainIds) .filter(value => typeof value === 'number'); for (const chainId of chainIdValues) { expect((0, constants_1.getAllSmartWalletVersions)(chainId)).toEqual(Object.values(constants_1.SMART_WALLET_VERSIONS[chainId])); } }); }); //# sourceMappingURL=constants.test.js.map