Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ton v2 swap #11169

Merged
merged 1 commit into from
Feb 4, 2025
Merged

feat: ton v2 swap #11169

merged 1 commit into from
Feb 4, 2025

Conversation

chef-eric
Copy link
Contributor

@chef-eric chef-eric commented Jan 27, 2025

PR-Codex overview

This PR primarily focuses on refactoring and enhancing the ton-v2-sdk and related components, improving modularity and functionality while ensuring better integration with @pancakeswap libraries.

Detailed summary

  • Renamed @pancakeswap/routing-sdk-addon-ton to @pancakeswap/routing-sdk-addon-ton-v2.
  • Added exports in packages/ton-v2-sdk/src/index.ts for Token, Native, and CurrencyAmount.
  • Introduced getOutputAmount and getInputAmount utility functions for token swaps.
  • Updated createTonPool function to utilize new utility functions.
  • Enhanced CurrencyAmount class with methods for arithmetic operations.
  • Added AgnosticNativeCurrency class for native currency representation.
  • Improved test coverage and configurations for vitest.
  • Updated various components to reference the new ton-v2-sdk instead of the old routing SDK addon.

The following files were skipped due to too many changes: pnpm-lock.yaml

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Jan 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aptos-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am
blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am
bridge ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am
games ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am
gamification ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am
ton 🔄 Building (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am
uikit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 9:00am

Copy link

changeset-bot bot commented Jan 27, 2025

⚠️ No Changeset found

Latest commit: 92caf58

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

socket-security bot commented Feb 3, 2025

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/react-redux@8.1.3 environment +1 591 kB acemarke

View full report↗︎

Copy link

socket-security bot commented Feb 3, 2025

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Environment variable access npm/react-redux@8.1.3 🚫

View full report↗︎

Next steps

What is environment variable access?

Package accesses environment variables, which may be a sign of credential stuffing or data theft.

Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/react-redux@8.1.3

@chef-eric chef-eric force-pushed the feat/ton-expansion-eric branch from d6c1b6d to 5854820 Compare February 3, 2025 13:21
@chef-eric chef-eric force-pushed the feat/ton-expansion-eric branch from 5854820 to 3f5957f Compare February 4, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant