{"id":19147795,"url":"https://github.com/refcell/shipnauts","last_synced_at":"2026-06-13T00:30:22.631Z","repository":{"id":150177873,"uuid":"475975377","full_name":"refcell/shipnauts","owner":"refcell","description":"Shipyard Precourse Work Part 4","archived":false,"fork":false,"pushed_at":"2022-03-30T18:09:51.000Z","size":27,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T17:34:42.472Z","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/refcell.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":"2022-03-30T17:04:02.000Z","updated_at":"2023-07-25T14:55:56.000Z","dependencies_parsed_at":"2023-08-27T02:19:49.449Z","dependency_job_id":null,"html_url":"https://github.com/refcell/shipnauts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"0xMacro/local-ethernauts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Fshipnauts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Fshipnauts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Fshipnauts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/refcell%2Fshipnauts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/refcell","download_url":"https://codeload.github.com/refcell/shipnauts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240232022,"owners_count":19768931,"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":"2024-11-09T07:52:24.245Z","updated_at":"2026-06-13T00:30:22.567Z","avatar_url":"https://github.com/refcell.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shipnauts\n\nChallenges based on https://ethernaut.openzeppelin.com/\n\nRun all tests with:\n```sh\nnpx hardhat node\n# then:\nnpm run testall\n```\n\nOr, run tests individually with:\n```sh\nnpm run test1\n```\n\nwhere `test1` is the level test (e.g. CoinFlip is `test1`, Delegation is `test2`, etc etc)\n\n# Setup\n\n1. Get all the dependencies installed with `yarn install`\n2. Compile all contracts by running `npx hardhat compile`\n3. Run a local node by running `npx hardhat node`\n\n# How to solve each level\n\n- If you look inside the `contracts/` directory you'll find 8 levels for you to solve!\n- Each level directory consists of the same structure, let's check out the first one to illustrate this:\n  - **CoinFlip.sol**: This is the contract you're supposed to hack!\n  - **AttackingCoinFlip.sol**: This is the malicious contract where you'll code the logic to exploit the vulnerable contract!\n  - **CoinFlip.test.ts**: This is the file where you'll be able to test if the contract has been breached\n  - **CoinFlipHelper.ts**: Not all challenges have this `Helper` file! Only the ones that require you to use `ethers` to interact with your contract do, which you can do right here! This function is already imported into the tests, so don't worry about anything other than coding!\n  - And finally, the **README**. On this one you'll get all level instructions!\n- After you're done writing your hack, run the following command to run the tests and see if you succesfully breached the contract:\n  - `npx hardhat test contracts/{contract directory}/{contract name}.test.ts`\n  - Example: `npx hardhat test \"contracts/1. CoinFlip/CoinFlip.test.ts\"`\n\n# Helpful Tip\n\n- You can console.log in solidity using hardhat! Read here for more details: https://hardhat.org/tutorial/debugging-with-hardhat-network.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefcell%2Fshipnauts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frefcell%2Fshipnauts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frefcell%2Fshipnauts/lists"}