@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
|
@@ -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
|
|
@@ -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
|
|
@@ -101,6 +101,12 @@ var TransactionTokeApproval = /*#__PURE__*/function () {
|
|
|
101
101
|
if (data.hasOwnProperty('can_withdraw')) {
|
|
102
102
|
obj['can_withdraw'] = _ApiClient["default"].convertToType(data['can_withdraw'], 'Boolean');
|
|
103
103
|
}
|
|
104
|
+
if (data.hasOwnProperty('dust_threshold')) {
|
|
105
|
+
obj['dust_threshold'] = _ApiClient["default"].convertToType(data['dust_threshold'], 'String');
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('custodial_minimum_deposit_threshold')) {
|
|
108
|
+
obj['custodial_minimum_deposit_threshold'] = _ApiClient["default"].convertToType(data['custodial_minimum_deposit_threshold'], 'String');
|
|
109
|
+
}
|
|
104
110
|
if (data.hasOwnProperty('amount')) {
|
|
105
111
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
|
|
106
112
|
}
|
|
@@ -167,6 +173,14 @@ var TransactionTokeApproval = /*#__PURE__*/function () {
|
|
|
167
173
|
throw new Error("Expected the field `fee_token_id` to be a primitive type in the JSON string but got " + data['fee_token_id']);
|
|
168
174
|
}
|
|
169
175
|
// ensure the json data is a string
|
|
176
|
+
if (data['dust_threshold'] && !(typeof data['dust_threshold'] === 'string' || data['dust_threshold'] instanceof String)) {
|
|
177
|
+
throw new Error("Expected the field `dust_threshold` to be a primitive type in the JSON string but got " + data['dust_threshold']);
|
|
178
|
+
}
|
|
179
|
+
// ensure the json data is a string
|
|
180
|
+
if (data['custodial_minimum_deposit_threshold'] && !(typeof data['custodial_minimum_deposit_threshold'] === 'string' || data['custodial_minimum_deposit_threshold'] instanceof String)) {
|
|
181
|
+
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']);
|
|
182
|
+
}
|
|
183
|
+
// ensure the json data is a string
|
|
170
184
|
if (data['spender'] && !(typeof data['spender'] === 'string' || data['spender'] instanceof String)) {
|
|
171
185
|
throw new Error("Expected the field `spender` to be a primitive type in the JSON string but got " + data['spender']);
|
|
172
186
|
}
|
|
@@ -242,6 +256,18 @@ TransactionTokeApproval.prototype['can_deposit'] = undefined;
|
|
|
242
256
|
*/
|
|
243
257
|
TransactionTokeApproval.prototype['can_withdraw'] = undefined;
|
|
244
258
|
|
|
259
|
+
/**
|
|
260
|
+
* 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.
|
|
261
|
+
* @member {String} dust_threshold
|
|
262
|
+
*/
|
|
263
|
+
TransactionTokeApproval.prototype['dust_threshold'] = undefined;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* 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.
|
|
267
|
+
* @member {String} custodial_minimum_deposit_threshold
|
|
268
|
+
*/
|
|
269
|
+
TransactionTokeApproval.prototype['custodial_minimum_deposit_threshold'] = undefined;
|
|
270
|
+
|
|
245
271
|
/**
|
|
246
272
|
* Transaction value (Note that this is an absolute value. If you trade 1.5 BTC, then the value is 1.5)
|
|
247
273
|
* @member {Number} amount
|
|
@@ -310,4 +336,14 @@ _TokenInfo["default"].prototype['can_deposit'] = undefined;
|
|
|
310
336
|
* @member {Boolean} can_withdraw
|
|
311
337
|
*/
|
|
312
338
|
_TokenInfo["default"].prototype['can_withdraw'] = undefined;
|
|
339
|
+
/**
|
|
340
|
+
* 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.
|
|
341
|
+
* @member {String} dust_threshold
|
|
342
|
+
*/
|
|
343
|
+
_TokenInfo["default"].prototype['dust_threshold'] = undefined;
|
|
344
|
+
/**
|
|
345
|
+
* 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.
|
|
346
|
+
* @member {String} custodial_minimum_deposit_threshold
|
|
347
|
+
*/
|
|
348
|
+
_TokenInfo["default"].prototype['custodial_minimum_deposit_threshold'] = undefined;
|
|
313
349
|
var _default = exports["default"] = TransactionTokeApproval;
|
|
@@ -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
|
|
@@ -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 TransactionTransferToAddressDestination = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TransactionTransferToAddressDestination</code>.
|
|
37
|
-
* Information about the transaction destination type `Address`.
|
|
37
|
+
* Information about the transaction destination type `Address`. 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 destinations.
|
|
38
38
|
* @alias module:model/TransactionTransferToAddressDestination
|
|
39
39
|
* @param destination_type {module:model/TransactionDestinationType}
|
|
40
40
|
*/
|
|
@@ -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
|
|
@@ -106,7 +106,7 @@ TransactionTransferToAddressDestinationAccountOutput.prototype['address'] = unde
|
|
|
106
106
|
TransactionTransferToAddressDestinationAccountOutput.prototype['memo'] = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* The transfer amount. For example, if you trade 1.5
|
|
109
|
+
* The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
|
|
110
110
|
* @member {String} amount
|
|
111
111
|
*/
|
|
112
112
|
TransactionTransferToAddressDestinationAccountOutput.prototype['amount'] = undefined;
|
|
@@ -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
|
|
@@ -100,7 +100,7 @@ var TransactionTransferToAddressDestinationUtxoOutputsInner = /*#__PURE__*/funct
|
|
|
100
100
|
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['address'] = undefined;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* The transfer amount. For example, if you trade 1.5
|
|
103
|
+
* The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
|
|
104
104
|
* @member {String} amount
|
|
105
105
|
*/
|
|
106
106
|
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['amount'] = undefined;
|
|
@@ -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
|
|
@@ -33,11 +33,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionTransferToWalletDestination = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionTransferToWalletDestination</code>.
|
|
36
|
-
* Information about the transaction destination type `ExchangeWallet`.
|
|
36
|
+
* Information about the transaction destination type `ExchangeWallet`. 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 destinations.
|
|
37
37
|
* @alias module:model/TransactionTransferToWalletDestination
|
|
38
38
|
* @param destination_type {module:model/TransactionDestinationType}
|
|
39
39
|
* @param wallet_id {String} The wallet ID.
|
|
40
|
-
* @param amount {String} The transfer amount. For example, if you trade 1.5
|
|
40
|
+
* @param amount {String} The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
|
|
41
41
|
*/
|
|
42
42
|
function TransactionTransferToWalletDestination(destination_type, wallet_id, amount) {
|
|
43
43
|
_classCallCheck(this, TransactionTransferToWalletDestination);
|
|
@@ -152,7 +152,7 @@ TransactionTransferToWalletDestination.prototype['trading_account_type'] = undef
|
|
|
152
152
|
TransactionTransferToWalletDestination.prototype['exchange_id'] = undefined;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* The transfer amount. For example, if you trade 1.5
|
|
155
|
+
* The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
|
|
156
156
|
* @member {String} amount
|
|
157
157
|
*/
|
|
158
158
|
TransactionTransferToWalletDestination.prototype['amount'] = undefined;
|
|
@@ -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
|
|
@@ -55,6 +55,16 @@ var TransactionType = exports["default"] = /*#__PURE__*/function () {
|
|
|
55
55
|
* @const
|
|
56
56
|
*/
|
|
57
57
|
_defineProperty(this, "ExternalSafeTx", "ExternalSafeTx");
|
|
58
|
+
/**
|
|
59
|
+
* value: "Stake"
|
|
60
|
+
* @const
|
|
61
|
+
*/
|
|
62
|
+
_defineProperty(this, "Stake", "Stake");
|
|
63
|
+
/**
|
|
64
|
+
* value: "Unstake"
|
|
65
|
+
* @const
|
|
66
|
+
*/
|
|
67
|
+
_defineProperty(this, "Unstake", "Unstake");
|
|
58
68
|
/**
|
|
59
69
|
* value: "unknown_default_open_api"
|
|
60
70
|
* @const
|
|
@@ -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
|
|
@@ -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
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionUtxoFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionUtxoFee</code>.
|
|
36
|
-
* The transaction fee actually charged by the chain that uses the UTXO fee model, such as Bitcoin.
|
|
36
|
+
* The transaction fee actually charged by the chain that uses the UTXO fee model, such as Bitcoin. The transaction fee is calculated by multiplying the fee rate by the transaction size. This can be expressed as: Transaction fee = fee rate * transaction size. Switch between the tabs to display the properties for different transaction fee models.
|
|
37
37
|
* @alias module:model/TransactionUtxoFee
|
|
38
38
|
* @implements module:model/UtxoFeeBasePrice
|
|
39
39
|
* @param fee_type {module:model/FeeType}
|
|
@@ -30,7 +30,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
30
30
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
31
31
|
* Cobo Wallet as a Service 2.0
|
|
32
32
|
*
|
|
33
|
-
* Contact:
|
|
33
|
+
* Contact: help@cobo.com
|
|
34
34
|
*
|
|
35
35
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
36
36
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
@@ -54,6 +54,23 @@ var TransferDestination = /*#__PURE__*/function () {
|
|
|
54
54
|
}
|
|
55
55
|
var match = 0;
|
|
56
56
|
var errorMessages = [];
|
|
57
|
+
var discriminatorValue = instance["destination_type"];
|
|
58
|
+
if (discriminatorValue) {
|
|
59
|
+
switch (discriminatorValue) {
|
|
60
|
+
case "Address":
|
|
61
|
+
this.actualInstance = _AddressTransferDestination["default"].constructFromObject(instance);
|
|
62
|
+
match++;
|
|
63
|
+
break;
|
|
64
|
+
case "ExchangeWallet":
|
|
65
|
+
this.actualInstance = _ExchangeTransferDestination["default"].constructFromObject(instance);
|
|
66
|
+
match++;
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
57
74
|
try {
|
|
58
75
|
if (instance instanceof _AddressTransferDestination["default"]) {
|
|
59
76
|
this.actualInstance = instance;
|
|
@@ -61,8 +78,16 @@ var TransferDestination = /*#__PURE__*/function () {
|
|
|
61
78
|
// plain JS object
|
|
62
79
|
// create AddressTransferDestination from JS object
|
|
63
80
|
this.actualInstance = _AddressTransferDestination["default"].constructFromObject(instance);
|
|
64
|
-
} else
|
|
65
|
-
|
|
81
|
+
} else {
|
|
82
|
+
if (_AddressTransferDestination["default"].constructFromObject(instance)) {
|
|
83
|
+
if (!!_AddressTransferDestination["default"].constructFromObject(instance).toJSON) {
|
|
84
|
+
if (_AddressTransferDestination["default"].constructFromObject(instance).toJSON()) {
|
|
85
|
+
this.actualInstance = _AddressTransferDestination["default"].constructFromObject(instance);
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
this.actualInstance = _AddressTransferDestination["default"].constructFromObject(instance);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
66
91
|
}
|
|
67
92
|
match++;
|
|
68
93
|
} catch (err) {
|
|
@@ -76,8 +101,16 @@ var TransferDestination = /*#__PURE__*/function () {
|
|
|
76
101
|
// plain JS object
|
|
77
102
|
// create ExchangeTransferDestination from JS object
|
|
78
103
|
this.actualInstance = _ExchangeTransferDestination["default"].constructFromObject(instance);
|
|
79
|
-
} else
|
|
80
|
-
|
|
104
|
+
} else {
|
|
105
|
+
if (_ExchangeTransferDestination["default"].constructFromObject(instance)) {
|
|
106
|
+
if (!!_ExchangeTransferDestination["default"].constructFromObject(instance).toJSON) {
|
|
107
|
+
if (_ExchangeTransferDestination["default"].constructFromObject(instance).toJSON()) {
|
|
108
|
+
this.actualInstance = _ExchangeTransferDestination["default"].constructFromObject(instance);
|
|
109
|
+
}
|
|
110
|
+
} else {
|
|
111
|
+
this.actualInstance = _ExchangeTransferDestination["default"].constructFromObject(instance);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
81
114
|
}
|
|
82
115
|
match++;
|
|
83
116
|
} catch (err) {
|
|
@@ -187,7 +220,7 @@ TransferDestination.prototype['wallet_id'] = undefined;
|
|
|
187
220
|
TransferDestination.prototype['trading_account_type'] = undefined;
|
|
188
221
|
|
|
189
222
|
/**
|
|
190
|
-
* The transfer amount. For example, if you trade 1.5
|
|
223
|
+
* The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
|
|
191
224
|
* @member {String} amount
|
|
192
225
|
*/
|
|
193
226
|
TransferDestination.prototype['amount'] = undefined;
|
|
@@ -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
|
|
@@ -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
|
|
@@ -23,7 +23,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
23
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
24
|
* Cobo Wallet as a Service 2.0
|
|
25
25
|
*
|
|
26
|
-
* Contact:
|
|
26
|
+
* Contact: help@cobo.com
|
|
27
27
|
*
|
|
28
28
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
29
29
|
* https://openapi-generator.tech
|
|
@@ -56,6 +56,39 @@ var TransferSource = /*#__PURE__*/function () {
|
|
|
56
56
|
}
|
|
57
57
|
var match = 0;
|
|
58
58
|
var errorMessages = [];
|
|
59
|
+
var discriminatorValue = instance["source_type"];
|
|
60
|
+
if (discriminatorValue) {
|
|
61
|
+
switch (discriminatorValue) {
|
|
62
|
+
case "Asset":
|
|
63
|
+
this.actualInstance = _CustodialTransferSource["default"].constructFromObject(instance);
|
|
64
|
+
match++;
|
|
65
|
+
break;
|
|
66
|
+
case "Main":
|
|
67
|
+
this.actualInstance = _ExchangeTransferSource["default"].constructFromObject(instance);
|
|
68
|
+
match++;
|
|
69
|
+
break;
|
|
70
|
+
case "Org-Controlled":
|
|
71
|
+
this.actualInstance = _MpcTransferSource["default"].constructFromObject(instance);
|
|
72
|
+
match++;
|
|
73
|
+
break;
|
|
74
|
+
case "Safe{Wallet}":
|
|
75
|
+
this.actualInstance = _SafeTransferSource["default"].constructFromObject(instance);
|
|
76
|
+
match++;
|
|
77
|
+
break;
|
|
78
|
+
case "Sub":
|
|
79
|
+
this.actualInstance = _ExchangeTransferSource["default"].constructFromObject(instance);
|
|
80
|
+
match++;
|
|
81
|
+
break;
|
|
82
|
+
case "User-Controlled":
|
|
83
|
+
this.actualInstance = _MpcTransferSource["default"].constructFromObject(instance);
|
|
84
|
+
match++;
|
|
85
|
+
break;
|
|
86
|
+
default:
|
|
87
|
+
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
59
92
|
try {
|
|
60
93
|
if (instance instanceof _CustodialTransferSource["default"]) {
|
|
61
94
|
this.actualInstance = instance;
|
|
@@ -63,8 +96,16 @@ var TransferSource = /*#__PURE__*/function () {
|
|
|
63
96
|
// plain JS object
|
|
64
97
|
// create CustodialTransferSource from JS object
|
|
65
98
|
this.actualInstance = _CustodialTransferSource["default"].constructFromObject(instance);
|
|
66
|
-
} else
|
|
67
|
-
|
|
99
|
+
} else {
|
|
100
|
+
if (_CustodialTransferSource["default"].constructFromObject(instance)) {
|
|
101
|
+
if (!!_CustodialTransferSource["default"].constructFromObject(instance).toJSON) {
|
|
102
|
+
if (_CustodialTransferSource["default"].constructFromObject(instance).toJSON()) {
|
|
103
|
+
this.actualInstance = _CustodialTransferSource["default"].constructFromObject(instance);
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
this.actualInstance = _CustodialTransferSource["default"].constructFromObject(instance);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
68
109
|
}
|
|
69
110
|
match++;
|
|
70
111
|
} catch (err) {
|
|
@@ -78,8 +119,16 @@ var TransferSource = /*#__PURE__*/function () {
|
|
|
78
119
|
// plain JS object
|
|
79
120
|
// create MpcTransferSource from JS object
|
|
80
121
|
this.actualInstance = _MpcTransferSource["default"].constructFromObject(instance);
|
|
81
|
-
} else
|
|
82
|
-
|
|
122
|
+
} else {
|
|
123
|
+
if (_MpcTransferSource["default"].constructFromObject(instance)) {
|
|
124
|
+
if (!!_MpcTransferSource["default"].constructFromObject(instance).toJSON) {
|
|
125
|
+
if (_MpcTransferSource["default"].constructFromObject(instance).toJSON()) {
|
|
126
|
+
this.actualInstance = _MpcTransferSource["default"].constructFromObject(instance);
|
|
127
|
+
}
|
|
128
|
+
} else {
|
|
129
|
+
this.actualInstance = _MpcTransferSource["default"].constructFromObject(instance);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
83
132
|
}
|
|
84
133
|
match++;
|
|
85
134
|
} catch (err) {
|
|
@@ -93,8 +142,16 @@ var TransferSource = /*#__PURE__*/function () {
|
|
|
93
142
|
// plain JS object
|
|
94
143
|
// create SafeTransferSource from JS object
|
|
95
144
|
this.actualInstance = _SafeTransferSource["default"].constructFromObject(instance);
|
|
96
|
-
} else
|
|
97
|
-
|
|
145
|
+
} else {
|
|
146
|
+
if (_SafeTransferSource["default"].constructFromObject(instance)) {
|
|
147
|
+
if (!!_SafeTransferSource["default"].constructFromObject(instance).toJSON) {
|
|
148
|
+
if (_SafeTransferSource["default"].constructFromObject(instance).toJSON()) {
|
|
149
|
+
this.actualInstance = _SafeTransferSource["default"].constructFromObject(instance);
|
|
150
|
+
}
|
|
151
|
+
} else {
|
|
152
|
+
this.actualInstance = _SafeTransferSource["default"].constructFromObject(instance);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
98
155
|
}
|
|
99
156
|
match++;
|
|
100
157
|
} catch (err) {
|
|
@@ -108,8 +165,16 @@ var TransferSource = /*#__PURE__*/function () {
|
|
|
108
165
|
// plain JS object
|
|
109
166
|
// create ExchangeTransferSource from JS object
|
|
110
167
|
this.actualInstance = _ExchangeTransferSource["default"].constructFromObject(instance);
|
|
111
|
-
} else
|
|
112
|
-
|
|
168
|
+
} else {
|
|
169
|
+
if (_ExchangeTransferSource["default"].constructFromObject(instance)) {
|
|
170
|
+
if (!!_ExchangeTransferSource["default"].constructFromObject(instance).toJSON) {
|
|
171
|
+
if (_ExchangeTransferSource["default"].constructFromObject(instance).toJSON()) {
|
|
172
|
+
this.actualInstance = _ExchangeTransferSource["default"].constructFromObject(instance);
|
|
173
|
+
}
|
|
174
|
+
} else {
|
|
175
|
+
this.actualInstance = _ExchangeTransferSource["default"].constructFromObject(instance);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
113
178
|
}
|
|
114
179
|
match++;
|
|
115
180
|
} catch (err) {
|
package/dist/model/UTXO.js
CHANGED
|
@@ -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
|
|
@@ -18,7 +18,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Cobo Wallet as a Service 2.0
|
|
20
20
|
*
|
|
21
|
-
* Contact:
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
24
|
* https://openapi-generator.tech
|
|
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
16
|
* Cobo Wallet as a Service 2.0
|
|
17
17
|
*
|
|
18
|
-
* Contact:
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
19
|
*
|
|
20
20
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
21
|
* https://openapi-generator.tech
|
|
@@ -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
|
|
@@ -17,7 +17,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Cobo Wallet as a Service 2.0
|
|
19
19
|
*
|
|
20
|
-
* Contact:
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
21
|
*
|
|
22
22
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
23
|
* https://openapi-generator.tech
|
|
@@ -18,7 +18,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Cobo Wallet as a Service 2.0
|
|
20
20
|
*
|
|
21
|
-
* Contact:
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
24
|
* https://openapi-generator.tech
|
|
@@ -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
|