Skip to content

Commit

Permalink
Update LavaMoat policies
Browse files Browse the repository at this point in the history
  • Loading branch information
metamaskbot committed Jan 15, 2025
1 parent 52f8812 commit 86cb222
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 176 deletions.
107 changes: 63 additions & 44 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -998,19 +998,6 @@
"packages": {
"@metamask/safe-event-emitter": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/ppom-validator>json-rpc-random-id": true,
"pify": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/safe-event-emitter": true,
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/ppom-validator>json-rpc-random-id": true
}
},
Expand Down Expand Up @@ -1446,7 +1433,7 @@
"packages": {
"@metamask/base-controller": true,
"@metamask/controller-utils": true,
"@metamask/network-controller>@metamask/eth-block-tracker": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/eth-json-rpc-middleware": true,
"@metamask/eth-json-rpc-provider": true,
Expand Down Expand Up @@ -1623,6 +1610,36 @@
"@metamask/profile-sync-controller>siwe": true
}
},
"@metamask/providers": {
"globals": {
"CustomEvent": true,
"Event": true,
"addEventListener": true,
"chrome.runtime.connect": true,
"console": true,
"dispatchEvent": true,
"document.createElement": true,
"document.readyState": true,
"ethereum": "write",
"location.hostname": true,
"removeEventListener": true,
"web3": true
},
"packages": {
"@metamask/json-rpc-engine": true,
"@metamask/json-rpc-middleware-stream": true,
"@metamask/object-multiplex": true,
"@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"@metamask/providers>detect-browser": true,
"@metamask/providers>extension-port-stream": true,
"eslint>fast-deep-equal": true,
"@metamask/providers>is-stream": true,
"readable-stream": true,
"uuid": true
}
},
"@metamask/queued-request-controller": {
"packages": {
"@metamask/base-controller": true,
Expand Down Expand Up @@ -1976,21 +1993,6 @@
"semver": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"browserify>buffer": true,
"nock>debug": true,
"@metamask/utils>pony-cause": true,
"semver": true
}
},
"@metamask/keyring-controller>@metamask/eth-hd-keyring>@metamask/utils": {
"globals": {
"TextDecoder": true,
Expand Down Expand Up @@ -3533,6 +3535,15 @@
"@metamask/ppom-validator>elliptic>minimalistic-assert": true
}
},
"@metamask/providers>detect-browser": {
"globals": {
"document": true,
"navigator": true
},
"packages": {
"process": true
}
},
"crypto-browserify>diffie-hellman": {
"packages": {
"bn.js": true,
Expand Down Expand Up @@ -3822,6 +3833,12 @@
"extension-port-stream>readable-stream": true
}
},
"@metamask/providers>extension-port-stream": {
"packages": {
"browserify>buffer": true,
"@metamask/providers>extension-port-stream>readable-stream": true
}
},
"fast-json-patch": {
"globals": {
"addEventListener": true,
Expand Down Expand Up @@ -5099,6 +5116,23 @@
"browserify>string_decoder": true
}
},
"@metamask/providers>extension-port-stream>readable-stream": {
"globals": {
"AbortController": true,
"AbortSignal": true,
"AggregateError": true,
"Blob": true,
"ERR_INVALID_ARG_TYPE": true,
"queueMicrotask": true
},
"packages": {
"@lavamoat/lavapack>readable-stream>abort-controller": true,
"browserify>buffer": true,
"webpack>events": true,
"process": true,
"browserify>string_decoder": true
}
},
"@metamask/snaps-controllers>readable-web-to-node-stream": {
"packages": {
"readable-stream": true
Expand Down Expand Up @@ -5520,11 +5554,6 @@
"crypto": true
}
},
"web3-stream-provider>uuid": {
"globals": {
"crypto": true
}
},
"@metamask/snaps-utils>validate-npm-package-name": {
"packages": {
"@metamask/snaps-utils>validate-npm-package-name>builtins": true
Expand Down Expand Up @@ -5570,16 +5599,6 @@
"XMLHttpRequest": true
}
},
"web3-stream-provider": {
"globals": {
"setTimeout": true
},
"packages": {
"readable-stream": true,
"browserify>util": true,
"web3-stream-provider>uuid": true
}
},
"@metamask/controllers>web3": {
"globals": {
"XMLHttpRequest": true
Expand Down
107 changes: 63 additions & 44 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -998,19 +998,6 @@
"packages": {
"@metamask/safe-event-emitter": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/ppom-validator>json-rpc-random-id": true,
"pify": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/safe-event-emitter": true,
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": true,
"@metamask/ppom-validator>json-rpc-random-id": true
}
},
Expand Down Expand Up @@ -1446,7 +1433,7 @@
"packages": {
"@metamask/base-controller": true,
"@metamask/controller-utils": true,
"@metamask/network-controller>@metamask/eth-block-tracker": true,
"@metamask/eth-token-tracker>@metamask/eth-block-tracker": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/eth-json-rpc-middleware": true,
"@metamask/eth-json-rpc-provider": true,
Expand Down Expand Up @@ -1623,6 +1610,36 @@
"@metamask/profile-sync-controller>siwe": true
}
},
"@metamask/providers": {
"globals": {
"CustomEvent": true,
"Event": true,
"addEventListener": true,
"chrome.runtime.connect": true,
"console": true,
"dispatchEvent": true,
"document.createElement": true,
"document.readyState": true,
"ethereum": "write",
"location.hostname": true,
"removeEventListener": true,
"web3": true
},
"packages": {
"@metamask/json-rpc-engine": true,
"@metamask/json-rpc-middleware-stream": true,
"@metamask/object-multiplex": true,
"@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"@metamask/providers>detect-browser": true,
"@metamask/providers>extension-port-stream": true,
"eslint>fast-deep-equal": true,
"@metamask/providers>is-stream": true,
"readable-stream": true,
"uuid": true
}
},
"@metamask/queued-request-controller": {
"packages": {
"@metamask/base-controller": true,
Expand Down Expand Up @@ -1976,21 +1993,6 @@
"semver": true
}
},
"@metamask/network-controller>@metamask/eth-block-tracker>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"browserify>buffer": true,
"nock>debug": true,
"@metamask/utils>pony-cause": true,
"semver": true
}
},
"@metamask/keyring-controller>@metamask/eth-hd-keyring>@metamask/utils": {
"globals": {
"TextDecoder": true,
Expand Down Expand Up @@ -3533,6 +3535,15 @@
"@metamask/ppom-validator>elliptic>minimalistic-assert": true
}
},
"@metamask/providers>detect-browser": {
"globals": {
"document": true,
"navigator": true
},
"packages": {
"process": true
}
},
"crypto-browserify>diffie-hellman": {
"packages": {
"bn.js": true,
Expand Down Expand Up @@ -3822,6 +3833,12 @@
"extension-port-stream>readable-stream": true
}
},
"@metamask/providers>extension-port-stream": {
"packages": {
"browserify>buffer": true,
"@metamask/providers>extension-port-stream>readable-stream": true
}
},
"fast-json-patch": {
"globals": {
"addEventListener": true,
Expand Down Expand Up @@ -5099,6 +5116,23 @@
"browserify>string_decoder": true
}
},
"@metamask/providers>extension-port-stream>readable-stream": {
"globals": {
"AbortController": true,
"AbortSignal": true,
"AggregateError": true,
"Blob": true,
"ERR_INVALID_ARG_TYPE": true,
"queueMicrotask": true
},
"packages": {
"@lavamoat/lavapack>readable-stream>abort-controller": true,
"browserify>buffer": true,
"webpack>events": true,
"process": true,
"browserify>string_decoder": true
}
},
"@metamask/snaps-controllers>readable-web-to-node-stream": {
"packages": {
"readable-stream": true
Expand Down Expand Up @@ -5520,11 +5554,6 @@
"crypto": true
}
},
"web3-stream-provider>uuid": {
"globals": {
"crypto": true
}
},
"@metamask/snaps-utils>validate-npm-package-name": {
"packages": {
"@metamask/snaps-utils>validate-npm-package-name>builtins": true
Expand Down Expand Up @@ -5570,16 +5599,6 @@
"XMLHttpRequest": true
}
},
"web3-stream-provider": {
"globals": {
"setTimeout": true
},
"packages": {
"readable-stream": true,
"browserify>util": true,
"web3-stream-provider>uuid": true
}
},
"@metamask/controllers>web3": {
"globals": {
"XMLHttpRequest": true
Expand Down
Loading

0 comments on commit 86cb222

Please sign in to comment.