@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
package/dist/model/Stakings.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _AmountDetailsInner = _interopRequireDefault(require("./AmountDetailsInner"));
|
|
9
|
+
var _StakingsExtra = _interopRequireDefault(require("./StakingsExtra"));
|
|
9
10
|
var _StakingsValidatorInfo = _interopRequireDefault(require("./StakingsValidatorInfo"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
12
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -19,7 +20,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
20
|
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); } /**
|
|
20
21
|
* Cobo Wallet as a Service 2.0
|
|
21
22
|
*
|
|
22
|
-
* Contact:
|
|
23
|
+
* Contact: help@cobo.com
|
|
23
24
|
*
|
|
24
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
26
|
* https://openapi-generator.tech
|
|
@@ -33,16 +34,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
34
|
var Stakings = /*#__PURE__*/function () {
|
|
34
35
|
/**
|
|
35
36
|
* Constructs a new <code>Stakings</code>.
|
|
36
|
-
* The staking
|
|
37
|
+
* The information about a staking position.
|
|
37
38
|
* @alias module:model/Stakings
|
|
38
|
-
* @param id {String} The
|
|
39
|
-
* @param wallet_id {String} The
|
|
40
|
-
* @param address {String} The staker wallet address.
|
|
41
|
-
* @param amounts {Array.<module:model/AmountDetailsInner>} The staking amount
|
|
42
|
-
* @param pool_id {String} The
|
|
43
|
-
* @param token_id {String} The token
|
|
44
|
-
* @param created_timestamp {Number} The time when the
|
|
45
|
-
* @param updated_timestamp {Number} The time when the
|
|
39
|
+
* @param id {String} The ID of the staking position.
|
|
40
|
+
* @param wallet_id {String} The staker's wallet ID.
|
|
41
|
+
* @param address {String} The staker's wallet address.
|
|
42
|
+
* @param amounts {Array.<module:model/AmountDetailsInner>} The details about the staking amount.
|
|
43
|
+
* @param pool_id {String} The ID of the staking pool.
|
|
44
|
+
* @param token_id {String} The token ID.
|
|
45
|
+
* @param created_timestamp {Number} The time when the staking position was created.
|
|
46
|
+
* @param updated_timestamp {Number} The time when the staking position was last updated.
|
|
46
47
|
* @param validator_info {module:model/StakingsValidatorInfo}
|
|
47
48
|
*/
|
|
48
49
|
function Stakings(id, wallet_id, address, amounts, pool_id, token_id, created_timestamp, updated_timestamp, validator_info) {
|
|
@@ -93,24 +94,12 @@ var Stakings = /*#__PURE__*/function () {
|
|
|
93
94
|
if (data.hasOwnProperty('amounts')) {
|
|
94
95
|
obj['amounts'] = _ApiClient["default"].convertToType(data['amounts'], [_AmountDetailsInner["default"]]);
|
|
95
96
|
}
|
|
96
|
-
if (data.hasOwnProperty('initiator')) {
|
|
97
|
-
obj['initiator'] = _ApiClient["default"].convertToType(data['initiator'], 'String');
|
|
98
|
-
}
|
|
99
|
-
if (data.hasOwnProperty('unlock_timestamp')) {
|
|
100
|
-
obj['unlock_timestamp'] = _ApiClient["default"].convertToType(data['unlock_timestamp'], 'Number');
|
|
101
|
-
}
|
|
102
|
-
if (data.hasOwnProperty('unlock_block_height')) {
|
|
103
|
-
obj['unlock_block_height'] = _ApiClient["default"].convertToType(data['unlock_block_height'], 'Number');
|
|
104
|
-
}
|
|
105
97
|
if (data.hasOwnProperty('pool_id')) {
|
|
106
98
|
obj['pool_id'] = _ApiClient["default"].convertToType(data['pool_id'], 'String');
|
|
107
99
|
}
|
|
108
100
|
if (data.hasOwnProperty('token_id')) {
|
|
109
101
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
110
102
|
}
|
|
111
|
-
if (data.hasOwnProperty('pos_chain')) {
|
|
112
|
-
obj['pos_chain'] = _ApiClient["default"].convertToType(data['pos_chain'], 'String');
|
|
113
|
-
}
|
|
114
103
|
if (data.hasOwnProperty('rewards_info')) {
|
|
115
104
|
obj['rewards_info'] = _ApiClient["default"].convertToType(data['rewards_info'], Object);
|
|
116
105
|
}
|
|
@@ -123,6 +112,9 @@ var Stakings = /*#__PURE__*/function () {
|
|
|
123
112
|
if (data.hasOwnProperty('validator_info')) {
|
|
124
113
|
obj['validator_info'] = _StakingsValidatorInfo["default"].constructFromObject(data['validator_info']);
|
|
125
114
|
}
|
|
115
|
+
if (data.hasOwnProperty('extra')) {
|
|
116
|
+
obj['extra'] = _StakingsExtra["default"].constructFromObject(data['extra']);
|
|
117
|
+
}
|
|
126
118
|
}
|
|
127
119
|
return obj;
|
|
128
120
|
}
|
|
@@ -184,10 +176,6 @@ var Stakings = /*#__PURE__*/function () {
|
|
|
184
176
|
;
|
|
185
177
|
}
|
|
186
178
|
// ensure the json data is a string
|
|
187
|
-
if (data['initiator'] && !(typeof data['initiator'] === 'string' || data['initiator'] instanceof String)) {
|
|
188
|
-
throw new Error("Expected the field `initiator` to be a primitive type in the JSON string but got " + data['initiator']);
|
|
189
|
-
}
|
|
190
|
-
// ensure the json data is a string
|
|
191
179
|
if (data['pool_id'] && !(typeof data['pool_id'] === 'string' || data['pool_id'] instanceof String)) {
|
|
192
180
|
throw new Error("Expected the field `pool_id` to be a primitive type in the JSON string but got " + data['pool_id']);
|
|
193
181
|
}
|
|
@@ -195,10 +183,6 @@ var Stakings = /*#__PURE__*/function () {
|
|
|
195
183
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
196
184
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
197
185
|
}
|
|
198
|
-
// ensure the json data is a string
|
|
199
|
-
if (data['pos_chain'] && !(typeof data['pos_chain'] === 'string' || data['pos_chain'] instanceof String)) {
|
|
200
|
-
throw new Error("Expected the field `pos_chain` to be a primitive type in the JSON string but got " + data['pos_chain']);
|
|
201
|
-
}
|
|
202
186
|
// validate the optional field `validator_info`
|
|
203
187
|
if (data['validator_info']) {
|
|
204
188
|
// data not null
|
|
@@ -206,6 +190,13 @@ var Stakings = /*#__PURE__*/function () {
|
|
|
206
190
|
_StakingsValidatorInfo["default"].validateJSON(data['validator_info']);
|
|
207
191
|
}
|
|
208
192
|
}
|
|
193
|
+
// validate the optional field `extra`
|
|
194
|
+
if (data['extra']) {
|
|
195
|
+
// data not null
|
|
196
|
+
if (!!_StakingsExtra["default"].validateJSON) {
|
|
197
|
+
_StakingsExtra["default"].validateJSON(data['extra']);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
209
200
|
return true;
|
|
210
201
|
}
|
|
211
202
|
}]);
|
|
@@ -213,79 +204,55 @@ var Stakings = /*#__PURE__*/function () {
|
|
|
213
204
|
Stakings.RequiredProperties = ["id", "wallet_id", "address", "amounts", "pool_id", "token_id", "created_timestamp", "updated_timestamp", "validator_info"];
|
|
214
205
|
|
|
215
206
|
/**
|
|
216
|
-
* The
|
|
207
|
+
* The ID of the staking position.
|
|
217
208
|
* @member {String} id
|
|
218
209
|
*/
|
|
219
210
|
Stakings.prototype['id'] = undefined;
|
|
220
211
|
|
|
221
212
|
/**
|
|
222
|
-
* The
|
|
213
|
+
* The staker's wallet ID.
|
|
223
214
|
* @member {String} wallet_id
|
|
224
215
|
*/
|
|
225
216
|
Stakings.prototype['wallet_id'] = undefined;
|
|
226
217
|
|
|
227
218
|
/**
|
|
228
|
-
* The staker wallet address.
|
|
219
|
+
* The staker's wallet address.
|
|
229
220
|
* @member {String} address
|
|
230
221
|
*/
|
|
231
222
|
Stakings.prototype['address'] = undefined;
|
|
232
223
|
|
|
233
224
|
/**
|
|
234
|
-
* The staking amount
|
|
225
|
+
* The details about the staking amount.
|
|
235
226
|
* @member {Array.<module:model/AmountDetailsInner>} amounts
|
|
236
227
|
*/
|
|
237
228
|
Stakings.prototype['amounts'] = undefined;
|
|
238
229
|
|
|
239
230
|
/**
|
|
240
|
-
* The
|
|
241
|
-
* @member {String} initiator
|
|
242
|
-
*/
|
|
243
|
-
Stakings.prototype['initiator'] = undefined;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* The unlock time.
|
|
247
|
-
* @member {Number} unlock_timestamp
|
|
248
|
-
*/
|
|
249
|
-
Stakings.prototype['unlock_timestamp'] = undefined;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The unlock block height.
|
|
253
|
-
* @member {Number} unlock_block_height
|
|
254
|
-
*/
|
|
255
|
-
Stakings.prototype['unlock_block_height'] = undefined;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* The unique pool id.
|
|
231
|
+
* The ID of the staking pool.
|
|
259
232
|
* @member {String} pool_id
|
|
260
233
|
*/
|
|
261
234
|
Stakings.prototype['pool_id'] = undefined;
|
|
262
235
|
|
|
263
236
|
/**
|
|
264
|
-
* The token
|
|
237
|
+
* The token ID.
|
|
265
238
|
* @member {String} token_id
|
|
266
239
|
*/
|
|
267
240
|
Stakings.prototype['token_id'] = undefined;
|
|
268
241
|
|
|
269
242
|
/**
|
|
270
|
-
* The
|
|
271
|
-
* @member {String} pos_chain
|
|
272
|
-
*/
|
|
273
|
-
Stakings.prototype['pos_chain'] = undefined;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* The rewards info of the stake.
|
|
243
|
+
* The information about the staking rewards.
|
|
277
244
|
* @member {Object} rewards_info
|
|
278
245
|
*/
|
|
279
246
|
Stakings.prototype['rewards_info'] = undefined;
|
|
280
247
|
|
|
281
248
|
/**
|
|
282
|
-
* The time when the
|
|
249
|
+
* The time when the staking position was created.
|
|
283
250
|
* @member {Number} created_timestamp
|
|
284
251
|
*/
|
|
285
252
|
Stakings.prototype['created_timestamp'] = undefined;
|
|
286
253
|
|
|
287
254
|
/**
|
|
288
|
-
* The time when the
|
|
255
|
+
* The time when the staking position was last updated.
|
|
289
256
|
* @member {Number} updated_timestamp
|
|
290
257
|
*/
|
|
291
258
|
Stakings.prototype['updated_timestamp'] = undefined;
|
|
@@ -294,4 +261,9 @@ Stakings.prototype['updated_timestamp'] = undefined;
|
|
|
294
261
|
* @member {module:model/StakingsValidatorInfo} validator_info
|
|
295
262
|
*/
|
|
296
263
|
Stakings.prototype['validator_info'] = undefined;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @member {module:model/StakingsExtra} extra
|
|
267
|
+
*/
|
|
268
|
+
Stakings.prototype['extra'] = undefined;
|
|
297
269
|
var _default = exports["default"] = Stakings;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _BabylonStakingExtra = _interopRequireDefault(require("./BabylonStakingExtra"));
|
|
9
|
+
var _StakingPoolType = _interopRequireDefault(require("./StakingPoolType"));
|
|
10
|
+
var _StakingsExtra;
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The StakingsExtra model module.
|
|
30
|
+
* @module model/StakingsExtra
|
|
31
|
+
*/
|
|
32
|
+
var StakingsExtra = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>StakingsExtra</code>.
|
|
35
|
+
* @alias module:model/StakingsExtra
|
|
36
|
+
* @param {(module:model/BabylonStakingExtra)} instance The actual instance to initialize StakingsExtra.
|
|
37
|
+
*/
|
|
38
|
+
function StakingsExtra() {
|
|
39
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
40
|
+
_classCallCheck(this, StakingsExtra);
|
|
41
|
+
/**
|
|
42
|
+
* Returns the JSON representation of the actual instance.
|
|
43
|
+
* @return {string}
|
|
44
|
+
*/
|
|
45
|
+
_defineProperty(this, "toJSON", function () {
|
|
46
|
+
return this.getActualInstance();
|
|
47
|
+
});
|
|
48
|
+
if (instance === null) {
|
|
49
|
+
this.actualInstance = null;
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
var match = 0;
|
|
53
|
+
var errorMessages = [];
|
|
54
|
+
var discriminatorValue = instance["pool_type"];
|
|
55
|
+
if (discriminatorValue) {
|
|
56
|
+
switch (discriminatorValue) {
|
|
57
|
+
case "Babylon":
|
|
58
|
+
this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
|
|
59
|
+
match++;
|
|
60
|
+
break;
|
|
61
|
+
default:
|
|
62
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
if (instance instanceof _BabylonStakingExtra["default"]) {
|
|
69
|
+
this.actualInstance = instance;
|
|
70
|
+
} else if (!!_BabylonStakingExtra["default"].validateJSON && _BabylonStakingExtra["default"].validateJSON(instance)) {
|
|
71
|
+
// plain JS object
|
|
72
|
+
// create BabylonStakingExtra from JS object
|
|
73
|
+
this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
|
|
74
|
+
} else {
|
|
75
|
+
if (_BabylonStakingExtra["default"].constructFromObject(instance)) {
|
|
76
|
+
if (!!_BabylonStakingExtra["default"].constructFromObject(instance).toJSON) {
|
|
77
|
+
if (_BabylonStakingExtra["default"].constructFromObject(instance).toJSON()) {
|
|
78
|
+
this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
match++;
|
|
86
|
+
} catch (err) {
|
|
87
|
+
// json data failed to deserialize into BabylonStakingExtra
|
|
88
|
+
errorMessages.push("Failed to construct BabylonStakingExtra: " + err);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// if (match > 1) {
|
|
92
|
+
// throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Input: " + JSON.stringify(instance));
|
|
93
|
+
// } else
|
|
94
|
+
if (match === 0) {
|
|
95
|
+
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
96
|
+
// throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Details: " +
|
|
97
|
+
// errorMessages.join(", "));
|
|
98
|
+
return;
|
|
99
|
+
} else {// only 1 match
|
|
100
|
+
// the input is valid
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Constructs a <code>StakingsExtra</code> from a plain JavaScript object, optionally creating a new instance.
|
|
106
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
107
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
108
|
+
* @param {module:model/StakingsExtra} obj Optional instance to populate.
|
|
109
|
+
* @return {module:model/StakingsExtra} The populated <code>StakingsExtra</code> instance.
|
|
110
|
+
*/
|
|
111
|
+
return _createClass(StakingsExtra, [{
|
|
112
|
+
key: "getActualInstance",
|
|
113
|
+
value:
|
|
114
|
+
/**
|
|
115
|
+
* Gets the actual instance, which can be <code>BabylonStakingExtra</code>.
|
|
116
|
+
* @return {(module:model/BabylonStakingExtra)} The actual instance.
|
|
117
|
+
*/
|
|
118
|
+
function getActualInstance() {
|
|
119
|
+
return this.actualInstance;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Sets the actual instance, which can be <code>BabylonStakingExtra</code>.
|
|
124
|
+
* @param {(module:model/BabylonStakingExtra)} obj The actual instance.
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
127
|
+
key: "setActualInstance",
|
|
128
|
+
value: function setActualInstance(obj) {
|
|
129
|
+
this.actualInstance = StakingsExtra.constructFromObject(obj).getActualInstance();
|
|
130
|
+
}
|
|
131
|
+
}], [{
|
|
132
|
+
key: "constructFromObject",
|
|
133
|
+
value: function constructFromObject(data, obj) {
|
|
134
|
+
return new StakingsExtra(data);
|
|
135
|
+
}
|
|
136
|
+
}]);
|
|
137
|
+
}();
|
|
138
|
+
/**
|
|
139
|
+
* @member {module:model/StakingPoolType} pool_type
|
|
140
|
+
*/
|
|
141
|
+
_StakingsExtra = StakingsExtra;
|
|
142
|
+
/**
|
|
143
|
+
* Create an instance of StakingsExtra from a JSON string.
|
|
144
|
+
* @param {string} json_string JSON string.
|
|
145
|
+
* @return {module:model/StakingsExtra} An instance of StakingsExtra.
|
|
146
|
+
*/
|
|
147
|
+
_defineProperty(StakingsExtra, "fromJSON", function (json_string) {
|
|
148
|
+
return _StakingsExtra.constructFromObject(JSON.parse(json_string));
|
|
149
|
+
});
|
|
150
|
+
StakingsExtra.prototype['pool_type'] = undefined;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The Proof-of-Stake (PoS) chain.
|
|
154
|
+
* @member {String} pos_chain
|
|
155
|
+
*/
|
|
156
|
+
StakingsExtra.prototype['pos_chain'] = undefined;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The estimated time when the bitcoins will be unlocked, in Unix timestamp format, measured in milliseconds.
|
|
160
|
+
* @member {Number} unlock_timestamp
|
|
161
|
+
*/
|
|
162
|
+
StakingsExtra.prototype['unlock_timestamp'] = undefined;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The block height at which the bitcoins will be unlocked.
|
|
166
|
+
* @member {Number} unlock_block_height
|
|
167
|
+
*/
|
|
168
|
+
StakingsExtra.prototype['unlock_block_height'] = undefined;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The address receiving the staked bitcoins.
|
|
172
|
+
* @member {String} stake_address
|
|
173
|
+
*/
|
|
174
|
+
StakingsExtra.prototype['stake_address'] = undefined;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The address receiving the unlocked bitcoins.
|
|
178
|
+
* @member {String} unbond_address
|
|
179
|
+
*/
|
|
180
|
+
StakingsExtra.prototype['unbond_address'] = undefined;
|
|
181
|
+
StakingsExtra.OneOf = ["BabylonStakingExtra"];
|
|
182
|
+
var _default = exports["default"] = StakingsExtra;
|
|
@@ -14,7 +14,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
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); } /**
|
|
15
15
|
* Cobo Wallet as a Service 2.0
|
|
16
16
|
*
|
|
17
|
-
* Contact:
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
18
|
*
|
|
19
19
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
20
|
* https://openapi-generator.tech
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
var StakingsValidatorInfo = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
30
|
* Constructs a new <code>StakingsValidatorInfo</code>.
|
|
31
|
-
* The
|
|
31
|
+
* The information about the validator.
|
|
32
32
|
* @alias module:model/StakingsValidatorInfo
|
|
33
33
|
*/
|
|
34
34
|
function StakingsValidatorInfo() {
|
|
@@ -109,26 +109,31 @@ var StakingsValidatorInfo = /*#__PURE__*/function () {
|
|
|
109
109
|
}]);
|
|
110
110
|
}();
|
|
111
111
|
/**
|
|
112
|
+
* The URL of the validator's icon.
|
|
112
113
|
* @member {String} icon_url
|
|
113
114
|
*/
|
|
114
115
|
StakingsValidatorInfo.prototype['icon_url'] = undefined;
|
|
115
116
|
|
|
116
117
|
/**
|
|
118
|
+
* The validator's public key.
|
|
117
119
|
* @member {String} public_key
|
|
118
120
|
*/
|
|
119
121
|
StakingsValidatorInfo.prototype['public_key'] = undefined;
|
|
120
122
|
|
|
121
123
|
/**
|
|
124
|
+
* The validator's name.
|
|
122
125
|
* @member {String} name
|
|
123
126
|
*/
|
|
124
127
|
StakingsValidatorInfo.prototype['name'] = undefined;
|
|
125
128
|
|
|
126
129
|
/**
|
|
130
|
+
* The wallet address of the validator.
|
|
127
131
|
* @member {String} address
|
|
128
132
|
*/
|
|
129
133
|
StakingsValidatorInfo.prototype['address'] = undefined;
|
|
130
134
|
|
|
131
135
|
/**
|
|
136
|
+
* The commission rate of the validator.
|
|
132
137
|
* @member {String} commission_rate
|
|
133
138
|
*/
|
|
134
139
|
StakingsValidatorInfo.prototype['commission_rate'] = undefined;
|
|
@@ -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
|
package/dist/model/TSSGroups.js
CHANGED
|
@@ -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/dist/model/TSSRequest.js
CHANGED
|
@@ -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
|
|
@@ -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
|
|
@@ -22,7 +22,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
22
22
|
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); } /**
|
|
23
23
|
* Cobo Wallet as a Service 2.0
|
|
24
24
|
*
|
|
25
|
-
* Contact:
|
|
25
|
+
* Contact: help@cobo.com
|
|
26
26
|
*
|
|
27
27
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
28
28
|
* 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
|
|
@@ -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
|
package/dist/model/TokenInfo.js
CHANGED
|
@@ -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
|
|
@@ -98,6 +98,12 @@ var TokenInfo = /*#__PURE__*/function () {
|
|
|
98
98
|
if (data.hasOwnProperty('can_withdraw')) {
|
|
99
99
|
obj['can_withdraw'] = _ApiClient["default"].convertToType(data['can_withdraw'], 'Boolean');
|
|
100
100
|
}
|
|
101
|
+
if (data.hasOwnProperty('dust_threshold')) {
|
|
102
|
+
obj['dust_threshold'] = _ApiClient["default"].convertToType(data['dust_threshold'], 'String');
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('custodial_minimum_deposit_threshold')) {
|
|
105
|
+
obj['custodial_minimum_deposit_threshold'] = _ApiClient["default"].convertToType(data['custodial_minimum_deposit_threshold'], 'String');
|
|
106
|
+
}
|
|
101
107
|
}
|
|
102
108
|
return obj;
|
|
103
109
|
}
|
|
@@ -157,6 +163,14 @@ var TokenInfo = /*#__PURE__*/function () {
|
|
|
157
163
|
if (data['fee_token_id'] && !(typeof data['fee_token_id'] === 'string' || data['fee_token_id'] instanceof String)) {
|
|
158
164
|
throw new Error("Expected the field `fee_token_id` to be a primitive type in the JSON string but got " + data['fee_token_id']);
|
|
159
165
|
}
|
|
166
|
+
// ensure the json data is a string
|
|
167
|
+
if (data['dust_threshold'] && !(typeof data['dust_threshold'] === 'string' || data['dust_threshold'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `dust_threshold` to be a primitive type in the JSON string but got " + data['dust_threshold']);
|
|
169
|
+
}
|
|
170
|
+
// ensure the json data is a string
|
|
171
|
+
if (data['custodial_minimum_deposit_threshold'] && !(typeof data['custodial_minimum_deposit_threshold'] === 'string' || data['custodial_minimum_deposit_threshold'] instanceof String)) {
|
|
172
|
+
throw new Error("Expected the field `custodial_minimum_deposit_threshold` to be a primitive type in the JSON string but got " + data['custodial_minimum_deposit_threshold']);
|
|
173
|
+
}
|
|
160
174
|
return true;
|
|
161
175
|
}
|
|
162
176
|
}]);
|
|
@@ -228,4 +242,16 @@ TokenInfo.prototype['can_deposit'] = undefined;
|
|
|
228
242
|
* @member {Boolean} can_withdraw
|
|
229
243
|
*/
|
|
230
244
|
TokenInfo.prototype['can_withdraw'] = undefined;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* 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.
|
|
248
|
+
* @member {String} dust_threshold
|
|
249
|
+
*/
|
|
250
|
+
TokenInfo.prototype['dust_threshold'] = undefined;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* 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.
|
|
254
|
+
* @member {String} custodial_minimum_deposit_threshold
|
|
255
|
+
*/
|
|
256
|
+
TokenInfo.prototype['custodial_minimum_deposit_threshold'] = undefined;
|
|
231
257
|
var _default = exports["default"] = TokenInfo;
|
|
@@ -28,7 +28,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
28
28
|
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); } /**
|
|
29
29
|
* Cobo Wallet as a Service 2.0
|
|
30
30
|
*
|
|
31
|
-
* Contact:
|
|
31
|
+
* Contact: help@cobo.com
|
|
32
32
|
*
|
|
33
33
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
34
34
|
* https://openapi-generator.tech
|
|
@@ -14,7 +14,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
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); } /**
|
|
15
15
|
* Cobo Wallet as a Service 2.0
|
|
16
16
|
*
|
|
17
|
-
* Contact:
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
18
|
*
|
|
19
19
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
20
|
* https://openapi-generator.tech
|
|
@@ -14,7 +14,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
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); } /**
|
|
15
15
|
* Cobo Wallet as a Service 2.0
|
|
16
16
|
*
|
|
17
|
-
* Contact:
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
18
|
*
|
|
19
19
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
20
|
* 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
|
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var TransactionCustodialAssetWalletSource = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>TransactionCustodialAssetWalletSource</code>.
|
|
35
|
-
* Information about the transaction source type `Asset`.
|
|
35
|
+
* Information about the transaction source type `Asset`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
|
|
36
36
|
* @alias module:model/TransactionCustodialAssetWalletSource
|
|
37
37
|
* @param source_type {module:model/TransactionSourceType}
|
|
38
38
|
* @param wallet_id {String} The wallet ID.
|
|
@@ -20,7 +20,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
20
20
|
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); } /**
|
|
21
21
|
* Cobo Wallet as a Service 2.0
|
|
22
22
|
*
|
|
23
|
-
* Contact:
|
|
23
|
+
* Contact: help@cobo.com
|
|
24
24
|
*
|
|
25
25
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
26
|
* https://openapi-generator.tech
|
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
var TransactionDepositFromAddressSource = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TransactionDepositFromAddressSource</code>.
|
|
37
|
-
* Information about the transaction source type `DepositFromAddress`.
|
|
37
|
+
* Information about the transaction source type `DepositFromAddress`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
|
|
38
38
|
* @alias module:model/TransactionDepositFromAddressSource
|
|
39
39
|
* @param source_type {module:model/TransactionSourceType}
|
|
40
40
|
* @param addresses {Array.<String>} A list of addresses.
|