Skip to content

Commit

Permalink
chore: dedupe packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Nov 20, 2023
1 parent 19a8920 commit 07faa5f
Show file tree
Hide file tree
Showing 7 changed files with 406 additions and 47 deletions.
63 changes: 61 additions & 2 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": {
Expand All @@ -206,6 +207,13 @@
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true
}
},
"@ethersproject/abi": {
"globals": {
"console.log": true
Expand Down Expand Up @@ -816,6 +824,7 @@
},
"@metamask/browser-passworder": {
"globals": {
"CryptoKey": true,
"btoa": true,
"crypto.getRandomValues": true,
"crypto.subtle.decrypt": true,
Expand All @@ -825,6 +834,7 @@
"crypto.subtle.importKey": true
},
"packages": {
"@metamask/utils": true,
"browserify>buffer": true
}
},
Expand Down Expand Up @@ -1527,13 +1537,62 @@
"@metamask/keyring-controller": {
"packages": {
"@metamask/base-controller": true,
"@metamask/eth-keyring-controller": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller": true,
"@metamask/keyring-controller>ethereumjs-wallet": true,
"@metamask/utils": true,
"eth-json-rpc-filters>async-mutex": true,
"ethereumjs-util": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller": {
"globals": {
"console.error": true
},
"packages": {
"@metamask/browser-passworder": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-hd-keyring": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-simple-keyring": true,
"@metamask/obs-store": true,
"@metamask/utils": true,
"webpack>events": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-hd-keyring": {
"globals": {
"TextEncoder": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/scure-bip39": true,
"@metamask/utils": true,
"browserify>buffer": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/assets-controllers>@metamask/abi-utils": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eth-sig-util>ethereumjs-util>ethjs-util": true,
"eth-sig-util>tweetnacl": true,
"eth-sig-util>tweetnacl-util": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-simple-keyring": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/utils": true,
"browserify>buffer": true,
"mocha>serialize-javascript>randombytes": true
}
},
"@metamask/keyring-controller>ethereumjs-wallet": {
"packages": {
"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true,
Expand Down
63 changes: 61 additions & 2 deletions lavamoat/browserify/desktop/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": {
Expand All @@ -206,6 +207,13 @@
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true
}
},
"@ethersproject/abi": {
"globals": {
"console.log": true
Expand Down Expand Up @@ -816,6 +824,7 @@
},
"@metamask/browser-passworder": {
"globals": {
"CryptoKey": true,
"btoa": true,
"crypto.getRandomValues": true,
"crypto.subtle.decrypt": true,
Expand All @@ -825,6 +834,7 @@
"crypto.subtle.importKey": true
},
"packages": {
"@metamask/utils": true,
"browserify>buffer": true
}
},
Expand Down Expand Up @@ -1641,13 +1651,62 @@
"@metamask/keyring-controller": {
"packages": {
"@metamask/base-controller": true,
"@metamask/eth-keyring-controller": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller": true,
"@metamask/keyring-controller>ethereumjs-wallet": true,
"@metamask/utils": true,
"eth-json-rpc-filters>async-mutex": true,
"ethereumjs-util": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller": {
"globals": {
"console.error": true
},
"packages": {
"@metamask/browser-passworder": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-hd-keyring": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-simple-keyring": true,
"@metamask/obs-store": true,
"@metamask/utils": true,
"webpack>events": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-hd-keyring": {
"globals": {
"TextEncoder": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/scure-bip39": true,
"@metamask/utils": true,
"browserify>buffer": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/assets-controllers>@metamask/abi-utils": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eth-sig-util>ethereumjs-util>ethjs-util": true,
"eth-sig-util>tweetnacl": true,
"eth-sig-util>tweetnacl-util": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-simple-keyring": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/utils": true,
"browserify>buffer": true,
"mocha>serialize-javascript>randombytes": true
}
},
"@metamask/keyring-controller>ethereumjs-wallet": {
"packages": {
"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true,
Expand Down
63 changes: 61 additions & 2 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": {
Expand All @@ -206,6 +207,13 @@
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true
}
},
"@ethersproject/abi": {
"globals": {
"console.log": true
Expand Down Expand Up @@ -816,6 +824,7 @@
},
"@metamask/browser-passworder": {
"globals": {
"CryptoKey": true,
"btoa": true,
"crypto.getRandomValues": true,
"crypto.subtle.decrypt": true,
Expand All @@ -825,6 +834,7 @@
"crypto.subtle.importKey": true
},
"packages": {
"@metamask/utils": true,
"browserify>buffer": true
}
},
Expand Down Expand Up @@ -1641,13 +1651,62 @@
"@metamask/keyring-controller": {
"packages": {
"@metamask/base-controller": true,
"@metamask/eth-keyring-controller": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller": true,
"@metamask/keyring-controller>ethereumjs-wallet": true,
"@metamask/utils": true,
"eth-json-rpc-filters>async-mutex": true,
"ethereumjs-util": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller": {
"globals": {
"console.error": true
},
"packages": {
"@metamask/browser-passworder": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-hd-keyring": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-simple-keyring": true,
"@metamask/obs-store": true,
"@metamask/utils": true,
"webpack>events": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-hd-keyring": {
"globals": {
"TextEncoder": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/scure-bip39": true,
"@metamask/utils": true,
"browserify>buffer": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/assets-controllers>@metamask/abi-utils": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eth-sig-util>ethereumjs-util>ethjs-util": true,
"eth-sig-util>tweetnacl": true,
"eth-sig-util>tweetnacl-util": true
}
},
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-simple-keyring": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/keyring-controller>@metamask/eth-keyring-controller>@metamask/eth-sig-util": true,
"@metamask/utils": true,
"browserify>buffer": true,
"mocha>serialize-javascript>randombytes": true
}
},
"@metamask/keyring-controller>ethereumjs-wallet": {
"packages": {
"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true,
Expand Down
Loading

0 comments on commit 07faa5f

Please sign in to comment.