@moonpay/cli 0.3.1 → 0.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moonpay/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,124 @@
1
+ ---
2
+ name: moonpay-missions
3
+ description: A series of missions that walk through every MoonPay CLI capability. Use when the user is new or says "get started", "show me what you can do", or "run the missions".
4
+ tags: [setup]
5
+ ---
6
+
7
+ # MoonPay Orientation
8
+
9
+ Walk the user through a series of missions. Complete each one before moving to the next. After each mission, give a brief summary of what they just did and what's next.
10
+
11
+ ## Mission 1: Identity
12
+
13
+ **Goal:** Verify who you are and what wallets you have.
14
+
15
+ ```bash
16
+ mp user retrieve
17
+ mp wallet list
18
+ ```
19
+
20
+ If no wallets exist, create one:
21
+
22
+ ```bash
23
+ mp wallet create --name "my-wallet"
24
+ ```
25
+
26
+ Tell the user their email, wallet address, and that this wallet's private key lives locally on their machine.
27
+
28
+ ## Mission 2: Recon
29
+
30
+ **Goal:** Search for a token and pull up its intel.
31
+
32
+ Ask the user to pick a token (or default to SOL). Then:
33
+
34
+ ```bash
35
+ mp token search --query "<token>" --chain solana
36
+ mp token retrieve --token <address-from-search> --chain solana
37
+ ```
38
+
39
+ Present: name, symbol, price, 24h change, market cap, liquidity, volume, and trading activity. Flag anything interesting (high volume, thin liquidity, etc).
40
+
41
+ ## Mission 3: Portfolio Check
42
+
43
+ **Goal:** See what's in the wallet.
44
+
45
+ ```bash
46
+ mp token balance list --wallet <address> --chain solana
47
+ ```
48
+
49
+ Present holdings as a mini portfolio report: each token, amount, USD value, and % allocation. Give the total portfolio value.
50
+
51
+ ## Mission 4: Swap
52
+
53
+ **Goal:** Build a swap transaction, sign it locally, and show the quote.
54
+
55
+ Pick a small swap based on what the wallet holds (e.g. 0.01 USDC → SOL). If the wallet has no USDC, pick any token pair that makes sense.
56
+
57
+ ```bash
58
+ mp token swap build --input <input-mint> --output <output-mint> --amount <small-amount> --wallet <address>
59
+ ```
60
+
61
+ Show the quote from the `message` field. Ask the user: **"Want to execute this swap?"**
62
+
63
+ If yes:
64
+
65
+ ```bash
66
+ mp transaction sign --transaction <tx> --wallet <address>
67
+ mp token swap execute --transaction <signed-tx> --requestId <id>
68
+ ```
69
+
70
+ If no, move on. Either way, explain what just happened: the transaction was built on the server, signed locally (key never left the machine), and submitted on-chain.
71
+
72
+ ## Mission 5: Buy with Fiat
73
+
74
+ **Goal:** Generate a fiat checkout link.
75
+
76
+ ```bash
77
+ mp buy --token sol --amount 1 --wallet <address> --email <email-from-mission-1>
78
+ ```
79
+
80
+ Present the checkout URL. Explain: this opens MoonPay's fiat gateway where they can pay with a card or bank transfer. Tokens get sent to their wallet.
81
+
82
+ ## Mission 6: Message Signing
83
+
84
+ **Goal:** Sign a message to prove wallet ownership.
85
+
86
+ ```bash
87
+ mp message sign --wallet <address> --message "I own this wallet"
88
+ ```
89
+
90
+ Present the signature. Explain: this is used for wallet verification (e.g. registering with virtual accounts, proving ownership to dApps).
91
+
92
+ ## Mission 7: Virtual Account (optional)
93
+
94
+ **Goal:** Check if the user has a virtual account for fiat on/off-ramp.
95
+
96
+ ```bash
97
+ mp virtual-account retrieve
98
+ ```
99
+
100
+ If they have one, show the status and next step. If not, explain what a virtual account is (KYC-verified fiat bridge) and that they can set one up with `mp virtual-account create`.
101
+
102
+ ## Mission 8: Skills
103
+
104
+ **Goal:** Show the user what skills are available.
105
+
106
+ ```bash
107
+ mp skill list
108
+ ```
109
+
110
+ Explain: skills are guides that teach agents how to use the CLI. They can install them for Claude Code with `mp skill install`.
111
+
112
+ ## Debrief
113
+
114
+ Summarize everything the user just did:
115
+ - Authenticated and set up a wallet
116
+ - Searched and analyzed tokens
117
+ - Checked portfolio
118
+ - Built and signed a swap (and maybe executed it)
119
+ - Generated a fiat buy link
120
+ - Signed a message
121
+ - Explored virtual accounts
122
+ - Discovered skills
123
+
124
+ End with: "You're oriented. Run `mp --help` to see all commands, or ask me anything."