@openocean.finance/wallet 0.4.34 → 0.4.35
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/Cyano.js +9 -4
- package/lib/types.d.ts +2 -1
- package/lib/types.js +1 -0
- package/package.json +1 -1
package/lib/Wallets/Cyano.js
CHANGED
|
@@ -82,10 +82,15 @@ var Cyano = /** @class */ (function (_super) {
|
|
|
82
82
|
return __generator(this, function (_a) {
|
|
83
83
|
switch (_a.label) {
|
|
84
84
|
case 0:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
try {
|
|
86
|
+
ontology_dapi_1.client.registerClient({
|
|
87
|
+
logMessages: false,
|
|
88
|
+
logWarnings: false,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
catch (e) {
|
|
92
|
+
throw new Error(types_1.EnumErrors.NoCyano);
|
|
93
|
+
}
|
|
89
94
|
this.sdk = ontology_dapi_1.client; // not support return instance currently
|
|
90
95
|
return [4 /*yield*/, ontology_dapi_1.client.api.network.getNetwork()];
|
|
91
96
|
case 1:
|
package/lib/types.d.ts
CHANGED
|
@@ -113,7 +113,8 @@ export declare enum EnumErrors {
|
|
|
113
113
|
NoBloctoAccount = "40033",
|
|
114
114
|
NoPetraWallet = "40034",
|
|
115
115
|
NoMartianWallet = "40035",
|
|
116
|
-
NoPontemWallet = "40036"
|
|
116
|
+
NoPontemWallet = "40036",
|
|
117
|
+
NoCyano = "40037"
|
|
117
118
|
}
|
|
118
119
|
export interface ConnectResult {
|
|
119
120
|
chain: EnumChains;
|
package/lib/types.js
CHANGED