Skip to content

Swap out ethereumjs-abi for @metamask/abi-utils#273

Closed
Mrtenz wants to merge 8 commits intomainfrom
mrtenz/use-abi-utils
Closed

Swap out ethereumjs-abi for @metamask/abi-utils#273
Mrtenz wants to merge 8 commits intomainfrom
mrtenz/use-abi-utils

Conversation

@Mrtenz
Copy link
Copy Markdown
Member

@Mrtenz Mrtenz commented Oct 8, 2022

This removes the inlined ethereumjs-abi package in favour of @metamask/abi-utils. That also means that we can get rid of the BN.js dependency.

It's still a work in progress. The abi-utils library is much more strict than ethereumjs-abi, so a lot of values are failing to encode right now. There also seems to be a difference in signatures for certain values, which I have yet to figure out.

@Mrtenz Mrtenz requested a review from a team as a code owner October 8, 2022 16:26
@Mrtenz Mrtenz marked this pull request as draft October 8, 2022 16:26
package.json Outdated
}
},
"resolutions": {
"@metamask/abi-utils": "portal:/Users/morten/Development/MetaMask/abi-utils"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is temporary while waiting on a new release of abi-utils.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 27, 2023

New dependency changes detected. Learn more about Socket for GitHub ↗︎


🚨 Potential security issues found in this pull request. To accept the risk, merge this PR and you will not be notified again.

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore @metamask/utils@3.6.0
  • @SocketSecurity ignore superstruct@1.0.3
  • @SocketSecurity ignore @types/debug@4.1.7
  • @SocketSecurity ignore @types/ms@0.7.31
⚠️ No contributors or author data

Package does not specify a list of contributors or an author in package.json.

Add a author field or contributors array to package.json.

Package Location Source
@metamask/utils@3.6.0 (added) package.json package.json via @metamask/abi-utils@1.2.0
superstruct@1.0.3 (added) package.json package.json via @metamask/abi-utils@1.2.0, @metamask/utils@3.6.0
⚠️ Unmaintained

Package has not been updated in more than a year and may be unmaintained. Problems with the package may go unaddressed.

Package should publish periodic maintenance releases if they are maintained, or deprecate if they have no intention in further maintenance.

Package Last Publish Date Source
@types/debug@4.1.7 (added) 7/24/2021, 8:01:42 AM package.json via @metamask/abi-utils@1.2.0, @metamask/utils@3.6.0
@types/ms@0.7.31 (added) 9/4/2019, 8:48:44 PM package.json via @metamask/abi-utils@1.2.0, @metamask/utils@3.6.0
Pull request alert summary
Issue Status
Critical CVE ✅ 0 issues
CVE ✅ 0 issues
Mild CVE ✅ 0 issues
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script confusion ✅ 0 issues
Bin script shell injection ✅ 0 issues
Filesystem access ✅ 0 issues
Network access ✅ 0 issues
Shell access ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
GitHub dependency ✅ 0 issues
No bug tracker ✅ 0 issues
No contributors or author data ⚠️ 2 issues
No README ✅ 0 issues
Deprecated ✅ 0 issues
New author ✅ 0 issues
Unstable ownership ✅ 0 issues
Non-existent author ✅ 0 issues
Unmaintained ⚠️ 2 issues
Unpublished package ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues
AI detected security risk ✅ 0 issues
AI warning ✅ 0 issues

📊 Modified Dependency Overview:

➕ Added Package Capability Access +/- Transitive Count Publisher
@metamask/utils@3.6.0 None +3 metamaskbot
@metamask/abi-utils@1.2.0 None +4 metamaskbot

🚮 Removed packages: bn.js@4.12.0

@legobeat legobeat changed the title Swap out ethereumjs-abi for abi-utils Swap out ethereumjs-abi for @metamask/abi-utils Apr 27, 2023
@legobeat
Copy link
Copy Markdown
Contributor

legobeat commented Sep 9, 2023

Closed in favor of #319

Release proposal for 6.0.1: #331

@legobeat legobeat closed this Sep 9, 2023
@Mrtenz Mrtenz deleted the mrtenz/use-abi-utils branch September 9, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants