@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.
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { ok } from '../result.js';
3
- import { cursorPagingShape, historyPagingShape, locationPagingShape, objectId, searchPagingShape, suiAddress, } from '../schemas.js';
3
+ import { cursorPagingShape, decimalInt, historyPagingShape, locationPagingShape, objectId, searchPagingShape, suiAddress, u128, } from '../schemas.js';
4
4
  /**
5
5
  * Read tools. Every one of these is a thin delegation to the SDK's read
6
6
  * surface, authenticated by the caller's own API key. No key material, no
@@ -142,14 +142,14 @@ export const readTools = [
142
142
  {
143
143
  name: 'market_nearby_hubs_by_system',
144
144
  title: 'Find hubs near a solar system',
145
- description: 'The same proximity search as market_nearby_hubs, centred on a solar system id or name instead of a hub. Use it when the origin hub is private and publishes no location.',
145
+ description: 'The same proximity search as market_nearby_hubs, centred on a solar system id or name instead of a hub. Use it when the origin hub is private and publishes no location. Prefer the numeric id: names are not yet available for every system, and an unresolvable name fails with SolarSystemNotFound.',
146
146
  kind: 'read',
147
147
  sdkPath: 'market.nearbyHubsBySystem',
148
148
  inputShape: {
149
149
  solarSystem: z
150
150
  .string()
151
151
  .min(1)
152
- .describe('Solar system id or name to search from, e.g. "Nod".'),
152
+ .describe('Solar system id (preferred) or name to search from, e.g. "30000142".'),
153
153
  rangeLy: z
154
154
  .number()
155
155
  .positive()
@@ -223,33 +223,301 @@ export const readTools = [
223
223
  },
224
224
  handler: async (ctx, args) => ok(await ctx.readClient().solarSystemNames(args)),
225
225
  },
226
+ {
227
+ name: 'market_recent_trades',
228
+ title: 'Read the public tape',
229
+ description: 'The latest trades across every item market, newest first — the public tape, not one account’s history (that is orders_trades). At most 50 per page: page back by passing nextCursor as `before`, poll for new trades with `after`. Unlike every other trade read, price, quantity and feeAmount are HUMAN-READABLE decimal strings already scaled by quoteCurrencyDecimals, and feeRateBps is that fill’s own effective taker rate. solarSystemName is null until a player reports it — key on solarSystemId. Costs 50 CU.',
230
+ kind: 'read',
231
+ sdkPath: 'market.recentTrades',
232
+ inputShape: {
233
+ assetId: z
234
+ .string()
235
+ .optional()
236
+ .describe('Only trades of this item type, e.g. "77800".'),
237
+ publicOnly: z
238
+ .boolean()
239
+ .optional()
240
+ .describe('Only trades at hubs that publish their location.'),
241
+ limit: z
242
+ .number()
243
+ .int()
244
+ .positive()
245
+ .max(50)
246
+ .optional()
247
+ .describe('Trades per page (max 50 — the gateway caps it there).'),
248
+ before: historyPagingShape.before,
249
+ after: historyPagingShape.after,
250
+ },
251
+ handler: async (ctx, args) => ok(await ctx.readClient().recentTrades(args)),
252
+ },
253
+ {
254
+ name: 'market_display_prices',
255
+ title: 'Price many items',
256
+ description: 'Display prices for up to 100 items in one call. itemIds alone gives one item-wide price per item; add storageUnitIds for the per-hub price — one id applies to every item, otherwise give exactly one per item, paired by position. This is the PLAIN market price with no trading fee: use it to show or rank value, and orders_fees or market_orderbook to cost an actual trade. `tier` says where each price came from (traded → item → book → estimated → unknown); price is a human-readable decimal and priceRaw the raw quote integer, both strings. Costs 50 CU.',
257
+ kind: 'read',
258
+ sdkPath: 'market.displayPrices',
259
+ inputShape: {
260
+ itemIds: z
261
+ .array(z.string())
262
+ .min(1)
263
+ .max(100)
264
+ .describe('Item asset ids to price (max 100), e.g. ["77800"].'),
265
+ storageUnitIds: z
266
+ .array(objectId)
267
+ .min(1)
268
+ .max(100)
269
+ .optional()
270
+ .describe('Trade hub (or vault collection) ids: one for every item, or one per item in itemIds order.'),
271
+ fallback: z
272
+ .boolean()
273
+ .optional()
274
+ .describe('Per-hub mode only: false disables falling back to the item-wide price when the hub has no pool for an item (default true).'),
275
+ },
276
+ handler: async (ctx, args) => ok(await ctx.readClient().displayPrices(args)),
277
+ },
278
+ {
279
+ name: 'market_display_price',
280
+ title: 'Price one item',
281
+ description: 'The single-item form of market_display_prices: the plain market price (no trading fee) for one item, item-wide or at one hub. Cheaper than the batch for one lookup. Costs 20 CU.',
282
+ kind: 'read',
283
+ sdkPath: 'market.displayPrice',
284
+ inputShape: {
285
+ itemId: z.string().min(1).describe('Item asset id, e.g. "77800".'),
286
+ storageUnitId: objectId
287
+ .optional()
288
+ .describe('Price at this trade hub (or vault collection); omit for the item-wide price.'),
289
+ fallback: z
290
+ .boolean()
291
+ .optional()
292
+ .describe('With storageUnitId: false disables falling back to the item-wide price (default true).'),
293
+ },
294
+ handler: async (ctx, args) => {
295
+ const { itemId, ...opts } = args;
296
+ return ok(await ctx.readClient().displayPrice(itemId, opts));
297
+ },
298
+ },
299
+ {
300
+ name: 'market_hub_economics',
301
+ title: 'Compare hub liquidity',
302
+ description: 'Fee reserve (raw quote units) and open-order depth for up to 200 hubs, as decimal strings, plus how many distinct items have open orders. Use it to rank hubs from market_hub_locations or market_nearby_hubs by how much is actually trading there. Hubs that no longer exist are omitted. Cached upstream for 30 s. Costs 50 CU.',
303
+ kind: 'read',
304
+ sdkPath: 'market.hubEconomics',
305
+ inputShape: {
306
+ hubIds: z
307
+ .array(objectId)
308
+ .min(1)
309
+ .max(200)
310
+ .describe('Trade hub object ids (max 200).'),
311
+ },
312
+ handler: async (ctx, args) => ok(await ctx.readClient().hubEconomics(args)),
313
+ },
314
+ {
315
+ name: 'market_top_pools_by_fees',
316
+ title: 'Rank pools by unclaimed fees',
317
+ description: 'Item pools ranked by unclaimed fee balance, largest first; only pools with a positive balance appear. Amounts are raw quote units as decimal strings, and quoteType is the coin type as indexed — without its 0x prefix, so normalise it before comparing. Pair with prepare_claim_operator_share to claim the operator share. Costs 50 CU.',
318
+ kind: 'read',
319
+ sdkPath: 'market.topPoolsByFees',
320
+ inputShape: {
321
+ limit: z
322
+ .number()
323
+ .int()
324
+ .positive()
325
+ .max(100)
326
+ .optional()
327
+ .describe('Pools to return (default 20, max 100).'),
328
+ },
329
+ handler: async (ctx, args) => ok(await ctx.readClient().topPoolsByFees(args)),
330
+ },
331
+ {
332
+ name: 'market_stats',
333
+ title: 'Get platform statistics',
334
+ description: 'Platform-wide aggregates: trades and active traders by time window, volume per quote currency, top items, organization, shared-storage and pilot totals, and 30-day daily series. A dashboard read — cached upstream for up to 60 s, so do not poll it faster. Costs 50 CU.',
335
+ kind: 'read',
336
+ sdkPath: 'market.stats',
337
+ inputShape: {},
338
+ handler: async (ctx) => ok(await ctx.readClient().stats()),
339
+ },
340
+ {
341
+ name: 'spatial_system',
342
+ title: 'Get a solar system',
343
+ description: 'Coordinates, constellation and region for one solar system, by name or numeric id — "EHK-KH7" and "30000142" both resolve. Coordinates are metres as decimal strings; they exceed 2^53 and would lose precision as JSON numbers.',
344
+ kind: 'read',
345
+ sdkPath: 'spatial.system',
346
+ inputShape: {
347
+ solarSystem: z
348
+ .string()
349
+ .min(1)
350
+ .describe('Solar system name (case-insensitive) or numeric id.'),
351
+ },
352
+ handler: async (ctx, args) => ok(await ctx.readClient().spatialSystem(args.solarSystem)),
353
+ },
354
+ {
355
+ name: 'spatial_systems',
356
+ title: 'Look up many solar systems',
357
+ description: 'Resolve up to 100 solar systems in one call. Pass solarSystemIds OR solarSystemNames, never both. Identifiers that match nothing are omitted rather than returned as nulls, so compare `count` against how many you asked for to spot misses.',
358
+ kind: 'read',
359
+ sdkPath: 'spatial.systems',
360
+ inputShape: {
361
+ solarSystemIds: z
362
+ .array(z.number().int().positive())
363
+ .min(1)
364
+ .max(100)
365
+ .optional()
366
+ .describe('Numeric solar system ids (max 100). Omit if using names.'),
367
+ solarSystemNames: z
368
+ .array(z.string().min(1))
369
+ .min(1)
370
+ .max(100)
371
+ .optional()
372
+ .describe('Solar system names (max 100). Omit if using ids.'),
373
+ },
374
+ handler: async (ctx, args) => ok(await ctx.readClient().spatialSystems(args)),
375
+ },
376
+ {
377
+ name: 'spatial_nearby_systems',
378
+ title: 'Find systems near a system',
379
+ description: 'Solar systems within a light-year radius of another system, nearest first. The origin system is excluded from the results. Use this to answer "what is in jump range of here".',
380
+ kind: 'read',
381
+ sdkPath: 'spatial.nearbySystems',
382
+ inputShape: {
383
+ solarSystem: z
384
+ .string()
385
+ .min(1)
386
+ .describe('Origin system name or numeric id.'),
387
+ radiusLy: z
388
+ .number()
389
+ .positive()
390
+ .max(10_000)
391
+ .describe('Search radius in light years (max 10,000).'),
392
+ limit: z
393
+ .number()
394
+ .int()
395
+ .positive()
396
+ .max(1000)
397
+ .optional()
398
+ .describe('Systems to return, nearest first (default 100, max 1000).'),
399
+ },
400
+ handler: async (ctx, args) => ok(await ctx.readClient().spatialNearbySystems(args)),
401
+ },
402
+ {
403
+ name: 'spatial_systems_near_coordinates',
404
+ title: 'Find systems near a point',
405
+ description: 'The same radius search around an arbitrary point in space, for an origin that is not itself a solar system — a ship or structure position read from the chain. Unlike spatial_nearby_systems this can include the system containing the point. x, y and z are metres as decimal strings.',
406
+ kind: 'read',
407
+ sdkPath: 'spatial.systemsNearCoordinates',
408
+ inputShape: {
409
+ x: decimalInt.describe('X coordinate of the origin, in metres.'),
410
+ y: decimalInt.describe('Y coordinate of the origin, in metres.'),
411
+ z: decimalInt.describe('Z coordinate of the origin, in metres.'),
412
+ radiusLy: z
413
+ .number()
414
+ .positive()
415
+ .max(10_000)
416
+ .describe('Search radius in light years (max 10,000).'),
417
+ limit: z
418
+ .number()
419
+ .int()
420
+ .positive()
421
+ .max(1000)
422
+ .optional()
423
+ .describe('Systems to return, nearest first (default 100, max 1000).'),
424
+ },
425
+ handler: async (ctx, args) => ok(await ctx.readClient().spatialSystemsNearCoordinates(args)),
426
+ },
427
+ {
428
+ name: 'spatial_autocomplete_systems',
429
+ title: 'Autocomplete system names',
430
+ description: 'Solar systems whose name starts with the given prefix, alphabetically. Returns identifiers only and is served from an in-memory index, so prefer it over spatial_system when resolving a partial name the user typed.',
431
+ kind: 'read',
432
+ sdkPath: 'spatial.autocompleteSystems',
433
+ inputShape: {
434
+ query: z.string().min(1).describe('Name prefix, case-insensitive.'),
435
+ limit: z
436
+ .number()
437
+ .int()
438
+ .positive()
439
+ .max(50)
440
+ .optional()
441
+ .describe('Suggestions to return (default 10, max 50).'),
442
+ },
443
+ handler: async (ctx, args) => {
444
+ const { query, ...rest } = args;
445
+ return ok(await ctx.readClient().spatialAutocompleteSystems(query, rest));
446
+ },
447
+ },
448
+ {
449
+ name: 'spatial_stats',
450
+ title: 'Get star-map coverage',
451
+ description: 'How many solar systems the coordinate index holds, and whether it is loaded. Use it to confirm which dataset results came from before caching them.',
452
+ kind: 'read',
453
+ sdkPath: 'spatial.stats',
454
+ inputShape: {},
455
+ handler: async (ctx) => ok(await ctx.readClient().spatialStats()),
456
+ },
226
457
  {
227
458
  name: 'account_resolve',
228
459
  title: 'Resolve a trading account',
229
- description: 'Return the BalanceManager object id for an address, or null when the address has no trading account yet. Pair with prepare_create_account.',
460
+ description: 'Return the TradingAccount object id for an address, or null when the address has no trading account yet. Pair with prepare_create_account.',
230
461
  kind: 'read',
231
462
  sdkPath: 'account.get',
232
463
  inputShape: { address: suiAddress },
233
464
  handler: async (ctx, args) => {
234
465
  const id = await ctx
235
466
  .writeClient(args.address)
236
- .resolveBalanceManagerId(args.address);
237
- return ok({ address: args.address, balanceManagerId: id, exists: !!id });
467
+ .resolveTradingAccountId(args.address);
468
+ return ok({ address: args.address, tradingAccountId: id, exists: !!id });
238
469
  },
239
470
  },
240
471
  {
241
472
  name: 'account_balances_at_hub',
242
473
  title: 'Check balances at a hub',
243
- description: 'Item and currency balances for a trading account at one hub, across wallet, trading account, and hangar.',
474
+ description: 'Item balances at one hub, in up to four sections: `marketplace` (deposited in a trading account), `warehouse` (receipts in a wallet), `hangar` (an owner_cap_id’s hangar) and `orgVaults` (organization receipt vaults). Each section is filled only when its selector is given — name at least one. Items only: CRED lives on the fullnode, so use account_currency_balances for it. Amounts are base units as decimal strings. Costs 50 CU.',
244
475
  kind: 'read',
245
476
  sdkPath: 'balances.atHub',
246
477
  inputShape: {
247
- balanceManagerId: objectId,
248
- storageUnitId: objectId,
478
+ storageUnitId: objectId.describe('Trade hub / storage unit object id; scopes the whole read.'),
479
+ tradingAccountId: objectId
480
+ .optional()
481
+ .describe('Fills `marketplace`: items deposited in this trading account (from account_resolve).'),
482
+ address: suiAddress
483
+ .optional()
484
+ .describe('Fills `warehouse`: this wallet’s item receipts held at the hub.'),
485
+ inventoryKey: objectId
486
+ .optional()
487
+ .describe('Fills `hangar`: the hub or character owner_cap_id selecting the hangar.'),
488
+ vaultIds: z
489
+ .array(objectId)
490
+ .min(1)
491
+ .optional()
492
+ .describe('Fills `orgVaults`: organization receipt vault ids, keyed by id in the answer.'),
493
+ },
494
+ handler: async (ctx, args) => {
495
+ const { storageUnitId, tradingAccountId, address, inventoryKey } = args;
496
+ const vaultIds = args.vaultIds;
497
+ // Every section comes back empty unless its selector is given, so a call
498
+ // naming none would spend 50 CU to learn nothing.
499
+ if (!tradingAccountId && !address && !inventoryKey && !vaultIds) {
500
+ throw new Error('Name at least one section to read: tradingAccountId, address, inventoryKey or vaultIds.');
501
+ }
502
+ return ok(await ctx.readClient().balancesAtHub({
503
+ storageUnitId,
504
+ ...(tradingAccountId ? { tradingAccountId } : {}),
505
+ ...(address ? { address } : {}),
506
+ ...(inventoryKey ? { inventoryKey } : {}),
507
+ ...(vaultIds ? { vaultIds } : {}),
508
+ }));
509
+ },
510
+ },
511
+ {
512
+ name: 'account_currency_balances',
513
+ title: 'Check CRED balances',
514
+ description: 'CRED held by an address: loose in the wallet, and deposited inside its trading account. Works for an address that has no trading account yet — that answers with the wallet total, a zero deposited balance, and a null tradingAccountId, which is the signal to call prepare_create_account. Read head-current from the fullnode, so it reflects transactions the indexer has not caught up with yet. Amounts are base units as decimal strings.',
515
+ kind: 'read',
516
+ sdkPath: 'balances.currency',
517
+ inputShape: {
518
+ address: suiAddress.describe('Sui address whose CRED to read.'),
249
519
  },
250
- handler: async (ctx, args) => ok(await ctx
251
- .readClient()
252
- .balancesAtHub(args.balanceManagerId, args.storageUnitId)),
520
+ handler: async (ctx, args) => ok(await ctx.writeClient(args.address).balances.currency(args.address)),
253
521
  },
254
522
  {
255
523
  name: 'account_sweepable',
@@ -257,34 +525,83 @@ export const readTools = [
257
525
  description: 'Unclaimed proceeds and settled balances that can be claimed or withdrawn.',
258
526
  kind: 'read',
259
527
  sdkPath: 'account.sweepable',
260
- inputShape: { balanceManagerId: objectId },
261
- handler: async (ctx, args) => ok(await ctx.readClient().sweepable(args.balanceManagerId)),
528
+ inputShape: { tradingAccountId: objectId },
529
+ handler: async (ctx, args) => ok(await ctx.readClient().sweepable(args.tradingAccountId)),
262
530
  },
263
531
  {
264
532
  name: 'account_owners',
265
533
  title: 'Resolve trading account owners',
266
- description: 'Who owns these trading accounts, for up to 200 BalanceManager ids — how a counterparty id from the order book gets a name. `owner` is tagged: `player:<wallet>` for a character-owned account, `ou:<org_id>` for an organization-owned one.',
534
+ description: 'Who owns these trading accounts, for up to 200 TradingAccount ids — how a counterparty id from the order book gets a name. `owner` is tagged: `player:<wallet>` for a character-owned account, `ou:<org_id>` for an organization-owned one.',
267
535
  kind: 'read',
268
536
  sdkPath: 'account.owners',
269
537
  inputShape: {
270
- balanceManagerIds: z
538
+ tradingAccountIds: z
271
539
  .array(objectId)
272
540
  .min(1)
273
541
  .max(200)
274
- .describe('BalanceManager object ids (max 200).'),
542
+ .describe('TradingAccount object ids (max 200).'),
275
543
  },
276
544
  handler: async (ctx, args) => ok(await ctx.readClient().accountOwners(args)),
277
545
  },
546
+ {
547
+ name: 'account_caps',
548
+ title: 'List trading account capabilities',
549
+ description: 'Capabilities around an address, read head-current from the fullnode: the cap ids on its own trading account’s allow-list (what prepare_revoke_account_cap can revoke), and the Trade/Deposit/WithdrawCaps it holds for any account. tradingAccountId is null and allowListed empty when the address has no trading account. Pair with prepare_mint_account_cap.',
550
+ kind: 'read',
551
+ sdkPath: 'account.caps',
552
+ inputShape: {
553
+ address: suiAddress.describe('Sui address whose caps to read.'),
554
+ },
555
+ handler: async (ctx, args) => ok(await ctx.writeClient(args.address).account.caps(args.address)),
556
+ },
557
+ {
558
+ name: 'orders_fees',
559
+ title: 'Read item-pool fees',
560
+ description: 'Live fee state of one item pool, from the on-chain FeePolicy: the active and staged fee ladders, entry taker/maker rates, cancel retention, and bidEscrowFeeRate — the rate a bid deposit must cover. With an address, also that account’s own tier, turnover and rates. Rates are 1e9-scaled (11000000 = 1.10%) as decimal strings. Identify the pool by poolId, or by storageUnitId + assetId. Use it to size quoteBudget for prepare_market_order, or to price a bid before prepare_limit_order.',
561
+ kind: 'read',
562
+ sdkPath: 'orders.fees',
563
+ inputShape: {
564
+ storageUnitId: objectId
565
+ .optional()
566
+ .describe('Trade hub / storage unit object id; pair with assetId.'),
567
+ assetId: z
568
+ .string()
569
+ .optional()
570
+ .describe('EVE Frontier item asset id; pair with storageUnitId.'),
571
+ poolId: objectId
572
+ .optional()
573
+ .describe('Item pool id; use instead of storageUnitId + assetId.'),
574
+ address: suiAddress
575
+ .optional()
576
+ .describe('Also resolve this address’s fee tier and rates.'),
577
+ },
578
+ handler: async (ctx, args) => {
579
+ // The SDK branches on `'poolId' in params`, so an undefined key would
580
+ // pick the wrong selector — build the params from what was given.
581
+ const selector = args.poolId
582
+ ? { poolId: args.poolId }
583
+ : args.storageUnitId && args.assetId
584
+ ? { storageUnitId: args.storageUnitId, assetId: args.assetId }
585
+ : null;
586
+ if (!selector) {
587
+ throw new Error('Identify the pool by poolId, or by storageUnitId together with assetId.');
588
+ }
589
+ return ok(await ctx.writeClient(args.address).orders.fees({
590
+ ...selector,
591
+ ...(args.address ? { address: args.address } : {}),
592
+ }));
593
+ },
594
+ },
278
595
  {
279
596
  name: 'orders_open',
280
597
  title: 'List open orders',
281
598
  description: 'Resting orders for a trading account.',
282
599
  kind: 'read',
283
600
  sdkPath: 'orders.openOrders',
284
- inputShape: { balanceManagerId: objectId, ...historyPagingShape },
601
+ inputShape: { tradingAccountId: objectId, ...historyPagingShape },
285
602
  handler: async (ctx, args) => {
286
- const { balanceManagerId, ...rest } = args;
287
- return ok(await ctx.readClient().openOrders(balanceManagerId, rest));
603
+ const { tradingAccountId, ...rest } = args;
604
+ return ok(await ctx.readClient().openOrders(tradingAccountId, rest));
288
605
  },
289
606
  },
290
607
  {
@@ -293,10 +610,10 @@ export const readTools = [
293
610
  description: "This account's side of each match, most recent first.",
294
611
  kind: 'read',
295
612
  sdkPath: 'orders.fills',
296
- inputShape: { balanceManagerId: objectId, ...historyPagingShape },
613
+ inputShape: { tradingAccountId: objectId, ...historyPagingShape },
297
614
  handler: async (ctx, args) => {
298
- const { balanceManagerId, ...rest } = args;
299
- return ok(await ctx.readClient().fills(balanceManagerId, rest));
615
+ const { tradingAccountId, ...rest } = args;
616
+ return ok(await ctx.readClient().fills(tradingAccountId, rest));
300
617
  },
301
618
  },
302
619
  {
@@ -305,11 +622,37 @@ export const readTools = [
305
622
  description: 'Completed trades for a trading account.',
306
623
  kind: 'read',
307
624
  sdkPath: 'orders.trades',
308
- inputShape: { balanceManagerId: objectId, ...historyPagingShape },
625
+ inputShape: { tradingAccountId: objectId, ...historyPagingShape },
309
626
  handler: async (ctx, args) => {
310
- const { balanceManagerId, ...rest } = args;
311
- return ok(await ctx.readClient().trades(balanceManagerId, rest));
627
+ const { tradingAccountId, ...rest } = args;
628
+ return ok(await ctx.readClient().trades(tradingAccountId, rest));
629
+ },
630
+ },
631
+ {
632
+ name: 'orders_get',
633
+ title: 'Look up an order',
634
+ description: 'One order on one pool, whatever became of it: status open, filled or cancelled, original/remaining/filled quantity, owner (trading account and character), hub, quote currency, and its fill history oldest first. This is how to follow up an order after prepare_limit_order — orders_open only lists orders still resting. Not limited to your own orders. Order ids are unique only per pool, so both are required. Prices and quantities are raw integers as decimal strings. Costs 30 CU.',
635
+ kind: 'read',
636
+ sdkPath: 'orders.get',
637
+ inputShape: {
638
+ poolId: objectId.describe('Item pool id the order rests (or rested) on — from orders_open, orders_fills or market_orderbook.'),
639
+ orderId: u128.describe('Order id (Move u128) as a decimal string — past 2^53, never a JSON number.'),
640
+ },
641
+ handler: async (ctx, args) => ok(await ctx.readClient().order(args)),
642
+ },
643
+ {
644
+ name: 'orders_fill',
645
+ title: 'Look up a fill',
646
+ description: 'One fill by its eventDigest (as carried on orders_fills, orders_trades and orders_get), seen from neither side: both trading accounts, maker and taker fees, which side took, and when. Use it to identify a counterparty — pass the trading account ids to account_owners for a name. assetId and storageUnitId are null until the market’s metadata is indexed. Amounts are raw integers as decimal strings. Costs 30 CU.',
647
+ kind: 'read',
648
+ sdkPath: 'orders.fill',
649
+ inputShape: {
650
+ eventDigest: z
651
+ .string()
652
+ .min(1)
653
+ .describe('The fill’s event digest (transaction digest plus event index), exactly as a fill or trade read returned it.'),
312
654
  },
655
+ handler: async (ctx, args) => ok(await ctx.readClient().fill(args.eventDigest)),
313
656
  },
314
657
  ];
315
658
  //# sourceMappingURL=read.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/tools/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AACjC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,iBAAiB,EACjB,UAAU,GACX,MAAM,eAAe,CAAA;AAGtB;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAc;IAClC;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,kBAAkB;QACzB,WAAW,EACT,4IAA4I;QAC9I,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAiB;QAC1B,UAAU,EAAE;YACV,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YAC9B,cAAc,EAAE,CAAC;iBACd,KAAK,CAAC,QAAQ,CAAC;iBACf,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,EAAE,CAAC;iBACP,QAAQ,EAAE;iBACV,QAAQ,CAAC,uDAAuD,CAAC;YACpE,IAAI,EAAE,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