-
Notifications
You must be signed in to change notification settings - Fork 517
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
Changes to new Update
instruction
#1058
Commits on Apr 4, 2023
-
* Add support in Delegate and Revoke for Authority, Data, CollectionItem, and ProgrammableConfigItem Metadata delegates. * Remove Update Metadata delegate.
Configuration menu - View commit details
-
Copy full SHA for 5f7b7aa - Browse repository at this point
Copy the full SHA 5f7b7aaView commit details -
Changes to Update to support new and changed delegates
* Modify authority check to separate out item and collection-level delegates. * Add V2 Update args struct to allow user to specify token standard. * Check that new delegates are only changing metadata for which they are meant to have access. * Modify Update handler to update metadata fields based on the delegate type.
Configuration menu - View commit details
-
Copy full SHA for 12ce7d7 - Browse repository at this point
Copy the full SHA 12ce7d7View commit details -
Update tests to support new version of UpdateArgs
* Also add macro to help destructure UpdateArgs fields.
Configuration menu - View commit details
-
Copy full SHA for 8d3e5f4 - Browse repository at this point
Copy the full SHA 8d3e5f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fcadd8 - Browse repository at this point
Copy the full SHA 7fcadd8View commit details
Commits on Apr 6, 2023
-
Put enums back in original order
* Update is still changed to Data but order is preserved. * Also remove unnecessary Option for token_record in Update. * Add some comments clarifying authority types in Unverify.
Configuration menu - View commit details
-
Copy full SHA for ce19636 - Browse repository at this point
Copy the full SHA ce19636View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5789cfb - Browse repository at this point
Copy the full SHA 5789cfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 23cfe43 - Browse repository at this point
Copy the full SHA 23cfe43View commit details -
Modify DA test util object to return delegate or token record
* Return the value derived in the delegate method. * Also add a test for Authority delegate.
Configuration menu - View commit details
-
Copy full SHA for 71db91a - Browse repository at this point
Copy the full SHA 71db91aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cf0e57 - Browse repository at this point
Copy the full SHA 8cf0e57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2920b21 - Browse repository at this point
Copy the full SHA 2920b21View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc4852c - Browse repository at this point
Copy the full SHA dc4852cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fd48e7 - Browse repository at this point
Copy the full SHA 5fd48e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff4d372 - Browse repository at this point
Copy the full SHA ff4d372View commit details
Commits on Apr 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cd49af1 - Browse repository at this point
Copy the full SHA cd49af1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a6e884 - Browse repository at this point
Copy the full SHA 7a6e884View commit details
Commits on Apr 11, 2023
-
Allow collection delegates to use update arg val for permission
* If the collection toggle value passed in by a collection-level delegate contains a new collection value, that is used when determining authority. * This allows for setting a collection using a collection delegate when previously there was no collection in the metadata. * Also add tests for delegates on collection parent: collection delegate can update members of collection but collection item delegate cannot. * Also add test to fail updating to a verified collection.
Configuration menu - View commit details
-
Copy full SHA for ee4219d - Browse repository at this point
Copy the full SHA ee4219dView commit details -
Test that collection programmable config delegate cannot update colle…
…ction This is important because the passed in collection is also used for permissions. If we allowed the collection-level programmable config delegate to pass in a new collection, it would also use that value in `get_authority_type`.
Configuration menu - View commit details
-
Copy full SHA for 2bda353 - Browse repository at this point
Copy the full SHA 2bda353View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e2e360 - Browse repository at this point
Copy the full SHA 7e2e360View commit details -
Update deps in Cargo.lock and add test using old TM lib
* Added a test that uses old token-metadata lib to build the instructions and interact with the data. * As part of this needed to run `cargo update -p mpl-token-metadata@1.9.1` which resulted in the following updates to lateset versions: Updating crates.io index Updating git repository `https://github.com/metaplex-foundation/rooster` Updating mpl-token-metadata v1.8.0 -> v1.9.1 Updating mpl-utils v0.0.6 -> v0.1.0 Updating rooster v0.1.0 (https://github.com/metaplex-foundation/rooster#6923ee3b) -> #ca1221c9
Configuration menu - View commit details
-
Copy full SHA for 61f863e - Browse repository at this point
Copy the full SHA 61f863eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1612a1 - Browse repository at this point
Copy the full SHA c1612a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 882084f - Browse repository at this point
Copy the full SHA 882084fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2facf40 - Browse repository at this point
Copy the full SHA 2facf40View commit details
Commits on Apr 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7759e41 - Browse repository at this point
Copy the full SHA 7759e41View commit details
Commits on Apr 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1aea4e4 - Browse repository at this point
Copy the full SHA 1aea4e4View commit details
Commits on Apr 19, 2023
-
Make Data delegate collection-level and add DataItem delegate
Modify tests as well
Configuration menu - View commit details
-
Copy full SHA for 2e61c77 - Browse repository at this point
Copy the full SHA 2e61c77View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe489a6 - Browse repository at this point
Copy the full SHA fe489a6View commit details -
Use different UpdateArg types for different delegates (#1066)
* Use different UpdateArg types for different delegates * Change new UpdateArg types to V2 Also use a Default method to cleanup InternalUpdateArgs
Configuration menu - View commit details
-
Copy full SHA for 308efec - Browse repository at this point
Copy the full SHA 308efecView commit details
Commits on Apr 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 84e333a - Browse repository at this point
Copy the full SHA 84e333aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7670848 - Browse repository at this point
Copy the full SHA 7670848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3afec31 - Browse repository at this point
Copy the full SHA 3afec31View commit details -
Update tests for new UpdateArgs variants
- Adding authorization data to all UpdateArgs variants. - Add helper functions to create default versions for each UpdateArgs variant. - Add back in legacy support for ProgrammableConfig delegate so that it can use V1 UpdateArgs. - Update tests to use new UpdateArgs. - Add more tests for ProgrammableConfig delegate. - Update "old lib" test to test ProgrammableConfig delegate.
Configuration menu - View commit details
-
Copy full SHA for a075afd - Browse repository at this point
Copy the full SHA a075afdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7acf16c - Browse repository at this point
Copy the full SHA 7acf16cView commit details
Commits on Apr 24, 2023
-
Make delegate_record, token, and edition readonly
Make consistent in instruction builder and shank annotation.
Configuration menu - View commit details
-
Copy full SHA for 1fcb165 - Browse repository at this point
Copy the full SHA 1fcb165View commit details
Commits on Apr 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8f066c0 - Browse repository at this point
Copy the full SHA 8f066c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5241144 - Browse repository at this point
Copy the full SHA 5241144View commit details
Commits on Apr 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0cc7129 - Browse repository at this point
Copy the full SHA 0cc7129View commit details -
Configuration menu - View commit details
-
Copy full SHA for be50b1e - Browse repository at this point
Copy the full SHA be50b1eView commit details
Commits on Apr 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f96b81a - Browse repository at this point
Copy the full SHA f96b81aView commit details -
* Remove InternalUpdateArgs struct and `From` trait implementation. * Deconstruct `UpdateArgs` where used. * Remove redundant authority type and metadata delegate role checks from `Metadata::update_v1` because `validate_update` already checks that the authority is allowed to perform an update, and the `UpdateArgs` enforces that the authority is only changing fields for which it is authorized.
Configuration menu - View commit details
-
Copy full SHA for b284445 - Browse repository at this point
Copy the full SHA b284445View commit details -
Allow passing in current token standard
Also make match statements in validate_update more concise.
Configuration menu - View commit details
-
Copy full SHA for 540c093 - Browse repository at this point
Copy the full SHA 540c093View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cf70af - Browse repository at this point
Copy the full SHA 8cf70afView commit details -
Configuration menu - View commit details
-
Copy full SHA for d131663 - Browse repository at this point
Copy the full SHA d131663View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08ff9d8 - Browse repository at this point
Copy the full SHA 08ff9d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27bf163 - Browse repository at this point
Copy the full SHA 27bf163View commit details -
* Holder authority test. * Pass with same token standard being passed in. * Token doesn't match mint test. * Metadata doesn't match mint test. * Wrong edition test. * Some failure cases around collection-level delegates.
Configuration menu - View commit details
-
Copy full SHA for e586ea0 - Browse repository at this point
Copy the full SHA e586ea0View commit details