{ "contract": "hello_go", "version": "1.0.0", "description": "Example DChain contract written in Go (TinyGo SDK). Demonstrates counter, owner-gated reset, string args, and inter-contract calls.", "build": "tinygo build -o hello_go.wasm -target wasip1 -no-debug .", "methods": [ { "name": "increment", "description": "Add 1 to the counter. Logs 'counter: N'.", "args": [] }, { "name": "get", "description": "Log the current counter value without changing state.", "args": [] }, { "name": "reset", "description": "Reset counter to 0. First caller becomes the owner; only owner can reset.", "args": [] }, { "name": "greet", "description": "Log a greeting. Logs 'hello, ! block=N'.", "args": [ {"name": "name", "type": "string", "description": "Name to greet (defaults to 'world')"} ] }, { "name": "ping", "description": "Call a method on another contract (inter-contract call demo).", "args": [ {"name": "contract_id", "type": "string", "description": "Target contract ID"}, {"name": "method", "type": "string", "description": "Method to call on target"} ] } ] }