@northstake/northstakeapi 1.0.38 → 1.0.39
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 +66 -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/{validatorMarketplaceSellersApi.ts → lidoReadApi.ts} +105 -91
- package/api/{smartContractsApi.ts → lidoRewardsApi.ts} +106 -88
- package/api/lidoStakingVaultsApi.ts +536 -0
- package/api/lidoWriteApi.ts +2473 -0
- package/api/linkedWalletsApi.ts +93 -1
- package/api/{validatorMarketplaceBuyersApi.ts → organizationApi.ts} +140 -62
- package/api/validatorsApi.ts +27 -110
- package/api.ts +81 -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/{validatorMarketplaceSellersApi.js → lidoReadApi.js} +82 -82
- package/dist/api/lidoRewardsApi.d.ts +135 -0
- package/dist/api/{smartContractsApi.js → lidoRewardsApi.js} +83 -71
- package/dist/api/lidoStakingVaultsApi.d.ts +108 -0
- package/dist/api/{validatorMarketplaceFacilitatorApi.js → lidoStakingVaultsApi.js} +174 -40
- package/dist/api/lidoWriteApi.d.ts +404 -0
- package/dist/api/lidoWriteApi.js +1931 -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 +71 -26
- package/dist/api.js +76 -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/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/{getMarketplaceMetadata200Response.d.ts → getStETHPerWstETHRate200Response.d.ts} +4 -12
- 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 +61 -16
- package/dist/model/models.js +185 -48
- package/dist/model/organizationMember.d.ts +53 -0
- package/dist/model/organizationMember.js +51 -0
- package/dist/model/organizationNameResponse.d.ts +31 -0
- 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/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/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/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 +281 -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/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/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 +22 -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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Northstake
|
|
3
|
-
* Northstake api
|
|
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
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
*
|
|
@@ -16,10 +16,8 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
22
|
-
import { SmartContractDetailed } from '../model/smartContractDetailed';
|
|
19
|
+
import { ValidatorRewardsDailyResponse } from '../model/validatorRewardsDailyResponse';
|
|
20
|
+
import { ValidatorRewardsRaw } from '../model/validatorRewardsRaw';
|
|
23
21
|
|
|
24
22
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
25
23
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -32,37 +30,45 @@ let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
|
32
30
|
// This file is autogenerated - Please do not edit
|
|
33
31
|
// ===============================================
|
|
34
32
|
|
|
35
|
-
export enum
|
|
33
|
+
export enum LidoRewardsApiApiKeys {
|
|
36
34
|
ApiKeyAuth,
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
|
|
40
38
|
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
41
|
-
export interface
|
|
42
|
-
|
|
43
|
-
page?: number;
|
|
44
|
-
limit?: number;
|
|
39
|
+
export interface LidoRewardsApiParams {
|
|
40
|
+
contractsId?: string;
|
|
45
41
|
startDate?: Date;
|
|
46
42
|
endDate?: Date;
|
|
43
|
+
page?: number;
|
|
44
|
+
limit?: number;
|
|
45
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
47
46
|
}
|
|
48
47
|
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
49
|
-
export interface
|
|
50
|
-
|
|
48
|
+
export interface LidoRewardsApiParams {
|
|
49
|
+
contractsId?: string;
|
|
50
|
+
startDate?: Date;
|
|
51
|
+
endDate?: Date;
|
|
51
52
|
page?: number;
|
|
52
53
|
limit?: number;
|
|
54
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
55
|
+
}
|
|
56
|
+
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
57
|
+
export interface LidoRewardsApiParams {
|
|
58
|
+
contractsId?: string;
|
|
53
59
|
startDate?: Date;
|
|
54
60
|
endDate?: Date;
|
|
61
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
55
62
|
}
|
|
56
63
|
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
57
|
-
export interface
|
|
58
|
-
|
|
64
|
+
export interface LidoRewardsApiParams {
|
|
65
|
+
contractsId?: string;
|
|
59
66
|
startDate?: Date;
|
|
60
67
|
endDate?: Date;
|
|
61
|
-
|
|
62
|
-
limit?: number;
|
|
68
|
+
rewardType?: 'consensus' | 'block' | 'mev';
|
|
63
69
|
}
|
|
64
70
|
|
|
65
|
-
export class
|
|
71
|
+
export class LidoRewardsApi {
|
|
66
72
|
protected _basePath = defaultBasePath;
|
|
67
73
|
protected _defaultHeaders : any = {};
|
|
68
74
|
protected _useQuerystring : boolean = false;
|
|
@@ -112,8 +118,8 @@ export class SmartContractsApi {
|
|
|
112
118
|
this.authentications.default = auth;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
public setApiKey(key:
|
|
116
|
-
(this.authentications as any)[
|
|
121
|
+
public setApiKey(key: LidoRewardsApiApiKeys, value: string) {
|
|
122
|
+
(this.authentications as any)[LidoRewardsApiApiKeys[key]].apiKey = value;
|
|
117
123
|
}
|
|
118
124
|
|
|
119
125
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -125,23 +131,23 @@ export class SmartContractsApi {
|
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary Get
|
|
130
|
-
* @param
|
|
134
|
+
* 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.
|
|
135
|
+
* @summary Get daily aggregated validator rewards for staking vaults
|
|
136
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, returns rewards for all staking vaults.
|
|
137
|
+
* @param startDate Start date for filtering rewards
|
|
138
|
+
* @param endDate End date for filtering rewards
|
|
131
139
|
* @param page Page number for pagination
|
|
132
|
-
* @param limit Number of
|
|
133
|
-
* @param
|
|
134
|
-
* @param endDate End date for filtering MEV rewards
|
|
140
|
+
* @param limit Number of daily reward records per page
|
|
141
|
+
* @param rewardType Filter by reward type
|
|
135
142
|
*/
|
|
136
143
|
|
|
137
144
|
|
|
138
145
|
|
|
139
146
|
|
|
140
147
|
|
|
141
|
-
public async
|
|
148
|
+
public async getStakingVaultRewardsDaily(params?: LidoRewardsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: ValidatorRewardsDailyResponse, status: number }> {
|
|
142
149
|
|
|
143
|
-
const localVarPath = this.basePath + '/
|
|
144
|
-
.replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params?.contractAddress)));
|
|
150
|
+
const localVarPath = this.basePath + '/lidov3/rewards/daily';
|
|
145
151
|
|
|
146
152
|
let localVarQueryParameters: any = {};
|
|
147
153
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -154,18 +160,11 @@ export class SmartContractsApi {
|
|
|
154
160
|
let localVarFormParams: any = {};
|
|
155
161
|
|
|
156
162
|
|
|
157
|
-
// Verify required parameter 'contractAddress' is not null or undefined
|
|
158
|
-
if (params?.contractAddress === null || params?.contractAddress === undefined) {
|
|
159
|
-
throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractMEVRewards.');
|
|
160
|
-
}
|
|
161
163
|
|
|
162
164
|
|
|
163
165
|
|
|
164
|
-
if (params?.
|
|
165
|
-
localVarQueryParameters['
|
|
166
|
-
}
|
|
167
|
-
if (params?.limit !== undefined) {
|
|
168
|
-
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
166
|
+
if (params?.contractsId !== undefined) {
|
|
167
|
+
localVarQueryParameters['contractsId'] = ObjectSerializer.serialize(params?.contractsId, "string");
|
|
169
168
|
}
|
|
170
169
|
if (params?.startDate !== undefined) {
|
|
171
170
|
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
|
|
@@ -173,6 +172,15 @@ export class SmartContractsApi {
|
|
|
173
172
|
if (params?.endDate !== undefined) {
|
|
174
173
|
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
|
|
175
174
|
}
|
|
175
|
+
if (params?.page !== undefined) {
|
|
176
|
+
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
|
177
|
+
}
|
|
178
|
+
if (params?.limit !== undefined) {
|
|
179
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
180
|
+
}
|
|
181
|
+
if (params?.rewardType !== undefined) {
|
|
182
|
+
localVarQueryParameters['reward_type'] = ObjectSerializer.serialize(params?.rewardType, "'consensus' | 'block' | 'mev'");
|
|
183
|
+
}
|
|
176
184
|
|
|
177
185
|
|
|
178
186
|
|
|
@@ -208,14 +216,14 @@ export class SmartContractsApi {
|
|
|
208
216
|
localVarRequestOptions.form = localVarFormParams;
|
|
209
217
|
}
|
|
210
218
|
}
|
|
211
|
-
return new Promise<{ body:
|
|
219
|
+
return new Promise<{ body: ValidatorRewardsDailyResponse, status: number }>((resolve, reject) => {
|
|
212
220
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
213
221
|
if (error) {
|
|
214
222
|
console.error('API call error:', error);
|
|
215
223
|
reject(error);
|
|
216
224
|
} else {
|
|
217
225
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
218
|
-
body = ObjectSerializer.deserialize(body, "
|
|
226
|
+
body = ObjectSerializer.deserialize(body, "ValidatorRewardsDailyResponse");
|
|
219
227
|
resolve({ body: body, status: response.statusCode });
|
|
220
228
|
} else {
|
|
221
229
|
console.error('API response error:', response.statusCode);
|
|
@@ -227,23 +235,23 @@ export class SmartContractsApi {
|
|
|
227
235
|
} )
|
|
228
236
|
}
|
|
229
237
|
/**
|
|
230
|
-
*
|
|
231
|
-
* @summary Get
|
|
232
|
-
* @param
|
|
238
|
+
* 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.
|
|
239
|
+
* @summary Get raw validator rewards for staking vaults
|
|
240
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, returns rewards for all staking vaults.
|
|
241
|
+
* @param startDate Start date for filtering rewards
|
|
242
|
+
* @param endDate End date for filtering rewards
|
|
233
243
|
* @param page Page number for pagination
|
|
234
|
-
* @param limit Number of
|
|
235
|
-
* @param
|
|
236
|
-
* @param endDate End date for filtering mined blocks
|
|
244
|
+
* @param limit Number of reward records per page
|
|
245
|
+
* @param rewardType Filter by reward type
|
|
237
246
|
*/
|
|
238
247
|
|
|
239
248
|
|
|
240
249
|
|
|
241
250
|
|
|
242
251
|
|
|
243
|
-
public async
|
|
252
|
+
public async getStakingVaultRewardsRaw(params?: LidoRewardsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: ValidatorRewardsRaw, status: number }> {
|
|
244
253
|
|
|
245
|
-
const localVarPath = this.basePath + '/
|
|
246
|
-
.replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params?.contractAddress)));
|
|
254
|
+
const localVarPath = this.basePath + '/lidov3/rewards/raw';
|
|
247
255
|
|
|
248
256
|
let localVarQueryParameters: any = {};
|
|
249
257
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -256,18 +264,11 @@ export class SmartContractsApi {
|
|
|
256
264
|
let localVarFormParams: any = {};
|
|
257
265
|
|
|
258
266
|
|
|
259
|
-
// Verify required parameter 'contractAddress' is not null or undefined
|
|
260
|
-
if (params?.contractAddress === null || params?.contractAddress === undefined) {
|
|
261
|
-
throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractMinedBlocks.');
|
|
262
|
-
}
|
|
263
267
|
|
|
264
268
|
|
|
265
269
|
|
|
266
|
-
if (params?.
|
|
267
|
-
localVarQueryParameters['
|
|
268
|
-
}
|
|
269
|
-
if (params?.limit !== undefined) {
|
|
270
|
-
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
270
|
+
if (params?.contractsId !== undefined) {
|
|
271
|
+
localVarQueryParameters['contractsId'] = ObjectSerializer.serialize(params?.contractsId, "string");
|
|
271
272
|
}
|
|
272
273
|
if (params?.startDate !== undefined) {
|
|
273
274
|
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
|
|
@@ -275,6 +276,15 @@ export class SmartContractsApi {
|
|
|
275
276
|
if (params?.endDate !== undefined) {
|
|
276
277
|
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
|
|
277
278
|
}
|
|
279
|
+
if (params?.page !== undefined) {
|
|
280
|
+
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
|
281
|
+
}
|
|
282
|
+
if (params?.limit !== undefined) {
|
|
283
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
284
|
+
}
|
|
285
|
+
if (params?.rewardType !== undefined) {
|
|
286
|
+
localVarQueryParameters['reward_type'] = ObjectSerializer.serialize(params?.rewardType, "'consensus' | 'block' | 'mev'");
|
|
287
|
+
}
|
|
278
288
|
|
|
279
289
|
|
|
280
290
|
|
|
@@ -310,14 +320,14 @@ export class SmartContractsApi {
|
|
|
310
320
|
localVarRequestOptions.form = localVarFormParams;
|
|
311
321
|
}
|
|
312
322
|
}
|
|
313
|
-
return new Promise<{ body:
|
|
323
|
+
return new Promise<{ body: ValidatorRewardsRaw, status: number }>((resolve, reject) => {
|
|
314
324
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
315
325
|
if (error) {
|
|
316
326
|
console.error('API call error:', error);
|
|
317
327
|
reject(error);
|
|
318
328
|
} else {
|
|
319
329
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
320
|
-
body = ObjectSerializer.deserialize(body, "
|
|
330
|
+
body = ObjectSerializer.deserialize(body, "ValidatorRewardsRaw");
|
|
321
331
|
resolve({ body: body, status: response.statusCode });
|
|
322
332
|
} else {
|
|
323
333
|
console.error('API response error:', response.statusCode);
|
|
@@ -329,23 +339,21 @@ export class SmartContractsApi {
|
|
|
329
339
|
} )
|
|
330
340
|
}
|
|
331
341
|
/**
|
|
332
|
-
*
|
|
333
|
-
* @summary
|
|
334
|
-
* @param
|
|
335
|
-
* @param startDate Start date for filtering
|
|
336
|
-
* @param endDate End date for filtering
|
|
337
|
-
* @param
|
|
338
|
-
* @param limit Number of transactions per page
|
|
342
|
+
* 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.
|
|
343
|
+
* @summary Request CSV export for daily rewards
|
|
344
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, exports rewards for all staking vaults.
|
|
345
|
+
* @param startDate Start date for filtering rewards
|
|
346
|
+
* @param endDate End date for filtering rewards
|
|
347
|
+
* @param rewardType Filter by reward type
|
|
339
348
|
*/
|
|
340
349
|
|
|
341
350
|
|
|
342
351
|
|
|
343
352
|
|
|
344
353
|
|
|
345
|
-
public async
|
|
354
|
+
public async requestRewardsDailyCsvExport(params?: LidoRewardsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: any, status: number }> {
|
|
346
355
|
|
|
347
|
-
const localVarPath = this.basePath + '/
|
|
348
|
-
.replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params?.contractAddress)));
|
|
356
|
+
const localVarPath = this.basePath + '/lidov3/rewards/daily/csv-export';
|
|
349
357
|
|
|
350
358
|
let localVarQueryParameters: any = {};
|
|
351
359
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -358,24 +366,20 @@ export class SmartContractsApi {
|
|
|
358
366
|
let localVarFormParams: any = {};
|
|
359
367
|
|
|
360
368
|
|
|
361
|
-
// Verify required parameter 'contractAddress' is not null or undefined
|
|
362
|
-
if (params?.contractAddress === null || params?.contractAddress === undefined) {
|
|
363
|
-
throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractTransactions.');
|
|
364
|
-
}
|
|
365
369
|
|
|
366
370
|
|
|
367
371
|
|
|
372
|
+
if (params?.contractsId !== undefined) {
|
|
373
|
+
localVarQueryParameters['contractsId'] = ObjectSerializer.serialize(params?.contractsId, "string");
|
|
374
|
+
}
|
|
368
375
|
if (params?.startDate !== undefined) {
|
|
369
376
|
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
|
|
370
377
|
}
|
|
371
378
|
if (params?.endDate !== undefined) {
|
|
372
379
|
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
|
|
373
380
|
}
|
|
374
|
-
if (params?.
|
|
375
|
-
localVarQueryParameters['
|
|
376
|
-
}
|
|
377
|
-
if (params?.limit !== undefined) {
|
|
378
|
-
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
381
|
+
if (params?.rewardType !== undefined) {
|
|
382
|
+
localVarQueryParameters['reward_type'] = ObjectSerializer.serialize(params?.rewardType, "'consensus' | 'block' | 'mev'");
|
|
379
383
|
}
|
|
380
384
|
|
|
381
385
|
|
|
@@ -388,7 +392,7 @@ export class SmartContractsApi {
|
|
|
388
392
|
|
|
389
393
|
|
|
390
394
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
391
|
-
method: '
|
|
395
|
+
method: 'POST',
|
|
392
396
|
qs: localVarQueryParameters,
|
|
393
397
|
headers: localVarHeaderParams,
|
|
394
398
|
uri: localVarPath,
|
|
@@ -412,14 +416,13 @@ export class SmartContractsApi {
|
|
|
412
416
|
localVarRequestOptions.form = localVarFormParams;
|
|
413
417
|
}
|
|
414
418
|
}
|
|
415
|
-
return new Promise<{ body:
|
|
419
|
+
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
416
420
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
417
421
|
if (error) {
|
|
418
422
|
console.error('API call error:', error);
|
|
419
423
|
reject(error);
|
|
420
424
|
} else {
|
|
421
425
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
422
|
-
body = ObjectSerializer.deserialize(body, "GetSmartContractTransactions200Response");
|
|
423
426
|
resolve({ body: body, status: response.statusCode });
|
|
424
427
|
} else {
|
|
425
428
|
console.error('API response error:', response.statusCode);
|
|
@@ -431,17 +434,21 @@ export class SmartContractsApi {
|
|
|
431
434
|
} )
|
|
432
435
|
}
|
|
433
436
|
/**
|
|
434
|
-
*
|
|
435
|
-
* @summary
|
|
437
|
+
* 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.
|
|
438
|
+
* @summary Request CSV export for raw rewards
|
|
439
|
+
* @param contractsId Optional filter by the unique identifier of a specific Lido staking contracts set. If not provided, exports rewards for all staking vaults.
|
|
440
|
+
* @param startDate Start date for filtering rewards
|
|
441
|
+
* @param endDate End date for filtering rewards
|
|
442
|
+
* @param rewardType Filter by reward type
|
|
436
443
|
*/
|
|
437
444
|
|
|
438
445
|
|
|
439
446
|
|
|
440
447
|
|
|
441
448
|
|
|
442
|
-
|
|
449
|
+
public async requestRewardsRawCsvExport(params?: LidoRewardsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: any, status: number }> {
|
|
443
450
|
|
|
444
|
-
const localVarPath = this.basePath + '/
|
|
451
|
+
const localVarPath = this.basePath + '/lidov3/rewards/raw/csv-export';
|
|
445
452
|
|
|
446
453
|
let localVarQueryParameters: any = {};
|
|
447
454
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -457,6 +464,18 @@ export class SmartContractsApi {
|
|
|
457
464
|
|
|
458
465
|
|
|
459
466
|
|
|
467
|
+
if (params?.contractsId !== undefined) {
|
|
468
|
+
localVarQueryParameters['contractsId'] = ObjectSerializer.serialize(params?.contractsId, "string");
|
|
469
|
+
}
|
|
470
|
+
if (params?.startDate !== undefined) {
|
|
471
|
+
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
|
|
472
|
+
}
|
|
473
|
+
if (params?.endDate !== undefined) {
|
|
474
|
+
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
|
|
475
|
+
}
|
|
476
|
+
if (params?.rewardType !== undefined) {
|
|
477
|
+
localVarQueryParameters['reward_type'] = ObjectSerializer.serialize(params?.rewardType, "'consensus' | 'block' | 'mev'");
|
|
478
|
+
}
|
|
460
479
|
|
|
461
480
|
|
|
462
481
|
|
|
@@ -468,7 +487,7 @@ export class SmartContractsApi {
|
|
|
468
487
|
|
|
469
488
|
|
|
470
489
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
471
|
-
method: '
|
|
490
|
+
method: 'POST',
|
|
472
491
|
qs: localVarQueryParameters,
|
|
473
492
|
headers: localVarHeaderParams,
|
|
474
493
|
uri: localVarPath,
|
|
@@ -492,14 +511,13 @@ export class SmartContractsApi {
|
|
|
492
511
|
localVarRequestOptions.form = localVarFormParams;
|
|
493
512
|
}
|
|
494
513
|
}
|
|
495
|
-
return new Promise<{ body:
|
|
514
|
+
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
496
515
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
497
516
|
if (error) {
|
|
498
517
|
console.error('API call error:', error);
|
|
499
518
|
reject(error);
|
|
500
519
|
} else {
|
|
501
520
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
502
|
-
body = ObjectSerializer.deserialize(body, "Array<SmartContractDetailed>");
|
|
503
521
|
resolve({ body: body, status: response.statusCode });
|
|
504
522
|
} else {
|
|
505
523
|
console.error('API response error:', response.statusCode);
|