@keplr-wallet/background 0.10.3 → 0.10.4
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/build/chains/handler.js +2 -1
- package/build/chains/handler.js.map +1 -1
- package/build/chains/messages.js +2 -2
- package/build/chains/messages.js.map +1 -1
- package/build/chains/service.js +6 -5
- package/build/chains/service.js.map +1 -1
- package/build/chains/types.js +2 -1
- package/build/chains/types.js.map +1 -1
- package/build/interaction/foreground/handler.js +2 -1
- package/build/interaction/foreground/handler.js.map +1 -1
- package/build/interaction/foreground/messages.js +2 -2
- package/build/interaction/foreground/messages.js.map +1 -1
- package/build/interaction/handler.js +2 -1
- package/build/interaction/handler.js.map +1 -1
- package/build/interaction/service.js +5 -4
- package/build/interaction/service.js.map +1 -1
- package/build/keyring/crypto.js +4 -3
- package/build/keyring/crypto.js.map +1 -1
- package/build/keyring/handler.js +2 -1
- package/build/keyring/handler.js.map +1 -1
- package/build/keyring/keyring.js +48 -47
- package/build/keyring/keyring.js.map +1 -1
- package/build/keyring/messages.js +44 -44
- package/build/keyring/messages.js.map +1 -1
- package/build/keyring/service.js +10 -10
- package/build/keyring/service.js.map +1 -1
- package/build/ledger/handler.js +2 -1
- package/build/ledger/handler.js.map +1 -1
- package/build/ledger/ledger.js +5 -4
- package/build/ledger/ledger.js.map +1 -1
- package/build/ledger/messages.js +1 -1
- package/build/ledger/messages.js.map +1 -1
- package/build/ledger/service.js +5 -5
- package/build/ledger/service.js.map +1 -1
- package/build/permission/handler.js +2 -1
- package/build/permission/handler.js.map +1 -1
- package/build/permission/messages.js +11 -11
- package/build/permission/messages.js.map +1 -1
- package/build/permission/service.js +2 -1
- package/build/permission/service.js.map +1 -1
- package/build/secret-wasm/handler.js +2 -1
- package/build/secret-wasm/handler.js.map +1 -1
- package/build/secret-wasm/messages.js +9 -9
- package/build/secret-wasm/messages.js.map +1 -1
- package/build/secret-wasm/service.js +5 -4
- package/build/secret-wasm/service.js.map +1 -1
- package/build/tokens/handler.js +2 -1
- package/build/tokens/handler.js.map +1 -1
- package/build/tokens/messages.js +7 -7
- package/build/tokens/messages.js.map +1 -1
- package/build/tokens/service.js +3 -2
- package/build/tokens/service.js.map +1 -1
- package/build/tx/handler.js +2 -1
- package/build/tx/handler.js.map +1 -1
- package/build/tx/messages.js +3 -3
- package/build/tx/messages.js.map +1 -1
- package/build/updater/handler.js +2 -1
- package/build/updater/handler.js.map +1 -1
- package/build/updater/messages.js +1 -1
- package/build/updater/messages.js.map +1 -1
- package/package.json +10 -10
- package/src/chains/handler.ts +8 -2
- package/src/chains/messages.ts +3 -3
- package/src/chains/service.ts +14 -6
- package/src/chains/types.ts +6 -1
- package/src/interaction/foreground/handler.ts +8 -2
- package/src/interaction/foreground/messages.ts +3 -3
- package/src/interaction/handler.ts +8 -2
- package/src/interaction/service.ts +5 -4
- package/src/keyring/crypto.ts +4 -3
- package/src/keyring/handler.ts +8 -2
- package/src/keyring/keyring.ts +92 -48
- package/src/keyring/messages.ts +49 -45
- package/src/keyring/service.ts +23 -11
- package/src/ledger/handler.ts +8 -2
- package/src/ledger/ledger.ts +5 -4
- package/src/ledger/messages.ts +2 -2
- package/src/ledger/service.ts +6 -6
- package/src/permission/handler.ts +8 -2
- package/src/permission/messages.ts +12 -12
- package/src/permission/service.ts +2 -2
- package/src/secret-wasm/handler.ts +8 -2
- package/src/secret-wasm/messages.ts +10 -10
- package/src/secret-wasm/service.ts +5 -5
- package/src/tokens/handler.ts +8 -2
- package/src/tokens/messages.ts +8 -8
- package/src/tokens/service.ts +3 -3
- package/src/tx/handler.ts +8 -2
- package/src/tx/messages.ts +4 -4
- package/src/updater/handler.ts +8 -2
- package/src/updater/messages.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../src/updater/handler.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../src/updater/handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAM8B;AAE9B,yCAA+C;AAExC,MAAM,UAAU,GAA8C,CACnE,OAAO,EACP,EAAE;IACF,OAAO,CAAC,GAAQ,EAAE,GAAqB,EAAE,EAAE;QACzC,QAAQ,GAAG,CAAC,WAAW,EAAE;YACvB,KAAK,4BAAiB;gBACpB,OAAO,uBAAuB,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAwB,CAAC,CAAC;YACzE;gBACE,MAAM,IAAI,mBAAU,CAAC,SAAS,EAAE,GAAG,EAAE,kBAAkB,CAAC,CAAC;SAC5D;IACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAXW,QAAA,UAAU,cAWrB;AAEF,MAAM,uBAAuB,GAEa,CAAC,OAAO,EAAE,EAAE;IACpD,OAAO,CAAO,CAAC,EAAE,GAAG,EAAE,EAAE;QACtB,MAAM,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC,CAAA,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/updater/messages.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/updater/messages.ts"],"names":[],"mappings":";;;AAAA,iDAA2D;AAC3D,2CAAoC;AAEpC,MAAa,iBAAkB,SAAQ,gBAAa;IAKlD,YAA4B,OAAe;QACzC,KAAK,EAAE,CAAC;QADkB,YAAO,GAAP,OAAO,CAAQ;IAE3C,CAAC;IANM,MAAM,CAAC,IAAI;QAChB,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAMD,aAAa;QACX,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,mBAAU,CAAC,SAAS,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC;SACxD;IACH,CAAC;IAED,KAAK;QACH,OAAO,iBAAK,CAAC;IACf,CAAC;IAED,IAAI;QACF,OAAO,iBAAiB,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;CACF;AAtBD,8CAsBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keplr-wallet/background",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"author": "chainapsis",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@ethersproject/bytes": "^5.5.0",
|
|
30
30
|
"@ethersproject/keccak256": "^5.5.0",
|
|
31
31
|
"@ethersproject/wallet": "^5.5.0",
|
|
32
|
-
"@keplr-wallet/common": "0.10.
|
|
33
|
-
"@keplr-wallet/cosmos": "0.10.
|
|
34
|
-
"@keplr-wallet/crypto": "0.10.
|
|
35
|
-
"@keplr-wallet/popup": "0.10.
|
|
36
|
-
"@keplr-wallet/proto-types": "0.10.
|
|
37
|
-
"@keplr-wallet/router": "0.10.
|
|
38
|
-
"@keplr-wallet/types": "0.10.
|
|
39
|
-
"@keplr-wallet/unit": "0.10.
|
|
32
|
+
"@keplr-wallet/common": "0.10.4",
|
|
33
|
+
"@keplr-wallet/cosmos": "0.10.4",
|
|
34
|
+
"@keplr-wallet/crypto": "0.10.4",
|
|
35
|
+
"@keplr-wallet/popup": "0.10.4",
|
|
36
|
+
"@keplr-wallet/proto-types": "0.10.4",
|
|
37
|
+
"@keplr-wallet/router": "0.10.4",
|
|
38
|
+
"@keplr-wallet/types": "0.10.4",
|
|
39
|
+
"@keplr-wallet/unit": "0.10.4",
|
|
40
40
|
"@ledgerhq/hw-transport": "^6.20.0",
|
|
41
41
|
"@ledgerhq/hw-transport-webhid": "^6.20.0",
|
|
42
42
|
"@ledgerhq/hw-transport-webusb": "^6.20.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"secretjs": "^0.17.0",
|
|
57
57
|
"tsyringe": "^4.5.0"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "e94023b4f3f993ec8da195675a6fb339225e93d2"
|
|
60
60
|
}
|
package/src/chains/handler.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Env,
|
|
3
|
+
Handler,
|
|
4
|
+
InternalHandler,
|
|
5
|
+
KeplrError,
|
|
6
|
+
Message,
|
|
7
|
+
} from "@keplr-wallet/router";
|
|
2
8
|
import { ChainsService } from "./service";
|
|
3
9
|
import {
|
|
4
10
|
GetChainInfosMsg,
|
|
@@ -25,7 +31,7 @@ export const getHandler: (service: ChainsService) => Handler = (service) => {
|
|
|
25
31
|
msg as RemoveSuggestedChainInfoMsg
|
|
26
32
|
);
|
|
27
33
|
default:
|
|
28
|
-
throw new
|
|
34
|
+
throw new KeplrError("chains", 110, "Unknown msg type");
|
|
29
35
|
}
|
|
30
36
|
};
|
|
31
37
|
};
|
package/src/chains/messages.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Message } from "@keplr-wallet/router";
|
|
1
|
+
import { KeplrError, Message } from "@keplr-wallet/router";
|
|
2
2
|
import { ChainInfoWithEmbed } from "./types";
|
|
3
3
|
import { ChainInfo } from "@keplr-wallet/types";
|
|
4
4
|
import { ROUTE } from "./constants";
|
|
@@ -34,7 +34,7 @@ export class SuggestChainInfoMsg extends Message<void> {
|
|
|
34
34
|
|
|
35
35
|
validateBasic(): void {
|
|
36
36
|
if (!this.chainInfo) {
|
|
37
|
-
throw new
|
|
37
|
+
throw new KeplrError("chains", 100, "Chain info not set");
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -62,7 +62,7 @@ export class RemoveSuggestedChainInfoMsg extends Message<ChainInfoWithEmbed[]> {
|
|
|
62
62
|
|
|
63
63
|
validateBasic(): void {
|
|
64
64
|
if (!this.chainId) {
|
|
65
|
-
throw new
|
|
65
|
+
throw new KeplrError("chains", 101, "Chain id not set");
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
package/src/chains/service.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ChainInfo } from "@keplr-wallet/types";
|
|
|
6
6
|
import { KVStore, Debouncer } from "@keplr-wallet/common";
|
|
7
7
|
import { ChainUpdaterService } from "../updater";
|
|
8
8
|
import { InteractionService } from "../interaction";
|
|
9
|
-
import { Env } from "@keplr-wallet/router";
|
|
9
|
+
import { Env, KeplrError } from "@keplr-wallet/router";
|
|
10
10
|
import { SuggestChainInfoMsg } from "./messages";
|
|
11
11
|
import { ChainIdHelper } from "@keplr-wallet/cosmos";
|
|
12
12
|
|
|
@@ -103,7 +103,11 @@ export class ChainsService {
|
|
|
103
103
|
});
|
|
104
104
|
|
|
105
105
|
if (!chainInfo) {
|
|
106
|
-
throw new
|
|
106
|
+
throw new KeplrError(
|
|
107
|
+
"chains",
|
|
108
|
+
411,
|
|
109
|
+
`There is no chain info for ${chainId}`
|
|
110
|
+
);
|
|
107
111
|
}
|
|
108
112
|
return chainInfo;
|
|
109
113
|
}
|
|
@@ -112,7 +116,11 @@ export class ChainsService {
|
|
|
112
116
|
const chainInfo = await this.getChainInfo(chainId);
|
|
113
117
|
|
|
114
118
|
if (!chainInfo) {
|
|
115
|
-
throw new
|
|
119
|
+
throw new KeplrError(
|
|
120
|
+
"chains",
|
|
121
|
+
411,
|
|
122
|
+
`There is no chain info for ${chainId}`
|
|
123
|
+
);
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
return chainInfo.bip44.coinType;
|
|
@@ -153,7 +161,7 @@ export class ChainsService {
|
|
|
153
161
|
|
|
154
162
|
async addChainInfo(chainInfo: ChainInfo): Promise<void> {
|
|
155
163
|
if (await this.hasChainInfo(chainInfo.chainId)) {
|
|
156
|
-
throw new
|
|
164
|
+
throw new KeplrError("chains", 121, "Same chain is already registered");
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
const savedChainInfos =
|
|
@@ -168,11 +176,11 @@ export class ChainsService {
|
|
|
168
176
|
|
|
169
177
|
async removeChainInfo(chainId: string): Promise<void> {
|
|
170
178
|
if (!(await this.hasChainInfo(chainId))) {
|
|
171
|
-
throw new
|
|
179
|
+
throw new KeplrError("chains", 120, "Chain is not registered");
|
|
172
180
|
}
|
|
173
181
|
|
|
174
182
|
if ((await this.getChainInfo(chainId)).embeded) {
|
|
175
|
-
throw new
|
|
183
|
+
throw new KeplrError("chains", 122, "Can't remove the embedded chain");
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
const savedChainInfos =
|
package/src/chains/types.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KeplrError } from "@keplr-wallet/router";
|
|
1
2
|
import {
|
|
2
3
|
Bech32Config,
|
|
3
4
|
ChainInfo,
|
|
@@ -116,7 +117,11 @@ export const ChainInfoSchema = Joi.object<ChainInfo>({
|
|
|
116
117
|
.unique()
|
|
117
118
|
.custom((value: string[]) => {
|
|
118
119
|
if (value.indexOf("cosmwasm") >= 0 && value.indexOf("secretwasm") >= 0) {
|
|
119
|
-
throw new
|
|
120
|
+
throw new KeplrError(
|
|
121
|
+
"chains",
|
|
122
|
+
430,
|
|
123
|
+
"cosmwasm and secretwasm are not compatible"
|
|
124
|
+
);
|
|
120
125
|
}
|
|
121
126
|
|
|
122
127
|
return value;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Env,
|
|
3
|
+
Handler,
|
|
4
|
+
InternalHandler,
|
|
5
|
+
KeplrError,
|
|
6
|
+
Message,
|
|
7
|
+
} from "@keplr-wallet/router";
|
|
2
8
|
import { PushEventDataMsg, PushInteractionDataMsg } from "./messages";
|
|
3
9
|
import { InteractionForegroundService } from "./service";
|
|
4
10
|
|
|
@@ -15,7 +21,7 @@ export const getHandler: (service: InteractionForegroundService) => Handler = (
|
|
|
15
21
|
case PushEventDataMsg:
|
|
16
22
|
return handlePushEventDataMsg(service)(env, msg as PushEventDataMsg);
|
|
17
23
|
default:
|
|
18
|
-
throw new
|
|
24
|
+
throw new KeplrError("interaction", 110, "Unknown msg type");
|
|
19
25
|
}
|
|
20
26
|
};
|
|
21
27
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Message } from "@keplr-wallet/router";
|
|
1
|
+
import { KeplrError, Message } from "@keplr-wallet/router";
|
|
2
2
|
import { ROUTE } from "./constants";
|
|
3
3
|
import { InteractionWaitingData } from "../types";
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ export class PushInteractionDataMsg extends Message<void> {
|
|
|
13
13
|
|
|
14
14
|
validateBasic(): void {
|
|
15
15
|
if (!this.data.type) {
|
|
16
|
-
throw new
|
|
16
|
+
throw new KeplrError("interaction", 101, "Type should not be empty");
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -39,7 +39,7 @@ export class PushEventDataMsg extends Message<void> {
|
|
|
39
39
|
|
|
40
40
|
validateBasic(): void {
|
|
41
41
|
if (!this.data.type) {
|
|
42
|
-
throw new
|
|
42
|
+
throw new KeplrError("interaction", 101, "Type should not be empty");
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Env,
|
|
3
|
+
Handler,
|
|
4
|
+
InternalHandler,
|
|
5
|
+
KeplrError,
|
|
6
|
+
Message,
|
|
7
|
+
} from "@keplr-wallet/router";
|
|
2
8
|
import { ApproveInteractionMsg, RejectInteractionMsg } from "./messages";
|
|
3
9
|
import { InteractionService } from "./service";
|
|
4
10
|
|
|
@@ -18,7 +24,7 @@ export const getHandler: (service: InteractionService) => Handler = (
|
|
|
18
24
|
msg as RejectInteractionMsg
|
|
19
25
|
);
|
|
20
26
|
default:
|
|
21
|
-
throw new
|
|
27
|
+
throw new KeplrError("interaction", 100, "Unknown msg type");
|
|
22
28
|
}
|
|
23
29
|
};
|
|
24
30
|
};
|
|
@@ -5,6 +5,7 @@ import { InteractionWaitingData } from "./types";
|
|
|
5
5
|
import {
|
|
6
6
|
Env,
|
|
7
7
|
FnRequestInteractionOptions,
|
|
8
|
+
KeplrError,
|
|
8
9
|
MessageRequester,
|
|
9
10
|
} from "@keplr-wallet/router";
|
|
10
11
|
import { PushEventDataMsg, PushInteractionDataMsg } from "./foreground";
|
|
@@ -28,7 +29,7 @@ export class InteractionService {
|
|
|
28
29
|
// And, don't ensure that the event is delivered successfully, just ignore the any errors.
|
|
29
30
|
dispatchEvent(port: string, type: string, data: unknown) {
|
|
30
31
|
if (!type) {
|
|
31
|
-
throw new
|
|
32
|
+
throw new KeplrError("interaction", 101, "Type should not be empty");
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
const msg = new PushEventDataMsg({
|
|
@@ -49,7 +50,7 @@ export class InteractionService {
|
|
|
49
50
|
options?: FnRequestInteractionOptions
|
|
50
51
|
): Promise<unknown> {
|
|
51
52
|
if (!type) {
|
|
52
|
-
throw new
|
|
53
|
+
throw new KeplrError("interaction", 101, "Type should not be empty");
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
// TODO: Add timeout?
|
|
@@ -68,7 +69,7 @@ export class InteractionService {
|
|
|
68
69
|
|
|
69
70
|
protected async wait(id: string, fn: () => void): Promise<unknown> {
|
|
70
71
|
if (this.resolverMap.has(id)) {
|
|
71
|
-
throw new
|
|
72
|
+
throw new KeplrError("interaction", 100, "Id is aleady in use");
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
return new Promise<unknown>((resolve, reject) => {
|
|
@@ -121,7 +122,7 @@ export class InteractionService {
|
|
|
121
122
|
};
|
|
122
123
|
|
|
123
124
|
if (this.waitingMap.has(id)) {
|
|
124
|
-
throw new
|
|
125
|
+
throw new KeplrError("interaction", 100, "Id is aleady in use");
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
this.waitingMap.set(id, interactionWaitingData);
|
package/src/keyring/crypto.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Hash, RNG } from "@keplr-wallet/crypto";
|
|
|
9
9
|
import pbkdf2 from "pbkdf2";
|
|
10
10
|
|
|
11
11
|
import { Buffer } from "buffer/";
|
|
12
|
+
import { KeplrError } from "@keplr-wallet/router";
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* This is similar to ethereum's key store.
|
|
@@ -84,7 +85,7 @@ export class Crypto {
|
|
|
84
85
|
);
|
|
85
86
|
});
|
|
86
87
|
default:
|
|
87
|
-
throw new
|
|
88
|
+
throw new KeplrError("keyring", 220, "Unknown kdf");
|
|
88
89
|
}
|
|
89
90
|
})();
|
|
90
91
|
const buf = Buffer.from(text);
|
|
@@ -153,7 +154,7 @@ export class Crypto {
|
|
|
153
154
|
);
|
|
154
155
|
});
|
|
155
156
|
default:
|
|
156
|
-
throw new
|
|
157
|
+
throw new KeplrError("keyring", 220, "Unknown kdf");
|
|
157
158
|
}
|
|
158
159
|
})();
|
|
159
160
|
|
|
@@ -168,7 +169,7 @@ export class Crypto {
|
|
|
168
169
|
])
|
|
169
170
|
);
|
|
170
171
|
if (!Buffer.from(mac).equals(Buffer.from(keyStore.crypto.mac, "hex"))) {
|
|
171
|
-
throw new
|
|
172
|
+
throw new KeplrError("keyring", 222, "Unmatched mac");
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
return Buffer.from(
|
package/src/keyring/handler.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Env,
|
|
3
|
+
Handler,
|
|
4
|
+
InternalHandler,
|
|
5
|
+
KeplrError,
|
|
6
|
+
Message,
|
|
7
|
+
} from "@keplr-wallet/router";
|
|
2
8
|
import {
|
|
3
9
|
CreateMnemonicKeyMsg,
|
|
4
10
|
CreatePrivateKeyMsg,
|
|
@@ -110,7 +116,7 @@ export const getHandler: (service: KeyRingService) => Handler = (
|
|
|
110
116
|
msg as ExportKeyRingDatasMsg
|
|
111
117
|
);
|
|
112
118
|
default:
|
|
113
|
-
throw new
|
|
119
|
+
throw new KeplrError("keyring", 221, "Unknown msg type");
|
|
114
120
|
}
|
|
115
121
|
};
|
|
116
122
|
};
|