@symmio/trading-core 3.6.0 → 4.1.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.
- package/dist/balance-history/get-balance-history/types.d.ts +3 -1
- package/dist/balance-history/get-balance-history/types.d.ts.map +1 -1
- package/dist/balance-history/get-balance-history/types.js +1 -1
- package/dist/balance-history/get-balance-history/types.js.map +1 -1
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.d.ts +50 -0
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.js +30 -0
- package/dist/funding/get-funding-index-checkpoints/get-funding-index-checkpoints.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/index.d.ts +5 -0
- package/dist/funding/get-funding-index-checkpoints/index.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.d.ts +16 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.js +7 -0
- package/dist/funding/get-funding-index-checkpoints/query-document.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query.d.ts +37 -0
- package/dist/funding/get-funding-index-checkpoints/query.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/query.js +23 -0
- package/dist/funding/get-funding-index-checkpoints/query.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.d.ts +12 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.d.ts.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.js +31 -0
- package/dist/funding/get-funding-index-checkpoints/to-funding-index-checkpoint-row.js.map +1 -0
- package/dist/funding/get-funding-index-checkpoints/types.d.ts +51 -0
- package/dist/funding/get-funding-index-checkpoints/types.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.d.ts +47 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.js +30 -0
- package/dist/funding/get-quote-funding-settlements/get-quote-funding-settlements.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/index.d.ts +5 -0
- package/dist/funding/get-quote-funding-settlements/index.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query-document.d.ts +16 -0
- package/dist/funding/get-quote-funding-settlements/query-document.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query-document.js +7 -0
- package/dist/funding/get-quote-funding-settlements/query-document.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query.d.ts +37 -0
- package/dist/funding/get-quote-funding-settlements/query.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/query.js +23 -0
- package/dist/funding/get-quote-funding-settlements/query.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.d.ts +12 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.d.ts.map +1 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.js +33 -0
- package/dist/funding/get-quote-funding-settlements/to-quote-funding-settlement-row.js.map +1 -0
- package/dist/funding/get-quote-funding-settlements/types.d.ts +56 -0
- package/dist/funding/get-quote-funding-settlements/types.d.ts.map +1 -0
- package/dist/funding/index.d.ts +3 -0
- package/dist/funding/index.d.ts.map +1 -0
- package/dist/index.d.ts +48 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +408 -386
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.d.ts +44 -0
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.js +30 -0
- package/dist/liquidation/get-liquidation-details/get-liquidation-details.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/index.d.ts +5 -0
- package/dist/liquidation/get-liquidation-details/index.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/query-document.d.ts +16 -0
- package/dist/liquidation/get-liquidation-details/query-document.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/query-document.js +7 -0
- package/dist/liquidation/get-liquidation-details/query-document.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/query.d.ts +37 -0
- package/dist/liquidation/get-liquidation-details/query.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/query.js +23 -0
- package/dist/liquidation/get-liquidation-details/query.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.d.ts +12 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.d.ts.map +1 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.js +32 -0
- package/dist/liquidation/get-liquidation-details/to-liquidation-detail-row.js.map +1 -0
- package/dist/liquidation/get-liquidation-details/types.d.ts +47 -0
- package/dist/liquidation/get-liquidation-details/types.d.ts.map +1 -0
- package/dist/liquidation/index.d.ts +2 -0
- package/dist/liquidation/index.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.d.ts +51 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.js +32 -0
- package/dist/margin/get-margin-transfers/get-margin-transfers.js.map +1 -0
- package/dist/margin/get-margin-transfers/index.d.ts +5 -0
- package/dist/margin/get-margin-transfers/index.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/query-document.d.ts +17 -0
- package/dist/margin/get-margin-transfers/query-document.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/query-document.js +7 -0
- package/dist/margin/get-margin-transfers/query-document.js.map +1 -0
- package/dist/margin/get-margin-transfers/query.d.ts +37 -0
- package/dist/margin/get-margin-transfers/query.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/query.js +23 -0
- package/dist/margin/get-margin-transfers/query.js.map +1 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.d.ts +12 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.d.ts.map +1 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.js +19 -0
- package/dist/margin/get-margin-transfers/to-margin-transfer-row.js.map +1 -0
- package/dist/margin/get-margin-transfers/types.d.ts +27 -0
- package/dist/margin/get-margin-transfers/types.d.ts.map +1 -0
- package/dist/margin/index.d.ts +1 -0
- package/dist/margin/index.d.ts.map +1 -1
- package/dist/pools/markets/get-listing-markets.d.ts +2 -0
- package/dist/pools/markets/get-listing-markets.d.ts.map +1 -1
- package/dist/pools/markets/get-listing-markets.js +1 -0
- package/dist/pools/markets/get-listing-markets.js.map +1 -1
- package/dist/pools/markets/query.d.ts.map +1 -1
- package/dist/pools/markets/query.js +1 -0
- package/dist/pools/markets/query.js.map +1 -1
- package/dist/pools/markets/to-search-params.d.ts +1 -0
- package/dist/pools/markets/to-search-params.d.ts.map +1 -1
- package/dist/pools/markets/to-search-params.js +1 -1
- package/dist/pools/markets/to-search-params.js.map +1 -1
- package/dist/pools/trade-history/query-document.d.ts +3 -0
- package/dist/pools/trade-history/query-document.d.ts.map +1 -1
- package/dist/pools/trade-history/query-document.js +1 -1
- package/dist/pools/trade-history/query-document.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts +22 -12
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.js +20 -21
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query-document.d.ts +5 -5
- package/dist/quotes/get-quote-events-by-type/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query-document.js +1 -1
- package/dist/quotes/get-quote-events-by-type/query-document.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query.d.ts +7 -6
- package/dist/quotes/get-quote-events-by-type/query.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/query.js +19 -17
- package/dist/quotes/get-quote-events-by-type/query.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts +2 -2
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.js +1 -3
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.js.map +1 -1
- package/dist/quotes/get-quote-events-by-type/types.d.ts +14 -3
- package/dist/quotes/get-quote-events-by-type/types.d.ts.map +1 -1
- package/dist/quotes/get-quote-events-by-type/types.js.map +1 -1
- package/dist/quotes/get-quote-funding/get-quote-funding.d.ts +12 -2
- package/dist/quotes/get-quote-funding/get-quote-funding.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/get-quote-funding.js +21 -17
- package/dist/quotes/get-quote-funding/get-quote-funding.js.map +1 -1
- package/dist/quotes/get-quote-funding/query-document.d.ts +3 -2
- package/dist/quotes/get-quote-funding/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/query-document.js +1 -1
- package/dist/quotes/get-quote-funding/query-document.js.map +1 -1
- package/dist/quotes/get-quote-funding/query.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/query.js +2 -1
- package/dist/quotes/get-quote-funding/query.js.map +1 -1
- package/dist/quotes/get-quote-funding/to-funding-row.d.ts.map +1 -1
- package/dist/quotes/get-quote-funding/to-funding-row.js +1 -3
- package/dist/quotes/get-quote-funding/to-funding-row.js.map +1 -1
- package/dist/quotes/get-quote-history/get-quote-history.d.ts +18 -7
- package/dist/quotes/get-quote-history/get-quote-history.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/get-quote-history.js +32 -22
- package/dist/quotes/get-quote-history/get-quote-history.js.map +1 -1
- package/dist/quotes/get-quote-history/query-document.d.ts +12 -7
- package/dist/quotes/get-quote-history/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/query-document.js +1 -1
- package/dist/quotes/get-quote-history/query-document.js.map +1 -1
- package/dist/quotes/get-quote-history/query.d.ts +3 -2
- package/dist/quotes/get-quote-history/query.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/query.js +22 -19
- package/dist/quotes/get-quote-history/query.js.map +1 -1
- package/dist/quotes/get-quote-history/to-history-row.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/to-history-row.js +52 -37
- package/dist/quotes/get-quote-history/to-history-row.js.map +1 -1
- package/dist/quotes/get-quote-history/types.d.ts +41 -0
- package/dist/quotes/get-quote-history/types.d.ts.map +1 -1
- package/dist/quotes/get-quote-history/types.js.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.d.ts +21 -11
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.d.ts.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.js +19 -21
- package/dist/quotes/get-quotes-events-by-type/get-quotes-events-by-type.js.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query-document.d.ts +7 -7
- package/dist/quotes/get-quotes-events-by-type/query-document.d.ts.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query-document.js +1 -1
- package/dist/quotes/get-quotes-events-by-type/query-document.js.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query.d.ts +8 -6
- package/dist/quotes/get-quotes-events-by-type/query.d.ts.map +1 -1
- package/dist/quotes/get-quotes-events-by-type/query.js +22 -20
- package/dist/quotes/get-quotes-events-by-type/query.js.map +1 -1
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.d.ts +38 -0
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.js +28 -0
- package/dist/quotes/get-subgraph-quotes/get-subgraph-quotes.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/index.d.ts +5 -0
- package/dist/quotes/get-subgraph-quotes/index.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query-document.d.ts +15 -0
- package/dist/quotes/get-subgraph-quotes/query-document.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query-document.js +7 -0
- package/dist/quotes/get-subgraph-quotes/query-document.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query.d.ts +37 -0
- package/dist/quotes/get-subgraph-quotes/query.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/query.js +23 -0
- package/dist/quotes/get-subgraph-quotes/query.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.d.ts +12 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.d.ts.map +1 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.js +32 -0
- package/dist/quotes/get-subgraph-quotes/to-subgraph-quote-row.js.map +1 -0
- package/dist/quotes/get-subgraph-quotes/types.d.ts +54 -0
- package/dist/quotes/get-subgraph-quotes/types.d.ts.map +1 -0
- package/dist/quotes/index.d.ts +1 -0
- package/dist/quotes/index.d.ts.map +1 -1
- package/dist/solvers/estimated-price/get-estimated-price.d.ts +2 -0
- package/dist/solvers/estimated-price/get-estimated-price.d.ts.map +1 -1
- package/dist/solvers/estimated-price/get-estimated-price.js +4 -1
- package/dist/solvers/estimated-price/get-estimated-price.js.map +1 -1
- package/dist/solvers/estimated-price/query.d.ts +6 -2
- package/dist/solvers/estimated-price/query.d.ts.map +1 -1
- package/dist/solvers/estimated-price/query.js +3 -2
- package/dist/solvers/estimated-price/query.js.map +1 -1
- package/dist/solvers/funding-info/adapters/enigma-funding-info.d.ts +4 -0
- package/dist/solvers/funding-info/adapters/enigma-funding-info.d.ts.map +1 -0
- package/dist/solvers/funding-info/adapters/enigma-funding-info.js +17 -0
- package/dist/solvers/funding-info/adapters/enigma-funding-info.js.map +1 -0
- package/dist/solvers/funding-info/adapters/rasa-funding-info.d.ts +4 -0
- package/dist/solvers/funding-info/adapters/rasa-funding-info.d.ts.map +1 -0
- package/dist/solvers/funding-info/adapters/rasa-funding-info.js +21 -0
- package/dist/solvers/funding-info/adapters/rasa-funding-info.js.map +1 -0
- package/dist/solvers/funding-info/get-funding-info.d.ts +22 -13
- package/dist/solvers/funding-info/get-funding-info.d.ts.map +1 -1
- package/dist/solvers/funding-info/get-funding-info.js +24 -12
- package/dist/solvers/funding-info/get-funding-info.js.map +1 -1
- package/dist/solvers/funding-info/query.d.ts +14 -6
- package/dist/solvers/funding-info/query.d.ts.map +1 -1
- package/dist/solvers/funding-info/query.js +1 -0
- package/dist/solvers/funding-info/query.js.map +1 -1
- package/dist/solvers/funding-info/to-funding-info.d.ts +8 -4
- package/dist/solvers/funding-info/to-funding-info.d.ts.map +1 -1
- package/dist/solvers/funding-info/to-funding-info.js +2 -1
- package/dist/solvers/funding-info/to-funding-info.js.map +1 -1
- package/dist/solvers/funding-info/types.d.ts +26 -4
- package/dist/solvers/funding-info/types.d.ts.map +1 -1
- package/dist/solvers/market-info/adapters/enigma-market-info.d.ts +3 -3
- package/dist/solvers/market-info/adapters/enigma-market-info.d.ts.map +1 -1
- package/dist/solvers/market-info/adapters/enigma-market-info.js +7 -5
- package/dist/solvers/market-info/adapters/enigma-market-info.js.map +1 -1
- package/dist/solvers/market-info/get-market-info.d.ts +3 -2
- package/dist/solvers/market-info/get-market-info.d.ts.map +1 -1
- package/dist/solvers/market-info/get-market-info.js.map +1 -1
- package/dist/solvers/market-info/types.d.ts +4 -3
- package/dist/solvers/market-info/types.d.ts.map +1 -1
- package/dist/solvers/notional-cap/get-notional-cap-all.d.ts +10 -10
- package/dist/solvers/notional-cap/get-notional-cap-all.d.ts.map +1 -1
- package/dist/solvers/notional-cap/get-notional-cap-all.js +26 -23
- package/dist/solvers/notional-cap/get-notional-cap-all.js.map +1 -1
- package/dist/solvers/notional-cap/get-notional-cap-page.d.ts +49 -0
- package/dist/solvers/notional-cap/get-notional-cap-page.d.ts.map +1 -0
- package/dist/solvers/notional-cap/get-notional-cap-page.js +37 -0
- package/dist/solvers/notional-cap/get-notional-cap-page.js.map +1 -0
- package/dist/solvers/notional-cap/index.d.ts +2 -0
- package/dist/solvers/notional-cap/index.d.ts.map +1 -1
- package/dist/solvers/notional-cap/query-page.d.ts +45 -0
- package/dist/solvers/notional-cap/query-page.d.ts.map +1 -0
- package/dist/solvers/notional-cap/query-page.js +26 -0
- package/dist/solvers/notional-cap/query-page.js.map +1 -0
- package/dist/solvers/symbols/get-symbols.d.ts +3 -2
- package/dist/solvers/symbols/get-symbols.d.ts.map +1 -1
- package/dist/solvers/symbols/get-symbols.js +17 -3
- package/dist/solvers/symbols/get-symbols.js.map +1 -1
- package/dist/solvers/trade-volume/get-trade-volume.d.ts +2 -1
- package/dist/solvers/trade-volume/get-trade-volume.d.ts.map +1 -1
- package/dist/solvers/trade-volume/get-trade-volume.js +6 -1
- package/dist/solvers/trade-volume/get-trade-volume.js.map +1 -1
- package/dist/solvers/trade-volume/to-daily-volume.d.ts +6 -6
- package/dist/solvers/trade-volume/to-daily-volume.js.map +1 -1
- package/dist/solvers/trade-volume/types.d.ts +4 -3
- package/dist/solvers/trade-volume/types.d.ts.map +1 -1
- package/dist/solvers/types/generated/enigma-solver.js +3 -3
- package/dist/solvers/types/generated/enigma-solver.js.map +1 -1
- package/dist/solvers/types/generated/rasa-solver.js +8 -2
- package/dist/solvers/types/generated/rasa-solver.js.map +1 -1
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.d.ts +122 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.js +80 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/get-party-a-open-positions-batch.js.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/index.d.ts +3 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/index.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.d.ts +37 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.js +27 -0
- package/dist/symmio-contracts/symmio/get-party-a-open-positions-batch/query.js.map +1 -0
- package/dist/symmio-contracts/symmio/index.d.ts +2 -0
- package/dist/symmio-contracts/symmio/index.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/index.d.ts +3 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/index.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.d.ts +37 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.js +15 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/is-party-a-liquidated.js.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.d.ts +38 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.js +29 -0
- package/dist/symmio-contracts/symmio/is-party-a-liquidated/query.js.map +1 -0
- package/dist/symmio-subgraph/index.d.ts +1 -0
- package/dist/symmio-subgraph/index.d.ts.map +1 -1
- package/dist/symmio-subgraph/subgraph-decode.d.ts +51 -0
- package/dist/symmio-subgraph/subgraph-decode.d.ts.map +1 -0
- package/dist/symmio-subgraph/subgraph-decode.js +24 -0
- package/dist/symmio-subgraph/subgraph-decode.js.map +1 -0
- package/dist/symmio-subgraph/subgraph-filters.d.ts +97 -0
- package/dist/symmio-subgraph/subgraph-filters.d.ts.map +1 -0
- package/dist/symmio-subgraph/subgraph-filters.js +39 -0
- package/dist/symmio-subgraph/subgraph-filters.js.map +1 -0
- package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +25 -5
- package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts.map +1 -1
- package/dist/symmio-subgraph/types/generated/analytics/gql.js +16 -11
- package/dist/symmio-subgraph/types/generated/analytics/gql.js.map +1 -1
- package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts +3640 -9
- package/dist/symmio-subgraph/types/generated/analytics/graphql.d.ts.map +1 -1
- package/dist/symmio-subgraph/types/generated/analytics/graphql.js +2 -2
- package/dist/symmio-subgraph/types/generated/analytics/graphql.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
|
+
import { MarginTransferType } from '../../balance-history/get-balance-history/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* One `MarginTransfer` entity: margin moved between a SubAccount and one of its
|
|
5
|
+
* Virtual Accounts. Amounts are 18-decimal wei `bigint`.
|
|
6
|
+
*/
|
|
7
|
+
export interface MarginTransferRow {
|
|
8
|
+
/** Subgraph entity id (stable; use as a row key or `idGt` cursor). */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Transfer direction — see {@link MarginTransferType}. */
|
|
11
|
+
type: MarginTransferType | (string & {});
|
|
12
|
+
/** The Virtual Account the margin moved into or out of. */
|
|
13
|
+
virtualAccount: Address;
|
|
14
|
+
/** The SubAccount that owns the Virtual Account. */
|
|
15
|
+
subAccount: Address;
|
|
16
|
+
/** Amount moved (wei). */
|
|
17
|
+
amount: bigint;
|
|
18
|
+
/** Diamond address the transfer was indexed from (the subgraph's `source`). */
|
|
19
|
+
source: Address;
|
|
20
|
+
/** Block timestamp (unix seconds). */
|
|
21
|
+
timestamp: number;
|
|
22
|
+
/** Block number. */
|
|
23
|
+
blockNumber: bigint;
|
|
24
|
+
/** Transaction hash. */
|
|
25
|
+
transaction: Hex;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/margin/get-margin-transfers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAE1F;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,IAAI,EAAE,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACzC,2DAA2D;IAC3D,cAAc,EAAE,OAAO,CAAC;IACxB,oDAAoD;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,WAAW,EAAE,GAAG,CAAC;CAClB"}
|
package/dist/margin/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/margin/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/margin/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
|
@@ -23,6 +23,8 @@ export type GetListingMarketsParameters = Compute<ChainIdParameter & {
|
|
|
23
23
|
chainIds?: readonly ListingDepositChainId[];
|
|
24
24
|
/** Restrict to one lifecycle status. */
|
|
25
25
|
marketStatus?: ListingMarketStatus;
|
|
26
|
+
/** Filter by inventory lock state. Omit for both; false explicitly requests unlocked markets. */
|
|
27
|
+
isLocked?: boolean;
|
|
26
28
|
/** Page size, `1`–`100`. Service default `20`. */
|
|
27
29
|
limit?: number;
|
|
28
30
|
/** Row offset. Service default `0`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-listing-markets.d.ts","sourceRoot":"","sources":["../../../src/pools/markets/get-listing-markets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAKlB;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,gBAAgB,GAAG;IACjB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC5C,wCAAwC;IACxC,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,gDAAgD;IAChD,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,uCAAuC;IACvC,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CACF,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,2BAAgC,GAC3C,OAAO,CAAC,2BAA2B,CAAC,
|
|
1
|
+
{"version":3,"file":"get-listing-markets.d.ts","sourceRoot":"","sources":["../../../src/pools/markets/get-listing-markets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAKlB;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,gBAAgB,GAAG;IACjB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC5C,wCAAwC;IACxC,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,iGAAiG;IACjG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC,gDAAgD;IAChD,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,uCAAuC;IACvC,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CACF,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,GAAE,2BAAgC,GAC3C,OAAO,CAAC,2BAA2B,CAAC,CAwCtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-listing-markets.js","names":[],"sources":["../../../src/pools/markets/get-listing-markets.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { resolveListingService } from \"../resolve-listing\";\nimport type {\n ListingDepositChainId,\n ListingMarketFilters,\n ListingMarketPage,\n ListingMarketSortField,\n ListingMarketStatus,\n ListingSortDirection,\n} from \"../types\";\nimport { marketSearchV2MarketSearchGet } from \"../types/generated/listing-backend\";\nimport { toListingMarketPage } from \"./to-listing-market\";\nimport { toSearchParams } from \"./to-search-params\";\n\n/**\n * Parameters for {@link getListingMarkets}.\n *\n * Every field is optional: with none set the service returns its default first\n * page (20 rows, newest-listed first).\n */\nexport type GetListingMarketsParameters = Compute<\n ChainIdParameter & {\n /**\n * Free-text search, matched against contract address, ticker, and token\n * name.\n *\n * Named `search` rather than `query` because the TanStack options bag on the\n * matching query factory already owns `query`.\n */\n search?: string;\n /**\n * Restrict to tokens deposited on these chains. An empty array is sent as\n * no filter, matching the service's behavior for an absent param.\n */\n chainIds?: readonly ListingDepositChainId[];\n /** Restrict to one lifecycle status. */\n marketStatus?: ListingMarketStatus;\n /** Page size, `1`–`100`. Service default `20`. */\n limit?: number;\n /** Row offset. Service default `0`. */\n offset?: number;\n /** Server-side sort key. */\n sortBy?: ListingMarketSortField;\n /** Sort direction. Service default `\"desc\"`. */\n orderBy?: ListingSortDirection;\n /** Inclusive numeric range filters. */\n filters?: ListingMarketFilters;\n }\n>;\n\n/** Return type of {@link getListingMarkets}: one page of catalog rows. */\nexport type GetListingMarketsReturnType = ListingMarketPage;\n\n/**\n * Fetch a page of the permissionless-listing market catalog — the data behind a\n * pools list.\n *\n * The catalog spans every listing the service knows about, at every lifecycle\n * stage; pass `marketStatus: ListingMarketStatus.LISTED` to see only tradable\n * markets. Rows come back newest-listed first unless `sortBy` is set.\n *\n * @param config - The SDK config.\n * @param parameters - Search, filter, sort, and pagination inputs.\n * @returns One page of {@link ListingMarketPage} rows plus the total row count.\n * @throws {SymmApiError} when the service request fails.\n * @throws {SymmError} `LISTING_NOT_CONFIGURED` when the chain has no listing\n * backend. Gate with `supportsListingService` to hide Pools instead.\n *\n * @example\n * ```ts\n * const page = await getListingMarkets(config, {\n * marketStatus: ListingMarketStatus.LISTED,\n * sortBy: \"tvl\",\n * orderBy: \"desc\",\n * limit: 50,\n * });\n * ```\n */\nexport async function getListingMarkets(\n config: Config,\n parameters: GetListingMarketsParameters = {},\n): Promise<GetListingMarketsReturnType> {\n const { url: baseURL } = resolveListingService(config, { chainId: parameters.chainId });\n\n const params = toSearchParams({\n query: parameters.search,\n chainIds: parameters.chainIds,\n marketStatus: parameters.marketStatus,\n limit: parameters.limit,\n offset: parameters.offset,\n sortBy: parameters.sortBy,\n orderBy: parameters.orderBy,\n filters: parameters.filters,\n });\n\n try {\n const response = await marketSearchV2MarketSearchGet(params, {\n baseURL,\n // The service expects repeated keys for array params (`chain_ids=1&chain_ids=2`).\n // Axios's default bracket form (`chain_ids[]=1`) is not rejected — it is\n // silently *ignored*, so the chain filter would drop and the caller would\n // get the whole catalog back. `indexes: null` selects the repeat form.\n paramsSerializer: { indexes: null },\n });\n\n return toListingMarketPage(response.data);\n } catch (err) {\n if (err instanceof SymmError) throw err;\n\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"FETCH_LISTING_MARKETS_FAILED\", baseURL });\n }\n\n throw new SymmError(\n \"api\",\n \"FETCH_LISTING_MARKETS_FAILED\",\n `Failed to fetch listing markets: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"get-listing-markets.js","names":[],"sources":["../../../src/pools/markets/get-listing-markets.ts"],"sourcesContent":["import { isAxiosError } from \"axios\";\nimport type { Config } from \"../../core/config\";\nimport { SymmApiError, SymmError } from \"../../shared/errors/symm-error\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { resolveListingService } from \"../resolve-listing\";\nimport type {\n ListingDepositChainId,\n ListingMarketFilters,\n ListingMarketPage,\n ListingMarketSortField,\n ListingMarketStatus,\n ListingSortDirection,\n} from \"../types\";\nimport { marketSearchV2MarketSearchGet } from \"../types/generated/listing-backend\";\nimport { toListingMarketPage } from \"./to-listing-market\";\nimport { toSearchParams } from \"./to-search-params\";\n\n/**\n * Parameters for {@link getListingMarkets}.\n *\n * Every field is optional: with none set the service returns its default first\n * page (20 rows, newest-listed first).\n */\nexport type GetListingMarketsParameters = Compute<\n ChainIdParameter & {\n /**\n * Free-text search, matched against contract address, ticker, and token\n * name.\n *\n * Named `search` rather than `query` because the TanStack options bag on the\n * matching query factory already owns `query`.\n */\n search?: string;\n /**\n * Restrict to tokens deposited on these chains. An empty array is sent as\n * no filter, matching the service's behavior for an absent param.\n */\n chainIds?: readonly ListingDepositChainId[];\n /** Restrict to one lifecycle status. */\n marketStatus?: ListingMarketStatus;\n /** Filter by inventory lock state. Omit for both; false explicitly requests unlocked markets. */\n isLocked?: boolean;\n /** Page size, `1`–`100`. Service default `20`. */\n limit?: number;\n /** Row offset. Service default `0`. */\n offset?: number;\n /** Server-side sort key. */\n sortBy?: ListingMarketSortField;\n /** Sort direction. Service default `\"desc\"`. */\n orderBy?: ListingSortDirection;\n /** Inclusive numeric range filters. */\n filters?: ListingMarketFilters;\n }\n>;\n\n/** Return type of {@link getListingMarkets}: one page of catalog rows. */\nexport type GetListingMarketsReturnType = ListingMarketPage;\n\n/**\n * Fetch a page of the permissionless-listing market catalog — the data behind a\n * pools list.\n *\n * The catalog spans every listing the service knows about, at every lifecycle\n * stage; pass `marketStatus: ListingMarketStatus.LISTED` to see only tradable\n * markets. Rows come back newest-listed first unless `sortBy` is set.\n *\n * @param config - The SDK config.\n * @param parameters - Search, filter, sort, and pagination inputs.\n * @returns One page of {@link ListingMarketPage} rows plus the total row count.\n * @throws {SymmApiError} when the service request fails.\n * @throws {SymmError} `LISTING_NOT_CONFIGURED` when the chain has no listing\n * backend. Gate with `supportsListingService` to hide Pools instead.\n *\n * @example\n * ```ts\n * const page = await getListingMarkets(config, {\n * marketStatus: ListingMarketStatus.LISTED,\n * sortBy: \"tvl\",\n * orderBy: \"desc\",\n * limit: 50,\n * });\n * ```\n */\nexport async function getListingMarkets(\n config: Config,\n parameters: GetListingMarketsParameters = {},\n): Promise<GetListingMarketsReturnType> {\n const { url: baseURL } = resolveListingService(config, { chainId: parameters.chainId });\n\n const params = toSearchParams({\n query: parameters.search,\n chainIds: parameters.chainIds,\n marketStatus: parameters.marketStatus,\n isLocked: parameters.isLocked,\n limit: parameters.limit,\n offset: parameters.offset,\n sortBy: parameters.sortBy,\n orderBy: parameters.orderBy,\n filters: parameters.filters,\n });\n\n try {\n const response = await marketSearchV2MarketSearchGet(params, {\n baseURL,\n // The service expects repeated keys for array params (`chain_ids=1&chain_ids=2`).\n // Axios's default bracket form (`chain_ids[]=1`) is not rejected — it is\n // silently *ignored*, so the chain filter would drop and the caller would\n // get the whole catalog back. `indexes: null` selects the repeat form.\n paramsSerializer: { indexes: null },\n });\n\n return toListingMarketPage(response.data);\n } catch (err) {\n if (err instanceof SymmError) throw err;\n\n if (isAxiosError(err)) {\n throw SymmApiError.fromAxios(err, { code: \"FETCH_LISTING_MARKETS_FAILED\", baseURL });\n }\n\n throw new SymmError(\n \"api\",\n \"FETCH_LISTING_MARKETS_FAILED\",\n `Failed to fetch listing markets: ${err instanceof Error ? err.message : String(err)}`,\n { cause: err instanceof Error ? err : undefined },\n );\n }\n}\n"],"mappings":";;;;;;;AAmFA,eAAsB,EACpB,GACA,IAA0C,CAAC,GACL;CACtC,IAAM,EAAE,KAAK,MAAY,EAAsB,GAAQ,EAAE,SAAS,EAAW,QAAQ,CAAC,GAEhF,IAAS,EAAe;EAC5B,OAAO,EAAW;EAClB,UAAU,EAAW;EACrB,cAAc,EAAW;EACzB,UAAU,EAAW;EACrB,OAAO,EAAW;EAClB,QAAQ,EAAW;EACnB,QAAQ,EAAW;EACnB,SAAS,EAAW;EACpB,SAAS,EAAW;CACtB,CAAC;CAED,IAAI;EAUF,OAAO,GAAoB,MATJ,EAA8B,GAAQ;GAC3D;GAKA,kBAAkB,EAAE,SAAS,KAAK;EACpC,CAAC,GAEmC,IAAI;CAC1C,SAAS,GAAK;EAOZ,MANI,aAAe,IAAiB,IAEhC,EAAa,CAAG,IACZ,EAAa,UAAU,GAAK;GAAE,MAAM;GAAgC;EAAQ,CAAC,IAG/E,IAAI,EACR,OACA,gCACA,oCAAoC,aAAe,QAAQ,EAAI,UAAU,OAAO,CAAG,KACnF,EAAE,OAAO,aAAe,QAAQ,IAAM,KAAA,EAAU,CAClD;CACF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/pools/markets/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EACjC,MAAM,uBAAuB,CAAC;AAE/B,wEAAwE;AACxE,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,2BAA2B,GAAG,kBAAkB,CAAC,2DAE3G;AAED,oEAAoE;AACpE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAErF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,2BAA2B,GACzB,cAAc,CAAC,qBAAqB,EAAE,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,CAAC,CACjG,CAAC;AAEF,gFAAgF;AAChF,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAC5D,qBAAqB,EACrB,KAAK,EACL,qBAAqB,EACrB,yBAAyB,CAC1B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,wBAA6B,GACrC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/pools/markets/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnF,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EACjC,MAAM,uBAAuB,CAAC;AAE/B,wEAAwE;AACxE,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,2BAA2B,GAAG,kBAAkB,CAAC,2DAE3G;AAED,oEAAoE;AACpE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAErF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,2BAA2B,GACzB,cAAc,CAAC,qBAAqB,EAAE,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,CAAC,CACjG,CAAC;AAEF,gFAAgF;AAChF,MAAM,MAAM,6BAA6B,GAAG,kBAAkB,CAC5D,qBAAqB,EACrB,KAAK,EACL,qBAAqB,EACrB,yBAAyB,CAC1B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,wBAA6B,GACrC,6BAA6B,CAsB/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","names":[],"sources":["../../../src/pools/markets/query.ts"],"sourcesContent":["import type { Config } from \"../../core/config\";\nimport type { Compute, ConfigKeyParameter } from \"../../shared/types/properties\";\nimport type { QueryParameter, SymmioQueryOptions } from \"../../shared/types/query\";\nimport { filterQueryOptions } from \"../../shared/utils/query\";\nimport {\n getListingMarkets,\n type GetListingMarketsParameters,\n type GetListingMarketsReturnType,\n} from \"./get-listing-markets\";\n\n/** Data resolved by the {@link getListingMarketsQueryOptions} query. */\nexport type GetListingMarketsData = GetListingMarketsReturnType;\n\n/**\n * Build the TanStack Query key for {@link getListingMarketsQueryOptions}.\n *\n * @param options - Search parameters plus the resolved config key.\n * @returns A stable, hashable query key.\n */\nexport function getListingMarketsQueryKey(options: Compute<GetListingMarketsParameters & ConfigKeyParameter>) {\n return [\"getListingMarkets\", filterQueryOptions(options)] as const;\n}\n\n/** Query-key type produced by {@link getListingMarketsQueryKey}. */\nexport type GetListingMarketsQueryKey = ReturnType<typeof getListingMarketsQueryKey>;\n\n/**\n * Options accepted by {@link getListingMarketsQueryOptions}: the action's\n * parameters, an optional cache scope, and TanStack overrides.\n */\nexport type GetListingMarketsOptions = Compute<\n GetListingMarketsParameters &\n QueryParameter<GetListingMarketsData, Error, GetListingMarketsData, GetListingMarketsQueryKey>\n>;\n\n/** TanStack Query options returned by {@link getListingMarketsQueryOptions}. */\nexport type GetListingMarketsQueryOptions = SymmioQueryOptions<\n GetListingMarketsData,\n Error,\n GetListingMarketsData,\n GetListingMarketsQueryKey\n>;\n\n/**\n * Build TanStack Query options for {@link getListingMarkets}.\n *\n * @param config - The SDK config.\n * @param options - Search parameters and TanStack overrides.\n * @returns Options to pass to `useQuery` / `queryClient.fetchQuery`.\n *\n * @example\n * ```ts\n * useQuery(getListingMarketsQueryOptions(config, { sortBy: \"tvl\", limit: 50 }));\n * ```\n */\nexport function getListingMarketsQueryOptions(\n config: Config,\n options: GetListingMarketsOptions = {},\n): GetListingMarketsQueryOptions {\n return {\n ...options.query,\n queryKey: getListingMarketsQueryKey({\n ...options,\n configKey: config.getChainConfigKey(options.chainId),\n }),\n enabled: options.query?.enabled ?? true,\n queryFn: () =>\n getListingMarkets(config, {\n chainId: options.chainId,\n search: options.search,\n chainIds: options.chainIds,\n marketStatus: options.marketStatus,\n limit: options.limit,\n offset: options.offset,\n sortBy: options.sortBy,\n orderBy: options.orderBy,\n filters: options.filters,\n }),\n };\n}\n"],"mappings":";;;AAmBA,SAAgB,EAA0B,GAAoE;CAC5G,OAAO,CAAC,qBAAqB,EAAmB,CAAO,CAAC;AAC1D;AAkCA,SAAgB,EACd,GACA,IAAoC,CAAC,GACN;CAC/B,OAAO;EACL,GAAG,EAAQ;EACX,UAAU,EAA0B;GAClC,GAAG;GACH,WAAW,EAAO,kBAAkB,EAAQ,OAAO;EACrD,CAAC;EACD,SAAS,EAAQ,OAAO,WAAW;EACnC,eACE,EAAkB,GAAQ;GACxB,SAAS,EAAQ;GACjB,QAAQ,EAAQ;GAChB,UAAU,EAAQ;GAClB,cAAc,EAAQ;GACtB,OAAO,EAAQ;GACf,QAAQ,EAAQ;GAChB,QAAQ,EAAQ;GAChB,SAAS,EAAQ;GACjB,SAAS,EAAQ;EACnB,CAAC;CACL;AACF"}
|
|
1
|
+
{"version":3,"file":"query.js","names":[],"sources":["../../../src/pools/markets/query.ts"],"sourcesContent":["import type { Config } from \"../../core/config\";\nimport type { Compute, ConfigKeyParameter } from \"../../shared/types/properties\";\nimport type { QueryParameter, SymmioQueryOptions } from \"../../shared/types/query\";\nimport { filterQueryOptions } from \"../../shared/utils/query\";\nimport {\n getListingMarkets,\n type GetListingMarketsParameters,\n type GetListingMarketsReturnType,\n} from \"./get-listing-markets\";\n\n/** Data resolved by the {@link getListingMarketsQueryOptions} query. */\nexport type GetListingMarketsData = GetListingMarketsReturnType;\n\n/**\n * Build the TanStack Query key for {@link getListingMarketsQueryOptions}.\n *\n * @param options - Search parameters plus the resolved config key.\n * @returns A stable, hashable query key.\n */\nexport function getListingMarketsQueryKey(options: Compute<GetListingMarketsParameters & ConfigKeyParameter>) {\n return [\"getListingMarkets\", filterQueryOptions(options)] as const;\n}\n\n/** Query-key type produced by {@link getListingMarketsQueryKey}. */\nexport type GetListingMarketsQueryKey = ReturnType<typeof getListingMarketsQueryKey>;\n\n/**\n * Options accepted by {@link getListingMarketsQueryOptions}: the action's\n * parameters, an optional cache scope, and TanStack overrides.\n */\nexport type GetListingMarketsOptions = Compute<\n GetListingMarketsParameters &\n QueryParameter<GetListingMarketsData, Error, GetListingMarketsData, GetListingMarketsQueryKey>\n>;\n\n/** TanStack Query options returned by {@link getListingMarketsQueryOptions}. */\nexport type GetListingMarketsQueryOptions = SymmioQueryOptions<\n GetListingMarketsData,\n Error,\n GetListingMarketsData,\n GetListingMarketsQueryKey\n>;\n\n/**\n * Build TanStack Query options for {@link getListingMarkets}.\n *\n * @param config - The SDK config.\n * @param options - Search parameters and TanStack overrides.\n * @returns Options to pass to `useQuery` / `queryClient.fetchQuery`.\n *\n * @example\n * ```ts\n * useQuery(getListingMarketsQueryOptions(config, { sortBy: \"tvl\", limit: 50 }));\n * ```\n */\nexport function getListingMarketsQueryOptions(\n config: Config,\n options: GetListingMarketsOptions = {},\n): GetListingMarketsQueryOptions {\n return {\n ...options.query,\n queryKey: getListingMarketsQueryKey({\n ...options,\n configKey: config.getChainConfigKey(options.chainId),\n }),\n enabled: options.query?.enabled ?? true,\n queryFn: () =>\n getListingMarkets(config, {\n chainId: options.chainId,\n search: options.search,\n chainIds: options.chainIds,\n marketStatus: options.marketStatus,\n isLocked: options.isLocked,\n limit: options.limit,\n offset: options.offset,\n sortBy: options.sortBy,\n orderBy: options.orderBy,\n filters: options.filters,\n }),\n };\n}\n"],"mappings":";;;AAmBA,SAAgB,EAA0B,GAAoE;CAC5G,OAAO,CAAC,qBAAqB,EAAmB,CAAO,CAAC;AAC1D;AAkCA,SAAgB,EACd,GACA,IAAoC,CAAC,GACN;CAC/B,OAAO;EACL,GAAG,EAAQ;EACX,UAAU,EAA0B;GAClC,GAAG;GACH,WAAW,EAAO,kBAAkB,EAAQ,OAAO;EACrD,CAAC;EACD,SAAS,EAAQ,OAAO,WAAW;EACnC,eACE,EAAkB,GAAQ;GACxB,SAAS,EAAQ;GACjB,QAAQ,EAAQ;GAChB,UAAU,EAAQ;GAClB,cAAc,EAAQ;GACtB,UAAU,EAAQ;GAClB,OAAO,EAAQ;GACf,QAAQ,EAAQ;GAChB,QAAQ,EAAQ;GAChB,SAAS,EAAQ;GACjB,SAAS,EAAQ;EACnB,CAAC;CACL;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-search-params.d.ts","sourceRoot":"","sources":["../../../src/pools/markets/to-search-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAuC,MAAM,UAAU,CAAC;AAC1F,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AAoC9F;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcrF;AAED,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,mCAAmC,
|
|
1
|
+
{"version":3,"file":"to-search-params.d.ts","sourceRoot":"","sources":["../../../src/pools/markets/to-search-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAuC,MAAM,UAAU,CAAC;AAC1F,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AAoC9F;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAcrF;AAED,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,mCAAmC,CAa9F"}
|
|
@@ -34,7 +34,7 @@ function t(t) {
|
|
|
34
34
|
}
|
|
35
35
|
function n(e) {
|
|
36
36
|
let n = { ...t(e.filters) };
|
|
37
|
-
return e.query !== void 0 && (n.query = e.query), e.chainIds !== void 0 && (n.chain_ids = [...e.chainIds]), e.marketStatus !== void 0 && (n.market_status = e.marketStatus), e.limit !== void 0 && (n.limit = e.limit), e.offset !== void 0 && (n.offset = e.offset), e.sortBy !== void 0 && (n.sort_by = e.sortBy), e.orderBy !== void 0 && (n.order_by = e.orderBy), n;
|
|
37
|
+
return e.query !== void 0 && (n.query = e.query), e.chainIds !== void 0 && (n.chain_ids = [...e.chainIds]), e.marketStatus !== void 0 && (n.market_status = e.marketStatus), e.isLocked !== void 0 && (n.is_locked = e.isLocked), e.limit !== void 0 && (n.limit = e.limit), e.offset !== void 0 && (n.offset = e.offset), e.sortBy !== void 0 && (n.sort_by = e.sortBy), e.orderBy !== void 0 && (n.order_by = e.orderBy), n;
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
export { n as toSearchParams };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-search-params.js","names":[],"sources":["../../../src/pools/markets/to-search-params.ts"],"sourcesContent":["import type { ListingMarketFilters, ListingTimeRange, ListingValueRange } from \"../types\";\nimport type { MarketSearchV2MarketSearchGetParams } from \"../types/generated/listing-backend\";\n\n/**\n * SDK filter key to the wire field its `__ge` / `__le` bounds attach to.\n *\n * Kept as an explicit table rather than derived from the key name: several\n * fields do not round-trip through a naive camel-to-snake conversion\n * (`vol24h`, `apr24h` → `apr_24h`, `tvlDrivenApy` → `tvl_driven_apy`), and a\n * silent mismatch here is invisible — the service ignores unknown query params\n * and returns the unfiltered catalog.\n */\nconst FILTER_WIRE_FIELD = {\n marketCap: \"market_cap\",\n vol24h: \"vol24h\",\n tvl: \"tvl\",\n liquidity: \"liquidity\",\n openInterest: \"open_interest\",\n reward24h: \"reward_24h\",\n apr: \"apr\",\n apr1h: \"apr_1h\",\n apr6h: \"apr_6h\",\n apr24h: \"apr_24h\",\n apr30d: \"apr_30d\",\n tvlDrivenApy1h: \"tvl_driven_apy_1h\",\n tvlDrivenApy6h: \"tvl_driven_apy_6h\",\n tvlDrivenApy24h: \"tvl_driven_apy_24h\",\n tvlDrivenApy30d: \"tvl_driven_apy_30d\",\n tvlDrivenApy: \"tvl_driven_apy\",\n priceDrivenApy1h: \"price_driven_apy_1h\",\n priceDrivenApy6h: \"price_driven_apy_6h\",\n priceDrivenApy24h: \"price_driven_apy_24h\",\n priceDrivenApy30d: \"price_driven_apy_30d\",\n priceDrivenApy: \"price_driven_apy\",\n listingTime: \"listing_time\",\n} as const satisfies Record<keyof ListingMarketFilters, string>;\n\n/**\n * Flatten {@link ListingMarketFilters} into the service's `{field}__ge` /\n * `{field}__le` query params.\n *\n * `bigint` bounds are stringified rather than passed through: an 18-decimal\n * value exceeds `Number.MAX_SAFE_INTEGER`, so serializing it as a number would\n * round the bound. The service accepts the string form.\n *\n * @param filters - The SDK-shaped filters, or `undefined` for none.\n * @returns A flat bag of wire params; empty when nothing is filtered.\n */\nexport function toFilterParams(filters?: ListingMarketFilters): Record<string, string> {\n if (filters === undefined) return {};\n\n const params: Record<string, string> = {};\n\n for (const [key, wireField] of Object.entries(FILTER_WIRE_FIELD)) {\n const range = filters[key as keyof ListingMarketFilters] as ListingValueRange | ListingTimeRange | undefined;\n if (range === undefined) continue;\n\n if (range.min !== undefined) params[`${wireField}__ge`] = String(range.min);\n if (range.max !== undefined) params[`${wireField}__le`] = String(range.max);\n }\n\n return params;\n}\n\n/** Non-filter query inputs {@link toSearchParams} accepts. */\nexport interface ToSearchParamsInput {\n query?: string;\n chainIds?: readonly number[];\n marketStatus?: string;\n limit?: number;\n offset?: number;\n sortBy?: string;\n orderBy?: \"asc\" | \"desc\";\n filters?: ListingMarketFilters;\n}\n\n/**\n * Build the full `/v2/market/search` query bag from SDK-shaped inputs.\n *\n * Undefined inputs are omitted entirely rather than sent as empty values, so the\n * service applies its own defaults (`limit=20`, `offset=0`, `order_by=desc`).\n *\n * @param input - SDK-shaped search inputs.\n * @returns The wire query params.\n */\nexport function toSearchParams(input: ToSearchParamsInput): MarketSearchV2MarketSearchGetParams {\n const params: Record<string, unknown> = { ...toFilterParams(input.filters) };\n\n if (input.query !== undefined) params.query = input.query;\n if (input.chainIds !== undefined) params.chain_ids = [...input.chainIds];\n if (input.marketStatus !== undefined) params.market_status = input.marketStatus;\n if (input.limit !== undefined) params.limit = input.limit;\n if (input.offset !== undefined) params.offset = input.offset;\n if (input.sortBy !== undefined) params.sort_by = input.sortBy;\n if (input.orderBy !== undefined) params.order_by = input.orderBy;\n\n return params as MarketSearchV2MarketSearchGetParams;\n}\n"],"mappings":";AAYA,IAAM,IAAoB;CACxB,WAAW;CACX,QAAQ;CACR,KAAK;CACL,WAAW;CACX,cAAc;CACd,WAAW;CACX,KAAK;CACL,OAAO;CACP,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,gBAAgB;CAChB,gBAAgB;CAChB,iBAAiB;CACjB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,kBAAkB;CAClB,mBAAmB;CACnB,mBAAmB;CACnB,gBAAgB;CAChB,aAAa;AACf;AAaA,SAAgB,EAAe,GAAwD;CACrF,IAAI,MAAY,KAAA,GAAW,OAAO,CAAC;CAEnC,IAAM,IAAiC,CAAC;CAExC,KAAK,IAAM,CAAC,GAAK,MAAc,OAAO,QAAQ,CAAiB,GAAG;EAChE,IAAM,IAAQ,EAAQ;EAClB,MAAU,KAAA,MAEV,EAAM,QAAQ,KAAA,MAAW,EAAO,GAAG,EAAU,SAAS,OAAO,EAAM,GAAG,IACtE,EAAM,QAAQ,KAAA,MAAW,EAAO,GAAG,EAAU,SAAS,OAAO,EAAM,GAAG;CAC5E;CAEA,OAAO;AACT;
|
|
1
|
+
{"version":3,"file":"to-search-params.js","names":[],"sources":["../../../src/pools/markets/to-search-params.ts"],"sourcesContent":["import type { ListingMarketFilters, ListingTimeRange, ListingValueRange } from \"../types\";\nimport type { MarketSearchV2MarketSearchGetParams } from \"../types/generated/listing-backend\";\n\n/**\n * SDK filter key to the wire field its `__ge` / `__le` bounds attach to.\n *\n * Kept as an explicit table rather than derived from the key name: several\n * fields do not round-trip through a naive camel-to-snake conversion\n * (`vol24h`, `apr24h` → `apr_24h`, `tvlDrivenApy` → `tvl_driven_apy`), and a\n * silent mismatch here is invisible — the service ignores unknown query params\n * and returns the unfiltered catalog.\n */\nconst FILTER_WIRE_FIELD = {\n marketCap: \"market_cap\",\n vol24h: \"vol24h\",\n tvl: \"tvl\",\n liquidity: \"liquidity\",\n openInterest: \"open_interest\",\n reward24h: \"reward_24h\",\n apr: \"apr\",\n apr1h: \"apr_1h\",\n apr6h: \"apr_6h\",\n apr24h: \"apr_24h\",\n apr30d: \"apr_30d\",\n tvlDrivenApy1h: \"tvl_driven_apy_1h\",\n tvlDrivenApy6h: \"tvl_driven_apy_6h\",\n tvlDrivenApy24h: \"tvl_driven_apy_24h\",\n tvlDrivenApy30d: \"tvl_driven_apy_30d\",\n tvlDrivenApy: \"tvl_driven_apy\",\n priceDrivenApy1h: \"price_driven_apy_1h\",\n priceDrivenApy6h: \"price_driven_apy_6h\",\n priceDrivenApy24h: \"price_driven_apy_24h\",\n priceDrivenApy30d: \"price_driven_apy_30d\",\n priceDrivenApy: \"price_driven_apy\",\n listingTime: \"listing_time\",\n} as const satisfies Record<keyof ListingMarketFilters, string>;\n\n/**\n * Flatten {@link ListingMarketFilters} into the service's `{field}__ge` /\n * `{field}__le` query params.\n *\n * `bigint` bounds are stringified rather than passed through: an 18-decimal\n * value exceeds `Number.MAX_SAFE_INTEGER`, so serializing it as a number would\n * round the bound. The service accepts the string form.\n *\n * @param filters - The SDK-shaped filters, or `undefined` for none.\n * @returns A flat bag of wire params; empty when nothing is filtered.\n */\nexport function toFilterParams(filters?: ListingMarketFilters): Record<string, string> {\n if (filters === undefined) return {};\n\n const params: Record<string, string> = {};\n\n for (const [key, wireField] of Object.entries(FILTER_WIRE_FIELD)) {\n const range = filters[key as keyof ListingMarketFilters] as ListingValueRange | ListingTimeRange | undefined;\n if (range === undefined) continue;\n\n if (range.min !== undefined) params[`${wireField}__ge`] = String(range.min);\n if (range.max !== undefined) params[`${wireField}__le`] = String(range.max);\n }\n\n return params;\n}\n\n/** Non-filter query inputs {@link toSearchParams} accepts. */\nexport interface ToSearchParamsInput {\n query?: string;\n chainIds?: readonly number[];\n marketStatus?: string;\n isLocked?: boolean;\n limit?: number;\n offset?: number;\n sortBy?: string;\n orderBy?: \"asc\" | \"desc\";\n filters?: ListingMarketFilters;\n}\n\n/**\n * Build the full `/v2/market/search` query bag from SDK-shaped inputs.\n *\n * Undefined inputs are omitted entirely rather than sent as empty values, so the\n * service applies its own defaults (`limit=20`, `offset=0`, `order_by=desc`).\n *\n * @param input - SDK-shaped search inputs.\n * @returns The wire query params.\n */\nexport function toSearchParams(input: ToSearchParamsInput): MarketSearchV2MarketSearchGetParams {\n const params: Record<string, unknown> = { ...toFilterParams(input.filters) };\n\n if (input.query !== undefined) params.query = input.query;\n if (input.chainIds !== undefined) params.chain_ids = [...input.chainIds];\n if (input.marketStatus !== undefined) params.market_status = input.marketStatus;\n if (input.isLocked !== undefined) params.is_locked = input.isLocked;\n if (input.limit !== undefined) params.limit = input.limit;\n if (input.offset !== undefined) params.offset = input.offset;\n if (input.sortBy !== undefined) params.sort_by = input.sortBy;\n if (input.orderBy !== undefined) params.order_by = input.orderBy;\n\n return params as MarketSearchV2MarketSearchGetParams;\n}\n"],"mappings":";AAYA,IAAM,IAAoB;CACxB,WAAW;CACX,QAAQ;CACR,KAAK;CACL,WAAW;CACX,cAAc;CACd,WAAW;CACX,KAAK;CACL,OAAO;CACP,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,gBAAgB;CAChB,gBAAgB;CAChB,iBAAiB;CACjB,iBAAiB;CACjB,cAAc;CACd,kBAAkB;CAClB,kBAAkB;CAClB,mBAAmB;CACnB,mBAAmB;CACnB,gBAAgB;CAChB,aAAa;AACf;AAaA,SAAgB,EAAe,GAAwD;CACrF,IAAI,MAAY,KAAA,GAAW,OAAO,CAAC;CAEnC,IAAM,IAAiC,CAAC;CAExC,KAAK,IAAM,CAAC,GAAK,MAAc,OAAO,QAAQ,CAAiB,GAAG;EAChE,IAAM,IAAQ,EAAQ;EAClB,MAAU,KAAA,MAEV,EAAM,QAAQ,KAAA,MAAW,EAAO,GAAG,EAAU,SAAS,OAAO,EAAM,GAAG,IACtE,EAAM,QAAQ,KAAA,MAAW,EAAO,GAAG,EAAU,SAAS,OAAO,EAAM,GAAG;CAC5E;CAEA,OAAO;AACT;AAwBA,SAAgB,EAAe,GAAiE;CAC9F,IAAM,IAAkC,EAAE,GAAG,EAAe,EAAM,OAAO,EAAE;CAW3E,OATI,EAAM,UAAU,KAAA,MAAW,EAAO,QAAQ,EAAM,QAChD,EAAM,aAAa,KAAA,MAAW,EAAO,YAAY,CAAC,GAAG,EAAM,QAAQ,IACnE,EAAM,iBAAiB,KAAA,MAAW,EAAO,gBAAgB,EAAM,eAC/D,EAAM,aAAa,KAAA,MAAW,EAAO,YAAY,EAAM,WACvD,EAAM,UAAU,KAAA,MAAW,EAAO,QAAQ,EAAM,QAChD,EAAM,WAAW,KAAA,MAAW,EAAO,SAAS,EAAM,SAClD,EAAM,WAAW,KAAA,MAAW,EAAO,UAAU,EAAM,SACnD,EAAM,YAAY,KAAA,MAAW,EAAO,WAAW,EAAM,UAElD;AACT"}
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* distinct. Scoped to the pool by the quote's `symbolId` and `source`, with no
|
|
8
8
|
* account filter: this is the whole pool's history.
|
|
9
9
|
*
|
|
10
|
+
* The selection matches `QuoteEventsForHistoryDocument` field for field, because
|
|
11
|
+
* both decode through `toQuoteHistoryRow` into the same `QuoteHistoryRow`.
|
|
12
|
+
*
|
|
10
13
|
* The document compiles to a typed query string via graphql-codegen.
|
|
11
14
|
*/
|
|
12
15
|
export declare const PoolQuoteEventsDocument: import('../../symmio-subgraph/types/generated/analytics/graphql.js').TypedDocumentString<import('../../symmio-subgraph/types/generated/analytics/graphql.js').PoolQuoteEventsQuery, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-document.d.ts","sourceRoot":"","sources":["../../../src/pools/trade-history/query-document.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"query-document.d.ts","sourceRoot":"","sources":["../../../src/pools/trade-history/query-document.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;;;;EAoElC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { graphql as e } from "../../symmio-subgraph/types/generated/analytics/gql.js";
|
|
2
2
|
//#region src/pools/trade-history/query-document.ts
|
|
3
|
-
var t = e("\n query PoolQuoteEvents(\n $typeIn: [String!]!\n $symbolId: BigInt!\n $source: Bytes!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n }\n quantity\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n }\n }\n }\n");
|
|
3
|
+
var t = e("\n query PoolQuoteEvents(\n $typeIn: [String!]!\n $symbolId: BigInt!\n $source: Bytes!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n source\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n owner\n }\n quantity\n openedPrice\n initialOpenedPrice\n requestedOpenPrice\n marketPrice\n averageClosedPrice\n closePrice\n closedPrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n tradingFee\n closeFee\n leverage\n cva\n lf\n initialCva\n initialLf\n initialPartyAmm\n timestampSendQuote\n timestampOpenPosition\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\n transaction\n }\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\n metadata\n }\n }\n }\n }\n");
|
|
4
4
|
//#endregion
|
|
5
5
|
export { t as PoolQuoteEventsDocument };
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-document.js","names":[],"sources":["../../../src/pools/trade-history/query-document.ts"],"sourcesContent":["import { graphql } from \"../../symmio-subgraph/types/generated/analytics\";\n\n/**\n * A pool's realized trade history, from the analytics subgraph.\n *\n * Reads the immutable `quoteEvents` collection rather than `quotes`, so a quote\n * closed across several partial closes yields one row per close — each with the\n * frozen `metadata` snapshot of that close, which is what makes the rows\n * distinct. Scoped to the pool by the quote's `symbolId` and `source`, with no\n * account filter: this is the whole pool's history.\n *\n * The document compiles to a typed query string via graphql-codegen.\n */\nexport const PoolQuoteEventsDocument = graphql(`\n query PoolQuoteEvents(\n $typeIn: [String!]!\n $symbolId: BigInt!\n $source: Bytes!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n }\n quantity\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n }\n }\n }\n`);\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"query-document.js","names":[],"sources":["../../../src/pools/trade-history/query-document.ts"],"sourcesContent":["import { graphql } from \"../../symmio-subgraph/types/generated/analytics\";\n\n/**\n * A pool's realized trade history, from the analytics subgraph.\n *\n * Reads the immutable `quoteEvents` collection rather than `quotes`, so a quote\n * closed across several partial closes yields one row per close — each with the\n * frozen `metadata` snapshot of that close, which is what makes the rows\n * distinct. Scoped to the pool by the quote's `symbolId` and `source`, with no\n * account filter: this is the whole pool's history.\n *\n * The selection matches `QuoteEventsForHistoryDocument` field for field, because\n * both decode through `toQuoteHistoryRow` into the same `QuoteHistoryRow`.\n *\n * The document compiles to a typed query string via graphql-codegen.\n */\nexport const PoolQuoteEventsDocument = graphql(`\n query PoolQuoteEvents(\n $typeIn: [String!]!\n $symbolId: BigInt!\n $source: Bytes!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { type_in: $typeIn, quote_: { symbolId: $symbolId, source: $source } }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n source\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n owner\n }\n quantity\n openedPrice\n initialOpenedPrice\n requestedOpenPrice\n marketPrice\n averageClosedPrice\n closePrice\n closedPrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n tradingFee\n closeFee\n leverage\n cva\n lf\n initialCva\n initialLf\n initialPartyAmm\n timestampSendQuote\n timestampOpenPosition\n sendQuoteEvents: quoteEvents(where: { type: \"SEND_QUOTE\" }, first: 1) {\n transaction\n }\n openPositionEvents: quoteEvents(where: { type: \"OPEN_POSITION\" }, first: 1000) {\n metadata\n }\n }\n }\n }\n`);\n"],"mappings":";;AAgBA,IAAa,IAA0B,EAAQ,q9CAoE9C"}
|
|
@@ -1,16 +1,26 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
1
2
|
import { Config } from '../../core/config/index.js';
|
|
2
3
|
import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
|
|
3
|
-
import { QuoteEventRow, QuoteEventType } from './types.js';
|
|
4
|
+
import { QuoteEventRow, QuoteEventType, QuoteSubgraphEventType } from './types.js';
|
|
4
5
|
/** Default page size when `first` is omitted. */
|
|
5
6
|
export declare const DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE = 50;
|
|
6
7
|
/**
|
|
7
8
|
* Parameters for {@link getQuoteEventsByType}.
|
|
8
9
|
*/
|
|
9
|
-
export type GetQuoteEventsByTypeParameters = Compute<ChainIdParameter & {
|
|
10
|
+
export type GetQuoteEventsByTypeParameters<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType> = Compute<ChainIdParameter & {
|
|
10
11
|
/** On-chain quote id to read events for. */
|
|
11
12
|
quoteId: bigint;
|
|
12
|
-
/**
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Event types to include — e.g. {@link PRICE_HISTORY_EVENT_TYPES}, or any
|
|
15
|
+
* subgraph type such as `"OPEN_POSITION"`. Omit to read every type; an empty
|
|
16
|
+
* array reads nothing. The rows' `type` narrows to what is passed.
|
|
17
|
+
*/
|
|
18
|
+
types?: readonly TType[];
|
|
19
|
+
/**
|
|
20
|
+
* The deployment's diamond address (the subgraph's `source`). Omit to match
|
|
21
|
+
* the quote id on any deployment the subgraph indexes.
|
|
22
|
+
*/
|
|
23
|
+
source?: Address;
|
|
14
24
|
/** Page size. @default 50 */
|
|
15
25
|
first?: number;
|
|
16
26
|
/** Page offset. @default 0 */
|
|
@@ -19,20 +29,20 @@ export type GetQuoteEventsByTypeParameters = Compute<ChainIdParameter & {
|
|
|
19
29
|
orderDirection?: "asc" | "desc";
|
|
20
30
|
}>;
|
|
21
31
|
/** Return type of {@link getQuoteEventsByType}. */
|
|
22
|
-
export interface GetQuoteEventsByTypeReturnType {
|
|
32
|
+
export interface GetQuoteEventsByTypeReturnType<TType extends QuoteSubgraphEventType = QuoteEventType> {
|
|
23
33
|
/** The decoded event rows. */
|
|
24
|
-
rows: QuoteEventRow[];
|
|
34
|
+
rows: QuoteEventRow<TType>[];
|
|
25
35
|
/** `true` when the page came back full — caller should fetch the next page. */
|
|
26
36
|
hasMore: boolean;
|
|
27
37
|
}
|
|
28
38
|
/**
|
|
29
|
-
* Read a single quote's
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
39
|
+
* Read a single quote's events from the analytics subgraph, optionally filtered
|
|
40
|
+
* to the requested event types and deployment. The action does no event-type
|
|
41
|
+
* interpretation beyond decoding the metadata JSON — pass
|
|
42
|
+
* {@link PRICE_HISTORY_EVENT_TYPES} for the price-history list.
|
|
33
43
|
*
|
|
34
44
|
* @param config - The SDK config.
|
|
35
|
-
* @param parameters - Quote id, types, pagination, sort, optional chain id.
|
|
45
|
+
* @param parameters - Quote id, optional types and diamond, pagination, sort, optional chain id.
|
|
36
46
|
* @returns The decoded rows plus a `hasMore` flag.
|
|
37
47
|
* @throws {SymmError} when the chain is unsupported or has no analytics subgraph.
|
|
38
48
|
* @throws {SymmApiError} when the subgraph request fails.
|
|
@@ -45,5 +55,5 @@ export interface GetQuoteEventsByTypeReturnType {
|
|
|
45
55
|
* });
|
|
46
56
|
* ```
|
|
47
57
|
*/
|
|
48
|
-
export declare function getQuoteEventsByType(config: Config, parameters: GetQuoteEventsByTypeParameters): Promise<GetQuoteEventsByTypeReturnType
|
|
58
|
+
export declare function getQuoteEventsByType<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType>(config: Config, parameters: GetQuoteEventsByTypeParameters<TType>): Promise<GetQuoteEventsByTypeReturnType<TType>>;
|
|
49
59
|
//# sourceMappingURL=get-quote-events-by-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-quote-events-by-type.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/get-quote-events-by-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-quote-events-by-type.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/get-quote-events-by-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAM/E,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAErF,iDAAiD;AACjD,eAAO,MAAM,sCAAsC,KAAK,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,8BAA8B,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,OAAO,CACjH,gBAAgB,GAAG;IACjB,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,KAAK,EAAE,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACjC,CACF,CAAC;AAEF,mDAAmD;AACnD,MAAM,WAAW,8BAA8B,CAAC,KAAK,SAAS,sBAAsB,GAAG,cAAc;IACnG,8BAA8B;IAC9B,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;IAC7B,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,oBAAoB,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,EACtG,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,8BAA8B,CAAC,KAAK,CAAC,GAChD,OAAO,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC,CAgChD"}
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { querySubgraph as e } from "../../symmio-subgraph/query-subgraph/query-subgraph.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { compactWhere as t, hasEmptyListFilter as n, toSubgraphPage as r } from "../../symmio-subgraph/subgraph-filters.js";
|
|
3
|
+
import { QuoteEventsForQuoteByTypeDocument as i } from "./query-document.js";
|
|
4
|
+
import { toQuoteEventRow as a } from "./to-quote-event-row.js";
|
|
4
5
|
//#region src/quotes/get-quote-events-by-type/get-quote-events-by-type.ts
|
|
5
|
-
var
|
|
6
|
-
async function
|
|
7
|
-
let { chainId:
|
|
8
|
-
|
|
6
|
+
var o = 50;
|
|
7
|
+
async function s(o, s) {
|
|
8
|
+
let { chainId: c, quoteId: l, types: u, source: d, first: f = 50, skip: p = 0, orderDirection: m = "desc" } = s;
|
|
9
|
+
return n(u) ? {
|
|
9
10
|
rows: [],
|
|
10
11
|
hasMore: !1
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
document: t,
|
|
12
|
+
} : r((await e(o, {
|
|
13
|
+
chainId: c,
|
|
14
|
+
document: i,
|
|
15
15
|
variables: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
where: t({
|
|
17
|
+
quoteId: l.toString(),
|
|
18
|
+
type_in: u,
|
|
19
|
+
source: d?.toLowerCase()
|
|
20
|
+
}),
|
|
21
|
+
first: f,
|
|
22
|
+
skip: p,
|
|
23
|
+
orderDirection: m
|
|
21
24
|
}
|
|
22
|
-
})).quoteEvents.map(
|
|
23
|
-
return {
|
|
24
|
-
rows: d,
|
|
25
|
-
hasMore: d.length === c
|
|
26
|
-
};
|
|
25
|
+
})).quoteEvents.map((e) => a(e)), f);
|
|
27
26
|
}
|
|
28
27
|
//#endregion
|
|
29
|
-
export {
|
|
28
|
+
export { o as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, s as getQuoteEventsByType };
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=get-quote-events-by-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-quote-events-by-type.js","names":[],"sources":["../../../src/quotes/get-quote-events-by-type/get-quote-events-by-type.ts"],"sourcesContent":["import type { Config } from \"../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { querySubgraph } from \"../../symmio-subgraph/query-subgraph\";\nimport { QuoteEventsForQuoteByTypeDocument } from \"./query-document\";\nimport { toQuoteEventRow } from \"./to-quote-event-row\";\nimport {
|
|
1
|
+
{"version":3,"file":"get-quote-events-by-type.js","names":[],"sources":["../../../src/quotes/get-quote-events-by-type/get-quote-events-by-type.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { querySubgraph } from \"../../symmio-subgraph/query-subgraph\";\nimport { compactWhere, hasEmptyListFilter, toSubgraphPage } from \"../../symmio-subgraph/subgraph-filters\";\nimport type { QuoteEvent_Filter } from \"../../symmio-subgraph/types/generated/analytics/graphql\";\nimport { QuoteEventsForQuoteByTypeDocument } from \"./query-document\";\nimport { toQuoteEventRow } from \"./to-quote-event-row\";\nimport type { QuoteEventRow, QuoteEventType, QuoteSubgraphEventType } from \"./types\";\n\n/** Default page size when `first` is omitted. */\nexport const DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE = 50;\n\n/**\n * Parameters for {@link getQuoteEventsByType}.\n */\nexport type GetQuoteEventsByTypeParameters<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType> = Compute<\n ChainIdParameter & {\n /** On-chain quote id to read events for. */\n quoteId: bigint;\n /**\n * Event types to include — e.g. {@link PRICE_HISTORY_EVENT_TYPES}, or any\n * subgraph type such as `\"OPEN_POSITION\"`. Omit to read every type; an empty\n * array reads nothing. The rows' `type` narrows to what is passed.\n */\n types?: readonly TType[];\n /**\n * The deployment's diamond address (the subgraph's `source`). Omit to match\n * the quote id on any deployment the subgraph indexes.\n */\n source?: Address;\n /** Page size. @default 50 */\n first?: number;\n /** Page offset. @default 0 */\n skip?: number;\n /** Sort direction on the event timestamp. @default \"desc\" (newest first). */\n orderDirection?: \"asc\" | \"desc\";\n }\n>;\n\n/** Return type of {@link getQuoteEventsByType}. */\nexport interface GetQuoteEventsByTypeReturnType<TType extends QuoteSubgraphEventType = QuoteEventType> {\n /** The decoded event rows. */\n rows: QuoteEventRow<TType>[];\n /** `true` when the page came back full — caller should fetch the next page. */\n hasMore: boolean;\n}\n\n/**\n * Read a single quote's events from the analytics subgraph, optionally filtered\n * to the requested event types and deployment. The action does no event-type\n * interpretation beyond decoding the metadata JSON — pass\n * {@link PRICE_HISTORY_EVENT_TYPES} for the price-history list.\n *\n * @param config - The SDK config.\n * @param parameters - Quote id, optional types and diamond, pagination, sort, optional chain id.\n * @returns The decoded rows plus a `hasMore` flag.\n * @throws {SymmError} when the chain is unsupported or has no analytics subgraph.\n * @throws {SymmApiError} when the subgraph request fails.\n *\n * @example\n * ```ts\n * const { rows, hasMore } = await getQuoteEventsByType(config, {\n * quoteId: 7334n,\n * types: PRICE_HISTORY_EVENT_TYPES,\n * });\n * ```\n */\nexport async function getQuoteEventsByType<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType>(\n config: Config,\n parameters: GetQuoteEventsByTypeParameters<TType>,\n): Promise<GetQuoteEventsByTypeReturnType<TType>> {\n const {\n chainId,\n quoteId,\n types,\n source,\n first = DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE,\n skip = 0,\n orderDirection = \"desc\",\n } = parameters;\n\n if (hasEmptyListFilter(types)) return { rows: [], hasMore: false };\n\n const data = await querySubgraph(config, {\n chainId,\n document: QuoteEventsForQuoteByTypeDocument,\n variables: {\n where: compactWhere<QuoteEvent_Filter>({\n quoteId: quoteId.toString(),\n type_in: types as string[] | undefined,\n source: source?.toLowerCase(),\n }),\n first,\n skip,\n orderDirection,\n },\n });\n\n return toSubgraphPage(\n data.quoteEvents.map((row) => toQuoteEventRow<TType>(row)),\n first,\n );\n}\n"],"mappings":";;;;;AAWA,IAAa,IAAyC;AAyDtD,eAAsB,EACpB,GACA,GACgD;CAChD,IAAM,EACJ,YACA,YACA,UACA,WACA,WAAA,IACA,UAAO,GACP,oBAAiB,WACf;CAmBJ,OAjBI,EAAmB,CAAK,IAAU;EAAE,MAAM,CAAC;EAAG,SAAS;CAAM,IAiB1D,GACL,MAhBiB,EAAc,GAAQ;EACvC;EACA,UAAU;EACV,WAAW;GACT,OAAO,EAAgC;IACrC,SAAS,EAAQ,SAAS;IAC1B,SAAS;IACT,QAAQ,GAAQ,YAAY;GAC9B,CAAC;GACD;GACA;GACA;EACF;CACF,CAAC,GAGM,YAAY,KAAK,MAAQ,EAAuB,CAAG,CAAC,GACzD,CACF;AACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Read
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Read `QuoteEvent`s for one quote id, paginated and sorted by `timestamp`.
|
|
3
|
+
* Filter by the protocol-level `quoteId` scalar so callers never need the diamond
|
|
4
|
+
* address. The action builds `$where`: `quoteId` always, `type_in` and `source`
|
|
5
|
+
* only when passed. Caller decodes `metadata` per row.
|
|
5
6
|
*/
|
|
6
7
|
export declare const QuoteEventsForQuoteByTypeDocument: import('../../symmio-subgraph/types/generated/analytics/graphql.js').TypedDocumentString<import('../../symmio-subgraph/types/generated/analytics/graphql.js').QuoteEventsForQuoteByTypeQuery, {
|
|
7
|
-
|
|
8
|
-
typeIn: Array<string> | string;
|
|
8
|
+
where: import('../../symmio-subgraph/types/generated/analytics/graphql.js').QuoteEvent_Filter;
|
|
9
9
|
first: number;
|
|
10
10
|
skip: number;
|
|
11
11
|
orderDirection: import('../../symmio-subgraph/types/generated/analytics/graphql.js').OrderDirection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-document.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/query-document.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"query-document.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/query-document.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC;;;;;EAiB5C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { graphql as e } from "../../symmio-subgraph/types/generated/analytics/gql.js";
|
|
2
2
|
//#region src/quotes/get-quote-events-by-type/query-document.ts
|
|
3
|
-
var t = e("\n query QuoteEventsForQuoteByType(\n $
|
|
3
|
+
var t = e("\n query QuoteEventsForQuoteByType(\n $where: QuoteEvent_filter!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n");
|
|
4
4
|
//#endregion
|
|
5
5
|
export { t as QuoteEventsForQuoteByTypeDocument };
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-document.js","names":[],"sources":["../../../src/quotes/get-quote-events-by-type/query-document.ts"],"sourcesContent":["import { graphql } from \"../../symmio-subgraph/types/generated/analytics\";\n\n/**\n * Read
|
|
1
|
+
{"version":3,"file":"query-document.js","names":[],"sources":["../../../src/quotes/get-quote-events-by-type/query-document.ts"],"sourcesContent":["import { graphql } from \"../../symmio-subgraph/types/generated/analytics\";\n\n/**\n * Read `QuoteEvent`s for one quote id, paginated and sorted by `timestamp`.\n * Filter by the protocol-level `quoteId` scalar so callers never need the diamond\n * address. The action builds `$where`: `quoteId` always, `type_in` and `source`\n * only when passed. Caller decodes `metadata` per row.\n */\nexport const QuoteEventsForQuoteByTypeDocument = graphql(`\n query QuoteEventsForQuoteByType(\n $where: QuoteEvent_filter!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(first: $first, skip: $skip, orderBy: timestamp, orderDirection: $orderDirection, where: $where) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n`);\n"],"mappings":";;AAQA,IAAa,IAAoC,EAAQ,mYAiBxD"}
|
|
@@ -2,8 +2,9 @@ import { Config } from '../../core/config/index.js';
|
|
|
2
2
|
import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
|
|
3
3
|
import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
|
|
4
4
|
import { GetQuoteEventsByTypeParameters, GetQuoteEventsByTypeReturnType } from './get-quote-events-by-type.js';
|
|
5
|
+
import { QuoteEventType, QuoteSubgraphEventType } from './types.js';
|
|
5
6
|
/** Data resolved by the {@link getQuoteEventsByTypeQueryOptions} query. */
|
|
6
|
-
export type GetQuoteEventsByTypeData = GetQuoteEventsByTypeReturnType
|
|
7
|
+
export type GetQuoteEventsByTypeData<TType extends QuoteSubgraphEventType = QuoteEventType> = GetQuoteEventsByTypeReturnType<TType>;
|
|
7
8
|
/**
|
|
8
9
|
* Build the TanStack Query key for {@link getQuoteEventsByTypeQueryOptions}.
|
|
9
10
|
*
|
|
@@ -12,8 +13,8 @@ export type GetQuoteEventsByTypeData = GetQuoteEventsByTypeReturnType;
|
|
|
12
13
|
* the key is JSON-safe.
|
|
13
14
|
*/
|
|
14
15
|
export declare function getQuoteEventsByTypeQueryKey(options: Compute<GetQuoteEventsByTypeParameters & ConfigKeyParameter>): readonly ["getQuoteEventsByType", {
|
|
16
|
+
readonly types?: QuoteSubgraphEventType[] | undefined;
|
|
15
17
|
readonly quoteId: string;
|
|
16
|
-
readonly types: readonly import('./types.js').QuoteEventType[];
|
|
17
18
|
}];
|
|
18
19
|
/** Query-key type produced by {@link getQuoteEventsByTypeQueryKey}. */
|
|
19
20
|
export type GetQuoteEventsByTypeQueryKey = ReturnType<typeof getQuoteEventsByTypeQueryKey>;
|
|
@@ -21,12 +22,12 @@ export type GetQuoteEventsByTypeQueryKey = ReturnType<typeof getQuoteEventsByTyp
|
|
|
21
22
|
* Options accepted by {@link getQuoteEventsByTypeQueryOptions}: the action's
|
|
22
23
|
* parameters plus TanStack overrides.
|
|
23
24
|
*/
|
|
24
|
-
export type GetQuoteEventsByTypeOptions = Compute<GetQuoteEventsByTypeParameters & QueryParameter<GetQuoteEventsByTypeData
|
|
25
|
+
export type GetQuoteEventsByTypeOptions<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType> = Compute<GetQuoteEventsByTypeParameters<TType> & QueryParameter<GetQuoteEventsByTypeData<TType>, Error, GetQuoteEventsByTypeData<TType>, GetQuoteEventsByTypeQueryKey>>;
|
|
25
26
|
/** TanStack Query options returned by {@link getQuoteEventsByTypeQueryOptions}. */
|
|
26
|
-
export type GetQuoteEventsByTypeQueryOptions = SymmioQueryOptions<GetQuoteEventsByTypeData
|
|
27
|
+
export type GetQuoteEventsByTypeQueryOptions<TType extends QuoteSubgraphEventType = QuoteEventType> = SymmioQueryOptions<GetQuoteEventsByTypeData<TType>, Error, GetQuoteEventsByTypeData<TType>, GetQuoteEventsByTypeQueryKey>;
|
|
27
28
|
/**
|
|
28
29
|
* Build TanStack Query options for {@link getQuoteEventsByType}. The query is
|
|
29
|
-
* disabled
|
|
30
|
+
* disabled while `types` is an empty array; omitting `types` reads every type.
|
|
30
31
|
*
|
|
31
32
|
* @param config - The SDK config.
|
|
32
33
|
* @param options - Query parameters and TanStack overrides.
|
|
@@ -39,5 +40,5 @@ export type GetQuoteEventsByTypeQueryOptions = SymmioQueryOptions<GetQuoteEvents
|
|
|
39
40
|
* );
|
|
40
41
|
* ```
|
|
41
42
|
*/
|
|
42
|
-
export declare function getQuoteEventsByTypeQueryOptions(config: Config, options: GetQuoteEventsByTypeOptions): GetQuoteEventsByTypeQueryOptions
|
|
43
|
+
export declare function getQuoteEventsByTypeQueryOptions<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType>(config: Config, options: GetQuoteEventsByTypeOptions<TType>): GetQuoteEventsByTypeQueryOptions<TType>;
|
|
43
44
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAGnF,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACpC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtE,2EAA2E;AAC3E,MAAM,MAAM,wBAAwB,CAAC,KAAK,SAAS,sBAAsB,GAAG,cAAc,IACxF,8BAA8B,CAAC,KAAK,CAAC,CAAC;AAExC;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,8BAA8B,GAAG,kBAAkB,CAAC;;;GAUjH;AAED,uEAAuE;AACvE,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAE3F;;;GAGG;AACH,MAAM,MAAM,2BAA2B,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,OAAO,CAC9G,8BAA8B,CAAC,KAAK,CAAC,GACnC,cAAc,CACZ,wBAAwB,CAAC,KAAK,CAAC,EAC/B,KAAK,EACL,wBAAwB,CAAC,KAAK,CAAC,EAC/B,4BAA4B,CAC7B,CACJ,CAAC;AAEF,mFAAmF;AACnF,MAAM,MAAM,gCAAgC,CAAC,KAAK,SAAS,sBAAsB,GAAG,cAAc,IAChG,kBAAkB,CAChB,wBAAwB,CAAC,KAAK,CAAC,EAC/B,KAAK,EACL,wBAAwB,CAAC,KAAK,CAAC,EAC/B,4BAA4B,CAC7B,CAAC;AAEJ;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,EAC5G,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAC1C,gCAAgC,CAAC,KAAK,CAAC,CAmBzC"}
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import { filterQueryOptions as e } from "../../shared/utils/query.js";
|
|
2
|
-
import {
|
|
2
|
+
import { hasEmptyListFilter as t } from "../../symmio-subgraph/subgraph-filters.js";
|
|
3
|
+
import { getQuoteEventsByType as n } from "./get-quote-events-by-type.js";
|
|
3
4
|
//#region src/quotes/get-quote-events-by-type/query.ts
|
|
4
|
-
function
|
|
5
|
+
function r(t) {
|
|
5
6
|
return ["getQuoteEventsByType", {
|
|
6
7
|
...e(t),
|
|
7
8
|
quoteId: t.quoteId.toString(),
|
|
8
|
-
types: [...t.types]
|
|
9
|
+
...t.types === void 0 ? {} : { types: [...t.types] }
|
|
9
10
|
}];
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
+
function i(e, i) {
|
|
12
13
|
return {
|
|
13
|
-
...
|
|
14
|
-
queryKey:
|
|
15
|
-
...
|
|
16
|
-
configKey: e.getChainConfigKey(
|
|
14
|
+
...i.query,
|
|
15
|
+
queryKey: r({
|
|
16
|
+
...i,
|
|
17
|
+
configKey: e.getChainConfigKey(i.chainId)
|
|
17
18
|
}),
|
|
18
|
-
enabled: (
|
|
19
|
-
queryFn: () =>
|
|
20
|
-
chainId:
|
|
21
|
-
quoteId:
|
|
22
|
-
types:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
enabled: (i.query?.enabled ?? !0) && !t(i.types),
|
|
20
|
+
queryFn: () => n(e, {
|
|
21
|
+
chainId: i.chainId,
|
|
22
|
+
quoteId: i.quoteId,
|
|
23
|
+
types: i.types,
|
|
24
|
+
source: i.source,
|
|
25
|
+
first: i.first,
|
|
26
|
+
skip: i.skip,
|
|
27
|
+
orderDirection: i.orderDirection
|
|
26
28
|
})
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
//#endregion
|
|
30
|
-
export {
|
|
32
|
+
export { r as getQuoteEventsByTypeQueryKey, i as getQuoteEventsByTypeQueryOptions };
|
|
31
33
|
|
|
32
34
|
//# sourceMappingURL=query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","names":[],"sources":["../../../src/quotes/get-quote-events-by-type/query.ts"],"sourcesContent":["import type { Config } from \"../../core/config\";\nimport type { Compute, ConfigKeyParameter } from \"../../shared/types/properties\";\nimport type { QueryParameter, SymmioQueryOptions } from \"../../shared/types/query\";\nimport { filterQueryOptions } from \"../../shared/utils/query\";\nimport {\n getQuoteEventsByType,\n type GetQuoteEventsByTypeParameters,\n type GetQuoteEventsByTypeReturnType,\n} from \"./get-quote-events-by-type\";\n\n/** Data resolved by the {@link getQuoteEventsByTypeQueryOptions} query. */\nexport type GetQuoteEventsByTypeData = GetQuoteEventsByTypeReturnType
|
|
1
|
+
{"version":3,"file":"query.js","names":[],"sources":["../../../src/quotes/get-quote-events-by-type/query.ts"],"sourcesContent":["import type { Config } from \"../../core/config\";\nimport type { Compute, ConfigKeyParameter } from \"../../shared/types/properties\";\nimport type { QueryParameter, SymmioQueryOptions } from \"../../shared/types/query\";\nimport { filterQueryOptions } from \"../../shared/utils/query\";\nimport { hasEmptyListFilter } from \"../../symmio-subgraph/subgraph-filters\";\nimport {\n getQuoteEventsByType,\n type GetQuoteEventsByTypeParameters,\n type GetQuoteEventsByTypeReturnType,\n} from \"./get-quote-events-by-type\";\nimport type { QuoteEventType, QuoteSubgraphEventType } from \"./types\";\n\n/** Data resolved by the {@link getQuoteEventsByTypeQueryOptions} query. */\nexport type GetQuoteEventsByTypeData<TType extends QuoteSubgraphEventType = QuoteEventType> =\n GetQuoteEventsByTypeReturnType<TType>;\n\n/**\n * Build the TanStack Query key for {@link getQuoteEventsByTypeQueryOptions}.\n *\n * @param options - Query parameters (quote id, types, paging, sort, chain id, config key).\n * @returns A stable, hashable query key. The `bigint` quote id is stringified so\n * the key is JSON-safe.\n */\nexport function getQuoteEventsByTypeQueryKey(options: Compute<GetQuoteEventsByTypeParameters & ConfigKeyParameter>) {\n const filtered = filterQueryOptions(options);\n return [\n \"getQuoteEventsByType\",\n {\n ...filtered,\n quoteId: options.quoteId.toString(),\n ...(options.types === undefined ? {} : { types: [...options.types] }),\n },\n ] as const;\n}\n\n/** Query-key type produced by {@link getQuoteEventsByTypeQueryKey}. */\nexport type GetQuoteEventsByTypeQueryKey = ReturnType<typeof getQuoteEventsByTypeQueryKey>;\n\n/**\n * Options accepted by {@link getQuoteEventsByTypeQueryOptions}: the action's\n * parameters plus TanStack overrides.\n */\nexport type GetQuoteEventsByTypeOptions<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType> = Compute<\n GetQuoteEventsByTypeParameters<TType> &\n QueryParameter<\n GetQuoteEventsByTypeData<TType>,\n Error,\n GetQuoteEventsByTypeData<TType>,\n GetQuoteEventsByTypeQueryKey\n >\n>;\n\n/** TanStack Query options returned by {@link getQuoteEventsByTypeQueryOptions}. */\nexport type GetQuoteEventsByTypeQueryOptions<TType extends QuoteSubgraphEventType = QuoteEventType> =\n SymmioQueryOptions<\n GetQuoteEventsByTypeData<TType>,\n Error,\n GetQuoteEventsByTypeData<TType>,\n GetQuoteEventsByTypeQueryKey\n >;\n\n/**\n * Build TanStack Query options for {@link getQuoteEventsByType}. The query is\n * disabled while `types` is an empty array; omitting `types` reads every type.\n *\n * @param config - The SDK config.\n * @param options - Query parameters and TanStack overrides.\n * @returns Options to pass to `useQuery` / `queryClient.fetchQuery`.\n *\n * @example\n * ```ts\n * useQuery(\n * getQuoteEventsByTypeQueryOptions(config, { quoteId: 7334n, types: PRICE_HISTORY_EVENT_TYPES }),\n * );\n * ```\n */\nexport function getQuoteEventsByTypeQueryOptions<TType extends QuoteSubgraphEventType = QuoteSubgraphEventType>(\n config: Config,\n options: GetQuoteEventsByTypeOptions<TType>,\n): GetQuoteEventsByTypeQueryOptions<TType> {\n return {\n ...options.query,\n queryKey: getQuoteEventsByTypeQueryKey({\n ...options,\n configKey: config.getChainConfigKey(options.chainId),\n }),\n enabled: (options.query?.enabled ?? true) && !hasEmptyListFilter(options.types),\n queryFn: () =>\n getQuoteEventsByType<TType>(config, {\n chainId: options.chainId,\n quoteId: options.quoteId,\n types: options.types,\n source: options.source,\n first: options.first,\n skip: options.skip,\n orderDirection: options.orderDirection,\n }),\n };\n}\n"],"mappings":";;;;AAuBA,SAAgB,EAA6B,GAAuE;CAElH,OAAO,CACL,wBACA;EACE,GAJa,EAAmB,CAI7B;EACH,SAAS,EAAQ,QAAQ,SAAS;EAClC,GAAI,EAAQ,UAAU,KAAA,IAAY,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAQ,KAAK,EAAE;CACrE,CACF;AACF;AA2CA,SAAgB,EACd,GACA,GACyC;CACzC,OAAO;EACL,GAAG,EAAQ;EACX,UAAU,EAA6B;GACrC,GAAG;GACH,WAAW,EAAO,kBAAkB,EAAQ,OAAO;EACrD,CAAC;EACD,UAAU,EAAQ,OAAO,WAAW,OAAS,CAAC,EAAmB,EAAQ,KAAK;EAC9E,eACE,EAA4B,GAAQ;GAClC,SAAS,EAAQ;GACjB,SAAS,EAAQ;GACjB,OAAO,EAAQ;GACf,QAAQ,EAAQ;GAChB,OAAO,EAAQ;GACf,MAAM,EAAQ;GACd,gBAAgB,EAAQ;EAC1B,CAAC;CACL;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QuoteEventsForQuoteByTypeQuery } from '../../symmio-subgraph/types/generated/analytics/graphql.js';
|
|
2
|
-
import { QuoteEventRow } from './types.js';
|
|
2
|
+
import { QuoteEventRow, QuoteEventType, QuoteSubgraphEventType } from './types.js';
|
|
3
3
|
/** A single `quoteEvents` row as returned by the events query. */
|
|
4
4
|
export type RawQuoteEventNode = QuoteEventsForQuoteByTypeQuery["quoteEvents"][number];
|
|
5
5
|
/**
|
|
@@ -7,5 +7,5 @@ export type RawQuoteEventNode = QuoteEventsForQuoteByTypeQuery["quoteEvents"][nu
|
|
|
7
7
|
* `metadata` JSON varies per event type — every recognized field is decoded and
|
|
8
8
|
* placed on the typed row; missing fields stay `undefined`.
|
|
9
9
|
*/
|
|
10
|
-
export declare function toQuoteEventRow(row: RawQuoteEventNode): QuoteEventRow
|
|
10
|
+
export declare function toQuoteEventRow<TType extends QuoteSubgraphEventType = QuoteEventType>(row: RawQuoteEventNode): QuoteEventRow<TType>;
|
|
11
11
|
//# sourceMappingURL=to-quote-event-row.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-quote-event-row.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/to-quote-event-row.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-quote-event-row.d.ts","sourceRoot":"","sources":["../../../src/quotes/get-quote-events-by-type/to-quote-event-row.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yDAAyD,CAAC;AAC9G,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAErF,kEAAkE;AAClE,MAAM,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAwBtF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,SAAS,sBAAsB,GAAG,cAAc,EACnF,GAAG,EAAE,iBAAiB,GACrB,aAAa,CAAC,KAAK,CAAC,CAiBtB"}
|