-
Notifications
You must be signed in to change notification settings - Fork 37
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
Use the bank module to keep track of scope value owners #2140
base: main
Are you sure you want to change the base?
Conversation
…ed anywhere and anything trying to use the metadata keeper should define their own interface.
…eded when a scope is deleted.
…DOs for re-implementation.
…used when needed.
…eValueOwner endpoints to make it easier to change the stuff called in there.
… slice with nils removed (if it's got nils in it to begin with).
…DLinks since I couldn't actually use them.
…because the new way was sometimes returning an error when it shouldn't.
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…e GetScopeWithValueOwner that gets the scope with the value owner populated. Update the comment on GetScope to indicate that it no longer has the value owner field populated.
…teScopes and GetScopeWithValueOwner.
… owner populated.
…ce it's used in there.
… it stop at the first error, check for nil entries, and also make sure the AccAddr isn't empty. Delete the WithNilsRemoved method. Add TODO to tweak MetadataAddress.String() to not panic when the address is invalid.
…e in a few places.
…in an error in the UpdateValueOwnersCmd.
…f (and only works on a single scope), and refactor SetScopeValueOwners to require that all of the coins already exist.
…face and in the MockBankKeeper, impelement BlockedAddr, MintCoins BurnCoins and SendCoins.
…g the newValueOwner to prevent that lookup when the value owner is bad or blocked and include the burn error if there is one.
…rChangeToProposed, validateScopeValueOwnerChangeFromExisting, and ValidateScopeValueOwnerUpdate methods since the latter isn't used anymore, and the others were only used by that flow. Create IsMarkerAddr and use it to not require markers to sign for value owner chagnes since the send restiction will check for permissions among the signers.
…and replace it with GetScopesForValueOwner.
…ne place and its doing any needed checks.
…ValidateScopeValueOwnersSigners. The new one has most of the content of ValidateUpdateValueOwners. Make all of WriteScope, DeleteScope, UpdateValueOwners, and MigrateValueOwner all use this same verification for value owner changes. Only provide the validatd signers as transfer agents.
…scope and change the TODO on it to decide if we want to require it.
…iple transfer agents.
…oes the check without having to get the account from auth.
…switch to the marker module's version which is more efficient.
…ts regardless of whether any of the existing accounts are marker accounts. It was either that or have it check the proposed too to see see if they might be needed.
…hat logic is now being tested on ValidateScopeValueOwnersSigners.
…ut of the keeper and into types since they might be needed by people trying to use the metadata keeper. Also create the provutils package for some generic stuff that'd probably be handy in other places.
…r utils that didn't have any yet.
…g owners, still process the signers and return them appropriately.
…stValidateWriteScope to fix all the stuff that has broken and add some new cases.
…g and could use some added cases and stuff.
Description
This PR takes the value owner records out of the scopes and uses the bank module to keep track of them by minting a coin with the denom "nft/".
closes: #2137
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments..changelog/unreleased
(see Adding Changes).Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.