Open
Conversation
…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)
…ed Percentage (issue amina69#34)
…types-34 feat: add Distribution, ReleaseParams, ReleaseResult types with branded Percentage (issue amina69#34)
Contributor
Author
|
Please merge this PR |
Owner
|
@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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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