@symmio/trading-core 0.1.0 → 0.2.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 +18 -45
- 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 +5 -5
- 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 +57 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +138 -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/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 +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 +10 -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 +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.d.ts +3 -3
- 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 +8 -6
package/dist/index.js
CHANGED
|
@@ -135,130 +135,141 @@ 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 { toMarketFundingInfo as fn } from "./solvers/funding-info/to-funding-info.js";
|
|
139
|
+
import { getFundingInfo as pn } from "./solvers/funding-info/get-funding-info.js";
|
|
140
|
+
import { projectFundingRate as mn } from "./solvers/funding-info/project-funding-rate.js";
|
|
141
|
+
import { getFundingInfoQueryKey as hn, getFundingInfoQueryOptions as gn } from "./solvers/funding-info/query.js";
|
|
142
|
+
import { toMarketInfo as _n } from "./solvers/market-info/to-market-info.js";
|
|
143
|
+
import { getMarketInfo as vn } from "./solvers/market-info/get-market-info.js";
|
|
144
|
+
import { getMarketInfoQueryKey as yn, getMarketInfoQueryOptions as bn } from "./solvers/market-info/query.js";
|
|
145
|
+
import { getLockedParams as xn } from "./solvers/locked-params/get-locked-params.js";
|
|
146
|
+
import { getLockedParamsQueryKey as Sn, getLockedParamsQueryOptions as Cn } from "./solvers/locked-params/query.js";
|
|
147
|
+
import { checkNotionalCap as wn } from "./solvers/notional-cap/check-notional-cap.js";
|
|
148
|
+
import { toMarketNotionalCap as Tn } from "./solvers/notional-cap/to-market-notional-cap.js";
|
|
149
|
+
import { getNotionalCapAll as En } from "./solvers/notional-cap/get-notional-cap-all.js";
|
|
150
|
+
import { getNotionalCapBySymbolId as Dn } from "./solvers/notional-cap/get-notional-cap-by-symbol-id.js";
|
|
151
|
+
import { getOpenInterestBySymbolId as On } from "./solvers/notional-cap/get-open-interest-by-symbol-id.js";
|
|
152
|
+
import { getNotionalCapBySymbolIdQueryKey as kn, getNotionalCapBySymbolIdQueryOptions as An } from "./solvers/notional-cap/query.js";
|
|
153
|
+
import { getNotionalCapAllQueryKey as jn, getNotionalCapAllQueryOptions as Mn } from "./solvers/notional-cap/query-all.js";
|
|
154
|
+
import { getOpenInterestBySymbolIdQueryKey as Nn, getOpenInterestBySymbolIdQueryOptions as Pn } from "./solvers/notional-cap/query-open-interest.js";
|
|
155
|
+
import { getSolverErrorCodes as Fn } from "./solvers/error-codes/get-solver-error-codes.js";
|
|
156
|
+
import { getSolverErrorCodesQueryKey as In, getSolverErrorCodesQueryOptions as Ln } from "./solvers/error-codes/query.js";
|
|
157
|
+
import { MUON_APP as Rn, MUON_METHOD_PARTY_A_OVERVIEW as zn, MUON_METHOD_PRICE as Bn, MUON_METHOD_PRICE_RANGE as Vn, MUON_METHOD_SETTLE_UPNL as Hn, MUON_METHOD_UPNL_A as Un, MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE as Wn, MUON_METHOD_UPNL_B as Gn, MUON_METHOD_UPNL_PAIR as Kn, MUON_METHOD_UPNL_WITH_SYMBOL_PRICE as qn } from "./muon/types.js";
|
|
158
|
+
import { getDeallocateUpnlSig as Jn } from "./muon/deallocate-upnl-sig/get-deallocate-upnl-sig.js";
|
|
159
|
+
import { getDeallocateUpnlSigQueryKey as Yn, getDeallocateUpnlSigQueryOptions as Xn } from "./muon/deallocate-upnl-sig/query.js";
|
|
160
|
+
import { getMuonPartyAOverview as Zn } from "./muon/party-a-overview/get-muon-party-a-overview.js";
|
|
161
|
+
import { getMuonPartyAOverviewQueryKey as Qn, getMuonPartyAOverviewQueryOptions as $n } from "./muon/party-a-overview/query.js";
|
|
162
|
+
import { getMuonPrice as er } from "./muon/price/get-muon-price.js";
|
|
163
|
+
import { getMuonPriceQueryKey as tr, getMuonPriceQueryOptions as nr } from "./muon/price/query.js";
|
|
164
|
+
import { getMuonPriceRange as rr } from "./muon/price-range/get-muon-price-range.js";
|
|
165
|
+
import { getMuonPriceRangeQueryKey as ir, getMuonPriceRangeQueryOptions as ar } from "./muon/price-range/query.js";
|
|
166
|
+
import { getMuonSettleUpnl as or } from "./muon/settle-upnl/get-muon-settle-upnl.js";
|
|
167
|
+
import { getMuonSettleUpnlQueryKey as sr, getMuonSettleUpnlQueryOptions as cr } from "./muon/settle-upnl/query.js";
|
|
168
|
+
import { getMuonUpnl as lr } from "./muon/upnl/get-muon-upnl.js";
|
|
169
|
+
import { getMuonUpnlQueryKey as ur, getMuonUpnlQueryOptions as dr } from "./muon/upnl/query.js";
|
|
170
|
+
import { getMuonUpnlA as fr } from "./muon/upnl-a/get-muon-upnl-a.js";
|
|
171
|
+
import { getMuonUpnlAQueryKey as pr, getMuonUpnlAQueryOptions as mr } from "./muon/upnl-a/query.js";
|
|
172
|
+
import { getMuonUpnlAWithSymbolPrice as hr } from "./muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js";
|
|
173
|
+
import { getMuonUpnlAWithSymbolPriceQueryKey as gr, getMuonUpnlAWithSymbolPriceQueryOptions as _r } from "./muon/upnl-a-with-symbol-price/query.js";
|
|
174
|
+
import { getMuonUpnlB as vr } from "./muon/upnl-b/get-muon-upnl-b.js";
|
|
175
|
+
import { getMuonUpnlBQueryKey as yr, getMuonUpnlBQueryOptions as br } from "./muon/upnl-b/query.js";
|
|
176
|
+
import { getMuonUpnlWithSymbolPrice as xr } from "./muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js";
|
|
177
|
+
import { getMuonUpnlWithSymbolPriceQueryKey as Sr, getMuonUpnlWithSymbolPriceQueryOptions as Cr } from "./muon/upnl-with-symbol-price/query.js";
|
|
178
|
+
import { getInstantOpenQuoteId as wr } from "./solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.js";
|
|
179
|
+
import { getInstantOpenQuoteIdQueryKey as Tr, getInstantOpenQuoteIdQueryOptions as Er } from "./solvers/instant-open/get-instant-open-quote-id/query.js";
|
|
180
|
+
import { getInstantOpens as Dr } from "./solvers/instant-open/get-instant-opens/get-instant-opens.js";
|
|
181
|
+
import { getInstantOpensQueryKey as Or, getInstantOpensQueryOptions as kr } from "./solvers/instant-open/get-instant-opens/query.js";
|
|
182
|
+
import { ZERO_UPNL_SIG as Ar, buildQuoteMetadata as jr, encodeAddMarginToNextVA as Mr, encodeSendQuoteWithAffiliateAndData as Nr, getFakeSendQuoteMuonSignature as Pr } from "./solvers/instant-open/shared/calldata.js";
|
|
183
|
+
import { sendInstantOpen as Fr } from "./solvers/instant-open/shared/hedger-api.js";
|
|
184
|
+
import { INSTANT_LAYER_EIP712_DOMAIN_NAME as Ir, INSTANT_LAYER_EIP712_DOMAIN_VERSION as Lr, SIGNED_OPERATION_TYPES as Rr, getInstantLayerEip712Domain as zr, signSignedOperation as Br } from "./solvers/instant-open/shared/eip712.js";
|
|
185
|
+
import { buildSignedOperation as Vr, formatSignedOperationPayload as Hr, generateSalt as Ur, signAndFormatInstantOperation as Wr } from "./solvers/instant-open/shared/operations.js";
|
|
186
|
+
import { ORDER_TYPE_MARKET as Gr, VIRTUAL_ACCOUNT_ISOLATION_TYPE as Kr, isolationTypeForSide as qr } from "./solvers/instant-open/shared/types.js";
|
|
187
|
+
import { MARKET_ORDER_DEADLINE_SECONDS as Jr, calculateMargin as Yr, calculateTradeParams as Xr, computePlatformFee as Zr, getMarketOrderDeadline as Qr, toWeiBigInt as $r } from "./solvers/instant-open/shared/trade-math.js";
|
|
188
|
+
import { instantOpen as ei } from "./solvers/instant-open/instant-open/instant-open.js";
|
|
189
|
+
import { instantOpenMutationOptions as ti } from "./solvers/instant-open/instant-open/query.js";
|
|
190
|
+
import { resolveMarkPrice as ni } from "./solvers/shared/resolvers/resolve-mark-price.js";
|
|
191
|
+
import { resolveMarket as ri } from "./solvers/shared/resolvers/resolve-market.js";
|
|
192
|
+
import { resolveFeeRates as ii } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.js";
|
|
193
|
+
import { resolveLockedParams as ai } from "./solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.js";
|
|
194
|
+
import { prepareInstantOpenParams as oi } from "./solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js";
|
|
195
|
+
import { instantOpenAuto as si } from "./solvers/instant-open/instant-open-auto/instant-open-auto.js";
|
|
196
|
+
import { instantOpenAutoMutationOptions as ci } from "./solvers/instant-open/instant-open-auto/query.js";
|
|
197
|
+
import { validateInstantOpenAgainstMarket as li } from "./solvers/instant-open/shared/quote-constraints.js";
|
|
198
|
+
import { ADD_MARGIN_TO_NEXT_VA_SELECTOR as ui, INSTANT_TRADE_REQUIRED_SELECTORS as di, REQUEST_TO_CLOSE_POSITION_SELECTOR as fi, SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR as pi } from "./solvers/instant-open/shared/selectors.js";
|
|
199
|
+
import { toPendingInstantClose as mi } from "./solvers/instant-close/get-instant-closes/to-pending-instant-close.js";
|
|
200
|
+
import { getInstantCloses as hi } from "./solvers/instant-close/get-instant-closes/get-instant-closes.js";
|
|
201
|
+
import { getInstantClosesQueryKey as gi, getInstantClosesQueryOptions as _i } from "./solvers/instant-close/get-instant-closes/query.js";
|
|
202
|
+
import { encodeRequestToClosePosition as vi } from "./solvers/instant-close/shared/calldata.js";
|
|
203
|
+
import { sendInstantClose as yi } from "./solvers/instant-close/shared/hedger-api.js";
|
|
204
|
+
import { instantClose as bi } from "./solvers/instant-close/instant-close/instant-close.js";
|
|
205
|
+
import { instantCloseMutationOptions as xi } from "./solvers/instant-close/instant-close/query.js";
|
|
206
|
+
import { calculateClosePrice as Si, clampClosePrecision as Ci } from "./solvers/instant-close/shared/close-math.js";
|
|
207
|
+
import { prepareInstantCloseParams as wi } from "./solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.js";
|
|
208
|
+
import { instantCloseAuto as Ti } from "./solvers/instant-close/instant-close-auto/instant-close-auto.js";
|
|
209
|
+
import { instantCloseAutoMutationOptions as Ei } from "./solvers/instant-close/instant-close-auto/query.js";
|
|
210
|
+
import { MAX_INSTANT_CLOSE_BULK_ORDERS as Di, instantCloseBulk as Oi } from "./solvers/instant-close/instant-close-bulk/instant-close-bulk.js";
|
|
211
|
+
import { instantCloseBulkMutationOptions as ki } from "./solvers/instant-close/instant-close-bulk/query.js";
|
|
212
|
+
import { instantCloseBulkAuto as Ai } from "./solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.js";
|
|
213
|
+
import { instantCloseBulkAutoMutationOptions as ji } from "./solvers/instant-close/instant-close-bulk-auto/query.js";
|
|
214
|
+
import { validateInstantCloseAgainstMarket as Mi } from "./solvers/instant-close/shared/quote-constraints.js";
|
|
215
|
+
import { QuoteLifecycle as Ni } from "./quotes/unified-quote.js";
|
|
216
|
+
import { applyNotificationToQuotes as Pi, classifyQuoteNotificationAction as Fi } from "./quotes/apply-notification.js";
|
|
217
|
+
import { calculateClosePlatformFee as Ii } from "./quotes/fees/calculate-close-platform-fee.js";
|
|
218
|
+
import { calculateOpenPlatformFee as Li } from "./quotes/fees/calculate-open-platform-fee.js";
|
|
219
|
+
import { fingerprintQuote as Ri } from "./quotes/fingerprint.js";
|
|
220
|
+
import { querySubgraph as zi } from "./symmio-subgraph/query-subgraph/query-subgraph.js";
|
|
221
|
+
import { getQuerySubgraphQueryKey as Bi, querySubgraphQueryOptions as Vi } from "./symmio-subgraph/query-subgraph/query.js";
|
|
222
|
+
import { toQuoteEventRow as Hi } from "./quotes/get-quote-events-by-type/to-quote-event-row.js";
|
|
223
|
+
import { DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE as Ui, getQuoteEventsByType as Wi } from "./quotes/get-quote-events-by-type/get-quote-events-by-type.js";
|
|
224
|
+
import { getQuoteEventsByTypeQueryKey as Gi, getQuoteEventsByTypeQueryOptions as Ki } from "./quotes/get-quote-events-by-type/query.js";
|
|
225
|
+
import { PRICE_HISTORY_EVENT_TYPES as qi, QuoteEventType as Ji } from "./quotes/get-quote-events-by-type/types.js";
|
|
226
|
+
import { toQuoteFundingRow as Yi } from "./quotes/get-quote-funding/to-funding-row.js";
|
|
227
|
+
import { getQuoteFunding as Xi } from "./quotes/get-quote-funding/get-quote-funding.js";
|
|
228
|
+
import { getQuoteFundingQueryKey as Zi, getQuoteFundingQueryOptions as Qi } from "./quotes/get-quote-funding/query.js";
|
|
229
|
+
import { QuoteCloseEventType as $i, QuoteCloseType as ea } from "./quotes/get-quote-history/types.js";
|
|
230
|
+
import { closeTypeToEventTypes as ta, eventTypeToCloseType as na, eventTypeToQuoteStatus as ra } from "./quotes/get-quote-history/close-type.js";
|
|
231
|
+
import { toQuoteHistoryRow as ia } from "./quotes/get-quote-history/to-history-row.js";
|
|
232
|
+
import { getQuoteHistory as aa } from "./quotes/get-quote-history/get-quote-history.js";
|
|
233
|
+
import { getQuoteHistoryQueryKey as oa, getQuoteHistoryQueryOptions as sa } from "./quotes/get-quote-history/query.js";
|
|
234
|
+
import { lifecycleFromQuoteStatus as ca, toUnifiedQuoteFromInstantClose as la, toUnifiedQuoteFromInstantOpen as ua, toUnifiedQuoteFromOnchain as da } from "./quotes/to-unified-quote.js";
|
|
235
|
+
import { reconcileQuotes as fa } from "./quotes/reconcile-quotes.js";
|
|
236
|
+
import { resolveQuoteAccounts as pa } from "./quotes/resolve-quote-accounts.js";
|
|
237
|
+
import { getSubAccountQuotes as ma } from "./quotes/get-sub-account-quotes/get-sub-account-quotes.js";
|
|
238
|
+
import { getSubAccountQuotesQueryKey as ha, getSubAccountQuotesQueryOptions as ga } from "./quotes/get-sub-account-quotes/query.js";
|
|
239
|
+
import { isActivePosition as _a, isPendingOrder as va, partitionQuotes as ya } from "./quotes/grouping/partition-quotes.js";
|
|
240
|
+
import { aggregateGroupMetrics as ba } from "./quotes/grouping/aggregate-metrics.js";
|
|
241
|
+
import { resolveQuoteGroupingStrategy as xa } from "./quotes/grouping/group-strategy.js";
|
|
242
|
+
import { groupQuotes as Sa } from "./quotes/grouping/group-quotes.js";
|
|
243
|
+
import { calculateLiquidationPrice as Ca } from "./quotes/liquidation/calculate-liquidation-price.js";
|
|
244
|
+
import { shouldAccelerateOnchainReads as wa, shouldAccelerateQuotePolling as Ta } from "./quotes/should-accelerate.js";
|
|
245
|
+
import { calculateQuoteLeverage as Ea } from "./quotes/upnl/calculate-quote-leverage.js";
|
|
246
|
+
import { calculateQuotePnl as Da } from "./quotes/upnl/calculate-quote-pnl.js";
|
|
247
|
+
import { calculateQuoteUpnl as Oa } from "./quotes/upnl/calculate-quote-upnl.js";
|
|
248
|
+
import { getTpSlConfig as ka } from "./tpsl/config/get-tpsl-config.js";
|
|
249
|
+
import { getTpSlConfigQueryKey as Aa, getTpSlConfigQueryOptions as ja } from "./tpsl/config/query.js";
|
|
250
|
+
import { ZERO_LEG as Ma, buildConditionalOrderMessage as Na, buildTpSlDeleteMessage as Pa, generateTpSlSalt as Fa, toSignableTpSlMessage as Ia } from "./tpsl/set-quote-tpsl/build-conditional-order-message.js";
|
|
251
|
+
import { signTpSlRequest as La } from "./tpsl/set-quote-tpsl/sign-tpsl-request.js";
|
|
252
|
+
import { getTpSlDeleteSigningSpec as Ra } from "./tpsl/signing-spec/get-tpsl-delete-signing-spec.js";
|
|
253
|
+
import { deleteQuoteTpSl as za } from "./tpsl/delete-quote-tpsl/delete-quote-tpsl.js";
|
|
254
|
+
import { deleteQuoteTpSlMutationOptions as Ba } from "./tpsl/delete-quote-tpsl/query.js";
|
|
255
|
+
import { getQuoteTpSl as Va } from "./tpsl/get-quote-tpsl/get-quote-tpsl.js";
|
|
256
|
+
import { getQuoteTpSlQueryKey as Ha, getQuoteTpSlQueryOptions as Ua } from "./tpsl/get-quote-tpsl/query.js";
|
|
257
|
+
import { buildConditionalOrderLeg as Wa } from "./tpsl/set-quote-tpsl/build-conditional-order-leg.js";
|
|
258
|
+
import { getTpSlSigningSpec as Ga } from "./tpsl/signing-spec/get-tpsl-signing-spec.js";
|
|
259
|
+
import { DEFAULT_TPSL_SLIPPAGE_LOWCAPS as Ka, priceSlippageCalculation as qa } from "./tpsl/slippage.js";
|
|
260
|
+
import { setQuoteTpSl as Ja } from "./tpsl/set-quote-tpsl/set-quote-tpsl.js";
|
|
261
|
+
import { setQuoteTpSlMutationOptions as Ya } from "./tpsl/set-quote-tpsl/query.js";
|
|
262
|
+
import { getTpSlDeleteSigningSpecQueryKey as Xa, getTpSlDeleteSigningSpecQueryOptions as Za } from "./tpsl/signing-spec/delete-query.js";
|
|
263
|
+
import { getTpSlSigningSpecQueryKey as Qa, getTpSlSigningSpecQueryOptions as $a } from "./tpsl/signing-spec/query.js";
|
|
264
|
+
import { validateTpSl as eo } from "./tpsl/validate-tpsl.js";
|
|
265
|
+
import { parseTpSlFrame as to } from "./websocket/tpsl/parse-tpsl-frame.js";
|
|
266
|
+
import { watchTpSlNotifications as no } from "./websocket/tpsl/watch-tpsl-notifications.js";
|
|
267
|
+
import { BalanceChangeType as ro, BalanceHistoryFilter as io, MarginTransferType as ao } from "./balance-history/get-balance-history/types.js";
|
|
268
|
+
import { balanceHistoryFilterToTypes as oo } from "./balance-history/get-balance-history/balance-history-filter.js";
|
|
269
|
+
import { toBalanceHistoryRow as so } from "./balance-history/get-balance-history/to-balance-history-row.js";
|
|
270
|
+
import { getBalanceHistory as co } from "./balance-history/get-balance-history/get-balance-history.js";
|
|
271
|
+
import { getBalanceHistoryQueryKey as lo, getBalanceHistoryQueryOptions as uo } from "./balance-history/get-balance-history/query.js";
|
|
272
|
+
import { toTransferRow as fo } from "./transfers/get-transfer-history/to-transfer-row.js";
|
|
273
|
+
import { getTransferHistory as po } from "./transfers/get-transfer-history/get-transfer-history.js";
|
|
274
|
+
import { getTransferHistoryQueryKey as mo, getTransferHistoryQueryOptions as ho } from "./transfers/get-transfer-history/query.js";
|
|
275
|
+
export { ui as ADD_MARGIN_TO_NEXT_VA_SELECTOR, Zt as ActionStatus, ro as BalanceChangeType, io as BalanceHistoryFilter, Ui as DEFAULT_QUOTE_EVENTS_BY_TYPE_PAGE_SIZE, Ka as DEFAULT_TPSL_SLIPPAGE_LOWCAPS, Ir as INSTANT_LAYER_EIP712_DOMAIN_NAME, Lr as INSTANT_LAYER_EIP712_DOMAIN_VERSION, di as INSTANT_TRADE_REQUIRED_SELECTORS, Jr as MARKET_ORDER_DEADLINE_SECONDS, Di as MAX_INSTANT_CLOSE_BULK_ORDERS, Rn as MUON_APP, zn as MUON_METHOD_PARTY_A_OVERVIEW, Bn as MUON_METHOD_PRICE, Vn as MUON_METHOD_PRICE_RANGE, Hn as MUON_METHOD_SETTLE_UPNL, Un as MUON_METHOD_UPNL_A, Wn as MUON_METHOD_UPNL_A_WITH_SYMBOL_PRICE, Gn as MUON_METHOD_UPNL_B, Kn as MUON_METHOD_UPNL_PAIR, qn as MUON_METHOD_UPNL_WITH_SYMBOL_PRICE, ao as MarginTransferType, Qt as NotificationType, Gr as ORDER_TYPE_MARKET, jt as OrderType, qi as PRICE_HISTORY_EVENT_TYPES, Mt as PositionType, $i as QuoteCloseEventType, ea as QuoteCloseType, Ji as QuoteEventType, Ni as QuoteLifecycle, Nt as QuoteStatus, fi as REQUEST_TO_CLOSE_POSITION_SELECTOR, pi as SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, Rr as SIGNED_OPERATION_TYPES, ge as SubAccountIsolationType, r as SymmApiError, i as SymmError, a as SymmioSupportedChainId, Kr as VIRTUAL_ACCOUNT_ISOLATION_TYPE, Pt as WithdrawStatus, Ma as ZERO_LEG, Ar as ZERO_UPNL_SIG, e as accountLayerAbi, f as addMargin, F as addMarginMutationOptions, ba as aggregateGroupMetrics, Le as allocate, rt as allocateMutationOptions, Pi as applyNotificationToQuotes, ve as approveCollateral, xe as approveCollateralMutationOptions, oo as balanceHistoryFilterToTypes, Wa as buildConditionalOrderLeg, Na as buildConditionalOrderMessage, jr as buildQuoteMetadata, Vr as buildSignedOperation, Xt as buildSubscribeMessage, Pa as buildTpSlDeleteMessage, Ii as calculateClosePlatformFee, Si as calculateClosePrice, Ca as calculateLiquidationPrice, Yr as calculateMargin, Li as calculateOpenPlatformFee, Ea as calculateQuoteLeverage, Da as calculateQuotePnl, Oa as calculateQuoteUpnl, Xr as calculateTradeParams, wn as checkNotionalCap, Ci as clampClosePrecision, $t as classifyNotification, Fi as classifyQuoteNotificationAction, ta as closeTypeToEventTypes, Zr as computePlatformFee, nt as createClassicWithdrawPart, l as createConfig, m as createSubAccounts, I as createSubAccountsMutationOptions, Re as deallocate, it as deallocateMutationOptions, za as deleteQuoteTpSl, Ba 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, Mr as encodeAddMarginToNextVA, vi as encodeRequestToClosePosition, Nr as encodeSendQuoteWithAffiliateAndData, na as eventTypeToCloseType, ra as eventTypeToQuoteStatus, V as filterQueryOptions, Be as finalizeWithdrawRequest, at as finalizeWithdrawRequestMutationOptions, Ri as fingerprintQuote, Hr as formatSignedOperationPayload, Ur as generateSalt, Fa as generateTpSlSalt, C as getAccountBalanceInfo, H as getAccountBalanceInfoQueryKey, U as getAccountBalanceInfoQueryOptions, w as getAccountBalanceOf, W as getAccountBalanceOfQueryKey, G as getAccountBalanceOfQueryOptions, co as getBalanceHistory, lo as getBalanceHistoryQueryKey, uo as getBalanceHistoryQueryOptions, o as getChainConfig, ye as getCollateralAllowance, Se as getCollateralAllowanceQueryKey, Ce as getCollateralAllowanceQueryOptions, be as getCollateralBalance, we as getCollateralBalanceQueryKey, Te as getCollateralBalanceQueryOptions, Jn as getDeallocateUpnlSig, Yn as getDeallocateUpnlSigQueryKey, Xn 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, Pr as getFakeSendQuoteMuonSignature, Ve as getFeeForUser, ot as getFeeForUserQueryKey, st as getFeeForUserQueryOptions, pn as getFundingInfo, hn as getFundingInfoQueryKey, gn as getFundingInfoQueryOptions, hi as getInstantCloses, gi as getInstantClosesQueryKey, _i as getInstantClosesQueryOptions, zr as getInstantLayerEip712Domain, wr as getInstantOpenQuoteId, Tr as getInstantOpenQuoteIdQueryKey, Er as getInstantOpenQuoteIdQueryOptions, Dr as getInstantOpens, Or as getInstantOpensQueryKey, kr as getInstantOpensQueryOptions, Oe as getIsDelegationActive, Ne as getIsDelegationActiveQueryKey, Pe as getIsDelegationActiveQueryOptions, He as getLastWithdrawRequestId, ct as getLastWithdrawRequestIdQueryKey, lt as getLastWithdrawRequestIdQueryOptions, xn as getLockedParams, Sn as getLockedParamsQueryKey, Cn as getLockedParamsQueryOptions, vn as getMarketInfo, yn as getMarketInfoQueryKey, bn as getMarketInfoQueryOptions, Qr as getMarketOrderDeadline, ln as getMarkets, un as getMarketsQueryKey, dn as getMarketsQueryOptions, Zn as getMuonPartyAOverview, Qn as getMuonPartyAOverviewQueryKey, $n as getMuonPartyAOverviewQueryOptions, er as getMuonPrice, tr as getMuonPriceQueryKey, nr as getMuonPriceQueryOptions, rr as getMuonPriceRange, ir as getMuonPriceRangeQueryKey, ar as getMuonPriceRangeQueryOptions, or as getMuonSettleUpnl, sr as getMuonSettleUpnlQueryKey, cr as getMuonSettleUpnlQueryOptions, lr as getMuonUpnl, fr as getMuonUpnlA, pr as getMuonUpnlAQueryKey, mr as getMuonUpnlAQueryOptions, hr as getMuonUpnlAWithSymbolPrice, gr as getMuonUpnlAWithSymbolPriceQueryKey, _r as getMuonUpnlAWithSymbolPriceQueryOptions, vr as getMuonUpnlB, yr as getMuonUpnlBQueryKey, br as getMuonUpnlBQueryOptions, ur as getMuonUpnlQueryKey, dr as getMuonUpnlQueryOptions, xr as getMuonUpnlWithSymbolPrice, Sr as getMuonUpnlWithSymbolPriceQueryKey, Cr as getMuonUpnlWithSymbolPriceQueryOptions, En as getNotionalCapAll, jn as getNotionalCapAllQueryKey, Mn as getNotionalCapAllQueryOptions, Dn as getNotionalCapBySymbolId, kn as getNotionalCapBySymbolIdQueryKey, An as getNotionalCapBySymbolIdQueryOptions, Ue as getOnchainContractMarkets, ut as getOnchainContractMarketsQueryKey, dt as getOnchainContractMarketsQueryOptions, On as getOpenInterestBySymbolId, Nn as getOpenInterestBySymbolIdQueryKey, Pn 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, Bi as getQuerySubgraphQueryKey, qe as getQuote, Wi as getQuoteEventsByType, Gi as getQuoteEventsByTypeQueryKey, Ki as getQuoteEventsByTypeQueryOptions, Xi as getQuoteFunding, Zi as getQuoteFundingQueryKey, Qi as getQuoteFundingQueryOptions, aa as getQuoteHistory, oa as getQuoteHistoryQueryKey, sa as getQuoteHistoryQueryOptions, vt as getQuoteQueryKey, yt as getQuoteQueryOptions, Va as getQuoteTpSl, Ha as getQuoteTpSlQueryKey, Ua as getQuoteTpSlQueryOptions, Fn as getSolverErrorCodes, In as getSolverErrorCodesQueryKey, Ln as getSolverErrorCodesQueryOptions, T as getSubAccount, K as getSubAccountQueryKey, q as getSubAccountQueryOptions, ma as getSubAccountQuotes, ha as getSubAccountQuotesQueryKey, ga as getSubAccountQuotesQueryOptions, E as getSubAccountVirtualNonce, J as getSubAccountVirtualNonceQueryKey, Y as getSubAccountVirtualNonceQueryOptions, D as getSubAccountsCountOfUser, X as getSubAccountsCountOfUserQueryKey, Z as getSubAccountsCountOfUserQueryOptions, ka as getTpSlConfig, Aa as getTpSlConfigQueryKey, ja as getTpSlConfigQueryOptions, Ra as getTpSlDeleteSigningSpec, Xa as getTpSlDeleteSigningSpecQueryKey, Za as getTpSlDeleteSigningSpecQueryOptions, Ga as getTpSlSigningSpec, Qa as getTpSlSigningSpecQueryKey, $a as getTpSlSigningSpecQueryOptions, po as getTransferHistory, mo as getTransferHistoryQueryKey, ho 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, Sa as groupQuotes, Xe as initiateWithdraw, wt as initiateWithdrawMutationOptions, bi as instantClose, Ti as instantCloseAuto, Ei as instantCloseAutoMutationOptions, Oi as instantCloseBulk, Ai as instantCloseBulkAuto, ji as instantCloseBulkAutoMutationOptions, ki as instantCloseBulkMutationOptions, xi as instantCloseMutationOptions, t as instantLayerAbi, ei as instantOpen, si as instantOpenAuto, ci as instantOpenAutoMutationOptions, ti as instantOpenMutationOptions, _a as isActivePosition, s as isChainSupported, va as isPendingOrder, qr as isolationTypeForSide, ca as lifecycleFromQuoteStatus, c as listSupportedChains, en as normalizeNotification, tn as parseNotificationFrame, rn as parsePriceFrame, to as parseTpSlFrame, ya as partitionQuotes, wi as prepareInstantCloseParams, oi as prepareInstantOpenParams, qa as priceSlippageCalculation, mn as projectFundingRate, zi as querySubgraph, Vi as querySubgraphQueryOptions, fa as reconcileQuotes, P as removeMargin, ce as removeMarginMutationOptions, Ze as requestCancelWithdraw, Tt as requestCancelWithdrawMutationOptions, ii as resolveFeeRates, ai as resolveLockedParams, ni as resolveMarkPrice, ri as resolveMarket, pa as resolveQuoteAccounts, xa as resolveQuoteGroupingStrategy, on as searchNotifications, sn as searchNotificationsQueryKey, cn as searchNotificationsQueryOptions, yi as sendInstantClose, Fr as sendInstantOpen, Ja as setQuoteTpSl, Ya as setQuoteTpSlMutationOptions, wa as shouldAccelerateOnchainReads, Ta as shouldAccelerateQuotePolling, u as shouldSimulateBeforeWrite, Wr as signAndFormatInstantOperation, Br as signSignedOperation, La 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, so as toBalanceHistoryRow, fn as toMarketFundingInfo, _n as toMarketInfo, Tn as toMarketNotionalCap, mi as toPendingInstantClose, Hi as toQuoteEventRow, Yi as toQuoteFundingRow, ia as toQuoteHistoryRow, Ia as toSignableTpSlMessage, fo as toTransferRow, la as toUnifiedQuoteFromInstantClose, ua as toUnifiedQuoteFromInstantOpen, da as toUnifiedQuoteFromOnchain, $r as toWeiBigInt, Mi as validateInstantCloseAgainstMarket, li as validateInstantOpenAgainstMarket, eo as validateTpSl, an as watchEnigmaPrices, nn as watchNotifications, no 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"}
|