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

keplr wallet integration #275

Merged
merged 11 commits into from
Nov 24, 2021
Merged

keplr wallet integration #275

merged 11 commits into from
Nov 24, 2021

Conversation

ap-justin
Copy link
Collaborator

@ap-justin ap-justin commented Nov 17, 2021

Description of the Problem / Feature

add support for keplr wallet

Explanation of the solution

add donate logic for $ATOM & $UST
add $ATOM in donate form
add keplr tx flow in existing $UST donation flow

Instructions on making this work

pull latest from this branch and install additional dependencies
can run this PR only in mainnet setting

Issues and workarounds

  1. issue: errors with @cosmjs/launchpad invalid response data format when querying testnet address cosmos/cosmjs#940
    workaround: use @cosmjs/stargate

  2. issue: @cosmjs/stargate only accepts RPC endpoints invalid response data format when querying testnet address cosmos/cosmjs#940
    workaround: use public RPC endpoints temporarily

  3. issue: Keplr RPC endpoint not working [question]: updated rpc endpoints chainapsis/keplr-example#21
    workaround use public RPC endpoint for cosmoshub-4 temporarily
    https://docs.tendermint.com/master/rpc/

  4. issue: no available RPC endpoint for bombay-12 tesnet
    workaround: build logic around mainnet endpoints and temporarily use public RPC for terra
    https://terra-rpc.easy2stake.com/ (a very slow endpoint x_x) found here at https://docs.terra.money/Reference/endpoints.html#private-rpc-endpoints

  5. issue: can't set fee_denom manually preferNoSetFee not working chainapsis/keplr-wallet#201
    workaround: set $UST as the main currency on keplr.experimentalSuggestChain to also make it the default fee_currency

6.issue: CORS when accessing some RPC endpoints
workaround: use this extension https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?hl=en

end result

  1. user can donate $ATOM to a cosmos481asdj... (temporarily set to random mainnet address)
  2. user can donate $UST to a terra21398asd... (temporarily set to random mainnet address)

UI changes for review

connected keplr wallet
image
image

keplr in selection
image

added atom in donate form
image

@ap-justin ap-justin self-assigned this Nov 23, 2021
@ap-justin ap-justin added the enhancement New feature or request label Nov 23, 2021
@ap-justin ap-justin added this to the V0.5 milestone Nov 23, 2021
@ap-justin ap-justin linked an issue Nov 23, 2021 that may be closed by this pull request
@ap-justin ap-justin changed the title added keplr UI and connect logic keplr wallet integration Nov 23, 2021
@ap-justin ap-justin marked this pull request as ready for review November 23, 2021 08:14
@SovereignAndrey SovereignAndrey merged commit 97f15e4 into main Nov 24, 2021
@SovereignAndrey SovereignAndrey deleted the keplr branch November 24, 2021 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keplr Wallet Integration (UST & ATOM)
3 participants