{"id":49341648,"url":"https://github.com/olanetsoft/hello-world-compact","last_synced_at":"2026-04-27T04:04:35.869Z","repository":{"id":336881431,"uuid":"1151498426","full_name":"Olanetsoft/hello-world-compact","owner":"Olanetsoft","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-14T16:37:18.000Z","size":121,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T18:25:07.875Z","etag":null,"topics":["compact","midnightntwrk"],"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/Olanetsoft.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-06T14:43:35.000Z","updated_at":"2026-04-14T16:37:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Olanetsoft/hello-world-compact","commit_stats":null,"previous_names":["olanetsoft/hello-world-compact"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Olanetsoft/hello-world-compact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fhello-world-compact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fhello-world-compact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fhello-world-compact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fhello-world-compact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olanetsoft","download_url":"https://codeload.github.com/Olanetsoft/hello-world-compact/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olanetsoft%2Fhello-world-compact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32321945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["compact","midnightntwrk"],"created_at":"2026-04-27T04:04:35.604Z","updated_at":"2026-04-27T04:04:35.809Z","avatar_url":"https://github.com/Olanetsoft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello World - Midnight Compact\n\nA minimal Hello World smart contract for the Midnight blockchain. Deploy to Preprod and store/read messages on-chain.\n\nThis project is built on the Midnight Network.\n\n## Prerequisites\n\n- **Node.js v22+** (`nvm install 22`)\n- **Docker** (for proof server)\n- **Compact compiler** - See [Midnight docs](https://docs.midnight.network/) for installation\n\n## Quick Start\n\n```bash\n# Install dependencies\nnpm install\n\n# Compile the contract\nnpm run compile\n\n# Start proof server (runs in background)\nnpm run proof-server:start\n\n# Deploy to Preprod\nnpm run deploy\n\n# Interact with deployed contract\nnpm run cli\n\n# Stop proof server when done\nnpm run proof-server:stop\n```\n\n## Project Structure\n\n```\n├── contracts/\n│   └── hello-world.compact    # Smart contract source\n├── src/\n│   ├── deploy.ts              # Deployment script\n│   └── cli.ts                 # Interactive CLI\n├── docker-compose.yml         # Proof server config\n└── package.json\n```\n\n## The Contract\n\n```compact\npragma language_version \u003e= 0.20;\n\nimport CompactStandardLibrary;\n\nexport ledger message: Opaque\u003c\"string\"\u003e;\n\nexport circuit storeMessage(newMessage: Opaque\u003c\"string\"\u003e): [] {\n  message = disclose(newMessage);\n}\n```\n\n- `ledger message` - Public on-chain storage for a string\n- `storeMessage` - Circuit to update the message\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `npm run compile` | Compile the Compact contract |\n| `npm run deploy` | Deploy contract to Preprod |\n| `npm run cli` | Interact with deployed contract |\n| `npm run proof-server:start` | Start proof server (Docker) |\n| `npm run proof-server:stop` | Stop proof server |\n\n## Deployment Flow\n\n1. **Compile** - Generates ZK circuits in `contracts/managed/`\n2. **Start proof server** - Required for generating ZK proofs\n3. **Deploy** - Creates wallet, funds via faucet, deploys contract\n4. **Interact** - Store and read messages via CLI\n\n## Wallet \u0026 Funding\n\nDuring deployment:\n- Choose to create a new wallet or restore from seed\n- New wallets generate a 64-character hex seed - **save this!**\n- Fund your wallet at: https://faucet.preprod.midnight.network/\n- DUST tokens are auto-generated from your tNight balance\n\n## Deployment Output\n\nAfter deployment, `deployment.json` is created:\n\n```json\n{\n  \"contractAddress\": \"abc123...\",\n  \"seed\": \"your-wallet-seed\",\n  \"network\": \"preprod\",\n  \"deployedAt\": \"2024-...\"\n}\n```\n\n## Network\n\nThis project targets **Preprod** testnet:\n- Indexer: `https://indexer.preprod.midnight.network`\n- RPC: `https://rpc.preprod.midnight.network`\n- Faucet: https://faucet.preprod.midnight.network/\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folanetsoft%2Fhello-world-compact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folanetsoft%2Fhello-world-compact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folanetsoft%2Fhello-world-compact/lists"}