impermax-sdk 1.2.30 → 1.2.32
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.
- package/lib/config/amms.d.ts +3 -1
- package/lib/config/amms.js +12 -0
- package/lib/config/contracts/claim-aggregators.js +1 -0
- package/lib/config/contracts/impermax-chef.js +1 -0
- package/lib/config/contracts/impermax-config-manager.js +2 -1
- package/lib/config/contracts/impermax-factories.js +3 -0
- package/lib/config/contracts/imxes.js +1 -0
- package/lib/config/contracts/lending-vault-watcher.js +1 -0
- package/lib/config/contracts/merkle-distributors.js +3 -0
- package/lib/config/contracts/routers.js +4 -0
- package/lib/config/contracts/simple-uniswap-oracles.js +3 -0
- package/lib/config/contracts/weths.js +1 -0
- package/lib/config/debank-ids.js +1 -0
- package/lib/config/endpoints/merkle-distributors.js +3 -0
- package/lib/config/eth.js +2 -0
- package/lib/config/farms.d.ts +2 -1
- package/lib/config/farms.js +4 -0
- package/lib/config/subgraphs.d.ts +1 -0
- package/lib/config/subgraphs.js +8 -1
- package/lib/config/types.d.ts +2 -1
- package/lib/config/types.js +1 -0
- package/package.json +1 -1
package/lib/config/amms.d.ts
CHANGED
|
@@ -32,7 +32,8 @@ export declare enum Amms {
|
|
|
32
32
|
solunea = "solunea",
|
|
33
33
|
pearl = "pearl",
|
|
34
34
|
pearlStable = "pearlStable",
|
|
35
|
-
aerodrome = "aerodrome"
|
|
35
|
+
aerodrome = "aerodrome",
|
|
36
|
+
merchantmoe = "merchantmoe"
|
|
36
37
|
}
|
|
37
38
|
export declare const hrAmms: {
|
|
38
39
|
uniswap: string;
|
|
@@ -68,6 +69,7 @@ export declare const hrAmms: {
|
|
|
68
69
|
vesync: string;
|
|
69
70
|
solunea: string;
|
|
70
71
|
aerodrome: string;
|
|
72
|
+
merchantmoe: string;
|
|
71
73
|
};
|
|
72
74
|
export declare const AMM_FACTORY: AmmIndex;
|
|
73
75
|
export declare function getAmmByFactory(network: Networks, address: Address): Amms | null;
|
package/lib/config/amms.js
CHANGED
|
@@ -37,6 +37,7 @@ var Amms;
|
|
|
37
37
|
Amms["pearl"] = "pearl";
|
|
38
38
|
Amms["pearlStable"] = "pearlStable";
|
|
39
39
|
Amms["aerodrome"] = "aerodrome";
|
|
40
|
+
Amms["merchantmoe"] = "merchantmoe";
|
|
40
41
|
})(Amms = exports.Amms || (exports.Amms = {}));
|
|
41
42
|
exports.hrAmms = {
|
|
42
43
|
[Amms.uniswap]: 'Uniswap',
|
|
@@ -72,6 +73,7 @@ exports.hrAmms = {
|
|
|
72
73
|
[Amms.vesync]: 'VeSync',
|
|
73
74
|
[Amms.solunea]: 'Solunea',
|
|
74
75
|
[Amms.aerodrome]: 'Aerodrome',
|
|
76
|
+
[Amms.merchantmoe]: 'MerchantMoe',
|
|
75
77
|
};
|
|
76
78
|
exports.AMM_FACTORY = {
|
|
77
79
|
[types_1.Networks.Ropsten]: {
|
|
@@ -132,6 +134,9 @@ exports.AMM_FACTORY = {
|
|
|
132
134
|
[types_1.Networks.Harmony]: {},
|
|
133
135
|
[types_1.Networks.Moonbeam]: {},
|
|
134
136
|
[types_1.Networks.Sxnetwork]: {},
|
|
137
|
+
[types_1.Networks.Mantle]: {
|
|
138
|
+
[Amms.merchantmoe]: "0x49bfE341232caE3CCB55ab99b11631CDE0AC9289" //NOTICE: this is actually the staked LP factory
|
|
139
|
+
},
|
|
135
140
|
[types_1.Networks.Base]: {
|
|
136
141
|
[Amms.aerodrome]: '0x2a32215Ba106039f5A96b6366338BDb9FB0b62E8', //NOTICE: this is actually the staked LP factory
|
|
137
142
|
}
|
|
@@ -199,6 +204,7 @@ exports.AMM_SUBGRAPH_URLS = {
|
|
|
199
204
|
[types_1.Networks.Base]: {
|
|
200
205
|
[Amms.aerodrome]: 'https://api.thegraph.com/subgraphs/name/ethzoomer/aerodrome-trading-data', //could not find "official" subgraph
|
|
201
206
|
},
|
|
207
|
+
[types_1.Networks.Mantle]: {},
|
|
202
208
|
};
|
|
203
209
|
exports.ADD_LIQUIDITY_URLS = {
|
|
204
210
|
[types_1.Networks.Ropsten]: {
|
|
@@ -262,6 +268,9 @@ exports.ADD_LIQUIDITY_URLS = {
|
|
|
262
268
|
[types_1.Networks.Base]: {
|
|
263
269
|
[Amms.aerodrome]: 'https://aerodrome.finance/deposit',
|
|
264
270
|
},
|
|
271
|
+
[types_1.Networks.Mantle]: {
|
|
272
|
+
[Amms.merchantmoe]: 'https://merchantmoe.com/pool',
|
|
273
|
+
},
|
|
265
274
|
};
|
|
266
275
|
exports.AMM_LP_FEE = {
|
|
267
276
|
[types_1.Networks.Ropsten]: {
|
|
@@ -324,5 +333,8 @@ exports.AMM_LP_FEE = {
|
|
|
324
333
|
[types_1.Networks.Sxnetwork]: {},
|
|
325
334
|
[types_1.Networks.Base]: {
|
|
326
335
|
[Amms.aerodrome]: 0,
|
|
336
|
+
},
|
|
337
|
+
[types_1.Networks.Mantle]: {
|
|
338
|
+
[Amms.merchantmoe]: 0.003,
|
|
327
339
|
}
|
|
328
340
|
};
|
|
@@ -17,5 +17,6 @@ exports.IMPERMAX_CONFIG_MANAGER = {
|
|
|
17
17
|
[types_1.Networks.Sxnetwork]: '',
|
|
18
18
|
[types_1.Networks.Canto]: '',
|
|
19
19
|
[types_1.Networks.ZksyncEra]: '',
|
|
20
|
-
[types_1.Networks.Base]: '0x9acafcb281e94eaB771D0cf6508c92A4B75DCE7c'
|
|
20
|
+
[types_1.Networks.Base]: '0x9acafcb281e94eaB771D0cf6508c92A4B75DCE7c',
|
|
21
|
+
[types_1.Networks.Mantle]: '0x6daC1AbEA1E903765358EFD4Ac4e6E817F78F4CB',
|
|
21
22
|
};
|
|
@@ -44,6 +44,9 @@ exports.IMPERMAX_FACTORY = {
|
|
|
44
44
|
[types_1.Networks.Base]: {
|
|
45
45
|
[types_1.Factory.SOLV2]: '0x66ca66E002a9CEE8dEfE25dB6f0c6225117C2d9f',
|
|
46
46
|
},
|
|
47
|
+
[types_1.Networks.Mantle]: {
|
|
48
|
+
[types_1.Factory.V2V1]: '0x3047523D5ed0df1545B1C440BdAaB095f1f3cf5C'
|
|
49
|
+
},
|
|
47
50
|
};
|
|
48
51
|
function getFactoryByAddress(network, address) {
|
|
49
52
|
if (!address)
|
|
@@ -18,6 +18,7 @@ exports.MERKLE_DISTRIBUTOR_IBEX = {
|
|
|
18
18
|
[types_1.Networks.Canto]: '',
|
|
19
19
|
[types_1.Networks.ZksyncEra]: '',
|
|
20
20
|
[types_1.Networks.Base]: '',
|
|
21
|
+
[types_1.Networks.Mantle]: '',
|
|
21
22
|
};
|
|
22
23
|
exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
|
|
23
24
|
[types_1.Networks.Polygon]: '0x1c813cDd6dAecE2CB83C52F0798504e42816E9C5',
|
|
@@ -35,6 +36,7 @@ exports.MERKLE_DISTRIBUTOR_IBEX_2 = {
|
|
|
35
36
|
[types_1.Networks.Canto]: '',
|
|
36
37
|
[types_1.Networks.ZksyncEra]: '',
|
|
37
38
|
[types_1.Networks.Base]: '',
|
|
39
|
+
[types_1.Networks.Mantle]: '',
|
|
38
40
|
};
|
|
39
41
|
exports.MERKLE_DISTRIBUTOR_ETH = {
|
|
40
42
|
[types_1.Networks.Polygon]: '0x7ce2f634f0698ecdca051ef1dc4be96ef3d05a62',
|
|
@@ -52,4 +54,5 @@ exports.MERKLE_DISTRIBUTOR_ETH = {
|
|
|
52
54
|
[types_1.Networks.Canto]: '',
|
|
53
55
|
[types_1.Networks.ZksyncEra]: '',
|
|
54
56
|
[types_1.Networks.Base]: '',
|
|
57
|
+
[types_1.Networks.Mantle]: '',
|
|
55
58
|
};
|
|
@@ -48,6 +48,9 @@ exports.ROUTER = {
|
|
|
48
48
|
[types_1.Networks.Base]: {
|
|
49
49
|
[types_1.Factory.SOLV2]: '0x1EBC3b5911B99aDdE07944c75D9E03958abdB49f'
|
|
50
50
|
},
|
|
51
|
+
[types_1.Networks.Mantle]: {
|
|
52
|
+
[types_1.Factory.V2V1]: '0xF4A9dda025e65945E7A3F873D6146A12c8110A19'
|
|
53
|
+
},
|
|
51
54
|
};
|
|
52
55
|
exports.DEFAULT_ROUTER = {
|
|
53
56
|
[types_1.Networks.Ropsten]: '0xbFf4acF789297A8507Eb7493AE18EB2C3A3A9632',
|
|
@@ -65,4 +68,5 @@ exports.DEFAULT_ROUTER = {
|
|
|
65
68
|
[types_1.Networks.Moonbeam]: '',
|
|
66
69
|
[types_1.Networks.Sxnetwork]: '',
|
|
67
70
|
[types_1.Networks.Base]: '0x1EBC3b5911B99aDdE07944c75D9E03958abdB49f',
|
|
71
|
+
[types_1.Networks.Mantle]: '0xF4A9dda025e65945E7A3F873D6146A12c8110A19',
|
|
68
72
|
};
|
|
@@ -19,4 +19,5 @@ exports.WETH = {
|
|
|
19
19
|
[types_1.Networks.Canto]: '0x826551890Dc65655a0Aceca109aB11AbDbD7a07B',
|
|
20
20
|
[types_1.Networks.ZksyncEra]: '0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91',
|
|
21
21
|
[types_1.Networks.Base]: '0x4200000000000000000000000000000000000006',
|
|
22
|
+
[types_1.Networks.Mantle]: '0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8', // WMNT
|
|
22
23
|
};
|
package/lib/config/debank-ids.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.MERKLE_URL_IBEX = {
|
|
|
18
18
|
[types_1.Networks.Canto]: '',
|
|
19
19
|
[types_1.Networks.ZksyncEra]: '',
|
|
20
20
|
[types_1.Networks.Base]: '',
|
|
21
|
+
[types_1.Networks.Mantle]: '',
|
|
21
22
|
};
|
|
22
23
|
exports.MERKLE_URL_IBEX_2 = {
|
|
23
24
|
[types_1.Networks.Polygon]: 'https://misty-rice-9880.impermax.workers.dev',
|
|
@@ -35,6 +36,7 @@ exports.MERKLE_URL_IBEX_2 = {
|
|
|
35
36
|
[types_1.Networks.Canto]: '',
|
|
36
37
|
[types_1.Networks.ZksyncEra]: '',
|
|
37
38
|
[types_1.Networks.Base]: '',
|
|
39
|
+
[types_1.Networks.Mantle]: '',
|
|
38
40
|
};
|
|
39
41
|
exports.MERKLE_URL_ETH = {
|
|
40
42
|
[types_1.Networks.Polygon]: 'https://damp-hill-13d0.impermax.workers.dev',
|
|
@@ -52,4 +54,5 @@ exports.MERKLE_URL_ETH = {
|
|
|
52
54
|
[types_1.Networks.Canto]: '',
|
|
53
55
|
[types_1.Networks.ZksyncEra]: '',
|
|
54
56
|
[types_1.Networks.Base]: '',
|
|
57
|
+
[types_1.Networks.Mantle]: '',
|
|
55
58
|
};
|
package/lib/config/eth.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.ETH_NAME = {
|
|
|
18
18
|
[types_1.Networks.Canto]: 'CANTO',
|
|
19
19
|
[types_1.Networks.ZksyncEra]: 'Ethereum',
|
|
20
20
|
[types_1.Networks.Base]: 'Base',
|
|
21
|
+
[types_1.Networks.Mantle]: 'Mantle',
|
|
21
22
|
};
|
|
22
23
|
exports.ETH_SYMBOL = {
|
|
23
24
|
[types_1.Networks.Ropsten]: 'ETH',
|
|
@@ -35,4 +36,5 @@ exports.ETH_SYMBOL = {
|
|
|
35
36
|
[types_1.Networks.Canto]: 'CANTO',
|
|
36
37
|
[types_1.Networks.ZksyncEra]: 'ETH',
|
|
37
38
|
[types_1.Networks.Base]: 'ETH',
|
|
39
|
+
[types_1.Networks.Mantle]: 'MNT',
|
|
38
40
|
};
|
package/lib/config/farms.d.ts
CHANGED
|
@@ -39,7 +39,8 @@ export declare enum Farms {
|
|
|
39
39
|
solidexUSDC = "solidexUSDC",
|
|
40
40
|
solidexUSDCB = "solidexUSDCB",
|
|
41
41
|
oxdao = "oxdao",
|
|
42
|
-
aerodrome = "aerodrome"
|
|
42
|
+
aerodrome = "aerodrome",
|
|
43
|
+
merchantmoe = "merchantmoe"
|
|
43
44
|
}
|
|
44
45
|
export declare const hrFarms: {
|
|
45
46
|
quickswapOld: string;
|
package/lib/config/farms.js
CHANGED
|
@@ -44,6 +44,7 @@ var Farms;
|
|
|
44
44
|
Farms["solidexUSDCB"] = "solidexUSDCB";
|
|
45
45
|
Farms["oxdao"] = "oxdao";
|
|
46
46
|
Farms["aerodrome"] = "aerodrome";
|
|
47
|
+
Farms["merchantmoe"] = "merchantmoe";
|
|
47
48
|
})(Farms = exports.Farms || (exports.Farms = {}));
|
|
48
49
|
exports.hrFarms = {
|
|
49
50
|
[Farms.quickswapOld]: 'QuickSwap',
|
|
@@ -153,6 +154,9 @@ exports.STAKED_LP_FACTORY = {
|
|
|
153
154
|
[types_1.Networks.Sxnetwork]: {},
|
|
154
155
|
[types_1.Networks.Base]: {
|
|
155
156
|
[Farms.aerodrome]: '0x2a32215Ba106039f5A96b6366338BDb9FB0b62E8',
|
|
157
|
+
},
|
|
158
|
+
[types_1.Networks.Mantle]: {
|
|
159
|
+
[Farms.merchantmoe]: '0x49bfE341232caE3CCB55ab99b11631CDE0AC9289',
|
|
156
160
|
}
|
|
157
161
|
};
|
|
158
162
|
function getFarmByStakedLPFactory(network, address) {
|
package/lib/config/subgraphs.js
CHANGED
|
@@ -23,6 +23,9 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
23
23
|
[types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-v2/v0.0.2',
|
|
24
24
|
[types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-solv2/v0.0.2',
|
|
25
25
|
},
|
|
26
|
+
[types_1.Networks.Mantle]: {
|
|
27
|
+
[types_1.Factory.V2V1_2]: 'https://api-mantle.impermax.finance/subgraphs/name/impermax-finance/impermax-mantle-v2'
|
|
28
|
+
},
|
|
26
29
|
[types_1.Networks.Moonriver]: {
|
|
27
30
|
[types_1.Factory.V2V1_2]: 'https://api.studio.thegraph.com/query/46041/impermax-moonriver-v1/v0.0.1'
|
|
28
31
|
},
|
|
@@ -41,7 +44,7 @@ exports.IMPERMAX_SUBGRAPH_URL = {
|
|
|
41
44
|
[types_1.Networks.Moonbeam]: {},
|
|
42
45
|
[types_1.Networks.Sxnetwork]: {},
|
|
43
46
|
[types_1.Networks.Base]: {
|
|
44
|
-
[types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-base-solv2/v0.0.
|
|
47
|
+
[types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-base-solv2/v0.0.2',
|
|
45
48
|
},
|
|
46
49
|
};
|
|
47
50
|
exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
@@ -61,6 +64,7 @@ exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
|
61
64
|
[types_1.Networks.Canto]: '',
|
|
62
65
|
[types_1.Networks.ZksyncEra]: '',
|
|
63
66
|
[types_1.Networks.Base]: '',
|
|
67
|
+
[types_1.Networks.Mantle]: '',
|
|
64
68
|
};
|
|
65
69
|
exports.LENDING_VAULT_SUBGRAPH_URL = {
|
|
66
70
|
[types_1.Networks.Ropsten]: '',
|
|
@@ -78,6 +82,7 @@ exports.LENDING_VAULT_SUBGRAPH_URL = {
|
|
|
78
82
|
[types_1.Networks.Canto]: '',
|
|
79
83
|
[types_1.Networks.ZksyncEra]: '',
|
|
80
84
|
[types_1.Networks.Base]: '',
|
|
85
|
+
[types_1.Networks.Mantle]: '',
|
|
81
86
|
};
|
|
82
87
|
exports.BLOCKS_SUBGRAPH_URL = {
|
|
83
88
|
[types_1.Networks.Ropsten]: '',
|
|
@@ -95,6 +100,7 @@ exports.BLOCKS_SUBGRAPH_URL = {
|
|
|
95
100
|
[types_1.Networks.Moonbeam]: '',
|
|
96
101
|
[types_1.Networks.Sxnetwork]: '',
|
|
97
102
|
[types_1.Networks.Base]: 'https://api.thegraph.com/subgraphs/name/blocklytics/base-blocks',
|
|
103
|
+
[types_1.Networks.Mantle]: '',
|
|
98
104
|
};
|
|
99
105
|
exports.XIMX_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/impermax-finance/imx-staking";
|
|
100
106
|
exports.CONFIG_MANAGER_SUBGRAPH_URL = {
|
|
@@ -129,5 +135,6 @@ exports.WHITELIST_SUBGRAPH_URL = {
|
|
|
129
135
|
[types_1.Networks.Harmony]: '',
|
|
130
136
|
[types_1.Networks.Moonbeam]: '',
|
|
131
137
|
[types_1.Networks.Sxnetwork]: '',
|
|
138
|
+
[types_1.Networks.Mantle]: '',
|
|
132
139
|
[types_1.Networks.Base]: 'https://api.studio.thegraph.com/query/46041/impermax-whitelist-base/v0.0.1',
|
|
133
140
|
};
|
package/lib/config/types.d.ts
CHANGED
package/lib/config/types.js
CHANGED