Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdtf committed Aug 18, 2023
1 parent 7ddf1da commit 74eed27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions docs/concepts/account-linking/child-accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ transaction(childAddress: Address, filterAddress: Address?, filterPath: PublicPa
}
```

#### Multi-Signed Transaction
### Multi-Signed Transaction

We can combine the two transactions in [Publish](#publish) and [Claim](#claim) into a single multi-signed transaction to
achieve Hybrid Custody in a single step.
Expand Down Expand Up @@ -417,8 +417,6 @@ simplicity or both for maximum flexibility.

### Walletless Onboarding

#### Account Creation

The following transaction creates an account, funding creation via the signer and adding the provided public key. You'll
notice this transaction is pretty much your standard account creation. The magic for you will be how you custody the key
for this account (locally, KMS, wallet service, etc.) in a manner that allows your dapp to mediate on-chain interactions
Expand Down
14 changes: 7 additions & 7 deletions docs/concepts/account-linking/parent-accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ And with respect to acting on the assets of child accounts and managing child ac
- Accessing an NFT from a linked account's Collection
- Removing a linked account

### Examples
## Examples

#### Query Whether an Address Has Associated Accounts
### Query Whether an Address Has Associated Accounts

This script will return `true` if a `HybridCustody.Manager` is stored and `false` otherwise

Expand All @@ -165,7 +165,7 @@ pub fun main(parent: Address): Bool {
}
```

#### Query All Accounts Associated with Address
### Query All Accounts Associated with Address

The following script will return an array of addresses associated with a given account's address, inclusive of the
provided address.
Expand All @@ -181,7 +181,7 @@ pub fun main(parent: Address): [Address] {
}
```

#### Query All Owned NFT Metadata
### Query All Owned NFT Metadata

While it is possible to iterate over the storage of all associated accounts in a single script, memory limits prevent
this approach from scaling well.
Expand Down Expand Up @@ -255,7 +255,7 @@ At the end of this query, the caller will have a mapping of `Display` views inde
Address. Note that this script does not take batching into consideration and assumes that each NFT resolves the
`MetadataViews.Display` view type.

#### Query All Account FungibleToken Balances
### Query All Account FungibleToken Balances

Similar to the previous example, we recommend breaking up this task due to memory limits.

Expand Down Expand Up @@ -389,7 +389,7 @@ transaction(childAddress: Address, providerPath: PrivatePath, withdrawID: UInt64
At the end of this transaction, you withdrew an NFT from the specified account using an NFT `Provider` Capability. A
similar approach could get you any allowable Capabilities from a signer's child account.

#### Revoking Secondary Access on a Linked Account
### Revoking Secondary Access on a Linked Account

The expected uses of child accounts for progressive onboarding implies that they will be accounts with shared access. A
user may decide that they no longer want secondary parties to have access to the child account.
Expand All @@ -405,7 +405,7 @@ Flip](https://forum.onflow.org/t/account-linking-authaccount-capabilities-manage
if users want to revoke secondary access, they transfer any assets from the relevant child account and remove it from
their `Manager` altogether.

#### Remove a Child Account
### Remove a Child Account

As mentioned above, if a user no longer wishes to share access with another party, it's recommended that desired assets
be transferred from that account to either their main account or other linked accounts and the linked account be removed
Expand Down

0 comments on commit 74eed27

Please sign in to comment.