@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
|
@@ -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 { GetFeeForUserParameters, GetFeeForUserReturnType } from '../actions/get-fee-for-user';
|
|
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 { GetFeeForUserParameters, GetFeeForUserReturnType } from '../actions/get-fee-for-user.js';
|
|
5
5
|
/** Data resolved by the {@link getFeeForUserQueryOptions} query. */
|
|
6
6
|
export type GetFeeForUserData = GetFeeForUserReturnType;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query';
|
|
4
|
-
import { GetLastWithdrawRequestIdParameters, GetLastWithdrawRequestIdReturnType } from '../actions/get-last-withdraw-request-id';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query.js';
|
|
4
|
+
import { GetLastWithdrawRequestIdParameters, GetLastWithdrawRequestIdReturnType } from '../actions/get-last-withdraw-request-id.js';
|
|
5
5
|
/** Data resolved by the {@link getLastWithdrawRequestIdQueryOptions} query. */
|
|
6
6
|
export type GetLastWithdrawRequestIdData = GetLastWithdrawRequestIdReturnType;
|
|
7
7
|
/**
|
|
@@ -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 { GetOnchainContractMarketsParameters, GetOnchainContractMarketsReturnType } from '../actions/get-onchain-contract-markets';
|
|
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 { GetOnchainContractMarketsParameters, GetOnchainContractMarketsReturnType } from '../actions/get-onchain-contract-markets.js';
|
|
5
5
|
/** Data resolved by the {@link getOnchainContractMarketsQueryOptions} query. */
|
|
6
6
|
export type GetOnchainContractMarketsData = GetOnchainContractMarketsReturnType;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query';
|
|
4
|
-
import { GetPartyAOpenPositionsParameters, GetPartyAOpenPositionsReturnType } from '../actions/get-party-a-open-positions';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query.js';
|
|
4
|
+
import { GetPartyAOpenPositionsParameters, GetPartyAOpenPositionsReturnType } from '../actions/get-party-a-open-positions.js';
|
|
5
5
|
/** Data resolved by the {@link getPartyAOpenPositionsQueryOptions} query. */
|
|
6
6
|
export type GetPartyAOpenPositionsData = GetPartyAOpenPositionsReturnType;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query';
|
|
4
|
-
import { GetPartyAPendingQuotesParameters, GetPartyAPendingQuotesReturnType } from '../actions/get-party-a-pending-quotes';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query.js';
|
|
4
|
+
import { GetPartyAPendingQuotesParameters, GetPartyAPendingQuotesReturnType } from '../actions/get-party-a-pending-quotes.js';
|
|
5
5
|
/** Data resolved by the {@link getPartyAPendingQuotesQueryOptions} query. */
|
|
6
6
|
export type GetPartyAPendingQuotesData = GetPartyAPendingQuotesReturnType;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query';
|
|
4
|
-
import { GetPendingWithdrawRequestsParameters, GetPendingWithdrawRequestsReturnType } from '../actions/get-pending-withdraw-requests';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query.js';
|
|
4
|
+
import { GetPendingWithdrawRequestsParameters, GetPendingWithdrawRequestsReturnType } from '../actions/get-pending-withdraw-requests.js';
|
|
5
5
|
/** Data resolved by the {@link getPendingWithdrawRequestsQueryOptions} query. */
|
|
6
6
|
export type GetPendingWithdrawRequestsData = GetPendingWithdrawRequestsReturnType;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query';
|
|
4
|
-
import { GetQuoteParameters, GetQuoteReturnType } from '../actions/get-quote';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query.js';
|
|
4
|
+
import { GetQuoteParameters, GetQuoteReturnType } from '../actions/get-quote.js';
|
|
5
5
|
/** Data resolved by the {@link getQuoteQueryOptions} query. */
|
|
6
6
|
export type GetQuoteData = GetQuoteReturnType;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query';
|
|
4
|
-
import { GetWithdrawRequestsParameters, GetWithdrawRequestsReturnType } from '../actions/get-withdraw-requests';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query.js';
|
|
4
|
+
import { GetWithdrawRequestsParameters, GetWithdrawRequestsReturnType } from '../actions/get-withdraw-requests.js';
|
|
5
5
|
/** Data resolved by the {@link getWithdrawRequestsQueryOptions} query. */
|
|
6
6
|
export type GetWithdrawRequestsData = GetWithdrawRequestsReturnType;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties';
|
|
3
|
-
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query';
|
|
4
|
-
import { GetWithdrawableTimeParameters, GetWithdrawableTimeReturnType } from '../actions/get-withdrawable-time';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { Compute, ConfigKeyParameter, ExactPartial } from '../../../shared/types/properties.js';
|
|
3
|
+
import { QueryParameter, SymmioQueryOptions } from '../../../shared/types/query.js';
|
|
4
|
+
import { GetWithdrawableTimeParameters, GetWithdrawableTimeReturnType } from '../actions/get-withdrawable-time.js';
|
|
5
5
|
/** Data resolved by the {@link getWithdrawableTimeQueryOptions} query. */
|
|
6
6
|
export type GetWithdrawableTimeData = GetWithdrawableTimeReturnType;
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { InitiateWithdrawParameters } from '../actions/initiate-withdraw';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { InitiateWithdrawParameters } from '../actions/initiate-withdraw.js';
|
|
3
3
|
/**
|
|
4
4
|
* Build TanStack Mutation options for {@link initiateWithdraw}.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { RequestCancelWithdrawParameters } from '../actions/request-cancel-withdraw';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { RequestCancelWithdrawParameters } from '../actions/request-cancel-withdraw.js';
|
|
3
3
|
/**
|
|
4
4
|
* Build TanStack Mutation options for {@link requestCancelWithdraw}.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { SimulateAllocateParameters } from '../actions/simulate-allocate';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { SimulateAllocateParameters } from '../actions/simulate-allocate.js';
|
|
3
3
|
/**
|
|
4
4
|
* Build TanStack Mutation options for {@link simulateAllocate} — an on-demand
|
|
5
5
|
* dry-run (`simulateContract`) of allocate.
|
|
@@ -14,6 +14,6 @@ import { SimulateAllocateParameters } from '../actions/simulate-allocate';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function simulateAllocateMutationOptions(config: Config): {
|
|
16
16
|
mutationKey: readonly ["simulateAllocate"];
|
|
17
|
-
mutationFn: (variables: SimulateAllocateParameters) => Promise<import('../internal/simulate-call-as-sub-account').SimulateCallAsSubAccountReturnType>;
|
|
17
|
+
mutationFn: (variables: SimulateAllocateParameters) => Promise<import('../internal/simulate-call-as-sub-account.js').SimulateCallAsSubAccountReturnType>;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=simulate-allocate.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { SimulateDeallocateParameters } from '../actions/simulate-deallocate';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { SimulateDeallocateParameters } from '../actions/simulate-deallocate.js';
|
|
3
3
|
/**
|
|
4
4
|
* Build TanStack Mutation options for {@link simulateDeallocate} — an on-demand
|
|
5
5
|
* dry-run (`simulateContract`) of deallocate.
|
|
@@ -14,6 +14,6 @@ import { SimulateDeallocateParameters } from '../actions/simulate-deallocate';
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function simulateDeallocateMutationOptions(config: Config): {
|
|
16
16
|
mutationKey: readonly ["simulateDeallocate"];
|
|
17
|
-
mutationFn: (variables: SimulateDeallocateParameters) => Promise<import('../internal/simulate-call-as-sub-account').SimulateCallAsSubAccountReturnType>;
|
|
17
|
+
mutationFn: (variables: SimulateDeallocateParameters) => Promise<import('../internal/simulate-call-as-sub-account.js').SimulateCallAsSubAccountReturnType>;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=simulate-deallocate.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { SimulateFinalizeWithdrawRequestParameters } from '../actions/simulate-finalize-withdraw-request';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { SimulateFinalizeWithdrawRequestParameters } from '../actions/simulate-finalize-withdraw-request.js';
|
|
3
3
|
/**
|
|
4
4
|
* Build TanStack Mutation options for {@link simulateFinalizeWithdrawRequest} — an on-demand dry-run
|
|
5
5
|
* (`simulateContract`) of finalizeWithdrawRequest.
|
|
@@ -14,6 +14,6 @@ import { SimulateFinalizeWithdrawRequestParameters } from '../actions/simulate-f
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function simulateFinalizeWithdrawRequestMutationOptions(config: Config): {
|
|
16
16
|
mutationKey: readonly ["simulateFinalizeWithdrawRequest"];
|
|
17
|
-
mutationFn: (variables: SimulateFinalizeWithdrawRequestParameters) => Promise<import('
|
|
17
|
+
mutationFn: (variables: SimulateFinalizeWithdrawRequestParameters) => Promise<import('../index.js').SimulateFinalizeWithdrawRequestReturnType>;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=simulate-finalize-withdraw-request.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { SimulateInitiateWithdrawParameters } from '../actions/simulate-initiate-withdraw';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { SimulateInitiateWithdrawParameters } from '../actions/simulate-initiate-withdraw.js';
|
|
3
3
|
/**
|
|
4
4
|
* Build TanStack Mutation options for {@link simulateInitiateWithdraw} — an on-demand
|
|
5
5
|
* dry-run (`simulateContract`) of initiateWithdraw.
|
|
@@ -14,6 +14,6 @@ import { SimulateInitiateWithdrawParameters } from '../actions/simulate-initiate
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function simulateInitiateWithdrawMutationOptions(config: Config): {
|
|
16
16
|
mutationKey: readonly ["simulateInitiateWithdraw"];
|
|
17
|
-
mutationFn: (variables: SimulateInitiateWithdrawParameters) => Promise<import('../internal/simulate-call-as-sub-account').SimulateCallAsSubAccountReturnType>;
|
|
17
|
+
mutationFn: (variables: SimulateInitiateWithdrawParameters) => Promise<import('../internal/simulate-call-as-sub-account.js').SimulateCallAsSubAccountReturnType>;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=simulate-initiate-withdraw.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Config } from '../../../core/config';
|
|
2
|
-
import { SimulateRequestCancelWithdrawParameters } from '../actions/simulate-request-cancel-withdraw';
|
|
1
|
+
import { Config } from '../../../core/config/index.js';
|
|
2
|
+
import { SimulateRequestCancelWithdrawParameters } from '../actions/simulate-request-cancel-withdraw.js';
|
|
3
3
|
/**
|
|
4
4
|
* Build TanStack Mutation options for {@link simulateRequestCancelWithdraw} — an on-demand
|
|
5
5
|
* dry-run (`simulateContract`) of requestCancelWithdraw.
|
|
@@ -14,6 +14,6 @@ import { SimulateRequestCancelWithdrawParameters } from '../actions/simulate-req
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function simulateRequestCancelWithdrawMutationOptions(config: Config): {
|
|
16
16
|
mutationKey: readonly ["simulateRequestCancelWithdraw"];
|
|
17
|
-
mutationFn: (variables: SimulateRequestCancelWithdrawParameters) => Promise<import('../internal/simulate-call-as-sub-account').SimulateCallAsSubAccountReturnType>;
|
|
17
|
+
mutationFn: (variables: SimulateRequestCancelWithdrawParameters) => Promise<import('../internal/simulate-call-as-sub-account.js').SimulateCallAsSubAccountReturnType>;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=simulate-request-cancel-withdraw.d.ts.map
|
|
@@ -219,7 +219,7 @@ export interface Quote {
|
|
|
219
219
|
lockedValues: LockedValues;
|
|
220
220
|
/** Maximum funding rate partyA accepts. */
|
|
221
221
|
maxFundingRate: bigint;
|
|
222
|
-
/** Owner of the quote — the
|
|
222
|
+
/** Owner of the quote — the virtual account (lowcap). */
|
|
223
223
|
partyA: Address;
|
|
224
224
|
/** The partyB (hedger/solver) that locked/opened the quote, or the zero address. */
|
|
225
225
|
partyB: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/symmio-contracts/symmio/types.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/symmio-contracts/symmio/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../../src/symmio-contracts/symmio/types.ts"],"sourcesContent":["import type { Address, Hex } from \"viem\";\n\n/**\n * Lifecycle status of a SYMMIO withdraw request.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum WithdrawStatus` in\n * `WithdrawStorage.sol` (perps-core v0.8.5) exactly, so the `uint8` returned by\n * the withdraw read views casts directly to this enum without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/WithdrawStorage.sol}\n */\nexport enum WithdrawStatus {\n /** Created, awaiting provider acceptance (classic withdrawals stay here until finalized). */\n PENDING = 0,\n /** A provider accepted the request. */\n PROVIDER_ACCEPTED = 1,\n /** A provider declined the request; it was refunded. */\n PROVIDER_REJECTED = 2,\n /** Finalized successfully; funds were paid out. */\n COMPLETED = 3,\n /** The user requested cancellation; awaiting provider approval. */\n CANCEL_REQUESTED = 4,\n /** Fully cancelled and refunded. */\n CANCELLED = 5,\n /** Suspended due to a user-level restriction. */\n SUSPENDED = 6,\n}\n\n/**\n * One receiver \"part\" of a withdraw request. A single request may split its\n * amount across several parts (different chains/providers); a plain same-chain\n * withdrawal is a single part with both provider fields set to the zero address.\n *\n * Field shapes and ordering mirror the on-chain `WithdrawReceiverPart` struct in\n * `WithdrawStorage.sol` (perps-core v0.8.5) exactly, so the object encodes\n * directly as the contract tuple without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/WithdrawStorage.sol}\n */\nexport interface WithdrawReceiverPart {\n /** Caller-assigned part id, unique within the request. */\n id: bigint;\n /** Amount of collateral for this part, in the collateral token's smallest unit. */\n amount: bigint;\n /** Destination chain id (`int256` on-chain; the source chain for a same-chain part). */\n chainId: bigint;\n /** Destination address as raw bytes (a 20-byte EVM address is its own byte representation). */\n receiver: Hex;\n /** Virtual (cross-chain) provider, or the zero address for a same-chain part. */\n virtualProvider: Address;\n /** Express (instant) provider, or the zero address for a standard-cooldown part. */\n expressProvider: Address;\n}\n\n/**\n * A full withdraw request as stored on the SYMMIO core, returned by the withdraw\n * read views ({@link \"getWithdrawRequests\"}, {@link \"getPendingWithdrawRequests\"}).\n *\n * Field shapes and ordering mirror the on-chain `WithdrawRequest` struct in\n * `WithdrawStorage.sol` (perps-core v0.8.5) exactly. `status` is surfaced as the\n * {@link WithdrawStatus} enum rather than a raw `uint8`.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/WithdrawStorage.sol}\n */\nexport interface WithdrawRequest {\n /** Sequential request id (starts at 1 per user). */\n id: bigint;\n /** The subaccount the request belongs to. */\n user: Address;\n /** The receiver parts the withdrawal is split into. */\n parts: readonly WithdrawReceiverPart[];\n /** Block timestamp at which the request was created. */\n timestamp: bigint;\n /** Earliest timestamp the request can be finalized. */\n cooldownEndTime: bigint;\n /** Current lifecycle status. */\n status: WithdrawStatus;\n /** Whether the request opted into the cooldown speed-up flow. */\n speedUp: boolean;\n /** Whether the cooldown was modified after creation (e.g. by an accepted speed-up). */\n isCooldownModified: boolean;\n /** The provider bound to the request, or the zero address for a classic withdrawal. */\n provider: Address;\n /** Whether the request is a pure-virtual (cross-chain, no express) withdrawal. */\n isPureVirtual: boolean;\n /** Opaque provider data (e.g. a signed option), or `0x`. */\n providerData: Hex;\n /** Total collateral amount across all parts. */\n totalAmount: bigint;\n /** Total amount delivered via virtual providers. */\n totalVirtualAmount: bigint;\n}\n\n/**\n * Direction of a trading position.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum PositionType` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly, so the `uint8` carried on a\n * {@link Quote} casts directly to this enum without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport enum PositionType {\n /** A long position — profits when the market price rises. */\n LONG = 0,\n /** A short position — profits when the market price falls. */\n SHORT = 1,\n}\n\n/**\n * How an order is priced and filled.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum OrderType` in `QuoteStorage.sol`\n * (perps-core v0.8.5) exactly, so the `uint8` carried on a {@link Quote} casts\n * directly to this enum without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport enum OrderType {\n /** Fills only at the requested price or better. */\n LIMIT = 0,\n /** Fills at the prevailing market price. */\n MARKET = 1,\n}\n\n/**\n * Lifecycle status of a quote, from creation through settlement.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum QuoteStatus` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly — all 11 members, including\n * `LIQUIDATED_PENDING` (10) — so the `uint8` carried on a {@link Quote} casts\n * directly to this enum without translation. `getPartyAOpenPositions` returns\n * only `OPENED`, `CLOSE_PENDING`, `CANCEL_CLOSE_PENDING`, and `LIQUIDATED_PENDING`\n * quotes; `getPartyAPendingQuotes` returns only `PENDING`, `LOCKED`, and\n * `CANCEL_PENDING`.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport enum QuoteStatus {\n /** Created, awaiting a partyB to lock it. */\n PENDING = 0,\n /** A partyB locked the quote and is preparing to open it. */\n LOCKED = 1,\n /** PartyA requested cancellation of a still-pending quote. */\n CANCEL_PENDING = 2,\n /** The pending quote was cancelled before opening. */\n CANCELED = 3,\n /** Opened into a live position. */\n OPENED = 4,\n /** PartyA requested a (full or partial) close of the open position. */\n CLOSE_PENDING = 5,\n /** PartyA requested cancellation of a pending close. */\n CANCEL_CLOSE_PENDING = 6,\n /** The position was fully closed. */\n CLOSED = 7,\n /** The position was liquidated. */\n LIQUIDATED = 8,\n /** The pending quote expired before being opened. */\n EXPIRED = 9,\n /** Liquidation is in progress for the position. */\n LIQUIDATED_PENDING = 10,\n}\n\n/**\n * Margin amounts locked against a {@link Quote}, in the collateral token's\n * smallest unit (raw `uint256`).\n *\n * Field shapes and ordering mirror the on-chain `struct LockedValues` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly, so the object decodes directly\n * from the contract tuple without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport interface LockedValues {\n /** Credit Valuation Adjustment locked by partyA. */\n cva: bigint;\n /** Liquidation Fee locked by partyA. */\n lf: bigint;\n /** PartyA maintenance margin. */\n partyAmm: bigint;\n /** PartyB maintenance margin. */\n partyBmm: bigint;\n}\n\n/**\n * A full trading quote or open position as stored on the SYMMIO core, returned\n * by the quote read views ({@link \"getQuote\"}, {@link \"getPartyAOpenPositions\"}).\n *\n * Field shapes and ordering mirror the on-chain `struct Quote` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly — every `uint256`/`int256` is a\n * raw `bigint` (no decimal scaling applied) and the `uint8` enum fields are\n * surfaced as the {@link PositionType}, {@link OrderType}, and {@link QuoteStatus}\n * enums rather than raw numbers. Prices and amounts are 18-decimal fixed point.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport interface Quote {\n /** Sequential quote id (starts at 1; `0n` is the not-found sentinel). */\n id: bigint;\n /** PartyB addresses allowed to fill this quote (empty means any). */\n partyBsWhiteList: readonly Address[];\n /** Market identifier (`symbolId`) the quote trades. */\n symbolId: bigint;\n /** Long or short. */\n positionType: PositionType;\n /** Limit or market order. */\n orderType: OrderType;\n /** Price partyB actually opened at (0 until opened). */\n openedPrice: bigint;\n /** Price partyA originally requested to open at. */\n initialOpenedPrice: bigint;\n /** Current requested open price (may differ from `initialOpenedPrice` after edits). */\n requestedOpenPrice: bigint;\n /** Market price snapshot recorded on the quote at its last state change. */\n marketPrice: bigint;\n /** Total quantity partyA requested. */\n quantity: bigint;\n /** Quantity already closed. */\n closedAmount: bigint;\n /** Margin locked at open time (basis for leverage). */\n initialLockedValues: LockedValues;\n /** Margin currently locked. */\n lockedValues: LockedValues;\n /** Maximum funding rate partyA accepts. */\n maxFundingRate: bigint;\n /** Owner of the quote — the SubAccount (Majors) or Virtual Account (VibeCaps). */\n partyA: Address;\n /** The partyB (hedger/solver) that locked/opened the quote, or the zero address. */\n partyB: Address;\n /** Current lifecycle status. */\n quoteStatus: QuoteStatus;\n /** Average price across executed closes. */\n avgClosedPrice: bigint;\n /** Requested limit price for a pending close. */\n requestedClosePrice: bigint;\n /** Quantity of a pending close request. */\n quantityToClose: bigint;\n /** Parent quote id for a partially-opened child, or `0n`. */\n parentId: bigint;\n /** Block timestamp the quote was created. */\n createTimestamp: bigint;\n /** Block timestamp of the last status change (sort key). */\n statusModifyTimestamp: bigint;\n /** Block timestamp funding was last applied. */\n lastFundingPaymentTimestamp: bigint;\n /** Quote deadline (expiry) timestamp. */\n deadline: bigint;\n /** Trading fee charged on the quote. */\n tradingFee: bigint;\n /** Affiliate address attributed to the quote, or the zero address. */\n affiliate: Address;\n /** Net funding paid (positive) or received (negative) over the position's life (`int256`). */\n accumulatedPaidFunding: bigint;\n /** Fee charged on close. */\n closeFee: bigint;\n /** Opaque per-quote data, or `0x`. */\n data: Hex;\n}\n"],"mappings":";AAYA,IAAY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,UAAA,KAAA,WAEA,EAAA,EAAA,oBAAA,KAAA,qBAEA,EAAA,EAAA,oBAAA,KAAA,qBAEA,EAAA,EAAA,YAAA,KAAA,aAEA,EAAA,EAAA,mBAAA,KAAA,oBAEA,EAAA,EAAA,YAAA,KAAA,aAEA,EAAA,EAAA,YAAA,KAAA;AACF,EAAA,CAAA,CAAA,GA6EY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,OAAA,KAAA,QAEA,EAAA,EAAA,QAAA,KAAA;AACF,EAAA,CAAA,CAAA,GAYY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,QAAA,KAAA,SAEA,EAAA,EAAA,SAAA,KAAA;AACF,EAAA,CAAA,CAAA,GAgBY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,UAAA,KAAA,WAEA,EAAA,EAAA,SAAA,KAAA,UAEA,EAAA,EAAA,iBAAA,KAAA,kBAEA,EAAA,EAAA,WAAA,KAAA,YAEA,EAAA,EAAA,SAAA,KAAA,UAEA,EAAA,EAAA,gBAAA,KAAA,iBAEA,EAAA,EAAA,uBAAA,KAAA,wBAEA,EAAA,EAAA,SAAA,KAAA,UAEA,EAAA,EAAA,aAAA,KAAA,cAEA,EAAA,EAAA,UAAA,KAAA,WAEA,EAAA,EAAA,qBAAA,MAAA;AACF,EAAA,CAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../../src/symmio-contracts/symmio/types.ts"],"sourcesContent":["import type { Address, Hex } from \"viem\";\n\n/**\n * Lifecycle status of a SYMMIO withdraw request.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum WithdrawStatus` in\n * `WithdrawStorage.sol` (perps-core v0.8.5) exactly, so the `uint8` returned by\n * the withdraw read views casts directly to this enum without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/WithdrawStorage.sol}\n */\nexport enum WithdrawStatus {\n /** Created, awaiting provider acceptance (classic withdrawals stay here until finalized). */\n PENDING = 0,\n /** A provider accepted the request. */\n PROVIDER_ACCEPTED = 1,\n /** A provider declined the request; it was refunded. */\n PROVIDER_REJECTED = 2,\n /** Finalized successfully; funds were paid out. */\n COMPLETED = 3,\n /** The user requested cancellation; awaiting provider approval. */\n CANCEL_REQUESTED = 4,\n /** Fully cancelled and refunded. */\n CANCELLED = 5,\n /** Suspended due to a user-level restriction. */\n SUSPENDED = 6,\n}\n\n/**\n * One receiver \"part\" of a withdraw request. A single request may split its\n * amount across several parts (different chains/providers); a plain same-chain\n * withdrawal is a single part with both provider fields set to the zero address.\n *\n * Field shapes and ordering mirror the on-chain `WithdrawReceiverPart` struct in\n * `WithdrawStorage.sol` (perps-core v0.8.5) exactly, so the object encodes\n * directly as the contract tuple without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/WithdrawStorage.sol}\n */\nexport interface WithdrawReceiverPart {\n /** Caller-assigned part id, unique within the request. */\n id: bigint;\n /** Amount of collateral for this part, in the collateral token's smallest unit. */\n amount: bigint;\n /** Destination chain id (`int256` on-chain; the source chain for a same-chain part). */\n chainId: bigint;\n /** Destination address as raw bytes (a 20-byte EVM address is its own byte representation). */\n receiver: Hex;\n /** Virtual (cross-chain) provider, or the zero address for a same-chain part. */\n virtualProvider: Address;\n /** Express (instant) provider, or the zero address for a standard-cooldown part. */\n expressProvider: Address;\n}\n\n/**\n * A full withdraw request as stored on the SYMMIO core, returned by the withdraw\n * read views ({@link \"getWithdrawRequests\"}, {@link \"getPendingWithdrawRequests\"}).\n *\n * Field shapes and ordering mirror the on-chain `WithdrawRequest` struct in\n * `WithdrawStorage.sol` (perps-core v0.8.5) exactly. `status` is surfaced as the\n * {@link WithdrawStatus} enum rather than a raw `uint8`.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/WithdrawStorage.sol}\n */\nexport interface WithdrawRequest {\n /** Sequential request id (starts at 1 per user). */\n id: bigint;\n /** The subaccount the request belongs to. */\n user: Address;\n /** The receiver parts the withdrawal is split into. */\n parts: readonly WithdrawReceiverPart[];\n /** Block timestamp at which the request was created. */\n timestamp: bigint;\n /** Earliest timestamp the request can be finalized. */\n cooldownEndTime: bigint;\n /** Current lifecycle status. */\n status: WithdrawStatus;\n /** Whether the request opted into the cooldown speed-up flow. */\n speedUp: boolean;\n /** Whether the cooldown was modified after creation (e.g. by an accepted speed-up). */\n isCooldownModified: boolean;\n /** The provider bound to the request, or the zero address for a classic withdrawal. */\n provider: Address;\n /** Whether the request is a pure-virtual (cross-chain, no express) withdrawal. */\n isPureVirtual: boolean;\n /** Opaque provider data (e.g. a signed option), or `0x`. */\n providerData: Hex;\n /** Total collateral amount across all parts. */\n totalAmount: bigint;\n /** Total amount delivered via virtual providers. */\n totalVirtualAmount: bigint;\n}\n\n/**\n * Direction of a trading position.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum PositionType` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly, so the `uint8` carried on a\n * {@link Quote} casts directly to this enum without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport enum PositionType {\n /** A long position — profits when the market price rises. */\n LONG = 0,\n /** A short position — profits when the market price falls. */\n SHORT = 1,\n}\n\n/**\n * How an order is priced and filled.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum OrderType` in `QuoteStorage.sol`\n * (perps-core v0.8.5) exactly, so the `uint8` carried on a {@link Quote} casts\n * directly to this enum without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport enum OrderType {\n /** Fills only at the requested price or better. */\n LIMIT = 0,\n /** Fills at the prevailing market price. */\n MARKET = 1,\n}\n\n/**\n * Lifecycle status of a quote, from creation through settlement.\n *\n * @remarks\n * Names and ordering mirror the on-chain `enum QuoteStatus` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly — all 11 members, including\n * `LIQUIDATED_PENDING` (10) — so the `uint8` carried on a {@link Quote} casts\n * directly to this enum without translation. `getPartyAOpenPositions` returns\n * only `OPENED`, `CLOSE_PENDING`, `CANCEL_CLOSE_PENDING`, and `LIQUIDATED_PENDING`\n * quotes; `getPartyAPendingQuotes` returns only `PENDING`, `LOCKED`, and\n * `CANCEL_PENDING`.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport enum QuoteStatus {\n /** Created, awaiting a partyB to lock it. */\n PENDING = 0,\n /** A partyB locked the quote and is preparing to open it. */\n LOCKED = 1,\n /** PartyA requested cancellation of a still-pending quote. */\n CANCEL_PENDING = 2,\n /** The pending quote was cancelled before opening. */\n CANCELED = 3,\n /** Opened into a live position. */\n OPENED = 4,\n /** PartyA requested a (full or partial) close of the open position. */\n CLOSE_PENDING = 5,\n /** PartyA requested cancellation of a pending close. */\n CANCEL_CLOSE_PENDING = 6,\n /** The position was fully closed. */\n CLOSED = 7,\n /** The position was liquidated. */\n LIQUIDATED = 8,\n /** The pending quote expired before being opened. */\n EXPIRED = 9,\n /** Liquidation is in progress for the position. */\n LIQUIDATED_PENDING = 10,\n}\n\n/**\n * Margin amounts locked against a {@link Quote}, in the collateral token's\n * smallest unit (raw `uint256`).\n *\n * Field shapes and ordering mirror the on-chain `struct LockedValues` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly, so the object decodes directly\n * from the contract tuple without translation.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport interface LockedValues {\n /** Credit Valuation Adjustment locked by partyA. */\n cva: bigint;\n /** Liquidation Fee locked by partyA. */\n lf: bigint;\n /** PartyA maintenance margin. */\n partyAmm: bigint;\n /** PartyB maintenance margin. */\n partyBmm: bigint;\n}\n\n/**\n * A full trading quote or open position as stored on the SYMMIO core, returned\n * by the quote read views ({@link \"getQuote\"}, {@link \"getPartyAOpenPositions\"}).\n *\n * Field shapes and ordering mirror the on-chain `struct Quote` in\n * `QuoteStorage.sol` (perps-core v0.8.5) exactly — every `uint256`/`int256` is a\n * raw `bigint` (no decimal scaling applied) and the `uint8` enum fields are\n * surfaced as the {@link PositionType}, {@link OrderType}, and {@link QuoteStatus}\n * enums rather than raw numbers. Prices and amounts are 18-decimal fixed point.\n *\n * @see {@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/contracts/core/storages/QuoteStorage.sol}\n */\nexport interface Quote {\n /** Sequential quote id (starts at 1; `0n` is the not-found sentinel). */\n id: bigint;\n /** PartyB addresses allowed to fill this quote (empty means any). */\n partyBsWhiteList: readonly Address[];\n /** Market identifier (`symbolId`) the quote trades. */\n symbolId: bigint;\n /** Long or short. */\n positionType: PositionType;\n /** Limit or market order. */\n orderType: OrderType;\n /** Price partyB actually opened at (0 until opened). */\n openedPrice: bigint;\n /** Price partyA originally requested to open at. */\n initialOpenedPrice: bigint;\n /** Current requested open price (may differ from `initialOpenedPrice` after edits). */\n requestedOpenPrice: bigint;\n /** Market price snapshot recorded on the quote at its last state change. */\n marketPrice: bigint;\n /** Total quantity partyA requested. */\n quantity: bigint;\n /** Quantity already closed. */\n closedAmount: bigint;\n /** Margin locked at open time (basis for leverage). */\n initialLockedValues: LockedValues;\n /** Margin currently locked. */\n lockedValues: LockedValues;\n /** Maximum funding rate partyA accepts. */\n maxFundingRate: bigint;\n /** Owner of the quote — the virtual account (lowcap). */\n partyA: Address;\n /** The partyB (hedger/solver) that locked/opened the quote, or the zero address. */\n partyB: Address;\n /** Current lifecycle status. */\n quoteStatus: QuoteStatus;\n /** Average price across executed closes. */\n avgClosedPrice: bigint;\n /** Requested limit price for a pending close. */\n requestedClosePrice: bigint;\n /** Quantity of a pending close request. */\n quantityToClose: bigint;\n /** Parent quote id for a partially-opened child, or `0n`. */\n parentId: bigint;\n /** Block timestamp the quote was created. */\n createTimestamp: bigint;\n /** Block timestamp of the last status change (sort key). */\n statusModifyTimestamp: bigint;\n /** Block timestamp funding was last applied. */\n lastFundingPaymentTimestamp: bigint;\n /** Quote deadline (expiry) timestamp. */\n deadline: bigint;\n /** Trading fee charged on the quote. */\n tradingFee: bigint;\n /** Affiliate address attributed to the quote, or the zero address. */\n affiliate: Address;\n /** Net funding paid (positive) or received (negative) over the position's life (`int256`). */\n accumulatedPaidFunding: bigint;\n /** Fee charged on close. */\n closeFee: bigint;\n /** Opaque per-quote data, or `0x`. */\n data: Hex;\n}\n"],"mappings":";AAYA,IAAY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,UAAA,KAAA,WAEA,EAAA,EAAA,oBAAA,KAAA,qBAEA,EAAA,EAAA,oBAAA,KAAA,qBAEA,EAAA,EAAA,YAAA,KAAA,aAEA,EAAA,EAAA,mBAAA,KAAA,oBAEA,EAAA,EAAA,YAAA,KAAA,aAEA,EAAA,EAAA,YAAA,KAAA;AACF,EAAA,CAAA,CAAA,GA6EY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,OAAA,KAAA,QAEA,EAAA,EAAA,QAAA,KAAA;AACF,EAAA,CAAA,CAAA,GAYY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,QAAA,KAAA,SAEA,EAAA,EAAA,SAAA,KAAA;AACF,EAAA,CAAA,CAAA,GAgBY,IAAL,yBAAA,GAAA;QAEL,EAAA,EAAA,UAAA,KAAA,WAEA,EAAA,EAAA,SAAA,KAAA,UAEA,EAAA,EAAA,iBAAA,KAAA,kBAEA,EAAA,EAAA,WAAA,KAAA,YAEA,EAAA,EAAA,SAAA,KAAA,UAEA,EAAA,EAAA,gBAAA,KAAA,iBAEA,EAAA,EAAA,uBAAA,KAAA,wBAEA,EAAA,EAAA,SAAA,KAAA,UAEA,EAAA,EAAA,aAAA,KAAA,cAEA,EAAA,EAAA,UAAA,KAAA,WAEA,EAAA,EAAA,qBAAA,MAAA;AACF,EAAA,CAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './query-subgraph';
|
|
1
|
+
export * from './query-subgraph/index.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './query';
|
|
2
|
-
export * from './query-subgraph';
|
|
1
|
+
export * from './query.js';
|
|
2
|
+
export * from './query-subgraph.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SymmioSubgraphName } from '../../core/chains/types';
|
|
2
|
-
import { Config } from '../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../shared/types/properties';
|
|
1
|
+
import { SymmioSubgraphName } from '../../core/chains/types.js';
|
|
2
|
+
import { Config } from '../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* A typed GraphQL document the subgraph transport can execute.
|
|
6
6
|
*
|
|
@@ -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 { QuerySubgraphParameters } from './query-subgraph';
|
|
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 { QuerySubgraphParameters } from './query-subgraph.js';
|
|
5
5
|
/** Query-key type produced by {@link getQuerySubgraphQueryKey}. */
|
|
6
6
|
export type QuerySubgraphQueryKey = readonly ["querySubgraph", Record<string, unknown>];
|
|
7
7
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
3
3
|
*/
|
|
4
|
-
export declare function graphql(source: "\n query BalanceChanges(\n $accounts: [Bytes!]!\n $typeIn: [String!]!\n $isMarginTransferSideEffectIn: [Boolean!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n balanceChanges(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: {\n account_in: $accounts\n type_in: $typeIn\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n ) {\n id\n type\n amount\n account\n timestamp\n transaction\n isMarginTransferSideEffect\n marginTransferType\n }\n }\n"): typeof import('./graphql').BalanceChangesDocument;
|
|
4
|
+
export declare function graphql(source: "\n query BalanceChanges(\n $accounts: [Bytes!]!\n $typeIn: [String!]!\n $isMarginTransferSideEffectIn: [Boolean!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n balanceChanges(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: {\n account_in: $accounts\n type_in: $typeIn\n isMarginTransferSideEffect_in: $isMarginTransferSideEffectIn\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n }\n ) {\n id\n type\n amount\n account\n timestamp\n transaction\n isMarginTransferSideEffect\n marginTransferType\n }\n }\n"): typeof import('./graphql.js').BalanceChangesDocument;
|
|
5
5
|
/**
|
|
6
6
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
7
7
|
*/
|
|
8
|
-
export declare function graphql(source: "\n query QuoteEventsForQuoteByType(\n $quoteId: BigInt!\n $typeIn: [String!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { quoteId: $quoteId, type_in: $typeIn }\n ) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n"): typeof import('./graphql').QuoteEventsForQuoteByTypeDocument;
|
|
8
|
+
export declare function graphql(source: "\n query QuoteEventsForQuoteByType(\n $quoteId: BigInt!\n $typeIn: [String!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: { quoteId: $quoteId, type_in: $typeIn }\n ) {\n id\n type\n metadata\n timestamp\n blockNumber\n transaction\n quoteId\n }\n }\n"): typeof import('./graphql.js').QuoteEventsForQuoteByTypeDocument;
|
|
9
9
|
/**
|
|
10
10
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
11
11
|
*/
|
|
12
|
-
export declare function graphql(source: "\n query QuotesFunding($ids: [BigInt!]!) {\n quotes(where: { quoteId_in: $ids }) {\n quoteId\n userPaidFunding\n userReceivedFunding\n }\n }\n"): typeof import('./graphql').QuotesFundingDocument;
|
|
12
|
+
export declare function graphql(source: "\n query QuotesFunding($ids: [BigInt!]!) {\n quotes(where: { quoteId_in: $ids }) {\n quoteId\n userPaidFunding\n userReceivedFunding\n }\n }\n"): typeof import('./graphql.js').QuotesFundingDocument;
|
|
13
13
|
/**
|
|
14
14
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
15
15
|
*/
|
|
16
|
-
export declare function graphql(source: "\n query QuoteEventsForHistory(\n $typeIn: [String!]!\n $subAccounts: [String!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: {\n type_in: $typeIn\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n quote_: { subAccount_in: $subAccounts }\n }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n }\n quantity\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n }\n }\n }\n"): typeof import('./graphql').QuoteEventsForHistoryDocument;
|
|
16
|
+
export declare function graphql(source: "\n query QuoteEventsForHistory(\n $typeIn: [String!]!\n $subAccounts: [String!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n quoteEvents(\n first: $first\n skip: $skip\n orderBy: timestamp\n orderDirection: $orderDirection\n where: {\n type_in: $typeIn\n timestamp_gte: $startDate\n timestamp_lte: $endDate\n quote_: { subAccount_in: $subAccounts }\n }\n ) {\n id\n type\n metadata\n timestamp\n quoteId\n blockNumber\n transaction\n quote {\n quoteId\n quoteStatus\n positionType\n orderTypeOpen\n symbol\n symbolId\n partyA\n partyB\n subAccount {\n id\n }\n quantity\n openedPrice\n requestedOpenPrice\n averageClosedPrice\n closePrice\n closedAmount\n quantityToClose\n liquidateAmount\n liquidatePrice\n }\n }\n }\n"): typeof import('./graphql.js').QuoteEventsForHistoryDocument;
|
|
17
17
|
//# sourceMappingURL=gql.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './gql';
|
|
1
|
+
export * from './gql.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
3
3
|
*/
|
|
4
|
-
export declare function graphql(source: "\n query TransferHistory(\n $senders: [Bytes!]!\n $users: [Bytes!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n internalTransfers(\n first: $first\n skip: $skip\n orderBy: blockTimestamp\n orderDirection: $orderDirection\n where: {\n or: [\n { sender_in: $senders, blockTimestamp_gte: $startDate, blockTimestamp_lte: $endDate }\n { user_in: $users, blockTimestamp_gte: $startDate, blockTimestamp_lte: $endDate }\n ]\n }\n ) {\n id\n sender\n user\n amount\n blockTimestamp\n transactionHash\n }\n }\n"): typeof import('./graphql').TransferHistoryDocument;
|
|
4
|
+
export declare function graphql(source: "\n query TransferHistory(\n $senders: [Bytes!]!\n $users: [Bytes!]!\n $first: Int!\n $skip: Int!\n $orderDirection: OrderDirection!\n $startDate: BigInt!\n $endDate: BigInt!\n ) {\n internalTransfers(\n first: $first\n skip: $skip\n orderBy: blockTimestamp\n orderDirection: $orderDirection\n where: {\n or: [\n { sender_in: $senders, blockTimestamp_gte: $startDate, blockTimestamp_lte: $endDate }\n { user_in: $users, blockTimestamp_gte: $startDate, blockTimestamp_lte: $endDate }\n ]\n }\n ) {\n id\n sender\n user\n amount\n blockTimestamp\n transactionHash\n }\n }\n"): typeof import('./graphql.js').TransferHistoryDocument;
|
|
5
5
|
//# sourceMappingURL=gql.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './gql';
|
|
1
|
+
export * from './gql.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from '../../core/config';
|
|
2
|
-
import { ChainIdParameter, Compute } from '../../shared/types/properties';
|
|
3
|
-
import { TpSlConfig } from '../types';
|
|
1
|
+
import { Config } from '../../core/config/index.js';
|
|
2
|
+
import { ChainIdParameter, Compute } from '../../shared/types/properties.js';
|
|
3
|
+
import { TpSlConfig } from '../types.js';
|
|
4
4
|
/** Parameters for {@link getTpSlConfig}. */
|
|
5
5
|
export type GetTpSlConfigParameters = Compute<ChainIdParameter>;
|
|
6
6
|
/** Return type of {@link getTpSlConfig}. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './get-tpsl-config';
|
|
2
|
-
export * from './query';
|
|
1
|
+
export * from './get-tpsl-config.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 { GetTpSlConfigParameters, GetTpSlConfigReturnType } from './get-tpsl-config';
|
|
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 { GetTpSlConfigParameters, GetTpSlConfigReturnType } from './get-tpsl-config.js';
|
|
5
5
|
export type GetTpSlConfigData = GetTpSlConfigReturnType;
|
|
6
6
|
export declare function getTpSlConfigQueryKey(options: Compute<GetTpSlConfigParameters & ConfigKeyParameter>): readonly ["getTpSlConfig", Record<string, unknown>];
|
|
7
7
|
export type GetTpSlConfigQueryKey = ReturnType<typeof getTpSlConfigQueryKey>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Address } from 'viem';
|
|
2
|
+
import { Config } from '../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteSolverParameter } from '../../shared/types/properties.js';
|
|
4
|
+
import { TpSlConditionalOrderType } from '../types.js';
|
|
5
|
+
/** Parameters for {@link deleteQuoteTpSl}. */
|
|
6
|
+
export type DeleteQuoteTpSlParameters = Compute<WriteSolverParameter & {
|
|
7
|
+
/** On-chain quote id the order belongs to (used for cache invalidation). */
|
|
8
|
+
quoteId: bigint;
|
|
9
|
+
/** PartyA (the VA address) that owns the quote. */
|
|
10
|
+
virtualAccount: Address;
|
|
11
|
+
/** Handler-issued conditional-order id targeted by the delete. */
|
|
12
|
+
cohQuoteId: string;
|
|
13
|
+
/** Which side is being canceled. */
|
|
14
|
+
conditionalOrderType: TpSlConditionalOrderType;
|
|
15
|
+
}>;
|
|
16
|
+
/** Return type of {@link deleteQuoteTpSl}. */
|
|
17
|
+
export interface DeleteQuoteTpSlReturnType {
|
|
18
|
+
success: true;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Cancel a live TP or SL order by its handler-issued `cohQuoteId`.
|
|
22
|
+
*
|
|
23
|
+
* Steps:
|
|
24
|
+
* 1. Resolve the TP/SL handler URL + DELETE signing spec.
|
|
25
|
+
* 2. Build a {@link TpSlDeleteMessage} bound to the target cohQuoteId + side.
|
|
26
|
+
* 3. Sign with the session-key wallet.
|
|
27
|
+
* 4. DELETE `/api/v5/` with `{ typedData, signature, signer }`.
|
|
28
|
+
*
|
|
29
|
+
* The handler returns 200 on accept — the cancel is only fully "confirmed"
|
|
30
|
+
* once the WebSocket reports `state: "cancel"` (or `canceled` / `cancelled`).
|
|
31
|
+
* Callers should subscribe via `watchTpSlNotifications` and reconcile.
|
|
32
|
+
*
|
|
33
|
+
* @throws {SymmError} when the chain has no `tpsl` config or signing fails.
|
|
34
|
+
* @throws {SymmApiError} when the handler request fails.
|
|
35
|
+
*/
|
|
36
|
+
export declare function deleteQuoteTpSl(config: Config, parameters: DeleteQuoteTpSlParameters): Promise<DeleteQuoteTpSlReturnType>;
|
|
37
|
+
//# sourceMappingURL=delete-quote-tpsl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-quote-tpsl.d.ts","sourceRoot":"","sources":["../../../src/tpsl/delete-quote-tpsl/delete-quote-tpsl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAMnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGzD,8CAA8C;AAC9C,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,oBAAoB,GAAG;IACrB,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,cAAc,EAAE,OAAO,CAAC;IACxB,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,oBAAoB,EAAE,wBAAwB,CAAC;CAChD,CACF,CAAC;AAEF,8CAA8C;AAC9C,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,IAAI,CAAC;CACf;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,yBAAyB,GACpC,OAAO,CAAC,yBAAyB,CAAC,CA2BpC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { SymmError as e } from "../../shared/errors/symm-error.js";
|
|
2
|
+
import { rethrowTpSlError as t } from "../internal/axios.js";
|
|
3
|
+
import { resolveTpSlConfig as n } from "../internal/resolve-tpsl-config.js";
|
|
4
|
+
import { deleteConditionalOrderV5ApiV5Delete as r } from "../types/generated/tpsl-handler.js";
|
|
5
|
+
import { buildTpSlDeleteMessage as i } from "../set-quote-tpsl/build-conditional-order-message.js";
|
|
6
|
+
import { signTpSlRequest as a } from "../set-quote-tpsl/sign-tpsl-request.js";
|
|
7
|
+
import { getTpSlDeleteSigningSpec as o } from "../signing-spec/get-tpsl-delete-signing-spec.js";
|
|
8
|
+
//#region src/tpsl/delete-quote-tpsl/delete-quote-tpsl.ts
|
|
9
|
+
async function s(s, c) {
|
|
10
|
+
let l = n(s, c.chainId), u = await a({
|
|
11
|
+
signingSpec: await o(s, { chainId: c.chainId }),
|
|
12
|
+
message: i({
|
|
13
|
+
virtualAccount: c.virtualAccount,
|
|
14
|
+
cohQuoteId: c.cohQuoteId,
|
|
15
|
+
conditionalOrderType: c.conditionalOrderType
|
|
16
|
+
}),
|
|
17
|
+
walletClient: await s.getWalletClient({
|
|
18
|
+
chainId: c.chainId,
|
|
19
|
+
from: c.from
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
try {
|
|
23
|
+
let t = (await r(u, {
|
|
24
|
+
baseURL: l.url,
|
|
25
|
+
headers: {
|
|
26
|
+
"App-Name": l.appName,
|
|
27
|
+
"Content-Type": "application/json",
|
|
28
|
+
Accept: "application/json"
|
|
29
|
+
}
|
|
30
|
+
})).data ?? {};
|
|
31
|
+
if (!(typeof t.successful == "string" ? t.successful !== "false" : t.successful !== !1)) throw new e("api", "DELETE_TPSL_REJECTED", t.message ?? "Handler rejected TP/SL delete.");
|
|
32
|
+
return { success: !0 };
|
|
33
|
+
} catch (e) {
|
|
34
|
+
return t(e, {
|
|
35
|
+
code: "DELETE_TPSL_FAILED",
|
|
36
|
+
baseURL: l.url
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { s as deleteQuoteTpSl };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=delete-quote-tpsl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-quote-tpsl.js","names":[],"sources":["../../../src/tpsl/delete-quote-tpsl/delete-quote-tpsl.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../core/config\";\nimport { SymmError } from \"../../shared/errors/symm-error\";\nimport type { Compute, WriteSolverParameter } from \"../../shared/types/properties\";\nimport { rethrowTpSlError } from \"../internal/axios\";\nimport { resolveTpSlConfig } from \"../internal/resolve-tpsl-config\";\nimport { buildTpSlDeleteMessage } from \"../set-quote-tpsl/build-conditional-order-message\";\nimport { signTpSlRequest } from \"../set-quote-tpsl/sign-tpsl-request\";\nimport { getTpSlDeleteSigningSpec } from \"../signing-spec/get-tpsl-delete-signing-spec\";\nimport type { TpSlConditionalOrderType } from \"../types\";\nimport { deleteConditionalOrderV5ApiV5Delete, type ConditionalOrderOperationV5 } from \"../types/generated/tpsl-handler\";\n\n/** Parameters for {@link deleteQuoteTpSl}. */\nexport type DeleteQuoteTpSlParameters = Compute<\n WriteSolverParameter & {\n /** On-chain quote id the order belongs to (used for cache invalidation). */\n quoteId: bigint;\n /** PartyA (the VA address) that owns the quote. */\n virtualAccount: Address;\n /** Handler-issued conditional-order id targeted by the delete. */\n cohQuoteId: string;\n /** Which side is being canceled. */\n conditionalOrderType: TpSlConditionalOrderType;\n }\n>;\n\n/** Return type of {@link deleteQuoteTpSl}. */\nexport interface DeleteQuoteTpSlReturnType {\n success: true;\n}\n\n/**\n * Cancel a live TP or SL order by its handler-issued `cohQuoteId`.\n *\n * Steps:\n * 1. Resolve the TP/SL handler URL + DELETE signing spec.\n * 2. Build a {@link TpSlDeleteMessage} bound to the target cohQuoteId + side.\n * 3. Sign with the session-key wallet.\n * 4. DELETE `/api/v5/` with `{ typedData, signature, signer }`.\n *\n * The handler returns 200 on accept — the cancel is only fully \"confirmed\"\n * once the WebSocket reports `state: \"cancel\"` (or `canceled` / `cancelled`).\n * Callers should subscribe via `watchTpSlNotifications` and reconcile.\n *\n * @throws {SymmError} when the chain has no `tpsl` config or signing fails.\n * @throws {SymmApiError} when the handler request fails.\n */\nexport async function deleteQuoteTpSl(\n config: Config,\n parameters: DeleteQuoteTpSlParameters,\n): Promise<DeleteQuoteTpSlReturnType> {\n const tpsl = resolveTpSlConfig(config, parameters.chainId);\n const signingSpec = await getTpSlDeleteSigningSpec(config, { chainId: parameters.chainId });\n\n const message = buildTpSlDeleteMessage({\n virtualAccount: parameters.virtualAccount,\n cohQuoteId: parameters.cohQuoteId,\n conditionalOrderType: parameters.conditionalOrderType,\n });\n\n const walletClient = await config.getWalletClient({ chainId: parameters.chainId, from: parameters.from });\n const signed = await signTpSlRequest({ signingSpec, message, walletClient });\n\n try {\n const response = await deleteConditionalOrderV5ApiV5Delete(signed as unknown as ConditionalOrderOperationV5, {\n baseURL: tpsl.url,\n headers: { \"App-Name\": tpsl.appName, \"Content-Type\": \"application/json\", Accept: \"application/json\" },\n });\n const body = response.data ?? {};\n const successful = typeof body.successful === \"string\" ? body.successful !== \"false\" : body.successful !== false;\n if (!successful) {\n throw new SymmError(\"api\", \"DELETE_TPSL_REJECTED\", body.message ?? \"Handler rejected TP/SL delete.\");\n }\n return { success: true };\n } catch (err) {\n return rethrowTpSlError(err, { code: \"DELETE_TPSL_FAILED\", baseURL: tpsl.url });\n }\n}\n"],"mappings":";;;;;;;;AA+CA,eAAsB,EACpB,GACA,GACoC;CACpC,IAAM,IAAO,EAAkB,GAAQ,EAAW,OAAO,GAUnD,IAAS,MAAM,EAAgB;EAAE,aAAA,MATb,EAAyB,GAAQ,EAAE,SAAS,EAAW,QAAQ,CAAC;EAStC,SAPpC,EAAuB;GACrC,gBAAgB,EAAW;GAC3B,YAAY,EAAW;GACvB,sBAAsB,EAAW;EACnC,CAGoD;EAAS,cAAA,MADlC,EAAO,gBAAgB;GAAE,SAAS,EAAW;GAAS,MAAM,EAAW;EAAK,CAAC;CAC9B,CAAC;CAE3E,IAAI;EAKF,IAAM,KAAO,MAJU,EAAoC,GAAkD;GAC3G,SAAS,EAAK;GACd,SAAS;IAAE,YAAY,EAAK;IAAS,gBAAgB;IAAoB,QAAQ;GAAmB;EACtG,CAAC,GACqB,QAAQ,CAAC;EAE/B,IAAI,EADe,OAAO,EAAK,cAAe,WAAW,EAAK,eAAe,UAAU,EAAK,eAAe,KAEzG,MAAM,IAAI,EAAU,OAAO,wBAAwB,EAAK,WAAW,gCAAgC;EAErG,OAAO,EAAE,SAAS,GAAK;CACzB,SAAS,GAAK;EACZ,OAAO,EAAiB,GAAK;GAAE,MAAM;GAAsB,SAAS,EAAK;EAAI,CAAC;CAChF;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tpsl/delete-quote-tpsl/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Config } from '../../core/config/index.js';
|
|
2
|
+
import { DeleteQuoteTpSlParameters } from './delete-quote-tpsl.js';
|
|
3
|
+
/**
|
|
4
|
+
* Build TanStack Mutation options for {@link deleteQuoteTpSl}.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* useMutation(deleteQuoteTpSlMutationOptions(config));
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare function deleteQuoteTpSlMutationOptions(config: Config): {
|
|
12
|
+
mutationKey: readonly ["deleteQuoteTpSl"];
|
|
13
|
+
mutationFn: (variables: DeleteQuoteTpSlParameters) => Promise<import('./delete-quote-tpsl.js').DeleteQuoteTpSlReturnType>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/tpsl/delete-quote-tpsl/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAmB,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEtF;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM;;4BAGjC,yBAAyB;EAEpD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { deleteQuoteTpSl as e } from "./delete-quote-tpsl.js";
|
|
2
|
+
//#region src/tpsl/delete-quote-tpsl/query.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
return {
|
|
5
|
+
mutationKey: ["deleteQuoteTpSl"],
|
|
6
|
+
mutationFn: (n) => e(t, n)
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as deleteQuoteTpSlMutationOptions };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","names":[],"sources":["../../../src/tpsl/delete-quote-tpsl/query.ts"],"sourcesContent":["import type { Config } from \"../../core/config\";\nimport { deleteQuoteTpSl, type DeleteQuoteTpSlParameters } from \"./delete-quote-tpsl\";\n\n/**\n * Build TanStack Mutation options for {@link deleteQuoteTpSl}.\n *\n * @example\n * ```ts\n * useMutation(deleteQuoteTpSlMutationOptions(config));\n * ```\n */\nexport function deleteQuoteTpSlMutationOptions(config: Config) {\n return {\n mutationKey: [\"deleteQuoteTpSl\"] as const,\n mutationFn: (variables: DeleteQuoteTpSlParameters) => deleteQuoteTpSl(config, variables),\n };\n}\n"],"mappings":";;AAWA,SAAgB,EAA+B,GAAgB;CAC7D,OAAO;EACL,aAAa,CAAC,iBAAiB;EAC/B,aAAa,MAAyC,EAAgB,GAAQ,CAAS;CACzF;AACF"}
|