@keplr-wallet/provider 0.12.35-rc.1 → 0.12.36-rc.0
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 +3 -3
- package/build/core.js +7 -7
- package/build/core.js.map +1 -1
- package/build/cosmjs.d.ts +4 -3
- package/build/cosmjs.js +7 -6
- package/build/cosmjs.js.map +1 -1
- package/build/inject.d.ts +3 -3
- package/build/inject.js +7 -7
- package/build/inject.js.map +1 -1
- package/package.json +4 -4
- package/src/core.ts +14 -7
- package/src/cosmjs.ts +18 -6
- package/src/inject.ts +14 -7
package/build/core.d.ts
CHANGED
@@ -33,9 +33,9 @@ export declare class Keplr implements IKeplr, KeplrCoreTypes {
|
|
33
33
|
verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise<boolean>;
|
34
34
|
signEthereum(chainId: string, signer: string, message: string | Uint8Array, signType: EthSignType): Promise<Uint8Array>;
|
35
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>;
|
36
|
+
getOfflineSigner(chainId: string, signOptions?: KeplrSignOptions): OfflineAminoSigner & OfflineDirectSigner;
|
37
|
+
getOfflineSignerOnlyAmino(chainId: string, signOptions?: KeplrSignOptions): OfflineAminoSigner;
|
38
|
+
getOfflineSignerAuto(chainId: string, signOptions?: KeplrSignOptions): Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
39
39
|
suggestToken(chainId: string, contractAddress: string, viewingKey?: string): Promise<void>;
|
40
40
|
getSecret20ViewingKey(chainId: string, contractAddress: string): Promise<string>;
|
41
41
|
getEnigmaPubKey(chainId: string): Promise<Uint8Array>;
|
package/build/core.js
CHANGED
@@ -182,19 +182,19 @@ class Keplr {
|
|
182
182
|
});
|
183
183
|
});
|
184
184
|
}
|
185
|
-
getOfflineSigner(chainId) {
|
186
|
-
return new cosmjs_1.CosmJSOfflineSigner(chainId, this);
|
185
|
+
getOfflineSigner(chainId, signOptions) {
|
186
|
+
return new cosmjs_1.CosmJSOfflineSigner(chainId, this, signOptions);
|
187
187
|
}
|
188
|
-
getOfflineSignerOnlyAmino(chainId) {
|
189
|
-
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this);
|
188
|
+
getOfflineSignerOnlyAmino(chainId, signOptions) {
|
189
|
+
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
190
190
|
}
|
191
|
-
getOfflineSignerAuto(chainId) {
|
191
|
+
getOfflineSignerAuto(chainId, signOptions) {
|
192
192
|
return __awaiter(this, void 0, void 0, function* () {
|
193
193
|
const key = yield this.getKey(chainId);
|
194
194
|
if (key.isNanoLedger) {
|
195
|
-
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this);
|
195
|
+
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
196
196
|
}
|
197
|
-
return new cosmjs_1.CosmJSOfflineSigner(chainId, this);
|
197
|
+
return new cosmjs_1.CosmJSOfflineSigner(chainId, this, signOptions);
|
198
198
|
});
|
199
199
|
}
|
200
200
|
suggestToken(chainId, contractAddress, viewingKey) {
|
package/build/core.js.map
CHANGED
@@ -1 +1 @@
|
|
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,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,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;IAEK,yCAAyC,CAC7C,OAAe,EACf,MAAc,EACd,OAAmB;;YAEnB,OAAO,MAAM,IAAA,0BAAiB,EAC5B,IAAI,CAAC,SAAS,EACd,wBAAe,EACf,gBAAgB,EAChB,yCAAyC,EACzC;gBACE,OAAO;gBACP,MAAM;gBACN,OAAO;aACR,CACF,CAAC;QACJ,CAAC;KAAA;IAEK,kCAAkC,CACtC,OAAe,EACf,MAAc,EACd,OAAmB;;YAEnB,OAAO,MAAM,IAAA,0BAAiB,EAC5B,IAAI,CAAC,SAAS,EACd,wBAAe,EACf,gBAAgB,EAChB,kCAAkC,EAClC;gBACE,OAAO;gBACP,MAAM;gBACN,OAAO;aACR,CACF,CAAC;QACJ,CAAC;KAAA;CACF;AA/gBD,sBA+gBC"}
|
package/build/cosmjs.d.ts
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
-
import { Keplr, OfflineDirectSigner, OfflineAminoSigner, AccountData, AminoSignResponse, StdSignDoc, DirectSignResponse, SignDoc } from "@keplr-wallet/types";
|
1
|
+
import { Keplr, OfflineDirectSigner, OfflineAminoSigner, AccountData, AminoSignResponse, StdSignDoc, DirectSignResponse, SignDoc, KeplrSignOptions } from "@keplr-wallet/types";
|
2
2
|
export declare class CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner {
|
3
3
|
protected readonly chainId: string;
|
4
4
|
protected readonly keplr: Keplr;
|
5
|
-
|
5
|
+
protected readonly signOptions?: KeplrSignOptions | undefined;
|
6
|
+
constructor(chainId: string, keplr: Keplr, signOptions?: KeplrSignOptions | undefined);
|
6
7
|
getAccounts(): Promise<AccountData[]>;
|
7
8
|
signAmino(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
|
8
9
|
sign(signerAddress: string, signDoc: StdSignDoc): Promise<AminoSignResponse>;
|
9
10
|
}
|
10
11
|
export declare class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner, OfflineDirectSigner {
|
11
|
-
constructor(chainId: string, keplr: Keplr);
|
12
|
+
constructor(chainId: string, keplr: Keplr, signOptions?: KeplrSignOptions);
|
12
13
|
signDirect(signerAddress: string, signDoc: SignDoc): Promise<DirectSignResponse>;
|
13
14
|
}
|
package/build/cosmjs.js
CHANGED
@@ -11,9 +11,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.CosmJSOfflineSigner = exports.CosmJSOfflineSignerOnlyAmino = void 0;
|
13
13
|
class CosmJSOfflineSignerOnlyAmino {
|
14
|
-
constructor(chainId, keplr) {
|
14
|
+
constructor(chainId, keplr, signOptions) {
|
15
15
|
this.chainId = chainId;
|
16
16
|
this.keplr = keplr;
|
17
|
+
this.signOptions = signOptions;
|
17
18
|
}
|
18
19
|
getAccounts() {
|
19
20
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -37,10 +38,10 @@ class CosmJSOfflineSignerOnlyAmino {
|
|
37
38
|
if (key.bech32Address !== signerAddress) {
|
38
39
|
throw new Error("Unknown signer address");
|
39
40
|
}
|
40
|
-
return yield this.keplr.signAmino(this.chainId, signerAddress, signDoc);
|
41
|
+
return yield this.keplr.signAmino(this.chainId, signerAddress, signDoc, this.signOptions);
|
41
42
|
});
|
42
43
|
}
|
43
|
-
// Fallback function for the legacy cosmjs implementation before the
|
44
|
+
// Fallback function for the legacy cosmjs implementation before the stargate.
|
44
45
|
sign(signerAddress, signDoc) {
|
45
46
|
return __awaiter(this, void 0, void 0, function* () {
|
46
47
|
return yield this.signAmino(signerAddress, signDoc);
|
@@ -49,8 +50,8 @@ class CosmJSOfflineSignerOnlyAmino {
|
|
49
50
|
}
|
50
51
|
exports.CosmJSOfflineSignerOnlyAmino = CosmJSOfflineSignerOnlyAmino;
|
51
52
|
class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino {
|
52
|
-
constructor(chainId, keplr) {
|
53
|
-
super(chainId, keplr);
|
53
|
+
constructor(chainId, keplr, signOptions) {
|
54
|
+
super(chainId, keplr, signOptions);
|
54
55
|
}
|
55
56
|
signDirect(signerAddress, signDoc) {
|
56
57
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -61,7 +62,7 @@ class CosmJSOfflineSigner extends CosmJSOfflineSignerOnlyAmino {
|
|
61
62
|
if (key.bech32Address !== signerAddress) {
|
62
63
|
throw new Error("Unknown signer address");
|
63
64
|
}
|
64
|
-
return yield this.keplr.signDirect(this.chainId, signerAddress, signDoc);
|
65
|
+
return yield this.keplr.signDirect(this.chainId, signerAddress, signDoc, this.signOptions);
|
65
66
|
});
|
66
67
|
}
|
67
68
|
}
|
package/build/cosmjs.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cosmjs.js","sourceRoot":"","sources":["../src/cosmjs.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"cosmjs.js","sourceRoot":"","sources":["../src/cosmjs.ts"],"names":[],"mappings":";;;;;;;;;;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,KAAK,EAAE,WAAW,CAAC,CAAC;IACrC,CAAC;IAEK,UAAU,CACd,aAAqB,EACrB,OAAgB;;YAEhB,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,EAAE;gBACpC,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aAC/D;YAED,MAAM,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,CAChC,IAAI,CAAC,OAAO,EACZ,aAAa,EACb,OAAO,EACP,IAAI,CAAC,WAAW,CACjB,CAAC;QACJ,CAAC;KAAA;CACF;AA7BD,kDA6BC"}
|
package/build/inject.d.ts
CHANGED
@@ -58,9 +58,9 @@ export declare class InjectedKeplr implements IKeplr, KeplrCoreTypes {
|
|
58
58
|
signICNSAdr36(chainId: string, contractAddress: string, owner: string, username: string, addressChainIds: string[]): Promise<ICNSAdr36Signatures>;
|
59
59
|
verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise<boolean>;
|
60
60
|
signEthereum(chainId: string, signer: string, data: string | Uint8Array, type: EthSignType): Promise<Uint8Array>;
|
61
|
-
getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
|
62
|
-
getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
|
63
|
-
getOfflineSignerAuto(chainId: string): Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
61
|
+
getOfflineSigner(chainId: string, signOptions?: KeplrSignOptions): OfflineAminoSigner & OfflineDirectSigner;
|
62
|
+
getOfflineSignerOnlyAmino(chainId: string, signOptions?: KeplrSignOptions): OfflineAminoSigner;
|
63
|
+
getOfflineSignerAuto(chainId: string, signOptions?: KeplrSignOptions): Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
64
64
|
suggestToken(chainId: string, contractAddress: string, viewingKey?: string): Promise<void>;
|
65
65
|
getSecret20ViewingKey(chainId: string, contractAddress: string): Promise<string>;
|
66
66
|
getEnigmaPubKey(chainId: string): Promise<Uint8Array>;
|
package/build/inject.js
CHANGED
@@ -336,19 +336,19 @@ class InjectedKeplr {
|
|
336
336
|
]);
|
337
337
|
});
|
338
338
|
}
|
339
|
-
getOfflineSigner(chainId) {
|
340
|
-
return new cosmjs_1.CosmJSOfflineSigner(chainId, this);
|
339
|
+
getOfflineSigner(chainId, signOptions) {
|
340
|
+
return new cosmjs_1.CosmJSOfflineSigner(chainId, this, signOptions);
|
341
341
|
}
|
342
|
-
getOfflineSignerOnlyAmino(chainId) {
|
343
|
-
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this);
|
342
|
+
getOfflineSignerOnlyAmino(chainId, signOptions) {
|
343
|
+
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
344
344
|
}
|
345
|
-
getOfflineSignerAuto(chainId) {
|
345
|
+
getOfflineSignerAuto(chainId, signOptions) {
|
346
346
|
return __awaiter(this, void 0, void 0, function* () {
|
347
347
|
const key = yield this.getKey(chainId);
|
348
348
|
if (key.isNanoLedger) {
|
349
|
-
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this);
|
349
|
+
return new cosmjs_1.CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
350
350
|
}
|
351
|
-
return new cosmjs_1.CosmJSOfflineSigner(chainId, this);
|
351
|
+
return new cosmjs_1.CosmJSOfflineSigner(chainId, this, signOptions);
|
352
352
|
});
|
353
353
|
}
|
354
354
|
suggestToken(chainId, contractAddress, viewingKey) {
|
package/build/inject.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inject.js","sourceRoot":"","sources":["../src/inject.ts"],"names":[],"mappings":";;;;;;;;;;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AmB;;YAEnB,OAAO,MAAM,IAAI,CAAC,aAAa,CAC7B,2CAA2C,EAC3C,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAC3B,CAAC;QACJ,CAAC;KAAA;IAEK,kCAAkC,CACtC,OAAe,EACf,MAAc,EACd,OAAmB;;YAEnB,OAAO,MAAM,IAAI,CAAC,aAAa,CAAC,oCAAoC,EAAE;gBACpE,OAAO;gBACP,MAAM;gBACN,OAAO;aACR,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AA5iBD,sCA4iBC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@keplr-wallet/provider",
|
3
|
-
"version": "0.12.
|
3
|
+
"version": "0.12.36-rc.0",
|
4
4
|
"main": "build/index.js",
|
5
5
|
"author": "chainapsis",
|
6
6
|
"license": "Apache-2.0",
|
@@ -16,11 +16,11 @@
|
|
16
16
|
"lint-fix": "eslint --fix \"src/**/*\" && prettier --write \"src/**/*\""
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
|
-
"@keplr-wallet/router": "0.12.
|
20
|
-
"@keplr-wallet/types": "0.12.
|
19
|
+
"@keplr-wallet/router": "0.12.36-rc.0",
|
20
|
+
"@keplr-wallet/types": "0.12.36-rc.0",
|
21
21
|
"buffer": "^6.0.3",
|
22
22
|
"deepmerge": "^4.2.2",
|
23
23
|
"long": "^4.0.0"
|
24
24
|
},
|
25
|
-
"gitHead": "
|
25
|
+
"gitHead": "aa6a240097519ca2cce82b1599b28cc30cce1a38"
|
26
26
|
}
|
package/src/core.ts
CHANGED
@@ -331,22 +331,29 @@ export class Keplr implements IKeplr, KeplrCoreTypes {
|
|
331
331
|
);
|
332
332
|
}
|
333
333
|
|
334
|
-
getOfflineSigner(
|
335
|
-
|
334
|
+
getOfflineSigner(
|
335
|
+
chainId: string,
|
336
|
+
signOptions?: KeplrSignOptions
|
337
|
+
): OfflineAminoSigner & OfflineDirectSigner {
|
338
|
+
return new CosmJSOfflineSigner(chainId, this, signOptions);
|
336
339
|
}
|
337
340
|
|
338
|
-
getOfflineSignerOnlyAmino(
|
339
|
-
|
341
|
+
getOfflineSignerOnlyAmino(
|
342
|
+
chainId: string,
|
343
|
+
signOptions?: KeplrSignOptions
|
344
|
+
): OfflineAminoSigner {
|
345
|
+
return new CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
340
346
|
}
|
341
347
|
|
342
348
|
async getOfflineSignerAuto(
|
343
|
-
chainId: string
|
349
|
+
chainId: string,
|
350
|
+
signOptions?: KeplrSignOptions
|
344
351
|
): Promise<OfflineAminoSigner | OfflineDirectSigner> {
|
345
352
|
const key = await this.getKey(chainId);
|
346
353
|
if (key.isNanoLedger) {
|
347
|
-
return new CosmJSOfflineSignerOnlyAmino(chainId, this);
|
354
|
+
return new CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
348
355
|
}
|
349
|
-
return new CosmJSOfflineSigner(chainId, this);
|
356
|
+
return new CosmJSOfflineSigner(chainId, this, signOptions);
|
350
357
|
}
|
351
358
|
|
352
359
|
async suggestToken(
|
package/src/cosmjs.ts
CHANGED
@@ -7,12 +7,14 @@ import {
|
|
7
7
|
StdSignDoc,
|
8
8
|
DirectSignResponse,
|
9
9
|
SignDoc,
|
10
|
+
KeplrSignOptions,
|
10
11
|
} from "@keplr-wallet/types";
|
11
12
|
|
12
13
|
export class CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner {
|
13
14
|
constructor(
|
14
15
|
protected readonly chainId: string,
|
15
|
-
protected readonly keplr: Keplr
|
16
|
+
protected readonly keplr: Keplr,
|
17
|
+
protected readonly signOptions?: KeplrSignOptions
|
16
18
|
) {}
|
17
19
|
|
18
20
|
async getAccounts(): Promise<AccountData[]> {
|
@@ -42,10 +44,15 @@ export class CosmJSOfflineSignerOnlyAmino implements OfflineAminoSigner {
|
|
42
44
|
throw new Error("Unknown signer address");
|
43
45
|
}
|
44
46
|
|
45
|
-
return await this.keplr.signAmino(
|
47
|
+
return await this.keplr.signAmino(
|
48
|
+
this.chainId,
|
49
|
+
signerAddress,
|
50
|
+
signDoc,
|
51
|
+
this.signOptions
|
52
|
+
);
|
46
53
|
}
|
47
54
|
|
48
|
-
// Fallback function for the legacy cosmjs implementation before the
|
55
|
+
// Fallback function for the legacy cosmjs implementation before the stargate.
|
49
56
|
async sign(
|
50
57
|
signerAddress: string,
|
51
58
|
signDoc: StdSignDoc
|
@@ -58,8 +65,8 @@ export class CosmJSOfflineSigner
|
|
58
65
|
extends CosmJSOfflineSignerOnlyAmino
|
59
66
|
implements OfflineAminoSigner, OfflineDirectSigner
|
60
67
|
{
|
61
|
-
constructor(chainId: string, keplr: Keplr) {
|
62
|
-
super(chainId, keplr);
|
68
|
+
constructor(chainId: string, keplr: Keplr, signOptions?: KeplrSignOptions) {
|
69
|
+
super(chainId, keplr, signOptions);
|
63
70
|
}
|
64
71
|
|
65
72
|
async signDirect(
|
@@ -76,6 +83,11 @@ export class CosmJSOfflineSigner
|
|
76
83
|
throw new Error("Unknown signer address");
|
77
84
|
}
|
78
85
|
|
79
|
-
return await this.keplr.signDirect(
|
86
|
+
return await this.keplr.signDirect(
|
87
|
+
this.chainId,
|
88
|
+
signerAddress,
|
89
|
+
signDoc,
|
90
|
+
this.signOptions
|
91
|
+
);
|
80
92
|
}
|
81
93
|
}
|
package/src/inject.ts
CHANGED
@@ -485,22 +485,29 @@ export class InjectedKeplr implements IKeplr, KeplrCoreTypes {
|
|
485
485
|
]);
|
486
486
|
}
|
487
487
|
|
488
|
-
getOfflineSigner(
|
489
|
-
|
488
|
+
getOfflineSigner(
|
489
|
+
chainId: string,
|
490
|
+
signOptions?: KeplrSignOptions
|
491
|
+
): OfflineAminoSigner & OfflineDirectSigner {
|
492
|
+
return new CosmJSOfflineSigner(chainId, this, signOptions);
|
490
493
|
}
|
491
494
|
|
492
|
-
getOfflineSignerOnlyAmino(
|
493
|
-
|
495
|
+
getOfflineSignerOnlyAmino(
|
496
|
+
chainId: string,
|
497
|
+
signOptions?: KeplrSignOptions
|
498
|
+
): OfflineAminoSigner {
|
499
|
+
return new CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
494
500
|
}
|
495
501
|
|
496
502
|
async getOfflineSignerAuto(
|
497
|
-
chainId: string
|
503
|
+
chainId: string,
|
504
|
+
signOptions?: KeplrSignOptions
|
498
505
|
): Promise<OfflineAminoSigner | OfflineDirectSigner> {
|
499
506
|
const key = await this.getKey(chainId);
|
500
507
|
if (key.isNanoLedger) {
|
501
|
-
return new CosmJSOfflineSignerOnlyAmino(chainId, this);
|
508
|
+
return new CosmJSOfflineSignerOnlyAmino(chainId, this, signOptions);
|
502
509
|
}
|
503
|
-
return new CosmJSOfflineSigner(chainId, this);
|
510
|
+
return new CosmJSOfflineSigner(chainId, this, signOptions);
|
504
511
|
}
|
505
512
|
|
506
513
|
async suggestToken(
|