-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK] Refactor: More Viem to Ox migration #5790
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
🦋 Changeset detectedLatest commit: 00d6f3a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
22cb834
to
59faac0
Compare
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5790 +/- ##
==========================================
- Coverage 54.85% 54.83% -0.03%
==========================================
Files 1142 1142
Lines 60928 60952 +24
Branches 5140 5138 -2
==========================================
- Hits 33424 33422 -2
- Misses 26777 26806 +29
+ Partials 727 724 -3
*This pull request uses carry forward flags. Click here to find out more.
|
@@ -304,7 +308,7 @@ | |||
dynamic, | |||
encoded: dynamic | |||
? encodeParams(preparedParams) | |||
: concat(preparedParams.map(({ encoded }) => encoded)), | |||
: ox__Hex.concat(...preparedParams.map(({ encoded }) => encoded)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird choice from ox to not accept an array for concat
@@ -134,6 +134,7 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential( | |||
account: smartAccount, | |||
}); | |||
expect(tx.transactionHash).toHaveLength(66); | |||
await sleep(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use 'confirmContractDeployment' here i think
Merge activity
|
TOOL-0000 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on migrating functionality in the `thirdweb` package from `viem` to `ox`, improving consistency and possibly performance. It updates various files to utilize `ox` components, enhancing the codebase's integration with the `ox` library. ### Detailed summary - Migrated `maxUint256` imports from `viem` to `ox/Solidity` in multiple files. - Updated the `isErc6492Signature` function to use `ox__Hex.slice`. - Changed `decodeAbiParameters` to `ox__AbiParameters.decode`. - Replaced various utility functions with their `ox` equivalents across different modules. - Enhanced the `verifyHash` function to utilize `ox__Signature`. - Added new tests for `verifyContractWalletSignature` using `smartWallet`. - Updated the workflow file to include new pull request types. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
580f42e
to
505a026
Compare
…o greg/viem-ox
TOOL-0000
PR-Codex overview
This PR focuses on migrating functionality to
Ox
by replacing imports fromviem
withox
in various files within thethirdweb
package, enhancing consistency and potentially optimizing performance.Detailed summary
maxUint256
import fromviem
toox/Solidity
in multiple files.isErc6492Signature
function to useox__Hex.slice
.decodeAbiParameters
withox__AbiParameters.decode
.verifyEOASignature
to useox__Secp256k1.recoverAddress
.ox__Signature
.fetchConstructorParams
to useox__Abi
andox__AbiParameters
.ox
libraries for consistency.