Skip to content

Feature/40 sdk exports#65

Open
cybermax4200 wants to merge 11 commits intoamina69:mainfrom
cybermax4200:feature/40-sdk-exports
Open

Feature/40 sdk exports#65
cybermax4200 wants to merge 11 commits intoamina69:mainfrom
cybermax4200:feature/40-sdk-exports

Conversation

@cybermax4200
Copy link
Copy Markdown
Contributor

Establishes
index.ts
as the canonical public API surface for the SDK. Consumers can now import everything from the package root without deep imports.

What's changed:

index.ts
— re-exports StellarSDK (named + default), all 10 error classes, all type interfaces, EscrowStatus enum, and 5 standalone functions
sdk.ts
— new StellarSDK class stub
index.ts
— added createEscrowAccount, lockCustodyFunds, anchorTrustHash, verifyEventHash stubs
index.ts
— added buildMultisigTransaction stub
sdk-exports.test.ts
— 17 unit tests covering export identity, error instantiation, and enum values
Technical note:

Signer and Thresholds exist in both
escrow.ts
and
network.ts
. Resolved the re-export conflict by treating escrow.ts as the canonical source and using an explicit named export list for network.ts.

Checklist:

tsc --noEmit passes with zero errors
All 17 unit tests pass
No circular dependencies introduced
Lint clean

Closes #40

Escelit and others added 11 commits March 23, 2026 19:54
…ndex.ts (amina69#40)

- Add StellarSDK class stub in src/sdk.ts, exported as named and default
- Add standalone function stubs: createEscrowAccount, lockCustodyFunds, anchorTrustHash, verifyEventHash (escrow), buildMultisigTransaction (transactions)
- Re-export all 10 error classes from utils/errors.ts
- Re-export type interfaces from types/escrow, types/network, types/transaction
- Re-export EscrowStatus enum from types/escrow (canonical source for Signer/Thresholds)
- Fix prebuild script: replace rm -rf with rimraf for Windows compatibility
- Add unit tests for entry point exports (sdk-exports.test.ts)
feat(types): define anchor and verify operation types (amina69#37)
…types-34

feat: add Distribution, ReleaseParams, ReleaseResult types with branded Percentage (issue amina69#34)
@cybermax4200
Copy link
Copy Markdown
Contributor Author

Please merge this PR

@amina69
Copy link
Copy Markdown
Owner

amina69 commented Mar 26, 2026

@cybermax4200 you are suppose to push to develop not main. and was also suppose to branch of develop, it in the contributing.md...please read it before starting the project

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.

SDK · Types & error handling] Export all types from src/index.ts

4 participants