@openocean.finance/wallet 1.4.0 → 1.4.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/lib/Chains.js CHANGED
@@ -60,6 +60,11 @@ var chainObj = {
60
60
  chainName: "Polygon Mainnet", chainId: 137, blockExplorerUrl: "https://polygonscan.com/tx/", popularToken: ["USDT", "USDC", "MATIC", "AAVE", "DINO", "ADDY", "MIMATIC"], nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18, address: "0x0000000000000000000000000000000000001010" },
61
61
  rpcUrls: ["https://rpc-mainnet.maticvigil.com"]
62
62
  },
63
+ "polygon_zkevm": {
64
+ compiler: 'EVM',
65
+ chainName: "Polygon zkEVM", chainId: 1101, blockExplorerUrl: "https://zkevm.polygonscan.com/tx/", popularToken: ["USDT", "USDC", "MATIC", "AAVE", "DINO", "ADDY", "MIMATIC"], nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
66
+ rpcUrls: ["https://rpc.ankr.com/polygon_zkevm"]
67
+ },
63
68
  "avax": {
64
69
  compiler: 'EVM',
65
70
  chainName: "Avalanche", chainId: 43114, blockExplorerUrl: "https://cchain.explorer.avax.network/tx/", popularToken: ["AVAX", "PNG", "DAI.E", "ETH", "WAVAX", "JOE", "QI", "USDC.E"], nativeCurrency: { name: "AVAX", symbol: "AVAX", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
@@ -82,7 +82,8 @@ var BitKeepWallet = /** @class */ (function (_super) {
82
82
  types_1.EnumChains.Avalanche,
83
83
  types_1.EnumChains.Arbitrum,
84
84
  types_1.EnumChains.Optimism,
85
- types_1.EnumChains.ZKSYNC
85
+ types_1.EnumChains.ZKSYNC,
86
+ types_1.EnumChains.PolygonzkEVM
86
87
  // EnumChains.Boba,
87
88
  // EnumChains.Moonriver,
88
89
  // EnumChains.Aurora,
@@ -1,6 +1,6 @@
1
1
  import { EnumChains, EnumWalletName, EnumWalletType } from "../types";
2
2
  import BaseWallet from "./BaseWallet";
3
- import Web3 from 'web3';
3
+ import Web3 from "web3";
4
4
  declare class ImTokenWallet extends BaseWallet {
5
5
  name: EnumWalletName;
6
6
  icon: any;
@@ -71,7 +71,18 @@ var ImTokenWallet = /** @class */ (function (_super) {
71
71
  var _this = _super !== null && _super.apply(this, arguments) || this;
72
72
  _this.name = types_1.EnumWalletName.ImTokenWallet;
73
73
  _this.icon = imtoken_svg_1.default;
74
- _this.supportChains = [types_1.EnumChains.ETH, types_1.EnumChains.BSC, types_1.EnumChains.Polygon, types_1.EnumChains.OKEX, types_1.EnumChains.XDai, types_1.EnumChains.HECO, types_1.EnumChains.Fantom, types_1.EnumChains.Avalanche, types_1.EnumChains.ZKSYNC];
74
+ _this.supportChains = [
75
+ types_1.EnumChains.ETH,
76
+ types_1.EnumChains.BSC,
77
+ types_1.EnumChains.Polygon,
78
+ types_1.EnumChains.OKEX,
79
+ types_1.EnumChains.XDai,
80
+ types_1.EnumChains.HECO,
81
+ types_1.EnumChains.Fantom,
82
+ types_1.EnumChains.Avalanche,
83
+ types_1.EnumChains.ZKSYNC,
84
+ types_1.EnumChains.PolygonzkEVM
85
+ ];
75
86
  _this.type = types_1.EnumWalletType.Mobile;
76
87
  _this.sdk = null;
77
88
  _this.installUrl = "https://token.im/download";
@@ -95,7 +95,8 @@ var MetaMask = /** @class */ (function (_super) {
95
95
  types_1.EnumChains.Kava,
96
96
  types_1.EnumChains.Celo,
97
97
  types_1.EnumChains.Klaytn,
98
- types_1.EnumChains.ZKSYNC
98
+ types_1.EnumChains.ZKSYNC,
99
+ types_1.EnumChains.PolygonzkEVM
99
100
  ];
100
101
  _this.type = types_1.EnumWalletType.Extension;
101
102
  _this.sdk = null;
@@ -90,7 +90,8 @@ var SafePalWallet = /** @class */ (function (_super) {
90
90
  types_1.EnumChains.Kava,
91
91
  types_1.EnumChains.Celo,
92
92
  types_1.EnumChains.Klaytn,
93
- types_1.EnumChains.ZKSYNC
93
+ types_1.EnumChains.ZKSYNC,
94
+ types_1.EnumChains.PolygonzkEVM
94
95
  ];
95
96
  _this.type = types_1.EnumWalletType.Extension;
96
97
  _this.sdk = null;
@@ -90,7 +90,8 @@ var TrustWallet = /** @class */ (function (_super) {
90
90
  types_1.EnumChains.Kava,
91
91
  types_1.EnumChains.Celo,
92
92
  types_1.EnumChains.Klaytn,
93
- types_1.EnumChains.ZKSYNC
93
+ types_1.EnumChains.ZKSYNC,
94
+ types_1.EnumChains.PolygonzkEVM
94
95
  ];
95
96
  _this.type = types_1.EnumWalletType.Extension;
96
97
  _this.sdk = null;
@@ -103,7 +103,8 @@ var WalletConnect = /** @class */ (function (_super) {
103
103
  types_1.EnumChains.Kava,
104
104
  types_1.EnumChains.Celo,
105
105
  types_1.EnumChains.Klaytn,
106
- types_1.EnumChains.ZKSYNC
106
+ types_1.EnumChains.ZKSYNC,
107
+ types_1.EnumChains.PolygonzkEVM
107
108
  ];
108
109
  _this.type = types_1.EnumWalletType.WalletConnect;
109
110
  _this.sdk = null;
package/lib/types.d.ts CHANGED
@@ -41,7 +41,8 @@ export declare enum EnumChains {
41
41
  Kava = "kava",
42
42
  Celo = "celo",
43
43
  Klaytn = "klaytn",
44
- ZKSYNC = "zksync"
44
+ ZKSYNC = "zksync",
45
+ PolygonzkEVM = "polygon_zkevm"
45
46
  }
46
47
  export declare enum EnumWalletType {
47
48
  Extension = "Extension",
package/lib/types.js CHANGED
@@ -42,6 +42,7 @@ var EnumChains;
42
42
  EnumChains["Celo"] = "celo";
43
43
  EnumChains["Klaytn"] = "klaytn";
44
44
  EnumChains["ZKSYNC"] = "zksync";
45
+ EnumChains["PolygonzkEVM"] = "polygon_zkevm";
45
46
  })(EnumChains = exports.EnumChains || (exports.EnumChains = {}));
46
47
  var EnumWalletType;
47
48
  (function (EnumWalletType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {