Skip to content

Feature/clean up#160

Closed
samad13 wants to merge 69 commits intoamina69:mainfrom
samad13:feature/clean-up
Closed

Feature/clean up#160
samad13 wants to merge 69 commits intoamina69:mainfrom
samad13:feature/clean-up

Conversation

@samad13
Copy link
Copy Markdown
Collaborator

@samad13 samad13 commented Mar 30, 2026

close #148
done clean up and fix every bugs

Miracle656 and others added 30 commits March 26, 2026 13:16
…alculation

- Implement createEscrowAccount() function to create and fund escrow accounts
- Add calculateStartingBalance() helper function
- Calculate required starting balance: getMinimumReserve(3) + depositAmount
- Handle InsufficientBalanceError from master account
- Return EscrowAccount with accountId, transactionHash, signers, thresholds
- Add comprehensive unit tests for starting balance calculation
- Export calculateStartingBalance from main SDK entry point

Closes amina69#71
- Add findEscrowByAdoptionId() helper function to query Horizon for existing escrow accounts
- Implement 60-second caching for Horizon queries to avoid repeat API calls
- Add idempotency check to createEscrowAccount() before creating new escrow
- Return existing escrow account if found with same adoptionId memo
- Comprehensive unit tests for both existing and non-existing account scenarios
- Cache behavior tests to ensure 60-second TTL works correctly

Closes amina69#74
- Add Keypair.random() call to generate fresh escrow keypair
- Return publicKey and secretKey as KeypairResult
- Add security comment about secretKey usage
- Add unit tests for valid G.../S... pair generation
- Ensure unique keypair generation

Closes amina69#70
- Remove unused KeypairResult import from tests
- Fix hasOwnProperty lint error in keypair tests
- Allow console.log in ESLint config for CLI files
- All lint and type-check now passing
[SDK · Account management] Implement generateKeypair()
Enforce plain decimal format with up to 7 fractional digits and reject scientific notation, with unit tests covering issue-required amount cases.

Made-with: Cursor
amina69 and others added 24 commits March 29, 2026 13:07
…funds-types

Feature/issue 33 lock funds types
…fecycle-implement-escrow-manager-class

fix: implement EscrowManager with dependency-injected lifecycle deleg…
…gner-modification-v2

fix: implement handleDispute signer modification
[SDK · Account management] Implement isValidSecretKey() validator
- Resolved merge conflicts by accepting develop branch implementation
- Updated with latest changes from upstream develop
- Resolved merge conflicts by accepting develop branch implementation
- Updated with latest changes from upstream develop
…cy-check

feat: implement createEscrowAccount() with idempotency check
…ment-implement-isvalidamount-validator

[amina69#51] [SDK · Account management] Implement isValidAmount() validator
feat: implement createEscrowAccount() function
…uilders-build-set-options-op-helper

fix: implement buildSetOptionsOp helper for transaction builders
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@samad13 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@samad13 samad13 closed this Mar 30, 2026
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.

clean up