@defillama/sdk 5.0.96 → 5.0.99
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/build/abi/multicall3.js +18 -0
- package/build/generalUtil.js +1 -1
- package/build/providers.json +1116 -1
- package/build/util/cache.js +4 -1
- package/build/util/indexer.js +1 -1
- package/build/util/logs.d.ts +2 -2
- package/build/util/logs.js +5 -8
- package/package.json +1 -1
package/build/abi/multicall3.js
CHANGED
|
@@ -154,6 +154,15 @@ const DEPLOYMENT_BLOCK = {
|
|
|
154
154
|
fluence: 207583,
|
|
155
155
|
ontology: 17984796,
|
|
156
156
|
wc: 4353799,
|
|
157
|
+
unit0: 9727,
|
|
158
|
+
spn: 39,
|
|
159
|
+
starchain: 23898035,
|
|
160
|
+
apechain: 20889,
|
|
161
|
+
zircuit: 5815253,
|
|
162
|
+
qom: 10050,
|
|
163
|
+
matchain: 2598669,
|
|
164
|
+
shape: 3443414,
|
|
165
|
+
morph: 169985,
|
|
157
166
|
};
|
|
158
167
|
async function makeMultiCall(functionABI, calls, chain, block) {
|
|
159
168
|
if (chain === 'tron')
|
|
@@ -264,6 +273,15 @@ function getMulticallAddress(chain, block) {
|
|
|
264
273
|
case 'taiko':
|
|
265
274
|
multicallAddress = '0xcb2436774C3e191c85056d248EF4260ce5f27A9D';
|
|
266
275
|
break;
|
|
276
|
+
case 'qom':
|
|
277
|
+
multicallAddress = '0x7A52370716ea730585884F5BDB0f6E60C39b8C64';
|
|
278
|
+
break;
|
|
279
|
+
case 'matchain':
|
|
280
|
+
multicallAddress = '0xDa91510Bd8c50bfa54FC2BE2dD6dAbE03eA8496c';
|
|
281
|
+
break;
|
|
282
|
+
case 'morph':
|
|
283
|
+
multicallAddress = '0x33A213b1049D5AD2eeE6e61dAe040955e60383D4';
|
|
284
|
+
break;
|
|
267
285
|
}
|
|
268
286
|
return multicallAddress;
|
|
269
287
|
}
|
package/build/generalUtil.js
CHANGED
|
@@ -185,7 +185,7 @@ function formErrorString(e, errorParams = {}) {
|
|
|
185
185
|
return '';
|
|
186
186
|
}
|
|
187
187
|
if (e.llamaRPCError) {
|
|
188
|
-
const errorString = `Llama RPC error!
|
|
188
|
+
const errorString = `Llama RPC error! method: ${e.method} `;
|
|
189
189
|
const errors = e.errors.map((i) => { var _a; return `- host: ${i === null || i === void 0 ? void 0 : i.host} error: ${(_a = i === null || i === void 0 ? void 0 : i.error) === null || _a === void 0 ? void 0 : _a.message}`; });
|
|
190
190
|
return errorString + '\n' + errors.join('\n');
|
|
191
191
|
}
|