@northstake/northstakeapi 1.0.37 → 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 -19
- 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} +185 -56
- 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 -34
- 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} +141 -46
- 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 -24
- package/dist/api.js +76 -29
- 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 -14
- package/dist/model/models.js +185 -42
- 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/{listAllRFQsForFacilitator200Response.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/{getSmartContractMinedBlocks200Response.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 +285 -46
- 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/{listAllRFQsForFacilitator200Response.ts → validatorRewardsRaw.ts} +18 -12
- 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 -100
- 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/getSmartContractMinedBlocks200Response.js +0 -43
- package/dist/model/listAllRFQsForFacilitator200Response.js +0 -43
- 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/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,351 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import localVarRequest from 'request';
|
|
15
|
-
import http from 'http';
|
|
16
|
-
|
|
17
|
-
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import { WebHookLookupAnswer } from '../model/webHookLookupAnswer';
|
|
20
|
-
import { WebhookRegistration } from '../model/webhookRegistration';
|
|
21
|
-
|
|
22
|
-
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
23
|
-
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
24
|
-
|
|
25
|
-
import { HttpError, RequestFile } from './apis';
|
|
26
|
-
|
|
27
|
-
let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
28
|
-
|
|
29
|
-
// ===============================================
|
|
30
|
-
// This file is autogenerated - Please do not edit
|
|
31
|
-
// ===============================================
|
|
32
|
-
|
|
33
|
-
export enum ValidatorMarketplaceWebhooksApiApiKeys {
|
|
34
|
-
ApiKeyAuth,
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export class ValidatorMarketplaceWebhooksApi {
|
|
40
|
-
protected _basePath = defaultBasePath;
|
|
41
|
-
protected _defaultHeaders : any = {};
|
|
42
|
-
protected _useQuerystring : boolean = false;
|
|
43
|
-
|
|
44
|
-
protected authentications = {
|
|
45
|
-
'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
|
|
46
|
-
'bearerTokenAuth': new HttpBearerAuth(),
|
|
47
|
-
'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
protected interceptors: Interceptor[] = [];
|
|
51
|
-
|
|
52
|
-
constructor(basePath?: string);
|
|
53
|
-
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
54
|
-
if (password) {
|
|
55
|
-
if (basePath) {
|
|
56
|
-
this.basePath = basePath;
|
|
57
|
-
}
|
|
58
|
-
} else {
|
|
59
|
-
if (basePathOrUsername) {
|
|
60
|
-
this.basePath = basePathOrUsername
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
set useQuerystring(value: boolean) {
|
|
66
|
-
this._useQuerystring = value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
set basePath(basePath: string) {
|
|
70
|
-
this._basePath = basePath;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
set defaultHeaders(defaultHeaders: any) {
|
|
74
|
-
this._defaultHeaders = defaultHeaders;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
get defaultHeaders() {
|
|
78
|
-
return this._defaultHeaders;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
get basePath() {
|
|
82
|
-
return this._basePath;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
public setDefaultAuthentication(auth: Authentication) {
|
|
86
|
-
this.authentications.default = auth;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
public setApiKey(key: ValidatorMarketplaceWebhooksApiApiKeys, value: string) {
|
|
90
|
-
(this.authentications as any)[ValidatorMarketplaceWebhooksApiApiKeys[key]].apiKey = value;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
set accessToken(accessToken: string | (() => string)) {
|
|
94
|
-
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
public addInterceptor(interceptor: Interceptor) {
|
|
98
|
-
this.interceptors.push(interceptor);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @summary Delete a registered Validator Marketplace webhook
|
|
104
|
-
* @param webhookId Unique identifier of the registered webhook
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
public async deleteWebhook (webhookId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
112
|
-
|
|
113
|
-
const localVarPath = this.basePath + '/validatorMarketplace/webhooks/{webhookId}'
|
|
114
|
-
.replace('{' + 'webhookId' + '}', encodeURIComponent(String(webhookId)));
|
|
115
|
-
|
|
116
|
-
let localVarQueryParameters: any = {};
|
|
117
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
118
|
-
const produces = ['application/json'];
|
|
119
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
120
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
121
|
-
} else {
|
|
122
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
123
|
-
}
|
|
124
|
-
let localVarFormParams: any = {};
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
// Verify required parameter 'webhookId' is not null or undefined
|
|
128
|
-
if (webhookId === null || webhookId === undefined) {
|
|
129
|
-
throw new Error('Required parameter "webhookId" was null or undefined when calling deleteWebhook.');
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
139
|
-
|
|
140
|
-
let localVarUseFormData = false;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
145
|
-
method: 'DELETE',
|
|
146
|
-
qs: localVarQueryParameters,
|
|
147
|
-
headers: localVarHeaderParams,
|
|
148
|
-
uri: localVarPath,
|
|
149
|
-
useQuerystring: this._useQuerystring,
|
|
150
|
-
json: true,
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
let authenticationPromise = Promise.resolve();
|
|
154
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
155
|
-
|
|
156
|
-
let interceptorPromise = authenticationPromise;
|
|
157
|
-
for (const interceptor of this.interceptors) {
|
|
158
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return interceptorPromise.then(() => {
|
|
162
|
-
if (Object.keys(localVarFormParams).length) {
|
|
163
|
-
if (localVarUseFormData) {
|
|
164
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
165
|
-
} else {
|
|
166
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
170
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
171
|
-
if (error) {
|
|
172
|
-
console.error('API call error:', error);
|
|
173
|
-
reject(error);
|
|
174
|
-
} else {
|
|
175
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
176
|
-
resolve({ body: body, status: response.statusCode });
|
|
177
|
-
} else {
|
|
178
|
-
console.error('API response error:', response.statusCode);
|
|
179
|
-
resolve({ body: body, status: response.statusCode });
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
} )
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @summary List all registered validator marketplace webhooks for the user
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
public async listRegisteredWebhooks (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<WebHookLookupAnswer>, status: number }> {
|
|
196
|
-
|
|
197
|
-
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
198
|
-
|
|
199
|
-
let localVarQueryParameters: any = {};
|
|
200
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
201
|
-
const produces = ['application/json'];
|
|
202
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
203
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
204
|
-
} else {
|
|
205
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
206
|
-
}
|
|
207
|
-
let localVarFormParams: any = {};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
218
|
-
|
|
219
|
-
let localVarUseFormData = false;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
224
|
-
method: 'GET',
|
|
225
|
-
qs: localVarQueryParameters,
|
|
226
|
-
headers: localVarHeaderParams,
|
|
227
|
-
uri: localVarPath,
|
|
228
|
-
useQuerystring: this._useQuerystring,
|
|
229
|
-
json: true,
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
let authenticationPromise = Promise.resolve();
|
|
233
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
234
|
-
|
|
235
|
-
let interceptorPromise = authenticationPromise;
|
|
236
|
-
for (const interceptor of this.interceptors) {
|
|
237
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
return interceptorPromise.then(() => {
|
|
241
|
-
if (Object.keys(localVarFormParams).length) {
|
|
242
|
-
if (localVarUseFormData) {
|
|
243
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
244
|
-
} else {
|
|
245
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
return new Promise<{ body: Array<WebHookLookupAnswer>, status: number }>((resolve, reject) => {
|
|
249
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
250
|
-
if (error) {
|
|
251
|
-
console.error('API call error:', error);
|
|
252
|
-
reject(error);
|
|
253
|
-
} else {
|
|
254
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
255
|
-
body = ObjectSerializer.deserialize(body, "Array<WebHookLookupAnswer>");
|
|
256
|
-
resolve({ body: body, status: response.statusCode });
|
|
257
|
-
} else {
|
|
258
|
-
console.error('API response error:', response.statusCode);
|
|
259
|
-
resolve({ body: body, status: response.statusCode });
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
} )
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Registers a webhook URL for receiving push notifications from Northstake regarding events in the Validator Marketplace. When registered events occur, webhooks are triggered, and JSON payloads are sent as POST requests to the specified URL. A webhook can subscribe to different event types. Here are descriptions and example payloads for each supported event. These payloads are what will be POST\'ed to your Webhook endpoint. (For more details regarding webhook payloads, refer to the schemas for the WebhookPayload_XXXX types in documentation) - `RFQAvailable`: Triggered when a new RFQ document becomes available. The payload includes detailed information about validators, their balances, exit estimates, and other RFQ-specific details. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQAvailable\", \"details\": { \"id\": \"rfq123\", \"validators\": [ { \"validator_index\": 1, \"balance\": 32, \"exit_estimates\": [ { \"estimated_exit_time\": \"2025-03-01T12:00:00Z\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"timestamp\": \"2024-03-01T12:00:00Z\" } ] } ], \"total_balance\": 32, \"payment_address\": \"0xabcd\", \"estimated_exit_transaction_deadline\": \"2025-03-01T12:00:00Z\", \"estimated_all_validators_exited_at\": \"2025-03-01T12:00:00Z\", \"unique_escrow_vault\": \"vault123\" } } ``` - `RFQBidReceived`: Triggered when a new bid is received on an RFQ. Includes the latest quote ID and the bid amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidReceived\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-01T13:00:00Z\" } } ``` - `RFQBidAccepted`: Triggered when a bid is accepted. Includes the quote ID and the accepted amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQBidAccepted\", \"details\": { \"quote_id\": \"quote789\", \"amount\": 5000, \"timestamp\": \"2024-03-02T14:30:00Z\", \"escrow_address\": \"0x12345\" } } ``` - `RFQEscrowEvent`: Triggered when an escrow payment is made. Includes transaction hash and payment amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowEvent\", \"details\": { \"transaction_hash\": \"0xabc123\", \"amount\": 5000, \"timestamp\": \"2024-03-03T15:45:00Z\" } } ``` - `RFQTransferProposalReceived`: Notifies an RFQ seller of a new transfer proposal on their RFQ ```json { \"document_id\": \"rfq123\", \"event\": \"RFQTransferProposalReceived\", \"details\": { \"transaction_hash\": \"0xabc123\", \"timestamp\": \"2024-03-03T15:45:00Z\", \"proposal_id\": \"0x12345\"\" } } ``` - `RFQValidatorWithdrawalChange`: Triggered when a validator withdrawal status changes. Includes transaction hash and validator index. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorWithdrawalChange\", \"details\": [{ \"transaction_hash\": \"0xdef456\", \"validator_index\": 1, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef457\", \"validator_index\": 2, \"timestamp\": \"2024-03-04T16:50:00Z\" }, { \"transaction_hash\": \"0xdef458\", \"validator_index\": 3, \"timestamp\": \"2024-03-04T16:50:00Z\" }, ] } ``` - `RFQEscrowReleased`: Triggered when escrow funds are released. Includes transaction hash and the released amount. ```json { \"document_id\": \"rfq123\", \"event\": \"RFQEscrowReleased\", \"details\": { \"transaction_hash\": \"0xghi789\", \"amount\": 5000, \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` - `RFQValidatorExited `: Notifies the owner whenever a validator exits the ethereum network ```json { \"document_id\": \"rfq123\", \"event\": \"RFQValidatorExited\", \"details\": { \"validator_index\": \"0xghi789\", \"timestamp\": \"2024-03-05T17:55:00Z\" } } ``` **Webhook Security Note:** All webhook requests include a `Bearer` token in the `Authorization` header. Recipients must validate this token to ensure the notifications are from a trusted source.
|
|
268
|
-
* @summary Register a webhook to track Northstake validator marketplace events
|
|
269
|
-
* @param webhookRegistration
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
public async registerWebhook (webhookRegistration: WebhookRegistration, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
277
|
-
|
|
278
|
-
const localVarPath = this.basePath + '/validatorMarketplace/webhooks';
|
|
279
|
-
|
|
280
|
-
let localVarQueryParameters: any = {};
|
|
281
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
282
|
-
const produces = ['application/json'];
|
|
283
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
284
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
285
|
-
} else {
|
|
286
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
287
|
-
}
|
|
288
|
-
let localVarFormParams: any = {};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
// Verify required parameter 'webhookRegistration' is not null or undefined
|
|
292
|
-
if (webhookRegistration === null || webhookRegistration === undefined) {
|
|
293
|
-
throw new Error('Required parameter "webhookRegistration" was null or undefined when calling registerWebhook.');
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
303
|
-
|
|
304
|
-
let localVarUseFormData = false;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
309
|
-
method: 'POST',
|
|
310
|
-
qs: localVarQueryParameters,
|
|
311
|
-
headers: localVarHeaderParams,
|
|
312
|
-
uri: localVarPath,
|
|
313
|
-
useQuerystring: this._useQuerystring,
|
|
314
|
-
json: true,
|
|
315
|
-
body: ObjectSerializer.serialize(webhookRegistration, "WebhookRegistration")
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
let authenticationPromise = Promise.resolve();
|
|
319
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
320
|
-
|
|
321
|
-
let interceptorPromise = authenticationPromise;
|
|
322
|
-
for (const interceptor of this.interceptors) {
|
|
323
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
return interceptorPromise.then(() => {
|
|
327
|
-
if (Object.keys(localVarFormParams).length) {
|
|
328
|
-
if (localVarUseFormData) {
|
|
329
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
330
|
-
} else {
|
|
331
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
return new Promise<{ body: any, status: number }>((resolve, reject) => {
|
|
335
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
336
|
-
if (error) {
|
|
337
|
-
console.error('API call error:', error);
|
|
338
|
-
reject(error);
|
|
339
|
-
} else {
|
|
340
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
341
|
-
resolve({ body: body, status: response.statusCode });
|
|
342
|
-
} else {
|
|
343
|
-
console.error('API response error:', response.statusCode);
|
|
344
|
-
resolve({ body: body, status: response.statusCode });
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
});
|
|
349
|
-
} )
|
|
350
|
-
}
|
|
351
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
|
|
13
|
-
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
14
|
-
import { SmartContractDetailed } from '../model/smartContractDetailed';
|
|
15
|
-
import { Authentication, Interceptor } from '../model/models';
|
|
16
|
-
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
17
|
-
export declare enum SmartContractsApiApiKeys {
|
|
18
|
-
ApiKeyAuth = 0
|
|
19
|
-
}
|
|
20
|
-
export interface SmartContractsApiParams {
|
|
21
|
-
contractAddress: string;
|
|
22
|
-
page?: number;
|
|
23
|
-
limit?: number;
|
|
24
|
-
startDate?: Date;
|
|
25
|
-
endDate?: Date;
|
|
26
|
-
}
|
|
27
|
-
export interface SmartContractsApiParams {
|
|
28
|
-
contractAddress: string;
|
|
29
|
-
startDate?: Date;
|
|
30
|
-
endDate?: Date;
|
|
31
|
-
page?: number;
|
|
32
|
-
limit?: number;
|
|
33
|
-
}
|
|
34
|
-
export declare class SmartContractsApi {
|
|
35
|
-
protected _basePath: string;
|
|
36
|
-
protected _defaultHeaders: any;
|
|
37
|
-
protected _useQuerystring: boolean;
|
|
38
|
-
protected authentications: {
|
|
39
|
-
default: Authentication;
|
|
40
|
-
bearerTokenAuth: HttpBearerAuth;
|
|
41
|
-
ApiKeyAuth: ApiKeyAuth;
|
|
42
|
-
};
|
|
43
|
-
protected interceptors: Interceptor[];
|
|
44
|
-
constructor(basePath?: string);
|
|
45
|
-
set useQuerystring(value: boolean);
|
|
46
|
-
set basePath(basePath: string);
|
|
47
|
-
set defaultHeaders(defaultHeaders: any);
|
|
48
|
-
get defaultHeaders(): any;
|
|
49
|
-
get basePath(): string;
|
|
50
|
-
setDefaultAuthentication(auth: Authentication): void;
|
|
51
|
-
setApiKey(key: SmartContractsApiApiKeys, value: string): void;
|
|
52
|
-
set accessToken(accessToken: string | (() => string));
|
|
53
|
-
addInterceptor(interceptor: Interceptor): void;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @summary Get mined blocks related to a specific smart contract
|
|
57
|
-
* @param contractAddress The address of the smart contract
|
|
58
|
-
* @param page Page number for pagination
|
|
59
|
-
* @param limit Number of mined blocks per page
|
|
60
|
-
* @param startDate Start date for filtering mined blocks
|
|
61
|
-
* @param endDate End date for filtering mined blocks
|
|
62
|
-
*/
|
|
63
|
-
getSmartContractMinedBlocks(params?: SmartContractsApiParams, options?: {
|
|
64
|
-
headers: {
|
|
65
|
-
[name: string]: string;
|
|
66
|
-
};
|
|
67
|
-
}): Promise<{
|
|
68
|
-
body: GetSmartContractMinedBlocks200Response;
|
|
69
|
-
status: number;
|
|
70
|
-
}>;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @summary Get transactions related to a specific smart contract
|
|
74
|
-
* @param contractAddress The address of the smart contract
|
|
75
|
-
* @param startDate Start date for filtering transactions
|
|
76
|
-
* @param endDate End date for filtering transactions
|
|
77
|
-
* @param page Page number for pagination
|
|
78
|
-
* @param limit Number of transactions per page
|
|
79
|
-
*/
|
|
80
|
-
getSmartContractTransactions(params?: SmartContractsApiParams, options?: {
|
|
81
|
-
headers: {
|
|
82
|
-
[name: string]: string;
|
|
83
|
-
};
|
|
84
|
-
}): Promise<{
|
|
85
|
-
body: GetSmartContractTransactions200Response;
|
|
86
|
-
status: number;
|
|
87
|
-
}>;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @summary Get list of all deployed smart contracts
|
|
91
|
-
*/
|
|
92
|
-
getSmartContracts(options?: {
|
|
93
|
-
headers: {
|
|
94
|
-
[name: string]: string;
|
|
95
|
-
};
|
|
96
|
-
}): Promise<{
|
|
97
|
-
body: Array<SmartContractDetailed>;
|
|
98
|
-
status: number;
|
|
99
|
-
}>;
|
|
100
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { ProvideEscrowHashForRFQDocumentRequest } from '../model/provideEscrowHashForRFQDocumentRequest';
|
|
13
|
-
import { RFQDocumentBuyer } from '../model/rFQDocumentBuyer';
|
|
14
|
-
import { RFQDocumentBuyerStatusFilter } from '../model/rFQDocumentBuyerStatusFilter';
|
|
15
|
-
import { SubmittedQuote } from '../model/submittedQuote';
|
|
16
|
-
import { Authentication, Interceptor } from '../model/models';
|
|
17
|
-
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
18
|
-
export declare enum ValidatorMarketplaceBuyersApiApiKeys {
|
|
19
|
-
ApiKeyAuth = 0
|
|
20
|
-
}
|
|
21
|
-
export declare class ValidatorMarketplaceBuyersApi {
|
|
22
|
-
protected _basePath: string;
|
|
23
|
-
protected _defaultHeaders: any;
|
|
24
|
-
protected _useQuerystring: boolean;
|
|
25
|
-
protected authentications: {
|
|
26
|
-
default: Authentication;
|
|
27
|
-
bearerTokenAuth: HttpBearerAuth;
|
|
28
|
-
ApiKeyAuth: ApiKeyAuth;
|
|
29
|
-
};
|
|
30
|
-
protected interceptors: Interceptor[];
|
|
31
|
-
constructor(basePath?: string);
|
|
32
|
-
set useQuerystring(value: boolean);
|
|
33
|
-
set basePath(basePath: string);
|
|
34
|
-
set defaultHeaders(defaultHeaders: any);
|
|
35
|
-
get defaultHeaders(): any;
|
|
36
|
-
get basePath(): string;
|
|
37
|
-
setDefaultAuthentication(auth: Authentication): void;
|
|
38
|
-
setApiKey(key: ValidatorMarketplaceBuyersApiApiKeys, value: string): void;
|
|
39
|
-
set accessToken(accessToken: string | (() => string));
|
|
40
|
-
addInterceptor(interceptor: Interceptor): void;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @summary Retrieve a specific RFQ
|
|
44
|
-
* @param rfqId
|
|
45
|
-
*/
|
|
46
|
-
getRFQDocumentForBuyer(rfqId: string, options?: {
|
|
47
|
-
headers: {
|
|
48
|
-
[name: string]: string;
|
|
49
|
-
};
|
|
50
|
-
}): Promise<{
|
|
51
|
-
body: RFQDocumentBuyer;
|
|
52
|
-
status: number;
|
|
53
|
-
}>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @summary List RFQs
|
|
57
|
-
* @param status Filter by RFQ status
|
|
58
|
-
*/
|
|
59
|
-
listRFQDocumentsForBuyer(status?: RFQDocumentBuyerStatusFilter, options?: {
|
|
60
|
-
headers: {
|
|
61
|
-
[name: string]: string;
|
|
62
|
-
};
|
|
63
|
-
}): Promise<{
|
|
64
|
-
body: Array<RFQDocumentBuyer>;
|
|
65
|
-
status: number;
|
|
66
|
-
}>;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @summary Provide a transaction hash for an escrow deposit as part of settlement
|
|
70
|
-
* @param rfqId
|
|
71
|
-
* @param provideEscrowHashForRFQDocumentRequest
|
|
72
|
-
*/
|
|
73
|
-
provideEscrowHashForRFQDocument(rfqId: string, provideEscrowHashForRFQDocumentRequest: ProvideEscrowHashForRFQDocumentRequest, options?: {
|
|
74
|
-
headers: {
|
|
75
|
-
[name: string]: string;
|
|
76
|
-
};
|
|
77
|
-
}): Promise<{
|
|
78
|
-
body: any;
|
|
79
|
-
status: number;
|
|
80
|
-
}>;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @summary Submit a quote for an RFQ in ETH
|
|
84
|
-
* @param rfqId
|
|
85
|
-
* @param submittedQuote
|
|
86
|
-
*/
|
|
87
|
-
submitQuote(rfqId: string, submittedQuote: SubmittedQuote, options?: {
|
|
88
|
-
headers: {
|
|
89
|
-
[name: string]: string;
|
|
90
|
-
};
|
|
91
|
-
}): Promise<{
|
|
92
|
-
body: any;
|
|
93
|
-
status: number;
|
|
94
|
-
}>;
|
|
95
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { GetMarketplaceMetadata200Response } from '../model/getMarketplaceMetadata200Response';
|
|
13
|
-
import { ListAllRFQsForFacilitator200Response } from '../model/listAllRFQsForFacilitator200Response';
|
|
14
|
-
import { RFQDocumentFacilitator } from '../model/rFQDocumentFacilitator';
|
|
15
|
-
import { Authentication, Interceptor } from '../model/models';
|
|
16
|
-
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
17
|
-
export declare enum ValidatorMarketplaceFacilitatorApiApiKeys {
|
|
18
|
-
ApiKeyAuth = 0
|
|
19
|
-
}
|
|
20
|
-
export declare class ValidatorMarketplaceFacilitatorApi {
|
|
21
|
-
protected _basePath: string;
|
|
22
|
-
protected _defaultHeaders: any;
|
|
23
|
-
protected _useQuerystring: boolean;
|
|
24
|
-
protected authentications: {
|
|
25
|
-
default: Authentication;
|
|
26
|
-
bearerTokenAuth: HttpBearerAuth;
|
|
27
|
-
ApiKeyAuth: ApiKeyAuth;
|
|
28
|
-
};
|
|
29
|
-
protected interceptors: Interceptor[];
|
|
30
|
-
constructor(basePath?: string);
|
|
31
|
-
set useQuerystring(value: boolean);
|
|
32
|
-
set basePath(basePath: string);
|
|
33
|
-
set defaultHeaders(defaultHeaders: any);
|
|
34
|
-
get defaultHeaders(): any;
|
|
35
|
-
get basePath(): string;
|
|
36
|
-
setDefaultAuthentication(auth: Authentication): void;
|
|
37
|
-
setApiKey(key: ValidatorMarketplaceFacilitatorApiApiKeys, value: string): void;
|
|
38
|
-
set accessToken(accessToken: string | (() => string));
|
|
39
|
-
addInterceptor(interceptor: Interceptor): void;
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves metadata information for the entire marketplace.
|
|
42
|
-
* @summary Get metadata for the entire marketplace
|
|
43
|
-
*/
|
|
44
|
-
getMarketplaceMetadata(options?: {
|
|
45
|
-
headers: {
|
|
46
|
-
[name: string]: string;
|
|
47
|
-
};
|
|
48
|
-
}): Promise<{
|
|
49
|
-
body: GetMarketplaceMetadata200Response;
|
|
50
|
-
status: number;
|
|
51
|
-
}>;
|
|
52
|
-
/**
|
|
53
|
-
* Retrieves detailed information about an RFQ by its ID.
|
|
54
|
-
* @summary Get detailed information about a specific RFQ
|
|
55
|
-
* @param rfqId The unique identifier of the RFQ
|
|
56
|
-
*/
|
|
57
|
-
getRFQDetailsForFacilitator(rfqId: string, options?: {
|
|
58
|
-
headers: {
|
|
59
|
-
[name: string]: string;
|
|
60
|
-
};
|
|
61
|
-
}): Promise<{
|
|
62
|
-
body: RFQDocumentFacilitator;
|
|
63
|
-
status: number;
|
|
64
|
-
}>;
|
|
65
|
-
/**
|
|
66
|
-
* Retrieves a list of all RFQs available in the Northstake marketplace.
|
|
67
|
-
* @summary List all RFQs in the marketplace
|
|
68
|
-
* @param status
|
|
69
|
-
* @param page
|
|
70
|
-
* @param limit
|
|
71
|
-
*/
|
|
72
|
-
listAllRFQsForFacilitator(status?: 'active' | 'expired' | 'finished', page?: number, limit?: number, options?: {
|
|
73
|
-
headers: {
|
|
74
|
-
[name: string]: string;
|
|
75
|
-
};
|
|
76
|
-
}): Promise<{
|
|
77
|
-
body: ListAllRFQsForFacilitator200Response;
|
|
78
|
-
status: number;
|
|
79
|
-
}>;
|
|
80
|
-
}
|