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

feat: Add Multichain API to @metamask/multichain #4813

Draft
wants to merge 126 commits into
base: main
Choose a base branch
from
Draft

Commits on Oct 10, 2024

  1. Initial package

    jiexi committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    bc56104 View commit details
    Browse the repository at this point in the history
  2. Fix caip25Permission

    jiexi committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    a4b52ad View commit details
    Browse the repository at this point in the history
  3. scopes

    jiexi committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    86ab58a View commit details
    Browse the repository at this point in the history
  4. Fix middlewares

    jiexi committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    186d4b3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a93d1d View commit details
    Browse the repository at this point in the history
  6. Rename handlers js to ts

    jiexi committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    231bcaa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4e52fc0 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. fix: typescript + linting (#4788)

    ## Explanation
    This PR fixes a lot of the linting and typescript errors. still some
    left but this covers a lot of it.
    
    
    <!--
    Thanks for your contribution! Take a moment to answer these questions so
    that reviewers have the information they need to properly understand
    your changes:
    
    * What is the current state of things and why does it need to change?
    * What is the solution your changes offer and how does it work?
    * Are there any changes whose purpose might not obvious to those
    unfamiliar with the domain?
    * If your primary goal was to update one package but you found you had
    to update another one along the way, why did you do so?
    * If you had to upgrade a dependency, why did you do so?
    -->
    
    ## References
    
    <!--
    Are there any issues that this pull request is tied to?
    Are there other links that reviewers should consult to understand these
    changes better?
    Are there client or consumer pull requests to adopt any breaking
    changes?
    
    For example:
    
    * Fixes #12345
    * Related to #67890
    -->
    
    ## Changelog
    
    <!--
    If you're making any consumer-facing changes, list those changes here as
    if you were updating a changelog, using the template below as a guide.
    
    (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
    FIXED. For security-related issues, follow the Security Advisory
    process.)
    
    Please take care to name the exact pieces of the API you've added or
    changed (e.g. types, interfaces, functions, or methods).
    
    If there are any breaking changes, make sure to offer a solution for
    consumers to follow once they upgrade to the changes.
    
    Finally, if you're only making changes to development scripts or tests,
    you may replace the template below with "None".
    -->
    
    ### `@metamask/package-a`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ### `@metamask/package-b`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ## Checklist
    
    - [ ] I've updated the test suite for new or updated code as appropriate
    - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
    updated code as appropriate
    - [ ] I've highlighted breaking changes using the "BREAKING" category
    above as appropriate
    - [ ] I've prepared draft pull requests for clients and consumer
    packages to resolve any breaking changes
    
    ---------
    
    Co-authored-by: Jiexi Luan <[email protected]>
    shanejonas and jiexi authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    151eaac View commit details
    Browse the repository at this point in the history
  2. Added exports for multichain package (#4789)

    ## Explanation
    
    <!--
    Thanks for your contribution! Take a moment to answer these questions so
    that reviewers have the information they need to properly understand
    your changes:
    
    * What is the current state of things and why does it need to change?
    * What is the solution your changes offer and how does it work?
    * Are there any changes whose purpose might not obvious to those
    unfamiliar with the domain?
    * If your primary goal was to update one package but you found you had
    to update another one along the way, why did you do so?
    * If you had to upgrade a dependency, why did you do so?
    -->
    Added ESM exports for multichain package
    
    ## References
    
    <!--
    Are there any issues that this pull request is tied to?
    Are there other links that reviewers should consult to understand these
    changes better?
    Are there client or consumer pull requests to adopt any breaking
    changes?
    
    For example:
    
    * Fixes #12345
    * Related to #67890
    -->
    
    ## Changelog
    
    <!--
    If you're making any consumer-facing changes, list those changes here as
    if you were updating a changelog, using the template below as a guide.
    
    (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
    FIXED. For security-related issues, follow the Security Advisory
    process.)
    
    Please take care to name the exact pieces of the API you've added or
    changed (e.g. types, interfaces, functions, or methods).
    
    If there are any breaking changes, make sure to offer a solution for
    consumers to follow once they upgrade to the changes.
    
    Finally, if you're only making changes to development scripts or tests,
    you may replace the template below with "None".
    -->
    
    ### `@metamask/package-a`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ### `@metamask/package-b`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ## Checklist
    
    - [ ] I've updated the test suite for new or updated code as appropriate
    - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
    updated code as appropriate
    - [ ] I've highlighted breaking changes using the "BREAKING" category
    above as appropriate
    - [ ] I've prepared draft pull requests for clients and consumer
    packages to resolve any breaking changes
    shanejonas authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    85a723e View commit details
    Browse the repository at this point in the history
  3. Add requires

    jiexi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a0bb278 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1cd8ef2 View commit details
    Browse the repository at this point in the history
  5. kill scope index barrel

    jiexi committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    c636def View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. barrel

    jiexi committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a6aa7c1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    42134f7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a13b9c7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    81db877 View commit details
    Browse the repository at this point in the history
  5. fix caip25permission spec

    jiexi committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a3fc263 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    afe5cb9 View commit details
    Browse the repository at this point in the history
  7. lint

    jiexi committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    9ea78be View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5650d31 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Configuration menu
    Copy the full SHA
    df5167e View commit details
    Browse the repository at this point in the history
  2. fix snapshot

    jiexi committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    9446b0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f65ca24 View commit details
    Browse the repository at this point in the history
  4. add KnownWalletScopeString enum

    jiexi committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    941849d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a250de2 View commit details
    Browse the repository at this point in the history
  6. lint

    jiexi committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    aa7ba39 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8415be6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c7f510e View commit details
    Browse the repository at this point in the history
  9. Fix caip25permission type

    jiexi committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    4afa8f8 View commit details
    Browse the repository at this point in the history
  10. Fix caip25permission type

    jiexi committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    597e837 View commit details
    Browse the repository at this point in the history
  11. small dry todo fix

    adonesky1 committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    1872188 View commit details
    Browse the repository at this point in the history
  12. another small dry

    adonesky1 committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    c5d8005 View commit details
    Browse the repository at this point in the history
  13. Added handler wrappers to better integrate with existing middleware (#…

    …4796)
    
    Add handler wrappers to better integrate with existing middleware in
    extension
    
    ---------
    
    Co-authored-by: Jiexi Luan <[email protected]>
    shanejonas and jiexi authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    54f7c49 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ada451d View commit details
    Browse the repository at this point in the history
  15. lint

    jiexi committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    2322e39 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    9b21677 View commit details
    Browse the repository at this point in the history
  2. Jl/caip multichain/update scope object account types (#4803)

    ## Explanation
    
    * Make `accounts` required on `ScopeObject`
    * Make `flattenScope` also add empty `accounts` array if missing
    * Rename `flattenScope` to `normalizeScope`
    * Rename `validateAndFlattenScopes` to `validateAndNormalizeScopes`
    * Rename `flattenMergeScopes` to `normalizeAndMergeScopes`
    
    ## References
    
    <!--
    Are there any issues that this pull request is tied to?
    Are there other links that reviewers should consult to understand these
    changes better?
    Are there client or consumer pull requests to adopt any breaking
    changes?
    
    For example:
    
    * Fixes #12345
    * Related to #67890
    -->
    
    ## Changelog
    
    <!--
    If you're making any consumer-facing changes, list those changes here as
    if you were updating a changelog, using the template below as a guide.
    
    (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
    FIXED. For security-related issues, follow the Security Advisory
    process.)
    
    Please take care to name the exact pieces of the API you've added or
    changed (e.g. types, interfaces, functions, or methods).
    
    If there are any breaking changes, make sure to offer a solution for
    consumers to follow once they upgrade to the changes.
    
    Finally, if you're only making changes to development scripts or tests,
    you may replace the template below with "None".
    -->
    
    ### `@metamask/package-a`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ### `@metamask/package-b`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ## Checklist
    
    - [ ] I've updated the test suite for new or updated code as appropriate
    - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
    updated code as appropriate
    - [ ] I've highlighted breaking changes using the "BREAKING" category
    above as appropriate
    - [ ] I've prepared draft pull requests for clients and consumer
    packages to resolve any breaking changes
    jiexi authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    00a41cb View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    f30dd8b View commit details
    Browse the repository at this point in the history
  2. fix merge

    adonesky1 committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    71085a0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2be8f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    644f4d0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1b78bbc View commit details
    Browse the repository at this point in the history
  6. remove API related logic

    jiexi committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    fc28c89 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ba25ce5 View commit details
    Browse the repository at this point in the history
  8. remove api related deps

    jiexi committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    4ceb118 View commit details
    Browse the repository at this point in the history
  9. Revert "remove API related logic"

    This reverts commit fc28c89.
    jiexi committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    a36ec4d View commit details
    Browse the repository at this point in the history
  10. Revert "remove api related deps"

    This reverts commit 4ceb118.
    jiexi committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    95dfbc9 View commit details
    Browse the repository at this point in the history
  11. Fix package.json

    jiexi committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    9bcf869 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    633485c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    609518a View commit details
    Browse the repository at this point in the history
  14. fix bad merge

    jiexi committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    afb2e2c View commit details
    Browse the repository at this point in the history
  15. fix bad merge

    jiexi committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    7c97afe View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ba210ac View commit details
    Browse the repository at this point in the history
  17. Update packages/controller-utils/src/util.test.ts

    Co-authored-by: Mark Stacey <[email protected]>
    jiexi and Gudahtt authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    109a7bf View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    1e67641 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    32b213a View commit details
    Browse the repository at this point in the history
  20. add account support check in validator (#4816)

    ## Explanation
    
    Mirrors the [wallet_createSession handler
    
    ](https://github.com/MetaMask/metamask-extension/pull/27782/files#diff-107459889087f2776c6db636bd45498bef6749302f9d2dc633b4de17fede40a3R96-R108)
    in how eth account support is checked/asserted. Opted to do this rather
    than modify `assertScopeSupported` because the `bucketScopes` helper
    also relies on `assertScopedSupported` but doesn't care about accounts
    (which is why eth accounts are checked outside of assertScopeSupported
    in the wallet_createSession handler currently)
    
    ## References
    
    <!--
    Are there any issues that this pull request is tied to?
    Are there other links that reviewers should consult to understand these
    changes better?
    Are there client or consumer pull requests to adopt any breaking
    changes?
    
    For example:
    
    * Fixes #12345
    * Related to #67890
    -->
    
    ## Changelog
    
    <!--
    If you're making any consumer-facing changes, list those changes here as
    if you were updating a changelog, using the template below as a guide.
    
    (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
    FIXED. For security-related issues, follow the Security Advisory
    process.)
    
    Please take care to name the exact pieces of the API you've added or
    changed (e.g. types, interfaces, functions, or methods).
    
    If there are any breaking changes, make sure to offer a solution for
    consumers to follow once they upgrade to the changes.
    
    Finally, if you're only making changes to development scripts or tests,
    you may replace the template below with "None".
    -->
    
    ### `@metamask/package-a`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ### `@metamask/package-b`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ## Checklist
    
    - [ ] I've updated the test suite for new or updated code as appropriate
    - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
    updated code as appropriate
    - [ ] I've highlighted breaking changes using the "BREAKING" category
    above as appropriate
    - [ ] I've prepared draft pull requests for clients and consumer
    packages to resolve any breaking changes
    
    ---------
    
    Co-authored-by: Alex Donesky <[email protected]>
    jiexi and adonesky1 authored Oct 17, 2024
    Configuration menu
    Copy the full SHA
    dae4f73 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b673f62 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    d7ed999 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b4b65e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d752b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fad338d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5bf15a2 View commit details
    Browse the repository at this point in the history
  6. Revert "remove caip-permission-adapter-middleware"

    This reverts commit fad338d.
    jiexi committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    8208931 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c5980c6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    106e986 View commit details
    Browse the repository at this point in the history
  9. Revert "remove caip-permission-adapter-middleware from exports"

    This reverts commit c5980c6.
    jiexi committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    5c6bb8f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a7a8e6e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0962fb2 View commit details
    Browse the repository at this point in the history
  12. Revert "remove types/@metamask/eth-json-rpc-filters.d.ts"

    This reverts commit a7a8e6e.
    jiexi committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    54829e0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6b367f0 View commit details
    Browse the repository at this point in the history
  14. add back readme content

    adonesky1 committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    42297f9 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    dc31704 View commit details
    Browse the repository at this point in the history
  16. yarn lock

    jiexi committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    56176d1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    26acfcd View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2e3bfb4 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    89d6101 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    b7ea5d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. bump network-controller dep

    jiexi committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    7203358 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    046133a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eea9f46 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    257618a View commit details
    Browse the repository at this point in the history
  5. Fix ScopedProperties type

    jiexi committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    67b222e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ead2f43 View commit details
    Browse the repository at this point in the history
  7. Loosen get adapter param types (#4835)

    ## Explanation
    
    Loosen `getEthAccounts` and `getPermittedEthChainIds` param type
    
    ## References
    
    <!--
    Are there any issues that this pull request is tied to?
    Are there other links that reviewers should consult to understand these
    changes better?
    Are there client or consumer pull requests to adopt any breaking
    changes?
    
    For example:
    
    * Fixes #12345
    * Related to #67890
    -->
    
    ## Changelog
    
    <!--
    If you're making any consumer-facing changes, list those changes here as
    if you were updating a changelog, using the template below as a guide.
    
    (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
    FIXED. For security-related issues, follow the Security Advisory
    process.)
    
    Please take care to name the exact pieces of the API you've added or
    changed (e.g. types, interfaces, functions, or methods).
    
    If there are any breaking changes, make sure to offer a solution for
    consumers to follow once they upgrade to the changes.
    
    Finally, if you're only making changes to development scripts or tests,
    you may replace the template below with "None".
    -->
    
    ### `@metamask/package-a`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ### `@metamask/package-b`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ## Checklist
    
    - [ ] I've updated the test suite for new or updated code as appropriate
    - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
    updated code as appropriate
    - [ ] I've highlighted breaking changes using the "BREAKING" category
    above as appropriate
    - [ ] I've prepared draft pull requests for clients and consumer
    packages to resolve any breaking changes
    jiexi authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    009fb4a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e34032b View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Seperate types and constants

    jiexi committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    0631c48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4685547 View commit details
    Browse the repository at this point in the history
  3. remove jest.resetAllMocks

    jiexi committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    18d1112 View commit details
    Browse the repository at this point in the history
  4. yarn lock

    jiexi committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    1ba77c7 View commit details
    Browse the repository at this point in the history
  5. yarn

    jiexi committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    bb50a19 View commit details
    Browse the repository at this point in the history
  6. 100% coverage

    jiexi committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    7d32a0b View commit details
    Browse the repository at this point in the history
  7. Remove accountsChanged and chainChanged from KnownNotifications (sinc…

    …e they are implicitly granted now)
    jiexi committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    f095370 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    62929a4 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Update packages/multichain/src/scope/transform.test.ts

    Co-authored-by: Elliot Winkler <[email protected]>
    jiexi and mcmire authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    491552f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd0f50f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    41dcc83 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. Merge branch 'main' into caip-multichain-api

    # Conflicts:
    #	packages/multichain/package.json
    #	packages/multichain/src/adapters/caip-permission-adapter-eth-accounts.test.ts
    #	packages/multichain/src/adapters/caip-permission-adapter-eth-accounts.ts
    #	packages/multichain/src/adapters/caip-permission-adapter-permittedChains.test.ts
    #	packages/multichain/src/adapters/caip-permission-adapter-permittedChains.ts
    #	packages/multichain/src/caip25Permission.test.ts
    #	packages/multichain/src/caip25Permission.ts
    #	packages/multichain/src/index.test.ts
    #	packages/multichain/src/index.ts
    #	packages/multichain/src/scope/assert.test.ts
    #	packages/multichain/src/scope/assert.ts
    #	packages/multichain/src/scope/authorization.test.ts
    #	packages/multichain/src/scope/authorization.ts
    #	packages/multichain/src/scope/constants.ts
    #	packages/multichain/src/scope/supported.test.ts
    #	packages/multichain/src/scope/supported.ts
    #	packages/multichain/src/scope/transform.test.ts
    #	packages/multichain/src/scope/transform.ts
    #	packages/multichain/src/scope/types.ts
    #	packages/multichain/src/scope/validation.test.ts
    #	packages/multichain/src/scope/validation.ts
    #	yarn.lock
    jiexi committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    d80c9ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6eb3e87 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8374f37 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d6dfc71 View commit details
    Browse the repository at this point in the history
  5. CAIP Multichain API with permission refactor changes (#4961)

    ## Explanation
    
    ~~This diff is a bit messy since it also brings in the [core PR that
    refactors the CAIP-25
    permission](#4950) which the
    [caip-multichain-api](https://github.com/MetaMask/core/tree/caip-multichain-api)
    branch doesn't have yet.~~
    
    The main thing this PR does is adds `getSessionScopes()` which massages
    the new CAIP-25 permission into a `NormalizedScopesObject`
    
    
    ## References
    
    <!--
    Are there any issues that this pull request is tied to?
    Are there other links that reviewers should consult to understand these
    changes better?
    Are there client or consumer pull requests to adopt any breaking
    changes?
    
    For example:
    
    * Fixes #12345
    * Related to #67890
    -->
    
    ## Changelog
    
    <!--
    If you're making any consumer-facing changes, list those changes here as
    if you were updating a changelog, using the template below as a guide.
    
    (CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
    FIXED. For security-related issues, follow the Security Advisory
    process.)
    
    Please take care to name the exact pieces of the API you've added or
    changed (e.g. types, interfaces, functions, or methods).
    
    If there are any breaking changes, make sure to offer a solution for
    consumers to follow once they upgrade to the changes.
    
    Finally, if you're only making changes to development scripts or tests,
    you may replace the template below with "None".
    -->
    
    ### `@metamask/package-a`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ### `@metamask/package-b`
    
    - **<CATEGORY>**: Your change here
    - **<CATEGORY>**: Your change here
    
    ## Checklist
    
    - [ ] I've updated the test suite for new or updated code as appropriate
    - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or
    updated code as appropriate
    - [ ] I've highlighted breaking changes using the "BREAKING" category
    above as appropriate
    - [ ] I've prepared draft pull requests for clients and consumer
    packages to resolve any breaking changes
    
    ---------
    
    Co-authored-by: Alex Donesky <[email protected]>
    jiexi and adonesky1 authored Nov 21, 2024
    Configuration menu
    Copy the full SHA
    0d167a3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    17af395 View commit details
    Browse the repository at this point in the history
  7. Caip multichain api normalized to internal (#4964)

    ## Explanation
    
    * Add getInternalScopesObject
    * Export getInternalScopesObject and getSessionScopes
    
    ---------
    
    Co-authored-by: Alex Donesky <[email protected]>
    jiexi and adonesky1 authored Nov 21, 2024
    Configuration menu
    Copy the full SHA
    62975b6 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. Configuration menu
    Copy the full SHA
    19a5983 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    439ef9b View commit details
    Browse the repository at this point in the history
  3. export Eip1193OnlyMethods

    jiexi committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    7d61af6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b5d0cd7 View commit details
    Browse the repository at this point in the history
  5. Revert "export Eip1193OnlyMethods"

    This reverts commit 7d61af6.
    jiexi committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    97b4a09 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6732cd9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e03033c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e1793ff View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4c9be0e View commit details
    Browse the repository at this point in the history
  10. cleanup

    adonesky1 committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    a25c05d View commit details
    Browse the repository at this point in the history
  11. lint

    adonesky1 committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    b35bdc3 View commit details
    Browse the repository at this point in the history
  12. question

    adonesky1 committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    2ad05a3 View commit details
    Browse the repository at this point in the history
  13. small cleanup

    adonesky1 committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    79acd26 View commit details
    Browse the repository at this point in the history
  14. more cleanup

    adonesky1 committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    32aa807 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. remove lingering console

    adonesky1 committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    121ba94 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2024

  1. this seems like a reasonable tweak (#4980)

    Not sure if I'm missing something about why we were refetching the
    middleware after passing in the whole entry...?
    adonesky1 authored Nov 26, 2024
    Configuration menu
    Copy the full SHA
    6d4bd04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f4c297 View commit details
    Browse the repository at this point in the history
  3. 100% test coverage

    adonesky1 committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    5a621b3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aef155f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    944be53 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5f98801 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. Configuration menu
    Copy the full SHA
    b79f827 View commit details
    Browse the repository at this point in the history