@cryptorubic/web3 1.7.2 → 1.7.3-alpha.zkevm.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/README.md CHANGED
@@ -1 +1 @@
1
- # web3
1
+ # web3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/web3",
3
- "version": "1.7.2",
3
+ "version": "1.7.3-alpha.zkevm.2",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -30,9 +30,10 @@ class TonAdapterSigner extends abstract_adapter_signer_1.AbstractAdapterSigner {
30
30
  }
31
31
  async sendTransaction(params) {
32
32
  try {
33
+ const normalizedMessages = params.txOptions.messages.map((msg) => core_2.Address.isFriendly(msg.address) ? msg : { ...msg, address: core_2.Address.normalize(msg.address) });
33
34
  const { boc } = await this.wallet.sendTransaction({
34
35
  validUntil: Math.floor(Date.now() / 1000) + 360,
35
- messages: params.txOptions.messages
36
+ messages: normalizedMessages
36
37
  });
37
38
  const txHash = this.fromBocToBase64Hash(boc);
38
39
  params.txOptions.onTransactionHash?.(txHash);
@@ -509,25 +509,6 @@ exports.viemConfig = {
509
509
  }
510
510
  }
511
511
  }),
512
- POLYGON_ZKEVM: (0, viem_1.defineChain)({
513
- blockExplorers: {
514
- default: {
515
- apiUrl: 'https://zkevm.polygonscan.com/',
516
- name: 'POLYGON_ZKEVM Explorer',
517
- url: 'https://zkevm.polygonscan.com/'
518
- }
519
- },
520
- id: 1101,
521
- name: 'Polygon zkEVM',
522
- nativeCurrency: { decimals: 18, name: 'ETH', symbol: 'ETH' },
523
- rpcUrls: { default: { http: ['https://zkevm-rpc.com'] } },
524
- testnet: false,
525
- contracts: {
526
- multicall3: {
527
- address: '0xcA11bde05977b3631167028862bE2a173976CA11'
528
- }
529
- }
530
- }),
531
512
  ETHEREUM_CLASSIC: (0, viem_1.defineChain)({
532
513
  blockExplorers: {
533
514
  default: {
@@ -8,7 +8,6 @@ exports.viemBlockchainMapping = {
8
8
  [core_1.BLOCKCHAIN_NAME.ETHEREUM]: chains_1.mainnet,
9
9
  [core_1.BLOCKCHAIN_NAME.BINANCE_SMART_CHAIN]: chains_1.bsc,
10
10
  [core_1.BLOCKCHAIN_NAME.POLYGON]: chains_1.polygon,
11
- [core_1.BLOCKCHAIN_NAME.POLYGON_ZKEVM]: chains_1.polygonZkEvm,
12
11
  [core_1.BLOCKCHAIN_NAME.HARMONY]: chains_1.harmonyOne,
13
12
  [core_1.BLOCKCHAIN_NAME.AVALANCHE]: chains_1.avalanche,
14
13
  [core_1.BLOCKCHAIN_NAME.MOONRIVER]: chains_1.moonriver,