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

Implement Auto Top Up UI Setting #412

Open
ygrishajev opened this issue Oct 17, 2024 · 2 comments · May be fixed by #492
Open

Implement Auto Top Up UI Setting #412

ygrishajev opened this issue Oct 17, 2024 · 2 comments · May be fixed by #492
Labels
enhancement New feature or request P1 priority 1 feature/ enhancement

Comments

@ygrishajev
Copy link
Contributor

Depends on #395

Objective

Implement a new UI setting in the existing settings page that allows users to enable or disable automatic top-ups for Akash Network deployments under custodial wallets via AuthZ deployment grants.

Scope

The task infers changes to be done to deploy-web Settings page. New setting should utilise existing transaction signing components.

General Flow

  1. User navigates to Setting page
  2. Either on the initial tab or under Authorizations a new set of settings is added: Automatic Top Up for uAKT and USDC deployments.
  3. Once enabled user is prompted with setting params: funds limit and expiration data.
  4. Once submitted user is required to sign a relevant transaction: /cosmos.authz.v1beta1.MsgGrant for /akash.deployment.v1beta3.DepositDeploymentAuthorization.
  5. The setting state should now reflect it's enabled.
  6. User can disable the setting.
  7. Once disabled user is required to sign relevant revoke transaction.
  8. The setting state should now reflect it's desabled.

Acceptance Criteria

  • New setting is implemented.
  • User should be able to enable or disable auto top ups.
  • Setting state should be reflected in UI.
  • Setting should utilise existing transaction signing components.
  • Authorization state managed by the setting should be also reflected in the Authorizations list in Settings.
  • The feature should be hidden via env var toggle.
  • The feature should be covered by e2e tests.

Design Chart For Reference

Screenshot 2024-10-17 at 10 47 19

Link

@ygrishajev ygrishajev added this to the Deployment Auto Top Up milestone Oct 17, 2024
@ygrishajev ygrishajev changed the title [DEPLOYMENTS AUTO TOP UP] UI Setting Implementation Implement Auto Top Up UI Setting Oct 17, 2024
@ygrishajev ygrishajev added enhancement New feature or request P1 priority 1 feature/ enhancement labels Oct 17, 2024
@Epic-SX
Copy link

Epic-SX commented Oct 18, 2024

Hello @ygrishajev
I am interested in this issue.
I want to handle this issue.
Thank you

@anilmurty
Copy link

tagging @aktdenis for settings page UI to enable/ disable this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1 priority 1 feature/ enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants