impermax-sdk 1.0.2 → 1.0.3

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 (108) hide show
  1. package/package.json +1 -1
  2. package/lib/esm/abis/ImpermaxABI.d.ts +0 -2
  3. package/lib/esm/abis/ImpermaxABI.js +0 -3
  4. package/lib/esm/abis/contracts/ClaimAggregator.json +0 -2015
  5. package/lib/esm/abis/contracts/IBorrowable.json +0 -13207
  6. package/lib/esm/abis/contracts/IClaimable.json +0 -406
  7. package/lib/esm/abis/contracts/ICollateral.json +0 -8952
  8. package/lib/esm/abis/contracts/IERC20.json +0 -2376
  9. package/lib/esm/abis/contracts/IFactory.json +0 -3660
  10. package/lib/esm/abis/contracts/IFarmingPool.json +0 -3584
  11. package/lib/esm/abis/contracts/IMerkleDistributor.json +0 -1134
  12. package/lib/esm/abis/contracts/IRouter02.json +0 -7283
  13. package/lib/esm/abis/contracts/ISimpleUniswapOracle.json +0 -1469
  14. package/lib/esm/abis/contracts/IStakedLPToken.json +0 -7309
  15. package/lib/esm/abis/contracts/IStakingRewards.json +0 -1036
  16. package/lib/esm/abis/contracts/IUniswapV2Factory.json +0 -1690
  17. package/lib/esm/abis/contracts/IUniswapV2Pair.json +0 -6761
  18. package/lib/esm/abis/contracts/ImpermaxChef.json +0 -20945
  19. package/lib/esm/config/amms.d.ts +0 -25
  20. package/lib/esm/config/amms.js +0 -196
  21. package/lib/esm/config/contracts/claim-aggregators.d.ts +0 -2
  22. package/lib/esm/config/contracts/claim-aggregators.js +0 -18
  23. package/lib/esm/config/contracts/impermax-chef.d.ts +0 -2
  24. package/lib/esm/config/contracts/impermax-chef.js +0 -18
  25. package/lib/esm/config/contracts/imxes.d.ts +0 -2
  26. package/lib/esm/config/contracts/imxes.js +0 -18
  27. package/lib/esm/config/contracts/merkle-distributors.d.ts +0 -4
  28. package/lib/esm/config/contracts/merkle-distributors.js +0 -13
  29. package/lib/esm/config/contracts/routers.d.ts +0 -2
  30. package/lib/esm/config/contracts/routers.js +0 -38
  31. package/lib/esm/config/contracts/simple-uniswap-oracles.d.ts +0 -2
  32. package/lib/esm/config/contracts/simple-uniswap-oracles.js +0 -35
  33. package/lib/esm/config/contracts/weths.d.ts +0 -2
  34. package/lib/esm/config/contracts/weths.js +0 -19
  35. package/lib/esm/config/debank-ids.d.ts +0 -2
  36. package/lib/esm/config/debank-ids.js +0 -17
  37. package/lib/esm/config/endpoints/merkle-distributors.d.ts +0 -4
  38. package/lib/esm/config/endpoints/merkle-distributors.js +0 -13
  39. package/lib/esm/config/eth.d.ts +0 -3
  40. package/lib/esm/config/eth.js +0 -32
  41. package/lib/esm/config/factories.d.ts +0 -6
  42. package/lib/esm/config/factories.js +0 -24
  43. package/lib/esm/config/farms.d.ts +0 -59
  44. package/lib/esm/config/farms.js +0 -114
  45. package/lib/esm/config/general.d.ts +0 -3
  46. package/lib/esm/config/general.js +0 -8
  47. package/lib/esm/config/subgraphs.d.ts +0 -5
  48. package/lib/esm/config/subgraphs.js +0 -68
  49. package/lib/esm/config/types.d.ts +0 -67
  50. package/lib/esm/config/types.js +0 -54
  51. package/lib/esm/impermax-router/Account.d.ts +0 -31
  52. package/lib/esm/impermax-router/Account.js +0 -154
  53. package/lib/esm/impermax-router/AccountBorrowable.d.ts +0 -22
  54. package/lib/esm/impermax-router/AccountBorrowable.js +0 -141
  55. package/lib/esm/impermax-router/AccountCollateral.d.ts +0 -11
  56. package/lib/esm/impermax-router/AccountCollateral.js +0 -63
  57. package/lib/esm/impermax-router/AccountLendingPool.d.ts +0 -57
  58. package/lib/esm/impermax-router/AccountLendingPool.js +0 -266
  59. package/lib/esm/impermax-router/AccountPoolToken.d.ts +0 -29
  60. package/lib/esm/impermax-router/AccountPoolToken.js +0 -89
  61. package/lib/esm/impermax-router/Borrowable.d.ts +0 -27
  62. package/lib/esm/impermax-router/Borrowable.js +0 -128
  63. package/lib/esm/impermax-router/Collateral.d.ts +0 -9
  64. package/lib/esm/impermax-router/Collateral.js +0 -45
  65. package/lib/esm/impermax-router/ContractsHelper.d.ts +0 -28
  66. package/lib/esm/impermax-router/ContractsHelper.js +0 -50
  67. package/lib/esm/impermax-router/ImpermaxFactory.d.ts +0 -15
  68. package/lib/esm/impermax-router/ImpermaxFactory.js +0 -42
  69. package/lib/esm/impermax-router/Interactions.d.ts +0 -16
  70. package/lib/esm/impermax-router/Interactions.js +0 -105
  71. package/lib/esm/impermax-router/InteractionsLendingPool.d.ts +0 -43
  72. package/lib/esm/impermax-router/InteractionsLendingPool.js +0 -124
  73. package/lib/esm/impermax-router/InteractionsPoolToken.d.ts +0 -23
  74. package/lib/esm/impermax-router/InteractionsPoolToken.js +0 -194
  75. package/lib/esm/impermax-router/LendingPool.d.ts +0 -69
  76. package/lib/esm/impermax-router/LendingPool.js +0 -291
  77. package/lib/esm/impermax-router/PoolToken.d.ts +0 -36
  78. package/lib/esm/impermax-router/PoolToken.js +0 -140
  79. package/lib/esm/impermax-router/index.d.ts +0 -20
  80. package/lib/esm/impermax-router/index.js +0 -34
  81. package/lib/esm/impermax-router/interfaces.d.ts +0 -218
  82. package/lib/esm/impermax-router/interfaces.js +0 -15
  83. package/lib/esm/index.d.ts +0 -3
  84. package/lib/esm/index.js +0 -10
  85. package/lib/esm/subgraph/Account.d.ts +0 -18
  86. package/lib/esm/subgraph/Account.js +0 -111
  87. package/lib/esm/subgraph/AccountLendingPool.d.ts +0 -19
  88. package/lib/esm/subgraph/AccountLendingPool.js +0 -71
  89. package/lib/esm/subgraph/AccountPoolToken.d.ts +0 -14
  90. package/lib/esm/subgraph/AccountPoolToken.js +0 -75
  91. package/lib/esm/subgraph/LendingPool.d.ts +0 -38
  92. package/lib/esm/subgraph/LendingPool.js +0 -204
  93. package/lib/esm/subgraph/PoolToken.d.ts +0 -64
  94. package/lib/esm/subgraph/PoolToken.js +0 -462
  95. package/lib/esm/subgraph/PriceHelper.d.ts +0 -21
  96. package/lib/esm/subgraph/PriceHelper.js +0 -166
  97. package/lib/esm/subgraph/SolidexHelper.d.ts +0 -16
  98. package/lib/esm/subgraph/SolidexHelper.js +0 -58
  99. package/lib/esm/subgraph/index.d.ts +0 -73
  100. package/lib/esm/subgraph/index.js +0 -185
  101. package/lib/esm/subgraph/initializer.d.ts +0 -34
  102. package/lib/esm/subgraph/initializer.js +0 -517
  103. package/lib/esm/subgraph/query.d.ts +0 -10
  104. package/lib/esm/subgraph/query.js +0 -229
  105. package/lib/esm/utils/ether-utils.d.ts +0 -5
  106. package/lib/esm/utils/ether-utils.js +0 -26
  107. package/lib/esm/utils/index.d.ts +0 -3
  108. package/lib/esm/utils/index.js +0 -16
