Skip to content

feat(evm): add opaque deposit reference to Custody binding#2

Merged
philanton merged 1 commit into
masterfrom
feat/evm-deposit-reference
Jun 18, 2026
Merged

feat(evm): add opaque deposit reference to Custody binding#2
philanton merged 1 commit into
masterfrom
feat/evm-deposit-reference

Conversation

@philanton

Copy link
Copy Markdown
Contributor

Refreshes the Custody artifact + binding so deposit and the Deposited event carry an opaque bytes32 depositReference.

What changed

  • Custody.deposit(account, asset, amount, **depositReference**) and event Deposited(account, **depositReference (indexed)**, depositor, asset, amount).
  • The reference is opaque and log-only — never validated or stored on-chain — so deposits are filterable per (account, reference) without the contract ascribing sub-account meaning.
  • Regenerated custody_abi.go from the refreshed artifacts/Custody.abi + .bin (via go generate).
  • The SDK depositor passes bytes32(0) (no sub-account), so SubmitDeposit's signature is unchanged.

Scope

EVM only; withdrawal/rotation surface (execute/updateSigners/signers/threshold/signerNonce/Executed/SignersUpdated) is unchanged. Tag as v0.1.1 after merge.

Verification

go generate, go build ./..., go vet ./..., go test -count=1 ./... — all green.

🤖 Generated with Claude Code

Custody.deposit now takes a bytes32 depositReference and the Deposited
event carries it (indexed). The reference is opaque and log-only — never
validated or stored on-chain — so deposits become filterable per
(account, reference) without the contract ascribing sub-account meaning.

Regenerated the binding from the refreshed Custody artifact; the SDK
depositor passes bytes32(0) (no sub-account).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@philanton philanton merged commit cea5eff into master Jun 18, 2026
2 checks passed
@philanton philanton deleted the feat/evm-deposit-reference branch June 18, 2026 12:12
Sign up for free to 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