Skip to content

SDK: standardize transaction response objects #610

@Otaiki1

Description

@Otaiki1

Build location

Work primarily in sdk/src/contract/response.ts. Keep related tests/docs beside that package unless this issue explicitly calls for a cross-package update.

Why this matters

SDK methods should return consistent response objects across create, buy, refund, cancel, and admin operations.

What to build

  • Define shared TxResponse and domain-specific extensions.
  • Include txHash, ledger, status, feeCharged, resultXdr if safe, and warnings.
  • Update module services to use the shared type.

Acceptance criteria

  • Tests assert response shape for raffle, ticket, and admin operations.
  • Public TypeDoc shows the shared response contract.

Suggested verification

cd sdk && npm run lint && npm run test && npm run build

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions