@keplr-wallet/provider 0.12.0-alpha.0 → 0.12.0-alpha.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/LICENSE +8 -2
- package/build/core-types.d.ts +3 -0
- package/build/core-types.js +3 -0
- package/build/core-types.js.map +1 -0
- package/build/core.d.ts +26 -13
- package/build/core.js +136 -94
- package/build/core.js.map +1 -1
- package/build/cosmjs.d.ts +3 -9
- package/build/cosmjs.js +0 -2
- package/build/cosmjs.js.map +1 -1
- package/build/enigma.d.ts +1 -2
- package/build/enigma.js.map +1 -1
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/build/inject.d.ts +27 -11
- package/build/inject.js +126 -21
- package/build/inject.js.map +1 -1
- package/package.json +6 -10
- package/src/core-types.ts +3 -0
- package/src/core.ts +295 -160
- package/src/cosmjs.ts +10 -12
- package/src/enigma.ts +1 -2
- package/src/inject.ts +166 -18
- package/build/types/index.d.ts +0 -1
- package/build/types/index.js +0 -14
- package/build/types/index.js.map +0 -1
- package/build/types/msgs.d.ts +0 -150
- package/build/types/msgs.js +0 -390
- package/build/types/msgs.js.map +0 -1
- package/src/types/index.ts +0 -1
- package/src/types/msgs.ts +0 -493
package/build/types/msgs.js
DELETED
@@ -1,390 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GetTxEncryptionKeyMsg = exports.RequestDecryptMsg = exports.ReqeustEncryptMsg = exports.GetPubkeyMsg = exports.RequestSignDirectMsg = exports.RequestVerifyADR36AminoSignDoc = exports.RequestSignAminoMsg = exports.GetSecret20ViewingKey = exports.SendTxMsg = exports.SuggestTokenMsg = exports.SuggestChainInfoMsg = exports.GetKeyMsg = exports.EnableAccessMsg = void 0;
|
4
|
-
const router_1 = require("@keplr-wallet/router");
|
5
|
-
class EnableAccessMsg extends router_1.Message {
|
6
|
-
constructor(chainIds) {
|
7
|
-
super();
|
8
|
-
this.chainIds = chainIds;
|
9
|
-
}
|
10
|
-
static type() {
|
11
|
-
return "enable-access";
|
12
|
-
}
|
13
|
-
validateBasic() {
|
14
|
-
if (!this.chainIds || this.chainIds.length === 0) {
|
15
|
-
throw new Error("chain id not set");
|
16
|
-
}
|
17
|
-
}
|
18
|
-
route() {
|
19
|
-
return "permission";
|
20
|
-
}
|
21
|
-
type() {
|
22
|
-
return EnableAccessMsg.type();
|
23
|
-
}
|
24
|
-
}
|
25
|
-
exports.EnableAccessMsg = EnableAccessMsg;
|
26
|
-
class GetKeyMsg extends router_1.Message {
|
27
|
-
constructor(chainId) {
|
28
|
-
super();
|
29
|
-
this.chainId = chainId;
|
30
|
-
}
|
31
|
-
static type() {
|
32
|
-
return "get-key";
|
33
|
-
}
|
34
|
-
validateBasic() {
|
35
|
-
if (!this.chainId) {
|
36
|
-
throw new Error("chain id not set");
|
37
|
-
}
|
38
|
-
}
|
39
|
-
route() {
|
40
|
-
return "keyring";
|
41
|
-
}
|
42
|
-
type() {
|
43
|
-
return GetKeyMsg.type();
|
44
|
-
}
|
45
|
-
}
|
46
|
-
exports.GetKeyMsg = GetKeyMsg;
|
47
|
-
class SuggestChainInfoMsg extends router_1.Message {
|
48
|
-
constructor(chainInfo) {
|
49
|
-
super();
|
50
|
-
this.chainInfo = chainInfo;
|
51
|
-
}
|
52
|
-
static type() {
|
53
|
-
return "suggest-chain-info";
|
54
|
-
}
|
55
|
-
validateBasic() {
|
56
|
-
if (!this.chainInfo) {
|
57
|
-
throw new Error("chain info not set");
|
58
|
-
}
|
59
|
-
}
|
60
|
-
route() {
|
61
|
-
return "chains";
|
62
|
-
}
|
63
|
-
type() {
|
64
|
-
return SuggestChainInfoMsg.type();
|
65
|
-
}
|
66
|
-
}
|
67
|
-
exports.SuggestChainInfoMsg = SuggestChainInfoMsg;
|
68
|
-
class SuggestTokenMsg extends router_1.Message {
|
69
|
-
constructor(chainId, contractAddress, viewingKey) {
|
70
|
-
super();
|
71
|
-
this.chainId = chainId;
|
72
|
-
this.contractAddress = contractAddress;
|
73
|
-
this.viewingKey = viewingKey;
|
74
|
-
}
|
75
|
-
static type() {
|
76
|
-
return "suggest-token";
|
77
|
-
}
|
78
|
-
validateBasic() {
|
79
|
-
if (!this.chainId) {
|
80
|
-
throw new Error("Chain id is empty");
|
81
|
-
}
|
82
|
-
if (!this.contractAddress) {
|
83
|
-
throw new Error("Contract address is empty");
|
84
|
-
}
|
85
|
-
}
|
86
|
-
route() {
|
87
|
-
return "tokens";
|
88
|
-
}
|
89
|
-
type() {
|
90
|
-
return SuggestTokenMsg.type();
|
91
|
-
}
|
92
|
-
}
|
93
|
-
exports.SuggestTokenMsg = SuggestTokenMsg;
|
94
|
-
// Return the tx hash
|
95
|
-
class SendTxMsg extends router_1.Message {
|
96
|
-
constructor(chainId, tx, mode) {
|
97
|
-
super();
|
98
|
-
this.chainId = chainId;
|
99
|
-
this.tx = tx;
|
100
|
-
this.mode = mode;
|
101
|
-
}
|
102
|
-
static type() {
|
103
|
-
return "send-tx-to-background";
|
104
|
-
}
|
105
|
-
validateBasic() {
|
106
|
-
if (!this.chainId) {
|
107
|
-
throw new Error("chain id is empty");
|
108
|
-
}
|
109
|
-
if (!this.tx) {
|
110
|
-
throw new Error("tx is empty");
|
111
|
-
}
|
112
|
-
if (!this.mode ||
|
113
|
-
(this.mode !== "sync" && this.mode !== "async" && this.mode !== "block")) {
|
114
|
-
throw new Error("invalid mode");
|
115
|
-
}
|
116
|
-
}
|
117
|
-
route() {
|
118
|
-
return "background-tx";
|
119
|
-
}
|
120
|
-
type() {
|
121
|
-
return SendTxMsg.type();
|
122
|
-
}
|
123
|
-
}
|
124
|
-
exports.SendTxMsg = SendTxMsg;
|
125
|
-
class GetSecret20ViewingKey extends router_1.Message {
|
126
|
-
constructor(chainId, contractAddress) {
|
127
|
-
super();
|
128
|
-
this.chainId = chainId;
|
129
|
-
this.contractAddress = contractAddress;
|
130
|
-
}
|
131
|
-
static type() {
|
132
|
-
return "get-secret20-viewing-key";
|
133
|
-
}
|
134
|
-
validateBasic() {
|
135
|
-
if (!this.chainId) {
|
136
|
-
throw new Error("Chain id is empty");
|
137
|
-
}
|
138
|
-
if (!this.contractAddress) {
|
139
|
-
throw new Error("Contract address is empty");
|
140
|
-
}
|
141
|
-
}
|
142
|
-
route() {
|
143
|
-
return "tokens";
|
144
|
-
}
|
145
|
-
type() {
|
146
|
-
return GetSecret20ViewingKey.type();
|
147
|
-
}
|
148
|
-
}
|
149
|
-
exports.GetSecret20ViewingKey = GetSecret20ViewingKey;
|
150
|
-
class RequestSignAminoMsg extends router_1.Message {
|
151
|
-
constructor(chainId, signer, signDoc, signOptions = {}) {
|
152
|
-
super();
|
153
|
-
this.chainId = chainId;
|
154
|
-
this.signer = signer;
|
155
|
-
this.signDoc = signDoc;
|
156
|
-
this.signOptions = signOptions;
|
157
|
-
}
|
158
|
-
static type() {
|
159
|
-
return "request-sign-amino";
|
160
|
-
}
|
161
|
-
validateBasic() {
|
162
|
-
if (!this.chainId) {
|
163
|
-
throw new Error("chain id not set");
|
164
|
-
}
|
165
|
-
if (!this.signer) {
|
166
|
-
throw new Error("signer not set");
|
167
|
-
}
|
168
|
-
// It is not important to check this on the client side as opposed to increasing the bundle size.
|
169
|
-
// Validate bech32 address.
|
170
|
-
// Bech32Address.validate(this.signer);
|
171
|
-
const signDoc = this.signDoc;
|
172
|
-
// Check that the sign doc is for ADR-36,
|
173
|
-
// the validation should be performed on the background.
|
174
|
-
const hasOnlyMsgSignData = (() => {
|
175
|
-
if (signDoc &&
|
176
|
-
signDoc.msgs &&
|
177
|
-
Array.isArray(signDoc.msgs) &&
|
178
|
-
signDoc.msgs.length === 1) {
|
179
|
-
const msg = signDoc.msgs[0];
|
180
|
-
return msg.type === "sign/MsgSignData";
|
181
|
-
}
|
182
|
-
else {
|
183
|
-
return false;
|
184
|
-
}
|
185
|
-
})();
|
186
|
-
// If the sign doc is expected to be for ADR-36,
|
187
|
-
// it doesn't have to have the chain id in the sign doc.
|
188
|
-
if (!hasOnlyMsgSignData && signDoc.chain_id !== this.chainId) {
|
189
|
-
throw new Error("Chain id in the message is not matched with the requested chain id");
|
190
|
-
}
|
191
|
-
if (!this.signOptions) {
|
192
|
-
throw new Error("Sign options are null");
|
193
|
-
}
|
194
|
-
}
|
195
|
-
route() {
|
196
|
-
return "keyring";
|
197
|
-
}
|
198
|
-
type() {
|
199
|
-
return RequestSignAminoMsg.type();
|
200
|
-
}
|
201
|
-
}
|
202
|
-
exports.RequestSignAminoMsg = RequestSignAminoMsg;
|
203
|
-
class RequestVerifyADR36AminoSignDoc extends router_1.Message {
|
204
|
-
constructor(chainId, signer, data, signature) {
|
205
|
-
super();
|
206
|
-
this.chainId = chainId;
|
207
|
-
this.signer = signer;
|
208
|
-
this.data = data;
|
209
|
-
this.signature = signature;
|
210
|
-
}
|
211
|
-
static type() {
|
212
|
-
return "request-verify-adr-36-amino-doc";
|
213
|
-
}
|
214
|
-
validateBasic() {
|
215
|
-
if (!this.chainId) {
|
216
|
-
throw new Error("chain id not set");
|
217
|
-
}
|
218
|
-
if (!this.signer) {
|
219
|
-
throw new Error("signer not set");
|
220
|
-
}
|
221
|
-
if (!this.signature) {
|
222
|
-
throw new Error("Signature not set");
|
223
|
-
}
|
224
|
-
// It is not important to check this on the client side as opposed to increasing the bundle size.
|
225
|
-
// Validate bech32 address.
|
226
|
-
// Bech32Address.validate(this.signer);
|
227
|
-
}
|
228
|
-
route() {
|
229
|
-
return "keyring";
|
230
|
-
}
|
231
|
-
type() {
|
232
|
-
return RequestVerifyADR36AminoSignDoc.type();
|
233
|
-
}
|
234
|
-
}
|
235
|
-
exports.RequestVerifyADR36AminoSignDoc = RequestVerifyADR36AminoSignDoc;
|
236
|
-
class RequestSignDirectMsg extends router_1.Message {
|
237
|
-
constructor(chainId, signer, signDoc, signOptions = {}) {
|
238
|
-
super();
|
239
|
-
this.chainId = chainId;
|
240
|
-
this.signer = signer;
|
241
|
-
this.signDoc = signDoc;
|
242
|
-
this.signOptions = signOptions;
|
243
|
-
}
|
244
|
-
static type() {
|
245
|
-
return "request-sign-direct";
|
246
|
-
}
|
247
|
-
validateBasic() {
|
248
|
-
if (!this.chainId) {
|
249
|
-
throw new Error("chain id not set");
|
250
|
-
}
|
251
|
-
if (!this.signer) {
|
252
|
-
throw new Error("signer not set");
|
253
|
-
}
|
254
|
-
// It is not important to check this on the client side as opposed to increasing the bundle size.
|
255
|
-
// Validate bech32 address.
|
256
|
-
// Bech32Address.validate(this.signer);
|
257
|
-
// const signDoc = cosmos.tx.v1beta1.SignDoc.create({
|
258
|
-
// bodyBytes: this.signDoc.bodyBytes,
|
259
|
-
// authInfoBytes: this.signDoc.authInfoBytes,
|
260
|
-
// chainId: this.signDoc.chainId,
|
261
|
-
// accountNumber: this.signDoc.accountNumber
|
262
|
-
// ? Long.fromString(this.signDoc.accountNumber)
|
263
|
-
// : undefined,
|
264
|
-
// });
|
265
|
-
//
|
266
|
-
// if (signDoc.chainId !== this.chainId) {
|
267
|
-
// throw new Error(
|
268
|
-
// "Chain id in the message is not matched with the requested chain id"
|
269
|
-
// );
|
270
|
-
// }
|
271
|
-
if (!this.signOptions) {
|
272
|
-
throw new Error("Sign options are null");
|
273
|
-
}
|
274
|
-
}
|
275
|
-
route() {
|
276
|
-
return "keyring";
|
277
|
-
}
|
278
|
-
type() {
|
279
|
-
return RequestSignDirectMsg.type();
|
280
|
-
}
|
281
|
-
}
|
282
|
-
exports.RequestSignDirectMsg = RequestSignDirectMsg;
|
283
|
-
class GetPubkeyMsg extends router_1.Message {
|
284
|
-
constructor(chainId) {
|
285
|
-
super();
|
286
|
-
this.chainId = chainId;
|
287
|
-
}
|
288
|
-
static type() {
|
289
|
-
return "get-pubkey-msg";
|
290
|
-
}
|
291
|
-
validateBasic() {
|
292
|
-
if (!this.chainId) {
|
293
|
-
throw new Error("chain id not set");
|
294
|
-
}
|
295
|
-
}
|
296
|
-
route() {
|
297
|
-
return "secret-wasm";
|
298
|
-
}
|
299
|
-
type() {
|
300
|
-
return GetPubkeyMsg.type();
|
301
|
-
}
|
302
|
-
}
|
303
|
-
exports.GetPubkeyMsg = GetPubkeyMsg;
|
304
|
-
class ReqeustEncryptMsg extends router_1.Message {
|
305
|
-
constructor(chainId, contractCodeHash,
|
306
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
307
|
-
msg) {
|
308
|
-
super();
|
309
|
-
this.chainId = chainId;
|
310
|
-
this.contractCodeHash = contractCodeHash;
|
311
|
-
this.msg = msg;
|
312
|
-
}
|
313
|
-
static type() {
|
314
|
-
return "request-encrypt-msg";
|
315
|
-
}
|
316
|
-
validateBasic() {
|
317
|
-
if (!this.chainId) {
|
318
|
-
throw new Error("chain id not set");
|
319
|
-
}
|
320
|
-
if (!this.contractCodeHash) {
|
321
|
-
throw new Error("contract code hash not set");
|
322
|
-
}
|
323
|
-
if (!this.msg) {
|
324
|
-
throw new Error("msg not set");
|
325
|
-
}
|
326
|
-
}
|
327
|
-
route() {
|
328
|
-
return "secret-wasm";
|
329
|
-
}
|
330
|
-
type() {
|
331
|
-
return ReqeustEncryptMsg.type();
|
332
|
-
}
|
333
|
-
}
|
334
|
-
exports.ReqeustEncryptMsg = ReqeustEncryptMsg;
|
335
|
-
class RequestDecryptMsg extends router_1.Message {
|
336
|
-
constructor(chainId, cipherText, nonce) {
|
337
|
-
super();
|
338
|
-
this.chainId = chainId;
|
339
|
-
this.cipherText = cipherText;
|
340
|
-
this.nonce = nonce;
|
341
|
-
}
|
342
|
-
static type() {
|
343
|
-
return "request-decrypt-msg";
|
344
|
-
}
|
345
|
-
validateBasic() {
|
346
|
-
if (!this.chainId) {
|
347
|
-
throw new Error("chain id not set");
|
348
|
-
}
|
349
|
-
if (!this.cipherText || this.cipherText.length === 0) {
|
350
|
-
throw new Error("ciphertext not set");
|
351
|
-
}
|
352
|
-
if (!this.nonce || this.nonce.length === 0) {
|
353
|
-
throw new Error("nonce not set");
|
354
|
-
}
|
355
|
-
}
|
356
|
-
route() {
|
357
|
-
return "secret-wasm";
|
358
|
-
}
|
359
|
-
type() {
|
360
|
-
return RequestDecryptMsg.type();
|
361
|
-
}
|
362
|
-
}
|
363
|
-
exports.RequestDecryptMsg = RequestDecryptMsg;
|
364
|
-
class GetTxEncryptionKeyMsg extends router_1.Message {
|
365
|
-
constructor(chainId, nonce) {
|
366
|
-
super();
|
367
|
-
this.chainId = chainId;
|
368
|
-
this.nonce = nonce;
|
369
|
-
}
|
370
|
-
static type() {
|
371
|
-
return "get-tx-encryption-key-msg";
|
372
|
-
}
|
373
|
-
validateBasic() {
|
374
|
-
if (!this.chainId) {
|
375
|
-
throw new Error("chain id not set");
|
376
|
-
}
|
377
|
-
if (!this.nonce) {
|
378
|
-
// Nonce of zero length is permitted.
|
379
|
-
throw new Error("nonce is null");
|
380
|
-
}
|
381
|
-
}
|
382
|
-
route() {
|
383
|
-
return "secret-wasm";
|
384
|
-
}
|
385
|
-
type() {
|
386
|
-
return GetTxEncryptionKeyMsg.type();
|
387
|
-
}
|
388
|
-
}
|
389
|
-
exports.GetTxEncryptionKeyMsg = GetTxEncryptionKeyMsg;
|
390
|
-
//# sourceMappingURL=msgs.js.map
|
package/build/types/msgs.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"msgs.js","sourceRoot":"","sources":["../../src/types/msgs.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAS/C,MAAa,eAAgB,SAAQ,gBAAa;IAKhD,YAA4B,QAAkB;QAC5C,KAAK,EAAE,CAAC;QADkB,aAAQ,GAAR,QAAQ,CAAU;IAE9C,CAAC;IANM,MAAM,CAAC,IAAI;QAChB,OAAO,eAAe,CAAC;IACzB,CAAC;IAMD,aAAa;QACX,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YAChD,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;SACrC;IACH,CAAC;IAED,KAAK;QACH,OAAO,Y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