{"id":15374497,"url":"https://github.com/ivan-sincek/solidity-learning","last_synced_at":"2025-04-15T15:11:53.777Z","repository":{"id":171133602,"uuid":"646428385","full_name":"ivan-sincek/solidity-learning","owner":"ivan-sincek","description":"Work in progress...","archived":false,"fork":false,"pushed_at":"2024-09-20T15:49:57.000Z","size":1196,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T15:11:51.479Z","etag":null,"topics":["blockchain","ctf","ethereum","ethernaut","ethersjs","ganache","hardhat","javascript","metamask","openzeppelin","sepolia","smart-contracts","solidity","test-driven-development","truffle","unit-testing","web3js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ivan-sincek.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":"2023-05-28T11:23:02.000Z","updated_at":"2024-11-22T03:10:14.000Z","dependencies_parsed_at":"2024-02-27T12:43:51.804Z","dependency_job_id":"b687aa21-e161-46bb-af17-191dfba4017e","html_url":"https://github.com/ivan-sincek/solidity-learning","commit_stats":null,"previous_names":["ivan-sincek/solidity-learning"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fsolidity-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fsolidity-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fsolidity-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-sincek%2Fsolidity-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivan-sincek","download_url":"https://codeload.github.com/ivan-sincek/solidity-learning/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094932,"owners_count":21211837,"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","ctf","ethereum","ethernaut","ethersjs","ganache","hardhat","javascript","metamask","openzeppelin","sepolia","smart-contracts","solidity","test-driven-development","truffle","unit-testing","web3js"],"created_at":"2024-10-01T13:58:55.441Z","updated_at":"2025-04-15T15:11:53.758Z","avatar_url":"https://github.com/ivan-sincek.png","language":"JavaScript","readme":"# Solidity Learning\n\nThis repository contains Solidity smart contract projects and CTF-like challenges for learning purposes.\n\nBuilt and tested with [Hardhat](https://hardhat.org).\n\n_Some of the old projects were built and tested with now deprecated [Truffle Suite](https://trufflesuite.com) using now deprecated [Ganache](https://trufflesuite.com/ganache) local test network and [Sepolia](https://www.infura.io) public test network._\n\nUseful resources:\n\n| URL | Description |\n| --- | --- |\n| [weekinethereumnews.com](https://weekinethereumnews.com) | Latest Ethereum blockchain and EVM news and updates. |\n| [docs.soliditylang.org](https://docs.soliditylang.org/en/latest) | Official Solidity documentation. |\n| [consensys.github.io](https://consensys.github.io/smart-contract-best-practices) | Solidity best coding practices. |\n| [solidity-by-example.org](https://solidity-by-example.org) | Solidity smart contract xamples. |\n| [docs.openzeppelin.com](https://docs.openzeppelin.com) | Secure Solidity smart contracts. |\n| [wizard.openzeppelin.com](https://wizard.openzeppelin.com) | Secure Solidity smart contract wizard. |\n| [ethervm.io](https://ethervm.io) | EVM opcodes - Solidity assembly. |\n| [hardhat.org](https://hardhat.org/docs) | Offline Solidity IDE. |\n| [remix.ethereum.org](https://remix.ethereum.org) | Online Solidity IDE. |\n| [infura.io](https://www.infura.io/faucet/sepolia) | Sepolia - Ethereum public test network. |\n| [docs.ethers.org](https://docs.ethers.org) | Front-end library to connect with blockchain. |\n| [web3js.readthedocs.io](https://web3js.readthedocs.io) | Front-end library to connect with blockchain. |\n\nWork in progress...\n\n## Table of Contents\n\n* [Ethernaut](#ethernaut)\n* [Upgradeable Contracts](#upgradeable-contracts)\n* [Fundraiser](#fundraiser) (old)\n* [Metamorphic Malware](#metamorphic-malware) (old)\n\n## Ethernaut\n\nWeb: [ethernaut.openzeppelin.com](https://ethernaut.openzeppelin.com)\n\nGitHub: [OpenZeppelin/ethernaut](https://github.com/OpenZeppelin/ethernaut)\n\nBuilt and tested with [Hardhat](https://hardhat.org). Work in progress...\n\nFrom [\\\\Ethernauth\\\\hardhat](https://github.com/ivan-sincek/solidity-learning/blob/main/Ethernaut/hardhat), run the unit tests:\n\n```fundamental\nnpm install\n\nnpx hardhat compile\n\nnpx hardhat test --network localhost --parallel\n```\n\n---\n\nUnit tests (Hardhat):\n\n* [\\\\Ethernaut\\\\hardhat\\\\test\\\\ethernaut.js](https://github.com/ivan-sincek/solidity-learning/blob/main/Ethernaut/hardhat/test/ethernaut.js) (1-25)\n\n_\\[Deprecated\\]_ Unit tests (Truffle):\n\n* [\\\\Ethernaut\\\\truffle_suite_deprecated\\\\test\\\\ethernaut.js](https://github.com/ivan-sincek/solidity-learning/blob/main/Ethernaut/truffle_suite_deprecated/test/ethernaut.js) (level 1-20)\n\n## Upgradeable Contracts\n\nBuilt and tested with [Hardhat](https://hardhat.org). Work in progress...\n\nSmart contracts:\n\n* [\\\\UpgradeableContracts\\\\contracts\\\\](https://github.com/ivan-sincek/solidity-learning/tree/main/UpgradeableContracts/contracts)\n\nUnit tests:\n\n* [\\\\UpgradeableContracts\\\\test\\\\upgradeable.js](https://github.com/ivan-sincek/solidity-learning/blob/main/UpgradeableContracts/test/upgradeable.js)\n\nMigrations:\n\n* [\\\\UpgradeableContracts\\\\scripts\\\\deploy.js](https://github.com/ivan-sincek/solidity-learning/blob/main/UpgradeableContracts/scripts/deploy.js)\n\n## Fundraiser\n\n__Built and tested with now deprecated [Truffle Suite](https://trufflesuite.com) using now deprecated [Ganache](https://trufflesuite.com/ganache) local test network and [Sepolia](https://www.infura.io) public test network.__\n\nWork in progress... Also, need to migrate to Hardhat.\n\nInstall Truffle:\n\n```fundamental\nnpm install -g truffle\n```\n\nMake sure to start a local test network using Ganache on port `8545`.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/ivan-sincek/solidity-learning/blob/main/img/ganache_setup.jpg\" alt=\"Ganache Setup\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eFigure 1 - Ganache Setup\u003c/p\u003e\n\n---\n\nFrom [\\\\Fundraiser\\\\truffle](https://github.com/ivan-sincek/solidity-learning/blob/main/Fundraiser/truffle), run the unit tests:\n\n```fundamental\nnpm install\n\ntruffle compile\n\ntruffle test --network development --show-events\n```\n\nFrom [\\\\Fundraiser\\\\client](https://github.com/ivan-sincek/solidity-learning/blob/main/Fundraiser/client), run the client web application:\n\n```fundamental\nnpm install\n\nnpm start\n```\n\nNavigate to the client web application with your preferred web browser.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/ivan-sincek/solidity-learning/blob/main/img/github_fundraiser.jpg\" alt=\"GitHub Fundraiser\"\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eFigure 2 - GitHub Fundraiser\u003c/p\u003e\n\n---\n\nTo run the unit tests on [Sepolia](https://www.infura.io) public test network, do the following:\n\n\\[1\\] Specify your [Infura](https://www.infura.io) (Sepolia) API key and [MetaMask](https://metamask.io) wallet mnemonic inside [\\\\Fundraiser\\\\truffle\\\\example.env](https://github.com/ivan-sincek/solidity-learning/blob/main/Fundraiser/truffle/example.env) file.\n\n\\[2\\] Rename the file from `example.env` to `.env`.\n\n\\[3\\] In your MetaMask wallet, [switch](https://moralis.io/how-to-add-the-sepolia-network-to-metamask-full-guide) to the Sepolia public test network.\n\n\\[4\\] Get some Sepolia ETH from [infura.io/faucet/sepolia](https://www.infura.io/faucet/sepolia) to your MetaMask wallet.\n\n\\[5\\] Finally, run:\n\n```fundamental\ntruffle test --network sepolia --show-events\n```\n\n---\n\nSmart contracts:\n\n* [\\\\Fundraiser\\\\truffle\\\\contracts\\\\Fundraiser.sol](https://github.com/ivan-sincek/solidity-learning/blob/main/Fundraiser/truffle/contracts/Fundraiser.sol)\n\nUnit tests:\n\n* [\\\\Fundraiser\\\\truffle\\\\test\\\\fundraiser.js](https://github.com/ivan-sincek/solidity-learning/blob/main/Fundraiser/truffle/test/fundraiser.js)\n\nMigrations:\n\n* [\\\\Fundraiser\\\\truffle\\\\migrations\\\\1_deploy_fundraiser.js](https://github.com/ivan-sincek/solidity-learning/blob/main/Fundraiser/truffle/migrations/1_deploy_fundraiser.js)\n\nClient web application:\n\n* [\\\\Fundraiser\\\\client\\\\src\\\\components\\\\Donate.jsx](https://github.com/ivan-sincek/solidity-learning/blob/main/Fundraiser/client/src/components/Donate.jsx)\n\n## Metamorphic Malware\n\n__Built and tested with now deprecated [Truffle Suite](https://trufflesuite.com) using now deprecated [Ganache](https://trufflesuite.com/ganache) local test network and [Sepolia](https://www.infura.io) public test network.__\n\nWork in progress... Also, need to migrate to Hardhat.\n\nFrom [\\\\Metamorphic](https://github.com/ivan-sincek/solidity-learning/blob/main/Metamorphic), run the unit tests:\n\n```fundamental\nnpm install\n\ntruffle compile\n\ntruffle test --network development --show-events\n```\n\n---\n\nSmart contracts:\n\n* [\\\\Metamorphic\\\\contracts\\\\MetamorphicBasic.sol](https://github.com/ivan-sincek/solidity-learning/blob/main/Metamorphic/contracts/MetamorphicBasic.sol)\n\nUnit Tests:\n\n* [\\\\Metamorphic\\\\test\\\\metamorphic.js](https://github.com/ivan-sincek/solidity-learning/blob/main/Metamorphic/test/metamorphic.js)\n\nMigrations:\n\n* [\\\\Metamorphic\\\\migrations\\\\1_deploy_metamorphic.js](https://github.com/ivan-sincek/solidity-learning/blob/main/Metamorphic/migrations/1_deploy_metamorphic.js)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-sincek%2Fsolidity-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivan-sincek%2Fsolidity-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-sincek%2Fsolidity-learning/lists"}