{"id":15036373,"url":"https://github.com/fuellabs/sway-farm","last_synced_at":"2025-05-14T13:05:41.780Z","repository":{"id":65675003,"uuid":"595879967","full_name":"FuelLabs/sway-farm","owner":"FuelLabs","description":"Farm 🍅 on the Fuel network.","archived":false,"fork":false,"pushed_at":"2025-05-04T14:59:28.000Z","size":4456,"stargazers_count":1424,"open_issues_count":27,"forks_count":312,"subscribers_count":48,"default_branch":"main","last_synced_at":"2025-05-04T15:37:21.884Z","etag":null,"topics":["blockchain"],"latest_commit_sha":null,"homepage":"https://swayfarm.xyz","language":"TypeScript","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/FuelLabs.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,"zenodo":null}},"created_at":"2023-02-01T01:49:12.000Z","updated_at":"2025-04-28T17:17:44.000Z","dependencies_parsed_at":"2023-02-19T11:30:49.836Z","dependency_job_id":"4feaefd7-5448-4548-a95a-cd0a9221d8f6","html_url":"https://github.com/FuelLabs/sway-farm","commit_stats":{"total_commits":139,"total_committers":6,"mean_commits":"23.166666666666668","dds":0.460431654676259,"last_synced_commit":"cb8cafbadf738e0194f7e193b81ff72452c99734"},"previous_names":["fuellabs/sway-farm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway-farm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway-farm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway-farm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FuelLabs%2Fsway-farm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FuelLabs","download_url":"https://codeload.github.com/FuelLabs/sway-farm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149949,"owners_count":22022851,"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":["blockchain"],"created_at":"2024-09-24T20:30:57.417Z","updated_at":"2025-05-14T13:05:41.728Z","avatar_url":"https://github.com/FuelLabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sway-farm\n\nA simple farming game written in Sway.\n\n## Running Locally\n\nMake sure you have [`fuelup`](https://docs.fuel.network/guides/installation/) installed and are using the `latest` toolchain.\n\nInstall a Fuel-compatible wallet extension and copy your wallet address in b256 format (it should start with `0x` instead of `fuel`). In the frontend folder, open the `src/chainConfig.json` file and edit line 7 to use your address. This step will make sure your wallet has test funds on your local network.\n\n```json\n{\n  \"owner\": \"0xYOUR_ADDRESS_HERE\",\n  \"amount\": \"0x00000000FFFFFFFF\",\n  \"asset_id\": \"0x0000000000000000000000000000000000000000000000000000000000000000\"\n},\n```\n\nRun the command below inside the `frontend` folder to start a local node, generate TypeScript types, and deploy the contract locally:\n\n```sh\ncd frontend\nnpx fuels dev\n```\n\nYou should see the message `🎉  Dev completed successfully!`.\n\nNext, run the frontend locally with `npm start`.\n\nThe contract ID will automatically be updated, but the asset ID won't, so you'll have to make sure that is updated everytime the contract redeploys.\n\nMake sure your wallet is also connected to your local network instead of the testnet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuellabs%2Fsway-farm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuellabs%2Fsway-farm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuellabs%2Fsway-farm/lists"}