surfman 0.1.2 → 0.1.3
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 +40 -7
- package/dist/index.js +729 -153
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@ CLI tool for SurfPool RPC API interaction - Command-line interface for Solana lo
|
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
- ⚡ **
|
|
13
|
-
- 🔧 **Testing Tools**: Time travel, account manipulation,
|
|
14
|
-
- 🌐 **Network Queries**: Blocks, transactions, fees, cluster info
|
|
12
|
+
- ⚡ **55 Commands**: Complete CLI coverage of all Surfpool APIs
|
|
13
|
+
- 🔧 **Testing Tools**: Time travel, account manipulation, profiling, snapshots
|
|
14
|
+
- 🌐 **Network Queries**: Blocks, transactions, fees, cluster info, staking
|
|
15
15
|
- 📦 **Account Tools**: Query accounts, tokens, balances
|
|
16
16
|
- 📊 **Analytics**: Scan program accounts, find largest holders
|
|
17
17
|
- 🎨 **Beautiful Output**: Colorful, well-formatted terminal output
|
|
@@ -48,7 +48,7 @@ surfman get-latest-blockhash
|
|
|
48
48
|
|
|
49
49
|
## Command Categories
|
|
50
50
|
|
|
51
|
-
### 🔧 Testing & Development (
|
|
51
|
+
### 🔧 Testing & Development (22 commands)
|
|
52
52
|
|
|
53
53
|
**Time Control:**
|
|
54
54
|
```bash
|
|
@@ -61,18 +61,47 @@ surfman resume-clock
|
|
|
61
61
|
**Account Manipulation:**
|
|
62
62
|
```bash
|
|
63
63
|
surfman set-account --pubkey <ADDR> --lamports 1000000
|
|
64
|
-
surfman set-token-account --
|
|
64
|
+
surfman set-token-account --owner <ADDR> --mint <MINT> --amount 100
|
|
65
65
|
surfman reset-account --pubkey <ADDR>
|
|
66
|
+
surfman stream-account --pubkey <ADDR>
|
|
67
|
+
surfman get-streamed-accounts
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Program Management:**
|
|
71
|
+
```bash
|
|
72
|
+
surfman clone-program-account --source <ID> --destination <ID>
|
|
73
|
+
surfman set-program-authority --program-id <ID> --new-authority <ADDR>
|
|
74
|
+
surfman write-program --program-id <ID> --data-file program.so
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Transaction Profiling:**
|
|
78
|
+
```bash
|
|
79
|
+
surfman profile-transaction --transaction <BASE64> --tag my-test
|
|
80
|
+
surfman get-transaction-profile --id <UUID_OR_SIG>
|
|
81
|
+
surfman get-profile-results-by-tag --tag my-test
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**IDL Management:**
|
|
85
|
+
```bash
|
|
86
|
+
surfman register-idl --idl-file program.json
|
|
87
|
+
surfman get-idl --program-id <ID>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Snapshots & Scenarios:**
|
|
91
|
+
```bash
|
|
92
|
+
surfman export-snapshot --output snapshot.json
|
|
93
|
+
surfman register-scenario --scenario-file scenario.json
|
|
66
94
|
```
|
|
67
95
|
|
|
68
96
|
**Network Management:**
|
|
69
97
|
```bash
|
|
70
98
|
surfman reset-network
|
|
71
99
|
surfman get-local-signatures
|
|
72
|
-
surfman set-
|
|
100
|
+
surfman set-supply --total 1000000000
|
|
101
|
+
surfman get-surfnet-info
|
|
73
102
|
```
|
|
74
103
|
|
|
75
|
-
### 🌐 Network Operations (
|
|
104
|
+
### 🌐 Network Operations (22 commands)
|
|
76
105
|
|
|
77
106
|
**Block Queries:**
|
|
78
107
|
```bash
|
|
@@ -83,6 +112,8 @@ surfman get-blocks --start-slot 1000 --end-slot 2000
|
|
|
83
112
|
surfman get-blocks-with-limit --start-slot 1000 --limit 100
|
|
84
113
|
surfman get-first-available-block
|
|
85
114
|
surfman minimum-ledger-slot
|
|
115
|
+
surfman get-max-retransmit-slot
|
|
116
|
+
surfman get-max-shred-insert-slot
|
|
86
117
|
```
|
|
87
118
|
|
|
88
119
|
**Transaction Operations:**
|
|
@@ -102,6 +133,8 @@ surfman get-recent-prioritization-fees
|
|
|
102
133
|
surfman get-cluster-nodes
|
|
103
134
|
surfman get-recent-performance-samples
|
|
104
135
|
surfman request-airdrop --pubkey <ADDR> --amount 1
|
|
136
|
+
surfman get-inflation-reward --addresses <ADDR1,ADDR2>
|
|
137
|
+
surfman get-stake-minimum-delegation
|
|
105
138
|
```
|
|
106
139
|
|
|
107
140
|
### 📦 Account Queries (5 commands)
|