@openocean.finance/wallet 1.8.7 → 1.8.8

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.
@@ -73,7 +73,21 @@ var GnosisSafeWallet = /** @class */ (function (_super) {
73
73
  var _this = _super !== null && _super.apply(this, arguments) || this;
74
74
  _this.name = types_1.EnumWalletName.GnosisSafeWallet;
75
75
  _this.icon = metamask_svg_1.default;
76
- _this.supportChains = [types_1.EnumChains.RINKEBY];
76
+ _this.supportChains = [
77
+ types_1.EnumChains.ETH,
78
+ types_1.EnumChains.XDai,
79
+ types_1.EnumChains.Polygon,
80
+ types_1.EnumChains.PolygonzkEVM,
81
+ types_1.EnumChains.BSC,
82
+ types_1.EnumChains.Arbitrum,
83
+ types_1.EnumChains.Optimism,
84
+ types_1.EnumChains.Base,
85
+ types_1.EnumChains.ZKSYNC,
86
+ types_1.EnumChains.ZKSYNC,
87
+ types_1.EnumChains.Celo,
88
+ types_1.EnumChains.Avalanche,
89
+ types_1.EnumChains.Aurora,
90
+ ];
77
91
  _this.type = types_1.EnumWalletType.Extension;
78
92
  return _this;
79
93
  }
@@ -89,8 +103,15 @@ var GnosisSafeWallet = /** @class */ (function (_super) {
89
103
  case 0:
90
104
  opts = {
91
105
  // allowedDomains: [/gnosis-safe.io/],
92
- allowedDomains: [/gnosis-safe.io$/, /app.safe.global$/, /wallet-test.secux.io$/, /wallet.secuxtech.com$/, /wallet.ambire.com$/],
93
- debug: false
106
+ allowedDomains: [
107
+ /gnosis-safe.io$/,
108
+ /app.safe.global$/,
109
+ /wallet-test.secux.io$/,
110
+ /wallet.secuxtech.com$/,
111
+ /wallet.ambire.com$/,
112
+ /bnb.zebec.io$/
113
+ ],
114
+ debug: false,
94
115
  };
95
116
  sdk = new safe_apps_sdk_1.default(opts);
96
117
  return [4 /*yield*/, sdk.safe.getInfo()];
@@ -98,7 +119,7 @@ var GnosisSafeWallet = /** @class */ (function (_super) {
98
119
  safe = _a.sent();
99
120
  provider = new safe_apps_provider_1.SafeAppProvider(safe, sdk);
100
121
  this.sdk = new web3_1.default(provider).currentProvider.sdk;
101
- console.log('sdk', this.sdk);
122
+ console.log("sdk", this.sdk);
102
123
  currentChainId = safe.chainId;
103
124
  if (chainId && currentChainId !== chainId) {
104
125
  throw new Error(types_1.EnumErrors.ChainIdNotMath);
Binary file
package/lib/types.js CHANGED
@@ -60,14 +60,14 @@ var EnumChains;
60
60
  EnumChains["Rootstock"] = "rootstock";
61
61
  EnumChains["Sei"] = "sei";
62
62
  EnumChains["Btc"] = "btc";
63
- })(EnumChains = exports.EnumChains || (exports.EnumChains = {}));
63
+ })(EnumChains || (exports.EnumChains = EnumChains = {}));
64
64
  var EnumWalletType;
65
65
  (function (EnumWalletType) {
66
66
  EnumWalletType["Extension"] = "Extension";
67
67
  EnumWalletType["WalletConnect"] = "WalletConnect";
68
68
  EnumWalletType["Web"] = "Web";
69
69
  EnumWalletType["Mobile"] = "Mobile";
70
- })(EnumWalletType = exports.EnumWalletType || (exports.EnumWalletType = {}));
70
+ })(EnumWalletType || (exports.EnumWalletType = EnumWalletType = {}));
71
71
  var EnumWalletName;
72
72
  (function (EnumWalletName) {
73
73
  EnumWalletName["NearWallet"] = "NearWallet";
@@ -123,7 +123,7 @@ var EnumWalletName;
123
123
  EnumWalletName["CompassWallet"] = "Compass Wallet";
124
124
  EnumWalletName["OKXBtcWallet"] = "OKX Wallet";
125
125
  EnumWalletName["UnisatWallet"] = "Unisat Wallet";
126
- })(EnumWalletName = exports.EnumWalletName || (exports.EnumWalletName = {}));
126
+ })(EnumWalletName || (exports.EnumWalletName = EnumWalletName = {}));
127
127
  var EnumErrors;
128
128
  (function (EnumErrors) {
129
129
  EnumErrors["NotMetamask"] = "40001";
@@ -174,4 +174,4 @@ var EnumErrors;
174
174
  EnumErrors["NotCompassWallet"] = "40048";
175
175
  EnumErrors["NotOkxBtxWallet"] = "40049";
176
176
  EnumErrors["NotUnisatWallet"] = "40050";
177
- })(EnumErrors = exports.EnumErrors || (exports.EnumErrors = {}));
177
+ })(EnumErrors || (exports.EnumErrors = EnumErrors = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {