feat(tempo): add native multisig account support#4710
Merged
Conversation
Add `Account.fromMultisig` and re-export `MultisigConfig` from `ox/tempo` to support native multisig (TIP-1061) transactions. Prepare a request with `multisig: config`, collect owner approvals via `signTransaction`, then broadcast with the collected `signatures`. First tx auto-bootstraps the account; `init` is derived from nonce 0. Bumps `ox` to 0.14.29. Amp-Thread-ID: https://ampcode.com/threads/T-019e8cab-fd02-709f-9185-a2766192718b
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 679858a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds experimental native multisig (TIP-1061) account support to
viem/tempo.Summary
Account.fromMultisig(config)derives a synthetic local account representing the multisig sender. It is used purely for broadcasting / sender identity — it holds no key and throws onsign/signMessage/signTypedData.MultisigConfigfromox/temposo callers pass a config directly (multisig: config); there is no separateMultisigwrapper type.initis derived fromnonce == 0during serialization — callers never passinit,gas, ortypeexplicitly.sendTransaction/sendTransactionSyncwith the multisig account + collected ownersignatures.Flow
Docs
Account.fromMultisigAPI page (Accounts) and a Multisig Transactions guide (Tempo Transactions), both flagged experimental with anEXPsidebar badge.Testing
src/tempo/Account.test.ts(flat 2-of-2 init + subsequent, 2-of-3 M-of-N, weighted threshold, and hoisted-account send without explicitaccount).tsc -bclean.Also bumps
oxto0.14.29.