@symmio/trading-core 0.1.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/balance-history/get-balance-history/balance-history-filter.d.ts +1 -1
- package/dist/balance-history/get-balance-history/get-balance-history.d.ts +3 -3
- package/dist/balance-history/get-balance-history/index.d.ts +5 -5
- package/dist/balance-history/get-balance-history/query-document.d.ts +2 -2
- package/dist/balance-history/get-balance-history/query.d.ts +4 -4
- package/dist/balance-history/get-balance-history/to-balance-history-row.d.ts +2 -2
- package/dist/balance-history/index.d.ts +1 -1
- package/dist/core/chains/actions/get-chain-config.d.ts +1 -1
- package/dist/core/chains/actions/list-supported-chains.d.ts +1 -1
- package/dist/core/chains/index.d.ts +5 -5
- package/dist/core/chains/registry.d.ts +1 -1
- package/dist/core/config/config-key.d.ts +1 -1
- package/dist/core/config/create-config.d.ts +44 -8
- package/dist/core/config/create-config.d.ts.map +1 -1
- package/dist/core/config/create-config.js +29 -22
- package/dist/core/config/create-config.js.map +1 -1
- package/dist/core/config/index.d.ts +1 -1
- package/dist/core/config/merge-chain-config.d.ts +2 -2
- package/dist/index.d.ts +58 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +142 -127
- package/dist/muon/client.d.ts +1 -1
- package/dist/muon/deallocate-upnl-sig/get-deallocate-upnl-sig.d.ts +3 -3
- package/dist/muon/deallocate-upnl-sig/index.d.ts +2 -2
- package/dist/muon/deallocate-upnl-sig/query.d.ts +4 -4
- package/dist/muon/index.d.ts +11 -11
- package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts +4 -4
- package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts.map +1 -1
- package/dist/muon/party-a-overview/get-muon-party-a-overview.js.map +1 -1
- package/dist/muon/party-a-overview/index.d.ts +2 -2
- package/dist/muon/party-a-overview/query.d.ts +4 -4
- package/dist/muon/price/get-muon-price.d.ts +3 -3
- package/dist/muon/price/index.d.ts +2 -2
- package/dist/muon/price/query.d.ts +4 -4
- package/dist/muon/price-range/get-muon-price-range.d.ts +4 -4
- package/dist/muon/price-range/get-muon-price-range.d.ts.map +1 -1
- package/dist/muon/price-range/get-muon-price-range.js.map +1 -1
- package/dist/muon/price-range/index.d.ts +2 -2
- package/dist/muon/price-range/query.d.ts +4 -4
- package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts +4 -4
- package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts.map +1 -1
- package/dist/muon/settle-upnl/get-muon-settle-upnl.js.map +1 -1
- package/dist/muon/settle-upnl/index.d.ts +2 -2
- package/dist/muon/settle-upnl/query.d.ts +4 -4
- package/dist/muon/upnl/get-muon-upnl.d.ts +4 -4
- package/dist/muon/upnl/get-muon-upnl.d.ts.map +1 -1
- package/dist/muon/upnl/get-muon-upnl.js.map +1 -1
- package/dist/muon/upnl/index.d.ts +2 -2
- package/dist/muon/upnl/query.d.ts +4 -4
- package/dist/muon/upnl-a/get-muon-upnl-a.d.ts +4 -4
- package/dist/muon/upnl-a/get-muon-upnl-a.d.ts.map +1 -1
- package/dist/muon/upnl-a/get-muon-upnl-a.js.map +1 -1
- package/dist/muon/upnl-a/index.d.ts +2 -2
- package/dist/muon/upnl-a/query.d.ts +4 -4
- package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts +4 -4
- package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts.map +1 -1
- package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js.map +1 -1
- package/dist/muon/upnl-a-with-symbol-price/index.d.ts +2 -2
- package/dist/muon/upnl-a-with-symbol-price/query.d.ts +4 -4
- package/dist/muon/upnl-b/get-muon-upnl-b.d.ts +3 -3
- package/dist/muon/upnl-b/index.d.ts +2 -2
- package/dist/muon/upnl-b/query.d.ts +4 -4
- package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts +4 -4
- package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts.map +1 -1
- package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js.map +1 -1
- package/dist/muon/upnl-with-symbol-price/index.d.ts +2 -2
- package/dist/muon/upnl-with-symbol-price/query.d.ts +4 -4
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/search/index.d.ts +2 -2
- package/dist/notifications/search/query.d.ts +4 -4
- package/dist/notifications/search/search-notifications.d.ts +3 -3
- package/dist/notifications/types.d.ts +1 -1
- package/dist/price-service/enigma/health/get-enigma-price-service-health.d.ts +2 -2
- package/dist/price-service/enigma/health/index.d.ts +2 -2
- package/dist/price-service/enigma/health/query.d.ts +4 -4
- package/dist/price-service/enigma/index.d.ts +5 -5
- package/dist/price-service/enigma/metadata/get-enigma-price-service-metadata.d.ts +3 -3
- package/dist/price-service/enigma/metadata/index.d.ts +2 -2
- package/dist/price-service/enigma/metadata/query.d.ts +4 -4
- package/dist/price-service/enigma/prices-by-addresses/get-enigma-price-service-prices-by-addresses.d.ts +3 -3
- package/dist/price-service/enigma/prices-by-addresses/index.d.ts +2 -2
- package/dist/price-service/enigma/prices-by-addresses/query.d.ts +4 -4
- package/dist/price-service/enigma/prices-by-names/get-enigma-price-service-prices-by-names.d.ts +3 -3
- package/dist/price-service/enigma/prices-by-names/index.d.ts +2 -2
- package/dist/price-service/enigma/prices-by-names/query.d.ts +4 -4
- package/dist/price-service/enigma/symbols-info/get-enigma-price-service-symbols-info.d.ts +3 -3
- package/dist/price-service/enigma/symbols-info/index.d.ts +2 -2
- package/dist/price-service/enigma/symbols-info/query.d.ts +4 -4
- package/dist/price-service/index.d.ts +1 -1
- package/dist/quotes/apply-notification.d.ts +2 -2
- package/dist/quotes/fees/index.d.ts +2 -2
- package/dist/quotes/fingerprint.d.ts +1 -1
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts +3 -3
- package/dist/quotes/get-quote-events-by-type/index.d.ts +4 -4
- package/dist/quotes/get-quote-events-by-type/query-document.d.ts +2 -2
- package/dist/quotes/get-quote-events-by-type/query.d.ts +5 -5
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts +2 -2
- package/dist/quotes/get-quote-funding/get-quote-funding.d.ts +3 -3
- package/dist/quotes/get-quote-funding/index.d.ts +4 -4
- package/dist/quotes/get-quote-funding/query-document.d.ts +1 -1
- package/dist/quotes/get-quote-funding/query.d.ts +4 -4
- package/dist/quotes/get-quote-funding/to-funding-row.d.ts +2 -2
- package/dist/quotes/get-quote-history/close-type.d.ts +2 -2
- package/dist/quotes/get-quote-history/get-quote-history.d.ts +3 -3
- package/dist/quotes/get-quote-history/index.d.ts +5 -5
- package/dist/quotes/get-quote-history/query-document.d.ts +2 -2
- package/dist/quotes/get-quote-history/query.d.ts +4 -4
- package/dist/quotes/get-quote-history/to-history-row.d.ts +2 -2
- package/dist/quotes/get-quote-history/types.d.ts +1 -1
- package/dist/quotes/get-sub-account-quotes/get-sub-account-quotes.d.ts +3 -3
- package/dist/quotes/get-sub-account-quotes/index.d.ts +2 -2
- package/dist/quotes/get-sub-account-quotes/query.d.ts +4 -4
- package/dist/quotes/grouping/aggregate-metrics.d.ts +2 -2
- package/dist/quotes/grouping/group-quotes.d.ts +2 -2
- package/dist/quotes/grouping/group-strategy.d.ts +1 -1
- package/dist/quotes/grouping/index.d.ts +5 -5
- package/dist/quotes/grouping/partition-quotes.d.ts +1 -1
- package/dist/quotes/grouping/quote-group.d.ts +3 -3
- package/dist/quotes/index.d.ts +16 -16
- package/dist/quotes/liquidation/calculate-liquidation-price.d.ts +1 -1
- package/dist/quotes/liquidation/index.d.ts +1 -1
- package/dist/quotes/open-quantity.d.ts +1 -1
- package/dist/quotes/reconcile-quotes.d.ts +5 -5
- package/dist/quotes/resolve-quote-accounts.d.ts +3 -3
- package/dist/quotes/should-accelerate.d.ts +1 -1
- package/dist/quotes/to-unified-quote.d.ts +4 -4
- package/dist/quotes/unified-quote.d.ts +3 -3
- package/dist/quotes/upnl/calculate-quote-pnl.d.ts +1 -1
- package/dist/quotes/upnl/calculate-quote-upnl.d.ts +1 -1
- package/dist/quotes/upnl/index.d.ts +3 -3
- package/dist/shared/utils/simulate-before-write.d.ts +2 -2
- package/dist/solvers/error-codes/get-solver-error-codes.d.ts +2 -2
- package/dist/solvers/error-codes/index.d.ts +2 -2
- package/dist/solvers/error-codes/query.d.ts +4 -4
- package/dist/solvers/estimated-price/get-estimated-price.d.ts +58 -0
- package/dist/solvers/estimated-price/get-estimated-price.d.ts.map +1 -0
- package/dist/solvers/estimated-price/get-estimated-price.js +30 -0
- package/dist/solvers/estimated-price/get-estimated-price.js.map +1 -0
- package/dist/solvers/estimated-price/index.d.ts +5 -0
- package/dist/solvers/estimated-price/index.d.ts.map +1 -0
- package/dist/solvers/estimated-price/price-impact.d.ts +25 -0
- package/dist/solvers/estimated-price/price-impact.d.ts.map +1 -0
- package/dist/solvers/estimated-price/price-impact.js +9 -0
- package/dist/solvers/estimated-price/price-impact.js.map +1 -0
- package/dist/solvers/estimated-price/query.d.ts +26 -0
- package/dist/solvers/estimated-price/query.d.ts.map +1 -0
- package/dist/solvers/estimated-price/query.js +28 -0
- package/dist/solvers/estimated-price/query.js.map +1 -0
- package/dist/solvers/estimated-price/to-estimated-price.d.ts +9 -0
- package/dist/solvers/estimated-price/to-estimated-price.d.ts.map +1 -0
- package/dist/solvers/estimated-price/to-estimated-price.js +8 -0
- package/dist/solvers/estimated-price/to-estimated-price.js.map +1 -0
- package/dist/solvers/funding-info/get-funding-info.d.ts +37 -0
- package/dist/solvers/funding-info/get-funding-info.d.ts.map +1 -0
- package/dist/solvers/funding-info/get-funding-info.js +24 -0
- package/dist/solvers/funding-info/get-funding-info.js.map +1 -0
- package/dist/solvers/funding-info/index.d.ts +6 -0
- package/dist/solvers/funding-info/index.d.ts.map +1 -0
- package/dist/solvers/funding-info/project-funding-rate.d.ts +30 -0
- package/dist/solvers/funding-info/project-funding-rate.d.ts.map +1 -0
- package/dist/solvers/funding-info/project-funding-rate.js +9 -0
- package/dist/solvers/funding-info/project-funding-rate.js.map +1 -0
- package/dist/solvers/funding-info/query.d.ts +28 -0
- package/dist/solvers/funding-info/query.d.ts.map +1 -0
- package/dist/solvers/funding-info/query.js +24 -0
- package/dist/solvers/funding-info/query.js.map +1 -0
- package/dist/solvers/funding-info/to-funding-info.d.ts +14 -0
- package/dist/solvers/funding-info/to-funding-info.d.ts.map +1 -0
- package/dist/solvers/funding-info/to-funding-info.js +15 -0
- package/dist/solvers/funding-info/to-funding-info.js.map +1 -0
- package/dist/solvers/funding-info/types.d.ts +35 -0
- package/dist/solvers/funding-info/types.d.ts.map +1 -0
- package/dist/solvers/instant-close/get-instant-closes/get-instant-closes.d.ts +3 -3
- package/dist/solvers/instant-close/get-instant-closes/index.d.ts +3 -3
- package/dist/solvers/instant-close/get-instant-closes/query.d.ts +4 -4
- package/dist/solvers/instant-close/get-instant-closes/to-pending-instant-close.d.ts +1 -1
- package/dist/solvers/instant-close/index.d.ts +7 -7
- package/dist/solvers/instant-close/instant-close/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close/instant-close.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close/query.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-auto/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close-auto/instant-close-auto.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-auto/query.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-bulk/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-bulk/query.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-bulk-auto/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.d.ts +4 -4
- package/dist/solvers/instant-close/instant-close-bulk-auto/query.d.ts +3 -3
- package/dist/solvers/instant-close/prepare-instant-close-params/index.d.ts +1 -1
- package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.d.ts +4 -4
- package/dist/solvers/instant-close/shared/close-math.d.ts +1 -1
- package/dist/solvers/instant-close/shared/hedger-api.d.ts +3 -3
- package/dist/solvers/instant-close/shared/index.d.ts +5 -5
- package/dist/solvers/instant-close/shared/quote-constraints.d.ts +1 -1
- package/dist/solvers/instant-close/shared/types.d.ts +2 -2
- package/dist/solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.d.ts +2 -2
- package/dist/solvers/instant-open/get-instant-open-quote-id/index.d.ts +2 -2
- package/dist/solvers/instant-open/get-instant-open-quote-id/query.d.ts +4 -4
- package/dist/solvers/instant-open/get-instant-opens/get-instant-opens.d.ts +3 -3
- package/dist/solvers/instant-open/get-instant-opens/index.d.ts +3 -3
- package/dist/solvers/instant-open/get-instant-opens/query.d.ts +4 -4
- package/dist/solvers/instant-open/get-instant-opens/to-pending-instant-open.d.ts +2 -2
- package/dist/solvers/instant-open/index.d.ts +6 -6
- package/dist/solvers/instant-open/instant-open/index.d.ts +2 -2
- package/dist/solvers/instant-open/instant-open/instant-open.d.ts +3 -3
- package/dist/solvers/instant-open/instant-open/query.d.ts +3 -3
- package/dist/solvers/instant-open/instant-open-auto/index.d.ts +2 -2
- package/dist/solvers/instant-open/instant-open-auto/instant-open-auto.d.ts +3 -3
- package/dist/solvers/instant-open/instant-open-auto/query.d.ts +3 -3
- package/dist/solvers/instant-open/prepare-instant-open-params/index.d.ts +2 -2
- package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts +6 -6
- package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/index.d.ts +4 -4
- package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.d.ts +3 -3
- package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.d.ts +3 -3
- package/dist/solvers/instant-open/shared/calldata.d.ts +1 -1
- package/dist/solvers/instant-open/shared/eip712.d.ts +2 -2
- package/dist/solvers/instant-open/shared/hedger-api.d.ts +3 -3
- package/dist/solvers/instant-open/shared/index.d.ts +8 -8
- package/dist/solvers/instant-open/shared/operations.d.ts +2 -2
- package/dist/solvers/instant-open/shared/quote-constraints.d.ts +3 -3
- package/dist/solvers/instant-open/shared/trade-math.d.ts +49 -1
- package/dist/solvers/instant-open/shared/trade-math.d.ts.map +1 -1
- package/dist/solvers/instant-open/shared/trade-math.js +5 -1
- package/dist/solvers/instant-open/shared/trade-math.js.map +1 -1
- package/dist/solvers/instant-open/shared/types.d.ts +4 -4
- package/dist/solvers/locked-params/get-locked-params.d.ts +3 -3
- package/dist/solvers/locked-params/index.d.ts +3 -3
- package/dist/solvers/locked-params/query.d.ts +4 -4
- package/dist/solvers/market-info/get-market-info.d.ts +32 -0
- package/dist/solvers/market-info/get-market-info.d.ts.map +1 -0
- package/dist/solvers/market-info/get-market-info.js +23 -0
- package/dist/solvers/market-info/get-market-info.js.map +1 -0
- package/dist/solvers/market-info/index.d.ts +5 -0
- package/dist/solvers/market-info/index.d.ts.map +1 -0
- package/dist/solvers/market-info/query.d.ts +29 -0
- package/dist/solvers/market-info/query.d.ts.map +1 -0
- package/dist/solvers/market-info/query.js +21 -0
- package/dist/solvers/market-info/query.js.map +1 -0
- package/dist/solvers/market-info/to-market-info.d.ts +13 -0
- package/dist/solvers/market-info/to-market-info.d.ts.map +1 -0
- package/dist/solvers/market-info/to-market-info.js +28 -0
- package/dist/solvers/market-info/to-market-info.js.map +1 -0
- package/dist/solvers/market-info/types.d.ts +32 -0
- package/dist/solvers/market-info/types.d.ts.map +1 -0
- package/dist/solvers/markets/get-markets.d.ts +3 -3
- package/dist/solvers/markets/index.d.ts +3 -3
- package/dist/solvers/markets/query.d.ts +4 -4
- package/dist/solvers/notional-cap/check-notional-cap.d.ts +2 -2
- package/dist/solvers/notional-cap/get-notional-cap-all.d.ts +3 -3
- package/dist/solvers/notional-cap/get-notional-cap-all.d.ts.map +1 -1
- package/dist/solvers/notional-cap/get-notional-cap-all.js +1 -5
- package/dist/solvers/notional-cap/get-notional-cap-all.js.map +1 -1
- package/dist/solvers/notional-cap/get-notional-cap-by-symbol-id.d.ts +3 -3
- package/dist/solvers/notional-cap/get-open-interest-by-symbol-id.d.ts +2 -2
- package/dist/solvers/notional-cap/index.d.ts +9 -9
- package/dist/solvers/notional-cap/query-all.d.ts +4 -4
- package/dist/solvers/notional-cap/query-open-interest.d.ts +4 -4
- package/dist/solvers/notional-cap/query.d.ts +4 -4
- package/dist/solvers/notional-cap/to-market-notional-cap.d.ts +2 -2
- package/dist/solvers/notional-cap/to-market-notional-cap.d.ts.map +1 -1
- package/dist/solvers/notional-cap/to-market-notional-cap.js +1 -5
- package/dist/solvers/notional-cap/to-market-notional-cap.js.map +1 -1
- package/dist/solvers/shared/index.d.ts +1 -1
- package/dist/solvers/shared/resolvers/index.d.ts +3 -3
- package/dist/solvers/shared/resolvers/resolve-mark-price.d.ts +1 -1
- package/dist/solvers/shared/resolvers/resolve-market.d.ts +2 -2
- package/dist/solvers/types/generated/enigma-solver.js +16 -4
- package/dist/solvers/types/generated/enigma-solver.js.map +1 -1
- package/dist/symmio-contracts/abi/index.d.ts +3 -3
- package/dist/symmio-contracts/abi/v0.8.5/index.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/add-margin.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/delete-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/deposit-and-allocate-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/deposit-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/edit-account-name.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-info.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-of.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-sub-account-virtual-nonce.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-sub-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-sub-accounts-count-of-user.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-virtual-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-addresses-of-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/predict-next-virtual-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/remove-margin.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/simulate-add-margin.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-create-sub-accounts.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-delete-sub-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-for-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-edit-account-name.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-remove-margin.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/index.d.ts +49 -49
- package/dist/symmio-contracts/account-layer/query/add-margin.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/create-sub-accounts.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/delete-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/deposit-and-allocate-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/deposit-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/edit-account-name.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/get-account-balance-info.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-account-balance-of.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-sub-account-virtual-nonce.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-sub-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-sub-accounts-count-of-user.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts-addresses.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-virtual-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-addresses-of-sub-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/predict-next-virtual-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/remove-margin.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/simulate-add-margin.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-create-sub-accounts.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-delete-sub-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-deposit-and-allocate-for-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-deposit-for-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-edit-account-name.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-remove-margin.d.ts +3 -3
- package/dist/symmio-contracts/collateral/actions/approve-collateral.d.ts +2 -2
- package/dist/symmio-contracts/collateral/actions/get-collateral-allowance.d.ts +2 -2
- package/dist/symmio-contracts/collateral/actions/get-collateral-balance.d.ts +2 -2
- package/dist/symmio-contracts/collateral/actions/simulate-approve-collateral.d.ts +3 -3
- package/dist/symmio-contracts/collateral/index.d.ts +8 -8
- package/dist/symmio-contracts/collateral/query/approve-collateral.d.ts +2 -2
- package/dist/symmio-contracts/collateral/query/get-collateral-allowance.d.ts +4 -4
- package/dist/symmio-contracts/collateral/query/get-collateral-balance.d.ts +4 -4
- package/dist/symmio-contracts/collateral/query/simulate-approve-collateral.d.ts +3 -3
- package/dist/symmio-contracts/instant-layer/actions/get-delegation-expiry.d.ts +2 -2
- package/dist/symmio-contracts/instant-layer/actions/get-is-delegation-active.d.ts +2 -2
- package/dist/symmio-contracts/instant-layer/actions/grant-delegation.d.ts +3 -3
- package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegation.d.ts +4 -4
- package/dist/symmio-contracts/instant-layer/index.d.ts +9 -9
- package/dist/symmio-contracts/instant-layer/query/get-delegation-expiry.d.ts +4 -4
- package/dist/symmio-contracts/instant-layer/query/get-is-delegation-active.d.ts +4 -4
- package/dist/symmio-contracts/instant-layer/query/grant-delegation.d.ts +2 -2
- package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegation.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/allocate.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/deallocate.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/finalize-withdraw-request.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-fee-for-user.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-last-withdraw-request-id.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-onchain-contract-markets.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-pending-withdraw-requests.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-quote.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-withdraw-requests.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-withdrawable-time.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/initiate-withdraw.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/request-cancel-withdraw.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/simulate-allocate.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-deallocate.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-initiate-withdraw.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.d.ts +4 -4
- package/dist/symmio-contracts/symmio/index.d.ts +40 -40
- package/dist/symmio-contracts/symmio/internal/call-as-sub-account.d.ts +1 -1
- package/dist/symmio-contracts/symmio/internal/simulate-call-as-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/symmio/parts.d.ts +1 -1
- package/dist/symmio-contracts/symmio/query/allocate.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/deallocate.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/finalize-withdraw-request.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/get-fee-for-user.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-last-withdraw-request-id.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-onchain-contract-markets.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-party-a-open-positions.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-party-a-pending-quotes.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-pending-withdraw-requests.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-quote.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-withdraw-requests.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-withdrawable-time.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/initiate-withdraw.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/request-cancel-withdraw.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/simulate-allocate.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-deallocate.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-finalize-withdraw-request.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-initiate-withdraw.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-request-cancel-withdraw.d.ts +3 -3
- package/dist/symmio-contracts/symmio/types.d.ts +1 -1
- package/dist/symmio-contracts/symmio/types.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/types.js.map +1 -1
- package/dist/symmio-subgraph/index.d.ts +1 -1
- package/dist/symmio-subgraph/query-subgraph/index.d.ts +2 -2
- package/dist/symmio-subgraph/query-subgraph/query-subgraph.d.ts +3 -3
- package/dist/symmio-subgraph/query-subgraph/query.d.ts +4 -4
- package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +4 -4
- package/dist/symmio-subgraph/types/generated/analytics/index.d.ts +1 -1
- package/dist/symmio-subgraph/types/generated/events/gql.d.ts +1 -1
- package/dist/symmio-subgraph/types/generated/events/index.d.ts +1 -1
- package/dist/tpsl/config/get-tpsl-config.d.ts +3 -3
- package/dist/tpsl/config/index.d.ts +2 -2
- package/dist/tpsl/config/query.d.ts +4 -4
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts +37 -0
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js +43 -0
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/index.d.ts +3 -0
- package/dist/tpsl/delete-quote-tpsl/index.d.ts.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/query.d.ts +15 -0
- package/dist/tpsl/delete-quote-tpsl/query.d.ts.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/query.js +12 -0
- package/dist/tpsl/delete-quote-tpsl/query.js.map +1 -0
- package/dist/tpsl/get-quote-tpsl/get-quote-tpsl.d.ts +4 -4
- package/dist/tpsl/get-quote-tpsl/index.d.ts +2 -2
- package/dist/tpsl/get-quote-tpsl/query.d.ts +7 -5
- package/dist/tpsl/get-quote-tpsl/query.d.ts.map +1 -1
- package/dist/tpsl/get-quote-tpsl/query.js +4 -1
- package/dist/tpsl/get-quote-tpsl/query.js.map +1 -1
- package/dist/tpsl/index.d.ts +8 -7
- package/dist/tpsl/index.d.ts.map +1 -1
- package/dist/tpsl/internal/resolve-tpsl-config.d.ts +2 -2
- package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.d.ts +1 -1
- package/dist/tpsl/set-quote-tpsl/build-conditional-order-message.d.ts +1 -1
- package/dist/tpsl/set-quote-tpsl/index.d.ts +5 -5
- package/dist/tpsl/set-quote-tpsl/query.d.ts +3 -3
- package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.d.ts +4 -4
- package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.js +11 -11
- package/dist/tpsl/set-quote-tpsl/sign-tpsl-request.d.ts +2 -2
- package/dist/tpsl/signing-spec/delete-query.d.ts +12 -0
- package/dist/tpsl/signing-spec/delete-query.d.ts.map +1 -0
- package/dist/tpsl/signing-spec/delete-query.js +21 -0
- package/dist/tpsl/signing-spec/delete-query.js.map +1 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts +18 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts.map +1 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js +25 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js.map +1 -0
- package/dist/tpsl/signing-spec/get-tpsl-signing-spec.d.ts +3 -3
- package/dist/tpsl/signing-spec/index.d.ts +4 -2
- package/dist/tpsl/signing-spec/index.d.ts.map +1 -1
- package/dist/tpsl/signing-spec/query.d.ts +4 -4
- package/dist/tpsl/slippage.d.ts +1 -1
- package/dist/tpsl/types/generated/tpsl-handler.js +6 -3
- package/dist/tpsl/types/generated/tpsl-handler.js.map +1 -1
- package/dist/tpsl/validate-tpsl.d.ts +2 -2
- package/dist/transfers/get-transfer-history/get-transfer-history.d.ts +3 -3
- package/dist/transfers/get-transfer-history/index.d.ts +4 -4
- package/dist/transfers/get-transfer-history/query-document.d.ts +2 -2
- package/dist/transfers/get-transfer-history/query.d.ts +4 -4
- package/dist/transfers/get-transfer-history/to-transfer-row.d.ts +2 -2
- package/dist/transfers/index.d.ts +1 -1
- package/dist/websocket/index.d.ts +3 -3
- package/dist/websocket/notifications/build-subscribe-message.d.ts +1 -1
- package/dist/websocket/notifications/index.d.ts +5 -5
- package/dist/websocket/notifications/normalize-notification.d.ts +1 -1
- package/dist/websocket/notifications/parse-notification-frame.d.ts +2 -2
- package/dist/websocket/notifications/watch-notifications.d.ts +4 -4
- package/dist/websocket/prices/index.d.ts +3 -3
- package/dist/websocket/prices/parse-price-frame.d.ts +1 -1
- package/dist/websocket/prices/watch-enigma-prices.d.ts +5 -5
- package/dist/websocket/socket/create-reconnecting-socket.d.ts +2 -2
- package/dist/websocket/socket/get-socket-pool.d.ts +2 -2
- package/dist/websocket/socket/index.d.ts +4 -4
- package/dist/websocket/socket/socket-pool.d.ts +2 -2
- package/dist/websocket/tpsl/index.d.ts +3 -3
- package/dist/websocket/tpsl/parse-tpsl-frame.d.ts +1 -1
- package/dist/websocket/tpsl/types.d.ts +1 -1
- package/dist/websocket/tpsl/watch-tpsl-notifications.d.ts +4 -4
- package/package.json +11 -9
package/dist/index.js
CHANGED
|
@@ -135,130 +135,145 @@ import { searchNotifications as on } from "./notifications/search/search-notific
|
|
|
135
135
|
import { searchNotificationsQueryKey as sn, searchNotificationsQueryOptions as cn } from "./notifications/search/query.js";
|
|
136
136
|
import { getMarkets as ln } from "./solvers/markets/get-markets.js";
|
|
137
137
|
import { getMarketsQueryKey as un, getMarketsQueryOptions as dn } from "./solvers/markets/query.js";
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
163
|
-
import {
|
|
164
|
-
import {
|
|
165
|
-
import {
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
171
|
-
import {
|
|
172
|
-
import {
|
|
173
|
-
import {
|
|
174
|
-
import {
|
|
175
|
-
import {
|
|
176
|
-
import {
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import {
|
|
182
|
-
import {
|
|
183
|
-
import {
|
|
184
|
-
import {
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import {
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
207
|
-
import {
|
|
208
|
-
import {
|
|
209
|
-
import {
|
|
210
|
-
import {
|
|
211
|
-
import {
|
|
212
|
-
import {
|
|
213
|
-
import {
|
|
214
|
-
import {
|
|
215
|
-
import {
|
|
216
|
-
import {
|
|
217
|
-
import {
|
|
218
|
-
import {
|
|
219
|
-
import {
|
|
220
|
-
import {
|
|
221
|
-
import {
|
|
222
|
-
import {
|
|
223
|
-
import {
|
|
224
|
-
import {
|
|
225
|
-
import {
|
|
226
|
-
import {
|
|
227
|
-
import {
|
|
228
|
-
import {
|
|
229
|
-
import {
|
|
230
|
-
import {
|
|
231
|
-
import {
|
|
232
|
-
import {
|
|
233
|
-
import {
|
|
234
|
-
import {
|
|
235
|
-
import {
|
|
236
|
-
import {
|
|
237
|
-
import {
|
|
238
|
-
import {
|
|
239
|
-
import {
|
|
240
|
-
import {
|
|
241
|
-
import {
|
|
242
|
-
import {
|
|
243
|
-
import {
|
|
244
|
-
import {
|
|
245
|
-
import {
|
|
246
|
-
import {
|
|
247
|
-
import {
|
|
248
|
-
import {
|
|
249
|
-
import {
|
|
250
|
-
import {
|
|
251
|
-
import {
|
|
252
|
-
import {
|
|
253
|
-
import {
|
|
254
|
-
import {
|
|
255
|
-
import {
|
|
256
|
-
import {
|
|
257
|
-
import {
|
|
258
|
-
import {
|
|
259
|
-
import {
|
|
260
|
-
import {
|
|
261
|
-
import {
|
|
262
|
-
import {
|
|
263
|
-
import {
|
|
264
|
-
export { ti as ADD_MARGIN_TO_NEXT_VA_SELECTOR, Zt as ActionStatus, Ua as BalanceChangeType, Wa as BalanceHistoryFilter, Pi as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, Na as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, Dr as INSTANT_LAYER_EIP712_DOMAIN_NAME, Or as INSTANT_LAYER_EIP712_DOMAIN_VERSION, ni as INSTANT_TRADE_REQUIRED_SELECTORS, zr as MARKET_ORDER_DEADLINE_SECONDS, vi as MAX_INSTANT_CLOSE_BULK_ORDERS, kn as MUON_APP, An as MUON_METHOD_PARTY_A_OVERVIEW, jn as MUON_METHOD_PRICE, Mn as MUON_METHOD_PRICE_RANGE, Nn as MUON_METHOD_SETTLE_UPNL, Pn as MUON_METHOD_UPNL_A, Fn as MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE, In as MUON_METHOD_UPNL_B, Ln as MUON_METHOD_UPNL_PAIR, Rn as MUON_METHOD_UPNL_WITH_SYMBOL_PRICE, Ga as MarginTransferType, Qt as NotificationType, Ir as ORDER_TYPE_MARKET, jt as OrderType, Ri as PRICE_HISTORY_EVENT_TYPES, Mt as PositionType, Wi as QuoteCloseEventType, Gi as QuoteCloseType, zi as QuoteEventType, wi as QuoteLifecycle, Nt as QuoteStatus, ri as REQUEST_TO_CLOSE_POSITION_SELECTOR, ii as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, kr as SIGNED_OPERATION_TYPES, ge as SubAccountIsolationType, r as SymmApiError, i as SymmError, a as SymmioSupportedChainId, Lr as VIRTUAL_ACCOUNT_ISOLATION_TYPE, Pt as WithdrawStatus, Da as ZERO_LEG, xr as ZERO_UPNL_SIG, e as accountLayerAbi, f as addMargin, F as addMarginMutationOptions, da as aggregateGroupMetrics, Le as allocate, rt as allocateMutationOptions, Ti as applyNotificationToQuotes, ve as approveCollateral, xe as approveCollateralMutationOptions, Ka as balanceHistoryFilterToTypes, Ea as buildConditionalOrderLeg, Oa as buildConditionalOrderMessage, Sr as buildQuoteMetadata, Mr as buildSignedOperation, Xt as buildSubscribeMessage, ka as buildTpSlDeleteMessage, Di as calculateClosePlatformFee, pi as calculateClosePrice, ma as calculateLiquidationPrice, Br as calculateMargin, Oi as calculateOpenPlatformFee, _a as calculateQuoteLeverage, va as calculateQuotePnl, ya as calculateQuoteUpnl, Vr as calculateTradeParams, hn as checkNotionalCap, mi as clampClosePrecision, $t as classifyNotification, Ei as classifyQuoteNotificationAction, Ki as closeTypeToEventTypes, Hr as computePlatformFee, nt as createClassicWithdrawPart, l as createConfig, m as createSubAccounts, I as createSubAccountsMutationOptions, Re as deallocate, it as deallocateMutationOptions, g as deleteSubAccount, L as deleteSubAccountMutationOptions, v as depositAndAllocateForAccount, R as depositAndAllocateForAccountMutationOptions, b as depositForAccount, z as depositForAccountMutationOptions, S as editAccountName, B as editAccountNameMutationOptions, Cr as encodeAddMarginToNextVA, li as encodeRequestToClosePosition, wr as encodeSendQuoteWithAffiliateAndData, qi as eventTypeToCloseType, Ji as eventTypeToQuoteStatus, V as filterQueryOptions, Be as finalizeWithdrawRequest, at as finalizeWithdrawRequestMutationOptions, ki as fingerprintQuote, Nr as formatSignedOperationPayload, Pr as generateSalt, Aa as generateTpSlSalt, C as getAccountBalanceInfo, H as getAccountBalanceInfoQueryKey, U as getAccountBalanceInfoQueryOptions, w as getAccountBalanceOf, W as getAccountBalanceOfQueryKey, G as getAccountBalanceOfQueryOptions, Ja as getBalanceHistory, Ya as getBalanceHistoryQueryKey, Xa as getBalanceHistoryQueryOptions, o as getChainConfig, ye as getCollateralAllowance, Se as getCollateralAllowanceQueryKey, Ce as getCollateralAllowanceQueryOptions, be as getCollateralBalance, we as getCollateralBalanceQueryKey, Te as getCollateralBalanceQueryOptions, zn as getDeallocateUpnlSig, Bn as getDeallocateUpnlSigQueryKey, Vn as getDeallocateUpnlSigQueryOptions, De as getDelegationExpiry, je as getDelegationExpiryQueryKey, Me as getDelegationExpiryQueryOptions, Ft as getEnigmaPriceServiceHealth, It as getEnigmaPriceServiceHealthQueryKey, Lt as getEnigmaPriceServiceHealthQueryOptions, Rt as getEnigmaPriceServiceMetadata, zt as getEnigmaPriceServiceMetadataQueryKey, Bt as getEnigmaPriceServiceMetadataQueryOptions, Vt as getEnigmaPriceServicePricesByAddresses, Ht as getEnigmaPriceServicePricesByAddressesQueryKey, Ut as getEnigmaPriceServicePricesByAddressesQueryOptions, Wt as getEnigmaPriceServicePricesByNames, Gt as getEnigmaPriceServicePricesByNamesQueryKey, Kt as getEnigmaPriceServicePricesByNamesQueryOptions, qt as getEnigmaPriceServiceSymbolsInfo, Jt as getEnigmaPriceServiceSymbolsInfoQueryKey, Yt as getEnigmaPriceServiceSymbolsInfoQueryOptions, Tr as getFakeSendQuoteMuonSignature, Ve as getFeeForUser, ot as getFeeForUserQueryKey, st as getFeeForUserQueryOptions, oi as getInstantCloses, si as getInstantClosesQueryKey, ci as getInstantClosesQueryOptions, Ar as getInstantLayerEip712Domain, hr as getInstantOpenQuoteId, gr as getInstantOpenQuoteIdQueryKey, _r as getInstantOpenQuoteIdQueryOptions, vr as getInstantOpens, yr as getInstantOpensQueryKey, br as getInstantOpensQueryOptions, Oe as getIsDelegationActive, Ne as getIsDelegationActiveQueryKey, Pe as getIsDelegationActiveQueryOptions, He as getLastWithdrawRequestId, ct as getLastWithdrawRequestIdQueryKey, lt as getLastWithdrawRequestIdQueryOptions, fn as getLockedParams, pn as getLockedParamsQueryKey, mn as getLockedParamsQueryOptions, Ur as getMarketOrderDeadline, ln as getMarkets, un as getMarketsQueryKey, dn as getMarketsQueryOptions, Hn as getMuonPartyAOverview, Un as getMuonPartyAOverviewQueryKey, Wn as getMuonPartyAOverviewQueryOptions, Gn as getMuonPrice, Kn as getMuonPriceQueryKey, qn as getMuonPriceQueryOptions, Jn as getMuonPriceRange, Yn as getMuonPriceRangeQueryKey, Xn as getMuonPriceRangeQueryOptions, Zn as getMuonSettleUpnl, Qn as getMuonSettleUpnlQueryKey, $n as getMuonSettleUpnlQueryOptions, er as getMuonUpnl, rr as getMuonUpnlA, ir as getMuonUpnlAQueryKey, ar as getMuonUpnlAQueryOptions, or as getMuonUpnlAWithSymbolPrice, sr as getMuonUpnlAWithSymbolPriceQueryKey, cr as getMuonUpnlAWithSymbolPriceQueryOptions, lr as getMuonUpnlB, ur as getMuonUpnlBQueryKey, dr as getMuonUpnlBQueryOptions, tr as getMuonUpnlQueryKey, nr as getMuonUpnlQueryOptions, fr as getMuonUpnlWithSymbolPrice, pr as getMuonUpnlWithSymbolPriceQueryKey, mr as getMuonUpnlWithSymbolPriceQueryOptions, _n as getNotionalCapAll, Sn as getNotionalCapAllQueryKey, Cn as getNotionalCapAllQueryOptions, vn as getNotionalCapBySymbolId, bn as getNotionalCapBySymbolIdQueryKey, xn as getNotionalCapBySymbolIdQueryOptions, Ue as getOnchainContractMarkets, ut as getOnchainContractMarketsQueryKey, dt as getOnchainContractMarketsQueryOptions, yn as getOpenInterestBySymbolId, wn as getOpenInterestBySymbolIdQueryKey, Tn as getOpenInterestBySymbolIdQueryOptions, We as getPartyAOpenPositions, ft as getPartyAOpenPositionsQueryKey, pt as getPartyAOpenPositionsQueryOptions, Ge as getPartyAPendingQuotes, mt as getPartyAPendingQuotesQueryKey, ht as getPartyAPendingQuotesQueryOptions, Ke as getPendingWithdrawRequests, gt as getPendingWithdrawRequestsQueryKey, _t as getPendingWithdrawRequestsQueryOptions, M as getPredictedNextVirtualAccount, oe as getPredictedNextVirtualAccountQueryKey, se as getPredictedNextVirtualAccountQueryOptions, ji as getQuerySubgraphQueryKey, qe as getQuote, Fi as getQuoteEventsByType, Ii as getQuoteEventsByTypeQueryKey, Li as getQuoteEventsByTypeQueryOptions, Vi as getQuoteFunding, Hi as getQuoteFundingQueryKey, Ui as getQuoteFundingQueryOptions, Xi as getQuoteHistory, Zi as getQuoteHistoryQueryKey, Qi as getQuoteHistoryQueryOptions, vt as getQuoteQueryKey, yt as getQuoteQueryOptions, Ca as getQuoteTpSl, wa as getQuoteTpSlQueryKey, Ta as getQuoteTpSlQueryOptions, En as getSolverErrorCodes, Dn as getSolverErrorCodesQueryKey, On as getSolverErrorCodesQueryOptions, T as getSubAccount, K as getSubAccountQueryKey, q as getSubAccountQueryOptions, aa as getSubAccountQuotes, oa as getSubAccountQuotesQueryKey, sa as getSubAccountQuotesQueryOptions, E as getSubAccountVirtualNonce, J as getSubAccountVirtualNonceQueryKey, Y as getSubAccountVirtualNonceQueryOptions, D as getSubAccountsCountOfUser, X as getSubAccountsCountOfUserQueryKey, Z as getSubAccountsCountOfUserQueryOptions, ba as getTpSlConfig, xa as getTpSlConfigQueryKey, Sa as getTpSlConfigQueryOptions, Ma as getTpSlSigningSpec, Ra as getTpSlSigningSpecQueryKey, za as getTpSlSigningSpecQueryOptions, Qa as getTransferHistory, $a as getTransferHistoryQueryKey, eo as getTransferHistoryQueryOptions, O as getUserSubAccounts, k as getUserSubAccountsAddresses, ee as getUserSubAccountsAddressesQueryKey, te as getUserSubAccountsAddressesQueryOptions, Q as getUserSubAccountsQueryKey, $ as getUserSubAccountsQueryOptions, A as getVirtualAccount, ne as getVirtualAccountQueryKey, re as getVirtualAccountQueryOptions, j as getVirtualAccountsAddressesOfSubAccount, ie as getVirtualAccountsAddressesOfSubAccountQueryKey, ae as getVirtualAccountsAddressesOfSubAccountQueryOptions, Je as getWithdrawRequests, bt as getWithdrawRequestsQueryKey, xt as getWithdrawRequestsQueryOptions, Ye as getWithdrawableTime, St as getWithdrawableTimeQueryKey, Ct as getWithdrawableTimeQueryOptions, Ae as grantDelegation, Fe as grantDelegationMutationOptions, pa as groupQuotes, Xe as initiateWithdraw, wt as initiateWithdrawMutationOptions, di as instantClose, gi as instantCloseAuto, _i as instantCloseAutoMutationOptions, yi as instantCloseBulk, xi as instantCloseBulkAuto, Si as instantCloseBulkAutoMutationOptions, bi as instantCloseBulkMutationOptions, fi as instantCloseMutationOptions, t as instantLayerAbi, Gr as instantOpen, Qr as instantOpenAuto, $r as instantOpenAutoMutationOptions, Kr as instantOpenMutationOptions, ca as isActivePosition, s as isChainSupported, la as isPendingOrder, Rr as isolationTypeForSide, $i as lifecycleFromQuoteStatus, c as listSupportedChains, en as normalizeNotification, tn as parseNotificationFrame, rn as parsePriceFrame, Va as parseTpSlFrame, ua as partitionQuotes, hi as prepareInstantCloseParams, Zr as prepareInstantOpenParams, Pa as priceSlippageCalculation, Ai as querySubgraph, Mi as querySubgraphQueryOptions, ra as reconcileQuotes, P as removeMargin, ce as removeMarginMutationOptions, Ze as requestCancelWithdraw, Tt as requestCancelWithdrawMutationOptions, Yr as resolveFeeRates, Xr as resolveLockedParams, qr as resolveMarkPrice, Jr as resolveMarket, ia as resolveQuoteAccounts, fa as resolveQuoteGroupingStrategy, on as searchNotifications, sn as searchNotificationsQueryKey, cn as searchNotificationsQueryOptions, ui as sendInstantClose, Er as sendInstantOpen, Ia as setQuoteTpSl, La as setQuoteTpSlMutationOptions, ha as shouldAccelerateOnchainReads, ga as shouldAccelerateQuotePolling, u as shouldSimulateBeforeWrite, Fr as signAndFormatInstantOperation, jr as signSignedOperation, Fa as signTpSlRequest, d as simulateAddMargin, le as simulateAddMarginMutationOptions, Qe as simulateAllocate, Et as simulateAllocateMutationOptions, _e as simulateApproveCollateral, Ee as simulateApproveCollateralMutationOptions, p as simulateCreateSubAccounts, ue as simulateCreateSubAccountsMutationOptions, $e as simulateDeallocate, Dt as simulateDeallocateMutationOptions, h as simulateDeleteSubAccount, de as simulateDeleteSubAccountMutationOptions, _ as simulateDepositAndAllocateForAccount, fe as simulateDepositAndAllocateForAccountMutationOptions, y as simulateDepositForAccount, pe as simulateDepositForAccountMutationOptions, x as simulateEditAccountName, me as simulateEditAccountNameMutationOptions, ze as simulateFinalizeWithdrawRequest, Ot as simulateFinalizeWithdrawRequestMutationOptions, ke as simulateGrantDelegation, Ie as simulateGrantDelegationMutationOptions, et as simulateInitiateWithdraw, kt as simulateInitiateWithdrawMutationOptions, N as simulateRemoveMargin, he as simulateRemoveMarginMutationOptions, tt as simulateRequestCancelWithdraw, At as simulateRequestCancelWithdrawMutationOptions, n as symmioAbi, qa as toBalanceHistoryRow, gn as toMarketNotionalCap, ai as toPendingInstantClose, Ni as toQuoteEventRow, Bi as toQuoteFundingRow, Yi as toQuoteHistoryRow, ja as toSignableTpSlMessage, Za as toTransferRow, ea as toUnifiedQuoteFromInstantClose, ta as toUnifiedQuoteFromInstantOpen, na as toUnifiedQuoteFromOnchain, Wr as toWeiBigInt, Ci as validateInstantCloseAgainstMarket, ei as validateInstantOpenAgainstMarket, Ba as validateTpSl, an as watchEnigmaPrices, nn as watchNotifications, Ha as watchTpSlNotifications };
|
|
138
|
+
import { toEstimatedPrice as fn } from "./solvers/estimated-price/to-estimated-price.js";
|
|
139
|
+
import { getEstimatedPrice as pn } from "./solvers/estimated-price/get-estimated-price.js";
|
|
140
|
+
import { calculatePriceImpact as mn } from "./solvers/estimated-price/price-impact.js";
|
|
141
|
+
import { getEstimatedPriceQueryKey as hn, getEstimatedPriceQueryOptions as gn } from "./solvers/estimated-price/query.js";
|
|
142
|
+
import { toMarketFundingInfo as _n } from "./solvers/funding-info/to-funding-info.js";
|
|
143
|
+
import { getFundingInfo as vn } from "./solvers/funding-info/get-funding-info.js";
|
|
144
|
+
import { projectFundingRate as yn } from "./solvers/funding-info/project-funding-rate.js";
|
|
145
|
+
import { getFundingInfoQueryKey as bn, getFundingInfoQueryOptions as xn } from "./solvers/funding-info/query.js";
|
|
146
|
+
import { toMarketInfo as Sn } from "./solvers/market-info/to-market-info.js";
|
|
147
|
+
import { getMarketInfo as Cn } from "./solvers/market-info/get-market-info.js";
|
|
148
|
+
import { getMarketInfoQueryKey as wn, getMarketInfoQueryOptions as Tn } from "./solvers/market-info/query.js";
|
|
149
|
+
import { getLockedParams as En } from "./solvers/locked-params/get-locked-params.js";
|
|
150
|
+
import { getLockedParamsQueryKey as Dn, getLockedParamsQueryOptions as On } from "./solvers/locked-params/query.js";
|
|
151
|
+
import { checkNotionalCap as kn } from "./solvers/notional-cap/check-notional-cap.js";
|
|
152
|
+
import { toMarketNotionalCap as An } from "./solvers/notional-cap/to-market-notional-cap.js";
|
|
153
|
+
import { getNotionalCapAll as jn } from "./solvers/notional-cap/get-notional-cap-all.js";
|
|
154
|
+
import { getNotionalCapBySymbolId as Mn } from "./solvers/notional-cap/get-notional-cap-by-symbol-id.js";
|
|
155
|
+
import { getOpenInterestBySymbolId as Nn } from "./solvers/notional-cap/get-open-interest-by-symbol-id.js";
|
|
156
|
+
import { getNotionalCapBySymbolIdQueryKey as Pn, getNotionalCapBySymbolIdQueryOptions as Fn } from "./solvers/notional-cap/query.js";
|
|
157
|
+
import { getNotionalCapAllQueryKey as In, getNotionalCapAllQueryOptions as Ln } from "./solvers/notional-cap/query-all.js";
|
|
158
|
+
import { getOpenInterestBySymbolIdQueryKey as Rn, getOpenInterestBySymbolIdQueryOptions as zn } from "./solvers/notional-cap/query-open-interest.js";
|
|
159
|
+
import { getSolverErrorCodes as Bn } from "./solvers/error-codes/get-solver-error-codes.js";
|
|
160
|
+
import { getSolverErrorCodesQueryKey as Vn, getSolverErrorCodesQueryOptions as Hn } from "./solvers/error-codes/query.js";
|
|
161
|
+
import { MUON_APP as Un, MUON_METHOD_PARTY_A_OVERVIEW as Wn, MUON_METHOD_PRICE as Gn, MUON_METHOD_PRICE_RANGE as Kn, MUON_METHOD_SETTLE_UPNL as qn, MUON_METHOD_UPNL_A as Jn, MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE as Yn, MUON_METHOD_UPNL_B as Xn, MUON_METHOD_UPNL_PAIR as Zn, MUON_METHOD_UPNL_WITH_SYMBOL_PRICE as Qn } from "./muon/types.js";
|
|
162
|
+
import { getDeallocateUpnlSig as $n } from "./muon/deallocate-upnl-sig/get-deallocate-upnl-sig.js";
|
|
163
|
+
import { getDeallocateUpnlSigQueryKey as er, getDeallocateUpnlSigQueryOptions as tr } from "./muon/deallocate-upnl-sig/query.js";
|
|
164
|
+
import { getMuonPartyAOverview as nr } from "./muon/party-a-overview/get-muon-party-a-overview.js";
|
|
165
|
+
import { getMuonPartyAOverviewQueryKey as rr, getMuonPartyAOverviewQueryOptions as ir } from "./muon/party-a-overview/query.js";
|
|
166
|
+
import { getMuonPrice as ar } from "./muon/price/get-muon-price.js";
|
|
167
|
+
import { getMuonPriceQueryKey as or, getMuonPriceQueryOptions as sr } from "./muon/price/query.js";
|
|
168
|
+
import { getMuonPriceRange as cr } from "./muon/price-range/get-muon-price-range.js";
|
|
169
|
+
import { getMuonPriceRangeQueryKey as lr, getMuonPriceRangeQueryOptions as ur } from "./muon/price-range/query.js";
|
|
170
|
+
import { getMuonSettleUpnl as dr } from "./muon/settle-upnl/get-muon-settle-upnl.js";
|
|
171
|
+
import { getMuonSettleUpnlQueryKey as fr, getMuonSettleUpnlQueryOptions as pr } from "./muon/settle-upnl/query.js";
|
|
172
|
+
import { getMuonUpnl as mr } from "./muon/upnl/get-muon-upnl.js";
|
|
173
|
+
import { getMuonUpnlQueryKey as hr, getMuonUpnlQueryOptions as gr } from "./muon/upnl/query.js";
|
|
174
|
+
import { getMuonUpnlA as _r } from "./muon/upnl-a/get-muon-upnl-a.js";
|
|
175
|
+
import { getMuonUpnlAQueryKey as vr, getMuonUpnlAQueryOptions as yr } from "./muon/upnl-a/query.js";
|
|
176
|
+
import { getMuonUpnlAWithSymbolPrice as br } from "./muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js";
|
|
177
|
+
import { getMuonUpnlAWithSymbolPriceQueryKey as xr, getMuonUpnlAWithSymbolPriceQueryOptions as Sr } from "./muon/upnl-a-with-symbol-price/query.js";
|
|
178
|
+
import { getMuonUpnlB as Cr } from "./muon/upnl-b/get-muon-upnl-b.js";
|
|
179
|
+
import { getMuonUpnlBQueryKey as wr, getMuonUpnlBQueryOptions as Tr } from "./muon/upnl-b/query.js";
|
|
180
|
+
import { getMuonUpnlWithSymbolPrice as Er } from "./muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js";
|
|
181
|
+
import { getMuonUpnlWithSymbolPriceQueryKey as Dr, getMuonUpnlWithSymbolPriceQueryOptions as Or } from "./muon/upnl-with-symbol-price/query.js";
|
|
182
|
+
import { getInstantOpenQuoteId as kr } from "./solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.js";
|
|
183
|
+
import { getInstantOpenQuoteIdQueryKey as Ar, getInstantOpenQuoteIdQueryOptions as jr } from "./solvers/instant-open/get-instant-open-quote-id/query.js";
|
|
184
|
+
import { getInstantOpens as Mr } from "./solvers/instant-open/get-instant-opens/get-instant-opens.js";
|
|
185
|
+
import { getInstantOpensQueryKey as Nr, getInstantOpensQueryOptions as Pr } from "./solvers/instant-open/get-instant-opens/query.js";
|
|
186
|
+
import { ZERO_UPNL_SIG as Fr, buildQuoteMetadata as Ir, encodeAddMarginToNextVA as Lr, encodeSendQuoteWithAffiliateAndData as Rr, getFakeSendQuoteMuonSignature as zr } from "./solvers/instant-open/shared/calldata.js";
|
|
187
|
+
import { sendInstantOpen as Br } from "./solvers/instant-open/shared/hedger-api.js";
|
|
188
|
+
import { INSTANT_LAYER_EIP712_DOMAIN_NAME as Vr, INSTANT_LAYER_EIP712_DOMAIN_VERSION as Hr, SIGNED_OPERATION_TYPES as Ur, getInstantLayerEip712Domain as Wr, signSignedOperation as Gr } from "./solvers/instant-open/shared/eip712.js";
|
|
189
|
+
import { buildSignedOperation as Kr, formatSignedOperationPayload as qr, generateSalt as Jr, signAndFormatInstantOperation as Yr } from "./solvers/instant-open/shared/operations.js";
|
|
190
|
+
import { ORDER_TYPE_MARKET as Xr, VIRTUAL_ACCOUNT_ISOLATION_TYPE as Zr, isolationTypeForSide as Qr } from "./solvers/instant-open/shared/types.js";
|
|
191
|
+
import { MARKET_ORDER_DEADLINE_SECONDS as $r, calculateAvailableInstantOpenMargin as ei, calculateMargin as ti, calculateTradeParams as ni, computePlatformFee as ri, getMarketOrderDeadline as ii, toWeiBigInt as ai } from "./solvers/instant-open/shared/trade-math.js";
|
|
192
|
+
import { instantOpen as oi } from "./solvers/instant-open/instant-open/instant-open.js";
|
|
193
|
+
import { instantOpenMutationOptions as si } from "./solvers/instant-open/instant-open/query.js";
|
|
194
|
+
import { resolveMarkPrice as ci } from "./solvers/shared/resolvers/resolve-mark-price.js";
|
|
195
|
+
import { resolveMarket as li } from "./solvers/shared/resolvers/resolve-market.js";
|
|
196
|
+
import { resolveFeeRates as ui } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.js";
|
|
197
|
+
import { resolveLockedParams as di } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.js";
|
|
198
|
+
import { prepareInstantOpenParams as fi } from "./solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js";
|
|
199
|
+
import { instantOpenAuto as pi } from "./solvers/instant-open/instant-open-auto/instant-open-auto.js";
|
|
200
|
+
import { instantOpenAutoMutationOptions as mi } from "./solvers/instant-open/instant-open-auto/query.js";
|
|
201
|
+
import { validateInstantOpenAgainstMarket as hi } from "./solvers/instant-open/shared/quote-constraints.js";
|
|
202
|
+
import { ADD_MARGIN_TO_NEXT_VA_SELECTOR as gi, INSTANT_TRADE_REQUIRED_SELECTORS as _i, REQUEST_TO_CLOSE_POSITION_SELECTOR as vi, SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR as yi } from "./solvers/instant-open/shared/selectors.js";
|
|
203
|
+
import { toPendingInstantClose as bi } from "./solvers/instant-close/get-instant-closes/to-pending-instant-close.js";
|
|
204
|
+
import { getInstantCloses as xi } from "./solvers/instant-close/get-instant-closes/get-instant-closes.js";
|
|
205
|
+
import { getInstantClosesQueryKey as Si, getInstantClosesQueryOptions as Ci } from "./solvers/instant-close/get-instant-closes/query.js";
|
|
206
|
+
import { encodeRequestToClosePosition as wi } from "./solvers/instant-close/shared/calldata.js";
|
|
207
|
+
import { sendInstantClose as Ti } from "./solvers/instant-close/shared/hedger-api.js";
|
|
208
|
+
import { instantClose as Ei } from "./solvers/instant-close/instant-close/instant-close.js";
|
|
209
|
+
import { instantCloseMutationOptions as Di } from "./solvers/instant-close/instant-close/query.js";
|
|
210
|
+
import { calculateClosePrice as Oi, clampClosePrecision as ki } from "./solvers/instant-close/shared/close-math.js";
|
|
211
|
+
import { prepareInstantCloseParams as Ai } from "./solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.js";
|
|
212
|
+
import { instantCloseAuto as ji } from "./solvers/instant-close/instant-close-auto/instant-close-auto.js";
|
|
213
|
+
import { instantCloseAutoMutationOptions as Mi } from "./solvers/instant-close/instant-close-auto/query.js";
|
|
214
|
+
import { MAX_INSTANT_CLOSE_BULK_ORDERS as Ni, instantCloseBulk as Pi } from "./solvers/instant-close/instant-close-bulk/instant-close-bulk.js";
|
|
215
|
+
import { instantCloseBulkMutationOptions as Fi } from "./solvers/instant-close/instant-close-bulk/query.js";
|
|
216
|
+
import { instantCloseBulkAuto as Ii } from "./solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.js";
|
|
217
|
+
import { instantCloseBulkAutoMutationOptions as Li } from "./solvers/instant-close/instant-close-bulk-auto/query.js";
|
|
218
|
+
import { validateInstantCloseAgainstMarket as Ri } from "./solvers/instant-close/shared/quote-constraints.js";
|
|
219
|
+
import { QuoteLifecycle as zi } from "./quotes/unified-quote.js";
|
|
220
|
+
import { applyNotificationToQuotes as Bi, classifyQuoteNotificationAction as Vi } from "./quotes/apply-notification.js";
|
|
221
|
+
import { calculateClosePlatformFee as Hi } from "./quotes/fees/calculate-close-platform-fee.js";
|
|
222
|
+
import { calculateOpenPlatformFee as Ui } from "./quotes/fees/calculate-open-platform-fee.js";
|
|
223
|
+
import { fingerprintQuote as Wi } from "./quotes/fingerprint.js";
|
|
224
|
+
import { querySubgraph as Gi } from "./symmio-subgraph/query-subgraph/query-subgraph.js";
|
|
225
|
+
import { getQuerySubgraphQueryKey as Ki, querySubgraphQueryOptions as qi } from "./symmio-subgraph/query-subgraph/query.js";
|
|
226
|
+
import { toQuoteEventRow as Ji } from "./quotes/get-quote-events-by-type/to-quote-event-row.js";
|
|
227
|
+
import { DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE as Yi, getQuoteEventsByType as Xi } from "./quotes/get-quote-events-by-type/get-quote-events-by-type.js";
|
|
228
|
+
import { getQuoteEventsByTypeQueryKey as Zi, getQuoteEventsByTypeQueryOptions as Qi } from "./quotes/get-quote-events-by-type/query.js";
|
|
229
|
+
import { PRICE_HISTORY_EVENT_TYPES as $i, QuoteEventType as ea } from "./quotes/get-quote-events-by-type/types.js";
|
|
230
|
+
import { toQuoteFundingRow as ta } from "./quotes/get-quote-funding/to-funding-row.js";
|
|
231
|
+
import { getQuoteFunding as na } from "./quotes/get-quote-funding/get-quote-funding.js";
|
|
232
|
+
import { getQuoteFundingQueryKey as ra, getQuoteFundingQueryOptions as ia } from "./quotes/get-quote-funding/query.js";
|
|
233
|
+
import { QuoteCloseEventType as aa, QuoteCloseType as oa } from "./quotes/get-quote-history/types.js";
|
|
234
|
+
import { closeTypeToEventTypes as sa, eventTypeToCloseType as ca, eventTypeToQuoteStatus as la } from "./quotes/get-quote-history/close-type.js";
|
|
235
|
+
import { toQuoteHistoryRow as ua } from "./quotes/get-quote-history/to-history-row.js";
|
|
236
|
+
import { getQuoteHistory as da } from "./quotes/get-quote-history/get-quote-history.js";
|
|
237
|
+
import { getQuoteHistoryQueryKey as fa, getQuoteHistoryQueryOptions as pa } from "./quotes/get-quote-history/query.js";
|
|
238
|
+
import { lifecycleFromQuoteStatus as ma, toUnifiedQuoteFromInstantClose as ha, toUnifiedQuoteFromInstantOpen as ga, toUnifiedQuoteFromOnchain as _a } from "./quotes/to-unified-quote.js";
|
|
239
|
+
import { reconcileQuotes as va } from "./quotes/reconcile-quotes.js";
|
|
240
|
+
import { resolveQuoteAccounts as ya } from "./quotes/resolve-quote-accounts.js";
|
|
241
|
+
import { getSubAccountQuotes as ba } from "./quotes/get-sub-account-quotes/get-sub-account-quotes.js";
|
|
242
|
+
import { getSubAccountQuotesQueryKey as xa, getSubAccountQuotesQueryOptions as Sa } from "./quotes/get-sub-account-quotes/query.js";
|
|
243
|
+
import { isActivePosition as Ca, isPendingOrder as wa, partitionQuotes as Ta } from "./quotes/grouping/partition-quotes.js";
|
|
244
|
+
import { aggregateGroupMetrics as Ea } from "./quotes/grouping/aggregate-metrics.js";
|
|
245
|
+
import { resolveQuoteGroupingStrategy as Da } from "./quotes/grouping/group-strategy.js";
|
|
246
|
+
import { groupQuotes as Oa } from "./quotes/grouping/group-quotes.js";
|
|
247
|
+
import { calculateLiquidationPrice as ka } from "./quotes/liquidation/calculate-liquidation-price.js";
|
|
248
|
+
import { shouldAccelerateOnchainReads as Aa, shouldAccelerateQuotePolling as ja } from "./quotes/should-accelerate.js";
|
|
249
|
+
import { calculateQuoteLeverage as Ma } from "./quotes/upnl/calculate-quote-leverage.js";
|
|
250
|
+
import { calculateQuotePnl as Na } from "./quotes/upnl/calculate-quote-pnl.js";
|
|
251
|
+
import { calculateQuoteUpnl as Pa } from "./quotes/upnl/calculate-quote-upnl.js";
|
|
252
|
+
import { getTpSlConfig as Fa } from "./tpsl/config/get-tpsl-config.js";
|
|
253
|
+
import { getTpSlConfigQueryKey as Ia, getTpSlConfigQueryOptions as La } from "./tpsl/config/query.js";
|
|
254
|
+
import { ZERO_LEG as Ra, buildConditionalOrderMessage as za, buildTpSlDeleteMessage as Ba, generateTpSlSalt as Va, toSignableTpSlMessage as Ha } from "./tpsl/set-quote-tpsl/build-conditional-order-message.js";
|
|
255
|
+
import { signTpSlRequest as Ua } from "./tpsl/set-quote-tpsl/sign-tpsl-request.js";
|
|
256
|
+
import { getTpSlDeleteSigningSpec as Wa } from "./tpsl/signing-spec/get-tpsl-delete-signing-spec.js";
|
|
257
|
+
import { deleteQuoteTpSl as Ga } from "./tpsl/delete-quote-tpsl/delete-quote-tpsl.js";
|
|
258
|
+
import { deleteQuoteTpSlMutationOptions as Ka } from "./tpsl/delete-quote-tpsl/query.js";
|
|
259
|
+
import { getQuoteTpSl as qa } from "./tpsl/get-quote-tpsl/get-quote-tpsl.js";
|
|
260
|
+
import { getQuoteTpSlQueryKey as Ja, getQuoteTpSlQueryOptions as Ya } from "./tpsl/get-quote-tpsl/query.js";
|
|
261
|
+
import { buildConditionalOrderLeg as Xa } from "./tpsl/set-quote-tpsl/build-conditional-order-leg.js";
|
|
262
|
+
import { getTpSlSigningSpec as Za } from "./tpsl/signing-spec/get-tpsl-signing-spec.js";
|
|
263
|
+
import { DEFAULT_TPSL_SLIPPAGE_LOWCAPS as Qa, priceSlippageCalculation as $a } from "./tpsl/slippage.js";
|
|
264
|
+
import { setQuoteTpSl as eo } from "./tpsl/set-quote-tpsl/set-quote-tpsl.js";
|
|
265
|
+
import { setQuoteTpSlMutationOptions as to } from "./tpsl/set-quote-tpsl/query.js";
|
|
266
|
+
import { getTpSlDeleteSigningSpecQueryKey as no, getTpSlDeleteSigningSpecQueryOptions as ro } from "./tpsl/signing-spec/delete-query.js";
|
|
267
|
+
import { getTpSlSigningSpecQueryKey as io, getTpSlSigningSpecQueryOptions as ao } from "./tpsl/signing-spec/query.js";
|
|
268
|
+
import { validateTpSl as oo } from "./tpsl/validate-tpsl.js";
|
|
269
|
+
import { parseTpSlFrame as so } from "./websocket/tpsl/parse-tpsl-frame.js";
|
|
270
|
+
import { watchTpSlNotifications as co } from "./websocket/tpsl/watch-tpsl-notifications.js";
|
|
271
|
+
import { BalanceChangeType as lo, BalanceHistoryFilter as uo, MarginTransferType as fo } from "./balance-history/get-balance-history/types.js";
|
|
272
|
+
import { balanceHistoryFilterToTypes as po } from "./balance-history/get-balance-history/balance-history-filter.js";
|
|
273
|
+
import { toBalanceHistoryRow as mo } from "./balance-history/get-balance-history/to-balance-history-row.js";
|
|
274
|
+
import { getBalanceHistory as ho } from "./balance-history/get-balance-history/get-balance-history.js";
|
|
275
|
+
import { getBalanceHistoryQueryKey as go, getBalanceHistoryQueryOptions as _o } from "./balance-history/get-balance-history/query.js";
|
|
276
|
+
import { toTransferRow as vo } from "./transfers/get-transfer-history/to-transfer-row.js";
|
|
277
|
+
import { getTransferHistory as yo } from "./transfers/get-transfer-history/get-transfer-history.js";
|
|
278
|
+
import { getTransferHistoryQueryKey as bo, getTransferHistoryQueryOptions as xo } from "./transfers/get-transfer-history/query.js";
|
|
279
|
+
export { gi as ADD_MARGIN_TO_NEXT_VA_SELECTOR, Zt as ActionStatus, lo as BalanceChangeType, uo as BalanceHistoryFilter, Yi as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, Qa as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, Vr as INSTANT_LAYER_EIP712_DOMAIN_NAME, Hr as INSTANT_LAYER_EIP712_DOMAIN_VERSION, _i as INSTANT_TRADE_REQUIRED_SELECTORS, $r as MARKET_ORDER_DEADLINE_SECONDS, Ni as MAX_INSTANT_CLOSE_BULK_ORDERS, Un as MUON_APP, Wn as MUON_METHOD_PARTY_A_OVERVIEW, Gn as MUON_METHOD_PRICE, Kn as MUON_METHOD_PRICE_RANGE, qn as MUON_METHOD_SETTLE_UPNL, Jn as MUON_METHOD_UPNL_A, Yn as MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE, Xn as MUON_METHOD_UPNL_B, Zn as MUON_METHOD_UPNL_PAIR, Qn as MUON_METHOD_UPNL_WITH_SYMBOL_PRICE, fo as MarginTransferType, Qt as NotificationType, Xr as ORDER_TYPE_MARKET, jt as OrderType, $i as PRICE_HISTORY_EVENT_TYPES, Mt as PositionType, aa as QuoteCloseEventType, oa as QuoteCloseType, ea as QuoteEventType, zi as QuoteLifecycle, Nt as QuoteStatus, vi as REQUEST_TO_CLOSE_POSITION_SELECTOR, yi as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, Ur as SIGNED_OPERATION_TYPES, ge as SubAccountIsolationType, r as SymmApiError, i as SymmError, a as SymmioSupportedChainId, Zr as VIRTUAL_ACCOUNT_ISOLATION_TYPE, Pt as WithdrawStatus, Ra as ZERO_LEG, Fr as ZERO_UPNL_SIG, e as accountLayerAbi, f as addMargin, F as addMarginMutationOptions, Ea as aggregateGroupMetrics, Le as allocate, rt as allocateMutationOptions, Bi as applyNotificationToQuotes, ve as approveCollateral, xe as approveCollateralMutationOptions, po as balanceHistoryFilterToTypes, Xa as buildConditionalOrderLeg, za as buildConditionalOrderMessage, Ir as buildQuoteMetadata, Kr as buildSignedOperation, Xt as buildSubscribeMessage, Ba as buildTpSlDeleteMessage, ei as calculateAvailableInstantOpenMargin, Hi as calculateClosePlatformFee, Oi as calculateClosePrice, ka as calculateLiquidationPrice, ti as calculateMargin, Ui as calculateOpenPlatformFee, mn as calculatePriceImpact, Ma as calculateQuoteLeverage, Na as calculateQuotePnl, Pa as calculateQuoteUpnl, ni as calculateTradeParams, kn as checkNotionalCap, ki as clampClosePrecision, $t as classifyNotification, Vi as classifyQuoteNotificationAction, sa as closeTypeToEventTypes, ri as computePlatformFee, nt as createClassicWithdrawPart, l as createConfig, m as createSubAccounts, I as createSubAccountsMutationOptions, Re as deallocate, it as deallocateMutationOptions, Ga as deleteQuoteTpSl, Ka as deleteQuoteTpSlMutationOptions, g as deleteSubAccount, L as deleteSubAccountMutationOptions, v as depositAndAllocateForAccount, R as depositAndAllocateForAccountMutationOptions, b as depositForAccount, z as depositForAccountMutationOptions, S as editAccountName, B as editAccountNameMutationOptions, Lr as encodeAddMarginToNextVA, wi as encodeRequestToClosePosition, Rr as encodeSendQuoteWithAffiliateAndData, ca as eventTypeToCloseType, la as eventTypeToQuoteStatus, V as filterQueryOptions, Be as finalizeWithdrawRequest, at as finalizeWithdrawRequestMutationOptions, Wi as fingerprintQuote, qr as formatSignedOperationPayload, Jr as generateSalt, Va as generateTpSlSalt, C as getAccountBalanceInfo, H as getAccountBalanceInfoQueryKey, U as getAccountBalanceInfoQueryOptions, w as getAccountBalanceOf, W as getAccountBalanceOfQueryKey, G as getAccountBalanceOfQueryOptions, ho as getBalanceHistory, go as getBalanceHistoryQueryKey, _o as getBalanceHistoryQueryOptions, o as getChainConfig, ye as getCollateralAllowance, Se as getCollateralAllowanceQueryKey, Ce as getCollateralAllowanceQueryOptions, be as getCollateralBalance, we as getCollateralBalanceQueryKey, Te as getCollateralBalanceQueryOptions, $n as getDeallocateUpnlSig, er as getDeallocateUpnlSigQueryKey, tr as getDeallocateUpnlSigQueryOptions, De as getDelegationExpiry, je as getDelegationExpiryQueryKey, Me as getDelegationExpiryQueryOptions, Ft as getEnigmaPriceServiceHealth, It as getEnigmaPriceServiceHealthQueryKey, Lt as getEnigmaPriceServiceHealthQueryOptions, Rt as getEnigmaPriceServiceMetadata, zt as getEnigmaPriceServiceMetadataQueryKey, Bt as getEnigmaPriceServiceMetadataQueryOptions, Vt as getEnigmaPriceServicePricesByAddresses, Ht as getEnigmaPriceServicePricesByAddressesQueryKey, Ut as getEnigmaPriceServicePricesByAddressesQueryOptions, Wt as getEnigmaPriceServicePricesByNames, Gt as getEnigmaPriceServicePricesByNamesQueryKey, Kt as getEnigmaPriceServicePricesByNamesQueryOptions, qt as getEnigmaPriceServiceSymbolsInfo, Jt as getEnigmaPriceServiceSymbolsInfoQueryKey, Yt as getEnigmaPriceServiceSymbolsInfoQueryOptions, pn as getEstimatedPrice, hn as getEstimatedPriceQueryKey, gn as getEstimatedPriceQueryOptions, zr as getFakeSendQuoteMuonSignature, Ve as getFeeForUser, ot as getFeeForUserQueryKey, st as getFeeForUserQueryOptions, vn as getFundingInfo, bn as getFundingInfoQueryKey, xn as getFundingInfoQueryOptions, xi as getInstantCloses, Si as getInstantClosesQueryKey, Ci as getInstantClosesQueryOptions, Wr as getInstantLayerEip712Domain, kr as getInstantOpenQuoteId, Ar as getInstantOpenQuoteIdQueryKey, jr as getInstantOpenQuoteIdQueryOptions, Mr as getInstantOpens, Nr as getInstantOpensQueryKey, Pr as getInstantOpensQueryOptions, Oe as getIsDelegationActive, Ne as getIsDelegationActiveQueryKey, Pe as getIsDelegationActiveQueryOptions, He as getLastWithdrawRequestId, ct as getLastWithdrawRequestIdQueryKey, lt as getLastWithdrawRequestIdQueryOptions, En as getLockedParams, Dn as getLockedParamsQueryKey, On as getLockedParamsQueryOptions, Cn as getMarketInfo, wn as getMarketInfoQueryKey, Tn as getMarketInfoQueryOptions, ii as getMarketOrderDeadline, ln as getMarkets, un as getMarketsQueryKey, dn as getMarketsQueryOptions, nr as getMuonPartyAOverview, rr as getMuonPartyAOverviewQueryKey, ir as getMuonPartyAOverviewQueryOptions, ar as getMuonPrice, or as getMuonPriceQueryKey, sr as getMuonPriceQueryOptions, cr as getMuonPriceRange, lr as getMuonPriceRangeQueryKey, ur as getMuonPriceRangeQueryOptions, dr as getMuonSettleUpnl, fr as getMuonSettleUpnlQueryKey, pr as getMuonSettleUpnlQueryOptions, mr as getMuonUpnl, _r as getMuonUpnlA, vr as getMuonUpnlAQueryKey, yr as getMuonUpnlAQueryOptions, br as getMuonUpnlAWithSymbolPrice, xr as getMuonUpnlAWithSymbolPriceQueryKey, Sr as getMuonUpnlAWithSymbolPriceQueryOptions, Cr as getMuonUpnlB, wr as getMuonUpnlBQueryKey, Tr as getMuonUpnlBQueryOptions, hr as getMuonUpnlQueryKey, gr as getMuonUpnlQueryOptions, Er as getMuonUpnlWithSymbolPrice, Dr as getMuonUpnlWithSymbolPriceQueryKey, Or as getMuonUpnlWithSymbolPriceQueryOptions, jn as getNotionalCapAll, In as getNotionalCapAllQueryKey, Ln as getNotionalCapAllQueryOptions, Mn as getNotionalCapBySymbolId, Pn as getNotionalCapBySymbolIdQueryKey, Fn as getNotionalCapBySymbolIdQueryOptions, Ue as getOnchainContractMarkets, ut as getOnchainContractMarketsQueryKey, dt as getOnchainContractMarketsQueryOptions, Nn as getOpenInterestBySymbolId, Rn as getOpenInterestBySymbolIdQueryKey, zn as getOpenInterestBySymbolIdQueryOptions, We as getPartyAOpenPositions, ft as getPartyAOpenPositionsQueryKey, pt as getPartyAOpenPositionsQueryOptions, Ge as getPartyAPendingQuotes, mt as getPartyAPendingQuotesQueryKey, ht as getPartyAPendingQuotesQueryOptions, Ke as getPendingWithdrawRequests, gt as getPendingWithdrawRequestsQueryKey, _t as getPendingWithdrawRequestsQueryOptions, M as getPredictedNextVirtualAccount, oe as getPredictedNextVirtualAccountQueryKey, se as getPredictedNextVirtualAccountQueryOptions, Ki as getQuerySubgraphQueryKey, qe as getQuote, Xi as getQuoteEventsByType, Zi as getQuoteEventsByTypeQueryKey, Qi as getQuoteEventsByTypeQueryOptions, na as getQuoteFunding, ra as getQuoteFundingQueryKey, ia as getQuoteFundingQueryOptions, da as getQuoteHistory, fa as getQuoteHistoryQueryKey, pa as getQuoteHistoryQueryOptions, vt as getQuoteQueryKey, yt as getQuoteQueryOptions, qa as getQuoteTpSl, Ja as getQuoteTpSlQueryKey, Ya as getQuoteTpSlQueryOptions, Bn as getSolverErrorCodes, Vn as getSolverErrorCodesQueryKey, Hn as getSolverErrorCodesQueryOptions, T as getSubAccount, K as getSubAccountQueryKey, q as getSubAccountQueryOptions, ba as getSubAccountQuotes, xa as getSubAccountQuotesQueryKey, Sa as getSubAccountQuotesQueryOptions, E as getSubAccountVirtualNonce, J as getSubAccountVirtualNonceQueryKey, Y as getSubAccountVirtualNonceQueryOptions, D as getSubAccountsCountOfUser, X as getSubAccountsCountOfUserQueryKey, Z as getSubAccountsCountOfUserQueryOptions, Fa as getTpSlConfig, Ia as getTpSlConfigQueryKey, La as getTpSlConfigQueryOptions, Wa as getTpSlDeleteSigningSpec, no as getTpSlDeleteSigningSpecQueryKey, ro as getTpSlDeleteSigningSpecQueryOptions, Za as getTpSlSigningSpec, io as getTpSlSigningSpecQueryKey, ao as getTpSlSigningSpecQueryOptions, yo as getTransferHistory, bo as getTransferHistoryQueryKey, xo as getTransferHistoryQueryOptions, O as getUserSubAccounts, k as getUserSubAccountsAddresses, ee as getUserSubAccountsAddressesQueryKey, te as getUserSubAccountsAddressesQueryOptions, Q as getUserSubAccountsQueryKey, $ as getUserSubAccountsQueryOptions, A as getVirtualAccount, ne as getVirtualAccountQueryKey, re as getVirtualAccountQueryOptions, j as getVirtualAccountsAddressesOfSubAccount, ie as getVirtualAccountsAddressesOfSubAccountQueryKey, ae as getVirtualAccountsAddressesOfSubAccountQueryOptions, Je as getWithdrawRequests, bt as getWithdrawRequestsQueryKey, xt as getWithdrawRequestsQueryOptions, Ye as getWithdrawableTime, St as getWithdrawableTimeQueryKey, Ct as getWithdrawableTimeQueryOptions, Ae as grantDelegation, Fe as grantDelegationMutationOptions, Oa as groupQuotes, Xe as initiateWithdraw, wt as initiateWithdrawMutationOptions, Ei as instantClose, ji as instantCloseAuto, Mi as instantCloseAutoMutationOptions, Pi as instantCloseBulk, Ii as instantCloseBulkAuto, Li as instantCloseBulkAutoMutationOptions, Fi as instantCloseBulkMutationOptions, Di as instantCloseMutationOptions, t as instantLayerAbi, oi as instantOpen, pi as instantOpenAuto, mi as instantOpenAutoMutationOptions, si as instantOpenMutationOptions, Ca as isActivePosition, s as isChainSupported, wa as isPendingOrder, Qr as isolationTypeForSide, ma as lifecycleFromQuoteStatus, c as listSupportedChains, en as normalizeNotification, tn as parseNotificationFrame, rn as parsePriceFrame, so as parseTpSlFrame, Ta as partitionQuotes, Ai as prepareInstantCloseParams, fi as prepareInstantOpenParams, $a as priceSlippageCalculation, yn as projectFundingRate, Gi as querySubgraph, qi as querySubgraphQueryOptions, va as reconcileQuotes, P as removeMargin, ce as removeMarginMutationOptions, Ze as requestCancelWithdraw, Tt as requestCancelWithdrawMutationOptions, ui as resolveFeeRates, di as resolveLockedParams, ci as resolveMarkPrice, li as resolveMarket, ya as resolveQuoteAccounts, Da as resolveQuoteGroupingStrategy, on as searchNotifications, sn as searchNotificationsQueryKey, cn as searchNotificationsQueryOptions, Ti as sendInstantClose, Br as sendInstantOpen, eo as setQuoteTpSl, to as setQuoteTpSlMutationOptions, Aa as shouldAccelerateOnchainReads, ja as shouldAccelerateQuotePolling, u as shouldSimulateBeforeWrite, Yr as signAndFormatInstantOperation, Gr as signSignedOperation, Ua as signTpSlRequest, d as simulateAddMargin, le as simulateAddMarginMutationOptions, Qe as simulateAllocate, Et as simulateAllocateMutationOptions, _e as simulateApproveCollateral, Ee as simulateApproveCollateralMutationOptions, p as simulateCreateSubAccounts, ue as simulateCreateSubAccountsMutationOptions, $e as simulateDeallocate, Dt as simulateDeallocateMutationOptions, h as simulateDeleteSubAccount, de as simulateDeleteSubAccountMutationOptions, _ as simulateDepositAndAllocateForAccount, fe as simulateDepositAndAllocateForAccountMutationOptions, y as simulateDepositForAccount, pe as simulateDepositForAccountMutationOptions, x as simulateEditAccountName, me as simulateEditAccountNameMutationOptions, ze as simulateFinalizeWithdrawRequest, Ot as simulateFinalizeWithdrawRequestMutationOptions, ke as simulateGrantDelegation, Ie as simulateGrantDelegationMutationOptions, et as simulateInitiateWithdraw, kt as simulateInitiateWithdrawMutationOptions, N as simulateRemoveMargin, he as simulateRemoveMarginMutationOptions, tt as simulateRequestCancelWithdraw, At as simulateRequestCancelWithdrawMutationOptions, n as symmioAbi, mo as toBalanceHistoryRow, fn as toEstimatedPrice, _n as toMarketFundingInfo, Sn as toMarketInfo, An as toMarketNotionalCap, bi as toPendingInstantClose, Ji as toQuoteEventRow, ta as toQuoteFundingRow, ua as toQuoteHistoryRow, Ha as toSignableTpSlMessage, vo as toTransferRow, ha as toUnifiedQuoteFromInstantClose, ga as toUnifiedQuoteFromInstantOpen, _a as toUnifiedQuoteFromOnchain, ai as toWeiBigInt, Ri as validateInstantCloseAgainstMarket, hi as validateInstantOpenAgainstMarket, oo as validateTpSl, an as watchEnigmaPrices, nn as watchNotifications, co as watchTpSlNotifications };
|
package/dist/muon/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MuonAttestationBase, MuonRawResult } from './types';
|
|
1
|
+
import { MuonAttestationBase, MuonRawResult } from './types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Plain (un-prefixed) Muon request fields. {@link fetchMuon} wraps each entry
|
|
4
4
|
* into the gateway's `params[<key>]` query-string form and adds `app` + `method`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../shared/types/properties';
|
|
4
|
-
import { SingleUpnlSig } from '../../symmio-contracts/account-layer/types';
|
|
2
|
+
import { Config } from '../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
|
|
4
|
+
import { SingleUpnlSig } from '../../symmio-contracts/account-layer/types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link getDeallocateUpnlSig}.
|
|
7
7
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './get-deallocate-upnl-sig';
|
|
2
|
-
export * from './query';
|
|
1
|
+
export * from './get-deallocate-upnl-sig.js';
|
|
2
|
+
export * from './query.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
|
|
4
|
-
import { GetDeallocateUpnlSigParameters, GetDeallocateUpnlSigReturnType } from './get-deallocate-upnl-sig';
|
|
1
|
+
import { Config } from '../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
|
|
4
|
+
import { GetDeallocateUpnlSigParameters, GetDeallocateUpnlSigReturnType } from './get-deallocate-upnl-sig.js';
|
|
5
5
|
/** Data resolved by the {@link getDeallocateUpnlSigQueryOptions} query. */
|
|
6
6
|
export type GetDeallocateUpnlSigData = GetDeallocateUpnlSigReturnType;
|
|
7
7
|
/**
|
package/dist/muon/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './deallocate-upnl-sig';
|
|
2
|
-
export * from './party-a-overview';
|
|
3
|
-
export * from './price';
|
|
4
|
-
export * from './price-range';
|
|
5
|
-
export * from './settle-upnl';
|
|
6
|
-
export * from './types';
|
|
7
|
-
export * from './upnl';
|
|
8
|
-
export * from './upnl-a';
|
|
9
|
-
export * from './upnl-a-with-symbol-price';
|
|
10
|
-
export * from './upnl-b';
|
|
11
|
-
export * from './upnl-with-symbol-price';
|
|
1
|
+
export * from './deallocate-upnl-sig/index.js';
|
|
2
|
+
export * from './party-a-overview/index.js';
|
|
3
|
+
export * from './price/index.js';
|
|
4
|
+
export * from './price-range/index.js';
|
|
5
|
+
export * from './settle-upnl/index.js';
|
|
6
|
+
export * from './types.js';
|
|
7
|
+
export * from './upnl/index.js';
|
|
8
|
+
export * from './upnl-a/index.js';
|
|
9
|
+
export * from './upnl-a-with-symbol-price/index.js';
|
|
10
|
+
export * from './upnl-b/index.js';
|
|
11
|
+
export * from './upnl-with-symbol-price/index.js';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../shared/types/properties';
|
|
4
|
-
import { MuonAttestationBase } from '../types';
|
|
2
|
+
import { Config } from '../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
|
|
4
|
+
import { MuonAttestationBase } from '../types.js';
|
|
5
5
|
/** Parameters for {@link getMuonPartyAOverview}. */
|
|
6
6
|
export type GetMuonPartyAOverviewParameters = Compute<ChainIdParameter & {
|
|
7
|
-
/** The partyA (
|
|
7
|
+
/** The partyA (virtual account for lowcap) to attest. */
|
|
8
8
|
partyA: Address;
|
|
9
9
|
}>;
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-muon-party-a-overview.d.ts","sourceRoot":"","sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.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;AAE/E,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAElF,oDAAoD;AACpD,MAAM,MAAM,+BAA+B,GAAG,OAAO,CACnD,gBAAgB,GAAG;IACjB,
|
|
1
|
+
{"version":3,"file":"get-muon-party-a-overview.d.ts","sourceRoot":"","sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.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;AAE/E,OAAO,EAAgC,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAElF,oDAAoD;AACpD,MAAM,MAAM,+BAA+B,GAAG,OAAO,CACnD,gBAAgB,GAAG;IACjB,yDAAyD;IACzD,MAAM,EAAE,OAAO,CAAC;CACjB,CACF,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB;IAC1E,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,+BAA+B,GAC1C,OAAO,CAAC,+BAA+B,CAAC,CAkB1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-muon-party-a-overview.js","names":[],"sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { fetchMuon, muonBigInt, muonBigIntArray, requireMuonBigInt, toMuonAttestationBase } from \"../client\";\nimport { MUON_METHOD_PARTY_A_OVERVIEW, type MuonAttestationBase } from \"../types\";\n\n/** Parameters for {@link getMuonPartyAOverview}. */\nexport type GetMuonPartyAOverviewParameters = Compute<\n ChainIdParameter & {\n /** The partyA (
|
|
1
|
+
{"version":3,"file":"get-muon-party-a-overview.js","names":[],"sources":["../../../src/muon/party-a-overview/get-muon-party-a-overview.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../shared/types/properties\";\nimport { fetchMuon, muonBigInt, muonBigIntArray, requireMuonBigInt, toMuonAttestationBase } from \"../client\";\nimport { MUON_METHOD_PARTY_A_OVERVIEW, type MuonAttestationBase } from \"../types\";\n\n/** Parameters for {@link getMuonPartyAOverview}. */\nexport type GetMuonPartyAOverviewParameters = Compute<\n ChainIdParameter & {\n /** The partyA (virtual account for lowcap) to attest. */\n partyA: Address;\n }\n>;\n\n/**\n * Normalized `partyA_overview` attestation: the shared signature envelope plus\n * partyA's liquidation-overview fields.\n *\n * @remarks\n * TODO(muon-verify): beyond `uPnl` (verified via Vibe-ui), the field set/nesting\n * is best-effort from the Muon docs; optional fields are absent when the gateway\n * omits them.\n */\nexport interface GetMuonPartyAOverviewReturnType extends MuonAttestationBase {\n /** The attested partyA. */\n partyA: Address;\n /** Signed unrealized PnL (18-decimal, signed). */\n uPnl: bigint;\n /** Sum of notional values across the partyA's positions. */\n notionalValueSum?: bigint;\n /** Aggregated loss used by the liquidation flow. */\n loss?: bigint;\n /** Raw liquidation id for this partyA, when the attestation carries one. */\n liquidationId?: string;\n /** Symbol ids included in the attestation. */\n symbolIds: bigint[];\n /** Quote ids included in the attestation. */\n quoteIds: bigint[];\n}\n\n/**\n * Fetch a fresh Muon `partyA_overview` attestation for `partyA` and normalize it\n * to typed fields. The oracle URLs and the SYMMIO diamond address (the `symmio`\n * request param) are resolved from `config`; gateways are tried in order until\n * one succeeds.\n *\n * @remarks\n * This is the uPnL + liquidation data behind `liquidatePartyA` / `setSymbolsPrice`\n * (it produces a `LiquidationSig`).\n *\n * @param config - The SDK config.\n * @param parameters - PartyA address and optional chain id.\n * @returns The normalized `partyA_overview` attestation.\n * @throws {SymmError} when the chain is unsupported, no Muon URLs are configured,\n * or every oracle returns an unsuccessful or malformed attestation.\n *\n * @example\n * ```ts\n * const overview = await getMuonPartyAOverview(config, { partyA: \"0xva…\" });\n * console.log(overview.uPnl, overview.liquidationId);\n * ```\n */\nexport async function getMuonPartyAOverview(\n config: Config,\n parameters: GetMuonPartyAOverviewParameters,\n): Promise<GetMuonPartyAOverviewReturnType> {\n const { chainId, addresses, muon } = config.getChainConfig(parameters.chainId);\n const raw = await fetchMuon(muon.urls, MUON_METHOD_PARTY_A_OVERVIEW, {\n partyA: parameters.partyA,\n chainId: chainId.toString(),\n symmio: addresses.symmioAddress,\n });\n const result = raw.data.result;\n return {\n ...toMuonAttestationBase(raw),\n partyA: parameters.partyA,\n uPnl: requireMuonBigInt(result.uPnl, \"uPnl\"),\n notionalValueSum: muonBigInt(result.notionalValueSum),\n loss: muonBigInt(result.loss),\n liquidationId: result.liquidationId as string | undefined,\n symbolIds: muonBigIntArray(result.symbolIds),\n quoteIds: muonBigIntArray(result.quoteIds),\n };\n}\n"],"mappings":";;;AA8DA,eAAsB,EACpB,GACA,GAC0C;CAC1C,IAAM,EAAE,YAAS,cAAW,YAAS,EAAO,eAAe,EAAW,OAAO,GACvE,IAAM,MAAM,EAAU,EAAK,MAAM,GAA8B;EACnE,QAAQ,EAAW;EACnB,SAAS,EAAQ,SAAS;EAC1B,QAAQ,EAAU;CACpB,CAAC,GACK,IAAS,EAAI,KAAK;CACxB,OAAO;EACL,GAAG,EAAsB,CAAG;EAC5B,QAAQ,EAAW;EACnB,MAAM,EAAkB,EAAO,MAAM,MAAM;EAC3C,kBAAkB,EAAW,EAAO,gBAAgB;EACpD,MAAM,EAAW,EAAO,IAAI;EAC5B,eAAe,EAAO;EACtB,WAAW,EAAgB,EAAO,SAAS;EAC3C,UAAU,EAAgB,EAAO,QAAQ;CAC3C;AACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './get-muon-party-a-overview';
|
|
2
|
-
export * from './query';
|
|
1
|
+
export * from './get-muon-party-a-overview.js';
|
|
2
|
+
export * from './query.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
|
|
4
|
-
import { GetMuonPartyAOverviewParameters, GetMuonPartyAOverviewReturnType } from './get-muon-party-a-overview';
|
|
1
|
+
import { Config } from '../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
|
|
4
|
+
import { GetMuonPartyAOverviewParameters, GetMuonPartyAOverviewReturnType } from './get-muon-party-a-overview.js';
|
|
5
5
|
/** Data resolved by the {@link getMuonPartyAOverviewQueryOptions} query. */
|
|
6
6
|
export type GetMuonPartyAOverviewData = GetMuonPartyAOverviewReturnType;
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from '../../core/config';
|
|
2
|
-
import { ChainIdParameter, Compute } from '../../shared/types/properties';
|
|
3
|
-
import { MuonAttestationBase } from '../types';
|
|
1
|
+
import { Config } from '../../core/config/index.js';
|
|
2
|
+
import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
|
|
3
|
+
import { MuonAttestationBase } from '../types.js';
|
|
4
4
|
/** Parameters for {@link getMuonPrice}. */
|
|
5
5
|
export type GetMuonPriceParameters = Compute<ChainIdParameter & {
|
|
6
6
|
/** The quote ids to price (the partyB liquidation flow validates these prices). */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './get-muon-price';
|
|
2
|
-
export * from './query';
|
|
1
|
+
export * from './get-muon-price.js';
|
|
2
|
+
export * from './query.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter } from '../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query';
|
|
4
|
-
import { GetMuonPriceParameters, GetMuonPriceReturnType } from './get-muon-price';
|
|
1
|
+
import { Config } from '../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter } from '../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../shared/types/query.js';
|
|
4
|
+
import { GetMuonPriceParameters, GetMuonPriceReturnType } from './get-muon-price.js';
|
|
5
5
|
/** Data resolved by the {@link getMuonPriceQueryOptions} query. */
|
|
6
6
|
export type GetMuonPriceData = GetMuonPriceReturnType;
|
|
7
7
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../shared/types/properties';
|
|
4
|
-
import { MuonAttestationBase } from '../types';
|
|
2
|
+
import { Config } from '../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
|
|
4
|
+
import { MuonAttestationBase } from '../types.js';
|
|
5
5
|
/** Parameters for {@link getMuonPriceRange}. */
|
|
6
6
|
export type GetMuonPriceRangeParameters = Compute<ChainIdParameter & {
|
|
7
7
|
/** Window start in unix seconds. */
|
|
8
8
|
t0: bigint;
|
|
9
9
|
/** Window end in unix seconds. */
|
|
10
10
|
t1: bigint;
|
|
11
|
-
/** The partyA (
|
|
11
|
+
/** The partyA (virtual account for lowcap) to attest. */
|
|
12
12
|
partyA: Address;
|
|
13
13
|
/** The partyB counterparty of the position. */
|
|
14
14
|
partyB: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-muon-price-range.d.ts","sourceRoot":"","sources":["../../../src/muon/price-range/get-muon-price-range.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;AAE/E,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7E,gDAAgD;AAChD,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,gBAAgB,GAAG;IACjB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"get-muon-price-range.d.ts","sourceRoot":"","sources":["../../../src/muon/price-range/get-muon-price-range.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;AAE/E,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7E,gDAAgD;AAChD,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,gBAAgB,GAAG;IACjB,oCAAoC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,yDAAyD;IACzD,MAAM,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,MAAM,EAAE,OAAO,CAAC;IAChB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;IACtE,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,2BAA2B,CAAC,CA0BtC"}
|