Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Principal account creation flow#776

Draft
jmininger wants to merge 8 commits into
developfrom
jam/principal-account-flow
Draft

Principal account creation flow#776
jmininger wants to merge 8 commits into
developfrom
jam/principal-account-flow

Conversation

@jmininger

Copy link
Copy Markdown
Contributor

Adds principal account autofill to gtransfer
TODO:

  • Offer same functionality in the "Watch Account" dialog
  • Add checks to gtransfer that validate other principals not possible to construct with keysets
  • Add a convenient way to use a principal multisig from another chain without having to manually input the keys (unless the existing account has been rotated)

Comment thread frontend/src/Frontend/UI/Transfer.hs
& setValue .~ onNetworkName

d <- uiDropdown Nothing opts filterCfg
onNewSearch <- debounce 0.2 $ _inputElement_input ti

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This was in the other PR but should resolve easily in the merge.

isPrincipalAccName = (==) ':' . flip T.index 1
toPrincipalAccName = AccountName . createKSPrincipal . userToPactKeyset

createKSPrincipal :: KeySet -> Text

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be nice if Pact supplied these (@jwiegley @jmcardon) but this is fine for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants