Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vault standard with subvaults #28

Merged
merged 8 commits into from
Oct 31, 2023

Conversation

SwayStar123
Copy link
Collaborator

Type of change

  • Improvement (refactoring, restructuring repository, cleaning tech debt, ...)

Changes

The following changes have been made:

  • Adds subvaults feature to the vault standard

MUST return an Option::None if the given asset is not supported.
MUST NOT revert under any circumstances.

### `fn asset_of_vault(vault_asset_id: AssetId) -> Option<AssetId>`
Copy link
Contributor

Choose a reason for hiding this comment

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

Will require storing a mapping in state? Does it make more sense to do this at the indexer layer?

Also, should we return the subId?

@SwayStar123
Copy link
Collaborator Author

@dmihal @bitzoic Formatter breaks due to the example. Wat do?

standards/src_6/examples/simple_vault.sw Outdated Show resolved Hide resolved
@SwayStar123 SwayStar123 marked this pull request as ready for review October 31, 2023 12:43
@SwayStar123 SwayStar123 requested a review from a team as a code owner October 31, 2023 12:43
@SwayStar123 SwayStar123 merged commit 56f2a44 into vault_standard Oct 31, 2023
1 check passed
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.

2 participants