Agoric / ui-kit

Components and tools for building graphical UIs
https://ui-kit-dwm.pages.dev/
Apache License 2.0
3 stars 3 forks source link

feat: query smart wallet auto-provision fee #97

Closed samsiegart closed 2 months ago

samsiegart commented 3 months ago

refs https://github.com/Agoric/ui-kit/issues/78

This queries the smart wallet auto-provision fee in the wallet connection component, and exposes it in the react useAgoric hook as well.

Also fixed a bug where the purse notifier was updating every time the bank was polled, even if the balances didn't change. (cc @0xpatrickdev)

Testing

Tested on this branch of dapp-offer-up: https://github.com/Agoric/dapp-offer-up/compare/test-network-dropdown

Steps:

For an e2e example with the provision dialog, see https://github.com/Agoric/ui-kit/pull/99

LuqiPan commented 3 months ago

@samsiegart could you help me and other reviewers understand what tests have you done on this PR?

samsiegart commented 3 months ago

@samsiegart could you help me and other reviewers understand what tests have you done on this PR?

Sure yea, just updated the PR description. Lmk if you'd like more clarification or want to walk through it together. We're pretty close to being able to set up an example dapp in this repo with e2e testing, which would make this type of thing easier to test.