Skip to content

Commit

Permalink
fix(deps): gridplus-sdk@2.5.1->~2.6.0 (#27973)
Browse files Browse the repository at this point in the history
## **Description**

- fix(deps): `gridplus-sdk@2.5.1->~2.6.0`
    - `2.7.0` updates to `@ethereumjs/tx` 5, so holding at 2.6
    - removes dependency on legacy `ethereum-cryptography` v1
- dedupe and unpin `@ethereumjs/tx` to `^4.2.0`
  - `eth-lattice-keyring` is pinned to `@ethereumjs/tx@4.1.1`
  - `gridplus-sdk` is pinned to `@ethereumjs/tx@4.1.2`
- fix(deps): bump `elliptic@6.5.4->^6.5.7` via resolutions
- fix(deps): bump `secp256k`


[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27973?quickstart=1)

## **Related issues**

- GridPlus/eth-lattice-keyring#64
- GridPlus/gridplus-sdk#547

## **Manual testing steps**


## **Screenshots/Recordings**

### **Before**

### **After**

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
  • Loading branch information
legobeat authored Oct 22, 2024
1 parent f995e3c commit 134d9a6
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 744 deletions.
163 changes: 30 additions & 133 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,28 @@
"crypto": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@noble/hashes": true
"@metamask/message-signing-snap>@noble/curves": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true,
"@noble/hashes": true
"@metamask/utils>@scure/base": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethersproject/abi": {
Expand Down Expand Up @@ -1498,7 +1510,13 @@
"TextEncoder": true
},
"packages": {
"@noble/hashes": true
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": true
}
},
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@metamask/name-controller": {
Expand Down Expand Up @@ -4073,59 +4091,16 @@
"setInterval": true
},
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"bn.js": true,
"browserify>buffer": true,
"crypto-browserify": true,
"eth-lattice-keyring>@ethereumjs/tx": true,
"eth-lattice-keyring>gridplus-sdk": true,
"eth-lattice-keyring>rlp": true,
"webpack>events": true
}
},
"eth-lattice-keyring>@ethereumjs/tx": {
"packages": {
"@ethereumjs/tx>@ethereumjs/common": true,
"@ethereumjs/tx>@ethereumjs/rlp": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethersproject/providers": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true,
"eth-lattice-keyring>@ethereumjs/tx>@chainsafe/ssz": true,
"eth-lattice-keyring>@ethereumjs/tx>ethereum-cryptography": true
}
},
"eth-lattice-keyring>@ethereumjs/tx>@chainsafe/ssz": {
"packages": {
"browserify": true,
"browserify>buffer": true,
"eth-lattice-keyring>@ethereumjs/tx>@chainsafe/ssz>@chainsafe/persistent-merkle-tree": true,
"eth-lattice-keyring>@ethereumjs/tx>@chainsafe/ssz>case": true
}
},
"eth-lattice-keyring>@ethereumjs/tx>@chainsafe/ssz>@chainsafe/persistent-merkle-tree": {
"globals": {
"WeakRef": true
},
"packages": {
"browserify": true
}
},
"eth-lattice-keyring>@ethereumjs/tx>ethereum-cryptography": {
"globals": {
"TextDecoder": true,
"crypto": true
},
"packages": {
"eth-lattice-keyring>@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true
}
},
"eth-lattice-keyring>@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"eth-lattice-keyring>gridplus-sdk": {
"globals": {
"AbortController": true,
Expand All @@ -4141,20 +4116,20 @@
"setTimeout": true
},
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/common>crc-32": true,
"@ethersproject/abi": true,
"@metamask/eth-sig-util": true,
"@metamask/ethjs>js-sha3": true,
"@metamask/keyring-api>bech32": true,
"@metamask/ppom-validator>elliptic": true,
"bn.js": true,
"browserify>buffer": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": true,
"eth-lattice-keyring>gridplus-sdk>aes-js": true,
"eth-lattice-keyring>gridplus-sdk>bignumber.js": true,
"eth-lattice-keyring>gridplus-sdk>bitwise": true,
"eth-lattice-keyring>gridplus-sdk>borc": true,
"eth-lattice-keyring>gridplus-sdk>elliptic": true,
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": true,
"eth-lattice-keyring>gridplus-sdk>rlp": true,
"eth-lattice-keyring>gridplus-sdk>secp256k1": true,
"eth-lattice-keyring>gridplus-sdk>uuid": true,
Expand All @@ -4171,41 +4146,6 @@
"webpack>events": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": {
"packages": {
"@ethereumjs/tx>@ethereumjs/rlp": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@ethersproject/providers": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true,
"eth-lattice-keyring>@ethereumjs/tx>@chainsafe/ssz": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/common": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>ethereum-cryptography": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/common": {
"packages": {
"@ethereumjs/tx>@ethereumjs/common>crc-32": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"browserify>buffer": true,
"webpack>events": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>ethereum-cryptography": {
"globals": {
"TextDecoder": true,
"crypto": true
},
"packages": {
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"eth-lattice-keyring>gridplus-sdk>aes-js": {
"globals": {
"define": true
Expand Down Expand Up @@ -4246,46 +4186,14 @@
"location": true
}
},
"eth-lattice-keyring>gridplus-sdk>elliptic": {
"packages": {
"@metamask/ppom-validator>elliptic>brorand": true,
"@metamask/ppom-validator>elliptic>hmac-drbg": true,
"@metamask/ppom-validator>elliptic>minimalistic-assert": true,
"@metamask/ppom-validator>elliptic>minimalistic-crypto-utils": true,
"bn.js": true,
"ethers>@ethersproject/sha2>hash.js": true,
"pumpify>inherits": true
}
},
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": {
"globals": {
"intToBuffer": true
},
"packages": {
"@metamask/ethjs>js-sha3": true,
"bn.js": true,
"buffer": true
}
},
"eth-lattice-keyring>gridplus-sdk>rlp": {
"globals": {
"TextEncoder": true
}
},
"eth-lattice-keyring>gridplus-sdk>secp256k1": {
"packages": {
"eth-lattice-keyring>gridplus-sdk>secp256k1>elliptic": true
}
},
"eth-lattice-keyring>gridplus-sdk>secp256k1>elliptic": {
"packages": {
"@metamask/ppom-validator>elliptic>brorand": true,
"@metamask/ppom-validator>elliptic>hmac-drbg": true,
"@metamask/ppom-validator>elliptic>minimalistic-assert": true,
"@metamask/ppom-validator>elliptic>minimalistic-crypto-utils": true,
"bn.js": true,
"ethers>@ethersproject/sha2>hash.js": true,
"pumpify>inherits": true
"@metamask/ppom-validator>elliptic": true
}
},
"eth-lattice-keyring>gridplus-sdk>uuid": {
Expand Down Expand Up @@ -4609,20 +4517,9 @@
"ethers>@ethersproject/signing-key": {
"packages": {
"@ethersproject/bytes": true,
"@metamask/ppom-validator>elliptic": true,
"ethers>@ethersproject/logger": true,
"ethers>@ethersproject/properties": true,
"ethers>@ethersproject/signing-key>elliptic": true
}
},
"ethers>@ethersproject/signing-key>elliptic": {
"packages": {
"@metamask/ppom-validator>elliptic>brorand": true,
"@metamask/ppom-validator>elliptic>hmac-drbg": true,
"@metamask/ppom-validator>elliptic>minimalistic-assert": true,
"@metamask/ppom-validator>elliptic>minimalistic-crypto-utils": true,
"bn.js": true,
"ethers>@ethersproject/sha2>hash.js": true,
"pumpify>inherits": true
"ethers>@ethersproject/properties": true
}
},
"ethers>@ethersproject/solidity": {
Expand Down
Loading

0 comments on commit 134d9a6

Please sign in to comment.