@northstake/northstakeapi 1.0.38 → 1.0.40
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/.openapi-generator/FILES +69 -21
- package/.openapi-generator/VERSION +1 -1
- package/api/accountApi.ts +1 -1
- package/api/accountApiKeysApi.ts +1 -1
- package/api/apis.ts +11 -11
- package/api/lidoReadApi.ts +646 -0
- package/api/{smartContractsApi.ts → lidoRewardsApi.ts} +106 -88
- package/api/{validatorMarketplaceSellersApi.ts → lidoStakingVaultsApi.ts} +74 -89
- package/api/lidoWriteApi.ts +2773 -0
- package/api/linkedWalletsApi.ts +93 -1
- package/api/{validatorMarketplaceBuyersApi.ts → organizationApi.ts} +140 -62
- package/api/validatorsApi.ts +27 -110
- package/api.ts +84 -36
- package/dist/api/accountApi.d.ts +1 -1
- package/dist/api/accountApi.js +1 -1
- package/dist/api/accountApiKeysApi.d.ts +1 -1
- package/dist/api/accountApiKeysApi.js +1 -1
- package/dist/api/apis.d.ts +11 -11
- package/dist/api/apis.js +11 -11
- package/dist/api/lidoReadApi.d.ts +138 -0
- package/dist/api/lidoReadApi.js +494 -0
- package/dist/api/lidoRewardsApi.d.ts +135 -0
- package/dist/api/{smartContractsApi.js → lidoRewardsApi.js} +83 -71
- package/dist/api/lidoStakingVaultsApi.d.ts +121 -0
- package/dist/api/{validatorMarketplaceSellersApi.js → lidoStakingVaultsApi.js} +64 -83
- package/dist/api/lidoWriteApi.d.ts +469 -0
- package/dist/api/lidoWriteApi.js +2172 -0
- package/dist/api/linkedWalletsApi.d.ts +16 -1
- package/dist/api/linkedWalletsApi.js +73 -1
- package/dist/api/organizationApi.d.ts +107 -0
- package/dist/api/{validatorMarketplaceBuyersApi.js → organizationApi.js} +115 -57
- package/dist/api/validatorsApi.d.ts +11 -26
- package/dist/api/validatorsApi.js +25 -87
- package/dist/api.d.ts +74 -26
- package/dist/api.js +79 -31
- package/dist/model/acceptedQuote.d.ts +1 -1
- package/dist/model/acceptedQuote.js +1 -1
- package/dist/model/accountEntity.d.ts +11 -3
- package/dist/model/accountEntity.js +6 -6
- package/dist/model/addLinkedWalletRequest.d.ts +1 -1
- package/dist/model/addLinkedWalletRequest.js +1 -1
- package/dist/model/apiKey.d.ts +4 -4
- package/dist/model/apiKey.js +7 -7
- package/dist/model/approveStETH.d.ts +32 -0
- package/dist/model/approveStETH.js +33 -0
- package/dist/model/approveWstETH.d.ts +36 -0
- package/dist/model/approveWstETH.js +38 -0
- package/dist/model/asset.d.ts +1 -1
- package/dist/model/asset.js +1 -1
- package/dist/model/burnShares.d.ts +32 -0
- package/dist/model/burnShares.js +33 -0
- package/dist/model/burnStETH.d.ts +32 -0
- package/dist/model/burnStETH.js +33 -0
- package/dist/model/burnWstETH.d.ts +32 -0
- package/dist/model/burnWstETH.js +33 -0
- package/dist/model/changeTier.d.ts +36 -0
- package/dist/model/changeTier.js +38 -0
- package/dist/model/collectERC20FromVault.d.ts +40 -0
- package/dist/model/collectERC20FromVault.js +43 -0
- package/dist/model/consolidateValidators.d.ts +36 -0
- package/dist/model/consolidateValidators.js +38 -0
- package/dist/model/consolidateValidatorsErrorResponse.d.ts +32 -0
- package/dist/model/consolidateValidatorsErrorResponse.js +33 -0
- package/dist/model/consolidateValidatorsResponse.d.ts +29 -0
- package/dist/model/consolidateValidatorsResponse.js +28 -0
- package/dist/model/createLidoStakingContractsRequest.d.ts +35 -0
- package/dist/model/createLidoStakingContractsRequest.js +36 -0
- package/dist/model/createVaultRequest.d.ts +39 -0
- package/dist/model/createVaultRequest.js +41 -0
- package/dist/model/dailyRewardSummaryStats.d.ts +55 -0
- package/dist/model/dailyRewardSummaryStats.js +61 -0
- package/dist/model/errorResponse.d.ts +1 -1
- package/dist/model/errorResponse.js +1 -1
- package/dist/model/errorWithTransactionResponse.d.ts +30 -0
- package/dist/model/errorWithTransactionResponse.js +36 -0
- package/dist/model/escrowPayment.d.ts +1 -1
- package/dist/model/escrowPayment.js +1 -1
- package/dist/model/escrowReleased.d.ts +1 -1
- package/dist/model/escrowReleased.js +1 -1
- package/dist/model/ethereumValidatorKey.d.ts +1 -1
- package/dist/model/ethereumValidatorKey.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystore.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystore.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCrypto.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCrypto.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoChecksum.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipher.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoCipherParams.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdf.js +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.d.ts +1 -1
- package/dist/model/ethereumValidatorKeyKeystoreCryptoKdfParams.js +1 -1
- package/dist/model/exitEstimateBase.d.ts +1 -1
- package/dist/model/exitEstimateBase.js +1 -1
- package/dist/model/exitEstimateSeller.d.ts +1 -1
- package/dist/model/exitEstimateSeller.js +1 -1
- package/dist/model/exitProposal.d.ts +1 -1
- package/dist/model/exitProposal.js +1 -1
- package/dist/model/fundVault.d.ts +32 -0
- package/dist/model/fundVault.js +33 -0
- package/dist/model/generateApiKeyRequest.d.ts +1 -1
- package/dist/model/generateApiKeyRequest.js +1 -1
- package/dist/model/getLazyOracleReportCallData200Response.d.ts +28 -0
- package/dist/model/getLazyOracleReportCallData200Response.js +38 -0
- package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.d.ts +31 -0
- package/dist/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.js +58 -0
- package/dist/model/getLazyOracleReportData200Response.d.ts +27 -0
- package/dist/model/getLazyOracleReportData200Response.js +33 -0
- package/dist/model/getLazyOracleReportData200ResponseReportData.d.ts +27 -0
- package/dist/model/getLazyOracleReportData200ResponseReportData.js +38 -0
- package/dist/model/{getSmartContractTransactions200Response.d.ts → getLidoTransactions200Response.d.ts} +2 -2
- package/dist/model/{getSmartContractTransactions200Response.js → getLidoTransactions200Response.js} +7 -7
- package/dist/model/getQuarantineInfo200Response.d.ts +29 -0
- package/dist/model/getQuarantineInfo200Response.js +48 -0
- package/dist/model/getStETHPerWstETHRate200Response.d.ts +28 -0
- package/dist/model/getStETHPerWstETHRate200Response.js +28 -0
- package/dist/model/getWithdrawalsResponse.d.ts +1 -1
- package/dist/model/getWithdrawalsResponse.js +1 -1
- package/dist/model/grantRole.d.ts +36 -0
- package/dist/model/grantRole.js +38 -0
- package/dist/model/internalTransaction.d.ts +1 -1
- package/dist/model/internalTransaction.js +1 -1
- package/dist/model/inviteMemberRequest.d.ts +41 -0
- package/dist/model/inviteMemberRequest.js +36 -0
- package/dist/model/lidoContracts.d.ts +39 -0
- package/dist/model/lidoContracts.js +46 -0
- package/dist/model/{minedBlock.d.ts → lidoContractsDashboard.d.ts} +3 -10
- package/dist/model/lidoContractsDashboard.js +28 -0
- package/dist/model/{smartContract.d.ts → lidoContractsStakingVault.d.ts} +5 -13
- package/dist/model/lidoContractsStakingVault.js +28 -0
- package/dist/model/lidoStakingContracts.d.ts +33 -0
- package/dist/model/lidoStakingContracts.js +36 -0
- package/dist/model/lidoStakingContractsWithData.d.ts +39 -0
- package/dist/model/lidoStakingContractsWithData.js +46 -0
- package/dist/model/lidoStakingContractsWithDataVaultData.d.ts +112 -0
- package/dist/model/lidoStakingContractsWithDataVaultData.js +133 -0
- package/dist/model/mintShares.d.ts +36 -0
- package/dist/model/mintShares.js +38 -0
- package/dist/model/mintStETH.d.ts +36 -0
- package/dist/model/mintStETH.js +38 -0
- package/dist/model/mintWstETH.d.ts +36 -0
- package/dist/model/mintWstETH.js +38 -0
- package/dist/model/models.d.ts +64 -16
- package/dist/model/models.js +194 -48
- package/dist/model/organizationMember.d.ts +53 -0
- package/dist/model/organizationMember.js +51 -0
- package/dist/model/{getMarketplaceMetadata200Response.d.ts → organizationNameResponse.d.ts} +7 -12
- package/dist/model/organizationNameResponse.js +31 -0
- package/dist/model/partialTransaction.d.ts +31 -0
- package/dist/model/partialTransaction.js +46 -0
- package/dist/model/presignedExitKey.d.ts +1 -1
- package/dist/model/presignedExitKey.js +1 -1
- package/dist/model/presignedExitKeyMessage.d.ts +1 -1
- package/dist/model/presignedExitKeyMessage.js +1 -1
- package/dist/model/quote.d.ts +1 -1
- package/dist/model/quote.js +1 -1
- package/dist/model/rFQBidFacilitator.d.ts +1 -1
- package/dist/model/rFQBidFacilitator.js +1 -1
- package/dist/model/rFQBids.d.ts +1 -1
- package/dist/model/rFQBids.js +1 -1
- package/dist/model/rFQDocumentBase.d.ts +1 -1
- package/dist/model/rFQDocumentBase.js +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.d.ts +1 -1
- package/dist/model/rFQDocumentBaseUniqueEscrowVault.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +1 -1
- package/dist/model/rFQDocumentBuyer.js +1 -1
- package/dist/model/rFQDocumentBuyerAllOfValidators.d.ts +1 -1
- package/dist/model/rFQDocumentBuyerAllOfValidators.js +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.js +1 -1
- package/dist/model/rFQDocumentFacilitator.d.ts +1 -1
- package/dist/model/rFQDocumentFacilitator.js +1 -1
- package/dist/model/rFQDocumentFacilitatorStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentFacilitatorStatusFilter.js +1 -1
- package/dist/model/rFQDocumentFacilitatorValidatorsInner.d.ts +1 -1
- package/dist/model/rFQDocumentFacilitatorValidatorsInner.js +1 -1
- package/dist/model/rFQDocumentSeller.d.ts +1 -1
- package/dist/model/rFQDocumentSeller.js +1 -1
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +1 -1
- package/dist/model/rFQDocumentSellerAllOfValidators.js +1 -1
- package/dist/model/rFQDocumentSellerStatusFilter.d.ts +1 -1
- package/dist/model/rFQDocumentSellerStatusFilter.js +1 -1
- package/dist/model/rFQDocumentStatus.d.ts +1 -1
- package/dist/model/rFQDocumentStatus.js +1 -1
- package/dist/model/rFQDocumentUpdate.d.ts +1 -1
- package/dist/model/rFQDocumentUpdate.js +1 -1
- package/dist/model/rFQUpdatePayload.d.ts +1 -1
- package/dist/model/rFQUpdatePayload.js +1 -1
- package/dist/model/rFQWebhookEventType.d.ts +1 -1
- package/dist/model/rFQWebhookEventType.js +1 -1
- package/dist/model/rebalanceVaultWithEther.d.ts +32 -0
- package/dist/model/rebalanceVaultWithEther.js +33 -0
- package/dist/model/rebalanceVaultWithShares.d.ts +32 -0
- package/dist/model/rebalanceVaultWithShares.js +33 -0
- package/dist/model/recoverERC20.d.ts +40 -0
- package/dist/model/recoverERC20.js +43 -0
- package/dist/model/{webhookPayloadData.d.ts → renameVaultRequest.d.ts} +5 -13
- package/dist/model/renameVaultRequest.js +31 -0
- package/dist/model/revokeRole.d.ts +36 -0
- package/dist/model/revokeRole.js +38 -0
- package/dist/model/settlementSteps.d.ts +1 -1
- package/dist/model/settlementSteps.js +1 -1
- package/dist/model/stakeEthRequest.d.ts +31 -0
- package/dist/model/stakeEthRequest.js +31 -0
- package/dist/model/stakeEthResponse.d.ts +32 -0
- package/dist/model/stakeEthResponse.js +43 -0
- package/dist/model/stakeEthResponseDestructuredCallDataInner.d.ts +40 -0
- package/dist/model/stakeEthResponseDestructuredCallDataInner.js +43 -0
- package/dist/model/stakingRequest.d.ts +34 -0
- package/dist/model/stakingRequest.js +38 -0
- package/dist/model/stakingRequestStatus.d.ts +15 -0
- package/dist/model/stakingRequestStatus.js +13 -0
- package/dist/model/supportedValidatorProvidersResponse.d.ts +29 -0
- package/dist/model/supportedValidatorProvidersResponse.js +31 -0
- package/dist/model/transaction.d.ts +14 -2
- package/dist/model/transaction.js +16 -1
- package/dist/model/triggerValidatorWithdrawals.d.ts +40 -0
- package/dist/model/triggerValidatorWithdrawals.js +43 -0
- package/dist/model/unwrapWstETH.d.ts +32 -0
- package/dist/model/unwrapWstETH.js +33 -0
- package/dist/model/{getSmartContractMinedBlocks200Response.d.ts → updateLinkedWalletNameRequest.d.ts} +4 -14
- package/dist/model/updateLinkedWalletNameRequest.js +28 -0
- package/dist/model/updateMemberRoleRequest.d.ts +37 -0
- package/dist/model/updateMemberRoleRequest.js +31 -0
- package/dist/model/updateOrganizationNameRequest.d.ts +31 -0
- package/dist/model/updateOrganizationNameRequest.js +31 -0
- package/dist/model/updateShareLimit.d.ts +32 -0
- package/dist/model/updateShareLimit.js +33 -0
- package/dist/model/validateConsolidationRequestsResponse.d.ts +33 -0
- package/dist/model/validateConsolidationRequestsResponse.js +33 -0
- package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.d.ts +48 -0
- package/dist/model/validateConsolidationRequestsResponseConsolidationDetailsInner.js +53 -0
- package/dist/model/validatorDailyReward.d.ts +63 -0
- package/dist/model/validatorDailyReward.js +71 -0
- package/dist/model/validatorInfo.d.ts +14 -11
- package/dist/model/validatorInfo.js +16 -21
- package/dist/model/validatorKeyHolder.d.ts +1 -1
- package/dist/model/validatorKeyHolder.js +1 -1
- package/dist/model/validatorProvider.d.ts +15 -0
- package/dist/model/validatorProvider.js +13 -0
- package/dist/model/validatorRewardRaw.d.ts +73 -0
- package/dist/model/validatorRewardRaw.js +76 -0
- package/dist/model/validatorRewardsDaily.d.ts +50 -0
- package/dist/model/validatorRewardsDaily.js +48 -0
- package/dist/model/{getSmartContractMEVRewards200Response.d.ts → validatorRewardsDailyResponse.d.ts} +4 -13
- package/dist/model/validatorRewardsDailyResponse.js +43 -0
- package/dist/model/validatorRewardsRaw.d.ts +44 -0
- package/dist/model/validatorRewardsRaw.js +46 -0
- package/dist/model/validatorType.d.ts +1 -1
- package/dist/model/validatorType.js +1 -1
- package/dist/model/validatorWithdrawal.d.ts +7 -7
- package/dist/model/validatorWithdrawal.js +13 -13
- package/dist/model/vaultCreationStartResponse.d.ts +26 -0
- package/dist/model/vaultCreationStartResponse.js +28 -0
- package/dist/model/wallet.d.ts +1 -1
- package/dist/model/wallet.js +1 -1
- package/dist/model/webHookLookupAnswer.d.ts +1 -1
- package/dist/model/webHookLookupAnswer.js +1 -1
- package/dist/model/webhookPayload.d.ts +3 -3
- package/dist/model/webhookPayload.js +2 -2
- package/dist/model/webhookPayloadRFQAvailable.d.ts +1 -1
- package/dist/model/webhookPayloadRFQAvailable.js +1 -1
- package/dist/model/webhookPayloadRFQBidAccepted.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidAccepted.js +1 -1
- package/dist/model/webhookPayloadRFQBidAcceptedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidAcceptedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQBidReceived.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidReceived.js +1 -1
- package/dist/model/webhookPayloadRFQBidReceivedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQBidReceivedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowEvent.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowEvent.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowEventDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowEventDetails.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleased.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleased.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceived.d.ts +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceived.js +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQTransferProposalReceivedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorExited.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorExited.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorExitedDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorExitedDetails.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.js +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimable.d.ts +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimable.js +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.d.ts +1 -1
- package/dist/model/webhookPayloadRFQWithdrawalClaimableDetails.js +1 -1
- package/dist/model/webhookRegistration.d.ts +1 -1
- package/dist/model/webhookRegistration.js +1 -1
- package/dist/model/webhookRegistrationDetails.d.ts +1 -1
- package/dist/model/webhookRegistrationDetails.js +1 -1
- package/dist/model/withdrawFromVault.d.ts +36 -0
- package/dist/model/withdrawFromVault.js +38 -0
- package/dist/model/withdrawalClaimable.d.ts +1 -1
- package/dist/model/withdrawalClaimable.js +1 -1
- package/dist/model/withdrawalRecipientSettlement.d.ts +1 -1
- package/dist/model/withdrawalRecipientSettlement.js +1 -1
- package/dist/model/wrapStETH.d.ts +32 -0
- package/dist/model/wrapStETH.js +33 -0
- package/model/acceptedQuote.ts +1 -1
- package/model/accountEntity.ts +24 -8
- package/model/addLinkedWalletRequest.ts +1 -1
- package/model/apiKey.ts +10 -10
- package/model/approveStETH.ts +43 -0
- package/model/approveWstETH.ts +52 -0
- package/model/asset.ts +1 -1
- package/model/burnShares.ts +43 -0
- package/model/burnStETH.ts +43 -0
- package/model/burnWstETH.ts +43 -0
- package/model/changeTier.ts +52 -0
- package/model/collectERC20FromVault.ts +61 -0
- package/model/consolidateValidators.ts +52 -0
- package/model/consolidateValidatorsErrorResponse.ts +43 -0
- package/model/consolidateValidatorsResponse.ts +35 -0
- package/model/createLidoStakingContractsRequest.ts +46 -0
- package/model/createVaultRequest.ts +55 -0
- package/model/dailyRewardSummaryStats.ts +91 -0
- package/model/errorResponse.ts +1 -1
- package/model/errorWithTransactionResponse.ts +41 -0
- package/model/escrowPayment.ts +1 -1
- package/model/escrowReleased.ts +1 -1
- package/model/ethereumValidatorKey.ts +1 -1
- package/model/ethereumValidatorKeyKeystore.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCrypto.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoChecksum.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoCipher.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoCipherParams.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoKdf.ts +1 -1
- package/model/ethereumValidatorKeyKeystoreCryptoKdfParams.ts +1 -1
- package/model/exitEstimateBase.ts +1 -1
- package/model/exitEstimateSeller.ts +1 -1
- package/model/exitProposal.ts +1 -1
- package/model/fundVault.ts +43 -0
- package/model/generateApiKeyRequest.ts +1 -1
- package/model/getLazyOracleReportCallData200Response.ts +44 -0
- package/model/getLazyOracleReportCallData200ResponseDestructuredCalldata.ts +67 -0
- package/model/getLazyOracleReportData200Response.ts +38 -0
- package/model/getLazyOracleReportData200ResponseReportData.ts +43 -0
- package/model/{getSmartContractTransactions200Response.ts → getLidoTransactions200Response.ts} +3 -3
- package/model/getQuarantineInfo200Response.ts +55 -0
- package/model/getStETHPerWstETHRate200Response.ts +34 -0
- package/model/getWithdrawalsResponse.ts +1 -1
- package/model/grantRole.ts +52 -0
- package/model/internalTransaction.ts +1 -1
- package/model/inviteMemberRequest.ts +54 -0
- package/model/lidoContracts.ts +60 -0
- package/model/{smartContractDetailedWhitelistedDepositorsInner.ts → lidoContractsDashboard.ts} +6 -15
- package/model/lidoContractsStakingVault.ts +34 -0
- package/model/lidoStakingContracts.ts +44 -0
- package/model/lidoStakingContractsWithData.ts +60 -0
- package/model/lidoStakingContractsWithDataVaultData.ts +223 -0
- package/model/mintShares.ts +52 -0
- package/model/mintStETH.ts +52 -0
- package/model/mintWstETH.ts +52 -0
- package/model/models.ts +296 -52
- package/model/organizationMember.ts +81 -0
- package/model/organizationNameResponse.ts +37 -0
- package/model/partialTransaction.ts +52 -0
- package/model/presignedExitKey.ts +1 -1
- package/model/presignedExitKeyMessage.ts +1 -1
- package/model/quote.ts +1 -1
- package/model/rFQBidFacilitator.ts +1 -1
- package/model/rFQBids.ts +1 -1
- package/model/rFQDocumentBase.ts +1 -1
- package/model/rFQDocumentBaseUniqueEscrowVault.ts +1 -1
- package/model/rFQDocumentBuyer.ts +1 -1
- package/model/rFQDocumentBuyerAllOfValidators.ts +1 -1
- package/model/rFQDocumentBuyerStatusFilter.ts +1 -1
- package/model/rFQDocumentFacilitator.ts +1 -1
- package/model/rFQDocumentFacilitatorStatusFilter.ts +1 -1
- package/model/rFQDocumentFacilitatorValidatorsInner.ts +1 -1
- package/model/rFQDocumentSeller.ts +1 -1
- package/model/rFQDocumentSellerAllOfValidators.ts +1 -1
- package/model/rFQDocumentSellerStatusFilter.ts +1 -1
- package/model/rFQDocumentStatus.ts +1 -1
- package/model/rFQDocumentUpdate.ts +1 -1
- package/model/rFQUpdatePayload.ts +1 -1
- package/model/rFQWebhookEventType.ts +1 -1
- package/model/rebalanceVaultWithEther.ts +43 -0
- package/model/rebalanceVaultWithShares.ts +43 -0
- package/model/recoverERC20.ts +61 -0
- package/model/renameVaultRequest.ts +37 -0
- package/model/revokeRole.ts +52 -0
- package/model/settlementSteps.ts +1 -1
- package/model/stakeEthRequest.ts +37 -0
- package/model/stakeEthResponse.ts +53 -0
- package/model/stakeEthResponseDestructuredCallDataInner.ts +61 -0
- package/model/stakingRequest.ts +50 -0
- package/model/stakingRequestStatus.ts +24 -0
- package/model/supportedValidatorProvidersResponse.ts +35 -0
- package/model/transaction.ts +29 -2
- package/model/triggerValidatorWithdrawals.ts +61 -0
- package/model/unwrapWstETH.ts +43 -0
- package/model/updateLinkedWalletNameRequest.ts +34 -0
- package/model/updateMemberRoleRequest.ts +45 -0
- package/model/updateOrganizationNameRequest.ts +37 -0
- package/model/updateShareLimit.ts +43 -0
- package/model/validateConsolidationRequestsResponse.ts +44 -0
- package/model/validateConsolidationRequestsResponseConsolidationDetailsInner.ts +79 -0
- package/model/validatorDailyReward.ts +109 -0
- package/model/validatorInfo.ts +29 -31
- package/model/validatorKeyHolder.ts +1 -1
- package/model/validatorProvider.ts +23 -0
- package/model/validatorRewardRaw.ts +127 -0
- package/model/validatorRewardsDaily.ts +79 -0
- package/model/{getSmartContractMinedBlocks200Response.ts → validatorRewardsDailyResponse.ts} +8 -17
- package/model/{getSmartContractMEVRewards200Response.ts → validatorRewardsRaw.ts} +15 -9
- package/model/validatorType.ts +1 -1
- package/model/validatorWithdrawal.ts +19 -19
- package/model/vaultCreationStartResponse.ts +32 -0
- package/model/wallet.ts +1 -1
- package/model/webHookLookupAnswer.ts +1 -1
- package/model/webhookPayload.ts +4 -4
- package/model/webhookPayloadRFQAvailable.ts +1 -1
- package/model/webhookPayloadRFQBidAccepted.ts +1 -1
- package/model/webhookPayloadRFQBidAcceptedDetails.ts +1 -1
- package/model/webhookPayloadRFQBidReceived.ts +1 -1
- package/model/webhookPayloadRFQBidReceivedDetails.ts +1 -1
- package/model/webhookPayloadRFQEscrowEvent.ts +1 -1
- package/model/webhookPayloadRFQEscrowEventDetails.ts +1 -1
- package/model/webhookPayloadRFQEscrowReleased.ts +1 -1
- package/model/webhookPayloadRFQEscrowReleasedDetails.ts +1 -1
- package/model/webhookPayloadRFQTransferProposalReceived.ts +1 -1
- package/model/webhookPayloadRFQTransferProposalReceivedDetails.ts +1 -1
- package/model/webhookPayloadRFQValidatorExited.ts +1 -1
- package/model/webhookPayloadRFQValidatorExitedDetails.ts +1 -1
- package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +1 -1
- package/model/webhookPayloadRFQValidatorWithdrawalChangeDetails.ts +1 -1
- package/model/webhookPayloadRFQWithdrawalClaimable.ts +1 -1
- package/model/webhookPayloadRFQWithdrawalClaimableDetails.ts +1 -1
- package/model/webhookRegistration.ts +1 -1
- package/model/webhookRegistrationDetails.ts +1 -1
- package/model/withdrawFromVault.ts +52 -0
- package/model/withdrawalClaimable.ts +1 -1
- package/model/withdrawalRecipientSettlement.ts +1 -1
- package/model/wrapStETH.ts +43 -0
- package/package.json +3 -3
- package/api/validatorMarketplaceFacilitatorApi.ts +0 -360
- package/api/validatorMarketplaceWebhooksApi.ts +0 -351
- package/dist/api/smartContractsApi.d.ts +0 -125
- package/dist/api/validatorMarketplaceBuyersApi.d.ts +0 -95
- package/dist/api/validatorMarketplaceFacilitatorApi.d.ts +0 -80
- package/dist/api/validatorMarketplaceFacilitatorApi.js +0 -280
- package/dist/api/validatorMarketplaceSellersApi.d.ts +0 -122
- package/dist/api/validatorMarketplaceWebhooksApi.d.ts +0 -77
- package/dist/api/validatorMarketplaceWebhooksApi.js +0 -272
- package/dist/model/createRFQRequest.d.ts +0 -26
- package/dist/model/createRFQRequest.js +0 -33
- package/dist/model/getMarketplaceMetadata200Response.js +0 -38
- package/dist/model/getSmartContractMEVRewards200Response.js +0 -43
- package/dist/model/getSmartContractMinedBlocks200Response.js +0 -43
- package/dist/model/listAllRFQsForFacilitator200Response.d.ts +0 -38
- package/dist/model/listAllRFQsForFacilitator200Response.js +0 -43
- package/dist/model/mEVReward.d.ts +0 -45
- package/dist/model/mEVReward.js +0 -83
- package/dist/model/minedBlock.js +0 -48
- package/dist/model/provideEscrowHashForRFQDocumentRequest.d.ts +0 -25
- package/dist/model/provideEscrowHashForRFQDocumentRequest.js +0 -28
- package/dist/model/registerWithdrawalRecipientSettlementRequest.d.ts +0 -25
- package/dist/model/registerWithdrawalRecipientSettlementRequest.js +0 -28
- package/dist/model/smartContract.js +0 -56
- package/dist/model/smartContractDetailed.d.ts +0 -47
- package/dist/model/smartContractDetailed.js +0 -71
- package/dist/model/smartContractDetailedStats.d.ts +0 -72
- package/dist/model/smartContractDetailedStats.js +0 -83
- package/dist/model/smartContractDetailedWhitelistedDepositorsInner.d.ts +0 -27
- package/dist/model/smartContractDetailedWhitelistedDepositorsInner.js +0 -38
- package/dist/model/submittedQuote.d.ts +0 -26
- package/dist/model/submittedQuote.js +0 -33
- package/dist/model/webhookPayloadData.js +0 -41
- package/model/createRFQRequest.ts +0 -37
- package/model/getMarketplaceMetadata200Response.ts +0 -52
- package/model/listAllRFQsForFacilitator200Response.ts +0 -59
- package/model/mEVReward.ts +0 -106
- package/model/minedBlock.ts +0 -61
- package/model/provideEscrowHashForRFQDocumentRequest.ts +0 -31
- package/model/registerWithdrawalRecipientSettlementRequest.ts +0 -31
- package/model/smartContract.ts +0 -67
- package/model/smartContractDetailed.ts +0 -93
- package/model/smartContractDetailedStats.ts +0 -133
- package/model/submittedQuote.ts +0 -37
- package/model/webhookPayloadData.ts +0 -56
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.LidoReadApi = exports.LidoReadApiApiKeys = void 0;
|
|
18
|
+
const request_1 = __importDefault(require("request"));
|
|
19
|
+
const models_1 = require("../model/models");
|
|
20
|
+
const models_2 = require("../model/models");
|
|
21
|
+
let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
22
|
+
// ===============================================
|
|
23
|
+
// This file is autogenerated - Please do not edit
|
|
24
|
+
// ===============================================
|
|
25
|
+
var LidoReadApiApiKeys;
|
|
26
|
+
(function (LidoReadApiApiKeys) {
|
|
27
|
+
LidoReadApiApiKeys[LidoReadApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
28
|
+
})(LidoReadApiApiKeys || (exports.LidoReadApiApiKeys = LidoReadApiApiKeys = {}));
|
|
29
|
+
class LidoReadApi {
|
|
30
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
31
|
+
this._basePath = defaultBasePath;
|
|
32
|
+
this._defaultHeaders = {};
|
|
33
|
+
this._useQuerystring = false;
|
|
34
|
+
this.authentications = {
|
|
35
|
+
'default': new models_2.JWTAuth('your_api_key', 'your_private_key'),
|
|
36
|
+
'bearerTokenAuth': new models_2.HttpBearerAuth(),
|
|
37
|
+
'ApiKeyAuth': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
38
|
+
};
|
|
39
|
+
this.interceptors = [];
|
|
40
|
+
if (password) {
|
|
41
|
+
if (basePath) {
|
|
42
|
+
this.basePath = basePath;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (basePathOrUsername) {
|
|
47
|
+
this.basePath = basePathOrUsername;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
set useQuerystring(value) {
|
|
52
|
+
this._useQuerystring = value;
|
|
53
|
+
}
|
|
54
|
+
set basePath(basePath) {
|
|
55
|
+
this._basePath = basePath;
|
|
56
|
+
}
|
|
57
|
+
set defaultHeaders(defaultHeaders) {
|
|
58
|
+
this._defaultHeaders = defaultHeaders;
|
|
59
|
+
}
|
|
60
|
+
get defaultHeaders() {
|
|
61
|
+
return this._defaultHeaders;
|
|
62
|
+
}
|
|
63
|
+
get basePath() {
|
|
64
|
+
return this._basePath;
|
|
65
|
+
}
|
|
66
|
+
setDefaultAuthentication(auth) {
|
|
67
|
+
this.authentications.default = auth;
|
|
68
|
+
}
|
|
69
|
+
setApiKey(key, value) {
|
|
70
|
+
this.authentications[LidoReadApiApiKeys[key]].apiKey = value;
|
|
71
|
+
}
|
|
72
|
+
set accessToken(accessToken) {
|
|
73
|
+
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
74
|
+
}
|
|
75
|
+
addInterceptor(interceptor) {
|
|
76
|
+
this.interceptors.push(interceptor);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary Get dashboard role members for a vault
|
|
81
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
82
|
+
*/
|
|
83
|
+
async getAllDashboardRoleMembers(contractsId, options = { headers: {} }) {
|
|
84
|
+
const localVarPath = this.basePath + '/lidov3/{contractsId}/all-dashboard-role-members'
|
|
85
|
+
.replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
|
|
86
|
+
let localVarQueryParameters = {};
|
|
87
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
88
|
+
const produces = ['application/json'];
|
|
89
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
90
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
94
|
+
}
|
|
95
|
+
let localVarFormParams = {};
|
|
96
|
+
// Verify required parameter 'contractsId' is not null or undefined
|
|
97
|
+
if (contractsId === null || contractsId === undefined) {
|
|
98
|
+
throw new Error('Required parameter "contractsId" was null or undefined when calling getAllDashboardRoleMembers.');
|
|
99
|
+
}
|
|
100
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
101
|
+
let localVarUseFormData = false;
|
|
102
|
+
let localVarRequestOptions = {
|
|
103
|
+
method: 'GET',
|
|
104
|
+
qs: localVarQueryParameters,
|
|
105
|
+
headers: localVarHeaderParams,
|
|
106
|
+
uri: localVarPath,
|
|
107
|
+
useQuerystring: this._useQuerystring,
|
|
108
|
+
json: true,
|
|
109
|
+
};
|
|
110
|
+
let authenticationPromise = Promise.resolve();
|
|
111
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
112
|
+
let interceptorPromise = authenticationPromise;
|
|
113
|
+
for (const interceptor of this.interceptors) {
|
|
114
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
115
|
+
}
|
|
116
|
+
return interceptorPromise.then(() => {
|
|
117
|
+
if (Object.keys(localVarFormParams).length) {
|
|
118
|
+
if (localVarUseFormData) {
|
|
119
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return new Promise((resolve, reject) => {
|
|
126
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
127
|
+
if (error) {
|
|
128
|
+
console.error('API call error:', error);
|
|
129
|
+
reject(error);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
133
|
+
body = models_1.ObjectSerializer.deserialize(body, "{ [key: string]: Array<string>; }");
|
|
134
|
+
resolve({ body: body, status: response.statusCode });
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
console.error('API response error:', response.statusCode);
|
|
138
|
+
resolve({ body: body, status: response.statusCode });
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @summary Get vault report data from lazy oracle
|
|
148
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
149
|
+
*/
|
|
150
|
+
async getLazyOracleReportData(contractsId, options = { headers: {} }) {
|
|
151
|
+
const localVarPath = this.basePath + '/lidov3/{contractsId}/vault-report-data'
|
|
152
|
+
.replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
|
|
153
|
+
let localVarQueryParameters = {};
|
|
154
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
155
|
+
const produces = ['application/json'];
|
|
156
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
157
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
161
|
+
}
|
|
162
|
+
let localVarFormParams = {};
|
|
163
|
+
// Verify required parameter 'contractsId' is not null or undefined
|
|
164
|
+
if (contractsId === null || contractsId === undefined) {
|
|
165
|
+
throw new Error('Required parameter "contractsId" was null or undefined when calling getLazyOracleReportData.');
|
|
166
|
+
}
|
|
167
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
168
|
+
let localVarUseFormData = false;
|
|
169
|
+
let localVarRequestOptions = {
|
|
170
|
+
method: 'GET',
|
|
171
|
+
qs: localVarQueryParameters,
|
|
172
|
+
headers: localVarHeaderParams,
|
|
173
|
+
uri: localVarPath,
|
|
174
|
+
useQuerystring: this._useQuerystring,
|
|
175
|
+
json: true,
|
|
176
|
+
};
|
|
177
|
+
let authenticationPromise = Promise.resolve();
|
|
178
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
179
|
+
let interceptorPromise = authenticationPromise;
|
|
180
|
+
for (const interceptor of this.interceptors) {
|
|
181
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
182
|
+
}
|
|
183
|
+
return interceptorPromise.then(() => {
|
|
184
|
+
if (Object.keys(localVarFormParams).length) {
|
|
185
|
+
if (localVarUseFormData) {
|
|
186
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return new Promise((resolve, reject) => {
|
|
193
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
194
|
+
if (error) {
|
|
195
|
+
console.error('API call error:', error);
|
|
196
|
+
reject(error);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
200
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetLazyOracleReportData200Response");
|
|
201
|
+
resolve({ body: body, status: response.statusCode });
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
console.error('API response error:', response.statusCode);
|
|
205
|
+
resolve({ body: body, status: response.statusCode });
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Retrieves transactions for all staking vaults. Optionally filter by a specific contractsId.
|
|
214
|
+
* @summary Get transactions related to Lido staking contract sets
|
|
215
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, returns transactions for all staking vaults.
|
|
216
|
+
* @param startDate Start date for filtering transactions
|
|
217
|
+
* @param endDate End date for filtering transactions
|
|
218
|
+
* @param page Page number for pagination
|
|
219
|
+
* @param limit Number of transactions per page
|
|
220
|
+
*/
|
|
221
|
+
async getLidoTransactions(params, options = { headers: {} }) {
|
|
222
|
+
const localVarPath = this.basePath + '/lidov3/transactions';
|
|
223
|
+
let localVarQueryParameters = {};
|
|
224
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
225
|
+
const produces = ['application/json'];
|
|
226
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
227
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
231
|
+
}
|
|
232
|
+
let localVarFormParams = {};
|
|
233
|
+
if ((params === null || params === void 0 ? void 0 : params.contractsId) !== undefined) {
|
|
234
|
+
localVarQueryParameters['contractsId'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.contractsId, "string");
|
|
235
|
+
}
|
|
236
|
+
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
237
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "Date");
|
|
238
|
+
}
|
|
239
|
+
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
240
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "Date");
|
|
241
|
+
}
|
|
242
|
+
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
243
|
+
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
244
|
+
}
|
|
245
|
+
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
246
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
247
|
+
}
|
|
248
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
249
|
+
let localVarUseFormData = false;
|
|
250
|
+
let localVarRequestOptions = {
|
|
251
|
+
method: 'GET',
|
|
252
|
+
qs: localVarQueryParameters,
|
|
253
|
+
headers: localVarHeaderParams,
|
|
254
|
+
uri: localVarPath,
|
|
255
|
+
useQuerystring: this._useQuerystring,
|
|
256
|
+
json: true,
|
|
257
|
+
};
|
|
258
|
+
let authenticationPromise = Promise.resolve();
|
|
259
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
260
|
+
let interceptorPromise = authenticationPromise;
|
|
261
|
+
for (const interceptor of this.interceptors) {
|
|
262
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
263
|
+
}
|
|
264
|
+
return interceptorPromise.then(() => {
|
|
265
|
+
if (Object.keys(localVarFormParams).length) {
|
|
266
|
+
if (localVarUseFormData) {
|
|
267
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return new Promise((resolve, reject) => {
|
|
274
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
275
|
+
if (error) {
|
|
276
|
+
console.error('API call error:', error);
|
|
277
|
+
reject(error);
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
281
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetLidoTransactions200Response");
|
|
282
|
+
resolve({ body: body, status: response.statusCode });
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
console.error('API response error:', response.statusCode);
|
|
286
|
+
resolve({ body: body, status: response.statusCode });
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @summary Get quarantine info for a vault
|
|
296
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
297
|
+
*/
|
|
298
|
+
async getQuarantineInfo(contractsId, options = { headers: {} }) {
|
|
299
|
+
const localVarPath = this.basePath + '/lidov3/{contractsId}/quarantine-info'
|
|
300
|
+
.replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
|
|
301
|
+
let localVarQueryParameters = {};
|
|
302
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
303
|
+
const produces = ['application/json'];
|
|
304
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
305
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
309
|
+
}
|
|
310
|
+
let localVarFormParams = {};
|
|
311
|
+
// Verify required parameter 'contractsId' is not null or undefined
|
|
312
|
+
if (contractsId === null || contractsId === undefined) {
|
|
313
|
+
throw new Error('Required parameter "contractsId" was null or undefined when calling getQuarantineInfo.');
|
|
314
|
+
}
|
|
315
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
316
|
+
let localVarUseFormData = false;
|
|
317
|
+
let localVarRequestOptions = {
|
|
318
|
+
method: 'GET',
|
|
319
|
+
qs: localVarQueryParameters,
|
|
320
|
+
headers: localVarHeaderParams,
|
|
321
|
+
uri: localVarPath,
|
|
322
|
+
useQuerystring: this._useQuerystring,
|
|
323
|
+
json: true,
|
|
324
|
+
};
|
|
325
|
+
let authenticationPromise = Promise.resolve();
|
|
326
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
327
|
+
let interceptorPromise = authenticationPromise;
|
|
328
|
+
for (const interceptor of this.interceptors) {
|
|
329
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
330
|
+
}
|
|
331
|
+
return interceptorPromise.then(() => {
|
|
332
|
+
if (Object.keys(localVarFormParams).length) {
|
|
333
|
+
if (localVarUseFormData) {
|
|
334
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
335
|
+
}
|
|
336
|
+
else {
|
|
337
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return new Promise((resolve, reject) => {
|
|
341
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
342
|
+
if (error) {
|
|
343
|
+
console.error('API call error:', error);
|
|
344
|
+
reject(error);
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
348
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetQuarantineInfo200Response");
|
|
349
|
+
resolve({ body: body, status: response.statusCode });
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
console.error('API response error:', response.statusCode);
|
|
353
|
+
resolve({ body: body, status: response.statusCode });
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @summary Get the current stETH per wstETH exchange rate
|
|
363
|
+
*/
|
|
364
|
+
async getStETHPerWstETHRate(options = { headers: {} }) {
|
|
365
|
+
const localVarPath = this.basePath + '/lidov3/steth-per-wsteth-rate';
|
|
366
|
+
let localVarQueryParameters = {};
|
|
367
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
368
|
+
const produces = ['application/json'];
|
|
369
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
370
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
374
|
+
}
|
|
375
|
+
let localVarFormParams = {};
|
|
376
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
377
|
+
let localVarUseFormData = false;
|
|
378
|
+
let localVarRequestOptions = {
|
|
379
|
+
method: 'GET',
|
|
380
|
+
qs: localVarQueryParameters,
|
|
381
|
+
headers: localVarHeaderParams,
|
|
382
|
+
uri: localVarPath,
|
|
383
|
+
useQuerystring: this._useQuerystring,
|
|
384
|
+
json: true,
|
|
385
|
+
};
|
|
386
|
+
let authenticationPromise = Promise.resolve();
|
|
387
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
388
|
+
let interceptorPromise = authenticationPromise;
|
|
389
|
+
for (const interceptor of this.interceptors) {
|
|
390
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
391
|
+
}
|
|
392
|
+
return interceptorPromise.then(() => {
|
|
393
|
+
if (Object.keys(localVarFormParams).length) {
|
|
394
|
+
if (localVarUseFormData) {
|
|
395
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return new Promise((resolve, reject) => {
|
|
402
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
403
|
+
if (error) {
|
|
404
|
+
console.error('API call error:', error);
|
|
405
|
+
reject(error);
|
|
406
|
+
}
|
|
407
|
+
else {
|
|
408
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
409
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetStETHPerWstETHRate200Response");
|
|
410
|
+
resolve({ body: body, status: response.statusCode });
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
console.error('API response error:', response.statusCode);
|
|
414
|
+
resolve({ body: body, status: response.statusCode });
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Creates an internal order document for CSV export of transactions. The backend janitor will process this order and send the CSV via email.
|
|
423
|
+
* @summary Request CSV export for transactions
|
|
424
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, exports transactions for all staking vaults.
|
|
425
|
+
* @param startDate Start date for filtering transactions
|
|
426
|
+
* @param endDate End date for filtering transactions
|
|
427
|
+
*/
|
|
428
|
+
async requestTransactionsCsvExport(params, options = { headers: {} }) {
|
|
429
|
+
const localVarPath = this.basePath + '/lidov3/transactions/csv-export';
|
|
430
|
+
let localVarQueryParameters = {};
|
|
431
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
432
|
+
const produces = ['application/json'];
|
|
433
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
434
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
438
|
+
}
|
|
439
|
+
let localVarFormParams = {};
|
|
440
|
+
if ((params === null || params === void 0 ? void 0 : params.contractsId) !== undefined) {
|
|
441
|
+
localVarQueryParameters['contractsId'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.contractsId, "string");
|
|
442
|
+
}
|
|
443
|
+
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
444
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "Date");
|
|
445
|
+
}
|
|
446
|
+
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
447
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "Date");
|
|
448
|
+
}
|
|
449
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
450
|
+
let localVarUseFormData = false;
|
|
451
|
+
let localVarRequestOptions = {
|
|
452
|
+
method: 'POST',
|
|
453
|
+
qs: localVarQueryParameters,
|
|
454
|
+
headers: localVarHeaderParams,
|
|
455
|
+
uri: localVarPath,
|
|
456
|
+
useQuerystring: this._useQuerystring,
|
|
457
|
+
json: true,
|
|
458
|
+
};
|
|
459
|
+
let authenticationPromise = Promise.resolve();
|
|
460
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
461
|
+
let interceptorPromise = authenticationPromise;
|
|
462
|
+
for (const interceptor of this.interceptors) {
|
|
463
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
464
|
+
}
|
|
465
|
+
return interceptorPromise.then(() => {
|
|
466
|
+
if (Object.keys(localVarFormParams).length) {
|
|
467
|
+
if (localVarUseFormData) {
|
|
468
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
469
|
+
}
|
|
470
|
+
else {
|
|
471
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
return new Promise((resolve, reject) => {
|
|
475
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
476
|
+
if (error) {
|
|
477
|
+
console.error('API call error:', error);
|
|
478
|
+
reject(error);
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
482
|
+
resolve({ body: body, status: response.statusCode });
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
console.error('API response error:', response.statusCode);
|
|
486
|
+
resolve({ body: body, status: response.statusCode });
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
exports.LidoReadApi = LidoReadApi;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api Operation-level extensions used by the API: - x-roleRequired (array of strings): roles required to call the operation. - x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled. - x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ValidatorRewardsDailyResponse } from '../model/validatorRewardsDailyResponse';
|
|
13
|
+
import { ValidatorRewardsRaw } from '../model/validatorRewardsRaw';
|
|
14
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
15
|
+
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
16
|
+
export declare enum LidoRewardsApiApiKeys {
|
|
17
|
+
ApiKeyAuth = 0
|
|
18
|
+
}
|
|
19
|
+
export interface LidoRewardsApiParams {
|
|
20
|
+
contractsId?: string;
|
|
21
|
+
startDate?: Date;
|
|
22
|
+
endDate?: Date;
|
|
23
|
+
page?: number;
|
|
24
|
+
limit?: number;
|
|
25
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
26
|
+
}
|
|
27
|
+
export interface LidoRewardsApiParams {
|
|
28
|
+
contractsId?: string;
|
|
29
|
+
startDate?: Date;
|
|
30
|
+
endDate?: Date;
|
|
31
|
+
page?: number;
|
|
32
|
+
limit?: number;
|
|
33
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
34
|
+
}
|
|
35
|
+
export interface LidoRewardsApiParams {
|
|
36
|
+
contractsId?: string;
|
|
37
|
+
startDate?: Date;
|
|
38
|
+
endDate?: Date;
|
|
39
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
40
|
+
}
|
|
41
|
+
export interface LidoRewardsApiParams {
|
|
42
|
+
contractsId?: string;
|
|
43
|
+
startDate?: Date;
|
|
44
|
+
endDate?: Date;
|
|
45
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
46
|
+
}
|
|
47
|
+
export declare class LidoRewardsApi {
|
|
48
|
+
protected _basePath: string;
|
|
49
|
+
protected _defaultHeaders: any;
|
|
50
|
+
protected _useQuerystring: boolean;
|
|
51
|
+
protected authentications: {
|
|
52
|
+
default: Authentication;
|
|
53
|
+
bearerTokenAuth: HttpBearerAuth;
|
|
54
|
+
ApiKeyAuth: ApiKeyAuth;
|
|
55
|
+
};
|
|
56
|
+
protected interceptors: Interceptor[];
|
|
57
|
+
constructor(basePath?: string);
|
|
58
|
+
set useQuerystring(value: boolean);
|
|
59
|
+
set basePath(basePath: string);
|
|
60
|
+
set defaultHeaders(defaultHeaders: any);
|
|
61
|
+
get defaultHeaders(): any;
|
|
62
|
+
get basePath(): string;
|
|
63
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
64
|
+
setApiKey(key: LidoRewardsApiApiKeys, value: string): void;
|
|
65
|
+
set accessToken(accessToken: string | (() => string));
|
|
66
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
67
|
+
/**
|
|
68
|
+
* Retrieves a paginated list of daily aggregated validator rewards for all staking vaults, aggregated by date, reward type, and staking vault. Optionally filter by a specific contractsId. Supports filtering by date range and reward type.
|
|
69
|
+
* @summary Get daily aggregated validator rewards for staking vaults
|
|
70
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, returns rewards for all staking vaults.
|
|
71
|
+
* @param startDate Start date for filtering rewards
|
|
72
|
+
* @param endDate End date for filtering rewards
|
|
73
|
+
* @param page Page number for pagination
|
|
74
|
+
* @param limit Number of daily reward records per page
|
|
75
|
+
* @param rewardType Filter by reward type
|
|
76
|
+
*/
|
|
77
|
+
getStakingVaultRewardsDaily(params?: LidoRewardsApiParams, options?: {
|
|
78
|
+
headers: {
|
|
79
|
+
[name: string]: string;
|
|
80
|
+
};
|
|
81
|
+
}): Promise<{
|
|
82
|
+
body: ValidatorRewardsDailyResponse;
|
|
83
|
+
status: number;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves a paginated list of raw validator reward records for all staking vaults. Optionally filter by a specific contractsId. Supports filtering by date range and reward type.
|
|
87
|
+
* @summary Get raw validator rewards for staking vaults
|
|
88
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, returns rewards for all staking vaults.
|
|
89
|
+
* @param startDate Start date for filtering rewards
|
|
90
|
+
* @param endDate End date for filtering rewards
|
|
91
|
+
* @param page Page number for pagination
|
|
92
|
+
* @param limit Number of reward records per page
|
|
93
|
+
* @param rewardType Filter by reward type
|
|
94
|
+
*/
|
|
95
|
+
getStakingVaultRewardsRaw(params?: LidoRewardsApiParams, options?: {
|
|
96
|
+
headers: {
|
|
97
|
+
[name: string]: string;
|
|
98
|
+
};
|
|
99
|
+
}): Promise<{
|
|
100
|
+
body: ValidatorRewardsRaw;
|
|
101
|
+
status: number;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
* Creates an internal order document for CSV export of daily aggregated rewards. The backend janitor will process this order and send the CSV via email.
|
|
105
|
+
* @summary Request CSV export for daily rewards
|
|
106
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, exports rewards for all staking vaults.
|
|
107
|
+
* @param startDate Start date for filtering rewards
|
|
108
|
+
* @param endDate End date for filtering rewards
|
|
109
|
+
* @param rewardType Filter by reward type
|
|
110
|
+
*/
|
|
111
|
+
requestRewardsDailyCsvExport(params?: LidoRewardsApiParams, options?: {
|
|
112
|
+
headers: {
|
|
113
|
+
[name: string]: string;
|
|
114
|
+
};
|
|
115
|
+
}): Promise<{
|
|
116
|
+
body: any;
|
|
117
|
+
status: number;
|
|
118
|
+
}>;
|
|
119
|
+
/**
|
|
120
|
+
* Creates an internal order document for CSV export of raw validator rewards. The backend janitor will process this order and send the CSV via email.
|
|
121
|
+
* @summary Request CSV export for raw rewards
|
|
122
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, exports rewards for all staking vaults.
|
|
123
|
+
* @param startDate Start date for filtering rewards
|
|
124
|
+
* @param endDate End date for filtering rewards
|
|
125
|
+
* @param rewardType Filter by reward type
|
|
126
|
+
*/
|
|
127
|
+
requestRewardsRawCsvExport(params?: LidoRewardsApiParams, options?: {
|
|
128
|
+
headers: {
|
|
129
|
+
[name: string]: string;
|
|
130
|
+
};
|
|
131
|
+
}): Promise<{
|
|
132
|
+
body: any;
|
|
133
|
+
status: number;
|
|
134
|
+
}>;
|
|
135
|
+
}
|