Skip to content

SDK Wrappers (AccountTransactionBuilder + AncoreClient) MVP #64

@wheval

Description

@wheval

SDK Wrappers (AccountTransactionBuilder + AncoreClient) MVP

Description:
Implement missing SDK “glue” so wallet/UI code can build and submit account operations end-to-end.

This task is the MVP subset of Issues #37-38.

Context:
You have contract invocation primitives (@ancore/account-abstraction) and a Stellar client (@ancore/stellar), but missing high-level wrappers:

  • transaction builder convenience wrapper
  • unified AncoreClient entry point

Requirements:

  • Add packages/account-abstraction/src/transaction-builder.ts
    • fluent methods for session key add/revoke and contract execute ops
    • simulation helper for fee estimation
    • .build() returning a ready-to-sign Soroban transaction
  • Implement packages/core-sdk/src/client.ts as AncoreClient
    • wallet create/import helpers (mnemonic → keypair → encrypt)
    • balance query + payment sending
    • smart account init + session key management
    • execute via session key (calls into account-abstraction)
  • Add unit tests for builder + client orchestration

Files to Create:

  • packages/account-abstraction/src/transaction-builder.ts
  • packages/account-abstraction/src/__tests__/transaction-builder.test.ts
  • packages/core-sdk/src/client.ts
  • packages/core-sdk/src/__tests__/client.test.ts

Definition of Done:

  • Builder builds valid Soroban transactions
  • AncoreClient exposes a single consumer API for wallet flows
  • Unit tests pass

Labels: sdk, transactions, core
Estimated Effort: 5–8 days
Priority: High


Questions or need help?** Join our Telegram community

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programsdkrelated to sdk

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions