Implement Transaction Builder Wrapper
Description:
Build AccountTransactionBuilder — a convenience wrapper around Stellar SDK's TransactionBuilder that simplifies building smart account operations (session key management, contract execution).
Context:
Invoking our account contract methods requires verbose Soroban invocation code. This wrapper provides a clean fluent API for common operations while delegating to Stellar SDK internally.
Requirements:
Files to Create:
packages/account-abstraction/src/transaction-builder.ts
packages/account-abstraction/src/__tests__/transaction-builder.test.ts
Dependencies:
Definition of Done:
Labels: sdk, transactions, account-abstraction
Estimated Effort: 3–4 days
Priority: High — needed for send flow and session key management
Implement Transaction Builder Wrapper
Description:
Build
AccountTransactionBuilder— a convenience wrapper around Stellar SDK'sTransactionBuilderthat simplifies building smart account operations (session key management, contract execution).Context:
Invoking our account contract methods requires verbose Soroban invocation code. This wrapper provides a clean fluent API for common operations while delegating to Stellar SDK internally.
Requirements:
AccountTransactionBuilderclass wrapping Stellar SDK'sTransactionBuilder.addSessionKey(publicKey, permissions, expiresAt)convenience method.revokeSessionKey(publicKey)convenience method.execute(sessionKey, operations)convenience method.simulate()for Soroban transaction simulation.addOperation()passthrough for standard Stellar operations.build()returning a ready-to-sign transactionFiles to Create:
packages/account-abstraction/src/transaction-builder.tspackages/account-abstraction/src/__tests__/transaction-builder.test.tsDependencies:
@stellar/stellar-sdk@ancore/types@ancore/stellarDefinition of Done:
Labels:
sdk,transactions,account-abstractionEstimated Effort: 3–4 days
Priority: High — needed for send flow and session key management