{"id":20282568,"url":"https://github.com/halas77/halas","last_synced_at":"2026-06-12T09:31:26.645Z","repository":{"id":254102332,"uuid":"845496848","full_name":"halas77/Halas","owner":"halas77","description":"This project is a hands-on exercise focused on creating an ERC-20 token, named Halas.","archived":false,"fork":false,"pushed_at":"2024-08-21T13:19:48.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T03:29:29.318Z","etag":null,"topics":["erc-20","hardhat","openzeppelin-contracts","scripting","testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/halas77.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":"2024-08-21T11:14:08.000Z","updated_at":"2024-08-21T13:23:48.000Z","dependencies_parsed_at":"2024-08-21T12:42:41.392Z","dependency_job_id":"b6564232-827f-4901-877e-71cc4d335924","html_url":"https://github.com/halas77/Halas","commit_stats":null,"previous_names":["halas77/halas"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/halas77/Halas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halas77%2FHalas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halas77%2FHalas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halas77%2FHalas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halas77%2FHalas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halas77","download_url":"https://codeload.github.com/halas77/Halas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halas77%2FHalas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34238712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["erc-20","hardhat","openzeppelin-contracts","scripting","testing"],"created_at":"2024-11-14T14:10:21.391Z","updated_at":"2026-06-12T09:31:26.620Z","avatar_url":"https://github.com/halas77.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Halas - ERC-20 Token Development\n\n## Introduction\n\nThis project is a hands-on exercise focused on creating an ERC-20 token, named `Halas`, using the Hardhat development environment along with OpenZeppelin’s robust contract libraries. The purpose of this project is to provide a comprehensive learning experience in blockchain development, from setting up the development environment to deploying and interacting with a real-world token on the Ethereum network.\n\n## Running the Project\n\n### 1. Compile the Contract\n\nTo compile the smart contract, run the following command:\n\n```bash\nnpx hardhat compile\n```\n\nThis will compile your Solidity contracts and generate the necessary artifacts.\n\n### 2. Deploy the Contract\n\nDeploy the contract to a local Hardhat network using the following command:\n\n```bash\nnpx hardhat node\n```\n\n```bash\nnpm run local\n\n```\n\nThese commands will deploy the `Halas` contract and provide you with the contract address.\n\n### 3. Run Interaction Scripts\n\nTo interact with the deployed contract, execute the interaction script:\n\n```bash\nnpm run script\n```\n\nThis script demonstrates how to:\n\n- **Approve a spender:** Allows a specific address to spend tokens on behalf of the token owner.\n- **Check allowances:** Verifies how many tokens a spender is allowed to use.\n- **Transfer tokens:** Moves tokens from one address to another, either directly or through an approved spender.\n- **Check balances:** Displays the token balance of a specific address.\n\n## Testing\n\nTo ensure that the smart contract works as expected, you can run the provided tests. These tests cover various ERC-20 functionalities such as minting tokens, approving spenders, transferring tokens, and more.\n\n### Running Tests\n\nExecute the following command to run the tests:\n\n```bash\nnpx hardhat test\n\n```\n\nThis will run all the test scripts located in the test/ directory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalas77%2Fhalas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalas77%2Fhalas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalas77%2Fhalas/lists"}