@cryptorubic/web3 0.7.12 → 0.7.13-alpha-rpc-request-log.1
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.
|
|
3
|
+
"version": "0.7.13-alpha-rpc-request-log.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
6
|
"bignumber.js": "9.1.2",
|
|
7
|
-
"@cryptorubic/core": "0.7.
|
|
7
|
+
"@cryptorubic/core": "0.7.13-alpha-rpc-request-log.1",
|
|
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.
|
|
14
|
+
"@cryptorubic/tron-types": "0.7.13-alpha-rpc-request-log.1",
|
|
15
15
|
"bitcoin-address-validation": "^2.2.3",
|
|
16
16
|
"axios": "0.27.2",
|
|
17
17
|
"crc-32": "^1.2.2",
|
|
@@ -40,7 +40,10 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
40
40
|
},
|
|
41
41
|
retryCount: 2,
|
|
42
42
|
retryDelay: 100,
|
|
43
|
-
timeout: 5000
|
|
43
|
+
timeout: 5000,
|
|
44
|
+
onFetchRequest: (request, init) => {
|
|
45
|
+
this.interceptRequest(request, init);
|
|
46
|
+
}
|
|
44
47
|
}));
|
|
45
48
|
const chain = viem_blockchain_mapping_1.viemBlockchainMapping[this.blockchain];
|
|
46
49
|
return (0, viem_1.createPublicClient)({
|
|
@@ -364,5 +367,8 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
364
367
|
});
|
|
365
368
|
}
|
|
366
369
|
}
|
|
370
|
+
interceptRequest(req, init) {
|
|
371
|
+
this.logger?.log(`RPC FETCH REQUEST: REQUEST: ${JSON.stringify(req.body)}, INIT: ${JSON.stringify(init)}`);
|
|
372
|
+
}
|
|
367
373
|
}
|
|
368
374
|
exports.EvmAdapter = EvmAdapter;
|