@openocean.finance/wallet 1.9.1 → 1.9.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
@@ -465,6 +465,14 @@ var chainObj = {
465
465
  popularToken: ["BTC"],
466
466
  rpcUrls: []
467
467
  },
468
+ "arbitrum_sepolia": {
469
+ compiler: 'EVM',
470
+ chainName: "Arbitrum Sepolia",
471
+ chainId: 421614,
472
+ blockExplorerUrl: "https://sepolia-explorer.arbitrum.io/tx/",
473
+ nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
474
+ rpcUrls: ["https://arbitrum-sepolia.blockpi.network/v1/rpc/public"]
475
+ },
468
476
  };
469
477
  var Chains = /** @class */ (function () {
470
478
  function Chains() {
@@ -152,7 +152,7 @@ function link(reqConnectWalletVo, chain) {
152
152
  // https://solana-api.projectserum.com
153
153
  // https://mercuria-fronten-1cd8.mainnet.rpcpool.com/
154
154
  // "https://rpc.ankr.com/solana/ad9d7bb3250b29d691330e63e3b46778099aca307af8f5e49b2ebc0a470dd848"
155
- wallet.connection = new web3_js_1.Connection("https://solana-mainnet.g.alchemy.com/v2/O2uK_K8FGzQeuRZyI2msw2EgwIGqNoHP"
155
+ wallet.connection = new web3_js_1.Connection(reqConnectWalletVo.localRpcUrl || "https://solana-mainnet.rpc.grove.city/v1/3db25afe"
156
156
  // "https://few-silent-choice.solana-mainnet.quiknode.pro/b37eb00eb03a5a5e0ae9d9b7cf535b0b9c0dd6a9/"
157
157
  );
158
158
  if (res) {
@@ -366,7 +366,7 @@ function tryWalletConnect(reqConnectWalletVo) {
366
366
  case 5:
367
367
  localProvider = '';
368
368
  localRpcUrl = '';
369
- if (!wallet) return [3 /*break*/, 7];
369
+ if (!(wallet && chain.compiler == 'EVM')) return [3 /*break*/, 7];
370
370
  if (reqConnectWalletVo.localRpcUrl) {
371
371
  localProvider = new web3_1.default(new web3_1.default.providers.HttpProvider(reqConnectWalletVo.localRpcUrl));
372
372
  localRpcUrl = reqConnectWalletVo.localRpcUrl;
@@ -89,7 +89,8 @@ var CoinbaseWallet = /** @class */ (function (_super) {
89
89
  types_1.EnumChains.Manta,
90
90
  types_1.EnumChains.Mode,
91
91
  types_1.EnumChains.Rootstock,
92
- types_1.EnumChains.Sei
92
+ types_1.EnumChains.Sei,
93
+ types_1.EnumChains.ArbitrumSepolia,
93
94
  ];
94
95
  _this.type = types_1.EnumWalletType.Extension;
95
96
  _this.sdk = null;
@@ -81,7 +81,8 @@ var CompassWallet = /** @class */ (function (_super) {
81
81
  types_1.EnumChains.Arbitrum,
82
82
  types_1.EnumChains.Optimism,
83
83
  types_1.EnumChains.Metis,
84
- types_1.EnumChains.Sei
84
+ types_1.EnumChains.Sei,
85
+ types_1.EnumChains.ArbitrumSepolia,
85
86
  ];
86
87
  _this.type = types_1.EnumWalletType.Extension;
87
88
  _this.sdk = null;
@@ -111,7 +111,8 @@ var MetaMask = /** @class */ (function (_super) {
111
111
  types_1.EnumChains.PulseChain,
112
112
  types_1.EnumChains.MerlinChain,
113
113
  types_1.EnumChains.Rootstock,
114
- types_1.EnumChains.Sei
114
+ types_1.EnumChains.Sei,
115
+ types_1.EnumChains.ArbitrumSepolia,
115
116
  ];
116
117
  _this.type = types_1.EnumWalletType.Extension;
117
118
  _this.sdk = null;
@@ -92,7 +92,8 @@ var OKXWallet = /** @class */ (function (_super) {
92
92
  types_1.EnumChains.X1,
93
93
  types_1.EnumChains.Mode,
94
94
  types_1.EnumChains.Rootstock,
95
- types_1.EnumChains.Sei
95
+ types_1.EnumChains.Sei,
96
+ types_1.EnumChains.ArbitrumSepolia,
96
97
  ];
97
98
  _this.type = types_1.EnumWalletType.Extension;
98
99
  _this.sdk = null;
@@ -107,7 +107,8 @@ var WalletConnect = /** @class */ (function (_super) {
107
107
  types_1.EnumChains.PulseChain,
108
108
  types_1.EnumChains.MerlinChain,
109
109
  types_1.EnumChains.Rootstock,
110
- types_1.EnumChains.Sei
110
+ types_1.EnumChains.Sei,
111
+ types_1.EnumChains.ArbitrumSepolia,
111
112
  ];
112
113
  _this.type = types_1.EnumWalletType.WalletConnect;
113
114
  _this.sdk = null;
package/lib/types.d.ts CHANGED
@@ -59,7 +59,8 @@ export declare enum EnumChains {
59
59
  MerlinChain = "merlin",
60
60
  Rootstock = "rootstock",
61
61
  Sei = "sei",
62
- Btc = "btc"
62
+ Btc = "btc",
63
+ ArbitrumSepolia = "arbitrum_sepolia"
63
64
  }
64
65
  export declare enum EnumWalletType {
65
66
  Extension = "Extension",
package/lib/types.js CHANGED
@@ -60,14 +60,15 @@ var EnumChains;
60
60
  EnumChains["Rootstock"] = "rootstock";
61
61
  EnumChains["Sei"] = "sei";
62
62
  EnumChains["Btc"] = "btc";
63
- })(EnumChains || (exports.EnumChains = EnumChains = {}));
63
+ EnumChains["ArbitrumSepolia"] = "arbitrum_sepolia";
64
+ })(EnumChains = exports.EnumChains || (exports.EnumChains = {}));
64
65
  var EnumWalletType;
65
66
  (function (EnumWalletType) {
66
67
  EnumWalletType["Extension"] = "Extension";
67
68
  EnumWalletType["WalletConnect"] = "WalletConnect";
68
69
  EnumWalletType["Web"] = "Web";
69
70
  EnumWalletType["Mobile"] = "Mobile";
70
- })(EnumWalletType || (exports.EnumWalletType = EnumWalletType = {}));
71
+ })(EnumWalletType = exports.EnumWalletType || (exports.EnumWalletType = {}));
71
72
  var EnumWalletName;
72
73
  (function (EnumWalletName) {
73
74
  EnumWalletName["NearWallet"] = "NearWallet";
@@ -123,7 +124,7 @@ var EnumWalletName;
123
124
  EnumWalletName["CompassWallet"] = "Compass Wallet";
124
125
  EnumWalletName["OKXBtcWallet"] = "OKX Wallet";
125
126
  EnumWalletName["UnisatWallet"] = "Unisat Wallet";
126
- })(EnumWalletName || (exports.EnumWalletName = EnumWalletName = {}));
127
+ })(EnumWalletName = exports.EnumWalletName || (exports.EnumWalletName = {}));
127
128
  var EnumErrors;
128
129
  (function (EnumErrors) {
129
130
  EnumErrors["NotMetamask"] = "40001";
@@ -174,4 +175,4 @@ var EnumErrors;
174
175
  EnumErrors["NotCompassWallet"] = "40048";
175
176
  EnumErrors["NotOkxBtxWallet"] = "40049";
176
177
  EnumErrors["NotUnisatWallet"] = "40050";
177
- })(EnumErrors || (exports.EnumErrors = EnumErrors = {}));
178
+ })(EnumErrors = exports.EnumErrors || (exports.EnumErrors = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
Binary file