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

[WIP] SyncEngine for specific protocols + delegate sync. #836

Merged
merged 17 commits into from
Aug 23, 2024

Commits on Aug 23, 2024

  1. Configuration menu
    Copy the full SHA
    e182aaa View commit details
    Browse the repository at this point in the history
  2. PermissionsApi for Agent, permissions API for Web5 (#833)

    This refactors a lot of what's in #824 with regards to creating/fetching grants.
    
    Satisfies: #827
    
    Introduces a `PermissionsApi` interface and an `AgentPermissionsApi` concrete implementation.
    
    The interface implements the following methods `fetchGrants`, `fetchRequests`, `isGrantRevoked`, `createGrant`, `createRequest`, `createRevocation` as convenience methods for dealing with the built-in permission protocol records.
    
    The `AgentPermissionsApi` implements an additional static method `matchGrantFromArray` which was moved from a `PermissionsUtil` class, which is used to find the appropriate grant to use when authoring a message.
    
    A Private API usedin a connected state to find and cache the correct grants to use for the request.
    
    A Permissions API which implements `request`, `grant`, `queryRequests`, and `queryGrants` that a user can utilize
    
    The `Web5` permissions api introduces 3 helper classes to represent permissions:
     Class to represent a permission request record. It implements convenience methods similar to the `Record` class where you can `store()`, `import()` or `send()` the underlying request record. Additionally a `grant()` method will create a `PermissionGrant` object.
    
     Class to represent a grant record. It implements convenience methods similar to the `Record` class where you can `store()`, `import()` or `send()` the underlying grant record. Additionally a `revoke()` method will create a `GrantRevocation` object, and `isRevoked()` will check if the underlying grant has been revoked.
    
     Class to represent a permission grant revocation record. It implements convenience methods similar to the `Record` class where you can `store()`  or `send()` the underlying revocation record.
    LiranCohen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    22e4947 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9e0c041 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    03fecb6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f44081b View commit details
    Browse the repository at this point in the history
  6. sync enhancements

    LiranCohen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    10699af View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3734cf9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a0ecae1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7a10732 View commit details
    Browse the repository at this point in the history
  10. fix after rebase

    LiranCohen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    b2734c3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b3e74c6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ed24f2d View commit details
    Browse the repository at this point in the history
  13. empty event log on error

    LiranCohen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    f856d7f View commit details
    Browse the repository at this point in the history
  14. assign specific protocols to sync based on the results of processing …

    …the grants from wallet connect
    LiranCohen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    58cc290 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    34ad0f7 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1adf942 View commit details
    Browse the repository at this point in the history
  17. add changesets

    LiranCohen committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    96944b7 View commit details
    Browse the repository at this point in the history