Skip to content
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

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
Open

Feat(core)/bump dep #178

wants to merge 12 commits into from

Conversation

joshuanatanielnm
Copy link
Collaborator

Description

This PR updates the Graz project to use the latest versions of wallets and CosmJS dependencies.

@@ -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;
Copy link
Member

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"> & {
Copy link
Member

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

Copy link
Collaborator Author

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: "",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants