{"id":22619631,"url":"https://github.com/devalpha18/dapp-scratch","last_synced_at":"2025-03-29T02:09:29.441Z","repository":{"id":183363869,"uuid":"584701809","full_name":"devalpha18/dapp-scratch","owner":"devalpha18","description":"CLI for generating javascript modules from Solidity Contracts for Decentralized Apps","archived":false,"fork":false,"pushed_at":"2023-01-04T00:08:59.000Z","size":430,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T12:14:32.699Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devalpha18.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-01-03T09:44:33.000Z","updated_at":"2024-05-03T21:05:26.000Z","dependencies_parsed_at":"2023-07-24T06:39:01.899Z","dependency_job_id":null,"html_url":"https://github.com/devalpha18/dapp-scratch","commit_stats":null,"previous_names":["devalpha18/dapp-scratch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalpha18%2Fdapp-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalpha18%2Fdapp-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalpha18%2Fdapp-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devalpha18%2Fdapp-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devalpha18","download_url":"https://codeload.github.com/devalpha18/dapp-scratch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126696,"owners_count":20727594,"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-12-08T22:06:43.816Z","updated_at":"2025-03-29T02:09:29.422Z","avatar_url":"https://github.com/devalpha18.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dapp Scratch\nA command line interface for generating a Javascript module for interacting with a Solidity contract.\n\n## install\n```\nnpm install -g dapp-scratch\n```\n## run\n```\n$ dapp-scratch build \u003cContractName\u003e\n$ dapp-scratch build \u003cContractName\u003e --address 0x1234567890123456789012345678901234567890\n$ dapp-scratch build \u003cContractName\u003e --ABI './build/contracts/ContractName.json'\n$ dapp-scratch build \u003cContractName\u003e --contract './contracts/ContractName.sol'\n$ dapp-scratch test\n$ dapp-scratch -h\n\n  Usage: dapp-scratch build [options]\n\n\n  Options:\n\n    -V, --version              output the version number\n    -c, --contract [contract]  Contract name or location\n                                 ie: SampleContract or SampleContract.sol or ./contracts/SampleContract.sol\n    -b, --abi [abi]            ABI name or location\n                                 ie: SampleContract or SampleContract.json or ./build/contracts/SampleContract.json\n    -a, --address [address]    Address of deployed contract\n    -h, --help                 output usage information\n\n\n  Commands:\n\n    build   Build a module from Contract or ABI\n    test    Generate a contract for testing\n\n\n```\n\n## results\n```\n$ dapp-scratch build SampleContract\nContract found at ./contracts/SampleContract.sol\nweb3 installed\nweb3-provider-engine installed\nModule created at ./dapp-module/SampleContract/index.js\n\n/*\n * To use SampleContract just import it into your project:\n */\n\nconst SampleContract = require('./dapp-module/SampleContract/index.js')\nlet sampleContract = new SampleContract()\nsampleContract.helloWorld()\n\n/*\n * Have Fun : )\n */\n```\n\n## develop\n```\ngit clone git@github.com/okwme/dapp-scratch\ncd dapp-scratch\nnpm install\nnpm run dev\n```\n\n## test\n```\nnpm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevalpha18%2Fdapp-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevalpha18%2Fdapp-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevalpha18%2Fdapp-scratch/lists"}