@keplr-wallet/provider 0.12.0-alpha.0 → 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/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/LICENSE
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
License: Apache2.0
|
1
|
+
License: Apache2.0 (Extension) / All rights reserved (Mobile)
|
2
|
+
|
3
|
+
## Keplr Extension License:
|
2
4
|
|
3
5
|
Apache License
|
4
6
|
Version 2.0, January 2004
|
@@ -200,4 +202,8 @@ License: Apache2.0
|
|
200
202
|
distributed under the License is distributed on an "AS IS" BASIS,
|
201
203
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
202
204
|
See the License for the specific language governing permissions and
|
203
|
-
limitations under the License.
|
205
|
+
limitations under the License.
|
206
|
+
|
207
|
+
## Keplr Mobile License
|
208
|
+
|
209
|
+
Copyright (c) 2021 Chainapsis Inc. All rights reserved.
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"core-types.js","sourceRoot":"","sources":["../src/core-types.ts"],"names":[],"mappings":""}
|
package/build/core.d.ts
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
import { ChainInfo, EthSignType, Keplr as IKeplr, KeplrIntereactionOptions, KeplrMode, KeplrSignOptions, Key } 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
|
-
import { BroadcastMode, AminoSignResponse, StdSignDoc, StdTx, OfflineSigner, StdSignature } from "@cosmjs/launchpad";
|
4
|
-
import { SecretUtils } from "secretjs/types/enigmautils";
|
5
|
-
import { DirectSignResponse, OfflineDirectSigner } from "@cosmjs/proto-signing";
|
6
3
|
import Long from "long";
|
7
|
-
|
4
|
+
import { KeplrCoreTypes } from "./core-types";
|
5
|
+
export declare class Keplr implements IKeplr, KeplrCoreTypes {
|
8
6
|
readonly version: string;
|
9
7
|
readonly mode: KeplrMode;
|
10
8
|
protected readonly requester: MessageRequester;
|
@@ -12,7 +10,8 @@ export declare class Keplr implements IKeplr {
|
|
12
10
|
defaultOptions: KeplrIntereactionOptions;
|
13
11
|
constructor(version: string, mode: KeplrMode, requester: MessageRequester);
|
14
12
|
enable(chainIds: string | string[]): Promise<void>;
|
15
|
-
|
13
|
+
disable(chainIds?: string | string[]): Promise<void>;
|
14
|
+
experimentalSuggestChain(chainInfo: ChainInfo & {
|
16
15
|
gasPriceStep?: {
|
17
16
|
readonly low: number;
|
18
17
|
readonly average: number;
|
@@ -20,6 +19,8 @@ export declare class Keplr implements IKeplr {
|
|
20
19
|
};
|
21
20
|
}): Promise<void>;
|
22
21
|
getKey(chainId: string): Promise<Key>;
|
22
|
+
getKeysSettled(chainIds: string[]): Promise<SettledResponses<Key>>;
|
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>;
|
25
26
|
signDirect(chainId: string, signer: string, signDoc: {
|
@@ -30,17 +31,29 @@ export declare class Keplr implements IKeplr {
|
|
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
|
-
|
35
|
-
|
36
|
-
|
34
|
+
signEthereum(_chainId: string, _signer: string, _data: string | Uint8Array, _type: EthSignType): Promise<Uint8Array>;
|
35
|
+
signICNSAdr36(chainId: string, contractAddress: string, owner: string, username: string, addressChainIds: string[]): Promise<ICNSAdr36Signatures>;
|
36
|
+
getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
|
37
|
+
getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
|
38
|
+
getOfflineSignerAuto(chainId: string): Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
37
39
|
suggestToken(chainId: string, contractAddress: string, viewingKey?: string): Promise<void>;
|
38
40
|
getSecret20ViewingKey(chainId: string, contractAddress: string): Promise<string>;
|
39
41
|
getEnigmaPubKey(chainId: string): Promise<Uint8Array>;
|
40
42
|
getEnigmaTxEncryptionKey(chainId: string, nonce: Uint8Array): Promise<Uint8Array>;
|
41
43
|
enigmaEncrypt(chainId: string, contractCodeHash: string, msg: object): Promise<Uint8Array>;
|
42
|
-
enigmaDecrypt(chainId: string,
|
44
|
+
enigmaDecrypt(chainId: string, cipherText: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>;
|
43
45
|
getEnigmaUtils(chainId: string): SecretUtils;
|
44
|
-
|
45
|
-
|
46
|
+
experimentalSignEIP712CosmosTx_v0(chainId: string, signer: string, eip712: {
|
47
|
+
types: Record<string, {
|
48
|
+
name: string;
|
49
|
+
type: string;
|
50
|
+
}[] | undefined>;
|
51
|
+
domain: Record<string, any>;
|
52
|
+
primaryType: string;
|
53
|
+
}, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
|
54
|
+
__core__getAnalyticsId(): Promise<string>;
|
55
|
+
changeKeyRingName({ defaultName, editable, }: {
|
56
|
+
defaultName: string;
|
57
|
+
editable?: boolean;
|
58
|
+
}): Promise<string>;
|
46
59
|
}
|
package/build/core.js
CHANGED
@@ -13,10 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
exports.Keplr = void 0;
|
16
|
-
const cosmos_1 = require("@keplr-wallet/cosmos");
|
17
|
-
const types_1 = require("@keplr-wallet/types");
|
18
16
|
const router_1 = require("@keplr-wallet/router");
|
19
|
-
const types_2 = require("./types");
|
20
17
|
const enigma_1 = require("./enigma");
|
21
18
|
const cosmjs_1 = require("./cosmjs");
|
22
19
|
const deepmerge_1 = __importDefault(require("deepmerge"));
|
@@ -35,20 +32,23 @@ class Keplr {
|
|
35
32
|
if (typeof chainIds === "string") {
|
36
33
|
chainIds = [chainIds];
|
37
34
|
}
|
38
|
-
yield this.requester
|
35
|
+
yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "permission-interactive", "enable-access", {
|
36
|
+
chainIds,
|
37
|
+
});
|
39
38
|
});
|
40
39
|
}
|
41
|
-
|
40
|
+
disable(chainIds) {
|
42
41
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
|
44
|
-
|
45
|
-
// TODO: 테스트 끝나면 chainapsis public repo URL로 바꿔야 한다.
|
46
|
-
const chainInfoResponse = yield fetch(`https://raw.githubusercontent.com/danielkim89/cicd-test/main/cosmos/${chainIdentifier}.json`);
|
47
|
-
let chainInfo = suggestingChainInfo;
|
48
|
-
if (chainInfoResponse.ok) {
|
49
|
-
chainInfo = yield chainInfoResponse.json();
|
50
|
-
chainInfo.isFromCommunity = true;
|
42
|
+
if (typeof chainIds === "string") {
|
43
|
+
chainIds = [chainIds];
|
51
44
|
}
|
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
|
+
});
|
48
|
+
});
|
49
|
+
}
|
50
|
+
experimentalSuggestChain(chainInfo) {
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
52
52
|
if (chainInfo.gasPriceStep) {
|
53
53
|
// Gas price step in ChainInfo is legacy format.
|
54
54
|
// Try to change the recent format for backward-compatibility.
|
@@ -61,41 +61,70 @@ class Keplr {
|
|
61
61
|
delete chainInfo.gasPriceStep;
|
62
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.");
|
63
63
|
}
|
64
|
-
|
65
|
-
|
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
|
+
});
|
66
71
|
});
|
67
72
|
}
|
68
73
|
getKey(chainId) {
|
69
74
|
return __awaiter(this, void 0, void 0, function* () {
|
70
|
-
|
71
|
-
|
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
|
+
});
|
85
|
+
});
|
86
|
+
}
|
87
|
+
getChainInfosWithoutEndpoints() {
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
89
|
+
return (yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "chains", "get-chain-infos-without-endpoints", {})).chainInfos;
|
72
90
|
});
|
73
91
|
}
|
74
92
|
sendTx(chainId, tx, mode) {
|
75
93
|
return __awaiter(this, void 0, void 0, function* () {
|
76
|
-
|
77
|
-
|
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
|
+
});
|
78
99
|
});
|
79
100
|
}
|
80
101
|
signAmino(chainId, signer, signDoc, signOptions = {}) {
|
81
102
|
var _a;
|
82
103
|
return __awaiter(this, void 0, void 0, function* () {
|
83
|
-
|
84
|
-
|
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
|
+
});
|
85
110
|
});
|
86
111
|
}
|
87
112
|
signDirect(chainId, signer, signDoc, signOptions = {}) {
|
88
113
|
var _a;
|
89
114
|
return __awaiter(this, void 0, void 0, function* () {
|
90
|
-
const
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
:
|
97
|
-
|
98
|
-
|
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
|
+
});
|
99
128
|
return {
|
100
129
|
signed: {
|
101
130
|
bodyBytes: response.signed.bodyBytes,
|
@@ -109,13 +138,14 @@ class Keplr {
|
|
109
138
|
}
|
110
139
|
signArbitrary(chainId, signer, data) {
|
111
140
|
return __awaiter(this, void 0, void 0, function* () {
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
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
|
+
},
|
117
148
|
});
|
118
|
-
return (yield this.requester.sendMessage(router_1.BACKGROUND_PORT, msg)).signature;
|
119
149
|
});
|
120
150
|
}
|
121
151
|
verifyArbitrary(chainId, signer, data, signature) {
|
@@ -123,27 +153,28 @@ class Keplr {
|
|
123
153
|
if (typeof data === "string") {
|
124
154
|
data = buffer_1.Buffer.from(data);
|
125
155
|
}
|
126
|
-
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
|
+
});
|
127
162
|
});
|
128
163
|
}
|
129
|
-
signEthereum(
|
164
|
+
signEthereum(_chainId, _signer, _data, _type) {
|
130
165
|
return __awaiter(this, void 0, void 0, function* () {
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
ethSignType: type,
|
166
|
+
throw new Error("TODO");
|
167
|
+
});
|
168
|
+
}
|
169
|
+
signICNSAdr36(chainId, contractAddress, owner, username, addressChainIds) {
|
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,
|
143
177
|
});
|
144
|
-
const signature = (yield this.requester.sendMessage(router_1.BACKGROUND_PORT, msg))
|
145
|
-
.signature;
|
146
|
-
return buffer_1.Buffer.from(signature.signature, "base64");
|
147
178
|
});
|
148
179
|
}
|
149
180
|
getOfflineSigner(chainId) {
|
@@ -163,39 +194,57 @@ class Keplr {
|
|
163
194
|
}
|
164
195
|
suggestToken(chainId, contractAddress, viewingKey) {
|
165
196
|
return __awaiter(this, void 0, void 0, function* () {
|
166
|
-
|
167
|
-
|
197
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "token-cw20", "SuggestTokenMsg", {
|
198
|
+
chainId,
|
199
|
+
contractAddress,
|
200
|
+
viewingKey,
|
201
|
+
});
|
168
202
|
});
|
169
203
|
}
|
170
204
|
getSecret20ViewingKey(chainId, contractAddress) {
|
171
205
|
return __awaiter(this, void 0, void 0, function* () {
|
172
|
-
|
173
|
-
|
206
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "token-cw20", "get-secret20-viewing-key", {
|
207
|
+
chainId,
|
208
|
+
contractAddress,
|
209
|
+
});
|
174
210
|
});
|
175
211
|
}
|
176
212
|
getEnigmaPubKey(chainId) {
|
177
213
|
return __awaiter(this, void 0, void 0, function* () {
|
178
|
-
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
|
+
});
|
179
217
|
});
|
180
218
|
}
|
181
219
|
getEnigmaTxEncryptionKey(chainId, nonce) {
|
182
220
|
return __awaiter(this, void 0, void 0, function* () {
|
183
|
-
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
|
+
});
|
184
225
|
});
|
185
226
|
}
|
186
227
|
enigmaEncrypt(chainId, contractCodeHash,
|
187
228
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
188
229
|
msg) {
|
189
230
|
return __awaiter(this, void 0, void 0, function* () {
|
190
|
-
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
|
+
});
|
191
236
|
});
|
192
237
|
}
|
193
|
-
enigmaDecrypt(chainId,
|
238
|
+
enigmaDecrypt(chainId, cipherText, nonce) {
|
194
239
|
return __awaiter(this, void 0, void 0, function* () {
|
195
|
-
if (!
|
240
|
+
if (!cipherText || cipherText.length === 0) {
|
196
241
|
return new Uint8Array();
|
197
242
|
}
|
198
|
-
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
|
+
});
|
199
248
|
});
|
200
249
|
}
|
201
250
|
getEnigmaUtils(chainId) {
|
@@ -207,37 +256,30 @@ class Keplr {
|
|
207
256
|
this.enigmaUtils.set(chainId, enigmaUtils);
|
208
257
|
return enigmaUtils;
|
209
258
|
}
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
signer,
|
235
|
-
data,
|
236
|
-
},
|
237
|
-
},
|
238
|
-
],
|
239
|
-
memo: "",
|
240
|
-
};
|
259
|
+
experimentalSignEIP712CosmosTx_v0(chainId, signer, eip712, signDoc, signOptions = {}) {
|
260
|
+
var _a;
|
261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
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
|
+
});
|
269
|
+
});
|
270
|
+
}
|
271
|
+
__core__getAnalyticsId() {
|
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
|
+
});
|
275
|
+
}
|
276
|
+
changeKeyRingName({ defaultName, editable = true, }) {
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
278
|
+
return yield (0, router_1.sendSimpleMessage)(this.requester, router_1.BACKGROUND_PORT, "keyring-v2", "change-keyring-name-interactive", {
|
279
|
+
defaultName,
|
280
|
+
editable,
|
281
|
+
});
|
282
|
+
});
|
241
283
|
}
|
242
284
|
}
|
243
285
|
exports.Keplr = Keplr;
|
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,oCAAiC;AAGjC,MAAa,KAAK;IAKhB,YACkB,OAAe,EACf,IAAe,EACZ,SAA2B;QAF9B,YAAO,GAAP,OAAO,CAAQ;QACf,SAAI,GAAJ,IAAI,CAAW;QACZ,cAAS,GAAT,SAAS,CAAkB;QAPtC,gBAAW,GAA6B,IAAI,GAAG,EAAE,CAAC;QAErD,mBAAc,GAA6B,EAAE,CAAC;IAMlD,CAAC;IAEE,MAAM,CAAC,QAA2B;;YACtC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;gBAChC,QAAQ,GAAG,CAAC,QAAQ,CAAC,CAAC;aACvB;YAED,MAAM,IAAA,0BAAiB,EACrB,IAAI,CAAC,SAAS,EACd,wBAAe,EACf,wBAAwB,EACxB,eAAe,EACf;gBACE,QAAQ;aACT,CACF,CAAC;QACJ,CAAC;KAAA;IAEK,OAAO,CAAC,QAA4B;;YACxC,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;gBAChC,QAAQ,GAAG,CAAC,QAAQ,CAAC,CAAC;aACvB;YAED,MAAM,IAAA,0BAAiB,EACrB,IAAI,CAAC,SAAS,EACd,wBAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB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AAC;IAEK,iCAAiC,CACrC,OAAe,EACf,MAAc,EACd,MAIC,EACD,OAAmB,EACnB,cAAgC,EAAE;;;YAElC,OAAO,MAAM,IAAA,0BAAiB,EAC5B,IAAI,CAAC,SAAS,EACd,wBAAe,EACf,gBAAgB,EAChB,mCAAmC,EACnC;gBACE,OAAO;gBACP,MAAM;gBACN,MAAM;gBACN,OAAO;gBACP,WAAW,EAAE,IAAA,mBAAS,EAAC,MAAA,IAAI,CAAC,cAAc,CAAC,IAAI,mCAAI,EAAE,EAAE,WAAW,CAAC;aACpE,CACF,CAAC;;KACH;IAEK,sBAAsB;;YAC1B,OAAO,MAAM,IAAA,0BAAiB,EAC5B,IAAI,CAAC,SAAS,EACd,wBAAe,EACf,WAAW,EACX,kBAAkB,EAClB,EAAE,CACH,CAAC;QACJ,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
@@ -1,9 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
import { OfflineDirectSigner } from "@cosmjs/proto-signing";
|
4
|
-
import { DirectSignResponse } from "@cosmjs/proto-signing/build/signer";
|
5
|
-
import { SignDoc } from "@cosmjs/proto-signing/build/codec/cosmos/tx/v1beta1/tx";
|
6
|
-
export declare class CosmJSOfflineSignerOnlyAmino implements OfflineSigner {
|
1
|
+
import { Keplr, OfflineDirectSigner, OfflineAminoSigner, AccountData, AminoSignResponse, StdSignDoc, DirectSignResponse, SignDoc } from "@keplr-wallet/types";
|
2
|
+
export declare class CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner {
|
7
3
|
protected readonly chainId: string;
|
8
4
|
protected readonly keplr: Keplr;
|
9
5
|
constructor(chainId: string, keplr: Keplr);
|
@@ -11,9 +7,7 @@ export declare class CosmJSOfflineSignerOnlyAmino implements OfflineSigner {
|
|
11
7
|
signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
|
12
8
|
sign(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
|
13
9
|
}
|
14
|
-
export declare class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino implements
|
15
|
-
protected readonly chainId: string;
|
16
|
-
protected readonly keplr: Keplr;
|
10
|
+
export declare class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner, OfflineDirectSigner {
|
17
11
|
constructor(chainId: string, keplr: Keplr);
|
18
12
|
signDirect(signerAddress: string, signDoc: SignDoc): Promise<DirectSignResponse>;
|
19
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,OAAO,CAAQ;QACf,UAAK,GAAL,KAAK,CAAO;IAC9B,CAAC;IAEE,WAAW;;YACf,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAA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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/enigma.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import { SecretUtils } from "
|
2
|
-
import { Keplr } from "@keplr-wallet/types";
|
1
|
+
import { Keplr, SecretUtils } from "@keplr-wallet/types";
|
3
2
|
/**
|
4
3
|
* KeplrEnigmaUtils duplicates the public methods that are supported on secretjs's EnigmaUtils class.
|
5
4
|
*/
|
package/build/enigma.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enigma.js","sourceRoot":"","sources":["../src/enigma.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"enigma.js","sourceRoot":"","sources":["../src/enigma.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA;;GAEG;AACH,MAAa,gBAAgB;IAC3B,YACqB,OAAe,EACf,KAAY;QADZ,YAAO,GAAP,OAAO,CAAQ;QACf,UAAK,GAAL,KAAK,CAAO;IAC9B,CAAC;IAEE,SAAS;;YACb,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC;KAAA;IAEK,kBAAkB,CAAC,KAAiB;;YACxC,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACxE,CAAC;KAAA;IAEK,OAAO,CACX,gBAAwB;IACxB,wDAAwD;IACxD,GAAW;;YAEX,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC;QAC7E,CAAC;KAAA;IAEK,OAAO,CACX,UAAsB,EACtB,KAAiB;;YAEjB,OAAO,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QACzE,CAAC;KAAA;CACF;AA5BD,4CA4BC"}
|
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"}
|