@cryptorubic/web3 1.9.0-alpha.rub-3140.0 → 1.9.0-alpha.rub-3140.2
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/package.json
CHANGED
|
@@ -130,22 +130,22 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
132
|
const customViemConfig = this.clientParams?.viemConfig?.[this.blockchain];
|
|
133
|
-
const
|
|
133
|
+
const transportConfig = {
|
|
134
134
|
batch: { batchSize: 2000, wait: 16 },
|
|
135
|
+
maxResponseBodySize: false,
|
|
135
136
|
onFetchResponse: (response) => this.handlePossibleError(response),
|
|
136
137
|
retryCount: 2,
|
|
137
138
|
retryDelay: 100,
|
|
138
|
-
timeout: 5000
|
|
139
|
+
timeout: 5000,
|
|
140
|
+
...customViemConfig?.transportConfig
|
|
139
141
|
};
|
|
140
|
-
const
|
|
142
|
+
const fallbackConfig = {
|
|
141
143
|
rank: {
|
|
142
144
|
interval: 1800000
|
|
143
|
-
}
|
|
145
|
+
},
|
|
146
|
+
...customViemConfig?.fallbackConfig
|
|
144
147
|
};
|
|
145
|
-
const transports = rpcList.map((rpc) =>
|
|
146
|
-
return (0, viem_1.http)(rpc, customViemConfig?.transportConfig ? customViemConfig.transportConfig : defaultTransportConfig);
|
|
147
|
-
});
|
|
148
|
-
const fallbackConfig = customViemConfig?.fallbackConfig ? customViemConfig?.fallbackConfig : defaultFallbackConfig;
|
|
148
|
+
const transports = rpcList.map((rpc) => (0, viem_1.http)(rpc, transportConfig));
|
|
149
149
|
const chain = viem_blockchain_mapping_1.viemBlockchainMapping[this.blockchain];
|
|
150
150
|
return (0, viem_1.createPublicClient)({
|
|
151
151
|
// @ts-ignore
|