Repository navigation
refactor: rename multisig APIs to configurable accounts (TIP-1107) - #508
Conversation
Aligns the Tempo account APIs with TIP-1107, which brands accounts with weighted owners and a rotatable configuration as configurable accounts (including single-owner accounts), keeping "multisig" for the multi-owner approval flow. - MultisigConfig -> AccountConfig, MultisigSimulation -> AccountSimulation (core and zod), with matching error names. - SignatureEnvelope.Multisig -> Configurable (type 'configurable'), MultisigRpc -> ConfigurableRpc, sortMultisigApprovals -> sortApprovals, InvalidMultisigApprovalError -> InvalidApprovalError. - KeyAuthorization and TransactionRequest key type 'multisig' -> 'configurable', and TransactionRequest.multisigSimulation -> accountSimulation. The node's wire names are unchanged: RPC keyType 'multisig' and multisigSimulation are mapped in toRpc/fromRpc. - Kept MultisigOperation and RpcSchemaTempo.Multisig, which mirror the multisig_* relay methods, and the tempo:multisig:* hash domains. - Raised AccountConfig.maxThreshold from 8 to 255 to match TIP-1114, which now allows any threshold reachable by at most eight approvals. - Added AccountConfig.update to derive the config left by updateConfig (same salt, next version, canonical owners). - Renamed the guide, test helpers, and vitest project; added a redirect for the old guide URL. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gwe6M7Dav9T9HU7nMDCPUm
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 252395f363
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1,25 @@ | |||
| --- | |||
| "ox": patch | |||
There was a problem hiding this comment.
Mark the API rename as a major change
Publishing this as patch would release the breaking removal of MultisigConfig/MultisigSimulation, sortMultisigApprovals, and the 'multisig' domain discriminant as an automatically accepted 1.8.x update. Existing consumers can therefore receive the release through a caret range and immediately encounter missing exports or incompatible types; this migration changeset should request a major version bump rather than a patch.
AGENTS.md reference: AGENTS.md:L122-L125
Useful? React with 👍 / 👎.
Every configurable transaction carries its config, so the relay layer serves every configurable account, single-owner accounts included, not just multi-owner coordination. - MultisigOperation -> AccountOperation (core and zod), with matching error names and messages. - RpcSchemaTempo.Multisig -> RpcSchemaTempo.Account, and the multisig_* methods -> account_approveKeyAuthorization, account_approveRawTransaction(Sync), account_getConfig and account_getOperation. - Updated the changeset and the AGENTS.md note. Node wire names (keyType 'multisig', multisigSimulation) and the tempo:multisig:* hash domains are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gwe6M7Dav9T9HU7nMDCPUm
What is this PR solving?
This PR renames the Tempo multisig account APIs to configurable accounts to align with TIP-1107 and TIP-1114 specifications. The changes reflect a broader protocol shift from "native multisig" terminology to "configurable accounts," which better describes accounts with weighted owners and adjustable thresholds.
Key Changes
API Renames:
MultisigConfig→AccountConfigMultisigSimulation→AccountSimulationMultisigOperation→AccountOperation, andRpcSchemaTempo.Multisig→RpcSchemaTempo.Account, with the relay methods renamed frommultisig_*toaccount_*. Every configurable transaction carries its config, so the relay layer serves every configurable account, single-owner accounts included.'multisig'→'configurable'serializedMultisigType→serializedConfigurableTypeConfiguration Updates:
AccountConfig.maxThresholdfrom8to255per TIP-1114AccountConfig.updateto derive the config left by an owner updatetempo:multisig:*hash domains are unchanged, so derived addresses, commitments and digests are unchanged.Documentation & Tests:
multisiginternally)Files Modified
AccountConfig.ts,AccountOperation.ts,AccountSimulation.ts(renamed fromMultisigConfig.ts,MultisigOperation.ts,MultisigSimulation.ts)SignatureEnvelope.ts,KeyAuthorization.tsindex.tsandz.tsto export new namesBackward Compatibility
This is a breaking change for consumers using the multisig APIs. The wire format for RPC communication with Tempo nodes continues to use
multisigterminology internally (keyType: 'multisig',multisigSimulation), but the Ox library now exposesconfigurablenaming throughout. Relays must move to theaccount_*methods together with their clients.Test Plan
Existing test suite covers the renamed APIs:
AccountConfig.test.ts- Configuration validation and serializationAccountOperation.test.ts- Operation hashing, approval selection, and serializationAccountSimulation.test.ts- RPC simulation utilitiesSignatureEnvelope.test.ts- Signature envelope serializationKeyAuthorization.test.ts- Key authorization bindingTransactionRequest.test.ts- Transaction request handlingAll tests pass with the new naming conventions.
https://claude.ai/code/session_01Gwe6M7Dav9T9HU7nMDCPUm