@trinaryex/mcp 3.8.0 → 4.0.0

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.
@@ -0,0 +1,446 @@
1
+ import { normalizeStructTag } from '@mysten/sui/utils';
2
+ import { COIN_POOL_CREATION_FEE, DEFAULT_SWAP_SLIPPAGE_BPS, computeCoinBidDeposit, conservativeBidFeeRate, } from '@trinaryex/sdk';
3
+ import { z } from 'zod';
4
+ import { big, bigOpt, coinPoolSelectorShape, coinType, orderSide, senderShape, u64, } from '../schemas.js';
5
+ import { PREPARE_SUFFIX, orderIdSchema, prepared, spend } from './prepare.js';
6
+ /**
7
+ * Coin-pool (currency-pair) writes, prepared unsigned — the `client.coins`
8
+ * mirror of the item-market `prepare_*` tools.
9
+ *
10
+ * Every amount is RAW base units of its coin, and prices are 1e9-scaled raw.
11
+ * `worstCaseSpend.asset` is the full, normalized coin type rather than a
12
+ * symbol, because a coin pool may be quoted in something other than CRED.
13
+ *
14
+ * Where the SDK would size a figure itself from a live read (a bid's deposit,
15
+ * a market buy's budget, a swap's minimum output), these tools run that read
16
+ * first and pass the result in explicitly — the same formula the SDK applies,
17
+ * but it means the number the bytes commit to is the number `intent` declares.
18
+ */
19
+ /** The selector fields the caller gave, without undefined keys. */
20
+ function selectorOf(args) {
21
+ return {
22
+ ...(args.poolId ? { poolId: args.poolId } : {}),
23
+ ...(args.baseCoinType ? { baseCoinType: args.baseCoinType } : {}),
24
+ ...(args.quoteCoinType
25
+ ? { quoteCoinType: args.quoteCoinType }
26
+ : {}),
27
+ };
28
+ }
29
+ /**
30
+ * Resolve the pool once on the client that will build the write. Passing the
31
+ * full `{ poolId, baseCoinType, quoteCoinType }` back in makes the SDK skip its
32
+ * own lookups, and gives the intent the coin types it must name.
33
+ */
34
+ function resolvePool(client, args) {
35
+ return client.coins.resolvePool(selectorOf(args));
36
+ }
37
+ /** Normalize a coin type for the intent; the SDK rejects a bad one anyway. */
38
+ function normalizeType(type) {
39
+ try {
40
+ return normalizeStructTag(type);
41
+ }
42
+ catch {
43
+ return type;
44
+ }
45
+ }
46
+ const poolParams = (pool) => ({
47
+ poolId: pool.poolId,
48
+ baseCoinType: pool.baseCoinType,
49
+ quoteCoinType: pool.quoteCoinType,
50
+ });
51
+ const orderType = z
52
+ .number()
53
+ .int()
54
+ .min(0)
55
+ .max(3)
56
+ .optional()
57
+ .describe('0=LIMIT (default), 1=IOC, 2=FOK, 3=POST_ONLY.');
58
+ const selfMatchingOption = z
59
+ .number()
60
+ .int()
61
+ .min(0)
62
+ .max(2)
63
+ .optional()
64
+ .describe('0=allowed (default), 1=cancel taker, 2=cancel maker.');
65
+ export const coinPrepareTools = [
66
+ {
67
+ name: 'prepare_coin_deposit',
68
+ title: 'Prepare: deposit a coin',
69
+ description: 'Build a deposit of any coin from the wallet into the trading account, creating the account in the same transaction when the sender has none. SUI is split from the gas coin. The any-coin form of prepare_deposit_currency.' +
70
+ PREPARE_SUFFIX,
71
+ kind: 'prepare',
72
+ sdkPath: 'coins.deposit',
73
+ inputShape: {
74
+ ...senderShape,
75
+ coinType: coinType.describe('Coin type to deposit.'),
76
+ amount: u64.describe('Raw base units of that coin.'),
77
+ },
78
+ handler: (ctx, args) => prepared(ctx, args.sender, {
79
+ action: 'coin_deposit',
80
+ params: {
81
+ coinType: normalizeType(args.coinType),
82
+ amount: args.amount,
83
+ },
84
+ worstCaseSpend: spend(normalizeType(args.coinType), args.amount),
85
+ }, () => ctx.writeClient(args.sender).coins.deposit({
86
+ coinType: args.coinType,
87
+ amount: big(args.amount),
88
+ })),
89
+ },
90
+ {
91
+ name: 'prepare_coin_withdraw',
92
+ title: 'Prepare: withdraw a coin',
93
+ description: 'Build a withdrawal of any coin from the trading account back to the wallet. Omit amount to withdraw the whole balance. Settled pool proceeds must be claimed into the account first (prepare_coin_claim_settled).' +
94
+ PREPARE_SUFFIX,
95
+ kind: 'prepare',
96
+ sdkPath: 'coins.withdraw',
97
+ inputShape: {
98
+ ...senderShape,
99
+ coinType: coinType.describe('Coin type to withdraw.'),
100
+ amount: u64
101
+ .optional()
102
+ .describe('Raw base units; omit for the full balance.'),
103
+ },
104
+ handler: (ctx, args) => prepared(ctx, args.sender, {
105
+ action: 'coin_withdraw',
106
+ params: {
107
+ coinType: normalizeType(args.coinType),
108
+ amount: args.amount ?? 'full balance',
109
+ },
110
+ }, () => ctx.writeClient(args.sender).coins.withdraw({
111
+ coinType: args.coinType,
112
+ ...(args.amount !== undefined ? { amount: big(args.amount) } : {}),
113
+ })),
114
+ },
115
+ {
116
+ name: 'prepare_coin_limit_order',
117
+ title: 'Prepare: coin limit order',
118
+ description: 'Build a coin-pool limit order in one atomic transaction: creates the trading account if missing, deposits only the deficit, and places the order (good-til-cancelled by default). A sell deposits base; a buy deposits quote plus a fee at the highest entry-rung rate (taker or maker, active or staged — see coins_trade_params), so it is never under-funded and the unused part stays in the account. price is 1e9-scaled raw (quote = floor(quantity × price / 1e9)); quantity must be at least ceil(1e9 / price).' +
119
+ PREPARE_SUFFIX,
120
+ kind: 'prepare',
121
+ sdkPath: 'coins.limit',
122
+ inputShape: {
123
+ ...senderShape,
124
+ ...coinPoolSelectorShape,
125
+ side: orderSide,
126
+ price: u64.describe('Raw 1e9-scaled price, in [1, 2^63−1].'),
127
+ quantity: u64.describe('Base quantity, raw units.'),
128
+ expireAt: u64
129
+ .optional()
130
+ .describe('Unix ms; omit for good-til-cancelled.'),
131
+ orderType,
132
+ selfMatchingOption,
133
+ quoteDeposit: u64
134
+ .optional()
135
+ .describe('Override the quote held for a buy. Defaults to the never-under-funded deposit.'),
136
+ },
137
+ handler: async (ctx, args) => {
138
+ const client = ctx.writeClient(args.sender);
139
+ const pool = await resolvePool(client, args);
140
+ const isBid = args.side === 'buy';
141
+ let quoteDeposit = bigOpt(args.quoteDeposit);
142
+ if (isBid && quoteDeposit === undefined) {
143
+ const tp = await client.coins.tradeParams(pool);
144
+ quoteDeposit = computeCoinBidDeposit(big(args.price), big(args.quantity), conservativeBidFeeRate(tp.entry, tp.next));
145
+ }
146
+ return prepared(ctx, args.sender, {
147
+ action: 'coin_limit_order',
148
+ params: {
149
+ ...poolParams(pool),
150
+ side: args.side,
151
+ price: args.price,
152
+ quantity: args.quantity,
153
+ expireAt: args.expireAt ?? 'good-til-cancelled',
154
+ },
155
+ worstCaseSpend: isBid
156
+ ? spend(pool.quoteCoinType, String(quoteDeposit))
157
+ : spend(pool.baseCoinType, args.quantity),
158
+ }, () => client.coins.limit({
159
+ ...pool,
160
+ side: args.side,
161
+ price: big(args.price),
162
+ quantity: big(args.quantity),
163
+ ...(args.expireAt ? { expireAt: big(args.expireAt) } : {}),
164
+ ...(args.orderType !== undefined
165
+ ? { orderType: args.orderType }
166
+ : {}),
167
+ ...(args.selfMatchingOption !== undefined
168
+ ? { selfMatchingOption: args.selfMatchingOption }
169
+ : {}),
170
+ ...(quoteDeposit !== undefined ? { quoteDeposit } : {}),
171
+ }));
172
+ },
173
+ },
174
+ {
175
+ name: 'prepare_coin_market_order',
176
+ title: 'Prepare: coin market order',
177
+ description: 'Build a coin-pool market order (immediate-or-cancel) in one atomic transaction, creating the trading account if missing. A sell deposits the base deficit and its taker fee comes out of the proceeds. A buy holds quoteBudget, defaulting to the exact cost against the current book (coins_estimate_market totalQuote) — if the book moves against you the whole transaction aborts, so pass extra headroom to tolerate that. Unfilled quantity is cancelled; unspent quote stays in the account.' +
178
+ PREPARE_SUFFIX,
179
+ kind: 'prepare',
180
+ sdkPath: 'coins.market',
181
+ inputShape: {
182
+ ...senderShape,
183
+ ...coinPoolSelectorShape,
184
+ side: orderSide,
185
+ quantity: u64.describe('Base quantity, raw units.'),
186
+ quoteBudget: u64
187
+ .optional()
188
+ .describe('Buys only: quote to hold, including the taker fee. Defaults to the live estimate.'),
189
+ selfMatchingOption,
190
+ },
191
+ handler: async (ctx, args) => {
192
+ const client = ctx.writeClient(args.sender);
193
+ const pool = await resolvePool(client, args);
194
+ const isBid = args.side === 'buy';
195
+ let quoteBudget = bigOpt(args.quoteBudget);
196
+ if (isBid && quoteBudget === undefined) {
197
+ const est = await client.coins.estimateMarket({
198
+ ...pool,
199
+ side: 'buy',
200
+ quantity: big(args.quantity),
201
+ });
202
+ // An empty book leaves it unset: the SDK re-estimates and refuses
203
+ // with its own "no asks" error rather than placing a zero budget.
204
+ if (est.filledQuantity > 0n)
205
+ quoteBudget = est.totalQuote;
206
+ }
207
+ return prepared(ctx, args.sender, {
208
+ action: 'coin_market_order',
209
+ params: {
210
+ ...poolParams(pool),
211
+ side: args.side,
212
+ quantity: args.quantity,
213
+ },
214
+ ...(isBid
215
+ ? quoteBudget !== undefined
216
+ ? {
217
+ worstCaseSpend: spend(pool.quoteCoinType, quoteBudget.toString()),
218
+ }
219
+ : {}
220
+ : { worstCaseSpend: spend(pool.baseCoinType, args.quantity) }),
221
+ }, () => client.coins.market({
222
+ ...pool,
223
+ side: args.side,
224
+ quantity: big(args.quantity),
225
+ ...(quoteBudget !== undefined ? { quoteBudget } : {}),
226
+ ...(args.selfMatchingOption !== undefined
227
+ ? { selfMatchingOption: args.selfMatchingOption }
228
+ : {}),
229
+ }));
230
+ },
231
+ },
232
+ {
233
+ name: 'prepare_coin_swap',
234
+ title: 'Prepare: coin swap',
235
+ description: 'Build a wallet-to-wallet swap through a coin pool — no trading account involved. "buy" spends amountIn of the quote coin for base; "sell" spends base for quote. Charged at the entry-rung taker rate; output and any input the book could not absorb come back to the wallet. minOut defaults to the coins_quote dry-run less slippageBps (default 50); the swap aborts below it. intent.params.minOut is the floor the bytes enforce.' +
236
+ PREPARE_SUFFIX,
237
+ kind: 'prepare',
238
+ sdkPath: 'coins.swap',
239
+ inputShape: {
240
+ ...senderShape,
241
+ ...coinPoolSelectorShape,
242
+ side: orderSide.describe('"buy" spends quote for base; "sell" the reverse.'),
243
+ amountIn: u64.describe('Raw amount of the coin being spent, taken from the wallet.'),
244
+ minOut: u64
245
+ .optional()
246
+ .describe('Minimum output or the swap aborts. Defaults from a dry-run.'),
247
+ slippageBps: z
248
+ .number()
249
+ .int()
250
+ .min(0)
251
+ .max(10_000)
252
+ .optional()
253
+ .describe('Tolerance off the dry-run when minOut is omitted (default 50 = 0.5%).'),
254
+ },
255
+ handler: async (ctx, args) => {
256
+ const client = ctx.writeClient(args.sender);
257
+ const pool = await resolvePool(client, args);
258
+ const isBuy = args.side === 'buy';
259
+ const amountIn = big(args.amountIn);
260
+ let minOut = bigOpt(args.minOut);
261
+ if (minOut === undefined) {
262
+ const q = await client.coins.quote({
263
+ ...pool,
264
+ side: args.side,
265
+ amountIn,
266
+ });
267
+ // Nothing would fill: leave it to the SDK, which refuses with its own
268
+ // error instead of sending a swap with a zero floor.
269
+ if (q.amountOut > 0n) {
270
+ const bps = BigInt(args.slippageBps ?? DEFAULT_SWAP_SLIPPAGE_BPS);
271
+ minOut = (q.amountOut * (10000n - bps)) / 10000n;
272
+ }
273
+ }
274
+ return prepared(ctx, args.sender, {
275
+ action: 'coin_swap',
276
+ params: {
277
+ ...poolParams(pool),
278
+ side: args.side,
279
+ amountIn: args.amountIn,
280
+ minOut: minOut?.toString() ?? null,
281
+ },
282
+ worstCaseSpend: spend(isBuy ? pool.quoteCoinType : pool.baseCoinType, args.amountIn),
283
+ }, () => client.coins.swap({
284
+ ...pool,
285
+ side: args.side,
286
+ amountIn,
287
+ ...(minOut !== undefined ? { minOut } : {}),
288
+ }));
289
+ },
290
+ },
291
+ {
292
+ name: 'prepare_coin_cancel_order',
293
+ title: 'Prepare: cancel coin order',
294
+ description: 'Build a cancellation of one resting coin-pool order (id from coins_open_orders). Proceeds and refunds land in the pool’s settled balance — claim them with prepare_coin_claim_settled.' +
295
+ PREPARE_SUFFIX,
296
+ kind: 'prepare',
297
+ sdkPath: 'coins.cancel',
298
+ inputShape: {
299
+ ...senderShape,
300
+ ...coinPoolSelectorShape,
301
+ orderId: orderIdSchema,
302
+ },
303
+ handler: async (ctx, args) => {
304
+ const client = ctx.writeClient(args.sender);
305
+ const pool = await resolvePool(client, args);
306
+ return prepared(ctx, args.sender, {
307
+ action: 'coin_cancel_order',
308
+ params: { ...poolParams(pool), orderId: args.orderId },
309
+ }, () => client.coins.cancel({ ...pool, orderId: args.orderId }));
310
+ },
311
+ },
312
+ {
313
+ name: 'prepare_coin_cancel_many_orders',
314
+ title: 'Prepare: cancel several coin orders',
315
+ description: 'Build a cancellation of several resting orders in one coin pool. All or nothing: one unknown id aborts the batch — re-read coins_open_orders first.' +
316
+ PREPARE_SUFFIX,
317
+ kind: 'prepare',
318
+ sdkPath: 'coins.cancelMany',
319
+ inputShape: {
320
+ ...senderShape,
321
+ ...coinPoolSelectorShape,
322
+ orderIds: z
323
+ .array(orderIdSchema)
324
+ .min(1)
325
+ .describe('Order ids (u128 decimal strings), all in this pool.'),
326
+ },
327
+ handler: async (ctx, args) => {
328
+ const client = ctx.writeClient(args.sender);
329
+ const pool = await resolvePool(client, args);
330
+ return prepared(ctx, args.sender, {
331
+ action: 'coin_cancel_many_orders',
332
+ params: { ...poolParams(pool), orderIds: args.orderIds },
333
+ }, () => client.coins.cancelMany({ ...pool, orderIds: args.orderIds }));
334
+ },
335
+ },
336
+ {
337
+ name: 'prepare_coin_cancel_all_orders',
338
+ title: 'Prepare: cancel all coin orders',
339
+ description: 'Build a cancellation of every order the sender’s trading account rests in one coin pool (a no-op on-chain when none rest).' +
340
+ PREPARE_SUFFIX,
341
+ kind: 'prepare',
342
+ sdkPath: 'coins.cancelAll',
343
+ inputShape: { ...senderShape, ...coinPoolSelectorShape },
344
+ handler: async (ctx, args) => {
345
+ const client = ctx.writeClient(args.sender);
346
+ const pool = await resolvePool(client, args);
347
+ return prepared(ctx, args.sender, { action: 'coin_cancel_all_orders', params: poolParams(pool) }, () => client.coins.cancelAll(pool));
348
+ },
349
+ },
350
+ {
351
+ name: 'prepare_coin_modify_order',
352
+ title: 'Prepare: resize coin order',
353
+ description: 'Build a resize of a resting coin-pool order. newQuantity is the new total: below the original and above the filled amount. The cut is refunded, with a bid’s maker-fee escrow on the same retention terms as a cancel.' +
354
+ PREPARE_SUFFIX,
355
+ kind: 'prepare',
356
+ sdkPath: 'coins.modify',
357
+ inputShape: {
358
+ ...senderShape,
359
+ ...coinPoolSelectorShape,
360
+ orderId: orderIdSchema,
361
+ newQuantity: u64.describe('New total base quantity, raw units.'),
362
+ },
363
+ handler: async (ctx, args) => {
364
+ const client = ctx.writeClient(args.sender);
365
+ const pool = await resolvePool(client, args);
366
+ return prepared(ctx, args.sender, {
367
+ action: 'coin_modify_order',
368
+ params: {
369
+ ...poolParams(pool),
370
+ orderId: args.orderId,
371
+ newQuantity: args.newQuantity,
372
+ },
373
+ }, () => client.coins.modify({
374
+ ...pool,
375
+ orderId: args.orderId,
376
+ newQuantity: big(args.newQuantity),
377
+ }));
378
+ },
379
+ },
380
+ {
381
+ name: 'prepare_coin_claim_settled',
382
+ title: 'Prepare: claim coin-pool proceeds',
383
+ description: 'Build a claim of settled balances (fills, cancels, refunds) from one or more coin pools into the trading account, in one transaction — optionally sweeping the listed coin types on to the wallet afterwards. coins_account shows what is settled per pool.' +
384
+ PREPARE_SUFFIX,
385
+ kind: 'prepare',
386
+ sdkPath: 'coins.claimSettled',
387
+ inputShape: {
388
+ ...senderShape,
389
+ pools: z
390
+ .array(z.object(coinPoolSelectorShape))
391
+ .min(1)
392
+ .describe('Pools to settle from, each by poolId or baseCoinType (+ quoteCoinType).'),
393
+ withdrawCoinTypes: z
394
+ .array(coinType)
395
+ .optional()
396
+ .describe('Also withdraw these coin types’ whole account balance to the wallet.'),
397
+ },
398
+ handler: (ctx, args) => prepared(ctx, args.sender, {
399
+ action: 'coin_claim_settled',
400
+ params: {
401
+ pools: args.pools,
402
+ withdrawCoinTypes: args.withdrawCoinTypes ?? [],
403
+ },
404
+ }, () => ctx.writeClient(args.sender).coins.claimSettled({
405
+ pools: args.pools.map(selectorOf),
406
+ ...(args.withdrawCoinTypes
407
+ ? { withdrawCoinTypes: args.withdrawCoinTypes }
408
+ : {}),
409
+ })),
410
+ },
411
+ {
412
+ name: 'prepare_coin_create_pool',
413
+ title: 'Prepare: open a coin market',
414
+ description: 'Build the permissionless creation of a coin pool for baseCoinType against quoteCoinType (default CRED, the approved permissionless quote). Costs the 500 CRED creation fee (500000000 base units) from the sender’s wallet. Both coins need an on-chain Currency registry entry, and their decimals may differ by at most 9. Aborts when the pair already exists — check coins_list first.' +
415
+ PREPARE_SUFFIX,
416
+ kind: 'prepare',
417
+ sdkPath: 'coins.createPool',
418
+ inputShape: {
419
+ ...senderShape,
420
+ baseCoinType: coinType.describe('Coin type the new pool trades.'),
421
+ quoteCoinType: coinType
422
+ .optional()
423
+ .describe('Quote coin type; defaults to CRED.'),
424
+ },
425
+ handler: (ctx, args) => {
426
+ const client = ctx.writeClient(args.sender);
427
+ const cred = normalizeType(client.ids.credCoinType);
428
+ return prepared(ctx, args.sender, {
429
+ action: 'coin_create_pool',
430
+ params: {
431
+ baseCoinType: normalizeType(args.baseCoinType),
432
+ quoteCoinType: args.quoteCoinType
433
+ ? normalizeType(args.quoteCoinType)
434
+ : cred,
435
+ },
436
+ worstCaseSpend: spend(cred, COIN_POOL_CREATION_FEE.toString()),
437
+ }, () => client.coins.createPool({
438
+ baseCoinType: args.baseCoinType,
439
+ ...(args.quoteCoinType
440
+ ? { quoteCoinType: args.quoteCoinType }
441
+ : {}),
442
+ }));
443
+ },
444
+ },
445
+ ];
446
+ //# sourceMappingURL=coinsPrepare.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coinsPrepare.js","sourceRoot":"","sources":["../../src/tools/coinsPrepare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,GAAG,EACH,MAAM,EACN,qBAAqB,EACrB,QAAQ,EACR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