@cryptorubic/web3 0.8.1 → 0.8.3-alpha-id-2294.0

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.1",
3
+ "version": "0.8.3-alpha-id-2294.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "bignumber.js": "9.1.2",
7
- "@cryptorubic/core": "0.8.1",
7
+ "@cryptorubic/core": "0.8.3-alpha-id-2294.0",
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.1",
14
+ "@cryptorubic/tron-types": "0.8.3-alpha-id-2294.0",
15
15
  "bitcoin-address-validation": "^2.2.3",
16
16
  "axios": "0.27.2",
17
17
  "crc-32": "^1.2.2",
@@ -896,25 +896,6 @@ exports.viemConfig = {
896
896
  }
897
897
  }
898
898
  }),
899
- KROMA: (0, viem_1.defineChain)({
900
- blockExplorers: {
901
- default: {
902
- apiUrl: 'https://kromascan.com/',
903
- name: 'KROMA Explorer',
904
- url: 'https://kromascan.com/'
905
- }
906
- },
907
- id: 255,
908
- name: 'Kroma',
909
- nativeCurrency: { decimals: 18, name: 'ETH', symbol: 'ETH' },
910
- rpcUrls: { default: { http: ['https://api.kroma.network'] } },
911
- testnet: false,
912
- contracts: {
913
- multicall3: {
914
- address: '0xcA11bde05977b3631167028862bE2a173976CA11'
915
- }
916
- }
917
- }),
918
899
  OASIS: (0, viem_1.defineChain)({
919
900
  blockExplorers: {
920
901
  default: {
@@ -59,7 +59,6 @@ exports.viemBlockchainMapping = {
59
59
  [core_1.BLOCKCHAIN_NAME.BERACHAIN_TESTNET]: chains_1.berachainTestnetbArtio,
60
60
  [core_1.BLOCKCHAIN_NAME.BLAST]: chains_1.blast,
61
61
  [core_1.BLOCKCHAIN_NAME.HOLESKY]: chains_1.holesky,
62
- [core_1.BLOCKCHAIN_NAME.KROMA]: chains_1.kroma,
63
62
  [core_1.BLOCKCHAIN_NAME.HORIZEN_EON]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.HORIZEN_EON],
64
63
  [core_1.BLOCKCHAIN_NAME.MERLIN]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.MERLIN],
65
64
  [core_1.BLOCKCHAIN_NAME.ROOTSTOCK]: chain_configs_1.viemConfig[core_1.BLOCKCHAIN_NAME.ROOTSTOCK],
@@ -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
  }