{"id":26469772,"url":"https://github.com/ocdbytes/solidity_testing","last_synced_at":"2025-07-26T16:09:14.810Z","repository":{"id":170468966,"uuid":"645859001","full_name":"ocdbytes/Solidity_Testing","owner":"ocdbytes","description":"Smart Contract Testing | Typescript Hardhat tests | chai | mocha","archived":false,"fork":false,"pushed_at":"2023-05-28T22:33:14.000Z","size":1131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T17:09:15.710Z","etag":null,"topics":["hardhat","smart-contracts","solidity"],"latest_commit_sha":null,"homepage":"","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/ocdbytes.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}},"created_at":"2023-05-26T15:49:48.000Z","updated_at":"2023-05-28T22:34:41.000Z","dependencies_parsed_at":"2023-09-03T04:24:25.271Z","dependency_job_id":"239b03e5-7e3e-4fc2-975a-8a82ad0c1e1a","html_url":"https://github.com/ocdbytes/Solidity_Testing","commit_stats":null,"previous_names":["arun89-crypto/solidity_testing","ocdbytes/solidity_testing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ocdbytes/Solidity_Testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FSolidity_Testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FSolidity_Testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FSolidity_Testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FSolidity_Testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocdbytes","download_url":"https://codeload.github.com/ocdbytes/Solidity_Testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocdbytes%2FSolidity_Testing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267191044,"owners_count":24050318,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"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":["hardhat","smart-contracts","solidity"],"created_at":"2025-03-19T17:09:19.749Z","updated_at":"2025-07-26T16:09:14.765Z","avatar_url":"https://github.com/ocdbytes.png","language":"TypeScript","readme":"# SMART CONTRACT TESTING\n\n\u003cimg src=\"./docs/1.png\"\u003e\u003c/img\u003e\n\nThis repository contains the methods of testing the contracts there are all kinds of contract variations here that covers all of the edge cases and common bug that someone may experience during the contract testing.\n\nWe can't take the security of the smart contract casually because in real world we are dealing with the real assets that have a value, if a contract is compromised then it can lead to loss of millions of dollars and thus betraying the user's trust in the crypto world.\n\n## Build \u0026 Test\n\n### To Build \u0026 Test the project `balancelock`\n\n```sh\ncd balancelock\nyarn\nyarn hardhat compile\nyarn hardhat test\n```\n\n### To Build \u0026 Test the project `multicontracts`\n\n```sh\ncd multicontracts\nyarn\nyarn hardhat compile\nyarn hardhat test\n----------OR------------\nyarn hardhat test test/\u003cFILE_NAME\u003e.ts\n```\n\n## Test Coverage Report\n\n```sh\ncd \u003cany_project\u003e\nyarn hardhat coverage\n```\n\n### Coverage : `multicontracts`\n\n```sh\n---------------------|----------|----------|----------|----------|----------------|\nFile                 |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |\n---------------------|----------|----------|----------|----------|----------------|\n contracts/          |    81.82 |       75 |       90 |    84.21 |                |\n  Accounts.sol       |      100 |      100 |      100 |      100 |                |\n  BigNumbers.sol     |      100 |      100 |    66.67 |    66.67 |              8 |\n  BlockNumberBet.sol |    71.43 |    66.67 |      100 |       75 |          37,38 |\n  SimpleTransfer.sol |      100 |      100 |      100 |      100 |                |\n---------------------|----------|----------|----------|----------|----------------|\nAll files            |    81.82 |       75 |       90 |    84.21 |                |\n---------------------|----------|----------|----------|----------|----------------|\n```\n\n### Coverage : `balancelock`\n\n```sh\n-------------|----------|----------|----------|----------|----------------|\nFile         |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |\n-------------|----------|----------|----------|----------|----------------|\n contracts/  |      100 |      100 |      100 |      100 |                |\n  MyTest.sol |      100 |      100 |      100 |      100 |                |\n-------------|----------|----------|----------|----------|----------------|\nAll files    |      100 |      100 |      100 |      100 |                |\n-------------|----------|----------|----------|----------|----------------|\n```\n\nContracts Included :\n\n- Balance Lock contract\n- Multi Contracts\n\n  - Accounts\n  - BigNumber\n  - Block Number Betting\n  - Simple Asset Transfer\n\nTest Focus :\n\n- FUNCTION TESTS\n- EVENTS TEST\n- BALANCE CHANGE TESTS\n- REVERT TESTS\n- REVERT TESTING BUG\n- MODIFIER TESTS\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fsolidity_testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focdbytes%2Fsolidity_testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focdbytes%2Fsolidity_testing/lists"}