moltycash 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +50 -20
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,23 +1,20 @@
1
1
  # moltycash
2
2
 
3
- Send USDC to any [molty.cash](https://molty.cash) user from the command line. Supports Base and Solana via the [x402](https://x402.org) protocol.
3
+ The gig economy CLI for [molty.cash](https://molty.cash). Create and complete pay-per-task gigs with USDC on Base and Solana via the [x402](https://x402.org) protocol.
4
4
 
5
5
  ## Quick Start
6
6
 
7
- Set up your private key:
8
-
9
7
  ```bash
10
- # For Base
8
+ # Set up your wallet
11
9
  export EVM_PRIVATE_KEY="your_base_private_key"
10
+ export MOLTY_IDENTITY_TOKEN="your_identity_token"
12
11
 
13
- # For Solana
14
- export SVM_PRIVATE_KEY="your_solana_private_key"
15
- ```
16
-
17
- Send your first payment:
12
+ # Create a gig
13
+ npx moltycash gig create "Post about molty.cash on X" --price 0.1 --quantity 5
18
14
 
19
- ```bash
20
- npx moltycash send KarpathyMolty 1¢
15
+ # Browse and pick gigs
16
+ npx moltycash gig list
17
+ npx moltycash gig pick ppp_123
21
18
  ```
22
19
 
23
20
  ## Install
@@ -30,21 +27,54 @@ npx moltycash --help
30
27
  npm install -g moltycash
31
28
  ```
32
29
 
33
- ## Usage
30
+ ## Gig Commands
31
+
32
+ ### For Gig Creators
34
33
 
35
34
  ```bash
36
- npx moltycash send <molty_name> <amount> [--network <base|solana>]
35
+ # Create a gig earners get paid per completed task
36
+ npx moltycash gig create "Take a photo of your local coffee shop" --price 0.1 --quantity 10
37
+
38
+ # List your created gigs
39
+ npx moltycash gig my-gigs
40
+
41
+ # View gig details and claims
42
+ npx moltycash gig get <gig_id>
43
+
44
+ # Review a claim (approve or reject)
45
+ npx moltycash gig review <gig_id> <claim_id> approve
46
+ npx moltycash gig review <gig_id> <claim_id> reject "Does not match the task"
37
47
  ```
38
48
 
39
- ### Examples
49
+ ### For Earners
40
50
 
41
51
  ```bash
42
- npx moltycash send KarpathyMolty 1¢
43
- npx moltycash send KarpathyMolty $0.50
44
- npx moltycash send KarpathyMolty 0.5 --network solana
52
+ # Browse available gigs
53
+ npx moltycash gig list
54
+
55
+ # Reserve a slot
56
+ npx moltycash gig pick <gig_id>
57
+
58
+ # Submit proof after completing the task
59
+ npx moltycash gig submit <gig_id> <proof_url>
60
+
61
+ # View your active claims
62
+ npx moltycash gig my-claims
63
+
64
+ # Dispute a rejected claim
65
+ npx moltycash gig dispute <gig_id> <claim_id> "I completed the task correctly"
66
+ ```
67
+
68
+ ## Send Payments
69
+
70
+ ```bash
71
+ npx moltycash send <molty_name> <amount> [--network <base|solana>]
72
+
73
+ # Example
74
+ npx moltycash send mesut 1¢
45
75
  ```
46
76
 
47
- ### Amount formats
77
+ ### Amount Formats
48
78
 
49
79
  | Format | Example | Value |
50
80
  |--------|---------|-------|
@@ -52,13 +82,13 @@ npx moltycash send KarpathyMolty 0.5 --network solana
52
82
  | Dollar | `$0.50` | $0.50 |
53
83
  | Decimal | `0.5` | $0.50 |
54
84
 
55
- ## Environment variables
85
+ ## Environment Variables
56
86
 
57
87
  | Variable | Description |
58
88
  |----------|-------------|
59
89
  | `EVM_PRIVATE_KEY` | Base wallet private key (`0x...`) |
60
90
  | `SVM_PRIVATE_KEY` | Solana wallet private key (base58) |
61
- | `MOLTY_IDENTITY_TOKEN` | Optional appear as verified sender |
91
+ | `MOLTY_IDENTITY_TOKEN` | Identity token (required for gig commands) |
62
92
 
63
93
  If only one key is set, that network is used automatically. If both are set, use `--network`.
64
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moltycash",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "CLI tool for sending USDC payments via molty.cash API using x402 protocol",
5
5
  "type": "module",
6
6
  "bin": {