@cobo/cobo-waas2 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -9
- package/dist/ApiClient.js +2 -2
- package/dist/PreRequestScript.js +640 -0
- package/dist/api/DevelopersWebhooksApi.js +1 -1
- package/dist/api/OAuthApi.js +5 -5
- package/dist/api/StakingsApi.js +538 -0
- package/dist/api/TransactionsApi.js +111 -9
- package/dist/api/WalletsApi.js +1 -60
- package/dist/api/WalletsExchangeWalletApi.js +5 -5
- package/dist/api/WalletsMPCWalletsApi.js +1 -1
- package/dist/index.js +154 -0
- package/dist/model/Activity.js +21 -12
- package/dist/model/ActivityAction.js +1 -1
- package/dist/model/ActivityInitiator.js +8 -8
- package/dist/model/ActivityStatus.js +1 -1
- package/dist/model/ActivityTimeline.js +4 -2
- package/dist/model/ActivityType.js +1 -16
- package/dist/model/AddressEncoding.js +1 -1
- package/dist/model/AddressInfo.js +40 -1
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressTransferDestinationAccountOutput.js +3 -3
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +2 -2
- package/dist/model/AmountDetailsInner.js +1 -14
- package/dist/model/AmountStatus.js +1 -1
- package/dist/model/AssetBalance.js +1 -1
- package/dist/model/AssetInfo.js +1 -1
- package/dist/model/BabylonStakeExtra.js +10 -10
- package/dist/model/BabylonStakingExtra.js +175 -0
- package/dist/model/BabylonValidator.js +35 -15
- package/dist/model/BaseContractCallSource.js +2 -2
- package/dist/model/BaseEstimateStakingFee.js +1 -1
- package/dist/model/BaseStakeExtra.js +2 -2
- package/dist/model/BaseStakeSource.js +137 -0
- package/dist/model/BookkeepingRecord.js +243 -0
- package/dist/model/BookkeepingSummary.js +150 -0
- package/dist/model/BroadcastSignedTransactions201ResponseInner.js +125 -0
- package/dist/model/BroadcastSignedTransactionsRequest.js +87 -0
- package/dist/model/ChainInfo.js +10 -1
- package/dist/model/CheckAddressValidity200Response.js +1 -1
- package/dist/model/CheckAddressesValidity200ResponseInner.js +1 -1
- package/dist/model/CheckLoopTransfers200ResponseInner.js +2 -2
- package/dist/model/CoboSafeDelegate.js +28 -3
- package/dist/model/CoboSafeDelegateType.js +1 -1
- package/dist/model/ContractCallDestination.js +25 -4
- package/dist/model/ContractCallDestinationType.js +1 -1
- package/dist/model/ContractCallParams.js +1 -1
- package/dist/model/ContractCallSource.js +42 -5
- package/dist/model/ContractCallSourceType.js +1 -1
- package/dist/model/CreateAddressRequest.js +1 -1
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateExchangeWalletParams.js +1 -1
- package/dist/model/CreateKeyShareHolder.js +1 -1
- package/dist/model/CreateKeyShareHolderGroupRequest.js +1 -1
- package/dist/model/CreateMpcProjectRequest.js +1 -1
- package/dist/model/CreateMpcVaultRequest.js +1 -1
- package/dist/model/CreateMpcWalletParams.js +1 -1
- package/dist/model/CreateSafeWalletParams.js +1 -1
- package/dist/model/CreateSmartContractWalletParams.js +24 -3
- package/dist/model/CreateStakeActivity.js +5 -5
- package/dist/model/CreateStakeActivity201Response.js +123 -0
- package/dist/model/CreateStakeActivityExtra.js +37 -60
- package/dist/model/CreateStakeActivityRequest.js +246 -0
- package/dist/model/CreateTransferTransaction201Response.js +1 -1
- package/dist/model/CreateTssRequestRequest.js +1 -1
- package/dist/model/CreateUnstakeActivity.js +4 -4
- package/dist/model/CreateUnstakeActivityRequest.js +200 -0
- package/dist/model/CreateWalletParams.js +52 -7
- package/dist/model/CreateWebhookEndpointRequest.js +1 -1
- package/dist/model/CreateWithdrawActivity.js +5 -5
- package/dist/model/CreateWithdrawActivityRequest.js +220 -0
- package/dist/model/CreatedWalletInfo.js +52 -7
- package/dist/model/CurveType.js +1 -1
- package/dist/model/CustodialTransferSource.js +2 -2
- package/dist/model/CustodialWalletInfo.js +1 -1
- package/dist/model/DeleteKeyShareHolderGroupById201Response.js +1 -1
- package/dist/model/DeleteWalletById201Response.js +1 -1
- package/dist/model/EigenLayerLstStakeExtra.js +2 -2
- package/dist/model/EigenLayerNativeStakeExtra.js +1 -1
- package/dist/model/EigenlayerValidator.js +1 -1
- package/dist/model/ErrorResponse.js +1 -1
- package/dist/model/EstimateContractCallFeeParams.js +1 -1
- package/dist/model/EstimateFeeParams.js +38 -5
- package/dist/model/EstimateFeeRequestType.js +1 -1
- package/dist/model/EstimateStakeFee.js +7 -7
- package/dist/model/EstimateTransferFeeParams.js +1 -1
- package/dist/model/EstimateUnstakeFee.js +6 -6
- package/dist/model/EstimateWithdrawFee.js +8 -8
- package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +1 -1
- package/dist/model/EstimatedEvmLegacyFee.js +1 -1
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +1 -1
- package/dist/model/EstimatedFee.js +66 -9
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EstimatedUtxoFee.js +1 -1
- package/dist/model/EstimatedUtxoFeeSlow.js +1 -1
- package/dist/model/EvmContractCallDestination.js +9 -5
- package/dist/model/EvmEIP191MessageSignDestination.js +2 -2
- package/dist/model/EvmEIP712MessageSignDestination.js +2 -2
- package/dist/model/EvmEip1559FeeBasePrice.js +1 -1
- package/dist/model/EvmEip1559FeeRate.js +1 -1
- package/dist/model/EvmLegacyFeeBasePrice.js +1 -1
- package/dist/model/EvmLegacyFeeRate.js +1 -1
- package/dist/model/ExchangeId.js +1 -1
- package/dist/model/ExchangeTransferDestination.js +4 -4
- package/dist/model/ExchangeTransferSource.js +2 -2
- package/dist/model/ExchangeWalletInfo.js +1 -1
- package/dist/model/ExtendedTokenInfo.js +37 -1
- package/dist/model/FeeAmount.js +1 -1
- package/dist/model/FeeGasLimit.js +1 -1
- package/dist/model/FeeRate.js +66 -9
- package/dist/model/FeeType.js +1 -1
- package/dist/model/FixedFeeRate.js +1 -1
- package/dist/model/GetStakingEstimationFee201Response.js +109 -0
- package/dist/model/GetStakingEstimationFeeRequest.js +256 -0
- package/dist/model/GetToken200Response.js +1 -1
- package/dist/model/GetToken4XXResponse.js +1 -1
- package/dist/model/KeyShareHolder.js +1 -1
- package/dist/model/KeyShareHolderGroup.js +1 -1
- package/dist/model/KeyShareHolderGroupStatus.js +1 -1
- package/dist/model/KeyShareHolderGroupType.js +1 -1
- package/dist/model/KeyShareHolderStatus.js +1 -1
- package/dist/model/KeyShareHolderType.js +1 -1
- package/dist/model/ListAddresses200Response.js +1 -1
- package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +1 -1
- package/dist/model/ListExchanges200ResponseInner.js +1 -1
- package/dist/model/ListKeyShareHolderGroups200Response.js +1 -1
- package/dist/model/ListMpcProjects200Response.js +1 -1
- package/dist/model/ListMpcVaults200Response.js +1 -1
- package/dist/model/ListStakingActivities200Response.js +123 -0
- package/dist/model/ListStakingPools200Response.js +123 -0
- package/dist/model/ListStakings200Response.js +123 -0
- package/dist/model/ListSupportedAssetsForExchange200Response.js +1 -1
- package/dist/model/ListSupportedChains200Response.js +1 -1
- package/dist/model/ListSupportedTokens200Response.js +1 -1
- package/dist/model/ListTokenBalancesForAddress200Response.js +1 -1
- package/dist/model/ListTransactions200Response.js +1 -1
- package/dist/model/ListTssRequests200Response.js +1 -1
- package/dist/model/ListUtxos200Response.js +1 -1
- package/dist/model/ListWallets200Response.js +1 -1
- package/dist/model/ListWebhookEndpoints200Response.js +1 -1
- package/dist/model/ListWebhookEventDefinitions200ResponseInner.js +1 -1
- package/dist/model/ListWebhookEventLogs200Response.js +1 -1
- package/dist/model/ListWebhookEvents200Response.js +1 -1
- package/dist/model/LockUtxos201Response.js +1 -1
- package/dist/model/LockUtxosRequest.js +1 -1
- package/dist/model/LockUtxosRequestUtxosInner.js +1 -1
- package/dist/model/MPCDelegate.js +1 -1
- package/dist/model/MPCProject.js +1 -1
- package/dist/model/MPCVault.js +1 -1
- package/dist/model/MPCVaultType.js +1 -1
- package/dist/model/MPCWalletInfo.js +1 -1
- package/dist/model/MaxFeeAmount.js +1 -1
- package/dist/model/MaxTransferableValue.js +1 -1
- package/dist/model/MessageSignDestination.js +38 -5
- package/dist/model/MessageSignDestinationType.js +1 -1
- package/dist/model/MessageSignParams.js +1 -1
- package/dist/model/MessageSignSource.js +28 -3
- package/dist/model/MessageSignSourceType.js +1 -1
- package/dist/model/MpcContractCallSource.js +1 -1
- package/dist/model/MpcMessageSignSource.js +1 -1
- package/dist/model/MpcSigningGroup.js +1 -1
- package/dist/model/MpcStakeSource.js +156 -0
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/Pagination.js +1 -1
- package/dist/model/PoolDetails.js +27 -27
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +45 -40
- package/dist/model/PoolSummary.js +14 -14
- package/dist/model/RawMessageSignDestination.js +122 -0
- package/dist/model/RefreshToken200Response.js +1 -1
- package/dist/model/RefreshTokenRequest.js +1 -1
- package/dist/model/ReplaceType.js +1 -1
- package/dist/model/RetryWebhookEventById201Response.js +1 -1
- package/dist/model/RootPubkey.js +1 -1
- package/dist/model/SafeContractCallSource.js +2 -2
- package/dist/model/SafeTransferSource.js +2 -2
- package/dist/model/SafeWallet.js +1 -1
- package/dist/model/SmartContractInitiator.js +1 -1
- package/dist/model/SmartContractWalletInfo.js +24 -3
- package/dist/model/SmartContractWalletOperationType.js +1 -1
- package/dist/model/SmartContractWalletType.js +1 -1
- package/dist/model/SourceGroup.js +1 -1
- package/dist/model/StakeSourceType.js +56 -0
- package/dist/model/StakingPoolType.js +1 -11
- package/dist/model/StakingSource.js +39 -46
- package/dist/model/Stakings.js +35 -63
- package/dist/model/StakingsExtra.js +182 -0
- package/dist/model/StakingsValidatorInfo.js +7 -2
- package/dist/model/SubWalletAssetBalance.js +1 -1
- package/dist/model/TSSGroups.js +1 -1
- package/dist/model/TSSRequest.js +1 -1
- package/dist/model/TSSRequestStatus.js +1 -1
- package/dist/model/TSSRequestType.js +1 -1
- package/dist/model/TSSRequestWebhookEventData.js +1 -1
- package/dist/model/TokenBalance.js +1 -1
- package/dist/model/TokenBalanceBalance.js +1 -1
- package/dist/model/TokenInfo.js +27 -1
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionApprover.js +1 -1
- package/dist/model/TransactionBlockInfo.js +1 -1
- package/dist/model/TransactionCustodialAssetWalletSource.js +2 -2
- package/dist/model/TransactionDepositFromAddressSource.js +2 -2
- package/dist/model/TransactionDepositFromLoopSource.js +2 -2
- package/dist/model/TransactionDepositFromWalletSource.js +2 -2
- package/dist/model/TransactionDepositToAddressDestination.js +4 -4
- package/dist/model/TransactionDepositToWalletDestination.js +4 -4
- package/dist/model/TransactionDestination.js +110 -17
- package/dist/model/TransactionDestinationType.js +1 -1
- package/dist/model/TransactionDetail.js +1 -1
- package/dist/model/TransactionDetails.js +1 -1
- package/dist/model/TransactionEvmContractDestination.js +9 -5
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionExchangeWalletSource.js +2 -2
- package/dist/model/TransactionFee.js +66 -9
- package/dist/model/TransactionFeeStationWalletSource.js +1 -1
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionInitiatorType.js +1 -1
- package/dist/model/TransactionMPCWalletSource.js +2 -2
- package/dist/model/TransactionMessageSignEIP191Destination.js +2 -2
- package/dist/model/TransactionMessageSignEIP712Destination.js +2 -2
- package/dist/model/TransactionRawTxInfo.js +1 -1
- package/dist/model/TransactionRbf.js +1 -1
- package/dist/model/TransactionRbfSource.js +28 -3
- package/dist/model/TransactionReplacement.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFee.js +66 -9
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionResend.js +1 -1
- package/dist/model/TransactionResult.js +24 -3
- package/dist/model/TransactionResultType.js +1 -1
- package/dist/model/TransactionSignatureResult.js +1 -1
- package/dist/model/TransactionSigner.js +1 -1
- package/dist/model/TransactionSmartContractSafeWalletSource.js +2 -2
- package/dist/model/TransactionSource.js +116 -15
- package/dist/model/TransactionSourceType.js +1 -1
- package/dist/model/TransactionStatus.js +1 -1
- package/dist/model/TransactionSubStatus.js +1 -1
- package/dist/model/TransactionTimeline.js +1 -1
- package/dist/model/TransactionTokeApproval.js +37 -1
- package/dist/model/TransactionTokenAmount.js +1 -1
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +2 -2
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +4 -4
- package/dist/model/TransactionType.js +11 -1
- package/dist/model/TransactionUtxo.js +1 -1
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +1 -1
- package/dist/model/TransferDestination.js +39 -6
- package/dist/model/TransferDestinationType.js +1 -1
- package/dist/model/TransferParams.js +1 -1
- package/dist/model/TransferSource.js +74 -9
- package/dist/model/UTXO.js +1 -1
- package/dist/model/UpdateCustodialWalletParams.js +1 -1
- package/dist/model/UpdateExchangeWalletParams.js +1 -1
- package/dist/model/UpdateGroupAction.js +1 -1
- package/dist/model/UpdateKeyShareHolderGroupByIdRequest.js +1 -1
- package/dist/model/UpdateMpcProjectByIdRequest.js +1 -1
- package/dist/model/UpdateMpcVaultByIdRequest.js +1 -1
- package/dist/model/UpdateMpcWalletParams.js +1 -1
- package/dist/model/UpdateSmartContractWalletParams.js +1 -1
- package/dist/model/UpdateWalletParams.js +66 -9
- package/dist/model/UpdateWebhookEndpointByIdRequest.js +1 -1
- package/dist/model/UtxoFeeBasePrice.js +1 -1
- package/dist/model/UtxoFeeRate.js +1 -1
- package/dist/model/WalletBalanceSnapshot.js +120 -0
- package/dist/model/WalletBalanceSnapshotRecord.js +163 -0
- package/dist/model/WalletInfo.js +66 -9
- package/dist/model/WalletSubtype.js +1 -1
- package/dist/model/WalletType.js +1 -1
- package/dist/model/WebhookEndpoint.js +1 -1
- package/dist/model/WebhookEndpointStatus.js +1 -1
- package/dist/model/WebhookEvent.js +1 -1
- package/dist/model/WebhookEventData.js +38 -5
- package/dist/model/WebhookEventDataType.js +1 -1
- package/dist/model/WebhookEventLog.js +1 -1
- package/dist/model/WebhookEventStatus.js +1 -1
- package/dist/model/WebhookEventType.js +1 -1
- package/docs/Activity.md +9 -8
- package/docs/ActivityInitiator.md +1 -1
- package/docs/ActivityTimeline.md +3 -3
- package/docs/ActivityType.md +0 -6
- package/docs/AddressInfo.md +3 -0
- package/docs/AddressTransferDestinationAccountOutput.md +1 -1
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
- package/docs/AmountDetailsInner.md +0 -1
- package/docs/BabylonStakeExtra.md +3 -3
- package/docs/BabylonStakingExtra.md +14 -0
- package/docs/BabylonValidator.md +6 -5
- package/docs/BaseStakeSource.md +11 -0
- package/docs/BookkeepingRecord.md +19 -0
- package/docs/BookkeepingSummary.md +12 -0
- package/docs/BroadcastSignedTransactions201ResponseInner.md +10 -0
- package/docs/BroadcastSignedTransactionsRequest.md +9 -0
- package/docs/ChainInfo.md +1 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
- package/docs/ContractCallDestination.md +1 -1
- package/docs/CreateStakeActivity.md +2 -2
- package/docs/CreateStakeActivity201Response.md +10 -0
- package/docs/CreateStakeActivityExtra.md +3 -5
- package/docs/CreateStakeActivityRequest.md +15 -0
- package/docs/CreateUnstakeActivity.md +2 -2
- package/docs/CreateUnstakeActivityRequest.md +13 -0
- package/docs/CreateWithdrawActivity.md +3 -3
- package/docs/CreateWithdrawActivityRequest.md +14 -0
- package/docs/EigenLayerLstStakeExtra.md +1 -1
- package/docs/EstimateStakeFee.md +2 -2
- package/docs/EstimateUnstakeFee.md +2 -2
- package/docs/EstimateWithdrawFee.md +3 -3
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeTransferDestination.md +1 -1
- package/docs/ExtendedTokenInfo.md +2 -0
- package/docs/GetStakingEstimationFee201Response.md +11 -0
- package/docs/GetStakingEstimationFeeRequest.md +17 -0
- package/docs/ListStakingActivities200Response.md +10 -0
- package/docs/ListStakingPools200Response.md +10 -0
- package/docs/ListStakings200Response.md +10 -0
- package/docs/MpcStakeSource.md +11 -0
- package/docs/OAuthApi.md +2 -2
- package/docs/PoolDetails.md +13 -13
- package/docs/PoolDetailsAllOfValidatorsInfo.md +6 -6
- package/docs/PoolSummary.md +6 -6
- package/docs/RawMessageSignDestination.md +10 -0
- package/docs/StakeSourceType.md +10 -0
- package/docs/StakingPoolType.md +0 -4
- package/docs/StakingSource.md +1 -3
- package/docs/Stakings.md +10 -13
- package/docs/StakingsApi.md +570 -0
- package/docs/StakingsExtra.md +14 -0
- package/docs/StakingsValidatorInfo.md +5 -5
- package/docs/TokenInfo.md +2 -0
- package/docs/TransactionDepositToAddressDestination.md +1 -1
- package/docs/TransactionDepositToWalletDestination.md +1 -1
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionEvmContractDestination.md +1 -1
- package/docs/TransactionTokeApproval.md +2 -0
- package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
- package/docs/TransactionTransferToWalletDestination.md +1 -1
- package/docs/TransactionType.md +4 -0
- package/docs/TransactionsApi.md +110 -2
- package/docs/TransferDestination.md +1 -1
- package/docs/WalletBalanceSnapshot.md +10 -0
- package/docs/WalletBalanceSnapshotRecord.md +13 -0
- package/docs/WalletsApi.md +0 -55
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/package.json +2 -2
|
@@ -30,7 +30,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
30
30
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
31
31
|
* Cobo Wallet as a Service 2.0
|
|
32
32
|
*
|
|
33
|
-
* Contact:
|
|
33
|
+
* Contact: help@cobo.com
|
|
34
34
|
*
|
|
35
35
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
36
36
|
* https://openapi-generator.tech
|
|
@@ -63,6 +63,23 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
63
63
|
}
|
|
64
64
|
var match = 0;
|
|
65
65
|
var errorMessages = [];
|
|
66
|
+
var discriminatorValue = instance["data_type"];
|
|
67
|
+
if (discriminatorValue) {
|
|
68
|
+
switch (discriminatorValue) {
|
|
69
|
+
case "TSSRequest":
|
|
70
|
+
this.actualInstance = _TSSRequestWebhookEventData["default"].constructFromObject(instance);
|
|
71
|
+
match++;
|
|
72
|
+
break;
|
|
73
|
+
case "Transaction":
|
|
74
|
+
this.actualInstance = _TransactionWebhookEventData["default"].constructFromObject(instance);
|
|
75
|
+
match++;
|
|
76
|
+
break;
|
|
77
|
+
default:
|
|
78
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
66
83
|
try {
|
|
67
84
|
if (instance instanceof _TransactionWebhookEventData["default"]) {
|
|
68
85
|
this.actualInstance = instance;
|
|
@@ -70,8 +87,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
70
87
|
// plain JS object
|
|
71
88
|
// create TransactionWebhookEventData from JS object
|
|
72
89
|
this.actualInstance = _TransactionWebhookEventData["default"].constructFromObject(instance);
|
|
73
|
-
} else
|
|
74
|
-
|
|
90
|
+
} else {
|
|
91
|
+
if (_TransactionWebhookEventData["default"].constructFromObject(instance)) {
|
|
92
|
+
if (!!_TransactionWebhookEventData["default"].constructFromObject(instance).toJSON) {
|
|
93
|
+
if (_TransactionWebhookEventData["default"].constructFromObject(instance).toJSON()) {
|
|
94
|
+
this.actualInstance = _TransactionWebhookEventData["default"].constructFromObject(instance);
|
|
95
|
+
}
|
|
96
|
+
} else {
|
|
97
|
+
this.actualInstance = _TransactionWebhookEventData["default"].constructFromObject(instance);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
75
100
|
}
|
|
76
101
|
match++;
|
|
77
102
|
} catch (err) {
|
|
@@ -85,8 +110,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
85
110
|
// plain JS object
|
|
86
111
|
// create TSSRequestWebhookEventData from JS object
|
|
87
112
|
this.actualInstance = _TSSRequestWebhookEventData["default"].constructFromObject(instance);
|
|
88
|
-
} else
|
|
89
|
-
|
|
113
|
+
} else {
|
|
114
|
+
if (_TSSRequestWebhookEventData["default"].constructFromObject(instance)) {
|
|
115
|
+
if (!!_TSSRequestWebhookEventData["default"].constructFromObject(instance).toJSON) {
|
|
116
|
+
if (_TSSRequestWebhookEventData["default"].constructFromObject(instance).toJSON()) {
|
|
117
|
+
this.actualInstance = _TSSRequestWebhookEventData["default"].constructFromObject(instance);
|
|
118
|
+
}
|
|
119
|
+
} else {
|
|
120
|
+
this.actualInstance = _TSSRequestWebhookEventData["default"].constructFromObject(instance);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
90
123
|
}
|
|
91
124
|
match++;
|
|
92
125
|
} catch (err) {
|
|
@@ -17,7 +17,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Cobo Wallet as a Service 2.0
|
|
19
19
|
*
|
|
20
|
-
* Contact:
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
21
|
*
|
|
22
22
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
23
|
* https://openapi-generator.tech
|
|
@@ -18,7 +18,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Cobo Wallet as a Service 2.0
|
|
20
20
|
*
|
|
21
|
-
* Contact:
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
24
|
* https://openapi-generator.tech
|
|
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
16
|
* Cobo Wallet as a Service 2.0
|
|
17
17
|
*
|
|
18
|
-
* Contact:
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
19
|
*
|
|
20
20
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
21
|
* https://openapi-generator.tech
|
|
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
16
|
* Cobo Wallet as a Service 2.0
|
|
17
17
|
*
|
|
18
|
-
* Contact:
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
19
|
*
|
|
20
20
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
21
|
* https://openapi-generator.tech
|
package/docs/Activity.md
CHANGED
|
@@ -4,16 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**id** | **String** | The
|
|
7
|
+
**id** | **String** | The activity ID. | [optional]
|
|
8
8
|
**initiator** | **String** | The initiator of the activity. | [optional]
|
|
9
|
+
**initiator_type** | [**TransactionInitiatorType**](TransactionInitiatorType.md) | | [optional]
|
|
9
10
|
**type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
10
|
-
**wallet_id** | **String** | The
|
|
11
|
-
**address** | **String** | The staker wallet address. | [optional]
|
|
12
|
-
**pool_id** | **String** | The
|
|
13
|
-
**token_id** | **String** | The
|
|
14
|
-
**staking_id** | **String** | The
|
|
15
|
-
**amount** | **String** | The amount
|
|
16
|
-
**transaction_ids** | **[String]** | The
|
|
11
|
+
**wallet_id** | **String** | The staker's wallet ID. | [optional]
|
|
12
|
+
**address** | **String** | The staker's wallet address. | [optional]
|
|
13
|
+
**pool_id** | **String** | The ID of the staking pool. |
|
|
14
|
+
**token_id** | **String** | The token ID. |
|
|
15
|
+
**staking_id** | **String** | The ID of the corresponding staking position. | [optional]
|
|
16
|
+
**amount** | **String** | The staking amount. |
|
|
17
|
+
**transaction_ids** | **[String]** | The IDs of the corresponding transactions of the activity. | [optional]
|
|
17
18
|
**timeline** | [**[ActivityTimeline]**](ActivityTimeline.md) | The timeline of the activity. | [optional]
|
|
18
19
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
19
20
|
**status** | [**ActivityStatus**](ActivityStatus.md) | |
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**
|
|
7
|
+
**app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
|
|
8
8
|
|
|
9
9
|
|
package/docs/ActivityTimeline.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**action** | [**ActivityAction**](ActivityAction.md) | |
|
|
8
|
-
**status** | **String** | | [optional]
|
|
9
|
-
**timestamp** | **Number** | | [optional]
|
|
10
|
-
**transaction_id** | **String** | The transaction
|
|
8
|
+
**status** | **String** | The status of the action. Possible values include: - `Success`: The action is successfully completed. - `Processing`: The action is being processed. - `Failed`: The action has failed. | [optional]
|
|
9
|
+
**timestamp** | **Number** | The time when the action took place, in Unix timestamp format, measured in milliseconds. - For the `Submitted` action, `timestamp` represents the time the staking, unstaking, or withdrawal request was created. - For the `BTCConfirmation` action, `timestamp` represents the time when the request was confirmed on the Bitcoin chain, or when the confirmation failed. - For the `BabylonConfirmation` action, `timestamp` represents the time when the request was confirmed by the Babylon protocol, or when the confirmation failed. | [optional]
|
|
10
|
+
**transaction_id** | **String** | The ID of the corresponding transaction. | [optional]
|
|
11
11
|
|
|
12
12
|
|
package/docs/ActivityType.md
CHANGED
package/docs/AddressInfo.md
CHANGED
|
@@ -10,5 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**path** | **String** | The derivation path of the address. This property applies to MPC Wallets only. To learn the meaning of each level in the path, see [Path levels](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#path-levels). | [optional]
|
|
11
11
|
**encoding** | [**AddressEncoding**](AddressEncoding.md) | | [optional]
|
|
12
12
|
**pubkey** | **String** | The public key of the address. This property applies to MPC Wallets only. | [optional]
|
|
13
|
+
**x_only_pubkey** | **String** | The 32-byte x-only public key in hexadecimal format after tweaking. | [optional]
|
|
14
|
+
**taproot_script_tree_hash** | **String** | The information about the new address. | [optional]
|
|
15
|
+
**taproot_internal_address** | **String** | The Taproot address before tweaking. | [optional]
|
|
13
16
|
|
|
14
17
|
|
|
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The destination address. |
|
|
8
8
|
**memo** | **String** | The memo that identifies a transaction in order to credit the correct account. For transfers out of Cobo Portal, it is highly recommended to include a memo for the chains such as XRP, EOS, XLM, IOST, BNB_BNB, ATOM, LUNA, and TON. | [optional]
|
|
9
|
-
**amount** | **String** | The transfer amount. For example, if you trade 1.5
|
|
9
|
+
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
|
10
10
|
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The destination address. |
|
|
8
|
-
**amount** | **String** | The transfer amount. For example, if you trade 1.5
|
|
8
|
+
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. | [optional]
|
|
9
9
|
**script** | **String** | The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent. | [optional]
|
|
10
10
|
|
|
11
11
|
|
|
@@ -6,6 +6,5 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**status** | [**AmountStatus**](AmountStatus.md) | |
|
|
8
8
|
**amount** | **String** | The staking amount. |
|
|
9
|
-
**activity_id** | **String** | The related staking activity ID. | [optional]
|
|
10
9
|
|
|
11
10
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
-
**finality_provider_public_key** | **String** | The public key of finality provider. |
|
|
9
|
-
**stake_block_time** | **Number** | The
|
|
10
|
-
**
|
|
8
|
+
**finality_provider_public_key** | **String** | The public key of the finality provider. |
|
|
9
|
+
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
|
|
10
|
+
**auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.BabylonStakingExtra
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
+
**pos_chain** | **String** | The Proof-of-Stake (PoS) chain. |
|
|
9
|
+
**unlock_timestamp** | **Number** | The estimated time when the bitcoins will be unlocked, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
10
|
+
**unlock_block_height** | **Number** | The block height at which the bitcoins will be unlocked. | [optional]
|
|
11
|
+
**stake_address** | **String** | The address receiving the staked bitcoins. | [optional]
|
|
12
|
+
**unbond_address** | **String** | The address receiving the unlocked bitcoins. | [optional]
|
|
13
|
+
|
|
14
|
+
|
package/docs/BabylonValidator.md
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
7
8
|
**icon_url** | **String** | The URL of the validator's icon. |
|
|
8
|
-
**name** | **String** | The name
|
|
9
|
-
**priority** | **Number** |
|
|
10
|
-
**public_key** | **String** | The public key of validator. |
|
|
11
|
-
**commission_rate** | **Number** | The commission rate of validator. |
|
|
12
|
-
**supported_pos_chains** | **[String]** |
|
|
9
|
+
**name** | **String** | The validator's name. |
|
|
10
|
+
**priority** | **Number** | This property can be ignored. | [optional]
|
|
11
|
+
**public_key** | **String** | The public key of the validator. |
|
|
12
|
+
**commission_rate** | **Number** | The commission rate of the validator. |
|
|
13
|
+
**supported_pos_chains** | **[String]** | A list of supported Proof-of-Stake (PoS) chains. |
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.BaseStakeSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_type** | [**StakeSourceType**](StakeSourceType.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
+
**address** | **String** | The wallet address. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CoboWaas2.BookkeepingRecord
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
8
|
+
**wallet_type** | [**WalletType**](WalletType.md) | | [optional]
|
|
9
|
+
**wallet_name** | **String** | The wallet name. | [optional]
|
|
10
|
+
**transaction_timestamp** | **Number** | The time when the bookkeeping was created, in Unix timestamp format, measured in milliseconds. |
|
|
11
|
+
**token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
|
|
12
|
+
**type** | **String** | The bookkeeping type. |
|
|
13
|
+
**amount** | **String** | The amount of the bookkeeping. |
|
|
14
|
+
**balance** | **String** | The post-balance of the tx. |
|
|
15
|
+
**from_address** | **String** | The from address. | [optional]
|
|
16
|
+
**to_address** | **String** | The to address. | [optional]
|
|
17
|
+
**transaction_hash** | **String** | The transaction hash. | [optional]
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.BookkeepingSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**total_transaction_count** | **Number** | Total transaction count. |
|
|
8
|
+
**total_inflow_value** | **String** | The USD value of the inflow. |
|
|
9
|
+
**total_outflow_value** | **String** | The USD value of the outflow. |
|
|
10
|
+
**total_fee_value** | **String** | The USD value of the fee. | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.BroadcastSignedTransactions201ResponseInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a transaction request. |
|
|
8
|
+
**transaction_id** | **String** | The transaction ID of this broadcast transaction. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.BroadcastSignedTransactionsRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**transaction_ids** | **[String]** | The transaction IDs of the signed transactions to be broadcast. You can retrieve the transactions corresponding to a staking activity by calling [Get staking activity details](/v2/api-references/stakings/get-staking-activity-details). | [optional]
|
|
8
|
+
|
|
9
|
+
|
package/docs/ChainInfo.md
CHANGED
|
@@ -10,5 +10,6 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**explorer_tx_url** | **String** | The transaction URL pattern on the blockchain explorer. You can use it to concatenate the transaction URLs. | [optional]
|
|
11
11
|
**explorer_address_url** | **String** | The address URL pattern on the blockchain explorer. You can use it to concatenate the address URLs. | [optional]
|
|
12
12
|
**require_memo** | **Boolean** | Whether the chain requires a memo. | [optional]
|
|
13
|
+
**confirming_threshold** | **Number** | The number of confirmations required for an on-chain transaction, such as 64 for Ethereum. | [optional]
|
|
13
14
|
|
|
14
15
|
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The wallet address. | [optional]
|
|
8
|
-
**is_loop** | **Boolean** | Whether the transaction from the given source
|
|
8
|
+
**is_loop** | **Boolean** | Whether the transaction from the given source to the given destination address can be executed as a Loop transfer. - `true`: The transaction can be executed as a Loop transfer. - `false`: The transaction cannot be executed as a Loop transfer. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**destination_type** | [**ContractCallDestinationType**](ContractCallDestinationType.md) | |
|
|
8
8
|
**address** | **String** | The destination address. |
|
|
9
9
|
**value** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`. | [optional]
|
|
10
|
-
**calldata** | **
|
|
10
|
+
**calldata** | **String** | The data that is used to invoke a specific function or method within the specified contract at the destination address. |
|
|
11
11
|
|
|
12
12
|
|
|
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
8
8
|
**source** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
9
|
-
**pool_id** | **String** | The
|
|
10
|
-
**amount** | **String** | The amount to stake |
|
|
9
|
+
**pool_id** | **String** | The ID of the staking pool. |
|
|
10
|
+
**amount** | **String** | The amount to stake. |
|
|
11
11
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
12
12
|
**extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
|
|
13
13
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CreateStakeActivity201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**activity_id** | **String** | The activity ID. |
|
|
8
|
+
**staking_id** | **String** | The ID of the staking position. | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
-
**finality_provider_public_key** | **String** | The public key of finality provider. |
|
|
9
|
-
**stake_block_time** | **Number** | The
|
|
10
|
-
**
|
|
11
|
-
**operator** | **String** | The operator address. | [optional]
|
|
12
|
-
**fee_recipient** | **Number** | The fee recipient address, if not provided the staker address will be used. | [optional]
|
|
8
|
+
**finality_provider_public_key** | **String** | The public key of the finality provider. |
|
|
9
|
+
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
|
|
10
|
+
**auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
|
|
13
11
|
|
|
14
12
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CoboWaas2.CreateStakeActivityRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
8
|
+
**source** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
9
|
+
**pool_id** | **String** | The ID of the staking pool. |
|
|
10
|
+
**amount** | **String** | The amount to stake. |
|
|
11
|
+
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
12
|
+
**extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
|
|
13
|
+
**app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
|
|
14
|
+
|
|
15
|
+
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
8
|
-
**staking_id** | **String** | The
|
|
9
|
-
**amount** | **String** | The amount to
|
|
8
|
+
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
|
+
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
10
10
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CoboWaas2.CreateUnstakeActivityRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
8
|
+
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
|
+
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
10
|
+
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
11
|
+
**app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
|
|
12
|
+
|
|
13
|
+
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
8
|
-
**staking_id** | **String** | The
|
|
9
|
-
**amount** | **String** | The amount to
|
|
10
|
-
**address** | **String** | The
|
|
8
|
+
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
|
+
**amount** | **String** | The amount to withdraw. | [optional]
|
|
10
|
+
**address** | **String** | The withdrawal address. | [optional]
|
|
11
11
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
12
12
|
|
|
13
13
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.CreateWithdrawActivityRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
8
|
+
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
|
+
**amount** | **String** | The amount to withdraw. | [optional]
|
|
10
|
+
**address** | **String** | The withdrawal address. | [optional]
|
|
11
|
+
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
12
|
+
**app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
-
**operator** | **String** | The operator address. | [optional]
|
|
8
|
+
**operator** | **String** | The operator's address. | [optional]
|
|
9
9
|
|
|
10
10
|
|
package/docs/EstimateStakeFee.md
CHANGED
|
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**activity_type** | [**ActivityType**](ActivityType.md) | |
|
|
8
8
|
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
9
9
|
**source** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
10
|
-
**pool_id** | **String** | The
|
|
11
|
-
**amount** | **String** | The amount to stake |
|
|
10
|
+
**pool_id** | **String** | The ID of the staking pool. |
|
|
11
|
+
**amount** | **String** | The amount to stake. |
|
|
12
12
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
13
13
|
**extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
|
|
14
14
|
|
|
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**activity_type** | [**ActivityType**](ActivityType.md) | |
|
|
8
8
|
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
9
|
-
**staking_id** | **String** | The
|
|
10
|
-
**amount** | **String** | The amount to
|
|
9
|
+
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
10
|
+
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
11
11
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
12
12
|
|
|
13
13
|
|
|
@@ -6,9 +6,9 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**activity_type** | [**ActivityType**](ActivityType.md) | |
|
|
8
8
|
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
9
|
-
**staking_id** | **String** | The
|
|
10
|
-
**amount** | **String** | The amount to
|
|
11
|
-
**address** | **String** | The
|
|
9
|
+
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
10
|
+
**amount** | **String** | The amount to withdraw. | [optional]
|
|
11
|
+
**address** | **String** | The withdrawal address. | [optional]
|
|
12
12
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
13
13
|
|
|
14
14
|
|
|
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**destination_type** | [**ContractCallDestinationType**](ContractCallDestinationType.md) | |
|
|
8
8
|
**address** | **String** | The destination address. |
|
|
9
9
|
**value** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`. | [optional]
|
|
10
|
-
**calldata** | **
|
|
10
|
+
**calldata** | **String** | The data that is used to invoke a specific function or method within the specified contract at the destination address. |
|
|
11
11
|
|
|
12
12
|
|
|
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**destination_type** | [**TransferDestinationType**](TransferDestinationType.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
9
|
**trading_account_type** | **String** | The trading account type. |
|
|
10
|
-
**amount** | **String** | The transfer amount. For example, if you trade 1.5
|
|
10
|
+
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,5 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**fee_token_id** | **String** | The fee token ID. A fee token is the token with which you pay transaction fees. | [optional]
|
|
16
16
|
**can_deposit** | **Boolean** | Whether the token can be deposited. - `true`: The token can be deposited. - `false`: The token cannot be deposited. | [optional] [default to false]
|
|
17
17
|
**can_withdraw** | **Boolean** | Whether the token can be withdrawn. - `true`: The token can be withdrawn. - `false`: The token cannot be withdrawn. | [optional] [default to false]
|
|
18
|
+
**dust_threshold** | **String** | The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Loop transfers](https://loop.top/) do not have this limitation. | [optional]
|
|
19
|
+
**custodial_minimum_deposit_threshold** | **String** | The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Loop transfers](https://loop.top/) do not have this limitation. | [optional]
|
|
18
20
|
|
|
19
21
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.GetStakingEstimationFee201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
|
|
8
|
+
**fee_amount** | **String** | The amount of the estimated fee. | [optional]
|
|
9
|
+
**token_id** | **String** | The token ID of the staking fee. | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# CoboWaas2.GetStakingEstimationFeeRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**activity_type** | [**ActivityType**](ActivityType.md) | |
|
|
8
|
+
**request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
|
|
9
|
+
**source** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
10
|
+
**pool_id** | **String** | The ID of the staking pool. |
|
|
11
|
+
**amount** | **String** | The amount to withdraw. |
|
|
12
|
+
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
13
|
+
**extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
|
|
14
|
+
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
15
|
+
**address** | **String** | The withdrawal address. |
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.ListStakingActivities200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**data** | [**[Activity]**](Activity.md) | | [optional]
|
|
8
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.ListStakingPools200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**data** | [**[PoolSummary]**](PoolSummary.md) | | [optional]
|
|
8
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|