@huggies/shit-1170-rex-engine-middleman 0.0.0-stage → 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.
- package/LICENSE +9 -0
- package/README.md +43 -2
- package/bin/README.md +38 -0
- package/bin/fun/resolve_base_url.ts +45 -0
- package/bin/fun/split_argv.ts +67 -0
- package/bin/shit-1170/README.md +333 -0
- package/bin/shit-1170/api_shit_1170_api_key_me_get.ts +46 -0
- package/bin/shit-1170/api_shit_1170_api_key_rotate_post.ts +83 -0
- package/bin/shit-1170/api_shit_1170_api_keys_post.ts +68 -0
- package/bin/shit-1170/api_shit_1170_ping_get.ts +28 -0
- package/bin/shit-1170/api_shit_1170_swap_queue_accounts_delete.ts +81 -0
- package/bin/shit-1170/api_shit_1170_swap_queue_accounts_post.ts +80 -0
- package/bin/shit-1170/api_shit_1170_swap_queue_get.ts +91 -0
- package/bin/shit-1170/api_shit_1170_swap_queue_one_get.ts +62 -0
- package/bin/shit-1170/api_shit_1170_swap_queue_post.ts +118 -0
- package/bin/shit-1170/api_shit_1170_swap_queue_sent_post.ts +87 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_accounts_delete.ts +68 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_accounts_post.ts +65 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_facets_get.ts +68 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_get.ts +99 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_one_get.ts +67 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_post.ts +243 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_sent_post.ts +172 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_stats_contracts_get.ts +60 -0
- package/bin/shit-1170/api_shit_1170_tx_queue_stats_methods_get.ts +60 -0
- package/bin/shit-1170/api_trezu_treasuries_get.ts +62 -0
- package/dist/fun/api_shit_1170_api_key_me_get.d.ts +4 -0
- package/dist/fun/api_shit_1170_api_key_me_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_api_key_me_get.js +38 -0
- package/dist/fun/api_shit_1170_api_key_me_get.js.map +1 -0
- package/dist/fun/api_shit_1170_api_key_rotate_post.d.ts +4 -0
- package/dist/fun/api_shit_1170_api_key_rotate_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_api_key_rotate_post.js +46 -0
- package/dist/fun/api_shit_1170_api_key_rotate_post.js.map +1 -0
- package/dist/fun/api_shit_1170_api_keys_post.d.ts +3 -0
- package/dist/fun/api_shit_1170_api_keys_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_api_keys_post.js +52 -0
- package/dist/fun/api_shit_1170_api_keys_post.js.map +1 -0
- package/dist/fun/api_shit_1170_ping_get.d.ts +3 -0
- package/dist/fun/api_shit_1170_ping_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_ping_get.js +32 -0
- package/dist/fun/api_shit_1170_ping_get.js.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_delete.d.ts +4 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_delete.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_delete.js +46 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_delete.js.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_post.d.ts +4 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_post.js +42 -0
- package/dist/fun/api_shit_1170_swap_queue_accounts_post.js.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_get.d.ts +5 -0
- package/dist/fun/api_shit_1170_swap_queue_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_get.js +77 -0
- package/dist/fun/api_shit_1170_swap_queue_get.js.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_one_get.d.ts +4 -0
- package/dist/fun/api_shit_1170_swap_queue_one_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_one_get.js +38 -0
- package/dist/fun/api_shit_1170_swap_queue_one_get.js.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_post.d.ts +4 -0
- package/dist/fun/api_shit_1170_swap_queue_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_post.js +62 -0
- package/dist/fun/api_shit_1170_swap_queue_post.js.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_sent_post.d.ts +4 -0
- package/dist/fun/api_shit_1170_swap_queue_sent_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_swap_queue_sent_post.js +63 -0
- package/dist/fun/api_shit_1170_swap_queue_sent_post.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_delete.d.ts +4 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_delete.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_delete.js +60 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_delete.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_post.d.ts +4 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_post.js +54 -0
- package/dist/fun/api_shit_1170_tx_queue_accounts_post.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_facets_get.d.ts +5 -0
- package/dist/fun/api_shit_1170_tx_queue_facets_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_facets_get.js +45 -0
- package/dist/fun/api_shit_1170_tx_queue_facets_get.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_get.d.ts +5 -0
- package/dist/fun/api_shit_1170_tx_queue_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_get.js +70 -0
- package/dist/fun/api_shit_1170_tx_queue_get.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_one_get.d.ts +4 -0
- package/dist/fun/api_shit_1170_tx_queue_one_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_one_get.js +46 -0
- package/dist/fun/api_shit_1170_tx_queue_one_get.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_post.d.ts +4 -0
- package/dist/fun/api_shit_1170_tx_queue_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_post.js +57 -0
- package/dist/fun/api_shit_1170_tx_queue_post.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_sent_post.d.ts +4 -0
- package/dist/fun/api_shit_1170_tx_queue_sent_post.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_sent_post.js +59 -0
- package/dist/fun/api_shit_1170_tx_queue_sent_post.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.d.ts +5 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.js +41 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_contracts_get.js.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.d.ts +5 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.d.ts.map +1 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.js +41 -0
- package/dist/fun/api_shit_1170_tx_queue_stats_methods_get.js.map +1 -0
- package/dist/fun/api_trezu_treasuries_get.d.ts +4 -0
- package/dist/fun/api_trezu_treasuries_get.d.ts.map +1 -0
- package/dist/fun/api_trezu_treasuries_get.js +34 -0
- package/dist/fun/api_trezu_treasuries_get.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/stuff/api_call.d.ts +15 -0
- package/dist/stuff/api_call.d.ts.map +1 -0
- package/dist/stuff/api_call.js +86 -0
- package/dist/stuff/api_call.js.map +1 -0
- package/dist/stuff/endpoint_paths.d.ts +14 -0
- package/dist/stuff/endpoint_paths.d.ts.map +1 -0
- package/dist/stuff/endpoint_paths.js +30 -0
- package/dist/stuff/endpoint_paths.js.map +1 -0
- package/dist/stuff/parse_error.d.ts +12 -0
- package/dist/stuff/parse_error.d.ts.map +1 -0
- package/dist/stuff/parse_error.js +84 -0
- package/dist/stuff/parse_error.js.map +1 -0
- package/dist/stuff/request_options.d.ts +6 -0
- package/dist/stuff/request_options.d.ts.map +1 -0
- package/dist/stuff/request_options.js +43 -0
- package/dist/stuff/request_options.js.map +1 -0
- package/dist/types/common.d.ts +7 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +6 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/shit_1170_api_keys.d.ts +25 -0
- package/dist/types/shit_1170_api_keys.d.ts.map +1 -0
- package/dist/types/shit_1170_api_keys.js +23 -0
- package/dist/types/shit_1170_api_keys.js.map +1 -0
- package/dist/types/shit_1170_ping.d.ts +5 -0
- package/dist/types/shit_1170_ping.d.ts.map +1 -0
- package/dist/types/shit_1170_ping.js +11 -0
- package/dist/types/shit_1170_ping.js.map +1 -0
- package/dist/types/shit_1170_swap_queue.d.ts +57 -0
- package/dist/types/shit_1170_swap_queue.d.ts.map +1 -0
- package/dist/types/shit_1170_swap_queue.js +37 -0
- package/dist/types/shit_1170_swap_queue.js.map +1 -0
- package/dist/types/shit_1170_tx_queue.d.ts +74 -0
- package/dist/types/shit_1170_tx_queue.d.ts.map +1 -0
- package/dist/types/shit_1170_tx_queue.js +34 -0
- package/dist/types/shit_1170_tx_queue.js.map +1 -0
- package/dist/types/shit_1170_tx_queue_facets.d.ts +13 -0
- package/dist/types/shit_1170_tx_queue_facets.d.ts.map +1 -0
- package/dist/types/shit_1170_tx_queue_facets.js +20 -0
- package/dist/types/shit_1170_tx_queue_facets.js.map +1 -0
- package/dist/types/shit_1170_tx_queue_query.d.ts +15 -0
- package/dist/types/shit_1170_tx_queue_query.d.ts.map +1 -0
- package/dist/types/shit_1170_tx_queue_query.js +30 -0
- package/dist/types/shit_1170_tx_queue_query.js.map +1 -0
- package/dist/types/trezu_treasuries_query.d.ts +5 -0
- package/dist/types/trezu_treasuries_query.d.ts.map +1 -0
- package/dist/types/trezu_treasuries_query.js +9 -0
- package/dist/types/trezu_treasuries_query.js.map +1 -0
- package/dist/types/trezu_treasury.d.ts +10 -0
- package/dist/types/trezu_treasury.d.ts.map +1 -0
- package/dist/types/trezu_treasury.js +15 -0
- package/dist/types/trezu_treasury.js.map +1 -0
- package/dist/types/trezu_treasury_config.d.ts +8 -0
- package/dist/types/trezu_treasury_config.d.ts.map +1 -0
- package/dist/types/trezu_treasury_config.js +14 -0
- package/dist/types/trezu_treasury_config.js.map +1 -0
- package/dist/types/trezu_treasury_metadata.d.ts +5 -0
- package/dist/types/trezu_treasury_metadata.d.ts.map +1 -0
- package/dist/types/trezu_treasury_metadata.js +13 -0
- package/dist/types/trezu_treasury_metadata.js.map +1 -0
- package/package.json +45 -4
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// SHIT_1170_TX_QUEUE
|
|
3
|
+
// the shapes of our own tx queue routes, under /api/shit-1170/tx-queue.
|
|
4
|
+
//
|
|
5
|
+
// a QUEUE is a BATCH of transactions, not one transaction. the agent
|
|
6
|
+
// queues a swap that needs three calls, they go in together under one
|
|
7
|
+
// queue_id, and the user signs them as one batch in one wallet popup.
|
|
8
|
+
//
|
|
9
|
+
// the model is three levels deep:
|
|
10
|
+
//
|
|
11
|
+
// a QUEUE (queue_id) what / when / why
|
|
12
|
+
// └── a TRANSACTION contractId / method / args / gas / deposit
|
|
13
|
+
// └── an ACCOUNT ROW accountId / status / txHash
|
|
14
|
+
//
|
|
15
|
+
// --- WHY --- the fields are camelCase: they mirror the browser's own
|
|
16
|
+
// session object (`accountId`), and the near-kit toolbox's transaction
|
|
17
|
+
// object, so a queued transaction can be handed to
|
|
18
|
+
// `generic_contract_call_wallet` without being reshaped.
|
|
19
|
+
//
|
|
20
|
+
// --- WHY --- `args` is a json OBJECT and not a string: the toolbox
|
|
21
|
+
// takes a json object of arguments. a string would make the frontend
|
|
22
|
+
// parse it and then re-serialize it.
|
|
23
|
+
//
|
|
24
|
+
// --- WHY --- there is no status on the queue and none on the
|
|
25
|
+
// transaction: the truth is on the account row. a queue is never done —
|
|
26
|
+
// any account may still send it — so there is nothing for a queue
|
|
27
|
+
// status to say, and two accounts sending the same queued transaction
|
|
28
|
+
// produce two different on-chain transactions with two different
|
|
29
|
+
// outcomes.
|
|
30
|
+
// ========================================
|
|
31
|
+
export {};
|
|
32
|
+
// ========================================
|
|
33
|
+
// copyright 2026 by sleet.near
|
|
34
|
+
//# sourceMappingURL=shit_1170_tx_queue.js.map
|
|
@@ -0,0 +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;;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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SHIT_1170_TX_QUEUE_QUERY {
|
|
2
|
+
account_id?: string;
|
|
3
|
+
hide_sent?: boolean;
|
|
4
|
+
contract_id?: string;
|
|
5
|
+
method?: string;
|
|
6
|
+
limit?: number;
|
|
7
|
+
cursor?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SHIT_1170_TX_QUEUE_STATS_QUERY {
|
|
10
|
+
limit?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface SHIT_1170_TX_QUEUE_FACETS_QUERY {
|
|
13
|
+
limit?: number;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=shit_1170_tx_queue_query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// SHIT_1170_TX_QUEUE_QUERY
|
|
3
|
+
// the filters our GET /api/shit-1170/tx-queue route takes.
|
|
4
|
+
//
|
|
5
|
+
// --- WHY --- the field names are snake_case here and NOT renamed to
|
|
6
|
+
// camelCase: the wire names are the ones the api docs and the backend
|
|
7
|
+
// use — `account_id`, `hide_sent`, `contract_id`, `method`, `limit` and
|
|
8
|
+
// `cursor`. `serde_urlencoded` matches the query key literally, so a
|
|
9
|
+
// camelCase name here would be silently ignored by the route.
|
|
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
|
+
//
|
|
18
|
+
// --- WHY --- there is no `status` filter: the status is per account
|
|
19
|
+
// and per transaction, and a queue has no global status to filter on.
|
|
20
|
+
//
|
|
21
|
+
// --- WHY --- `hide_sent` is about ONE account and never about
|
|
22
|
+
// everybody: "has this account sent it" is a question about one
|
|
23
|
+
// account, because a queue can be sent by alice and not by bob. so it
|
|
24
|
+
// needs the account it is about, and the backend answers a 400 when it
|
|
25
|
+
// is given without one.
|
|
26
|
+
// ========================================
|
|
27
|
+
export {};
|
|
28
|
+
// ========================================
|
|
29
|
+
// copyright 2026 by sleet.near
|
|
30
|
+
//# sourceMappingURL=shit_1170_tx_queue_query.js.map
|
|
@@ -0,0 +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,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasuries_query.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasuries_query.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// TREZU_TREASURIES_QUERY
|
|
3
|
+
// the params our /api/trezu/user/treasuries route takes: the account
|
|
4
|
+
// to look up and whether hidden treasuries come back too.
|
|
5
|
+
// ========================================
|
|
6
|
+
export {};
|
|
7
|
+
// ========================================
|
|
8
|
+
// copyright 2026 by sleet.near
|
|
9
|
+
//# sourceMappingURL=trezu_treasuries_query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasuries_query.js","sourceRoot":"","sources":["../../src/types/trezu_treasuries_query.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,yBAAyB;AACzB,qEAAqE;AACrE,0DAA0D;AAC1D,2CAA2C;;AAM3C,2CAA2C;AAC3C,+BAA+B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TREZU_TREASURY_CONFIG } from "./trezu_treasury_config";
|
|
2
|
+
export interface TREZU_TREASURY {
|
|
3
|
+
daoId: string;
|
|
4
|
+
config: TREZU_TREASURY_CONFIG | null;
|
|
5
|
+
isMember: boolean;
|
|
6
|
+
isSaved: boolean;
|
|
7
|
+
isHidden: boolean;
|
|
8
|
+
isConfidential: boolean;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=trezu_treasury.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasury.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasury.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// TREZU_TREASURY
|
|
3
|
+
// one treasury (sputnik dao) as trezu returns it for an account.
|
|
4
|
+
// `daoId` is the dao account, `config` carries the display info and
|
|
5
|
+
// can be null, the four flags describe how the account relates to the
|
|
6
|
+
// treasury.
|
|
7
|
+
//
|
|
8
|
+
// --- WHY --- the field names are camelCase on purpose: the backend
|
|
9
|
+
// forwards the trezu json untouched, so these are the exact keys that
|
|
10
|
+
// arrive in the browser.
|
|
11
|
+
// ========================================
|
|
12
|
+
export {};
|
|
13
|
+
// ========================================
|
|
14
|
+
// copyright 2026 by sleet.near
|
|
15
|
+
//# sourceMappingURL=trezu_treasury.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasury.js","sourceRoot":"","sources":["../../src/types/trezu_treasury.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,iBAAiB;AACjB,iEAAiE;AACjE,oEAAoE;AACpE,sEAAsE;AACtE,YAAY;AACZ,EAAE;AACF,oEAAoE;AACpE,sEAAsE;AACtE,yBAAyB;AACzB,2CAA2C;;AAY3C,2CAA2C;AAC3C,+BAA+B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TREZU_TREASURY_METADATA } from "./trezu_treasury_metadata";
|
|
2
|
+
export interface TREZU_TREASURY_CONFIG {
|
|
3
|
+
metadata: TREZU_TREASURY_METADATA | null;
|
|
4
|
+
name?: string;
|
|
5
|
+
purpose?: string;
|
|
6
|
+
isConfidential: boolean;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=trezu_treasury_config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasury_config.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasury_config.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// TREZU_TREASURY_CONFIG
|
|
3
|
+
// the config trezu attaches to a treasury. `metadata` can be null
|
|
4
|
+
// entirely, the rest of the fields can be missing, and
|
|
5
|
+
// `isConfidential` is always present.
|
|
6
|
+
//
|
|
7
|
+
// the field names are camelCase on purpose: the backend forwards the
|
|
8
|
+
// trezu json untouched, so these are the exact keys that arrive in the
|
|
9
|
+
// browser.
|
|
10
|
+
// ========================================
|
|
11
|
+
export {};
|
|
12
|
+
// ========================================
|
|
13
|
+
// copyright 2026 by sleet.near
|
|
14
|
+
//# sourceMappingURL=trezu_treasury_config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasury_config.js","sourceRoot":"","sources":["../../src/types/trezu_treasury_config.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,wBAAwB;AACxB,kEAAkE;AAClE,uDAAuD;AACvD,sCAAsC;AACtC,EAAE;AACF,qEAAqE;AACrE,uEAAuE;AACvE,WAAW;AACX,2CAA2C;;AAU3C,2CAA2C;AAC3C,+BAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasury_metadata.d.ts","sourceRoot":"","sources":["../../src/types/trezu_treasury_metadata.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// ========================================
|
|
2
|
+
// TREZU_TREASURY_METADATA
|
|
3
|
+
// the metadata block trezu puts on a treasury config. both color and
|
|
4
|
+
// logo can be null, so both are optional.
|
|
5
|
+
//
|
|
6
|
+
// the field names are camelCase on purpose: the backend forwards the
|
|
7
|
+
// trezu json untouched, so these are the exact keys that arrive in the
|
|
8
|
+
// browser. renaming them here would break every caller.
|
|
9
|
+
// ========================================
|
|
10
|
+
export {};
|
|
11
|
+
// ========================================
|
|
12
|
+
// copyright 2026 by sleet.near
|
|
13
|
+
//# sourceMappingURL=trezu_treasury_metadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trezu_treasury_metadata.js","sourceRoot":"","sources":["../../src/types/trezu_treasury_metadata.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,0BAA0B;AAC1B,qEAAqE;AACrE,0CAA0C;AAC1C,EAAE;AACF,qEAAqE;AACrE,uEAAuE;AACvE,wDAAwD;AACxD,2CAA2C;;AAM3C,2CAA2C;AAC3C,+BAA+B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huggies/shit-1170-rex-engine-middleman",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "💩 middleman for interacting with shit-1170 agentic and defi engine",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://sleet-js.near.page",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/huggiesdotnear/shit-1170-rex-engine.git",
|
|
10
|
+
"directory": "middleman"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"dist/**/*",
|
|
28
|
+
"bin/**/*"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"build": "rm -f .tsbuildinfo && bun run tsc --build tsconfig.build.json --force",
|
|
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"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/bun": "latest",
|
|
40
|
+
"@types/node": "^26.6.6",
|
|
41
|
+
"typescript": "^7.0.2"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"typescript": "^7"
|
|
45
|
+
},
|
|
46
|
+
"//": "compatible with bun + tsc --build; emit ESM to dist/, publish dist + bin + README + LICENSE."
|
|
47
|
+
}
|