File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import { SignType } from './common';
66import { CosmosSigningOptions } from './cosmos' ;
77
88export interface SignerOptions {
9- signing ?: ( chain : Chain | ChainName ) => CosmosSigningOptions | undefined ;
9+ signing ?: (
10+ chain : Chain | ChainName
11+ ) => Partial < CosmosSigningOptions > | undefined ;
1012 preferredSignType ?: ( chain : Chain | ChainName ) => SignType | undefined ; // using `amino` if undefined
1113}
1214
@@ -22,4 +24,4 @@ export interface EndpointOptions {
2224export enum WalletManagerState {
2325 Initializing = 'Initializing' ,
2426 Initialized = 'Initialized' ,
25- }
27+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class WalletManager {
2020 endpointOptions : EndpointOptions | undefined ;
2121
2222 preferredSignTypeMap : Record < Chain [ 'chainName' ] , SignType > = { } ;
23- signerOptionMap : Record < Chain [ 'chainName' ] , CosmosSigningOptions > = { } ;
23+ signerOptionMap : Record < Chain [ 'chainName' ] , Partial < CosmosSigningOptions > > = { } ;
2424 endpointOptionsMap : Record < Chain [ 'chainName' ] , Endpoints > = { } ;
2525
2626 constructor (
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ export class WalletManagerStore implements WalletManager {
205205 get preferredSignTypeMap ( ) : Record < string , SignType > {
206206 return this . walletManager . preferredSignTypeMap ;
207207 }
208- get signerOptionMap ( ) : Record < string , CosmosSigningOptions > {
208+ get signerOptionMap ( ) : Record < string , Partial < CosmosSigningOptions > > {
209209 return this . walletManager . signerOptionMap ;
210210 }
211211 get endpointOptionsMap ( ) : Record < string , Endpoints > {
You can’t perform that action at this time.
0 commit comments