@keplr-wallet/provider 0.11.64 → 0.12.0-alpha.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/build/core.d.ts +4 -5
- package/build/core.js +114 -92
- package/build/core.js.map +1 -1
- package/build/cosmjs.d.ts +0 -2
- package/build/cosmjs.js +0 -2
- package/build/cosmjs.js.map +1 -1
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/build/inject.d.ts +2 -1
- package/build/inject.js +60 -54
- package/build/inject.js.map +1 -1
- package/package.json +5 -5
- package/src/core.ts +236 -152
- package/src/cosmjs.ts +3 -5
- package/src/inject.ts +7 -1
- 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 -230
- package/build/types/msgs.js +0 -549
- package/build/types/msgs.js.map +0 -1
- package/src/types/index.ts +0 -1
- package/src/types/msgs.ts +0 -709
package/build/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainInfo, EthSignType, Keplr as IKeplr, KeplrIntereactionOptions, KeplrMode, KeplrSignOptions, Key, BroadcastMode, AminoSignResponse, StdSignDoc, StdTx, OfflineAminoSigner, StdSignature, DirectSignResponse, OfflineDirectSigner, ICNSAdr36Signatures, ChainInfoWithoutEndpoints, SecretUtils } from "@keplr-wallet/types";
|
|
1
|
+
import { ChainInfo, EthSignType, Keplr as IKeplr, KeplrIntereactionOptions, KeplrMode, KeplrSignOptions, Key, BroadcastMode, AminoSignResponse, StdSignDoc, StdTx, OfflineAminoSigner, StdSignature, DirectSignResponse, OfflineDirectSigner, ICNSAdr36Signatures, ChainInfoWithoutEndpoints, SecretUtils, SettledResponses } from "@keplr-wallet/types";
|
|
2
2
|
import { MessageRequester } from "@keplr-wallet/router";
|
|
3
3
|
import Long from "long";
|
|
4
4
|
import { KeplrCoreTypes } from "./core-types";
|
|
@@ -19,6 +19,7 @@ export declare class Keplr implements IKeplr, KeplrCoreTypes {
|
|
|
19
19
|
};
|
|
20
20
|
}): Promise<void>;
|
|
21
21
|
getKey(chainId: string): Promise<Key>;
|
|
22
|
+
getKeysSettled(chainIds: string[]): Promise<SettledResponses<Key>>;
|
|
22
23
|
getChainInfosWithoutEndpoints(): Promise<ChainInfoWithoutEndpoints[]>;
|
|
23
24
|
sendTx(chainId: string, tx: StdTx | Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
|
|
24
25
|
signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
|
|
@@ -30,7 +31,7 @@ export declare class Keplr implements IKeplr, KeplrCoreTypes {
|
|
|
30
31
|
}, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
|
|
31
32
|
signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
|
|
32
33
|
verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise<boolean>;
|
|
33
|
-
signEthereum(
|
|
34
|
+
signEthereum(_chainId: string, _signer: string, _data: string | Uint8Array, _type: EthSignType): Promise<Uint8Array>;
|
|
34
35
|
signICNSAdr36(chainId: string, contractAddress: string, owner: string, username: string, addressChainIds: string[]): Promise<ICNSAdr36Signatures>;
|
|
35
36
|
getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
|
|
36
37
|
getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
|
|
@@ -40,7 +41,7 @@ export declare class Keplr implements IKeplr, KeplrCoreTypes {
|
|
|
40
41
|
getEnigmaPubKey(chainId: string): Promise<Uint8Array>;
|
|
41
42
|
getEnigmaTxEncryptionKey(chainId: string, nonce: Uint8Array): Promise<Uint8Array>;
|
|
42
43
|
enigmaEncrypt(chainId: string, contractCodeHash: string, msg: object): Promise<Uint8Array>;
|
|
43
|
-
enigmaDecrypt(chainId: string,
|
|
44
|
+
enigmaDecrypt(chainId: string, cipherText: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>;
|
|
44
45
|
getEnigmaUtils(chainId: string): SecretUtils;
|
|
45
46
|
experimentalSignEIP712CosmosTx_v0(chainId: string, signer: string, eip712: {
|
|
46
47
|
types: Record<string, {
|
|
@@ -50,8 +51,6 @@ export declare class Keplr implements IKeplr, KeplrCoreTypes {
|
|
|
50
51
|
domain: Record<string, any>;
|
|
51
52
|
primaryType: string;
|
|
52
53
|
}, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
|
|
53
|
-
protected getDataForADR36(data: string | Uint8Array): [string, boolean];
|
|
54
|
-
protected getADR36SignDoc(signer: string, data: string): StdSignDoc;
|
|
55
54
|
__core__getAnalyticsId(): Promise<string>;
|
|
56
55
|
changeKeyRingName({ defaultName, editable, }: {
|
|
57
56
|
defaultName: string;
|
package/build/core.js
CHANGED
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Keplr = void 0;
|
|
16
16
|
const router_1 = require("@keplr-wallet/router");
|
|
17
|
-
const types_1 = require("./types");
|
|
18
17
|
const enigma_1 = require("./enigma");
|
|
19
18
|
const cosmjs_1 = require("./cosmjs");
|
|
20
19
|
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
@@ -33,7 +32,9 @@ class Keplr {
|
|
|
33
32
|
if (typeof chainIds === "string") {
|
|
34
33
|
chainIds = [chainIds];
|
|
35
34
|
}
|
|
36
|
-
yield this.requester
|
|
35
|
+
yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "permission-interactive", "enable-access", {
|
|
36
|
+
chainIds,
|
|
37
|
+
});
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
40
|
disable(chainIds) {
|
|
@@ -41,7 +42,9 @@ class Keplr {
|
|
|
41
42
|
if (typeof chainIds === "string") {
|
|
42
43
|
chainIds = [chainIds];
|
|
43
44
|
}
|
|
44
|
-
yield this.requester
|
|
45
|
+
yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "permission-interactive", "disable-access", {
|
|
46
|
+
chainIds: chainIds !== null && chainIds !== void 0 ? chainIds : [],
|
|
47
|
+
});
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
experimentalSuggestChain(chainInfo) {
|
|
@@ -58,47 +61,70 @@ class Keplr {
|
|
|
58
61
|
delete chainInfo.gasPriceStep;
|
|
59
62
|
console.warn("The `gasPriceStep` field of the `ChainInfo` has been moved under `feeCurrencies`. This is automatically handled as of right now, but the upcoming update would potentially cause errors.");
|
|
60
63
|
}
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
if (chainInfo.coinType) {
|
|
65
|
+
console.warn("The `coinType` field of the `ChainInfo` is removed. This is automatically handled as of right now, but the upcoming update would potentially cause errors.");
|
|
66
|
+
delete chainInfo.coinType;
|
|
67
|
+
}
|
|
68
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "chains", "suggest-chain-info", {
|
|
69
|
+
chainInfo,
|
|
70
|
+
});
|
|
63
71
|
});
|
|
64
72
|
}
|
|
65
73
|
getKey(chainId) {
|
|
66
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "get-cosmos-key", {
|
|
76
|
+
chainId,
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
getKeysSettled(chainIds) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "get-cosmos-keys-settled", {
|
|
83
|
+
chainIds,
|
|
84
|
+
});
|
|
69
85
|
});
|
|
70
86
|
}
|
|
71
87
|
getChainInfosWithoutEndpoints() {
|
|
72
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
|
|
74
|
-
return (yield this.requester.sendMessage(router_1.BACKGROUND_PORT, msg)).chainInfos;
|
|
89
|
+
return (yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "chains", "get-chain-infos-without-endpoints", {})).chainInfos;
|
|
75
90
|
});
|
|
76
91
|
}
|
|
77
92
|
sendTx(chainId, tx, mode) {
|
|
78
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
|
|
80
|
-
|
|
94
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "background-tx", "send-tx-to-background", {
|
|
95
|
+
chainId,
|
|
96
|
+
tx,
|
|
97
|
+
mode,
|
|
98
|
+
});
|
|
81
99
|
});
|
|
82
100
|
}
|
|
83
101
|
signAmino(chainId, signer, signDoc, signOptions = {}) {
|
|
84
102
|
var _a;
|
|
85
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
|
|
87
|
-
|
|
104
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "request-cosmos-sign-amino", {
|
|
105
|
+
chainId,
|
|
106
|
+
signer,
|
|
107
|
+
signDoc,
|
|
108
|
+
signOptions: (0, deepmerge_1.default)((_a = this.defaultOptions.sign) !== null && _a !== void 0 ? _a : {}, signOptions),
|
|
109
|
+
});
|
|
88
110
|
});
|
|
89
111
|
}
|
|
90
112
|
signDirect(chainId, signer, signDoc, signOptions = {}) {
|
|
91
113
|
var _a;
|
|
92
114
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:
|
|
100
|
-
|
|
101
|
-
|
|
115
|
+
const response = yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "request-cosmos-sign-direct", {
|
|
116
|
+
chainId,
|
|
117
|
+
signer,
|
|
118
|
+
signDoc: {
|
|
119
|
+
bodyBytes: signDoc.bodyBytes,
|
|
120
|
+
authInfoBytes: signDoc.authInfoBytes,
|
|
121
|
+
chainId: signDoc.chainId,
|
|
122
|
+
accountNumber: signDoc.accountNumber
|
|
123
|
+
? signDoc.accountNumber.toString()
|
|
124
|
+
: null,
|
|
125
|
+
},
|
|
126
|
+
signOptions: (0, deepmerge_1.default)((_a = this.defaultOptions.sign) !== null && _a !== void 0 ? _a : {}, signOptions),
|
|
127
|
+
});
|
|
102
128
|
return {
|
|
103
129
|
signed: {
|
|
104
130
|
bodyBytes: response.signed.bodyBytes,
|
|
@@ -112,13 +138,14 @@ class Keplr {
|
|
|
112
138
|
}
|
|
113
139
|
signArbitrary(chainId, signer, data) {
|
|
114
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
141
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "request-cosmos-sign-amino-adr-36", {
|
|
142
|
+
chainId,
|
|
143
|
+
signer,
|
|
144
|
+
data: typeof data === "string" ? buffer_1.Buffer.from(data) : data,
|
|
145
|
+
signOptions: {
|
|
146
|
+
isADR36WithString: typeof data === "string",
|
|
147
|
+
},
|
|
120
148
|
});
|
|
121
|
-
return (yield this.requester.sendMessage(router_1.BACKGROUND_PORT, msg)).signature;
|
|
122
149
|
});
|
|
123
150
|
}
|
|
124
151
|
verifyArbitrary(chainId, signer, data, signature) {
|
|
@@ -126,28 +153,29 @@ class Keplr {
|
|
|
126
153
|
if (typeof data === "string") {
|
|
127
154
|
data = buffer_1.Buffer.from(data);
|
|
128
155
|
}
|
|
129
|
-
return yield this.requester
|
|
156
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "verify-cosmos-sign-amino-adr-36", {
|
|
157
|
+
chainId,
|
|
158
|
+
signer,
|
|
159
|
+
data,
|
|
160
|
+
signature,
|
|
161
|
+
});
|
|
130
162
|
});
|
|
131
163
|
}
|
|
132
|
-
signEthereum(
|
|
164
|
+
signEthereum(_chainId, _signer, _data, _type) {
|
|
133
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
|
|
135
|
-
[data, isADR36WithString] = this.getDataForADR36(data);
|
|
136
|
-
const signDoc = this.getADR36SignDoc(signer, data);
|
|
137
|
-
if (data === "") {
|
|
138
|
-
throw new Error("Signing empty data is not supported.");
|
|
139
|
-
}
|
|
140
|
-
const msg = new types_1.RequestSignAminoMsg(chainId, signer, signDoc, {
|
|
141
|
-
isADR36WithString,
|
|
142
|
-
ethSignType: type,
|
|
143
|
-
});
|
|
144
|
-
const signature = (yield this.requester.sendMessage(router_1.BACKGROUND_PORT, msg))
|
|
145
|
-
.signature;
|
|
146
|
-
return buffer_1.Buffer.from(signature.signature, "base64");
|
|
166
|
+
throw new Error("TODO");
|
|
147
167
|
});
|
|
148
168
|
}
|
|
149
169
|
signICNSAdr36(chainId, contractAddress, owner, username, addressChainIds) {
|
|
150
|
-
return this
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "request-icns-adr-36-signatures-v2", {
|
|
172
|
+
chainId,
|
|
173
|
+
contractAddress,
|
|
174
|
+
owner,
|
|
175
|
+
username,
|
|
176
|
+
addressChainIds,
|
|
177
|
+
});
|
|
178
|
+
});
|
|
151
179
|
}
|
|
152
180
|
getOfflineSigner(chainId) {
|
|
153
181
|
return new cosmjs_1.CosmJSOfflineSigner(chainId, this);
|
|
@@ -166,39 +194,57 @@ class Keplr {
|
|
|
166
194
|
}
|
|
167
195
|
suggestToken(chainId, contractAddress, viewingKey) {
|
|
168
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
-
|
|
170
|
-
|
|
197
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "token-cw20", "SuggestTokenMsg", {
|
|
198
|
+
chainId,
|
|
199
|
+
contractAddress,
|
|
200
|
+
viewingKey,
|
|
201
|
+
});
|
|
171
202
|
});
|
|
172
203
|
}
|
|
173
204
|
getSecret20ViewingKey(chainId, contractAddress) {
|
|
174
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
-
|
|
176
|
-
|
|
206
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "token-cw20", "get-secret20-viewing-key", {
|
|
207
|
+
chainId,
|
|
208
|
+
contractAddress,
|
|
209
|
+
});
|
|
177
210
|
});
|
|
178
211
|
}
|
|
179
212
|
getEnigmaPubKey(chainId) {
|
|
180
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
return yield this.requester
|
|
214
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "secret-wasm", "get-pubkey-msg", {
|
|
215
|
+
chainId,
|
|
216
|
+
});
|
|
182
217
|
});
|
|
183
218
|
}
|
|
184
219
|
getEnigmaTxEncryptionKey(chainId, nonce) {
|
|
185
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
-
return yield this.requester
|
|
221
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "secret-wasm", "get-tx-encryption-key-msg", {
|
|
222
|
+
chainId,
|
|
223
|
+
nonce,
|
|
224
|
+
});
|
|
187
225
|
});
|
|
188
226
|
}
|
|
189
227
|
enigmaEncrypt(chainId, contractCodeHash,
|
|
190
228
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
191
229
|
msg) {
|
|
192
230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
-
return yield this.requester
|
|
231
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "secret-wasm", "request-encrypt-msg", {
|
|
232
|
+
chainId,
|
|
233
|
+
contractCodeHash,
|
|
234
|
+
msg,
|
|
235
|
+
});
|
|
194
236
|
});
|
|
195
237
|
}
|
|
196
|
-
enigmaDecrypt(chainId,
|
|
238
|
+
enigmaDecrypt(chainId, cipherText, nonce) {
|
|
197
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
-
if (!
|
|
240
|
+
if (!cipherText || cipherText.length === 0) {
|
|
199
241
|
return new Uint8Array();
|
|
200
242
|
}
|
|
201
|
-
return yield this.requester
|
|
243
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "secret-wasm", "request-decrypt-msg", {
|
|
244
|
+
chainId,
|
|
245
|
+
cipherText,
|
|
246
|
+
nonce,
|
|
247
|
+
});
|
|
202
248
|
});
|
|
203
249
|
}
|
|
204
250
|
getEnigmaUtils(chainId) {
|
|
@@ -213,50 +259,26 @@ class Keplr {
|
|
|
213
259
|
experimentalSignEIP712CosmosTx_v0(chainId, signer, eip712, signDoc, signOptions = {}) {
|
|
214
260
|
var _a;
|
|
215
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
-
|
|
217
|
-
|
|
262
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-cosmos", "request-sign-eip-712-cosmos-tx-v0", {
|
|
263
|
+
chainId,
|
|
264
|
+
signer,
|
|
265
|
+
eip712,
|
|
266
|
+
signDoc,
|
|
267
|
+
signOptions: (0, deepmerge_1.default)((_a = this.defaultOptions.sign) !== null && _a !== void 0 ? _a : {}, signOptions),
|
|
268
|
+
});
|
|
218
269
|
});
|
|
219
270
|
}
|
|
220
|
-
getDataForADR36(data) {
|
|
221
|
-
let isADR36WithString = false;
|
|
222
|
-
if (typeof data === "string") {
|
|
223
|
-
data = buffer_1.Buffer.from(data).toString("base64");
|
|
224
|
-
isADR36WithString = true;
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
data = buffer_1.Buffer.from(data).toString("base64");
|
|
228
|
-
}
|
|
229
|
-
return [data, isADR36WithString];
|
|
230
|
-
}
|
|
231
|
-
getADR36SignDoc(signer, data) {
|
|
232
|
-
return {
|
|
233
|
-
chain_id: "",
|
|
234
|
-
account_number: "0",
|
|
235
|
-
sequence: "0",
|
|
236
|
-
fee: {
|
|
237
|
-
gas: "0",
|
|
238
|
-
amount: [],
|
|
239
|
-
},
|
|
240
|
-
msgs: [
|
|
241
|
-
{
|
|
242
|
-
type: "sign/MsgSignData",
|
|
243
|
-
value: {
|
|
244
|
-
signer,
|
|
245
|
-
data,
|
|
246
|
-
},
|
|
247
|
-
},
|
|
248
|
-
],
|
|
249
|
-
memo: "",
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
271
|
__core__getAnalyticsId() {
|
|
253
|
-
|
|
254
|
-
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "analytics", "get-analytics-id", {});
|
|
274
|
+
});
|
|
255
275
|
}
|
|
256
276
|
changeKeyRingName({ defaultName, editable = true, }) {
|
|
257
277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
-
|
|
259
|
-
|
|
278
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-v2", "change-keyring-name-interactive", {
|
|
279
|
+
defaultName,
|
|
280
|
+
editable,
|
|
281
|
+
});
|
|
260
282
|
});
|
|
261
283
|
}
|
|
262
284
|
}
|
package/build/core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqBA,iDAI8B;AAE9B,qCAA4C;AAE5C,qCAA6E;AAC7E,0DAAkC;AAClC,gDAAwB;AACxB,oCAA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,CAAC;KAAA;IAEK,iBAAiB,CAAC,EACtB,WAAW,EACX,QAAQ,GAAG,IAAI,GAIhB;;YACC,OAAO,MAAM,IAAA,0BAAiB,EAC5B,IAAI,CAAC,SAAS,EACd,wBAAe,EACf,YAAY,EACZ,iCAAiC,EACjC;gBACE,WAAW;gBACX,QAAQ;aACT,CACF,CAAC;QACJ,CAAC;KAAA;CACF;AAzdD,sBAydC"}
|
package/build/cosmjs.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ export declare class CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner
|
|
|
8
8
|
sign(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
|
|
9
9
|
}
|
|
10
10
|
export declare class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner, OfflineDirectSigner {
|
|
11
|
-
protected readonly chainId: string;
|
|
12
|
-
protected readonly keplr: Keplr;
|
|
13
11
|
constructor(chainId: string, keplr: Keplr);
|
|
14
12
|
signDirect(signerAddress: string, signDoc: SignDoc): Promise<DirectSignResponse>;
|
|
15
13
|
}
|
package/build/cosmjs.js
CHANGED
|
@@ -51,8 +51,6 @@ exports.CosmJSOfflineSignerOnlyAmino = CosmJSOfflineSignerOnlyAmino;
|
|
|
51
51
|
class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino {
|
|
52
52
|
constructor(chainId, keplr) {
|
|
53
53
|
super(chainId, keplr);
|
|
54
|
-
this.chainId = chainId;
|
|
55
|
-
this.keplr = keplr;
|
|
56
54
|
}
|
|
57
55
|
signDirect(signerAddress, signDoc) {
|
|
58
56
|
return __awaiter(this, void 0, void 0, function* () {
|
package/build/cosmjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmjs.js","sourceRoot":"","sources":["../src/cosmjs.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,MAAa,4BAA4B;IACvC,YACqB,OAAe,EACf,KAAY;QADZ,YAAO,GAAP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,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAErD,IAAI,GAAG,CAAC,aAAa,KAAK,aAAa,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;aAC3C;YAED,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QAC3E,CAAC;KAAA;CACF;AAxBD,kDAwBC"}
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB"}
|
package/build/inject.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainInfo, EthSignType, Keplr, Keplr as IKeplr, KeplrIntereactionOptions, KeplrMode, KeplrSignOptions, Key, BroadcastMode, AminoSignResponse, StdSignDoc, OfflineAminoSigner, StdSignature, StdTx, DirectSignResponse, OfflineDirectSigner, ICNSAdr36Signatures, ChainInfoWithoutEndpoints, SecretUtils } from "@keplr-wallet/types";
|
|
1
|
+
import { ChainInfo, EthSignType, Keplr, Keplr as IKeplr, KeplrIntereactionOptions, KeplrMode, KeplrSignOptions, Key, BroadcastMode, AminoSignResponse, StdSignDoc, OfflineAminoSigner, StdSignature, StdTx, DirectSignResponse, OfflineDirectSigner, ICNSAdr36Signatures, ChainInfoWithoutEndpoints, SecretUtils, SettledResponses } from "@keplr-wallet/types";
|
|
2
2
|
import { Result } from "@keplr-wallet/router";
|
|
3
3
|
import Long from "long";
|
|
4
4
|
import { KeplrCoreTypes } from "./core-types";
|
|
@@ -45,6 +45,7 @@ export declare class InjectedKeplr implements IKeplr, KeplrCoreTypes {
|
|
|
45
45
|
disable(chainIds?: string | string[]): Promise<void>;
|
|
46
46
|
experimentalSuggestChain(chainInfo: ChainInfo): Promise<void>;
|
|
47
47
|
getKey(chainId: string): Promise<Key>;
|
|
48
|
+
getKeysSettled(chainIds: string[]): Promise<SettledResponses<Key>>;
|
|
48
49
|
sendTx(chainId: string, tx: StdTx | Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
|
|
49
50
|
signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
|
|
50
51
|
signDirect(chainId: string, signer: string, signDoc: {
|