@symmio/trading-core 2.0.0 → 3.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/types.d.ts +1 -1
- package/dist/balance-history/get-balance-history/types.js.map +1 -1
- package/dist/core/chains/actions/get-chain-config.d.ts +1 -1
- package/dist/core/chains/actions/get-chain-config.js.map +1 -1
- package/dist/core/chains/actions/get-default-solver.d.ts +1 -1
- package/dist/core/chains/actions/get-default-solver.js.map +1 -1
- package/dist/core/chains/actions/list-supported-chains.js.map +1 -1
- package/dist/core/chains/registry.d.ts.map +1 -1
- package/dist/core/chains/registry.js +52 -50
- package/dist/core/chains/registry.js.map +1 -1
- package/dist/core/chains/supported-chains.d.ts +3 -3
- package/dist/core/chains/supported-chains.d.ts.map +1 -1
- package/dist/core/chains/supported-chains.js +1 -1
- package/dist/core/chains/supported-chains.js.map +1 -1
- package/dist/core/chains/types.d.ts +18 -4
- package/dist/core/chains/types.d.ts.map +1 -1
- package/dist/core/chains/types.js.map +1 -1
- package/dist/core/config/create-config.d.ts +7 -7
- package/dist/core/config/create-config.d.ts.map +1 -1
- package/dist/core/config/create-config.js +39 -38
- package/dist/core/config/create-config.js.map +1 -1
- package/dist/core/config/merge-chain-config.js +1 -0
- package/dist/core/config/merge-chain-config.js.map +1 -1
- package/dist/index.d.ts +18 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +318 -316
- package/dist/margin/calculate-margin-risk.d.ts +1 -1
- package/dist/margin/calculate-margin-risk.js.map +1 -1
- package/dist/notifications/types.d.ts +1 -1
- package/dist/notifications/types.d.ts.map +1 -1
- package/dist/quotes/close-planning/min-remaining-quantity.d.ts +1 -1
- package/dist/quotes/close-planning/min-remaining-quantity.js.map +1 -1
- package/dist/quotes/get-quote-history/query-document.d.ts +1 -1
- package/dist/quotes/get-quote-history/query-document.js.map +1 -1
- package/dist/quotes/get-quote-history/types.d.ts +2 -2
- package/dist/quotes/get-quote-history/types.js.map +1 -1
- package/dist/quotes/grouping/aggregate-metrics.d.ts +1 -1
- package/dist/quotes/grouping/aggregate-metrics.js.map +1 -1
- package/dist/quotes/open-price.d.ts +10 -10
- package/dist/quotes/open-price.d.ts.map +1 -1
- package/dist/quotes/open-price.js +1 -1
- package/dist/quotes/open-price.js.map +1 -1
- package/dist/quotes/upnl/calculate-quote-leverage.d.ts +8 -6
- package/dist/quotes/upnl/calculate-quote-leverage.d.ts.map +1 -1
- package/dist/quotes/upnl/calculate-quote-leverage.js.map +1 -1
- package/dist/shared/utils/query.d.ts +2 -2
- package/dist/shared/utils/query.js.map +1 -1
- package/dist/solvers/force-close/force-close-position.js +1 -1
- package/dist/solvers/force-close/force-close-position.js.map +1 -1
- package/dist/solvers/force-close/get-force-close-params.js +1 -1
- package/dist/solvers/force-close/get-force-close-params.js.map +1 -1
- package/dist/solvers/instant-close/shared/calldata.js +1 -1
- package/dist/solvers/instant-close/shared/calldata.js.map +1 -1
- package/dist/solvers/instant-open/get-instant-open-fees/get-instant-open-fees.d.ts +129 -0
- package/dist/solvers/instant-open/get-instant-open-fees/get-instant-open-fees.d.ts.map +1 -0
- package/dist/solvers/instant-open/get-instant-open-fees/get-instant-open-fees.js +115 -0
- package/dist/solvers/instant-open/get-instant-open-fees/get-instant-open-fees.js.map +1 -0
- package/dist/solvers/instant-open/get-instant-open-fees/index.d.ts +3 -0
- package/dist/solvers/instant-open/get-instant-open-fees/index.d.ts.map +1 -0
- package/dist/solvers/instant-open/get-instant-open-fees/query.d.ts +34 -0
- package/dist/solvers/instant-open/get-instant-open-fees/query.d.ts.map +1 -0
- package/dist/solvers/instant-open/get-instant-open-fees/query.js +33 -0
- package/dist/solvers/instant-open/get-instant-open-fees/query.js.map +1 -0
- package/dist/solvers/instant-open/index.d.ts +1 -0
- package/dist/solvers/instant-open/index.d.ts.map +1 -1
- package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.d.ts.map +1 -1
- package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.js +58 -55
- package/dist/solvers/instant-open/instant-open/adapters/enigma-instant-open.js.map +1 -1
- package/dist/solvers/instant-open/instant-open/types.d.ts +14 -4
- package/dist/solvers/instant-open/instant-open/types.d.ts.map +1 -1
- package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts +45 -10
- package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.d.ts.map +1 -1
- package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js +157 -72
- package/dist/solvers/instant-open/prepare-instant-open-params/prepare-instant-open-params.js.map +1 -1
- package/dist/solvers/instant-open/shared/calldata.d.ts +35 -7
- package/dist/solvers/instant-open/shared/calldata.d.ts.map +1 -1
- package/dist/solvers/instant-open/shared/calldata.js +56 -14
- package/dist/solvers/instant-open/shared/calldata.js.map +1 -1
- package/dist/solvers/instant-open/shared/index.d.ts +1 -0
- package/dist/solvers/instant-open/shared/index.d.ts.map +1 -1
- package/dist/solvers/instant-open/shared/open-estimate-guard.d.ts +89 -0
- package/dist/solvers/instant-open/shared/open-estimate-guard.d.ts.map +1 -0
- package/dist/solvers/instant-open/shared/open-estimate-guard.js +52 -0
- package/dist/solvers/instant-open/shared/open-estimate-guard.js.map +1 -0
- package/dist/solvers/instant-open/shared/selectors.d.ts +46 -7
- package/dist/solvers/instant-open/shared/selectors.d.ts.map +1 -1
- package/dist/solvers/instant-open/shared/selectors.js +12 -5
- package/dist/solvers/instant-open/shared/selectors.js.map +1 -1
- package/dist/solvers/instant-open/shared/trade-math.d.ts +112 -8
- package/dist/solvers/instant-open/shared/trade-math.d.ts.map +1 -1
- package/dist/solvers/instant-open/shared/trade-math.js +59 -25
- package/dist/solvers/instant-open/shared/trade-math.js.map +1 -1
- package/dist/solvers/instant-open/shared/types.d.ts +32 -0
- package/dist/solvers/instant-open/shared/types.d.ts.map +1 -1
- package/dist/solvers/instant-open/shared/types.js.map +1 -1
- package/dist/solvers/markets/adapters/enigma-markets.d.ts.map +1 -1
- package/dist/solvers/markets/adapters/enigma-markets.js +38 -32
- package/dist/solvers/markets/adapters/enigma-markets.js.map +1 -1
- package/dist/solvers/markets/types.d.ts +15 -0
- package/dist/solvers/markets/types.d.ts.map +1 -1
- package/dist/solvers/revenue/get-solver-revenue.d.ts +11 -11
- package/dist/solvers/revenue/get-solver-revenue.d.ts.map +1 -1
- package/dist/solvers/revenue/get-solver-revenue.js +12 -12
- package/dist/solvers/revenue/get-solver-revenue.js.map +1 -1
- package/dist/solvers/revenue/query.d.ts +2 -2
- package/dist/solvers/revenue/query.d.ts.map +1 -1
- package/dist/solvers/revenue/query.js +1 -1
- package/dist/solvers/revenue/query.js.map +1 -1
- package/dist/solvers/revenue/to-solver-revenue.d.ts +3 -2
- package/dist/solvers/revenue/to-solver-revenue.d.ts.map +1 -1
- package/dist/solvers/revenue/to-solver-revenue.js.map +1 -1
- package/dist/solvers/shared/index.d.ts +1 -0
- package/dist/solvers/shared/index.d.ts.map +1 -1
- package/dist/solvers/shared/resolvers/resolve-market.d.ts +36 -5
- package/dist/solvers/shared/resolvers/resolve-market.d.ts.map +1 -1
- package/dist/solvers/shared/resolvers/resolve-market.js +30 -8
- package/dist/solvers/shared/resolvers/resolve-market.js.map +1 -1
- package/dist/solvers/shared/resolvers/types.d.ts +14 -0
- package/dist/solvers/shared/resolvers/types.d.ts.map +1 -1
- package/dist/solvers/shared/solver-close-fee.d.ts +76 -0
- package/dist/solvers/shared/solver-close-fee.d.ts.map +1 -0
- package/dist/solvers/shared/solver-close-fee.js +26 -0
- package/dist/solvers/shared/solver-close-fee.js.map +1 -0
- package/dist/solvers/symbols/to-solver-symbol.d.ts.map +1 -1
- package/dist/solvers/symbols/to-solver-symbol.js +36 -30
- package/dist/solvers/symbols/to-solver-symbol.js.map +1 -1
- package/dist/solvers/symbols/types.d.ts +22 -1
- package/dist/solvers/symbols/types.d.ts.map +1 -1
- package/dist/solvers/types/generated/enigma-solver.d.ts +8 -99
- package/dist/solvers/types/generated/enigma-solver.d.ts.map +1 -1
- package/dist/solvers/types/generated/enigma-solver.js +5 -11
- package/dist/solvers/types/generated/enigma-solver.js.map +1 -1
- package/dist/solvers/types/generated/rasa-solver.js +2 -2
- package/dist/solvers/types/generated/rasa-solver.js.map +1 -1
- package/dist/symmio-contracts/abi/index.d.ts +4 -4
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/account-layer.d.ts +499 -132
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/account-layer.d.ts.map +1 -1
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/account-layer.js +591 -149
- package/dist/symmio-contracts/abi/v0.8.6/account-layer.js.map +1 -0
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/index.d.ts.map +1 -1
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/instant-layer.d.ts +24 -24
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/instant-layer.d.ts.map +1 -1
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/instant-layer.js +28 -28
- package/dist/symmio-contracts/abi/v0.8.6/instant-layer.js.map +1 -0
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/symmio.d.ts +4724 -1019
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/symmio.d.ts.map +1 -1
- package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/symmio.js +12750 -8308
- package/dist/symmio-contracts/abi/v0.8.6/symmio.js.map +1 -0
- package/dist/symmio-contracts/account-layer/actions/add-margin.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/add-margin.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/cancel-registration.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/cancel-registration.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/create-sub-accounts.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/delete-sub-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/delete-sub-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/deposit-and-allocate-for-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/deposit-and-allocate-for-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/deposit-for-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/deposit-for-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/edit-account-name.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/edit-account-name.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/generate-account-manager-address.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/generate-account-manager-address.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-info.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-info.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-of.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-account-balance-of.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-affiliate-state.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-affiliate-state.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-sub-account-virtual-nonce.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-sub-account-virtual-nonce.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-sub-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-sub-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-sub-accounts-count-of-user.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-sub-accounts-count-of-user.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-user-sub-accounts-addresses.js +1 -1
- 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.js +1 -1
- 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 +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-virtual-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-virtual-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-addresses-of-sub-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/get-virtual-accounts-addresses-of-sub-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/predict-next-virtual-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/predict-next-virtual-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/remove-margin.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/remove-margin.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/request-to-register-affiliate.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/request-to-register-affiliate.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-add-margin.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-add-margin.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-add-margin.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-cancel-registration.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-cancel-registration.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-cancel-registration.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-create-sub-accounts.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-create-sub-accounts.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-create-sub-accounts.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-delete-sub-account.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-delete-sub-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-delete-sub-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-and-allocate-for-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-for-account.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-for-account.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-deposit-for-account.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-edit-account-name.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-edit-account-name.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-edit-account-name.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-remove-margin.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-remove-margin.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-remove-margin.js.map +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-request-to-register-affiliate.d.ts +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-request-to-register-affiliate.js +1 -1
- package/dist/symmio-contracts/account-layer/actions/simulate-request-to-register-affiliate.js.map +1 -1
- package/dist/symmio-contracts/account-layer/types.d.ts +10 -10
- package/dist/symmio-contracts/account-layer/types.js.map +1 -1
- package/dist/symmio-contracts/instant-layer/actions/get-delegation-expiry.js +1 -1
- package/dist/symmio-contracts/instant-layer/actions/get-delegation-expiry.js.map +1 -1
- package/dist/symmio-contracts/instant-layer/actions/get-is-delegation-active.js +1 -1
- package/dist/symmio-contracts/instant-layer/actions/get-is-delegation-active.js.map +1 -1
- package/dist/symmio-contracts/instant-layer/actions/grant-delegation.js +1 -1
- package/dist/symmio-contracts/instant-layer/actions/grant-delegation.js.map +1 -1
- package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegation.d.ts +1 -1
- package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegation.js +1 -1
- package/dist/symmio-contracts/instant-layer/actions/simulate-grant-delegation.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/allocate.js +1 -1
- package/dist/symmio-contracts/symmio/actions/allocate.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/deallocate-and-initiate-withdraw.d.ts +1 -1
- package/dist/symmio-contracts/symmio/actions/deallocate-and-initiate-withdraw.js +1 -1
- package/dist/symmio-contracts/symmio/actions/deallocate-and-initiate-withdraw.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/deallocate.js +1 -1
- package/dist/symmio-contracts/symmio/actions/deallocate.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/finalize-withdraw-request.js +1 -1
- package/dist/symmio-contracts/symmio/actions/finalize-withdraw-request.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/force-cancel-close-request.js +1 -1
- package/dist/symmio-contracts/symmio/actions/force-cancel-close-request.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/force-cancel-quote.js +1 -1
- package/dist/symmio-contracts/symmio/actions/force-cancel-quote.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-cool-downs-of-ma.js +1 -1
- package/dist/symmio-contracts/symmio/actions/get-cool-downs-of-ma.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-fee-for-user.js +1 -1
- package/dist/symmio-contracts/symmio/actions/get-fee-for-user.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-last-withdraw-request-id.js +1 -1
- package/dist/symmio-contracts/symmio/actions/get-last-withdraw-request-id.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-onchain-contract-markets.js +1 -1
- package/dist/symmio-contracts/symmio/actions/get-onchain-contract-markets.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-party-a-open-positions.js +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.js +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-quotes.js +1 -1
- package/dist/symmio-contracts/symmio/actions/get-pending-quotes.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-pending-withdraw-requests.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-pending-withdraw-requests.js +10 -9
- package/dist/symmio-contracts/symmio/actions/get-pending-withdraw-requests.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-quote.js +1 -1
- package/dist/symmio-contracts/symmio/actions/get-quote.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-withdraw-requests.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-withdraw-requests.js +9 -8
- package/dist/symmio-contracts/symmio/actions/get-withdraw-requests.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/get-withdrawable-time.js +1 -1
- package/dist/symmio-contracts/symmio/actions/get-withdrawable-time.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/initiate-withdraw.d.ts +1 -1
- package/dist/symmio-contracts/symmio/actions/initiate-withdraw.js +1 -1
- package/dist/symmio-contracts/symmio/actions/initiate-withdraw.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/request-cancel-withdraw.js +1 -1
- package/dist/symmio-contracts/symmio/actions/request-cancel-withdraw.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/request-to-cancel-close-request.js +1 -1
- package/dist/symmio-contracts/symmio/actions/request-to-cancel-close-request.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/request-to-cancel-quote.js +1 -1
- package/dist/symmio-contracts/symmio/actions/request-to-cancel-quote.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-allocate.js +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-allocate.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-deallocate-and-initiate-withdraw.js +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-deallocate-and-initiate-withdraw.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-deallocate.js +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-deallocate.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.d.ts +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.js +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-initiate-withdraw.js +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-initiate-withdraw.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.js +1 -1
- package/dist/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.js.map +1 -1
- package/dist/symmio-contracts/symmio/actions/withdraw.d.ts +1 -1
- package/dist/symmio-contracts/symmio/actions/withdraw.js.map +1 -1
- package/dist/symmio-contracts/symmio/internal/call-as-sub-account.js +1 -1
- package/dist/symmio-contracts/symmio/internal/call-as-sub-account.js.map +1 -1
- package/dist/symmio-contracts/symmio/internal/simulate-call-as-sub-account.d.ts +1 -1
- package/dist/symmio-contracts/symmio/internal/simulate-call-as-sub-account.js +1 -1
- package/dist/symmio-contracts/symmio/internal/simulate-call-as-sub-account.js.map +1 -1
- package/dist/symmio-contracts/symmio/internal/withdraw-requests-v0-8-5.d.ts +214 -0
- package/dist/symmio-contracts/symmio/internal/withdraw-requests-v0-8-5.d.ts.map +1 -0
- package/dist/symmio-contracts/symmio/internal/withdraw-requests-v0-8-5.js +248 -0
- package/dist/symmio-contracts/symmio/internal/withdraw-requests-v0-8-5.js.map +1 -0
- package/dist/symmio-contracts/symmio/parts.d.ts +1 -1
- package/dist/symmio-contracts/symmio/parts.js.map +1 -1
- package/dist/symmio-contracts/symmio/types.d.ts +29 -19
- package/dist/symmio-contracts/symmio/types.d.ts.map +1 -1
- package/dist/symmio-contracts/symmio/types.js.map +1 -1
- package/dist/tpsl/grouping/notional.js +6 -6
- package/dist/websocket/tpsl/parse-tpsl-frame.d.ts +1 -1
- package/dist/websocket/tpsl/parse-tpsl-frame.js.map +1 -1
- package/dist/websocket/tpsl/watch-tpsl-notifications.d.ts +1 -1
- package/dist/websocket/tpsl/watch-tpsl-notifications.js.map +1 -1
- package/package.json +1 -1
- package/dist/solvers/add-solver-whitelist/add-solver-whitelist.d.ts +0 -27
- package/dist/solvers/add-solver-whitelist/add-solver-whitelist.d.ts.map +0 -1
- package/dist/solvers/add-solver-whitelist/add-solver-whitelist.js +0 -25
- package/dist/solvers/add-solver-whitelist/add-solver-whitelist.js.map +0 -1
- package/dist/solvers/add-solver-whitelist/index.d.ts +0 -3
- package/dist/solvers/add-solver-whitelist/index.d.ts.map +0 -1
- package/dist/solvers/add-solver-whitelist/query.d.ts +0 -19
- package/dist/solvers/add-solver-whitelist/query.d.ts.map +0 -1
- package/dist/solvers/add-solver-whitelist/query.js +0 -12
- package/dist/solvers/add-solver-whitelist/query.js.map +0 -1
- package/dist/symmio-contracts/abi/v0.8.5/account-layer.js.map +0 -1
- package/dist/symmio-contracts/abi/v0.8.5/instant-layer.js.map +0 -1
- package/dist/symmio-contracts/abi/v0.8.5/symmio.js.map +0 -1
- /package/dist/symmio-contracts/abi/{v0.8.5 → v0.8.6}/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-cancel-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/request-cancel-withdraw.ts"],"sourcesContent":["import { encodeFunctionData, type Address, type Hash } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"request-cancel-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/request-cancel-withdraw.ts"],"sourcesContent":["import { encodeFunctionData, type Address, type Hash } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport { callAsSubAccount } from \"../internal/call-as-sub-account\";\n\n/**\n * Parameters for {@link requestCancelWithdraw}.\n */\nexport type RequestCancelWithdrawParameters = Compute<\n WriteContractParameter & {\n /**\n * The subaccount that owns the request. The call is routed through the\n * AccountLayer `_call` proxy; the connected wallet must be its on-chain `owner`.\n */\n account: Address;\n /** Id of the withdraw request to cancel. */\n requestId: bigint;\n }\n>;\n\n/** Return type of {@link requestCancelWithdraw}: the submitted transaction hash. */\nexport type RequestCancelWithdrawReturnType = Hash;\n\n/**\n * Request cancellation of a pending withdraw request.\n *\n * Encodes the SYMMIO core `requestCancelWithdraw(requestId)` call and routes it\n * through `AccountLayer._call(account, …)` so the core attributes it to the\n * subaccount. For a classic (provider-free) request outside any blackout this\n * cancels immediately and returns the locked balance; for provider-backed\n * requests it may transition to `CANCEL_REQUESTED` pending provider approval.\n *\n * Dry-runs the call with {@link simulateRequestCancelWithdraw} first unless\n * `simulateBeforeWrite` is `false` (per-call, falling back to the config default).\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - Subaccount, request id, optional chain id.\n * @returns The submitted transaction hash. The caller waits on the receipt.\n * @throws {SymmError} when the chain is unsupported or no wallet is available.\n * @throws Viem's write errors (`ContractFunctionExecutionError`, ...).\n *\n * @example\n * ```ts\n * const hash = await requestCancelWithdraw(config, { account: \"0xsub…\", requestId: 1n });\n * ```\n */\nexport async function requestCancelWithdraw(\n config: Config,\n parameters: RequestCancelWithdrawParameters,\n): Promise<RequestCancelWithdrawReturnType> {\n const { chainId, account, requestId } = parameters;\n\n const data = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"requestCancelWithdraw\",\n args: [requestId],\n });\n\n return callAsSubAccount(config, {\n account,\n data,\n chainId,\n from: parameters.from,\n simulateBeforeWrite: parameters.simulateBeforeWrite,\n });\n}\n"],"mappings":";;;;AA+CA,eAAsB,EACpB,GACA,GAC0C;CAC1C,IAAM,EAAE,YAAS,YAAS,iBAAc;CAQxC,OAAO,EAAiB,GAAQ;EAC9B;EACA,MARW,EAAmB;GAC9B,KAAK;GACL,cAAc;GACd,MAAM,CAAC,CAAS;EAClB,CAIE;EACA;EACA,MAAM,EAAW;EACjB,qBAAqB,EAAW;CAClC,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
import { callAsSubAccount as t } from "../internal/call-as-sub-account.js";
|
|
3
3
|
import { encodeFunctionData as n } from "viem";
|
|
4
4
|
//#region src/symmio-contracts/symmio/actions/request-to-cancel-close-request.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-to-cancel-close-request.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/request-to-cancel-close-request.ts"],"sourcesContent":["import { encodeFunctionData, type Address, type Hash } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"request-to-cancel-close-request.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/request-to-cancel-close-request.ts"],"sourcesContent":["import { encodeFunctionData, type Address, type Hash } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport { callAsSubAccount } from \"../internal/call-as-sub-account\";\n\n/**\n * Parameters for {@link requestToCancelCloseRequest}.\n */\nexport type RequestToCancelCloseRequestParameters = Compute<\n WriteContractParameter & {\n /**\n * The subaccount (partyA) that owns the quote. The call is routed through the\n * AccountLayer `_call` proxy so the core sees this subaccount as the caller;\n * the connected wallet must be its on-chain `owner`.\n */\n account: Address;\n /** The `CLOSE_PENDING` quote id whose close request to cancel. */\n quoteId: bigint;\n }\n>;\n\n/** Return type of {@link requestToCancelCloseRequest}: the submitted transaction hash. */\nexport type RequestToCancelCloseRequestReturnType = Hash;\n\n/**\n * Request cancellation of a pending **close** (`requestToCancelCloseRequest`) —\n * the way a partyA backs out of a resting close (e.g. a limit close) while the\n * quote is `CLOSE_PENDING`.\n *\n * The core `requestToCancelCloseRequest(quoteId)` must be attributed to the\n * sub-account, so it is encoded and routed through `AccountLayer._call(account, …)`;\n * the connected wallet must be the sub-account's `owner`. If partyB accepts, the\n * quote returns to `OPENED`; if partyB stalls, it enters `CANCEL_CLOSE_PENDING`\n * until the force-cancel-close cooldown elapses (see `forceCancelCloseRequest`).\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - The owning subaccount, the quote id, optional `from` / pre-flight / chain id.\n * @returns The submitted transaction hash.\n * @throws {SymmError} when the chain is unsupported or no wallet client is available.\n *\n * @example\n * ```ts\n * const hash = await requestToCancelCloseRequest(config, { account: \"0xsub…\", quoteId: 42n });\n * ```\n */\nexport async function requestToCancelCloseRequest(\n config: Config,\n parameters: RequestToCancelCloseRequestParameters,\n): Promise<RequestToCancelCloseRequestReturnType> {\n const { chainId, account, quoteId } = parameters;\n\n const data = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"requestToCancelCloseRequest\",\n args: [quoteId],\n });\n\n return callAsSubAccount(config, {\n account,\n data,\n chainId,\n from: parameters.from,\n simulateBeforeWrite: parameters.simulateBeforeWrite,\n });\n}\n"],"mappings":";;;;AA8CA,eAAsB,EACpB,GACA,GACgD;CAChD,IAAM,EAAE,YAAS,YAAS,eAAY;CAQtC,OAAO,EAAiB,GAAQ;EAC9B;EACA,MARW,EAAmB;GAC9B,KAAK;GACL,cAAc;GACd,MAAM,CAAC,CAAO;EAChB,CAIE;EACA;EACA,MAAM,EAAW;EACjB,qBAAqB,EAAW;CAClC,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
import { callAsSubAccount as t } from "../internal/call-as-sub-account.js";
|
|
3
3
|
import { encodeFunctionData as n } from "viem";
|
|
4
4
|
//#region src/symmio-contracts/symmio/actions/request-to-cancel-quote.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-to-cancel-quote.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/request-to-cancel-quote.ts"],"sourcesContent":["import { encodeFunctionData, type Address, type Hash } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"request-to-cancel-quote.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/request-to-cancel-quote.ts"],"sourcesContent":["import { encodeFunctionData, type Address, type Hash } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport { callAsSubAccount } from \"../internal/call-as-sub-account\";\n\n/**\n * Parameters for {@link requestToCancelQuote}.\n */\nexport type RequestToCancelQuoteParameters = Compute<\n WriteContractParameter & {\n /**\n * The subaccount (partyA) that owns the quote. The call is routed through the\n * AccountLayer `_call` proxy so the core sees this subaccount as the caller;\n * the connected wallet must be its on-chain `owner`.\n */\n account: Address;\n /** The pending quote id to cancel — e.g. a resting LIMIT order. */\n quoteId: bigint;\n }\n>;\n\n/** Return type of {@link requestToCancelQuote}: the submitted transaction hash. */\nexport type RequestToCancelQuoteReturnType = Hash;\n\n/**\n * Request cancellation of a pending quote (`requestToCancelQuote`) — the way a\n * partyA cancels a resting **LIMIT order** (or any not-yet-opened quote).\n *\n * The core `requestToCancelQuote(quoteId)` must be attributed to the sub-account,\n * so it is encoded and routed through `AccountLayer._call(account, …)`; the\n * connected wallet must be the sub-account's `owner`. A `PENDING` quote cancels\n * immediately; a `LOCKED` one enters `CANCEL_PENDING` until partyB acknowledges.\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - The owning subaccount, the quote id, optional `from` / pre-flight / chain id.\n * @returns The submitted transaction hash.\n * @throws {SymmError} when the chain is unsupported or no wallet client is available.\n *\n * @example\n * ```ts\n * const hash = await requestToCancelQuote(config, { account: \"0xsub…\", quoteId: 42n });\n * ```\n */\nexport async function requestToCancelQuote(\n config: Config,\n parameters: RequestToCancelQuoteParameters,\n): Promise<RequestToCancelQuoteReturnType> {\n const { chainId, account, quoteId } = parameters;\n\n const data = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"requestToCancelQuote\",\n args: [quoteId],\n });\n\n return callAsSubAccount(config, {\n account,\n data,\n chainId,\n from: parameters.from,\n simulateBeforeWrite: parameters.simulateBeforeWrite,\n });\n}\n"],"mappings":";;;;AA4CA,eAAsB,EACpB,GACA,GACyC;CACzC,IAAM,EAAE,YAAS,YAAS,eAAY;CAQtC,OAAO,EAAiB,GAAQ;EAC9B;EACA,MARW,EAAmB;GAC9B,KAAK;GACL,cAAc;GACd,MAAM,CAAC,CAAO;EAChB,CAIE;EACA;EACA,MAAM,EAAW;EACjB,qBAAqB,EAAW;CAClC,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
import { simulateCallAsSubAccount as t } from "../internal/simulate-call-as-sub-account.js";
|
|
3
3
|
import { encodeFunctionData as n } from "viem";
|
|
4
4
|
//#region src/symmio-contracts/symmio/actions/simulate-allocate.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-allocate.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-allocate.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"simulate-allocate.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-allocate.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport {\n simulateCallAsSubAccount,\n type SimulateCallAsSubAccountReturnType,\n} from \"../internal/simulate-call-as-sub-account\";\nimport type { AllocateParameters } from \"./allocate\";\n\n/**\n * Parameters for {@link simulateAllocate}: the write's parameters plus an\n * optional `from` (the address the dry-run runs as).\n */\nexport type SimulateAllocateParameters = Compute<AllocateParameters & FromParameter>;\n\n/**\n * Return type of {@link simulateAllocate}: viem's `{ request, result }` for the\n * routed AccountLayer `_call` (see {@link SimulateCallAsSubAccountReturnType}).\n */\nexport type SimulateAllocateReturnType = SimulateCallAsSubAccountReturnType;\n\n/**\n * Dry-run {@link allocate} without sending a transaction. Encodes the same core\n * `allocate` calldata as the write and dry-runs it through the AccountLayer\n * `_call` proxy via the public client.\n *\n * @param config - The SDK config.\n * @param parameters - Subaccount, amount, optional `from`, optional chain id.\n * @returns viem's `{ request, result }` for the routed `_call`.\n * @throws {SymmError} when the chain is unsupported.\n * @throws Viem's call errors when the routed call would revert.\n */\nexport async function simulateAllocate(\n config: Config,\n parameters: SimulateAllocateParameters,\n): Promise<SimulateAllocateReturnType> {\n const { chainId, account, amount, from } = parameters;\n\n const data = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"allocate\",\n args: [amount],\n });\n\n return simulateCallAsSubAccount(config, { account, data, from, chainId });\n}\n"],"mappings":";;;;AAiCA,eAAsB,EACpB,GACA,GACqC;CACrC,IAAM,EAAE,YAAS,YAAS,WAAQ,YAAS;CAQ3C,OAAO,EAAyB,GAAQ;EAAE;EAAS,MANtC,EAAmB;GAC9B,KAAK;GACL,cAAc;GACd,MAAM,CAAC,CAAM;EACf,CAEmD;EAAM;EAAM;CAAQ,CAAC;AAC1E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
import { simulateCallAsSubAccount as t } from "../internal/simulate-call-as-sub-account.js";
|
|
3
3
|
import { getDeallocateUpnlSig as n } from "../../../muon/deallocate-upnl-sig/get-deallocate-upnl-sig.js";
|
|
4
4
|
import { encodeFunctionData as r } from "viem";
|
package/dist/symmio-contracts/symmio/actions/simulate-deallocate-and-initiate-withdraw.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-deallocate-and-initiate-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-deallocate-and-initiate-withdraw.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { getDeallocateUpnlSig } from \"../../../muon/deallocate-upnl-sig/get-deallocate-upnl-sig\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"simulate-deallocate-and-initiate-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-deallocate-and-initiate-withdraw.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { getDeallocateUpnlSig } from \"../../../muon/deallocate-upnl-sig/get-deallocate-upnl-sig\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport {\n simulateCallAsSubAccount,\n type SimulateCallAsSubAccountReturnType,\n} from \"../internal/simulate-call-as-sub-account\";\nimport type { DeallocateAndInitiateWithdrawParameters } from \"./deallocate-and-initiate-withdraw\";\n\n/**\n * Parameters for {@link simulateDeallocateAndInitiateWithdraw}: the write's\n * parameters plus an optional `from` (the address the dry-run runs as).\n */\nexport type SimulateDeallocateAndInitiateWithdrawParameters = Compute<\n DeallocateAndInitiateWithdrawParameters & FromParameter\n>;\n\n/**\n * Return type of {@link simulateDeallocateAndInitiateWithdraw}: viem's\n * `{ request, result }` for the routed AccountLayer `_call` (see\n * {@link SimulateCallAsSubAccountReturnType}).\n */\nexport type SimulateDeallocateAndInitiateWithdrawReturnType = SimulateCallAsSubAccountReturnType;\n\n/**\n * Dry-run {@link deallocateAndInitiateWithdraw} without sending a transaction.\n * Encodes the same `deallocate` + `initiateWithdraw` calldatas as the write and\n * dry-runs the batched `AccountLayer._call(account, [deallocateData, withdrawData])`\n * through the public client — a faithful simulation of exactly what would be\n * broadcast. A would-be revert on either leg (the deallocate debounce, an\n * insolvent result, a stale `upnlSig`, ...) throws viem's call error.\n *\n * @param config - The SDK config.\n * @param parameters - Subaccount, amount, receiver parts, optional speed-up /\n * provider data, optional Muon `upnlSig` (fetched automatically via\n * {@link getDeallocateUpnlSig} when omitted), optional `from`, optional chain id.\n * @returns viem's `{ request, result }` for the routed `_call`.\n * @throws {SymmError} when the chain is unsupported.\n * @throws Viem's call errors when the routed call would revert.\n */\nexport async function simulateDeallocateAndInitiateWithdraw(\n config: Config,\n parameters: SimulateDeallocateAndInitiateWithdrawParameters,\n): Promise<SimulateDeallocateAndInitiateWithdrawReturnType> {\n const { chainId, account, amount, parts, speedUp = false, providerData = \"0x\", from } = parameters;\n\n const upnlSig = parameters.upnlSig ?? (await getDeallocateUpnlSig(config, { virtualAccount: account, chainId }));\n\n const deallocateData = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"deallocate\",\n args: [amount, upnlSig],\n });\n\n const withdrawData = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"initiateWithdraw\",\n args: [parts, speedUp, providerData],\n });\n\n return simulateCallAsSubAccount(config, { account, data: [deallocateData, withdrawData], from, chainId });\n}\n"],"mappings":";;;;;AA0CA,eAAsB,EACpB,GACA,GAC0D;CAC1D,IAAM,EAAE,YAAS,YAAS,WAAQ,UAAO,aAAU,IAAO,kBAAe,MAAM,YAAS;CAgBxF,OAAO,EAAyB,GAAQ;EAAE;EAAS,MAAM,CAZlC,EAAmB;GACxC,KAAK;GACL,cAAc;GACd,MAAM,CAAC,GALO,EAAW,WAAY,MAAM,EAAqB,GAAQ;IAAE,gBAAgB;IAAS;GAAQ,CAAC,CAKtF;EACxB,CAQ0D,GANrC,EAAmB;GACtC,KAAK;GACL,cAAc;GACd,MAAM;IAAC;IAAO;IAAS;GAAY;EACrC,CAE0E,CAAY;EAAG;EAAM;CAAQ,CAAC;AAC1G"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
import { simulateCallAsSubAccount as t } from "../internal/simulate-call-as-sub-account.js";
|
|
3
3
|
import { getDeallocateUpnlSig as n } from "../../../muon/deallocate-upnl-sig/get-deallocate-upnl-sig.js";
|
|
4
4
|
import { encodeFunctionData as r } from "viem";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-deallocate.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-deallocate.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { getDeallocateUpnlSig } from \"../../../muon/deallocate-upnl-sig/get-deallocate-upnl-sig\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"simulate-deallocate.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-deallocate.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { getDeallocateUpnlSig } from \"../../../muon/deallocate-upnl-sig/get-deallocate-upnl-sig\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport {\n simulateCallAsSubAccount,\n type SimulateCallAsSubAccountReturnType,\n} from \"../internal/simulate-call-as-sub-account\";\nimport type { DeallocateParameters } from \"./deallocate\";\n\n/**\n * Parameters for {@link simulateDeallocate}: the write's parameters plus an\n * optional `from` (the address the dry-run runs as).\n */\nexport type SimulateDeallocateParameters = Compute<DeallocateParameters & FromParameter>;\n\n/**\n * Return type of {@link simulateDeallocate}: viem's `{ request, result }` for the\n * routed AccountLayer `_call` (see {@link SimulateCallAsSubAccountReturnType}).\n */\nexport type SimulateDeallocateReturnType = SimulateCallAsSubAccountReturnType;\n\n/**\n * Dry-run {@link deallocate} without sending a transaction. Encodes the same core\n * `deallocate` calldata as the write and dry-runs it through the AccountLayer\n * `_call` proxy via the public client. A would-be revert (the deallocate debounce,\n * an insolvent result, or a stale `upnlSig`) throws viem's call error.\n *\n * @param config - The SDK config.\n * @param parameters - Subaccount, amount, optional Muon `upnlSig` (fetched\n * automatically via {@link getDeallocateUpnlSig} when omitted), optional `from`, optional chain id.\n * @returns viem's `{ request, result }` for the routed `_call`.\n * @throws {SymmError} when the chain is unsupported.\n * @throws Viem's call errors when the routed call would revert.\n */\nexport async function simulateDeallocate(\n config: Config,\n parameters: SimulateDeallocateParameters,\n): Promise<SimulateDeallocateReturnType> {\n const { chainId, account, amount, from } = parameters;\n\n const upnlSig =\n parameters.upnlSig ?? (await getDeallocateUpnlSig(config, { virtualAccount: parameters.account, chainId }));\n\n const data = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"deallocate\",\n args: [amount, upnlSig],\n });\n\n return simulateCallAsSubAccount(config, { account, data, from, chainId });\n}\n"],"mappings":";;;;;AAoCA,eAAsB,EACpB,GACA,GACuC;CACvC,IAAM,EAAE,YAAS,YAAS,WAAQ,YAAS;CAW3C,OAAO,EAAyB,GAAQ;EAAE;EAAS,MANtC,EAAmB;GAC9B,KAAK;GACL,cAAc;GACd,MAAM,CAAC,GALP,EAAW,WAAY,MAAM,EAAqB,GAAQ;IAAE,gBAAgB,EAAW;IAAS;GAAQ,CAAC,CAKnF;EACxB,CAEmD;EAAM;EAAM;CAAQ,CAAC;AAC1E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SimulateContractReturnType } from 'viem';
|
|
2
2
|
import { Config } from '../../../core/config/index.js';
|
|
3
3
|
import { Compute, FromParameter } from '../../../shared/types/properties.js';
|
|
4
|
-
import { symmioAbi } from '../../abi/v0.8.
|
|
4
|
+
import { symmioAbi } from '../../abi/v0.8.6/symmio.js';
|
|
5
5
|
import { FinalizeWithdrawRequestParameters } from './finalize-withdraw-request.js';
|
|
6
6
|
/**
|
|
7
7
|
* Parameters for {@link simulateFinalizeWithdrawRequest}: the write's parameters
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
//#region src/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.ts
|
|
3
3
|
async function t(t, n) {
|
|
4
4
|
let { chainId: r, user: i, requestId: a, from: o } = n, { addresses: s } = t.getChainConfig(r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-finalize-withdraw-request.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.ts"],"sourcesContent":["import type { SimulateContractReturnType } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"simulate-finalize-withdraw-request.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-finalize-withdraw-request.ts"],"sourcesContent":["import type { SimulateContractReturnType } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport type { FinalizeWithdrawRequestParameters } from \"./finalize-withdraw-request\";\n\n/**\n * Parameters for {@link simulateFinalizeWithdrawRequest}: the write's parameters\n * plus an optional `from` (the address the dry-run runs as).\n */\nexport type SimulateFinalizeWithdrawRequestParameters = Compute<FinalizeWithdrawRequestParameters & FromParameter>;\n\n/**\n * Return type of {@link simulateFinalizeWithdrawRequest}: viem's `{ request, result }`.\n *\n * Written as an explicit alias over `SimulateContractReturnType<typeof symmioAbi, …>`\n * so the emitted declaration references the ABI by name instead of inlining the whole\n * ABI (which would bloat the published `.d.ts` and degrade consumers' type-checking).\n */\nexport type SimulateFinalizeWithdrawRequestReturnType = SimulateContractReturnType<\n typeof symmioAbi,\n \"finalizeWithdrawRequest\"\n>;\n\n/**\n * Dry-run {@link finalizeWithdrawRequest} without sending a transaction. Calls\n * `simulateContract` directly against the SYMMIO core via the public client; a\n * would-be revert (e.g. cooldown not elapsed) throws viem's call error.\n *\n * @param config - The SDK config.\n * @param parameters - Request owner subaccount, request id, optional `from`, optional chain id.\n * @returns viem's `{ request, result }`.\n * @throws {SymmError} when the chain is unsupported.\n * @throws Viem's call errors when the transaction would revert.\n */\nexport async function simulateFinalizeWithdrawRequest(\n config: Config,\n parameters: SimulateFinalizeWithdrawRequestParameters,\n): Promise<SimulateFinalizeWithdrawRequestReturnType> {\n const { chainId, user, requestId, from } = parameters;\n\n const { addresses } = config.getChainConfig(chainId);\n\n return config.getClient({ chainId }).simulateContract({\n address: addresses.symmioAddress,\n abi: symmioAbi,\n functionName: \"finalizeWithdrawRequest\",\n args: [user, requestId],\n account: from,\n });\n}\n"],"mappings":";;AAmCA,eAAsB,EACpB,GACA,GACoD;CACpD,IAAM,EAAE,YAAS,SAAM,cAAW,YAAS,GAErC,EAAE,iBAAc,EAAO,eAAe,CAAO;CAEnD,OAAO,EAAO,UAAU,EAAE,WAAQ,CAAC,EAAE,iBAAiB;EACpD,SAAS,EAAU;EACnB,KAAK;EACL,cAAc;EACd,MAAM,CAAC,GAAM,CAAS;EACtB,SAAS;CACX,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
import { simulateCallAsSubAccount as t } from "../internal/simulate-call-as-sub-account.js";
|
|
3
3
|
import { encodeFunctionData as n } from "viem";
|
|
4
4
|
//#region src/symmio-contracts/symmio/actions/simulate-initiate-withdraw.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-initiate-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-initiate-withdraw.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"simulate-initiate-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-initiate-withdraw.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport {\n simulateCallAsSubAccount,\n type SimulateCallAsSubAccountReturnType,\n} from \"../internal/simulate-call-as-sub-account\";\nimport type { InitiateWithdrawParameters } from \"./initiate-withdraw\";\n\n/**\n * Parameters for {@link simulateInitiateWithdraw}: the write's parameters plus an\n * optional `from` (the address the dry-run runs as).\n */\nexport type SimulateInitiateWithdrawParameters = Compute<InitiateWithdrawParameters & FromParameter>;\n\n/**\n * Return type of {@link simulateInitiateWithdraw}: viem's `{ request, result }` for\n * the routed AccountLayer `_call` (see {@link SimulateCallAsSubAccountReturnType}).\n */\nexport type SimulateInitiateWithdrawReturnType = SimulateCallAsSubAccountReturnType;\n\n/**\n * Dry-run {@link initiateWithdraw} without sending a transaction. Encodes the same\n * core `initiateWithdraw` calldata as the write and dry-runs it through the\n * AccountLayer `_call` proxy via the public client — a faithful simulation of\n * exactly what would be broadcast.\n *\n * @param config - The SDK config.\n * @param parameters - Subaccount, receiver parts, optional speed-up / provider data, optional `from`, optional chain id.\n * @returns viem's `{ request, result }` for the routed `_call`.\n * @throws {SymmError} when the chain is unsupported.\n * @throws Viem's call errors when the routed call would revert.\n */\nexport async function simulateInitiateWithdraw(\n config: Config,\n parameters: SimulateInitiateWithdrawParameters,\n): Promise<SimulateInitiateWithdrawReturnType> {\n const { chainId, account, parts, speedUp = false, providerData = \"0x\", from } = parameters;\n\n const data = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"initiateWithdraw\",\n args: [parts, speedUp, providerData],\n });\n\n return simulateCallAsSubAccount(config, { account, data, from, chainId });\n}\n"],"mappings":";;;;AAkCA,eAAsB,EACpB,GACA,GAC6C;CAC7C,IAAM,EAAE,YAAS,YAAS,UAAO,aAAU,IAAO,kBAAe,MAAM,YAAS;CAQhF,OAAO,EAAyB,GAAQ;EAAE;EAAS,MANtC,EAAmB;GAC9B,KAAK;GACL,cAAc;GACd,MAAM;IAAC;IAAO;IAAS;GAAY;EACrC,CAEmD;EAAM;EAAM;CAAQ,CAAC;AAC1E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { symmioAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { symmioAbi as e } from "../../abi/v0.8.6/symmio.js";
|
|
2
2
|
import { simulateCallAsSubAccount as t } from "../internal/simulate-call-as-sub-account.js";
|
|
3
3
|
import { encodeFunctionData as n } from "viem";
|
|
4
4
|
//#region src/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-request-cancel-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"simulate-request-cancel-withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/simulate-request-cancel-withdraw.ts"],"sourcesContent":["import { encodeFunctionData } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport type { Compute, FromParameter } from \"../../../shared/types/properties\";\nimport { symmioAbi } from \"../../abi/v0.8.6/symmio\";\nimport {\n simulateCallAsSubAccount,\n type SimulateCallAsSubAccountReturnType,\n} from \"../internal/simulate-call-as-sub-account\";\nimport type { RequestCancelWithdrawParameters } from \"./request-cancel-withdraw\";\n\n/**\n * Parameters for {@link simulateRequestCancelWithdraw}: the write's parameters\n * plus an optional `from` (the address the dry-run runs as).\n */\nexport type SimulateRequestCancelWithdrawParameters = Compute<RequestCancelWithdrawParameters & FromParameter>;\n\n/**\n * Return type of {@link simulateRequestCancelWithdraw}: viem's `{ request, result }`\n * for the routed AccountLayer `_call` (see {@link SimulateCallAsSubAccountReturnType}).\n */\nexport type SimulateRequestCancelWithdrawReturnType = SimulateCallAsSubAccountReturnType;\n\n/**\n * Dry-run {@link requestCancelWithdraw} without sending a transaction. Encodes the\n * same core `requestCancelWithdraw` calldata as the write and dry-runs it through\n * the AccountLayer `_call` proxy via the public client.\n *\n * @param config - The SDK config.\n * @param parameters - Subaccount, request id, optional `from`, optional chain id.\n * @returns viem's `{ request, result }` for the routed `_call`.\n * @throws {SymmError} when the chain is unsupported.\n * @throws Viem's call errors when the routed call would revert.\n */\nexport async function simulateRequestCancelWithdraw(\n config: Config,\n parameters: SimulateRequestCancelWithdrawParameters,\n): Promise<SimulateRequestCancelWithdrawReturnType> {\n const { chainId, account, requestId, from } = parameters;\n\n const data = encodeFunctionData({\n abi: symmioAbi,\n functionName: \"requestCancelWithdraw\",\n args: [requestId],\n });\n\n return simulateCallAsSubAccount(config, { account, data, from, chainId });\n}\n"],"mappings":";;;;AAiCA,eAAsB,EACpB,GACA,GACkD;CAClD,IAAM,EAAE,YAAS,YAAS,cAAW,YAAS;CAQ9C,OAAO,EAAyB,GAAQ;EAAE;EAAS,MANtC,EAAmB;GAC9B,KAAK;GACL,cAAc;GACd,MAAM,CAAC,CAAS;EAClB,CAEmD;EAAM;EAAM;CAAQ,CAAC;AAC1E"}
|
|
@@ -95,7 +95,7 @@ export type WithdrawReturnType = Hash;
|
|
|
95
95
|
* @example
|
|
96
96
|
* ```ts
|
|
97
97
|
* const { isolationType } = await getSubAccount(config, { account: "0xsub…" });
|
|
98
|
-
* const part = createClassicWithdrawPart({ id: 0n, amount: 1_000000n, receiver: "0xabc…", chainId:
|
|
98
|
+
* const part = createClassicWithdrawPart({ id: 0n, amount: 1_000000n, receiver: "0xabc…", chainId: 42161n });
|
|
99
99
|
* const hash = await withdraw(config, {
|
|
100
100
|
* account: "0xsub…",
|
|
101
101
|
* isolationType,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/withdraw.ts"],"sourcesContent":["import type { Address, Hash, Hex } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { SymmError } from \"../../../shared/errors/symm-error\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { SubAccountIsolationType, type SingleUpnlSig } from \"../../account-layer/types\";\nimport type { WithdrawReceiverPart } from \"../types\";\nimport { deallocateAndInitiateWithdraw } from \"./deallocate-and-initiate-withdraw\";\nimport { initiateWithdraw } from \"./initiate-withdraw\";\n\n/**\n * Parameters for {@link withdraw}.\n */\nexport type WithdrawParameters = Compute<\n WriteContractParameter & {\n /**\n * The subaccount to withdraw from. Both underlying actions route the call\n * through the AccountLayer `_call` proxy so the core attributes it to this\n * subaccount; the connected wallet must be its on-chain `owner`.\n */\n account: Address;\n /**\n * The subaccount's isolation strategy, which selects the withdraw path:\n * `CUSTOM` (cross-margin) deallocates then initiates; `MARKET` /\n * `MARKET_DIRECTION` (VA / lowcap) initiate only. Read it from the\n * subaccount detail (`getSubAccount` → `isolationType`).\n */\n isolationType: SubAccountIsolationType;\n /**\n * The receiver parts the withdrawal is split into. A plain same-chain\n * withdrawal is a single part with both provider fields set to the zero\n * address — see `createClassicWithdrawPart`.\n */\n parts: readonly WithdrawReceiverPart[];\n /**\n * Amount to move from the allocated balance back into the available balance,\n * in **18 decimals** (not the collateral token's decimals). Consumed only by\n * the `deallocate` leg, so it is **required when `isolationType` is `CUSTOM`**\n * and ignored otherwise.\n */\n amount?: bigint;\n /**\n * Opt into the cooldown speed-up flow. Only effective for speed-up-eligible\n * users; ignored otherwise.\n * @default false\n */\n speedUp?: boolean;\n /**\n * Opaque provider data forwarded to express/virtual providers (e.g. a signed\n * option). Pass `0x` for a classic withdrawal.\n * @default \"0x\"\n */\n providerData?: Hex;\n /**\n * A fresh Muon uPnL (`uPnl_A`) attestation for `account`, used only by the\n * `CUSTOM` (deallocate) path. Omit it to have the action fetch a fresh one;\n * pass one only to reuse a signature you already fetched. Ignored on the\n * `MARKET` / `MARKET_DIRECTION` path.\n */\n upnlSig?: SingleUpnlSig;\n }\n>;\n\n/** Return type of {@link withdraw}: the submitted transaction hash. */\nexport type WithdrawReturnType = Hash;\n\n/**\n * Withdraw from a subaccount, dispatching on its isolation strategy so callers\n * do not have to branch on where the collateral currently sits.\n *\n * The subaccount's {@link SubAccountIsolationType} determines which balance the\n * funds are in and therefore which underlying action runs:\n *\n * | `isolationType` | Balance | Action |\n * | ----------------------------------- | --------- | ------------------------------------ |\n * | `CUSTOM` (cross-margin) | allocated | {@link deallocateAndInitiateWithdraw} |\n * | `MARKET` / `MARKET_DIRECTION` (VA) | available | {@link initiateWithdraw} |\n *\n * `CUSTOM` funds sit in the **allocated** balance, so they must first be\n * deallocated into the available balance; this path batches the `deallocate` and\n * `initiateWithdraw` legs into one atomic transaction and therefore **requires**\n * `amount` (the 18-decimal deallocate amount). The VA paths (`MARKET` /\n * `MARKET_DIRECTION`) already hold their funds in the **available** balance, so\n * they only initiate the withdraw request and ignore `amount`.\n *\n * @remarks\n * Both underlying actions route through the AccountLayer `_call` proxy and dry-run\n * before writing unless `simulateBeforeWrite` is `false`. The `CUSTOM` path also\n * fetches a fresh Muon `upnlSig` for its `deallocate` leg when one is not passed —\n * see {@link deallocateAndInitiateWithdraw}. Reach for the underlying actions\n * directly when you already know the subaccount's isolation and want to skip the\n * dispatch.\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - Subaccount, its `isolationType`, receiver parts, optional\n * speed-up / provider data, optional Muon `upnlSig`, optional chain id, and\n * `amount` (18 decimals) — required for `CUSTOM`, ignored otherwise.\n * @returns The submitted transaction hash. The caller waits on the receipt.\n * @throws {SymmError} `validation` / `WITHDRAW_AMOUNT_REQUIRED` when\n * `isolationType` is `CUSTOM` but `amount` is omitted; also the config/wallet\n * errors the underlying actions throw.\n * @throws Viem's write errors (`ContractFunctionExecutionError`, ...).\n *\n * @example\n * ```ts\n * const { isolationType } = await getSubAccount(config, { account: \"0xsub…\" });\n * const part = createClassicWithdrawPart({ id: 0n, amount: 1_000000n, receiver: \"0xabc…\", chainId:
|
|
1
|
+
{"version":3,"file":"withdraw.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/actions/withdraw.ts"],"sourcesContent":["import type { Address, Hash, Hex } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { SymmError } from \"../../../shared/errors/symm-error\";\nimport type { Compute, WriteContractParameter } from \"../../../shared/types/properties\";\nimport { SubAccountIsolationType, type SingleUpnlSig } from \"../../account-layer/types\";\nimport type { WithdrawReceiverPart } from \"../types\";\nimport { deallocateAndInitiateWithdraw } from \"./deallocate-and-initiate-withdraw\";\nimport { initiateWithdraw } from \"./initiate-withdraw\";\n\n/**\n * Parameters for {@link withdraw}.\n */\nexport type WithdrawParameters = Compute<\n WriteContractParameter & {\n /**\n * The subaccount to withdraw from. Both underlying actions route the call\n * through the AccountLayer `_call` proxy so the core attributes it to this\n * subaccount; the connected wallet must be its on-chain `owner`.\n */\n account: Address;\n /**\n * The subaccount's isolation strategy, which selects the withdraw path:\n * `CUSTOM` (cross-margin) deallocates then initiates; `MARKET` /\n * `MARKET_DIRECTION` (VA / lowcap) initiate only. Read it from the\n * subaccount detail (`getSubAccount` → `isolationType`).\n */\n isolationType: SubAccountIsolationType;\n /**\n * The receiver parts the withdrawal is split into. A plain same-chain\n * withdrawal is a single part with both provider fields set to the zero\n * address — see `createClassicWithdrawPart`.\n */\n parts: readonly WithdrawReceiverPart[];\n /**\n * Amount to move from the allocated balance back into the available balance,\n * in **18 decimals** (not the collateral token's decimals). Consumed only by\n * the `deallocate` leg, so it is **required when `isolationType` is `CUSTOM`**\n * and ignored otherwise.\n */\n amount?: bigint;\n /**\n * Opt into the cooldown speed-up flow. Only effective for speed-up-eligible\n * users; ignored otherwise.\n * @default false\n */\n speedUp?: boolean;\n /**\n * Opaque provider data forwarded to express/virtual providers (e.g. a signed\n * option). Pass `0x` for a classic withdrawal.\n * @default \"0x\"\n */\n providerData?: Hex;\n /**\n * A fresh Muon uPnL (`uPnl_A`) attestation for `account`, used only by the\n * `CUSTOM` (deallocate) path. Omit it to have the action fetch a fresh one;\n * pass one only to reuse a signature you already fetched. Ignored on the\n * `MARKET` / `MARKET_DIRECTION` path.\n */\n upnlSig?: SingleUpnlSig;\n }\n>;\n\n/** Return type of {@link withdraw}: the submitted transaction hash. */\nexport type WithdrawReturnType = Hash;\n\n/**\n * Withdraw from a subaccount, dispatching on its isolation strategy so callers\n * do not have to branch on where the collateral currently sits.\n *\n * The subaccount's {@link SubAccountIsolationType} determines which balance the\n * funds are in and therefore which underlying action runs:\n *\n * | `isolationType` | Balance | Action |\n * | ----------------------------------- | --------- | ------------------------------------ |\n * | `CUSTOM` (cross-margin) | allocated | {@link deallocateAndInitiateWithdraw} |\n * | `MARKET` / `MARKET_DIRECTION` (VA) | available | {@link initiateWithdraw} |\n *\n * `CUSTOM` funds sit in the **allocated** balance, so they must first be\n * deallocated into the available balance; this path batches the `deallocate` and\n * `initiateWithdraw` legs into one atomic transaction and therefore **requires**\n * `amount` (the 18-decimal deallocate amount). The VA paths (`MARKET` /\n * `MARKET_DIRECTION`) already hold their funds in the **available** balance, so\n * they only initiate the withdraw request and ignore `amount`.\n *\n * @remarks\n * Both underlying actions route through the AccountLayer `_call` proxy and dry-run\n * before writing unless `simulateBeforeWrite` is `false`. The `CUSTOM` path also\n * fetches a fresh Muon `upnlSig` for its `deallocate` leg when one is not passed —\n * see {@link deallocateAndInitiateWithdraw}. Reach for the underlying actions\n * directly when you already know the subaccount's isolation and want to skip the\n * dispatch.\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - Subaccount, its `isolationType`, receiver parts, optional\n * speed-up / provider data, optional Muon `upnlSig`, optional chain id, and\n * `amount` (18 decimals) — required for `CUSTOM`, ignored otherwise.\n * @returns The submitted transaction hash. The caller waits on the receipt.\n * @throws {SymmError} `validation` / `WITHDRAW_AMOUNT_REQUIRED` when\n * `isolationType` is `CUSTOM` but `amount` is omitted; also the config/wallet\n * errors the underlying actions throw.\n * @throws Viem's write errors (`ContractFunctionExecutionError`, ...).\n *\n * @example\n * ```ts\n * const { isolationType } = await getSubAccount(config, { account: \"0xsub…\" });\n * const part = createClassicWithdrawPart({ id: 0n, amount: 1_000000n, receiver: \"0xabc…\", chainId: 42161n });\n * const hash = await withdraw(config, {\n * account: \"0xsub…\",\n * isolationType,\n * parts: [part],\n * // required only when isolationType === SubAccountIsolationType.CUSTOM:\n * amount: 1_000000000000000000n,\n * });\n * ```\n */\nexport async function withdraw(config: Config, parameters: WithdrawParameters): Promise<WithdrawReturnType> {\n if (parameters.isolationType === SubAccountIsolationType.CUSTOM) {\n if (parameters.amount === undefined) {\n throw new SymmError(\n \"validation\",\n \"WITHDRAW_AMOUNT_REQUIRED\",\n \"A CUSTOM (cross-margin) subaccount must supply `amount` (18-decimals) — the deallocate leg needs it.\",\n );\n }\n return deallocateAndInitiateWithdraw(config, {\n account: parameters.account,\n amount: parameters.amount,\n parts: parameters.parts,\n speedUp: parameters.speedUp,\n providerData: parameters.providerData,\n upnlSig: parameters.upnlSig,\n chainId: parameters.chainId,\n from: parameters.from,\n simulateBeforeWrite: parameters.simulateBeforeWrite,\n });\n }\n\n return initiateWithdraw(config, {\n account: parameters.account,\n parts: parameters.parts,\n speedUp: parameters.speedUp,\n providerData: parameters.providerData,\n chainId: parameters.chainId,\n from: parameters.from,\n simulateBeforeWrite: parameters.simulateBeforeWrite,\n });\n}\n"],"mappings":";;;;;AAmHA,eAAsB,EAAS,GAAgB,GAA6D;CAC1G,IAAI,EAAW,kBAAkB,EAAwB,QAAQ;EAC/D,IAAI,EAAW,WAAW,KAAA,GACxB,MAAM,IAAI,EACR,cACA,4BACA,sGACF;EAEF,OAAO,EAA8B,GAAQ;GAC3C,SAAS,EAAW;GACpB,QAAQ,EAAW;GACnB,OAAO,EAAW;GAClB,SAAS,EAAW;GACpB,cAAc,EAAW;GACzB,SAAS,EAAW;GACpB,SAAS,EAAW;GACpB,MAAM,EAAW;GACjB,qBAAqB,EAAW;EAClC,CAAC;CACH;CAEA,OAAO,EAAiB,GAAQ;EAC9B,SAAS,EAAW;EACpB,OAAO,EAAW;EAClB,SAAS,EAAW;EACpB,cAAc,EAAW;EACzB,SAAS,EAAW;EACpB,MAAM,EAAW;EACjB,qBAAqB,EAAW;CAClC,CAAC;AACH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { accountLayerAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { accountLayerAbi as e } from "../../abi/v0.8.6/account-layer.js";
|
|
2
2
|
import { shouldSimulateBeforeWrite as t } from "../../../shared/utils/simulate-before-write.js";
|
|
3
3
|
import { simulateCallAsSubAccount as n } from "./simulate-call-as-sub-account.js";
|
|
4
4
|
//#region src/symmio-contracts/symmio/internal/call-as-sub-account.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-as-sub-account.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/internal/call-as-sub-account.ts"],"sourcesContent":["import type { Address, Hash, Hex } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { shouldSimulateBeforeWrite } from \"../../../shared/utils/simulate-before-write\";\nimport { accountLayerAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"call-as-sub-account.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/internal/call-as-sub-account.ts"],"sourcesContent":["import type { Address, Hash, Hex } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { shouldSimulateBeforeWrite } from \"../../../shared/utils/simulate-before-write\";\nimport { accountLayerAbi } from \"../../abi/v0.8.6/account-layer\";\nimport { simulateCallAsSubAccount } from \"./simulate-call-as-sub-account\";\n\n/**\n * Execute pre-encoded SYMMIO-core calldata **as a subaccount**, by routing it\n * through the AccountLayer's `_call(account, callDatas[])` proxy.\n *\n * Internal helper for withdraw writes whose underlying core function takes the\n * caller (the subaccount) as the implicit `msg.sender` — `initiateWithdraw`,\n * `requestCancelWithdraw` — and therefore cannot be sent to the core directly by\n * the owner EOA.\n *\n * `data` may be a single calldata or an **array**. An array batches several core\n * calls into one `_call(account, callDatas[])`, which runs them in order in a\n * single transaction and reverts the whole transaction if any inner call reverts.\n *\n * @remarks\n * When the resolved `simulateBeforeWrite` is `true`, the routed `_call` is\n * dry-run via {@link simulateCallAsSubAccount} first; if it would revert the\n * decoded error is thrown and nothing is signed or broadcast.\n *\n * @param config - The SDK config (must have a `getWalletClient` resolver).\n * @param parameters - Subaccount address, the encoded core calldata (a single\n * `Hex`, or an array of `Hex` to batch several core calls into one atomic\n * `_call`), optional chain id, optional pre-flight opt-out.\n * @returns The submitted transaction hash.\n * @throws {SymmError} when the chain is unsupported or no wallet is available.\n */\nexport async function callAsSubAccount(\n config: Config,\n parameters: {\n account: Address;\n data: Hex | readonly Hex[];\n chainId?: number;\n from?: Address;\n simulateBeforeWrite?: boolean;\n },\n): Promise<Hash> {\n const { account, data, chainId, from } = parameters;\n const callDatas = typeof data === \"string\" ? [data] : data;\n\n const { addresses } = config.getChainConfig(chainId);\n const walletClient = await config.getWalletClient({ chainId, from });\n\n if (shouldSimulateBeforeWrite(config, parameters)) {\n await simulateCallAsSubAccount(config, { account, data, chainId, from: walletClient.account.address });\n }\n\n return walletClient.writeContract({\n address: addresses.accountLayerAddress,\n abi: accountLayerAbi,\n functionName: \"_call\",\n args: [account, callDatas],\n account: walletClient.account,\n chain: walletClient.chain,\n });\n}\n"],"mappings":";;;;AA+BA,eAAsB,EACpB,GACA,GAOe;CACf,IAAM,EAAE,YAAS,SAAM,YAAS,YAAS,GACnC,IAAY,OAAO,KAAS,WAAW,CAAC,CAAI,IAAI,GAEhD,EAAE,iBAAc,EAAO,eAAe,CAAO,GAC7C,IAAe,MAAM,EAAO,gBAAgB;EAAE;EAAS;CAAK,CAAC;CAMnE,OAJI,EAA0B,GAAQ,CAAU,KAC9C,MAAM,EAAyB,GAAQ;EAAE;EAAS;EAAM;EAAS,MAAM,EAAa,QAAQ;CAAQ,CAAC,GAGhG,EAAa,cAAc;EAChC,SAAS,EAAU;EACnB,KAAK;EACL,cAAc;EACd,MAAM,CAAC,GAAS,CAAS;EACzB,SAAS,EAAa;EACtB,OAAO,EAAa;CACtB,CAAC;AACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hex, SimulateContractReturnType } from 'viem';
|
|
2
2
|
import { Config } from '../../../core/config/index.js';
|
|
3
|
-
import { accountLayerAbi } from '../../abi/v0.8.
|
|
3
|
+
import { accountLayerAbi } from '../../abi/v0.8.6/account-layer.js';
|
|
4
4
|
/**
|
|
5
5
|
* Return type of {@link simulateCallAsSubAccount}: viem's `{ request, result }`
|
|
6
6
|
* for the AccountLayer `_call` proxy.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { accountLayerAbi as e } from "../../abi/v0.8.
|
|
1
|
+
import { accountLayerAbi as e } from "../../abi/v0.8.6/account-layer.js";
|
|
2
2
|
//#region src/symmio-contracts/symmio/internal/simulate-call-as-sub-account.ts
|
|
3
3
|
async function t(t, n) {
|
|
4
4
|
let { account: r, data: i, from: a, chainId: o } = n, s = typeof i == "string" ? [i] : i, { addresses: c } = t.getChainConfig(o);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulate-call-as-sub-account.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/internal/simulate-call-as-sub-account.ts"],"sourcesContent":["import type { Address, Hex, SimulateContractReturnType } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { accountLayerAbi } from \"../../abi/v0.8.
|
|
1
|
+
{"version":3,"file":"simulate-call-as-sub-account.js","names":[],"sources":["../../../../src/symmio-contracts/symmio/internal/simulate-call-as-sub-account.ts"],"sourcesContent":["import type { Address, Hex, SimulateContractReturnType } from \"viem\";\nimport type { Config } from \"../../../core/config\";\nimport { accountLayerAbi } from \"../../abi/v0.8.6/account-layer\";\n\n/**\n * Return type of {@link simulateCallAsSubAccount}: viem's `{ request, result }`\n * for the AccountLayer `_call` proxy.\n *\n * Written as an explicit alias over `SimulateContractReturnType<typeof accountLayerAbi, \"_call\">`\n * so the emitted declaration references the ABI by name instead of inlining the whole\n * ABI (which would bloat the published `.d.ts` and degrade consumers' type-checking).\n */\nexport type SimulateCallAsSubAccountReturnType = SimulateContractReturnType<typeof accountLayerAbi, \"_call\">;\n\n/**\n * Dry-run pre-encoded SYMMIO-core calldata **as a subaccount**, mirroring\n * {@link callAsSubAccount}: it simulates the AccountLayer `_call(account, [data])`\n * proxy via the public client rather than sending it. A faithful dry-run of\n * exactly what the write would broadcast.\n *\n * Internal helper for the `_call`-routed withdraw simulations\n * (`simulateInitiateWithdraw`, `simulateRequestCancelWithdraw`).\n *\n * @param config - The SDK config.\n * @param parameters - Subaccount address, the encoded core calldata (a single\n * `Hex`, or an array of `Hex` to batch several core calls into one `_call`),\n * optional `from`, optional chain id.\n * @returns viem's `{ request, result }` for the `_call`.\n * @throws {SymmError} when the chain is unsupported.\n * @throws Viem's call errors when the routed call would revert.\n */\nexport async function simulateCallAsSubAccount(\n config: Config,\n parameters: { account: Address; data: Hex | readonly Hex[]; from?: Address; chainId?: number },\n): Promise<SimulateCallAsSubAccountReturnType> {\n const { account, data, from, chainId } = parameters;\n const callDatas = typeof data === \"string\" ? [data] : data;\n\n const { addresses } = config.getChainConfig(chainId);\n\n return config.getClient({ chainId }).simulateContract({\n address: addresses.accountLayerAddress,\n abi: accountLayerAbi,\n functionName: \"_call\",\n args: [account, callDatas],\n account: from,\n });\n}\n"],"mappings":";;AA+BA,eAAsB,EACpB,GACA,GAC6C;CAC7C,IAAM,EAAE,YAAS,SAAM,SAAM,eAAY,GACnC,IAAY,OAAO,KAAS,WAAW,CAAC,CAAI,IAAI,GAEhD,EAAE,iBAAc,EAAO,eAAe,CAAO;CAEnD,OAAO,EAAO,UAAU,EAAE,WAAQ,CAAC,EAAE,iBAAiB;EACpD,SAAS,EAAU;EACnB,KAAK;EACL,cAAc;EACd,MAAM,CAAC,GAAS,CAAS;EACzB,SAAS;CACX,CAAC;AACH"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* v0.8.5 fragments for the withdraw-request read views.
|
|
3
|
+
*
|
|
4
|
+
* The `WithdrawRequest` output struct **grew** in perps-core v0.8.6 (a trailing
|
|
5
|
+
* `advancedAmount` field), so a v0.8.5 chain's response does not decode against
|
|
6
|
+
* the shipped v0.8.6 ABI. The withdraw read actions pick the fragment matching
|
|
7
|
+
* the chain's `contractsVersion` and return the v0.8.5 decode as-is — the
|
|
8
|
+
* version-grown `advancedAmount` field is optional on `WithdrawRequest` and
|
|
9
|
+
* stays `undefined` on chains whose contracts predate withdraw advances.
|
|
10
|
+
*
|
|
11
|
+
* Pinned from the `version_0.8.5` tag of `SYMM-IO/perps-core`
|
|
12
|
+
* ({@link https://github.com/SYMM-IO/perps-core/blob/version_0.8.5/abis/symmio.json}).
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare const getWithdrawRequestsAbiV085: readonly [{
|
|
17
|
+
readonly inputs: readonly [{
|
|
18
|
+
readonly internalType: "address";
|
|
19
|
+
readonly name: "user";
|
|
20
|
+
readonly type: "address";
|
|
21
|
+
}, {
|
|
22
|
+
readonly internalType: "uint256";
|
|
23
|
+
readonly name: "requestId";
|
|
24
|
+
readonly type: "uint256";
|
|
25
|
+
}];
|
|
26
|
+
readonly name: "getWithdrawRequests";
|
|
27
|
+
readonly outputs: readonly [{
|
|
28
|
+
readonly components: readonly [{
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly name: "id";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}, {
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly name: "user";
|
|
35
|
+
readonly type: "address";
|
|
36
|
+
}, {
|
|
37
|
+
readonly components: readonly [{
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
readonly name: "id";
|
|
40
|
+
readonly type: "uint256";
|
|
41
|
+
}, {
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "amount";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}, {
|
|
46
|
+
readonly internalType: "int256";
|
|
47
|
+
readonly name: "chainId";
|
|
48
|
+
readonly type: "int256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly internalType: "bytes";
|
|
51
|
+
readonly name: "receiver";
|
|
52
|
+
readonly type: "bytes";
|
|
53
|
+
}, {
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
readonly name: "virtualProvider";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly internalType: "address";
|
|
59
|
+
readonly name: "expressProvider";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}];
|
|
62
|
+
readonly internalType: "struct WithdrawReceiverPart[]";
|
|
63
|
+
readonly name: "parts";
|
|
64
|
+
readonly type: "tuple[]";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "uint256";
|
|
67
|
+
readonly name: "timestamp";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly name: "cooldownEndTime";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly internalType: "enum WithdrawStatus";
|
|
75
|
+
readonly name: "status";
|
|
76
|
+
readonly type: "uint8";
|
|
77
|
+
}, {
|
|
78
|
+
readonly internalType: "bool";
|
|
79
|
+
readonly name: "speedUp";
|
|
80
|
+
readonly type: "bool";
|
|
81
|
+
}, {
|
|
82
|
+
readonly internalType: "bool";
|
|
83
|
+
readonly name: "isCooldownModified";
|
|
84
|
+
readonly type: "bool";
|
|
85
|
+
}, {
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
readonly name: "provider";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly internalType: "bool";
|
|
91
|
+
readonly name: "isPureVirtual";
|
|
92
|
+
readonly type: "bool";
|
|
93
|
+
}, {
|
|
94
|
+
readonly internalType: "bytes";
|
|
95
|
+
readonly name: "providerData";
|
|
96
|
+
readonly type: "bytes";
|
|
97
|
+
}, {
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
readonly name: "totalAmount";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
}, {
|
|
102
|
+
readonly internalType: "uint256";
|
|
103
|
+
readonly name: "totalVirtualAmount";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
}];
|
|
106
|
+
readonly internalType: "struct WithdrawRequest";
|
|
107
|
+
readonly name: "";
|
|
108
|
+
readonly type: "tuple";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
}];
|
|
113
|
+
export declare const getPendingWithdrawRequestsAbiV085: readonly [{
|
|
114
|
+
readonly inputs: readonly [{
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
readonly name: "user";
|
|
117
|
+
readonly type: "address";
|
|
118
|
+
}, {
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly name: "start";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
}, {
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
readonly name: "size";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}];
|
|
127
|
+
readonly name: "getPendingWithdrawRequests";
|
|
128
|
+
readonly outputs: readonly [{
|
|
129
|
+
readonly components: readonly [{
|
|
130
|
+
readonly internalType: "uint256";
|
|
131
|
+
readonly name: "id";
|
|
132
|
+
readonly type: "uint256";
|
|
133
|
+
}, {
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
readonly name: "user";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
}, {
|
|
138
|
+
readonly components: readonly [{
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
readonly name: "id";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}, {
|
|
143
|
+
readonly internalType: "uint256";
|
|
144
|
+
readonly name: "amount";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
}, {
|
|
147
|
+
readonly internalType: "int256";
|
|
148
|
+
readonly name: "chainId";
|
|
149
|
+
readonly type: "int256";
|
|
150
|
+
}, {
|
|
151
|
+
readonly internalType: "bytes";
|
|
152
|
+
readonly name: "receiver";
|
|
153
|
+
readonly type: "bytes";
|
|
154
|
+
}, {
|
|
155
|
+
readonly internalType: "address";
|
|
156
|
+
readonly name: "virtualProvider";
|
|
157
|
+
readonly type: "address";
|
|
158
|
+
}, {
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
readonly name: "expressProvider";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}];
|
|
163
|
+
readonly internalType: "struct WithdrawReceiverPart[]";
|
|
164
|
+
readonly name: "parts";
|
|
165
|
+
readonly type: "tuple[]";
|
|
166
|
+
}, {
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "timestamp";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}, {
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
readonly name: "cooldownEndTime";
|
|
173
|
+
readonly type: "uint256";
|
|
174
|
+
}, {
|
|
175
|
+
readonly internalType: "enum WithdrawStatus";
|
|
176
|
+
readonly name: "status";
|
|
177
|
+
readonly type: "uint8";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "bool";
|
|
180
|
+
readonly name: "speedUp";
|
|
181
|
+
readonly type: "bool";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "bool";
|
|
184
|
+
readonly name: "isCooldownModified";
|
|
185
|
+
readonly type: "bool";
|
|
186
|
+
}, {
|
|
187
|
+
readonly internalType: "address";
|
|
188
|
+
readonly name: "provider";
|
|
189
|
+
readonly type: "address";
|
|
190
|
+
}, {
|
|
191
|
+
readonly internalType: "bool";
|
|
192
|
+
readonly name: "isPureVirtual";
|
|
193
|
+
readonly type: "bool";
|
|
194
|
+
}, {
|
|
195
|
+
readonly internalType: "bytes";
|
|
196
|
+
readonly name: "providerData";
|
|
197
|
+
readonly type: "bytes";
|
|
198
|
+
}, {
|
|
199
|
+
readonly internalType: "uint256";
|
|
200
|
+
readonly name: "totalAmount";
|
|
201
|
+
readonly type: "uint256";
|
|
202
|
+
}, {
|
|
203
|
+
readonly internalType: "uint256";
|
|
204
|
+
readonly name: "totalVirtualAmount";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
}];
|
|
207
|
+
readonly internalType: "struct WithdrawRequest[]";
|
|
208
|
+
readonly name: "";
|
|
209
|
+
readonly type: "tuple[]";
|
|
210
|
+
}];
|
|
211
|
+
readonly stateMutability: "view";
|
|
212
|
+
readonly type: "function";
|
|
213
|
+
}];
|
|
214
|
+
//# sourceMappingURL=withdraw-requests-v0-8-5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw-requests-v0-8-5.d.ts","sourceRoot":"","sources":["../../../../src/symmio-contracts/symmio/internal/withdraw-requests-v0-8-5.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4H7B,CAAC;AAEX,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiIpC,CAAC"}
|