-
Notifications
You must be signed in to change notification settings - Fork 5k
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: CAIP Multichain (New) #27782
Draft
jiexi
wants to merge
492
commits into
caip25-permission-migration
Choose a base branch
from
jl/caip-multichain-migrate-core
base: caip25-permission-migration
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,658
−1,887
Draft
feat: CAIP Multichain (New) #27782
Changes from 250 commits
Commits
Show all changes
492 commits
Select commit
Hold shift + click to select a range
baffa1c
Merge branch 'develop' into caip-multichain
jiexi d165506
Ignore sessionId. Remove hardcoded sessionId (#27510)
jiexi 15f622a
Merge branch 'develop' into caip-multichain
jiexi b6ca49a
Merge branch 'develop' into caip-multichain
jiexi 68db523
Do not assert unsupported required scopes (#27520)
jiexi 4126dd3
Jl/caip multichain/fix connection flow for permitted chains (#27471)
jiexi 1101102
Handle getCaveat missing permission throws properly (#27549)
jiexi a92853a
CAIP Multichain: deep clone flattened scopeObjects (#27404)
jiexi 9ffa4b5
Merge branch 'develop' into caip-multichain
jiexi a392615
fix: bump api-specs on caip-multichain feature branch (#27585)
shanejonas a213b7e
Merge branch 'develop' into caip-multichain
jiexi 91eef62
Merge branch 'develop' into caip-multichain
jiexi bd91fb0
Merge branch 'develop' into caip-multichain
jiexi 8bcc777
Get session revoke session should not throw (#27677)
jiexi c6242ee
Merge branch 'develop' into caip-multichain
jiexi 2852118
Merge branch 'develop' into caip-multichain
jiexi db8c573
Merge branch 'develop' into caip-multichain
jiexi 2456465
fix: fix api spec multichain bump issues (#27669)
shanejonas 48d19e2
Merge branch 'develop' into caip-multichain
jiexi a19cf08
fix: get wallet_getSession/revokeSession passing (#27741)
shanejonas 6c3bc39
Multichain: Lint (#27745)
jiexi 42a1c8b
Merge branch 'develop' into caip-multichain
jiexi c3b7e52
Merge branch 'develop' into caip-multichain
jiexi 7221bb6
Move sign methods back into eip155:x (#27771)
jiexi 947dcd7
Jl/caip multichain/fix wallet eip155 eth account assignment (#27769)
jiexi 0f9ba64
Multichain: Fix Subscriptions (#27682)
jiexi 14de6d2
Assign eth accounts to wallets (#27777)
jiexi 50ec84a
initial pass
jiexi 2e06555
Merge branch 'develop' into caip-multichain
jiexi f4e0bb2
Merge branch 'develop' into caip-multichain
jiexi 200a1ba
Import attempt
jiexi 4f8014e
Merge branch 'caip-multichain' into jl/caip-multichain-migrate-core
jiexi 8f5c024
use barrel exported package
jiexi 146f093
Merge branch 'develop' into caip-multichain
jiexi 33a559f
Merge branch 'caip-multichain' into jl/caip-multichain-migrate-core
jiexi a4b2600
Update LavaMoat policies
metamaskbot 26dc532
Merge branch 'develop' into caip-multichain
jiexi 7ca1867
Merge branch 'caip-multichain' into jl/caip-multichain-migrate-core
jiexi e4e5793
working preview
jiexi 28ba445
Merge branch 'develop' into caip-multichain
jiexi cd52a18
Merge branch 'caip-multichain' into jl/caip-multichain-migrate-core
jiexi cd1861d
Multichain: Fix snaps connection (#27803)
jiexi f66a26b
Merge branch 'develop' into caip-multichain
jiexi 10fb361
upsert empty wallet:eip155 on add (#27845)
jiexi ccb56c5
Merge branch 'caip-multichain' into jl/caip-multichain-migrate-core
jiexi 6adb2e4
Merge branch 'develop' into caip-multichain
jiexi bf0f1f8
Merge branch 'caip-multichain' into jl/caip-multichain-migrate-core
jiexi 521b278
move processScopedProperties validateScopedPropertyEip3085 into creat…
jiexi 884c830
lint
jiexi 70ce992
Fix caipPermissionAdapterMiddleware import casing
jiexi df11376
Merge branch 'develop' into caip-multichain
jiexi aa5ed57
Merge branch 'caip-multichain' into jl/caip-multichain-migrate-core
jiexi aa03836
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi ed4c253
Update app/scripts/lib/rpc-method-middleware/handlers/wallet-createSe…
jiexi 4e1df34
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 1be3e41
revert back to 597e8377
jiexi 093e5a4
Fix createSession helper import
jiexi e0623f5
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 245c47e
Use most recent preview build
jiexi 73dd95a
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi ea0aba4
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 542f8d5
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi ae5e1a5
Remove TODO about verifying switchChain permissioning flow
jiexi 4db8a0d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 85c9fb0
Revert "Remove selectors intended for multichain API"
jiexi 45b5269
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi bbc90fa
fix wallet_createSession for renamed core helpers
jiexi 0a6faca
remove old js tests
jiexi a5907f5
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 1efe6e9
fix: add method middleware maker and use multichain handlers (#27882)
shanejonas 6ff8102
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi aca50f8
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi f53b91e
fix: remove html-report-caip27 (#27940)
shanejonas 33f3a0c
bring in preview build from new core pr
jiexi 21701e7
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 47a08e3
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi a0a54e2
Update LavaMoat policies
metamaskbot f3b68be
update wallet_createSession handler comment about listAccounts()
jiexi a75a9fa
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 3cd8e7d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi db6c055
bring in new preview build for validator listAccount()
jiexi e5b7290
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi d3d76eb
fix yarn.lock
jiexi 61becd8
use new preview build
jiexi 7a68e3c
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 52cad8e
lint
jiexi 4cc9915
Update LavaMoat policies
metamaskbot 5fae714
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 83f737c
yarn dedupe
jiexi 37f23fc
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 3132108
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 13f3907
Bring in updated core package for types
jiexi bcddb19
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 5b0db4d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi b2c52f2
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 049493e
Jl/caip mutlichain migrate core convert create session ts (#28020)
jiexi 28bdb3c
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 0b4c431
Filter wallet notifications by api type for connection
jiexi 2d20ca8
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi d1d754e
Fix chainChanged still being sent for over Multichain
jiexi 4945ab1
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi e4b4c6b
Update LavaMoat policies
metamaskbot 7f9135f
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 99e35c6
Send chainChanged events as before
jiexi 3b4210d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi af9339c
use preview build 0d167a3d (multichain + permission refactor)
jiexi 096d6f8
Update LavaMoat policies
metamaskbot 2c3788a
use preview build c58e3946 (getInternalScopesObject))
jiexi 927e0c6
Fix wallet_createSession
jiexi 63695ef
fix mergeScopes usage
jiexi 57630e6
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi a1d338a
use preview build 62975b62 (missing permission adapter middleware)
jiexi 036110b
yarn dedupe
jiexi 1bbc3c6
Fix wallet_createSession test
jiexi 0a24b11
cleanup wallet_createSession test
jiexi 73d1db7
Fix types
jiexi 988891c
fix types
jiexi efa1804
lint
jiexi 426f481
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi eae656b
use preview build 439ef9ba (filter out ignored 1193 methods)
jiexi 06fcee2
use preview build 6732cd9a (loosen 1193 method enforcement)
jiexi f1dbda7
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi dc848dd
fix subscription not ending when removed from authorization
jiexi 7b917ec
Update LavaMoat policies
metamaskbot e9f1038
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi f21c126
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 5b1bfc5
move sessionChanged notif constant to Multichain PR
jiexi b6d484a
use latest preview builds
adonesky1 d00ce1e
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi c85442b
use preview build 944be534 (multichain + caveat mutator fix)
jiexi c960727
cleanup caip-stream.test.ts
jiexi 3c8d5af
Fix engine middleware cleanup for CAIP
jiexi fb53aba
add setupUntrustedCommunicationCaip spec. Cleanup setupUntrustedCommu…
jiexi 90aca27
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 7e2afa9
update wallet_createSession handler comment about persisting sessionP…
jiexi 5e9c995
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 23b918e
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 34e89cc
Merge branch 'main' into jl/caip-multichain-migrate-core
jiexi 3ce6eff
yarn
jiexi 1234247
Update LavaMoat policies
metamaskbot 21b2181
Jl/caip multichain/cleanup middleware destroy (#28751)
jiexi 88d618e
use preview build 9cfbf21f (latest multichain core after cleanup)
jiexi 604c138
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 966721e
yarn dedupe
jiexi 3fdcd36
Fix remove network in MMC
jiexi 66db33e
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 2e492c2
fix wallet_createSession spec
jiexi 2fa9ec3
Jl/caip multichain/filter unsupported methods notifications (#29001)
jiexi f79b22d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 66f98cd
Update LavaMoat policies
metamaskbot 038e490
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi cd4011e
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi db816ce
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi e554460
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi bf32e15
restore app/scripts/controllers/permissions/selectors.test.js
jiexi 9c33415
Implement Wallet Discovery For Multichain API #2970 (#29111)
ffmcgee725 c6ab79e
Jl/caip multichain/flask (#29003)
jiexi 82aab64
dedupe
adonesky1 886ec3c
fix flask build
adonesky1 6573d05
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 73e026a
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi e389bc2
dedupe
jiexi 32c380d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi f4845a7
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi b75e6de
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi ce9e79b
chore: bump @metamask/providers
ffmcgee725 543c24d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 3d173a3
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 953c127
fix connectAccount public address usage from upstream
jiexi d20da17
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 76ba552
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 09b84e6
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 8e5831e
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi f98f807
Update LavaMoat policies
metamaskbot 3222176
dedupe
adonesky1 6662dd3
Update app/scripts/metamask-controller.js
jiexi 0ede8b6
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 08178b5
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi ca85516
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 069a8a7
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 0048c4d
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi f478911
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi fc4a801
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi a44b9e7
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi e757ab8
use updated preview
jiexi afc2629
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 43e2e3a
Fix wallet_createSession use getSupportedScopeObjects
jiexi babf3b8
Add back requestPermissionApprovalForOrigin to MMC. Use in requestApp…
jiexi 9d8b687
Rename requestPermissionApprovalForOrigin to requestPermissionApprova…
jiexi 432fcf8
yarn audit
jiexi add8328
Update LavaMoat policies
metamaskbot 2071366
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi ffef7ae
First Multichain API e2e Test (#29209)
adonesky1 8a2203c
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 7a13bcc
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi f4af744
Revert "Rename requestPermissionApprovalForOrigin to requestPermissio…
jiexi b991c19
Use requestPermissionApproval again
jiexi d3d5f9b
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 0b044e4
Jl/fix api specs multichain (#29487)
jiexi 3f87444
Update app/scripts/metamask-controller.js
jiexi eee52ec
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi fb2c400
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 2e1be33
fix bad merge. lint
jiexi 8b06c2c
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi b1c0b07
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 75814f4
Jl/caip multichain/add api specs wallet create session (#29592)
jiexi 9542e9c
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 3f70fdc
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi af1cb6a
Update app/scripts/metamask-controller.js
jiexi 7e5782b
add wallet_registerOnboarding to Multichain API (#29491)
jiexi 6d861f1
jsdoc createUnsupportedMethodMiddleware
jiexi 79dc228
Update LavaMoat policies
metamaskbot dbed7a1
Multichain API e2e test: calling `wallet_invokeMethod` on the same da…
ffmcgee725 c4b62c1
Multichain API E2E Test: wallet_notify (#29623)
ffmcgee725 3771ebc
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 7688c40
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 9faf0e6
remove unnecessary JSON.stringify in wallet_createSession
jiexi 08ff03d
add missing import
jiexi c7f9adc
remove eip3085 handling from wallet_createSession
jiexi f7f5c28
remove unused hooks
jiexi 9d7a8a4
jsdoc wallet_createSession handler
jiexi f2e64be
remove processScopedProperties
jiexi 9f58f3f
lint
jiexi 61f1182
use preview build 298fc547
jiexi bea54cf
move getCaveat in requestPermittedChainsPermissionIncremental to afte…
jiexi 6aea438
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi ebee234
Multichain API E2E Test: wallet_revokeSession (#29639)
ffmcgee725 1817ba9
Multichain API E2E Test: wallet_createSession called with an existing…
ffmcgee725 2846b0d
remove extraneous hooks
adonesky1 19826fe
dedupe
adonesky1 7240c13
lint
adonesky1 10d4d9c
Update LavaMoat policies
metamaskbot 492687c
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi bb38fc4
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 0ba6f86
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 16c42b8
use preview build e05b7d3e
jiexi 69a188b
Update LavaMoat policies
metamaskbot 6633fb7
dedupe
adonesky1 113e643
update hookname: getCaveatForOrigin
adonesky1 106e7a6
Update LavaMoat policies
metamaskbot 24fe195
wrap rpcErrors in flask build flags
adonesky1 65bd138
use preview build f3715655
jiexi baf0afc
fix getCaveatForOrigin
adonesky1 20204ec
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 9df1ef3
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi 04d64da
use preview build 6244b7be
jiexi b89c40c
lint
jiexi 8776db0
Multichain API E2E test: wallet_sessionChanged (#29706)
ffmcgee725 fe26dcf
Merge branch 'caip25-permission-migration' into jl/caip-multichain-mi…
jiexi 724e178
Merge remote-tracking branch 'origin/jl/caip-multichain-migrate-core'…
jiexi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
app/scripts/lib/rpc-method-middleware/createUnsupportedMethodMiddleware.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done here 6d861f1