Skip to content

docs: map SDK v2 methods to the network vault contract - #349

Merged
El-swaggerito merged 2 commits into
Axionvera:mainfrom
Agbasimere:docs/sdk-v2-vault-contract-interface
Aug 23, 2026
Merged

docs: map SDK v2 methods to the network vault contract#349
El-swaggerito merged 2 commits into
Axionvera:mainfrom
Agbasimere:docs/sdk-v2-vault-contract-interface

Conversation

@Agbasimere

Copy link
Copy Markdown
Contributor

Summary

  • Rewrite docs/sdk-contract-interface.md as the SDK v2 to Network vault bridge: read/write method mapping, argument order, amount formatting, and event topics.
  • Document current gaps (wrong read symbols, no get_info, pending vs claimable rewards, event name mismatches).
  • Repair vault test helpers so setup / setup_uninitialized compile after overlapping PRs.

Test plan

  • cargo fmt --all -- --check
  • cargo check --workspace --all-targets
  • cargo test --workspace --all-targets
  • cargo clippy --workspace --all-targets -- -D warnings
  • Confirm the mapping against packages/core/src/contracts/vault.ts in axionvera-sdk
  • Confirm event topics ("vault", "deposit"|"withdraw"|"claim") against contracts/vault-contract/src/lib.rs

Closes #339

Agbasimere and others added 2 commits August 23, 2026 15:37
Keep SDK v2 and the network vault on one interface so reads, writes, amounts, and events do not drift. Repair vault test helpers that no longer compiled after overlapping PRs.

Closes Axionvera#339
@El-swaggerito

Copy link
Copy Markdown
Contributor
\nGitHub has not finished calculating whether this PR can be merged cleanly.\n\nThe auto-merge automation will skip this PR for now. Re-run the automation later.

@El-swaggerito
El-swaggerito merged commit 503a1b6 into Axionvera:main Aug 23, 2026
1 check passed
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.

Document SDK-to-network integration expectations

2 participants