@ember-finance/sdk 2.0.0-beta.0 → 2.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 +60 -64
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/src/abis/index.js +22 -10
- package/dist/src/api/api.d.ts +2 -2
- package/dist/src/api/api.js +18 -2
- package/dist/src/api/apis/accounts-api.d.ts +9 -9
- package/dist/src/api/apis/accounts-api.js +73 -63
- package/dist/src/api/apis/vaults-api.d.ts +20 -20
- package/dist/src/api/apis/vaults-api.js +140 -130
- package/dist/src/api/base.d.ts +1 -1
- package/dist/src/api/base.js +15 -7
- package/dist/src/api/common.d.ts +2 -2
- package/dist/src/api/common.js +25 -13
- package/dist/src/api/configuration.js +6 -2
- package/dist/src/api/index.d.ts +3 -3
- package/dist/src/api/index.js +19 -3
- package/dist/src/api/models/account-transaction-transaction-data.d.ts +5 -5
- package/dist/src/api/models/account-transaction-transaction-data.js +2 -1
- package/dist/src/api/models/account-transaction.d.ts +1 -1
- package/dist/src/api/models/account-transaction.js +4 -1
- package/dist/src/api/models/account-withdrawal-request.d.ts +2 -2
- package/dist/src/api/models/account-withdrawal-request.js +4 -1
- package/dist/src/api/models/apy-history-v2.d.ts +1 -1
- package/dist/src/api/models/apy-history-v2.js +2 -1
- package/dist/src/api/models/apy-history.js +2 -1
- package/dist/src/api/models/asset.js +2 -1
- package/dist/src/api/models/borrowed.d.ts +1 -1
- package/dist/src/api/models/borrowed.js +2 -1
- package/dist/src/api/models/chain.js +4 -1
- package/dist/src/api/models/coin-price.js +2 -1
- package/dist/src/api/models/deposit-transaction.d.ts +2 -2
- package/dist/src/api/models/deposit-transaction.js +2 -1
- package/dist/src/api/models/ember-position.d.ts +1 -1
- package/dist/src/api/models/ember-position.js +2 -1
- package/dist/src/api/models/exposure-coin.d.ts +1 -1
- package/dist/src/api/models/exposure-coin.js +2 -1
- package/dist/src/api/models/exposure-protocol.d.ts +6 -6
- package/dist/src/api/models/exposure-protocol.js +2 -1
- package/dist/src/api/models/exposure.d.ts +2 -2
- package/dist/src/api/models/exposure.js +2 -1
- package/dist/src/api/models/fee.d.ts +1 -1
- package/dist/src/api/models/fee.js +2 -1
- package/dist/src/api/models/fees.js +2 -1
- package/dist/src/api/models/history-interval.js +4 -1
- package/dist/src/api/models/index.d.ts +78 -78
- package/dist/src/api/models/index.js +94 -78
- package/dist/src/api/models/lp.d.ts +3 -3
- package/dist/src/api/models/lp.js +2 -1
- package/dist/src/api/models/manager.js +2 -1
- package/dist/src/api/models/min-withdrawal-shares-updated-event.js +2 -1
- package/dist/src/api/models/perps.d.ts +1 -1
- package/dist/src/api/models/perps.js +2 -1
- package/dist/src/api/models/pnl-history-interval.js +4 -1
- package/dist/src/api/models/pnl-history.js +2 -1
- package/dist/src/api/models/poc-report-asset.js +2 -1
- package/dist/src/api/models/poc-report-assets.d.ts +1 -1
- package/dist/src/api/models/poc-report-assets.js +2 -1
- package/dist/src/api/models/poc-report-exchange.d.ts +1 -1
- package/dist/src/api/models/poc-report-exchange.js +2 -1
- package/dist/src/api/models/poc-report-exchanges.d.ts +1 -1
- package/dist/src/api/models/poc-report-exchanges.js +2 -1
- package/dist/src/api/models/poc-report-protocol.js +2 -1
- package/dist/src/api/models/poc-report-token.js +2 -1
- package/dist/src/api/models/poc-report-wallet.d.ts +2 -2
- package/dist/src/api/models/poc-report-wallet.js +2 -1
- package/dist/src/api/models/poc-report-wallets.d.ts +1 -1
- package/dist/src/api/models/poc-report-wallets.js +2 -1
- package/dist/src/api/models/position-history-interval.js +4 -1
- package/dist/src/api/models/position-history.js +4 -1
- package/dist/src/api/models/position-value.js +4 -1
- package/dist/src/api/models/position.js +2 -1
- package/dist/src/api/models/process-requests-summary-event.js +2 -1
- package/dist/src/api/models/proof-of-capital-report.d.ts +3 -3
- package/dist/src/api/models/proof-of-capital-report.js +2 -1
- package/dist/src/api/models/protocol-fee-collected-event.js +2 -1
- package/dist/src/api/models/protocol-info.d.ts +3 -3
- package/dist/src/api/models/protocol-info.js +2 -1
- package/dist/src/api/models/protocol.js +2 -1
- package/dist/src/api/models/raw-event-event-data.d.ts +17 -17
- package/dist/src/api/models/raw-event-event-data.js +2 -1
- package/dist/src/api/models/raw-event.d.ts +1 -1
- package/dist/src/api/models/raw-event.js +4 -1
- package/dist/src/api/models/redeem-request-cancelled-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-cancelled-transaction.js +2 -1
- package/dist/src/api/models/redeem-request-processed-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-processed-transaction.js +2 -1
- package/dist/src/api/models/redeem-request-skipped-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-skipped-transaction.js +2 -1
- package/dist/src/api/models/redeem-request-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-transaction.js +2 -1
- package/dist/src/api/models/reported-apy.js +2 -1
- package/dist/src/api/models/request-processed-event.js +2 -1
- package/dist/src/api/models/request-redeemed-event.js +2 -1
- package/dist/src/api/models/reward-token.js +2 -1
- package/dist/src/api/models/reward.d.ts +1 -1
- package/dist/src/api/models/reward.js +2 -1
- package/dist/src/api/models/share-price-history.js +2 -1
- package/dist/src/api/models/strategy-account.d.ts +1 -1
- package/dist/src/api/models/strategy-account.js +2 -1
- package/dist/src/api/models/strategy.js +2 -1
- package/dist/src/api/models/sub-account.d.ts +1 -1
- package/dist/src/api/models/sub-account.js +2 -1
- package/dist/src/api/models/supplied.d.ts +1 -1
- package/dist/src/api/models/supplied.js +2 -1
- package/dist/src/api/models/tag.js +2 -1
- package/dist/src/api/models/tvl-history.js +2 -1
- package/dist/src/api/models/ultra-coin-info.js +2 -1
- package/dist/src/api/models/update-vault-strategies.d.ts +1 -1
- package/dist/src/api/models/update-vault-strategies.js +2 -1
- package/dist/src/api/models/vault-admin-changed-event.js +2 -1
- package/dist/src/api/models/vault-created-event.js +2 -1
- package/dist/src/api/models/vault-deposit-event.js +2 -1
- package/dist/src/api/models/vault-deposit-without-minting-shares-event.js +2 -1
- package/dist/src/api/models/vault-detail.d.ts +7 -7
- package/dist/src/api/models/vault-detail.js +4 -1
- package/dist/src/api/models/vault-fee-percentage-updated-event.js +2 -1
- package/dist/src/api/models/vault-info.js +2 -1
- package/dist/src/api/models/vault-max-tvl-updated-event.js +2 -1
- package/dist/src/api/models/vault-operator-changed-event.js +2 -1
- package/dist/src/api/models/vault-paused-status-updated-event.js +2 -1
- package/dist/src/api/models/vault-platform-fee-charged-event.js +2 -1
- package/dist/src/api/models/vault-protocol.js +2 -1
- package/dist/src/api/models/vault-rate-updated-event.js +2 -1
- package/dist/src/api/models/vault-slice.js +2 -1
- package/dist/src/api/models/vault-sub-account-updated-event.js +2 -1
- package/dist/src/api/models/vault-withdrawal-without-redeeming-shares-event.js +2 -1
- package/dist/src/api/models/vaults-stats.js +2 -1
- package/dist/src/api/models/yield-aggregate-value.js +2 -1
- package/dist/src/api/v2/api.d.ts +2 -2
- package/dist/src/api/v2/api.js +18 -2
- package/dist/src/api/v2/apis/accounts-api.d.ts +9 -9
- package/dist/src/api/v2/apis/accounts-api.js +66 -56
- package/dist/src/api/v2/apis/vaults-api.d.ts +57 -19
- package/dist/src/api/v2/apis/vaults-api.js +194 -106
- package/dist/src/api/v2/base.d.ts +1 -1
- package/dist/src/api/v2/base.js +15 -7
- package/dist/src/api/v2/common.d.ts +2 -2
- package/dist/src/api/v2/common.js +25 -13
- package/dist/src/api/v2/configuration.js +6 -2
- package/dist/src/api/v2/index.d.ts +3 -3
- package/dist/src/api/v2/index.js +19 -3
- package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +5 -5
- package/dist/src/api/v2/models/account-transaction-transaction-data.js +2 -1
- package/dist/src/api/v2/models/account-transaction.d.ts +1 -1
- package/dist/src/api/v2/models/account-transaction.js +4 -1
- package/dist/src/api/v2/models/account-vault-position-history.js +4 -1
- package/dist/src/api/v2/models/account-withdrawal-request.d.ts +2 -2
- package/dist/src/api/v2/models/account-withdrawal-request.js +4 -1
- package/dist/src/api/v2/models/aggregated-account-position-history.js +4 -1
- package/dist/src/api/v2/models/aggregated-proof-of-capital-report.d.ts +2 -2
- package/dist/src/api/v2/models/aggregated-proof-of-capital-report.js +2 -1
- package/dist/src/api/v2/models/apy-averages.d.ts +1 -1
- package/dist/src/api/v2/models/apy-averages.js +2 -1
- package/dist/src/api/v2/models/apy-history-response.d.ts +1 -1
- package/dist/src/api/v2/models/apy-history-response.js +2 -1
- package/dist/src/api/v2/models/apy-history.js +2 -1
- package/dist/src/api/v2/models/apy-period-average.js +2 -1
- package/dist/src/api/v2/models/asset.js +2 -1
- package/dist/src/api/v2/models/borrowed.d.ts +1 -1
- package/dist/src/api/v2/models/borrowed.js +2 -1
- package/dist/src/api/v2/models/chain-vault-details.d.ts +2 -2
- package/dist/src/api/v2/models/chain-vault-details.js +2 -1
- package/dist/src/api/v2/models/chain.js +4 -1
- package/dist/src/api/v2/models/coin-price.js +2 -1
- package/dist/src/api/v2/models/deposit-transaction.d.ts +2 -2
- package/dist/src/api/v2/models/deposit-transaction.js +2 -1
- package/dist/src/api/v2/models/ember-position.d.ts +1 -1
- package/dist/src/api/v2/models/ember-position.js +2 -1
- package/dist/src/api/v2/models/evm-contracts.d.ts +5 -5
- package/dist/src/api/v2/models/evm-contracts.js +2 -1
- package/dist/src/api/v2/models/evm-deposit-token.js +2 -1
- package/dist/src/api/v2/models/evm-price-feed.js +2 -1
- package/dist/src/api/v2/models/evm-protocol-config.js +2 -1
- package/dist/src/api/v2/models/evm-protocol-info.d.ts +1 -1
- package/dist/src/api/v2/models/evm-protocol-info.js +2 -1
- package/dist/src/api/v2/models/evm-receipt-token.js +2 -1
- package/dist/src/api/v2/models/evm-vault.js +2 -1
- package/dist/src/api/v2/models/exposure-coin.d.ts +1 -1
- package/dist/src/api/v2/models/exposure-coin.js +2 -1
- package/dist/src/api/v2/models/exposure-protocol.d.ts +6 -6
- package/dist/src/api/v2/models/exposure-protocol.js +2 -1
- package/dist/src/api/v2/models/exposure.d.ts +2 -2
- package/dist/src/api/v2/models/exposure.js +2 -1
- package/dist/src/api/v2/models/fee.d.ts +1 -1
- package/dist/src/api/v2/models/fee.js +2 -1
- package/dist/src/api/v2/models/fees.js +2 -1
- package/dist/src/api/v2/models/history-interval.js +4 -1
- package/dist/src/api/v2/models/index.d.ts +100 -99
- package/dist/src/api/v2/models/index.js +116 -99
- package/dist/src/api/v2/models/lp.d.ts +3 -3
- package/dist/src/api/v2/models/lp.js +2 -1
- package/dist/src/api/v2/models/manager.js +2 -1
- package/dist/src/api/v2/models/min-withdrawal-shares-updated-event.js +2 -1
- package/dist/src/api/v2/models/perps.d.ts +1 -1
- package/dist/src/api/v2/models/perps.js +2 -1
- package/dist/src/api/v2/models/pnl-by-chain.js +2 -1
- package/dist/src/api/v2/models/pnl-history-interval.js +4 -1
- package/dist/src/api/v2/models/pnl-history.js +2 -1
- package/dist/src/api/v2/models/poc-report-asset.js +2 -1
- package/dist/src/api/v2/models/poc-report-assets.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-assets.js +2 -1
- package/dist/src/api/v2/models/poc-report-exchange.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-exchange.js +2 -1
- package/dist/src/api/v2/models/poc-report-exchanges.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-exchanges.js +2 -1
- package/dist/src/api/v2/models/poc-report-protocol.js +2 -1
- package/dist/src/api/v2/models/poc-report-token.js +2 -1
- package/dist/src/api/v2/models/poc-report-wallet.d.ts +2 -2
- package/dist/src/api/v2/models/poc-report-wallet.js +2 -1
- package/dist/src/api/v2/models/poc-report-wallets.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-wallets.js +2 -1
- package/dist/src/api/v2/models/position-history-interval.js +4 -1
- package/dist/src/api/v2/models/position-value.js +4 -1
- package/dist/src/api/v2/models/position.js +2 -1
- package/dist/src/api/v2/models/process-requests-summary-event.js +2 -1
- package/dist/src/api/v2/models/proof-of-capital-report-status.js +4 -1
- package/dist/src/api/v2/models/proof-of-capital-report.d.ts +4 -4
- package/dist/src/api/v2/models/proof-of-capital-report.js +2 -1
- package/dist/src/api/v2/models/protocol-fee-collected-event.js +2 -1
- package/dist/src/api/v2/models/protocol-pnl-history.js +2 -1
- package/dist/src/api/v2/models/protocol-tvl-history.js +2 -1
- package/dist/src/api/v2/models/protocol.js +2 -1
- package/dist/src/api/v2/models/raw-event-event-data.d.ts +17 -17
- package/dist/src/api/v2/models/raw-event-event-data.js +2 -1
- package/dist/src/api/v2/models/raw-event.d.ts +1 -1
- package/dist/src/api/v2/models/raw-event.js +4 -1
- package/dist/src/api/v2/models/redeem-request-cancelled-transaction.d.ts +2 -2
- package/dist/src/api/v2/models/redeem-request-cancelled-transaction.js +2 -1
- package/dist/src/api/v2/models/redeem-request-processed-transaction.d.ts +2 -2
- package/dist/src/api/v2/models/redeem-request-processed-transaction.js +2 -1
- package/dist/src/api/v2/models/redeem-request-skipped-transaction.d.ts +2 -2
- package/dist/src/api/v2/models/redeem-request-skipped-transaction.js +2 -1
- package/dist/src/api/v2/models/redeem-request-transaction.d.ts +2 -2
- package/dist/src/api/v2/models/redeem-request-transaction.js +2 -1
- package/dist/src/api/v2/models/reported-apy.js +2 -1
- package/dist/src/api/v2/models/request-processed-event.js +2 -1
- package/dist/src/api/v2/models/request-redeemed-event.js +2 -1
- package/dist/src/api/v2/models/reward-token.js +2 -1
- package/dist/src/api/v2/models/reward.d.ts +1 -1
- package/dist/src/api/v2/models/reward.js +2 -1
- package/dist/src/api/v2/models/share-price-history.js +2 -1
- package/dist/src/api/v2/models/strategy-account.d.ts +1 -1
- package/dist/src/api/v2/models/strategy-account.js +2 -1
- package/dist/src/api/v2/models/strategy.js +2 -1
- package/dist/src/api/v2/models/sub-account.d.ts +1 -1
- package/dist/src/api/v2/models/sub-account.js +2 -1
- package/dist/src/api/v2/models/sui-protocol-info.d.ts +3 -3
- package/dist/src/api/v2/models/sui-protocol-info.js +2 -1
- package/dist/src/api/v2/models/supplied.d.ts +1 -1
- package/dist/src/api/v2/models/supplied.js +2 -1
- package/dist/src/api/v2/models/tag.js +2 -1
- package/dist/src/api/v2/models/tvl-by-chain.js +2 -1
- package/dist/src/api/v2/models/tvl-history.d.ts +1 -1
- package/dist/src/api/v2/models/tvl-history.js +2 -1
- package/dist/src/api/v2/models/ultra-coin-info.js +2 -1
- package/dist/src/api/v2/models/update-vault-strategies.d.ts +1 -1
- package/dist/src/api/v2/models/update-vault-strategies.js +2 -1
- package/dist/src/api/v2/models/vault-admin-changed-event.js +2 -1
- package/dist/src/api/v2/models/vault-created-event.js +2 -1
- package/dist/src/api/v2/models/vault-deposit-eligibility.d.ts +24 -0
- package/dist/src/api/v2/models/vault-deposit-eligibility.js +15 -0
- package/dist/src/api/v2/models/vault-deposit-event.js +2 -1
- package/dist/src/api/v2/models/vault-deposit-without-minting-shares-event.js +2 -1
- package/dist/src/api/v2/models/vault-detail.d.ts +20 -8
- package/dist/src/api/v2/models/vault-detail.js +4 -1
- package/dist/src/api/v2/models/vault-fee-percentage-updated-event.js +2 -1
- package/dist/src/api/v2/models/vault-info.js +2 -1
- package/dist/src/api/v2/models/vault-max-tvl-updated-event.js +2 -1
- package/dist/src/api/v2/models/vault-operator-changed-event.js +2 -1
- package/dist/src/api/v2/models/vault-paused-status-updated-event.js +2 -1
- package/dist/src/api/v2/models/vault-platform-fee-charged-event.js +2 -1
- package/dist/src/api/v2/models/vault-proof-of-capital-summary.d.ts +2 -2
- package/dist/src/api/v2/models/vault-proof-of-capital-summary.js +2 -1
- package/dist/src/api/v2/models/vault-protocol.js +2 -1
- package/dist/src/api/v2/models/vault-rate-updated-event.js +2 -1
- package/dist/src/api/v2/models/vault-slice.js +2 -1
- package/dist/src/api/v2/models/vault-sub-account-updated-event.js +2 -1
- package/dist/src/api/v2/models/vault-tag.js +2 -1
- package/dist/src/api/v2/models/vault-withdrawal-without-redeeming-shares-event.js +2 -1
- package/dist/src/api/v2/models/vaults-deployment-config-config.d.ts +2 -2
- package/dist/src/api/v2/models/vaults-deployment-config-config.js +2 -1
- package/dist/src/api/v2/models/vaults-deployment-config.d.ts +1 -1
- package/dist/src/api/v2/models/vaults-deployment-config.js +4 -1
- package/dist/src/api/v2/models/vaults-stats.js +2 -1
- package/dist/src/api/v2/models/yield-aggregate-value.js +2 -1
- package/dist/src/common/types.js +2 -1
- package/dist/src/ember-vaults.d.ts +17 -17
- package/dist/src/ember-vaults.js +37 -33
- package/dist/src/evm-vaults/index.d.ts +3 -3
- package/dist/src/evm-vaults/index.js +19 -3
- package/dist/src/evm-vaults/interfaces/index.js +2 -1
- package/dist/src/evm-vaults/on-chain-calls/admin.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/admin.js +6 -2
- package/dist/src/evm-vaults/on-chain-calls/index.d.ts +7 -7
- package/dist/src/evm-vaults/on-chain-calls/index.js +23 -7
- package/dist/src/evm-vaults/on-chain-calls/onchain-calls.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/onchain-calls.js +13 -9
- package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/operator.js +6 -2
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +41 -34
- package/dist/src/evm-vaults/on-chain-calls/user.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/user.js +15 -8
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +6 -2
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +19 -12
- package/dist/src/evm-vaults/utils/deployment-parser.d.ts +1 -1
- package/dist/src/evm-vaults/utils/deployment-parser.js +5 -1
- package/dist/src/evm-vaults/utils/index.d.ts +2 -2
- package/dist/src/evm-vaults/utils/index.js +18 -2
- package/dist/src/evm-vaults/utils/permit-utils.d.ts +2 -2
- package/dist/src/evm-vaults/utils/permit-utils.js +53 -12
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.js +19 -3
- package/dist/src/sui-vaults/index.d.ts +4 -4
- package/dist/src/sui-vaults/index.js +20 -4
- package/dist/src/sui-vaults/interfaces/bcs.js +18 -15
- package/dist/src/sui-vaults/interfaces/index.js +2 -1
- package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/admin.js +17 -13
- package/dist/src/sui-vaults/on-chain-calls/index.d.ts +6 -6
- package/dist/src/sui-vaults/on-chain-calls/index.js +22 -6
- package/dist/src/sui-vaults/on-chain-calls/onchain-calls.d.ts +3 -3
- package/dist/src/sui-vaults/on-chain-calls/onchain-calls.js +12 -8
- package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/operator.js +19 -15
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +50 -46
- package/dist/src/sui-vaults/on-chain-calls/user.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/user.js +22 -18
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +14 -10
- package/dist/src/sui-vaults/on-chain-calls/vault.d.ts +1 -1
- package/dist/src/sui-vaults/on-chain-calls/vault.js +7 -3
- package/dist/src/sui-vaults/utils/common.js +7 -3
- package/dist/src/sui-vaults/utils/deployment-parser.d.ts +1 -1
- package/dist/src/sui-vaults/utils/deployment-parser.js +5 -1
- package/dist/src/sui-vaults/utils/index.d.ts +2 -2
- package/dist/src/sui-vaults/utils/index.js +18 -2
- package/package.json +14 -24
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* tslint:disable */
|
|
2
3
|
/* eslint-disable */
|
|
3
4
|
/**
|
|
@@ -11,17 +12,22 @@
|
|
|
11
12
|
* https://openapi-generator.tech
|
|
12
13
|
* Do not edit the class manually.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.GetAccountWithdrawalRequestsStatusEnum = exports.GetAccountHistoryTypeEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
15
21
|
// Some imports not used depending on template conditions
|
|
16
22
|
// @ts-ignore
|
|
17
|
-
|
|
23
|
+
const common_1 = require("../common");
|
|
18
24
|
// @ts-ignore
|
|
19
|
-
|
|
25
|
+
const base_1 = require("../base");
|
|
20
26
|
/**
|
|
21
27
|
* AccountsApi - axios parameter creator
|
|
22
28
|
* @export
|
|
23
29
|
*/
|
|
24
|
-
|
|
30
|
+
const AccountsApiAxiosParamCreator = function (configuration) {
|
|
25
31
|
return {
|
|
26
32
|
/**
|
|
27
33
|
*
|
|
@@ -32,10 +38,10 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
32
38
|
*/
|
|
33
39
|
getAccountExposure: async (accountAddress, options = {}) => {
|
|
34
40
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
35
|
-
assertParamExists("getAccountExposure", "accountAddress", accountAddress);
|
|
41
|
+
(0, common_1.assertParamExists)("getAccountExposure", "accountAddress", accountAddress);
|
|
36
42
|
const localVarPath = `/api/v1/vaults/exposure/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
37
43
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
39
45
|
let baseOptions;
|
|
40
46
|
if (configuration) {
|
|
41
47
|
baseOptions = configuration.baseOptions;
|
|
@@ -43,7 +49,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
43
49
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
44
50
|
const localVarHeaderParameter = {};
|
|
45
51
|
const localVarQueryParameter = {};
|
|
46
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
52
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
47
53
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48
54
|
localVarRequestOptions.headers = {
|
|
49
55
|
...localVarHeaderParameter,
|
|
@@ -51,7 +57,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
51
57
|
...options.headers
|
|
52
58
|
};
|
|
53
59
|
return {
|
|
54
|
-
url: toPathString(localVarUrlObj),
|
|
60
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
55
61
|
options: localVarRequestOptions
|
|
56
62
|
};
|
|
57
63
|
},
|
|
@@ -70,12 +76,12 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
70
76
|
*/
|
|
71
77
|
getAccountHistory: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options = {}) => {
|
|
72
78
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
73
|
-
assertParamExists("getAccountHistory", "accountAddress", accountAddress);
|
|
79
|
+
(0, common_1.assertParamExists)("getAccountHistory", "accountAddress", accountAddress);
|
|
74
80
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
75
|
-
assertParamExists("getAccountHistory", "startTimeInMs", startTimeInMs);
|
|
81
|
+
(0, common_1.assertParamExists)("getAccountHistory", "startTimeInMs", startTimeInMs);
|
|
76
82
|
const localVarPath = `/api/v1/vaults/history/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
77
83
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
79
85
|
let baseOptions;
|
|
80
86
|
if (configuration) {
|
|
81
87
|
baseOptions = configuration.baseOptions;
|
|
@@ -101,7 +107,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
101
107
|
if (type !== undefined) {
|
|
102
108
|
localVarQueryParameter["type"] = type;
|
|
103
109
|
}
|
|
104
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
110
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
105
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
112
|
localVarRequestOptions.headers = {
|
|
107
113
|
...localVarHeaderParameter,
|
|
@@ -109,7 +115,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
109
115
|
...options.headers
|
|
110
116
|
};
|
|
111
117
|
return {
|
|
112
|
-
url: toPathString(localVarUrlObj),
|
|
118
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
113
119
|
options: localVarRequestOptions
|
|
114
120
|
};
|
|
115
121
|
},
|
|
@@ -124,10 +130,10 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
124
130
|
*/
|
|
125
131
|
getAccountPositionsHistory: async (accountAddress, limit, interval, options = {}) => {
|
|
126
132
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
127
|
-
assertParamExists("getAccountPositionsHistory", "accountAddress", accountAddress);
|
|
133
|
+
(0, common_1.assertParamExists)("getAccountPositionsHistory", "accountAddress", accountAddress);
|
|
128
134
|
const localVarPath = `/api/v1/vaults/positions-history/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
129
135
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
130
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
136
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
131
137
|
let baseOptions;
|
|
132
138
|
if (configuration) {
|
|
133
139
|
baseOptions = configuration.baseOptions;
|
|
@@ -141,7 +147,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
141
147
|
if (interval !== undefined) {
|
|
142
148
|
localVarQueryParameter["interval"] = interval;
|
|
143
149
|
}
|
|
144
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
150
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
151
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
152
|
localVarRequestOptions.headers = {
|
|
147
153
|
...localVarHeaderParameter,
|
|
@@ -149,7 +155,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
149
155
|
...options.headers
|
|
150
156
|
};
|
|
151
157
|
return {
|
|
152
|
-
url: toPathString(localVarUrlObj),
|
|
158
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
153
159
|
options: localVarRequestOptions
|
|
154
160
|
};
|
|
155
161
|
},
|
|
@@ -163,10 +169,10 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
163
169
|
*/
|
|
164
170
|
getAccountPositionsValue: async (accountAddress, vaultId, options = {}) => {
|
|
165
171
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
166
|
-
assertParamExists("getAccountPositionsValue", "accountAddress", accountAddress);
|
|
172
|
+
(0, common_1.assertParamExists)("getAccountPositionsValue", "accountAddress", accountAddress);
|
|
167
173
|
const localVarPath = `/api/v1/vaults/positions/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
168
174
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
175
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
176
|
let baseOptions;
|
|
171
177
|
if (configuration) {
|
|
172
178
|
baseOptions = configuration.baseOptions;
|
|
@@ -177,7 +183,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
177
183
|
if (vaultId !== undefined) {
|
|
178
184
|
localVarQueryParameter["vaultId"] = vaultId;
|
|
179
185
|
}
|
|
180
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
181
187
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
188
|
localVarRequestOptions.headers = {
|
|
183
189
|
...localVarHeaderParameter,
|
|
@@ -185,7 +191,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
185
191
|
...options.headers
|
|
186
192
|
};
|
|
187
193
|
return {
|
|
188
|
-
url: toPathString(localVarUrlObj),
|
|
194
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
195
|
options: localVarRequestOptions
|
|
190
196
|
};
|
|
191
197
|
},
|
|
@@ -204,12 +210,12 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
204
210
|
*/
|
|
205
211
|
getAccountWithdrawalRequests: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
206
212
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
207
|
-
assertParamExists("getAccountWithdrawalRequests", "accountAddress", accountAddress);
|
|
213
|
+
(0, common_1.assertParamExists)("getAccountWithdrawalRequests", "accountAddress", accountAddress);
|
|
208
214
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
209
|
-
assertParamExists("getAccountWithdrawalRequests", "startTimeInMs", startTimeInMs);
|
|
215
|
+
(0, common_1.assertParamExists)("getAccountWithdrawalRequests", "startTimeInMs", startTimeInMs);
|
|
210
216
|
const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
211
217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
218
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
219
|
let baseOptions;
|
|
214
220
|
if (configuration) {
|
|
215
221
|
baseOptions = configuration.baseOptions;
|
|
@@ -235,7 +241,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
235
241
|
if (status !== undefined) {
|
|
236
242
|
localVarQueryParameter["status"] = status;
|
|
237
243
|
}
|
|
238
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
244
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
239
245
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
246
|
localVarRequestOptions.headers = {
|
|
241
247
|
...localVarHeaderParameter,
|
|
@@ -243,7 +249,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
243
249
|
...options.headers
|
|
244
250
|
};
|
|
245
251
|
return {
|
|
246
|
-
url: toPathString(localVarUrlObj),
|
|
252
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
247
253
|
options: localVarRequestOptions
|
|
248
254
|
};
|
|
249
255
|
},
|
|
@@ -256,10 +262,10 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
256
262
|
*/
|
|
257
263
|
getAccountYieldValue: async (accountAddress, options = {}) => {
|
|
258
264
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
259
|
-
assertParamExists("getAccountYieldValue", "accountAddress", accountAddress);
|
|
265
|
+
(0, common_1.assertParamExists)("getAccountYieldValue", "accountAddress", accountAddress);
|
|
260
266
|
const localVarPath = `/api/v1/vaults/yield/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
261
267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
262
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
268
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
263
269
|
let baseOptions;
|
|
264
270
|
if (configuration) {
|
|
265
271
|
baseOptions = configuration.baseOptions;
|
|
@@ -267,7 +273,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
267
273
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
268
274
|
const localVarHeaderParameter = {};
|
|
269
275
|
const localVarQueryParameter = {};
|
|
270
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
276
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
271
277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
278
|
localVarRequestOptions.headers = {
|
|
273
279
|
...localVarHeaderParameter,
|
|
@@ -275,7 +281,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
275
281
|
...options.headers
|
|
276
282
|
};
|
|
277
283
|
return {
|
|
278
|
-
url: toPathString(localVarUrlObj),
|
|
284
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
279
285
|
options: localVarRequestOptions
|
|
280
286
|
};
|
|
281
287
|
},
|
|
@@ -291,12 +297,12 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
291
297
|
*/
|
|
292
298
|
getVaultAccountPositionsHistory: async (vaultId, accountAddress, limit, interval, options = {}) => {
|
|
293
299
|
// verify required parameter 'vaultId' is not null or undefined
|
|
294
|
-
assertParamExists("getVaultAccountPositionsHistory", "vaultId", vaultId);
|
|
300
|
+
(0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "vaultId", vaultId);
|
|
295
301
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
296
|
-
assertParamExists("getVaultAccountPositionsHistory", "accountAddress", accountAddress);
|
|
302
|
+
(0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "accountAddress", accountAddress);
|
|
297
303
|
const localVarPath = `/api/v1/vaults/position-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
298
304
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
299
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
305
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
300
306
|
let baseOptions;
|
|
301
307
|
if (configuration) {
|
|
302
308
|
baseOptions = configuration.baseOptions;
|
|
@@ -313,7 +319,7 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
313
319
|
if (interval !== undefined) {
|
|
314
320
|
localVarQueryParameter["interval"] = interval;
|
|
315
321
|
}
|
|
316
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
322
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
317
323
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
318
324
|
localVarRequestOptions.headers = {
|
|
319
325
|
...localVarHeaderParameter,
|
|
@@ -321,18 +327,19 @@ export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
321
327
|
...options.headers
|
|
322
328
|
};
|
|
323
329
|
return {
|
|
324
|
-
url: toPathString(localVarUrlObj),
|
|
330
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
325
331
|
options: localVarRequestOptions
|
|
326
332
|
};
|
|
327
333
|
}
|
|
328
334
|
};
|
|
329
335
|
};
|
|
336
|
+
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
330
337
|
/**
|
|
331
338
|
* AccountsApi - functional programming interface
|
|
332
339
|
* @export
|
|
333
340
|
*/
|
|
334
|
-
|
|
335
|
-
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration);
|
|
341
|
+
const AccountsApiFp = function (configuration) {
|
|
342
|
+
const localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
336
343
|
return {
|
|
337
344
|
/**
|
|
338
345
|
*
|
|
@@ -344,8 +351,8 @@ export const AccountsApiFp = function (configuration) {
|
|
|
344
351
|
async getAccountExposure(accountAddress, options) {
|
|
345
352
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountExposure(accountAddress, options);
|
|
346
353
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
347
|
-
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountExposure"]?.[localVarOperationServerIndex]?.url;
|
|
348
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
354
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountExposure"]?.[localVarOperationServerIndex]?.url;
|
|
355
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
349
356
|
},
|
|
350
357
|
/**
|
|
351
358
|
*
|
|
@@ -363,8 +370,8 @@ export const AccountsApiFp = function (configuration) {
|
|
|
363
370
|
async getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
364
371
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options);
|
|
365
372
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
366
|
-
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
367
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
373
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
374
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
368
375
|
},
|
|
369
376
|
/**
|
|
370
377
|
*
|
|
@@ -378,8 +385,8 @@ export const AccountsApiFp = function (configuration) {
|
|
|
378
385
|
async getAccountPositionsHistory(accountAddress, limit, interval, options) {
|
|
379
386
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsHistory(accountAddress, limit, interval, options);
|
|
380
387
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
381
|
-
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
382
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
388
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
389
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
383
390
|
},
|
|
384
391
|
/**
|
|
385
392
|
*
|
|
@@ -392,8 +399,8 @@ export const AccountsApiFp = function (configuration) {
|
|
|
392
399
|
async getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
393
400
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsValue(accountAddress, vaultId, options);
|
|
394
401
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
395
|
-
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountPositionsValue"]?.[localVarOperationServerIndex]?.url;
|
|
396
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
402
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsValue"]?.[localVarOperationServerIndex]?.url;
|
|
403
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
397
404
|
},
|
|
398
405
|
/**
|
|
399
406
|
*
|
|
@@ -411,8 +418,8 @@ export const AccountsApiFp = function (configuration) {
|
|
|
411
418
|
async getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
412
419
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options);
|
|
413
420
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
414
|
-
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
|
|
415
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
421
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
|
|
422
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
416
423
|
},
|
|
417
424
|
/**
|
|
418
425
|
*
|
|
@@ -424,8 +431,8 @@ export const AccountsApiFp = function (configuration) {
|
|
|
424
431
|
async getAccountYieldValue(accountAddress, options) {
|
|
425
432
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountYieldValue(accountAddress, options);
|
|
426
433
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
427
|
-
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
|
|
428
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
434
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
|
|
435
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
429
436
|
},
|
|
430
437
|
/**
|
|
431
438
|
*
|
|
@@ -440,17 +447,18 @@ export const AccountsApiFp = function (configuration) {
|
|
|
440
447
|
async getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
|
|
441
448
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options);
|
|
442
449
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
443
|
-
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getVaultAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
444
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
450
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getVaultAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
451
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
445
452
|
}
|
|
446
453
|
};
|
|
447
454
|
};
|
|
455
|
+
exports.AccountsApiFp = AccountsApiFp;
|
|
448
456
|
/**
|
|
449
457
|
* AccountsApi - factory interface
|
|
450
458
|
* @export
|
|
451
459
|
*/
|
|
452
|
-
|
|
453
|
-
const localVarFp = AccountsApiFp(configuration);
|
|
460
|
+
const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
461
|
+
const localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
454
462
|
return {
|
|
455
463
|
/**
|
|
456
464
|
*
|
|
@@ -556,13 +564,14 @@ export const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
556
564
|
}
|
|
557
565
|
};
|
|
558
566
|
};
|
|
567
|
+
exports.AccountsApiFactory = AccountsApiFactory;
|
|
559
568
|
/**
|
|
560
569
|
* AccountsApi - object-oriented interface
|
|
561
570
|
* @export
|
|
562
571
|
* @class AccountsApi
|
|
563
572
|
* @extends {BaseAPI}
|
|
564
573
|
*/
|
|
565
|
-
|
|
574
|
+
class AccountsApi extends base_1.BaseAPI {
|
|
566
575
|
/**
|
|
567
576
|
*
|
|
568
577
|
* @summary Get the exposure of the account
|
|
@@ -572,7 +581,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
572
581
|
* @memberof AccountsApi
|
|
573
582
|
*/
|
|
574
583
|
getAccountExposure(accountAddress, options) {
|
|
575
|
-
return AccountsApiFp(this.configuration)
|
|
584
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
576
585
|
.getAccountExposure(accountAddress, options)
|
|
577
586
|
.then(request => request(this.axios, this.basePath));
|
|
578
587
|
}
|
|
@@ -591,7 +600,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
591
600
|
* @memberof AccountsApi
|
|
592
601
|
*/
|
|
593
602
|
getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
594
|
-
return AccountsApiFp(this.configuration)
|
|
603
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
595
604
|
.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
|
|
596
605
|
.then(request => request(this.axios, this.basePath));
|
|
597
606
|
}
|
|
@@ -606,7 +615,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
606
615
|
* @memberof AccountsApi
|
|
607
616
|
*/
|
|
608
617
|
getAccountPositionsHistory(accountAddress, limit, interval, options) {
|
|
609
|
-
return AccountsApiFp(this.configuration)
|
|
618
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
610
619
|
.getAccountPositionsHistory(accountAddress, limit, interval, options)
|
|
611
620
|
.then(request => request(this.axios, this.basePath));
|
|
612
621
|
}
|
|
@@ -620,7 +629,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
620
629
|
* @memberof AccountsApi
|
|
621
630
|
*/
|
|
622
631
|
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
623
|
-
return AccountsApiFp(this.configuration)
|
|
632
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
624
633
|
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
625
634
|
.then(request => request(this.axios, this.basePath));
|
|
626
635
|
}
|
|
@@ -639,7 +648,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
639
648
|
* @memberof AccountsApi
|
|
640
649
|
*/
|
|
641
650
|
getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
642
|
-
return AccountsApiFp(this.configuration)
|
|
651
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
643
652
|
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
|
|
644
653
|
.then(request => request(this.axios, this.basePath));
|
|
645
654
|
}
|
|
@@ -652,7 +661,7 @@ export class AccountsApi extends BaseAPI {
|
|
|
652
661
|
* @memberof AccountsApi
|
|
653
662
|
*/
|
|
654
663
|
getAccountYieldValue(accountAddress, options) {
|
|
655
|
-
return AccountsApiFp(this.configuration)
|
|
664
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
656
665
|
.getAccountYieldValue(accountAddress, options)
|
|
657
666
|
.then(request => request(this.axios, this.basePath));
|
|
658
667
|
}
|
|
@@ -668,15 +677,16 @@ export class AccountsApi extends BaseAPI {
|
|
|
668
677
|
* @memberof AccountsApi
|
|
669
678
|
*/
|
|
670
679
|
getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
|
|
671
|
-
return AccountsApiFp(this.configuration)
|
|
680
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
672
681
|
.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
|
|
673
682
|
.then(request => request(this.axios, this.basePath));
|
|
674
683
|
}
|
|
675
684
|
}
|
|
685
|
+
exports.AccountsApi = AccountsApi;
|
|
676
686
|
/**
|
|
677
687
|
* @export
|
|
678
688
|
*/
|
|
679
|
-
|
|
689
|
+
exports.GetAccountHistoryTypeEnum = {
|
|
680
690
|
Deposit: "Deposit",
|
|
681
691
|
RedeemRequest: "RedeemRequest",
|
|
682
692
|
RedeemRequestProcessed: "RedeemRequestProcessed",
|
|
@@ -686,7 +696,7 @@ export const GetAccountHistoryTypeEnum = {
|
|
|
686
696
|
/**
|
|
687
697
|
* @export
|
|
688
698
|
*/
|
|
689
|
-
|
|
699
|
+
exports.GetAccountWithdrawalRequestsStatusEnum = {
|
|
690
700
|
Pending: "Pending",
|
|
691
701
|
PendingCancelling: "PendingCancelling",
|
|
692
702
|
Cancelled: "Cancelled",
|
|
@@ -9,27 +9,27 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from "../configuration
|
|
12
|
+
import type { Configuration } from "../configuration";
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
14
|
-
import { type RequestArgs, BaseAPI } from "../base
|
|
15
|
-
import type { ApyHistory } from "../models
|
|
16
|
-
import type { ApyHistoryV2 } from "../models
|
|
17
|
-
import type { CoinPrice } from "../models
|
|
18
|
-
import type { Exposure } from "../models
|
|
19
|
-
import type { Fees } from "../models
|
|
20
|
-
import type { HistoryInterval } from "../models
|
|
21
|
-
import type { PnlHistory } from "../models
|
|
22
|
-
import type { PnlHistoryInterval } from "../models
|
|
23
|
-
import type { ProofOfCapitalReport } from "../models
|
|
24
|
-
import type { ProtocolInfo } from "../models
|
|
25
|
-
import type { RawEvent } from "../models
|
|
26
|
-
import type { SharePriceHistory } from "../models
|
|
27
|
-
import type { Strategy } from "../models
|
|
28
|
-
import type { Tag } from "../models
|
|
29
|
-
import type { TvlHistory } from "../models
|
|
30
|
-
import type { UpdateVaultStrategies } from "../models
|
|
31
|
-
import type { VaultDetail } from "../models
|
|
32
|
-
import type { VaultsStats } from "../models
|
|
14
|
+
import { type RequestArgs, BaseAPI } from "../base";
|
|
15
|
+
import type { ApyHistory } from "../models";
|
|
16
|
+
import type { ApyHistoryV2 } from "../models";
|
|
17
|
+
import type { CoinPrice } from "../models";
|
|
18
|
+
import type { Exposure } from "../models";
|
|
19
|
+
import type { Fees } from "../models";
|
|
20
|
+
import type { HistoryInterval } from "../models";
|
|
21
|
+
import type { PnlHistory } from "../models";
|
|
22
|
+
import type { PnlHistoryInterval } from "../models";
|
|
23
|
+
import type { ProofOfCapitalReport } from "../models";
|
|
24
|
+
import type { ProtocolInfo } from "../models";
|
|
25
|
+
import type { RawEvent } from "../models";
|
|
26
|
+
import type { SharePriceHistory } from "../models";
|
|
27
|
+
import type { Strategy } from "../models";
|
|
28
|
+
import type { Tag } from "../models";
|
|
29
|
+
import type { TvlHistory } from "../models";
|
|
30
|
+
import type { UpdateVaultStrategies } from "../models";
|
|
31
|
+
import type { VaultDetail } from "../models";
|
|
32
|
+
import type { VaultsStats } from "../models";
|
|
33
33
|
/**
|
|
34
34
|
* VaultsApi - axios parameter creator
|
|
35
35
|
* @export
|