@openocean.finance/wallet 1.5.0 → 1.5.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/Wallets/ArgentX.js +3 -2
- package/lib/Wallets/Braavos.js +4 -3
- package/lib/Wallets/index.js +2 -0
- package/package.json +1 -1
package/lib/Wallets/ArgentX.js
CHANGED
|
@@ -88,7 +88,6 @@ var ArgentX = /** @class */ (function (_super) {
|
|
|
88
88
|
if (!wallet) {
|
|
89
89
|
throw new Error(types_1.EnumErrors.NoArgentX);
|
|
90
90
|
}
|
|
91
|
-
this.sdk = wallet.provider;
|
|
92
91
|
this.address = wallet.selectedAddress;
|
|
93
92
|
if (!!this.address) return [3 /*break*/, 2];
|
|
94
93
|
return [4 /*yield*/, wallet.enable()];
|
|
@@ -96,7 +95,9 @@ var ArgentX = /** @class */ (function (_super) {
|
|
|
96
95
|
_a.sent();
|
|
97
96
|
this.address = wallet.selectedAddress;
|
|
98
97
|
_a.label = 2;
|
|
99
|
-
case 2:
|
|
98
|
+
case 2:
|
|
99
|
+
this.sdk = wallet.provider;
|
|
100
|
+
return [2 /*return*/, this.address || ''];
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
});
|
package/lib/Wallets/Braavos.js
CHANGED
|
@@ -68,7 +68,7 @@ var Braavos = /** @class */ (function (_super) {
|
|
|
68
68
|
__extends(Braavos, _super);
|
|
69
69
|
function Braavos() {
|
|
70
70
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
71
|
-
_this.name = types_1.EnumWalletName.
|
|
71
|
+
_this.name = types_1.EnumWalletName.Braavos;
|
|
72
72
|
_this.icon = braavos_svg_1.default;
|
|
73
73
|
_this.supportChains = [types_1.EnumChains.Starknet];
|
|
74
74
|
_this.type = types_1.EnumWalletType.Extension;
|
|
@@ -88,7 +88,6 @@ var Braavos = /** @class */ (function (_super) {
|
|
|
88
88
|
if (!wallet) {
|
|
89
89
|
throw new Error(types_1.EnumErrors.NoBraavos);
|
|
90
90
|
}
|
|
91
|
-
this.sdk = wallet.provider;
|
|
92
91
|
this.address = wallet.selectedAddress;
|
|
93
92
|
if (!!this.address) return [3 /*break*/, 2];
|
|
94
93
|
return [4 /*yield*/, wallet.enable()];
|
|
@@ -96,7 +95,9 @@ var Braavos = /** @class */ (function (_super) {
|
|
|
96
95
|
_a.sent();
|
|
97
96
|
this.address = wallet.selectedAddress;
|
|
98
97
|
_a.label = 2;
|
|
99
|
-
case 2:
|
|
98
|
+
case 2:
|
|
99
|
+
this.sdk = wallet.provider;
|
|
100
|
+
return [2 /*return*/, this.address || ''];
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
});
|
package/lib/Wallets/index.js
CHANGED
|
@@ -44,6 +44,7 @@ var SenderWallet_1 = __importDefault(require("./SenderWallet"));
|
|
|
44
44
|
var LedgerEmbedWallet_1 = __importDefault(require("./LedgerEmbedWallet"));
|
|
45
45
|
var RabbyWallet_1 = __importDefault(require("./RabbyWallet"));
|
|
46
46
|
var ArgentX_1 = __importDefault(require("./ArgentX"));
|
|
47
|
+
var Braavos_1 = __importDefault(require("./Braavos"));
|
|
47
48
|
var WalletObj = {
|
|
48
49
|
MetaMask: new MetaMask_1.default(),
|
|
49
50
|
BscWallet: new BscWallet_1.default(),
|
|
@@ -54,6 +55,7 @@ var WalletObj = {
|
|
|
54
55
|
BitKeepWallet: new BitKeepWallet_1.default(),
|
|
55
56
|
TrustWallet: new TrustWallet_1.default(),
|
|
56
57
|
ArgentX: new ArgentX_1.default(),
|
|
58
|
+
Braavos: new Braavos_1.default(),
|
|
57
59
|
UnstoppableDomains: new UnstoppableDomains_1.default(),
|
|
58
60
|
// LedgerWallet: new LedgerWallet(),
|
|
59
61
|
LedgerEmbedWallet: new LedgerEmbedWallet_1.default(),
|