@cryptorubic/web3 0.7.13-alpha-rpc-request-log.3 → 0.7.13
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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptorubic/web3",
|
|
3
|
-
"version": "0.7.13
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
6
|
"bignumber.js": "9.1.2",
|
|
7
|
-
"@cryptorubic/core": "0.7.13
|
|
7
|
+
"@cryptorubic/core": "0.7.13",
|
|
8
8
|
"viem": "^2.19.1",
|
|
9
9
|
"web3-utils": "^4.3.1",
|
|
10
10
|
"@ton/ton": "^15.1.0",
|
|
11
11
|
"@solana/web3.js": "1.95.3",
|
|
12
12
|
"@solflare-wallet/utl-sdk": "^1.4.0",
|
|
13
13
|
"@ethersproject/bignumber": "^5.7.0",
|
|
14
|
-
"@cryptorubic/tron-types": "0.7.13
|
|
14
|
+
"@cryptorubic/tron-types": "0.7.13",
|
|
15
15
|
"bitcoin-address-validation": "^2.2.3",
|
|
16
16
|
"axios": "0.27.2",
|
|
17
17
|
"crc-32": "^1.2.2",
|
|
@@ -40,10 +40,7 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
40
40
|
},
|
|
41
41
|
retryCount: 2,
|
|
42
42
|
retryDelay: 100,
|
|
43
|
-
timeout: 5000
|
|
44
|
-
onFetchRequest: (request, init) => {
|
|
45
|
-
this.interceptRequest(request, init);
|
|
46
|
-
}
|
|
43
|
+
timeout: 5000
|
|
47
44
|
}));
|
|
48
45
|
const chain = viem_blockchain_mapping_1.viemBlockchainMapping[this.blockchain];
|
|
49
46
|
return (0, viem_1.createPublicClient)({
|
|
@@ -51,7 +48,7 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
51
48
|
chain,
|
|
52
49
|
transport: (0, viem_1.fallback)(transports, {
|
|
53
50
|
rank: {
|
|
54
|
-
interval:
|
|
51
|
+
interval: 1800000
|
|
55
52
|
}
|
|
56
53
|
})
|
|
57
54
|
});
|
|
@@ -369,8 +366,5 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
369
366
|
});
|
|
370
367
|
}
|
|
371
368
|
}
|
|
372
|
-
interceptRequest(req, init) {
|
|
373
|
-
this.logger?.log(`RPC FETCH REQUEST: REQUEST: ${req.url}, INIT: ${JSON.stringify(init)}`);
|
|
374
|
-
}
|
|
375
369
|
}
|
|
376
370
|
exports.EvmAdapter = EvmAdapter;
|