@xchainjs/xchain-mayachain-query 2.1.0 → 2.1.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.
package/lib/index.esm.js CHANGED
@@ -88,7 +88,7 @@ class Mayanode {
88
88
  streamingInterval, streamingQuantity, toleranceBps, undefined, // liquidityToleranceBps
89
89
  affiliateBps === null || affiliateBps === void 0 ? void 0 : affiliateBps.toString(), affiliate)).data;
90
90
  }
91
- catch (e) { }
91
+ catch (_e) { }
92
92
  }
93
93
  throw new Error(`MAYANode not responding`);
94
94
  });
@@ -103,7 +103,7 @@ class Mayanode {
103
103
  try {
104
104
  return (yield api.mimir()).data;
105
105
  }
106
- catch (e) { }
106
+ catch (_e) { }
107
107
  }
108
108
  throw Error(`MAYANode not responding`);
109
109
  });
@@ -119,7 +119,7 @@ class Mayanode {
119
119
  const resp = (yield api.inboundAddresses()).data;
120
120
  return resp;
121
121
  }
122
- catch (e) { }
122
+ catch (_e) { }
123
123
  }
124
124
  throw new Error(`MAYANode not responding`);
125
125
  });
@@ -135,7 +135,7 @@ class Mayanode {
135
135
  try {
136
136
  return (yield api.lastblock(height)).data;
137
137
  }
138
- catch (e) { }
138
+ catch (_e) { }
139
139
  }
140
140
  throw Error(`MAYANode not responding`);
141
141
  });
@@ -153,7 +153,7 @@ class Mayanode {
153
153
  const resp = (yield api.tradeUnit(asset, height)).data;
154
154
  return resp;
155
155
  }
156
- catch (e) { }
156
+ catch (_e) { }
157
157
  }
158
158
  throw new Error(`MAYANode not responding. Can not get asset trade units`);
159
159
  });
@@ -170,7 +170,7 @@ class Mayanode {
170
170
  const resp = (yield api.tradeUnits(height)).data;
171
171
  return resp;
172
172
  }
173
- catch (e) { }
173
+ catch (_e) { }
174
174
  }
175
175
  throw new Error(`MAYANode not responding. Can not get trade units`);
176
176
  });
@@ -188,7 +188,7 @@ class Mayanode {
188
188
  const resp = (yield api.tradeAccount(address, height)).data;
189
189
  return resp;
190
190
  }
191
- catch (e) { }
191
+ catch (_e) { }
192
192
  }
193
193
  throw new Error(`MAYANode not responding. Can not get trade asset account`);
194
194
  });
@@ -206,7 +206,7 @@ class Mayanode {
206
206
  const resp = (yield api.tradeAccounts(asset, height)).data;
207
207
  return resp;
208
208
  }
209
- catch (e) { }
209
+ catch (_e) { }
210
210
  }
211
211
  throw new Error(`MAYANode not responding. Can not get trade asset accounts`);
212
212
  });
package/lib/index.js CHANGED
@@ -96,7 +96,7 @@ class Mayanode {
96
96
  streamingInterval, streamingQuantity, toleranceBps, undefined, // liquidityToleranceBps
97
97
  affiliateBps === null || affiliateBps === void 0 ? void 0 : affiliateBps.toString(), affiliate)).data;
98
98
  }
99
- catch (e) { }
99
+ catch (_e) { }
100
100
  }
101
101
  throw new Error(`MAYANode not responding`);
102
102
  });
@@ -111,7 +111,7 @@ class Mayanode {
111
111
  try {
112
112
  return (yield api.mimir()).data;
113
113
  }
114
- catch (e) { }
114
+ catch (_e) { }
115
115
  }
116
116
  throw Error(`MAYANode not responding`);
117
117
  });
@@ -127,7 +127,7 @@ class Mayanode {
127
127
  const resp = (yield api.inboundAddresses()).data;
128
128
  return resp;
129
129
  }
130
- catch (e) { }
130
+ catch (_e) { }
131
131
  }
132
132
  throw new Error(`MAYANode not responding`);
133
133
  });
@@ -143,7 +143,7 @@ class Mayanode {
143
143
  try {
144
144
  return (yield api.lastblock(height)).data;
145
145
  }
146
- catch (e) { }
146
+ catch (_e) { }
147
147
  }
148
148
  throw Error(`MAYANode not responding`);
149
149
  });
@@ -161,7 +161,7 @@ class Mayanode {
161
161
  const resp = (yield api.tradeUnit(asset, height)).data;
162
162
  return resp;
163
163
  }
164
- catch (e) { }
164
+ catch (_e) { }
165
165
  }
166
166
  throw new Error(`MAYANode not responding. Can not get asset trade units`);
167
167
  });
@@ -178,7 +178,7 @@ class Mayanode {
178
178
  const resp = (yield api.tradeUnits(height)).data;
179
179
  return resp;
180
180
  }
181
- catch (e) { }
181
+ catch (_e) { }
182
182
  }
183
183
  throw new Error(`MAYANode not responding. Can not get trade units`);
184
184
  });
@@ -196,7 +196,7 @@ class Mayanode {
196
196
  const resp = (yield api.tradeAccount(address, height)).data;
197
197
  return resp;
198
198
  }
199
- catch (e) { }
199
+ catch (_e) { }
200
200
  }
201
201
  throw new Error(`MAYANode not responding. Can not get trade asset account`);
202
202
  });
@@ -214,7 +214,7 @@ class Mayanode {
214
214
  const resp = (yield api.tradeAccounts(asset, height)).data;
215
215
  return resp;
216
216
  }
217
- catch (e) { }
217
+ catch (_e) { }
218
218
  }
219
219
  throw new Error(`MAYANode not responding. Can not get trade asset accounts`);
220
220
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-mayachain-query",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "license": "MIT",
5
5
  "description": "Mayachain query module that is responsible for estimating swap calculations and add/remove liquidity for thorchain",
6
6
  "keywords": [
@@ -29,18 +29,18 @@
29
29
  "build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
30
30
  "test": "jest",
31
31
  "e2e": "jest --config jest.config.e2e.mjs",
32
- "lint": "eslint \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
32
+ "lint": "eslint --config ../../eslint.config.mjs \"{src,__tests__}/**/*.ts\" --fix --max-warnings 0",
33
33
  "postversion": "git push --follow-tags"
34
34
  },
35
35
  "dependencies": {
36
- "@xchainjs/xchain-client": "2.0.8",
36
+ "@xchainjs/xchain-client": "2.0.9",
37
37
  "@xchainjs/xchain-mayamidgard": "1.0.4",
38
- "@xchainjs/xchain-mayamidgard-query": "1.0.9",
38
+ "@xchainjs/xchain-mayamidgard-query": "1.0.10",
39
39
  "@xchainjs/xchain-mayanode": "1.1.0",
40
- "@xchainjs/xchain-util": "2.0.4",
41
- "axios": "1.8.4",
40
+ "@xchainjs/xchain-util": "2.0.5",
41
+ "axios": "1.12.1",
42
42
  "axios-retry": "3.2.5",
43
- "bignumber.js": "^9.0.0"
43
+ "bignumber.js": "^9.1.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "axios-mock-adapter": "2.1.0"