Skip to content

Migrate liquidity_pool_id.js file to TS#862

Merged
quietbits merged 3 commits intotypescript-migrationfrom
tsm-lp-id
Feb 25, 2026
Merged

Migrate liquidity_pool_id.js file to TS#862
quietbits merged 3 commits intotypescript-migrationfrom
tsm-lp-id

Conversation

@quietbits
Copy link
Contributor

No description provided.

@quietbits quietbits linked an issue Feb 20, 2026 that may be closed by this pull request
5 tasks
@github-actions
Copy link

github-actions bot commented Feb 20, 2026

Size Change: +275 B (+0.01%)

Total Size: 3.53 MB

Filename Size Change
dist/stellar-base.js 2.6 MB +224 B (+0.01%)
dist/stellar-base.min.js 926 kB +51 B (+0.01%)

compressed-size-action

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the liquidity_pool_id.js file from JavaScript to TypeScript, maintaining the same functionality while adding type safety. The migration follows established patterns in the codebase for TypeScript conversions, using vitest for testing and generating appropriate type definitions.

Changes:

  • Migrated src/liquidity_pool_id.js to TypeScript with proper type annotations
  • Added comprehensive TypeScript test file using vitest
  • Generated type definition file with complete method signatures
  • Updated .gitignore to include TypeScript build artifacts

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/liquidity_pool_id.ts New TypeScript implementation with type annotations and XDR type workarounds for compatibility
src/liquidity_pool_id.js Removed old JavaScript implementation
test/unit/liquidity_pool_id.test.ts New comprehensive test suite using vitest framework
type_validation/liquidity_pool_id.d.ts Generated type definitions matching the implementation
type_validation/strkey.d.ts Alphabetically sorted union type members for consistency
.gitignore Added tsconfig.tsbuildinfo for TypeScript build cache

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 7 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@quietbits quietbits requested a review from Ryang-21 February 23, 2026 16:31
@quietbits quietbits merged commit d76825c into typescript-migration Feb 25, 2026
10 checks passed
@quietbits quietbits deleted the tsm-lp-id branch February 25, 2026 13:52
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.

Migrate liquidity_pool_id.js file to TS

3 participants