@lifi/types 8.3.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 (46) hide show
  1. package/CHANGELOG.md +0 -7
  2. package/dist/api.d.ts +25 -4
  3. package/dist/api.js +5 -2
  4. package/dist/base.d.ts +2 -24
  5. package/dist/bridges.d.ts +14 -2
  6. package/dist/bridges.js +0 -148
  7. package/dist/chains/EVMChain.d.ts +0 -1
  8. package/dist/chains/EVMChain.js +1 -4
  9. package/dist/chains/index.d.ts +0 -2
  10. package/dist/chains/index.js +0 -2
  11. package/dist/cjs/api.d.ts +25 -4
  12. package/dist/cjs/api.js +7 -3
  13. package/dist/cjs/base.d.ts +2 -24
  14. package/dist/cjs/bridges.d.ts +14 -2
  15. package/dist/cjs/bridges.js +1 -149
  16. package/dist/cjs/chains/EVMChain.d.ts +0 -1
  17. package/dist/cjs/chains/EVMChain.js +0 -6
  18. package/dist/cjs/chains/index.d.ts +0 -2
  19. package/dist/cjs/chains/index.js +0 -2
  20. package/dist/cjs/exchanges.d.ts +4 -14
  21. package/dist/cjs/exchanges.js +1 -1090
  22. package/dist/cjs/index.d.ts +3 -5
  23. package/dist/cjs/index.js +3 -5
  24. package/dist/cjs/step.d.ts +8 -6
  25. package/dist/exchanges.d.ts +4 -14
  26. package/dist/exchanges.js +0 -1088
  27. package/dist/index.d.ts +3 -5
  28. package/dist/index.js +3 -5
  29. package/dist/step.d.ts +8 -6
  30. package/package.json +12 -15
  31. package/dist/chains/chain.utils.d.ts +0 -4
  32. package/dist/chains/chain.utils.js +0 -21
  33. package/dist/chains/supported.chains.d.ts +0 -5
  34. package/dist/chains/supported.chains.js +0 -1166
  35. package/dist/cjs/chains/chain.utils.d.ts +0 -4
  36. package/dist/cjs/chains/chain.utils.js +0 -26
  37. package/dist/cjs/chains/supported.chains.d.ts +0 -5
  38. package/dist/cjs/chains/supported.chains.js +0 -1169
  39. package/dist/cjs/coins.d.ts +0 -9
  40. package/dist/cjs/coins.js +0 -1841
  41. package/dist/cjs/multicall.d.ts +0 -3
  42. package/dist/cjs/multicall.js +0 -79
  43. package/dist/coins.d.ts +0 -9
  44. package/dist/coins.js +0 -1834
  45. package/dist/multicall.d.ts +0 -3
  46. 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[];