@ember-finance/sdk 2.0.0 → 2.0.2
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/EmberETHVault.json +343 -2
- package/dist/src/abis/EmberProtocolConfig.json +61 -2
- package/dist/src/abis/EmberVault.json +343 -2
- package/dist/src/abis/EmberVaultMintBurnOFTAdapter.json +1382 -0
- package/dist/src/abis/index.d.ts +3 -1
- package/dist/src/abis/index.js +12 -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.d.ts +6 -0
- 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 +14 -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-oftadapter.d.ts +93 -0
- package/dist/src/api/v2/models/evm-oftadapter.js +14 -0
- package/dist/src/api/v2/models/evm-oftpeer.d.ts +48 -0
- package/dist/src/api/v2/models/evm-oftpeer.js +14 -0
- package/dist/src/api/v2/models/evm-price-feed.js +1 -2
- package/dist/src/api/v2/models/evm-protocol-config.d.ts +6 -0
- 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.d.ts +24 -0
- 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 +102 -100
- package/dist/src/api/v2/models/index.js +102 -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/constants.d.ts +8 -0
- package/dist/src/common/constants.js +11 -0
- package/dist/src/common/types.js +1 -2
- package/dist/src/ember-vaults.d.ts +23 -24
- package/dist/src/ember-vaults.js +35 -49
- package/dist/src/evm-vaults/index.d.ts +15 -3
- package/dist/src/evm-vaults/index.js +21 -19
- package/dist/src/evm-vaults/interfaces/index.d.ts +92 -47
- package/dist/src/evm-vaults/interfaces/index.js +1 -2
- package/dist/src/evm-vaults/on-chain-calls/admin.d.ts +4 -4
- 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 +5 -5
- package/dist/src/evm-vaults/on-chain-calls/onchain-calls.js +9 -13
- package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +4 -4
- package/dist/src/evm-vaults/on-chain-calls/operator.js +2 -6
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +24 -5
- package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +83 -41
- package/dist/src/evm-vaults/on-chain-calls/user.d.ts +20 -4
- package/dist/src/evm-vaults/on-chain-calls/user.js +61 -15
- package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +4 -4
- 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 +39 -5
- package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +119 -20
- package/dist/src/evm-vaults/utils/deployment-parser.d.ts +14 -8
- package/dist/src/evm-vaults/utils/deployment-parser.js +22 -15
- 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
package/dist/src/api/v2/api.d.ts
CHANGED
package/dist/src/api/v2/api.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,20 +11,5 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(o, k2, desc);
|
|
22
|
-
}) : (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
o[k2] = m[k];
|
|
25
|
-
}));
|
|
26
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
-
};
|
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./apis/accounts-api"), exports);
|
|
31
|
-
__exportStar(require("./apis/vaults-api"), exports);
|
|
14
|
+
export * from "./apis/accounts-api.js";
|
|
15
|
+
export * from "./apis/vaults-api.js";
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from "../configuration";
|
|
12
|
+
import type { Configuration } from "../configuration.js";
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
14
|
-
import { type RequestArgs, BaseAPI } from "../base";
|
|
15
|
-
import type { AccountTransaction } from "../models";
|
|
16
|
-
import type { AccountVaultPositionHistory } from "../models";
|
|
17
|
-
import type { AccountWithdrawalRequest } from "../models";
|
|
18
|
-
import type { AggregatedAccountPositionHistory } from "../models";
|
|
19
|
-
import type { PositionHistoryInterval } from "../models";
|
|
20
|
-
import type { PositionValue } from "../models";
|
|
21
|
-
import type { YieldAggregateValue } from "../models";
|
|
14
|
+
import { type RequestArgs, BaseAPI } from "../base.js";
|
|
15
|
+
import type { AccountTransaction } from "../models/index.js";
|
|
16
|
+
import type { AccountVaultPositionHistory } from "../models/index.js";
|
|
17
|
+
import type { AccountWithdrawalRequest } from "../models/index.js";
|
|
18
|
+
import type { AggregatedAccountPositionHistory } from "../models/index.js";
|
|
19
|
+
import type { PositionHistoryInterval } from "../models/index.js";
|
|
20
|
+
import type { PositionValue } from "../models/index.js";
|
|
21
|
+
import type { YieldAggregateValue } from "../models/index.js";
|
|
22
22
|
/**
|
|
23
23
|
* AccountsApi - axios parameter creator
|
|
24
24
|
* @export
|
|
@@ -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.GetAccountWithdrawalRequestsStatusEnum = exports.GetAccountHistoryTypeEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = 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
|
* AccountsApi - axios parameter creator
|
|
28
22
|
* @export
|
|
29
23
|
*/
|
|
30
|
-
const AccountsApiAxiosParamCreator = function (configuration) {
|
|
24
|
+
export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
31
25
|
return {
|
|
32
26
|
/**
|
|
33
27
|
*
|
|
@@ -45,12 +39,12 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
45
39
|
*/
|
|
46
40
|
getAccountHistory: async (accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options = {}) => {
|
|
47
41
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
48
|
-
|
|
42
|
+
assertParamExists("getAccountHistory", "accountAddress", accountAddress);
|
|
49
43
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
50
|
-
|
|
44
|
+
assertParamExists("getAccountHistory", "startTimeInMs", startTimeInMs);
|
|
51
45
|
const localVarPath = `/api/v2/vaults/history/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
52
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54
48
|
let baseOptions;
|
|
55
49
|
if (configuration) {
|
|
56
50
|
baseOptions = configuration.baseOptions;
|
|
@@ -79,7 +73,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
79
73
|
if (type !== undefined) {
|
|
80
74
|
localVarQueryParameter["type"] = type;
|
|
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 AccountsApiAxiosParamCreator = 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
|
},
|
|
@@ -102,10 +96,10 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
102
96
|
*/
|
|
103
97
|
getAccountPositionsHistory: async (accountAddress, limit, interval, options = {}) => {
|
|
104
98
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
105
|
-
|
|
99
|
+
assertParamExists("getAccountPositionsHistory", "accountAddress", accountAddress);
|
|
106
100
|
const localVarPath = `/api/v2/vaults/positions-history/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
107
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
109
103
|
let baseOptions;
|
|
110
104
|
if (configuration) {
|
|
111
105
|
baseOptions = configuration.baseOptions;
|
|
@@ -119,7 +113,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
119
113
|
if (interval !== undefined) {
|
|
120
114
|
localVarQueryParameter["interval"] = interval;
|
|
121
115
|
}
|
|
122
|
-
|
|
116
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
117
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
118
|
localVarRequestOptions.headers = {
|
|
125
119
|
...localVarHeaderParameter,
|
|
@@ -127,7 +121,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
127
121
|
...options.headers
|
|
128
122
|
};
|
|
129
123
|
return {
|
|
130
|
-
url:
|
|
124
|
+
url: toPathString(localVarUrlObj),
|
|
131
125
|
options: localVarRequestOptions
|
|
132
126
|
};
|
|
133
127
|
},
|
|
@@ -141,10 +135,10 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
141
135
|
*/
|
|
142
136
|
getAccountPositionsValue: async (accountAddress, vaultId, options = {}) => {
|
|
143
137
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
144
|
-
|
|
138
|
+
assertParamExists("getAccountPositionsValue", "accountAddress", accountAddress);
|
|
145
139
|
const localVarPath = `/api/v2/vaults/positions/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
146
140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
148
142
|
let baseOptions;
|
|
149
143
|
if (configuration) {
|
|
150
144
|
baseOptions = configuration.baseOptions;
|
|
@@ -155,7 +149,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
155
149
|
if (vaultId !== undefined) {
|
|
156
150
|
localVarQueryParameter["vaultId"] = vaultId;
|
|
157
151
|
}
|
|
158
|
-
|
|
152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
159
153
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
160
154
|
localVarRequestOptions.headers = {
|
|
161
155
|
...localVarHeaderParameter,
|
|
@@ -163,7 +157,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
163
157
|
...options.headers
|
|
164
158
|
};
|
|
165
159
|
return {
|
|
166
|
-
url:
|
|
160
|
+
url: toPathString(localVarUrlObj),
|
|
167
161
|
options: localVarRequestOptions
|
|
168
162
|
};
|
|
169
163
|
},
|
|
@@ -183,12 +177,12 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
183
177
|
*/
|
|
184
178
|
getAccountWithdrawalRequests: async (accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
185
179
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
186
|
-
|
|
180
|
+
assertParamExists("getAccountWithdrawalRequests", "accountAddress", accountAddress);
|
|
187
181
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
188
|
-
|
|
182
|
+
assertParamExists("getAccountWithdrawalRequests", "startTimeInMs", startTimeInMs);
|
|
189
183
|
const localVarPath = `/api/v2/vaults/withdrawal-requests/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
190
184
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
185
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
192
186
|
let baseOptions;
|
|
193
187
|
if (configuration) {
|
|
194
188
|
baseOptions = configuration.baseOptions;
|
|
@@ -217,7 +211,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
217
211
|
if (status !== undefined) {
|
|
218
212
|
localVarQueryParameter["status"] = status;
|
|
219
213
|
}
|
|
220
|
-
|
|
214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
221
215
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
216
|
localVarRequestOptions.headers = {
|
|
223
217
|
...localVarHeaderParameter,
|
|
@@ -225,7 +219,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
225
219
|
...options.headers
|
|
226
220
|
};
|
|
227
221
|
return {
|
|
228
|
-
url:
|
|
222
|
+
url: toPathString(localVarUrlObj),
|
|
229
223
|
options: localVarRequestOptions
|
|
230
224
|
};
|
|
231
225
|
},
|
|
@@ -239,10 +233,10 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
239
233
|
*/
|
|
240
234
|
getAccountYieldValue: async (accountAddress, chain, options = {}) => {
|
|
241
235
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
242
|
-
|
|
236
|
+
assertParamExists("getAccountYieldValue", "accountAddress", accountAddress);
|
|
243
237
|
const localVarPath = `/api/v2/vaults/yield/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
244
238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
245
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
239
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
246
240
|
let baseOptions;
|
|
247
241
|
if (configuration) {
|
|
248
242
|
baseOptions = configuration.baseOptions;
|
|
@@ -253,7 +247,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
253
247
|
if (chain !== undefined) {
|
|
254
248
|
localVarQueryParameter["chain"] = chain;
|
|
255
249
|
}
|
|
256
|
-
|
|
250
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
257
251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
252
|
localVarRequestOptions.headers = {
|
|
259
253
|
...localVarHeaderParameter,
|
|
@@ -261,7 +255,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
261
255
|
...options.headers
|
|
262
256
|
};
|
|
263
257
|
return {
|
|
264
|
-
url:
|
|
258
|
+
url: toPathString(localVarUrlObj),
|
|
265
259
|
options: localVarRequestOptions
|
|
266
260
|
};
|
|
267
261
|
},
|
|
@@ -277,12 +271,12 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
277
271
|
*/
|
|
278
272
|
getVaultAccountPositionsHistory: async (vaultId, accountAddress, limit, interval, options = {}) => {
|
|
279
273
|
// verify required parameter 'vaultId' is not null or undefined
|
|
280
|
-
|
|
274
|
+
assertParamExists("getVaultAccountPositionsHistory", "vaultId", vaultId);
|
|
281
275
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
282
|
-
|
|
276
|
+
assertParamExists("getVaultAccountPositionsHistory", "accountAddress", accountAddress);
|
|
283
277
|
const localVarPath = `/api/v2/vaults/position-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
|
|
284
278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
285
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
286
280
|
let baseOptions;
|
|
287
281
|
if (configuration) {
|
|
288
282
|
baseOptions = configuration.baseOptions;
|
|
@@ -299,7 +293,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
299
293
|
if (interval !== undefined) {
|
|
300
294
|
localVarQueryParameter["interval"] = interval;
|
|
301
295
|
}
|
|
302
|
-
|
|
296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
303
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
298
|
localVarRequestOptions.headers = {
|
|
305
299
|
...localVarHeaderParameter,
|
|
@@ -307,19 +301,18 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
307
301
|
...options.headers
|
|
308
302
|
};
|
|
309
303
|
return {
|
|
310
|
-
url:
|
|
304
|
+
url: toPathString(localVarUrlObj),
|
|
311
305
|
options: localVarRequestOptions
|
|
312
306
|
};
|
|
313
307
|
}
|
|
314
308
|
};
|
|
315
309
|
};
|
|
316
|
-
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
317
310
|
/**
|
|
318
311
|
* AccountsApi - functional programming interface
|
|
319
312
|
* @export
|
|
320
313
|
*/
|
|
321
|
-
const AccountsApiFp = function (configuration) {
|
|
322
|
-
const localVarAxiosParamCreator =
|
|
314
|
+
export const AccountsApiFp = function (configuration) {
|
|
315
|
+
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration);
|
|
323
316
|
return {
|
|
324
317
|
/**
|
|
325
318
|
*
|
|
@@ -338,8 +331,8 @@ const AccountsApiFp = function (configuration) {
|
|
|
338
331
|
async getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options) {
|
|
339
332
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options);
|
|
340
333
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
341
|
-
const localVarOperationServerBasePath =
|
|
342
|
-
return (axios, basePath) =>
|
|
334
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
|
|
335
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
343
336
|
},
|
|
344
337
|
/**
|
|
345
338
|
*
|
|
@@ -353,8 +346,8 @@ const AccountsApiFp = function (configuration) {
|
|
|
353
346
|
async getAccountPositionsHistory(accountAddress, limit, interval, options) {
|
|
354
347
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsHistory(accountAddress, limit, interval, options);
|
|
355
348
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
356
|
-
const localVarOperationServerBasePath =
|
|
357
|
-
return (axios, basePath) =>
|
|
349
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
350
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
358
351
|
},
|
|
359
352
|
/**
|
|
360
353
|
*
|
|
@@ -367,8 +360,8 @@ const AccountsApiFp = function (configuration) {
|
|
|
367
360
|
async getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
368
361
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsValue(accountAddress, vaultId, options);
|
|
369
362
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
370
|
-
const localVarOperationServerBasePath =
|
|
371
|
-
return (axios, basePath) =>
|
|
363
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountPositionsValue"]?.[localVarOperationServerIndex]?.url;
|
|
364
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
372
365
|
},
|
|
373
366
|
/**
|
|
374
367
|
*
|
|
@@ -387,8 +380,8 @@ const AccountsApiFp = function (configuration) {
|
|
|
387
380
|
async getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
388
381
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options);
|
|
389
382
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
390
|
-
const localVarOperationServerBasePath =
|
|
391
|
-
return (axios, basePath) =>
|
|
383
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
|
|
384
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
392
385
|
},
|
|
393
386
|
/**
|
|
394
387
|
*
|
|
@@ -401,8 +394,8 @@ const AccountsApiFp = function (configuration) {
|
|
|
401
394
|
async getAccountYieldValue(accountAddress, chain, options) {
|
|
402
395
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountYieldValue(accountAddress, chain, options);
|
|
403
396
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
404
|
-
const localVarOperationServerBasePath =
|
|
405
|
-
return (axios, basePath) =>
|
|
397
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
|
|
398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
406
399
|
},
|
|
407
400
|
/**
|
|
408
401
|
*
|
|
@@ -417,18 +410,17 @@ const AccountsApiFp = function (configuration) {
|
|
|
417
410
|
async getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
|
|
418
411
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options);
|
|
419
412
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
420
|
-
const localVarOperationServerBasePath =
|
|
421
|
-
return (axios, basePath) =>
|
|
413
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.getVaultAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
|
|
414
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
422
415
|
}
|
|
423
416
|
};
|
|
424
417
|
};
|
|
425
|
-
exports.AccountsApiFp = AccountsApiFp;
|
|
426
418
|
/**
|
|
427
419
|
* AccountsApi - factory interface
|
|
428
420
|
* @export
|
|
429
421
|
*/
|
|
430
|
-
const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
431
|
-
const localVarFp =
|
|
422
|
+
export const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
423
|
+
const localVarFp = AccountsApiFp(configuration);
|
|
432
424
|
return {
|
|
433
425
|
/**
|
|
434
426
|
*
|
|
@@ -525,14 +517,13 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
525
517
|
}
|
|
526
518
|
};
|
|
527
519
|
};
|
|
528
|
-
exports.AccountsApiFactory = AccountsApiFactory;
|
|
529
520
|
/**
|
|
530
521
|
* AccountsApi - object-oriented interface
|
|
531
522
|
* @export
|
|
532
523
|
* @class AccountsApi
|
|
533
524
|
* @extends {BaseAPI}
|
|
534
525
|
*/
|
|
535
|
-
class AccountsApi extends
|
|
526
|
+
export class AccountsApi extends BaseAPI {
|
|
536
527
|
/**
|
|
537
528
|
*
|
|
538
529
|
* @summary Get history of the account
|
|
@@ -549,7 +540,7 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
549
540
|
* @memberof AccountsApi
|
|
550
541
|
*/
|
|
551
542
|
getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options) {
|
|
552
|
-
return
|
|
543
|
+
return AccountsApiFp(this.configuration)
|
|
553
544
|
.getAccountHistory(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, type, options)
|
|
554
545
|
.then(request => request(this.axios, this.basePath));
|
|
555
546
|
}
|
|
@@ -564,7 +555,7 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
564
555
|
* @memberof AccountsApi
|
|
565
556
|
*/
|
|
566
557
|
getAccountPositionsHistory(accountAddress, limit, interval, options) {
|
|
567
|
-
return
|
|
558
|
+
return AccountsApiFp(this.configuration)
|
|
568
559
|
.getAccountPositionsHistory(accountAddress, limit, interval, options)
|
|
569
560
|
.then(request => request(this.axios, this.basePath));
|
|
570
561
|
}
|
|
@@ -578,7 +569,7 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
578
569
|
* @memberof AccountsApi
|
|
579
570
|
*/
|
|
580
571
|
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
581
|
-
return
|
|
572
|
+
return AccountsApiFp(this.configuration)
|
|
582
573
|
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
583
574
|
.then(request => request(this.axios, this.basePath));
|
|
584
575
|
}
|
|
@@ -598,7 +589,7 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
598
589
|
* @memberof AccountsApi
|
|
599
590
|
*/
|
|
600
591
|
getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options) {
|
|
601
|
-
return
|
|
592
|
+
return AccountsApiFp(this.configuration)
|
|
602
593
|
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, chain, endTimeInMs, limit, page, vaultId, status, options)
|
|
603
594
|
.then(request => request(this.axios, this.basePath));
|
|
604
595
|
}
|
|
@@ -612,7 +603,7 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
612
603
|
* @memberof AccountsApi
|
|
613
604
|
*/
|
|
614
605
|
getAccountYieldValue(accountAddress, chain, options) {
|
|
615
|
-
return
|
|
606
|
+
return AccountsApiFp(this.configuration)
|
|
616
607
|
.getAccountYieldValue(accountAddress, chain, options)
|
|
617
608
|
.then(request => request(this.axios, this.basePath));
|
|
618
609
|
}
|
|
@@ -628,16 +619,15 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
628
619
|
* @memberof AccountsApi
|
|
629
620
|
*/
|
|
630
621
|
getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
|
|
631
|
-
return
|
|
622
|
+
return AccountsApiFp(this.configuration)
|
|
632
623
|
.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
|
|
633
624
|
.then(request => request(this.axios, this.basePath));
|
|
634
625
|
}
|
|
635
626
|
}
|
|
636
|
-
exports.AccountsApi = AccountsApi;
|
|
637
627
|
/**
|
|
638
628
|
* @export
|
|
639
629
|
*/
|
|
640
|
-
|
|
630
|
+
export const GetAccountHistoryTypeEnum = {
|
|
641
631
|
Deposit: "Deposit",
|
|
642
632
|
RedeemRequest: "RedeemRequest",
|
|
643
633
|
RedeemRequestProcessed: "RedeemRequestProcessed",
|
|
@@ -647,7 +637,7 @@ exports.GetAccountHistoryTypeEnum = {
|
|
|
647
637
|
/**
|
|
648
638
|
* @export
|
|
649
639
|
*/
|
|
650
|
-
|
|
640
|
+
export const GetAccountWithdrawalRequestsStatusEnum = {
|
|
651
641
|
Pending: "Pending",
|
|
652
642
|
PendingCancelling: "PendingCancelling",
|
|
653
643
|
Cancelled: "Cancelled",
|
|
@@ -9,27 +9,27 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from "../configuration";
|
|
12
|
+
import type { Configuration } from "../configuration.js";
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios";
|
|
14
|
-
import { type RequestArgs, BaseAPI } from "../base";
|
|
15
|
-
import type { AggregatedProofOfCapitalReport } from "../models";
|
|
16
|
-
import type { ApyHistoryResponse } from "../models";
|
|
17
|
-
import type { Chain } from "../models";
|
|
18
|
-
import type { CoinPrice } from "../models";
|
|
19
|
-
import type { Fees } from "../models";
|
|
20
|
-
import type { HistoryInterval } from "../models";
|
|
21
|
-
import type { PnlHistory } from "../models";
|
|
22
|
-
import type { PnlHistoryInterval } from "../models";
|
|
23
|
-
import type { ProofOfCapitalReport } from "../models";
|
|
24
|
-
import type { ProtocolPnlHistory } from "../models";
|
|
25
|
-
import type { ProtocolTvlHistory } from "../models";
|
|
26
|
-
import type { SharePriceHistory } from "../models";
|
|
27
|
-
import type { Tag } from "../models";
|
|
28
|
-
import type { TvlHistory } from "../models";
|
|
29
|
-
import type { VaultDepositEligibility } from "../models";
|
|
30
|
-
import type { VaultDetail } from "../models";
|
|
31
|
-
import type { VaultsDeploymentConfig } from "../models";
|
|
32
|
-
import type { VaultsStats } from "../models";
|
|
14
|
+
import { type RequestArgs, BaseAPI } from "../base.js";
|
|
15
|
+
import type { AggregatedProofOfCapitalReport } from "../models/index.js";
|
|
16
|
+
import type { ApyHistoryResponse } from "../models/index.js";
|
|
17
|
+
import type { Chain } from "../models/index.js";
|
|
18
|
+
import type { CoinPrice } from "../models/index.js";
|
|
19
|
+
import type { Fees } from "../models/index.js";
|
|
20
|
+
import type { HistoryInterval } from "../models/index.js";
|
|
21
|
+
import type { PnlHistory } from "../models/index.js";
|
|
22
|
+
import type { PnlHistoryInterval } from "../models/index.js";
|
|
23
|
+
import type { ProofOfCapitalReport } from "../models/index.js";
|
|
24
|
+
import type { ProtocolPnlHistory } from "../models/index.js";
|
|
25
|
+
import type { ProtocolTvlHistory } from "../models/index.js";
|
|
26
|
+
import type { SharePriceHistory } from "../models/index.js";
|
|
27
|
+
import type { Tag } from "../models/index.js";
|
|
28
|
+
import type { TvlHistory } from "../models/index.js";
|
|
29
|
+
import type { VaultDepositEligibility } from "../models/index.js";
|
|
30
|
+
import type { VaultDetail } from "../models/index.js";
|
|
31
|
+
import type { VaultsDeploymentConfig } from "../models/index.js";
|
|
32
|
+
import type { VaultsStats } from "../models/index.js";
|
|
33
33
|
/**
|
|
34
34
|
* VaultsApi - axios parameter creator
|
|
35
35
|
* @export
|