{"id":26042542,"url":"https://github.com/yoosoftcc/ghosttrader","last_synced_at":"2025-03-07T16:29:26.703Z","repository":{"id":278579767,"uuid":"936087629","full_name":"yoosoftcc/GhostTrader","owner":"yoosoftcc","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-20T14:29:01.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T15:28:20.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/yoosoftcc.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":"2025-02-20T14:06:57.000Z","updated_at":"2025-02-20T14:29:07.000Z","dependencies_parsed_at":"2025-02-20T15:38:27.150Z","dependency_job_id":null,"html_url":"https://github.com/yoosoftcc/GhostTrader","commit_stats":null,"previous_names":["yoosoftcc/ghosttrader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoosoftcc%2FGhostTrader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoosoftcc%2FGhostTrader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoosoftcc%2FGhostTrader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoosoftcc%2FGhostTrader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoosoftcc","download_url":"https://codeload.github.com/yoosoftcc/GhostTrader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242424215,"owners_count":20125918,"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":[],"created_at":"2025-03-07T16:29:26.128Z","updated_at":"2025-03-07T16:29:26.691Z","avatar_url":"https://github.com/yoosoftcc.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GhostTrader\n\n## Makefile\n\n```\nRPC_URL ?= https://rpc.ankr.com/bsc\nSCRIPT_PATH ?= script/GhostTrader.s.sol\nTESTNET_RPC_URL ?= https://data-seed-prebsc-2-s3.binance.org:8545/\ndeploy:\n\t@forge script $(SCRIPT_PATH) --sig 'deploy()' --rpc-url=$(RPC_URL) --broadcast\n\napprove:\n\t@forge script $(SCRIPT_PATH) --sig 'approveAll()' --rpc-url=$(RPC_URL) --broadcast\n\ntest/deploy:\n\t@forge script $(SCRIPT_PATH) --sig 'deploy()' --rpc-url=$(TESTNET_RPC_URL) --broadcast\n\ntest/approve:\n\t@forge script $(SCRIPT_PATH) --sig 'approveAll()' --rpc-url=$(TESTNET_RPC_URL) --broadcast\n\ntest/trade:\n\t@forge script $(SCRIPT_PATH) --sig 'testBundleTrade()' --rpc-url=$(TESTNET_RPC_URL)  --broadcast\n\t@forge script $(SCRIPT_PATH) --sig 'testInverseTrade()' --rpc-url=$(TESTNET_RPC_URL)  --broadcast\n```\n\n## Prerequisites\n\n\n### Env\n```\nPRIVATE_KEY=\nADDRESS_EOA=\nADDRESS_CONTRACT=\n\n# WBNB\nTOKEN_QUOTE=\n\n# CAKE, BEEPER...\nTOKEN_BASE=\n```\n\n```\ncp .env.example .env\n```\n\nThen set the `PRIVATE_KEY`, `TOKEN_QUOTE`, `TOKEN_BASE` and `ADDRESS_EOA`\n\n### Installation\n\n[Install foundry](https://book.getfoundry.sh/getting-started/installation#installation)\n\n```\ncurl -L https://foundry.paradigm.xyz | bash\nforge install https://github.com/OpenZeppelin/openzeppelin-contracts\nforge install https://github.com/foundry-rs/forge-std\n```\n\n## Test\n\n### Deploy\n\n```\nmake test/deploy\n```\n\nThen set the `ADDRESS_CONTRACT` variable\n\n### Approve\n\n```\nmake test/approve\n```\n\n### Trade\n\n```\nmake test/trade\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoosoftcc%2Fghosttrader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoosoftcc%2Fghosttrader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoosoftcc%2Fghosttrader/lists"}