Skip to content

feat(tempo): add multisig config RPC method - #423

Merged
jxom merged 1 commit into
mainfrom
jxom/multisig-get-config-v1
Aug 27, 2026
Merged

feat(tempo): add multisig config RPC method#423
jxom merged 1 commit into
mainfrom
jxom/multisig-get-config-v1

Conversation

@jxom

@jxomjxom commented Aug 27, 2026

Copy link
Copy Markdown
Member

Adds multisig_getConfig to the Tempo TypeScript and Zod RPC schemas, returning MultisigConfig.Rpc for an account address or null when no configuration exists.

@vercel

vercelBot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
oxReadyReadyPreviewAug 27, 2026 5:59am

Request Review

@pkg-pr-new

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/ox@423

commit: 1c182df

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:1c182df399

ℹ️ 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".

export const multisig_getConfig = from({
method: 'multisig_getConfig',
params: z.tuple([z.object({ address: z_Address.Address })]),
returns: z.nullable(z_MultisigConfig.Rpc),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Decode config results with the multisig codec

When a client passes a successful RPC response to RpcSchema.decodeReturns, this schema only validates the wire object and leaves version as a hex string such as '0x0'. The RPC helpers promise wire-to-native decoding, and the existing MultisigConfig codec converts this response to MultisigConfig.Config with a bigint version (as already happens for configs nested in multisig operations). Using the raw Rpc schema here also prevents encodeReturns from accepting the corresponding native config; wrap z_MultisigConfig.MultisigConfig in z.nullable instead.

Useful? React with 👍 / 👎.

@jxom
jxom merged commit 9b407b5 into mainAug 27, 2026
15 checks passed
@jxom
jxom deleted the jxom/multisig-get-config-v1 branch August 27, 2026 06:00
@github-actionsgithub-actionsBot mentioned this pull request Aug 27, 2026
Sign up for freeto 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.

1 participant

@jxom