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

Adding expiration for delegates #1063

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Commits on Apr 4, 2023

  1. Additional Metadata Delegates

    * Add support in Delegate and Revoke for Authority, Data,
    CollectionItem, and ProgrammableConfigItem Metadata
    delegates.
    * Remove Update Metadata delegate.
    danenbm committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    5f7b7aa View commit details
    Browse the repository at this point in the history
  2. 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.
    danenbm committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    12ce7d7 View commit details
    Browse the repository at this point in the history
  3. Update tests to support new version of UpdateArgs

    * Also add macro to help destructure UpdateArgs fields.
    danenbm committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    8d3e5f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7fcadd8 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. 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.
    danenbm committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    ce19636 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5789cfb View commit details
    Browse the repository at this point in the history
  3. Fix JS Update test

    danenbm committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    23cfe43 View commit details
    Browse the repository at this point in the history
  4. 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.
    danenbm committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    71db91a View commit details
    Browse the repository at this point in the history
  5. Add collection delegate test

    danenbm committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    8cf0e57 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2920b21 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dc4852c View commit details
    Browse the repository at this point in the history
  8. Regenerate JS API

    danenbm committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    5fd48e7 View commit details
    Browse the repository at this point in the history
  9. Adding expiration for delegates

    * Creation time set when PDA is created.
    * Expiration checked during get_authority_type.
    * This is a draft idea that passes existing tests,
    but expiration functionality has not been thoroughly
    tested.
    danenbm committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    fcb5418 View commit details
    Browse the repository at this point in the history