-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Conversation
packages/graz/src/types/wallet.ts
Outdated
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
should be OfflineDirectSigner & OfflineAminoSigner
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
I use the same structure as Keplr type, but using the OfflineAminoSigner
& OfflineDirectSigner
directly from @cosmjs
, because Keplr type still use Long instead of BigInt
@@ -80,6 +80,7 @@ export const getInitia = (): Wallet => { | |||
pubKey: account.pubkey, | |||
bech32Address: account.address, | |||
address: rawAddress, | |||
ethereumHexAddress: "", |
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
Description
This PR updates the Graz project to use the latest versions of wallets and CosmJS dependencies.