Step 6: Use the SimpleStorage Example
Example Contract
The repository ships a more complete example at examples/SimpleStorage.sol with key-value storage, ownership, reentrancy guards, and balance tracking.
Compile
Compile it:
bash
./target/release/neo-solc examples/SimpleStorage.sol -I devpack -O2 -o build/SimpleStorageInspect the Manifest
Inspect the manifest:
bash
# List all methods
jq '[.abi.methods[].name]' build/SimpleStorage.manifest.jsonExpected methods:
json
[
"setNumber",
"getNumber",
"setString",
"getString",
"setKeyValue",
"getKeyValue",
"setKeyString",
"getKeyString",
"increment",
"decrement",
"add",
"getOwner",
"transferOwnership",
"reset",
"hasKey",
"balanceOf",
"setBalance"
]