@cryptorubic/web3 1.7.3-alpha.zkevm.2 → 1.7.3

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.3-alpha.zkevm.2",
3
+ "version": "1.7.3",
4
4
  "dependencies": {
5
5
  "@ethersproject/bignumber": "^5.8.0",
6
6
  "@mysten/sui": "^1.24.0",
@@ -30,10 +30,9 @@ 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) });
34
33
  const { boc } = await this.wallet.sendTransaction({
35
34
  validUntil: Math.floor(Date.now() / 1000) + 360,
36
- messages: normalizedMessages
35
+ messages: params.txOptions.messages
37
36
  });
38
37
  const txHash = this.fromBocToBase64Hash(boc);
39
38
  params.txOptions.onTransactionHash?.(txHash);
@@ -509,6 +509,25 @@ 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
+ }),
512
531
  ETHEREUM_CLASSIC: (0, viem_1.defineChain)({
513
532
  blockExplorers: {
514
533
  default: {
@@ -8,6 +8,7 @@ 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,
11
12
  [core_1.BLOCKCHAIN_NAME.HARMONY]: chains_1.harmonyOne,
12
13
  [core_1.BLOCKCHAIN_NAME.AVALANCHE]: chains_1.avalanche,
13
14
  [core_1.BLOCKCHAIN_NAME.MOONRIVER]: chains_1.moonriver,