Consolidate setup_owned_account & publish_to_parent for single setup & publish txn
sisyphusSmiling opened this issue · 0 comments
sisyphusSmiling commented
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:
- Linking AuthAccount at
HybridCustody.LinkedAccountPrivatePath
if needed - Configure
OwnedAccount
if it doesn't exist - Retrieve
CapabilityFilter.Filter
andCapabilityFactory.Manager
Capabilities from specified args - Call
OwnedAccount.publishToParent()
, publishing aChildAccount
Capability to the specified parent account