-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Background
The billing proxy currently lacks CLI tooling for provider setup and user interactions. All on-chain operations require manual scripting.
Provider CLI (cmd/provider)
provider init-service \
--rpc <url> --chain-id <id> --contract <addr> \
--key <provider-private-key> \
--tee-signer <tee-eth-address> \
--url <service-url> \
--price <neuron-per-sec> \
--create-fee <neuron>
- Calls
addOrUpdateServicewith provider ≠ TEE signer (real TEE deployment) - Optional:
withdraw,service-status
User CLI (cmd/user)
user deposit --rpc ... --contract ... --key ... --provider <addr> --amount <0G>
user acknowledge --rpc ... --contract ... --key ... --provider <addr>
user balance --rpc ... --contract ... --address ... --provider <addr>
user create --api <billing-proxy-url> --key ...
user list --api <billing-proxy-url> --key ...
user stop --api <billing-proxy-url> --key ... --id <sandbox-id>
Provider Deployment Flow
tapp-cli start-app— deploy billing proxy to TEE serverprovider init-service— register service on-chain (provider key + TEE signer address)- Share API URL + contract address with users
Notes
- Contract can be 0G official canonical deployment (shared) or provider-deployed
cmd/setupremains as dev/test-only single-account tool- User sandbox operations require EIP-191 signed requests to billing proxy
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request