@agentgates/cli 0.9.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -37
- package/dist/cli.mjs +504 -182
- package/package.json +1 -1
- package/scripts/postinstall.mjs +18 -15
package/README.md
CHANGED
|
@@ -6,31 +6,31 @@ Wallet operations for AI agents and humans.
|
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
8
|
npm install -g git+https://github.com/Carlos-Sotop/agentgates-ai-cli.git
|
|
9
|
-
|
|
9
|
+
agentgates --help
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```sh
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
agentgates login # pair with your wallet
|
|
16
|
+
agentgates balance # balances across all chains
|
|
17
|
+
agentgates send <amt> <asset> [--to <addr>] [--chain <chain>]
|
|
18
|
+
agentgates swap <amt> <from> [--to <asset>] [--chain <chain>]
|
|
19
|
+
agentgates earn supply|withdraw <amt> <asset> [--chain <chain>]
|
|
20
|
+
agentgates history # recent activity
|
|
21
|
+
agentgates list # the open bounty board (also: show, mine, feed, draft)
|
|
22
22
|
bounty submission <id> # your submission's verification state (also: context, room, live, pot, who, retention)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
agentgates fund <id> # fund YOUR OWN bounty's escrow so it goes live
|
|
24
|
+
agentgates tip <id> <amt> # add USDC to a live bounty's prize pot
|
|
25
|
+
agentgates subscribe <creator-user-id> [--months 1|3|12] # prepaid, at the creator's stored price
|
|
26
|
+
agentgates trade status|key|quote|buy|sell|positions # launch-coin trading on Solana devnet, see below
|
|
27
|
+
agentgates desk status|deposit|withdraw|session|buy|sell # the trading desk: bounds on chain, see below
|
|
28
|
+
agentgates --help # full command list
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Launch trading (Solana devnet)
|
|
32
32
|
|
|
33
|
-
`
|
|
33
|
+
`agentgates trade` trades launch coins on the Solana bonding curve, devnet only
|
|
34
34
|
(chain 901; the mainnet id is refused in code until the launch mainnet
|
|
35
35
|
ceremony). Trades sign with an agent-held ed25519 key generated locally at
|
|
36
36
|
first use (`~/.agentgates/trade-sol.json`, self-custodial, never your product
|
|
@@ -41,23 +41,23 @@ and the slippage guard are read from the deployed launch-config.
|
|
|
41
41
|
|
|
42
42
|
```sh
|
|
43
43
|
export BOUNTY_LAUNCH_ADMIN_KEY=… # operator bearer for the relay wire (prepare/submit, positions)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
agentgates trade key # create/show the agent trading key (fund it with devnet USDC)
|
|
45
|
+
agentgates trade quote SLFYB 2 # live curve quote (public read, no key needed)
|
|
46
|
+
agentgates trade buy SLFYB 2 # ticker or base58 mint; buys below the served floor refuse
|
|
47
|
+
agentgates trade sell SLFYB 50% # 50% of the position (also: an amount, or "all"); no sell floor
|
|
48
|
+
agentgates trade positions # balance, value, entry, signed result per coin
|
|
49
|
+
agentgates trade status [--coin SLFYB] [--json]
|
|
50
50
|
|
|
51
51
|
# Standing orders on durable nonces: the key pre-signs the exact trade, the
|
|
52
52
|
# deployed engine fires it when the trigger crosses. Cancel withdraws the
|
|
53
53
|
# nonce on chain, so the signed bytes can never land after it.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
agentgates trade order place SLFYB --buy 2 --at 0.000003 # buy when price drops to-or-below
|
|
55
|
+
agentgates trade order place SLFYB --buy 2 --at 8000 --mcap # trigger on market cap instead
|
|
56
|
+
agentgates trade order place SLFYB --sell 50% --at 0.00001 # take-profit at-or-above
|
|
57
|
+
agentgates trade order place SLFYB --sell all --at 0.000002 --stop # stop at-or-below
|
|
58
|
+
agentgates trade order place SLFYB --sell all --on-graduation # fire near the curve's close
|
|
59
|
+
agentgates trade orders [--coin SLFYB] # open, filled (with fire tx), missed, expired
|
|
60
|
+
agentgates trade order cancel <id>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
Optional env: `BOUNTY_LAUNCH_RELAY_ORIGIN` (relay base, host-only or
|
|
@@ -71,7 +71,7 @@ revocable without touching anything else.
|
|
|
71
71
|
|
|
72
72
|
## Launch trading desk (Solana devnet)
|
|
73
73
|
|
|
74
|
-
`
|
|
74
|
+
`agentgates desk` is the same lane through the on-chain desk program
|
|
75
75
|
(`launch_desk_sol`): credits live in per-owner vaults on chain, and trading
|
|
76
76
|
authority is a SESSION key whose bounds the program itself enforces — a
|
|
77
77
|
per-trade cap on buys, an expiry, owner-only exit, instant revoke. Two local
|
|
@@ -84,14 +84,14 @@ surfaces the program's own refusal. Neither key ever needs SOL; withdrawals
|
|
|
84
84
|
pay only the owner's own token accounts.
|
|
85
85
|
|
|
86
86
|
```sh
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
agentgates desk deposit 5 # owner's USDC → its desk vault (confirmed on chain)
|
|
88
|
+
agentgates desk session register --cap 2 --minutes 30 # YOUR bounds, required — the chain enforces them
|
|
89
|
+
agentgates desk buy SLFYB 1.5 # session signs; over-cap refuses on chain
|
|
90
|
+
agentgates desk sell SLFYB 50% # % resolves from the live state read; also amount / "all"
|
|
91
|
+
agentgates desk status [--coin SLFYB] [--json] # live credits + the session's key, cap, expiry + recent fills
|
|
92
|
+
agentgates desk status --coin SLFYB --fills 100 # --coin filters the fills; --fills sets the count served
|
|
93
|
+
agentgates desk session revoke # closes the session on chain — pre-signed trades die too
|
|
94
|
+
agentgates desk withdraw all [--coin SLFYB] # exit to the owner's own token account
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
`status` also prints the desk's recent FILLS — the settled buys and sells the
|