@net-protocol/cli 0.1.12 → 0.1.14
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 +38 -0
- package/dist/cli/index.mjs +2353 -125
- package/dist/cli/index.mjs.map +1 -1
- package/dist/feed/index.mjs +1357 -0
- package/dist/feed/index.mjs.map +1 -0
- package/dist/profile/index.mjs +970 -0
- package/dist/profile/index.mjs.map +1 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -364,6 +364,7 @@ Profile operations for managing your Net Protocol profile.
|
|
|
364
364
|
- `profile set-picture` - Set your profile picture URL
|
|
365
365
|
- `profile set-x-username` - Set your X (Twitter) username
|
|
366
366
|
- `profile set-bio` - Set your profile bio
|
|
367
|
+
- `profile set-token-address` - Set your profile token address (ERC-20 token)
|
|
367
368
|
- `profile set-canvas` - Set your profile canvas (HTML content)
|
|
368
369
|
- `profile get-canvas` - Get profile canvas for an address
|
|
369
370
|
|
|
@@ -515,6 +516,42 @@ netp profile set-bio \
|
|
|
515
516
|
--encode-only
|
|
516
517
|
```
|
|
517
518
|
|
|
519
|
+
##### Profile Set Token Address
|
|
520
|
+
|
|
521
|
+
Set an ERC-20 token address that represents you on your profile.
|
|
522
|
+
|
|
523
|
+
```bash
|
|
524
|
+
netp profile set-token-address \
|
|
525
|
+
--token-address <address> \
|
|
526
|
+
[--private-key <0x...>] \
|
|
527
|
+
[--chain-id <8453|1|...>] \
|
|
528
|
+
[--rpc-url <custom-rpc>] \
|
|
529
|
+
[--encode-only]
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
**Profile Set Token Address Arguments:**
|
|
533
|
+
|
|
534
|
+
- `--token-address` (required): ERC-20 token contract address (0x-prefixed, 40 hex characters)
|
|
535
|
+
- `--private-key` (optional): Private key. Can also be set via `NET_PRIVATE_KEY` environment variable
|
|
536
|
+
- `--chain-id` (optional): Chain ID. Can also be set via `NET_CHAIN_ID` environment variable
|
|
537
|
+
- `--rpc-url` (optional): Custom RPC URL. Can also be set via `NET_RPC_URL` environment variable
|
|
538
|
+
- `--encode-only` (optional): Output transaction data as JSON instead of executing
|
|
539
|
+
|
|
540
|
+
**Example:**
|
|
541
|
+
|
|
542
|
+
```bash
|
|
543
|
+
# Set token address
|
|
544
|
+
netp profile set-token-address \
|
|
545
|
+
--token-address 0x1234567890abcdef1234567890abcdef12345678 \
|
|
546
|
+
--chain-id 8453
|
|
547
|
+
|
|
548
|
+
# Encode-only (get transaction data without executing)
|
|
549
|
+
netp profile set-token-address \
|
|
550
|
+
--token-address 0x1234567890abcdef1234567890abcdef12345678 \
|
|
551
|
+
--chain-id 8453 \
|
|
552
|
+
--encode-only
|
|
553
|
+
```
|
|
554
|
+
|
|
518
555
|
##### Profile Set Canvas
|
|
519
556
|
|
|
520
557
|
Set your profile canvas (HTML content, max 60KB). Canvas content is stored using ChunkedStorage with gzip compression.
|
|
@@ -695,6 +732,7 @@ src/
|
|
|
695
732
|
│ │ ├── get.ts # Profile get logic
|
|
696
733
|
│ │ ├── set-picture.ts # Set profile picture
|
|
697
734
|
│ │ ├── set-username.ts # Set X username
|
|
735
|
+
│ │ ├── set-token-address.ts # Set token address
|
|
698
736
|
│ │ └── types.ts # Profile-specific types
|
|
699
737
|
│ ├── message/ # Message command module
|
|
700
738
|
│ └── token/ # Token command module
|