Skip to content

feat: transfer pre-approvals in Portfolio dApp#2074

Open
fayi-da wants to merge 1 commit into
mainfrom
fayi/2006-portfolio-preapprovals
Open

feat: transfer pre-approvals in Portfolio dApp#2074
fayi-da wants to merge 1 commit into
mainfrom
fayi/2006-portfolio-preapprovals

Conversation

@fayi-da

@fayi-da fayi-da commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #2006

NB: I usually record a video for demonstration but this one required a lot of moving parts, making the video quite cumbersome so i'll just write below what was built.

The PR adds transfer pre-approval management to the Portfolio dApp settings page, allowing users to view and enable/disable pre-approvals for Amulet and utility assets across configured registries.

  • Added a pre-approved assets settings section with per-asset status and enable/disable switches.
  • Added React Query keys/options/hooks for:
    • utility operator lookup
    • per-asset pre-approval status
    • toggling pre-approvals
  • Expanded the utilities wallet-sdk plugin to:
    • create utility transfer pre-approval commands
    • fetch active utility pre-approval contracts
    • cancel existing pre-approvals
  • Data in UI got stale a lot so I reduced default query refetch interval from 15s to 5s
image

@fayi-da fayi-da requested a review from a team as a code owner July 1, 2026 12:05
'#utility-registry-app-v0:Utility.Registry.App.V0.Model.TransferPreapproval:TransferPreapproval'
const TRANSFER_PREAPPROVAL_WITHDRAW_CHOICE = 'TransferPreapproval_Withdraw'

export class WalletSDKUtilitiesPlugin extends SDKPlugin {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@matteolimberto-da @mateuszpiatkowski-da can I get some 👁️ on this plugin pls :) thanks.

Signed-off-by: Fayi Femi-Balogun <fayimora.femibalogun@digitalasset.com>
@fayi-da fayi-da force-pushed the fayi/2006-portfolio-preapprovals branch from 74b8b45 to 40856c5 Compare July 1, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settings Page

1 participant