@cryptorubic/web3 0.8.1 → 0.8.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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptorubic/web3",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
6
|
"bignumber.js": "9.1.2",
|
|
7
|
-
"@cryptorubic/core": "0.8.
|
|
7
|
+
"@cryptorubic/core": "0.8.2",
|
|
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.
|
|
14
|
+
"@cryptorubic/tron-types": "0.8.2",
|
|
15
15
|
"bitcoin-address-validation": "^2.2.3",
|
|
16
16
|
"axios": "0.27.2",
|
|
17
17
|
"crc-32": "^1.2.2",
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SolanaWeb3Pure = void 0;
|
|
4
4
|
const changenow_api_blockchain_1 = require("../constants/changenow-api-blockchain");
|
|
5
5
|
const common_web3_pure_1 = require("./common-web3-pure");
|
|
6
|
+
const core_1 = require("@cryptorubic/core");
|
|
6
7
|
class SolanaWeb3Pure extends common_web3_pure_1.CommonWeb3Pure {
|
|
7
8
|
constructor() {
|
|
8
9
|
super({
|
|
@@ -12,6 +13,9 @@ class SolanaWeb3Pure extends common_web3_pure_1.CommonWeb3Pure {
|
|
|
12
13
|
this.nativeTokenAddress = 'So11111111111111111111111111111111111111111';
|
|
13
14
|
}
|
|
14
15
|
async isAddressCorrect(address) {
|
|
16
|
+
if ((0, core_1.compareAddresses)(address, this.nativeTokenAddress)) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
15
19
|
if (this.regEx) {
|
|
16
20
|
return this.regEx.test(address);
|
|
17
21
|
}
|