{"id":28820665,"url":"https://github.com/steven228312/tonswap","last_synced_at":"2025-07-27T17:11:21.007Z","repository":{"id":287065631,"uuid":"862531703","full_name":"steven228312/TonSwap","owner":"steven228312","description":"A decentralized exchange (DEX) and automated market maker (AMM) built on the TON blockchain. It uses the Uniswap V2 curve to create liquidity pairs and allow users to swap tokens and provide liquidity to earn rewards.","archived":false,"fork":false,"pushed_at":"2024-10-04T06:15:42.000Z","size":99,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T16:44:04.272Z","etag":null,"topics":["fsharp","typescript","uniswap"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steven228312.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-24T18:53:54.000Z","updated_at":"2025-06-17T12:31:06.000Z","dependencies_parsed_at":"2025-04-09T19:49:26.107Z","dependency_job_id":"15d15ce0-5494-4317-b638-2dc01a1db3f4","html_url":"https://github.com/steven228312/TonSwap","commit_stats":null,"previous_names":["stevendev0822/tonswap","steven228312/tonswap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steven228312/TonSwap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven228312%2FTonSwap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven228312%2FTonSwap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven228312%2FTonSwap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven228312%2FTonSwap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steven228312","download_url":"https://codeload.github.com/steven228312/TonSwap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steven228312%2FTonSwap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267392562,"owners_count":24079919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fsharp","typescript","uniswap"],"created_at":"2025-06-18T22:00:42.927Z","updated_at":"2025-07-27T17:11:21.001Z","avatar_url":"https://github.com/steven228312.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tonswap - FunC Smart Contracts\n\n## TonSwap is live on TON mainnet.\n\nTonSwap is live on TON mainnet. TonSwap is in Beta, use at your own risk\n\n## Overview\n\nTonSwap is a DEX/AMM using the Uniswap V2 curve (a financial model shared by many popular AMMs like PancakeSwap, QuickSwap, Sushi) to create liquidity pairs and allow traders to swap tokens and liquidity providers to supply liquidity and earn rewards.\n\nThe project depends on an Jetton standard implementation for [Jetton](https://github.com/ton-blockchain/token-contract/tree/jettons/ft).\n\n## Develop\n\nrun `npm install`\n\n### Compile contract and run tests\n\nThis project depends on the executables **fift**, **func** . You can build them from [source](https://ton.org/docs/#/howto/getting-started), or you can download the [pre compiled binaries](https://github.com/ton-defi-org/ton-binaries/releases).\n\n### Func Compiler\n\nThis project is using the latest func features such as `#include` and `const` so please use the latest func compiler ,\nIf you want to set an explicit func path you may use the FUNC_PATH environment variable `export FUNC_PATH=/usr/local/bin/func`\n\n### Run tests\n\nthe project uses [ton-contract-executor](https://github.com/tonwhales/ton-contract-executor) package to run Jest based tests.\nUse `npm run test` to execute the test suite.\n\n### Run TVM-BUS tests\n\nrun `npm run test-bus` \nthis tests are different then the tests in `/test/amm-minter.spec.ts`, \nBecause this tests are using [ton-tvm-bus](https://github.com/ton-defi-org/ton-tvm-bus) , each tests starts in a single message, and the message passing between contracts is done automatically, messages with statInit are auto deployed , messages find their receiver automatically unlike in the first test suite.\n\n\n### Run end to end test on Mainnet or Testnet\n\n`npm run e2e` (this process will generate a deploy wallet during it`s execution)\n\n### build for web \n\n`npm run build:web` - this process will generate json files with hex value for the contract, both for `amm-minter.fc` and `amm-wallet.fc`;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteven228312%2Ftonswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteven228312%2Ftonswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteven228312%2Ftonswap/lists"}