@defillama/sdk 5.0.103 → 5.0.105
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
|
@@ -166,6 +166,9 @@ const DEPLOYMENT_BLOCK = {
|
|
|
166
166
|
sonic: 1,
|
|
167
167
|
ace: 1,
|
|
168
168
|
ink: 1,
|
|
169
|
+
sophon: 1,
|
|
170
|
+
vana: 818176,
|
|
171
|
+
swellchain: 878173,
|
|
169
172
|
};
|
|
170
173
|
async function makeMultiCall(functionABI, calls, chain, block) {
|
|
171
174
|
if (chain === 'tron')
|
|
@@ -288,6 +291,12 @@ function getMulticallAddress(chain, block) {
|
|
|
288
291
|
case 'ace':
|
|
289
292
|
multicallAddress = '0x025A2B4fCE1E0bD736D5cebe6C8a52229795376B';
|
|
290
293
|
break;
|
|
294
|
+
case 'sophon':
|
|
295
|
+
multicallAddress = '0x5f4867441d2416cA88B1b3fd38f21811680CD2C8';
|
|
296
|
+
break;
|
|
297
|
+
case 'vana':
|
|
298
|
+
multicallAddress = '0xFe92b91F3326e58557478c28EeAe1936E0c7148a';
|
|
299
|
+
break;
|
|
291
300
|
}
|
|
292
301
|
return multicallAddress;
|
|
293
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);
|