@lifi/types 9.0.0-alpha.0 → 9.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/api.d.ts +20 -2
  2. package/dist/base.d.ts +0 -22
  3. package/dist/bridges.d.ts +14 -2
  4. package/dist/bridges.js +0 -148
  5. package/dist/chains/EVMChain.d.ts +0 -1
  6. package/dist/chains/EVMChain.js +1 -4
  7. package/dist/chains/index.d.ts +0 -2
  8. package/dist/chains/index.js +0 -2
  9. package/dist/cjs/api.d.ts +20 -2
  10. package/dist/cjs/base.d.ts +0 -22
  11. package/dist/cjs/bridges.d.ts +14 -2
  12. package/dist/cjs/bridges.js +1 -149
  13. package/dist/cjs/chains/EVMChain.d.ts +0 -1
  14. package/dist/cjs/chains/EVMChain.js +0 -6
  15. package/dist/cjs/chains/index.d.ts +0 -2
  16. package/dist/cjs/chains/index.js +0 -2
  17. package/dist/cjs/exchanges.d.ts +4 -14
  18. package/dist/cjs/exchanges.js +1 -1090
  19. package/dist/cjs/index.d.ts +3 -5
  20. package/dist/cjs/index.js +3 -5
  21. package/dist/cjs/step.d.ts +8 -6
  22. package/dist/exchanges.d.ts +4 -14
  23. package/dist/exchanges.js +0 -1088
  24. package/dist/index.d.ts +3 -5
  25. package/dist/index.js +3 -5
  26. package/dist/step.d.ts +8 -6
  27. package/package.json +2 -7
  28. package/dist/chains/chain.utils.d.ts +0 -4
  29. package/dist/chains/chain.utils.js +0 -21
  30. package/dist/chains/supported.chains.d.ts +0 -5
  31. package/dist/chains/supported.chains.js +0 -1166
  32. package/dist/cjs/chains/chain.utils.d.ts +0 -4
  33. package/dist/cjs/chains/chain.utils.js +0 -26
  34. package/dist/cjs/chains/supported.chains.d.ts +0 -5
  35. package/dist/cjs/chains/supported.chains.js +0 -1169
  36. package/dist/cjs/coins.d.ts +0 -9
  37. package/dist/cjs/coins.js +0 -1841
  38. package/dist/cjs/multicall.d.ts +0 -3
  39. package/dist/cjs/multicall.js +0 -79
  40. package/dist/coins.d.ts +0 -9
  41. package/dist/coins.js +0 -1834
  42. package/dist/multicall.d.ts +0 -3
  43. package/dist/multicall.js +0 -76
@@ -1,4 +0,0 @@
1
- import { ChainKey } from '../base';
2
- import { Chain } from './EVMChain';
3
- export declare const getChainByKey: (chainKey: ChainKey) => Chain;
4
- export declare const getChainById: (chainId: number) => Chain;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getChainById = exports.getChainByKey = void 0;
4
- const supported_chains_1 = require("./supported.chains");
5
- const supportedChains = [
6
- // This will be added in the future
7
- // ...supportedSolanaChains,
8
- ...supported_chains_1.supportedEVMChains,
9
- ...supported_chains_1.supportedSolanaChains,
10
- ];
11
- const getChainByKey = (chainKey) => {
12
- const chain = supportedChains.find((c) => c.key === chainKey);
13
- if (!chain) {
14
- throw new Error('Invalid chainKey');
15
- }
16
- return chain;
17
- };
18
- exports.getChainByKey = getChainByKey;
19
- const getChainById = (chainId) => {
20
- const chain = supportedChains.find((c) => c.id === chainId);
21
- if (!chain) {
22
- throw new Error('Invalid chainId');
23
- }
24
- return chain;
25
- };
26
- exports.getChainById = getChainById;
@@ -1,5 +0,0 @@
1
- import { EVMChain } from './EVMChain';
2
- import { SolanaChain } from './SolanaChain';
3
- export declare const supportedEVMChains: EVMChain[];
4
- export declare const supportedSolanaChains: SolanaChain[];
5
- export declare const supportedChains: EVMChain[];