-
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 (OLD ignore. Only for reference now) #25665
Closed
Closed
Changes from 250 commits
Commits
Show all changes
281 commits
Select commit
Hold shift + click to select a range
a9b741f
add SplitStream specs
jiexi 7df64f3
add CaipToMultiplexStream, MultiplexToCaipStream specs
jiexi 7db9d75
lint
jiexi 65c9d68
WIP createCaipStream spec
jiexi c8b66b5
add createCaipStream specs
jiexi bbb33ae
lint
jiexi edab0fe
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi 040d300
add BARAD_DUR flag
jiexi 2acb719
dry background trackDappView
jiexi 9792594
move externally_connectable manifest wildcard behind BARAD_DUR
jiexi 7372604
jsdoc
jiexi b82888b
restore inpage
jiexi 64ca655
Move caip stream closer to provider. Replace caip<->multiplex transfo…
jiexi 714d044
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi 29ea68c
Rename connectExternalDapp to connectExternalCaip
jiexi 64ba990
actually restore inpage
jiexi 46bfee7
Fix createCaipStream specs
jiexi e24ef63
use createDeferredPromise instead
jiexi 379ce8a
rename onData to readFromStream
jiexi 98ff148
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi cd3dd02
fix method names. add setupUntrustedCommunicationCaip
jiexi 7f1eb8a
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi cbfd014
lint
jiexi 5d65634
Merge remote-tracking branch 'origin/jl/mmp-2528/externally_connectab…
jiexi 3652ab3
lint
jiexi a239e64
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi 4f4f999
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi 5b667f2
Rename connectExternalLegacy to connectExternalExtension
jiexi 0c3f000
rename _subjectType to inputSubjectType
jiexi ab7767b
use messenger where possible
jiexi 7fc0b23
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi ccd10ab
Rename setupUntrustedCommunicationLegacy to setupUntrustedCommunicati…
jiexi 2eeac73
lint
jiexi 600daed
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi ee4dec5
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi dc6c189
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi d27526a
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi 571cf9e
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi 801f246
Separate rpc pipeline
jiexi 1ced8f3
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi 436f26e
Merge branch 'jl/mmp-2528/externally_connectable-caip-enveloping' int…
jiexi 55dc491
WIP mocked working
jiexi 487b9ca
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi b836f7a
Merge branch 'jl/mmp-2528/externally_connectable-caip-enveloping' int…
jiexi 48d69c6
throw error if not provider_authorize or provider_request
jiexi f364b48
feat: added initial caip-25 permission spec
shanejonas 130d505
fix: update
shanejonas 2dea008
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi 4b34413
Working initial endowment:caip25
jiexi 0f16184
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi d671a52
Merge branch 'jl/mmp-2360/caip-25-poc' into jl/mmp-2527/separate-rpc-…
jiexi 63e1370
Draft: Separate RPC Pipelines + CAIP-27 (#25516)
jiexi c5363f2
Move provider_authorize into multichain-api folder. Hookup with CAIP …
jiexi 5eb46ab
Merge remote-tracking branch 'origin/jl/mmp-2360/caip-25-poc' into jl…
jiexi 7ed07db
remove MMC init grantPermissions
jiexi b31dce0
move provider_request into multichain-api folder
jiexi e3353f9
get rid of internal rpc method middleware wrapping objects
jiexi ec5c727
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi e855f07
use findNetworkClientIdByChainId hook to get the networkClientId for …
shanejonas 819fde5
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi 8be9eae
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi afa3153
Jl/caip multichain/verify scope method (#25589)
jiexi 5ac3b1c
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi 7971eac
Jl/caip multichain/scopes merger (#25617)
jiexi 9456ef7
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi 5b0c0b0
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi af260a5
Sj/caip 25 poc mutator (#25643)
shanejonas f4a8763
fix: rename some types
shanejonas 630377a
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi 5c0cd15
Jl/caip multichain/permission validation (#25647)
jiexi 4f10189
Restore develop yarn.lock
jiexi 46727b5
lint
jiexi de8aaeb
lint and spec
jiexi faa7f69
lint
jiexi d2d7d40
Merge branch 'develop' into caip-multichain
jiexi e42ae8f
Merge branch 'develop' into caip-multichain
jiexi 62c4775
Merge branch 'develop' into caip-multichain
jiexi 7fc6ada
Merge branch 'develop' into caip-multichain
jiexi 696a726
Merge branch 'develop' into caip-multichain
jiexi 96a7b67
Merge branch 'develop' into caip-multichain
jiexi b65d545
Merge branch 'develop' into caip-multichain
jiexi c137544
Jl/caip multichain/scope helper specs (#25668)
jiexi f78bfe2
Sj/caip 25 poc add method call validator (#25712)
shanejonas 4376ef6
Merge branch 'develop' into caip-multichain
jiexi 1cc01a9
yarn dedupe
jiexi 74360e7
Update LavaMoat policies
metamaskbot 62d8904
Jl/caip multichain/provider request spec (#25709)
jiexi 161352d
Jl/caip multichain/handle accounts provider authorize (#25708)
jiexi e72a44a
fix: add caip25 caveat mutator for removeAccounts (#25784)
shanejonas c787255
Merge branch 'develop' into caip-multichain
jiexi e0c7961
Sj/caip multichain getinternal (#25836)
shanejonas dbf562a
remove methods from multichain API (#25841)
adonesky1 7921a31
Merge branch 'develop' into caip-multichain
jiexi 8990171
Merge branch 'develop' into caip-multichain
jiexi c9c03ad
Jl/caip multichain/lifecycle methods (#25842)
jiexi 5352f11
Merge branch 'develop' into caip-multichain
jiexi 9b765e6
Merge branch 'develop' into caip-multichain
jiexi 1c97f86
Merge branch 'develop' into caip-multichain
jiexi 6c24aa8
Merge branch 'develop' into caip-multichain
jiexi a1b1707
Merge branch 'develop' into caip-multichain
jiexi 249c79d
Update LavaMoat policies
metamaskbot c8dad3d
Allow empty ScopesObject (#25956)
jiexi a2d6660
Jl/caip multichain/fix provider request scope object check (#25957)
jiexi 66c4785
Merge branch 'develop' into caip-multichain
jiexi b40039b
Merge branch 'develop' into caip-multichain
jiexi b78d54b
Merge branch 'develop' into caip-multichain
jiexi 1ce1cd0
Merge branch 'develop' into caip-multichain
jiexi 90ce686
Merge branch 'develop' into caip-multichain
jiexi 7dce004
Merge branch 'develop' into caip-multichain
jiexi d094982
Merge branch 'develop' into caip-multichain
jiexi 01ae68d
Merge branch 'develop' into caip-multichain
jiexi 65cbc45
Merge branch 'develop' into caip-multichain
jiexi 5c0d59b
Merge branch 'develop' into caip-multichain
jiexi fea21ac
Merge branch 'develop' into caip-multichain
jiexi 4e0e372
Merge branch 'develop' into caip-multichain
jiexi 1fe52e8
Merge branch 'develop' into caip-multichain
jiexi 4a6b810
Merge branch 'develop' into caip-multichain
jiexi 0f721bf
Merge branch 'develop' into caip-multichain
jiexi bdf7d8c
Jl/caip multichain/permission adapter (#26054)
jiexi 8241e50
Merge branch 'develop' into caip-multichain
jiexi 51eb1a5
Merge branch 'develop' into caip-multichain
jiexi cf3a472
Merge branch 'develop' into caip-multichain
jiexi d50ded1
Jl/caip multichain/scoped properties eip3085 (#25873)
jiexi 8fd734e
Jl/caip multichain/fix camel case naming (#26199)
jiexi 0918a06
Merge branch 'develop' into caip-multichain
jiexi 225a220
Merge branch 'develop' into caip-multichain
jiexi 8027888
Merge branch 'develop' into caip-multichain
jiexi 0a1c1b0
Merge branch 'develop' into caip-multichain
jiexi 604f716
Merge branch 'develop' into caip-multichain
jiexi b38272b
Jl/caip multichain/fix e2e (#26237)
jiexi 49d8d66
Merge branch 'develop' into caip-multichain
jiexi 1d2d8a0
Merge branch 'develop' into caip-multichain
jiexi 61f6fc3
Update LavaMoat policies
metamaskbot b8d9baa
Merge branch 'develop' into caip-multichain
jiexi dbd1a60
Merge branch 'develop' into caip-multichain
jiexi 9b4192e
Jl/caip multichain/caip 25 permission origin (#26296)
jiexi db99e33
Merge branch 'develop' into caip-multichain
jiexi 9774d0e
Update LavaMoat policies
metamaskbot 47f95db
Merge branch 'develop' into caip-multichain
jiexi 18e331d
Merge branch 'develop' into caip-multichain
jiexi bedb6d8
Merge branch 'develop' into caip-multichain
jiexi 2d05d3c
Added multichain api notifications (#25869)
shanejonas d293acf
Merge branch 'develop' into caip-multichain
jiexi 8b3a37c
Merge branch 'develop' into caip-multichain
jiexi 3017965
Merge branch 'develop' into caip-multichain
jiexi 9df3320
Merge branch 'develop' into caip-multichain
jiexi d6d8f2d
Merge branch 'develop' into caip-multichain
jiexi 07f83d5
Merge branch 'develop' into caip-multichain
jiexi 684f45e
Merge branch 'develop' into caip-multichain
jiexi 4887166
Merge branch 'develop' into caip-multichain
jiexi ba828e6
Merge branch 'develop' into caip-multichain
jiexi 2ba1522
Merge branch 'develop' into caip-multichain
jiexi 1fda368
Merge branch 'develop' into caip-multichain
jiexi 773e11c
Merge branch 'develop' into caip-multichain
jiexi d46d3bb
Fix caip25 permission spec type
jiexi bbbf8e5
WIP
jiexi f323cb4
Merge branch 'develop' into caip-multichain
jiexi b575fb4
lavamoat
jiexi db362d9
Merge remote-tracking branch 'origin/jl/caip-multichain/type-cleanups…
jiexi 4bd882c
Merge branch 'develop' into caip-multichain
jiexi a71c617
Revert "Fix caip25 permission spec type"
jiexi dcb3094
Revert "WIP"
jiexi d893751
Merge branch 'develop' into caip-multichain
jiexi f3692d9
Merge branch 'develop' into caip-multichain
jiexi 958f864
Update LavaMoat policies
metamaskbot a260e5e
Merge branch 'develop' into caip-multichain
jiexi 9fb5fed
Jl/caip multichain/misc cleanup (#26724)
jiexi a9e92c5
Jl/caip multichain/provider authorize metrics (#26699)
jiexi 9eef5fe
Merge branch 'develop' into caip-multichain
jiexi 8baf1a5
Merge branch 'develop' into caip-multichain
jiexi 26b4aa2
Jl/caip multichain/test cleanups (#26698)
jiexi 2d6ccff
Merge branch 'develop' into caip-multichain
jiexi 704e52e
Merge branch 'develop' into caip-multichain
jiexi 3b16fbd
Merge branch 'develop' into caip-multichain
jiexi 7ddc677
Merge branch 'develop' into caip-multichain
jiexi f838a96
Merge branch 'develop' into caip-multichain
jiexi f9e30ff
Merge branch 'develop' into caip-multichain
jiexi aa92005
Jl/caip multichain/replace known caip namespace with metamask utils (…
jiexi 58106a5
Jl/caip multichain/migrate permission eth accounts to caip25 (#26483)
jiexi e7a9d2d
Sj/caip multichain api specs test (#26643)
shanejonas 7331f50
Jl/caip multichain/namespaced methods (#26732)
jiexi 41ea73b
Remove prepopulated methods and notifications (#26877)
jiexi bea1e18
Merge branch 'develop' into caip-multichain
jiexi bca508e
Merge branch 'develop' into caip-multichain
jiexi 191b717
Merge branch 'develop' into caip-multichain
jiexi 93ed08e
Jl/mmp 3048/caip multichain error handling cleanup (#26825)
jiexi 5c048ff
Merge branch 'develop' into caip-multichain
jiexi 995b386
Fix provider_authorize missing hooks (#26926)
jiexi 577f337
Jl/mmp 3037/caip multichain rename methods (#26928)
jiexi e54be4b
Merge branch 'develop' into caip-multichain
jiexi 370dfd1
yarn dedupe
jiexi 70a2cdc
Jl/caip multichain/remove 5301 error (#26915)
jiexi 781aeb8
Merge branch 'develop' into caip-multichain
jiexi dfacc49
remove wallet_watchAsset from wallet:eip155 (#26954)
jiexi c5370c7
Merge branch 'develop' into caip-multichain
jiexi 2dfdbc3
Jl/caip multichain/type cleanups (#26690)
jiexi 615da54
fix: added initial provider authorize error rule (#26828)
shanejonas 76cd526
Merge branch 'develop' into caip-multichain
jiexi d24fc2a
Jl/caip multichain/fix wallet namespace validation and invoke (#27223)
jiexi dec03c3
Merge branch 'develop' into caip-multichain
jiexi eb5805d
fix missing updateNetwork
jiexi 450ec01
Merge branch 'develop' into caip-multichain
jiexi fec21c4
Replace `ScopeObject.scopes` with `ScopeObject.references` (#27403)
jiexi dd02132
Caip multichain caip 27 api spec tests (#27229)
shanejonas d1cb468
Sj/caip multichain api spec tests ci (#27317)
shanejonas f67f115
Merge branch 'develop' into caip-multichain
jiexi f6412c5
Merge branch 'develop' into caip-multichain
jiexi 33ff65c
Merge branch 'develop' into caip-multichain
jiexi da73c69
Merge branch 'develop' into caip-multichain
jiexi ef39570
bump queued-request-controller version
adonesky1 4c1a75b
Merge branch 'develop' into caip-multichain
jiexi 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 2e06555
Merge branch 'develop' into caip-multichain
jiexi f4e0bb2
Merge branch 'develop' into caip-multichain
jiexi 146f093
Merge branch 'develop' into caip-multichain
jiexi 26dc532
Merge branch 'develop' into caip-multichain
jiexi 28ba445
Merge branch 'develop' into caip-multichain
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 6adb2e4
Merge branch 'develop' into caip-multichain
jiexi df11376
Merge branch 'develop' into caip-multichain
jiexi 71ed3aa
Merge branch 'develop' into caip-multichain
jiexi 92a1d24
Multichain: Do not add permittedChain scope for snaps. Use new networ…
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
13 changes: 13 additions & 0 deletions
13
.yarn/patches/@json-schema-spec-json-pointer-npm-0.1.2-3d06119887.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/lib/index.js b/lib/index.js | ||
index f5795884311124b221d91f488ed45750eb6e9c80..e030d6f8d8e85e6d1350c565d36ad48bc49af881 100644 | ||
--- a/lib/index.js | ||
+++ b/lib/index.js | ||
@@ -25,7 +25,7 @@ class Ptr { | ||
}); | ||
return `/${tokens.join("/")}`; | ||
} | ||
- eval(instance) { | ||
+ shmeval(instance) { | ||
for (const token of this.tokens) { | ||
if (instance.hasOwnProperty(token)) { | ||
instance = instance[token]; |
13 changes: 13 additions & 0 deletions
13
.yarn/patches/@json-schema-tools-reference-resolver-npm-1.2.6-4e1497c16d.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/build/resolve-pointer.js b/build/resolve-pointer.js | ||
index d5a8ec7486250cd17572eb0e0449725643fc9842..044e74bb51a46e9bf3547f6d7a84763b93260613 100644 | ||
--- a/build/resolve-pointer.js | ||
+++ b/build/resolve-pointer.js | ||
@@ -27,7 +27,7 @@ exports.default = (function (ref, root) { | ||
try { | ||
var withoutHash = ref.replace("#", ""); | ||
var pointer = json_pointer_1.default.parse(withoutHash); | ||
- return pointer.eval(root); | ||
+ return pointer.shmeval(root); | ||
} | ||
catch (e) { | ||
throw new InvalidJsonPointerRefError(ref, e.message); |
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.
this needs to move into it's own build step