@cryptorubic/web3 0.8.13 → 0.8.15

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.8.13",
3
+ "version": "0.8.15",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "bignumber.js": "9.1.2",
7
- "@cryptorubic/core": "0.8.13",
7
+ "@cryptorubic/core": "0.8.15",
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.8.13",
14
+ "@cryptorubic/tron-types": "0.8.15",
15
15
  "bitcoin-address-validation": "^2.2.3",
16
16
  "axios": "0.27.2",
17
17
  "crc-32": "^1.2.2",
@@ -19,7 +19,8 @@
19
19
  "@solana/spl-token": "0.2.0",
20
20
  "@mysten/sui": "^1.24.0",
21
21
  "@suiet/wallet-sdk": "^0.3.3",
22
- "bs58": "^6.0.0"
22
+ "bs58": "^6.0.0",
23
+ "ethers": "5.7.2"
23
24
  },
24
25
  "type": "commonjs",
25
26
  "main": "./src/index.js",
@@ -8,8 +8,8 @@ const core_1 = require("@cryptorubic/core");
8
8
  const web3_pure_1 = require("../../utils/web3-pure");
9
9
  const bignumber_js_1 = require("bignumber.js");
10
10
  const solana_tokens_service_1 = require("./utils/solana-tokens-service");
11
- const utils_1 = require("tronweb/lib/commonjs/utils");
12
11
  const bs58_1 = require("bs58");
12
+ const utils_1 = require("ethers/lib/utils");
13
13
  exports.NATIVE_SOLANA_MINT_ADDRESS = 'So11111111111111111111111111111111111111111';
14
14
  class SolanaAdapter extends abstract_adapter_1.AbstractAdapter {
15
15
  constructor(rpcList, httpClient, logger) {
@@ -157,9 +157,7 @@ class SolanaAdapter extends abstract_adapter_1.AbstractAdapter {
157
157
  return new web3_js_1.VersionedTransaction(newMsg);
158
158
  }
159
159
  deserializeTransaction(data) {
160
- const decodedData = data.startsWith('0x')
161
- ? Buffer.from(data.slice(2), 'hex')
162
- : (0, utils_1.arrayify)(new Uint8Array(Buffer.from(data, 'base64')));
160
+ const decodedData = data.startsWith('0x') ? Buffer.from(data.slice(2), 'hex') : utils_1.base64.decode(data);
163
161
  return web3_js_1.VersionedTransaction.deserialize(decodedData);
164
162
  }
165
163
  serializeTransactionToBase58(tx) {