1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Update @metamask/controller-utils to v4 (#19344)

The package `@metamask/controller-utils` has been updated to v4. This
version was part of the core monorepo v53 release. The remaining
packages released as part of v53 will be updated in later PRs.

This release included a variety of breaking changes, but most of them
did not affect the extension's usage of this library. The one that did
have an impact was the removal of the `Json` type, which was identical
to the `Json` type in `@metamask/utils`. We're now using the
`@metamask/utils` version of this type exclusively.

Relates to #19271

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
This commit is contained in:
Mark Stacey 2023-05-31 18:33:29 -02:30 committed by GitHub
parent bdf32199d1
commit 000c1f2ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 559 additions and 34 deletions

View File

@ -790,7 +790,7 @@
"@metamask/address-book-controller": { "@metamask/address-book-controller": {
"packages": { "packages": {
"@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/address-book-controller>@metamask/base-controller": true,
"@metamask/controller-utils": true "@metamask/address-book-controller>@metamask/controller-utils": true
} }
}, },
"@metamask/address-book-controller>@metamask/base-controller": { "@metamask/address-book-controller>@metamask/base-controller": {
@ -798,6 +798,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/address-book-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/announcement-controller": { "@metamask/announcement-controller": {
"packages": { "packages": {
"@metamask/base-controller": true "@metamask/base-controller": true
@ -837,10 +854,10 @@
"@ethersproject/providers": true, "@ethersproject/providers": true,
"@metamask/assets-controllers>@metamask/abi-utils": true, "@metamask/assets-controllers>@metamask/abi-utils": true,
"@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/base-controller": true,
"@metamask/assets-controllers>@metamask/controller-utils": true,
"@metamask/assets-controllers>abort-controller": true, "@metamask/assets-controllers>abort-controller": true,
"@metamask/assets-controllers>multiformats": true, "@metamask/assets-controllers>multiformats": true,
"@metamask/contract-metadata": true, "@metamask/contract-metadata": true,
"@metamask/controller-utils": true,
"@metamask/metamask-eth-abis": true, "@metamask/metamask-eth-abis": true,
"@metamask/utils": true, "@metamask/utils": true,
"browserify>events": true, "browserify>events": true,
@ -875,6 +892,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/assets-controllers>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/assets-controllers>abort-controller": { "@metamask/assets-controllers>abort-controller": {
"globals": { "globals": {
"AbortController": true "AbortController": true
@ -1518,8 +1552,8 @@
"setInterval": true "setInterval": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/gas-fee-controller>@metamask/base-controller": true, "@metamask/gas-fee-controller>@metamask/base-controller": true,
"@metamask/gas-fee-controller>@metamask/controller-utils": true,
"eth-query": true, "eth-query": true,
"ethereumjs-util": true, "ethereumjs-util": true,
"ethjs>ethjs-unit": true, "ethjs>ethjs-unit": true,
@ -1531,6 +1565,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/gas-fee-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/jazzicon": { "@metamask/jazzicon": {
"globals": { "globals": {
"document.createElement": true, "document.createElement": true,
@ -1629,8 +1680,8 @@
}, },
"@metamask/message-manager": { "@metamask/message-manager": {
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>@metamask/base-controller": true,
"@metamask/message-manager>@metamask/controller-utils": true,
"@metamask/message-manager>jsonschema": true, "@metamask/message-manager>jsonschema": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
@ -1644,6 +1695,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/message-manager>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/message-manager>jsonschema": { "@metamask/message-manager>jsonschema": {
"packages": { "packages": {
"browserify>url": true "browserify>url": true
@ -1674,8 +1742,8 @@
"console.error": true "console.error": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/base-controller": true,
"@metamask/permission-controller>@metamask/controller-utils": true,
"@metamask/permission-controller>nanoid": true, "@metamask/permission-controller>nanoid": true,
"deep-freeze-strict": true, "deep-freeze-strict": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1688,6 +1756,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/permission-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/permission-controller>nanoid": { "@metamask/permission-controller>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
@ -1698,8 +1783,8 @@
"fetch": true "fetch": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>@metamask/base-controller": true,
"@metamask/phishing-controller>@metamask/controller-utils": true,
"@metamask/phishing-warning>eth-phishing-detect": true, "@metamask/phishing-warning>eth-phishing-detect": true,
"punycode": true "punycode": true
} }
@ -1709,6 +1794,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/phishing-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/phishing-warning>eth-phishing-detect": { "@metamask/phishing-warning>eth-phishing-detect": {
"packages": { "packages": {
"eslint>optionator>fast-levenshtein": true "eslint>optionator>fast-levenshtein": true
@ -1760,9 +1862,9 @@
"console.info": true "console.info": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager": true, "@metamask/message-manager": true,
"@metamask/signature-controller>@metamask/base-controller": true, "@metamask/signature-controller>@metamask/base-controller": true,
"@metamask/signature-controller>@metamask/controller-utils": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1774,6 +1876,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/signature-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/smart-transactions-controller": { "@metamask/smart-transactions-controller": {
"globals": { "globals": {
"URLSearchParams": true, "URLSearchParams": true,

View File

@ -790,7 +790,7 @@
"@metamask/address-book-controller": { "@metamask/address-book-controller": {
"packages": { "packages": {
"@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/address-book-controller>@metamask/base-controller": true,
"@metamask/controller-utils": true "@metamask/address-book-controller>@metamask/controller-utils": true
} }
}, },
"@metamask/address-book-controller>@metamask/base-controller": { "@metamask/address-book-controller>@metamask/base-controller": {
@ -798,6 +798,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/address-book-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/announcement-controller": { "@metamask/announcement-controller": {
"packages": { "packages": {
"@metamask/base-controller": true "@metamask/base-controller": true
@ -837,10 +854,10 @@
"@ethersproject/providers": true, "@ethersproject/providers": true,
"@metamask/assets-controllers>@metamask/abi-utils": true, "@metamask/assets-controllers>@metamask/abi-utils": true,
"@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/base-controller": true,
"@metamask/assets-controllers>@metamask/controller-utils": true,
"@metamask/assets-controllers>abort-controller": true, "@metamask/assets-controllers>abort-controller": true,
"@metamask/assets-controllers>multiformats": true, "@metamask/assets-controllers>multiformats": true,
"@metamask/contract-metadata": true, "@metamask/contract-metadata": true,
"@metamask/controller-utils": true,
"@metamask/metamask-eth-abis": true, "@metamask/metamask-eth-abis": true,
"@metamask/utils": true, "@metamask/utils": true,
"browserify>events": true, "browserify>events": true,
@ -875,6 +892,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/assets-controllers>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/assets-controllers>abort-controller": { "@metamask/assets-controllers>abort-controller": {
"globals": { "globals": {
"AbortController": true "AbortController": true
@ -1589,8 +1623,8 @@
"setInterval": true "setInterval": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/gas-fee-controller>@metamask/base-controller": true, "@metamask/gas-fee-controller>@metamask/base-controller": true,
"@metamask/gas-fee-controller>@metamask/controller-utils": true,
"eth-query": true, "eth-query": true,
"ethereumjs-util": true, "ethereumjs-util": true,
"ethjs>ethjs-unit": true, "ethjs>ethjs-unit": true,
@ -1602,6 +1636,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/gas-fee-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/jazzicon": { "@metamask/jazzicon": {
"globals": { "globals": {
"document.createElement": true, "document.createElement": true,
@ -1700,8 +1751,8 @@
}, },
"@metamask/message-manager": { "@metamask/message-manager": {
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>@metamask/base-controller": true,
"@metamask/message-manager>@metamask/controller-utils": true,
"@metamask/message-manager>jsonschema": true, "@metamask/message-manager>jsonschema": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
@ -1715,6 +1766,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/message-manager>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/message-manager>jsonschema": { "@metamask/message-manager>jsonschema": {
"packages": { "packages": {
"browserify>url": true "browserify>url": true
@ -1722,8 +1790,8 @@
}, },
"@metamask/notification-controller": { "@metamask/notification-controller": {
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/notification-controller>@metamask/base-controller": true, "@metamask/notification-controller>@metamask/base-controller": true,
"@metamask/notification-controller>@metamask/controller-utils": true,
"@metamask/notification-controller>nanoid": true "@metamask/notification-controller>nanoid": true
} }
}, },
@ -1732,6 +1800,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/notification-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/notification-controller>nanoid": { "@metamask/notification-controller>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
@ -1757,8 +1842,8 @@
"console.error": true "console.error": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/base-controller": true,
"@metamask/permission-controller>@metamask/controller-utils": true,
"@metamask/permission-controller>nanoid": true, "@metamask/permission-controller>nanoid": true,
"deep-freeze-strict": true, "deep-freeze-strict": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1771,6 +1856,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/permission-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/permission-controller>nanoid": { "@metamask/permission-controller>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
@ -1781,8 +1883,8 @@
"fetch": true "fetch": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>@metamask/base-controller": true,
"@metamask/phishing-controller>@metamask/controller-utils": true,
"@metamask/phishing-warning>eth-phishing-detect": true, "@metamask/phishing-warning>eth-phishing-detect": true,
"punycode": true "punycode": true
} }
@ -1792,6 +1894,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/phishing-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/phishing-warning>eth-phishing-detect": { "@metamask/phishing-warning>eth-phishing-detect": {
"packages": { "packages": {
"eslint>optionator>fast-levenshtein": true "eslint>optionator>fast-levenshtein": true
@ -1946,9 +2065,9 @@
"console.info": true "console.info": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager": true, "@metamask/message-manager": true,
"@metamask/signature-controller>@metamask/base-controller": true, "@metamask/signature-controller>@metamask/base-controller": true,
"@metamask/signature-controller>@metamask/controller-utils": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1960,6 +2079,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/signature-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/smart-transactions-controller": { "@metamask/smart-transactions-controller": {
"globals": { "globals": {
"URLSearchParams": true, "URLSearchParams": true,

View File

@ -790,7 +790,7 @@
"@metamask/address-book-controller": { "@metamask/address-book-controller": {
"packages": { "packages": {
"@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/address-book-controller>@metamask/base-controller": true,
"@metamask/controller-utils": true "@metamask/address-book-controller>@metamask/controller-utils": true
} }
}, },
"@metamask/address-book-controller>@metamask/base-controller": { "@metamask/address-book-controller>@metamask/base-controller": {
@ -798,6 +798,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/address-book-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/announcement-controller": { "@metamask/announcement-controller": {
"packages": { "packages": {
"@metamask/base-controller": true "@metamask/base-controller": true
@ -837,10 +854,10 @@
"@ethersproject/providers": true, "@ethersproject/providers": true,
"@metamask/assets-controllers>@metamask/abi-utils": true, "@metamask/assets-controllers>@metamask/abi-utils": true,
"@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/base-controller": true,
"@metamask/assets-controllers>@metamask/controller-utils": true,
"@metamask/assets-controllers>abort-controller": true, "@metamask/assets-controllers>abort-controller": true,
"@metamask/assets-controllers>multiformats": true, "@metamask/assets-controllers>multiformats": true,
"@metamask/contract-metadata": true, "@metamask/contract-metadata": true,
"@metamask/controller-utils": true,
"@metamask/metamask-eth-abis": true, "@metamask/metamask-eth-abis": true,
"@metamask/utils": true, "@metamask/utils": true,
"browserify>events": true, "browserify>events": true,
@ -875,6 +892,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/assets-controllers>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/assets-controllers>abort-controller": { "@metamask/assets-controllers>abort-controller": {
"globals": { "globals": {
"AbortController": true "AbortController": true
@ -1589,8 +1623,8 @@
"setInterval": true "setInterval": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/gas-fee-controller>@metamask/base-controller": true, "@metamask/gas-fee-controller>@metamask/base-controller": true,
"@metamask/gas-fee-controller>@metamask/controller-utils": true,
"eth-query": true, "eth-query": true,
"ethereumjs-util": true, "ethereumjs-util": true,
"ethjs>ethjs-unit": true, "ethjs>ethjs-unit": true,
@ -1602,6 +1636,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/gas-fee-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/jazzicon": { "@metamask/jazzicon": {
"globals": { "globals": {
"document.createElement": true, "document.createElement": true,
@ -1700,8 +1751,8 @@
}, },
"@metamask/message-manager": { "@metamask/message-manager": {
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>@metamask/base-controller": true,
"@metamask/message-manager>@metamask/controller-utils": true,
"@metamask/message-manager>jsonschema": true, "@metamask/message-manager>jsonschema": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
@ -1715,6 +1766,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/message-manager>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/message-manager>jsonschema": { "@metamask/message-manager>jsonschema": {
"packages": { "packages": {
"browserify>url": true "browserify>url": true
@ -1722,8 +1790,8 @@
}, },
"@metamask/notification-controller": { "@metamask/notification-controller": {
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/notification-controller>@metamask/base-controller": true, "@metamask/notification-controller>@metamask/base-controller": true,
"@metamask/notification-controller>@metamask/controller-utils": true,
"@metamask/notification-controller>nanoid": true "@metamask/notification-controller>nanoid": true
} }
}, },
@ -1732,6 +1800,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/notification-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/notification-controller>nanoid": { "@metamask/notification-controller>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
@ -1757,8 +1842,8 @@
"console.error": true "console.error": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/base-controller": true,
"@metamask/permission-controller>@metamask/controller-utils": true,
"@metamask/permission-controller>nanoid": true, "@metamask/permission-controller>nanoid": true,
"deep-freeze-strict": true, "deep-freeze-strict": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1771,6 +1856,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/permission-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/permission-controller>nanoid": { "@metamask/permission-controller>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
@ -1781,8 +1883,8 @@
"fetch": true "fetch": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>@metamask/base-controller": true,
"@metamask/phishing-controller>@metamask/controller-utils": true,
"@metamask/phishing-warning>eth-phishing-detect": true, "@metamask/phishing-warning>eth-phishing-detect": true,
"punycode": true "punycode": true
} }
@ -1792,6 +1894,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/phishing-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/phishing-warning>eth-phishing-detect": { "@metamask/phishing-warning>eth-phishing-detect": {
"packages": { "packages": {
"eslint>optionator>fast-levenshtein": true "eslint>optionator>fast-levenshtein": true
@ -1946,9 +2065,9 @@
"console.info": true "console.info": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager": true, "@metamask/message-manager": true,
"@metamask/signature-controller>@metamask/base-controller": true, "@metamask/signature-controller>@metamask/base-controller": true,
"@metamask/signature-controller>@metamask/controller-utils": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1960,6 +2079,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/signature-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/smart-transactions-controller": { "@metamask/smart-transactions-controller": {
"globals": { "globals": {
"URLSearchParams": true, "URLSearchParams": true,

View File

@ -790,7 +790,7 @@
"@metamask/address-book-controller": { "@metamask/address-book-controller": {
"packages": { "packages": {
"@metamask/address-book-controller>@metamask/base-controller": true, "@metamask/address-book-controller>@metamask/base-controller": true,
"@metamask/controller-utils": true "@metamask/address-book-controller>@metamask/controller-utils": true
} }
}, },
"@metamask/address-book-controller>@metamask/base-controller": { "@metamask/address-book-controller>@metamask/base-controller": {
@ -798,6 +798,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/address-book-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/announcement-controller": { "@metamask/announcement-controller": {
"packages": { "packages": {
"@metamask/base-controller": true "@metamask/base-controller": true
@ -837,10 +854,10 @@
"@ethersproject/providers": true, "@ethersproject/providers": true,
"@metamask/assets-controllers>@metamask/abi-utils": true, "@metamask/assets-controllers>@metamask/abi-utils": true,
"@metamask/assets-controllers>@metamask/base-controller": true, "@metamask/assets-controllers>@metamask/base-controller": true,
"@metamask/assets-controllers>@metamask/controller-utils": true,
"@metamask/assets-controllers>abort-controller": true, "@metamask/assets-controllers>abort-controller": true,
"@metamask/assets-controllers>multiformats": true, "@metamask/assets-controllers>multiformats": true,
"@metamask/contract-metadata": true, "@metamask/contract-metadata": true,
"@metamask/controller-utils": true,
"@metamask/metamask-eth-abis": true, "@metamask/metamask-eth-abis": true,
"@metamask/utils": true, "@metamask/utils": true,
"browserify>events": true, "browserify>events": true,
@ -875,6 +892,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/assets-controllers>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/assets-controllers>abort-controller": { "@metamask/assets-controllers>abort-controller": {
"globals": { "globals": {
"AbortController": true "AbortController": true
@ -1518,8 +1552,8 @@
"setInterval": true "setInterval": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/gas-fee-controller>@metamask/base-controller": true, "@metamask/gas-fee-controller>@metamask/base-controller": true,
"@metamask/gas-fee-controller>@metamask/controller-utils": true,
"eth-query": true, "eth-query": true,
"ethereumjs-util": true, "ethereumjs-util": true,
"ethjs>ethjs-unit": true, "ethjs>ethjs-unit": true,
@ -1531,6 +1565,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/gas-fee-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/jazzicon": { "@metamask/jazzicon": {
"globals": { "globals": {
"document.createElement": true, "document.createElement": true,
@ -1629,8 +1680,8 @@
}, },
"@metamask/message-manager": { "@metamask/message-manager": {
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager>@metamask/base-controller": true, "@metamask/message-manager>@metamask/base-controller": true,
"@metamask/message-manager>@metamask/controller-utils": true,
"@metamask/message-manager>jsonschema": true, "@metamask/message-manager>jsonschema": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
@ -1644,6 +1695,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/message-manager>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/message-manager>jsonschema": { "@metamask/message-manager>jsonschema": {
"packages": { "packages": {
"browserify>url": true "browserify>url": true
@ -1674,8 +1742,8 @@
"console.error": true "console.error": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/permission-controller>@metamask/base-controller": true, "@metamask/permission-controller>@metamask/base-controller": true,
"@metamask/permission-controller>@metamask/controller-utils": true,
"@metamask/permission-controller>nanoid": true, "@metamask/permission-controller>nanoid": true,
"deep-freeze-strict": true, "deep-freeze-strict": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1688,6 +1756,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/permission-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/permission-controller>nanoid": { "@metamask/permission-controller>nanoid": {
"globals": { "globals": {
"crypto.getRandomValues": true "crypto.getRandomValues": true
@ -1698,8 +1783,8 @@
"fetch": true "fetch": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/phishing-controller>@metamask/base-controller": true, "@metamask/phishing-controller>@metamask/base-controller": true,
"@metamask/phishing-controller>@metamask/controller-utils": true,
"@metamask/phishing-warning>eth-phishing-detect": true, "@metamask/phishing-warning>eth-phishing-detect": true,
"punycode": true "punycode": true
} }
@ -1709,6 +1794,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/phishing-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/phishing-warning>eth-phishing-detect": { "@metamask/phishing-warning>eth-phishing-detect": {
"packages": { "packages": {
"eslint>optionator>fast-levenshtein": true "eslint>optionator>fast-levenshtein": true
@ -1760,9 +1862,9 @@
"console.info": true "console.info": true
}, },
"packages": { "packages": {
"@metamask/controller-utils": true,
"@metamask/message-manager": true, "@metamask/message-manager": true,
"@metamask/signature-controller>@metamask/base-controller": true, "@metamask/signature-controller>@metamask/base-controller": true,
"@metamask/signature-controller>@metamask/controller-utils": true,
"browserify>buffer": true, "browserify>buffer": true,
"browserify>events": true, "browserify>events": true,
"eth-rpc-errors": true, "eth-rpc-errors": true,
@ -1774,6 +1876,23 @@
"immer": true "immer": true
} }
}, },
"@metamask/signature-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/utils": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true,
"ethereumjs-util": true,
"ethjs>ethjs-unit": true
}
},
"@metamask/smart-transactions-controller": { "@metamask/smart-transactions-controller": {
"globals": { "globals": {
"URLSearchParams": true, "URLSearchParams": true,

View File

@ -230,7 +230,7 @@
"@metamask/base-controller": "^3.0.0", "@metamask/base-controller": "^3.0.0",
"@metamask/browser-passworder": "^4.1.0", "@metamask/browser-passworder": "^4.1.0",
"@metamask/contract-metadata": "^2.3.1", "@metamask/contract-metadata": "^2.3.1",
"@metamask/controller-utils": "^3.3.0", "@metamask/controller-utils": "^4.0.0",
"@metamask/design-tokens": "^1.9.0", "@metamask/design-tokens": "^1.9.0",
"@metamask/desktop": "^0.3.0", "@metamask/desktop": "^0.3.0",
"@metamask/eth-json-rpc-infura": "^8.0.0", "@metamask/eth-json-rpc-infura": "^8.0.0",

View File

@ -1,5 +1,5 @@
import { BigNumber } from 'bignumber.js'; import { BigNumber } from 'bignumber.js';
import { Json } from '@metamask/controller-utils'; import { Json } from '@metamask/utils';
import { IndividualTxFees } from '@metamask/smart-transactions-controller/dist/types'; import { IndividualTxFees } from '@metamask/smart-transactions-controller/dist/types';
import { import {
ALLOWED_CONTRACT_ADDRESSES, ALLOWED_CONTRACT_ADDRESSES,

View File

@ -4019,7 +4019,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@metamask/controller-utils@npm:^3.0.0, @metamask/controller-utils@npm:^3.1.0, @metamask/controller-utils@npm:^3.3.0, @metamask/controller-utils@npm:^3.4.0": "@metamask/controller-utils@npm:^3.0.0, @metamask/controller-utils@npm:^3.1.0, @metamask/controller-utils@npm:^3.4.0":
version: 3.4.0 version: 3.4.0
resolution: "@metamask/controller-utils@npm:3.4.0" resolution: "@metamask/controller-utils@npm:3.4.0"
dependencies: dependencies:
@ -4034,6 +4034,21 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@metamask/controller-utils@npm:^4.0.0":
version: 4.0.0
resolution: "@metamask/controller-utils@npm:4.0.0"
dependencies:
"@metamask/utils": ^5.0.2
"@spruceid/siwe-parser": 1.1.3
eth-ens-namehash: ^2.0.8
eth-rpc-errors: ^4.0.2
ethereumjs-util: ^7.0.10
ethjs-unit: ^0.1.6
fast-deep-equal: ^3.1.3
checksum: 3efdaf9b0c9f6d3bb633eeb926e78bedd637b0e042bb1e3974b9829e38456709a2f26d02405499934239351be8bff1854e267df8d0a522738d630bac0aadb732
languageName: node
linkType: hard
"@metamask/design-tokens@npm:^1.6.0, @metamask/design-tokens@npm:^1.9.0": "@metamask/design-tokens@npm:^1.6.0, @metamask/design-tokens@npm:^1.9.0":
version: 1.11.1 version: 1.11.1
resolution: "@metamask/design-tokens@npm:1.11.1" resolution: "@metamask/design-tokens@npm:1.11.1"
@ -23960,7 +23975,7 @@ __metadata:
"@metamask/base-controller": ^3.0.0 "@metamask/base-controller": ^3.0.0
"@metamask/browser-passworder": ^4.1.0 "@metamask/browser-passworder": ^4.1.0
"@metamask/contract-metadata": ^2.3.1 "@metamask/contract-metadata": ^2.3.1
"@metamask/controller-utils": ^3.3.0 "@metamask/controller-utils": ^4.0.0
"@metamask/design-tokens": ^1.9.0 "@metamask/design-tokens": ^1.9.0
"@metamask/desktop": ^0.3.0 "@metamask/desktop": ^0.3.0
"@metamask/eslint-config": ^9.0.0 "@metamask/eslint-config": ^9.0.0