impermax-sdk 1.2.26 → 1.2.28

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.
@@ -2,55 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WHITELIST_SUBGRAPH_URL = exports.CONFIG_MANAGER_SUBGRAPH_URL = exports.XIMX_SUBGRAPH_URL = exports.BLOCKS_SUBGRAPH_URL = exports.LENDING_VAULT_SUBGRAPH_URL = exports.IMPERMAX_CHEF_SUBGRAPH_URL = exports.IMPERMAX_SUBGRAPH_URL = void 0;
4
4
  const types_1 = require("./types");
5
- /*
6
- * Unsupported networks by latest SDK update (old subgraph version)
7
- * - Ethereum
8
- * - Arbitrum
9
- * - Avalanche
10
- * - Moonriver
11
- * - Aurora
12
- * - Fantom
13
- * - Canto
14
- * - ZkSync
15
- */
16
5
  exports.IMPERMAX_SUBGRAPH_URL = {
17
6
  [types_1.Networks.Ropsten]: {},
18
7
  [types_1.Networks.Mainnet]: {
19
- [types_1.Factory.V2V1]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap1'
8
+ [types_1.Factory.V2V1]: 'https://api.studio.thegraph.com/query/46041/impermax-mainnet-v1/v0.0.1'
20
9
  },
21
10
  [types_1.Networks.Polygon]: {
22
- [types_1.Factory.V2V1_1]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-polygon',
23
- [types_1.Factory.V2V2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-polygon-v2',
24
- [types_1.Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-polygon-solv2',
25
- [types_1.Factory.SOL_STABLE]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-polygon-sol-stable',
11
+ [types_1.Factory.V2V1_1]: 'https://api.studio.thegraph.com/query/46041/impermax-x-uniswap-v2-polygon/v0.0.1',
12
+ [types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-x-uniswap-v2-polygon-v2/v0.0.1',
13
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-polygon-solv2/v0.0.1',
14
+ [types_1.Factory.SOL_STABLE]: 'https://api.studio.thegraph.com/query/46041/impermax-polygon-sol-stable/v0.0.1',
26
15
  },
27
16
  [types_1.Networks.Arbitrum]: {
28
- [types_1.Factory.V2V1_1]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-arbitrum',
29
- [types_1.Factory.V2V2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-arbitrum-v2-1',
30
- [types_1.Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-arbitrum-solv2',
31
- //[F.V2V1_1]: 'https://api.impermax.finance/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-arbitrum02'
17
+ [types_1.Factory.V2V1_1]: 'https://api.studio.thegraph.com/query/46041/impermax-arbitrum-v1/v0.0.1',
18
+ [types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-arbitrum-v2/v0.0.1',
19
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-arbitrum-solv2/v0.0.2',
32
20
  },
33
21
  [types_1.Networks.Avalanche]: {
34
- [types_1.Factory.V2V1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-avalanche1',
35
- [types_1.Factory.V2V2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-avalanche-v2',
36
- [types_1.Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-avalanche-solv2',
22
+ [types_1.Factory.V2V1_2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-v1/v0.0.1',
23
+ [types_1.Factory.V2V2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-v2/v0.0.2',
24
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/46041/impermax-avalanche-solv2/v0.0.2',
37
25
  },
38
26
  [types_1.Networks.Moonriver]: {
39
- [types_1.Factory.V2V1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-moonriver'
40
- },
41
- [types_1.Networks.Aurora]: {
42
- [types_1.Factory.V2V1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-aurora'
27
+ [types_1.Factory.V2V1_2]: 'https://api.studio.thegraph.com/query/46041/impermax-moonriver-v1/v0.0.1'
43
28
  },
29
+ [types_1.Networks.Aurora]: {},
44
30
  [types_1.Networks.Cronos]: {},
45
31
  [types_1.Networks.Fantom]: {
46
- [types_1.Factory.SOLV1_2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-fantom',
47
- //[Factory.SOLV2]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-x-uniswap-v2-fantom-v2',
32
+ [types_1.Factory.SOLV1_2]: 'https://api.studio.thegraph.com/query/46041/impermax-fantom-solv1/v0.0.1',
48
33
  },
49
34
  [types_1.Networks.Canto]: {
50
35
  [types_1.Factory.SOLV2]: 'https://api.impermax.finance/subgraphs/name/impermax-finance/impermax-canto-solv2',
51
36
  },
52
37
  [types_1.Networks.ZksyncEra]: {
53
- [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/45012/impermax-zksync-era-solv2/v1.0.1',
38
+ [types_1.Factory.SOLV2]: 'https://api.studio.thegraph.com/query/45012/impermax-zksync-era-solv2/v0.0.2',
54
39
  },
55
40
  [types_1.Networks.Harmony]: {},
56
41
  [types_1.Networks.Moonbeam]: {},
@@ -62,12 +47,12 @@ exports.IMPERMAX_SUBGRAPH_URL = {
62
47
  exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
63
48
  [types_1.Networks.Ropsten]: '',
64
49
  [types_1.Networks.Mainnet]: '',
65
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-polygon',
50
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-polygon/v0.0.1',
66
51
  //[Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-arbitrum',
67
- [types_1.Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-arbitrum-ibex',
68
- [types_1.Networks.Avalanche]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-avalanche',
69
- [types_1.Networks.Moonriver]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-moonriver',
70
- [types_1.Networks.Fantom]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-chef-fantom',
52
+ [types_1.Networks.Arbitrum]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-arbitrum-ibex/v0.0.1',
53
+ [types_1.Networks.Avalanche]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-avalanche/v0.0.1',
54
+ [types_1.Networks.Moonriver]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-moonriver/v0.0.1',
55
+ [types_1.Networks.Fantom]: 'https://api.studio.thegraph.com/query/46041/impermax-chef-fantom/v0.0.1',
71
56
  [types_1.Networks.Aurora]: '',
72
57
  [types_1.Networks.Cronos]: '',
73
58
  [types_1.Networks.Harmony]: '',
@@ -80,8 +65,8 @@ exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
80
65
  exports.LENDING_VAULT_SUBGRAPH_URL = {
81
66
  [types_1.Networks.Ropsten]: '',
82
67
  [types_1.Networks.Mainnet]: '',
83
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/lending-vault-polygon',
84
- [types_1.Networks.Arbitrum]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/lending-vault-arbitrum',
68
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/lending-vault-polygon/v0.0.1',
69
+ [types_1.Networks.Arbitrum]: 'https://api.studio.thegraph.com/query/46041/lending-vault-arbitrum/v0.0.1',
85
70
  [types_1.Networks.Avalanche]: '',
86
71
  [types_1.Networks.Moonriver]: '',
87
72
  [types_1.Networks.Fantom]: '',
@@ -115,7 +100,7 @@ exports.XIMX_SUBGRAPH_URL = "https://api.thegraph.com/subgraphs/name/impermax-fi
115
100
  exports.CONFIG_MANAGER_SUBGRAPH_URL = {
116
101
  [types_1.Networks.Ropsten]: '',
117
102
  [types_1.Networks.Mainnet]: '',
118
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-config-manager-polygo',
103
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-config-manager-polygo/v0.0.1',
119
104
  [types_1.Networks.Arbitrum]: '',
120
105
  [types_1.Networks.Avalanche]: '',
121
106
  [types_1.Networks.Moonriver]: '',
@@ -132,7 +117,7 @@ exports.CONFIG_MANAGER_SUBGRAPH_URL = {
132
117
  exports.WHITELIST_SUBGRAPH_URL = {
133
118
  [types_1.Networks.Ropsten]: '',
134
119
  [types_1.Networks.Mainnet]: '',
135
- [types_1.Networks.Polygon]: 'https://api.thegraph.com/subgraphs/name/impermax-finance/impermax-whitelist-polygon',
120
+ [types_1.Networks.Polygon]: 'https://api.studio.thegraph.com/query/46041/impermax-whitelist-polygon/v0.0.1',
136
121
  [types_1.Networks.Arbitrum]: '',
137
122
  [types_1.Networks.Avalanche]: '',
138
123
  [types_1.Networks.Moonriver]: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",