@cryptorubic/web3 0.7.13-alpha-rpc-request-log.4 → 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,17 +40,16 @@ 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)({
|
|
50
47
|
// @ts-ignore
|
|
51
48
|
chain,
|
|
52
49
|
transport: (0, viem_1.fallback)(transports, {
|
|
53
|
-
rank:
|
|
50
|
+
rank: {
|
|
51
|
+
interval: 1800000
|
|
52
|
+
}
|
|
54
53
|
})
|
|
55
54
|
});
|
|
56
55
|
}
|
|
@@ -367,8 +366,5 @@ class EvmAdapter extends abstract_adapter_1.AbstractAdapter {
|
|
|
367
366
|
});
|
|
368
367
|
}
|
|
369
368
|
}
|
|
370
|
-
interceptRequest(req, init) {
|
|
371
|
-
this.logger?.log(`RPC FETCH REQUEST: REQUEST: ${req.url}, INIT: ${JSON.stringify(init)}`);
|
|
372
|
-
}
|
|
373
369
|
}
|
|
374
370
|
exports.EvmAdapter = EvmAdapter;
|