@@ -1,25 +0,0 @@
1
- import { Address, AmmIndex, Amms, Networks } from './types';
2
- export declare const hrAmms: {
3
- uniswap: string;
4
- quickswap: string;
5
- sushiswap: string;
6
- swapr: string;
7
- swapfish: string;
8
- zyberswap: string;
9
- pangolin: string;
10
- traderJoe: string;
11
- solarbeam: string;
12
- thorus: string;
13
- tetuswap: string;
14
- solidly: string;
15
- solidlyB: string;
16
- solidlyUSDC: string;
17
- solidlyUSDCB: string;
18
- solidly091: string;
19
- solidlyOxd: string;
20
- };
21
- export declare const AMM_FACTORY: AmmIndex;
22
- export declare function getAmmByFactory(network: Networks, address: Address): Amms;
23
- export declare const AMM_SUBGRAPH_URLS: AmmIndex;
24
- export declare const ADD_LIQUIDITY_URLS: AmmIndex;
25
- export declare const AMM_LP_FEE: AmmIndex;
@@ -1,196 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AMM_LP_FEE = exports.ADD_LIQUIDITY_URLS = exports.AMM_SUBGRAPH_URLS = exports.getAmmByFactory = exports.AMM_FACTORY = exports.hrAmms = void 0;
4
- const types_1 = require("./types");
5
- exports.hrAmms = {
6
- [types_1.Amms.uniswap]: 'Uniswap',
7
- [types_1.Amms.quickswap]: 'QuickSwap',
8
- [types_1.Amms.sushiswap]: 'SushiSwap',
9
- [types_1.Amms.swapr]: 'Swapr',
10
- [types_1.Amms.swapfish]: 'SwapFish',
11
- [types_1.Amms.zyberswap]: 'ZyberSwap',
12
- [types_1.Amms.pangolin]: 'Pangolin',
13
- [types_1.Amms.traderJoe]: 'TraderJoe',
14
- [types_1.Amms.solarbeam]: 'Solarbeam',
15
- [types_1.Amms.thorus]: 'Thorus',
16
- [types_1.Amms.tetuswap]: 'TetuSwap',
17
- [types_1.Amms.solidly]: 'Solidly',
18
- [types_1.Amms.solidlyB]: 'Solidly',
19
- [types_1.Amms.solidlyUSDC]: 'Solidly',
20
- [types_1.Amms.solidlyUSDCB]: 'Solidly',
21
- [types_1.Amms.solidly091]: 'Solidly',
22
- [types_1.Amms.solidlyOxd]: 'Solidly',
23
- };
24
- exports.AMM_FACTORY = {
25
- [types_1.Networks.Ropsten]: {
26
- [types_1.Amms.uniswap]: '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f',
27
- },
28
- [types_1.Networks.Mainnet]: {
29
- [types_1.Amms.uniswap]: '0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f',
30
- },
31
- [types_1.Networks.Polygon]: {
32
- [types_1.Amms.quickswap]: '0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32',
33
- [types_1.Amms.sushiswap]: '0xc35dadb65012ec5796536bd9864ed8773abc74c4',
34
- [types_1.Amms.tetuswap]: '0x684d8c187be836171a1Af8D533e4724893031828',
35
- },
36
- [types_1.Networks.Arbitrum]: {
37
- [types_1.Amms.sushiswap]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
38
- [types_1.Amms.swapr]: '0x359F20Ad0F42D75a5077e65F30274cABe6f4F01a',
39
- [types_1.Amms.swapfish]: '0x71539D09D3890195dDa87A6198B98B75211b72F3',
40
- [types_1.Amms.zyberswap]: '0xac2ee06a14c52570ef3b9812ed240bce359772e7',
41
- },
42
- [types_1.Networks.Avalanche]: {
43
- [types_1.Amms.pangolin]: '0xefa94DE7a4656D787667C749f7E1223D71E9FD88',
44
- [types_1.Amms.traderJoe]: '0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10',
45
- [types_1.Amms.thorus]: '0xa98ea6356A316b44Bf710D5f9b6b4eA0081409Ef',
46
- },
47
- [types_1.Networks.Moonriver]: {
48
- [types_1.Amms.sushiswap]: '0xc35DADB65012eC5796536bD9864eD8773aBc74C4',
49
- [types_1.Amms.solarbeam]: '0x049581aEB6Fe262727f290165C29BDAB065a1B68',
50
- },
51
- [types_1.Networks.Aurora]: {},
52
- [types_1.Networks.Cronos]: {},
53
- [types_1.Networks.Fantom]: {
54
- [types_1.Amms.solidly]: '0x95887654d8646c26fab33f344576e2e74b211256',
55
- [types_1.Amms.solidlyB]: '0x8610Dc1912a55761a713D827a1a1ad131bE8f579',
56
- [types_1.Amms.solidlyUSDC]: '0xF14f98E6F34C12Bd74fcEAC1668aF749fc269cFf',
57
- [types_1.Amms.solidlyUSDCB]: '0x9B1434a02Ee86302d463bB6B365EbdFAc56e067A',
58
- [types_1.Amms.solidly091]: '0xdc4baf3b4b1df79083eedf3e46ec2c4ec1296f60',
59
- [types_1.Amms.solidlyOxd]: '0xB83D21F60B73B21506c69DEcdBcF7Ab5AB737eB2', //NOTICE: this is actually the staked LP factory
60
- },
61
- [types_1.Networks.Harmony]: {},
62
- [types_1.Networks.Moonbeam]: {},
63
- [types_1.Networks.Sxnetwork]: {},
64
- };
65
- function getAmmByFactory(network, address) {
66
- if (!address)
67
- return null;
68
- for (const amm of Object.keys(types_1.Amms)) {
69
- if (exports.AMM_FACTORY[network][amm] &&
70
- address.toLowerCase() == exports.AMM_FACTORY[network][amm].toLowerCase())
71
- return amm;
72
- }
73
- return null;
74
- }
75
- exports.getAmmByFactory = getAmmByFactory;
76
- exports.AMM_SUBGRAPH_URLS = {
77
- [types_1.Networks.Ropsten]: {},
78
- [types_1.Networks.Mainnet]: {
79
- [types_1.Amms.uniswap]: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
80
- },
81
- [types_1.Networks.Polygon]: {
82
- [types_1.Amms.quickswap]: 'https://api.fura.org/subgraphs/name/quickswap',
83
- [types_1.Amms.sushiswap]: 'https://api.thegraph.com/subgraphs/name/sushiswap/matic-exchange',
84
- [types_1.Amms.tetuswap]: 'https://api.thegraph.com/subgraphs/name/tetu-io/tetu-swap',
85
- },
86
- [types_1.Networks.Arbitrum]: {
87
- [types_1.Amms.sushiswap]: 'https://api.thegraph.com/subgraphs/name/sushiswap/arbitrum-exchange',
88
- [types_1.Amms.swapr]: 'https://api.thegraph.com/subgraphs/name/luzzif/swapr-arbitrum-one-v2',
89
- [types_1.Amms.zyberswap]: 'https://api.thegraph.com/subgraphs/name/zyberswap-arbitrum/zyber-amm',
90
- //[Amms.swapfish]: 'https://bsc.streamingfast.io/subgraphs/name/pancakeswap/exchange-v2',
91
- },
92
- [types_1.Networks.Avalanche]: {
93
- [types_1.Amms.pangolin]: 'https://api.thegraph.com/subgraphs/name/dasconnor/pangolin-dex',
94
- [types_1.Amms.traderJoe]: 'https://api.thegraph.com/subgraphs/name/traderjoe-xyz/exchange',
95
- [types_1.Amms.thorus]: '',
96
- },
97
- [types_1.Networks.Moonriver]: {
98
- [types_1.Amms.sushiswap]: 'https://api.thegraph.com/subgraphs/name/sushiswap/moonriver-exchange',
99
- [types_1.Amms.solarbeam]: 'https://analytics.solarbeam.io/api/subgraph',
100
- },
101
- [types_1.Networks.Aurora]: {},
102
- [types_1.Networks.Cronos]: {},
103
- [types_1.Networks.Fantom]: {
104
- [types_1.Amms.solidly]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
105
- [types_1.Amms.solidlyB]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
106
- [types_1.Amms.solidlyUSDC]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
107
- [types_1.Amms.solidlyUSDCB]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
108
- [types_1.Amms.solidly091]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
109
- [types_1.Amms.solidlyOxd]: 'https://api.thegraph.com/subgraphs/name/spartacus-finance/solidly',
110
- },
111
- [types_1.Networks.Harmony]: {},
112
- [types_1.Networks.Moonbeam]: {},
113
- [types_1.Networks.Sxnetwork]: {},
114
- };
115
- exports.ADD_LIQUIDITY_URLS = {
116
- [types_1.Networks.Ropsten]: {
117
- [types_1.Amms.uniswap]: 'https://app.uniswap.org/#/add/V2/',
118
- },
119
- [types_1.Networks.Mainnet]: {
120
- [types_1.Amms.uniswap]: 'https://app.uniswap.org/#/add/V2/',
121
- },
122
- [types_1.Networks.Polygon]: {
123
- [types_1.Amms.quickswap]: 'https://quickswap.exchange/#/add/',
124
- [types_1.Amms.sushiswap]: 'https://app.sushi.com/legacy/add/',
125
- [types_1.Amms.tetuswap]: 'https://swap.tetu.io/#/add/',
126
- },
127
- [types_1.Networks.Arbitrum]: {
128
- [types_1.Amms.sushiswap]: 'https://app.sushi.com/legacy/add/',
129
- [types_1.Amms.swapr]: 'https://swapr.eth.link/#/add/',
130
- [types_1.Amms.swapfish]: 'https://swapfish.fi/add/',
131
- [types_1.Amms.zyberswap]: 'https://app.zyberswap.io/exchange/add/',
132
- },
133
- [types_1.Networks.Avalanche]: {
134
- [types_1.Amms.pangolin]: 'https://app.pangolin.exchange/#/add/',
135
- [types_1.Amms.traderJoe]: 'https://www.traderjoexyz.com/#/pool/',
136
- [types_1.Amms.thorus]: 'https://app.thorus.fi/add/',
137
- },
138
- [types_1.Networks.Moonriver]: {
139
- [types_1.Amms.sushiswap]: 'https://app.sushi.com/legacy/add/',
140
- [types_1.Amms.solarbeam]: 'https://app.solarbeam.io/exchange/add/',
141
- },
142
- [types_1.Networks.Aurora]: {},
143
- [types_1.Networks.Cronos]: {},
144
- [types_1.Networks.Fantom]: {
145
- [types_1.Amms.solidly]: 'https://solidly.exchange/liquidity/create',
146
- [types_1.Amms.solidlyB]: 'https://solidly.exchange/liquidity/create',
147
- [types_1.Amms.solidlyUSDC]: 'https://solidly.exchange/liquidity/create',
148
- [types_1.Amms.solidlyUSDCB]: 'https://solidly.exchange/liquidity/create',
149
- [types_1.Amms.solidly091]: 'https://solidly.exchange/liquidity/create',
150
- [types_1.Amms.solidlyOxd]: 'https://solidly.exchange/liquidity/create',
151
- },
152
- [types_1.Networks.Harmony]: {},
153
- [types_1.Networks.Moonbeam]: {},
154
- [types_1.Networks.Sxnetwork]: {},
155
- };
156
- exports.AMM_LP_FEE = {
157
- [types_1.Networks.Ropsten]: {
158
- [types_1.Amms.uniswap]: 0.003,
159
- },
160
- [types_1.Networks.Mainnet]: {
161
- [types_1.Amms.uniswap]: 0.003,
162
- },
163
- [types_1.Networks.Polygon]: {
164
- [types_1.Amms.quickswap]: 0.0025,
165
- [types_1.Amms.sushiswap]: 0.0025,
166
- [types_1.Amms.tetuswap]: 0,
167
- },
168
- [types_1.Networks.Arbitrum]: {
169
- [types_1.Amms.sushiswap]: 0.0025,
170
- [types_1.Amms.swapr]: 0.00225,
171
- [types_1.Amms.swapfish]: 0.0017,
172
- [types_1.Amms.zyberswap]: 0.0015,
173
- },
174
- [types_1.Networks.Avalanche]: {
175
- [types_1.Amms.pangolin]: 0.0025,
176
- [types_1.Amms.traderJoe]: 0.0025,
177
- [types_1.Amms.thorus]: 0,
178
- },
179
- [types_1.Networks.Moonriver]: {
180
- [types_1.Amms.sushiswap]: 0.0025,
181
- [types_1.Amms.solarbeam]: 0.002,
182
- },
183
- [types_1.Networks.Aurora]: {},
184
- [types_1.Networks.Cronos]: {},
185
- [types_1.Networks.Fantom]: {
186
- [types_1.Amms.solidly]: 0,
187
- [types_1.Amms.solidlyB]: 0,
188
- [types_1.Amms.solidlyUSDC]: 0,
189
- [types_1.Amms.solidlyUSDCB]: 0,
190
- [types_1.Amms.solidly091]: 0,
191
- [types_1.Amms.solidlyOxd]: 0,
192
- },
193
- [types_1.Networks.Harmony]: {},
194
- [types_1.Networks.Moonbeam]: {},
195
- [types_1.Networks.Sxnetwork]: {},
196
- };
@@ -1,2 +0,0 @@
1
- import { Address, NetworkIndex } from '../types';
2
- export declare const CLAIM_AGGREGATOR: NetworkIndex<Address>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CLAIM_AGGREGATOR = void 0;
4
- const types_1 = require("../types");
5
- exports.CLAIM_AGGREGATOR = {
6
- [types_1.Networks.Ropsten]: '0x2078270ae9956f1298f8bfd8be43306bbd4ab551',
7
- [types_1.Networks.Mainnet]: '0x5287cac629be59997602b4177cb4420165264b69',
8
- [types_1.Networks.Polygon]: '0x718Cd1D06094b53de74dE745c4EAD3AC629a0c98',
9
- [types_1.Networks.Arbitrum]: '0x95887654d8646C26fAb33F344576E2E74b211256',
10
- [types_1.Networks.Avalanche]: '0x5e169082fFf23cEE6766062B96051A78c543127D',
11
- [types_1.Networks.Moonriver]: '0x772a82D27b1024e9072aE33dCEd3C0DF1FbDA66e',
12
- [types_1.Networks.Aurora]: '',
13
- [types_1.Networks.Cronos]: '',
14
- [types_1.Networks.Fantom]: '',
15
- [types_1.Networks.Harmony]: '',
16
- [types_1.Networks.Moonbeam]: '',
17
- [types_1.Networks.Sxnetwork]: '',
18
- };
@@ -1,2 +0,0 @@
1
- import { Address, NetworkIndex } from '../types';
2
- export declare const IMPERMAX_CHEF: NetworkIndex<Address>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IMPERMAX_CHEF = void 0;
4
- const types_1 = require("../types");
5
- exports.IMPERMAX_CHEF = {
6
- [types_1.Networks.Ropsten]: '',
7
- [types_1.Networks.Mainnet]: '',
8
- [types_1.Networks.Polygon]: '0x89703cA5c6C3BD35f9D288Ff9710BecBFA8C6f7b',
9
- [types_1.Networks.Arbitrum]: '0x99CF05461dd5F94761d4Fae6a2abDa47A93451f5',
10
- [types_1.Networks.Avalanche]: '0x5475aEd9d11BeaA822e122C36ACDfa0dA2eb086f',
11
- [types_1.Networks.Moonriver]: '0xD299D53Fc3B09038765af2091a0647e2304a7caa',
12
- [types_1.Networks.Aurora]: '',
13
- [types_1.Networks.Cronos]: '',
14
- [types_1.Networks.Fantom]: '0x19D8a5Abbd08E8Cf6aA9b2df46A04D13CCB7E3b4',
15
- [types_1.Networks.Harmony]: '',
16
- [types_1.Networks.Moonbeam]: '',
17
- [types_1.Networks.Sxnetwork]: '',
18
- };
@@ -1,2 +0,0 @@
1
- import { Address, NetworkIndex } from '../types';
2
- export declare const IMX: NetworkIndex<Address>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IMX = void 0;
4
- const types_1 = require("../types");
5
- exports.IMX = {
6
- [types_1.Networks.Ropsten]: '0x6659a9c5cd313974343e30b4fdffd95bd4b4dcd2',
7
- [types_1.Networks.Mainnet]: '0x7b35ce522cb72e4077baeb96cb923a5529764a00',
8
- [types_1.Networks.Polygon]: '0x60bb3d364b765c497c8ce50ae0ae3f0882c5bd05',
9
- [types_1.Networks.Arbitrum]: '0x9c67ee39e3c4954396b9142010653f17257dd39c',
10
- [types_1.Networks.Avalanche]: '0xea6887e4a9cda1b77e70129e5fba830cdb5cddef',
11
- [types_1.Networks.Moonriver]: '0x900f1Ec5819FA087d368877cD03B265Bf1802667',
12
- [types_1.Networks.Aurora]: '',
13
- [types_1.Networks.Cronos]: '',
14
- [types_1.Networks.Fantom]: '0xea38f1ccf77bf43f352636241b05dd8f6f5f52b2',
15
- [types_1.Networks.Harmony]: '0xbd8064cdb96c00a73540922504f989c64b7b8b96',
16
- [types_1.Networks.Moonbeam]: '',
17
- [types_1.Networks.Sxnetwork]: '',
18
- };
@@ -1,4 +0,0 @@
1
- import { Address, NetworkIndex } from '../types';
2
- export declare const MERKLE_DISTRIBUTOR_IBEX: NetworkIndex<Address>;
3
- export declare const MERKLE_DISTRIBUTOR_IBEX_2: NetworkIndex<Address>;
4
- export declare const MERKLE_DISTRIBUTOR_ETH: NetworkIndex<Address>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MERKLE_DISTRIBUTOR_ETH = exports.MERKLE_DISTRIBUTOR_IBEX_2 = exports.MERKLE_DISTRIBUTOR_IBEX = void 0;
4
- const types_1 = require("../types");
5
- exports.MERKLE_DISTRIBUTOR_IBEX = {
6
- [types_1.Networks.Polygon]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
7
- };
8
- exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
9
- [types_1.Networks.Polygon]: '0x1c813cDd6dAecE2CB83C52F0798504e42816E9C5',
10
- };
11
- exports.MERKLE_DISTRIBUTOR_ETH = {
12
- [types_1.Networks.Polygon]: '0x7ce2f634f0698ecdca051ef1dc4be96ef3d05a62',
13
- };
@@ -1,2 +0,0 @@
1
- import { Address, NetworkFactoryIndex } from '../types';
2
- export declare const ROUTER: NetworkFactoryIndex<Address>;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ROUTER = void 0;
4
- const types_1 = require("../types");
5
- exports.ROUTER = {
6
- [types_1.Networks.Ropsten]: {
7
- [types_1.Factory.V2V1]: '0xbFf4acF789297A8507Eb7493AE18EB2C3A3A9632'
8
- },
9
- [types_1.Networks.Mainnet]: {
10
- [types_1.Factory.V2V1]: '0x5e169082fff23cee6766062b96051a78c543127d'
11
- },
12
- [types_1.Networks.Polygon]: {
13
- [types_1.Factory.V2V1_1]: '0x7C79A1c2152665273ebD50e9E88d92A887a83BA0',
14
- [types_1.Factory.V2V2]: '0x4e69Cf49FF3aF82eFe304a3C723556efB7434736',
15
- },
16
- [types_1.Networks.Arbitrum]: {
17
- [types_1.Factory.V2V1_1]: '0x5475aEd9d11BeaA822e122C36ACDfa0dA2eb086f',
18
- [types_1.Factory.V2V2]: '0xaf82ee9246a608484e8567fadbef64ac1b8a87ab',
19
- },
20
- [types_1.Networks.Avalanche]: {
21
- [types_1.Factory.V2V1_2]: '0x3039C26F9126833bAca8EdBF61c761CD909F461f',
22
- [types_1.Factory.V2V2]: '0xaf82ee9246a608484e8567fadbef64ac1b8a87ab',
23
- },
24
- [types_1.Networks.Moonriver]: {
25
- [types_1.Factory.V2V1_2]: '0x3271cc175577465691e48196955e09d638fa05d5',
26
- },
27
- [types_1.Networks.Aurora]: {
28
- [types_1.Factory.V2V1_2]: '0xBB92270716C8c424849F17cCc12F4F24AD4064D6',
29
- },
30
- [types_1.Networks.Cronos]: {},
31
- [types_1.Networks.Fantom]: {
32
- [types_1.Factory.SOLV1_2]: '0xB9f3413e206F1D658D4DaFB233873dDe56cf94Fc',
33
- [types_1.Factory.SOLV2]: '0xc75094b5cE53C050816A446701B0D69101c40937',
34
- },
35
- [types_1.Networks.Harmony]: {},
36
- [types_1.Networks.Moonbeam]: {},
37
- [types_1.Networks.Sxnetwork]: {},
38
- };
@@ -1,2 +0,0 @@
1
- import { Address, NetworkFactoryIndex } from '../types';
2
- export declare const SIMPLE_UNISWAP_ORACLE: NetworkFactoryIndex<Address>;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SIMPLE_UNISWAP_ORACLE = void 0;
4
- const types_1 = require("../types");
5
- exports.SIMPLE_UNISWAP_ORACLE = {
6
- [types_1.Networks.Ropsten]: {
7
- [types_1.Factory.V2V1]: '0xc53bb18028feA1B413057e2b2474F9838c465Fc3'
8
- },
9
- [types_1.Networks.Mainnet]: {
10
- [types_1.Factory.V2V1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
11
- },
12
- [types_1.Networks.Polygon]: {
13
- [types_1.Factory.V2V1_1]: '0x3271CC175577465691E48196955e09d638Fa05D5',
14
- [types_1.Factory.V2V2]: '0x3271CC175577465691E48196955e09d638Fa05D5',
15
- },
16
- [types_1.Networks.Arbitrum]: {
17
- [types_1.Factory.V2V1_1]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D',
18
- [types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
19
- },
20
- [types_1.Networks.Avalanche]: {
21
- [types_1.Factory.V2V1_2]: '0xC12E00DE204d58eAd5B5cE9054E94aeE7747fB6C',
22
- [types_1.Factory.V2V2]: '0x9c7213207b5f8726164c96a76a4b9c0fbf984aba',
23
- },
24
- [types_1.Networks.Moonriver]: {
25
- [types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
26
- },
27
- [types_1.Networks.Aurora]: {
28
- [types_1.Factory.V2V1_2]: '0x5671B249391cA5E6a8FE28CEb1e85Dc41c12Ba7D'
29
- },
30
- [types_1.Networks.Cronos]: {},
31
- [types_1.Networks.Fantom]: {},
32
- [types_1.Networks.Harmony]: {},
33
- [types_1.Networks.Moonbeam]: {},
34
- [types_1.Networks.Sxnetwork]: {},
35
- };
@@ -1,2 +0,0 @@
1
- import { Address, NetworkIndex } from '../types';
2
- export declare const WETH: NetworkIndex<Address>;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WETH = void 0;
4
- const types_1 = require("../types");
5
- exports.WETH = {
6
- [types_1.Networks.Ropsten]: '0xc778417E063141139Fce010982780140Aa0cD5Ab',
7
- [types_1.Networks.Mainnet]: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
8
- [types_1.Networks.Polygon]: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
9
- [types_1.Networks.Arbitrum]: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
10
- [types_1.Networks.Avalanche]: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7',
11
- //[Networks.Moonriver]: '0xf50225a84382c74cbdea10b0c176f71fc3de0c4d', // WMOVR
12
- [types_1.Networks.Moonriver]: '0x98878b06940ae243284ca214f92bb71a2b032b8a',
13
- [types_1.Networks.Aurora]: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB',
14
- [types_1.Networks.Cronos]: '0x5c7f8a570d578ed84e63fdfa7b1ee72deae1ae23',
15
- [types_1.Networks.Fantom]: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83',
16
- [types_1.Networks.Harmony]: '0xcf664087a5bb0237a0bad6742852ec6c8d69a27a',
17
- [types_1.Networks.Moonbeam]: '0xacc15dc74880c9944775448304b263d191c6077f',
18
- [types_1.Networks.Sxnetwork]: '0xacc15dc74880c9944775448304b263d191c6077f', // WGLMR
19
- };
@@ -1,2 +0,0 @@
1
- import { NetworkIndex } from './types';
2
- export declare const DEBANK_IDS: NetworkIndex<string>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEBANK_IDS = void 0;
4
- const types_1 = require("./types");
5
- exports.DEBANK_IDS = {
6
- [types_1.Networks.Ropsten]: '',
7
- [types_1.Networks.Mainnet]: 'eth',
8
- [types_1.Networks.Polygon]: 'matic',
9
- [types_1.Networks.Arbitrum]: 'arb',
10
- [types_1.Networks.Avalanche]: 'avax',
11
- [types_1.Networks.Moonriver]: 'movr',
12
- [types_1.Networks.Fantom]: 'ftm',
13
- [types_1.Networks.Cronos]: 'cro',
14
- [types_1.Networks.Aurora]: '',
15
- [types_1.Networks.Harmony]: '',
16
- [types_1.Networks.Moonbeam]: '',
17
- };
@@ -1,4 +0,0 @@
1
- import { NetworkIndex } from '../types';
2
- export declare const MERKLE_URL_IBEX: NetworkIndex<string>;
3
- export declare const MERKLE_URL_IBEX_2: NetworkIndex<string>;
4
- export declare const MERKLE_URL_ETH: NetworkIndex<string>;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MERKLE_URL_ETH = exports.MERKLE_URL_IBEX_2 = exports.MERKLE_URL_IBEX = void 0;
4
- const types_1 = require("../types");
5
- exports.MERKLE_URL_IBEX = {
6
- [types_1.Networks.Polygon]: 'https://falling-tooth-1f6f.impermax.workers.dev',
7
- };
8
- exports.MERKLE_URL_IBEX_2 = {
9
- [types_1.Networks.Polygon]: 'https://misty-rice-9880.impermax.workers.dev',
10
- };
11
- exports.MERKLE_URL_ETH = {
12
- [types_1.Networks.Polygon]: 'https://damp-hill-13d0.impermax.workers.dev',
13
- };
@@ -1,3 +0,0 @@
1
- import { Address, NetworkIndex } from './types';
2
- export declare const ETH_NAME: NetworkIndex<Address>;
3
- export declare const ETH_SYMBOL: NetworkIndex<Address>;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ETH_SYMBOL = exports.ETH_NAME = void 0;
4
- const types_1 = require("./types");
5
- exports.ETH_NAME = {
6
- [types_1.Networks.Ropsten]: 'Ethereum',
7
- [types_1.Networks.Mainnet]: 'Ethereum',
8
- [types_1.Networks.Polygon]: 'Polygon',
9
- [types_1.Networks.Arbitrum]: 'Ethereum',
10
- [types_1.Networks.Avalanche]: 'Avalanche',
11
- [types_1.Networks.Moonriver]: 'Moonriver',
12
- [types_1.Networks.Aurora]: 'Ethereum',
13
- [types_1.Networks.Cronos]: 'Crypto.com',
14
- [types_1.Networks.Fantom]: 'Fantom',
15
- [types_1.Networks.Harmony]: 'Harmony',
16
- [types_1.Networks.Moonbeam]: 'Moonbeam',
17
- [types_1.Networks.Sxnetwork]: 'SX Network',
18
- };
19
- exports.ETH_SYMBOL = {
20
- [types_1.Networks.Ropsten]: 'ETH',
21
- [types_1.Networks.Mainnet]: 'ETH',
22
- [types_1.Networks.Polygon]: 'MATIC',
23
- [types_1.Networks.Arbitrum]: 'ETH',
24
- [types_1.Networks.Avalanche]: 'AVAX',
25
- [types_1.Networks.Moonriver]: 'MOVR',
26
- [types_1.Networks.Aurora]: 'ETH',
27
- [types_1.Networks.Cronos]: 'CRO',
28
- [types_1.Networks.Fantom]: 'FTM',
29
- [types_1.Networks.Harmony]: 'ONE',
30
- [types_1.Networks.Moonbeam]: 'GLMR',
31
- [types_1.Networks.Sxnetwork]: 'SX',
32
- };
@@ -1,6 +0,0 @@
1
- import { Factory } from './types';
2
- export declare const SOLIDEX_FACTORIES: Factory[];
3
- export declare const BORROW_FEE_FACTORIES: Factory[];
4
- export declare const OLD_KINK_MULTIPLIER_FACTORIES: Factory[];
5
- export declare const LIQUIDATION_FEE_FACTORIES: Factory[];
6
- export declare const V2_FACTORIES: Factory[];
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.V2_FACTORIES = exports.LIQUIDATION_FEE_FACTORIES = exports.OLD_KINK_MULTIPLIER_FACTORIES = exports.BORROW_FEE_FACTORIES = exports.SOLIDEX_FACTORIES = void 0;
4
- const types_1 = require("./types");
5
- exports.SOLIDEX_FACTORIES = [
6
- types_1.Factory.SOLV1_2,
7
- types_1.Factory.SOLV2,
8
- ];
9
- exports.BORROW_FEE_FACTORIES = [
10
- types_1.Factory.V2V1,
11
- types_1.Factory.V2V1_1,
12
- ];
13
- exports.OLD_KINK_MULTIPLIER_FACTORIES = [
14
- types_1.Factory.V2V1,
15
- types_1.Factory.V2V1_1,
16
- ];
17
- exports.LIQUIDATION_FEE_FACTORIES = [
18
- types_1.Factory.V2V2,
19
- types_1.Factory.SOLV2,
20
- ];
21
- exports.V2_FACTORIES = [
22
- types_1.Factory.V2V2,
23
- types_1.Factory.SOLV2,
24
- ];
@@ -1,59 +0,0 @@
1
- import { Address, Networks } from './types';
2
- export declare enum Farms {
3
- quickswapOld = "quickswapOld",
4
- quickswap = "quickswap",
5
- quickswapDual = "quickswapDual",
6
- sushiswap = "sushiswap",
7
- arbinyan = "arbinyan",
8
- swapr = "swapr",
9
- swapfish = "swapfish",
10
- zyberswap = "zyberswap",
11
- radiant = "",
12
- plutusDao = "",
13
- pangolin = "pangolin",
14
- pangolinV2 = "pangolinV2",
15
- traderJoeV2 = "traderJoeV2",
16
- traderJoeV3 = "traderJoeV3",
17
- traderJoeV4 = "traderJoeV4",
18
- solarbeam = "solarbeam",
19
- solarbeam2 = "solarbeam2",
20
- thorus = "thorus",
21
- tetuswap = "tetuswap",
22
- solidex = "solidex",
23
- solidexB = "solidexB",
24
- solidexUSDC = "solidexUSDC",
25
- solidexUSDCB = "solidexUSDCB",
26
- oxdao = "oxdao"
27
- }
28
- export declare const hrFarms: {
29
- quickswapOld: string;
30
- quickswap: string;
31
- quickswapDual: string;
32
- sushiswap: string;
33
- arbinyan: string;
34
- swapr: string;
35
- swapfish: string;
36
- zyberswap: string;
37
- "": string;
38
- pangolin: string;
39
- pangolinV2: string;
40
- traderJoeV2: string;
41
- traderJoeV3: string;
42
- traderJoeV4: string;
43
- solarbeam: string;
44
- solarbeam2: string;
45
- thorus: string;
46
- tetuswap: string;
47
- solidex: string;
48
- solidexB: string;
49
- solidexUSDC: string;
50
- solidexUSDCB: string;
51
- oxdao: string;
52
- };
53
- export type FarmIndex = {
54
- [key in Networks]: {
55
- [key in Farms]?: any;
56
- };
57
- };
58
- export declare const STAKED_LP_FACTORY: FarmIndex;
59
- export declare function getFarmByStakedLPFactory(network: Networks, address: Address): Farms;