@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
|
@@ -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
|
*
|
|
@@ -15,11 +15,15 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import {
|
|
18
|
+
import { CreateLidoStakingContractsRequest } from '../model/createLidoStakingContractsRequest';
|
|
19
|
+
import { CreateVaultRequest } from '../model/createVaultRequest';
|
|
19
20
|
import { ErrorResponse } from '../model/errorResponse';
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import { ErrorWithTransactionResponse } from '../model/errorWithTransactionResponse';
|
|
22
|
+
import { LidoStakingContracts } from '../model/lidoStakingContracts';
|
|
23
|
+
import { LidoStakingContractsWithData } from '../model/lidoStakingContractsWithData';
|
|
24
|
+
import { RenameVaultRequest } from '../model/renameVaultRequest';
|
|
25
|
+
import { SupportedValidatorProvidersResponse } from '../model/supportedValidatorProvidersResponse';
|
|
26
|
+
import { VaultCreationStartResponse } from '../model/vaultCreationStartResponse';
|
|
23
27
|
|
|
24
28
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
25
29
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -32,13 +36,13 @@ let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
|
32
36
|
// This file is autogenerated - Please do not edit
|
|
33
37
|
// ===============================================
|
|
34
38
|
|
|
35
|
-
export enum
|
|
39
|
+
export enum LidoStakingVaultsApiApiKeys {
|
|
36
40
|
ApiKeyAuth,
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
|
|
40
44
|
|
|
41
|
-
export class
|
|
45
|
+
export class LidoStakingVaultsApi {
|
|
42
46
|
protected _basePath = defaultBasePath;
|
|
43
47
|
protected _defaultHeaders : any = {};
|
|
44
48
|
protected _useQuerystring : boolean = false;
|
|
@@ -88,8 +92,8 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
88
92
|
this.authentications.default = auth;
|
|
89
93
|
}
|
|
90
94
|
|
|
91
|
-
public setApiKey(key:
|
|
92
|
-
(this.authentications as any)[
|
|
95
|
+
public setApiKey(key: LidoStakingVaultsApiApiKeys, value: string) {
|
|
96
|
+
(this.authentications as any)[LidoStakingVaultsApiApiKeys[key]].apiKey = value;
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
set accessToken(accessToken: string | (() => string)) {
|
|
@@ -101,21 +105,18 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
/**
|
|
104
|
-
*
|
|
105
|
-
* @summary
|
|
106
|
-
* @param
|
|
107
|
-
* @param quoteId
|
|
108
|
+
* Generates the transaction to deploy a new Lido staking vault.
|
|
109
|
+
* @summary Create a new Lido staking vault
|
|
110
|
+
* @param createVaultRequest
|
|
108
111
|
*/
|
|
109
112
|
|
|
110
113
|
|
|
111
114
|
|
|
112
115
|
|
|
113
116
|
|
|
114
|
-
public async
|
|
117
|
+
public async createLidoStakingVault (createVaultRequest: CreateVaultRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: VaultCreationStartResponse, status: number }> {
|
|
115
118
|
|
|
116
|
-
const localVarPath = this.basePath + '/
|
|
117
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)))
|
|
118
|
-
.replace('{' + 'quoteId' + '}', encodeURIComponent(String(quoteId)));
|
|
119
|
+
const localVarPath = this.basePath + '/lidov3/staking-vaults/create';
|
|
119
120
|
|
|
120
121
|
let localVarQueryParameters: any = {};
|
|
121
122
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -128,13 +129,9 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
128
129
|
let localVarFormParams: any = {};
|
|
129
130
|
|
|
130
131
|
|
|
131
|
-
// Verify required parameter '
|
|
132
|
-
if (
|
|
133
|
-
throw new Error('Required parameter "
|
|
134
|
-
}
|
|
135
|
-
// Verify required parameter 'quoteId' is not null or undefined
|
|
136
|
-
if (quoteId === null || quoteId === undefined) {
|
|
137
|
-
throw new Error('Required parameter "quoteId" was null or undefined when calling acceptQuote.');
|
|
132
|
+
// Verify required parameter 'createVaultRequest' is not null or undefined
|
|
133
|
+
if (createVaultRequest === null || createVaultRequest === undefined) {
|
|
134
|
+
throw new Error('Required parameter "createVaultRequest" was null or undefined when calling createLidoStakingVault.');
|
|
138
135
|
}
|
|
139
136
|
|
|
140
137
|
|
|
@@ -150,12 +147,13 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
150
147
|
|
|
151
148
|
|
|
152
149
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
153
|
-
method: '
|
|
150
|
+
method: 'POST',
|
|
154
151
|
qs: localVarQueryParameters,
|
|
155
152
|
headers: localVarHeaderParams,
|
|
156
153
|
uri: localVarPath,
|
|
157
154
|
useQuerystring: this._useQuerystring,
|
|
158
155
|
json: true,
|
|
156
|
+
body: ObjectSerializer.serialize(createVaultRequest, "CreateVaultRequest")
|
|
159
157
|
};
|
|
160
158
|
|
|
161
159
|
let authenticationPromise = Promise.resolve();
|
|
@@ -174,13 +172,14 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
174
172
|
localVarRequestOptions.form = localVarFormParams;
|
|
175
173
|
}
|
|
176
174
|
}
|
|
177
|
-
return new Promise<{ body:
|
|
175
|
+
return new Promise<{ body: VaultCreationStartResponse, status: number }>((resolve, reject) => {
|
|
178
176
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
179
177
|
if (error) {
|
|
180
178
|
console.error('API call error:', error);
|
|
181
179
|
reject(error);
|
|
182
180
|
} else {
|
|
183
181
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
182
|
+
body = ObjectSerializer.deserialize(body, "VaultCreationStartResponse");
|
|
184
183
|
resolve({ body: body, status: response.statusCode });
|
|
185
184
|
} else {
|
|
186
185
|
console.error('API response error:', response.statusCode);
|
|
@@ -193,17 +192,18 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
193
192
|
}
|
|
194
193
|
/**
|
|
195
194
|
*
|
|
196
|
-
* @summary
|
|
197
|
-
* @param
|
|
195
|
+
* @summary Get a specific Lido staking contract set
|
|
196
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
198
197
|
*/
|
|
199
198
|
|
|
200
199
|
|
|
201
200
|
|
|
202
201
|
|
|
203
202
|
|
|
204
|
-
public async
|
|
203
|
+
public async getLidoStakingContracts (contractsId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: LidoStakingContractsWithData, status: number }> {
|
|
205
204
|
|
|
206
|
-
const localVarPath = this.basePath + '/
|
|
205
|
+
const localVarPath = this.basePath + '/lidov3/staking-vaults/{contractsId}'
|
|
206
|
+
.replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
|
|
207
207
|
|
|
208
208
|
let localVarQueryParameters: any = {};
|
|
209
209
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -216,9 +216,9 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
216
216
|
let localVarFormParams: any = {};
|
|
217
217
|
|
|
218
218
|
|
|
219
|
-
// Verify required parameter '
|
|
220
|
-
if (
|
|
221
|
-
throw new Error('Required parameter "
|
|
219
|
+
// Verify required parameter 'contractsId' is not null or undefined
|
|
220
|
+
if (contractsId === null || contractsId === undefined) {
|
|
221
|
+
throw new Error('Required parameter "contractsId" was null or undefined when calling getLidoStakingContracts.');
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
|
|
@@ -234,13 +234,12 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
234
234
|
|
|
235
235
|
|
|
236
236
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
237
|
-
method: '
|
|
237
|
+
method: 'GET',
|
|
238
238
|
qs: localVarQueryParameters,
|
|
239
239
|
headers: localVarHeaderParams,
|
|
240
240
|
uri: localVarPath,
|
|
241
241
|
useQuerystring: this._useQuerystring,
|
|
242
242
|
json: true,
|
|
243
|
-
body: ObjectSerializer.serialize(createRFQRequest, "CreateRFQRequest")
|
|
244
243
|
};
|
|
245
244
|
|
|
246
245
|
let authenticationPromise = Promise.resolve();
|
|
@@ -259,14 +258,14 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
259
258
|
localVarRequestOptions.form = localVarFormParams;
|
|
260
259
|
}
|
|
261
260
|
}
|
|
262
|
-
return new Promise<{ body:
|
|
261
|
+
return new Promise<{ body: LidoStakingContractsWithData, status: number }>((resolve, reject) => {
|
|
263
262
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
264
263
|
if (error) {
|
|
265
264
|
console.error('API call error:', error);
|
|
266
265
|
reject(error);
|
|
267
266
|
} else {
|
|
268
267
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
269
|
-
body = ObjectSerializer.deserialize(body, "
|
|
268
|
+
body = ObjectSerializer.deserialize(body, "LidoStakingContractsWithData");
|
|
270
269
|
resolve({ body: body, status: response.statusCode });
|
|
271
270
|
} else {
|
|
272
271
|
console.error('API response error:', response.statusCode);
|
|
@@ -278,19 +277,17 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
278
277
|
} )
|
|
279
278
|
}
|
|
280
279
|
/**
|
|
281
|
-
*
|
|
282
|
-
* @summary
|
|
283
|
-
* @param rfqId
|
|
280
|
+
* Returns the list of validator providers that the current user can use when creating a Lido staking vault.
|
|
281
|
+
* @summary List supported validator providers for vault creation
|
|
284
282
|
*/
|
|
285
283
|
|
|
286
284
|
|
|
287
285
|
|
|
288
286
|
|
|
289
287
|
|
|
290
|
-
public async
|
|
288
|
+
public async getSupportedValidatorProviders (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: SupportedValidatorProvidersResponse, status: number }> {
|
|
291
289
|
|
|
292
|
-
const localVarPath = this.basePath + '/
|
|
293
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
290
|
+
const localVarPath = this.basePath + '/lidov3/staking-vaults/supported-providers';
|
|
294
291
|
|
|
295
292
|
let localVarQueryParameters: any = {};
|
|
296
293
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -303,10 +300,6 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
303
300
|
let localVarFormParams: any = {};
|
|
304
301
|
|
|
305
302
|
|
|
306
|
-
// Verify required parameter 'rfqId' is not null or undefined
|
|
307
|
-
if (rfqId === null || rfqId === undefined) {
|
|
308
|
-
throw new Error('Required parameter "rfqId" was null or undefined when calling getRFQ.');
|
|
309
|
-
}
|
|
310
303
|
|
|
311
304
|
|
|
312
305
|
|
|
@@ -345,14 +338,14 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
345
338
|
localVarRequestOptions.form = localVarFormParams;
|
|
346
339
|
}
|
|
347
340
|
}
|
|
348
|
-
return new Promise<{ body:
|
|
341
|
+
return new Promise<{ body: SupportedValidatorProvidersResponse, status: number }>((resolve, reject) => {
|
|
349
342
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
350
343
|
if (error) {
|
|
351
344
|
console.error('API call error:', error);
|
|
352
345
|
reject(error);
|
|
353
346
|
} else {
|
|
354
347
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
355
|
-
body = ObjectSerializer.deserialize(body, "
|
|
348
|
+
body = ObjectSerializer.deserialize(body, "SupportedValidatorProvidersResponse");
|
|
356
349
|
resolve({ body: body, status: response.statusCode });
|
|
357
350
|
} else {
|
|
358
351
|
console.error('API response error:', response.statusCode);
|
|
@@ -365,17 +358,16 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
365
358
|
}
|
|
366
359
|
/**
|
|
367
360
|
*
|
|
368
|
-
* @summary List all
|
|
369
|
-
* @param status Filter by RFQ status
|
|
361
|
+
* @summary List all Lido staking contract sets
|
|
370
362
|
*/
|
|
371
363
|
|
|
372
364
|
|
|
373
365
|
|
|
374
366
|
|
|
375
367
|
|
|
376
|
-
public async
|
|
368
|
+
public async listLidoStakingContracts (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<LidoStakingContracts>, status: number }> {
|
|
377
369
|
|
|
378
|
-
const localVarPath = this.basePath + '/
|
|
370
|
+
const localVarPath = this.basePath + '/lidov3/staking-vaults';
|
|
379
371
|
|
|
380
372
|
let localVarQueryParameters: any = {};
|
|
381
373
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -391,9 +383,6 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
391
383
|
|
|
392
384
|
|
|
393
385
|
|
|
394
|
-
if (status !== undefined) {
|
|
395
|
-
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "RFQDocumentSellerStatusFilter");
|
|
396
|
-
}
|
|
397
386
|
|
|
398
387
|
|
|
399
388
|
|
|
@@ -429,14 +418,14 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
429
418
|
localVarRequestOptions.form = localVarFormParams;
|
|
430
419
|
}
|
|
431
420
|
}
|
|
432
|
-
return new Promise<{ body: Array<
|
|
421
|
+
return new Promise<{ body: Array<LidoStakingContracts>, status: number }>((resolve, reject) => {
|
|
433
422
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
434
423
|
if (error) {
|
|
435
424
|
console.error('API call error:', error);
|
|
436
425
|
reject(error);
|
|
437
426
|
} else {
|
|
438
427
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
439
|
-
body = ObjectSerializer.deserialize(body, "Array<
|
|
428
|
+
body = ObjectSerializer.deserialize(body, "Array<LidoStakingContracts>");
|
|
440
429
|
resolve({ body: body, status: response.statusCode });
|
|
441
430
|
} else {
|
|
442
431
|
console.error('API response error:', response.statusCode);
|
|
@@ -449,19 +438,17 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
449
438
|
}
|
|
450
439
|
/**
|
|
451
440
|
*
|
|
452
|
-
* @summary Register
|
|
453
|
-
* @param
|
|
454
|
-
* @param registerWithdrawalRecipientSettlementRequest
|
|
441
|
+
* @summary Register a new Lido staking vault contract set
|
|
442
|
+
* @param createLidoStakingContractsRequest
|
|
455
443
|
*/
|
|
456
444
|
|
|
457
445
|
|
|
458
446
|
|
|
459
447
|
|
|
460
448
|
|
|
461
|
-
public async
|
|
449
|
+
public async registerLidoStakingContracts (createLidoStakingContractsRequest: CreateLidoStakingContractsRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: LidoStakingContracts, status: number }> {
|
|
462
450
|
|
|
463
|
-
const localVarPath = this.basePath + '/
|
|
464
|
-
.replace('{' + 'rfqId' + '}', encodeURIComponent(String(rfqId)));
|
|
451
|
+
const localVarPath = this.basePath + '/lidov3/staking-vaults';
|
|
465
452
|
|
|
466
453
|
let localVarQueryParameters: any = {};
|
|
467
454
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -474,13 +461,9 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
474
461
|
let localVarFormParams: any = {};
|
|
475
462
|
|
|
476
463
|
|
|
477
|
-
// Verify required parameter '
|
|
478
|
-
if (
|
|
479
|
-
throw new Error('Required parameter "
|
|
480
|
-
}
|
|
481
|
-
// Verify required parameter 'registerWithdrawalRecipientSettlementRequest' is not null or undefined
|
|
482
|
-
if (registerWithdrawalRecipientSettlementRequest === null || registerWithdrawalRecipientSettlementRequest === undefined) {
|
|
483
|
-
throw new Error('Required parameter "registerWithdrawalRecipientSettlementRequest" was null or undefined when calling registerWithdrawalRecipientSettlement.');
|
|
464
|
+
// Verify required parameter 'createLidoStakingContractsRequest' is not null or undefined
|
|
465
|
+
if (createLidoStakingContractsRequest === null || createLidoStakingContractsRequest === undefined) {
|
|
466
|
+
throw new Error('Required parameter "createLidoStakingContractsRequest" was null or undefined when calling registerLidoStakingContracts.');
|
|
484
467
|
}
|
|
485
468
|
|
|
486
469
|
|
|
@@ -496,13 +479,13 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
496
479
|
|
|
497
480
|
|
|
498
481
|
let localVarRequestOptions: localVarRequest.Options = {
|
|
499
|
-
method: '
|
|
482
|
+
method: 'POST',
|
|
500
483
|
qs: localVarQueryParameters,
|
|
501
484
|
headers: localVarHeaderParams,
|
|
502
485
|
uri: localVarPath,
|
|
503
486
|
useQuerystring: this._useQuerystring,
|
|
504
487
|
json: true,
|
|
505
|
-
body: ObjectSerializer.serialize(
|
|
488
|
+
body: ObjectSerializer.serialize(createLidoStakingContractsRequest, "CreateLidoStakingContractsRequest")
|
|
506
489
|
};
|
|
507
490
|
|
|
508
491
|
let authenticationPromise = Promise.resolve();
|
|
@@ -521,13 +504,14 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
521
504
|
localVarRequestOptions.form = localVarFormParams;
|
|
522
505
|
}
|
|
523
506
|
}
|
|
524
|
-
return new Promise<{ body:
|
|
507
|
+
return new Promise<{ body: LidoStakingContracts, status: number }>((resolve, reject) => {
|
|
525
508
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
526
509
|
if (error) {
|
|
527
510
|
console.error('API call error:', error);
|
|
528
511
|
reject(error);
|
|
529
512
|
} else {
|
|
530
513
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
514
|
+
body = ObjectSerializer.deserialize(body, "LidoStakingContracts");
|
|
531
515
|
resolve({ body: body, status: response.statusCode });
|
|
532
516
|
} else {
|
|
533
517
|
console.error('API response error:', response.statusCode);
|
|
@@ -539,21 +523,20 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
539
523
|
} )
|
|
540
524
|
}
|
|
541
525
|
/**
|
|
542
|
-
*
|
|
543
|
-
* @summary
|
|
544
|
-
* @param
|
|
545
|
-
* @param
|
|
526
|
+
* Updates the name of an existing Lido staking vault contract set.
|
|
527
|
+
* @summary Rename a Lido staking vault
|
|
528
|
+
* @param contractsId The unique identifier of the Lido staking contracts
|
|
529
|
+
* @param renameVaultRequest
|
|
546
530
|
*/
|
|
547
531
|
|
|
548
532
|
|
|
549
533
|
|
|
550
534
|
|
|
551
535
|
|
|
552
|
-
public async
|
|
536
|
+
public async renameLidoStakingContracts (contractsId: string, renameVaultRequest: RenameVaultRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: LidoStakingContracts, status: number }> {
|
|
553
537
|
|
|
554
|
-
const localVarPath = this.basePath + '/
|
|
555
|
-
.replace('{' + '
|
|
556
|
-
.replace('{' + 'quoteId' + '}', encodeURIComponent(String(quoteId)));
|
|
538
|
+
const localVarPath = this.basePath + '/lidov3/staking-vaults/{contractsId}'
|
|
539
|
+
.replace('{' + 'contractsId' + '}', encodeURIComponent(String(contractsId)));
|
|
557
540
|
|
|
558
541
|
let localVarQueryParameters: any = {};
|
|
559
542
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -566,13 +549,13 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
566
549
|
let localVarFormParams: any = {};
|
|
567
550
|
|
|
568
551
|
|
|
569
|
-
// Verify required parameter '
|
|
570
|
-
if (
|
|
571
|
-
throw new Error('Required parameter "
|
|
552
|
+
// Verify required parameter 'contractsId' is not null or undefined
|
|
553
|
+
if (contractsId === null || contractsId === undefined) {
|
|
554
|
+
throw new Error('Required parameter "contractsId" was null or undefined when calling renameLidoStakingContracts.');
|
|
572
555
|
}
|
|
573
|
-
// Verify required parameter '
|
|
574
|
-
if (
|
|
575
|
-
throw new Error('Required parameter "
|
|
556
|
+
// Verify required parameter 'renameVaultRequest' is not null or undefined
|
|
557
|
+
if (renameVaultRequest === null || renameVaultRequest === undefined) {
|
|
558
|
+
throw new Error('Required parameter "renameVaultRequest" was null or undefined when calling renameLidoStakingContracts.');
|
|
576
559
|
}
|
|
577
560
|
|
|
578
561
|
|
|
@@ -594,6 +577,7 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
594
577
|
uri: localVarPath,
|
|
595
578
|
useQuerystring: this._useQuerystring,
|
|
596
579
|
json: true,
|
|
580
|
+
body: ObjectSerializer.serialize(renameVaultRequest, "RenameVaultRequest")
|
|
597
581
|
};
|
|
598
582
|
|
|
599
583
|
let authenticationPromise = Promise.resolve();
|
|
@@ -612,13 +596,14 @@ export class ValidatorMarketplaceSellersApi {
|
|
|
612
596
|
localVarRequestOptions.form = localVarFormParams;
|
|
613
597
|
}
|
|
614
598
|
}
|
|
615
|
-
return new Promise<{ body:
|
|
599
|
+
return new Promise<{ body: LidoStakingContracts, status: number }>((resolve, reject) => {
|
|
616
600
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
617
601
|
if (error) {
|
|
618
602
|
console.error('API call error:', error);
|
|
619
603
|
reject(error);
|
|
620
604
|
} else {
|
|
621
605
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
606
|
+
body = ObjectSerializer.deserialize(body, "LidoStakingContracts");
|
|
622
607
|
resolve({ body: body, status: response.statusCode });
|
|
623
608
|
} else {
|
|
624
609
|
console.error('API response error:', response.statusCode);
|