{"id":15881361,"url":"https://github.com/kalloc/near-witgen-template","last_synced_at":"2026-06-28T21:31:08.582Z","repository":{"id":136767744,"uuid":"496792548","full_name":"kalloc/near-witgen-template","owner":"kalloc","description":"Example Typescript interface generator for NEAR Smart-Contracts based on witgen","archived":false,"fork":false,"pushed_at":"2022-07-13T10:08:18.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T20:39:15.853Z","etag":null,"topics":[],"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/kalloc.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":"2022-05-26T22:42:32.000Z","updated_at":"2022-07-13T10:37:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a420830-56e2-47cc-bd0b-371ee61e79f3","html_url":"https://github.com/kalloc/near-witgen-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kalloc/near-witgen-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalloc%2Fnear-witgen-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalloc%2Fnear-witgen-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalloc%2Fnear-witgen-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalloc%2Fnear-witgen-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalloc","download_url":"https://codeload.github.com/kalloc/near-witgen-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalloc%2Fnear-witgen-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34905180,"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-28T02:00:05.809Z","response_time":54,"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":[],"created_at":"2024-10-06T03:41:23.768Z","updated_at":"2026-06-28T21:31:08.562Z","avatar_url":"https://github.com/kalloc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Requirements \n\n### Install witme\n\n```bash\ncargo install witme --version 0.2.6\n```\n\n### build example\n```bash\nyarn \u0026\u0026 yarn build:all\n```\n\n## Usage\n\n```bash\nyarn run deploy \u0026\u0026 yarn run test\n```\n\nExpected result:\n\n```\ny@sweet ~/learn/near/witgen-template[master] $ yarn run deploy test\nyarn run v1.22.18\n$ ./dev-deploy.sh test\n    Finished release [optimized] target(s) in 0.03s\nStarting deployment. Account id: dev-1657706025241-17231575721203, node: https://rpc.testnet.near.org, helper: https://helper.testnet.near.org, file: /home/y/learn/near/witgen-template/res/contract.wasm\nTransaction Id 7KTnBPVQPDcuxdTVtTjbnjiB6M3Eyjoyjsnc1mJKEeYH\nTo see the transaction in the transaction explorer, please open this url in your browser\nhttps://explorer.testnet.near.org/transactions/7KTnBPVQPDcuxdTVtTjbnjiB6M3Eyjoyjsnc1mJKEeYH\nDone deploying to dev-1657706025241-17231575721203\nDone in 8.31s.\ny@sweet ~/learn/near/witgen-template[master] $ yarn run test\nyarn run v1.22.18\n$ near repl -s ./test.ts\n{\n  version: '0.2.0',\n  value: 'Wed Jul 13 2022 11:58:55 GMT+0200 (Central European Summer Time)'\n}\n{\n  version: '0.2.0',\n  value: 'Wed Jul 13 2022 12:05:20 GMT+0200 (Central European Summer Time)'\n}\nDone in 4.99s.\n\n```\n\n## Example \n\n```typescript\nimport fs from \"fs\";\nimport { Context } from \"near-cli/context\";\n\nimport { Contract } from \"./ts/contract\";\n\n\nexport async function main({near} : Context) {\n    let contractId = fs.readFileSync(\"./neardev/dev-account\").toString();\n    let account = await near.account(contractId);\n    // @ts-ignore\n    let contract: Contract = new Contract(account, contractId);\n    console.log(await contract.config());\n    await contract.update_config({value: new Date().toString()});\n    console.log(await contract.config());\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalloc%2Fnear-witgen-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalloc%2Fnear-witgen-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalloc%2Fnear-witgen-template/lists"}