feat(tron-wallet-snap): add Core messenger plumbing - #95
Conversation
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
b67ea64 to
8624473
Compare
2339dbc to
1413a43
Compare
|
@SocketSecurity ignore npm/@metamask/assets-controller@11.2.0 |
|
@SocketSecurity ignore npm/@metamask/snaps-controllers@19.0.1 |
|
@SocketSecurity ignore npm/@metamask/assets-controllers@110.1.0 |
|
@SocketSecurity ignore npm/@metamask/config-registry-controller@2.0.0 |
|
@SocketSecurity ignore npm/@metamask/core-backend@7.0.0 |
|
@SocketSecurity ignore npm/@metamask/core-backend@8.1.0 |
|
@SocketSecurity ignore npm/@metamask/eth-json-rpc-infura@10.3.0 |
|
@SocketSecurity ignore npm/@metamask/geolocation-controller@1.0.0 |
|
@SocketSecurity ignore npm/@metamask/multichain-network-controller@3.2.2 |
|
@SocketSecurity ignore npm/@metamask/network-controller@34.0.0 |
|
@SocketSecurity ignore npm/@metamask/network-controller@35.0.0 |
|
@SocketSecurity ignore npm/@metamask/phishing-controller@17.3.1 |
|
@SocketSecurity ignore npm/@metamask/profile-sync-controller@28.3.0 |
|
@SocketSecurity ignore npm/@metamask/remote-feature-flag-controller@4.2.2 |
|
@SocketSecurity ignore npm/@metamask/remote-feature-flag-controller@5.0.0 |
|
@SocketSecurity ignore npm/@metamask/transaction-controller@69.4.0 |
|
@SocketSecurity ignore npm/@ethersproject/providers@5.8.0 |
|
@SocketSecurity ignore npm/@tanstack/query-core@5.101.4 |
|
@SocketSecurity ignore npm/keccak@3.0.4 |
|
@SocketSecurity ignore npm/ethereumjs-wallet@1.0.2 |
c9d4f0c to
d5a852a
Compare
ca77bde to
721da6f
Compare
d5a852a to
053386c
Compare
24a1fdb to
7b59e7c
Compare
192f20f to
602a0db
Compare
86f8e33 to
91b9f68
Compare
| "files": [], | ||
| "scripts": { | ||
| "build": "yarn workspaces foreach --all --no-private --parallel --interlaced --verbose run build", | ||
| "build": "yarn workspaces foreach --all --no-private --parallel --topological-dev --interlaced --verbose run build", |
There was a problem hiding this comment.
This is needed because Yarn is smart and detects it can import the code from snap-networks-utils locally and not go through npm. However since the packages build at the same time there is a race condition. Paired with parallel this automatically orders things the best way possible.
| messenger: coreMessenger as RemoteFeatureFlagsProviderMessenger, | ||
| }); | ||
| const assetsProvider = new AssetsProvider({ | ||
| messenger: coreMessenger as AssetsProviderMessenger, |
There was a problem hiding this comment.
I haven't been able to automatically have this type set yet. Will ask @mikesposito when he is back to see if we can come up with some ideas.
91b9f68 to
b24a871
Compare
4a61bb5 to
5da8934
Compare
Instantiate Core messenger via getMessenger and wire RemoteFeatureFlagsProvider / AssetsProvider into context for the upcoming AssetsController migration. Reads still delegate to SnapAssetsAdapter. Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
5da8934 to
938c2bf
Compare
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Co-authored-by: Ulisses Ferreira <ulisses@hey.com>
Summary
getMessengerand endowRemoteFeatureFlagController:getStateSnapAssetsAdapterPart 1 of 2 split from #94. Part 2:
WPN-1497-core-adapter-routing.Jira
Test plan
yarn workspace @metamask/tron-wallet-snap buildyarn workspace @metamask/tron-wallet-snap run jest --no-coverage(887 tests)Stacks on #92 (
WPN-1497-snap-owned-helpers).