{"id":21349201,"url":"https://github.com/tiennampham23/syncswap-sdk","last_synced_at":"2025-04-15T05:47:13.473Z","repository":{"id":180913517,"uuid":"659296589","full_name":"tiennampham23/syncswap-sdk","owner":"tiennampham23","description":"Syncswap SDK Python","archived":false,"fork":false,"pushed_at":"2023-07-01T09:49:02.000Z","size":7,"stargazers_count":9,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T05:47:04.214Z","etag":null,"topics":["python","syncswap","zksync"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiennampham23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-06-27T14:27:49.000Z","updated_at":"2024-06-21T19:19:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2aea7d8-d93a-4155-affc-1d51ca6d43da","html_url":"https://github.com/tiennampham23/syncswap-sdk","commit_stats":null,"previous_names":["tiennampham23/syncswap-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiennampham23%2Fsyncswap-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiennampham23%2Fsyncswap-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiennampham23%2Fsyncswap-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiennampham23%2Fsyncswap-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiennampham23","download_url":"https://codeload.github.com/tiennampham23/syncswap-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016314,"owners_count":21198830,"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","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":["python","syncswap","zksync"],"created_at":"2024-11-22T02:44:01.169Z","updated_at":"2025-04-15T05:47:13.467Z","avatar_url":"https://github.com/tiennampham23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Python SDK for Syncswap\n\n### How to use?\n- Swap two tokens\n```python\ntoken_pair = {\n    'token_in_address': '0x5aea5775959fbc2557cc8789bc1bf90a239d9a91', #WETH\n    'pool_address': '0x80115c708E12eDd42E504c1cD52Aea96C547c05c', # WETH - USDC\n    'amount': 1 # ETH\n}\n\nswap(os.environ['private_key'], token_pair)\n\n```\n\n- Deposit Pool\n```python\n# WETH is a special version of ETH that has more capabilities. \n# And USDC/ETH and USDC/WETH are the same pool. You can choose either ETH or WETH to collect when withdrawing from the pool.\ndeposit_params = {\n    'pool_address': '0x80115c708E12eDd42E504c1cD52Aea96C547c05c',\n    'token_in_amount': int(\"hex_number\", 16),\n    'token_in_address': '0x0000000000000000000000000000000000000000', # ETH\n    'token_out_amount': int(\"hex_number\", 16),\n    'token_out_address': '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4', # USDC\n    'min_liquidity': 0,\n}\n\ndeposit_pool(os.environ['private_key'], deposit_params)\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiennampham23%2Fsyncswap-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiennampham23%2Fsyncswap-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiennampham23%2Fsyncswap-sdk/lists"}