-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat(core)/bump dep #178
base: dev
Are you sure you want to change the base?
Feat(core)/bump dep #178
Changes from 9 commits
6978609
6fc820c
1619fb1
10476b1
51d185e
f2598ac
8ec3318
ee99451
f658627
ada9330
b961605
4515a68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import type { QueryClient } from "@cosmjs/stargate"; | ||
import type { Tendermint34Client, Tendermint37Client } from "@cosmjs/tendermint-rpc"; | ||
|
||
export type ExtensionSetup<P extends object = object> = (queryClient: QueryClient) => P; | ||
export type TendermintClient = Tendermint37Client | Tendermint34Client; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
import type { ChainInfo, Keplr, KeplrIntereactionOptions, Key as KeplrKey } from "@keplr-wallet/types"; | ||
import type { OfflineAminoSigner } from "@cosmjs/amino"; | ||
import type { DirectSignResponse, OfflineDirectSigner } from "@cosmjs/proto-signing"; | ||
import type { | ||
ChainInfo, | ||
Keplr, | ||
KeplrIntereactionOptions, | ||
KeplrSignOptions, | ||
Key as KeplrKey, | ||
} from "@keplr-wallet/types"; | ||
|
||
export enum WalletType { | ||
KEPLR = "keplr", | ||
|
@@ -48,10 +56,7 @@ export const WALLET_TYPES = [ | |
WalletType.OKX, | ||
]; | ||
|
||
export type Wallet = Pick< | ||
Keplr, | ||
"enable" | "getOfflineSigner" | "getOfflineSignerAuto" | "getOfflineSignerOnlyAmino" | "signDirect" | "signAmino" | ||
> & { | ||
export type Wallet = Pick<Keplr, "enable" | "getOfflineSignerOnlyAmino" | "signAmino"> & { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's not override getOfflineSigner, getOfflineSignerAuto, signDirect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I use the same structure as Keplr type, but using the |
||
experimentalSuggestChain: (chainInfo: Omit<ChainInfo, "nodeProvider">) => Promise<void>; | ||
signArbitrary?: Keplr["signArbitrary"]; | ||
subscription?: (reconnect: () => void) => () => void; | ||
|
@@ -60,6 +65,19 @@ export type Wallet = Pick< | |
setDefaultOptions?: (options: KeplrIntereactionOptions) => void; | ||
onAfterLoginSuccessful?: () => Promise<void>; | ||
getKey: (chainId: string) => Promise<Key>; | ||
getOfflineSigner: (chainId: string) => OfflineAminoSigner | OfflineDirectSigner; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be |
||
getOfflineSignerAuto: (chainId: string) => Promise<OfflineAminoSigner | OfflineDirectSigner>; | ||
signDirect: ( | ||
chainId: string, | ||
signer: string, | ||
signDoc: { | ||
bodyBytes?: Uint8Array | null; | ||
authInfoBytes?: Uint8Array | null; | ||
chainId?: string | null; | ||
accountNumber?: bigint | null; | ||
}, | ||
signOptions?: KeplrSignOptions, | ||
) => Promise<DirectSignResponse>; | ||
}; | ||
|
||
export type SignDirectParams = Parameters<Wallet["signDirect"]>; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this