Skip to content

Commit c8a61ea

Browse files
committed
Update LavaMoat policies
1 parent 51d7c00 commit c8a61ea

File tree

6 files changed

+520
-22
lines changed

6 files changed

+520
-22
lines changed

lavamoat/browserify/beta/policy.json

Lines changed: 125 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,18 @@
10851085
"@metamask/ppom-validator>json-rpc-random-id": true
10861086
}
10871087
},
1088+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/eth-block-tracker": {
1089+
"globals": {
1090+
"clearTimeout": true,
1091+
"console.error": true,
1092+
"setTimeout": true
1093+
},
1094+
"packages": {
1095+
"@metamask/safe-event-emitter": true,
1096+
"@metamask/utils": true,
1097+
"@metamask/ppom-validator>json-rpc-random-id": true
1098+
}
1099+
},
10881100
"@metamask/keyring-controller>@metamask/eth-hd-keyring": {
10891101
"globals": {
10901102
"TextEncoder": true
@@ -1134,7 +1146,21 @@
11341146
"@metamask/rpc-errors": true,
11351147
"@metamask/superstruct": true,
11361148
"@metamask/utils": true,
1137-
"@metamask/eth-json-rpc-middleware>klona": true,
1149+
"@metamask/json-rpc-engine>klona": true,
1150+
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true
1151+
}
1152+
},
1153+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-middleware": {
1154+
"globals": {
1155+
"setTimeout": true
1156+
},
1157+
"packages": {
1158+
"@metamask/eth-sig-util": true,
1159+
"@metamask/json-rpc-engine": true,
1160+
"@metamask/rpc-errors": true,
1161+
"@metamask/superstruct": true,
1162+
"@metamask/utils": true,
1163+
"@metamask/json-rpc-engine>klona": true,
11381164
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true
11391165
}
11401166
},
@@ -1146,6 +1172,12 @@
11461172
"uuid": true
11471173
}
11481174
},
1175+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-provider": {
1176+
"packages": {
1177+
"@metamask/json-rpc-engine": true,
1178+
"nanoid": true
1179+
}
1180+
},
11491181
"@metamask/eth-ledger-bridge-keyring": {
11501182
"globals": {
11511183
"addEventListener": true,
@@ -1331,6 +1363,20 @@
13311363
"uuid": true
13321364
}
13331365
},
1366+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/gas-fee-controller": {
1367+
"globals": {
1368+
"clearInterval": true,
1369+
"console.error": true,
1370+
"setInterval": true
1371+
},
1372+
"packages": {
1373+
"@metamask/controller-utils": true,
1374+
"@metamask/controller-utils>@metamask/eth-query": true,
1375+
"@metamask/subscription-controller>@metamask/polling-controller": true,
1376+
"bn.js": true,
1377+
"uuid": true
1378+
}
1379+
},
13341380
"@metamask/gator-permissions-controller": {
13351381
"globals": {
13361382
"clearTimeout": true,
@@ -1358,7 +1404,9 @@
13581404
"packages": {
13591405
"@metamask/rpc-errors": true,
13601406
"@metamask/safe-event-emitter": true,
1361-
"@metamask/utils": true
1407+
"@metamask/utils": true,
1408+
"deep-freeze-strict": true,
1409+
"@metamask/json-rpc-engine>klona": true
13621410
}
13631411
},
13641412
"@metamask/json-rpc-middleware-stream": {
@@ -1584,6 +1632,33 @@
15841632
"uuid": true
15851633
}
15861634
},
1635+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller": {
1636+
"globals": {
1637+
"Intl.NumberFormat": true,
1638+
"URL": true,
1639+
"setTimeout": true
1640+
},
1641+
"packages": {
1642+
"@metamask/base-controller": true,
1643+
"@metamask/controller-utils": true,
1644+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/eth-block-tracker": true,
1645+
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
1646+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-middleware": true,
1647+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-provider": true,
1648+
"@metamask/controller-utils>@metamask/eth-query": true,
1649+
"@metamask/json-rpc-engine": true,
1650+
"@metamask/rpc-errors": true,
1651+
"@metamask/network-controller>@metamask/swappable-obj-proxy": true,
1652+
"@metamask/utils": true,
1653+
"addons-linter>deepmerge": true,
1654+
"eslint>fast-deep-equal": true,
1655+
"immer": true,
1656+
"lodash": true,
1657+
"reselect": true,
1658+
"uri-js": true,
1659+
"uuid": true
1660+
}
1661+
},
15871662
"@metamask/network-enablement-controller": {
15881663
"packages": {
15891664
"@metamask/base-controller": true,
@@ -1694,6 +1769,18 @@
16941769
"uuid": true
16951770
}
16961771
},
1772+
"@metamask/subscription-controller>@metamask/polling-controller": {
1773+
"globals": {
1774+
"clearTimeout": true,
1775+
"console.error": true,
1776+
"setTimeout": true
1777+
},
1778+
"packages": {
1779+
"@metamask/base-controller": true,
1780+
"@metamask/snaps-utils>fast-json-stable-stringify": true,
1781+
"uuid": true
1782+
}
1783+
},
16971784
"@metamask/post-message-stream": {
16981785
"globals": {
16991786
"MessageEvent.prototype": true,
@@ -2015,8 +2102,8 @@
20152102
},
20162103
"packages": {
20172104
"@metamask/controller-utils": true,
2018-
"@metamask/bridge-controller>@metamask/polling-controller": true,
2019-
"@metamask/transaction-controller": true,
2105+
"@metamask/subscription-controller>@metamask/polling-controller": true,
2106+
"@metamask/subscription-controller>@metamask/transaction-controller": true,
20202107
"@metamask/subscription-controller>bignumber.js": true
20212108
}
20222109
},
@@ -2071,6 +2158,40 @@
20712158
"uuid": true
20722159
}
20732160
},
2161+
"@metamask/subscription-controller>@metamask/transaction-controller": {
2162+
"globals": {
2163+
"clearTimeout": true,
2164+
"console.error": true,
2165+
"fetch": true,
2166+
"setTimeout": true
2167+
},
2168+
"packages": {
2169+
"@ethereumjs/tx>@ethereumjs/common": true,
2170+
"@ethereumjs/tx": true,
2171+
"@ethersproject/abi": true,
2172+
"@ethersproject/contracts": true,
2173+
"@ethersproject/providers": true,
2174+
"ethers>@ethersproject/wallet": true,
2175+
"@metamask/base-controller": true,
2176+
"@metamask/controller-utils": true,
2177+
"@metamask/controller-utils>@metamask/eth-query": true,
2178+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/gas-fee-controller": true,
2179+
"@metamask/metamask-eth-abis": true,
2180+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller": true,
2181+
"@metamask/transaction-controller>@metamask/nonce-tracker": true,
2182+
"@metamask/rpc-errors": true,
2183+
"@metamask/utils": true,
2184+
"@metamask/eth-qr-keyring>async-mutex": true,
2185+
"@metamask/subscription-controller>bignumber.js": true,
2186+
"bn.js": true,
2187+
"browserify>buffer": true,
2188+
"eth-method-registry": true,
2189+
"webpack>events": true,
2190+
"fast-json-patch": true,
2191+
"lodash": true,
2192+
"uuid": true
2193+
}
2194+
},
20742195
"@metamask/user-operation-controller": {
20752196
"globals": {
20762197
"fetch": true

lavamoat/browserify/experimental/policy.json

Lines changed: 125 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,18 @@
10851085
"@metamask/ppom-validator>json-rpc-random-id": true
10861086
}
10871087
},
1088+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/eth-block-tracker": {
1089+
"globals": {
1090+
"clearTimeout": true,
1091+
"console.error": true,
1092+
"setTimeout": true
1093+
},
1094+
"packages": {
1095+
"@metamask/safe-event-emitter": true,
1096+
"@metamask/utils": true,
1097+
"@metamask/ppom-validator>json-rpc-random-id": true
1098+
}
1099+
},
10881100
"@metamask/keyring-controller>@metamask/eth-hd-keyring": {
10891101
"globals": {
10901102
"TextEncoder": true
@@ -1134,7 +1146,21 @@
11341146
"@metamask/rpc-errors": true,
11351147
"@metamask/superstruct": true,
11361148
"@metamask/utils": true,
1137-
"@metamask/eth-json-rpc-middleware>klona": true,
1149+
"@metamask/json-rpc-engine>klona": true,
1150+
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true
1151+
}
1152+
},
1153+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-middleware": {
1154+
"globals": {
1155+
"setTimeout": true
1156+
},
1157+
"packages": {
1158+
"@metamask/eth-sig-util": true,
1159+
"@metamask/json-rpc-engine": true,
1160+
"@metamask/rpc-errors": true,
1161+
"@metamask/superstruct": true,
1162+
"@metamask/utils": true,
1163+
"@metamask/json-rpc-engine>klona": true,
11381164
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true
11391165
}
11401166
},
@@ -1146,6 +1172,12 @@
11461172
"uuid": true
11471173
}
11481174
},
1175+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-provider": {
1176+
"packages": {
1177+
"@metamask/json-rpc-engine": true,
1178+
"nanoid": true
1179+
}
1180+
},
11491181
"@metamask/eth-ledger-bridge-keyring": {
11501182
"globals": {
11511183
"addEventListener": true,
@@ -1331,6 +1363,20 @@
13311363
"uuid": true
13321364
}
13331365
},
1366+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/gas-fee-controller": {
1367+
"globals": {
1368+
"clearInterval": true,
1369+
"console.error": true,
1370+
"setInterval": true
1371+
},
1372+
"packages": {
1373+
"@metamask/controller-utils": true,
1374+
"@metamask/controller-utils>@metamask/eth-query": true,
1375+
"@metamask/subscription-controller>@metamask/polling-controller": true,
1376+
"bn.js": true,
1377+
"uuid": true
1378+
}
1379+
},
13341380
"@metamask/gator-permissions-controller": {
13351381
"globals": {
13361382
"clearTimeout": true,
@@ -1358,7 +1404,9 @@
13581404
"packages": {
13591405
"@metamask/rpc-errors": true,
13601406
"@metamask/safe-event-emitter": true,
1361-
"@metamask/utils": true
1407+
"@metamask/utils": true,
1408+
"deep-freeze-strict": true,
1409+
"@metamask/json-rpc-engine>klona": true
13621410
}
13631411
},
13641412
"@metamask/json-rpc-middleware-stream": {
@@ -1584,6 +1632,33 @@
15841632
"uuid": true
15851633
}
15861634
},
1635+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller": {
1636+
"globals": {
1637+
"Intl.NumberFormat": true,
1638+
"URL": true,
1639+
"setTimeout": true
1640+
},
1641+
"packages": {
1642+
"@metamask/base-controller": true,
1643+
"@metamask/controller-utils": true,
1644+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/eth-block-tracker": true,
1645+
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
1646+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-middleware": true,
1647+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller>@metamask/eth-json-rpc-provider": true,
1648+
"@metamask/controller-utils>@metamask/eth-query": true,
1649+
"@metamask/json-rpc-engine": true,
1650+
"@metamask/rpc-errors": true,
1651+
"@metamask/network-controller>@metamask/swappable-obj-proxy": true,
1652+
"@metamask/utils": true,
1653+
"addons-linter>deepmerge": true,
1654+
"eslint>fast-deep-equal": true,
1655+
"immer": true,
1656+
"lodash": true,
1657+
"reselect": true,
1658+
"uri-js": true,
1659+
"uuid": true
1660+
}
1661+
},
15871662
"@metamask/network-enablement-controller": {
15881663
"packages": {
15891664
"@metamask/base-controller": true,
@@ -1694,6 +1769,18 @@
16941769
"uuid": true
16951770
}
16961771
},
1772+
"@metamask/subscription-controller>@metamask/polling-controller": {
1773+
"globals": {
1774+
"clearTimeout": true,
1775+
"console.error": true,
1776+
"setTimeout": true
1777+
},
1778+
"packages": {
1779+
"@metamask/base-controller": true,
1780+
"@metamask/snaps-utils>fast-json-stable-stringify": true,
1781+
"uuid": true
1782+
}
1783+
},
16971784
"@metamask/post-message-stream": {
16981785
"globals": {
16991786
"MessageEvent.prototype": true,
@@ -2015,8 +2102,8 @@
20152102
},
20162103
"packages": {
20172104
"@metamask/controller-utils": true,
2018-
"@metamask/bridge-controller>@metamask/polling-controller": true,
2019-
"@metamask/transaction-controller": true,
2105+
"@metamask/subscription-controller>@metamask/polling-controller": true,
2106+
"@metamask/subscription-controller>@metamask/transaction-controller": true,
20202107
"@metamask/subscription-controller>bignumber.js": true
20212108
}
20222109
},
@@ -2071,6 +2158,40 @@
20712158
"uuid": true
20722159
}
20732160
},
2161+
"@metamask/subscription-controller>@metamask/transaction-controller": {
2162+
"globals": {
2163+
"clearTimeout": true,
2164+
"console.error": true,
2165+
"fetch": true,
2166+
"setTimeout": true
2167+
},
2168+
"packages": {
2169+
"@ethereumjs/tx>@ethereumjs/common": true,
2170+
"@ethereumjs/tx": true,
2171+
"@ethersproject/abi": true,
2172+
"@ethersproject/contracts": true,
2173+
"@ethersproject/providers": true,
2174+
"ethers>@ethersproject/wallet": true,
2175+
"@metamask/base-controller": true,
2176+
"@metamask/controller-utils": true,
2177+
"@metamask/controller-utils>@metamask/eth-query": true,
2178+
"@metamask/subscription-controller>@metamask/transaction-controller>@metamask/gas-fee-controller": true,
2179+
"@metamask/metamask-eth-abis": true,
2180+
"@metamask/subscription-controller>@metamask/polling-controller>@metamask/network-controller": true,
2181+
"@metamask/transaction-controller>@metamask/nonce-tracker": true,
2182+
"@metamask/rpc-errors": true,
2183+
"@metamask/utils": true,
2184+
"@metamask/eth-qr-keyring>async-mutex": true,
2185+
"@metamask/subscription-controller>bignumber.js": true,
2186+
"bn.js": true,
2187+
"browserify>buffer": true,
2188+
"eth-method-registry": true,
2189+
"webpack>events": true,
2190+
"fast-json-patch": true,
2191+
"lodash": true,
2192+
"uuid": true
2193+
}
2194+
},
20742195
"@metamask/user-operation-controller": {
20752196
"globals": {
20762197
"fetch": true

0 commit comments

Comments
 (0)