@openocean.finance/wallet 1.4.2 → 1.4.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/lib/Chains.js CHANGED
@@ -306,6 +306,17 @@ var chainObj = {
306
306
  "https://mainnet.era.zksync.io"
307
307
  ],
308
308
  compiler: 'EVM'
309
+ },
310
+ "linea": {
311
+ chainName: "Linea Testnet",
312
+ chainId: 59140,
313
+ blockExplorerUrl: "https://explorer.goerli.linea.build/tx/",
314
+ nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
315
+ popularToken: [],
316
+ rpcUrls: [
317
+ "https://rpc.goerli.linea.build"
318
+ ],
319
+ compiler: 'EVM'
309
320
  }
310
321
  };
311
322
  var Chains = /** @class */ (function () {
@@ -83,6 +83,7 @@ var BitKeepWallet = /** @class */ (function (_super) {
83
83
  types_1.EnumChains.Arbitrum,
84
84
  types_1.EnumChains.Optimism,
85
85
  types_1.EnumChains.ZKSYNC,
86
+ types_1.EnumChains.Linea,
86
87
  types_1.EnumChains.PolygonzkEVM
87
88
  // EnumChains.Boba,
88
89
  // EnumChains.Moonriver,
@@ -81,6 +81,7 @@ var ImTokenWallet = /** @class */ (function (_super) {
81
81
  types_1.EnumChains.Fantom,
82
82
  types_1.EnumChains.Avalanche,
83
83
  types_1.EnumChains.ZKSYNC,
84
+ types_1.EnumChains.Linea,
84
85
  types_1.EnumChains.PolygonzkEVM
85
86
  ];
86
87
  _this.type = types_1.EnumWalletType.Mobile;
@@ -96,6 +96,7 @@ var MetaMask = /** @class */ (function (_super) {
96
96
  types_1.EnumChains.Celo,
97
97
  types_1.EnumChains.Klaytn,
98
98
  types_1.EnumChains.ZKSYNC,
99
+ types_1.EnumChains.Linea,
99
100
  types_1.EnumChains.PolygonzkEVM
100
101
  ];
101
102
  _this.type = types_1.EnumWalletType.Extension;
@@ -91,6 +91,7 @@ var SafePalWallet = /** @class */ (function (_super) {
91
91
  types_1.EnumChains.Celo,
92
92
  types_1.EnumChains.Klaytn,
93
93
  types_1.EnumChains.ZKSYNC,
94
+ types_1.EnumChains.Linea,
94
95
  types_1.EnumChains.PolygonzkEVM
95
96
  ];
96
97
  _this.type = types_1.EnumWalletType.Extension;
@@ -91,6 +91,7 @@ var TrustWallet = /** @class */ (function (_super) {
91
91
  types_1.EnumChains.Celo,
92
92
  types_1.EnumChains.Klaytn,
93
93
  types_1.EnumChains.ZKSYNC,
94
+ types_1.EnumChains.Linea,
94
95
  types_1.EnumChains.PolygonzkEVM
95
96
  ];
96
97
  _this.type = types_1.EnumWalletType.Extension;
@@ -104,6 +104,7 @@ var WalletConnect = /** @class */ (function (_super) {
104
104
  types_1.EnumChains.Celo,
105
105
  types_1.EnumChains.Klaytn,
106
106
  types_1.EnumChains.ZKSYNC,
107
+ types_1.EnumChains.Linea,
107
108
  types_1.EnumChains.PolygonzkEVM
108
109
  ];
109
110
  _this.type = types_1.EnumWalletType.WalletConnect;
@@ -146,6 +147,7 @@ var WalletConnect = /** @class */ (function (_super) {
146
147
  42220: "https://1rpc.io/celo",
147
148
  421611: "https://rinkeby.arbitrum.io/rpc",
148
149
  43114: "https://api.avax.network/ext/bc/C/rpc",
150
+ 59140: "https://rpc.goerli.linea.build",
149
151
  1313161554: "https://mainnet.aurora.dev",
150
152
  1666600000: "https://api.s0.t.hmny.io",
151
153
  } }, config));
package/lib/types.d.ts CHANGED
@@ -42,7 +42,8 @@ export declare enum EnumChains {
42
42
  Celo = "celo",
43
43
  Klaytn = "klaytn",
44
44
  ZKSYNC = "zksync",
45
- PolygonzkEVM = "polygon_zkevm"
45
+ PolygonzkEVM = "polygon_zkevm",
46
+ Linea = "linea"
46
47
  }
47
48
  export declare enum EnumWalletType {
48
49
  Extension = "Extension",
package/lib/types.js CHANGED
@@ -43,6 +43,7 @@ var EnumChains;
43
43
  EnumChains["Klaytn"] = "klaytn";
44
44
  EnumChains["ZKSYNC"] = "zksync";
45
45
  EnumChains["PolygonzkEVM"] = "polygon_zkevm";
46
+ EnumChains["Linea"] = "linea";
46
47
  })(EnumChains = exports.EnumChains || (exports.EnumChains = {}));
47
48
  var EnumWalletType;
48
49
  (function (EnumWalletType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {