Skip to content

Commit 060457b

Browse files
authored
Doc cleanup (#22)
* remove market -m requirement from all commmands * Update README.md Signed-off-by: RahulJain28 <[email protected]> * fix format for mint commands * pr comments * remove market requirement from get transaction and bump ellipsis client version * rm -m in readme --------- Signed-off-by: RahulJain28 <[email protected]>
1 parent 7efb763 commit 060457b

File tree

6 files changed

+126
-112
lines changed

6 files changed

+126
-112
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ anyhow = "1.0.66"
2020
clap = { version = "4.0.26", features = ["derive"] }
2121
shellexpand = "2.1.2"
2222
solana-sdk = "1.10.32"
23-
ellipsis-client = "0.1.13"
23+
ellipsis-client = "0.1.16"
2424
solana-client = "1.10.32"
2525
solana-account-decoder = "1.14.7"
2626
solana-cli-config = "1.14.7"

README.md

Lines changed: 103 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -40,171 +40,188 @@ Optionally include the following parameters when running the cli:
4040

4141

4242
### get-all-markets
43-
Returns summary information on all markets that exist on Phoenix. Summary information includes market key, base and quote token keys, and authority key.
43+
Returns summary information on all markets that exist on Phoenix. Summary information includes market key, base and quote token keys, and authority key. Highly recommended to use the no-gpa flag for mainnet.
4444

45-
`$ phoenix-cli -u dev get-all-markets`
45+
`$ phoenix-cli -u main get-all-markets --no-gpa`
4646
```
47-
Found 1 market(s)
47+
Found 2 market(s)
4848
--------------------------------------------
49-
Market: 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8
50-
Base Token: B1sL3zxwyVnDGzRWCAsBkjL23wyu8HgwQP4XxgnHiSrv
51-
Quote Token: DK1gsSV2EubSE5S5FdXHpGzw2cAJNVzxeXRmAfxAMpU5
52-
Authority: 2Hwmox2Qd84ZxPhKUGkTs7KUpjzYHWfHWbPT1kWvMf5b
49+
Market: 14CAwu3LiBBk5fcHGdTsFyVxDwvpgFiSfDwgPJxECcE5
50+
Base Token: 7Z6Kczxo8ViRpfnsVvVaATB5fQ8bN2CQpxP8DHfd1vz5
51+
Quote Token: 5zUmtDCDeR17UYjvKKqvYp3S9pqcZA69cDoYPtojseJ4
52+
Authority: 9odqiJyK4zCMNfPi6AUE6gi9tomqZKPFYcDiokMXYRzS
53+
--------------------------------------------
54+
Market: 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg
55+
Base Token: So11111111111111111111111111111111111111112
56+
Quote Token: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
57+
Authority: 9odqiJyK4zCMNfPi6AUE6gi9tomqZKPFYcDiokMXYRzS
5358
```
5459

5560
### get-market
5661
Returns detailed information on a specific market. Information includes market balance's of the base and quote tokens, base and quote token keys, base lot size, quote lot size, tick size, and taker fees in basis points.
5762

58-
`$ phoenix-cli -u dev get-market -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8`
59-
```
60-
Base Vault balance: 1134.415
61-
Quote Vault balance: 15417.129
62-
Base Token: B1sL3zxwyVnDGzRWCAsBkjL23wyu8HgwQP4XxgnHiSrv
63-
Quote Token: DK1gsSV2EubSE5S5FdXHpGzw2cAJNVzxeXRmAfxAMpU5
64-
Base Lot Size: 0.001
65-
Quote Lot Size: 0.000001
66-
Tick size: 0.005
67-
Taker fees in basis points: 5
63+
`$ phoenix-cli -u main get-market 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg`
64+
```
65+
Market: 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg
66+
Status: Active
67+
Authority: 9odqiJyK4zCMNfPi6AUE6gi9tomqZKPFYcDiokMXYRzS
68+
Sequence number: 696709
69+
Base Vault balance: 0.000
70+
Quote Vault balance: 10.485
71+
Base Token: So11111111111111111111111111111111111111112
72+
Quote Token: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
73+
Base vault key: 8g4Z9d6PqGkgH31tMW6FwxGhwYJrXpxZHQrkikpLJKrG
74+
Quote vault key: 3HSYXeGc3LjEPCuzoNDjQN37F1ebsSiR4CqXVqQCdekZ
75+
Base Lot Size, in whole units: 0.001
76+
Quote Lot Size, in whole units: 0.000001
77+
Tick size in quote atoms per base unit: 0.001
78+
Taker fees in basis points: 2
79+
Fee destination pubkey: 6pwvUFHxtwNrcMqb12V3ni2FXcMnvTWvBWX5DXmPpg1Y
80+
Raw base units per base unit: 1
81+
Market Size Params: MarketSizeParams { bids_size: 4096, asks_size: 4096, num_seats: 8321 }
82+
Successor pubkey: 9odqiJyK4zCMNfPi6AUE6gi9tomqZKPFYcDiokMXYRzS
83+
Uncollected fees, in quote units: 10.48482
84+
Collected fees, in quote units: 0.0
6885
```
6986

7087
### get-traders-for-market
7188
Returns all trader keys that have an approved seat on a given market.
7289

73-
`$ phoenix-cli -u dev get-traders-for-market -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8`
90+
`$ phoenix-cli -u main get-traders-for-market 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg`
7491
```
92+
Found 3 trader(s). Printing traders with locked or free lots
7593
--------------------------------
76-
Trader pubkey: mkrc4jMLEPRoKLUnNL7Ctnwb7uJykbwiYvFjB4sw9Z9
77-
Base token locked: 800.447
78-
Base token free: 0.0
79-
Quote token locked: 9729.96127
80-
Quote token free: 11.995
81-
--------------------------------
82-
Trader pubkey: 2Hwmox2Qd84ZxPhKUGkTs7KUpjzYHWfHWbPT1kWvMf5b
83-
Base token locked: 0.0
84-
Base token free: 333.968
85-
Quote token locked: 0.0
86-
Quote token free: 4729.96854
94+
Trader pubkey: 3HBWHuyxWv4uN8U8SeukocrWPfLZJqrtj9DgDHsGo2HR
95+
Base token locked: 116.873
96+
Base token free: 6.666
97+
Quote token locked: 2647.022716
98+
Quote token free: 1222.250847
8799
```
88100

89101
### get-top-of-book
90102
Returns the best bid and best ask on a given market.
91103

92-
`$ phoenix-cli -u dev get-top-of-book -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8`
104+
`$ phoenix-cli -u main get-top-of-book 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg`
93105
```
94-
11.990 5.838
95-
5.843 11.980
106+
22.990 5.838
107+
5.843 22.980
96108
```
97109

98110
### get-book-levels
99111
Returns the top N levels of a market's orderbook. N is by default set to 10.
100112

101-
`$ phoenix-cli -u dev get-book-levels -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8 -l 5`
113+
`$ phoenix-cli -u main get-book-levels 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg -l 5`
102114
```
103-
12.030 109.725
104-
12.015 66.583
105-
12.005 29.987
106-
11.995 15.006
107-
11.990 4.838
108-
5.843 11.980
109-
15.031 11.975
110-
30.087 11.965
111-
66.917 11.955
112-
110.552 11.940
115+
23.030 109.725
116+
23.015 66.583
117+
23.005 29.987
118+
22.995 15.006
119+
22.990 4.838
120+
5.843 22.980
121+
15.031 22.975
122+
30.087 22.965
123+
66.917 22.955
124+
110.552 22.940
113125
```
114126
### get-full-book
115127
Returns the full orderbook for a given market.
116128

117-
`$ phoenix-cli % phoenix-cli -u dev get-full-book -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8`
129+
`$ phoenix-cli -u main get-full-book 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg`
118130
```
119-
12.210 409.500
120-
12.025 166.320
121-
12.005 109.954
122-
11.990 96.747
123-
11.980 15.025
124-
11.975 5.845
125-
5.850 11.965
126-
15.050 11.960
127-
30.125 11.950
128-
67.057 11.930
129-
110.784 11.915
130-
168.137 11.895
131-
426.985 11.710
131+
23.210 409.500
132+
23.025 166.320
133+
23.005 109.954
134+
22.990 96.747
135+
22.980 15.025
136+
22.975 5.845
137+
5.850 22.965
138+
15.050 22.960
139+
30.125 22.950
140+
67.057 22.930
141+
110.784 22.915
142+
168.137 22.895
143+
426.985 22.710
132144
```
133145

134146
### get-transaction
135-
Returns a summary of the market events that occured (Place, Fill, Reduce/Cancel) in a given transaction signature for the given market.
147+
Returns a summary of the market events that occured (Place, Fill, Reduce/Cancel) in a given transaction signature.
136148

137-
`$ phoenix-cli -u dev get-transaction -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8 -s 4AA2WecMCJ3AsXJw2onLnihdpeCYw7tGDVHexMY37civAdyUnk8uP2aiiz64LQrLMBt4B62csYiFKQGWN33PuKyJ`
149+
`$ phoenix-cli -u main get-transaction 4gw6UDWsDCWrh2eqYxvVzbVyywfPVo24V2qMTSVGJJAdxvv9Tx4pBrqE1cLTgomP2QkZ7wigbjoN3GpibhJY8PFV`
138150
```
139-
market: 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8, event_type: Place, timestamp: 1671652667, signature: 4AA2WecMCJ3AsXJw2onLnihdpeCYw7tGDVHexMY37civAdyUnk8uP2aiiz64LQrLMBt4B62csYiFKQGWN33PuKyJ, slot: 183671273, sequence_number: 1488049, event_index: 0, maker: mkrc4jMLEPRoKLUnNL7Ctnwb7uJykbwiYvFjB4sw9Z9, taker: , price: 11.895, side: Bid, quantity: 168.137
140-
market: 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8, event_type: Place, timestamp: 1671652667, signature: 4AA2WecMCJ3AsXJw2onLnihdpeCYw7tGDVHexMY37civAdyUnk8uP2aiiz64LQrLMBt4B62csYiFKQGWN33PuKyJ, slot: 183671273, sequence_number: 1488050, event_index: 0, maker: mkrc4jMLEPRoKLUnNL7Ctnwb7uJykbwiYvFjB4sw9Z9, taker: , price: 12.21, side: Ask, quantity: 409.5
141-
market: 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8, event_type: Place, timestamp: 1671652667, signature: 4AA2WecMCJ3AsXJw2onLnihdpeCYw7tGDVHexMY37civAdyUnk8uP2aiiz64LQrLMBt4B62csYiFKQGWN33PuKyJ, slot: 183671273, sequence_number: 1488051, event_index: 0, maker: mkrc4jMLEPRoKLUnNL7Ctnwb7uJykbwiYvFjB4sw9Z9, taker: , price: 11.71, side: Bid, quantity: 426.985
151+
market: 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg, event_type: Fill, timestamp: 1677629539, signature: 4gw6UDWsDCWrh2eqYxvVzbVyywfPVo24V2qMTSVGJJAdxvv9Tx4pBrqE1cLTgomP2QkZ7wigbjoN3GpibhJY8PFV, slot: 180067446, sequence_number: 680904, event_index: 0, maker: 3HBWHuyxWv4uN8U8SeukocrWPfLZJqrtj9DgDHsGo2HR, taker: CcoiNhaTR88CSkEdsdeJpEMWnfCNqMf4HGGzXjwnvZF, price: 21.815, side: Bid, quantity: 2.288
152+
market: 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg, event_type: Fill, timestamp: 1677629539, signature: 4gw6UDWsDCWrh2eqYxvVzbVyywfPVo24V2qMTSVGJJAdxvv9Tx4pBrqE1cLTgomP2QkZ7wigbjoN3GpibhJY8PFV, slot: 180067446, sequence_number: 680904, event_index: 1, maker: 3HBWHuyxWv4uN8U8SeukocrWPfLZJqrtj9DgDHsGo2HR, taker: CcoiNhaTR88CSkEdsdeJpEMWnfCNqMf4HGGzXjwnvZF, price: 21.811, side: Bid, quantity: 27.459
153+
market: 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg, event_type: Fill, timestamp: 1677629539, signature: 4gw6UDWsDCWrh2eqYxvVzbVyywfPVo24V2qMTSVGJJAdxvv9Tx4pBrqE1cLTgomP2QkZ7wigbjoN3GpibhJY8PFV, slot: 180067446, sequence_number: 680904, event_index: 2, maker: 3HBWHuyxWv4uN8U8SeukocrWPfLZJqrtj9DgDHsGo2HR, taker: CcoiNhaTR88CSkEdsdeJpEMWnfCNqMf4HGGzXjwnvZF, price: 21.806, side: Bid, quantity: 17.066
154+
Total quote token fees paid: 0.204193
142155
```
143156

144157
### get-market-status
145158
Returns the status of a given market. Markets can be in the following states: Active, PostOnly, Paused, Closed, Uninitialized, Tombstoned.
146159

147-
`$ phoenix-cli -u dev get-market-status -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8`
160+
`$ phoenix-cli -u main get-market-status 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg`
148161
```
149162
Market status: Active
150163
```
151164

152165
### get-seat-info
153166
Returns the status and address of a trader's seat. By default, returns the payer's seat info. Seats can be in the following states: Approved, NotApproved, Retired
154167

155-
`$ phoenix-cli -u dev get-seat-info -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8 -t mkrc4jMLEPRoKLUnNL7Ctnwb7uJykbwiYvFjB4sw9Z9`
168+
`$ phoenix-cli -u main get-seat-info 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg -t 3HBWHuyxWv4uN8U8SeukocrWPfLZJqrtj9DgDHsGo2HR`
156169
```
157-
Seat address: mg6uXraBkvi7ccbnKvJoXgyjUVDBSqcxDJysPqiMYau
170+
Seat address: GGyZqgoqnKsvMTsmSSkTrDjtdSFUsEoioKz9Yr2vEnZa
158171
Seat status: Approved
159172
```
160173

161174
### get-open-orders
162175
Returns all open orders on a given market for a trader. By default, returns the payer's open orders. Returns the side, orderID, price in ticks, price, and size for each order.
163176

164-
`$ phoenix-cli -u dev get-open-orders -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8 -t mkrc4jMLEPRoKLUnNL7Ctnwb7uJykbwiYvFjB4sw9Z9`
177+
`$ phoenix-cli -u main get-open-orders 14CAwu3LiBBk5fcHGdTsFyVxDwvpgFiSfDwgPJxECcE5 -t mkrc4jMLEPRoKLUnNL7Ctnwb7uJykbwiYvFjB4sw9Z9`
165178
```
166179
Open Bids
167180
ID | Price (ticks) | Price | Quantity
168-
18446744073708399662 | 2385 | 11.925 | 5.870
169-
18446744073708399660 | 2384 | 11.920 | 15.100
170-
18446744073708399658 | 2382 | 11.910 | 30.226
171-
18446744073708399656 | 2380 | 11.900 | 67.226
172-
18446744073708399654 | 2377 | 11.885 | 111.064
181+
18446744073707873235 | 4466 | 22.330 | 3.134
182+
18446744073707873233 | 4465 | 22.325 | 8.062
183+
18446744073707873231 | 4462 | 22.310 | 16.136
184+
18446744073707873237 | 4461 | 22.305 | 35.866
185+
18446744073707873247 | 4457 | 22.285 | 89.746
186+
18446744073707873229 | 4457 | 22.285 | 59.232
187+
18446744073707873245 | 4420 | 22.100 | 226.244
173188
174189
Open Asks
175190
ID | Price (ticks) | Price | Quantity
176-
1151952 | 2387 | 11.935 | 4.865
177-
1151954 | 2388 | 11.940 | 15.075
178-
1151956 | 2390 | 11.950 | 30.125
179-
1151958 | 2392 | 11.960 | 66.889
180-
1151960 | 2395 | 11.975 | 110.229
181-
1151962 | 2399 | 11.995 | 166.736
191+
1678379 | 4468 | 22.340 | 3.133
192+
1678381 | 4469 | 22.345 | 8.055
193+
1678383 | 4470 | 22.350 | 16.107
194+
1678377 | 4473 | 22.365 | 35.770
195+
1678385 | 4475 | 22.375 | 58.994
196+
1678367 | 4483 | 22.415 | 89.225
197+
1678369 | 4520 | 22.600 | 221.238
182198
```
183199

184200
### request-seat
185-
Requests a seat for the payer on the given market. Note that the seat will have to then be approved by the market authority in order to place limit orders.
201+
Send a transaction on chain to allocate a seat for the payer on the given market. This will cost ~.0018 SOL for rent. Note that the seat will have to then be approved by the market authority in order to place limit orders.
186202

187-
`$ phoenix-cli -u dev request-seat -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8`
203+
`$ phoenix-cli -u main request-seat 4DoNfFBfF7UokCC2FQzriy7yHK6DY6NVdYpuekQ5pRgg`
188204
```
189-
Requested seat, transaction signature: gbu5aqybhciNLamj5E9Bb1Xof387wTE1UJGJCT1cn7AHX7mQ1Air6bvSKNnoH7Hm3pq1JTQCDAcmyixEyQeS6FH
205+
Requested seat, transaction signature: 3Qq7MZQ8XoLeT8fSfeFBTxRy8zFPvCFPbvwU2Zhu16gKT3o8tHo8HRxvHfyb75dvuJjDqo3sTpvfGL9v3tco8nAN
190206
```
191207

192208
### mint-tokens
193-
Mints tokens of the ticker_string (example: SOL) to the given pubkey. Default amount is 100_000_000_000.
209+
Mints tokens of the ticker_string (example: SOL) to the given pubkey. Default amount is 100_000_000_000. This command is only relevant for tokens associated with the ellipsis token faucet. On mainnet, this will only apply to the BASE/QUOTE market at address `14CAwu3LiBBk5fcHGdTsFyVxDwvpgFiSfDwgPJxECcE5`
194210

195-
`$ phoenix-cli -u dev mint-tokens -m SOL -a 100000 -r aChXgDyJn7g5BCkjccisGc78LrQZKEmNgt5sz8Tdkzn`
211+
`$ phoenix-cli -u main mint-tokens BASE aChXgDyJn7g5BCkjccisGc78LrQZKEmNgt5sz8Tdkzn -a 100000`
196212
```
197213
Creating ATA
198-
100000 Tokens minted! Mint pubkey: B1sL3zxwyVnDGzRWCAsBkjL23wyu8HgwQP4XxgnHiSrv, Recipient address: aChXgDyJn7g5BCkjccisGc78LrQZKEmNgt5sz8Tdkzn
214+
100000 Tokens minted! Mint pubkey: 7Z6Kczxo8ViRpfnsVvVaATB5fQ8bN2CQpxP8DHfd1vz5, Recipient address: aChXgDyJn7g5BCkjccisGc78LrQZKEmNgt5sz8Tdkzn
199215
```
200216

201217
### mint-tokens-for-market
202-
Mints the base and quote tokens of the given market to the given pubkey. Default amounts are 100_000_000_000 for base and 100_000_000 for quote.
218+
Mints the base and quote tokens of the given market to the given pubkey. Default amounts are 100_000_000_000 for base and 100_000_000 for quote. This command is only relevant for tokens associated with the ellipsis token faucet. On mainnet, this will only apply to the BASE/QUOTE market at address `14CAwu3LiBBk5fcHGdTsFyVxDwvpgFiSfDwgPJxECcE5`
203219

204-
`$ phoenix-cli -u dev mint-tokens-for-market -m 5iLqmcg8vifdnnw6wEpVtQxFE4Few5uiceDWzi3jvzH8 -r aChXgDyJn7g5BCkjccisGc78LrQZKEmNgt5sz8Tdkzn`
220+
`$ phoenix-cli -u main mint-tokens-for-market 14CAwu3LiBBk5fcHGdTsFyVxDwvpgFiSfDwgPJxECcE5 aChXgDyJn7g5BCkjccisGc78LrQZKEmNgt5sz8Tdkzn`
205221
```
222+
Creating ATA for base token
206223
Creating ATA for quote token
207-
Tokens minted! Signature: 3fnHTcRTfSrU4ycoE94p2Pn4zCA1389Xmr8uB8QvyYEPxWJWxfDiCa4Upp375Pqc7QC7pUg246dRMCp7PAbMRGnz
224+
Tokens minted! Signature: 2mN6o7gBB41UFEboQuCMaeG1t5qQ1uRAvTDoXUhsk1yBoKXQtrXsHVtkQAT9R3oRUSPbhDkZjCQtNtjcYP4TqwVV
208225
```
209226

210227

src/command.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use solana_sdk::signature::Signature;
77
pub enum PhoenixCLICommand {
88
/// Get summary information on all markets
99
GetAllMarkets {
10+
/// Optionally skip the GetProgramAccounts network call. This will read a static list of markets in the config file instead.
11+
/// Only for mainnet and highly recommended for mainnet
1012
#[clap(short, long, required = false)]
1113
no_gpa: bool,
1214
},
@@ -27,47 +29,43 @@ pub enum PhoenixCLICommand {
2729
GetFullBook { market_pubkey: Pubkey },
2830
/// Get the market events that occured in a given transaction signature
2931
GetTransaction {
30-
market_pubkey: Pubkey,
3132
signature: Signature,
3233
},
3334
/// Get the current status of a market
3435
GetMarketStatus { market_pubkey: Pubkey },
3536
/// Get the status and address of a seat for a given market and trader
3637
GetSeatInfo {
37-
#[clap(short, long, required = true)]
3838
market_pubkey: Pubkey,
3939
/// Pubkey of the trader associated with the seat. Defaults to the current payer
4040
#[clap(short, long, required = false)]
4141
trader_pubkey: Option<Pubkey>,
4242
},
4343
/// Get all open orders on a given market for a trader
4444
GetOpenOrders {
45-
#[clap(short, long, required = true)]
4645
market_pubkey: Pubkey,
4746
/// Pubkey of the trader for whom to get open orders. Defaults to the current payer
4847
#[clap(short, long, required = false)]
4948
trader_pubkey: Option<Pubkey>,
5049
},
51-
/// Request a seat for the current payer for a given market. Note that the seat will have to then be approved by the market authority.
50+
/// Send a transaction on chain to allocate a seat for the payer on the given market. This will cost ~.0018 SOL for rent.
51+
/// Note that the seat will have to then be approved by the market authority.
5252
RequestSeat { market_pubkey: Pubkey },
5353
/// Mint tokens to a recipient for a given ticker string (for example SOL or USDC). Default amount is 100_000_000_000.
54-
/// Devnet only
54+
/// This is only for markets associated with the ellipsis token faucet.
5555
MintTokens {
5656
/// Ticker string, example: SOL
57-
#[clap(short, long, required = true)]
5857
mint_ticker: String,
59-
#[clap(short, long, required = true)]
58+
/// Pubkey of the recipient of the tokens
6059
recipient_pubkey: Pubkey,
6160
/// Amount in atoms (1 * 10*(-decimals))
6261
#[clap(short, long, required = false, default_value = "100000000000")]
6362
amount: u64,
6463
},
6564
/// Mint both base and quote tokens to a recipient for a given market. Default amounts are 100_000_000_000 for base and 100_000_000 for quote.
66-
/// Devnet only
65+
/// This is only for markets associated with the ellipsis token faucet.
6766
MintTokensForMarket {
68-
#[clap(short, long, required = true)]
6967
market_pubkey: Pubkey,
70-
#[clap(short, long, required = true)]
68+
/// Pubkey of the recipient of the tokens
7169
recipient_pubkey: Pubkey,
7270
/// Amount in atoms (1 * 10*(-decimals))
7371
#[clap(short, long, required = false, default_value = "100000000000")]

0 commit comments

Comments
 (0)