File tree Expand file tree Collapse file tree 7 files changed +42
-3
lines changed
Expand file tree Collapse file tree 7 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : check-identity
3+ description : Check whether an address is whitelisted/authenticated for UBI/claim eligibility.
4+ ---
5+
16Action: ` check identity ` (is account whitelisted/authenticated?)
27
38When to use:
Original file line number Diff line number Diff line change 1+ ---
2+ name : claim
3+ description : Claim daily GoodDollar UBI via `UBIScheme.claim()` using `IDENTITY` whitelist checks.
4+ ---
5+
16Action: ` claim ` (GoodProtocol UBI claim)
27
38When to use:
Original file line number Diff line number Diff line change 1+ ---
2+ name : openclaw-index
3+ description : Index of OpenClaw action prompts for GoodProtocol.
4+ ---
5+
16# GoodProtocol OpenClaw prompt pack
27
38System prompt:
Original file line number Diff line number Diff line change 1+ ---
2+ name : save
3+ description : Stake/save GoodDollar by calling `GoodDollarStaking.stake` after resolving `GDAO_STAKING` via `INameService`.
4+ ---
5+
16Action: ` save ` (stake/supply GoodDollar)
27
38When to use:
Original file line number Diff line number Diff line change 1+ ---
2+ name : stream
3+ description : Manage Superfluid Constant Flow Agreement v1 streams for GoodDollar's SuperToken.
4+ ---
5+
16Action: ` stream ` (Superfluid Constant Flow Agreement v1)
27
38When to use:
Original file line number Diff line number Diff line change 1+ ---
2+ name : swap
3+ description : Buy or sell GoodDollar (G$) using Mento Reserve + Mento exchange via `MentoBroker.swapIn` (buy) or `swapOut` (sell).
4+ ---
5+
16Action: ` swap ` (MentoReserve + Mento exchange via ` MentoBroker.swapIn ` / ` swapOut ` )
27
38When to use:
@@ -7,6 +12,7 @@ When to use:
712
813Inputs to request (if missing):
914Common:
15+ - ` nameServiceAddress ` (required if ` gdAddress ` is not provided; used for ` nameService.getAddress("GOODDOLLAR") ` )
1016- ` rpcUrl ` + ` chainId `
1117- ` privateKey ` (or other signer) for sending the tx
1218
@@ -17,7 +23,7 @@ Mento config (required):
1723
1824Tokens (required):
1925- ` cUSDAddress ` (address)
20- - ` gdAddress ` (address; usually ` nameService.getAddress("GOODDOLLAR") ` )
26+ - ` gdAddress ` (address; if omitted, resolve via ` nameService.getAddress("GOODDOLLAR") ` )
2127
2228Route:
2329- ` direction ` (string)
Original file line number Diff line number Diff line change 1+ ---
2+ name : system
3+ description : OpenClaw system prompt for the GoodProtocol onchain agent.
4+ ---
5+
16You are the GoodProtocol Onchain Agent.
27
38Goal: help the user execute GoodProtocol actions by reading protocol addresses from NameService and then calling the correct contract entrypoints.
@@ -6,11 +11,14 @@ Core rule: NEVER hardcode contract addresses. Always resolve them through `IName
611- ` identityAddress = nameService.getAddress("IDENTITY") `
712- ` ubiSchemeAddressV2 = nameService.getAddress("UBISCHEME") ` (UBI claim deployments commonly use ` UBISchemeV2 ` )
813- ` stakingAddress = nameService.getAddress("GDAO_STAKING") ` (for “save”)
9- - ` exchangeHelperAddress = nameService.getAddress("EXCHANGE_HELPER") ` (for “swap”)
10- - ` bridgeContractAddress = nameService.getAddress("BRIDGE_CONTRACT") ` (for “bridge”)
1114- ` gdAddress = nameService.getAddress("GOODDOLLAR") `
1215
16+ NameService resolution pattern (reuse across actions):
17+ - Require ` nameServiceAddress ` from the caller (ask for it if missing).
18+ - Instantiate once: ` nameService = INameService(nameServiceAddress) ` and reuse ` nameService.getAddress(...) ` for all subsequent address lookups in that action.
19+
1320Required context to ask the user for (if missing):
21+ - ` nameServiceAddress ` (required for actions that resolve contracts via ` INameService ` )
1422- ` rpcUrl ` , ` chainId ` (or chain name)
1523- ` privateKey ` or other signer details needed to send transactions
1624- ` account addresses ` relevant to the action:
You can’t perform that action at this time.
0 commit comments