impermax-sdk 1.2.25 → 1.2.27

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.
@@ -4,9 +4,6 @@ exports.WHITELIST_SUBGRAPH_URL = exports.CONFIG_MANAGER_SUBGRAPH_URL = exports.X
4
4
  const types_1 = require("./types");
5
5
  /*
6
6
  * Unsupported networks by latest SDK update (old subgraph version)
7
- * - Ethereum
8
- * - Arbitrum
9
- * - Avalanche
10
7
  * - Moonriver
11
8
  * - Aurora
12
9
  * - Fantom
@@ -14,39 +11,33 @@ const types_1 = require("./types");
14
11
  * - ZkSync
15
12
  */
16
13
  exports.IMPERMAX_SUBGRAPH_URL = {
17
- [types_1.Networks.Ropsten]: {
18
- [types_1.Factory.V2V1]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-ropsten'
19
- },
14
+ [types_1.Networks.Ropsten]: {},
20
15
  [types_1.Networks.Mainnet]: {
21
- [types_1.Factory.V2V1]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap1'
16
+ [types_1.Factory.V2V1]: 'https://api.studio.thegraph.com/query/46041/impermax-mainnet-v1/v0.0.1'
22
17
  },
23
18
  [types_1.Networks.Polygon]: {
24
- [types_1.Factory.V2V1_1]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-polygon',
25
- [types_1.Factory.V2V2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-polygon-v2',
26
- [types_1.Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-polygon-solv2',
27
- [types_1.Factory.SOL_STABLE]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-polygon-sol-stable',
19
+ [types_1.Factory.V2V1_1]: 'https://api.studio.thegraph.com/query/46041/impermax-x-uniswap-v2-polygon/v0.0.1',
20
+ [types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-x-uniswap-v2-polygon-v2/v0.0.1',
21
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-polygon-solv2/v0.0.1',
22
+ [types_1.Factory.SOL_STABLE]: 'https://api.studio.thegraph.com/query/46041/impermax-polygon-sol-stable/v0.0.1',
28
23
  },
29
24
  [types_1.Networks.Arbitrum]: {
30
- [types_1.Factory.V2V1_1]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-arbitrum',
31
- [types_1.Factory.V2V2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-arbitrum-v2-1',
32
- [types_1.Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-arbitrum-solv2',
33
- //[F.V2V1_1]: 'https://api.impermax.finance/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-arbitrum02'
25
+ [types_1.Factory.V2V1_1]: 'https://api.studio.thegraph.com/query/46041/impermax-arbitrum-v1/v0.0.1',
26
+ [types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-arbitrum-v2/v0.0.1',
27
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-arbitrum-solv2/v0.0.2',
34
28
  },
35
29
  [types_1.Networks.Avalanche]: {
36
- [types_1.Factory.V2V1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-avalanche1',
37
- [types_1.Factory.V2V2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-avalanche-v2',
38
- [types_1.Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-avalanche-solv2',
30
+ [types_1.Factory.V2V1_2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-v1/v0.0.1',
31
+ [types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-v2/v0.0.2',
32
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-solv2/v0.0.2',
39
33
  },
40
34
  [types_1.Networks.Moonriver]: {
41
- [types_1.Factory.V2V1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-moonriver'
42
- },
43
- [types_1.Networks.Aurora]: {
44
- [types_1.Factory.V2V1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-aurora'
35
+ [types_1.Factory.V2V1_2]: 'https://api.studio.thegraph.com/query/46041/impermax-moonriver-v1/v0.0.1'
45
36
  },
37
+ [types_1.Networks.Aurora]: {},
46
38
  [types_1.Networks.Cronos]: {},
47
39
  [types_1.Networks.Fantom]: {
48
- [types_1.Factory.SOLV1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-fantom',
49
- //[Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-fantom-v2',
40
+ [types_1.Factory.SOLV1_2]: 'https://api.studio.thegraph.com/query/46041/impermax-fantom-solv1/v0.0.1',
50
41
  },
51
42
  [types_1.Networks.Canto]: {
52
43
  [types_1.Factory.SOLV2]: 'https://api.impermax.finance/subgraphs/name/impermax-finance/impermax-canto-solv2',
@@ -58,18 +49,18 @@ exports.IMPERMAX_SUBGRAPH_URL = {
58
49
  [types_1.Networks.Moonbeam]: {},
59
50
  [types_1.Networks.Sxnetwork]: {},
60
51
  [types_1.Networks.Base]: {
61
- [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-base-solv2',
52
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-base-solv2/v0.0.1',
62
53
  },
63
54
  };
64
55
  exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
65
56
  [types_1.Networks.Ropsten]: '',
66
57
  [types_1.Networks.Mainnet]: '',
67
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-polygon',
58
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-polygon/v0.0.1',
68
59
  //[Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-arbitrum',
69
- [types_1.Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-arbitrum-ibex',
70
- [types_1.Networks.Avalanche]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-avalanche',
71
- [types_1.Networks.Moonriver]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-moonriver',
72
- [types_1.Networks.Fantom]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-fantom',
60
+ [types_1.Networks.Arbitrum]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-arbitrum-ibex/v0.0.1',
61
+ [types_1.Networks.Avalanche]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-avalanche/v0.0.1',
62
+ [types_1.Networks.Moonriver]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-moonriver/v0.0.1',
63
+ [types_1.Networks.Fantom]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-fantom/v0.0.1',
73
64
  [types_1.Networks.Aurora]: '',
74
65
  [types_1.Networks.Cronos]: '',
75
66
  [types_1.Networks.Harmony]: '',
@@ -82,8 +73,8 @@ exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
82
73
  exports.LENDING_VAULT_SUBGRAPH_URL = {
83
74
  [types_1.Networks.Ropsten]: '',
84
75
  [types_1.Networks.Mainnet]: '',
85
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/lending-vault-polygon',
86
- [types_1.Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/lending-vault-arbitrum',
76
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/lending-vault-polygon/v0.0.1',
77
+ [types_1.Networks.Arbitrum]: 'https://api.studio.thegraph.com/query/46041/lending-vault-arbitrum/v0.0.1',
87
78
  [types_1.Networks.Avalanche]: '',
88
79
  [types_1.Networks.Moonriver]: '',
89
80
  [types_1.Networks.Fantom]: '',
@@ -117,7 +108,7 @@ exports.XIMX_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/impermax-fi
117
108
  exports.CONFIG_MANAGER_SUBGRAPH_URL = {
118
109
  [types_1.Networks.Ropsten]: '',
119
110
  [types_1.Networks.Mainnet]: '',
120
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-config-manager-polygo',
111
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-config-manager-polygo/v0.0.1',
121
112
  [types_1.Networks.Arbitrum]: '',
122
113
  [types_1.Networks.Avalanche]: '',
123
114
  [types_1.Networks.Moonriver]: '',
@@ -134,7 +125,7 @@ exports.CONFIG_MANAGER_SUBGRAPH_URL = {
134
125
  exports.WHITELIST_SUBGRAPH_URL = {
135
126
  [types_1.Networks.Ropsten]: '',
136
127
  [types_1.Networks.Mainnet]: '',
137
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-whitelist-polygon',
128
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-whitelist-polygon/v0.0.1',
138
129
  [types_1.Networks.Arbitrum]: '',
139
130
  [types_1.Networks.Avalanche]: '',
140
131
  [types_1.Networks.Moonriver]: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "1.2.25",
3
+ "version": "1.2.27",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",