{"id":15789927,"url":"https://github.com/gettocat/smart-contract-analyzer","last_synced_at":"2025-07-01T09:07:40.755Z","repository":{"id":94927342,"uuid":"438922013","full_name":"gettocat/smart-contract-analyzer","owner":"gettocat","description":"Pure js smart contract analyzer","archived":false,"fork":false,"pushed_at":"2021-12-16T13:34:57.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-05T22:04:13.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gettocat.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":"2021-12-16T08:53:52.000Z","updated_at":"2023-08-17T23:08:21.000Z","dependencies_parsed_at":"2023-04-19T09:32:44.379Z","dependency_job_id":null,"html_url":"https://github.com/gettocat/smart-contract-analyzer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gettocat/smart-contract-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fsmart-contract-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fsmart-contract-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fsmart-contract-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fsmart-contract-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gettocat","download_url":"https://codeload.github.com/gettocat/smart-contract-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gettocat%2Fsmart-contract-analyzer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262933316,"owners_count":23386784,"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-10-04T22:04:13.545Z","updated_at":"2025-07-01T09:07:40.734Z","avatar_url":"https://github.com/gettocat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smart-contract-analyzer\nPure js smart contract analyzer\n\n## install\n\n```\ncd package\nnpm install\n```\n\n\n## usage\n\n```js\nconst { SmartContract } = require('./package');\n\nlet contract = new SmartContract(Buffer.from(initialcode, 'hex'));\ncontract.deploy(['constructorParam1', 'constructorParam2', 'etc...'], {\n    'callvalue': 0\n})\n\n//console.log(contract.state.hrs()) //contains state after deploy\n//console.log(contract.binary) // contains code after deploy\n\nlet methodName = 'ae42e951';\nlet methodParams = [2, 5];\nlet newstate = contract.call(methodName, methodParams, {//\n    'callvalue': 0\n});\n\n//console.log(newstate.state.hrs())//contains state after method call\n//console.log(newstate.return)//containts return data\n\n//let res = contract.callStatic(methodName, methodParams, {//also you can make static call\n//    'callvalue': 0\n//});\n//res.return //return of this method call\n\n```\n\n## Disclamer\nThis is not final code, it is not worked for ERC20, need to be tested for all operations in ./state.js file. TODO.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettocat%2Fsmart-contract-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgettocat%2Fsmart-contract-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgettocat%2Fsmart-contract-analyzer/lists"}