akash-network / console

Deploy docker containers on the Akash Network
https://console.akash.network
Apache License 2.0
84 stars 54 forks source link

Implement Auto Top Up UI Setting #412

Open ygrishajev opened 1 month ago

ygrishajev commented 1 month ago

Depends on https://github.com/akash-network/console/issues/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

Design Chart For Reference

Screenshot 2024-10-17 at 10 47 19

Link

Epic-SX commented 1 month ago

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

anilmurty commented 6 days ago

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