@ember-finance/sdk 2.0.0 → 2.0.1
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 +64 -60
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/src/abis/index.js +10 -22
- package/dist/src/api/api.d.ts +2 -2
- package/dist/src/api/api.js +2 -18
- package/dist/src/api/apis/accounts-api.d.ts +9 -9
- package/dist/src/api/apis/accounts-api.js +63 -73
- package/dist/src/api/apis/vaults-api.d.ts +20 -20
- package/dist/src/api/apis/vaults-api.js +130 -140
- package/dist/src/api/base.d.ts +1 -1
- package/dist/src/api/base.js +7 -15
- package/dist/src/api/common.d.ts +2 -2
- package/dist/src/api/common.js +13 -25
- package/dist/src/api/configuration.js +2 -6
- package/dist/src/api/index.d.ts +3 -3
- package/dist/src/api/index.js +3 -19
- package/dist/src/api/models/account-transaction-transaction-data.d.ts +5 -5
- package/dist/src/api/models/account-transaction-transaction-data.js +1 -2
- package/dist/src/api/models/account-transaction.d.ts +1 -1
- package/dist/src/api/models/account-transaction.js +1 -4
- package/dist/src/api/models/account-withdrawal-request.d.ts +2 -2
- package/dist/src/api/models/account-withdrawal-request.js +1 -4
- package/dist/src/api/models/apy-history-v2.d.ts +1 -1
- package/dist/src/api/models/apy-history-v2.js +1 -2
- package/dist/src/api/models/apy-history.js +1 -2
- package/dist/src/api/models/asset.js +1 -2
- package/dist/src/api/models/borrowed.d.ts +1 -1
- package/dist/src/api/models/borrowed.js +1 -2
- package/dist/src/api/models/chain.js +1 -4
- package/dist/src/api/models/coin-price.js +1 -2
- package/dist/src/api/models/deposit-transaction.d.ts +2 -2
- package/dist/src/api/models/deposit-transaction.js +1 -2
- package/dist/src/api/models/ember-position.d.ts +1 -1
- package/dist/src/api/models/ember-position.js +1 -2
- package/dist/src/api/models/exposure-coin.d.ts +1 -1
- package/dist/src/api/models/exposure-coin.js +1 -2
- package/dist/src/api/models/exposure-protocol.d.ts +6 -6
- package/dist/src/api/models/exposure-protocol.js +1 -2
- package/dist/src/api/models/exposure.d.ts +2 -2
- package/dist/src/api/models/exposure.js +1 -2
- package/dist/src/api/models/fee.d.ts +1 -1
- package/dist/src/api/models/fee.js +1 -2
- package/dist/src/api/models/fees.js +1 -2
- package/dist/src/api/models/history-interval.js +1 -4
- package/dist/src/api/models/index.d.ts +78 -78
- package/dist/src/api/models/index.js +78 -94
- package/dist/src/api/models/lp.d.ts +3 -3
- package/dist/src/api/models/lp.js +1 -2
- package/dist/src/api/models/manager.js +1 -2
- package/dist/src/api/models/min-withdrawal-shares-updated-event.js +1 -2
- package/dist/src/api/models/perps.d.ts +1 -1
- package/dist/src/api/models/perps.js +1 -2
- package/dist/src/api/models/pnl-history-interval.js +1 -4
- package/dist/src/api/models/pnl-history.js +1 -2
- package/dist/src/api/models/poc-report-asset.js +1 -2
- package/dist/src/api/models/poc-report-assets.d.ts +1 -1
- package/dist/src/api/models/poc-report-assets.js +1 -2
- package/dist/src/api/models/poc-report-exchange.d.ts +1 -1
- package/dist/src/api/models/poc-report-exchange.js +1 -2
- package/dist/src/api/models/poc-report-exchanges.d.ts +1 -1
- package/dist/src/api/models/poc-report-exchanges.js +1 -2
- package/dist/src/api/models/poc-report-protocol.js +1 -2
- package/dist/src/api/models/poc-report-token.js +1 -2
- package/dist/src/api/models/poc-report-wallet.d.ts +2 -2
- package/dist/src/api/models/poc-report-wallet.js +1 -2
- package/dist/src/api/models/poc-report-wallets.d.ts +1 -1
- package/dist/src/api/models/poc-report-wallets.js +1 -2
- package/dist/src/api/models/position-history-interval.js +1 -4
- package/dist/src/api/models/position-history.js +1 -4
- package/dist/src/api/models/position-value.js +1 -4
- package/dist/src/api/models/position.js +1 -2
- package/dist/src/api/models/process-requests-summary-event.js +1 -2
- package/dist/src/api/models/proof-of-capital-report.d.ts +3 -3
- package/dist/src/api/models/proof-of-capital-report.js +1 -2
- package/dist/src/api/models/protocol-fee-collected-event.js +1 -2
- package/dist/src/api/models/protocol-info.d.ts +3 -3
- package/dist/src/api/models/protocol-info.js +1 -2
- package/dist/src/api/models/protocol.js +1 -2
- package/dist/src/api/models/raw-event-event-data.d.ts +17 -17
- package/dist/src/api/models/raw-event-event-data.js +1 -2
- package/dist/src/api/models/raw-event.d.ts +1 -1
- package/dist/src/api/models/raw-event.js +1 -4
- package/dist/src/api/models/redeem-request-cancelled-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-cancelled-transaction.js +1 -2
- package/dist/src/api/models/redeem-request-processed-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-processed-transaction.js +1 -2
- package/dist/src/api/models/redeem-request-skipped-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-skipped-transaction.js +1 -2
- package/dist/src/api/models/redeem-request-transaction.d.ts +2 -2
- package/dist/src/api/models/redeem-request-transaction.js +1 -2
- package/dist/src/api/models/reported-apy.js +1 -2
- package/dist/src/api/models/request-processed-event.js +1 -2
- package/dist/src/api/models/request-redeemed-event.js +1 -2
- package/dist/src/api/models/reward-token.js +1 -2
- package/dist/src/api/models/reward.d.ts +1 -1
- package/dist/src/api/models/reward.js +1 -2
- package/dist/src/api/models/share-price-history.js +1 -2
- package/dist/src/api/models/strategy-account.d.ts +1 -1
- package/dist/src/api/models/strategy-account.js +1 -2
- package/dist/src/api/models/strategy.js +1 -2
- package/dist/src/api/models/sub-account.d.ts +1 -1
- package/dist/src/api/models/sub-account.js +1 -2
- package/dist/src/api/models/supplied.d.ts +1 -1
- package/dist/src/api/models/supplied.js +1 -2
- package/dist/src/api/models/tag.js +1 -2
- package/dist/src/api/models/tvl-history.js +1 -2
- package/dist/src/api/models/ultra-coin-info.js +1 -2
- package/dist/src/api/models/update-vault-strategies.d.ts +1 -1
- package/dist/src/api/models/update-vault-strategies.js +1 -2
- package/dist/src/api/models/vault-admin-changed-event.js +1 -2
- package/dist/src/api/models/vault-created-event.js +1 -2
- package/dist/src/api/models/vault-deposit-event.js +1 -2
- package/dist/src/api/models/vault-deposit-without-minting-shares-event.js +1 -2
- package/dist/src/api/models/vault-detail.d.ts +7 -7
- package/dist/src/api/models/vault-detail.js +1 -4
- package/dist/src/api/models/vault-fee-percentage-updated-event.js +1 -2
- package/dist/src/api/models/vault-info.js +1 -2
- package/dist/src/api/models/vault-max-tvl-updated-event.js +1 -2
- package/dist/src/api/models/vault-operator-changed-event.js +1 -2
- package/dist/src/api/models/vault-paused-status-updated-event.js +1 -2
- package/dist/src/api/models/vault-platform-fee-charged-event.js +1 -2
- package/dist/src/api/models/vault-protocol.js +1 -2
- package/dist/src/api/models/vault-rate-updated-event.js +1 -2
- package/dist/src/api/models/vault-slice.js +1 -2
- package/dist/src/api/models/vault-sub-account-updated-event.js +1 -2
- package/dist/src/api/models/vault-withdrawal-without-redeeming-shares-event.js +1 -2
- package/dist/src/api/models/vaults-stats.js +1 -2
- package/dist/src/api/models/yield-aggregate-value.js +1 -2
- package/dist/src/api/v2/api.d.ts +2 -2
- package/dist/src/api/v2/api.js +2 -18
- package/dist/src/api/v2/apis/accounts-api.d.ts +9 -9
- package/dist/src/api/v2/apis/accounts-api.js +56 -66
- package/dist/src/api/v2/apis/vaults-api.d.ts +20 -20
- package/dist/src/api/v2/apis/vaults-api.js +114 -124
- package/dist/src/api/v2/base.d.ts +1 -1
- package/dist/src/api/v2/base.js +7 -15
- package/dist/src/api/v2/common.d.ts +2 -2
- package/dist/src/api/v2/common.js +13 -25
- package/dist/src/api/v2/configuration.js +2 -6
- package/dist/src/api/v2/index.d.ts +3 -3
- package/dist/src/api/v2/index.js +3 -19
- 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 +1 -2
- package/dist/src/api/v2/models/account-transaction.d.ts +1 -1
- package/dist/src/api/v2/models/account-transaction.js +1 -4
- package/dist/src/api/v2/models/account-vault-position-history.js +1 -4
- package/dist/src/api/v2/models/account-withdrawal-request.d.ts +2 -2
- package/dist/src/api/v2/models/account-withdrawal-request.js +1 -4
- package/dist/src/api/v2/models/aggregated-account-position-history.js +1 -4
- 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 +1 -2
- package/dist/src/api/v2/models/apy-averages.d.ts +1 -1
- package/dist/src/api/v2/models/apy-averages.js +1 -2
- package/dist/src/api/v2/models/apy-history-response.d.ts +1 -1
- package/dist/src/api/v2/models/apy-history-response.js +1 -2
- package/dist/src/api/v2/models/apy-history.js +1 -2
- package/dist/src/api/v2/models/apy-period-average.js +1 -2
- package/dist/src/api/v2/models/asset.js +1 -2
- package/dist/src/api/v2/models/borrowed.d.ts +1 -1
- package/dist/src/api/v2/models/borrowed.js +1 -2
- package/dist/src/api/v2/models/chain-vault-details.d.ts +2 -2
- package/dist/src/api/v2/models/chain-vault-details.js +1 -2
- package/dist/src/api/v2/models/chain.js +1 -4
- package/dist/src/api/v2/models/coin-price.js +1 -2
- package/dist/src/api/v2/models/deposit-transaction.d.ts +2 -2
- package/dist/src/api/v2/models/deposit-transaction.js +1 -2
- package/dist/src/api/v2/models/ember-position.d.ts +1 -1
- package/dist/src/api/v2/models/ember-position.js +1 -2
- package/dist/src/api/v2/models/evm-contracts.d.ts +5 -5
- package/dist/src/api/v2/models/evm-contracts.js +1 -2
- package/dist/src/api/v2/models/evm-deposit-token.js +1 -2
- package/dist/src/api/v2/models/evm-price-feed.js +1 -2
- package/dist/src/api/v2/models/evm-protocol-config.js +1 -2
- package/dist/src/api/v2/models/evm-protocol-info.d.ts +1 -1
- package/dist/src/api/v2/models/evm-protocol-info.js +1 -2
- package/dist/src/api/v2/models/evm-receipt-token.js +1 -2
- package/dist/src/api/v2/models/evm-vault.js +1 -2
- package/dist/src/api/v2/models/exposure-coin.d.ts +1 -1
- package/dist/src/api/v2/models/exposure-coin.js +1 -2
- package/dist/src/api/v2/models/exposure-protocol.d.ts +6 -6
- package/dist/src/api/v2/models/exposure-protocol.js +1 -2
- package/dist/src/api/v2/models/exposure.d.ts +2 -2
- package/dist/src/api/v2/models/exposure.js +1 -2
- package/dist/src/api/v2/models/fee.d.ts +1 -1
- package/dist/src/api/v2/models/fee.js +1 -2
- package/dist/src/api/v2/models/fees.js +1 -2
- package/dist/src/api/v2/models/history-interval.js +1 -4
- package/dist/src/api/v2/models/index.d.ts +100 -100
- package/dist/src/api/v2/models/index.js +100 -116
- package/dist/src/api/v2/models/lp.d.ts +3 -3
- package/dist/src/api/v2/models/lp.js +1 -2
- package/dist/src/api/v2/models/manager.js +1 -2
- package/dist/src/api/v2/models/min-withdrawal-shares-updated-event.js +1 -2
- package/dist/src/api/v2/models/perps.d.ts +1 -1
- package/dist/src/api/v2/models/perps.js +1 -2
- package/dist/src/api/v2/models/pnl-by-chain.js +1 -2
- package/dist/src/api/v2/models/pnl-history-interval.js +1 -4
- package/dist/src/api/v2/models/pnl-history.js +1 -2
- package/dist/src/api/v2/models/poc-report-asset.js +1 -2
- package/dist/src/api/v2/models/poc-report-assets.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-assets.js +1 -2
- package/dist/src/api/v2/models/poc-report-exchange.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-exchange.js +1 -2
- package/dist/src/api/v2/models/poc-report-exchanges.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-exchanges.js +1 -2
- package/dist/src/api/v2/models/poc-report-protocol.js +1 -2
- package/dist/src/api/v2/models/poc-report-token.js +1 -2
- package/dist/src/api/v2/models/poc-report-wallet.d.ts +2 -2
- package/dist/src/api/v2/models/poc-report-wallet.js +1 -2
- package/dist/src/api/v2/models/poc-report-wallets.d.ts +1 -1
- package/dist/src/api/v2/models/poc-report-wallets.js +1 -2
- package/dist/src/api/v2/models/position-history-interval.js +1 -4
- package/dist/src/api/v2/models/position-value.js +1 -4
- package/dist/src/api/v2/models/position.js +1 -2
- package/dist/src/api/v2/models/process-requests-summary-event.js +1 -2
- package/dist/src/api/v2/models/proof-of-capital-report-status.js +1 -4
- 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 +1 -2
- package/dist/src/api/v2/models/protocol-fee-collected-event.js +1 -2
- package/dist/src/api/v2/models/protocol-pnl-history.js +1 -2
- package/dist/src/api/v2/models/protocol-tvl-history.js +1 -2
- package/dist/src/api/v2/models/protocol.js +1 -2
- 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 +1 -2
- package/dist/src/api/v2/models/raw-event.d.ts +1 -1
- package/dist/src/api/v2/models/raw-event.js +1 -4
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/src/api/v2/models/redeem-request-transaction.d.ts +2 -2
- package/dist/src/api/v2/models/redeem-request-transaction.js +1 -2
- package/dist/src/api/v2/models/reported-apy.js +1 -2
- package/dist/src/api/v2/models/request-processed-event.js +1 -2
- package/dist/src/api/v2/models/request-redeemed-event.js +1 -2
- package/dist/src/api/v2/models/reward-token.js +1 -2
- package/dist/src/api/v2/models/reward.d.ts +1 -1
- package/dist/src/api/v2/models/reward.js +1 -2
- package/dist/src/api/v2/models/share-price-history.js +1 -2
- package/dist/src/api/v2/models/strategy-account.d.ts +1 -1
- package/dist/src/api/v2/models/strategy-account.js +1 -2
- package/dist/src/api/v2/models/strategy.js +1 -2
- package/dist/src/api/v2/models/sub-account.d.ts +1 -1
- package/dist/src/api/v2/models/sub-account.js +1 -2
- package/dist/src/api/v2/models/sui-protocol-info.d.ts +3 -3
- package/dist/src/api/v2/models/sui-protocol-info.js +1 -2
- package/dist/src/api/v2/models/supplied.d.ts +1 -1
- package/dist/src/api/v2/models/supplied.js +1 -2
- package/dist/src/api/v2/models/tag.js +1 -2
- package/dist/src/api/v2/models/tvl-by-chain.js +1 -2
- package/dist/src/api/v2/models/tvl-history.d.ts +1 -1
- package/dist/src/api/v2/models/tvl-history.js +1 -2
- package/dist/src/api/v2/models/ultra-coin-info.js +1 -2
- package/dist/src/api/v2/models/update-vault-strategies.d.ts +1 -1
- package/dist/src/api/v2/models/update-vault-strategies.js +1 -2
- package/dist/src/api/v2/models/vault-admin-changed-event.js +1 -2
- package/dist/src/api/v2/models/vault-created-event.js +1 -2
- package/dist/src/api/v2/models/vault-deposit-eligibility.js +1 -2
- package/dist/src/api/v2/models/vault-deposit-event.js +1 -2
- package/dist/src/api/v2/models/vault-deposit-without-minting-shares-event.js +1 -2
- package/dist/src/api/v2/models/vault-detail.d.ts +8 -8
- package/dist/src/api/v2/models/vault-detail.js +1 -4
- package/dist/src/api/v2/models/vault-fee-percentage-updated-event.js +1 -2
- package/dist/src/api/v2/models/vault-info.js +1 -2
- package/dist/src/api/v2/models/vault-max-tvl-updated-event.js +1 -2
- package/dist/src/api/v2/models/vault-operator-changed-event.js +1 -2
- package/dist/src/api/v2/models/vault-paused-status-updated-event.js +1 -2
- package/dist/src/api/v2/models/vault-platform-fee-charged-event.js +1 -2
- 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 +1 -2
- package/dist/src/api/v2/models/vault-protocol.js +1 -2
- package/dist/src/api/v2/models/vault-rate-updated-event.js +1 -2
- package/dist/src/api/v2/models/vault-slice.js +1 -2
- package/dist/src/api/v2/models/vault-sub-account-updated-event.js +1 -2
- package/dist/src/api/v2/models/vault-tag.js +1 -2
- package/dist/src/api/v2/models/vault-withdrawal-without-redeeming-shares-event.js +1 -2
- 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 +1 -2
- package/dist/src/api/v2/models/vaults-deployment-config.d.ts +1 -1
- package/dist/src/api/v2/models/vaults-deployment-config.js +1 -4
- package/dist/src/api/v2/models/vaults-stats.js +1 -2
- package/dist/src/api/v2/models/yield-aggregate-value.js +1 -2
- package/dist/src/common/types.js +1 -2
- package/dist/src/ember-vaults.d.ts +17 -17
- package/dist/src/ember-vaults.js +33 -37
- package/dist/src/evm-vaults/index.d.ts +3 -3
- package/dist/src/evm-vaults/index.js +3 -19
- package/dist/src/evm-vaults/interfaces/index.js +1 -2
- package/dist/src/evm-vaults/on-chain-calls/admin.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/admin.js +2 -6
- package/dist/src/evm-vaults/on-chain-calls/index.d.ts +7 -7
- package/dist/src/evm-vaults/on-chain-calls/index.js +7 -23
- 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 +9 -13
- package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/operator.js +2 -6
- 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 +34 -41
- package/dist/src/evm-vaults/on-chain-calls/user.d.ts +3 -3
- package/dist/src/evm-vaults/on-chain-calls/user.js +8 -15
- 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 +2 -6
- 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 +12 -19
- package/dist/src/evm-vaults/utils/deployment-parser.d.ts +1 -1
- package/dist/src/evm-vaults/utils/deployment-parser.js +1 -5
- package/dist/src/evm-vaults/utils/index.d.ts +2 -2
- package/dist/src/evm-vaults/utils/index.js +2 -18
- package/dist/src/evm-vaults/utils/permit-utils.d.ts +2 -2
- package/dist/src/evm-vaults/utils/permit-utils.js +12 -53
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.js +3 -19
- package/dist/src/sui-vaults/index.d.ts +4 -4
- package/dist/src/sui-vaults/index.js +4 -20
- package/dist/src/sui-vaults/interfaces/bcs.js +15 -18
- package/dist/src/sui-vaults/interfaces/index.js +1 -2
- package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/admin.js +13 -17
- package/dist/src/sui-vaults/on-chain-calls/index.d.ts +6 -6
- package/dist/src/sui-vaults/on-chain-calls/index.js +6 -22
- 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 +8 -12
- package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/operator.js +15 -19
- 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 +46 -50
- package/dist/src/sui-vaults/on-chain-calls/user.d.ts +2 -2
- package/dist/src/sui-vaults/on-chain-calls/user.js +18 -22
- 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 +10 -14
- package/dist/src/sui-vaults/on-chain-calls/vault.d.ts +1 -1
- package/dist/src/sui-vaults/on-chain-calls/vault.js +41 -30
- package/dist/src/sui-vaults/utils/common.js +3 -7
- package/dist/src/sui-vaults/utils/deployment-parser.d.ts +1 -1
- package/dist/src/sui-vaults/utils/deployment-parser.js +1 -5
- package/dist/src/sui-vaults/utils/index.d.ts +2 -2
- package/dist/src/sui-vaults/utils/index.js +2 -18
- package/package.json +28 -14
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,22 +11,17 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.VaultsApi = exports.VaultsApiFactory = exports.VaultsApiFp = exports.VaultsApiAxiosParamCreator = void 0;
|
|
20
|
-
const axios_1 = __importDefault(require("axios"));
|
|
14
|
+
import globalAxios from "axios";
|
|
21
15
|
// Some imports not used depending on template conditions
|
|
22
16
|
// @ts-ignore
|
|
23
|
-
|
|
17
|
+
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from "../common.js";
|
|
24
18
|
// @ts-ignore
|
|
25
|
-
|
|
19
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from "../base.js";
|
|
26
20
|
/**
|
|
27
21
|
* VaultsApi - axios parameter creator
|
|
28
22
|
* @export
|
|
29
23
|
*/
|
|
30
|
-
const VaultsApiAxiosParamCreator = function (configuration) {
|
|
24
|
+
export const VaultsApiAxiosParamCreator = function (configuration) {
|
|
31
25
|
return {
|
|
32
26
|
/**
|
|
33
27
|
*
|
|
@@ -38,7 +32,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
38
32
|
getAllTags: async (options = {}) => {
|
|
39
33
|
const localVarPath = `/api/v1/vaults/tags`;
|
|
40
34
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
35
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42
36
|
let baseOptions;
|
|
43
37
|
if (configuration) {
|
|
44
38
|
baseOptions = configuration.baseOptions;
|
|
@@ -46,7 +40,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
46
40
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
47
41
|
const localVarHeaderParameter = {};
|
|
48
42
|
const localVarQueryParameter = {};
|
|
49
|
-
|
|
43
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
44
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
45
|
localVarRequestOptions.headers = {
|
|
52
46
|
...localVarHeaderParameter,
|
|
@@ -54,7 +48,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
54
48
|
...options.headers
|
|
55
49
|
};
|
|
56
50
|
return {
|
|
57
|
-
url:
|
|
51
|
+
url: toPathString(localVarUrlObj),
|
|
58
52
|
options: localVarRequestOptions
|
|
59
53
|
};
|
|
60
54
|
},
|
|
@@ -68,7 +62,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
68
62
|
getCoinsPrice: async (coinTypes, options = {}) => {
|
|
69
63
|
const localVarPath = `/api/v1/vaults/coins/price`;
|
|
70
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
71
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
65
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
72
66
|
let baseOptions;
|
|
73
67
|
if (configuration) {
|
|
74
68
|
baseOptions = configuration.baseOptions;
|
|
@@ -79,7 +73,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
79
73
|
if (coinTypes !== undefined) {
|
|
80
74
|
localVarQueryParameter["coinTypes"] = coinTypes;
|
|
81
75
|
}
|
|
82
|
-
|
|
76
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
77
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
78
|
localVarRequestOptions.headers = {
|
|
85
79
|
...localVarHeaderParameter,
|
|
@@ -87,7 +81,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
87
81
|
...options.headers
|
|
88
82
|
};
|
|
89
83
|
return {
|
|
90
|
-
url:
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
91
85
|
options: localVarRequestOptions
|
|
92
86
|
};
|
|
93
87
|
},
|
|
@@ -101,12 +95,12 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
101
95
|
*/
|
|
102
96
|
getFees: async (startTimestampInMs, endTimestampInMs, options = {}) => {
|
|
103
97
|
// verify required parameter 'startTimestampInMs' is not null or undefined
|
|
104
|
-
|
|
98
|
+
assertParamExists("getFees", "startTimestampInMs", startTimestampInMs);
|
|
105
99
|
// verify required parameter 'endTimestampInMs' is not null or undefined
|
|
106
|
-
|
|
100
|
+
assertParamExists("getFees", "endTimestampInMs", endTimestampInMs);
|
|
107
101
|
const localVarPath = `/api/v1/vaults/fees`;
|
|
108
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
104
|
let baseOptions;
|
|
111
105
|
if (configuration) {
|
|
112
106
|
baseOptions = configuration.baseOptions;
|
|
@@ -120,7 +114,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
120
114
|
if (endTimestampInMs !== undefined) {
|
|
121
115
|
localVarQueryParameter["endTimestampInMs"] = endTimestampInMs;
|
|
122
116
|
}
|
|
123
|
-
|
|
117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
118
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
119
|
localVarRequestOptions.headers = {
|
|
126
120
|
...localVarHeaderParameter,
|
|
@@ -128,7 +122,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
128
122
|
...options.headers
|
|
129
123
|
};
|
|
130
124
|
return {
|
|
131
|
-
url:
|
|
125
|
+
url: toPathString(localVarUrlObj),
|
|
132
126
|
options: localVarRequestOptions
|
|
133
127
|
};
|
|
134
128
|
},
|
|
@@ -143,7 +137,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
143
137
|
getProtocolPnlHistory: async (limit, interval, options = {}) => {
|
|
144
138
|
const localVarPath = `/api/v1/vaults/pnl-history`;
|
|
145
139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
140
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147
141
|
let baseOptions;
|
|
148
142
|
if (configuration) {
|
|
149
143
|
baseOptions = configuration.baseOptions;
|
|
@@ -157,7 +151,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
157
151
|
if (interval !== undefined) {
|
|
158
152
|
localVarQueryParameter["interval"] = interval;
|
|
159
153
|
}
|
|
160
|
-
|
|
154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
161
155
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
162
156
|
localVarRequestOptions.headers = {
|
|
163
157
|
...localVarHeaderParameter,
|
|
@@ -165,7 +159,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
165
159
|
...options.headers
|
|
166
160
|
};
|
|
167
161
|
return {
|
|
168
|
-
url:
|
|
162
|
+
url: toPathString(localVarUrlObj),
|
|
169
163
|
options: localVarRequestOptions
|
|
170
164
|
};
|
|
171
165
|
},
|
|
@@ -180,7 +174,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
180
174
|
getProtocolTvlHistory: async (limit, interval, options = {}) => {
|
|
181
175
|
const localVarPath = `/api/v1/vaults/tvl-history`;
|
|
182
176
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
184
178
|
let baseOptions;
|
|
185
179
|
if (configuration) {
|
|
186
180
|
baseOptions = configuration.baseOptions;
|
|
@@ -194,7 +188,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
194
188
|
if (interval !== undefined) {
|
|
195
189
|
localVarQueryParameter["interval"] = interval;
|
|
196
190
|
}
|
|
197
|
-
|
|
191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
192
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
193
|
localVarRequestOptions.headers = {
|
|
200
194
|
...localVarHeaderParameter,
|
|
@@ -202,7 +196,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
202
196
|
...options.headers
|
|
203
197
|
};
|
|
204
198
|
return {
|
|
205
|
-
url:
|
|
199
|
+
url: toPathString(localVarUrlObj),
|
|
206
200
|
options: localVarRequestOptions
|
|
207
201
|
};
|
|
208
202
|
},
|
|
@@ -218,10 +212,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
218
212
|
*/
|
|
219
213
|
getRawEvents: async (startTimeInMs, endTimeInMs, limit, page, options = {}) => {
|
|
220
214
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
221
|
-
|
|
215
|
+
assertParamExists("getRawEvents", "startTimeInMs", startTimeInMs);
|
|
222
216
|
const localVarPath = `/api/v1/vaults/raw-events`;
|
|
223
217
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
224
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
225
219
|
let baseOptions;
|
|
226
220
|
if (configuration) {
|
|
227
221
|
baseOptions = configuration.baseOptions;
|
|
@@ -241,7 +235,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
241
235
|
if (page !== undefined) {
|
|
242
236
|
localVarQueryParameter["page"] = page;
|
|
243
237
|
}
|
|
244
|
-
|
|
238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
245
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
240
|
localVarRequestOptions.headers = {
|
|
247
241
|
...localVarHeaderParameter,
|
|
@@ -249,7 +243,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
249
243
|
...options.headers
|
|
250
244
|
};
|
|
251
245
|
return {
|
|
252
|
-
url:
|
|
246
|
+
url: toPathString(localVarUrlObj),
|
|
253
247
|
options: localVarRequestOptions
|
|
254
248
|
};
|
|
255
249
|
},
|
|
@@ -264,10 +258,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
264
258
|
*/
|
|
265
259
|
getVaultApyHistory: async (vaultId, limit, interval, options = {}) => {
|
|
266
260
|
// verify required parameter 'vaultId' is not null or undefined
|
|
267
|
-
|
|
261
|
+
assertParamExists("getVaultApyHistory", "vaultId", vaultId);
|
|
268
262
|
const localVarPath = `/api/v1/vaults/apy-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
269
263
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
264
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
265
|
let baseOptions;
|
|
272
266
|
if (configuration) {
|
|
273
267
|
baseOptions = configuration.baseOptions;
|
|
@@ -281,7 +275,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
281
275
|
if (interval !== undefined) {
|
|
282
276
|
localVarQueryParameter["interval"] = interval;
|
|
283
277
|
}
|
|
284
|
-
|
|
278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
285
279
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
286
280
|
localVarRequestOptions.headers = {
|
|
287
281
|
...localVarHeaderParameter,
|
|
@@ -289,7 +283,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
289
283
|
...options.headers
|
|
290
284
|
};
|
|
291
285
|
return {
|
|
292
|
-
url:
|
|
286
|
+
url: toPathString(localVarUrlObj),
|
|
293
287
|
options: localVarRequestOptions
|
|
294
288
|
};
|
|
295
289
|
},
|
|
@@ -304,10 +298,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
304
298
|
*/
|
|
305
299
|
getVaultApyHistoryV2: async (vaultId, limit, interval, options = {}) => {
|
|
306
300
|
// verify required parameter 'vaultId' is not null or undefined
|
|
307
|
-
|
|
301
|
+
assertParamExists("getVaultApyHistoryV2", "vaultId", vaultId);
|
|
308
302
|
const localVarPath = `/api/v1/vaults/apy-history/v2/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
309
303
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
310
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
311
305
|
let baseOptions;
|
|
312
306
|
if (configuration) {
|
|
313
307
|
baseOptions = configuration.baseOptions;
|
|
@@ -321,7 +315,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
321
315
|
if (interval !== undefined) {
|
|
322
316
|
localVarQueryParameter["interval"] = interval;
|
|
323
317
|
}
|
|
324
|
-
|
|
318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
325
319
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
326
320
|
localVarRequestOptions.headers = {
|
|
327
321
|
...localVarHeaderParameter,
|
|
@@ -329,7 +323,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
329
323
|
...options.headers
|
|
330
324
|
};
|
|
331
325
|
return {
|
|
332
|
-
url:
|
|
326
|
+
url: toPathString(localVarUrlObj),
|
|
333
327
|
options: localVarRequestOptions
|
|
334
328
|
};
|
|
335
329
|
},
|
|
@@ -342,10 +336,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
342
336
|
*/
|
|
343
337
|
getVaultExposure: async (vaultId, options = {}) => {
|
|
344
338
|
// verify required parameter 'vaultId' is not null or undefined
|
|
345
|
-
|
|
339
|
+
assertParamExists("getVaultExposure", "vaultId", vaultId);
|
|
346
340
|
const localVarPath = `/api/v1/vaults/exposure/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
347
341
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
348
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
342
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
349
343
|
let baseOptions;
|
|
350
344
|
if (configuration) {
|
|
351
345
|
baseOptions = configuration.baseOptions;
|
|
@@ -353,7 +347,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
353
347
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
354
348
|
const localVarHeaderParameter = {};
|
|
355
349
|
const localVarQueryParameter = {};
|
|
356
|
-
|
|
350
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
357
351
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
358
352
|
localVarRequestOptions.headers = {
|
|
359
353
|
...localVarHeaderParameter,
|
|
@@ -361,7 +355,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
361
355
|
...options.headers
|
|
362
356
|
};
|
|
363
357
|
return {
|
|
364
|
-
url:
|
|
358
|
+
url: toPathString(localVarUrlObj),
|
|
365
359
|
options: localVarRequestOptions
|
|
366
360
|
};
|
|
367
361
|
},
|
|
@@ -376,10 +370,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
376
370
|
*/
|
|
377
371
|
getVaultPnlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
378
372
|
// verify required parameter 'vaultId' is not null or undefined
|
|
379
|
-
|
|
373
|
+
assertParamExists("getVaultPnlHistory", "vaultId", vaultId);
|
|
380
374
|
const localVarPath = `/api/v1/vaults/pnl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
381
375
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
382
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
376
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
383
377
|
let baseOptions;
|
|
384
378
|
if (configuration) {
|
|
385
379
|
baseOptions = configuration.baseOptions;
|
|
@@ -393,7 +387,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
393
387
|
if (interval !== undefined) {
|
|
394
388
|
localVarQueryParameter["interval"] = interval;
|
|
395
389
|
}
|
|
396
|
-
|
|
390
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
397
391
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
392
|
localVarRequestOptions.headers = {
|
|
399
393
|
...localVarHeaderParameter,
|
|
@@ -401,7 +395,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
401
395
|
...options.headers
|
|
402
396
|
};
|
|
403
397
|
return {
|
|
404
|
-
url:
|
|
398
|
+
url: toPathString(localVarUrlObj),
|
|
405
399
|
options: localVarRequestOptions
|
|
406
400
|
};
|
|
407
401
|
},
|
|
@@ -414,10 +408,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
414
408
|
*/
|
|
415
409
|
getVaultProofOfCapital: async (vaultId, options = {}) => {
|
|
416
410
|
// verify required parameter 'vaultId' is not null or undefined
|
|
417
|
-
|
|
411
|
+
assertParamExists("getVaultProofOfCapital", "vaultId", vaultId);
|
|
418
412
|
const localVarPath = `/api/v1/vaults/poc/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
419
413
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
420
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
414
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
421
415
|
let baseOptions;
|
|
422
416
|
if (configuration) {
|
|
423
417
|
baseOptions = configuration.baseOptions;
|
|
@@ -425,7 +419,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
425
419
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
426
420
|
const localVarHeaderParameter = {};
|
|
427
421
|
const localVarQueryParameter = {};
|
|
428
|
-
|
|
422
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
429
423
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
430
424
|
localVarRequestOptions.headers = {
|
|
431
425
|
...localVarHeaderParameter,
|
|
@@ -433,7 +427,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
433
427
|
...options.headers
|
|
434
428
|
};
|
|
435
429
|
return {
|
|
436
|
-
url:
|
|
430
|
+
url: toPathString(localVarUrlObj),
|
|
437
431
|
options: localVarRequestOptions
|
|
438
432
|
};
|
|
439
433
|
},
|
|
@@ -448,10 +442,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
448
442
|
*/
|
|
449
443
|
getVaultSharePriceHistory: async (vaultId, limit, interval, options = {}) => {
|
|
450
444
|
// verify required parameter 'vaultId' is not null or undefined
|
|
451
|
-
|
|
445
|
+
assertParamExists("getVaultSharePriceHistory", "vaultId", vaultId);
|
|
452
446
|
const localVarPath = `/api/v1/vaults/share-price-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
453
447
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
454
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
448
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
455
449
|
let baseOptions;
|
|
456
450
|
if (configuration) {
|
|
457
451
|
baseOptions = configuration.baseOptions;
|
|
@@ -465,7 +459,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
465
459
|
if (interval !== undefined) {
|
|
466
460
|
localVarQueryParameter["interval"] = interval;
|
|
467
461
|
}
|
|
468
|
-
|
|
462
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
469
463
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
470
464
|
localVarRequestOptions.headers = {
|
|
471
465
|
...localVarHeaderParameter,
|
|
@@ -473,7 +467,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
473
467
|
...options.headers
|
|
474
468
|
};
|
|
475
469
|
return {
|
|
476
|
-
url:
|
|
470
|
+
url: toPathString(localVarUrlObj),
|
|
477
471
|
options: localVarRequestOptions
|
|
478
472
|
};
|
|
479
473
|
},
|
|
@@ -486,10 +480,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
486
480
|
*/
|
|
487
481
|
getVaultStrategy: async (vaultId, options = {}) => {
|
|
488
482
|
// verify required parameter 'vaultId' is not null or undefined
|
|
489
|
-
|
|
483
|
+
assertParamExists("getVaultStrategy", "vaultId", vaultId);
|
|
490
484
|
const localVarPath = `/api/v1/vaults/strategy/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
491
485
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
486
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
493
487
|
let baseOptions;
|
|
494
488
|
if (configuration) {
|
|
495
489
|
baseOptions = configuration.baseOptions;
|
|
@@ -497,7 +491,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
497
491
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
498
492
|
const localVarHeaderParameter = {};
|
|
499
493
|
const localVarQueryParameter = {};
|
|
500
|
-
|
|
494
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
501
495
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
502
496
|
localVarRequestOptions.headers = {
|
|
503
497
|
...localVarHeaderParameter,
|
|
@@ -505,7 +499,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
505
499
|
...options.headers
|
|
506
500
|
};
|
|
507
501
|
return {
|
|
508
|
-
url:
|
|
502
|
+
url: toPathString(localVarUrlObj),
|
|
509
503
|
options: localVarRequestOptions
|
|
510
504
|
};
|
|
511
505
|
},
|
|
@@ -520,10 +514,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
520
514
|
*/
|
|
521
515
|
getVaultTvlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
522
516
|
// verify required parameter 'vaultId' is not null or undefined
|
|
523
|
-
|
|
517
|
+
assertParamExists("getVaultTvlHistory", "vaultId", vaultId);
|
|
524
518
|
const localVarPath = `/api/v1/vaults/tvl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
525
519
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
520
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
527
521
|
let baseOptions;
|
|
528
522
|
if (configuration) {
|
|
529
523
|
baseOptions = configuration.baseOptions;
|
|
@@ -537,7 +531,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
537
531
|
if (interval !== undefined) {
|
|
538
532
|
localVarQueryParameter["interval"] = interval;
|
|
539
533
|
}
|
|
540
|
-
|
|
534
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
541
535
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
542
536
|
localVarRequestOptions.headers = {
|
|
543
537
|
...localVarHeaderParameter,
|
|
@@ -545,7 +539,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
545
539
|
...options.headers
|
|
546
540
|
};
|
|
547
541
|
return {
|
|
548
|
-
url:
|
|
542
|
+
url: toPathString(localVarUrlObj),
|
|
549
543
|
options: localVarRequestOptions
|
|
550
544
|
};
|
|
551
545
|
},
|
|
@@ -561,7 +555,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
561
555
|
getVaults: async (vaultId, receiptCoinSymbol, includeHidden, options = {}) => {
|
|
562
556
|
const localVarPath = `/api/v1/vaults`;
|
|
563
557
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
564
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
558
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
565
559
|
let baseOptions;
|
|
566
560
|
if (configuration) {
|
|
567
561
|
baseOptions = configuration.baseOptions;
|
|
@@ -578,7 +572,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
578
572
|
if (includeHidden !== undefined) {
|
|
579
573
|
localVarQueryParameter["includeHidden"] = includeHidden;
|
|
580
574
|
}
|
|
581
|
-
|
|
575
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
582
576
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
583
577
|
localVarRequestOptions.headers = {
|
|
584
578
|
...localVarHeaderParameter,
|
|
@@ -586,7 +580,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
586
580
|
...options.headers
|
|
587
581
|
};
|
|
588
582
|
return {
|
|
589
|
-
url:
|
|
583
|
+
url: toPathString(localVarUrlObj),
|
|
590
584
|
options: localVarRequestOptions
|
|
591
585
|
};
|
|
592
586
|
},
|
|
@@ -599,7 +593,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
599
593
|
getVaultsProtocolInfo: async (options = {}) => {
|
|
600
594
|
const localVarPath = `/api/v1/vaults/info`;
|
|
601
595
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
602
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
596
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
597
|
let baseOptions;
|
|
604
598
|
if (configuration) {
|
|
605
599
|
baseOptions = configuration.baseOptions;
|
|
@@ -607,7 +601,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
607
601
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
608
602
|
const localVarHeaderParameter = {};
|
|
609
603
|
const localVarQueryParameter = {};
|
|
610
|
-
|
|
604
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
611
605
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
612
606
|
localVarRequestOptions.headers = {
|
|
613
607
|
...localVarHeaderParameter,
|
|
@@ -615,7 +609,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
615
609
|
...options.headers
|
|
616
610
|
};
|
|
617
611
|
return {
|
|
618
|
-
url:
|
|
612
|
+
url: toPathString(localVarUrlObj),
|
|
619
613
|
options: localVarRequestOptions
|
|
620
614
|
};
|
|
621
615
|
},
|
|
@@ -628,7 +622,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
628
622
|
getVaultsStats: async (options = {}) => {
|
|
629
623
|
const localVarPath = `/api/v1/vaults/stats`;
|
|
630
624
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
631
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
625
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
632
626
|
let baseOptions;
|
|
633
627
|
if (configuration) {
|
|
634
628
|
baseOptions = configuration.baseOptions;
|
|
@@ -636,7 +630,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
636
630
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
637
631
|
const localVarHeaderParameter = {};
|
|
638
632
|
const localVarQueryParameter = {};
|
|
639
|
-
|
|
633
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
640
634
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
641
635
|
localVarRequestOptions.headers = {
|
|
642
636
|
...localVarHeaderParameter,
|
|
@@ -644,7 +638,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
644
638
|
...options.headers
|
|
645
639
|
};
|
|
646
640
|
return {
|
|
647
|
-
url:
|
|
641
|
+
url: toPathString(localVarUrlObj),
|
|
648
642
|
options: localVarRequestOptions
|
|
649
643
|
};
|
|
650
644
|
},
|
|
@@ -657,10 +651,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
657
651
|
*/
|
|
658
652
|
updateVaultStrategy: async (updateVaultStrategies, options = {}) => {
|
|
659
653
|
// verify required parameter 'updateVaultStrategies' is not null or undefined
|
|
660
|
-
|
|
654
|
+
assertParamExists("updateVaultStrategy", "updateVaultStrategies", updateVaultStrategies);
|
|
661
655
|
const localVarPath = `/api/v1/vaults/strategy`;
|
|
662
656
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
663
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
664
658
|
let baseOptions;
|
|
665
659
|
if (configuration) {
|
|
666
660
|
baseOptions = configuration.baseOptions;
|
|
@@ -669,28 +663,27 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
669
663
|
const localVarHeaderParameter = {};
|
|
670
664
|
const localVarQueryParameter = {};
|
|
671
665
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
672
|
-
|
|
666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
673
667
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
674
668
|
localVarRequestOptions.headers = {
|
|
675
669
|
...localVarHeaderParameter,
|
|
676
670
|
...headersFromBaseOptions,
|
|
677
671
|
...options.headers
|
|
678
672
|
};
|
|
679
|
-
localVarRequestOptions.data =
|
|
673
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateVaultStrategies, localVarRequestOptions, configuration);
|
|
680
674
|
return {
|
|
681
|
-
url:
|
|
675
|
+
url: toPathString(localVarUrlObj),
|
|
682
676
|
options: localVarRequestOptions
|
|
683
677
|
};
|
|
684
678
|
}
|
|
685
679
|
};
|
|
686
680
|
};
|
|
687
|
-
exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
|
|
688
681
|
/**
|
|
689
682
|
* VaultsApi - functional programming interface
|
|
690
683
|
* @export
|
|
691
684
|
*/
|
|
692
|
-
const VaultsApiFp = function (configuration) {
|
|
693
|
-
const localVarAxiosParamCreator =
|
|
685
|
+
export const VaultsApiFp = function (configuration) {
|
|
686
|
+
const localVarAxiosParamCreator = VaultsApiAxiosParamCreator(configuration);
|
|
694
687
|
return {
|
|
695
688
|
/**
|
|
696
689
|
*
|
|
@@ -701,9 +694,9 @@ const VaultsApiFp = function (configuration) {
|
|
|
701
694
|
async getAllTags(options) {
|
|
702
695
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
|
|
703
696
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
704
|
-
const localVarOperationServerBasePath =
|
|
697
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getAllTags"]?.[localVarOperationServerIndex]
|
|
705
698
|
?.url;
|
|
706
|
-
return (axios, basePath) =>
|
|
699
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
707
700
|
},
|
|
708
701
|
/**
|
|
709
702
|
*
|
|
@@ -715,8 +708,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
715
708
|
async getCoinsPrice(coinTypes, options) {
|
|
716
709
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinsPrice(coinTypes, options);
|
|
717
710
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
718
|
-
const localVarOperationServerBasePath =
|
|
719
|
-
return (axios, basePath) =>
|
|
711
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getCoinsPrice"]?.[localVarOperationServerIndex]?.url;
|
|
712
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
720
713
|
},
|
|
721
714
|
/**
|
|
722
715
|
*
|
|
@@ -729,9 +722,9 @@ const VaultsApiFp = function (configuration) {
|
|
|
729
722
|
async getFees(startTimestampInMs, endTimestampInMs, options) {
|
|
730
723
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFees(startTimestampInMs, endTimestampInMs, options);
|
|
731
724
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
732
|
-
const localVarOperationServerBasePath =
|
|
725
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getFees"]?.[localVarOperationServerIndex]
|
|
733
726
|
?.url;
|
|
734
|
-
return (axios, basePath) =>
|
|
727
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
735
728
|
},
|
|
736
729
|
/**
|
|
737
730
|
*
|
|
@@ -744,8 +737,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
744
737
|
async getProtocolPnlHistory(limit, interval, options) {
|
|
745
738
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolPnlHistory(limit, interval, options);
|
|
746
739
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
747
|
-
const localVarOperationServerBasePath =
|
|
748
|
-
return (axios, basePath) =>
|
|
740
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProtocolPnlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
741
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
749
742
|
},
|
|
750
743
|
/**
|
|
751
744
|
*
|
|
@@ -758,8 +751,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
758
751
|
async getProtocolTvlHistory(limit, interval, options) {
|
|
759
752
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolTvlHistory(limit, interval, options);
|
|
760
753
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
761
|
-
const localVarOperationServerBasePath =
|
|
762
|
-
return (axios, basePath) =>
|
|
754
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProtocolTvlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
755
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
763
756
|
},
|
|
764
757
|
/**
|
|
765
758
|
*
|
|
@@ -774,8 +767,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
774
767
|
async getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
|
|
775
768
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options);
|
|
776
769
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
777
|
-
const localVarOperationServerBasePath =
|
|
778
|
-
return (axios, basePath) =>
|
|
770
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getRawEvents"]?.[localVarOperationServerIndex]?.url;
|
|
771
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
779
772
|
},
|
|
780
773
|
/**
|
|
781
774
|
*
|
|
@@ -789,8 +782,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
789
782
|
async getVaultApyHistory(vaultId, limit, interval, options) {
|
|
790
783
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistory(vaultId, limit, interval, options);
|
|
791
784
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
792
|
-
const localVarOperationServerBasePath =
|
|
793
|
-
return (axios, basePath) =>
|
|
785
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
|
|
786
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
794
787
|
},
|
|
795
788
|
/**
|
|
796
789
|
*
|
|
@@ -804,8 +797,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
804
797
|
async getVaultApyHistoryV2(vaultId, limit, interval, options) {
|
|
805
798
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistoryV2(vaultId, limit, interval, options);
|
|
806
799
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
807
|
-
const localVarOperationServerBasePath =
|
|
808
|
-
return (axios, basePath) =>
|
|
800
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultApyHistoryV2"]?.[localVarOperationServerIndex]?.url;
|
|
801
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
809
802
|
},
|
|
810
803
|
/**
|
|
811
804
|
*
|
|
@@ -817,8 +810,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
817
810
|
async getVaultExposure(vaultId, options) {
|
|
818
811
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultExposure(vaultId, options);
|
|
819
812
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
820
|
-
const localVarOperationServerBasePath =
|
|
821
|
-
return (axios, basePath) =>
|
|
813
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultExposure"]?.[localVarOperationServerIndex]?.url;
|
|
814
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
822
815
|
},
|
|
823
816
|
/**
|
|
824
817
|
*
|
|
@@ -832,8 +825,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
832
825
|
async getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
833
826
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultPnlHistory(vaultId, limit, interval, options);
|
|
834
827
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
835
|
-
const localVarOperationServerBasePath =
|
|
836
|
-
return (axios, basePath) =>
|
|
828
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultPnlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
829
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
837
830
|
},
|
|
838
831
|
/**
|
|
839
832
|
*
|
|
@@ -845,8 +838,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
845
838
|
async getVaultProofOfCapital(vaultId, options) {
|
|
846
839
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultProofOfCapital(vaultId, options);
|
|
847
840
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
848
|
-
const localVarOperationServerBasePath =
|
|
849
|
-
return (axios, basePath) =>
|
|
841
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultProofOfCapital"]?.[localVarOperationServerIndex]?.url;
|
|
842
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
850
843
|
},
|
|
851
844
|
/**
|
|
852
845
|
*
|
|
@@ -860,8 +853,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
860
853
|
async getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
861
854
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultSharePriceHistory(vaultId, limit, interval, options);
|
|
862
855
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
863
|
-
const localVarOperationServerBasePath =
|
|
864
|
-
return (axios, basePath) =>
|
|
856
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
|
|
857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
865
858
|
},
|
|
866
859
|
/**
|
|
867
860
|
*
|
|
@@ -873,8 +866,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
873
866
|
async getVaultStrategy(vaultId, options) {
|
|
874
867
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultStrategy(vaultId, options);
|
|
875
868
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
876
|
-
const localVarOperationServerBasePath =
|
|
877
|
-
return (axios, basePath) =>
|
|
869
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultStrategy"]?.[localVarOperationServerIndex]?.url;
|
|
870
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
878
871
|
},
|
|
879
872
|
/**
|
|
880
873
|
*
|
|
@@ -888,8 +881,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
888
881
|
async getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
889
882
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultTvlHistory(vaultId, limit, interval, options);
|
|
890
883
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
891
|
-
const localVarOperationServerBasePath =
|
|
892
|
-
return (axios, basePath) =>
|
|
884
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultTvlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
885
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
893
886
|
},
|
|
894
887
|
/**
|
|
895
888
|
*
|
|
@@ -903,9 +896,9 @@ const VaultsApiFp = function (configuration) {
|
|
|
903
896
|
async getVaults(vaultId, receiptCoinSymbol, includeHidden, options) {
|
|
904
897
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, includeHidden, options);
|
|
905
898
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
906
|
-
const localVarOperationServerBasePath =
|
|
899
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
|
|
907
900
|
?.url;
|
|
908
|
-
return (axios, basePath) =>
|
|
901
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
909
902
|
},
|
|
910
903
|
/**
|
|
911
904
|
*
|
|
@@ -916,8 +909,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
916
909
|
async getVaultsProtocolInfo(options) {
|
|
917
910
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsProtocolInfo(options);
|
|
918
911
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
919
|
-
const localVarOperationServerBasePath =
|
|
920
|
-
return (axios, basePath) =>
|
|
912
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
|
|
913
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
921
914
|
},
|
|
922
915
|
/**
|
|
923
916
|
*
|
|
@@ -928,8 +921,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
928
921
|
async getVaultsStats(options) {
|
|
929
922
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsStats(options);
|
|
930
923
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
931
|
-
const localVarOperationServerBasePath =
|
|
932
|
-
return (axios, basePath) =>
|
|
924
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
|
|
925
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
933
926
|
},
|
|
934
927
|
/**
|
|
935
928
|
*
|
|
@@ -941,18 +934,17 @@ const VaultsApiFp = function (configuration) {
|
|
|
941
934
|
async updateVaultStrategy(updateVaultStrategies, options) {
|
|
942
935
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultStrategy(updateVaultStrategies, options);
|
|
943
936
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
944
|
-
const localVarOperationServerBasePath =
|
|
945
|
-
return (axios, basePath) =>
|
|
937
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.updateVaultStrategy"]?.[localVarOperationServerIndex]?.url;
|
|
938
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
946
939
|
}
|
|
947
940
|
};
|
|
948
941
|
};
|
|
949
|
-
exports.VaultsApiFp = VaultsApiFp;
|
|
950
942
|
/**
|
|
951
943
|
* VaultsApi - factory interface
|
|
952
944
|
* @export
|
|
953
945
|
*/
|
|
954
|
-
const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
955
|
-
const localVarFp =
|
|
946
|
+
export const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
947
|
+
const localVarFp = VaultsApiFp(configuration);
|
|
956
948
|
return {
|
|
957
949
|
/**
|
|
958
950
|
*
|
|
@@ -1187,14 +1179,13 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
1187
1179
|
}
|
|
1188
1180
|
};
|
|
1189
1181
|
};
|
|
1190
|
-
exports.VaultsApiFactory = VaultsApiFactory;
|
|
1191
1182
|
/**
|
|
1192
1183
|
* VaultsApi - object-oriented interface
|
|
1193
1184
|
* @export
|
|
1194
1185
|
* @class VaultsApi
|
|
1195
1186
|
* @extends {BaseAPI}
|
|
1196
1187
|
*/
|
|
1197
|
-
class VaultsApi extends
|
|
1188
|
+
export class VaultsApi extends BaseAPI {
|
|
1198
1189
|
/**
|
|
1199
1190
|
*
|
|
1200
1191
|
* @summary Get all tags
|
|
@@ -1203,7 +1194,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1203
1194
|
* @memberof VaultsApi
|
|
1204
1195
|
*/
|
|
1205
1196
|
getAllTags(options) {
|
|
1206
|
-
return
|
|
1197
|
+
return VaultsApiFp(this.configuration)
|
|
1207
1198
|
.getAllTags(options)
|
|
1208
1199
|
.then(request => request(this.axios, this.basePath));
|
|
1209
1200
|
}
|
|
@@ -1216,7 +1207,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1216
1207
|
* @memberof VaultsApi
|
|
1217
1208
|
*/
|
|
1218
1209
|
getCoinsPrice(coinTypes, options) {
|
|
1219
|
-
return
|
|
1210
|
+
return VaultsApiFp(this.configuration)
|
|
1220
1211
|
.getCoinsPrice(coinTypes, options)
|
|
1221
1212
|
.then(request => request(this.axios, this.basePath));
|
|
1222
1213
|
}
|
|
@@ -1230,7 +1221,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1230
1221
|
* @memberof VaultsApi
|
|
1231
1222
|
*/
|
|
1232
1223
|
getFees(startTimestampInMs, endTimestampInMs, options) {
|
|
1233
|
-
return
|
|
1224
|
+
return VaultsApiFp(this.configuration)
|
|
1234
1225
|
.getFees(startTimestampInMs, endTimestampInMs, options)
|
|
1235
1226
|
.then(request => request(this.axios, this.basePath));
|
|
1236
1227
|
}
|
|
@@ -1244,7 +1235,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1244
1235
|
* @memberof VaultsApi
|
|
1245
1236
|
*/
|
|
1246
1237
|
getProtocolPnlHistory(limit, interval, options) {
|
|
1247
|
-
return
|
|
1238
|
+
return VaultsApiFp(this.configuration)
|
|
1248
1239
|
.getProtocolPnlHistory(limit, interval, options)
|
|
1249
1240
|
.then(request => request(this.axios, this.basePath));
|
|
1250
1241
|
}
|
|
@@ -1258,7 +1249,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1258
1249
|
* @memberof VaultsApi
|
|
1259
1250
|
*/
|
|
1260
1251
|
getProtocolTvlHistory(limit, interval, options) {
|
|
1261
|
-
return
|
|
1252
|
+
return VaultsApiFp(this.configuration)
|
|
1262
1253
|
.getProtocolTvlHistory(limit, interval, options)
|
|
1263
1254
|
.then(request => request(this.axios, this.basePath));
|
|
1264
1255
|
}
|
|
@@ -1274,7 +1265,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1274
1265
|
* @memberof VaultsApi
|
|
1275
1266
|
*/
|
|
1276
1267
|
getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
|
|
1277
|
-
return
|
|
1268
|
+
return VaultsApiFp(this.configuration)
|
|
1278
1269
|
.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
|
|
1279
1270
|
.then(request => request(this.axios, this.basePath));
|
|
1280
1271
|
}
|
|
@@ -1289,7 +1280,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1289
1280
|
* @memberof VaultsApi
|
|
1290
1281
|
*/
|
|
1291
1282
|
getVaultApyHistory(vaultId, limit, interval, options) {
|
|
1292
|
-
return
|
|
1283
|
+
return VaultsApiFp(this.configuration)
|
|
1293
1284
|
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
1294
1285
|
.then(request => request(this.axios, this.basePath));
|
|
1295
1286
|
}
|
|
@@ -1304,7 +1295,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1304
1295
|
* @memberof VaultsApi
|
|
1305
1296
|
*/
|
|
1306
1297
|
getVaultApyHistoryV2(vaultId, limit, interval, options) {
|
|
1307
|
-
return
|
|
1298
|
+
return VaultsApiFp(this.configuration)
|
|
1308
1299
|
.getVaultApyHistoryV2(vaultId, limit, interval, options)
|
|
1309
1300
|
.then(request => request(this.axios, this.basePath));
|
|
1310
1301
|
}
|
|
@@ -1317,7 +1308,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1317
1308
|
* @memberof VaultsApi
|
|
1318
1309
|
*/
|
|
1319
1310
|
getVaultExposure(vaultId, options) {
|
|
1320
|
-
return
|
|
1311
|
+
return VaultsApiFp(this.configuration)
|
|
1321
1312
|
.getVaultExposure(vaultId, options)
|
|
1322
1313
|
.then(request => request(this.axios, this.basePath));
|
|
1323
1314
|
}
|
|
@@ -1332,7 +1323,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1332
1323
|
* @memberof VaultsApi
|
|
1333
1324
|
*/
|
|
1334
1325
|
getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
1335
|
-
return
|
|
1326
|
+
return VaultsApiFp(this.configuration)
|
|
1336
1327
|
.getVaultPnlHistory(vaultId, limit, interval, options)
|
|
1337
1328
|
.then(request => request(this.axios, this.basePath));
|
|
1338
1329
|
}
|
|
@@ -1345,7 +1336,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1345
1336
|
* @memberof VaultsApi
|
|
1346
1337
|
*/
|
|
1347
1338
|
getVaultProofOfCapital(vaultId, options) {
|
|
1348
|
-
return
|
|
1339
|
+
return VaultsApiFp(this.configuration)
|
|
1349
1340
|
.getVaultProofOfCapital(vaultId, options)
|
|
1350
1341
|
.then(request => request(this.axios, this.basePath));
|
|
1351
1342
|
}
|
|
@@ -1360,7 +1351,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1360
1351
|
* @memberof VaultsApi
|
|
1361
1352
|
*/
|
|
1362
1353
|
getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
1363
|
-
return
|
|
1354
|
+
return VaultsApiFp(this.configuration)
|
|
1364
1355
|
.getVaultSharePriceHistory(vaultId, limit, interval, options)
|
|
1365
1356
|
.then(request => request(this.axios, this.basePath));
|
|
1366
1357
|
}
|
|
@@ -1373,7 +1364,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1373
1364
|
* @memberof VaultsApi
|
|
1374
1365
|
*/
|
|
1375
1366
|
getVaultStrategy(vaultId, options) {
|
|
1376
|
-
return
|
|
1367
|
+
return VaultsApiFp(this.configuration)
|
|
1377
1368
|
.getVaultStrategy(vaultId, options)
|
|
1378
1369
|
.then(request => request(this.axios, this.basePath));
|
|
1379
1370
|
}
|
|
@@ -1388,7 +1379,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1388
1379
|
* @memberof VaultsApi
|
|
1389
1380
|
*/
|
|
1390
1381
|
getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
1391
|
-
return
|
|
1382
|
+
return VaultsApiFp(this.configuration)
|
|
1392
1383
|
.getVaultTvlHistory(vaultId, limit, interval, options)
|
|
1393
1384
|
.then(request => request(this.axios, this.basePath));
|
|
1394
1385
|
}
|
|
@@ -1403,7 +1394,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1403
1394
|
* @memberof VaultsApi
|
|
1404
1395
|
*/
|
|
1405
1396
|
getVaults(vaultId, receiptCoinSymbol, includeHidden, options) {
|
|
1406
|
-
return
|
|
1397
|
+
return VaultsApiFp(this.configuration)
|
|
1407
1398
|
.getVaults(vaultId, receiptCoinSymbol, includeHidden, options)
|
|
1408
1399
|
.then(request => request(this.axios, this.basePath));
|
|
1409
1400
|
}
|
|
@@ -1415,7 +1406,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1415
1406
|
* @memberof VaultsApi
|
|
1416
1407
|
*/
|
|
1417
1408
|
getVaultsProtocolInfo(options) {
|
|
1418
|
-
return
|
|
1409
|
+
return VaultsApiFp(this.configuration)
|
|
1419
1410
|
.getVaultsProtocolInfo(options)
|
|
1420
1411
|
.then(request => request(this.axios, this.basePath));
|
|
1421
1412
|
}
|
|
@@ -1427,7 +1418,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1427
1418
|
* @memberof VaultsApi
|
|
1428
1419
|
*/
|
|
1429
1420
|
getVaultsStats(options) {
|
|
1430
|
-
return
|
|
1421
|
+
return VaultsApiFp(this.configuration)
|
|
1431
1422
|
.getVaultsStats(options)
|
|
1432
1423
|
.then(request => request(this.axios, this.basePath));
|
|
1433
1424
|
}
|
|
@@ -1440,9 +1431,8 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1440
1431
|
* @memberof VaultsApi
|
|
1441
1432
|
*/
|
|
1442
1433
|
updateVaultStrategy(updateVaultStrategies, options) {
|
|
1443
|
-
return
|
|
1434
|
+
return VaultsApiFp(this.configuration)
|
|
1444
1435
|
.updateVaultStrategy(updateVaultStrategies, options)
|
|
1445
1436
|
.then(request => request(this.axios, this.basePath));
|
|
1446
1437
|
}
|
|
1447
1438
|
}
|
|
1448
|
-
exports.VaultsApi = VaultsApi;
|