@defillama/sdk 5.0.102 → 5.0.104
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
CHANGED
|
@@ -165,6 +165,10 @@ const DEPLOYMENT_BLOCK = {
|
|
|
165
165
|
morph: 169985,
|
|
166
166
|
sonic: 1,
|
|
167
167
|
ace: 1,
|
|
168
|
+
ink: 1,
|
|
169
|
+
sophon: 1,
|
|
170
|
+
vana: 818176,
|
|
171
|
+
swellchain: 878173,
|
|
168
172
|
};
|
|
169
173
|
async function makeMultiCall(functionABI, calls, chain, block) {
|
|
170
174
|
if (chain === 'tron')
|
|
@@ -287,6 +291,12 @@ function getMulticallAddress(chain, block) {
|
|
|
287
291
|
case 'ace':
|
|
288
292
|
multicallAddress = '0x025A2B4fCE1E0bD736D5cebe6C8a52229795376B';
|
|
289
293
|
break;
|
|
294
|
+
case 'sophon':
|
|
295
|
+
multicallAddress = '0x5f4867441d2416cA88B1b3fd38f21811680CD2C8';
|
|
296
|
+
break;
|
|
297
|
+
case 'vana':
|
|
298
|
+
multicallAddress = '0xFe92b91F3326e58557478c28EeAe1936E0c7148a';
|
|
299
|
+
break;
|
|
290
300
|
}
|
|
291
301
|
return multicallAddress;
|
|
292
302
|
}
|
package/build/abi/rpcCall.js
CHANGED
|
@@ -17,6 +17,8 @@ async function call(provider, data, block, chain, options = { retry: true }) {
|
|
|
17
17
|
const currentId = counter.requestCount++;
|
|
18
18
|
const eventId = `${chain}-${currentId}`;
|
|
19
19
|
let chainMaxParallelCalls = (0, env_1.getMaxParallelRequests)(chain);
|
|
20
|
+
if (!provider)
|
|
21
|
+
throw new Error('Provider not found for chain: ' + chain);
|
|
20
22
|
if (counter.activeWorkers > chainMaxParallelCalls) {
|
|
21
23
|
counter.queue.push(eventId);
|
|
22
24
|
await (0, events_1.once)(emitter, eventId);
|