@huggies/shit-1170-rex-engine-middleman 0.0.1 → 0.0.2

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.
Files changed (37) hide show
  1. package/README.md +1 -0
  2. package/bin/shit-1170/api_shit_1170_swap_queue_get.ts +16 -13
  3. package/bin/shit-1170/api_shit_1170_tx_queue_facets_get.ts +68 -0
  4. package/bin/shit-1170/api_shit_1170_tx_queue_get.ts +11 -5
  5. package/dist/fun/api_shit_1170_swap_queue_get.d.ts.map +1 -1
  6. package/dist/fun/api_shit_1170_swap_queue_get.js +23 -6
  7. package/dist/fun/api_shit_1170_swap_queue_get.js.map +1 -1
  8. package/dist/fun/api_shit_1170_tx_queue_facets_get.d.ts +5 -0
  9. package/dist/fun/api_shit_1170_tx_queue_facets_get.d.ts.map +1 -0
  10. package/dist/fun/api_shit_1170_tx_queue_facets_get.js +45 -0
  11. package/dist/fun/api_shit_1170_tx_queue_facets_get.js.map +1 -0
  12. package/dist/fun/api_shit_1170_tx_queue_get.d.ts.map +1 -1
  13. package/dist/fun/api_shit_1170_tx_queue_get.js +16 -6
  14. package/dist/fun/api_shit_1170_tx_queue_get.js.map +1 -1
  15. package/dist/index.d.ts +3 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/stuff/endpoint_paths.d.ts +1 -0
  20. package/dist/stuff/endpoint_paths.d.ts.map +1 -1
  21. package/dist/stuff/endpoint_paths.js +1 -0
  22. package/dist/stuff/endpoint_paths.js.map +1 -1
  23. package/dist/types/shit_1170_swap_queue.d.ts +3 -1
  24. package/dist/types/shit_1170_swap_queue.d.ts.map +1 -1
  25. package/dist/types/shit_1170_swap_queue.js.map +1 -1
  26. package/dist/types/shit_1170_tx_queue.d.ts +1 -0
  27. package/dist/types/shit_1170_tx_queue.d.ts.map +1 -1
  28. package/dist/types/shit_1170_tx_queue.js.map +1 -1
  29. package/dist/types/shit_1170_tx_queue_facets.d.ts +13 -0
  30. package/dist/types/shit_1170_tx_queue_facets.d.ts.map +1 -0
  31. package/dist/types/shit_1170_tx_queue_facets.js +20 -0
  32. package/dist/types/shit_1170_tx_queue_facets.js.map +1 -0
  33. package/dist/types/shit_1170_tx_queue_query.d.ts +4 -1
  34. package/dist/types/shit_1170_tx_queue_query.d.ts.map +1 -1
  35. package/dist/types/shit_1170_tx_queue_query.js +8 -1
  36. package/dist/types/shit_1170_tx_queue_query.js.map +1 -1
  37. package/package.json +6 -3
package/README.md CHANGED
@@ -4,6 +4,7 @@ clean ts library for interacting with the shit-1170-rex-engine backend routes.
4
4
 
