@cobo/cobo-waas2 1.2.1 → 1.4.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 +44 -11
- package/dist/ApiClient.js +2 -2
- package/dist/PreRequestScript.js +3 -3
- package/dist/api/DevelopersWebhooksApi.js +1 -1
- package/dist/api/OAuthApi.js +15 -15
- package/dist/api/StakingsApi.js +538 -0
- package/dist/api/TransactionsApi.js +113 -11
- package/dist/api/WalletsApi.js +3 -62
- package/dist/api/WalletsExchangeWalletApi.js +5 -5
- package/dist/api/WalletsMPCWalletsApi.js +3 -3
- package/dist/index.js +161 -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/AddressBook.js +202 -0
- package/dist/model/AddressEncoding.js +1 -1
- package/dist/model/AddressInfo.js +40 -1
- package/dist/model/AddressTransferDestination.js +4 -4
- 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 +1 -1
- package/dist/model/CoboSafeDelegateType.js +1 -1
- package/dist/model/ContractCallDestination.js +3 -3
- package/dist/model/ContractCallDestinationType.js +1 -1
- package/dist/model/ContractCallParams.js +1 -1
- package/dist/model/ContractCallSource.js +1 -7
- 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 +3 -3
- 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 +1 -1
- package/dist/model/CreateStakeActivity.js +5 -5
- package/dist/model/CreateStakeActivity201Response.js +123 -0
- package/dist/model/CreateStakeActivityExtra.js +14 -82
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +5 -5
- package/dist/model/GetToken4XXResponse.js +1 -1
- package/dist/model/KeyShareHolder.js +2 -2
- 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 +3 -3
- package/dist/model/MessageSignDestinationType.js +1 -1
- package/dist/model/MessageSignParams.js +2 -2
- package/dist/model/MessageSignSource.js +1 -1
- package/dist/model/MessageSignSourceType.js +1 -1
- package/dist/model/MpcContractCallSource.js +1 -10
- 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 +35 -46
- package/dist/model/PoolSummary.js +14 -14
- package/dist/model/RawMessageSignDestination.js +122 -0
- package/dist/model/RefreshToken200Response.js +5 -5
- package/dist/model/RefreshTokenRequest.js +3 -3
- 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 +1 -1
- 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 +24 -68
- 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 +6 -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 +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/model/TransactionResultType.js +1 -1
- package/dist/model/TransactionSignatureResult.js +2 -2
- package/dist/model/TransactionSigner.js +1 -1
- package/dist/model/TransactionSmartContractSafeWalletSource.js +2 -2
- package/dist/model/TransactionSource.js +1 -1
- package/dist/model/TransactionSourceType.js +1 -1
- package/dist/model/TransactionStatus.js +1 -6
- package/dist/model/TransactionSubStatus.js +41 -6
- 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 +4 -4
- package/dist/model/TransferDestinationType.js +1 -1
- package/dist/model/TransferParams.js +1 -1
- package/dist/model/TransferSource.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/AddressBook.md +16 -0
- package/docs/AddressInfo.md +3 -0
- package/docs/AddressTransferDestination.md +2 -2
- 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/ContractCallSource.md +0 -1
- package/docs/CreateKeyShareHolder.md +2 -2
- 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/GetToken200Response.md +4 -4
- package/docs/KeyShareHolder.md +1 -1
- package/docs/ListStakingActivities200Response.md +10 -0
- package/docs/ListStakingPools200Response.md +10 -0
- package/docs/ListStakings200Response.md +10 -0
- package/docs/MessageSignParams.md +1 -1
- package/docs/MpcContractCallSource.md +0 -1
- package/docs/MpcStakeSource.md +11 -0
- package/docs/OAuthApi.md +9 -9
- 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/RefreshToken200Response.md +4 -4
- package/docs/RefreshTokenRequest.md +2 -2
- 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/TSSRequestStatus.md +2 -0
- 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/TransactionStatus.md +0 -2
- package/docs/TransactionSubStatus.md +16 -2
- 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 +111 -3
- package/docs/TransferDestination.md +3 -3
- package/docs/WalletBalanceSnapshot.md +10 -0
- package/docs/WalletBalanceSnapshotRecord.md +13 -0
- package/docs/WalletsApi.md +1 -56
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,256 @@
|
|
|
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 _ActivityType = _interopRequireDefault(require("./ActivityType"));
|
|
9
|
+
var _CreateStakeActivityExtra = _interopRequireDefault(require("./CreateStakeActivityExtra"));
|
|
10
|
+
var _EstimateStakeFee = _interopRequireDefault(require("./EstimateStakeFee"));
|
|
11
|
+
var _EstimateUnstakeFee = _interopRequireDefault(require("./EstimateUnstakeFee"));
|
|
12
|
+
var _EstimateWithdrawFee = _interopRequireDefault(require("./EstimateWithdrawFee"));
|
|
13
|
+
var _StakingSource = _interopRequireDefault(require("./StakingSource"));
|
|
14
|
+
var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
|
|
15
|
+
var _GetStakingEstimationFeeRequest;
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
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); }
|
|
18
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
19
|
+
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); } }
|
|
20
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
21
|
+
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; }
|
|
22
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
|
+
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); } /**
|
|
24
|
+
* Cobo Wallet as a Service 2.0
|
|
25
|
+
*
|
|
26
|
+
* Contact: help@cobo.com
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
29
|
+
* https://openapi-generator.tech
|
|
30
|
+
* Do not edit the class manually.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* The GetStakingEstimationFeeRequest model module.
|
|
35
|
+
* @module model/GetStakingEstimationFeeRequest
|
|
36
|
+
*/
|
|
37
|
+
var GetStakingEstimationFeeRequest = /*#__PURE__*/function () {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new <code>GetStakingEstimationFeeRequest</code>.
|
|
40
|
+
* @alias module:model/GetStakingEstimationFeeRequest
|
|
41
|
+
* @param {(module:model/EstimateStakeFee|module:model/EstimateUnstakeFee|module:model/EstimateWithdrawFee)} instance The actual instance to initialize GetStakingEstimationFeeRequest.
|
|
42
|
+
*/
|
|
43
|
+
function GetStakingEstimationFeeRequest() {
|
|
44
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
45
|
+
_classCallCheck(this, GetStakingEstimationFeeRequest);
|
|
46
|
+
/**
|
|
47
|
+
* Returns the JSON representation of the actual instance.
|
|
48
|
+
* @return {string}
|
|
49
|
+
*/
|
|
50
|
+
_defineProperty(this, "toJSON", function () {
|
|
51
|
+
return this.getActualInstance();
|
|
52
|
+
});
|
|
53
|
+
if (instance === null) {
|
|
54
|
+
this.actualInstance = null;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
var match = 0;
|
|
58
|
+
var errorMessages = [];
|
|
59
|
+
var discriminatorValue = instance["activity_type"];
|
|
60
|
+
if (discriminatorValue) {
|
|
61
|
+
switch (discriminatorValue) {
|
|
62
|
+
case "Stake":
|
|
63
|
+
this.actualInstance = _EstimateStakeFee["default"].constructFromObject(instance);
|
|
64
|
+
match++;
|
|
65
|
+
break;
|
|
66
|
+
case "Unstake":
|
|
67
|
+
this.actualInstance = _EstimateUnstakeFee["default"].constructFromObject(instance);
|
|
68
|
+
match++;
|
|
69
|
+
break;
|
|
70
|
+
case "Withdraw":
|
|
71
|
+
this.actualInstance = _EstimateWithdrawFee["default"].constructFromObject(instance);
|
|
72
|
+
match++;
|
|
73
|
+
break;
|
|
74
|
+
default:
|
|
75
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
if (instance instanceof _EstimateStakeFee["default"]) {
|
|
82
|
+
this.actualInstance = instance;
|
|
83
|
+
} else if (!!_EstimateStakeFee["default"].validateJSON && _EstimateStakeFee["default"].validateJSON(instance)) {
|
|
84
|
+
// plain JS object
|
|
85
|
+
// create EstimateStakeFee from JS object
|
|
86
|
+
this.actualInstance = _EstimateStakeFee["default"].constructFromObject(instance);
|
|
87
|
+
} else {
|
|
88
|
+
if (_EstimateStakeFee["default"].constructFromObject(instance)) {
|
|
89
|
+
if (!!_EstimateStakeFee["default"].constructFromObject(instance).toJSON) {
|
|
90
|
+
if (_EstimateStakeFee["default"].constructFromObject(instance).toJSON()) {
|
|
91
|
+
this.actualInstance = _EstimateStakeFee["default"].constructFromObject(instance);
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
this.actualInstance = _EstimateStakeFee["default"].constructFromObject(instance);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
match++;
|
|
99
|
+
} catch (err) {
|
|
100
|
+
// json data failed to deserialize into EstimateStakeFee
|
|
101
|
+
errorMessages.push("Failed to construct EstimateStakeFee: " + err);
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
if (instance instanceof _EstimateUnstakeFee["default"]) {
|
|
105
|
+
this.actualInstance = instance;
|
|
106
|
+
} else if (!!_EstimateUnstakeFee["default"].validateJSON && _EstimateUnstakeFee["default"].validateJSON(instance)) {
|
|
107
|
+
// plain JS object
|
|
108
|
+
// create EstimateUnstakeFee from JS object
|
|
109
|
+
this.actualInstance = _EstimateUnstakeFee["default"].constructFromObject(instance);
|
|
110
|
+
} else {
|
|
111
|
+
if (_EstimateUnstakeFee["default"].constructFromObject(instance)) {
|
|
112
|
+
if (!!_EstimateUnstakeFee["default"].constructFromObject(instance).toJSON) {
|
|
113
|
+
if (_EstimateUnstakeFee["default"].constructFromObject(instance).toJSON()) {
|
|
114
|
+
this.actualInstance = _EstimateUnstakeFee["default"].constructFromObject(instance);
|
|
115
|
+
}
|
|
116
|
+
} else {
|
|
117
|
+
this.actualInstance = _EstimateUnstakeFee["default"].constructFromObject(instance);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
match++;
|
|
122
|
+
} catch (err) {
|
|
123
|
+
// json data failed to deserialize into EstimateUnstakeFee
|
|
124
|
+
errorMessages.push("Failed to construct EstimateUnstakeFee: " + err);
|
|
125
|
+
}
|
|
126
|
+
try {
|
|
127
|
+
if (instance instanceof _EstimateWithdrawFee["default"]) {
|
|
128
|
+
this.actualInstance = instance;
|
|
129
|
+
} else if (!!_EstimateWithdrawFee["default"].validateJSON && _EstimateWithdrawFee["default"].validateJSON(instance)) {
|
|
130
|
+
// plain JS object
|
|
131
|
+
// create EstimateWithdrawFee from JS object
|
|
132
|
+
this.actualInstance = _EstimateWithdrawFee["default"].constructFromObject(instance);
|
|
133
|
+
} else {
|
|
134
|
+
if (_EstimateWithdrawFee["default"].constructFromObject(instance)) {
|
|
135
|
+
if (!!_EstimateWithdrawFee["default"].constructFromObject(instance).toJSON) {
|
|
136
|
+
if (_EstimateWithdrawFee["default"].constructFromObject(instance).toJSON()) {
|
|
137
|
+
this.actualInstance = _EstimateWithdrawFee["default"].constructFromObject(instance);
|
|
138
|
+
}
|
|
139
|
+
} else {
|
|
140
|
+
this.actualInstance = _EstimateWithdrawFee["default"].constructFromObject(instance);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
match++;
|
|
145
|
+
} catch (err) {
|
|
146
|
+
// json data failed to deserialize into EstimateWithdrawFee
|
|
147
|
+
errorMessages.push("Failed to construct EstimateWithdrawFee: " + err);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// if (match > 1) {
|
|
151
|
+
// throw new Error("Multiple matches found constructing `GetStakingEstimationFeeRequest` with oneOf schemas EstimateStakeFee, EstimateUnstakeFee, EstimateWithdrawFee. Input: " + JSON.stringify(instance));
|
|
152
|
+
// } else
|
|
153
|
+
if (match === 0) {
|
|
154
|
+
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
155
|
+
// throw new Error("No match found constructing `GetStakingEstimationFeeRequest` with oneOf schemas EstimateStakeFee, EstimateUnstakeFee, EstimateWithdrawFee. Details: " +
|
|
156
|
+
// errorMessages.join(", "));
|
|
157
|
+
return;
|
|
158
|
+
} else {// only 1 match
|
|
159
|
+
// the input is valid
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Constructs a <code>GetStakingEstimationFeeRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
165
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
166
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
167
|
+
* @param {module:model/GetStakingEstimationFeeRequest} obj Optional instance to populate.
|
|
168
|
+
* @return {module:model/GetStakingEstimationFeeRequest} The populated <code>GetStakingEstimationFeeRequest</code> instance.
|
|
169
|
+
*/
|
|
170
|
+
return _createClass(GetStakingEstimationFeeRequest, [{
|
|
171
|
+
key: "getActualInstance",
|
|
172
|
+
value:
|
|
173
|
+
/**
|
|
174
|
+
* Gets the actual instance, which can be <code>EstimateStakeFee</code>, <code>EstimateUnstakeFee</code>, <code>EstimateWithdrawFee</code>.
|
|
175
|
+
* @return {(module:model/EstimateStakeFee|module:model/EstimateUnstakeFee|module:model/EstimateWithdrawFee)} The actual instance.
|
|
176
|
+
*/
|
|
177
|
+
function getActualInstance() {
|
|
178
|
+
return this.actualInstance;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Sets the actual instance, which can be <code>EstimateStakeFee</code>, <code>EstimateUnstakeFee</code>, <code>EstimateWithdrawFee</code>.
|
|
183
|
+
* @param {(module:model/EstimateStakeFee|module:model/EstimateUnstakeFee|module:model/EstimateWithdrawFee)} obj The actual instance.
|
|
184
|
+
*/
|
|
185
|
+
}, {
|
|
186
|
+
key: "setActualInstance",
|
|
187
|
+
value: function setActualInstance(obj) {
|
|
188
|
+
this.actualInstance = GetStakingEstimationFeeRequest.constructFromObject(obj).getActualInstance();
|
|
189
|
+
}
|
|
190
|
+
}], [{
|
|
191
|
+
key: "constructFromObject",
|
|
192
|
+
value: function constructFromObject(data, obj) {
|
|
193
|
+
return new GetStakingEstimationFeeRequest(data);
|
|
194
|
+
}
|
|
195
|
+
}]);
|
|
196
|
+
}();
|
|
197
|
+
/**
|
|
198
|
+
* @member {module:model/ActivityType} activity_type
|
|
199
|
+
*/
|
|
200
|
+
_GetStakingEstimationFeeRequest = GetStakingEstimationFeeRequest;
|
|
201
|
+
/**
|
|
202
|
+
* Create an instance of GetStakingEstimationFeeRequest from a JSON string.
|
|
203
|
+
* @param {string} json_string JSON string.
|
|
204
|
+
* @return {module:model/GetStakingEstimationFeeRequest} An instance of GetStakingEstimationFeeRequest.
|
|
205
|
+
*/
|
|
206
|
+
_defineProperty(GetStakingEstimationFeeRequest, "fromJSON", function (json_string) {
|
|
207
|
+
return _GetStakingEstimationFeeRequest.constructFromObject(JSON.parse(json_string));
|
|
208
|
+
});
|
|
209
|
+
GetStakingEstimationFeeRequest.prototype['activity_type'] = undefined;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization.
|
|
213
|
+
* @member {String} request_id
|
|
214
|
+
*/
|
|
215
|
+
GetStakingEstimationFeeRequest.prototype['request_id'] = undefined;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @member {module:model/StakingSource} source
|
|
219
|
+
*/
|
|
220
|
+
GetStakingEstimationFeeRequest.prototype['source'] = undefined;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The ID of the staking pool.
|
|
224
|
+
* @member {String} pool_id
|
|
225
|
+
*/
|
|
226
|
+
GetStakingEstimationFeeRequest.prototype['pool_id'] = undefined;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* The amount to withdraw.
|
|
230
|
+
* @member {String} amount
|
|
231
|
+
*/
|
|
232
|
+
GetStakingEstimationFeeRequest.prototype['amount'] = undefined;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @member {module:model/TransactionRequestFee} fee
|
|
236
|
+
*/
|
|
237
|
+
GetStakingEstimationFeeRequest.prototype['fee'] = undefined;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @member {module:model/CreateStakeActivityExtra} extra
|
|
241
|
+
*/
|
|
242
|
+
GetStakingEstimationFeeRequest.prototype['extra'] = undefined;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* The ID of the corresponding staking position.
|
|
246
|
+
* @member {String} staking_id
|
|
247
|
+
*/
|
|
248
|
+
GetStakingEstimationFeeRequest.prototype['staking_id'] = undefined;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The withdrawal address.
|
|
252
|
+
* @member {String} address
|
|
253
|
+
*/
|
|
254
|
+
GetStakingEstimationFeeRequest.prototype['address'] = undefined;
|
|
255
|
+
GetStakingEstimationFeeRequest.OneOf = ["EstimateStakeFee", "EstimateUnstakeFee", "EstimateWithdrawFee"];
|
|
256
|
+
var _default = exports["default"] = GetStakingEstimationFeeRequest;
|
|
@@ -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
|
|
@@ -104,7 +104,7 @@ var GetToken200Response = /*#__PURE__*/function () {
|
|
|
104
104
|
}]);
|
|
105
105
|
}();
|
|
106
106
|
/**
|
|
107
|
-
* The
|
|
107
|
+
* The Org Access Token.
|
|
108
108
|
* @member {String} access_token
|
|
109
109
|
*/
|
|
110
110
|
GetToken200Response.prototype['access_token'] = undefined;
|
|
@@ -116,19 +116,19 @@ GetToken200Response.prototype['access_token'] = undefined;
|
|
|
116
116
|
GetToken200Response.prototype['token_type'] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* The scope of the
|
|
119
|
+
* The scope of the Org Access Token to limit the app's access to the organization's resources. **Note**: Currently this property value is empty. The scope of the Org Access Token is based on the permissions granted when the app user installs the app.
|
|
120
120
|
* @member {String} scope
|
|
121
121
|
*/
|
|
122
122
|
GetToken200Response.prototype['scope'] = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* The time in seconds in which the
|
|
125
|
+
* The time in seconds in which the Org Access Token expires.
|
|
126
126
|
* @member {Number} expires_in
|
|
127
127
|
*/
|
|
128
128
|
GetToken200Response.prototype['expires_in'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* The
|
|
131
|
+
* The Refresh Token, used to obtain a new Org Access Token when the current Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change.
|
|
132
132
|
* @member {String} refresh_token
|
|
133
133
|
*/
|
|
134
134
|
GetToken200Response.prototype['refresh_token'] = undefined;
|
|
@@ -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
|
|
@@ -16,7 +16,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
16
16
|
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); } /**
|
|
17
17
|
* Cobo Wallet as a Service 2.0
|
|
18
18
|
*
|
|
19
|
-
* Contact:
|
|
19
|
+
* Contact: help@cobo.com
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
22
|
* https://openapi-generator.tech
|
|
@@ -132,7 +132,7 @@ KeyShareHolder.prototype['tss_node_id'] = undefined;
|
|
|
132
132
|
KeyShareHolder.prototype['online'] = undefined;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* Whether the key share holder
|
|
135
|
+
* Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer.
|
|
136
136
|
* @member {Boolean} signer
|
|
137
137
|
*/
|
|
138
138
|
KeyShareHolder.prototype['signer'] = undefined;
|
|
@@ -21,7 +21,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
21
21
|
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); } /**
|
|
22
22
|
* Cobo Wallet as a Service 2.0
|
|
23
23
|
*
|
|
24
|
-
* Contact:
|
|
24
|
+
* Contact: help@cobo.com
|
|
25
25
|
*
|
|
26
26
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
27
|
* 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
|
|
@@ -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
|
|
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
19
|
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
20
|
* Cobo Wallet as a Service 2.0
|
|
21
21
|
*
|
|
22
|
-
* Contact:
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
23
|
*
|
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
25
|
* https://openapi-generator.tech
|
|
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
19
|
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
20
|
* Cobo Wallet as a Service 2.0
|
|
21
21
|
*
|
|
22
|
-
* Contact:
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
23
|
*
|
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
25
|
* 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
|
|
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
19
|
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
20
|
* Cobo Wallet as a Service 2.0
|
|
21
21
|
*
|
|
22
|
-
* Contact:
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
23
|
*
|
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
25
|
* https://openapi-generator.tech
|
|
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
19
|
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
20
|
* Cobo Wallet as a Service 2.0
|
|
21
21
|
*
|
|
22
|
-
* Contact:
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
23
|
*
|
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
25
|
* https://openapi-generator.tech
|
|
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
19
|
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
20
|
* Cobo Wallet as a Service 2.0
|
|
21
21
|
*
|
|
22
|
-
* Contact:
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
23
|
*
|
|
24
24
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
25
|
* https://openapi-generator.tech
|
|
@@ -0,0 +1,123 @@
|
|
|
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 _Activity = _interopRequireDefault(require("./Activity"));
|
|
9
|
+
var _Pagination = _interopRequireDefault(require("./Pagination"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
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
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The ListStakingActivities200Response model module.
|
|
31
|
+
* @module model/ListStakingActivities200Response
|
|
32
|
+
*/
|
|
33
|
+
var ListStakingActivities200Response = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>ListStakingActivities200Response</code>.
|
|
36
|
+
* @alias module:model/ListStakingActivities200Response
|
|
37
|
+
*/
|
|
38
|
+
function ListStakingActivities200Response() {
|
|
39
|
+
_classCallCheck(this, ListStakingActivities200Response);
|
|
40
|
+
ListStakingActivities200Response.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(ListStakingActivities200Response, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj) {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a <code>ListStakingActivities200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
+
* @param {module:model/ListStakingActivities200Response} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ListStakingActivities200Response} The populated <code>ListStakingActivities200Response</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "constructFromObject",
|
|
61
|
+
value: function constructFromObject(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new ListStakingActivities200Response();
|
|
64
|
+
if (data.hasOwnProperty('data')) {
|
|
65
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], [_Activity["default"]]);
|
|
66
|
+
}
|
|
67
|
+
if (data.hasOwnProperty('pagination')) {
|
|
68
|
+
obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Validates the JSON data with respect to <code>ListStakingActivities200Response</code>.
|
|
76
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
77
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListStakingActivities200Response</code>.
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "validateJSON",
|
|
81
|
+
value: function validateJSON(data) {
|
|
82
|
+
if (data['data']) {
|
|
83
|
+
// data not null
|
|
84
|
+
// ensure the json data is an array
|
|
85
|
+
if (!Array.isArray(data['data'])) {
|
|
86
|
+
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
|
|
87
|
+
}
|
|
88
|
+
// validate the optional field `data` (array)
|
|
89
|
+
var _iterator = _createForOfIteratorHelper(data['data']),
|
|
90
|
+
_step;
|
|
91
|
+
try {
|
|
92
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
93
|
+
var item = _step.value;
|
|
94
|
+
_Activity["default"].validateJSON(item);
|
|
95
|
+
}
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
;
|
|
102
|
+
}
|
|
103
|
+
// validate the optional field `pagination`
|
|
104
|
+
if (data['pagination']) {
|
|
105
|
+
// data not null
|
|
106
|
+
if (!!_Pagination["default"].validateJSON) {
|
|
107
|
+
_Pagination["default"].validateJSON(data['pagination']);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
}]);
|
|
113
|
+
}();
|
|
114
|
+
/**
|
|
115
|
+
* @member {Array.<module:model/Activity>} data
|
|
116
|
+
*/
|
|
117
|
+
ListStakingActivities200Response.prototype['data'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @member {module:model/Pagination} pagination
|
|
121
|
+
*/
|
|
122
|
+
ListStakingActivities200Response.prototype['pagination'] = undefined;
|
|
123
|
+
var _default = exports["default"] = ListStakingActivities200Response;
|