@symmio/trading-core 0.1.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/balance-history/get-balance-history/balance-history-filter.d.ts +1 -1
- package/dist/balance-history/get-balance-history/get-balance-history.d.ts +3 -3
- package/dist/balance-history/get-balance-history/index.d.ts +5 -5
- package/dist/balance-history/get-balance-history/query-document.d.ts +2 -2
- package/dist/balance-history/get-balance-history/query.d.ts +4 -4
- package/dist/balance-history/get-balance-history/to-balance-history-row.d.ts +2 -2
- package/dist/balance-history/index.d.ts +1 -1
- package/dist/core/chains/actions/get-chain-config.d.ts +1 -1
- package/dist/core/chains/actions/list-supported-chains.d.ts +1 -1
- package/dist/core/chains/index.d.ts +5 -5
- package/dist/core/chains/registry.d.ts +1 -1
- package/dist/core/config/config-key.d.ts +1 -1
- package/dist/core/config/create-config.d.ts +44 -8
- package/dist/core/config/create-config.d.ts.map +1 -1
- package/dist/core/config/create-config.js +29 -22
- package/dist/core/config/create-config.js.map +1 -1
- package/dist/core/config/index.d.ts +1 -1
- package/dist/core/config/merge-chain-config.d.ts +2 -2
- package/dist/index.d.ts +58 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +142 -127
- package/dist/muon/client.d.ts +1 -1
- package/dist/muon/deallocate-upnl-sig/get-deallocate-upnl-sig.d.ts +3 -3
- package/dist/muon/deallocate-upnl-sig/index.d.ts +2 -2
- package/dist/muon/deallocate-upnl-sig/query.d.ts +4 -4
- package/dist/muon/index.d.ts +11 -11
- package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts +4 -4
- package/dist/muon/party-a-overview/get-muon-party-a-overview.d.ts.map +1 -1
- package/dist/muon/party-a-overview/get-muon-party-a-overview.js.map +1 -1
- package/dist/muon/party-a-overview/index.d.ts +2 -2
- package/dist/muon/party-a-overview/query.d.ts +4 -4
- package/dist/muon/price/get-muon-price.d.ts +3 -3
- package/dist/muon/price/index.d.ts +2 -2
- package/dist/muon/price/query.d.ts +4 -4
- package/dist/muon/price-range/get-muon-price-range.d.ts +4 -4
- package/dist/muon/price-range/get-muon-price-range.d.ts.map +1 -1
- package/dist/muon/price-range/get-muon-price-range.js.map +1 -1
- package/dist/muon/price-range/index.d.ts +2 -2
- package/dist/muon/price-range/query.d.ts +4 -4
- package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts +4 -4
- package/dist/muon/settle-upnl/get-muon-settle-upnl.d.ts.map +1 -1
- package/dist/muon/settle-upnl/get-muon-settle-upnl.js.map +1 -1
- package/dist/muon/settle-upnl/index.d.ts +2 -2
- package/dist/muon/settle-upnl/query.d.ts +4 -4
- package/dist/muon/upnl/get-muon-upnl.d.ts +4 -4
- package/dist/muon/upnl/get-muon-upnl.d.ts.map +1 -1
- package/dist/muon/upnl/get-muon-upnl.js.map +1 -1
- package/dist/muon/upnl/index.d.ts +2 -2
- package/dist/muon/upnl/query.d.ts +4 -4
- package/dist/muon/upnl-a/get-muon-upnl-a.d.ts +4 -4
- package/dist/muon/upnl-a/get-muon-upnl-a.d.ts.map +1 -1
- package/dist/muon/upnl-a/get-muon-upnl-a.js.map +1 -1
- package/dist/muon/upnl-a/index.d.ts +2 -2
- package/dist/muon/upnl-a/query.d.ts +4 -4
- package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts +4 -4
- package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.d.ts.map +1 -1
- package/dist/muon/upnl-a-with-symbol-price/get-muon-upnl-a-with-symbol-price.js.map +1 -1
- package/dist/muon/upnl-a-with-symbol-price/index.d.ts +2 -2
- package/dist/muon/upnl-a-with-symbol-price/query.d.ts +4 -4
- package/dist/muon/upnl-b/get-muon-upnl-b.d.ts +3 -3
- package/dist/muon/upnl-b/index.d.ts +2 -2
- package/dist/muon/upnl-b/query.d.ts +4 -4
- package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts +4 -4
- package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.d.ts.map +1 -1
- package/dist/muon/upnl-with-symbol-price/get-muon-upnl-with-symbol-price.js.map +1 -1
- package/dist/muon/upnl-with-symbol-price/index.d.ts +2 -2
- package/dist/muon/upnl-with-symbol-price/query.d.ts +4 -4
- package/dist/notifications/index.d.ts +2 -2
- package/dist/notifications/search/index.d.ts +2 -2
- package/dist/notifications/search/query.d.ts +4 -4
- package/dist/notifications/search/search-notifications.d.ts +3 -3
- package/dist/notifications/types.d.ts +1 -1
- package/dist/price-service/enigma/health/get-enigma-price-service-health.d.ts +2 -2
- package/dist/price-service/enigma/health/index.d.ts +2 -2
- package/dist/price-service/enigma/health/query.d.ts +4 -4
- package/dist/price-service/enigma/index.d.ts +5 -5
- package/dist/price-service/enigma/metadata/get-enigma-price-service-metadata.d.ts +3 -3
- package/dist/price-service/enigma/metadata/index.d.ts +2 -2
- package/dist/price-service/enigma/metadata/query.d.ts +4 -4
- package/dist/price-service/enigma/prices-by-addresses/get-enigma-price-service-prices-by-addresses.d.ts +3 -3
- package/dist/price-service/enigma/prices-by-addresses/index.d.ts +2 -2
- package/dist/price-service/enigma/prices-by-addresses/query.d.ts +4 -4
- package/dist/price-service/enigma/prices-by-names/get-enigma-price-service-prices-by-names.d.ts +3 -3
- package/dist/price-service/enigma/prices-by-names/index.d.ts +2 -2
- package/dist/price-service/enigma/prices-by-names/query.d.ts +4 -4
- package/dist/price-service/enigma/symbols-info/get-enigma-price-service-symbols-info.d.ts +3 -3
- package/dist/price-service/enigma/symbols-info/index.d.ts +2 -2
- package/dist/price-service/enigma/symbols-info/query.d.ts +4 -4
- package/dist/price-service/index.d.ts +1 -1
- package/dist/quotes/apply-notification.d.ts +2 -2
- package/dist/quotes/fees/index.d.ts +2 -2
- package/dist/quotes/fingerprint.d.ts +1 -1
- package/dist/quotes/get-quote-events-by-type/get-quote-events-by-type.d.ts +3 -3
- package/dist/quotes/get-quote-events-by-type/index.d.ts +4 -4
- package/dist/quotes/get-quote-events-by-type/query-document.d.ts +2 -2
- package/dist/quotes/get-quote-events-by-type/query.d.ts +5 -5
- package/dist/quotes/get-quote-events-by-type/to-quote-event-row.d.ts +2 -2
- package/dist/quotes/get-quote-funding/get-quote-funding.d.ts +3 -3
- package/dist/quotes/get-quote-funding/index.d.ts +4 -4
- package/dist/quotes/get-quote-funding/query-document.d.ts +1 -1
- package/dist/quotes/get-quote-funding/query.d.ts +4 -4
- package/dist/quotes/get-quote-funding/to-funding-row.d.ts +2 -2
- package/dist/quotes/get-quote-history/close-type.d.ts +2 -2
- package/dist/quotes/get-quote-history/get-quote-history.d.ts +3 -3
- package/dist/quotes/get-quote-history/index.d.ts +5 -5
- package/dist/quotes/get-quote-history/query-document.d.ts +2 -2
- package/dist/quotes/get-quote-history/query.d.ts +4 -4
- package/dist/quotes/get-quote-history/to-history-row.d.ts +2 -2
- package/dist/quotes/get-quote-history/types.d.ts +1 -1
- package/dist/quotes/get-sub-account-quotes/get-sub-account-quotes.d.ts +3 -3
- package/dist/quotes/get-sub-account-quotes/index.d.ts +2 -2
- package/dist/quotes/get-sub-account-quotes/query.d.ts +4 -4
- package/dist/quotes/grouping/aggregate-metrics.d.ts +2 -2
- package/dist/quotes/grouping/group-quotes.d.ts +2 -2
- package/dist/quotes/grouping/group-strategy.d.ts +1 -1
- package/dist/quotes/grouping/index.d.ts +5 -5
- package/dist/quotes/grouping/partition-quotes.d.ts +1 -1
- package/dist/quotes/grouping/quote-group.d.ts +3 -3
- package/dist/quotes/index.d.ts +16 -16
- package/dist/quotes/liquidation/calculate-liquidation-price.d.ts +1 -1
- package/dist/quotes/liquidation/index.d.ts +1 -1
- package/dist/quotes/open-quantity.d.ts +1 -1
- package/dist/quotes/reconcile-quotes.d.ts +5 -5
- package/dist/quotes/resolve-quote-accounts.d.ts +3 -3
- package/dist/quotes/should-accelerate.d.ts +1 -1
- package/dist/quotes/to-unified-quote.d.ts +4 -4
- package/dist/quotes/unified-quote.d.ts +3 -3
- package/dist/quotes/upnl/calculate-quote-pnl.d.ts +1 -1
- package/dist/quotes/upnl/calculate-quote-upnl.d.ts +1 -1
- package/dist/quotes/upnl/index.d.ts +3 -3
- package/dist/shared/utils/simulate-before-write.d.ts +2 -2
- package/dist/solvers/error-codes/get-solver-error-codes.d.ts +2 -2
- package/dist/solvers/error-codes/index.d.ts +2 -2
- package/dist/solvers/error-codes/query.d.ts +4 -4
- package/dist/solvers/estimated-price/get-estimated-price.d.ts +58 -0
- package/dist/solvers/estimated-price/get-estimated-price.d.ts.map +1 -0
- package/dist/solvers/estimated-price/get-estimated-price.js +30 -0
- package/dist/solvers/estimated-price/get-estimated-price.js.map +1 -0
- package/dist/solvers/estimated-price/index.d.ts +5 -0
- package/dist/solvers/estimated-price/index.d.ts.map +1 -0
- package/dist/solvers/estimated-price/price-impact.d.ts +25 -0
- package/dist/solvers/estimated-price/price-impact.d.ts.map +1 -0
- package/dist/solvers/estimated-price/price-impact.js +9 -0
- package/dist/solvers/estimated-price/price-impact.js.map +1 -0
- package/dist/solvers/estimated-price/query.d.ts +26 -0
- package/dist/solvers/estimated-price/query.d.ts.map +1 -0
- package/dist/solvers/estimated-price/query.js +28 -0
- package/dist/solvers/estimated-price/query.js.map +1 -0
- package/dist/solvers/estimated-price/to-estimated-price.d.ts +9 -0
- package/dist/solvers/estimated-price/to-estimated-price.d.ts.map +1 -0
- package/dist/solvers/estimated-price/to-estimated-price.js +8 -0
- package/dist/solvers/estimated-price/to-estimated-price.js.map +1 -0
- package/dist/solvers/funding-info/get-funding-info.d.ts +37 -0
- package/dist/solvers/funding-info/get-funding-info.d.ts.map +1 -0
- package/dist/solvers/funding-info/get-funding-info.js +24 -0
- package/dist/solvers/funding-info/get-funding-info.js.map +1 -0
- package/dist/solvers/funding-info/index.d.ts +6 -0
- package/dist/solvers/funding-info/index.d.ts.map +1 -0
- package/dist/solvers/funding-info/project-funding-rate.d.ts +30 -0
- package/dist/solvers/funding-info/project-funding-rate.d.ts.map +1 -0
- package/dist/solvers/funding-info/project-funding-rate.js +9 -0
- package/dist/solvers/funding-info/project-funding-rate.js.map +1 -0
- package/dist/solvers/funding-info/query.d.ts +28 -0
- package/dist/solvers/funding-info/query.d.ts.map +1 -0
- package/dist/solvers/funding-info/query.js +24 -0
- package/dist/solvers/funding-info/query.js.map +1 -0
- package/dist/solvers/funding-info/to-funding-info.d.ts +14 -0
- package/dist/solvers/funding-info/to-funding-info.d.ts.map +1 -0
- package/dist/solvers/funding-info/to-funding-info.js +15 -0
- package/dist/solvers/funding-info/to-funding-info.js.map +1 -0
- package/dist/solvers/funding-info/types.d.ts +35 -0
- package/dist/solvers/funding-info/types.d.ts.map +1 -0
- package/dist/solvers/instant-close/get-instant-closes/get-instant-closes.d.ts +3 -3
- package/dist/solvers/instant-close/get-instant-closes/index.d.ts +3 -3
- package/dist/solvers/instant-close/get-instant-closes/query.d.ts +4 -4
- package/dist/solvers/instant-close/get-instant-closes/to-pending-instant-close.d.ts +1 -1
- package/dist/solvers/instant-close/index.d.ts +7 -7
- package/dist/solvers/instant-close/instant-close/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close/instant-close.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close/query.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-auto/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close-auto/instant-close-auto.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-auto/query.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-bulk/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close-bulk/instant-close-bulk.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-bulk/query.d.ts +3 -3
- package/dist/solvers/instant-close/instant-close-bulk-auto/index.d.ts +2 -2
- package/dist/solvers/instant-close/instant-close-bulk-auto/instant-close-bulk-auto.d.ts +4 -4
- package/dist/solvers/instant-close/instant-close-bulk-auto/query.d.ts +3 -3
- package/dist/solvers/instant-close/prepare-instant-close-params/index.d.ts +1 -1
- package/dist/solvers/instant-close/prepare-instant-close-params/prepare-instant-close-params.d.ts +4 -4
- package/dist/solvers/instant-close/shared/close-math.d.ts +1 -1
- package/dist/solvers/instant-close/shared/hedger-api.d.ts +3 -3
- package/dist/solvers/instant-close/shared/index.d.ts +5 -5
- package/dist/solvers/instant-close/shared/quote-constraints.d.ts +1 -1
- package/dist/solvers/instant-close/shared/types.d.ts +2 -2
- package/dist/solvers/instant-open/get-instant-open-quote-id/get-instant-open-quote-id.d.ts +2 -2
- package/dist/solvers/instant-open/get-instant-open-quote-id/index.d.ts +2 -2
- package/dist/solvers/instant-open/get-instant-open-quote-id/query.d.ts +4 -4
- package/dist/solvers/instant-open/get-instant-opens/get-instant-opens.d.ts +3 -3
- package/dist/solvers/instant-open/get-instant-opens/index.d.ts +3 -3
- package/dist/solvers/instant-open/get-instant-opens/query.d.ts +4 -4
- package/dist/solvers/instant-open/get-instant-opens/to-pending-instant-open.d.ts +2 -2
- package/dist/solvers/instant-open/index.d.ts +6 -6
- package/dist/solvers/instant-open/instant-open/index.d.ts +2 -2
- package/dist/solvers/instant-open/instant-open/instant-open.d.ts +3 -3
- package/dist/solvers/instant-open/instant-open/query.d.ts +3 -3
- package/dist/solvers/instant-open/instant-open-auto/index.d.ts +2 -2
- package/dist/solvers/instant-open/instant-open-auto/instant-open-auto.d.ts +3 -3
- package/dist/solvers/instant-open/instant-open-auto/query.d.ts +3 -3
- package/dist/solvers/instant-open/prepare-instant-open-params/index.d.ts +2 -2
- package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts +6 -6
- package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/index.d.ts +4 -4
- package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-fee-rates.d.ts +3 -3
- package/dist/solvers/instant-open/prepare-instant-open-params/resolvers/resolve-locked-params.d.ts +3 -3
- package/dist/solvers/instant-open/shared/calldata.d.ts +1 -1
- package/dist/solvers/instant-open/shared/eip712.d.ts +2 -2
- package/dist/solvers/instant-open/shared/hedger-api.d.ts +3 -3
- package/dist/solvers/instant-open/shared/index.d.ts +8 -8
- package/dist/solvers/instant-open/shared/operations.d.ts +2 -2
- package/dist/solvers/instant-open/shared/quote-constraints.d.ts +3 -3
- package/dist/solvers/instant-open/shared/trade-math.d.ts +49 -1
- package/dist/solvers/instant-open/shared/trade-math.d.ts.map +1 -1
- package/dist/solvers/instant-open/shared/trade-math.js +5 -1
- package/dist/solvers/instant-open/shared/trade-math.js.map +1 -1
- package/dist/solvers/instant-open/shared/types.d.ts +4 -4
- package/dist/solvers/locked-params/get-locked-params.d.ts +3 -3
- package/dist/solvers/locked-params/index.d.ts +3 -3
- package/dist/solvers/locked-params/query.d.ts +4 -4
- package/dist/solvers/market-info/get-market-info.d.ts +32 -0
- package/dist/solvers/market-info/get-market-info.d.ts.map +1 -0
- package/dist/solvers/market-info/get-market-info.js +23 -0
- package/dist/solvers/market-info/get-market-info.js.map +1 -0
- package/dist/solvers/market-info/index.d.ts +5 -0
- package/dist/solvers/market-info/index.d.ts.map +1 -0
- package/dist/solvers/market-info/query.d.ts +29 -0
- package/dist/solvers/market-info/query.d.ts.map +1 -0
- package/dist/solvers/market-info/query.js +21 -0
- package/dist/solvers/market-info/query.js.map +1 -0
- package/dist/solvers/market-info/to-market-info.d.ts +13 -0
- package/dist/solvers/market-info/to-market-info.d.ts.map +1 -0
- package/dist/solvers/market-info/to-market-info.js +28 -0
- package/dist/solvers/market-info/to-market-info.js.map +1 -0
- package/dist/solvers/market-info/types.d.ts +32 -0
- package/dist/solvers/market-info/types.d.ts.map +1 -0
- package/dist/solvers/markets/get-markets.d.ts +3 -3
- package/dist/solvers/markets/index.d.ts +3 -3
- package/dist/solvers/markets/query.d.ts +4 -4
- package/dist/solvers/notional-cap/check-notional-cap.d.ts +2 -2
- package/dist/solvers/notional-cap/get-notional-cap-all.d.ts +3 -3
- package/dist/solvers/notional-cap/get-notional-cap-all.d.ts.map +1 -1
- package/dist/solvers/notional-cap/get-notional-cap-all.js +1 -5
- package/dist/solvers/notional-cap/get-notional-cap-all.js.map +1 -1
- package/dist/solvers/notional-cap/get-notional-cap-by-symbol-id.d.ts +3 -3
- package/dist/solvers/notional-cap/get-open-interest-by-symbol-id.d.ts +2 -2
- package/dist/solvers/notional-cap/index.d.ts +9 -9
- package/dist/solvers/notional-cap/query-all.d.ts +4 -4
- package/dist/solvers/notional-cap/query-open-interest.d.ts +4 -4
- package/dist/solvers/notional-cap/query.d.ts +4 -4
- package/dist/solvers/notional-cap/to-market-notional-cap.d.ts +2 -2
- package/dist/solvers/notional-cap/to-market-notional-cap.d.ts.map +1 -1
- package/dist/solvers/notional-cap/to-market-notional-cap.js +1 -5
- package/dist/solvers/notional-cap/to-market-notional-cap.js.map +1 -1
- package/dist/solvers/shared/index.d.ts +1 -1
- package/dist/solvers/shared/resolvers/index.d.ts +3 -3
- package/dist/solvers/shared/resolvers/resolve-mark-price.d.ts +1 -1
- package/dist/solvers/shared/resolvers/resolve-market.d.ts +2 -2
- package/dist/solvers/types/generated/enigma-solver.js +16 -4
- package/dist/solvers/types/generated/enigma-solver.js.map +1 -1
- package/dist/symmio-contracts/abi/index.d.ts +3 -3
- package/dist/symmio-contracts/abi/v0.8.5/index.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/add-margin.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/delete-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/deposit-and-allocate-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/deposit-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/edit-account-name.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-info.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-of.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-sub-account-virtual-nonce.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-sub-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-sub-accounts-count-of-user.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-virtual-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-addresses-of-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/actions/predict-next-virtual-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/remove-margin.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/actions/simulate-add-margin.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-create-sub-accounts.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-delete-sub-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-for-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-edit-account-name.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/actions/simulate-remove-margin.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/index.d.ts +49 -49
- package/dist/symmio-contracts/account-layer/query/add-margin.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/create-sub-accounts.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/delete-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/deposit-and-allocate-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/deposit-for-account.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/edit-account-name.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/get-account-balance-info.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-account-balance-of.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-sub-account-virtual-nonce.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-sub-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-sub-accounts-count-of-user.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts-addresses.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-user-sub-accounts.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-virtual-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/get-virtual-accounts-addresses-of-sub-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/predict-next-virtual-account.d.ts +4 -4
- package/dist/symmio-contracts/account-layer/query/remove-margin.d.ts +2 -2
- package/dist/symmio-contracts/account-layer/query/simulate-add-margin.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-create-sub-accounts.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-delete-sub-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-deposit-and-allocate-for-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-deposit-for-account.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-edit-account-name.d.ts +3 -3
- package/dist/symmio-contracts/account-layer/query/simulate-remove-margin.d.ts +3 -3
- package/dist/symmio-contracts/collateral/actions/approve-collateral.d.ts +2 -2
- package/dist/symmio-contracts/collateral/actions/get-collateral-allowance.d.ts +2 -2
- package/dist/symmio-contracts/collateral/actions/get-collateral-balance.d.ts +2 -2
- package/dist/symmio-contracts/collateral/actions/simulate-approve-collateral.d.ts +3 -3
- package/dist/symmio-contracts/collateral/index.d.ts +8 -8
- package/dist/symmio-contracts/collateral/query/approve-collateral.d.ts +2 -2
- package/dist/symmio-contracts/collateral/query/get-collateral-allowance.d.ts +4 -4
- package/dist/symmio-contracts/collateral/query/get-collateral-balance.d.ts +4 -4
- package/dist/symmio-contracts/collateral/query/simulate-approve-collateral.d.ts +3 -3
- package/dist/symmio-contracts/instant-layer/actions/get-delegation-expiry.d.ts +2 -2
- package/dist/symmio-contracts/instant-layer/actions/get-is-delegation-active.d.ts +2 -2
- package/dist/symmio-contracts/instant-layer/actions/grant-delegation.d.ts +3 -3
- package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegation.d.ts +4 -4
- package/dist/symmio-contracts/instant-layer/index.d.ts +9 -9
- package/dist/symmio-contracts/instant-layer/query/get-delegation-expiry.d.ts +4 -4
- package/dist/symmio-contracts/instant-layer/query/get-is-delegation-active.d.ts +4 -4
- package/dist/symmio-contracts/instant-layer/query/grant-delegation.d.ts +2 -2
- package/dist/symmio-contracts/instant-layer/query/simulate-grant-delegation.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/allocate.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/deallocate.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/finalize-withdraw-request.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-fee-for-user.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-last-withdraw-request-id.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-onchain-contract-markets.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-party-a-pending-quotes.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-pending-withdraw-requests.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-quote.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-withdraw-requests.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/get-withdrawable-time.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/initiate-withdraw.d.ts +3 -3
- package/dist/symmio-contracts/symmio/actions/request-cancel-withdraw.d.ts +2 -2
- package/dist/symmio-contracts/symmio/actions/simulate-allocate.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-deallocate.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-initiate-withdraw.d.ts +4 -4
- package/dist/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.d.ts +4 -4
- package/dist/symmio-contracts/symmio/index.d.ts +40 -40
- package/dist/symmio-contracts/symmio/internal/call-as-sub-account.d.ts +1 -1
- package/dist/symmio-contracts/symmio/internal/simulate-call-as-sub-account.d.ts +2 -2
- package/dist/symmio-contracts/symmio/parts.d.ts +1 -1
- package/dist/symmio-contracts/symmio/query/allocate.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/deallocate.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/finalize-withdraw-request.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/get-fee-for-user.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-last-withdraw-request-id.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-onchain-contract-markets.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-party-a-open-positions.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-party-a-pending-quotes.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-pending-withdraw-requests.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-quote.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-withdraw-requests.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/get-withdrawable-time.d.ts +4 -4
- package/dist/symmio-contracts/symmio/query/initiate-withdraw.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/request-cancel-withdraw.d.ts +2 -2
- package/dist/symmio-contracts/symmio/query/simulate-allocate.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-deallocate.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-finalize-withdraw-request.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-initiate-withdraw.d.ts +3 -3
- package/dist/symmio-contracts/symmio/query/simulate-request-cancel-withdraw.d.ts +3 -3
- package/dist/symmio-contracts/symmio/types.d.ts +1 -1
- package/dist/symmio-contracts/symmio/types.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/types.js.map +1 -1
- package/dist/symmio-subgraph/index.d.ts +1 -1
- package/dist/symmio-subgraph/query-subgraph/index.d.ts +2 -2
- package/dist/symmio-subgraph/query-subgraph/query-subgraph.d.ts +3 -3
- package/dist/symmio-subgraph/query-subgraph/query.d.ts +4 -4
- package/dist/symmio-subgraph/types/generated/analytics/gql.d.ts +4 -4
- package/dist/symmio-subgraph/types/generated/analytics/index.d.ts +1 -1
- package/dist/symmio-subgraph/types/generated/events/gql.d.ts +1 -1
- package/dist/symmio-subgraph/types/generated/events/index.d.ts +1 -1
- package/dist/tpsl/config/get-tpsl-config.d.ts +3 -3
- package/dist/tpsl/config/index.d.ts +2 -2
- package/dist/tpsl/config/query.d.ts +4 -4
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts +37 -0
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.d.ts.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js +43 -0
- package/dist/tpsl/delete-quote-tpsl/delete-quote-tpsl.js.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/index.d.ts +3 -0
- package/dist/tpsl/delete-quote-tpsl/index.d.ts.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/query.d.ts +15 -0
- package/dist/tpsl/delete-quote-tpsl/query.d.ts.map +1 -0
- package/dist/tpsl/delete-quote-tpsl/query.js +12 -0
- package/dist/tpsl/delete-quote-tpsl/query.js.map +1 -0
- package/dist/tpsl/get-quote-tpsl/get-quote-tpsl.d.ts +4 -4
- package/dist/tpsl/get-quote-tpsl/index.d.ts +2 -2
- package/dist/tpsl/get-quote-tpsl/query.d.ts +7 -5
- package/dist/tpsl/get-quote-tpsl/query.d.ts.map +1 -1
- package/dist/tpsl/get-quote-tpsl/query.js +4 -1
- package/dist/tpsl/get-quote-tpsl/query.js.map +1 -1
- package/dist/tpsl/index.d.ts +8 -7
- package/dist/tpsl/index.d.ts.map +1 -1
- package/dist/tpsl/internal/resolve-tpsl-config.d.ts +2 -2
- package/dist/tpsl/set-quote-tpsl/build-conditional-order-leg.d.ts +1 -1
- package/dist/tpsl/set-quote-tpsl/build-conditional-order-message.d.ts +1 -1
- package/dist/tpsl/set-quote-tpsl/index.d.ts +5 -5
- package/dist/tpsl/set-quote-tpsl/query.d.ts +3 -3
- package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.d.ts +4 -4
- package/dist/tpsl/set-quote-tpsl/set-quote-tpsl.js +11 -11
- package/dist/tpsl/set-quote-tpsl/sign-tpsl-request.d.ts +2 -2
- package/dist/tpsl/signing-spec/delete-query.d.ts +12 -0
- package/dist/tpsl/signing-spec/delete-query.d.ts.map +1 -0
- package/dist/tpsl/signing-spec/delete-query.js +21 -0
- package/dist/tpsl/signing-spec/delete-query.js.map +1 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts +18 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.d.ts.map +1 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js +25 -0
- package/dist/tpsl/signing-spec/get-tpsl-delete-signing-spec.js.map +1 -0
- package/dist/tpsl/signing-spec/get-tpsl-signing-spec.d.ts +3 -3
- package/dist/tpsl/signing-spec/index.d.ts +4 -2
- package/dist/tpsl/signing-spec/index.d.ts.map +1 -1
- package/dist/tpsl/signing-spec/query.d.ts +4 -4
- package/dist/tpsl/slippage.d.ts +1 -1
- package/dist/tpsl/types/generated/tpsl-handler.js +6 -3
- package/dist/tpsl/types/generated/tpsl-handler.js.map +1 -1
- package/dist/tpsl/validate-tpsl.d.ts +2 -2
- package/dist/transfers/get-transfer-history/get-transfer-history.d.ts +3 -3
- package/dist/transfers/get-transfer-history/index.d.ts +4 -4
- package/dist/transfers/get-transfer-history/query-document.d.ts +2 -2
- package/dist/transfers/get-transfer-history/query.d.ts +4 -4
- package/dist/transfers/get-transfer-history/to-transfer-row.d.ts +2 -2
- package/dist/transfers/index.d.ts +1 -1
- package/dist/websocket/index.d.ts +3 -3
- package/dist/websocket/notifications/build-subscribe-message.d.ts +1 -1
- package/dist/websocket/notifications/index.d.ts +5 -5
- package/dist/websocket/notifications/normalize-notification.d.ts +1 -1
- package/dist/websocket/notifications/parse-notification-frame.d.ts +2 -2
- package/dist/websocket/notifications/watch-notifications.d.ts +4 -4
- package/dist/websocket/prices/index.d.ts +3 -3
- package/dist/websocket/prices/parse-price-frame.d.ts +1 -1
- package/dist/websocket/prices/watch-enigma-prices.d.ts +5 -5
- package/dist/websocket/socket/create-reconnecting-socket.d.ts +2 -2
- package/dist/websocket/socket/get-socket-pool.d.ts +2 -2
- package/dist/websocket/socket/index.d.ts +4 -4
- package/dist/websocket/socket/socket-pool.d.ts +2 -2
- package/dist/websocket/tpsl/index.d.ts +3 -3
- package/dist/websocket/tpsl/parse-tpsl-frame.d.ts +1 -1
- package/dist/websocket/tpsl/types.d.ts +1 -1
- package/dist/websocket/tpsl/watch-tpsl-notifications.d.ts +4 -4
- package/package.json +11 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-market-notional-cap.js","names":[],"sources":["../../../src/solvers/notional-cap/to-market-notional-cap.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"to-market-notional-cap.js","names":[],"sources":["../../../src/solvers/notional-cap/to-market-notional-cap.ts"],"sourcesContent":["import { toFiniteNumber } from \"@symmio/utils/number\";\nimport type { ApiNotionalCapBySymbolResponse } from \"../types/generated/enigma-solver\";\nimport type { MarketNotionalCap } from \"./types\";\n\n/**\n * Map the generated `ApiNotionalCapBySymbolResponse` into the SDK's\n * {@link MarketNotionalCap}. Missing numeric fields default to `0`; the\n * solver-reported `error` string is forwarded verbatim (or `null` when absent).\n */\nexport function toMarketNotionalCap(raw: ApiNotionalCapBySymbolResponse): MarketNotionalCap {\n const r = raw as ApiNotionalCapBySymbolResponse & Record<string, unknown>;\n return {\n symbolId: toFiniteNumber(r.symbol_id),\n symbol: typeof r.symbol === \"string\" ? r.symbol : \"\",\n totalCap: toFiniteNumber(r.total_cap),\n used: toFiniteNumber(r.used),\n availableToLong: toFiniteNumber(r.available_to_long),\n availableToShort: toFiniteNumber(r.available_to_short),\n openInterest: toFiniteNumber(r.open_interest),\n price: toFiniteNumber(r.price),\n tokenBalance: toFiniteNumber(r.token_balance),\n usdcBalance: toFiniteNumber(r.usdc_balance),\n error: typeof r.error === \"string\" && r.error.length > 0 ? r.error : null,\n };\n}\n"],"mappings":";;AASA,SAAgB,EAAoB,GAAwD;CAC1F,IAAM,IAAI;CACV,OAAO;EACL,UAAU,EAAe,EAAE,SAAS;EACpC,QAAQ,OAAO,EAAE,UAAW,WAAW,EAAE,SAAS;EAClD,UAAU,EAAe,EAAE,SAAS;EACpC,MAAM,EAAe,EAAE,IAAI;EAC3B,iBAAiB,EAAe,EAAE,iBAAiB;EACnD,kBAAkB,EAAe,EAAE,kBAAkB;EACrD,cAAc,EAAe,EAAE,aAAa;EAC5C,OAAO,EAAe,EAAE,KAAK;EAC7B,cAAc,EAAe,EAAE,aAAa;EAC5C,aAAa,EAAe,EAAE,YAAY;EAC1C,OAAO,OAAO,EAAE,SAAU,YAAY,EAAE,MAAM,SAAS,IAAI,EAAE,QAAQ;CACvE;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './resolve-mark-price';
|
|
2
|
-
export * from './resolve-market';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export * from './resolve-mark-price.js';
|
|
2
|
+
export * from './resolve-market.js';
|
|
3
|
+
export * from './types.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
import e from "axios";
|
|
2
2
|
//#region src/solvers/types/generated/enigma-solver.ts
|
|
3
|
-
var t = (t) => e.get("/contract-symbols", t), n = (t) => e.get("/error_codes", t), r = (t, n
|
|
3
|
+
var t = (t) => e.get("/contract-symbols", t), n = (t) => e.get("/error_codes", t), r = (t, n) => e.get("/estimated-price", {
|
|
4
|
+
...n,
|
|
5
|
+
params: {
|
|
6
|
+
...t,
|
|
7
|
+
...n?.params
|
|
8
|
+
}
|
|
9
|
+
}), i = (t, n) => e.get("/get_funding_info", {
|
|
10
|
+
...n,
|
|
11
|
+
params: {
|
|
12
|
+
...t,
|
|
13
|
+
...n?.params
|
|
14
|
+
}
|
|
15
|
+
}), a = (t, n, r) => e.get(`/get_locked_params/${t}`, {
|
|
4
16
|
...r,
|
|
5
17
|
params: {
|
|
6
18
|
...n,
|
|
7
19
|
...r?.params
|
|
8
20
|
}
|
|
9
|
-
}),
|
|
21
|
+
}), o = (t) => e.get("/get_market_info", t), s = (t, n) => e.get(`/instant_close/${t}`, n), c = (t, n) => e.get(`/instant_open/${t}`, n), l = (t, n) => e.get(`/instant_quote_id/${t}`, n), u = (t, n) => e.post("/instant_trade/instant_close", t, n), d = (t, n) => e.post("/instant_trade/instant_open", t, n), f = (t, n) => e.get("/notional_cap", {
|
|
10
22
|
...n,
|
|
11
23
|
params: {
|
|
12
24
|
...t,
|
|
13
25
|
...n?.params
|
|
14
26
|
}
|
|
15
|
-
}),
|
|
27
|
+
}), p = (t, n) => e.get(`/notional_cap/${t}`, n);
|
|
16
28
|
//#endregion
|
|
17
|
-
export { t as getContractSymbols, n as getErrorCodes, r as
|
|
29
|
+
export { t as getContractSymbols, n as getErrorCodes, r as getEstimatedPrice, i as getGetFundingInfo, a as getGetLockedParamsSymbol, o as getGetMarketInfo, s as getInstantCloseAccountAddress, c as getInstantOpenAccountAddress, l as getInstantQuoteIdTempQuoteId, f as getNotionalCap, p as getNotionalCapSymbolId, u as postInstantTradeInstantClose, d as postInstantTradeInstantOpen };
|
|
18
30
|
|
|
19
31
|
//# sourceMappingURL=enigma-solver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enigma-solver.js","names":[],"sources":["../../../../src/solvers/types/generated/enigma-solver.ts"],"sourcesContent":["/**\n * Generated by orval v8.14.0 🍺\n * Do not edit manually.\n * Low Cap Solver API\n * API for Low Cap Solver trading system\n * OpenAPI spec version: 1.0\n */\nimport type { AxiosRequestConfig, AxiosResponse } from \"axios\";\nimport axios from \"axios\";\n\nexport interface SymbolContractSymbol {\n asset?: string;\n funding_rate_epoch_duration?: string;\n funding_rate_window_time?: string;\n hedger_fee_close?: string;\n hedger_fee_open?: string;\n is_valid?: boolean;\n lot_size?: string;\n max_funding_rate?: string;\n max_leverage?: string;\n max_notional_value?: number;\n max_quantity?: string;\n min_acceptable_portion_lf?: string;\n min_acceptable_quote_value?: string;\n min_notional_value?: string;\n name?: string;\n price_precision?: number;\n quantity_precision?: number;\n rfq_allowed?: boolean;\n /** \"all\", \"long\", or \"short\" */\n side?: string;\n /** 0: Disabled, 1: Close only, 2: Open only, 3: Fully enabled */\n state?: number;\n symbol?: string;\n symbol_id?: number;\n /** From price service GetSymbolsInfo */\n token_address?: string;\n trading_fee?: string;\n}\n\nexport interface ApiContractSymbolsResponse {\n count?: number;\n symbols?: SymbolContractSymbol[];\n}\n\nexport type ApiCustomTableDataItem = { [key: string]: unknown };\n\nexport interface ApiCustomTableHeader {\n key?: string;\n label?: string;\n}\n\nexport interface ApiCustomTable {\n data?: ApiCustomTableDataItem[];\n headers?: ApiCustomTableHeader[];\n title?: string;\n}\n\nexport interface ApiFundingInfoResponse {\n [key: string]: {\n funding_rate_epoch_duration?: number;\n next_funding_rate_long?: string;\n next_funding_rate_short?: string;\n next_funding_time?: number;\n };\n}\n\nexport enum ApiGaslessAction {\n GaslessActionAddMargin = \"add_margin\",\n GaslessActionRemoveMargin = \"remove_margin\",\n GaslessActionDelegate = \"delegate_access_for_session_key\",\n}\nexport enum ApiGaslessRequestAction {\n add_margin = \"add_margin\",\n remove_margin = \"remove_margin\",\n delegate_access_for_session_key = \"delegate_access_for_session_key\",\n}\nexport interface Eip712AccountJSON {\n addr: string;\n isPartyB?: boolean;\n}\n\nexport interface Eip712DelegationInfoJSON {\n account: Eip712AccountJSON;\n delegatedSigner: string;\n expiryTimestamp: number;\n /** @minItems 1 */\n selectors: string[];\n}\n\nexport interface Eip712ReplayHeaderJSON {\n deadline: number;\n nonce?: number;\n salt: string;\n}\n\nexport interface Eip712SignedDelegationJSON {\n delegationInfo: Eip712DelegationInfoJSON;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n}\n\nexport interface Eip712DelegationWithSigJSON {\n signature: string;\n signedDelegation: Eip712SignedDelegationJSON;\n}\n\nexport interface Eip712FlexFieldJSON {\n authorizedFlexFiller?: string;\n length?: number;\n offset?: number;\n}\n\nexport interface Eip712SignedOperationJSON {\n callData: string;\n flexFields?: Eip712FlexFieldJSON[];\n maxUses?: number;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n signer: string;\n signerAccount: Eip712AccountJSON;\n target: string;\n}\n\nexport interface Eip712OperationWithSigJSON {\n signature: string;\n signedOperation: Eip712SignedOperationJSON;\n}\n\nexport interface ApiGaslessRequest {\n action: ApiGaslessRequestAction;\n delegation?: Eip712DelegationWithSigJSON;\n operation?: Eip712OperationWithSigJSON;\n}\n\nexport interface ApiGaslessResponse {\n action?: ApiGaslessAction;\n blockHash?: string;\n blockNumber?: number;\n dailyRemaining?: number;\n gasUsed?: number;\n partyA?: string;\n transactionHash?: string;\n}\n\nexport interface ApiGetEstimatedPriceResponse {\n price?: string;\n}\n\nexport interface ApiGetInstantCloseResponse {\n close_price?: string;\n quantity_to_close?: string;\n quote_id?: number;\n}\n\nexport interface ApiGetInstantOpenResponse {\n cva?: string;\n lf?: string;\n order_type?: number;\n partyAmm?: string;\n partyBmm?: string;\n party_a_address?: string;\n position_type?: number;\n quantity?: string;\n requested_open_price?: string;\n symbol_id?: number;\n temp_quote_id?: number;\n /** UUID is the frontend-provided UUID from the V2 sendQuote metadata */\n uuid?: string;\n}\n\nexport interface ApiGetQuoteIdResponse {\n quote_id?: number;\n}\n\nexport interface ApiQuoteInfo {\n affiliate?: string;\n avg_closed_price?: string;\n block_number?: number;\n closed_amount?: string;\n create_timestamp?: string;\n cva?: string;\n deadline?: string;\n id?: string;\n initial_cva?: string;\n initial_lf?: string;\n initial_opened_price?: string;\n initial_party_amm?: string;\n initial_party_bmm?: string;\n last_funding_payment_timestamp?: string;\n lf?: string;\n market_price?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n parent_id?: string;\n party_a?: string;\n party_amm?: string;\n party_b?: string;\n party_bmm?: string;\n position_type?: number;\n quantity?: string;\n quantity_to_close?: string;\n quote_status?: number;\n requested_close_price?: string;\n requested_open_price?: string;\n status_modify_timestamp?: string;\n symbol_id?: string;\n trading_fee?: string;\n}\n\nexport interface ApiGetQuotesResponse {\n count?: number;\n quotes?: ApiQuoteInfo[];\n}\n\nexport interface ApiPeriodStats {\n \"1h\"?: number;\n \"1w\"?: number;\n \"24h\"?: number;\n \"5m\"?: number;\n}\n\nexport interface ApiStatsMetrics {\n \"Completed Closes\"?: ApiPeriodStats;\n \"Completed Opens\"?: ApiPeriodStats;\n \"Instant Closes\"?: ApiPeriodStats;\n \"Instant Opens\"?: ApiPeriodStats;\n}\n\nexport interface ApiGetStatsResponse {\n custom_tables?: ApiCustomTable[];\n periodic_stats?: ApiStatsMetrics;\n}\n\nexport interface ApiGetTempQuoteStatusResponse {\n cva?: string;\n error_category?: string;\n /** Populated only when State is \"Failed\" or \"Cancelled\". ErrorCode mirrors\n * the synchronous /instant_trade contract; ErrorCategory is the stable\n * bucket the frontend maps to user-facing copy. See\n * docs/v2/INSTANT_TRADE_ERRORS.md. */\n error_code?: number;\n error_detail?: string;\n error_message?: string;\n lf?: string;\n margin?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n party_a_account?: string;\n party_amm?: string;\n position_type?: number;\n price?: string;\n quantity?: string;\n quote_id?: number;\n state?: string;\n sub_account?: string;\n symbol_id?: number;\n}\n\nexport interface ApiLockedParamsBySymbolIdResponse {\n cva?: string;\n leverage?: string;\n lf?: string;\n partyAmm?: string;\n partyBmm?: string;\n}\n\nexport interface ApiNotionalCapBySymbolResponse {\n available_to_long?: number;\n available_to_short?: number;\n error?: string;\n open_interest?: number;\n price?: number;\n symbol?: string;\n symbol_id?: number;\n token_balance?: number;\n total_cap?: number;\n usdc_balance?: number;\n used?: number;\n used_tokens?: number;\n}\n\nexport interface ApiNotionalCapAllSymbolsResponse {\n count?: number;\n symbols?: ApiNotionalCapBySymbolResponse[];\n total_open_interest?: number;\n total_used?: number;\n}\n\nexport interface ApiPostInstantOpenResponse {\n partyBmm?: string;\n temp_quote_id?: number;\n}\n\nexport interface ApiRevenueBySymbolItem {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbol?: string;\n symbol_id?: number;\n total_revenue?: string;\n}\n\nexport interface ApiRevenueBatchPerSymbolResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbols?: ApiRevenueBySymbolItem[];\n total_revenue?: string;\n}\n\nexport interface ApiRevenueResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n total_revenue?: string;\n}\n\nexport interface ApiV2InstantCloseRequest {\n /**\n * @minItems 1\n * @maxItems 100\n */\n operations: Eip712OperationWithSigJSON[];\n}\n\nexport interface ApiV2InstantOpenRequest {\n addMargin?: Eip712OperationWithSigJSON;\n sendQuote: Eip712OperationWithSigJSON;\n}\n\nexport enum ClientErrorCategory {\n CategoryValidation = \"validation\",\n CategoryAuthentication = \"authentication\",\n CategoryAuthorization = \"authorization\",\n CategorySlippage = \"slippage\",\n CategoryLiquidity = \"liquidity\",\n CategoryAccountState = \"account_state\",\n CategorySymbolState = \"symbol_state\",\n CategoryRateLimit = \"rate_limit\",\n CategoryTimeout = \"timeout\",\n CategoryInternal = \"internal\",\n CategoryUnavailable = \"unavailable\",\n}\nexport interface ClientErrorCodeInfo {\n category?: ClientErrorCategory;\n code?: number;\n http_status?: number;\n message?: string;\n}\n\nexport interface XfiberErrorResponse {\n code?: number;\n error_detail?: string;\n error_message?: string;\n}\n\nexport type GetErrorCodes200 = { [key: string]: string };\n\nexport type GetEstimatedPriceParams = {\n /**\n * Symbol ID\n */\n symbol_id: number;\n /**\n * Order quantity\n */\n quantity: string;\n /**\n * Position type (long/short)\n */\n position_type: string;\n /**\n * Entry type (open/close)\n */\n entry: string;\n /**\n * Price\n */\n price: string;\n};\n\nexport type GetGetFundingInfoParams = {\n /**\n * Symbol names (omit for all)\n */\n symbols?: string[];\n};\n\nexport type GetGetLockedParamsSymbolParams = {\n /**\n * Leverage\n */\n leverage: number;\n};\n\nexport type GetGetMarketInfo200 = { [key: string]: unknown };\n\nexport type GetInstantTradeEip712Config200 = { [key: string]: unknown };\n\nexport type GetNotionalCapParams = {\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetNotionalCapBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n};\n\nexport type GetQuotesParams = {\n /**\n * Symbol ID filter\n */\n symbol_id?: number;\n /**\n * Party A address filter\n */\n party_a?: string;\n /**\n * Quote status filter (1-7)\n */\n status?: number;\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetRevenueParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenuePerSymbolParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueSymbolIdParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetStatsParams = {\n /**\n * Filter response to specific stat types (periodic_stats, single_metrics, custom_tables, alerts)\n */\n include?: string[];\n};\n\n/**\n * @summary Get contract symbols\n */\nexport const getContractSymbols = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiContractSymbolsResponse>> => {\n return axios.get(`/contract-symbols`, options);\n};\n\n/**\n * @summary Get API error codes\n */\nexport const getErrorCodes = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetErrorCodes200>> => {\n return axios.get(`/error_codes`, options);\n};\n\n/**\n * Returns solver-registered error codes (>= 3000) with message, category, and http_status. Use the flat /error_codes endpoint for backward-compatible code→message lookups.\n * @summary Get detailed API error codes\n */\nexport const getErrorCodesDetailed = (options?: AxiosRequestConfig): Promise<AxiosResponse<ClientErrorCodeInfo[]>> => {\n return axios.get(`/error_codes/detailed`, options);\n};\n\n/**\n * Get estimated execution price from inventory service (dry-run mode)\n * @summary Get estimated price for order\n */\nexport const getEstimatedPrice = (\n params: GetEstimatedPriceParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetEstimatedPriceResponse>> => {\n return axios.get(`/estimated-price`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get funding info\n */\nexport const getGetFundingInfo = (\n params?: GetGetFundingInfoParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiFundingInfoResponse>> => {\n return axios.get(`/get_funding_info`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get locked params by symbol\n */\nexport const getGetLockedParamsSymbol = (\n symbol: string,\n params: GetGetLockedParamsSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiLockedParamsBySymbolIdResponse>> => {\n return axios.get(`/get_locked_params/${symbol}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns a JSON object whose keys are symbol names (dynamic — sourced from contract-symbol data) mapping to {trading_volume, lifetime_value}, plus top-level aggregate fields total_value_24h and total_lifetime_value.\n * @summary Get 24h market info\n */\nexport const getGetMarketInfo = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetGetMarketInfo200>> => {\n return axios.get(`/get_market_info`, options);\n};\n\n/**\n * Returns all pending instant close orders for a given SubAccount address.\n * @summary Get pending instant close orders\n */\nexport const getInstantCloseAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantCloseResponse[]>> => {\n return axios.get(`/instant_close/${accountAddress}`, options);\n};\n\n/**\n * Returns all pending instant open orders for a given SubAccount address.\n * @summary Get pending instant open orders\n */\nexport const getInstantOpenAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantOpenResponse[]>> => {\n return axios.get(`/instant_open/${accountAddress}`, options);\n};\n\n/**\n * @summary Get quote ID by temp ID\n */\nexport const getInstantQuoteIdTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuoteIdResponse>> => {\n return axios.get(`/instant_quote_id/${tempQuoteId}`, options);\n};\n\n/**\n * Returns the EIP-712 domain, domain separator, type hashes, and full type definitions that clients must use when constructing signatures for V2 instant open/close operations. No authentication required.\n * @summary Get V2 EIP-712 signing config\n */\nexport const getInstantTradeEip712Config = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<GetInstantTradeEip712Config200>> => {\n return axios.get(`/instant_trade/eip712-config`, options);\n};\n\n/**\n * Relay a single user-signed EIP-712 operation so the solver wallet executes it on-chain. The user pays no native gas. Identity is proven by EIP-712 signature recovery; no JWT required. Synchronous — returns the on-chain tx hash on success or a clear error on failure.\n *\n * **Supported actions** (set via the `action` field):\n * - `add_margin` — top up the allocated balance of an existing VirtualAccount via AccountLayer.addMargin. The signer must own the VA (its parent SubAccount must equal the signer's SubAccount). Requires `operation`.\n * - `remove_margin` — withdraw allocated margin from an existing VirtualAccount via AccountLayer.removeMargin. Requires `operation`.\n * - `delegate_access_for_session_key` — grant a delegate signer access for one or more allowlisted selectors via InstantLayer.grantBatchDelegationBySig. Requires `delegation`.\n *\n * Exactly one of `operation` or `delegation` must be present per request. Delegation selectors are restricted to: `sendQuoteWithAffiliateAndData`, `requestToClosePosition`, `addMarginToNextVA`, `addMargin`, `removeMargin`, `allocate`, `deallocate`, `safeDeallocate`, `initiateWithdraw`, `finalizeWithdrawRequest`, `requestCancelWithdraw`.\n *\n * Each PartyA is limited to `GASLESS_DAILY_MAX` accepted attempts per UTC day (default 5). The counter is consumed on every attempt past basic validation, regardless of downstream success or failure; the `dailyRemaining` field in the response reports the user's remaining quota.\n * @summary Submit a gasless operation\n */\nexport const postInstantTradeExecuteOperation = (\n apiGaslessRequest: ApiGaslessRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGaslessResponse>> => {\n return axios.post(`/instant_trade/execute-operation`, apiGaslessRequest, options);\n};\n\n/**\n * Submit one or more V2 close operations (requestToClosePosition), one per quote. No JWT required — identity is proven by EIP-712 signature recovery. On any failure the whole request is rejected. Processing happens asynchronously.\n * @summary Submit V2 instant close\n */\nexport const postInstantTradeInstantClose = (\n apiV2InstantCloseRequest: ApiV2InstantCloseRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<void>> => {\n return axios.post(`/instant_trade/instant_close`, apiV2InstantCloseRequest, options);\n};\n\n/**\n * Submit a V2 instant open request with pre-signed EIP-712 PartyA operations (addMargin + sendQuote). No JWT required — identity is proven by EIP-712 signature recovery. Processing (hedge, muon sigs, symmio-api call) happens asynchronously.\n * @summary Submit V2 instant open\n */\nexport const postInstantTradeInstantOpen = (\n apiV2InstantOpenRequest: ApiV2InstantOpenRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiPostInstantOpenResponse>> => {\n return axios.post(`/instant_trade/instant_open`, apiV2InstantOpenRequest, options);\n};\n\n/**\n * @summary Get notional caps for all symbols\n */\nexport const getNotionalCap = (\n params?: GetNotionalCapParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional caps for multiple symbols\n */\nexport const getNotionalCapBatch = (\n params: GetNotionalCapBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional cap by symbol\n */\nexport const getNotionalCapSymbolId = (\n symbolId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapBySymbolResponse>> => {\n return axios.get(`/notional_cap/${symbolId}`, options);\n};\n\n/**\n * Get quotes from the event listener database with optional filters\n * @summary Get quotes from event listener\n */\nexport const getQuotes = (\n params?: GetQuotesParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuotesResponse>> => {\n return axios.get(`/quotes`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue. Filterable by time_range or custom start/end timestamps.\n * @summary Get aggregated revenue for all symbols\n */\nexport const getRevenue = (\n params?: GetRevenueParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for a set of symbols. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue for multiple symbols\n */\nexport const getRevenueBatch = (\n params: GetRevenueBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns aggregated revenue totals AND a per-symbol breakdown for the requested symbol_ids. Each item in `symbols` carries symbol_id, symbol name, and the same revenue dimensions returned at the top level. Symbols with no rows in the filter window are omitted; entries follow the request's symbol_ids order. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue plus per-symbol breakdown\n */\nexport const getRevenuePerSymbol = (\n params: GetRevenuePerSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueBatchPerSymbolResponse>> => {\n return axios.get(`/revenue/per-symbol`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for one symbol. Filterable by time_range or custom timestamps.\n * @summary Get aggregated revenue for a specific symbol\n */\nexport const getRevenueSymbolId = (\n symbolId: number,\n params?: GetRevenueSymbolIdParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/${symbolId}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Get instant trading statistics for different time periods (5m, 1h, 24h, 1w) grouped by metric type\n * @summary Get trading statistics\n */\nexport const getStats = (\n params?: GetStatsParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetStatsResponse>> => {\n return axios.get(`/stats`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get temp quote status\n */\nexport const getTempQuoteStatusTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetTempQuoteStatusResponse>> => {\n return axios.get(`/temp_quote_status/${tempQuoteId}`, options);\n};\n\nexport type GetContractSymbolsResult = AxiosResponse<ApiContractSymbolsResponse>;\nexport type GetErrorCodesResult = AxiosResponse<GetErrorCodes200>;\nexport type GetErrorCodesDetailedResult = AxiosResponse<ClientErrorCodeInfo[]>;\nexport type GetEstimatedPriceResult = AxiosResponse<ApiGetEstimatedPriceResponse>;\nexport type GetGetFundingInfoResult = AxiosResponse<ApiFundingInfoResponse>;\nexport type GetGetLockedParamsSymbolResult = AxiosResponse<ApiLockedParamsBySymbolIdResponse>;\nexport type GetGetMarketInfoResult = AxiosResponse<GetGetMarketInfo200>;\nexport type GetInstantCloseAccountAddressResult = AxiosResponse<ApiGetInstantCloseResponse[]>;\nexport type GetInstantOpenAccountAddressResult = AxiosResponse<ApiGetInstantOpenResponse[]>;\nexport type GetInstantQuoteIdTempQuoteIdResult = AxiosResponse<ApiGetQuoteIdResponse>;\nexport type GetInstantTradeEip712ConfigResult = AxiosResponse<GetInstantTradeEip712Config200>;\nexport type PostInstantTradeExecuteOperationResult = AxiosResponse<ApiGaslessResponse>;\nexport type PostInstantTradeInstantCloseResult = AxiosResponse<void>;\nexport type PostInstantTradeInstantOpenResult = AxiosResponse<ApiPostInstantOpenResponse>;\nexport type GetNotionalCapResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapBatchResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapSymbolIdResult = AxiosResponse<ApiNotionalCapBySymbolResponse>;\nexport type GetQuotesResult = AxiosResponse<ApiGetQuotesResponse>;\nexport type GetRevenueResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenueBatchResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenuePerSymbolResult = AxiosResponse<ApiRevenueBatchPerSymbolResponse>;\nexport type GetRevenueSymbolIdResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetStatsResult = AxiosResponse<ApiGetStatsResponse>;\nexport type GetTempQuoteStatusTempQuoteIdResult = AxiosResponse<ApiGetTempQuoteStatusResponse>;\n"],"mappings":";;AAuhBA,IAAa,KACX,MAEO,EAAM,IAAI,qBAAqB,CAAO,GAMlC,KAAiB,MACrB,EAAM,IAAI,gBAAgB,CAAO,GAyC7B,KACX,GACA,GACA,MAEO,EAAM,IAAI,sBAAsB,KAAU;CAC/C,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAeU,KACX,GACA,MAEO,EAAM,IAAI,kBAAkB,KAAkB,CAAO,GAOjD,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAkB,CAAO,GAMhD,KACX,GACA,MAEO,EAAM,IAAI,qBAAqB,KAAe,CAAO,GAqCjD,KACX,GACA,MAEO,EAAM,KAAK,gCAAgC,GAA0B,CAAO,GAOxE,KACX,GACA,MAEO,EAAM,KAAK,+BAA+B,GAAyB,CAAO,GAMtE,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB;CAChC,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAmBU,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAY,CAAO"}
|
|
1
|
+
{"version":3,"file":"enigma-solver.js","names":[],"sources":["../../../../src/solvers/types/generated/enigma-solver.ts"],"sourcesContent":["/**\n * Generated by orval v8.14.0 🍺\n * Do not edit manually.\n * Low Cap Solver API\n * API for Low Cap Solver trading system\n * OpenAPI spec version: 1.0\n */\nimport type { AxiosRequestConfig, AxiosResponse } from \"axios\";\nimport axios from \"axios\";\n\nexport interface SymbolContractSymbol {\n asset?: string;\n funding_rate_epoch_duration?: string;\n funding_rate_window_time?: string;\n hedger_fee_close?: string;\n hedger_fee_open?: string;\n is_valid?: boolean;\n lot_size?: string;\n max_funding_rate?: string;\n max_leverage?: string;\n max_notional_value?: number;\n max_quantity?: string;\n min_acceptable_portion_lf?: string;\n min_acceptable_quote_value?: string;\n min_notional_value?: string;\n name?: string;\n price_precision?: number;\n quantity_precision?: number;\n rfq_allowed?: boolean;\n /** \"all\", \"long\", or \"short\" */\n side?: string;\n /** 0: Disabled, 1: Close only, 2: Open only, 3: Fully enabled */\n state?: number;\n symbol?: string;\n symbol_id?: number;\n /** From price service GetSymbolsInfo */\n token_address?: string;\n trading_fee?: string;\n}\n\nexport interface ApiContractSymbolsResponse {\n count?: number;\n symbols?: SymbolContractSymbol[];\n}\n\nexport type ApiCustomTableDataItem = { [key: string]: unknown };\n\nexport interface ApiCustomTableHeader {\n key?: string;\n label?: string;\n}\n\nexport interface ApiCustomTable {\n data?: ApiCustomTableDataItem[];\n headers?: ApiCustomTableHeader[];\n title?: string;\n}\n\nexport interface ApiFundingInfoResponse {\n [key: string]: {\n funding_rate_epoch_duration?: number;\n next_funding_rate_long?: string;\n next_funding_rate_short?: string;\n next_funding_time?: number;\n };\n}\n\nexport enum ApiGaslessAction {\n GaslessActionAddMargin = \"add_margin\",\n GaslessActionRemoveMargin = \"remove_margin\",\n GaslessActionDelegate = \"delegate_access_for_session_key\",\n}\nexport enum ApiGaslessRequestAction {\n add_margin = \"add_margin\",\n remove_margin = \"remove_margin\",\n delegate_access_for_session_key = \"delegate_access_for_session_key\",\n}\nexport interface Eip712AccountJSON {\n addr: string;\n isPartyB?: boolean;\n}\n\nexport interface Eip712DelegationInfoJSON {\n account: Eip712AccountJSON;\n delegatedSigner: string;\n expiryTimestamp: number;\n /** @minItems 1 */\n selectors: string[];\n}\n\nexport interface Eip712ReplayHeaderJSON {\n deadline: number;\n nonce?: number;\n salt: string;\n}\n\nexport interface Eip712SignedDelegationJSON {\n delegationInfo: Eip712DelegationInfoJSON;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n}\n\nexport interface Eip712DelegationWithSigJSON {\n signature: string;\n signedDelegation: Eip712SignedDelegationJSON;\n}\n\nexport interface Eip712FlexFieldJSON {\n authorizedFlexFiller?: string;\n length?: number;\n offset?: number;\n}\n\nexport interface Eip712SignedOperationJSON {\n callData: string;\n flexFields?: Eip712FlexFieldJSON[];\n maxUses?: number;\n replayAttackHeader: Eip712ReplayHeaderJSON;\n signer: string;\n signerAccount: Eip712AccountJSON;\n target: string;\n}\n\nexport interface Eip712OperationWithSigJSON {\n signature: string;\n signedOperation: Eip712SignedOperationJSON;\n}\n\nexport interface ApiGaslessRequest {\n action: ApiGaslessRequestAction;\n delegation?: Eip712DelegationWithSigJSON;\n operation?: Eip712OperationWithSigJSON;\n}\n\nexport interface ApiGaslessResponse {\n action?: ApiGaslessAction;\n blockHash?: string;\n blockNumber?: number;\n dailyRemaining?: number;\n gasUsed?: number;\n partyA?: string;\n transactionHash?: string;\n}\n\nexport interface ApiGetEstimatedPriceResponse {\n price?: string;\n}\n\nexport interface ApiGetInstantCloseResponse {\n close_price?: string;\n quantity_to_close?: string;\n quote_id?: number;\n}\n\nexport interface ApiGetInstantOpenResponse {\n cva?: string;\n lf?: string;\n order_type?: number;\n partyAmm?: string;\n partyBmm?: string;\n party_a_address?: string;\n position_type?: number;\n quantity?: string;\n requested_open_price?: string;\n symbol_id?: number;\n temp_quote_id?: number;\n /** UUID is the frontend-provided UUID from the V2 sendQuote metadata */\n uuid?: string;\n}\n\nexport interface ApiGetQuoteIdResponse {\n quote_id?: number;\n}\n\nexport interface ApiQuoteInfo {\n affiliate?: string;\n avg_closed_price?: string;\n block_number?: number;\n closed_amount?: string;\n create_timestamp?: string;\n cva?: string;\n deadline?: string;\n id?: string;\n initial_cva?: string;\n initial_lf?: string;\n initial_opened_price?: string;\n initial_party_amm?: string;\n initial_party_bmm?: string;\n last_funding_payment_timestamp?: string;\n lf?: string;\n market_price?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n parent_id?: string;\n party_a?: string;\n party_amm?: string;\n party_b?: string;\n party_bmm?: string;\n position_type?: number;\n quantity?: string;\n quantity_to_close?: string;\n quote_status?: number;\n requested_close_price?: string;\n requested_open_price?: string;\n status_modify_timestamp?: string;\n symbol_id?: string;\n trading_fee?: string;\n}\n\nexport interface ApiGetQuotesResponse {\n count?: number;\n quotes?: ApiQuoteInfo[];\n}\n\nexport interface ApiPeriodStats {\n \"1h\"?: number;\n \"1w\"?: number;\n \"24h\"?: number;\n \"5m\"?: number;\n}\n\nexport interface ApiStatsMetrics {\n \"Completed Closes\"?: ApiPeriodStats;\n \"Completed Opens\"?: ApiPeriodStats;\n \"Instant Closes\"?: ApiPeriodStats;\n \"Instant Opens\"?: ApiPeriodStats;\n}\n\nexport interface ApiGetStatsResponse {\n custom_tables?: ApiCustomTable[];\n periodic_stats?: ApiStatsMetrics;\n}\n\nexport interface ApiGetTempQuoteStatusResponse {\n cva?: string;\n error_category?: string;\n /** Populated only when State is \"Failed\" or \"Cancelled\". ErrorCode mirrors\n * the synchronous /instant_trade contract; ErrorCategory is the stable\n * bucket the frontend maps to user-facing copy. See\n * docs/v2/INSTANT_TRADE_ERRORS.md. */\n error_code?: number;\n error_detail?: string;\n error_message?: string;\n lf?: string;\n margin?: string;\n max_funding_rate?: string;\n opened_price?: string;\n order_type?: number;\n party_a_account?: string;\n party_amm?: string;\n position_type?: number;\n price?: string;\n quantity?: string;\n quote_id?: number;\n state?: string;\n sub_account?: string;\n symbol_id?: number;\n}\n\nexport interface ApiLockedParamsBySymbolIdResponse {\n cva?: string;\n leverage?: string;\n lf?: string;\n partyAmm?: string;\n partyBmm?: string;\n}\n\nexport interface ApiNotionalCapBySymbolResponse {\n available_to_long?: number;\n available_to_short?: number;\n error?: string;\n open_interest?: number;\n price?: number;\n symbol?: string;\n symbol_id?: number;\n token_balance?: number;\n total_cap?: number;\n usdc_balance?: number;\n used?: number;\n used_tokens?: number;\n}\n\nexport interface ApiNotionalCapAllSymbolsResponse {\n count?: number;\n symbols?: ApiNotionalCapBySymbolResponse[];\n total_open_interest?: number;\n total_used?: number;\n}\n\nexport interface ApiPostInstantOpenResponse {\n partyBmm?: string;\n temp_quote_id?: number;\n}\n\nexport interface ApiRevenueBySymbolItem {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbol?: string;\n symbol_id?: number;\n total_revenue?: string;\n}\n\nexport interface ApiRevenueBatchPerSymbolResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n symbols?: ApiRevenueBySymbolItem[];\n total_revenue?: string;\n}\n\nexport interface ApiRevenueResponse {\n funding_revenue?: string;\n hedger_fee_revenue?: string;\n record_count?: number;\n total_revenue?: string;\n}\n\nexport interface ApiV2InstantCloseRequest {\n /**\n * @minItems 1\n * @maxItems 100\n */\n operations: Eip712OperationWithSigJSON[];\n}\n\nexport interface ApiV2InstantOpenRequest {\n addMargin?: Eip712OperationWithSigJSON;\n sendQuote: Eip712OperationWithSigJSON;\n}\n\nexport enum ClientErrorCategory {\n CategoryValidation = \"validation\",\n CategoryAuthentication = \"authentication\",\n CategoryAuthorization = \"authorization\",\n CategorySlippage = \"slippage\",\n CategoryLiquidity = \"liquidity\",\n CategoryAccountState = \"account_state\",\n CategorySymbolState = \"symbol_state\",\n CategoryRateLimit = \"rate_limit\",\n CategoryTimeout = \"timeout\",\n CategoryInternal = \"internal\",\n CategoryUnavailable = \"unavailable\",\n}\nexport interface ClientErrorCodeInfo {\n category?: ClientErrorCategory;\n code?: number;\n http_status?: number;\n message?: string;\n}\n\nexport interface XfiberErrorResponse {\n code?: number;\n error_detail?: string;\n error_message?: string;\n}\n\nexport type GetErrorCodes200 = { [key: string]: string };\n\nexport type GetEstimatedPriceParams = {\n /**\n * Symbol ID\n */\n symbol_id: number;\n /**\n * Order quantity\n */\n quantity: string;\n /**\n * Position type (long/short)\n */\n position_type: string;\n /**\n * Entry type (open/close)\n */\n entry: string;\n /**\n * Price\n */\n price: string;\n};\n\nexport type GetGetFundingInfoParams = {\n /**\n * Symbol names (omit for all)\n */\n symbols?: string[];\n};\n\nexport type GetGetLockedParamsSymbolParams = {\n /**\n * Leverage\n */\n leverage: number;\n};\n\nexport type GetGetMarketInfo200 = { [key: string]: unknown };\n\nexport type GetInstantTradeEip712Config200 = { [key: string]: unknown };\n\nexport type GetNotionalCapParams = {\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetNotionalCapBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n};\n\nexport type GetQuotesParams = {\n /**\n * Symbol ID filter\n */\n symbol_id?: number;\n /**\n * Party A address filter\n */\n party_a?: string;\n /**\n * Quote status filter (1-7)\n */\n status?: number;\n /**\n * Limit results (max 500, default 100)\n */\n limit?: number;\n /**\n * Offset for pagination (default 0)\n */\n offset?: number;\n};\n\nexport type GetRevenueParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueBatchParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenuePerSymbolParams = {\n /**\n * Symbol IDs (max 100)\n */\n symbol_ids: number[];\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetRevenueSymbolIdParams = {\n /**\n * Preset range (1h, 24h, 7d, 30d, lifetime)\n */\n time_range?: string;\n /**\n * Revenue type filter (HedgerFee, FundingRate)\n */\n type?: string;\n /**\n * Unix timestamp start (overrides time_range)\n */\n start_time?: number;\n /**\n * Unix timestamp end\n */\n end_time?: number;\n};\n\nexport type GetStatsParams = {\n /**\n * Filter response to specific stat types (periodic_stats, single_metrics, custom_tables, alerts)\n */\n include?: string[];\n};\n\n/**\n * @summary Get contract symbols\n */\nexport const getContractSymbols = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiContractSymbolsResponse>> => {\n return axios.get(`/contract-symbols`, options);\n};\n\n/**\n * @summary Get API error codes\n */\nexport const getErrorCodes = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetErrorCodes200>> => {\n return axios.get(`/error_codes`, options);\n};\n\n/**\n * Returns solver-registered error codes (>= 3000) with message, category, and http_status. Use the flat /error_codes endpoint for backward-compatible code→message lookups.\n * @summary Get detailed API error codes\n */\nexport const getErrorCodesDetailed = (options?: AxiosRequestConfig): Promise<AxiosResponse<ClientErrorCodeInfo[]>> => {\n return axios.get(`/error_codes/detailed`, options);\n};\n\n/**\n * Get estimated execution price from inventory service (dry-run mode)\n * @summary Get estimated price for order\n */\nexport const getEstimatedPrice = (\n params: GetEstimatedPriceParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetEstimatedPriceResponse>> => {\n return axios.get(`/estimated-price`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get funding info\n */\nexport const getGetFundingInfo = (\n params?: GetGetFundingInfoParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiFundingInfoResponse>> => {\n return axios.get(`/get_funding_info`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get locked params by symbol\n */\nexport const getGetLockedParamsSymbol = (\n symbol: string,\n params: GetGetLockedParamsSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiLockedParamsBySymbolIdResponse>> => {\n return axios.get(`/get_locked_params/${symbol}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns a JSON object whose keys are symbol names (dynamic — sourced from contract-symbol data) mapping to {trading_volume, lifetime_value}, plus top-level aggregate fields total_value_24h and total_lifetime_value.\n * @summary Get 24h market info\n */\nexport const getGetMarketInfo = (options?: AxiosRequestConfig): Promise<AxiosResponse<GetGetMarketInfo200>> => {\n return axios.get(`/get_market_info`, options);\n};\n\n/**\n * Returns all pending instant close orders for a given SubAccount address.\n * @summary Get pending instant close orders\n */\nexport const getInstantCloseAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantCloseResponse[]>> => {\n return axios.get(`/instant_close/${accountAddress}`, options);\n};\n\n/**\n * Returns all pending instant open orders for a given SubAccount address.\n * @summary Get pending instant open orders\n */\nexport const getInstantOpenAccountAddress = (\n accountAddress: string,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetInstantOpenResponse[]>> => {\n return axios.get(`/instant_open/${accountAddress}`, options);\n};\n\n/**\n * @summary Get quote ID by temp ID\n */\nexport const getInstantQuoteIdTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuoteIdResponse>> => {\n return axios.get(`/instant_quote_id/${tempQuoteId}`, options);\n};\n\n/**\n * Returns the EIP-712 domain, domain separator, type hashes, and full type definitions that clients must use when constructing signatures for V2 instant open/close operations. No authentication required.\n * @summary Get V2 EIP-712 signing config\n */\nexport const getInstantTradeEip712Config = (\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<GetInstantTradeEip712Config200>> => {\n return axios.get(`/instant_trade/eip712-config`, options);\n};\n\n/**\n * Relay a single user-signed EIP-712 operation so the solver wallet executes it on-chain. The user pays no native gas. Identity is proven by EIP-712 signature recovery; no JWT required. Synchronous — returns the on-chain tx hash on success or a clear error on failure.\n *\n * **Supported actions** (set via the `action` field):\n * - `add_margin` — top up the allocated balance of an existing VirtualAccount via AccountLayer.addMargin. The signer must own the VA (its parent SubAccount must equal the signer's SubAccount). Requires `operation`.\n * - `remove_margin` — withdraw allocated margin from an existing VirtualAccount via AccountLayer.removeMargin. Requires `operation`.\n * - `delegate_access_for_session_key` — grant a delegate signer access for one or more allowlisted selectors via InstantLayer.grantBatchDelegationBySig. Requires `delegation`.\n *\n * Exactly one of `operation` or `delegation` must be present per request. Delegation selectors are restricted to: `sendQuoteWithAffiliateAndData`, `requestToClosePosition`, `addMarginToNextVA`, `addMargin`, `removeMargin`, `allocate`, `deallocate`, `safeDeallocate`, `initiateWithdraw`, `finalizeWithdrawRequest`, `requestCancelWithdraw`.\n *\n * Each PartyA is limited to `GASLESS_DAILY_MAX` accepted attempts per UTC day (default 5). The counter is consumed on every attempt past basic validation, regardless of downstream success or failure; the `dailyRemaining` field in the response reports the user's remaining quota.\n * @summary Submit a gasless operation\n */\nexport const postInstantTradeExecuteOperation = (\n apiGaslessRequest: ApiGaslessRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGaslessResponse>> => {\n return axios.post(`/instant_trade/execute-operation`, apiGaslessRequest, options);\n};\n\n/**\n * Submit one or more V2 close operations (requestToClosePosition), one per quote. No JWT required — identity is proven by EIP-712 signature recovery. On any failure the whole request is rejected. Processing happens asynchronously.\n * @summary Submit V2 instant close\n */\nexport const postInstantTradeInstantClose = (\n apiV2InstantCloseRequest: ApiV2InstantCloseRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<void>> => {\n return axios.post(`/instant_trade/instant_close`, apiV2InstantCloseRequest, options);\n};\n\n/**\n * Submit a V2 instant open request with pre-signed EIP-712 PartyA operations (addMargin + sendQuote). No JWT required — identity is proven by EIP-712 signature recovery. Processing (hedge, muon sigs, symmio-api call) happens asynchronously.\n * @summary Submit V2 instant open\n */\nexport const postInstantTradeInstantOpen = (\n apiV2InstantOpenRequest: ApiV2InstantOpenRequest,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiPostInstantOpenResponse>> => {\n return axios.post(`/instant_trade/instant_open`, apiV2InstantOpenRequest, options);\n};\n\n/**\n * @summary Get notional caps for all symbols\n */\nexport const getNotionalCap = (\n params?: GetNotionalCapParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional caps for multiple symbols\n */\nexport const getNotionalCapBatch = (\n params: GetNotionalCapBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapAllSymbolsResponse>> => {\n return axios.get(`/notional_cap/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get notional cap by symbol\n */\nexport const getNotionalCapSymbolId = (\n symbolId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiNotionalCapBySymbolResponse>> => {\n return axios.get(`/notional_cap/${symbolId}`, options);\n};\n\n/**\n * Get quotes from the event listener database with optional filters\n * @summary Get quotes from event listener\n */\nexport const getQuotes = (\n params?: GetQuotesParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetQuotesResponse>> => {\n return axios.get(`/quotes`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue. Filterable by time_range or custom start/end timestamps.\n * @summary Get aggregated revenue for all symbols\n */\nexport const getRevenue = (\n params?: GetRevenueParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for a set of symbols. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue for multiple symbols\n */\nexport const getRevenueBatch = (\n params: GetRevenueBatchParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/batch`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns aggregated revenue totals AND a per-symbol breakdown for the requested symbol_ids. Each item in `symbols` carries symbol_id, symbol name, and the same revenue dimensions returned at the top level. Symbols with no rows in the filter window are omitted; entries follow the request's symbol_ids order. Pass symbol_ids as a comma-separated list or repeated query params (max 100).\n * @summary Get aggregated revenue plus per-symbol breakdown\n */\nexport const getRevenuePerSymbol = (\n params: GetRevenuePerSymbolParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueBatchPerSymbolResponse>> => {\n return axios.get(`/revenue/per-symbol`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Returns total, hedger-fee, and funding-rate revenue for one symbol. Filterable by time_range or custom timestamps.\n * @summary Get aggregated revenue for a specific symbol\n */\nexport const getRevenueSymbolId = (\n symbolId: number,\n params?: GetRevenueSymbolIdParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiRevenueResponse>> => {\n return axios.get(`/revenue/${symbolId}`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * Get instant trading statistics for different time periods (5m, 1h, 24h, 1w) grouped by metric type\n * @summary Get trading statistics\n */\nexport const getStats = (\n params?: GetStatsParams,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetStatsResponse>> => {\n return axios.get(`/stats`, {\n ...options,\n params: { ...params, ...options?.params },\n });\n};\n\n/**\n * @summary Get temp quote status\n */\nexport const getTempQuoteStatusTempQuoteId = (\n tempQuoteId: number,\n options?: AxiosRequestConfig,\n): Promise<AxiosResponse<ApiGetTempQuoteStatusResponse>> => {\n return axios.get(`/temp_quote_status/${tempQuoteId}`, options);\n};\n\nexport type GetContractSymbolsResult = AxiosResponse<ApiContractSymbolsResponse>;\nexport type GetErrorCodesResult = AxiosResponse<GetErrorCodes200>;\nexport type GetErrorCodesDetailedResult = AxiosResponse<ClientErrorCodeInfo[]>;\nexport type GetEstimatedPriceResult = AxiosResponse<ApiGetEstimatedPriceResponse>;\nexport type GetGetFundingInfoResult = AxiosResponse<ApiFundingInfoResponse>;\nexport type GetGetLockedParamsSymbolResult = AxiosResponse<ApiLockedParamsBySymbolIdResponse>;\nexport type GetGetMarketInfoResult = AxiosResponse<GetGetMarketInfo200>;\nexport type GetInstantCloseAccountAddressResult = AxiosResponse<ApiGetInstantCloseResponse[]>;\nexport type GetInstantOpenAccountAddressResult = AxiosResponse<ApiGetInstantOpenResponse[]>;\nexport type GetInstantQuoteIdTempQuoteIdResult = AxiosResponse<ApiGetQuoteIdResponse>;\nexport type GetInstantTradeEip712ConfigResult = AxiosResponse<GetInstantTradeEip712Config200>;\nexport type PostInstantTradeExecuteOperationResult = AxiosResponse<ApiGaslessResponse>;\nexport type PostInstantTradeInstantCloseResult = AxiosResponse<void>;\nexport type PostInstantTradeInstantOpenResult = AxiosResponse<ApiPostInstantOpenResponse>;\nexport type GetNotionalCapResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapBatchResult = AxiosResponse<ApiNotionalCapAllSymbolsResponse>;\nexport type GetNotionalCapSymbolIdResult = AxiosResponse<ApiNotionalCapBySymbolResponse>;\nexport type GetQuotesResult = AxiosResponse<ApiGetQuotesResponse>;\nexport type GetRevenueResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenueBatchResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetRevenuePerSymbolResult = AxiosResponse<ApiRevenueBatchPerSymbolResponse>;\nexport type GetRevenueSymbolIdResult = AxiosResponse<ApiRevenueResponse>;\nexport type GetStatsResult = AxiosResponse<ApiGetStatsResponse>;\nexport type GetTempQuoteStatusTempQuoteIdResult = AxiosResponse<ApiGetTempQuoteStatusResponse>;\n"],"mappings":";;AAuhBA,IAAa,KACX,MAEO,EAAM,IAAI,qBAAqB,CAAO,GAMlC,KAAiB,MACrB,EAAM,IAAI,gBAAgB,CAAO,GAe7B,KACX,GACA,MAEO,EAAM,IAAI,oBAAoB;CACnC,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAMU,KACX,GACA,MAEO,EAAM,IAAI,qBAAqB;CACpC,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAMU,KACX,GACA,GACA,MAEO,EAAM,IAAI,sBAAsB,KAAU;CAC/C,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAOU,KAAoB,MACxB,EAAM,IAAI,oBAAoB,CAAO,GAOjC,KACX,GACA,MAEO,EAAM,IAAI,kBAAkB,KAAkB,CAAO,GAOjD,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAkB,CAAO,GAMhD,KACX,GACA,MAEO,EAAM,IAAI,qBAAqB,KAAe,CAAO,GAqCjD,KACX,GACA,MAEO,EAAM,KAAK,gCAAgC,GAA0B,CAAO,GAOxE,KACX,GACA,MAEO,EAAM,KAAK,+BAA+B,GAAyB,CAAO,GAMtE,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB;CAChC,GAAG;CACH,QAAQ;EAAE,GAAG;EAAQ,GAAG,GAAS;CAAO;AAC1C,CAAC,GAmBU,KACX,GACA,MAEO,EAAM,IAAI,iBAAiB,KAAY,CAAO"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* version today). When a second version is added, route the public re-exports
|
|
4
4
|
* here so consumers keep importing from `@symmio/trading-core/abi`.
|
|
5
5
|
*/
|
|
6
|
-
export { accountLayerAbi } from './v0.8.5/account-layer';
|
|
7
|
-
export { instantLayerAbi } from './v0.8.5/instant-layer';
|
|
8
|
-
export { symmioAbi } from './v0.8.5/symmio';
|
|
6
|
+
export { accountLayerAbi } from './v0.8.5/account-layer.js';
|
|
7
|
+
export { instantLayerAbi } from './v0.8.5/instant-layer.js';
|
|
8
|
+
export { symmioAbi } from './v0.8.5/symmio.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { accountLayerAbi } from './account-layer';
|
|
2
|
-
export { instantLayerAbi } from './instant-layer';
|
|
3
|
-
export { symmioAbi } from './symmio';
|
|
1
|
+
export { accountLayerAbi } from './account-layer.js';
|
|
2
|
+
export { instantLayerAbi } from './instant-layer.js';
|
|
3
|
+
export { symmioAbi } from './symmio.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, WriteContractParameter } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link addMargin}.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, WriteContractParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { SubAccountCreationData } from '../types';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { SubAccountCreationData } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link createSubAccounts}.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, WriteContractParameter } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link deleteSubAccount}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, WriteContractParameter } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link depositAndAllocateForAccount}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, WriteContractParameter } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link depositForAccount}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, WriteContractParameter } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link editAccountName}.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
4
|
-
import { AccountBalanceInfo } from '../types';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
|
+
import { AccountBalanceInfo } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link getAccountBalanceInfo}.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link getAccountBalanceOf}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link getSubAccountVirtualNonce}.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
4
|
-
import { SubAccountDetail } from '../types';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
|
+
import { SubAccountDetail } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link getSubAccount}.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link getSubAccountsCountOfUser}.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link getUserSubAccountsAddresses}.
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@ export type GetUserSubAccountsAddressesParameters = Compute<ChainIdParameter & {
|
|
|
13
13
|
*/
|
|
14
14
|
offset?: bigint;
|
|
15
15
|
/**
|
|
16
|
-
* Pagination limit, in subaccounts. The default matches the value the
|
|
16
|
+
* Pagination limit, in subaccounts. The default matches the value the SYMMIO
|
|
17
17
|
* Explorer Inspector page uses.
|
|
18
18
|
* @default 200n
|
|
19
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-sub-accounts-addresses.js","names":[],"sources":["../../../../src/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../../shared/types/properties\";\nimport { accountLayerAbi } from \"../../abi/v0.8.5/account-layer\";\n\n/**\n * Parameters for {@link getUserSubAccountsAddresses}.\n */\nexport type GetUserSubAccountsAddressesParameters = Compute<\n ChainIdParameter & {\n /** EOA whose subaccount addresses to list. */\n user: Address;\n /**\n * Pagination offset, in subaccounts.\n * @default 0n\n */\n offset?: bigint;\n /**\n * Pagination limit, in subaccounts. The default matches the value the
|
|
1
|
+
{"version":3,"file":"get-user-sub-accounts-addresses.js","names":[],"sources":["../../../../src/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../../shared/types/properties\";\nimport { accountLayerAbi } from \"../../abi/v0.8.5/account-layer\";\n\n/**\n * Parameters for {@link getUserSubAccountsAddresses}.\n */\nexport type GetUserSubAccountsAddressesParameters = Compute<\n ChainIdParameter & {\n /** EOA whose subaccount addresses to list. */\n user: Address;\n /**\n * Pagination offset, in subaccounts.\n * @default 0n\n */\n offset?: bigint;\n /**\n * Pagination limit, in subaccounts. The default matches the value the SYMMIO\n * Explorer Inspector page uses.\n * @default 200n\n */\n limit?: bigint;\n }\n>;\n\n/** Return type of {@link getUserSubAccountsAddresses}. */\nexport type GetUserSubAccountsAddressesReturnType = readonly Address[];\n\n/**\n * Read the addresses of all SYMMIO subaccounts owned by `user`. A lighter\n * alternative to {@link getUserSubAccounts} when only the addresses are needed.\n *\n * Resolves the viem client and `AccountLayer` address from `config` for the\n * given chain (or the config's default chain when `chainId` is omitted).\n *\n * @param config - The SDK config.\n * @param parameters - User address, optional pagination, optional chain id.\n * @returns The user's subaccount addresses.\n * @throws {SymmError} when the chain is not supported.\n * @throws Viem's `ContractFunctionExecutionError` and friends for on-chain failures.\n *\n * @example\n * ```ts\n * const addresses = await getUserSubAccountsAddresses(config, { user: \"0xabc…\", limit: 100n });\n * ```\n */\nexport async function getUserSubAccountsAddresses(\n config: Config,\n parameters: GetUserSubAccountsAddressesParameters,\n): Promise<GetUserSubAccountsAddressesReturnType> {\n const { chainId, user, offset = 0n, limit = 200n } = parameters;\n\n const { addresses } = config.getChainConfig(chainId);\n const client = config.getClient({ chainId });\n\n return client.readContract({\n address: addresses.accountLayerAddress,\n abi: accountLayerAbi,\n functionName: \"getUserSubAccountsAddresses\",\n args: [user, offset, limit],\n });\n}\n"],"mappings":";;AA+CA,eAAsB,EACpB,GACA,GACgD;CAChD,IAAM,EAAE,YAAS,SAAM,YAAS,IAAI,WAAQ,SAAS,GAE/C,EAAE,iBAAc,EAAO,eAAe,CAAO;CAGnD,OAFe,EAAO,UAAU,EAAE,WAAQ,CAEnC,EAAO,aAAa;EACzB,SAAS,EAAU;EACnB,KAAK;EACL,cAAc;EACd,MAAM;GAAC;GAAM;GAAQ;EAAK;CAC5B,CAAC;AACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
4
|
-
import { SubAccountDetail } from '../types';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
|
+
import { SubAccountDetail } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link getUserSubAccounts}.
|
|
7
7
|
*/
|
|
@@ -14,7 +14,7 @@ export type GetUserSubAccountsParameters = Compute<ChainIdParameter & {
|
|
|
14
14
|
*/
|
|
15
15
|
offset?: bigint;
|
|
16
16
|
/**
|
|
17
|
-
* Pagination limit, in subaccounts. The default matches the value the
|
|
17
|
+
* Pagination limit, in subaccounts. The default matches the value the SYMMIO
|
|
18
18
|
* Explorer Inspector page uses.
|
|
19
19
|
* @default 200n
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-sub-accounts.js","names":[],"sources":["../../../../src/symmio-contracts/account-layer/actions/get-user-sub-accounts.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../../shared/types/properties\";\nimport { accountLayerAbi } from \"../../abi/v0.8.5/account-layer\";\nimport type { SubAccountDetail } from \"../types\";\n\n/**\n * Parameters for {@link getUserSubAccounts}.\n */\nexport type GetUserSubAccountsParameters = Compute<\n ChainIdParameter & {\n /** EOA whose subaccounts to list. */\n user: Address;\n /**\n * Pagination offset, in subaccounts.\n * @default 0n\n */\n offset?: bigint;\n /**\n * Pagination limit, in subaccounts. The default matches the value the
|
|
1
|
+
{"version":3,"file":"get-user-sub-accounts.js","names":[],"sources":["../../../../src/symmio-contracts/account-layer/actions/get-user-sub-accounts.ts"],"sourcesContent":["import type { Address } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { ChainIdParameter, Compute } from \"../../../shared/types/properties\";\nimport { accountLayerAbi } from \"../../abi/v0.8.5/account-layer\";\nimport type { SubAccountDetail } from \"../types\";\n\n/**\n * Parameters for {@link getUserSubAccounts}.\n */\nexport type GetUserSubAccountsParameters = Compute<\n ChainIdParameter & {\n /** EOA whose subaccounts to list. */\n user: Address;\n /**\n * Pagination offset, in subaccounts.\n * @default 0n\n */\n offset?: bigint;\n /**\n * Pagination limit, in subaccounts. The default matches the value the SYMMIO\n * Explorer Inspector page uses.\n * @default 200n\n */\n limit?: bigint;\n }\n>;\n\n/** Return type of {@link getUserSubAccounts}. */\nexport type GetUserSubAccountsReturnType = readonly SubAccountDetail[];\n\n/**\n * Read all SYMMIO subaccounts owned by `user`.\n *\n * Resolves the viem client and `AccountLayer` address from `config` for the\n * given chain (or the config's default chain when `chainId` is omitted).\n *\n * @param config - The SDK config.\n * @param parameters - User address, optional pagination, optional chain id.\n * @returns The user's subaccounts.\n * @throws {SymmError} when the chain is not supported.\n * @throws Viem's `ContractFunctionExecutionError` and friends for on-chain failures.\n *\n * @example\n * ```ts\n * const subs = await getUserSubAccounts(config, { user: \"0xabc…\", limit: 100n });\n * ```\n */\nexport async function getUserSubAccounts(\n config: Config,\n parameters: GetUserSubAccountsParameters,\n): Promise<GetUserSubAccountsReturnType> {\n const { chainId, user, offset = 0n, limit = 200n } = parameters;\n\n const { addresses } = config.getChainConfig(chainId);\n const client = config.getClient({ chainId });\n\n const result = await client.readContract({\n address: addresses.accountLayerAddress,\n abi: accountLayerAbi,\n functionName: \"getUserSubAccounts\",\n args: [user, offset, limit],\n });\n\n return result;\n}\n"],"mappings":";;AA+CA,eAAsB,EACpB,GACA,GACuC;CACvC,IAAM,EAAE,YAAS,SAAM,YAAS,IAAI,WAAQ,SAAS,GAE/C,EAAE,iBAAc,EAAO,eAAe,CAAO;CAUnD,OAAO,MATQ,EAAO,UAAU,EAAE,WAAQ,CAErB,EAAO,aAAa;EACvC,SAAS,EAAU;EACnB,KAAK;EACL,cAAc;EACd,MAAM;GAAC;GAAM;GAAQ;EAAK;CAC5B,CAAC;AAGH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address, Hex } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
4
|
-
import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
|
+
import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link getVirtualAccount}.
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
4
|
/**
|
|
5
5
|
* Parameters for {@link getVirtualAccountsAddressesOfSubAccount}.
|
|
6
6
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { ChainIdParameter, Compute } from '../../../shared/types/properties';
|
|
4
|
-
import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { ChainIdParameter, Compute } from '../../../shared/types/properties.js';
|
|
4
|
+
import { VirtualAccountIsolationType } from '../../../solvers/instant-open/shared/types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link getPredictedNextVirtualAccount}.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address, Hash } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, WriteContractParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { SingleUpnlSig } from '../types';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, WriteContractParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { SingleUpnlSig } from '../types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Parameters for {@link removeMargin}.
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, FromParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer';
|
|
5
|
-
import { AddMarginParameters } from './add-margin';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer.js';
|
|
5
|
+
import { AddMarginParameters } from './add-margin.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateAddMargin}: the write's parameters plus an
|
|
8
8
|
* optional `from` (the address the dry-run runs as).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, FromParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer';
|
|
5
|
-
import { CreateSubAccountsParameters } from './create-sub-accounts';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer.js';
|
|
5
|
+
import { CreateSubAccountsParameters } from './create-sub-accounts.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateCreateSubAccounts}: the write's parameters plus
|
|
8
8
|
* an optional `from` (the address the dry-run runs as).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, FromParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer';
|
|
5
|
-
import { DeleteSubAccountParameters } from './delete-sub-account';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer.js';
|
|
5
|
+
import { DeleteSubAccountParameters } from './delete-sub-account.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateDeleteSubAccount}: the write's parameters plus an
|
|
8
8
|
* optional `from` (the address the dry-run runs as).
|
package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, FromParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer';
|
|
5
|
-
import { DepositAndAllocateForAccountParameters } from './deposit-and-allocate-for-account';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer.js';
|
|
5
|
+
import { DepositAndAllocateForAccountParameters } from './deposit-and-allocate-for-account.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateDepositAndAllocateForAccount}: the write's
|
|
8
8
|
* parameters plus an optional `from` (the address the dry-run runs as).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, FromParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer';
|
|
5
|
-
import { DepositForAccountParameters } from './deposit-for-account';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer.js';
|
|
5
|
+
import { DepositForAccountParameters } from './deposit-for-account.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateDepositForAccount}: the write's parameters plus
|
|
8
8
|
* an optional `from` (the address the dry-run runs as).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, FromParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer';
|
|
5
|
-
import { EditAccountNameParameters } from './edit-account-name';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer.js';
|
|
5
|
+
import { EditAccountNameParameters } from './edit-account-name.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateEditAccountName}: the write's parameters plus an
|
|
8
8
|
* optional `from` (the address the dry-run runs as).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
|
-
import { Config } from '../../../core/config';
|
|
3
|
-
import { Compute, FromParameter } from '../../../shared/types/properties';
|
|
4
|
-
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer';
|
|
5
|
-
import { RemoveMarginParameters } from './remove-margin';
|
|
2
|
+
import { Config } from '../../../core/config/index.js';
|
|
3
|
+
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
+
import { accountLayerAbi } from '../../abi/v0.8.5/account-layer.js';
|
|
5
|
+
import { RemoveMarginParameters } from './remove-margin.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateRemoveMargin}: the write's parameters plus an
|
|
8
8
|
* optional `from` (the address the dry-run runs as).
|