5
5
  ```sh
6
6
  bun i
7
+ # bun run build
7
8
  bun run build
8
9
  # publish
9
10
  bun publish --dry-run
@@ -8,9 +8,22 @@
8
8
  // --api-key shit_1170_abc123... \
9
9
  // --limit 50
10
10
  //
11
+ // the filters:
12
+ // --account-id only the swaps these accounts are on, comma separated
13
+ // --hide-sent with the account, drop the ones it has already sent
14
+ // --token-in only the swaps that sell this token
15
+ // --token-out only the swaps that buy this token
16
+ // --limit how many to return
17
+ // --cursor where the page starts, default the first page
18
+ //
11
19
  // --- WHY --- `--hide-sent` NEEDS `--account-id`: "has this account sent
12
20
  // it" is a question about ONE account, and the backend answers a 400
13
21
  // for the filter without one.
22
+ //
23
+ // --- WHY --- --cursor and not --offset: the page is walked by a cursor
24
+ // the backend hands out, and the cursor is opaque. there is no offset
25
+ // to ask for, and the bin prints the next cursor so the next page can
26
+ // be fetched with it.
14
27
  // ========================================
15
28
 
16
29
  import { api_shit_1170_swap_queue_get } from "@huggies/shit-1170-rex-engine-middleman";
@@ -50,18 +63,7 @@ if (limit_raw !== undefined) {
50
63
  limit = parsed;
51
64
  }
52
65
 
53
- const offset_raw = flags.get("--offset");
54
- let offset: number | undefined;
55
- if (offset_raw !== undefined) {
56
- const parsed = Number(offset_raw);
57
- if (!Number.isFinite(parsed)) {
58
- console.error(
59
- `api_shit_1170_swap_queue_get: --offset must be a number: ${offset_raw}`,
60
- );
61
- process.exit(1);
62
- }
63
- offset = parsed;
64
- }
66
+ const cursor = flags.get("--cursor");
65
67
 
66
68
  const list = await api_shit_1170_swap_queue_get(
67
69
  base_url,
@@ -71,7 +73,7 @@ const list = await api_shit_1170_swap_queue_get(
71
73
  token_in: flags.get("--token-in"),
72
74
  token_out: flags.get("--token-out"),
73
75
  limit,
74
- offset,
76
+ cursor,
75
77
  },
76
78
  { api_key: flags.get("--api-key") },
77
79
  );
@@ -84,5 +86,6 @@ for (const swap of list.items) {
84
86
  `${swap.accounts.length} account(s)`,
85
87
  );
86
88
  }
89
+ console.log(`NEXT CURSOR: ${list.nextCursor ?? "(last page)"}`);
87
90
  // ========================================
88
91
  // copyright 2026 by sleet.near
@@ -0,0 +1,68 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_FACETS_GET
3
+ // runnable bin for GET /api/shit-1170/tx-queue/facets via middleman.
4
+ // the middleman logs the framed request + response, so this bin only
5
+ // adds a summary.
6
+ //
7
+ // bun middleman/bin/shit-1170/api_shit_1170_tx_queue_facets_get.ts \
8
+ // --limit 40
9
+ //
10
+ // the filters:
11
+ // --limit how many contracts and how many accounts, default 40
12
+ //
13
+ // --- WHY --- the bin sends NO api key: the route is open, because the
14
+ // facets are a summary of the open queue list. the key is passed when
15
+ // there is one, and it is not demanded.
16
+ //
17
+ // --- WHY --- a number flag that is not a number is named here rather
18
+ // than sent to the route to be clamped into silence.
19
+ // ========================================
20
+
21
+ import { api_shit_1170_tx_queue_facets_get } from "@huggies/shit-1170-rex-engine-middleman";
22
+ import { resolve_base_url } from "../fun/resolve_base_url";
23
+ import { split_argv } from "../fun/split_argv";
24
+
25
+ // --- CONFIG --------------------------------------------------------
26
+ // used when no argv is supplied. the default is the local backend,
27
+ // which binds 0.0.0.0:54733 (see shit_1170_port_fun.rs).
28
+ const DEFAULT_BASE_URL = "http://127.0.0.1:54733";
29
+
30
+ // the flags of this bin that take no value.
31
+ const BOOLEAN_FLAGS: string[] = [];
32
+
33
+ // --- argv ----------------------------------------------------------
34
+ // argv[0] is bun, argv[1] is this script, so real args start at 2.
35
+ const argv = process.argv.slice(2);
36
+ const { flags } = split_argv(argv, { boolean_flags: BOOLEAN_FLAGS });
37
+
38
+ // --- WHY --- the base url is resolved from the raw argv rather than
39
+ // the split result: split_argv would put --base-url in the flags map,
40
+ // and reading the raw argv keeps one rule for the url: it is never a
41
+ // positional.
42
+ const base_url = resolve_base_url(argv, DEFAULT_BASE_URL);
43
+
44
+ const limit_raw = flags.get("--limit");
45
+ let limit: number | undefined;
46
+ if (limit_raw !== undefined) {
47
+ const parsed = Number(limit_raw);
48
+ if (!Number.isFinite(parsed)) {
49
+ console.error(`--limit must be a number: ${limit_raw}`);
50
+ process.exit(1);
51
+ }
52
+ limit = parsed;
53
+ }
54
+
55
+ const facets = await api_shit_1170_tx_queue_facets_get(base_url, { limit });
56
+
57
+ console.log(
58
+ `TX QUEUE FACETS: ${facets.contracts.length} contract(s), ` +
59
+ `${facets.accounts.length} account(s)`,
60
+ );
61
+ for (const contract of facets.contracts) {
62
+ console.log(` contract ${contract.contractId} ${contract.count}`);
63
+ }
64
+ for (const account of facets.accounts) {
65
+ console.log(` account ${account.accountId} ${account.count}`);
66
+ }
67
+ // ========================================
68
+ // copyright 2026 by sleet.near
@@ -10,12 +10,12 @@
10
10
  // --hide-sent
11
11
  //
12
12
  // the filters:
13
- // --account-id only the queues this account is on
13
+ // --account-id only the queues these accounts are on, comma separated
14
14
  // --hide-sent with the account, drop the ones it has already sent
15
- // --contract-id only the queues holding a tx for this contract
15
+ // --contract-id only the queues holding a tx for these contracts, comma separated
16
16
  // --method only the queues holding a tx for this method
17
17
  // --limit how many, default 50
18
- // --offset where to start, default 0
18
+ // --cursor where the page starts, default the first page
19
19
  //
20
20
  // --- WHY --- --hide-sent stands alone and takes no value: it is a
21
21
  // switch, and "hide sent = maybe" is not a thing.
@@ -24,6 +24,11 @@
24
24
  // snake_case: the flag is what a person types, the query is what the
25
25
  // route reads. `serde_urlencoded` matches the query key literally, so
26
26
  // the snake_case spelling is the one that goes on the wire.
27
+ //
28
+ // --- WHY --- --cursor and not --offset: the page is walked by a cursor
29
+ // the backend hands out, and the cursor is opaque. there is no offset
30
+ // to ask for, and the bin prints the next cursor so the next page can
31
+ // be fetched with it.
27
32
  // ========================================
28
33
 
29
34
  import { api_shit_1170_tx_queue_get } from "@huggies/shit-1170-rex-engine-middleman";
@@ -64,7 +69,7 @@ function number_flag_fun(name: string): number | undefined {
64
69
  }
65
70
 
66
71
  const limit = number_flag_fun("--limit");
67
- const offset = number_flag_fun("--offset");
72
+ const cursor = flags.get("--cursor");
68
73
 
69
74
  const list = await api_shit_1170_tx_queue_get(
70
75
  base_url,
@@ -74,7 +79,7 @@ const list = await api_shit_1170_tx_queue_get(
74
79
  contract_id: flags.get("--contract-id"),
75
80
  method: flags.get("--method"),
76
81
  limit,
77
- offset,
82
+ cursor,
78
83
  },
79
84
  { api_key: flags.get("--api-key") },
80
85
  );
@@ -89,5 +94,6 @@ for (const queue of list.items) {
89
94
  console.log(` ${account.accountId} ${account.status}`);
90
95
  }
91
96
  }
97
+ console.log(`NEXT CURSOR: ${list.nextCursor ?? "(last page)"}`);
92
98
  // ========================================
93
99
  // copyright 2026 by sleet.near
@@ -1 +1 @@
1
- {"version":3,"file":"api_shit_1170_swap_queue_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_swap_queue_get.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,0BAA+B,EACtC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CAsCpC"}
1
+ {"version":3,"file":"api_shit_1170_swap_queue_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_swap_queue_get.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,0BAA+B,EACtC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CAwCpC"}
@@ -5,15 +5,26 @@
5
5
  // the list is OPEN: anyone with an api key can list the swaps. a queued
6
6
  // swap is an open offer, and hiding it would defeat the point.
7
7
  //
8
- // the answer is `{ "items": [ ...one swap each... ], "total": N }`,
9
- // where `total` is the count BEFORE the limit and the offset took their
10
- // cut. it is how many pages there are.
8
+ // the answer is `{ "items": [ ...one swap each... ], "total": N,
9
+ // "nextCursor": "..." }`, where `total` is the count BEFORE the limit
10
+ // and the cursor took their cut. it is how many pages there are.
11
11
  //
12
12
  // --- WHY --- the query names are snake_case and are NOT renamed:
13
13
  // `serde_urlencoded` matches the query key literally, so `tokenIn` would
14
14
  // never see the `token_in` the route reads and the filter would be
15
15
  // silently ignored.
16
16
  //
17
+ // --- WHY --- `account_id` goes out as ONE COMMA SEPARATED STRING: the
18
+ // route reads one value per param, so a list would need the param to be
19
+ // repeated. one string carries many values, and a single value still
20
+ // works.
21
+ //
22
+ // --- WHY --- `contract_id` goes out as ONE COMMA SEPARATED STRING TOO:
23
+ // it is the same shape for the same reason — the reader picks several
24
+ // contracts and the route reads one value per param. a swap matches
25
+ // when EITHER of its two tokens is in the list, so picking one contract
26
+ // shows the swaps that sell it AND the swaps that buy it.
27
+ //
17
28
  // --- WHY --- `hide_sent` needs an account and the check is made HERE as
18
29
  // well as on the server: "has this account sent it" is a question about
19
30
  // ONE account. a swap can be sent by alice and not by bob, so there is
@@ -23,6 +34,10 @@
23
34
  //
24
35
  // --- WHY --- `hide_sent` goes out as the word `true` and not as `1`:
25
36
  // the backend reads both, and the word is the readable one.
37
+ //
38
+ // --- WHY --- `cursor` is handed back EXACTLY as the backend gave it:
39
+ // the cursor is opaque, and a middleman that reshaped it would break
40
+ // the page the moment the backend changed the order.
26
41
  // ========================================
27
42
  import { api_call } from "../stuff/api_call";
28
43
  export async function api_shit_1170_swap_queue_get(base_url, query = {}, options = {}) {
@@ -36,10 +51,11 @@ export async function api_shit_1170_swap_queue_get(base_url, query = {}, options
36
51
  query: {
37
52
  account_id,
38
53
  hide_sent: query.hide_sent,
54
+ contract_id: query.contract_id?.trim(),
39
55
  token_in: query.token_in?.trim(),
40
56
  token_out: query.token_out?.trim(),
41
57
  limit: query.limit,
42
- offset: query.offset,
58
+ cursor: query.cursor?.trim(),
43
59
  },
44
60
  method: "GET",
45
61
  options,
@@ -50,8 +66,9 @@ export async function api_shit_1170_swap_queue_get(base_url, query = {}, options
50
66
  json === null ||
51
67
  Array.isArray(json) ||
52
68
  !Array.isArray(json.items) ||
53
- typeof json.total !== "number") {
54
- throw new Error("api_shit_1170_swap_queue_get failed: invalid_response: expected a json object with an items array and a total");
69
+ typeof json.total !== "number" ||
70
+ (json.nextCursor !== null && typeof json.nextCursor !== "string")) {
71
+ throw new Error("api_shit_1170_swap_queue_get failed: invalid_response: expected a json object with an items array, a total and a nextCursor");
55
72
  }
56
73
  return json;
57
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api_shit_1170_swap_queue_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_swap_queue_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,+BAA+B;AAC/B,6DAA6D;AAC7D,EAAE;AACF,wEAAwE;AACxE,+DAA+D;AAC/D,EAAE;AACF,oEAAoE;AACpE,wEAAwE;AACxE,uCAAuC;AACvC,EAAE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AAI,KAAK,CACb,+GAA+G,CAChH,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
1
+ {"version":3,"file":"api_shit_1170_swap_queue_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_swap_queue_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,+BAA+B;AAC/B,6DAA6D;AAC7D,EAAE;AACF,wEAAwE;AACxE,+DAA+D;AAC/D,EAAE;AACF,iEAAiE;AACjE,sEAAsE;AACtE,iEAAiE;AACjE,EAAE;AACF,kEAAkE;AAClE,yEAAyE;AACzE,mEAAmE;AACnE,oBAAoB;AACpB,EAAE;AACF,uEAAuE;AACvE,wEAAwE;AACxE,qEAAqE;AACrE,SAAS;AACT,EAAE;AACF,wEAAwE;AACxE,sEAAsE;AACtE,oEAAoE;AACpE,wEAAwE;AACxE,0DAA0D;AAC1D,EAAE;AACF,yEAAyE;AACzE,wEAAwE;AACxE,uEAAuE;AACvE,kEAAkE;AAClE,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,sEAAsE;AACtE,4DAA4D;AAC5D,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,qDAAqD;AACrD,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,QAAgB,EAChB,KAAK,GAA+B,EAAE,EACtC,OAAO,GAAoB,EAAE;IAE7B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,UAAU,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACb,4HAA4H,CAC7H,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAA4B;QACrD,QAAQ;QACR,GAAG,EAAE,0BAA0B;QAC/B,KAAK,EAAE;YACL,UAAU;YACV,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,IAAI,EAAE;YACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE;YAChC,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE;YAClC,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;SAC7B;QACD,MAAM,EAAE,KAAK;QACb,OAAO;QACP,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,qCAAqC;KAChD,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;QAC9B,CAAC,IAAI,CAAC,UAAU,KAAK,IAAI,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,CAAC,EACjE,CAAC;QACD,MAAM,IAAI,KAAK,CACb,6HAA6H,CAC9H,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,5 @@
1
+ import type { REQUEST_OPTIONS } from "../stuff/request_options";
2
+ import type { SHIT_1170_TX_QUEUE_FACETS } from "../types/shit_1170_tx_queue_facets";
3
+ import type { SHIT_1170_TX_QUEUE_FACETS_QUERY } from "../types/shit_1170_tx_queue_query";
4
+ export declare function api_shit_1170_tx_queue_facets_get(base_url: string, query?: SHIT_1170_TX_QUEUE_FACETS_QUERY, options?: REQUEST_OPTIONS): Promise<SHIT_1170_TX_QUEUE_FACETS>;
5
+ //# sourceMappingURL=api_shit_1170_tx_queue_facets_get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_facets_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_facets_get.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEzF,wBAAsB,iCAAiC,CACrD,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,+BAAoC,EAC3C,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CAwBpC"}
@@ -0,0 +1,45 @@
1
+ // ========================================
2
+ // API_SHIT_1170_TX_QUEUE_FACETS_GET
3
+ // GET /api/shit-1170/tx-queue/facets — the CONTRACTS and the ACCOUNTS
4
+ // the feed's filter bar offers.
5
+ //
6
+ // the answer:
7
+ // {
8
+ // "contracts": [ { "contractId": "ref.finance.near", "count": 12 } ],
9
+ // "accounts": [ { "accountId": "alice.near", "count": 3 } ]
10
+ // }
11
+ //
12
+ // a `limit` query param, default 40. the limit applies to BOTH lists.
13
+ //
14
+ // --- WHY --- THE ROUTE IS OPEN: the queue list is open, and the facets
15
+ // are a summary of the same thing. a reader who can read the feed can
16
+ // read what is in it. the api key is passed when there is one, and it
17
+ // is not demanded.
18
+ //
19
+ // --- WHY --- the two lists are checked TOGETHER and not one at a time:
20
+ // the route answers both or it answers neither, so an answer that holds
21
+ // one and misses the other is a broken answer.
22
+ // ========================================
23
+ import { api_call } from "../stuff/api_call";
24
+ export async function api_shit_1170_tx_queue_facets_get(base_url, query = {}, options = {}) {
25
+ const json = await api_call({
26
+ base_url,
27
+ key: "api_shit_1170_tx_queue_facets",
28
+ query: { limit: query.limit },
29
+ method: "GET",
30
+ options,
31
+ label: "SHIT_1170 TX QUEUE FACETS GET",
32
+ fallback: "api_shit_1170_tx_queue_facets_get failed",
33
+ });
34
+ if (typeof json !== "object" ||
35
+ json === null ||
36
+ Array.isArray(json) ||
37
+ !Array.isArray(json.contracts) ||
38
+ !Array.isArray(json.accounts)) {
39
+ throw new Error("api_shit_1170_tx_queue_facets_get failed: invalid_response: expected a json object with a contracts array and an accounts array");
40
+ }
41
+ return json;
42
+ }
43
+ // ========================================
44
+ // copyright 2026 by sleet.near
45
+ //# sourceMappingURL=api_shit_1170_tx_queue_facets_get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_shit_1170_tx_queue_facets_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_facets_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,oCAAoC;AACpC,sEAAsE;AACtE,gCAAgC;AAChC,EAAE;AACF,cAAc;AACd,MAAM;AACN,0EAA0E;AAC1E,iEAAiE;AACjE,MAAM;AACN,EAAE;AACF,sEAAsE;AACtE,EAAE;AACF,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,mBAAmB;AACnB,EAAE;AACF,wEAAwE;AACxE,wEAAwE;AACxE,+CAA+C;AAC/C,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACrD,QAAgB,EAChB,KAAK,GAAoC,EAAE,EAC3C,OAAO,GAAoB,EAAE;IAE7B,MAAM,IAAI,GAAG,MAAM,QAAQ,CAA4B;QACrD,QAAQ;QACR,GAAG,EAAE,+BAA+B;QACpC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;QAC7B,MAAM,EAAE,KAAK;QACb,OAAO;QACP,KAAK,EAAE,+BAA+B;QACtC,QAAQ,EAAE,0CAA0C;KACrD,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC;QAC9B,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAC7B,CAAC;QACD,MAAM,IAAI,KAAK,CACb,iIAAiI,CAClI,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"api_shit_1170_tx_queue_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_get.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAElF,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,wBAA6B,EACpC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAsClC"}
1
+ {"version":3,"file":"api_shit_1170_tx_queue_get.d.ts","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_get.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAElF,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,wBAA6B,EACpC,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAuClC"}
@@ -5,15 +5,20 @@
5
5
  // the list is OPEN: anyone with an api key can list the queues. a queue
6
6
  // is an open offer, and hiding it would defeat the point.
7
7
  //
8
- // the answer is `{ "items": [ ...one batch each... ], "total": N }`,
9
- // where `total` is the count BEFORE the limit and the offset took their
10
- // cut. it is how many pages there are.
8
+ // the answer is `{ "items": [ ...one batch each... ], "total": N,
9
+ // "nextCursor": "..." }`, where `total` is the count BEFORE the limit
10
+ // and the cursor took their cut. it is how many pages there are.
11
11
  //
12
12
  // --- WHY --- the query names are snake_case and are NOT renamed:
13
13
  // `serde_urlencoded` matches the query key literally, so `accountId`
14
14
  // would never see the `account_id` the route reads and the filter would
15
15
  // be silently ignored.
16
16
  //
17
+ // --- WHY --- `account_id` and `contract_id` go out as ONE COMMA
18
+ // SEPARATED STRING: the route reads one value per param, so a list
19
+ // would need the param to be repeated. one string carries many values,
20
+ // and a single value still works.
21
+ //
17
22
  // --- WHY --- `hide_sent` needs an account and the check is made HERE
18
23
  // as well as on the server: "has this account sent it" is a question
19
24
  // about ONE account. a queue can be sent by alice and not by bob, so
@@ -23,6 +28,10 @@
23
28
  //
24
29
  // --- WHY --- `hide_sent` goes out as the word `true` and not as `1`:
25
30
  // the backend reads both, and the word is the readable one.
31
+ //
32
+ // --- WHY --- `cursor` is handed back EXACTLY as the backend gave it:
33
+ // the cursor is opaque, and a middleman that reshaped it would break
34
+ // the page the moment the backend changed the order.
26
35
  // ========================================
27
36
  import { api_call } from "../stuff/api_call";
28
37
  export async function api_shit_1170_tx_queue_get(base_url, query = {}, options = {}) {
@@ -39,7 +48,7 @@ export async function api_shit_1170_tx_queue_get(base_url, query = {}, options =
39
48
  contract_id: query.contract_id?.trim(),
40
49
  method: query.method?.trim(),
41
50
  limit: query.limit,
42
- offset: query.offset,
51
+ cursor: query.cursor?.trim(),
43
52
  },
44
53
  method: "GET",
45
54
  options,
@@ -50,8 +59,9 @@ export async function api_shit_1170_tx_queue_get(base_url, query = {}, options =
50
59
  json === null ||
51
60
  Array.isArray(json) ||
52
61
  !Array.isArray(json.items) ||
53
- typeof json.total !== "number") {
54
- throw new Error("api_shit_1170_tx_queue_get failed: invalid_response: expected a json object with an items array and a total");
62
+ typeof json.total !== "number" ||
63
+ (json.nextCursor !== null && typeof json.nextCursor !== "string")) {
64
+ throw new Error("api_shit_1170_tx_queue_get failed: invalid_response: expected a json object with an items array, a total and a nextCursor");
55
65
  }
56
66
  return json;
57
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api_shit_1170_tx_queue_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,6BAA6B;AAC7B,4DAA4D;AAC5D,EAAE;AACF,wEAAwE;AACxE,0DAA0D;AAC1D,EAAE;AACF,qEAAqE;AACrE,wEAAwE;AACxE,uCAAuC;AACvC,EAAE;AACF,kEAAkE;AAClE,qEAAqE;AACrE,wEAAwE;AACxE,uBAAuB;AACvB,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AACvE,sEAAsE;AACtE,iEAAiE;AACjE,EAAE;AACF,sEAAsE;AACtE,4DAA4D;AAC5D,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,QAAgB,EAChB,KAAK,GAA6B,EAAE,EACpC,OAAO,GAAoB,EAAE;IAE7B,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAI,KAAK,CAAC,SAAS,IAAI,CAAC,UAAU,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACb,0HAA0H,CAC3H,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAA0B;QACnD,QAAQ;QACR,GAAG,EAAE,wBAAwB;QAC7B,KAAK,EAAE;YACL,UAAU;YACV,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,IAAI,EAAE;YACtC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;YAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB;QACD,MAAM,EAAE,KAAK;QACb,OAAO;QACP,KAAK,EAAE,wBAAwB;QAC/B,QAAQ,EAAE,mCAAmC;KAC9C,CAAC,CAAC;IAEH,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,KAAK,IAAI;QACb,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QACnB,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAC9B,CAAC;QACD,MAAM,IAAI,KAAK,CACb,6GAA6G,CAC9G,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AACD,2CAA2C;AAC3C,+BAA+B"}
1
+ {"version":3,"file":"api_shit_1170_tx_queue_get.js","sourceRoot":"","sources":["../../src/fun/api_shit_1170_tx_queue_get.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,6BAA6B;AAC7B,4DAA4D;AAC5D,EAAE;AACF,wEAAwE;AACxE,0DAA0D;AAC1D,EAAE;AACF,kEAAkE;AAClE,sEAAsE;AACtE,iEAAiE;AACjE,EAAE;AACF,kEAAkE;AAClE,qEAAqE;AACrE,wEAAwE;AACxE,uBAAuB;AACvB,EAAE;AACF,iEAAiE;AACjE,mEAAmE;AACnE,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AACvE,sEAAsE;AACtE,iEAAiE;AACjE,EAAE;AACF,sEAAsE;AACtE,4DAA4D;AAC5D,EAAE;AACF,sEAAsE;AACtE,qEAAqE;AACrE,qDAAqD;AACrD,2CAA2C;AAE3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,QAAgB,EAChB,KAAK,GAA6B,EAA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  export * from "./fun/api_shit_1170_tx_queue_accounts_delete";
12
12
  export * from "./fun/api_shit_1170_tx_queue_accounts_post";
13
+ export * from "./fun/api_shit_1170_tx_queue_facets_get";
13
14
  export * from "./fun/api_shit_1170_tx_queue_get";
14
15
  export * from "./fun/api_shit_1170_tx_queue_one_get";
15
16
  export * from "./fun/api_shit_1170_tx_queue_post";
@@ -30,7 +31,8 @@ export type { SHIT_1170_PING } from "./types/shit_1170_ping";
30
31
  export type { SHIT_1170_API_KEY, SHIT_1170_API_KEYS_REQUEST, SHIT_1170_API_KEYS_RESPONSE, SHIT_1170_API_KEY_ME, SHIT_1170_SIGNED_ACCOUNT, } from "./types/shit_1170_api_keys";
31
32
  export type { SHIT_1170_SWAP_QUEUE, SHIT_1170_SWAP_QUEUE_ACCOUNT, SHIT_1170_SWAP_QUEUE_ACCOUNT_REQUEST, SHIT_1170_SWAP_QUEUE_LIST, SHIT_1170_SWAP_QUEUE_QUERY, SHIT_1170_SWAP_QUEUE_REQUEST, SHIT_1170_SWAP_QUEUE_SENT_REQUEST, SHIT_1170_SWAP_QUEUE_STATUS, } from "./types/shit_1170_swap_queue";
32
33
  export type { SHIT_1170_TX_QUEUE, SHIT_1170_TX_QUEUE_ACCOUNT, SHIT_1170_TX_QUEUE_ACCOUNT_REQUEST, SHIT_1170_TX_QUEUE_CONTRACT_STAT, SHIT_1170_TX_QUEUE_CONTRACT_STATS, SHIT_1170_TX_QUEUE_HASH_REQUEST, SHIT_1170_TX_QUEUE_LIST, SHIT_1170_TX_QUEUE_METHOD_STAT, SHIT_1170_TX_QUEUE_METHOD_STATS, SHIT_1170_TX_QUEUE_REQUEST, SHIT_1170_TX_QUEUE_SENT_REQUEST, SHIT_1170_TX_QUEUE_STATUS, SHIT_1170_TX_QUEUE_TRANSACTION, SHIT_1170_TX_QUEUE_TRANSACTION_REQUEST, } from "./types/shit_1170_tx_queue";
33
- export type { SHIT_1170_TX_QUEUE_QUERY, SHIT_1170_TX_QUEUE_STATS_QUERY, } from "./types/shit_1170_tx_queue_query";
34
+ export type { SHIT_1170_TX_QUEUE_FACET_ACCOUNT, SHIT_1170_TX_QUEUE_FACET_CONTRACT, SHIT_1170_TX_QUEUE_FACETS, } from "./types/shit_1170_tx_queue_facets";
35
+ export type { SHIT_1170_TX_QUEUE_FACETS_QUERY, SHIT_1170_TX_QUEUE_QUERY, SHIT_1170_TX_QUEUE_STATS_QUERY, } from "./types/shit_1170_tx_queue_query";
34
36
  export type { TREZU_TREASURY } from "./types/trezu_treasury";
35
37
  export type { TREZU_TREASURY_CONFIG } from "./types/trezu_treasury_config";
36
38
  export type { TREZU_TREASURY_METADATA } from "./types/trezu_treasury_metadata";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAA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B,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,kBAAkB,EAClB,0BAA0B,EAC1B,kCAAkC,EAClC,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,uBAAuB,EACvB,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,yBAAyB,EACzB,8BAA8B,EAC9B,sCAAsC,GACvC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,gCAAgC,EAChC,iCAAiC,EACjC,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,+BAA+B,EAC/B,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC"}
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ export * from "./fun/api_shit_1170_swap_queue_post";
25
25
  export * from "./fun/api_shit_1170_swap_queue_sent_post";
26
26
  export * from "./fun/api_shit_1170_tx_queue_accounts_delete";
27
27
  export * from "./fun/api_shit_1170_tx_queue_accounts_post";
28
+ export * from "./fun/api_shit_1170_tx_queue_facets_get";
28
29
  export * from "./fun/api_shit_1170_tx_queue_get";
29
30
  export * from "./fun/api_shit_1170_tx_queue_one_get";
30
31
  export * from "./fun/api_shit_1170_tx_queue_post";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,YAAY;AACZ,qEAAqE;AACrE,sEAAsE;AACtE,sBAAsB;AACtB,EAAE;AACF,uEAAuE;AACvE,2BAA2B;AAC3B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AAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAKlD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAoDxD,2CAA2C;AAC3C,+BAA+B"}
@@ -4,6 +4,7 @@ export declare const ENDPOINT_PATHS: {
4
4
  readonly api_shit_1170_api_key_me: "/api/shit-1170/api-key/me";
5
5
  readonly api_shit_1170_api_key_rotate: "/api/shit-1170/api-key/rotate";
6
6
  readonly api_shit_1170_tx_queue: "/api/shit-1170/tx-queue";
7
+ readonly api_shit_1170_tx_queue_facets: "/api/shit-1170/tx-queue/facets";
7
8
  readonly api_shit_1170_tx_queue_stats_contracts: "/api/shit-1170/tx-queue/stats/contracts";
8
9
  readonly api_shit_1170_tx_queue_stats_methods: "/api/shit-1170/tx-queue/stats/methods";
9
10
  readonly api_shit_1170_swap_queue: "/api/shit-1170/swap-queue";
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint_paths.d.ts","sourceRoot":"","sources":["../../src/stuff/endpoint_paths.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;aAEzB,kBAAkB,EAAE,qBAAqB;aACzC,sBAAsB,EAAE,yBAAyB;aACjD,wBAAwB,EAAE,2BAA2B;aACrD,4BAA4B,EAAE,+BAA+B;aAO7D,sBAAsB,EAAE,yBAAyB;aACjD,sCAAsC,EACpC,yCAAyC;aAC3C,oCAAoC,EAAE,uCAAuC;aAO7E,wBAAwB,EAAE,2BAA2B;aAGrD,oBAAoB,EAAE,4BAA4B;CAC1C,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAC"}
1
+ {"version":3,"file":"endpoint_paths.d.ts","sourceRoot":"","sources":["../../src/stuff/endpoint_paths.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;aAEzB,kBAAkB,EAAE,qBAAqB;aACzC,sBAAsB,EAAE,yBAAyB;aACjD,wBAAwB,EAAE,2BAA2B;aACrD,4BAA4B,EAAE,+BAA+B;aAO7D,sBAAsB,EAAE,yBAAyB;aACjD,6BAA6B,EAAE,gCAAgC;aAC/D,sCAAsC,EACpC,yCAAyC;aAC3C,oCAAoC,EAAE,uCAAuC;aAO7E,wBAAwB,EAAE,2BAA2B;aAGrD,oBAAoB,EAAE,4BAA4B;CAC1C,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAC"}
@@ -13,6 +13,7 @@ export const ENDPOINT_PATHS = {
13
13
  // by the wrapper and handed to api_call as a full path. see
14
14
  // api_shit_1170_tx_queue_one_get.ts.
15
15
  api_shit_1170_tx_queue: "/api/shit-1170/tx-queue",
16
+ api_shit_1170_tx_queue_facets: "/api/shit-1170/tx-queue/facets",
16
17
  api_shit_1170_tx_queue_stats_contracts: "/api/shit-1170/tx-queue/stats/contracts",
17
18
  api_shit_1170_tx_queue_stats_methods: "/api/shit-1170/tx-queue/stats/methods",
18
19
  // --- the swap queue ---
@@ -1 +1 @@
1
- {"version":3,"file":"endpoint_paths.js","sourceRoot":"","sources":["../../src/stuff/endpoint_paths.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,iB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 +23,7 @@ export interface SHIT_1170_SWAP_QUEUE {
23
23
  export interface SHIT_1170_SWAP_QUEUE_LIST {
24
24
  items: SHIT_1170_SWAP_QUEUE[];
25
25
  total: number;
26
+ nextCursor: string | null;
26
27
  }
27
28
  export interface SHIT_1170_SWAP_QUEUE_REQUEST {
28
29
  what?: string;
@@ -47,9 +48,10 @@ export interface SHIT_1170_SWAP_QUEUE_SENT_REQUEST {
47
48
  export interface SHIT_1170_SWAP_QUEUE_QUERY {
48
49
  account_id?: string;
49
50
  hide_sent?: boolean;
51
+ contract_id?: string;
50
52
  token_in?: string;
51
53
  token_out?: string;
52
54
  limit?: number;
53
- offset?: number;
55
+ cursor?: string;
54
56
  }
55
57
  //# sourceMappingURL=shit_1170_swap_queue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shit_1170_swap_queue.d.ts","sourceRoot":"","sources":["../../src/types/shit_1170_swap_queue.ts"],"names":[],"mappings":"AAwCA,MAAM,MAAM,2BAA2B,GACrC,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;AAG9C,MAAM,WAAW,4BAA4B;IAE3C,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,2BAA2B,CAAC;IAGpC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAGD,MAAM,WAAW,oBAAoB;IAEnC,MAAM,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,OAAO,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,KAAK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f,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAGD,MAAM,WAAW,oCAAoC;IAGnD,SAAS,EAAE,MAAM,CAAC;CACnB;AAOD,MAAM,WAAW,iCAAiC;IAEhD,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,CAAC,EAAE,2BAA2B,CAAC;IAGrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAWD,MAAM,WAAW,0BAA0B;IAEzC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,OAAO,CAAC;IAcpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;IAcf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"shit_1170_swap_queue.js","sourceRoot":"","sources":["../../src/types/shit_1170_swap_queue.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,uBAAuB;AACvB,4EAA4E;AAC5E,EAAE;AACF,sEAAsE;AACtE,wEAAwE;AACxE,sEAAsE;AACtE,mCAAmC;AACnC,EAAE;AACF,gCAAgC;AAChC,EAAE;AACF,wEAAwE;AACxE,oEAAoE;AACpE,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,EAAE;AACF,wEAAwE;AACxE,wEAAwE;AACxE,yEAAyE;AACzE,qEAAqE;AACrE,2CAA2C;AAC3C,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,4BAA4B;AAC5B,EAAE;AACF,wEAAwE;AACxE,iEAAiE;AACjE,uEAAuE;AACvE,sEAAsE;AACtE,+DAA+D;AAC/D,2CAA2C;;AAuI3C,2CAA2C;AAC3C,+BAA+B"}
1
+ {"version":3,"file":"shit_1170_swap_queue.js","sourceRoot":"","sources":["../../src/types/shit_1170_swap_queue.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,uBAAuB;AACvB,4EAA4E;AAC5E,EAAE;AACF,sEAAsE;AACtE,wEAAwE;AACxE,sEAAsE;AACtE,mCAAmC;AACnC,EAAE;AACF,gCAAgC;AAChC,EAAE;AACF,wEAAwE;AACxE,oEAAoE;AACpE,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,EAAE;AACF,wEAAwE;AACxE,wEAAwE;AACxE,yEAAyE;AACzE,qEAAqE;AACrE,2CAA2C;AAC3C,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,4BAA4B;AAC5B,EAAE;AACF,wEAAwE;AACxE,iEAAiE;AACjE,uEAAuE;AACvE,sEAAsE;AACtE,+DAA+D;AAC/D,2CAA2C;;AA+K3C,2CAA2C;AAC3C,+BAA+B"}
@@ -28,6 +28,7 @@ export interface SHIT_1170_TX_QUEUE {
28
28
  export interface SHIT_1170_TX_QUEUE_LIST {
29
29
  items: SHIT_1170_TX_QUEUE[];
30
30
  total: number;
31
+ nextCursor: string | null;
31
32
  }
32
33
  export interface SHIT_1170_TX_QUEUE_TRANSACTION_REQUEST {
33
34
  contractId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"shit_1170_tx_queue.d.ts","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue.ts"],"names":[],"mappings":"AAqCA,MAAM,MAAM,yBAAyB,GACnC,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;AAG9C,MAAM,WAAW,0BAA0B;IAEzC,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,yBAAyB,CAAC;IAGlC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAGD,MAAM,WAAW,8BAA8B;IAE7C,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,MAAM,CAAC;IAEjB,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,MAAM,CAAC;IAEf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,C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CAAC;CAC7C;AAID,MAAM,WAAW,gCAAgC;IAE/C,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,gCAAgC,EAAE,CAAC;CAC3C;AAGD,MAAM,WAAW,8BAA8B;IAE7C,MAAM,EAAE,MAAM,CAAC;IAIf,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,8BAA8B,EAAE,CAAC;CACzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"shit_1170_tx_queue.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,qBAAqB;AACrB,wEAAwE;AACxE,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,sEAAsE;AACtE,EAAE;AACF,kCAAkC;AAClC,EAAE;AACF,mDAAmD;AACnD,4EAA4E;AAC5E,8DAA8D;AAC9D,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,mDAAmD;AACnD,yDAAyD;AACzD,EAAE;AACF,oEAAoE;AACpE,qEAAqE;AACrE,qCAAqC;AACrC,EAAE;AACF,8DAA8D;AAC9D,wEAAwE;AACxE,kEAAkE;AAClE,sEAAsE;AACtE,iEAAiE;AACjE,YAAY;AACZ,2CAA2C;;AAyK3C,2CAA2C;AAC3C,+BAA+B"}
1
+ {"version":3,"file":"shit_1170_tx_queue.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,qBAAqB;AACrB,wEAAwE;AACxE,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,sEAAsE;AACtE,EAAE;AACF,kCAAkC;AAClC,EAAE;AACF,mDAAmD;AACnD,4EAA4E;AAC5E,8DAA8D;AAC9D,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,mDAAmD;AACnD,yDAAyD;AACzD,EAAE;AACF,oEAAoE;AACpE,qEAAqE;AACrE,qCAAqC;AACrC,EAAE;AACF,8DAA8D;AAC9D,wEAAwE;AACxE,kEAAkE;AAClE,sEAAsE;AACtE,iEAAiE;AACjE,YAAY;AACZ,2CAA2C;;AAgL3C,2CAA2C;AAC3C,+BAA+B"}
@@ -0,0 +1,13 @@
1
+ export interface SHIT_1170_TX_QUEUE_FACET_CONTRACT {
2
+ contractId: string;
3
+ count: number;
4
+ }
5
+ export interface SHIT_1170_TX_QUEUE_FACET_ACCOUNT {
6
+ accountId: string;
7
+ count: number;
8
+ }
9
+ export interface SHIT_1170_TX_QUEUE_FACETS {
10
+ contracts: SHIT_1170_TX_QUEUE_FACET_CONTRACT[];
11
+ accounts: SHIT_1170_TX_QUEUE_FACET_ACCOUNT[];
12
+ }
13
+ //# sourceMappingURL=shit_1170_tx_queue_facets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shit_1170_tx_queue_facets.d.ts","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_facets.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,iCAAiC;IAEhD,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,gCAAgC;IAE/C,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,EAAE,MAAM,CAAC;CACf;AAOD,MAAM,WAAW,yBAAyB;IAExC,SAAS,EAAE,iCAAiC,EAAE,CAAC;IAE/C,QAAQ,EAAE,gCAAgC,EAAE,CAAC;CAC9C"}
@@ -0,0 +1,20 @@
1
+ // ========================================
2
+ // SHIT_1170_TX_QUEUE_FACETS
3
+ // the shapes of the facets route, under /api/shit-1170/tx-queue/facets.
4
+ //
5
+ // the facets are the CONTRACTS and the ACCOUNTS that have queued work.
6
+ // the feed's filter bar builds its buttons from them, and it cannot
7
+ // show a button for something that is not there.
8
+ //
9
+ // --- WHY --- the fields are camelCase: they mirror the browser's own
10
+ // session object (`accountId`) and the rest of the tx queue shapes, so
11
+ // nothing is renamed on the way.
12
+ //
13
+ // --- WHY --- the counts are NUMBERS and not strings: a count is a
14
+ // number on the wire and a string would make every reader parse it
15
+ // again.
16
+ // ========================================
17
+ export {};
18
+ // ========================================
19
+ // copyright 2026 by sleet.near
20
+ //# sourceMappingURL=shit_1170_tx_queue_facets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shit_1170_tx_queue_facets.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_facets.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,4BAA4B;AAC5B,wEAAwE;AACxE,EAAE;AACF,uEAAuE;AACvE,oEAAoE;AACpE,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,uEAAuE;AACvE,iCAAiC;AACjC,EAAE;AACF,mEAAmE;AACnE,mEAAmE;AACnE,SAAS;AACT,2CAA2C;;AA6B3C,2CAA2C;AAC3C,+BAA+B"}
@@ -4,9 +4,12 @@ export interface SHIT_1170_TX_QUEUE_QUERY {
4
4
  contract_id?: string;
5
5
  method?: string;
6
6
  limit?: number;
7
- offset?: number;
7
+ cursor?: string;
8
8
  }
9
9
  export interface SHIT_1170_TX_QUEUE_STATS_QUERY {
10
10
  limit?: number;
11
11
  }
12
+ export interface SHIT_1170_TX_QUEUE_FACETS_QUERY {
13
+ limit?: number;
14
+ }
12
15
  //# sourceMappingURL=shit_1170_tx_queue_query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shit_1170_tx_queue_query.d.ts","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_query.ts"],"names":[],"mappings":"AAoBA,MAAM,WAAW,wBAAwB;IAEvC,UAAU,CAAC,EAAE,MAAM,CAAC;IAQpB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,MAAM,WAAW,8BAA8B;IAE7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"shit_1170_tx_queue_query.d.ts","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_query.ts"],"names":[],"mappings":"AA2BA,MAAM,WAAW,wBAAwB;IAEvC,UAAU,CAAC,EAAE,MAAM,CAAC;IAQpB,SAAS,CAAC,EAAE,OAAO,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAcf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,MAAM,WAAW,8BAA8B;IAE7C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAQD,MAAM,WAAW,+BAA+B;IAG9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -5,9 +5,16 @@
5
5
  // --- WHY --- the field names are snake_case here and NOT renamed to
6
6
  // camelCase: the wire names are the ones the api docs and the backend
7
7
  // use — `account_id`, `hide_sent`, `contract_id`, `method`, `limit` and
8
- // `offset`. `serde_urlencoded` matches the query key literally, so a
8
+ // `cursor`. `serde_urlencoded` matches the query key literally, so a
9
9
  // camelCase name here would be silently ignored by the route.
10
10
  //
11
+ // --- WHY --- `account_id` and `contract_id` are COMMA SEPARATED STRINGS
12
+ // and not arrays: the query extractor reads ONE value per param, so a
13
+ // list would need the param to be repeated, and a browser cannot build
14
+ // a repeated param out of a map. one comma separated string carries
15
+ // many values, and it reads the same in a hand-written url. a single
16
+ // value still works — "alice.near" is a list of one.
17
+ //
11
18
  // --- WHY --- there is no `status` filter: the status is per account
12
19
  // and per transaction, and a queue has no global status to filter on.
13
20
  //
@@ -1 +1 @@
1
- {"version":3,"file":"shit_1170_tx_queue_query.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_query.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,2BAA2B;AAC3B,2DAA2D;AAC3D,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,wEAAwE;AACxE,qEAAqE;AACrE,8DAA8D;AAC9D,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,EAAE;AACF,+DAA+D;AAC/D,gEAAgE;AAChE,sEAAsE;AACtE,uEAAuE;AACvE,wBAAwB;AACxB,2CAA2C;;AAiC3C,2CAA2C;AAC3C,+BAA+B"}
1
+ {"version":3,"file":"shit_1170_tx_queue_query.js","sourceRoot":"","sources":["../../src/types/shit_1170_tx_queue_query.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,2BAA2B;AAC3B,2DAA2D;AAC3D,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,wEAAwE;AACxE,qEAAqE;AACrE,8DAA8D;AAC9D,EAAE;AACF,yEAAyE;AACzE,sEAAsE;AACtE,uEAAuE;AACvE,oEAAoE;AACpE,qEAAqE;AACrE,qDAAqD;AACrD,EAAE;AACF,qEAAqE;AACrE,sEAAsE;AACtE,EAAE;AACF,+DAA+D;AAC/D,gEAAgE;AAChE,sEAAsE;AACtE,uEAAuE;AACvE,wBAAwB;AACxB,2CAA2C;;AA0D3C,2CAA2C;AAC3C,+BAA+B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huggies/shit-1170-rex-engine-middleman",
3
- "version": "0.0.1",
4
- "description": "Clean TypeScript middleman for the shit-1170-rex-engine backend routes (/api/shit-1170/*, /api/trezu/*).",
3
+ "version": "0.0.2",
4
+ "description": "💩 middleman for interacting with shit-1170 agentic and defi engine",
5
5
  "license": "MIT",
6
6
  "homepage": "https://sleet-js.near.page",
7
7
  "repository": {
@@ -30,7 +30,10 @@
30
30
  "scripts": {
31
31
  "typecheck": "tsc --noEmit",
32
32
  "build": "rm -f .tsbuildinfo && bun run tsc --build tsconfig.build.json --force",
33
- "clean": "bun run tsc --build --clean && rm -rf dist .tsbuildinfo"
33
+ "clean": "bun run tsc --build --clean && rm -rf dist .tsbuildinfo",
34
+ "version:sync": "bun run scripts/version-sync.ts",
35
+ "version:dry-run": "bun run scripts/version-sync.ts --dry-run",
36
+ "release:version": "bun run scripts/release-version.ts"
34
37
  },
35
38
  "devDependencies": {
36
39
  "@types/bun": "latest",