onflow/hybrid-custody

Consolidate setup_owned_account & publish_to_parent for single setup & publish txn

sisyphusSmiling opened this issue · 0 comments

Ideally, publishing to parent will occur in a single app-initiated transaction with the following signature:

transaction(parent: Address, factoryAddress: Address, filterAddress: Address)

This transaction does the following:

  1. Linking AuthAccount at HybridCustody.LinkedAccountPrivatePath if needed
  2. Configure OwnedAccount if it doesn't exist
  3. Retrieve CapabilityFilter.Filter and CapabilityFactory.Manager Capabilities from specified args
  4. Call OwnedAccount.publishToParent(), publishing a ChildAccount Capability to the specified parent account