@ember-finance/sdk 1.4.4 → 2.0.0-beta.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 +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 +19 -19
- package/dist/src/api/v2/apis/vaults-api.js +106 -116
- 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 +99 -99
- package/dist/src/api/v2/models/index.js +99 -115
- 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-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 +3 -7
- 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 +24 -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, 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/v2/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
|
},
|
|
@@ -69,7 +63,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
69
63
|
getCoinsPrice: async (coinTypes, chain, options = {}) => {
|
|
70
64
|
const localVarPath = `/api/v2/vaults/coins/price`;
|
|
71
65
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
66
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
73
67
|
let baseOptions;
|
|
74
68
|
if (configuration) {
|
|
75
69
|
baseOptions = configuration.baseOptions;
|
|
@@ -83,7 +77,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
83
77
|
if (chain !== undefined) {
|
|
84
78
|
localVarQueryParameter["chain"] = chain;
|
|
85
79
|
}
|
|
86
|
-
|
|
80
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
87
81
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
88
82
|
localVarRequestOptions.headers = {
|
|
89
83
|
...localVarHeaderParameter,
|
|
@@ -91,7 +85,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
91
85
|
...options.headers
|
|
92
86
|
};
|
|
93
87
|
return {
|
|
94
|
-
url:
|
|
88
|
+
url: toPathString(localVarUrlObj),
|
|
95
89
|
options: localVarRequestOptions
|
|
96
90
|
};
|
|
97
91
|
},
|
|
@@ -105,12 +99,12 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
105
99
|
*/
|
|
106
100
|
getFees: async (startTimestampInMs, endTimestampInMs, options = {}) => {
|
|
107
101
|
// verify required parameter 'startTimestampInMs' is not null or undefined
|
|
108
|
-
|
|
102
|
+
assertParamExists("getFees", "startTimestampInMs", startTimestampInMs);
|
|
109
103
|
// verify required parameter 'endTimestampInMs' is not null or undefined
|
|
110
|
-
|
|
104
|
+
assertParamExists("getFees", "endTimestampInMs", endTimestampInMs);
|
|
111
105
|
const localVarPath = `/api/v2/vaults/fees`;
|
|
112
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
107
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
114
108
|
let baseOptions;
|
|
115
109
|
if (configuration) {
|
|
116
110
|
baseOptions = configuration.baseOptions;
|
|
@@ -124,7 +118,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
124
118
|
if (endTimestampInMs !== undefined) {
|
|
125
119
|
localVarQueryParameter["endTimestampInMs"] = endTimestampInMs;
|
|
126
120
|
}
|
|
127
|
-
|
|
121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
122
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
123
|
localVarRequestOptions.headers = {
|
|
130
124
|
...localVarHeaderParameter,
|
|
@@ -132,7 +126,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
132
126
|
...options.headers
|
|
133
127
|
};
|
|
134
128
|
return {
|
|
135
|
-
url:
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
136
130
|
options: localVarRequestOptions
|
|
137
131
|
};
|
|
138
132
|
},
|
|
@@ -146,7 +140,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
146
140
|
getProofOfCapitalSummary: async (date, options = {}) => {
|
|
147
141
|
const localVarPath = `/api/v2/vaults/poc/summary`;
|
|
148
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
144
|
let baseOptions;
|
|
151
145
|
if (configuration) {
|
|
152
146
|
baseOptions = configuration.baseOptions;
|
|
@@ -160,7 +154,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
160
154
|
? date.toISOString().substring(0, 10)
|
|
161
155
|
: date;
|
|
162
156
|
}
|
|
163
|
-
|
|
157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
158
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
159
|
localVarRequestOptions.headers = {
|
|
166
160
|
...localVarHeaderParameter,
|
|
@@ -168,7 +162,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
168
162
|
...options.headers
|
|
169
163
|
};
|
|
170
164
|
return {
|
|
171
|
-
url:
|
|
165
|
+
url: toPathString(localVarUrlObj),
|
|
172
166
|
options: localVarRequestOptions
|
|
173
167
|
};
|
|
174
168
|
},
|
|
@@ -183,7 +177,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
183
177
|
getProtocolPnlHistory: async (limit, interval, options = {}) => {
|
|
184
178
|
const localVarPath = `/api/v2/vaults/pnl-history`;
|
|
185
179
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
180
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
187
181
|
let baseOptions;
|
|
188
182
|
if (configuration) {
|
|
189
183
|
baseOptions = configuration.baseOptions;
|
|
@@ -197,7 +191,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
197
191
|
if (interval !== undefined) {
|
|
198
192
|
localVarQueryParameter["interval"] = interval;
|
|
199
193
|
}
|
|
200
|
-
|
|
194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
201
195
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
196
|
localVarRequestOptions.headers = {
|
|
203
197
|
...localVarHeaderParameter,
|
|
@@ -205,7 +199,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
205
199
|
...options.headers
|
|
206
200
|
};
|
|
207
201
|
return {
|
|
208
|
-
url:
|
|
202
|
+
url: toPathString(localVarUrlObj),
|
|
209
203
|
options: localVarRequestOptions
|
|
210
204
|
};
|
|
211
205
|
},
|
|
@@ -221,7 +215,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
221
215
|
getProtocolTvlHistory: async (limit, interval, chain, options = {}) => {
|
|
222
216
|
const localVarPath = `/api/v2/vaults/tvl-history`;
|
|
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;
|
|
@@ -238,7 +232,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
238
232
|
if (chain !== undefined) {
|
|
239
233
|
localVarQueryParameter["chain"] = chain;
|
|
240
234
|
}
|
|
241
|
-
|
|
235
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
242
236
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
243
237
|
localVarRequestOptions.headers = {
|
|
244
238
|
...localVarHeaderParameter,
|
|
@@ -246,7 +240,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
246
240
|
...options.headers
|
|
247
241
|
};
|
|
248
242
|
return {
|
|
249
|
-
url:
|
|
243
|
+
url: toPathString(localVarUrlObj),
|
|
250
244
|
options: localVarRequestOptions
|
|
251
245
|
};
|
|
252
246
|
},
|
|
@@ -259,7 +253,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
259
253
|
getSupportedChains: async (options = {}) => {
|
|
260
254
|
const localVarPath = `/api/v2/vaults/supported-chains`;
|
|
261
255
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
262
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
263
257
|
let baseOptions;
|
|
264
258
|
if (configuration) {
|
|
265
259
|
baseOptions = configuration.baseOptions;
|
|
@@ -267,7 +261,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
267
261
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
268
262
|
const localVarHeaderParameter = {};
|
|
269
263
|
const localVarQueryParameter = {};
|
|
270
|
-
|
|
264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
271
265
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
272
266
|
localVarRequestOptions.headers = {
|
|
273
267
|
...localVarHeaderParameter,
|
|
@@ -275,7 +269,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
275
269
|
...options.headers
|
|
276
270
|
};
|
|
277
271
|
return {
|
|
278
|
-
url:
|
|
272
|
+
url: toPathString(localVarUrlObj),
|
|
279
273
|
options: localVarRequestOptions
|
|
280
274
|
};
|
|
281
275
|
},
|
|
@@ -290,10 +284,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
290
284
|
*/
|
|
291
285
|
getVaultApyHistory: async (vaultId, limit, interval, options = {}) => {
|
|
292
286
|
// verify required parameter 'vaultId' is not null or undefined
|
|
293
|
-
|
|
287
|
+
assertParamExists("getVaultApyHistory", "vaultId", vaultId);
|
|
294
288
|
const localVarPath = `/api/v2/vaults/apy-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
295
289
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
297
291
|
let baseOptions;
|
|
298
292
|
if (configuration) {
|
|
299
293
|
baseOptions = configuration.baseOptions;
|
|
@@ -307,7 +301,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
307
301
|
if (interval !== undefined) {
|
|
308
302
|
localVarQueryParameter["interval"] = interval;
|
|
309
303
|
}
|
|
310
|
-
|
|
304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
311
305
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
306
|
localVarRequestOptions.headers = {
|
|
313
307
|
...localVarHeaderParameter,
|
|
@@ -315,7 +309,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
315
309
|
...options.headers
|
|
316
310
|
};
|
|
317
311
|
return {
|
|
318
|
-
url:
|
|
312
|
+
url: toPathString(localVarUrlObj),
|
|
319
313
|
options: localVarRequestOptions
|
|
320
314
|
};
|
|
321
315
|
},
|
|
@@ -330,10 +324,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
330
324
|
*/
|
|
331
325
|
getVaultPnlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
332
326
|
// verify required parameter 'vaultId' is not null or undefined
|
|
333
|
-
|
|
327
|
+
assertParamExists("getVaultPnlHistory", "vaultId", vaultId);
|
|
334
328
|
const localVarPath = `/api/v2/vaults/pnl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
335
329
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
336
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
337
331
|
let baseOptions;
|
|
338
332
|
if (configuration) {
|
|
339
333
|
baseOptions = configuration.baseOptions;
|
|
@@ -347,7 +341,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
347
341
|
if (interval !== undefined) {
|
|
348
342
|
localVarQueryParameter["interval"] = interval;
|
|
349
343
|
}
|
|
350
|
-
|
|
344
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
351
345
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
352
346
|
localVarRequestOptions.headers = {
|
|
353
347
|
...localVarHeaderParameter,
|
|
@@ -355,7 +349,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
355
349
|
...options.headers
|
|
356
350
|
};
|
|
357
351
|
return {
|
|
358
|
-
url:
|
|
352
|
+
url: toPathString(localVarUrlObj),
|
|
359
353
|
options: localVarRequestOptions
|
|
360
354
|
};
|
|
361
355
|
},
|
|
@@ -368,10 +362,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
368
362
|
*/
|
|
369
363
|
getVaultProofOfCapital: async (vaultId, options = {}) => {
|
|
370
364
|
// verify required parameter 'vaultId' is not null or undefined
|
|
371
|
-
|
|
365
|
+
assertParamExists("getVaultProofOfCapital", "vaultId", vaultId);
|
|
372
366
|
const localVarPath = `/api/v2/vaults/poc/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
373
367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
375
369
|
let baseOptions;
|
|
376
370
|
if (configuration) {
|
|
377
371
|
baseOptions = configuration.baseOptions;
|
|
@@ -379,7 +373,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
379
373
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
380
374
|
const localVarHeaderParameter = {};
|
|
381
375
|
const localVarQueryParameter = {};
|
|
382
|
-
|
|
376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
383
377
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
384
378
|
localVarRequestOptions.headers = {
|
|
385
379
|
...localVarHeaderParameter,
|
|
@@ -387,7 +381,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
387
381
|
...options.headers
|
|
388
382
|
};
|
|
389
383
|
return {
|
|
390
|
-
url:
|
|
384
|
+
url: toPathString(localVarUrlObj),
|
|
391
385
|
options: localVarRequestOptions
|
|
392
386
|
};
|
|
393
387
|
},
|
|
@@ -402,10 +396,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
402
396
|
*/
|
|
403
397
|
getVaultSharePriceHistory: async (vaultId, limit, interval, options = {}) => {
|
|
404
398
|
// verify required parameter 'vaultId' is not null or undefined
|
|
405
|
-
|
|
399
|
+
assertParamExists("getVaultSharePriceHistory", "vaultId", vaultId);
|
|
406
400
|
const localVarPath = `/api/v2/vaults/share-price-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
407
401
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
408
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
402
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
409
403
|
let baseOptions;
|
|
410
404
|
if (configuration) {
|
|
411
405
|
baseOptions = configuration.baseOptions;
|
|
@@ -419,7 +413,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
419
413
|
if (interval !== undefined) {
|
|
420
414
|
localVarQueryParameter["interval"] = interval;
|
|
421
415
|
}
|
|
422
|
-
|
|
416
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
423
417
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
424
418
|
localVarRequestOptions.headers = {
|
|
425
419
|
...localVarHeaderParameter,
|
|
@@ -427,7 +421,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
427
421
|
...options.headers
|
|
428
422
|
};
|
|
429
423
|
return {
|
|
430
|
-
url:
|
|
424
|
+
url: toPathString(localVarUrlObj),
|
|
431
425
|
options: localVarRequestOptions
|
|
432
426
|
};
|
|
433
427
|
},
|
|
@@ -442,10 +436,10 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
442
436
|
*/
|
|
443
437
|
getVaultTvlHistory: async (vaultId, limit, interval, options = {}) => {
|
|
444
438
|
// verify required parameter 'vaultId' is not null or undefined
|
|
445
|
-
|
|
439
|
+
assertParamExists("getVaultTvlHistory", "vaultId", vaultId);
|
|
446
440
|
const localVarPath = `/api/v2/vaults/tvl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
447
441
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
448
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
442
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
449
443
|
let baseOptions;
|
|
450
444
|
if (configuration) {
|
|
451
445
|
baseOptions = configuration.baseOptions;
|
|
@@ -459,7 +453,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
459
453
|
if (interval !== undefined) {
|
|
460
454
|
localVarQueryParameter["interval"] = interval;
|
|
461
455
|
}
|
|
462
|
-
|
|
456
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
463
457
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
464
458
|
localVarRequestOptions.headers = {
|
|
465
459
|
...localVarHeaderParameter,
|
|
@@ -467,7 +461,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
467
461
|
...options.headers
|
|
468
462
|
};
|
|
469
463
|
return {
|
|
470
|
-
url:
|
|
464
|
+
url: toPathString(localVarUrlObj),
|
|
471
465
|
options: localVarRequestOptions
|
|
472
466
|
};
|
|
473
467
|
},
|
|
@@ -484,7 +478,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
484
478
|
getVaults: async (vaultId, receiptCoinSymbol, chain, includeHidden, options = {}) => {
|
|
485
479
|
const localVarPath = `/api/v2/vaults`;
|
|
486
480
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
487
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
488
482
|
let baseOptions;
|
|
489
483
|
if (configuration) {
|
|
490
484
|
baseOptions = configuration.baseOptions;
|
|
@@ -504,7 +498,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
504
498
|
if (includeHidden !== undefined) {
|
|
505
499
|
localVarQueryParameter["includeHidden"] = includeHidden;
|
|
506
500
|
}
|
|
507
|
-
|
|
501
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
508
502
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
509
503
|
localVarRequestOptions.headers = {
|
|
510
504
|
...localVarHeaderParameter,
|
|
@@ -512,7 +506,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
512
506
|
...options.headers
|
|
513
507
|
};
|
|
514
508
|
return {
|
|
515
|
-
url:
|
|
509
|
+
url: toPathString(localVarUrlObj),
|
|
516
510
|
options: localVarRequestOptions
|
|
517
511
|
};
|
|
518
512
|
},
|
|
@@ -525,7 +519,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
525
519
|
getVaultsProtocolInfo: async (options = {}) => {
|
|
526
520
|
const localVarPath = `/api/v2/vaults/info`;
|
|
527
521
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
528
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
522
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
529
523
|
let baseOptions;
|
|
530
524
|
if (configuration) {
|
|
531
525
|
baseOptions = configuration.baseOptions;
|
|
@@ -533,7 +527,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
533
527
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
534
528
|
const localVarHeaderParameter = {};
|
|
535
529
|
const localVarQueryParameter = {};
|
|
536
|
-
|
|
530
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
537
531
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
538
532
|
localVarRequestOptions.headers = {
|
|
539
533
|
...localVarHeaderParameter,
|
|
@@ -541,7 +535,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
541
535
|
...options.headers
|
|
542
536
|
};
|
|
543
537
|
return {
|
|
544
|
-
url:
|
|
538
|
+
url: toPathString(localVarUrlObj),
|
|
545
539
|
options: localVarRequestOptions
|
|
546
540
|
};
|
|
547
541
|
},
|
|
@@ -554,7 +548,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
554
548
|
getVaultsStats: async (options = {}) => {
|
|
555
549
|
const localVarPath = `/api/v2/vaults/stats`;
|
|
556
550
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
557
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
551
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
558
552
|
let baseOptions;
|
|
559
553
|
if (configuration) {
|
|
560
554
|
baseOptions = configuration.baseOptions;
|
|
@@ -562,7 +556,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
562
556
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
563
557
|
const localVarHeaderParameter = {};
|
|
564
558
|
const localVarQueryParameter = {};
|
|
565
|
-
|
|
559
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
566
560
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
567
561
|
localVarRequestOptions.headers = {
|
|
568
562
|
...localVarHeaderParameter,
|
|
@@ -570,19 +564,18 @@ const VaultsApiAxiosParamCreator = function (configuration) {
|
|
|
570
564
|
...options.headers
|
|
571
565
|
};
|
|
572
566
|
return {
|
|
573
|
-
url:
|
|
567
|
+
url: toPathString(localVarUrlObj),
|
|
574
568
|
options: localVarRequestOptions
|
|
575
569
|
};
|
|
576
570
|
}
|
|
577
571
|
};
|
|
578
572
|
};
|
|
579
|
-
exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
|
|
580
573
|
/**
|
|
581
574
|
* VaultsApi - functional programming interface
|
|
582
575
|
* @export
|
|
583
576
|
*/
|
|
584
|
-
const VaultsApiFp = function (configuration) {
|
|
585
|
-
const localVarAxiosParamCreator =
|
|
577
|
+
export const VaultsApiFp = function (configuration) {
|
|
578
|
+
const localVarAxiosParamCreator = VaultsApiAxiosParamCreator(configuration);
|
|
586
579
|
return {
|
|
587
580
|
/**
|
|
588
581
|
*
|
|
@@ -593,9 +586,9 @@ const VaultsApiFp = function (configuration) {
|
|
|
593
586
|
async getAllTags(options) {
|
|
594
587
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
|
|
595
588
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
596
|
-
const localVarOperationServerBasePath =
|
|
589
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getAllTags"]?.[localVarOperationServerIndex]
|
|
597
590
|
?.url;
|
|
598
|
-
return (axios, basePath) =>
|
|
591
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
599
592
|
},
|
|
600
593
|
/**
|
|
601
594
|
*
|
|
@@ -608,8 +601,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
608
601
|
async getCoinsPrice(coinTypes, chain, options) {
|
|
609
602
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinsPrice(coinTypes, chain, options);
|
|
610
603
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
611
|
-
const localVarOperationServerBasePath =
|
|
612
|
-
return (axios, basePath) =>
|
|
604
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getCoinsPrice"]?.[localVarOperationServerIndex]?.url;
|
|
605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
613
606
|
},
|
|
614
607
|
/**
|
|
615
608
|
*
|
|
@@ -622,9 +615,9 @@ const VaultsApiFp = function (configuration) {
|
|
|
622
615
|
async getFees(startTimestampInMs, endTimestampInMs, options) {
|
|
623
616
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFees(startTimestampInMs, endTimestampInMs, options);
|
|
624
617
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
625
|
-
const localVarOperationServerBasePath =
|
|
618
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getFees"]?.[localVarOperationServerIndex]
|
|
626
619
|
?.url;
|
|
627
|
-
return (axios, basePath) =>
|
|
620
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
628
621
|
},
|
|
629
622
|
/**
|
|
630
623
|
*
|
|
@@ -636,8 +629,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
636
629
|
async getProofOfCapitalSummary(date, options) {
|
|
637
630
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProofOfCapitalSummary(date, options);
|
|
638
631
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
639
|
-
const localVarOperationServerBasePath =
|
|
640
|
-
return (axios, basePath) =>
|
|
632
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProofOfCapitalSummary"]?.[localVarOperationServerIndex]?.url;
|
|
633
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
641
634
|
},
|
|
642
635
|
/**
|
|
643
636
|
*
|
|
@@ -650,8 +643,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
650
643
|
async getProtocolPnlHistory(limit, interval, options) {
|
|
651
644
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolPnlHistory(limit, interval, options);
|
|
652
645
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
653
|
-
const localVarOperationServerBasePath =
|
|
654
|
-
return (axios, basePath) =>
|
|
646
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProtocolPnlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
647
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
655
648
|
},
|
|
656
649
|
/**
|
|
657
650
|
*
|
|
@@ -665,8 +658,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
665
658
|
async getProtocolTvlHistory(limit, interval, chain, options) {
|
|
666
659
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolTvlHistory(limit, interval, chain, options);
|
|
667
660
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
668
|
-
const localVarOperationServerBasePath =
|
|
669
|
-
return (axios, basePath) =>
|
|
661
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getProtocolTvlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
662
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
670
663
|
},
|
|
671
664
|
/**
|
|
672
665
|
*
|
|
@@ -677,8 +670,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
677
670
|
async getSupportedChains(options) {
|
|
678
671
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedChains(options);
|
|
679
672
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
680
|
-
const localVarOperationServerBasePath =
|
|
681
|
-
return (axios, basePath) =>
|
|
673
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getSupportedChains"]?.[localVarOperationServerIndex]?.url;
|
|
674
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
682
675
|
},
|
|
683
676
|
/**
|
|
684
677
|
*
|
|
@@ -692,8 +685,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
692
685
|
async getVaultApyHistory(vaultId, limit, interval, options) {
|
|
693
686
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistory(vaultId, limit, interval, options);
|
|
694
687
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
695
|
-
const localVarOperationServerBasePath =
|
|
696
|
-
return (axios, basePath) =>
|
|
688
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultApyHistory"]?.[localVarOperationServerIndex]?.url;
|
|
689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
697
690
|
},
|
|
698
691
|
/**
|
|
699
692
|
*
|
|
@@ -707,8 +700,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
707
700
|
async getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
708
701
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultPnlHistory(vaultId, limit, interval, options);
|
|
709
702
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
710
|
-
const localVarOperationServerBasePath =
|
|
711
|
-
return (axios, basePath) =>
|
|
703
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultPnlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
704
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
705
|
},
|
|
713
706
|
/**
|
|
714
707
|
*
|
|
@@ -720,8 +713,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
720
713
|
async getVaultProofOfCapital(vaultId, options) {
|
|
721
714
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultProofOfCapital(vaultId, options);
|
|
722
715
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
723
|
-
const localVarOperationServerBasePath =
|
|
724
|
-
return (axios, basePath) =>
|
|
716
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultProofOfCapital"]?.[localVarOperationServerIndex]?.url;
|
|
717
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
725
718
|
},
|
|
726
719
|
/**
|
|
727
720
|
*
|
|
@@ -735,8 +728,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
735
728
|
async getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
736
729
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultSharePriceHistory(vaultId, limit, interval, options);
|
|
737
730
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
738
|
-
const localVarOperationServerBasePath =
|
|
739
|
-
return (axios, basePath) =>
|
|
731
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
|
|
732
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
740
733
|
},
|
|
741
734
|
/**
|
|
742
735
|
*
|
|
@@ -750,8 +743,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
750
743
|
async getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
751
744
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultTvlHistory(vaultId, limit, interval, options);
|
|
752
745
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
753
|
-
const localVarOperationServerBasePath =
|
|
754
|
-
return (axios, basePath) =>
|
|
746
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultTvlHistory"]?.[localVarOperationServerIndex]?.url;
|
|
747
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
755
748
|
},
|
|
756
749
|
/**
|
|
757
750
|
*
|
|
@@ -766,9 +759,9 @@ const VaultsApiFp = function (configuration) {
|
|
|
766
759
|
async getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
767
760
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options);
|
|
768
761
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
769
|
-
const localVarOperationServerBasePath =
|
|
762
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
|
|
770
763
|
?.url;
|
|
771
|
-
return (axios, basePath) =>
|
|
764
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
772
765
|
},
|
|
773
766
|
/**
|
|
774
767
|
*
|
|
@@ -779,8 +772,8 @@ const VaultsApiFp = function (configuration) {
|
|
|
779
772
|
async getVaultsProtocolInfo(options) {
|
|
780
773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsProtocolInfo(options);
|
|
781
774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
782
|
-
const localVarOperationServerBasePath =
|
|
783
|
-
return (axios, basePath) =>
|
|
775
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
|
|
776
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
784
777
|
},
|
|
785
778
|
/**
|
|
786
779
|
*
|
|
@@ -791,18 +784,17 @@ const VaultsApiFp = function (configuration) {
|
|
|
791
784
|
async getVaultsStats(options) {
|
|
792
785
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsStats(options);
|
|
793
786
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
794
|
-
const localVarOperationServerBasePath =
|
|
795
|
-
return (axios, basePath) =>
|
|
787
|
+
const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
|
|
788
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
796
789
|
}
|
|
797
790
|
};
|
|
798
791
|
};
|
|
799
|
-
exports.VaultsApiFp = VaultsApiFp;
|
|
800
792
|
/**
|
|
801
793
|
* VaultsApi - factory interface
|
|
802
794
|
* @export
|
|
803
795
|
*/
|
|
804
|
-
const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
805
|
-
const localVarFp =
|
|
796
|
+
export const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
797
|
+
const localVarFp = VaultsApiFp(configuration);
|
|
806
798
|
return {
|
|
807
799
|
/**
|
|
808
800
|
*
|
|
@@ -998,14 +990,13 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
|
|
|
998
990
|
}
|
|
999
991
|
};
|
|
1000
992
|
};
|
|
1001
|
-
exports.VaultsApiFactory = VaultsApiFactory;
|
|
1002
993
|
/**
|
|
1003
994
|
* VaultsApi - object-oriented interface
|
|
1004
995
|
* @export
|
|
1005
996
|
* @class VaultsApi
|
|
1006
997
|
* @extends {BaseAPI}
|
|
1007
998
|
*/
|
|
1008
|
-
class VaultsApi extends
|
|
999
|
+
export class VaultsApi extends BaseAPI {
|
|
1009
1000
|
/**
|
|
1010
1001
|
*
|
|
1011
1002
|
* @summary Get all tags
|
|
@@ -1014,7 +1005,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1014
1005
|
* @memberof VaultsApi
|
|
1015
1006
|
*/
|
|
1016
1007
|
getAllTags(options) {
|
|
1017
|
-
return
|
|
1008
|
+
return VaultsApiFp(this.configuration)
|
|
1018
1009
|
.getAllTags(options)
|
|
1019
1010
|
.then(request => request(this.axios, this.basePath));
|
|
1020
1011
|
}
|
|
@@ -1028,7 +1019,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1028
1019
|
* @memberof VaultsApi
|
|
1029
1020
|
*/
|
|
1030
1021
|
getCoinsPrice(coinTypes, chain, options) {
|
|
1031
|
-
return
|
|
1022
|
+
return VaultsApiFp(this.configuration)
|
|
1032
1023
|
.getCoinsPrice(coinTypes, chain, options)
|
|
1033
1024
|
.then(request => request(this.axios, this.basePath));
|
|
1034
1025
|
}
|
|
@@ -1042,7 +1033,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1042
1033
|
* @memberof VaultsApi
|
|
1043
1034
|
*/
|
|
1044
1035
|
getFees(startTimestampInMs, endTimestampInMs, options) {
|
|
1045
|
-
return
|
|
1036
|
+
return VaultsApiFp(this.configuration)
|
|
1046
1037
|
.getFees(startTimestampInMs, endTimestampInMs, options)
|
|
1047
1038
|
.then(request => request(this.axios, this.basePath));
|
|
1048
1039
|
}
|
|
@@ -1055,7 +1046,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1055
1046
|
* @memberof VaultsApi
|
|
1056
1047
|
*/
|
|
1057
1048
|
getProofOfCapitalSummary(date, options) {
|
|
1058
|
-
return
|
|
1049
|
+
return VaultsApiFp(this.configuration)
|
|
1059
1050
|
.getProofOfCapitalSummary(date, options)
|
|
1060
1051
|
.then(request => request(this.axios, this.basePath));
|
|
1061
1052
|
}
|
|
@@ -1069,7 +1060,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1069
1060
|
* @memberof VaultsApi
|
|
1070
1061
|
*/
|
|
1071
1062
|
getProtocolPnlHistory(limit, interval, options) {
|
|
1072
|
-
return
|
|
1063
|
+
return VaultsApiFp(this.configuration)
|
|
1073
1064
|
.getProtocolPnlHistory(limit, interval, options)
|
|
1074
1065
|
.then(request => request(this.axios, this.basePath));
|
|
1075
1066
|
}
|
|
@@ -1084,7 +1075,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1084
1075
|
* @memberof VaultsApi
|
|
1085
1076
|
*/
|
|
1086
1077
|
getProtocolTvlHistory(limit, interval, chain, options) {
|
|
1087
|
-
return
|
|
1078
|
+
return VaultsApiFp(this.configuration)
|
|
1088
1079
|
.getProtocolTvlHistory(limit, interval, chain, options)
|
|
1089
1080
|
.then(request => request(this.axios, this.basePath));
|
|
1090
1081
|
}
|
|
@@ -1096,7 +1087,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1096
1087
|
* @memberof VaultsApi
|
|
1097
1088
|
*/
|
|
1098
1089
|
getSupportedChains(options) {
|
|
1099
|
-
return
|
|
1090
|
+
return VaultsApiFp(this.configuration)
|
|
1100
1091
|
.getSupportedChains(options)
|
|
1101
1092
|
.then(request => request(this.axios, this.basePath));
|
|
1102
1093
|
}
|
|
@@ -1111,7 +1102,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1111
1102
|
* @memberof VaultsApi
|
|
1112
1103
|
*/
|
|
1113
1104
|
getVaultApyHistory(vaultId, limit, interval, options) {
|
|
1114
|
-
return
|
|
1105
|
+
return VaultsApiFp(this.configuration)
|
|
1115
1106
|
.getVaultApyHistory(vaultId, limit, interval, options)
|
|
1116
1107
|
.then(request => request(this.axios, this.basePath));
|
|
1117
1108
|
}
|
|
@@ -1126,7 +1117,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1126
1117
|
* @memberof VaultsApi
|
|
1127
1118
|
*/
|
|
1128
1119
|
getVaultPnlHistory(vaultId, limit, interval, options) {
|
|
1129
|
-
return
|
|
1120
|
+
return VaultsApiFp(this.configuration)
|
|
1130
1121
|
.getVaultPnlHistory(vaultId, limit, interval, options)
|
|
1131
1122
|
.then(request => request(this.axios, this.basePath));
|
|
1132
1123
|
}
|
|
@@ -1139,7 +1130,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1139
1130
|
* @memberof VaultsApi
|
|
1140
1131
|
*/
|
|
1141
1132
|
getVaultProofOfCapital(vaultId, options) {
|
|
1142
|
-
return
|
|
1133
|
+
return VaultsApiFp(this.configuration)
|
|
1143
1134
|
.getVaultProofOfCapital(vaultId, options)
|
|
1144
1135
|
.then(request => request(this.axios, this.basePath));
|
|
1145
1136
|
}
|
|
@@ -1154,7 +1145,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1154
1145
|
* @memberof VaultsApi
|
|
1155
1146
|
*/
|
|
1156
1147
|
getVaultSharePriceHistory(vaultId, limit, interval, options) {
|
|
1157
|
-
return
|
|
1148
|
+
return VaultsApiFp(this.configuration)
|
|
1158
1149
|
.getVaultSharePriceHistory(vaultId, limit, interval, options)
|
|
1159
1150
|
.then(request => request(this.axios, this.basePath));
|
|
1160
1151
|
}
|
|
@@ -1169,7 +1160,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1169
1160
|
* @memberof VaultsApi
|
|
1170
1161
|
*/
|
|
1171
1162
|
getVaultTvlHistory(vaultId, limit, interval, options) {
|
|
1172
|
-
return
|
|
1163
|
+
return VaultsApiFp(this.configuration)
|
|
1173
1164
|
.getVaultTvlHistory(vaultId, limit, interval, options)
|
|
1174
1165
|
.then(request => request(this.axios, this.basePath));
|
|
1175
1166
|
}
|
|
@@ -1185,7 +1176,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1185
1176
|
* @memberof VaultsApi
|
|
1186
1177
|
*/
|
|
1187
1178
|
getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options) {
|
|
1188
|
-
return
|
|
1179
|
+
return VaultsApiFp(this.configuration)
|
|
1189
1180
|
.getVaults(vaultId, receiptCoinSymbol, chain, includeHidden, options)
|
|
1190
1181
|
.then(request => request(this.axios, this.basePath));
|
|
1191
1182
|
}
|
|
@@ -1197,7 +1188,7 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1197
1188
|
* @memberof VaultsApi
|
|
1198
1189
|
*/
|
|
1199
1190
|
getVaultsProtocolInfo(options) {
|
|
1200
|
-
return
|
|
1191
|
+
return VaultsApiFp(this.configuration)
|
|
1201
1192
|
.getVaultsProtocolInfo(options)
|
|
1202
1193
|
.then(request => request(this.axios, this.basePath));
|
|
1203
1194
|
}
|
|
@@ -1209,9 +1200,8 @@ class VaultsApi extends base_1.BaseAPI {
|
|
|
1209
1200
|
* @memberof VaultsApi
|
|
1210
1201
|
*/
|
|
1211
1202
|
getVaultsStats(options) {
|
|
1212
|
-
return
|
|
1203
|
+
return VaultsApiFp(this.configuration)
|
|
1213
1204
|
.getVaultsStats(options)
|
|
1214
1205
|
.then(request => request(this.axios, this.basePath));
|
|
1215
1206
|
}
|
|
1216
1207
|
}
|
|
1217
|
-
exports.VaultsApi = VaultsApi;
|