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: CAIP Multichain (OLD ignore. Only for reference now) #25665

Closed
wants to merge 281 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
281 commits
Select commit Hold shift + click to select a range
a9b741f
add SplitStream specs
jiexi Jun 5, 2024
7df64f3
add CaipToMultiplexStream, MultiplexToCaipStream specs
jiexi Jun 5, 2024
7db9d75
lint
jiexi Jun 5, 2024
65c9d68
WIP createCaipStream spec
jiexi Jun 5, 2024
c8b66b5
add createCaipStream specs
jiexi Jun 6, 2024
bbb33ae
lint
jiexi Jun 6, 2024
edab0fe
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 6, 2024
040d300
add BARAD_DUR flag
jiexi Jun 6, 2024
2acb719
dry background trackDappView
jiexi Jun 6, 2024
9792594
move externally_connectable manifest wildcard behind BARAD_DUR
jiexi Jun 6, 2024
7372604
jsdoc
jiexi Jun 6, 2024
b82888b
restore inpage
jiexi Jun 11, 2024
64ca655
Move caip stream closer to provider. Replace caip<->multiplex transfo…
jiexi Jun 11, 2024
714d044
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 11, 2024
29ea68c
Rename connectExternalDapp to connectExternalCaip
jiexi Jun 11, 2024
64ba990
actually restore inpage
jiexi Jun 11, 2024
46bfee7
Fix createCaipStream specs
jiexi Jun 11, 2024
e24ef63
use createDeferredPromise instead
jiexi Jun 11, 2024
379ce8a
rename onData to readFromStream
jiexi Jun 12, 2024
98ff148
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 12, 2024
cd3dd02
fix method names. add setupUntrustedCommunicationCaip
jiexi Jun 12, 2024
7f1eb8a
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 12, 2024
cbfd014
lint
jiexi Jun 12, 2024
5d65634
Merge remote-tracking branch 'origin/jl/mmp-2528/externally_connectab…
jiexi Jun 12, 2024
3652ab3
lint
jiexi Jun 12, 2024
a239e64
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 13, 2024
4f4f999
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 14, 2024
5b667f2
Rename connectExternalLegacy to connectExternalExtension
jiexi Jun 14, 2024
0c3f000
rename _subjectType to inputSubjectType
jiexi Jun 14, 2024
ab7767b
use messenger where possible
jiexi Jun 18, 2024
7fc0b23
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 18, 2024
ccd10ab
Rename setupUntrustedCommunicationLegacy to setupUntrustedCommunicati…
jiexi Jun 18, 2024
2eeac73
lint
jiexi Jun 18, 2024
600daed
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 21, 2024
ee4dec5
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 21, 2024
dc6c189
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 21, 2024
d27526a
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 24, 2024
571cf9e
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 25, 2024
801f246
Separate rpc pipeline
jiexi Jun 25, 2024
1ced8f3
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 25, 2024
436f26e
Merge branch 'jl/mmp-2528/externally_connectable-caip-enveloping' int…
jiexi Jun 25, 2024
55dc491
WIP mocked working
jiexi Jun 26, 2024
487b9ca
Merge branch 'develop' into jl/mmp-2528/externally_connectable-caip-e…
jiexi Jun 26, 2024
b836f7a
Merge branch 'jl/mmp-2528/externally_connectable-caip-enveloping' int…
jiexi Jun 26, 2024
48d69c6
throw error if not provider_authorize or provider_request
jiexi Jun 26, 2024
f364b48
feat: added initial caip-25 permission spec
shanejonas Jun 27, 2024
130d505
fix: update
shanejonas Jun 27, 2024
2dea008
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jun 27, 2024
4b34413
Working initial endowment:caip25
jiexi Jun 27, 2024
0f16184
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jun 27, 2024
d671a52
Merge branch 'jl/mmp-2360/caip-25-poc' into jl/mmp-2527/separate-rpc-…
jiexi Jun 27, 2024
63e1370
Draft: Separate RPC Pipelines + CAIP-27 (#25516)
jiexi Jun 27, 2024
c5363f2
Move provider_authorize into multichain-api folder. Hookup with CAIP …
jiexi Jun 27, 2024
5eb46ab
Merge remote-tracking branch 'origin/jl/mmp-2360/caip-25-poc' into jl…
jiexi Jun 27, 2024
7ed07db
remove MMC init grantPermissions
jiexi Jun 27, 2024
b31dce0
move provider_request into multichain-api folder
jiexi Jun 27, 2024
e3353f9
get rid of internal rpc method middleware wrapping objects
jiexi Jun 27, 2024
ec5c727
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jun 28, 2024
e855f07
use findNetworkClientIdByChainId hook to get the networkClientId for …
shanejonas Jun 28, 2024
819fde5
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jun 28, 2024
8be9eae
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jun 28, 2024
afa3153
Jl/caip multichain/verify scope method (#25589)
jiexi Jun 29, 2024
5ac3b1c
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jul 1, 2024
7971eac
Jl/caip multichain/scopes merger (#25617)
jiexi Jul 2, 2024
9456ef7
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jul 2, 2024
5b0c0b0
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jul 2, 2024
af260a5
Sj/caip 25 poc mutator (#25643)
shanejonas Jul 3, 2024
f4a8763
fix: rename some types
shanejonas Jul 3, 2024
630377a
Merge branch 'develop' into jl/mmp-2360/caip-25-poc
jiexi Jul 3, 2024
5c0cd15
Jl/caip multichain/permission validation (#25647)
jiexi Jul 3, 2024
4f10189
Restore develop yarn.lock
jiexi Jul 3, 2024
46727b5
lint
jiexi Jul 3, 2024
de8aaeb
lint and spec
jiexi Jul 3, 2024
faa7f69
lint
jiexi Jul 3, 2024
d2d7d40
Merge branch 'develop' into caip-multichain
jiexi Jul 3, 2024
e42ae8f
Merge branch 'develop' into caip-multichain
jiexi Jul 3, 2024
62c4775
Merge branch 'develop' into caip-multichain
jiexi Jul 3, 2024
7fc6ada
Merge branch 'develop' into caip-multichain
jiexi Jul 4, 2024
696a726
Merge branch 'develop' into caip-multichain
jiexi Jul 4, 2024
96a7b67
Merge branch 'develop' into caip-multichain
jiexi Jul 5, 2024
b65d545
Merge branch 'develop' into caip-multichain
jiexi Jul 9, 2024
c137544
Jl/caip multichain/scope helper specs (#25668)
jiexi Jul 9, 2024
f78bfe2
Sj/caip 25 poc add method call validator (#25712)
shanejonas Jul 9, 2024
4376ef6
Merge branch 'develop' into caip-multichain
jiexi Jul 9, 2024
1cc01a9
yarn dedupe
jiexi Jul 9, 2024
74360e7
Update LavaMoat policies
metamaskbot Jul 9, 2024
62d8904
Jl/caip multichain/provider request spec (#25709)
jiexi Jul 10, 2024
161352d
Jl/caip multichain/handle accounts provider authorize (#25708)
jiexi Jul 11, 2024
e72a44a
fix: add caip25 caveat mutator for removeAccounts (#25784)
shanejonas Jul 12, 2024
c787255
Merge branch 'develop' into caip-multichain
jiexi Jul 15, 2024
e0c7961
Sj/caip multichain getinternal (#25836)
shanejonas Jul 15, 2024
dbf562a
remove methods from multichain API (#25841)
adonesky1 Jul 16, 2024
7921a31
Merge branch 'develop' into caip-multichain
jiexi Jul 16, 2024
8990171
Merge branch 'develop' into caip-multichain
jiexi Jul 17, 2024
c9c03ad
Jl/caip multichain/lifecycle methods (#25842)
jiexi Jul 17, 2024
5352f11
Merge branch 'develop' into caip-multichain
jiexi Jul 17, 2024
9b765e6
Merge branch 'develop' into caip-multichain
jiexi Jul 17, 2024
1c97f86
Merge branch 'develop' into caip-multichain
jiexi Jul 17, 2024
6c24aa8
Merge branch 'develop' into caip-multichain
jiexi Jul 18, 2024
a1b1707
Merge branch 'develop' into caip-multichain
jiexi Jul 18, 2024
249c79d
Update LavaMoat policies
metamaskbot Jul 18, 2024
c8dad3d
Allow empty ScopesObject (#25956)
jiexi Jul 18, 2024
a2d6660
Jl/caip multichain/fix provider request scope object check (#25957)
jiexi Jul 18, 2024
66c4785
Merge branch 'develop' into caip-multichain
jiexi Jul 19, 2024
b40039b
Merge branch 'develop' into caip-multichain
jiexi Jul 19, 2024
b78d54b
Merge branch 'develop' into caip-multichain
jiexi Jul 22, 2024
1ce1cd0
Merge branch 'develop' into caip-multichain
jiexi Jul 22, 2024
90ce686
Merge branch 'develop' into caip-multichain
jiexi Jul 23, 2024
7dce004
Merge branch 'develop' into caip-multichain
jiexi Jul 23, 2024
d094982
Merge branch 'develop' into caip-multichain
jiexi Jul 23, 2024
01ae68d
Merge branch 'develop' into caip-multichain
jiexi Jul 23, 2024
65cbc45
Merge branch 'develop' into caip-multichain
jiexi Jul 23, 2024
5c0d59b
Merge branch 'develop' into caip-multichain
jiexi Jul 24, 2024
fea21ac
Merge branch 'develop' into caip-multichain
jiexi Jul 24, 2024
4e0e372
Merge branch 'develop' into caip-multichain
jiexi Jul 24, 2024
1fe52e8
Merge branch 'develop' into caip-multichain
jiexi Jul 25, 2024
4a6b810
Merge branch 'develop' into caip-multichain
jiexi Jul 25, 2024
0f721bf
Merge branch 'develop' into caip-multichain
jiexi Jul 25, 2024
bdf7d8c
Jl/caip multichain/permission adapter (#26054)
jiexi Jul 26, 2024
8241e50
Merge branch 'develop' into caip-multichain
jiexi Jul 26, 2024
51eb1a5
Merge branch 'develop' into caip-multichain
jiexi Jul 26, 2024
cf3a472
Merge branch 'develop' into caip-multichain
jiexi Jul 29, 2024
d50ded1
Jl/caip multichain/scoped properties eip3085 (#25873)
jiexi Jul 29, 2024
8fd734e
Jl/caip multichain/fix camel case naming (#26199)
jiexi Jul 29, 2024
0918a06
Merge branch 'develop' into caip-multichain
jiexi Jul 30, 2024
225a220
Merge branch 'develop' into caip-multichain
jiexi Jul 30, 2024
8027888
Merge branch 'develop' into caip-multichain
jiexi Jul 30, 2024
0a1c1b0
Merge branch 'develop' into caip-multichain
jiexi Jul 30, 2024
604f716
Merge branch 'develop' into caip-multichain
jiexi Jul 30, 2024
b38272b
Jl/caip multichain/fix e2e (#26237)
jiexi Jul 31, 2024
49d8d66
Merge branch 'develop' into caip-multichain
jiexi Jul 31, 2024
1d2d8a0
Merge branch 'develop' into caip-multichain
jiexi Aug 1, 2024
61f6fc3
Update LavaMoat policies
metamaskbot Aug 1, 2024
b8d9baa
Merge branch 'develop' into caip-multichain
jiexi Aug 2, 2024
dbd1a60
Merge branch 'develop' into caip-multichain
jiexi Aug 2, 2024
9b4192e
Jl/caip multichain/caip 25 permission origin (#26296)
jiexi Aug 2, 2024
db99e33
Merge branch 'develop' into caip-multichain
jiexi Aug 12, 2024
9774d0e
Update LavaMoat policies
metamaskbot Aug 13, 2024
47f95db
Merge branch 'develop' into caip-multichain
jiexi Aug 13, 2024
18e331d
Merge branch 'develop' into caip-multichain
jiexi Aug 14, 2024
bedb6d8
Merge branch 'develop' into caip-multichain
jiexi Aug 16, 2024
2d05d3c
Added multichain api notifications (#25869)
shanejonas Aug 19, 2024
d293acf
Merge branch 'develop' into caip-multichain
jiexi Aug 20, 2024
8b3a37c
Merge branch 'develop' into caip-multichain
jiexi Aug 20, 2024
3017965
Merge branch 'develop' into caip-multichain
jiexi Aug 20, 2024
9df3320
Merge branch 'develop' into caip-multichain
jiexi Aug 20, 2024
d6d8f2d
Merge branch 'develop' into caip-multichain
jiexi Aug 21, 2024
07f83d5
Merge branch 'develop' into caip-multichain
jiexi Aug 21, 2024
684f45e
Merge branch 'develop' into caip-multichain
jiexi Aug 22, 2024
4887166
Merge branch 'develop' into caip-multichain
jiexi Aug 22, 2024
ba828e6
Merge branch 'develop' into caip-multichain
jiexi Aug 22, 2024
2ba1522
Merge branch 'develop' into caip-multichain
jiexi Aug 23, 2024
1fda368
Merge branch 'develop' into caip-multichain
jiexi Aug 26, 2024
773e11c
Merge branch 'develop' into caip-multichain
jiexi Aug 26, 2024
d46d3bb
Fix caip25 permission spec type
jiexi Aug 26, 2024
bbbf8e5
WIP
jiexi Aug 26, 2024
f323cb4
Merge branch 'develop' into caip-multichain
jiexi Aug 27, 2024
b575fb4
lavamoat
jiexi Aug 27, 2024
db362d9
Merge remote-tracking branch 'origin/jl/caip-multichain/type-cleanups…
jiexi Aug 27, 2024
4bd882c
Merge branch 'develop' into caip-multichain
jiexi Aug 27, 2024
a71c617
Revert "Fix caip25 permission spec type"
jiexi Aug 27, 2024
dcb3094
Revert "WIP"
jiexi Aug 27, 2024
d893751
Merge branch 'develop' into caip-multichain
jiexi Aug 27, 2024
f3692d9
Merge branch 'develop' into caip-multichain
jiexi Aug 28, 2024
958f864
Update LavaMoat policies
metamaskbot Aug 28, 2024
a260e5e
Merge branch 'develop' into caip-multichain
jiexi Aug 28, 2024
9fb5fed
Jl/caip multichain/misc cleanup (#26724)
jiexi Aug 28, 2024
a9e92c5
Jl/caip multichain/provider authorize metrics (#26699)
jiexi Aug 28, 2024
9eef5fe
Merge branch 'develop' into caip-multichain
jiexi Aug 29, 2024
8baf1a5
Merge branch 'develop' into caip-multichain
jiexi Aug 29, 2024
26b4aa2
Jl/caip multichain/test cleanups (#26698)
jiexi Aug 29, 2024
2d6ccff
Merge branch 'develop' into caip-multichain
jiexi Aug 29, 2024
704e52e
Merge branch 'develop' into caip-multichain
jiexi Aug 29, 2024
3b16fbd
Merge branch 'develop' into caip-multichain
jiexi Aug 30, 2024
7ddc677
Merge branch 'develop' into caip-multichain
jiexi Aug 30, 2024
f838a96
Merge branch 'develop' into caip-multichain
jiexi Aug 30, 2024
f9e30ff
Merge branch 'develop' into caip-multichain
jiexi Sep 3, 2024
aa92005
Jl/caip multichain/replace known caip namespace with metamask utils (…
jiexi Sep 3, 2024
58106a5
Jl/caip multichain/migrate permission eth accounts to caip25 (#26483)
jiexi Sep 3, 2024
e7a9d2d
Sj/caip multichain api specs test (#26643)
shanejonas Sep 3, 2024
7331f50
Jl/caip multichain/namespaced methods (#26732)
jiexi Sep 3, 2024
41ea73b
Remove prepopulated methods and notifications (#26877)
jiexi Sep 3, 2024
bea1e18
Merge branch 'develop' into caip-multichain
jiexi Sep 4, 2024
bca508e
Merge branch 'develop' into caip-multichain
jiexi Sep 4, 2024
191b717
Merge branch 'develop' into caip-multichain
jiexi Sep 4, 2024
93ed08e
Jl/mmp 3048/caip multichain error handling cleanup (#26825)
jiexi Sep 4, 2024
5c048ff
Merge branch 'develop' into caip-multichain
jiexi Sep 4, 2024
995b386
Fix provider_authorize missing hooks (#26926)
jiexi Sep 4, 2024
577f337
Jl/mmp 3037/caip multichain rename methods (#26928)
jiexi Sep 5, 2024
e54be4b
Merge branch 'develop' into caip-multichain
jiexi Sep 5, 2024
370dfd1
yarn dedupe
jiexi Sep 5, 2024
70a2cdc
Jl/caip multichain/remove 5301 error (#26915)
jiexi Sep 5, 2024
781aeb8
Merge branch 'develop' into caip-multichain
jiexi Sep 5, 2024
dfacc49
remove wallet_watchAsset from wallet:eip155 (#26954)
jiexi Sep 6, 2024
c5370c7
Merge branch 'develop' into caip-multichain
jiexi Sep 6, 2024
2dfdbc3
Jl/caip multichain/type cleanups (#26690)
jiexi Sep 6, 2024
615da54
fix: added initial provider authorize error rule (#26828)
shanejonas Sep 11, 2024
76cd526
Merge branch 'develop' into caip-multichain
jiexi Sep 17, 2024
d24fc2a
Jl/caip multichain/fix wallet namespace validation and invoke (#27223)
jiexi Sep 17, 2024
dec03c3
Merge branch 'develop' into caip-multichain
jiexi Sep 24, 2024
eb5805d
fix missing updateNetwork
jiexi Sep 24, 2024
450ec01
Merge branch 'develop' into caip-multichain
jiexi Sep 25, 2024
fec21c4
Replace `ScopeObject.scopes` with `ScopeObject.references` (#27403)
jiexi Sep 25, 2024
dd02132
Caip multichain caip 27 api spec tests (#27229)
shanejonas Sep 25, 2024
d1cb468
Sj/caip multichain api spec tests ci (#27317)
shanejonas Sep 26, 2024
f67f115
Merge branch 'develop' into caip-multichain
jiexi Sep 26, 2024
f6412c5
Merge branch 'develop' into caip-multichain
jiexi Sep 27, 2024
33ff65c
Merge branch 'develop' into caip-multichain
jiexi Sep 27, 2024
da73c69
Merge branch 'develop' into caip-multichain
jiexi Sep 27, 2024
ef39570
bump queued-request-controller version
adonesky1 Sep 30, 2024
4c1a75b
Merge branch 'develop' into caip-multichain
jiexi Sep 30, 2024
baffa1c
Merge branch 'develop' into caip-multichain
jiexi Sep 30, 2024
d165506
Ignore sessionId. Remove hardcoded sessionId (#27510)
jiexi Sep 30, 2024
15f622a
Merge branch 'develop' into caip-multichain
jiexi Oct 1, 2024
b6ca49a
Merge branch 'develop' into caip-multichain
jiexi Oct 1, 2024
68db523
Do not assert unsupported required scopes (#27520)
jiexi Oct 2, 2024
4126dd3
Jl/caip multichain/fix connection flow for permitted chains (#27471)
jiexi Oct 3, 2024
1101102
Handle getCaveat missing permission throws properly (#27549)
jiexi Oct 3, 2024
a92853a
CAIP Multichain: deep clone flattened scopeObjects (#27404)
jiexi Oct 4, 2024
9ffa4b5
Merge branch 'develop' into caip-multichain
jiexi Oct 4, 2024
a392615
fix: bump api-specs on caip-multichain feature branch (#27585)
shanejonas Oct 7, 2024
a213b7e
Merge branch 'develop' into caip-multichain
jiexi Oct 7, 2024
91eef62
Merge branch 'develop' into caip-multichain
jiexi Oct 7, 2024
bd91fb0
Merge branch 'develop' into caip-multichain
jiexi Oct 7, 2024
8bcc777
Get session revoke session should not throw (#27677)
jiexi Oct 8, 2024
c6242ee
Merge branch 'develop' into caip-multichain
jiexi Oct 8, 2024
2852118
Merge branch 'develop' into caip-multichain
jiexi Oct 8, 2024
db8c573
Merge branch 'develop' into caip-multichain
jiexi Oct 9, 2024
2456465
fix: fix api spec multichain bump issues (#27669)
shanejonas Oct 9, 2024
48d19e2
Merge branch 'develop' into caip-multichain
jiexi Oct 9, 2024
a19cf08
fix: get wallet_getSession/revokeSession passing (#27741)
shanejonas Oct 9, 2024
6c3bc39
Multichain: Lint (#27745)
jiexi Oct 9, 2024
42a1c8b
Merge branch 'develop' into caip-multichain
jiexi Oct 10, 2024
c3b7e52
Merge branch 'develop' into caip-multichain
jiexi Oct 10, 2024
7221bb6
Move sign methods back into eip155:x (#27771)
jiexi Oct 10, 2024
947dcd7
Jl/caip multichain/fix wallet eip155 eth account assignment (#27769)
jiexi Oct 10, 2024
0f9ba64
Multichain: Fix Subscriptions (#27682)
jiexi Oct 10, 2024
14de6d2
Assign eth accounts to wallets (#27777)
jiexi Oct 10, 2024
2e06555
Merge branch 'develop' into caip-multichain
jiexi Oct 11, 2024
f4e0bb2
Merge branch 'develop' into caip-multichain
jiexi Oct 11, 2024
146f093
Merge branch 'develop' into caip-multichain
jiexi Oct 14, 2024
26dc532
Merge branch 'develop' into caip-multichain
jiexi Oct 14, 2024
28ba445
Merge branch 'develop' into caip-multichain
jiexi Oct 14, 2024
cd1861d
Multichain: Fix snaps connection (#27803)
jiexi Oct 14, 2024
f66a26b
Merge branch 'develop' into caip-multichain
jiexi Oct 14, 2024
10fb361
upsert empty wallet:eip155 on add (#27845)
jiexi Oct 14, 2024
6adb2e4
Merge branch 'develop' into caip-multichain
jiexi Oct 14, 2024
df11376
Merge branch 'develop' into caip-multichain
jiexi Oct 14, 2024
71ed3aa
Merge branch 'develop' into caip-multichain
jiexi Oct 15, 2024
92a1d24
Multichain: Do not add permittedChain scope for snaps. Use new networ…
jiexi Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ workflows:
- test-api-specs:
requires:
- prep-build-test
- test-api-specs-multichain:
requires:
- prep-build-test
- test-e2e-chrome-multiple-providers:
requires:
- prep-build-test
Expand Down Expand Up @@ -870,7 +873,7 @@ jobs:
at: .
- run:
name: Build extension for testing
command: yarn build:test
command: CHAIN_PERMISSIONS=1 BARAD_DUR=1 yarn build:test
Copy link
Contributor Author

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

- run:
name: Move test build to 'dist-test' to avoid conflict with production build
command: mv ./dist ./dist-test
Expand Down Expand Up @@ -1091,6 +1094,37 @@ jobs:
- store_test_results:
path: test/test-results/e2e

test-api-specs-multichain:
executor: node-browsers-medium-plus
steps:
- run: *shallow-git-clone-and-enable-vnc
- run: sudo corepack enable
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test ./dist
- run:
name: Move test zips to builds
command: mv ./builds-test ./builds
- gh/install
- run:
name: test:api-specs-multichain
command: .circleci/scripts/test-run-e2e.sh yarn test:api-specs-multichain
no_output_timeout: 5m
- run:
name: Comment on PR
command: |
if [ -f html-report-multichain/index.html ]; then
gh pr comment "${CIRCLE_PR_NUMBER}" --body ":x: Multichain API Spec Test Failed. View the report [here](https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/${CIRCLE_NODE_INDEX}/html-report-multichain/index.html)."
else
echo "Multichain API Spec Report not found!"
fi
when: on_fail
- store_artifacts:
path: html-report-multichain
destination: html-report-multichain

test-api-specs:
executor: node-browsers-medium-plus
steps:
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ lavamoat/**/policy-debug.json
# Attributions
licenseInfos.json

# Branding
/app/images/branding

# API Spec tests
html-report/
html-report-multichain/

/app/images/branding
/changed-files
26 changes: 19 additions & 7 deletions .storybook/test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1398,17 +1398,29 @@ const state = {
subjects: {
'https://app.uniswap.org': {
permissions: {
eth_accounts: {
invoker: 'https://app.uniswap.org',
parentCapability: 'eth_accounts',
id: 'a7342e4b-beae-4525-a36c-c0635fd03359',
date: 1620710693178,
'endowment:caip25': {
caveats: [
{
type: 'restrictReturnedAccounts',
value: ['0x64a845a5b02460acf8a3d84503b0d68d028b4bb4'],
type: 'authorizedScopes',
value: {
requiredScopes: {},
optionalScopes: {
'eip155:1': {
methods: [],
notifications: [],
accounts: [
'eip155:1:0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
],
},
},
isMultichainOrigin: false,
},
},
],
invoker: 'https://app.uniswap.org',
id: 'a7342e4b-beae-4525-a36c-c0635fd03359',
date: 1620710693178,
parentCapability: 'endowment:caip25',
},
},
},
Expand Down
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];
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);
9 changes: 2 additions & 7 deletions app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,13 +637,8 @@ function emitDappViewedMetricEvent(origin) {
return;
}

const permissions = controller.controllerMessenger.call(
'PermissionController:getPermissions',
origin,
);
const numberOfConnectedAccounts =
permissions?.eth_accounts?.caveats[0]?.value.length;
if (!numberOfConnectedAccounts) {
const numberOfConnectedAccounts = controller.getPermittedAccounts(origin);
if (numberOfConnectedAccounts.length === 0) {
return;
}

Expand Down
Loading
Loading