From a2d4292f777522950fcd5fd8893251dc7bebc003 Mon Sep 17 00:00:00 2001
From: Shanshan Li
Date: Wed, 13 Nov 2024 15:41:04 +0800
Subject: [PATCH] release v1.6.0
---
.openapi-generator/FILES | 46 +++-
README.md | 19 +-
docs/AddressTransferDestination.md | 4 +-
...ressTransferDestinationUtxoOutputsInner.md | 3 +-
docs/BabylonStakeEstimatedFee.md | 12 +
docs/BabylonValidator.md | 2 +
...ckAddressChainsValidity200ResponseInner.md | 10 +
docs/CreateStakeActivityExtra.md | 1 +
docs/CreateUnstakeActivity.md | 1 +
docs/CreateUnstakeActivityExtra.md | 10 +
docs/CreateUnstakeActivityRequest.md | 1 +
docs/DevelopersApi.md | 55 +++++
docs/EstimateContractCallFeeParams.md | 2 +-
docs/EstimateFeeParams.md | 2 +-
docs/EstimateTransferFeeParams.md | 4 +-
docs/EstimateUnstakeFee.md | 1 +
docs/EstimatedEvmEip1559FeeSlow.md | 2 +-
docs/EstimatedEvmLegacyFeeSlow.md | 2 +-
docs/EthStakeEstimatedFee.md | 11 +
docs/EthStakeExtra.md | 10 +
docs/EthStakingExtra.md | 10 +
docs/EthUnstakeExtra.md | 10 +
docs/FeeGasLimit.md | 2 +-
docs/GetApiKeyInfo200Response.md | 30 +++
docs/GetStakingEstimationFee201Response.md | 3 +
docs/GetStakingEstimationFeeRequest.md | 2 +-
...n200Response.md => GetToken2XXResponse.md} | 2 +-
docs/GetToken4XXResponse.md | 2 +-
docs/MpcTransferSource.md | 2 +-
docs/OAuthApi.md | 8 +-
docs/PoolDetailsAllOfValidatorsInfo.md | 2 +
...Response.md => RefreshToken2XXResponse.md} | 2 +-
docs/RoleScopes.md | 10 +
docs/Scopes.md | 13 +
docs/StakingPoolType.md | 2 +
docs/TransactionEvmEip1559Fee.md | 2 +-
docs/TransactionEvmLegacyFee.md | 2 +-
docs/TransactionFee.md | 2 +-
docs/TransactionRbfSource.md | 2 +-
docs/TransactionRequestEvmEip1559Fee.md | 2 +-
docs/TransactionRequestEvmLegacyFee.md | 2 +-
docs/TransactionRequestFee.md | 2 +-
...ferToAddressDestinationUtxoOutputsInner.md | 1 -
docs/TransferDestination.md | 4 +-
docs/WalletsApi.md | 108 ++++-----
package.json | 3 +-
src/ApiClient.js | 2 +-
src/ServerDemo.js | 87 +++++++
src/api/DevelopersApi.js | 80 ++++++
src/api/OAuthApi.js | 16 +-
src/api/WalletsApi.js | 121 +++++-----
src/index.js | 95 +++++++-
src/model/AddressTransferDestination.js | 4 +-
...ressTransferDestinationUtxoOutputsInner.js | 23 +-
src/model/BabylonStakeEstimatedFee.js | 116 +++++++++
src/model/BabylonValidator.js | 6 +
...ckAddressChainsValidity200ResponseInner.js | 104 ++++++++
src/model/CreateSmartContractWalletParams.js | 2 +-
src/model/CreateStakeActivityExtra.js | 52 +++-
src/model/CreateUnstakeActivity.js | 15 ++
src/model/CreateUnstakeActivityExtra.js | 147 ++++++++++++
src/model/CreateUnstakeActivityRequest.js | 19 ++
src/model/EstimateContractCallFeeParams.js | 10 +-
src/model/EstimateTransferFeeParams.js | 12 +-
src/model/EstimateUnstakeFee.js | 19 ++
src/model/EstimatedEvmEip1559FeeSlow.js | 8 +-
src/model/EstimatedEvmLegacyFeeSlow.js | 8 +-
src/model/EthStakeEstimatedFee.js | 109 +++++++++
src/model/EthStakeExtra.js | 112 +++++++++
src/model/EthStakingExtra.js | 112 +++++++++
src/model/EthUnstakeExtra.js | 112 +++++++++
src/model/FeeGasLimit.js | 3 +-
src/model/GetApiKeyInfo200Response.js | 227 ++++++++++++++++++
.../GetStakingEstimationFee201Response.js | 173 ++++++++++---
src/model/GetStakingEstimationFeeRequest.js | 4 +-
...n200Response.js => GetToken2XXResponse.js} | 36 +--
src/model/GetToken4XXResponse.js | 22 +-
src/model/MPCDelegate.js | 2 +-
src/model/MpcTransferSource.js | 4 +-
...Response.js => RefreshToken2XXResponse.js} | 36 +--
src/model/RoleScopes.js | 110 +++++++++
src/model/Scopes.js | 140 +++++++++++
src/model/SmartContractWalletInfo.js | 2 +-
src/model/StakingPoolType.js | 7 +
src/model/StakingsExtra.js | 46 +++-
src/model/TransactionEvmEip1559Fee.js | 6 +-
src/model/TransactionEvmLegacyFee.js | 6 +-
src/model/TransactionFee.js | 3 +-
src/model/TransactionRbfSource.js | 2 +-
src/model/TransactionRequestEvmEip1559Fee.js | 3 +-
src/model/TransactionRequestEvmLegacyFee.js | 3 +-
src/model/TransactionRequestFee.js | 3 +-
src/model/TransactionSource.js | 2 +-
...ferToAddressDestinationUtxoOutputsInner.js | 13 -
src/model/TransferDestination.js | 4 +-
test/api/DevelopersApi.spec.js | 51 ++++
test/api/WalletsApi.spec.js | 20 +-
...ransferDestinationUtxoOutputsInner.spec.js | 6 -
test/model/BabylonStakeEstimatedFee.spec.js | 81 +++++++
...ressChainsValidity200ResponseInner.spec.js | 69 ++++++
test/model/CreateStakeActivityExtra.spec.js | 6 +
test/model/CreateUnstakeActivity.spec.js | 6 +
test/model/CreateUnstakeActivityExtra.spec.js | 69 ++++++
.../CreateUnstakeActivityRequest.spec.js | 6 +
test/model/EstimateUnstakeFee.spec.js | 6 +
test/model/EthStakeEstimatedFee.spec.js | 75 ++++++
test/model/EthStakeExtra.spec.js | 69 ++++++
test/model/EthStakingExtra.spec.js | 69 ++++++
test/model/EthUnstakeExtra.spec.js | 69 ++++++
test/model/GetApiKeyInfo200Response.spec.js | 111 +++++++++
...GetStakingEstimationFee201Response.spec.js | 18 ++
...se.spec.js => GetToken2XXResponse.spec.js} | 22 +-
test/model/GetToken4XXResponse.spec.js | 4 +-
...pec.js => RefreshToken2XXResponse.spec.js} | 22 +-
test/model/RoleScopes.spec.js | 69 ++++++
test/model/Scopes.spec.js | 87 +++++++
...AddressDestinationUtxoOutputsInner.spec.js | 6 -
117 files changed, 3211 insertions(+), 406 deletions(-)
create mode 100644 docs/BabylonStakeEstimatedFee.md
create mode 100644 docs/CheckAddressChainsValidity200ResponseInner.md
create mode 100644 docs/CreateUnstakeActivityExtra.md
create mode 100644 docs/DevelopersApi.md
create mode 100644 docs/EthStakeEstimatedFee.md
create mode 100644 docs/EthStakeExtra.md
create mode 100644 docs/EthStakingExtra.md
create mode 100644 docs/EthUnstakeExtra.md
create mode 100644 docs/GetApiKeyInfo200Response.md
rename docs/{GetToken200Response.md => GetToken2XXResponse.md} (96%)
rename docs/{RefreshToken201Response.md => RefreshToken2XXResponse.md} (96%)
create mode 100644 docs/RoleScopes.md
create mode 100644 docs/Scopes.md
create mode 100644 src/ServerDemo.js
create mode 100644 src/api/DevelopersApi.js
create mode 100644 src/model/BabylonStakeEstimatedFee.js
create mode 100644 src/model/CheckAddressChainsValidity200ResponseInner.js
create mode 100644 src/model/CreateUnstakeActivityExtra.js
create mode 100644 src/model/EthStakeEstimatedFee.js
create mode 100644 src/model/EthStakeExtra.js
create mode 100644 src/model/EthStakingExtra.js
create mode 100644 src/model/EthUnstakeExtra.js
create mode 100644 src/model/GetApiKeyInfo200Response.js
rename src/model/{GetToken200Response.js => GetToken2XXResponse.js} (80%)
rename src/model/{RefreshToken201Response.js => RefreshToken2XXResponse.js} (80%)
create mode 100644 src/model/RoleScopes.js
create mode 100644 src/model/Scopes.js
create mode 100644 test/api/DevelopersApi.spec.js
create mode 100644 test/model/BabylonStakeEstimatedFee.spec.js
create mode 100644 test/model/CheckAddressChainsValidity200ResponseInner.spec.js
create mode 100644 test/model/CreateUnstakeActivityExtra.spec.js
create mode 100644 test/model/EthStakeEstimatedFee.spec.js
create mode 100644 test/model/EthStakeExtra.spec.js
create mode 100644 test/model/EthStakingExtra.spec.js
create mode 100644 test/model/EthUnstakeExtra.spec.js
create mode 100644 test/model/GetApiKeyInfo200Response.spec.js
rename test/model/{GetToken200Response.spec.js => GetToken2XXResponse.spec.js} (78%)
rename test/model/{RefreshToken201Response.spec.js => RefreshToken2XXResponse.spec.js} (79%)
create mode 100644 test/model/RoleScopes.spec.js
create mode 100644 test/model/Scopes.spec.js
diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 29c4e33d..c8ace873 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -23,6 +23,7 @@ docs/ApiLogDetails.md
docs/ApiLogSummary.md
docs/AssetBalance.md
docs/AssetInfo.md
+docs/BabylonStakeEstimatedFee.md
docs/BabylonStakeExtra.md
docs/BabylonStakingExtra.md
docs/BabylonValidator.md
@@ -33,6 +34,7 @@ docs/BaseStakeSource.md
docs/BroadcastSignedTransactions201ResponseInner.md
docs/BroadcastSignedTransactionsRequest.md
docs/ChainInfo.md
+docs/CheckAddressChainsValidity200ResponseInner.md
docs/CheckAddressValidity200Response.md
docs/CheckAddressesValidity200ResponseInner.md
docs/CheckLoopTransfers200ResponseInner.md
@@ -60,6 +62,7 @@ docs/CreateStakeActivityRequest.md
docs/CreateTransferTransaction201Response.md
docs/CreateTssRequestRequest.md
docs/CreateUnstakeActivity.md
+docs/CreateUnstakeActivityExtra.md
docs/CreateUnstakeActivityRequest.md
docs/CreateWalletParams.md
docs/CreateWebhookEndpointRequest.md
@@ -71,6 +74,7 @@ docs/CustodialTransferSource.md
docs/CustodialWalletInfo.md
docs/DeleteKeyShareHolderGroupById201Response.md
docs/DeleteWalletById201Response.md
+docs/DevelopersApi.md
docs/DevelopersWebhooksApi.md
docs/EigenLayerLstStakeExtra.md
docs/EigenLayerNativeStakeExtra.md
@@ -91,6 +95,10 @@ docs/EstimatedFee.md
docs/EstimatedFixedFee.md
docs/EstimatedUtxoFee.md
docs/EstimatedUtxoFeeSlow.md
+docs/EthStakeEstimatedFee.md
+docs/EthStakeExtra.md
+docs/EthStakingExtra.md
+docs/EthUnstakeExtra.md
docs/EvmContractCallDestination.md
docs/EvmEIP191MessageSignDestination.md
docs/EvmEIP712MessageSignDestination.md
@@ -108,9 +116,10 @@ docs/FeeGasLimit.md
docs/FeeRate.md
docs/FeeType.md
docs/FixedFeeRate.md
+docs/GetApiKeyInfo200Response.md
docs/GetStakingEstimationFee201Response.md
docs/GetStakingEstimationFeeRequest.md
-docs/GetToken200Response.md
+docs/GetToken2XXResponse.md
docs/GetToken4XXResponse.md
docs/KeyShareHolder.md
docs/KeyShareHolderGroup.md
@@ -166,10 +175,11 @@ docs/PoolDetails.md
docs/PoolDetailsAllOfValidatorsInfo.md
docs/PoolSummary.md
docs/RawMessageSignDestination.md
-docs/RefreshToken201Response.md
+docs/RefreshToken2XXResponse.md
docs/RefreshTokenRequest.md
docs/ReplaceType.md
docs/RetryWebhookEventById201Response.md
+docs/RoleScopes.md
docs/RootPubkey.md
docs/SafeContractCallSource.md
docs/SafeTransferSource.md
@@ -177,6 +187,7 @@ docs/SafeWallet.md
docs/SafeWalletDelegates.md
docs/SafeWalletDelegatesContractCall.md
docs/SafeWalletDelegatesTransfer.md
+docs/Scopes.md
docs/SmartContractInitiator.md
docs/SmartContractWalletInfo.md
docs/SmartContractWalletOperationType.md
@@ -297,7 +308,9 @@ package.json
src/ApiClient.js
src/Env.js
src/PreRequestScript.js
+src/ServerDemo.js
src/api/AddressBooksApi.js
+src/api/DevelopersApi.js
src/api/DevelopersWebhooksApi.js
src/api/OAuthApi.js
src/api/StakingsApi.js
@@ -326,6 +339,7 @@ src/model/ApiLogDetails.js
src/model/ApiLogSummary.js
src/model/AssetBalance.js
src/model/AssetInfo.js
+src/model/BabylonStakeEstimatedFee.js
src/model/BabylonStakeExtra.js
src/model/BabylonStakingExtra.js
src/model/BabylonValidator.js
@@ -336,6 +350,7 @@ src/model/BaseStakeSource.js
src/model/BroadcastSignedTransactions201ResponseInner.js
src/model/BroadcastSignedTransactionsRequest.js
src/model/ChainInfo.js
+src/model/CheckAddressChainsValidity200ResponseInner.js
src/model/CheckAddressValidity200Response.js
src/model/CheckAddressesValidity200ResponseInner.js
src/model/CheckLoopTransfers200ResponseInner.js
@@ -363,6 +378,7 @@ src/model/CreateStakeActivityRequest.js
src/model/CreateTransferTransaction201Response.js
src/model/CreateTssRequestRequest.js
src/model/CreateUnstakeActivity.js
+src/model/CreateUnstakeActivityExtra.js
src/model/CreateUnstakeActivityRequest.js
src/model/CreateWalletParams.js
src/model/CreateWebhookEndpointRequest.js
@@ -393,6 +409,10 @@ src/model/EstimatedFee.js
src/model/EstimatedFixedFee.js
src/model/EstimatedUtxoFee.js
src/model/EstimatedUtxoFeeSlow.js
+src/model/EthStakeEstimatedFee.js
+src/model/EthStakeExtra.js
+src/model/EthStakingExtra.js
+src/model/EthUnstakeExtra.js
src/model/EvmContractCallDestination.js
src/model/EvmEIP191MessageSignDestination.js
src/model/EvmEIP712MessageSignDestination.js
@@ -410,9 +430,10 @@ src/model/FeeGasLimit.js
src/model/FeeRate.js
src/model/FeeType.js
src/model/FixedFeeRate.js
+src/model/GetApiKeyInfo200Response.js
src/model/GetStakingEstimationFee201Response.js
src/model/GetStakingEstimationFeeRequest.js
-src/model/GetToken200Response.js
+src/model/GetToken2XXResponse.js
src/model/GetToken4XXResponse.js
src/model/KeyShareHolder.js
src/model/KeyShareHolderGroup.js
@@ -467,10 +488,11 @@ src/model/PoolDetails.js
src/model/PoolDetailsAllOfValidatorsInfo.js
src/model/PoolSummary.js
src/model/RawMessageSignDestination.js
-src/model/RefreshToken201Response.js
+src/model/RefreshToken2XXResponse.js
src/model/RefreshTokenRequest.js
src/model/ReplaceType.js
src/model/RetryWebhookEventById201Response.js
+src/model/RoleScopes.js
src/model/RootPubkey.js
src/model/SafeContractCallSource.js
src/model/SafeTransferSource.js
@@ -478,6 +500,7 @@ src/model/SafeWallet.js
src/model/SafeWalletDelegates.js
src/model/SafeWalletDelegatesContractCall.js
src/model/SafeWalletDelegatesTransfer.js
+src/model/Scopes.js
src/model/SmartContractInitiator.js
src/model/SmartContractWalletInfo.js
src/model/SmartContractWalletOperationType.js
@@ -587,6 +610,7 @@ src/model/WebhookEventLog.js
src/model/WebhookEventStatus.js
src/model/WebhookEventType.js
test/api/AddressBooksApi.spec.js
+test/api/DevelopersApi.spec.js
test/api/DevelopersWebhooksApi.spec.js
test/api/OAuthApi.spec.js
test/api/StakingsApi.spec.js
@@ -613,6 +637,7 @@ test/model/ApiLogDetails.spec.js
test/model/ApiLogSummary.spec.js
test/model/AssetBalance.spec.js
test/model/AssetInfo.spec.js
+test/model/BabylonStakeEstimatedFee.spec.js
test/model/BabylonStakeExtra.spec.js
test/model/BabylonStakingExtra.spec.js
test/model/BabylonValidator.spec.js
@@ -623,6 +648,7 @@ test/model/BaseStakeSource.spec.js
test/model/BroadcastSignedTransactions201ResponseInner.spec.js
test/model/BroadcastSignedTransactionsRequest.spec.js
test/model/ChainInfo.spec.js
+test/model/CheckAddressChainsValidity200ResponseInner.spec.js
test/model/CheckAddressValidity200Response.spec.js
test/model/CheckAddressesValidity200ResponseInner.spec.js
test/model/CheckLoopTransfers200ResponseInner.spec.js
@@ -650,6 +676,7 @@ test/model/CreateStakeActivityRequest.spec.js
test/model/CreateTransferTransaction201Response.spec.js
test/model/CreateTssRequestRequest.spec.js
test/model/CreateUnstakeActivity.spec.js
+test/model/CreateUnstakeActivityExtra.spec.js
test/model/CreateUnstakeActivityRequest.spec.js
test/model/CreateWalletParams.spec.js
test/model/CreateWebhookEndpointRequest.spec.js
@@ -680,6 +707,10 @@ test/model/EstimatedFee.spec.js
test/model/EstimatedFixedFee.spec.js
test/model/EstimatedUtxoFee.spec.js
test/model/EstimatedUtxoFeeSlow.spec.js
+test/model/EthStakeEstimatedFee.spec.js
+test/model/EthStakeExtra.spec.js
+test/model/EthStakingExtra.spec.js
+test/model/EthUnstakeExtra.spec.js
test/model/EvmContractCallDestination.spec.js
test/model/EvmEIP191MessageSignDestination.spec.js
test/model/EvmEIP712MessageSignDestination.spec.js
@@ -697,9 +728,10 @@ test/model/FeeGasLimit.spec.js
test/model/FeeRate.spec.js
test/model/FeeType.spec.js
test/model/FixedFeeRate.spec.js
+test/model/GetApiKeyInfo200Response.spec.js
test/model/GetStakingEstimationFee201Response.spec.js
test/model/GetStakingEstimationFeeRequest.spec.js
-test/model/GetToken200Response.spec.js
+test/model/GetToken2XXResponse.spec.js
test/model/GetToken4XXResponse.spec.js
test/model/KeyShareHolder.spec.js
test/model/KeyShareHolderGroup.spec.js
@@ -754,10 +786,11 @@ test/model/PoolDetails.spec.js
test/model/PoolDetailsAllOfValidatorsInfo.spec.js
test/model/PoolSummary.spec.js
test/model/RawMessageSignDestination.spec.js
-test/model/RefreshToken201Response.spec.js
+test/model/RefreshToken2XXResponse.spec.js
test/model/RefreshTokenRequest.spec.js
test/model/ReplaceType.spec.js
test/model/RetryWebhookEventById201Response.spec.js
+test/model/RoleScopes.spec.js
test/model/RootPubkey.spec.js
test/model/SafeContractCallSource.spec.js
test/model/SafeTransferSource.spec.js
@@ -765,6 +798,7 @@ test/model/SafeWallet.spec.js
test/model/SafeWalletDelegates.spec.js
test/model/SafeWalletDelegatesContractCall.spec.js
test/model/SafeWalletDelegatesTransfer.spec.js
+test/model/Scopes.spec.js
test/model/SmartContractInitiator.spec.js
test/model/SmartContractWalletInfo.spec.js
test/model/SmartContractWalletOperationType.spec.js
diff --git a/README.md b/README.md
index 5a844fa7..89eedef2 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](/v2/
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: v2
-- Package version: 1.5.0
+- Package version: 1.6.0
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
@@ -62,6 +62,7 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CoboWaas2.AddressBooksApi* | [**listAddressBooks**](docs/AddressBooksApi.md#listAddressBooks) | **GET** /address_books | List address book entries
+*CoboWaas2.DevelopersApi* | [**getApiKeyInfo**](docs/DevelopersApi.md#getApiKeyInfo) | **GET** /developers/api_key_info | Get API key information
*CoboWaas2.DevelopersWebhooksApi* | [**createWebhookEndpoint**](docs/DevelopersWebhooksApi.md#createWebhookEndpoint) | **POST** /webhooks/endpoints | Register webhook endpoint
*CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEndpointById**](docs/DevelopersWebhooksApi.md#getWebhookEndpointById) | **GET** /webhooks/endpoints/{endpoint_id} | Get webhook endpoint information
*CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEventById**](docs/DevelopersWebhooksApi.md#getWebhookEventById) | **GET** /webhooks/endpoints/{endpoint_id}/events/{event_id} | Retrieve event information
@@ -96,12 +97,12 @@ Class | Method | HTTP request | Description
*CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
*CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
*CoboWaas2.TransactionsApi* | [**speedupTransactionById**](docs/TransactionsApi.md#speedupTransactionById) | **POST** /transactions/{transaction_id}/speedup | Speed up transaction
+*CoboWaas2.WalletsApi* | [**checkAddressChainsValidity**](docs/WalletsApi.md#checkAddressChainsValidity) | **GET** /wallets/check_address_chains_validity | Check address validity across chains
*CoboWaas2.WalletsApi* | [**checkAddressValidity**](docs/WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
*CoboWaas2.WalletsApi* | [**checkAddressesValidity**](docs/WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
*CoboWaas2.WalletsApi* | [**createAddress**](docs/WalletsApi.md#createAddress) | **POST** /wallets/{wallet_id}/addresses | Create addresses in wallet
*CoboWaas2.WalletsApi* | [**createWallet**](docs/WalletsApi.md#createWallet) | **POST** /wallets | Create wallet
*CoboWaas2.WalletsApi* | [**deleteWalletById**](docs/WalletsApi.md#deleteWalletById) | **POST** /wallets/{wallet_id}/delete | Delete wallet
-*CoboWaas2.WalletsApi* | [**getAddress**](docs/WalletsApi.md#getAddress) | **GET** /wallets/{wallet_id}/addresses/{address} | Get address information
*CoboWaas2.WalletsApi* | [**getChainById**](docs/WalletsApi.md#getChainById) | **GET** /wallets/chains/{chain_id} | Get chain information
*CoboWaas2.WalletsApi* | [**getMaxTransferableValue**](docs/WalletsApi.md#getMaxTransferableValue) | **GET** /wallets/{wallet_id}/max_transferable_value | Get maximum transferable value
*CoboWaas2.WalletsApi* | [**getTokenById**](docs/WalletsApi.md#getTokenById) | **GET** /wallets/tokens/{token_id} | Get token information
@@ -163,6 +164,7 @@ Class | Method | HTTP request | Description
- [CoboWaas2.ApiLogSummary](docs/ApiLogSummary.md)
- [CoboWaas2.AssetBalance](docs/AssetBalance.md)
- [CoboWaas2.AssetInfo](docs/AssetInfo.md)
+ - [CoboWaas2.BabylonStakeEstimatedFee](docs/BabylonStakeEstimatedFee.md)
- [CoboWaas2.BabylonStakeExtra](docs/BabylonStakeExtra.md)
- [CoboWaas2.BabylonStakingExtra](docs/BabylonStakingExtra.md)
- [CoboWaas2.BabylonValidator](docs/BabylonValidator.md)
@@ -173,6 +175,7 @@ Class | Method | HTTP request | Description
- [CoboWaas2.BroadcastSignedTransactions201ResponseInner](docs/BroadcastSignedTransactions201ResponseInner.md)
- [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
- [CoboWaas2.ChainInfo](docs/ChainInfo.md)
+ - [CoboWaas2.CheckAddressChainsValidity200ResponseInner](docs/CheckAddressChainsValidity200ResponseInner.md)
- [CoboWaas2.CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
- [CoboWaas2.CheckAddressesValidity200ResponseInner](docs/CheckAddressesValidity200ResponseInner.md)
- [CoboWaas2.CheckLoopTransfers200ResponseInner](docs/CheckLoopTransfers200ResponseInner.md)
@@ -200,6 +203,7 @@ Class | Method | HTTP request | Description
- [CoboWaas2.CreateTransferTransaction201Response](docs/CreateTransferTransaction201Response.md)
- [CoboWaas2.CreateTssRequestRequest](docs/CreateTssRequestRequest.md)
- [CoboWaas2.CreateUnstakeActivity](docs/CreateUnstakeActivity.md)
+ - [CoboWaas2.CreateUnstakeActivityExtra](docs/CreateUnstakeActivityExtra.md)
- [CoboWaas2.CreateUnstakeActivityRequest](docs/CreateUnstakeActivityRequest.md)
- [CoboWaas2.CreateWalletParams](docs/CreateWalletParams.md)
- [CoboWaas2.CreateWebhookEndpointRequest](docs/CreateWebhookEndpointRequest.md)
@@ -230,6 +234,10 @@ Class | Method | HTTP request | Description
- [CoboWaas2.EstimatedFixedFee](docs/EstimatedFixedFee.md)
- [CoboWaas2.EstimatedUtxoFee](docs/EstimatedUtxoFee.md)
- [CoboWaas2.EstimatedUtxoFeeSlow](docs/EstimatedUtxoFeeSlow.md)
+ - [CoboWaas2.EthStakeEstimatedFee](docs/EthStakeEstimatedFee.md)
+ - [CoboWaas2.EthStakeExtra](docs/EthStakeExtra.md)
+ - [CoboWaas2.EthStakingExtra](docs/EthStakingExtra.md)
+ - [CoboWaas2.EthUnstakeExtra](docs/EthUnstakeExtra.md)
- [CoboWaas2.EvmContractCallDestination](docs/EvmContractCallDestination.md)
- [CoboWaas2.EvmEIP191MessageSignDestination](docs/EvmEIP191MessageSignDestination.md)
- [CoboWaas2.EvmEIP712MessageSignDestination](docs/EvmEIP712MessageSignDestination.md)
@@ -247,9 +255,10 @@ Class | Method | HTTP request | Description
- [CoboWaas2.FeeRate](docs/FeeRate.md)
- [CoboWaas2.FeeType](docs/FeeType.md)
- [CoboWaas2.FixedFeeRate](docs/FixedFeeRate.md)
+ - [CoboWaas2.GetApiKeyInfo200Response](docs/GetApiKeyInfo200Response.md)
- [CoboWaas2.GetStakingEstimationFee201Response](docs/GetStakingEstimationFee201Response.md)
- [CoboWaas2.GetStakingEstimationFeeRequest](docs/GetStakingEstimationFeeRequest.md)
- - [CoboWaas2.GetToken200Response](docs/GetToken200Response.md)
+ - [CoboWaas2.GetToken2XXResponse](docs/GetToken2XXResponse.md)
- [CoboWaas2.GetToken4XXResponse](docs/GetToken4XXResponse.md)
- [CoboWaas2.KeyShareHolder](docs/KeyShareHolder.md)
- [CoboWaas2.KeyShareHolderGroup](docs/KeyShareHolderGroup.md)
@@ -304,10 +313,11 @@ Class | Method | HTTP request | Description
- [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
- [CoboWaas2.PoolSummary](docs/PoolSummary.md)
- [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
- - [CoboWaas2.RefreshToken201Response](docs/RefreshToken201Response.md)
+ - [CoboWaas2.RefreshToken2XXResponse](docs/RefreshToken2XXResponse.md)
- [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
- [CoboWaas2.ReplaceType](docs/ReplaceType.md)
- [CoboWaas2.RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
+ - [CoboWaas2.RoleScopes](docs/RoleScopes.md)
- [CoboWaas2.RootPubkey](docs/RootPubkey.md)
- [CoboWaas2.SafeContractCallSource](docs/SafeContractCallSource.md)
- [CoboWaas2.SafeTransferSource](docs/SafeTransferSource.md)
@@ -315,6 +325,7 @@ Class | Method | HTTP request | Description
- [CoboWaas2.SafeWalletDelegates](docs/SafeWalletDelegates.md)
- [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
- [CoboWaas2.SafeWalletDelegatesTransfer](docs/SafeWalletDelegatesTransfer.md)
+ - [CoboWaas2.Scopes](docs/Scopes.md)
- [CoboWaas2.SmartContractInitiator](docs/SmartContractInitiator.md)
- [CoboWaas2.SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
- [CoboWaas2.SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
diff --git a/docs/AddressTransferDestination.md b/docs/AddressTransferDestination.md
index 9cbb4366..76950464 100644
--- a/docs/AddressTransferDestination.md
+++ b/docs/AddressTransferDestination.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
**utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
**change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
-**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
-**force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
+**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
+**force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
diff --git a/docs/AddressTransferDestinationUtxoOutputsInner.md b/docs/AddressTransferDestinationUtxoOutputsInner.md
index 01968d05..2acd4697 100644
--- a/docs/AddressTransferDestinationUtxoOutputsInner.md
+++ b/docs/AddressTransferDestinationUtxoOutputsInner.md
@@ -5,7 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address** | **String** | The destination address. |
-**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. | [optional]
-**script** | **String** | The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent. | [optional]
+**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
diff --git a/docs/BabylonStakeEstimatedFee.md b/docs/BabylonStakeEstimatedFee.md
new file mode 100644
index 00000000..2fb222b9
--- /dev/null
+++ b/docs/BabylonStakeEstimatedFee.md
@@ -0,0 +1,12 @@
+# CoboWaas2.BabylonStakeEstimatedFee
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
+**fee_type** | [**FeeType**](FeeType.md) | | [optional]
+**fee_amount** | **String** | The amount of the estimated fee. | [optional]
+**token_id** | **String** | The token ID of the staking fee. | [optional]
+
+
diff --git a/docs/BabylonValidator.md b/docs/BabylonValidator.md
index 70df4244..ad44e84e 100644
--- a/docs/BabylonValidator.md
+++ b/docs/BabylonValidator.md
@@ -21,6 +21,8 @@ Name | Type | Description | Notes
* `Cosmos` (value: `"Cosmos"`)
+* `Ethereum` (value: `"Ethereum"`)
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
diff --git a/docs/CheckAddressChainsValidity200ResponseInner.md b/docs/CheckAddressChainsValidity200ResponseInner.md
new file mode 100644
index 00000000..794fefaf
--- /dev/null
+++ b/docs/CheckAddressChainsValidity200ResponseInner.md
@@ -0,0 +1,10 @@
+# CoboWaas2.CheckAddressChainsValidity200ResponseInner
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. |
+**validity** | **Boolean** | Whether the address is valid for the specified chain. - `true`: The address is valid. - `false`: The address is invalid. |
+
+
diff --git a/docs/CreateStakeActivityExtra.md b/docs/CreateStakeActivityExtra.md
index f719bfbf..f1cd5e7c 100644
--- a/docs/CreateStakeActivityExtra.md
+++ b/docs/CreateStakeActivityExtra.md
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
**finality_provider_public_key** | **String** | The public key of the finality provider. |
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
**auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
+**provider_name** | **String** | The name of the provider. |
diff --git a/docs/CreateUnstakeActivity.md b/docs/CreateUnstakeActivity.md
index e562d198..0f8f12d0 100644
--- a/docs/CreateUnstakeActivity.md
+++ b/docs/CreateUnstakeActivity.md
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
**staking_id** | **String** | The ID of the corresponding staking position. |
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
+**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
diff --git a/docs/CreateUnstakeActivityExtra.md b/docs/CreateUnstakeActivityExtra.md
new file mode 100644
index 00000000..74108a55
--- /dev/null
+++ b/docs/CreateUnstakeActivityExtra.md
@@ -0,0 +1,10 @@
+# CoboWaas2.CreateUnstakeActivityExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
+**validator_pubkeys** | **[String]** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. |
+
+
diff --git a/docs/CreateUnstakeActivityRequest.md b/docs/CreateUnstakeActivityRequest.md
index 0222a06c..1ee0e765 100644
--- a/docs/CreateUnstakeActivityRequest.md
+++ b/docs/CreateUnstakeActivityRequest.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
**staking_id** | **String** | The ID of the corresponding staking position. |
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
+**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
**app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
diff --git a/docs/DevelopersApi.md b/docs/DevelopersApi.md
new file mode 100644
index 00000000..acf6dace
--- /dev/null
+++ b/docs/DevelopersApi.md
@@ -0,0 +1,55 @@
+# CoboWaas2.DevelopersApi
+
+All URIs are relative to *https://api.dev.cobo.com/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getApiKeyInfo**](DevelopersApi.md#getApiKeyInfo) | **GET** /developers/api_key_info | Get API key information
+
+
+
+## getApiKeyInfo
+
+> GetApiKeyInfo200Response getApiKeyInfo()
+
+Get API key information
+
+This operation retrieves the details of the API key that you are using.
+
+### Example
+
+```javascript
+const CoboWaas2 = require('@cobo/cobo-waas2');
+// Initialize the API client
+const apiClient = CoboWaas2.ApiClient.instance
+// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
+apiClient.setEnv(CoboWaas2.Env.DEV);
+// Replace `` with your private key
+apiClient.setPrivateKey("");
+// Call the API
+const apiInstance = new CoboWaas2.DevelopersApi();
+apiInstance.getApiKeyInfo().then((data) => {
+ console.log('API called successfully. Returned data: ' + data);
+}, (error) => {
+ console.error(error);
+});
+
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**GetApiKeyInfo200Response**](GetApiKeyInfo200Response.md)
+
+### Authorization
+
+[CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
diff --git a/docs/EstimateContractCallFeeParams.md b/docs/EstimateContractCallFeeParams.md
index 604db6aa..0cf92657 100644
--- a/docs/EstimateContractCallFeeParams.md
+++ b/docs/EstimateContractCallFeeParams.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
+**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
**request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
**source** | [**ContractCallSource**](ContractCallSource.md) | |
diff --git a/docs/EstimateFeeParams.md b/docs/EstimateFeeParams.md
index 592f80d6..3fb6dcd3 100644
--- a/docs/EstimateFeeParams.md
+++ b/docs/EstimateFeeParams.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
+**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
**request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
**source** | [**ContractCallSource**](ContractCallSource.md) | |
**token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
diff --git a/docs/EstimateTransferFeeParams.md b/docs/EstimateTransferFeeParams.md
index f2e4f44f..8de52e67 100644
--- a/docs/EstimateTransferFeeParams.md
+++ b/docs/EstimateTransferFeeParams.md
@@ -4,11 +4,11 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
+**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
**request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
**source** | [**TransferSource**](TransferSource.md) | |
**token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
-**destination** | [**TransferDestination**](TransferDestination.md) | |
+**destination** | [**TransferDestination**](TransferDestination.md) | | [optional]
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
diff --git a/docs/EstimateUnstakeFee.md b/docs/EstimateUnstakeFee.md
index dfd53d36..4c8f08f2 100644
--- a/docs/EstimateUnstakeFee.md
+++ b/docs/EstimateUnstakeFee.md
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
**staking_id** | **String** | The ID of the corresponding staking position. |
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
+**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
diff --git a/docs/EstimatedEvmEip1559FeeSlow.md b/docs/EstimatedEvmEip1559FeeSlow.md
index f17d818a..b0fe201b 100644
--- a/docs/EstimatedEvmEip1559FeeSlow.md
+++ b/docs/EstimatedEvmEip1559FeeSlow.md
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. |
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. |
diff --git a/docs/EstimatedEvmLegacyFeeSlow.md b/docs/EstimatedEvmLegacyFeeSlow.md
index 9c65ba98..d8c161cc 100644
--- a/docs/EstimatedEvmLegacyFeeSlow.md
+++ b/docs/EstimatedEvmLegacyFeeSlow.md
@@ -5,6 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. |
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. |
diff --git a/docs/EthStakeEstimatedFee.md b/docs/EthStakeEstimatedFee.md
new file mode 100644
index 00000000..b5c08825
--- /dev/null
+++ b/docs/EthStakeEstimatedFee.md
@@ -0,0 +1,11 @@
+# CoboWaas2.EthStakeEstimatedFee
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
+**fee** | [**EstimatedFee**](EstimatedFee.md) | | [optional]
+**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
+
+
diff --git a/docs/EthStakeExtra.md b/docs/EthStakeExtra.md
new file mode 100644
index 00000000..926c2058
--- /dev/null
+++ b/docs/EthStakeExtra.md
@@ -0,0 +1,10 @@
+# CoboWaas2.EthStakeExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
+**provider_name** | **String** | The name of the provider. |
+
+
diff --git a/docs/EthStakingExtra.md b/docs/EthStakingExtra.md
new file mode 100644
index 00000000..e81b994b
--- /dev/null
+++ b/docs/EthStakingExtra.md
@@ -0,0 +1,10 @@
+# CoboWaas2.EthStakingExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
+**pos_chain** | **String** | The Proof-of-Stake (PoS) chain. |
+
+
diff --git a/docs/EthUnstakeExtra.md b/docs/EthUnstakeExtra.md
new file mode 100644
index 00000000..994ecf54
--- /dev/null
+++ b/docs/EthUnstakeExtra.md
@@ -0,0 +1,10 @@
+# CoboWaas2.EthUnstakeExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
+**validator_pubkeys** | **[String]** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. |
+
+
diff --git a/docs/FeeGasLimit.md b/docs/FeeGasLimit.md
index 55d919e8..f63d1fb3 100644
--- a/docs/FeeGasLimit.md
+++ b/docs/FeeGasLimit.md
@@ -4,6 +4,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
diff --git a/docs/GetApiKeyInfo200Response.md b/docs/GetApiKeyInfo200Response.md
new file mode 100644
index 00000000..ea2afbdc
--- /dev/null
+++ b/docs/GetApiKeyInfo200Response.md
@@ -0,0 +1,30 @@
+# CoboWaas2.GetApiKeyInfo200Response
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | The API key name. |
+**curve_type** | **String** | The curve type used for the API key, which determines the cryptographic algorithm for key generation and signing. Possible values include: - `ED25519`: Ed25519 - `SECP256K1`: Secp256k1 |
+**key** | **String** | The API key value. |
+**callback_url** | **String** | The URL of the callback endpoint that receives callback messages triggered by this API key. | [optional]
+**valid_ips** | **[String]** | (Applicable to permanent API keys only) The list of IP addresses that are allowed to use this API key. | [optional]
+**created_timestamp** | **Number** | The time when the API key was registered, in Unix timestamp format, measured in milliseconds. |
+**updated_timestamp** | **Number** | The time when the API key information was last updated, in Unix timestamp format, measured in milliseconds. |
+**expired_timestamp** | **Number** | The time when the API key expires, in Unix timestamp format, measured in milliseconds. For permanent API keys, this property value is `null`. | [optional]
+**role_scopes** | [**[RoleScopes]**](RoleScopes.md) | The list of user roles and wallet scopes associated with the API key. | [optional]
+
+
+
+## Enum: CurveTypeEnum
+
+
+* `ED25519` (value: `"ED25519"`)
+
+* `SECP256K1` (value: `"SECP256K1"`)
+
+* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
+
+
+
+
diff --git a/docs/GetStakingEstimationFee201Response.md b/docs/GetStakingEstimationFee201Response.md
index 644036ef..47b121a3 100644
--- a/docs/GetStakingEstimationFee201Response.md
+++ b/docs/GetStakingEstimationFee201Response.md
@@ -4,6 +4,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
+**fee** | [**EstimatedFee**](EstimatedFee.md) | | [optional]
+**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
**fee_amount** | **String** | The amount of the estimated fee. | [optional]
**token_id** | **String** | The token ID of the staking fee. | [optional]
diff --git a/docs/GetStakingEstimationFeeRequest.md b/docs/GetStakingEstimationFeeRequest.md
index 7ab1361b..4ca2f28f 100644
--- a/docs/GetStakingEstimationFeeRequest.md
+++ b/docs/GetStakingEstimationFeeRequest.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**pool_id** | **String** | The ID of the staking pool. |
**amount** | **String** | The amount to withdraw. |
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
-**extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
+**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | |
**staking_id** | **String** | The ID of the corresponding staking position. |
**address** | **String** | The withdrawal address. |
diff --git a/docs/GetToken200Response.md b/docs/GetToken2XXResponse.md
similarity index 96%
rename from docs/GetToken200Response.md
rename to docs/GetToken2XXResponse.md
index d36e4e65..57f4e70e 100644
--- a/docs/GetToken200Response.md
+++ b/docs/GetToken2XXResponse.md
@@ -1,4 +1,4 @@
-# CoboWaas2.GetToken200Response
+# CoboWaas2.GetToken2XXResponse
## Properties
diff --git a/docs/GetToken4XXResponse.md b/docs/GetToken4XXResponse.md
index 6b04d091..f6405930 100644
--- a/docs/GetToken4XXResponse.md
+++ b/docs/GetToken4XXResponse.md
@@ -5,6 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**error** | **String** | The error name. |
-**error_message** | **String** | The error description. | [optional]
+**error_description** | **String** | The error description. |
diff --git a/docs/MpcTransferSource.md b/docs/MpcTransferSource.md
index 3e6a0806..efa1b040 100644
--- a/docs/MpcTransferSource.md
+++ b/docs/MpcTransferSource.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
**wallet_id** | **String** | The wallet ID. |
-**address** | **String** | The wallet address. | [optional]
+**address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. | [optional]
**included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
**excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
diff --git a/docs/OAuthApi.md b/docs/OAuthApi.md
index d1c5b1bc..32a4896b 100644
--- a/docs/OAuthApi.md
+++ b/docs/OAuthApi.md
@@ -11,7 +11,7 @@ Method | HTTP request | Description
## getToken
-> GetToken200Response getToken(client_id, org_id, grant_type)
+> GetToken2XXResponse getToken(client_id, org_id, grant_type)
Get Org Access Token
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
### Return type
-[**GetToken200Response**](GetToken200Response.md)
+[**GetToken2XXResponse**](GetToken2XXResponse.md)
### Authorization
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
## refreshToken
-> RefreshToken201Response refreshToken(RefreshTokenRequest)
+> RefreshToken2XXResponse refreshToken(RefreshTokenRequest)
Refresh Org Access Token
@@ -101,7 +101,7 @@ Name | Type | Description | Notes
### Return type
-[**RefreshToken201Response**](RefreshToken201Response.md)
+[**RefreshToken2XXResponse**](RefreshToken2XXResponse.md)
### Authorization
diff --git a/docs/PoolDetailsAllOfValidatorsInfo.md b/docs/PoolDetailsAllOfValidatorsInfo.md
index 933500db..d91b8d7f 100644
--- a/docs/PoolDetailsAllOfValidatorsInfo.md
+++ b/docs/PoolDetailsAllOfValidatorsInfo.md
@@ -21,6 +21,8 @@ Name | Type | Description | Notes
* `Cosmos` (value: `"Cosmos"`)
+* `Ethereum` (value: `"Ethereum"`)
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
diff --git a/docs/RefreshToken201Response.md b/docs/RefreshToken2XXResponse.md
similarity index 96%
rename from docs/RefreshToken201Response.md
rename to docs/RefreshToken2XXResponse.md
index 95b1b5f2..2e32d656 100644
--- a/docs/RefreshToken201Response.md
+++ b/docs/RefreshToken2XXResponse.md
@@ -1,4 +1,4 @@
-# CoboWaas2.RefreshToken201Response
+# CoboWaas2.RefreshToken2XXResponse
## Properties
diff --git a/docs/RoleScopes.md b/docs/RoleScopes.md
new file mode 100644
index 00000000..b087723d
--- /dev/null
+++ b/docs/RoleScopes.md
@@ -0,0 +1,10 @@
+# CoboWaas2.RoleScopes
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**role_name** | **String** | The user role associated with this API key. |
+**scopes** | [**Scopes**](Scopes.md) | |
+
+
diff --git a/docs/Scopes.md b/docs/Scopes.md
new file mode 100644
index 00000000..608be1a9
--- /dev/null
+++ b/docs/Scopes.md
@@ -0,0 +1,13 @@
+# CoboWaas2.Scopes
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**wallet_types** | [**[WalletType]**](WalletType.md) | The list of wallet types that this API key can access. Possible values include: - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) | [optional]
+**wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | The list of wallet sub-types that this API key can access. Possible values include: - `Asset`: Custodial Wallets (Asset Wallets). - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets). - `User-Controlled`: MPC Wallets (User-Controlled Wallets). - `Safe{Wallet}`: Smart Contract Wallets (Safe). - `Main`: Exchange Wallets (Main Account). - `Sub`: Exchange Wallets (Sub Account). | [optional]
+**wallet_ids** | **[String]** | The list of wallet IDs that this API key can access. | [optional]
+**vault_ids** | **[String]** | (Applicable to MPC Wallets only) The list of vault IDs that this API key can access. | [optional]
+**project_ids** | **[String]** | (Applicable to MPC Wallets only) The list of project IDs that this API key can access. | [optional]
+
+
diff --git a/docs/StakingPoolType.md b/docs/StakingPoolType.md
index 87ad4272..2e43a02c 100644
--- a/docs/StakingPoolType.md
+++ b/docs/StakingPoolType.md
@@ -5,6 +5,8 @@
* `Babylon` (value: `"Babylon"`)
+* `ETHBeacon` (value: `"ETHBeacon"`)
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
diff --git a/docs/TransactionEvmEip1559Fee.md b/docs/TransactionEvmEip1559Fee.md
index ba4eb2bb..1f03b94f 100644
--- a/docs/TransactionEvmEip1559Fee.md
+++ b/docs/TransactionEvmEip1559Fee.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. | [optional]
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. | [optional]
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
**fee_type** | [**FeeType**](FeeType.md) | |
**token_id** | **String** | The token ID of the transaction fee. | [optional]
**effective_gas_price** | **String** | The gas price (gas fee per gas unit) on the chain, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions. | [optional]
diff --git a/docs/TransactionEvmLegacyFee.md b/docs/TransactionEvmLegacyFee.md
index a948b128..d0b07433 100644
--- a/docs/TransactionEvmLegacyFee.md
+++ b/docs/TransactionEvmLegacyFee.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. | [optional]
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
**fee_type** | [**FeeType**](FeeType.md) | |
**token_id** | **String** | The token ID of the transaction fee. | [optional]
**fee_used** | **String** | The transaction fee. | [optional]
diff --git a/docs/TransactionFee.md b/docs/TransactionFee.md
index 01e6861c..47ff8c65 100644
--- a/docs/TransactionFee.md
+++ b/docs/TransactionFee.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
**gas_used** | **String** | The gas units used in the transaction. | [optional]
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. | [optional]
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. | [optional]
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. | [optional]
**max_fee_amount** | **String** | The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee. | [optional]
**fee_rate** | **String** | The fee rate in sat/vByte. The fee rate represents the satoshis you are willing to pay for each byte of data that your transaction will consume on the blockchain. | [optional]
diff --git a/docs/TransactionRbfSource.md b/docs/TransactionRbfSource.md
index 3e3c6ad0..71130f80 100644
--- a/docs/TransactionRbfSource.md
+++ b/docs/TransactionRbfSource.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
**wallet_id** | **String** | The wallet ID. |
-**address** | **String** | The wallet address. | [optional]
+**address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. | [optional]
**included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
**excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
diff --git a/docs/TransactionRequestEvmEip1559Fee.md b/docs/TransactionRequestEvmEip1559Fee.md
index d711e538..d29a6bba 100644
--- a/docs/TransactionRequestEvmEip1559Fee.md
+++ b/docs/TransactionRequestEvmEip1559Fee.md
@@ -8,6 +8,6 @@ Name | Type | Description | Notes
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
**fee_type** | [**FeeType**](FeeType.md) | |
**token_id** | **String** | The token ID of the transaction fee. |
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
diff --git a/docs/TransactionRequestEvmLegacyFee.md b/docs/TransactionRequestEvmLegacyFee.md
index cbba83b6..91bea3eb 100644
--- a/docs/TransactionRequestEvmLegacyFee.md
+++ b/docs/TransactionRequestEvmLegacyFee.md
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. |
**fee_type** | [**FeeType**](FeeType.md) | |
**token_id** | **String** | The token ID of the transaction fee. |
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
diff --git a/docs/TransactionRequestFee.md b/docs/TransactionRequestFee.md
index 69e42591..ed1b8808 100644
--- a/docs/TransactionRequestFee.md
+++ b/docs/TransactionRequestFee.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**fee_type** | [**FeeType**](FeeType.md) | |
**token_id** | **String** | The token ID of the transaction fee. |
**max_fee_amount** | **String** | The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee. | [optional]
-**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to '21000']
+**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. |
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. |
diff --git a/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md b/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md
index ed4581f0..eef7a378 100644
--- a/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md
+++ b/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md
@@ -6,6 +6,5 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address** | **String** | The destination address. | [optional]
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. | [optional]
-**script** | **String** | The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent. | [optional]
diff --git a/docs/TransferDestination.md b/docs/TransferDestination.md
index 4ab4c6c4..7cbceeae 100644
--- a/docs/TransferDestination.md
+++ b/docs/TransferDestination.md
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
**account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
**utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
**change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
-**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
-**force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`. | [optional]
+**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
+**force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
**wallet_id** | **String** | The wallet ID. |
**trading_account_type** | **String** | The trading account type. |
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
diff --git a/docs/WalletsApi.md b/docs/WalletsApi.md
index 0a7621ef..db261130 100644
--- a/docs/WalletsApi.md
+++ b/docs/WalletsApi.md
@@ -4,12 +4,12 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**checkAddressChainsValidity**](WalletsApi.md#checkAddressChainsValidity) | **GET** /wallets/check_address_chains_validity | Check address validity across chains
[**checkAddressValidity**](WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
[**checkAddressesValidity**](WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
[**createAddress**](WalletsApi.md#createAddress) | **POST** /wallets/{wallet_id}/addresses | Create addresses in wallet
[**createWallet**](WalletsApi.md#createWallet) | **POST** /wallets | Create wallet
[**deleteWalletById**](WalletsApi.md#deleteWalletById) | **POST** /wallets/{wallet_id}/delete | Delete wallet
-[**getAddress**](WalletsApi.md#getAddress) | **GET** /wallets/{wallet_id}/addresses/{address} | Get address information
[**getChainById**](WalletsApi.md#getChainById) | **GET** /wallets/chains/{chain_id} | Get chain information
[**getMaxTransferableValue**](WalletsApi.md#getMaxTransferableValue) | **GET** /wallets/{wallet_id}/max_transferable_value | Get maximum transferable value
[**getTokenById**](WalletsApi.md#getTokenById) | **GET** /wallets/tokens/{token_id} | Get token information
@@ -29,6 +29,58 @@ Method | HTTP request | Description
+## checkAddressChainsValidity
+
+> [CheckAddressChainsValidity200ResponseInner] checkAddressChainsValidity(address, chain_ids)
+
+Check address validity across chains
+
+This operation verifies if a given address is valid for a list of chains.
+
+### Example
+
+```javascript
+const CoboWaas2 = require('@cobo/cobo-waas2');
+// Initialize the API client
+const apiClient = CoboWaas2.ApiClient.instance
+// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
+apiClient.setEnv(CoboWaas2.Env.DEV);
+// Replace `` with your private key
+apiClient.setPrivateKey("");
+// Call the API
+const apiInstance = new CoboWaas2.WalletsApi();
+const address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";
+const chain_ids = "BTC,ETH";
+apiInstance.checkAddressChainsValidity(address, chain_ids).then((data) => {
+ console.log('API called successfully. Returned data: ' + data);
+}, (error) => {
+ console.error(error);
+});
+
+```
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **address** | **String**| The wallet address. |
+ **chain_ids** | **String**| A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
+
+### Return type
+
+[**[CheckAddressChainsValidity200ResponseInner]**](CheckAddressChainsValidity200ResponseInner.md)
+
+### Authorization
+
+[CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
## checkAddressValidity
> CheckAddressValidity200Response checkAddressValidity(chain_id, address)
@@ -289,58 +341,6 @@ Name | Type | Description | Notes
- **Accept**: application/json
-## getAddress
-
-> [AddressInfo] getAddress(wallet_id, address)
-
-Get address information
-
-This operation retrieves the detailed information about a specified address within a wallet.
-
-### Example
-
-```javascript
-const CoboWaas2 = require('@cobo/cobo-waas2');
-// Initialize the API client
-const apiClient = CoboWaas2.ApiClient.instance
-// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
-apiClient.setEnv(CoboWaas2.Env.DEV);
-// Replace `` with your private key
-apiClient.setPrivateKey("");
-// Call the API
-const apiInstance = new CoboWaas2.WalletsApi();
-const wallet_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
-const address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";
-apiInstance.getAddress(wallet_id, address).then((data) => {
- console.log('API called successfully. Returned data: ' + data);
-}, (error) => {
- console.error(error);
-});
-
-```
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **wallet_id** | **String**| The wallet ID. |
- **address** | **String**| The wallet address. |
-
-### Return type
-
-[**[AddressInfo]**](AddressInfo.md)
-
-### Authorization
-
-[CoboAuth](../README.md#CoboAuth)
-
-### HTTP request headers
-
-- **Content-Type**: Not defined
-- **Accept**: application/json
-
-
## getChainById
> ChainInfo getChainById(chain_id)
@@ -594,7 +594,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**wallet_id** | **String**| The wallet ID. |
**chain_ids** | **String**| A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). | [optional]
- **addresses** | **String**| A list of wallet addresses, separated by comma. | [optional]
+ **addresses** | **String**| A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\"). | [optional]
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
**before** | **String**| An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. | [optional]
**after** | **String**| An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. | [optional]
diff --git a/package.json b/package.json
index b9d689e9..80ed538c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@cobo/cobo-waas2",
- "version": "1.5.0",
+ "version": "1.6.0",
"description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo’s WaaS API offering. It enables you to access Cobo’s full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo’s [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](/v2/guides/overview/introduction). ",
"license": "GPL 2.0",
"main": "dist/index.js",
@@ -15,6 +15,7 @@
"dependencies": {
"@babel/cli": "^7.0.0",
"crypto-js": "^4.2.0",
+ "express": "^4.21.1",
"superagent": "^5.3.0",
"tweetnacl": "^1.0.3"
},
diff --git a/src/ApiClient.js b/src/ApiClient.js
index 5639afeb..19612cc9 100644
--- a/src/ApiClient.js
+++ b/src/ApiClient.js
@@ -57,7 +57,7 @@ class ApiClient {
* @default {}
*/
this.defaultHeaders = {
- 'User-Agent': 'cobo-waas2-js-sdk/1.5.0'
+ 'User-Agent': 'cobo-waas2-js-sdk/1.6.0'
};
/**
diff --git a/src/ServerDemo.js b/src/ServerDemo.js
new file mode 100644
index 00000000..25e457b1
--- /dev/null
+++ b/src/ServerDemo.js
@@ -0,0 +1,87 @@
+const express = require("express");
+const nacl = require("tweetnacl");
+const CryptoJS = require("crypto-js");
+
+// Logging setup
+const logger = console;
+
+// Public keys for different environments
+const pubKeys = {
+ DEV: "a04ea1d5fa8da71f1dcfccf972b9c4eba0a2d8aba1f6da26f49977b08a0d2718",
+ PROD: "8d4a482641adb2a34b726f05827dba9a9653e5857469b8749052bf4458a86729"
+};
+
+const pubkey = pubKeys["DEV"];
+
+// Express setup
+const app = express();
+app.use(express.json({
+ verify: (req, res, buf) => {
+ req.rawBody = buf.toString();
+ }
+}));
+
+// Helper function to verify the request signature
+function verifyRequest(req, res) {
+ const signature = req.headers['biz-resp-signature'];
+ const bizTimestamp = req.headers['biz-timestamp'];
+
+ if (!signature || !bizTimestamp) {
+ res.status(401).send('Missing signature or timestamp');
+ return false;
+ }
+
+ const message = `${req.rawBody}|${bizTimestamp}`;
+ if (!verifySignature(pubkey, signature, message)) {
+ res.status(401).send('Signature verification failed');
+ return false;
+ }
+ return true;
+}
+
+// Webhook endpoint
+app.post("/api/webhook", (req, res) => {
+ if (!verifyRequest(req, res)) return;
+
+ const event = req.body;
+ logger.info(event);
+ logger.info(event.data);
+ // Add your business logic here
+ res.sendStatus(201);
+});
+
+// Callback endpoint
+app.post("/api/callback", (req, res) => {
+ if (!verifyRequest(req, res)) return;
+
+ const tx = req.body;
+ logger.info(tx);
+ // Add your callback logic here
+ res.send("ok");
+});
+
+// Signature verification function
+function verifySignature(publicKey, signature, message) {
+ const vk = Buffer.from(publicKey, "hex");
+
+ // Double SHA-256 hash of the message
+ const hash2String = CryptoJS.SHA256(CryptoJS.SHA256(message)).toString(CryptoJS.enc.Hex);
+ try {
+ const signatureBuffer = Buffer.from(signature, "hex");
+ const messageBuffer = Buffer.from(hash2String, "hex");
+ return nacl.sign.detached.verify(
+ messageBuffer,
+ signatureBuffer,
+ vk
+ );
+ } catch (error) {
+ logger.error("Signature verification failed", error);
+ return false;
+ }
+}
+
+// Server startup
+const PORT = 8000;
+app.listen(PORT, () => {
+ logger.info(`Server running on http://localhost:${PORT}`);
+});
diff --git a/src/api/DevelopersApi.js b/src/api/DevelopersApi.js
new file mode 100644
index 00000000..dc1422a4
--- /dev/null
+++ b/src/api/DevelopersApi.js
@@ -0,0 +1,80 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from "../ApiClient";
+import ErrorResponse from '../model/ErrorResponse';
+import GetApiKeyInfo200Response from '../model/GetApiKeyInfo200Response';
+
+/**
+* Developers service.
+* @module api/DevelopersApi
+*/
+export default class DevelopersApi {
+
+ /**
+ * Constructs a new DevelopersApi.
+ * @alias module:api/DevelopersApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ constructor(apiClient) {
+ this.apiClient = apiClient || ApiClient.instance;
+ }
+
+
+
+ /**
+ * Get API key information
+ * This operation retrieves the details of the API key that you are using.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiKeyInfo200Response} and HTTP response
+ */
+ getApiKeyInfoWithHttpInfo() {
+ let postBody = null;
+ if (postBody && postBody.toJSON) {
+ postBody = postBody.toJSON()
+ }
+
+ let pathParams = {
+ };
+ let queryParams = {
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['CoboAuth'];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = GetApiKeyInfo200Response;
+ return this.apiClient.callApi(
+ '/developers/api_key_info', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * Get API key information
+ * This operation retrieves the details of the API key that you are using.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiKeyInfo200Response}
+ */
+ getApiKeyInfo() {
+ return this.getApiKeyInfoWithHttpInfo()
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
+}
diff --git a/src/api/OAuthApi.js b/src/api/OAuthApi.js
index 8bddc761..86bb7224 100644
--- a/src/api/OAuthApi.js
+++ b/src/api/OAuthApi.js
@@ -12,9 +12,9 @@
import ApiClient from "../ApiClient";
import ErrorResponse from '../model/ErrorResponse';
-import GetToken200Response from '../model/GetToken200Response';
+import GetToken2XXResponse from '../model/GetToken2XXResponse';
import GetToken4XXResponse from '../model/GetToken4XXResponse';
-import RefreshToken201Response from '../model/RefreshToken201Response';
+import RefreshToken2XXResponse from '../model/RefreshToken2XXResponse';
import RefreshTokenRequest from '../model/RefreshTokenRequest';
/**
@@ -42,7 +42,7 @@ export default class OAuthApi {
* @param {String} client_id The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app.
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the organization ID from the callback message sent to the URL that was configured in the manifest file.
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetToken200Response} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetToken2XXResponse} and HTTP response
*/
getTokenWithHttpInfo(client_id, org_id, grant_type) {
let postBody = null;
@@ -77,7 +77,7 @@ export default class OAuthApi {
let authNames = ['CoboAuth'];
let contentTypes = [];
let accepts = ['application/json'];
- let returnType = GetToken200Response;
+ let returnType = GetToken2XXResponse;
return this.apiClient.callApi(
'/oauth/token', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
@@ -91,7 +91,7 @@ export default class OAuthApi {
* @param {String} client_id The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app.
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the organization ID from the callback message sent to the URL that was configured in the manifest file.
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetToken200Response}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetToken2XXResponse}
*/
getToken(client_id, org_id, grant_type) {
return this.getTokenWithHttpInfo(client_id, org_id, grant_type)
@@ -105,7 +105,7 @@ export default class OAuthApi {
* Refresh Org Access Token
* This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key. This operation allows Cobo Portal Apps to obtain a new Org Access Token with a specified client ID, grant type and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new Org Access Token and a new Refresh Token.
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an Org Access Token.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshToken201Response} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshToken2XXResponse} and HTTP response
*/
refreshTokenWithHttpInfo(RefreshTokenRequest) {
let postBody = RefreshTokenRequest;
@@ -129,7 +129,7 @@ export default class OAuthApi {
let authNames = ['CoboAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
- let returnType = RefreshToken201Response;
+ let returnType = RefreshToken2XXResponse;
return this.apiClient.callApi(
'/oauth/token', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
@@ -141,7 +141,7 @@ export default class OAuthApi {
* Refresh Org Access Token
* This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key. This operation allows Cobo Portal Apps to obtain a new Org Access Token with a specified client ID, grant type and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new Org Access Token and a new Refresh Token.
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an Org Access Token.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshToken201Response}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshToken2XXResponse}
*/
refreshToken(RefreshTokenRequest) {
return this.refreshTokenWithHttpInfo(RefreshTokenRequest)
diff --git a/src/api/WalletsApi.js b/src/api/WalletsApi.js
index 6343b2ad..dd6dbfec 100644
--- a/src/api/WalletsApi.js
+++ b/src/api/WalletsApi.js
@@ -13,6 +13,7 @@
import ApiClient from "../ApiClient";
import AddressInfo from '../model/AddressInfo';
import ChainInfo from '../model/ChainInfo';
+import CheckAddressChainsValidity200ResponseInner from '../model/CheckAddressChainsValidity200ResponseInner';
import CheckAddressValidity200Response from '../model/CheckAddressValidity200Response';
import CheckAddressesValidity200ResponseInner from '../model/CheckAddressesValidity200ResponseInner';
import CreateAddressRequest from '../model/CreateAddressRequest';
@@ -54,6 +55,64 @@ export default class WalletsApi {
+ /**
+ * Check address validity across chains
+ * This operation verifies if a given address is valid for a list of chains.
+ * @param {String} address The wallet address.
+ * @param {String} chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response
+ */
+ checkAddressChainsValidityWithHttpInfo(address, chain_ids) {
+ let postBody = null;
+ if (postBody && postBody.toJSON) {
+ postBody = postBody.toJSON()
+ }
+ // verify the required parameter 'address' is set
+ if (address === undefined || address === null) {
+ throw new Error("Missing the required parameter 'address' when calling checkAddressChainsValidity");
+ }
+ // verify the required parameter 'chain_ids' is set
+ if (chain_ids === undefined || chain_ids === null) {
+ throw new Error("Missing the required parameter 'chain_ids' when calling checkAddressChainsValidity");
+ }
+
+ let pathParams = {
+ };
+ let queryParams = {
+ 'address': address,
+ 'chain_ids': chain_ids
+ };
+ let headerParams = {
+ };
+ let formParams = {
+ };
+
+ let authNames = ['CoboAuth'];
+ let contentTypes = [];
+ let accepts = ['application/json'];
+ let returnType = [CheckAddressChainsValidity200ResponseInner];
+ return this.apiClient.callApi(
+ '/wallets/check_address_chains_validity', 'GET',
+ pathParams, queryParams, headerParams, formParams, postBody,
+ authNames, contentTypes, accepts, returnType, null
+ );
+ }
+
+ /**
+ * Check address validity across chains
+ * This operation verifies if a given address is valid for a list of chains.
+ * @param {String} address The wallet address.
+ * @param {String} chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.}
+ */
+ checkAddressChainsValidity(address, chain_ids) {
+ return this.checkAddressChainsValidityWithHttpInfo(address, chain_ids)
+ .then(function(response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+
/**
* Check address validity
* This operation verifies if a given address is valid for a specific chain.
@@ -326,64 +385,6 @@ export default class WalletsApi {
}
- /**
- * Get address information
- * This operation retrieves the detailed information about a specified address within a wallet.
- * @param {String} wallet_id The wallet ID.
- * @param {String} address The wallet address.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response
- */
- getAddressWithHttpInfo(wallet_id, address) {
- let postBody = null;
- if (postBody && postBody.toJSON) {
- postBody = postBody.toJSON()
- }
- // verify the required parameter 'wallet_id' is set
- if (wallet_id === undefined || wallet_id === null) {
- throw new Error("Missing the required parameter 'wallet_id' when calling getAddress");
- }
- // verify the required parameter 'address' is set
- if (address === undefined || address === null) {
- throw new Error("Missing the required parameter 'address' when calling getAddress");
- }
-
- let pathParams = {
- 'wallet_id': wallet_id,
- 'address': address
- };
- let queryParams = {
- };
- let headerParams = {
- };
- let formParams = {
- };
-
- let authNames = ['CoboAuth'];
- let contentTypes = [];
- let accepts = ['application/json'];
- let returnType = [AddressInfo];
- return this.apiClient.callApi(
- '/wallets/{wallet_id}/addresses/{address}', 'GET',
- pathParams, queryParams, headerParams, formParams, postBody,
- authNames, contentTypes, accepts, returnType, null
- );
- }
-
- /**
- * Get address information
- * This operation retrieves the detailed information about a specified address within a wallet.
- * @param {String} wallet_id The wallet ID.
- * @param {String} address The wallet address.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.}
- */
- getAddress(wallet_id, address) {
- return this.getAddressWithHttpInfo(wallet_id, address)
- .then(function(response_and_data) {
- return response_and_data.data;
- });
- }
-
-
/**
* Get chain information
* This operation retrieves the detailed information about a specified chain.
@@ -621,7 +622,7 @@ export default class WalletsApi {
* @param {String} wallet_id The wallet ID.
* @param {Object} opts Optional parameters
* @param {String} [chain_ids] A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
- * @param {String} [addresses] A list of wallet addresses, separated by comma.
+ * @param {String} [addresses] A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\").
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
* @param {String} [before] An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
* @param {String} [after] An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
@@ -670,7 +671,7 @@ export default class WalletsApi {
* @param {String} wallet_id The wallet ID.
* @param {Object} opts Optional parameters
* @param {String} opts.chain_ids A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
- * @param {String} opts.addresses A list of wallet addresses, separated by comma.
+ * @param {String} opts.addresses A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\").
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
* @param {String} opts.before An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
* @param {String} opts.after An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
diff --git a/src/index.js b/src/index.js
index c6d9cd6a..b2fc8edd 100644
--- a/src/index.js
+++ b/src/index.js
@@ -29,6 +29,7 @@ import ApiLogDetails from './model/ApiLogDetails';
import ApiLogSummary from './model/ApiLogSummary';
import AssetBalance from './model/AssetBalance';
import AssetInfo from './model/AssetInfo';
+import BabylonStakeEstimatedFee from './model/BabylonStakeEstimatedFee';
import BabylonStakeExtra from './model/BabylonStakeExtra';
import BabylonStakingExtra from './model/BabylonStakingExtra';
import BabylonValidator from './model/BabylonValidator';
@@ -39,6 +40,7 @@ import BaseStakeSource from './model/BaseStakeSource';
import BroadcastSignedTransactions201ResponseInner from './model/BroadcastSignedTransactions201ResponseInner';
import BroadcastSignedTransactionsRequest from './model/BroadcastSignedTransactionsRequest';
import ChainInfo from './model/ChainInfo';
+import CheckAddressChainsValidity200ResponseInner from './model/CheckAddressChainsValidity200ResponseInner';
import CheckAddressValidity200Response from './model/CheckAddressValidity200Response';
import CheckAddressesValidity200ResponseInner from './model/CheckAddressesValidity200ResponseInner';
import CheckLoopTransfers200ResponseInner from './model/CheckLoopTransfers200ResponseInner';
@@ -66,6 +68,7 @@ import CreateStakeActivityRequest from './model/CreateStakeActivityRequest';
import CreateTransferTransaction201Response from './model/CreateTransferTransaction201Response';
import CreateTssRequestRequest from './model/CreateTssRequestRequest';
import CreateUnstakeActivity from './model/CreateUnstakeActivity';
+import CreateUnstakeActivityExtra from './model/CreateUnstakeActivityExtra';
import CreateUnstakeActivityRequest from './model/CreateUnstakeActivityRequest';
import CreateWalletParams from './model/CreateWalletParams';
import CreateWebhookEndpointRequest from './model/CreateWebhookEndpointRequest';
@@ -96,6 +99,10 @@ import EstimatedFee from './model/EstimatedFee';
import EstimatedFixedFee from './model/EstimatedFixedFee';
import EstimatedUtxoFee from './model/EstimatedUtxoFee';
import EstimatedUtxoFeeSlow from './model/EstimatedUtxoFeeSlow';
+import EthStakeEstimatedFee from './model/EthStakeEstimatedFee';
+import EthStakeExtra from './model/EthStakeExtra';
+import EthStakingExtra from './model/EthStakingExtra';
+import EthUnstakeExtra from './model/EthUnstakeExtra';
import EvmContractCallDestination from './model/EvmContractCallDestination';
import EvmEIP191MessageSignDestination from './model/EvmEIP191MessageSignDestination';
import EvmEIP712MessageSignDestination from './model/EvmEIP712MessageSignDestination';
@@ -113,9 +120,10 @@ import FeeGasLimit from './model/FeeGasLimit';
import FeeRate from './model/FeeRate';
import FeeType from './model/FeeType';
import FixedFeeRate from './model/FixedFeeRate';
+import GetApiKeyInfo200Response from './model/GetApiKeyInfo200Response';
import GetStakingEstimationFee201Response from './model/GetStakingEstimationFee201Response';
import GetStakingEstimationFeeRequest from './model/GetStakingEstimationFeeRequest';
-import GetToken200Response from './model/GetToken200Response';
+import GetToken2XXResponse from './model/GetToken2XXResponse';
import GetToken4XXResponse from './model/GetToken4XXResponse';
import KeyShareHolder from './model/KeyShareHolder';
import KeyShareHolderGroup from './model/KeyShareHolderGroup';
@@ -170,10 +178,11 @@ import PoolDetails from './model/PoolDetails';
import PoolDetailsAllOfValidatorsInfo from './model/PoolDetailsAllOfValidatorsInfo';
import PoolSummary from './model/PoolSummary';
import RawMessageSignDestination from './model/RawMessageSignDestination';
-import RefreshToken201Response from './model/RefreshToken201Response';
+import RefreshToken2XXResponse from './model/RefreshToken2XXResponse';
import RefreshTokenRequest from './model/RefreshTokenRequest';
import ReplaceType from './model/ReplaceType';
import RetryWebhookEventById201Response from './model/RetryWebhookEventById201Response';
+import RoleScopes from './model/RoleScopes';
import RootPubkey from './model/RootPubkey';
import SafeContractCallSource from './model/SafeContractCallSource';
import SafeTransferSource from './model/SafeTransferSource';
@@ -181,6 +190,7 @@ import SafeWallet from './model/SafeWallet';
import SafeWalletDelegates from './model/SafeWalletDelegates';
import SafeWalletDelegatesContractCall from './model/SafeWalletDelegatesContractCall';
import SafeWalletDelegatesTransfer from './model/SafeWalletDelegatesTransfer';
+import Scopes from './model/Scopes';
import SmartContractInitiator from './model/SmartContractInitiator';
import SmartContractWalletInfo from './model/SmartContractWalletInfo';
import SmartContractWalletOperationType from './model/SmartContractWalletOperationType';
@@ -290,6 +300,7 @@ import WebhookEventLog from './model/WebhookEventLog';
import WebhookEventStatus from './model/WebhookEventStatus';
import WebhookEventType from './model/WebhookEventType';
import AddressBooksApi from './api/AddressBooksApi';
+import DevelopersApi from './api/DevelopersApi';
import DevelopersWebhooksApi from './api/DevelopersWebhooksApi';
import OAuthApi from './api/OAuthApi';
import StakingsApi from './api/StakingsApi';
@@ -330,7 +341,7 @@ import WalletsSmartContractWalletsApi from './api/WalletsSmartContractWalletsApi
*
*
* @module index
-* @version 1.5.0
+* @version 1.6.0
*/
export {
Env,
@@ -448,6 +459,12 @@ export {
*/
AssetInfo,
+ /**
+ * The BabylonStakeEstimatedFee model constructor.
+ * @property {module:model/BabylonStakeEstimatedFee}
+ */
+ BabylonStakeEstimatedFee,
+
/**
* The BabylonStakeExtra model constructor.
* @property {module:model/BabylonStakeExtra}
@@ -508,6 +525,12 @@ export {
*/
ChainInfo,
+ /**
+ * The CheckAddressChainsValidity200ResponseInner model constructor.
+ * @property {module:model/CheckAddressChainsValidity200ResponseInner}
+ */
+ CheckAddressChainsValidity200ResponseInner,
+
/**
* The CheckAddressValidity200Response model constructor.
* @property {module:model/CheckAddressValidity200Response}
@@ -670,6 +693,12 @@ export {
*/
CreateUnstakeActivity,
+ /**
+ * The CreateUnstakeActivityExtra model constructor.
+ * @property {module:model/CreateUnstakeActivityExtra}
+ */
+ CreateUnstakeActivityExtra,
+
/**
* The CreateUnstakeActivityRequest model constructor.
* @property {module:model/CreateUnstakeActivityRequest}
@@ -850,6 +879,30 @@ export {
*/
EstimatedUtxoFeeSlow,
+ /**
+ * The EthStakeEstimatedFee model constructor.
+ * @property {module:model/EthStakeEstimatedFee}
+ */
+ EthStakeEstimatedFee,
+
+ /**
+ * The EthStakeExtra model constructor.
+ * @property {module:model/EthStakeExtra}
+ */
+ EthStakeExtra,
+
+ /**
+ * The EthStakingExtra model constructor.
+ * @property {module:model/EthStakingExtra}
+ */
+ EthStakingExtra,
+
+ /**
+ * The EthUnstakeExtra model constructor.
+ * @property {module:model/EthUnstakeExtra}
+ */
+ EthUnstakeExtra,
+
/**
* The EvmContractCallDestination model constructor.
* @property {module:model/EvmContractCallDestination}
@@ -952,6 +1005,12 @@ export {
*/
FixedFeeRate,
+ /**
+ * The GetApiKeyInfo200Response model constructor.
+ * @property {module:model/GetApiKeyInfo200Response}
+ */
+ GetApiKeyInfo200Response,
+
/**
* The GetStakingEstimationFee201Response model constructor.
* @property {module:model/GetStakingEstimationFee201Response}
@@ -965,10 +1024,10 @@ export {
GetStakingEstimationFeeRequest,
/**
- * The GetToken200Response model constructor.
- * @property {module:model/GetToken200Response}
+ * The GetToken2XXResponse model constructor.
+ * @property {module:model/GetToken2XXResponse}
*/
- GetToken200Response,
+ GetToken2XXResponse,
/**
* The GetToken4XXResponse model constructor.
@@ -1295,10 +1354,10 @@ export {
RawMessageSignDestination,
/**
- * The RefreshToken201Response model constructor.
- * @property {module:model/RefreshToken201Response}
+ * The RefreshToken2XXResponse model constructor.
+ * @property {module:model/RefreshToken2XXResponse}
*/
- RefreshToken201Response,
+ RefreshToken2XXResponse,
/**
* The RefreshTokenRequest model constructor.
@@ -1318,6 +1377,12 @@ export {
*/
RetryWebhookEventById201Response,
+ /**
+ * The RoleScopes model constructor.
+ * @property {module:model/RoleScopes}
+ */
+ RoleScopes,
+
/**
* The RootPubkey model constructor.
* @property {module:model/RootPubkey}
@@ -1360,6 +1425,12 @@ export {
*/
SafeWalletDelegatesTransfer,
+ /**
+ * The Scopes model constructor.
+ * @property {module:model/Scopes}
+ */
+ Scopes,
+
/**
* The SmartContractInitiator model constructor.
* @property {module:model/SmartContractInitiator}
@@ -2014,6 +2085,12 @@ export {
*/
AddressBooksApi,
+ /**
+ * The DevelopersApi service constructor.
+ * @property {module:api/DevelopersApi}
+ */
+ DevelopersApi,
+
/**
* The DevelopersWebhooksApi service constructor.
* @property {module:api/DevelopersWebhooksApi}
diff --git a/src/model/AddressTransferDestination.js b/src/model/AddressTransferDestination.js
index 56236b1f..531cc417 100644
--- a/src/model/AddressTransferDestination.js
+++ b/src/model/AddressTransferDestination.js
@@ -135,13 +135,13 @@ AddressTransferDestination.prototype['utxo_outputs'] = undefined;
AddressTransferDestination.prototype['change_address'] = undefined;
/**
- * Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
+ * Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
* @member {Boolean} force_internal
*/
AddressTransferDestination.prototype['force_internal'] = undefined;
/**
- * Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
+ * Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
* @member {Boolean} force_external
*/
AddressTransferDestination.prototype['force_external'] = undefined;
diff --git a/src/model/AddressTransferDestinationUtxoOutputsInner.js b/src/model/AddressTransferDestinationUtxoOutputsInner.js
index 32e94d70..8b854cd9 100644
--- a/src/model/AddressTransferDestinationUtxoOutputsInner.js
+++ b/src/model/AddressTransferDestinationUtxoOutputsInner.js
@@ -20,10 +20,11 @@ class AddressTransferDestinationUtxoOutputsInner {
* Constructs a new AddressTransferDestinationUtxoOutputsInner
.
* @alias module:model/AddressTransferDestinationUtxoOutputsInner
* @param address {String} The destination address.
+ * @param amount {String} The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
*/
- constructor(address) {
+ constructor(address, amount) {
- AddressTransferDestinationUtxoOutputsInner.initialize(this, address);
+ AddressTransferDestinationUtxoOutputsInner.initialize(this, address, amount);
}
/**
@@ -31,8 +32,9 @@ class AddressTransferDestinationUtxoOutputsInner {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, address) {
+ static initialize(obj, address, amount) {
obj['address'] = address;
+ obj['amount'] = amount;
}
/**
@@ -52,9 +54,6 @@ class AddressTransferDestinationUtxoOutputsInner {
if (data.hasOwnProperty('amount')) {
obj['amount'] = ApiClient.convertToType(data['amount'], 'String');
}
- if (data.hasOwnProperty('script')) {
- obj['script'] = ApiClient.convertToType(data['script'], 'String');
- }
}
return obj;
}
@@ -79,10 +78,6 @@ class AddressTransferDestinationUtxoOutputsInner {
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
}
- // ensure the json data is a string
- if (data['script'] && !(typeof data['script'] === 'string' || data['script'] instanceof String)) {
- throw new Error("Expected the field `script` to be a primitive type in the JSON string but got " + data['script']);
- }
return true;
}
@@ -90,7 +85,7 @@ class AddressTransferDestinationUtxoOutputsInner {
}
-AddressTransferDestinationUtxoOutputsInner.RequiredProperties = ["address"];
+AddressTransferDestinationUtxoOutputsInner.RequiredProperties = ["address", "amount"];
/**
* The destination address.
@@ -104,12 +99,6 @@ AddressTransferDestinationUtxoOutputsInner.prototype['address'] = undefined;
*/
AddressTransferDestinationUtxoOutputsInner.prototype['amount'] = undefined;
-/**
- * The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent.
- * @member {String} script
- */
-AddressTransferDestinationUtxoOutputsInner.prototype['script'] = undefined;
-
diff --git a/src/model/BabylonStakeEstimatedFee.js b/src/model/BabylonStakeEstimatedFee.js
new file mode 100644
index 00000000..d5f9c1de
--- /dev/null
+++ b/src/model/BabylonStakeEstimatedFee.js
@@ -0,0 +1,116 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import FeeType from './FeeType';
+import StakingPoolType from './StakingPoolType';
+
+/**
+ * The BabylonStakeEstimatedFee model module.
+ * @module model/BabylonStakeEstimatedFee
+ */
+class BabylonStakeEstimatedFee {
+ /**
+ * Constructs a new BabylonStakeEstimatedFee
.
+ * @alias module:model/BabylonStakeEstimatedFee
+ */
+ constructor() {
+
+ BabylonStakeEstimatedFee.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BabylonStakeEstimatedFee
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BabylonStakeEstimatedFee} obj Optional instance to populate.
+ * @return {module:model/BabylonStakeEstimatedFee} The populated BabylonStakeEstimatedFee
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BabylonStakeEstimatedFee();
+
+ if (data.hasOwnProperty('pool_type')) {
+ obj['pool_type'] = StakingPoolType.constructFromObject(data['pool_type']);
+ }
+ if (data.hasOwnProperty('fee_type')) {
+ obj['fee_type'] = FeeType.constructFromObject(data['fee_type']);
+ }
+ if (data.hasOwnProperty('fee_amount')) {
+ obj['fee_amount'] = ApiClient.convertToType(data['fee_amount'], 'String');
+ }
+ if (data.hasOwnProperty('token_id')) {
+ obj['token_id'] = ApiClient.convertToType(data['token_id'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BabylonStakeEstimatedFee
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BabylonStakeEstimatedFee
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['fee_amount'] && !(typeof data['fee_amount'] === 'string' || data['fee_amount'] instanceof String)) {
+ throw new Error("Expected the field `fee_amount` to be a primitive type in the JSON string but got " + data['fee_amount']);
+ }
+ // ensure the json data is a string
+ if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
+ throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+BabylonStakeEstimatedFee.prototype['pool_type'] = undefined;
+
+/**
+ * @member {module:model/FeeType} fee_type
+ */
+BabylonStakeEstimatedFee.prototype['fee_type'] = undefined;
+
+/**
+ * The amount of the estimated fee.
+ * @member {String} fee_amount
+ */
+BabylonStakeEstimatedFee.prototype['fee_amount'] = undefined;
+
+/**
+ * The token ID of the staking fee.
+ * @member {String} token_id
+ */
+BabylonStakeEstimatedFee.prototype['token_id'] = undefined;
+
+
+
+
+
+
+export default BabylonStakeEstimatedFee;
+
diff --git a/src/model/BabylonValidator.js b/src/model/BabylonValidator.js
index d3ca343b..d9ec1852 100644
--- a/src/model/BabylonValidator.js
+++ b/src/model/BabylonValidator.js
@@ -191,6 +191,12 @@ BabylonValidator['SupportedPosChainsEnum'] = {
*/
"Cosmos": "Cosmos",
+ /**
+ * value: "Ethereum"
+ * @const
+ */
+ "Ethereum": "Ethereum",
+
/**
* value: "unknown_default_open_api"
* @const
diff --git a/src/model/CheckAddressChainsValidity200ResponseInner.js b/src/model/CheckAddressChainsValidity200ResponseInner.js
new file mode 100644
index 00000000..bab2e128
--- /dev/null
+++ b/src/model/CheckAddressChainsValidity200ResponseInner.js
@@ -0,0 +1,104 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The CheckAddressChainsValidity200ResponseInner model module.
+ * @module model/CheckAddressChainsValidity200ResponseInner
+ */
+class CheckAddressChainsValidity200ResponseInner {
+ /**
+ * Constructs a new CheckAddressChainsValidity200ResponseInner
.
+ * @alias module:model/CheckAddressChainsValidity200ResponseInner
+ * @param chain_id {String} The chain ID, which is the unique identifier of a blockchain.
+ * @param validity {Boolean} Whether the address is valid for the specified chain. - `true`: The address is valid. - `false`: The address is invalid.
+ */
+ constructor(chain_id, validity) {
+
+ CheckAddressChainsValidity200ResponseInner.initialize(this, chain_id, validity);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, chain_id, validity) {
+ obj['chain_id'] = chain_id;
+ obj['validity'] = validity;
+ }
+
+ /**
+ * Constructs a CheckAddressChainsValidity200ResponseInner
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CheckAddressChainsValidity200ResponseInner} obj Optional instance to populate.
+ * @return {module:model/CheckAddressChainsValidity200ResponseInner} The populated CheckAddressChainsValidity200ResponseInner
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CheckAddressChainsValidity200ResponseInner();
+
+ if (data.hasOwnProperty('chain_id')) {
+ obj['chain_id'] = ApiClient.convertToType(data['chain_id'], 'String');
+ }
+ if (data.hasOwnProperty('validity')) {
+ obj['validity'] = ApiClient.convertToType(data['validity'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CheckAddressChainsValidity200ResponseInner
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CheckAddressChainsValidity200ResponseInner
.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of CheckAddressChainsValidity200ResponseInner.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
+ throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
+ }
+
+ return true;
+ }
+
+
+}
+
+CheckAddressChainsValidity200ResponseInner.RequiredProperties = ["chain_id", "validity"];
+
+/**
+ * The chain ID, which is the unique identifier of a blockchain.
+ * @member {String} chain_id
+ */
+CheckAddressChainsValidity200ResponseInner.prototype['chain_id'] = undefined;
+
+/**
+ * Whether the address is valid for the specified chain. - `true`: The address is valid. - `false`: The address is invalid.
+ * @member {Boolean} validity
+ */
+CheckAddressChainsValidity200ResponseInner.prototype['validity'] = undefined;
+
+
+
+
+
+
+export default CheckAddressChainsValidity200ResponseInner;
+
diff --git a/src/model/CreateSmartContractWalletParams.js b/src/model/CreateSmartContractWalletParams.js
index 7bfb9c6a..c62419fb 100644
--- a/src/model/CreateSmartContractWalletParams.js
+++ b/src/model/CreateSmartContractWalletParams.js
@@ -37,7 +37,7 @@ class CreateSmartContractWalletParams {
if (discriminatorValue) {
switch(discriminatorValue) {
- case "Safe":
+ case "Safe{Wallet}":
this.actualInstance = CreateSafeWalletParams.constructFromObject(instance);
match++;
break;
diff --git a/src/model/CreateStakeActivityExtra.js b/src/model/CreateStakeActivityExtra.js
index 98582ec3..5d785d2f 100644
--- a/src/model/CreateStakeActivityExtra.js
+++ b/src/model/CreateStakeActivityExtra.js
@@ -11,6 +11,7 @@
import ApiClient from '../ApiClient';
import BabylonStakeExtra from './BabylonStakeExtra';
+import EthStakeExtra from './EthStakeExtra';
import StakingPoolType from './StakingPoolType';
/**
@@ -21,7 +22,7 @@ class CreateStakeActivityExtra {
/**
* Constructs a new CreateStakeActivityExtra
.
* @alias module:model/CreateStakeActivityExtra
- * @param {(module:model/BabylonStakeExtra)} instance The actual instance to initialize CreateStakeActivityExtra.
+ * @param {(module:model/BabylonStakeExtra|module:model/EthStakeExtra)} instance The actual instance to initialize CreateStakeActivityExtra.
*/
constructor(instance = null) {
if (instance === null) {
@@ -38,6 +39,10 @@ class CreateStakeActivityExtra {
this.actualInstance = BabylonStakeExtra.constructFromObject(instance);
match++;
break;
+ case "ETHBeacon":
+ this.actualInstance = EthStakeExtra.constructFromObject(instance);
+ match++;
+ break;
default:
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
break;
@@ -70,12 +75,37 @@ class CreateStakeActivityExtra {
errorMessages.push("Failed to construct BabylonStakeExtra: " + err)
}
+ try {
+ if (instance instanceof EthStakeExtra) {
+ this.actualInstance = instance;
+ } else if(!!EthStakeExtra.validateJSON && EthStakeExtra.validateJSON(instance)){
+ // plain JS object
+ // create EthStakeExtra from JS object
+ this.actualInstance = EthStakeExtra.constructFromObject(instance);
+ } else {
+ if(EthStakeExtra.constructFromObject(instance)) {
+ if (!!EthStakeExtra.constructFromObject(instance).toJSON) {
+ if (EthStakeExtra.constructFromObject(instance).toJSON()) {
+ this.actualInstance = EthStakeExtra.constructFromObject(instance);
+ }
+ } else {
+ this.actualInstance = EthStakeExtra.constructFromObject(instance);
+ }
+ }
+
+ }
+ match++;
+ } catch(err) {
+ // json data failed to deserialize into EthStakeExtra
+ errorMessages.push("Failed to construct EthStakeExtra: " + err)
+ }
+
// if (match > 1) {
- // throw new Error("Multiple matches found constructing `CreateStakeActivityExtra` with oneOf schemas BabylonStakeExtra. Input: " + JSON.stringify(instance));
+ // throw new Error("Multiple matches found constructing `CreateStakeActivityExtra` with oneOf schemas BabylonStakeExtra, EthStakeExtra. Input: " + JSON.stringify(instance));
// } else
if (match === 0) {
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
- // throw new Error("No match found constructing `CreateStakeActivityExtra` with oneOf schemas BabylonStakeExtra. Details: " +
+ // throw new Error("No match found constructing `CreateStakeActivityExtra` with oneOf schemas BabylonStakeExtra, EthStakeExtra. Details: " +
// errorMessages.join(", "));
return;
} else { // only 1 match
@@ -95,16 +125,16 @@ class CreateStakeActivityExtra {
}
/**
- * Gets the actual instance, which can be BabylonStakeExtra
.
- * @return {(module:model/BabylonStakeExtra)} The actual instance.
+ * Gets the actual instance, which can be BabylonStakeExtra
, EthStakeExtra
.
+ * @return {(module:model/BabylonStakeExtra|module:model/EthStakeExtra)} The actual instance.
*/
getActualInstance() {
return this.actualInstance;
}
/**
- * Sets the actual instance, which can be BabylonStakeExtra
.
- * @param {(module:model/BabylonStakeExtra)} obj The actual instance.
+ * Sets the actual instance, which can be BabylonStakeExtra
, EthStakeExtra
.
+ * @param {(module:model/BabylonStakeExtra|module:model/EthStakeExtra)} obj The actual instance.
*/
setActualInstance(obj) {
this.actualInstance = CreateStakeActivityExtra.constructFromObject(obj).getActualInstance();
@@ -151,8 +181,14 @@ CreateStakeActivityExtra.prototype['stake_block_time'] = undefined;
*/
CreateStakeActivityExtra.prototype['auto_broadcast'] = undefined;
+/**
+ * The name of the provider.
+ * @member {String} provider_name
+ */
+CreateStakeActivityExtra.prototype['provider_name'] = undefined;
+
-CreateStakeActivityExtra.OneOf = ["BabylonStakeExtra"];
+CreateStakeActivityExtra.OneOf = ["BabylonStakeExtra", "EthStakeExtra"];
export default CreateStakeActivityExtra;
diff --git a/src/model/CreateUnstakeActivity.js b/src/model/CreateUnstakeActivity.js
index 8670b3f2..aa45f40e 100644
--- a/src/model/CreateUnstakeActivity.js
+++ b/src/model/CreateUnstakeActivity.js
@@ -10,6 +10,7 @@
*/
import ApiClient from '../ApiClient';
+import CreateUnstakeActivityExtra from './CreateUnstakeActivityExtra';
import TransactionRequestFee from './TransactionRequestFee';
/**
@@ -59,6 +60,9 @@ class CreateUnstakeActivity {
if (data.hasOwnProperty('fee')) {
obj['fee'] = TransactionRequestFee.constructFromObject(data['fee']);
}
+ if (data.hasOwnProperty('extra')) {
+ obj['extra'] = CreateUnstakeActivityExtra.constructFromObject(data['extra']);
+ }
}
return obj;
}
@@ -93,6 +97,12 @@ class CreateUnstakeActivity {
TransactionRequestFee.validateJSON(data['fee']);
}
}
+ // validate the optional field `extra`
+ if (data['extra']) { // data not null
+ if (!!CreateUnstakeActivityExtra.validateJSON) {
+ CreateUnstakeActivityExtra.validateJSON(data['extra']);
+ }
+ }
return true;
}
@@ -125,6 +135,11 @@ CreateUnstakeActivity.prototype['amount'] = undefined;
*/
CreateUnstakeActivity.prototype['fee'] = undefined;
+/**
+ * @member {module:model/CreateUnstakeActivityExtra} extra
+ */
+CreateUnstakeActivity.prototype['extra'] = undefined;
+
diff --git a/src/model/CreateUnstakeActivityExtra.js b/src/model/CreateUnstakeActivityExtra.js
new file mode 100644
index 00000000..9ce15cca
--- /dev/null
+++ b/src/model/CreateUnstakeActivityExtra.js
@@ -0,0 +1,147 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import EthUnstakeExtra from './EthUnstakeExtra';
+import StakingPoolType from './StakingPoolType';
+
+/**
+ * The CreateUnstakeActivityExtra model module.
+ * @module model/CreateUnstakeActivityExtra
+ */
+class CreateUnstakeActivityExtra {
+ /**
+ * Constructs a new CreateUnstakeActivityExtra
.
+ * Additional protocol-specific information required for the unstaking operation. The required fields vary depending on the staking protocol.
+ * @alias module:model/CreateUnstakeActivityExtra
+ * @param {(module:model/EthUnstakeExtra)} instance The actual instance to initialize CreateUnstakeActivityExtra.
+ */
+ constructor(instance = null) {
+ if (instance === null) {
+ this.actualInstance = null;
+ return;
+ }
+ var match = 0;
+ var errorMessages = [];
+ var discriminatorValue = instance["pool_type"];
+
+ if (discriminatorValue) {
+ switch(discriminatorValue) {
+ case "ETHBeacon":
+ this.actualInstance = EthUnstakeExtra.constructFromObject(instance);
+ match++;
+ break;
+ default:
+ errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
+ break;
+ }
+ return;
+ }
+
+ try {
+ if (instance instanceof EthUnstakeExtra) {
+ this.actualInstance = instance;
+ } else if(!!EthUnstakeExtra.validateJSON && EthUnstakeExtra.validateJSON(instance)){
+ // plain JS object
+ // create EthUnstakeExtra from JS object
+ this.actualInstance = EthUnstakeExtra.constructFromObject(instance);
+ } else {
+ if(EthUnstakeExtra.constructFromObject(instance)) {
+ if (!!EthUnstakeExtra.constructFromObject(instance).toJSON) {
+ if (EthUnstakeExtra.constructFromObject(instance).toJSON()) {
+ this.actualInstance = EthUnstakeExtra.constructFromObject(instance);
+ }
+ } else {
+ this.actualInstance = EthUnstakeExtra.constructFromObject(instance);
+ }
+ }
+
+ }
+ match++;
+ } catch(err) {
+ // json data failed to deserialize into EthUnstakeExtra
+ errorMessages.push("Failed to construct EthUnstakeExtra: " + err)
+ }
+
+ // if (match > 1) {
+ // throw new Error("Multiple matches found constructing `CreateUnstakeActivityExtra` with oneOf schemas EthUnstakeExtra. Input: " + JSON.stringify(instance));
+ // } else
+ if (match === 0) {
+ // this.actualInstance = null; // clear the actual instance in case there are multiple matches
+ // throw new Error("No match found constructing `CreateUnstakeActivityExtra` with oneOf schemas EthUnstakeExtra. Details: " +
+ // errorMessages.join(", "));
+ return;
+ } else { // only 1 match
+ // the input is valid
+ }
+ }
+
+ /**
+ * Constructs a CreateUnstakeActivityExtra
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CreateUnstakeActivityExtra} obj Optional instance to populate.
+ * @return {module:model/CreateUnstakeActivityExtra} The populated CreateUnstakeActivityExtra
instance.
+ */
+ static constructFromObject(data, obj) {
+ return new CreateUnstakeActivityExtra(data);
+ }
+
+ /**
+ * Gets the actual instance, which can be EthUnstakeExtra
.
+ * @return {(module:model/EthUnstakeExtra)} The actual instance.
+ */
+ getActualInstance() {
+ return this.actualInstance;
+ }
+
+ /**
+ * Sets the actual instance, which can be EthUnstakeExtra
.
+ * @param {(module:model/EthUnstakeExtra)} obj The actual instance.
+ */
+ setActualInstance(obj) {
+ this.actualInstance = CreateUnstakeActivityExtra.constructFromObject(obj).getActualInstance();
+ }
+
+ /**
+ * Returns the JSON representation of the actual instance.
+ * @return {string}
+ */
+ toJSON = function(){
+ return this.getActualInstance();
+ }
+
+ /**
+ * Create an instance of CreateUnstakeActivityExtra from a JSON string.
+ * @param {string} json_string JSON string.
+ * @return {module:model/CreateUnstakeActivityExtra} An instance of CreateUnstakeActivityExtra.
+ */
+ static fromJSON = function(json_string){
+ return CreateUnstakeActivityExtra.constructFromObject(JSON.parse(json_string));
+ }
+}
+
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+CreateUnstakeActivityExtra.prototype['pool_type'] = undefined;
+
+/**
+ * A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain.
+ * @member {Array.} validator_pubkeys
+ */
+CreateUnstakeActivityExtra.prototype['validator_pubkeys'] = undefined;
+
+
+CreateUnstakeActivityExtra.OneOf = ["EthUnstakeExtra"];
+
+export default CreateUnstakeActivityExtra;
+
diff --git a/src/model/CreateUnstakeActivityRequest.js b/src/model/CreateUnstakeActivityRequest.js
index d2049d7c..9d965e4a 100644
--- a/src/model/CreateUnstakeActivityRequest.js
+++ b/src/model/CreateUnstakeActivityRequest.js
@@ -12,6 +12,7 @@
import ApiClient from '../ApiClient';
import ActivityInitiator from './ActivityInitiator';
import CreateUnstakeActivity from './CreateUnstakeActivity';
+import CreateUnstakeActivityExtra from './CreateUnstakeActivityExtra';
import TransactionRequestFee from './TransactionRequestFee';
/**
@@ -65,6 +66,9 @@ class CreateUnstakeActivityRequest {
if (data.hasOwnProperty('fee')) {
obj['fee'] = TransactionRequestFee.constructFromObject(data['fee']);
}
+ if (data.hasOwnProperty('extra')) {
+ obj['extra'] = CreateUnstakeActivityExtra.constructFromObject(data['extra']);
+ }
if (data.hasOwnProperty('app_initiator')) {
obj['app_initiator'] = ApiClient.convertToType(data['app_initiator'], 'String');
}
@@ -102,6 +106,12 @@ class CreateUnstakeActivityRequest {
TransactionRequestFee.validateJSON(data['fee']);
}
}
+ // validate the optional field `extra`
+ if (data['extra']) { // data not null
+ if (!!CreateUnstakeActivityExtra.validateJSON) {
+ CreateUnstakeActivityExtra.validateJSON(data['extra']);
+ }
+ }
// ensure the json data is a string
if (data['app_initiator'] && !(typeof data['app_initiator'] === 'string' || data['app_initiator'] instanceof String)) {
throw new Error("Expected the field `app_initiator` to be a primitive type in the JSON string but got " + data['app_initiator']);
@@ -138,6 +148,11 @@ CreateUnstakeActivityRequest.prototype['amount'] = undefined;
*/
CreateUnstakeActivityRequest.prototype['fee'] = undefined;
+/**
+ * @member {module:model/CreateUnstakeActivityExtra} extra
+ */
+CreateUnstakeActivityRequest.prototype['extra'] = undefined;
+
/**
* The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator.
* @member {String} app_initiator
@@ -165,6 +180,10 @@ CreateUnstakeActivity.prototype['amount'] = undefined;
* @member {module:model/TransactionRequestFee} fee
*/
CreateUnstakeActivity.prototype['fee'] = undefined;
+/**
+ * @member {module:model/CreateUnstakeActivityExtra} extra
+ */
+CreateUnstakeActivity.prototype['extra'] = undefined;
// Implement ActivityInitiator interface:
/**
* The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator.
diff --git a/src/model/EstimateContractCallFeeParams.js b/src/model/EstimateContractCallFeeParams.js
index a68e3a38..b301b0f9 100644
--- a/src/model/EstimateContractCallFeeParams.js
+++ b/src/model/EstimateContractCallFeeParams.js
@@ -24,15 +24,14 @@ class EstimateContractCallFeeParams {
* Constructs a new EstimateContractCallFeeParams
.
* The information about a transaction that interacts with a smart contract
* @alias module:model/EstimateContractCallFeeParams
- * @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
* @param request_type {module:model/EstimateFeeRequestType}
* @param chain_id {String} The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
* @param source {module:model/ContractCallSource}
* @param destination {module:model/ContractCallDestination}
*/
- constructor(request_id, request_type, chain_id, source, destination) {
+ constructor(request_type, chain_id, source, destination) {
- EstimateContractCallFeeParams.initialize(this, request_id, request_type, chain_id, source, destination);
+ EstimateContractCallFeeParams.initialize(this, request_type, chain_id, source, destination);
}
/**
@@ -40,8 +39,7 @@ class EstimateContractCallFeeParams {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, request_id, request_type, chain_id, source, destination) {
- obj['request_id'] = request_id;
+ static initialize(obj, request_type, chain_id, source, destination) {
obj['request_type'] = request_type;
obj['chain_id'] = chain_id;
obj['source'] = source;
@@ -120,7 +118,7 @@ class EstimateContractCallFeeParams {
}
-EstimateContractCallFeeParams.RequiredProperties = ["request_id", "request_type", "chain_id", "source", "destination"];
+EstimateContractCallFeeParams.RequiredProperties = ["request_type", "chain_id", "source", "destination"];
/**
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
diff --git a/src/model/EstimateTransferFeeParams.js b/src/model/EstimateTransferFeeParams.js
index c76868ea..00d4b3ad 100644
--- a/src/model/EstimateTransferFeeParams.js
+++ b/src/model/EstimateTransferFeeParams.js
@@ -24,15 +24,13 @@ class EstimateTransferFeeParams {
* Constructs a new EstimateTransferFeeParams
.
* The information about a token transfer.
* @alias module:model/EstimateTransferFeeParams
- * @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
* @param request_type {module:model/EstimateFeeRequestType}
* @param source {module:model/TransferSource}
* @param token_id {String} The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
- * @param destination {module:model/TransferDestination}
*/
- constructor(request_id, request_type, source, token_id, destination) {
+ constructor(request_type, source, token_id) {
- EstimateTransferFeeParams.initialize(this, request_id, request_type, source, token_id, destination);
+ EstimateTransferFeeParams.initialize(this, request_type, source, token_id);
}
/**
@@ -40,12 +38,10 @@ class EstimateTransferFeeParams {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, request_id, request_type, source, token_id, destination) {
- obj['request_id'] = request_id;
+ static initialize(obj, request_type, source, token_id) {
obj['request_type'] = request_type;
obj['source'] = source;
obj['token_id'] = token_id;
- obj['destination'] = destination;
}
/**
@@ -120,7 +116,7 @@ class EstimateTransferFeeParams {
}
-EstimateTransferFeeParams.RequiredProperties = ["request_id", "request_type", "source", "token_id", "destination"];
+EstimateTransferFeeParams.RequiredProperties = ["request_type", "source", "token_id"];
/**
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
diff --git a/src/model/EstimateUnstakeFee.js b/src/model/EstimateUnstakeFee.js
index a4553c9d..8f00ee4e 100644
--- a/src/model/EstimateUnstakeFee.js
+++ b/src/model/EstimateUnstakeFee.js
@@ -13,6 +13,7 @@ import ApiClient from '../ApiClient';
import ActivityType from './ActivityType';
import BaseEstimateStakingFee from './BaseEstimateStakingFee';
import CreateUnstakeActivity from './CreateUnstakeActivity';
+import CreateUnstakeActivityExtra from './CreateUnstakeActivityExtra';
import TransactionRequestFee from './TransactionRequestFee';
/**
@@ -71,6 +72,9 @@ class EstimateUnstakeFee {
if (data.hasOwnProperty('fee')) {
obj['fee'] = TransactionRequestFee.constructFromObject(data['fee']);
}
+ if (data.hasOwnProperty('extra')) {
+ obj['extra'] = CreateUnstakeActivityExtra.constructFromObject(data['extra']);
+ }
}
return obj;
}
@@ -105,6 +109,12 @@ class EstimateUnstakeFee {
TransactionRequestFee.validateJSON(data['fee']);
}
}
+ // validate the optional field `extra`
+ if (data['extra']) { // data not null
+ if (!!CreateUnstakeActivityExtra.validateJSON) {
+ CreateUnstakeActivityExtra.validateJSON(data['extra']);
+ }
+ }
return true;
}
@@ -142,6 +152,11 @@ EstimateUnstakeFee.prototype['amount'] = undefined;
*/
EstimateUnstakeFee.prototype['fee'] = undefined;
+/**
+ * @member {module:model/CreateUnstakeActivityExtra} extra
+ */
+EstimateUnstakeFee.prototype['extra'] = undefined;
+
// Implement BaseEstimateStakingFee interface:
/**
@@ -168,6 +183,10 @@ CreateUnstakeActivity.prototype['amount'] = undefined;
* @member {module:model/TransactionRequestFee} fee
*/
CreateUnstakeActivity.prototype['fee'] = undefined;
+/**
+ * @member {module:model/CreateUnstakeActivityExtra} extra
+ */
+CreateUnstakeActivity.prototype['extra'] = undefined;
diff --git a/src/model/EstimatedEvmEip1559FeeSlow.js b/src/model/EstimatedEvmEip1559FeeSlow.js
index 2661e0b4..9282a67f 100644
--- a/src/model/EstimatedEvmEip1559FeeSlow.js
+++ b/src/model/EstimatedEvmEip1559FeeSlow.js
@@ -40,7 +40,7 @@ class EstimatedEvmEip1559FeeSlow {
static initialize(obj, max_fee_per_gas, max_priority_fee_per_gas, gas_limit) {
obj['max_fee_per_gas'] = max_fee_per_gas;
obj['max_priority_fee_per_gas'] = max_priority_fee_per_gas;
- obj['gas_limit'] = gas_limit || '21000';
+ obj['gas_limit'] = gas_limit;
}
/**
@@ -117,9 +117,8 @@ EstimatedEvmEip1559FeeSlow.prototype['max_priority_fee_per_gas'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-EstimatedEvmEip1559FeeSlow.prototype['gas_limit'] = '21000';
+EstimatedEvmEip1559FeeSlow.prototype['gas_limit'] = undefined;
// Implement EvmEip1559FeeBasePrice interface:
@@ -137,9 +136,8 @@ EvmEip1559FeeBasePrice.prototype['max_priority_fee_per_gas'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-FeeGasLimit.prototype['gas_limit'] = '21000';
+FeeGasLimit.prototype['gas_limit'] = undefined;
diff --git a/src/model/EstimatedEvmLegacyFeeSlow.js b/src/model/EstimatedEvmLegacyFeeSlow.js
index 6a8a007a..056a04bb 100644
--- a/src/model/EstimatedEvmLegacyFeeSlow.js
+++ b/src/model/EstimatedEvmLegacyFeeSlow.js
@@ -38,7 +38,7 @@ class EstimatedEvmLegacyFeeSlow {
*/
static initialize(obj, gas_price, gas_limit) {
obj['gas_price'] = gas_price;
- obj['gas_limit'] = gas_limit || '21000';
+ obj['gas_limit'] = gas_limit;
}
/**
@@ -102,9 +102,8 @@ EstimatedEvmLegacyFeeSlow.prototype['gas_price'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-EstimatedEvmLegacyFeeSlow.prototype['gas_limit'] = '21000';
+EstimatedEvmLegacyFeeSlow.prototype['gas_limit'] = undefined;
// Implement EvmLegacyFeeBasePrice interface:
@@ -117,9 +116,8 @@ EvmLegacyFeeBasePrice.prototype['gas_price'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-FeeGasLimit.prototype['gas_limit'] = '21000';
+FeeGasLimit.prototype['gas_limit'] = undefined;
diff --git a/src/model/EthStakeEstimatedFee.js b/src/model/EthStakeEstimatedFee.js
new file mode 100644
index 00000000..c821e726
--- /dev/null
+++ b/src/model/EthStakeEstimatedFee.js
@@ -0,0 +1,109 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import EstimatedFee from './EstimatedFee';
+import StakingPoolType from './StakingPoolType';
+
+/**
+ * The EthStakeEstimatedFee model module.
+ * @module model/EthStakeEstimatedFee
+ */
+class EthStakeEstimatedFee {
+ /**
+ * Constructs a new EthStakeEstimatedFee
.
+ * @alias module:model/EthStakeEstimatedFee
+ */
+ constructor() {
+
+ EthStakeEstimatedFee.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a EthStakeEstimatedFee
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EthStakeEstimatedFee} obj Optional instance to populate.
+ * @return {module:model/EthStakeEstimatedFee} The populated EthStakeEstimatedFee
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EthStakeEstimatedFee();
+
+ if (data.hasOwnProperty('pool_type')) {
+ obj['pool_type'] = StakingPoolType.constructFromObject(data['pool_type']);
+ }
+ if (data.hasOwnProperty('fee')) {
+ obj['fee'] = EstimatedFee.constructFromObject(data['fee']);
+ }
+ if (data.hasOwnProperty('validator_pubkeys')) {
+ obj['validator_pubkeys'] = ApiClient.convertToType(data['validator_pubkeys'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EthStakeEstimatedFee
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EthStakeEstimatedFee
.
+ */
+ static validateJSON(data) {
+ // validate the optional field `fee`
+ if (data['fee']) { // data not null
+ if (!!EstimatedFee.validateJSON) {
+ EstimatedFee.validateJSON(data['fee']);
+ }
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['validator_pubkeys'])) {
+ throw new Error("Expected the field `validator_pubkeys` to be an array in the JSON data but got " + data['validator_pubkeys']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+EthStakeEstimatedFee.prototype['pool_type'] = undefined;
+
+/**
+ * @member {module:model/EstimatedFee} fee
+ */
+EthStakeEstimatedFee.prototype['fee'] = undefined;
+
+/**
+ * A list of public keys associated with the Ethereum validators for this staking operation.
+ * @member {Array.} validator_pubkeys
+ */
+EthStakeEstimatedFee.prototype['validator_pubkeys'] = undefined;
+
+
+
+
+
+
+export default EthStakeEstimatedFee;
+
diff --git a/src/model/EthStakeExtra.js b/src/model/EthStakeExtra.js
new file mode 100644
index 00000000..cfb2e9fa
--- /dev/null
+++ b/src/model/EthStakeExtra.js
@@ -0,0 +1,112 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BaseStakeExtra from './BaseStakeExtra';
+import StakingPoolType from './StakingPoolType';
+
+/**
+ * The EthStakeExtra model module.
+ * @module model/EthStakeExtra
+ */
+class EthStakeExtra {
+ /**
+ * Constructs a new EthStakeExtra
.
+ * @alias module:model/EthStakeExtra
+ * @implements module:model/BaseStakeExtra
+ * @param pool_type {module:model/StakingPoolType}
+ * @param provider_name {String} The name of the provider.
+ */
+ constructor(pool_type, provider_name) {
+ BaseStakeExtra.initialize(this, pool_type);
+ EthStakeExtra.initialize(this, pool_type, provider_name);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, pool_type, provider_name) {
+ obj['pool_type'] = pool_type;
+ obj['provider_name'] = provider_name;
+ }
+
+ /**
+ * Constructs a EthStakeExtra
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EthStakeExtra} obj Optional instance to populate.
+ * @return {module:model/EthStakeExtra} The populated EthStakeExtra
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EthStakeExtra();
+ BaseStakeExtra.constructFromObject(data, obj);
+
+ if (data.hasOwnProperty('pool_type')) {
+ obj['pool_type'] = StakingPoolType.constructFromObject(data['pool_type']);
+ }
+ if (data.hasOwnProperty('provider_name')) {
+ obj['provider_name'] = ApiClient.convertToType(data['provider_name'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EthStakeExtra
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EthStakeExtra
.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of EthStakeExtra.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ if (data['provider_name'] && !(typeof data['provider_name'] === 'string' || data['provider_name'] instanceof String)) {
+ throw new Error("Expected the field `provider_name` to be a primitive type in the JSON string but got " + data['provider_name']);
+ }
+
+ return true;
+ }
+
+
+}
+
+EthStakeExtra.RequiredProperties = ["pool_type", "provider_name"];
+
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+EthStakeExtra.prototype['pool_type'] = undefined;
+
+/**
+ * The name of the provider.
+ * @member {String} provider_name
+ */
+EthStakeExtra.prototype['provider_name'] = undefined;
+
+
+// Implement BaseStakeExtra interface:
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+BaseStakeExtra.prototype['pool_type'] = undefined;
+
+
+
+
+export default EthStakeExtra;
+
diff --git a/src/model/EthStakingExtra.js b/src/model/EthStakingExtra.js
new file mode 100644
index 00000000..fd1eddee
--- /dev/null
+++ b/src/model/EthStakingExtra.js
@@ -0,0 +1,112 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BaseStakeExtra from './BaseStakeExtra';
+import StakingPoolType from './StakingPoolType';
+
+/**
+ * The EthStakingExtra model module.
+ * @module model/EthStakingExtra
+ */
+class EthStakingExtra {
+ /**
+ * Constructs a new EthStakingExtra
.
+ * @alias module:model/EthStakingExtra
+ * @implements module:model/BaseStakeExtra
+ * @param pool_type {module:model/StakingPoolType}
+ * @param pos_chain {String} The Proof-of-Stake (PoS) chain.
+ */
+ constructor(pool_type, pos_chain) {
+ BaseStakeExtra.initialize(this, pool_type);
+ EthStakingExtra.initialize(this, pool_type, pos_chain);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, pool_type, pos_chain) {
+ obj['pool_type'] = pool_type;
+ obj['pos_chain'] = pos_chain;
+ }
+
+ /**
+ * Constructs a EthStakingExtra
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EthStakingExtra} obj Optional instance to populate.
+ * @return {module:model/EthStakingExtra} The populated EthStakingExtra
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EthStakingExtra();
+ BaseStakeExtra.constructFromObject(data, obj);
+
+ if (data.hasOwnProperty('pool_type')) {
+ obj['pool_type'] = StakingPoolType.constructFromObject(data['pool_type']);
+ }
+ if (data.hasOwnProperty('pos_chain')) {
+ obj['pos_chain'] = ApiClient.convertToType(data['pos_chain'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EthStakingExtra
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EthStakingExtra
.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of EthStakingExtra.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ if (data['pos_chain'] && !(typeof data['pos_chain'] === 'string' || data['pos_chain'] instanceof String)) {
+ throw new Error("Expected the field `pos_chain` to be a primitive type in the JSON string but got " + data['pos_chain']);
+ }
+
+ return true;
+ }
+
+
+}
+
+EthStakingExtra.RequiredProperties = ["pool_type", "pos_chain"];
+
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+EthStakingExtra.prototype['pool_type'] = undefined;
+
+/**
+ * The Proof-of-Stake (PoS) chain.
+ * @member {String} pos_chain
+ */
+EthStakingExtra.prototype['pos_chain'] = undefined;
+
+
+// Implement BaseStakeExtra interface:
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+BaseStakeExtra.prototype['pool_type'] = undefined;
+
+
+
+
+export default EthStakingExtra;
+
diff --git a/src/model/EthUnstakeExtra.js b/src/model/EthUnstakeExtra.js
new file mode 100644
index 00000000..bdf89dcf
--- /dev/null
+++ b/src/model/EthUnstakeExtra.js
@@ -0,0 +1,112 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BaseStakeExtra from './BaseStakeExtra';
+import StakingPoolType from './StakingPoolType';
+
+/**
+ * The EthUnstakeExtra model module.
+ * @module model/EthUnstakeExtra
+ */
+class EthUnstakeExtra {
+ /**
+ * Constructs a new EthUnstakeExtra
.
+ * @alias module:model/EthUnstakeExtra
+ * @implements module:model/BaseStakeExtra
+ * @param pool_type {module:model/StakingPoolType}
+ * @param validator_pubkeys {Array.} A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain.
+ */
+ constructor(pool_type, validator_pubkeys) {
+ BaseStakeExtra.initialize(this, pool_type);
+ EthUnstakeExtra.initialize(this, pool_type, validator_pubkeys);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, pool_type, validator_pubkeys) {
+ obj['pool_type'] = pool_type;
+ obj['validator_pubkeys'] = validator_pubkeys;
+ }
+
+ /**
+ * Constructs a EthUnstakeExtra
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EthUnstakeExtra} obj Optional instance to populate.
+ * @return {module:model/EthUnstakeExtra} The populated EthUnstakeExtra
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EthUnstakeExtra();
+ BaseStakeExtra.constructFromObject(data, obj);
+
+ if (data.hasOwnProperty('pool_type')) {
+ obj['pool_type'] = StakingPoolType.constructFromObject(data['pool_type']);
+ }
+ if (data.hasOwnProperty('validator_pubkeys')) {
+ obj['validator_pubkeys'] = ApiClient.convertToType(data['validator_pubkeys'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EthUnstakeExtra
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EthUnstakeExtra
.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of EthUnstakeExtra.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['validator_pubkeys'])) {
+ throw new Error("Expected the field `validator_pubkeys` to be an array in the JSON data but got " + data['validator_pubkeys']);
+ }
+
+ return true;
+ }
+
+
+}
+
+EthUnstakeExtra.RequiredProperties = ["pool_type", "validator_pubkeys"];
+
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+EthUnstakeExtra.prototype['pool_type'] = undefined;
+
+/**
+ * A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain.
+ * @member {Array.} validator_pubkeys
+ */
+EthUnstakeExtra.prototype['validator_pubkeys'] = undefined;
+
+
+// Implement BaseStakeExtra interface:
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+BaseStakeExtra.prototype['pool_type'] = undefined;
+
+
+
+
+export default EthUnstakeExtra;
+
diff --git a/src/model/FeeGasLimit.js b/src/model/FeeGasLimit.js
index 2737cb1c..d4e06c26 100644
--- a/src/model/FeeGasLimit.js
+++ b/src/model/FeeGasLimit.js
@@ -73,9 +73,8 @@ class FeeGasLimit {
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-FeeGasLimit.prototype['gas_limit'] = '21000';
+FeeGasLimit.prototype['gas_limit'] = undefined;
diff --git a/src/model/GetApiKeyInfo200Response.js b/src/model/GetApiKeyInfo200Response.js
new file mode 100644
index 00000000..22cd3b72
--- /dev/null
+++ b/src/model/GetApiKeyInfo200Response.js
@@ -0,0 +1,227 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import RoleScopes from './RoleScopes';
+
+/**
+ * The GetApiKeyInfo200Response model module.
+ * @module model/GetApiKeyInfo200Response
+ */
+class GetApiKeyInfo200Response {
+ /**
+ * Constructs a new GetApiKeyInfo200Response
.
+ * @alias module:model/GetApiKeyInfo200Response
+ * @param name {String} The API key name.
+ * @param curve_type {module:model/GetApiKeyInfo200Response.CurveTypeEnum} The curve type used for the API key, which determines the cryptographic algorithm for key generation and signing. Possible values include: - `ED25519`: Ed25519 - `SECP256K1`: Secp256k1
+ * @param key {String} The API key value.
+ * @param created_timestamp {Number} The time when the API key was registered, in Unix timestamp format, measured in milliseconds.
+ * @param updated_timestamp {Number} The time when the API key information was last updated, in Unix timestamp format, measured in milliseconds.
+ */
+ constructor(name, curve_type, key, created_timestamp, updated_timestamp) {
+
+ GetApiKeyInfo200Response.initialize(this, name, curve_type, key, created_timestamp, updated_timestamp);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, name, curve_type, key, created_timestamp, updated_timestamp) {
+ obj['name'] = name;
+ obj['curve_type'] = curve_type;
+ obj['key'] = key;
+ obj['created_timestamp'] = created_timestamp;
+ obj['updated_timestamp'] = updated_timestamp;
+ }
+
+ /**
+ * Constructs a GetApiKeyInfo200Response
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/GetApiKeyInfo200Response} obj Optional instance to populate.
+ * @return {module:model/GetApiKeyInfo200Response} The populated GetApiKeyInfo200Response
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new GetApiKeyInfo200Response();
+
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('curve_type')) {
+ obj['curve_type'] = ApiClient.convertToType(data['curve_type'], 'String');
+ }
+ if (data.hasOwnProperty('key')) {
+ obj['key'] = ApiClient.convertToType(data['key'], 'String');
+ }
+ if (data.hasOwnProperty('callback_url')) {
+ obj['callback_url'] = ApiClient.convertToType(data['callback_url'], 'String');
+ }
+ if (data.hasOwnProperty('valid_ips')) {
+ obj['valid_ips'] = ApiClient.convertToType(data['valid_ips'], ['String']);
+ }
+ if (data.hasOwnProperty('created_timestamp')) {
+ obj['created_timestamp'] = ApiClient.convertToType(data['created_timestamp'], 'Number');
+ }
+ if (data.hasOwnProperty('updated_timestamp')) {
+ obj['updated_timestamp'] = ApiClient.convertToType(data['updated_timestamp'], 'Number');
+ }
+ if (data.hasOwnProperty('expired_timestamp')) {
+ obj['expired_timestamp'] = ApiClient.convertToType(data['expired_timestamp'], 'Number');
+ }
+ if (data.hasOwnProperty('role_scopes')) {
+ obj['role_scopes'] = ApiClient.convertToType(data['role_scopes'], [RoleScopes]);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to GetApiKeyInfo200Response
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to GetApiKeyInfo200Response
.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of GetApiKeyInfo200Response.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['curve_type'] && !(typeof data['curve_type'] === 'string' || data['curve_type'] instanceof String)) {
+ throw new Error("Expected the field `curve_type` to be a primitive type in the JSON string but got " + data['curve_type']);
+ }
+ // ensure the json data is a string
+ if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
+ throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
+ }
+ // ensure the json data is a string
+ if (data['callback_url'] && !(typeof data['callback_url'] === 'string' || data['callback_url'] instanceof String)) {
+ throw new Error("Expected the field `callback_url` to be a primitive type in the JSON string but got " + data['callback_url']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['valid_ips'])) {
+ throw new Error("Expected the field `valid_ips` to be an array in the JSON data but got " + data['valid_ips']);
+ }
+ if (data['role_scopes']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['role_scopes'])) {
+ throw new Error("Expected the field `role_scopes` to be an array in the JSON data but got " + data['role_scopes']);
+ }
+ // validate the optional field `role_scopes` (array)
+ for (const item of data['role_scopes']) {
+ RoleScopes.validateJSON(item);
+ };
+ }
+
+ return true;
+ }
+
+
+}
+
+GetApiKeyInfo200Response.RequiredProperties = ["name", "curve_type", "key", "created_timestamp", "updated_timestamp"];
+
+/**
+ * The API key name.
+ * @member {String} name
+ */
+GetApiKeyInfo200Response.prototype['name'] = undefined;
+
+/**
+ * The curve type used for the API key, which determines the cryptographic algorithm for key generation and signing. Possible values include: - `ED25519`: Ed25519 - `SECP256K1`: Secp256k1
+ * @member {module:model/GetApiKeyInfo200Response.CurveTypeEnum} curve_type
+ */
+GetApiKeyInfo200Response.prototype['curve_type'] = undefined;
+
+/**
+ * The API key value.
+ * @member {String} key
+ */
+GetApiKeyInfo200Response.prototype['key'] = undefined;
+
+/**
+ * The URL of the callback endpoint that receives callback messages triggered by this API key.
+ * @member {String} callback_url
+ */
+GetApiKeyInfo200Response.prototype['callback_url'] = undefined;
+
+/**
+ * (Applicable to permanent API keys only) The list of IP addresses that are allowed to use this API key.
+ * @member {Array.} valid_ips
+ */
+GetApiKeyInfo200Response.prototype['valid_ips'] = undefined;
+
+/**
+ * The time when the API key was registered, in Unix timestamp format, measured in milliseconds.
+ * @member {Number} created_timestamp
+ */
+GetApiKeyInfo200Response.prototype['created_timestamp'] = undefined;
+
+/**
+ * The time when the API key information was last updated, in Unix timestamp format, measured in milliseconds.
+ * @member {Number} updated_timestamp
+ */
+GetApiKeyInfo200Response.prototype['updated_timestamp'] = undefined;
+
+/**
+ * The time when the API key expires, in Unix timestamp format, measured in milliseconds. For permanent API keys, this property value is `null`.
+ * @member {Number} expired_timestamp
+ */
+GetApiKeyInfo200Response.prototype['expired_timestamp'] = undefined;
+
+/**
+ * The list of user roles and wallet scopes associated with the API key.
+ * @member {Array.} role_scopes
+ */
+GetApiKeyInfo200Response.prototype['role_scopes'] = undefined;
+
+
+
+
+
+/**
+ * Allowed values for the curve_type
property.
+ * @enum {String}
+ * @readonly
+ */
+GetApiKeyInfo200Response['CurveTypeEnum'] = {
+
+ /**
+ * value: "ED25519"
+ * @const
+ */
+ "ED25519": "ED25519",
+
+ /**
+ * value: "SECP256K1"
+ * @const
+ */
+ "SECP256K1": "SECP256K1",
+
+ /**
+ * value: "unknown_default_open_api"
+ * @const
+ */
+ "unknown_default_open_api": "unknown_default_open_api"
+};
+
+
+
+export default GetApiKeyInfo200Response;
+
diff --git a/src/model/GetStakingEstimationFee201Response.js b/src/model/GetStakingEstimationFee201Response.js
index 107bfb04..84d5ec1e 100644
--- a/src/model/GetStakingEstimationFee201Response.js
+++ b/src/model/GetStakingEstimationFee201Response.js
@@ -10,7 +10,11 @@
*/
import ApiClient from '../ApiClient';
+import BabylonStakeEstimatedFee from './BabylonStakeEstimatedFee';
+import EstimatedFee from './EstimatedFee';
+import EthStakeEstimatedFee from './EthStakeEstimatedFee';
import FeeType from './FeeType';
+import StakingPoolType from './StakingPoolType';
/**
* The GetStakingEstimationFee201Response model module.
@@ -20,18 +24,95 @@ class GetStakingEstimationFee201Response {
/**
* Constructs a new GetStakingEstimationFee201Response
.
* @alias module:model/GetStakingEstimationFee201Response
+ * @param {(module:model/BabylonStakeEstimatedFee|module:model/EthStakeEstimatedFee)} instance The actual instance to initialize GetStakingEstimationFee201Response.
*/
- constructor() {
-
- GetStakingEstimationFee201Response.initialize(this);
- }
+ constructor(instance = null) {
+ if (instance === null) {
+ this.actualInstance = null;
+ return;
+ }
+ var match = 0;
+ var errorMessages = [];
+ var discriminatorValue = instance["pool_type"];
+
+ if (discriminatorValue) {
+ switch(discriminatorValue) {
+ case "Babylon":
+ this.actualInstance = BabylonStakeEstimatedFee.constructFromObject(instance);
+ match++;
+ break;
+ case "ETHBeacon":
+ this.actualInstance = EthStakeEstimatedFee.constructFromObject(instance);
+ match++;
+ break;
+ default:
+ errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
+ break;
+ }
+ return;
+ }
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
+ try {
+ if (instance instanceof EthStakeEstimatedFee) {
+ this.actualInstance = instance;
+ } else if(!!EthStakeEstimatedFee.validateJSON && EthStakeEstimatedFee.validateJSON(instance)){
+ // plain JS object
+ // create EthStakeEstimatedFee from JS object
+ this.actualInstance = EthStakeEstimatedFee.constructFromObject(instance);
+ } else {
+ if(EthStakeEstimatedFee.constructFromObject(instance)) {
+ if (!!EthStakeEstimatedFee.constructFromObject(instance).toJSON) {
+ if (EthStakeEstimatedFee.constructFromObject(instance).toJSON()) {
+ this.actualInstance = EthStakeEstimatedFee.constructFromObject(instance);
+ }
+ } else {
+ this.actualInstance = EthStakeEstimatedFee.constructFromObject(instance);
+ }
+ }
+
+ }
+ match++;
+ } catch(err) {
+ // json data failed to deserialize into EthStakeEstimatedFee
+ errorMessages.push("Failed to construct EthStakeEstimatedFee: " + err)
+ }
+
+ try {
+ if (instance instanceof BabylonStakeEstimatedFee) {
+ this.actualInstance = instance;
+ } else if(!!BabylonStakeEstimatedFee.validateJSON && BabylonStakeEstimatedFee.validateJSON(instance)){
+ // plain JS object
+ // create BabylonStakeEstimatedFee from JS object
+ this.actualInstance = BabylonStakeEstimatedFee.constructFromObject(instance);
+ } else {
+ if(BabylonStakeEstimatedFee.constructFromObject(instance)) {
+ if (!!BabylonStakeEstimatedFee.constructFromObject(instance).toJSON) {
+ if (BabylonStakeEstimatedFee.constructFromObject(instance).toJSON()) {
+ this.actualInstance = BabylonStakeEstimatedFee.constructFromObject(instance);
+ }
+ } else {
+ this.actualInstance = BabylonStakeEstimatedFee.constructFromObject(instance);
+ }
+ }
+
+ }
+ match++;
+ } catch(err) {
+ // json data failed to deserialize into BabylonStakeEstimatedFee
+ errorMessages.push("Failed to construct BabylonStakeEstimatedFee: " + err)
+ }
+
+ // if (match > 1) {
+ // throw new Error("Multiple matches found constructing `GetStakingEstimationFee201Response` with oneOf schemas BabylonStakeEstimatedFee, EthStakeEstimatedFee. Input: " + JSON.stringify(instance));
+ // } else
+ if (match === 0) {
+ // this.actualInstance = null; // clear the actual instance in case there are multiple matches
+ // throw new Error("No match found constructing `GetStakingEstimationFee201Response` with oneOf schemas BabylonStakeEstimatedFee, EthStakeEstimatedFee. Details: " +
+ // errorMessages.join(", "));
+ return;
+ } else { // only 1 match
+ // the input is valid
+ }
}
/**
@@ -42,44 +123,58 @@ class GetStakingEstimationFee201Response {
* @return {module:model/GetStakingEstimationFee201Response} The populated GetStakingEstimationFee201Response
instance.
*/
static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new GetStakingEstimationFee201Response();
-
- if (data.hasOwnProperty('fee_type')) {
- obj['fee_type'] = FeeType.constructFromObject(data['fee_type']);
- }
- if (data.hasOwnProperty('fee_amount')) {
- obj['fee_amount'] = ApiClient.convertToType(data['fee_amount'], 'String');
- }
- if (data.hasOwnProperty('token_id')) {
- obj['token_id'] = ApiClient.convertToType(data['token_id'], 'String');
- }
- }
- return obj;
+ return new GetStakingEstimationFee201Response(data);
}
/**
- * Validates the JSON data with respect to GetStakingEstimationFee201Response
.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to GetStakingEstimationFee201Response
.
+ * Gets the actual instance, which can be BabylonStakeEstimatedFee
, EthStakeEstimatedFee
.
+ * @return {(module:model/BabylonStakeEstimatedFee|module:model/EthStakeEstimatedFee)} The actual instance.
*/
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['fee_amount'] && !(typeof data['fee_amount'] === 'string' || data['fee_amount'] instanceof String)) {
- throw new Error("Expected the field `fee_amount` to be a primitive type in the JSON string but got " + data['fee_amount']);
- }
- // ensure the json data is a string
- if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
- throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
- }
+ getActualInstance() {
+ return this.actualInstance;
+ }
- return true;
+ /**
+ * Sets the actual instance, which can be BabylonStakeEstimatedFee
, EthStakeEstimatedFee
.
+ * @param {(module:model/BabylonStakeEstimatedFee|module:model/EthStakeEstimatedFee)} obj The actual instance.
+ */
+ setActualInstance(obj) {
+ this.actualInstance = GetStakingEstimationFee201Response.constructFromObject(obj).getActualInstance();
}
+ /**
+ * Returns the JSON representation of the actual instance.
+ * @return {string}
+ */
+ toJSON = function(){
+ return this.getActualInstance();
+ }
+ /**
+ * Create an instance of GetStakingEstimationFee201Response from a JSON string.
+ * @param {string} json_string JSON string.
+ * @return {module:model/GetStakingEstimationFee201Response} An instance of GetStakingEstimationFee201Response.
+ */
+ static fromJSON = function(json_string){
+ return GetStakingEstimationFee201Response.constructFromObject(JSON.parse(json_string));
+ }
}
+/**
+ * @member {module:model/StakingPoolType} pool_type
+ */
+GetStakingEstimationFee201Response.prototype['pool_type'] = undefined;
+
+/**
+ * @member {module:model/EstimatedFee} fee
+ */
+GetStakingEstimationFee201Response.prototype['fee'] = undefined;
+/**
+ * A list of public keys associated with the Ethereum validators for this staking operation.
+ * @member {Array.} validator_pubkeys
+ */
+GetStakingEstimationFee201Response.prototype['validator_pubkeys'] = undefined;
/**
* @member {module:model/FeeType} fee_type
@@ -99,9 +194,7 @@ GetStakingEstimationFee201Response.prototype['fee_amount'] = undefined;
GetStakingEstimationFee201Response.prototype['token_id'] = undefined;
-
-
-
+GetStakingEstimationFee201Response.OneOf = ["BabylonStakeEstimatedFee", "EthStakeEstimatedFee"];
export default GetStakingEstimationFee201Response;
diff --git a/src/model/GetStakingEstimationFeeRequest.js b/src/model/GetStakingEstimationFeeRequest.js
index b75e0bc5..fc0e8d76 100644
--- a/src/model/GetStakingEstimationFeeRequest.js
+++ b/src/model/GetStakingEstimationFeeRequest.js
@@ -11,7 +11,7 @@
import ApiClient from '../ApiClient';
import ActivityType from './ActivityType';
-import CreateStakeActivityExtra from './CreateStakeActivityExtra';
+import CreateUnstakeActivityExtra from './CreateUnstakeActivityExtra';
import EstimateStakeFee from './EstimateStakeFee';
import EstimateUnstakeFee from './EstimateUnstakeFee';
import EstimateWithdrawFee from './EstimateWithdrawFee';
@@ -225,7 +225,7 @@ GetStakingEstimationFeeRequest.prototype['amount'] = undefined;
GetStakingEstimationFeeRequest.prototype['fee'] = undefined;
/**
- * @member {module:model/CreateStakeActivityExtra} extra
+ * @member {module:model/CreateUnstakeActivityExtra} extra
*/
GetStakingEstimationFeeRequest.prototype['extra'] = undefined;
diff --git a/src/model/GetToken200Response.js b/src/model/GetToken2XXResponse.js
similarity index 80%
rename from src/model/GetToken200Response.js
rename to src/model/GetToken2XXResponse.js
index 1e35ba23..c4939f32 100644
--- a/src/model/GetToken200Response.js
+++ b/src/model/GetToken2XXResponse.js
@@ -12,17 +12,17 @@
import ApiClient from '../ApiClient';
/**
- * The GetToken200Response model module.
- * @module model/GetToken200Response
+ * The GetToken2XXResponse model module.
+ * @module model/GetToken2XXResponse
*/
-class GetToken200Response {
+class GetToken2XXResponse {
/**
- * Constructs a new GetToken200Response
.
- * @alias module:model/GetToken200Response
+ * Constructs a new GetToken2XXResponse
.
+ * @alias module:model/GetToken2XXResponse
*/
constructor() {
- GetToken200Response.initialize(this);
+ GetToken2XXResponse.initialize(this);
}
/**
@@ -34,15 +34,15 @@ class GetToken200Response {
}
/**
- * Constructs a GetToken200Response
from a plain JavaScript object, optionally creating a new instance.
+ * Constructs a GetToken2XXResponse
from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from data
to obj
if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/GetToken200Response} obj Optional instance to populate.
- * @return {module:model/GetToken200Response} The populated GetToken200Response
instance.
+ * @param {module:model/GetToken2XXResponse} obj Optional instance to populate.
+ * @return {module:model/GetToken2XXResponse} The populated GetToken2XXResponse
instance.
*/
static constructFromObject(data, obj) {
if (data) {
- obj = obj || new GetToken200Response();
+ obj = obj || new GetToken2XXResponse();
if (data.hasOwnProperty('access_token')) {
obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String');
@@ -64,9 +64,9 @@ class GetToken200Response {
}
/**
- * Validates the JSON data with respect to GetToken200Response
.
+ * Validates the JSON data with respect to GetToken2XXResponse
.
* @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to GetToken200Response
.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to GetToken2XXResponse
.
*/
static validateJSON(data) {
// ensure the json data is a string
@@ -98,36 +98,36 @@ class GetToken200Response {
* The Org Access Token.
* @member {String} access_token
*/
-GetToken200Response.prototype['access_token'] = undefined;
+GetToken2XXResponse.prototype['access_token'] = undefined;
/**
* The type of the tokens, which is Bearer.
* @member {String} token_type
*/
-GetToken200Response.prototype['token_type'] = undefined;
+GetToken2XXResponse.prototype['token_type'] = undefined;
/**
* 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.
* @member {String} scope
*/
-GetToken200Response.prototype['scope'] = undefined;
+GetToken2XXResponse.prototype['scope'] = undefined;
/**
* The time in seconds in which the Org Access Token expires.
* @member {Number} expires_in
*/
-GetToken200Response.prototype['expires_in'] = undefined;
+GetToken2XXResponse.prototype['expires_in'] = undefined;
/**
* 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.
* @member {String} refresh_token
*/
-GetToken200Response.prototype['refresh_token'] = undefined;
+GetToken2XXResponse.prototype['refresh_token'] = undefined;
-export default GetToken200Response;
+export default GetToken2XXResponse;
diff --git a/src/model/GetToken4XXResponse.js b/src/model/GetToken4XXResponse.js
index 3e913375..3142b70a 100644
--- a/src/model/GetToken4XXResponse.js
+++ b/src/model/GetToken4XXResponse.js
@@ -21,10 +21,11 @@ class GetToken4XXResponse {
* The response of a failed request.
* @alias module:model/GetToken4XXResponse
* @param error {String} The error name.
+ * @param error_description {String} The error description.
*/
- constructor(error) {
+ constructor(error, error_description) {
- GetToken4XXResponse.initialize(this, error);
+ GetToken4XXResponse.initialize(this, error, error_description);
}
/**
@@ -32,8 +33,9 @@ class GetToken4XXResponse {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, error) {
+ static initialize(obj, error, error_description) {
obj['error'] = error;
+ obj['error_description'] = error_description;
}
/**
@@ -50,8 +52,8 @@ class GetToken4XXResponse {
if (data.hasOwnProperty('error')) {
obj['error'] = ApiClient.convertToType(data['error'], 'String');
}
- if (data.hasOwnProperty('error_message')) {
- obj['error_message'] = ApiClient.convertToType(data['error_message'], 'String');
+ if (data.hasOwnProperty('error_description')) {
+ obj['error_description'] = ApiClient.convertToType(data['error_description'], 'String');
}
}
return obj;
@@ -74,8 +76,8 @@ class GetToken4XXResponse {
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
}
// ensure the json data is a string
- if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
- throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
+ if (data['error_description'] && !(typeof data['error_description'] === 'string' || data['error_description'] instanceof String)) {
+ throw new Error("Expected the field `error_description` to be a primitive type in the JSON string but got " + data['error_description']);
}
return true;
@@ -84,7 +86,7 @@ class GetToken4XXResponse {
}
-GetToken4XXResponse.RequiredProperties = ["error"];
+GetToken4XXResponse.RequiredProperties = ["error", "error_description"];
/**
* The error name.
@@ -94,9 +96,9 @@ GetToken4XXResponse.prototype['error'] = undefined;
/**
* The error description.
- * @member {String} error_message
+ * @member {String} error_description
*/
-GetToken4XXResponse.prototype['error_message'] = undefined;
+GetToken4XXResponse.prototype['error_description'] = undefined;
diff --git a/src/model/MPCDelegate.js b/src/model/MPCDelegate.js
index 5c32b835..a1445f8b 100644
--- a/src/model/MPCDelegate.js
+++ b/src/model/MPCDelegate.js
@@ -19,7 +19,7 @@ import CoboSafeDelegateType from './CoboSafeDelegateType';
class MPCDelegate {
/**
* Constructs a new MPCDelegate
.
- * The information about the MPC Wallet as the Delegate.
+ * The information about the MPC Wallet as the Delegate. You can call the [List Delegates](/v2/api-references/wallets--smart-contract-wallets/list-delegates) operation to retrieve the applicable Delegates.
* @alias module:model/MPCDelegate
* @param delegate_type {module:model/CoboSafeDelegateType}
* @param wallet_id {String} The wallet ID of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
diff --git a/src/model/MpcTransferSource.js b/src/model/MpcTransferSource.js
index cb05d9d1..550e441f 100644
--- a/src/model/MpcTransferSource.js
+++ b/src/model/MpcTransferSource.js
@@ -20,7 +20,7 @@ import WalletSubtype from './WalletSubtype';
class MpcTransferSource {
/**
* Constructs a new MpcTransferSource
.
- * The information about the transaction source types `Org-Controlled` and `User-Controlled`. 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. If you specify both the `address` or `included_utxos` properties, the specified included UTXOs must belong to the address. Switch between the tabs to display the properties for different transaction sources.
+ * The information about the transaction source types `Org-Controlled` and `User-Controlled`. 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. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. Switch between the tabs to display the properties for different transaction sources.
* @alias module:model/MpcTransferSource
* @param source_type {module:model/WalletSubtype}
* @param wallet_id {String} The wallet ID.
@@ -131,7 +131,7 @@ MpcTransferSource.prototype['source_type'] = undefined;
MpcTransferSource.prototype['wallet_id'] = undefined;
/**
- * The wallet address.
+ * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
* @member {String} address
*/
MpcTransferSource.prototype['address'] = undefined;
diff --git a/src/model/RefreshToken201Response.js b/src/model/RefreshToken2XXResponse.js
similarity index 80%
rename from src/model/RefreshToken201Response.js
rename to src/model/RefreshToken2XXResponse.js
index 7f6af606..e1b83685 100644
--- a/src/model/RefreshToken201Response.js
+++ b/src/model/RefreshToken2XXResponse.js
@@ -12,17 +12,17 @@
import ApiClient from '../ApiClient';
/**
- * The RefreshToken201Response model module.
- * @module model/RefreshToken201Response
+ * The RefreshToken2XXResponse model module.
+ * @module model/RefreshToken2XXResponse
*/
-class RefreshToken201Response {
+class RefreshToken2XXResponse {
/**
- * Constructs a new RefreshToken201Response
.
- * @alias module:model/RefreshToken201Response
+ * Constructs a new RefreshToken2XXResponse
.
+ * @alias module:model/RefreshToken2XXResponse
*/
constructor() {
- RefreshToken201Response.initialize(this);
+ RefreshToken2XXResponse.initialize(this);
}
/**
@@ -34,15 +34,15 @@ class RefreshToken201Response {
}
/**
- * Constructs a RefreshToken201Response
from a plain JavaScript object, optionally creating a new instance.
+ * Constructs a RefreshToken2XXResponse
from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from data
to obj
if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/RefreshToken201Response} obj Optional instance to populate.
- * @return {module:model/RefreshToken201Response} The populated RefreshToken201Response
instance.
+ * @param {module:model/RefreshToken2XXResponse} obj Optional instance to populate.
+ * @return {module:model/RefreshToken2XXResponse} The populated RefreshToken2XXResponse
instance.
*/
static constructFromObject(data, obj) {
if (data) {
- obj = obj || new RefreshToken201Response();
+ obj = obj || new RefreshToken2XXResponse();
if (data.hasOwnProperty('access_token')) {
obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String');
@@ -64,9 +64,9 @@ class RefreshToken201Response {
}
/**
- * Validates the JSON data with respect to RefreshToken201Response
.
+ * Validates the JSON data with respect to RefreshToken2XXResponse
.
* @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to RefreshToken201Response
.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to RefreshToken2XXResponse
.
*/
static validateJSON(data) {
// ensure the json data is a string
@@ -98,36 +98,36 @@ class RefreshToken201Response {
* The new Org Access Token.
* @member {String} access_token
*/
-RefreshToken201Response.prototype['access_token'] = undefined;
+RefreshToken2XXResponse.prototype['access_token'] = undefined;
/**
* The type of the tokens, which is Bearer.
* @member {String} token_type
*/
-RefreshToken201Response.prototype['token_type'] = undefined;
+RefreshToken2XXResponse.prototype['token_type'] = undefined;
/**
* 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.
* @member {String} scope
*/
-RefreshToken201Response.prototype['scope'] = undefined;
+RefreshToken2XXResponse.prototype['scope'] = undefined;
/**
* The time in seconds in which the new Org Access Token expires.
* @member {Number} expires_in
*/
-RefreshToken201Response.prototype['expires_in'] = undefined;
+RefreshToken2XXResponse.prototype['expires_in'] = undefined;
/**
* The Refresh Token, used to obtain another Org Access Token when the new Org Access Token expires. The expiration time for Refresh Tokens is currently set to 30 days and is subject to change.
* @member {String} refresh_token
*/
-RefreshToken201Response.prototype['refresh_token'] = undefined;
+RefreshToken2XXResponse.prototype['refresh_token'] = undefined;
-export default RefreshToken201Response;
+export default RefreshToken2XXResponse;
diff --git a/src/model/RoleScopes.js b/src/model/RoleScopes.js
new file mode 100644
index 00000000..1e86f5e0
--- /dev/null
+++ b/src/model/RoleScopes.js
@@ -0,0 +1,110 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import Scopes from './Scopes';
+
+/**
+ * The RoleScopes model module.
+ * @module model/RoleScopes
+ */
+class RoleScopes {
+ /**
+ * Constructs a new RoleScopes
.
+ * @alias module:model/RoleScopes
+ * @param role_name {String} The user role associated with this API key.
+ * @param scopes {module:model/Scopes}
+ */
+ constructor(role_name, scopes) {
+
+ RoleScopes.initialize(this, role_name, scopes);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, role_name, scopes) {
+ obj['role_name'] = role_name;
+ obj['scopes'] = scopes;
+ }
+
+ /**
+ * Constructs a RoleScopes
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/RoleScopes} obj Optional instance to populate.
+ * @return {module:model/RoleScopes} The populated RoleScopes
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new RoleScopes();
+
+ if (data.hasOwnProperty('role_name')) {
+ obj['role_name'] = ApiClient.convertToType(data['role_name'], 'String');
+ }
+ if (data.hasOwnProperty('scopes')) {
+ obj['scopes'] = Scopes.constructFromObject(data['scopes']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to RoleScopes
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to RoleScopes
.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of RoleScopes.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ if (data['role_name'] && !(typeof data['role_name'] === 'string' || data['role_name'] instanceof String)) {
+ throw new Error("Expected the field `role_name` to be a primitive type in the JSON string but got " + data['role_name']);
+ }
+ // validate the optional field `scopes`
+ if (data['scopes']) { // data not null
+ if (!!Scopes.validateJSON) {
+ Scopes.validateJSON(data['scopes']);
+ }
+ }
+
+ return true;
+ }
+
+
+}
+
+RoleScopes.RequiredProperties = ["role_name", "scopes"];
+
+/**
+ * The user role associated with this API key.
+ * @member {String} role_name
+ */
+RoleScopes.prototype['role_name'] = undefined;
+
+/**
+ * @member {module:model/Scopes} scopes
+ */
+RoleScopes.prototype['scopes'] = undefined;
+
+
+
+
+
+
+export default RoleScopes;
+
diff --git a/src/model/Scopes.js b/src/model/Scopes.js
new file mode 100644
index 00000000..6f5477ff
--- /dev/null
+++ b/src/model/Scopes.js
@@ -0,0 +1,140 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import WalletSubtype from './WalletSubtype';
+import WalletType from './WalletType';
+
+/**
+ * The Scopes model module.
+ * @module model/Scopes
+ */
+class Scopes {
+ /**
+ * Constructs a new Scopes
.
+ * The wallet scopes associated with this API key.
+ * @alias module:model/Scopes
+ */
+ constructor() {
+
+ Scopes.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Scopes
from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data
to obj
if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Scopes} obj Optional instance to populate.
+ * @return {module:model/Scopes} The populated Scopes
instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Scopes();
+
+ if (data.hasOwnProperty('wallet_types')) {
+ obj['wallet_types'] = ApiClient.convertToType(data['wallet_types'], [WalletType]);
+ }
+ if (data.hasOwnProperty('wallet_subtypes')) {
+ obj['wallet_subtypes'] = ApiClient.convertToType(data['wallet_subtypes'], [WalletSubtype]);
+ }
+ if (data.hasOwnProperty('wallet_ids')) {
+ obj['wallet_ids'] = ApiClient.convertToType(data['wallet_ids'], ['String']);
+ }
+ if (data.hasOwnProperty('vault_ids')) {
+ obj['vault_ids'] = ApiClient.convertToType(data['vault_ids'], ['String']);
+ }
+ if (data.hasOwnProperty('project_ids')) {
+ obj['project_ids'] = ApiClient.convertToType(data['project_ids'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to Scopes
.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to Scopes
.
+ */
+ static validateJSON(data) {
+ // ensure the json data is an array
+ if (!Array.isArray(data['wallet_types'])) {
+ throw new Error("Expected the field `wallet_types` to be an array in the JSON data but got " + data['wallet_types']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['wallet_subtypes'])) {
+ throw new Error("Expected the field `wallet_subtypes` to be an array in the JSON data but got " + data['wallet_subtypes']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['wallet_ids'])) {
+ throw new Error("Expected the field `wallet_ids` to be an array in the JSON data but got " + data['wallet_ids']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['vault_ids'])) {
+ throw new Error("Expected the field `vault_ids` to be an array in the JSON data but got " + data['vault_ids']);
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['project_ids'])) {
+ throw new Error("Expected the field `project_ids` to be an array in the JSON data but got " + data['project_ids']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * The list of wallet types that this API key can access. Possible values include: - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
+ * @member {Array.} wallet_types
+ */
+Scopes.prototype['wallet_types'] = undefined;
+
+/**
+ * The list of wallet sub-types that this API key can access. Possible values include: - `Asset`: Custodial Wallets (Asset Wallets). - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets). - `User-Controlled`: MPC Wallets (User-Controlled Wallets). - `Safe{Wallet}`: Smart Contract Wallets (Safe). - `Main`: Exchange Wallets (Main Account). - `Sub`: Exchange Wallets (Sub Account).
+ * @member {Array.} wallet_subtypes
+ */
+Scopes.prototype['wallet_subtypes'] = undefined;
+
+/**
+ * The list of wallet IDs that this API key can access.
+ * @member {Array.} wallet_ids
+ */
+Scopes.prototype['wallet_ids'] = undefined;
+
+/**
+ * (Applicable to MPC Wallets only) The list of vault IDs that this API key can access.
+ * @member {Array.} vault_ids
+ */
+Scopes.prototype['vault_ids'] = undefined;
+
+/**
+ * (Applicable to MPC Wallets only) The list of project IDs that this API key can access.
+ * @member {Array.} project_ids
+ */
+Scopes.prototype['project_ids'] = undefined;
+
+
+
+
+
+
+export default Scopes;
+
diff --git a/src/model/SmartContractWalletInfo.js b/src/model/SmartContractWalletInfo.js
index 43138daf..b3b12bb0 100644
--- a/src/model/SmartContractWalletInfo.js
+++ b/src/model/SmartContractWalletInfo.js
@@ -37,7 +37,7 @@ class SmartContractWalletInfo {
if (discriminatorValue) {
switch(discriminatorValue) {
- case "Safe":
+ case "Safe{Wallet}":
this.actualInstance = SafeWallet.constructFromObject(instance);
match++;
break;
diff --git a/src/model/StakingPoolType.js b/src/model/StakingPoolType.js
index 9fd517ce..53b7d4f4 100644
--- a/src/model/StakingPoolType.js
+++ b/src/model/StakingPoolType.js
@@ -24,6 +24,13 @@ export default class StakingPoolType {
"Babylon" = "Babylon";
+ /**
+ * value: "ETHBeacon"
+ * @const
+ */
+ "ETHBeacon" = "ETHBeacon";
+
+
/**
* value: "unknown_default_open_api"
* @const
diff --git a/src/model/StakingsExtra.js b/src/model/StakingsExtra.js
index 4b1bb5f7..2c9af863 100644
--- a/src/model/StakingsExtra.js
+++ b/src/model/StakingsExtra.js
@@ -11,6 +11,7 @@
import ApiClient from '../ApiClient';
import BabylonStakingExtra from './BabylonStakingExtra';
+import EthStakingExtra from './EthStakingExtra';
import StakingPoolType from './StakingPoolType';
/**
@@ -21,7 +22,7 @@ class StakingsExtra {
/**
* Constructs a new StakingsExtra
.
* @alias module:model/StakingsExtra
- * @param {(module:model/BabylonStakingExtra)} instance The actual instance to initialize StakingsExtra.
+ * @param {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} instance The actual instance to initialize StakingsExtra.
*/
constructor(instance = null) {
if (instance === null) {
@@ -38,6 +39,10 @@ class StakingsExtra {
this.actualInstance = BabylonStakingExtra.constructFromObject(instance);
match++;
break;
+ case "ETHBeacon":
+ this.actualInstance = EthStakingExtra.constructFromObject(instance);
+ match++;
+ break;
default:
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
break;
@@ -70,12 +75,37 @@ class StakingsExtra {
errorMessages.push("Failed to construct BabylonStakingExtra: " + err)
}
+ try {
+ if (instance instanceof EthStakingExtra) {
+ this.actualInstance = instance;
+ } else if(!!EthStakingExtra.validateJSON && EthStakingExtra.validateJSON(instance)){
+ // plain JS object
+ // create EthStakingExtra from JS object
+ this.actualInstance = EthStakingExtra.constructFromObject(instance);
+ } else {
+ if(EthStakingExtra.constructFromObject(instance)) {
+ if (!!EthStakingExtra.constructFromObject(instance).toJSON) {
+ if (EthStakingExtra.constructFromObject(instance).toJSON()) {
+ this.actualInstance = EthStakingExtra.constructFromObject(instance);
+ }
+ } else {
+ this.actualInstance = EthStakingExtra.constructFromObject(instance);
+ }
+ }
+
+ }
+ match++;
+ } catch(err) {
+ // json data failed to deserialize into EthStakingExtra
+ errorMessages.push("Failed to construct EthStakingExtra: " + err)
+ }
+
// if (match > 1) {
- // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Input: " + JSON.stringify(instance));
+ // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Input: " + JSON.stringify(instance));
// } else
if (match === 0) {
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
- // throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Details: " +
+ // throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Details: " +
// errorMessages.join(", "));
return;
} else { // only 1 match
@@ -95,16 +125,16 @@ class StakingsExtra {
}
/**
- * Gets the actual instance, which can be BabylonStakingExtra
.
- * @return {(module:model/BabylonStakingExtra)} The actual instance.
+ * Gets the actual instance, which can be BabylonStakingExtra
, EthStakingExtra
.
+ * @return {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} The actual instance.
*/
getActualInstance() {
return this.actualInstance;
}
/**
- * Sets the actual instance, which can be BabylonStakingExtra
.
- * @param {(module:model/BabylonStakingExtra)} obj The actual instance.
+ * Sets the actual instance, which can be BabylonStakingExtra
, EthStakingExtra
.
+ * @param {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} obj The actual instance.
*/
setActualInstance(obj) {
this.actualInstance = StakingsExtra.constructFromObject(obj).getActualInstance();
@@ -164,7 +194,7 @@ StakingsExtra.prototype['stake_address'] = undefined;
StakingsExtra.prototype['unbond_address'] = undefined;
-StakingsExtra.OneOf = ["BabylonStakingExtra"];
+StakingsExtra.OneOf = ["BabylonStakingExtra", "EthStakingExtra"];
export default StakingsExtra;
diff --git a/src/model/TransactionEvmEip1559Fee.js b/src/model/TransactionEvmEip1559Fee.js
index 8e557eb2..31e9caca 100644
--- a/src/model/TransactionEvmEip1559Fee.js
+++ b/src/model/TransactionEvmEip1559Fee.js
@@ -146,9 +146,8 @@ TransactionEvmEip1559Fee.prototype['max_priority_fee_per_gas'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-TransactionEvmEip1559Fee.prototype['gas_limit'] = '21000';
+TransactionEvmEip1559Fee.prototype['gas_limit'] = undefined;
/**
* @member {module:model/FeeType} fee_type
@@ -195,9 +194,8 @@ EvmEip1559FeeBasePrice.prototype['max_priority_fee_per_gas'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-FeeGasLimit.prototype['gas_limit'] = '21000';
+FeeGasLimit.prototype['gas_limit'] = undefined;
diff --git a/src/model/TransactionEvmLegacyFee.js b/src/model/TransactionEvmLegacyFee.js
index ab01b662..69e03004 100644
--- a/src/model/TransactionEvmLegacyFee.js
+++ b/src/model/TransactionEvmLegacyFee.js
@@ -126,9 +126,8 @@ TransactionEvmLegacyFee.prototype['gas_price'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-TransactionEvmLegacyFee.prototype['gas_limit'] = '21000';
+TransactionEvmLegacyFee.prototype['gas_limit'] = undefined;
/**
* @member {module:model/FeeType} fee_type
@@ -164,9 +163,8 @@ EvmLegacyFeeBasePrice.prototype['gas_price'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-FeeGasLimit.prototype['gas_limit'] = '21000';
+FeeGasLimit.prototype['gas_limit'] = undefined;
diff --git a/src/model/TransactionFee.js b/src/model/TransactionFee.js
index 692639ca..f0eb26a9 100644
--- a/src/model/TransactionFee.js
+++ b/src/model/TransactionFee.js
@@ -262,9 +262,8 @@ TransactionFee.prototype['max_priority_fee_per_gas'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-TransactionFee.prototype['gas_limit'] = '21000';
+TransactionFee.prototype['gas_limit'] = undefined;
/**
* The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used.
diff --git a/src/model/TransactionRbfSource.js b/src/model/TransactionRbfSource.js
index 3a5040da..a78e32b2 100644
--- a/src/model/TransactionRbfSource.js
+++ b/src/model/TransactionRbfSource.js
@@ -145,7 +145,7 @@ TransactionRbfSource.prototype['source_type'] = undefined;
TransactionRbfSource.prototype['wallet_id'] = undefined;
/**
- * The wallet address.
+ * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
* @member {String} address
*/
TransactionRbfSource.prototype['address'] = undefined;
diff --git a/src/model/TransactionRequestEvmEip1559Fee.js b/src/model/TransactionRequestEvmEip1559Fee.js
index 133ecc1b..b44d2850 100644
--- a/src/model/TransactionRequestEvmEip1559Fee.js
+++ b/src/model/TransactionRequestEvmEip1559Fee.js
@@ -139,9 +139,8 @@ TransactionRequestEvmEip1559Fee.prototype['token_id'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-TransactionRequestEvmEip1559Fee.prototype['gas_limit'] = '21000';
+TransactionRequestEvmEip1559Fee.prototype['gas_limit'] = undefined;
// Implement EvmEip1559FeeBasePrice interface:
diff --git a/src/model/TransactionRequestEvmLegacyFee.js b/src/model/TransactionRequestEvmLegacyFee.js
index f338da4d..151386d1 100644
--- a/src/model/TransactionRequestEvmLegacyFee.js
+++ b/src/model/TransactionRequestEvmLegacyFee.js
@@ -124,9 +124,8 @@ TransactionRequestEvmLegacyFee.prototype['token_id'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-TransactionRequestEvmLegacyFee.prototype['gas_limit'] = '21000';
+TransactionRequestEvmLegacyFee.prototype['gas_limit'] = undefined;
// Implement EvmLegacyFeeBasePrice interface:
diff --git a/src/model/TransactionRequestFee.js b/src/model/TransactionRequestFee.js
index 8deb7ca4..3b335c81 100644
--- a/src/model/TransactionRequestFee.js
+++ b/src/model/TransactionRequestFee.js
@@ -238,9 +238,8 @@ TransactionRequestFee.prototype['max_fee_amount'] = undefined;
/**
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
* @member {String} gas_limit
- * @default '21000'
*/
-TransactionRequestFee.prototype['gas_limit'] = '21000';
+TransactionRequestFee.prototype['gas_limit'] = undefined;
/**
* The maximum gas fee per gas unit used on the chain, in wei.
diff --git a/src/model/TransactionSource.js b/src/model/TransactionSource.js
index abf59184..09c47bc6 100644
--- a/src/model/TransactionSource.js
+++ b/src/model/TransactionSource.js
@@ -69,7 +69,7 @@ class TransactionSource {
this.actualInstance = TransactionMPCWalletSource.constructFromObject(instance);
match++;
break;
- case "SafeWallet":
+ case "Safe{Wallet}":
this.actualInstance = TransactionSmartContractSafeWalletSource.constructFromObject(instance);
match++;
break;
diff --git a/src/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js b/src/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js
index 48b4a491..8caf64ca 100644
--- a/src/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js
+++ b/src/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js
@@ -50,9 +50,6 @@ class TransactionTransferToAddressDestinationUtxoOutputsInner {
if (data.hasOwnProperty('amount')) {
obj['amount'] = ApiClient.convertToType(data['amount'], 'String');
}
- if (data.hasOwnProperty('script')) {
- obj['script'] = ApiClient.convertToType(data['script'], 'String');
- }
}
return obj;
}
@@ -71,10 +68,6 @@ class TransactionTransferToAddressDestinationUtxoOutputsInner {
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
}
- // ensure the json data is a string
- if (data['script'] && !(typeof data['script'] === 'string' || data['script'] instanceof String)) {
- throw new Error("Expected the field `script` to be a primitive type in the JSON string but got " + data['script']);
- }
return true;
}
@@ -96,12 +89,6 @@ TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['address'] = u
*/
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['amount'] = undefined;
-/**
- * The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent.
- * @member {String} script
- */
-TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['script'] = undefined;
-
diff --git a/src/model/TransferDestination.js b/src/model/TransferDestination.js
index d904c7ef..1425713d 100644
--- a/src/model/TransferDestination.js
+++ b/src/model/TransferDestination.js
@@ -182,13 +182,13 @@ TransferDestination.prototype['utxo_outputs'] = undefined;
TransferDestination.prototype['change_address'] = undefined;
/**
- * Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
+ * Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
* @member {Boolean} force_internal
*/
TransferDestination.prototype['force_internal'] = undefined;
/**
- * Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
+ * Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
* @member {Boolean} force_external
*/
TransferDestination.prototype['force_external'] = undefined;
diff --git a/test/api/DevelopersApi.spec.js b/test/api/DevelopersApi.spec.js
new file mode 100644
index 00000000..c32fc1e4
--- /dev/null
+++ b/test/api/DevelopersApi.spec.js
@@ -0,0 +1,51 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+
+import {ApiClient, Env} from "../../src/index.js";
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ var apiClient = new ApiClient()
+ apiClient.setEnv(new Env("https://api[.xxx].cobo.com/v2"));
+ apiClient.setPrivateKey("");
+ instance = new CoboWaas2.DevelopersApi(apiClient);
+ });
+
+ describe('DevelopersApi', function() {
+ describe('getApiKeyInfo', function() {
+ it('should call getApiKeyInfo successfully', function() {
+ //uncomment below and update the code to test getApiKeyInfo
+ //instance.getApiKeyInfo().then(function(data) {
+ // console.log(data);
+ //}, function(error) {
+ // console.error(error);
+ //});
+ });
+ });
+ });
+
+}));
diff --git a/test/api/WalletsApi.spec.js b/test/api/WalletsApi.spec.js
index f4da65f1..cf643a5f 100644
--- a/test/api/WalletsApi.spec.js
+++ b/test/api/WalletsApi.spec.js
@@ -36,6 +36,16 @@ import {ApiClient, Env} from "../../src/index.js";
});
describe('WalletsApi', function() {
+ describe('checkAddressChainsValidity', function() {
+ it('should call checkAddressChainsValidity successfully', function() {
+ //uncomment below and update the code to test checkAddressChainsValidity
+ //instance.checkAddressChainsValidity().then(function(data) {
+ // console.log(data);
+ //}, function(error) {
+ // console.error(error);
+ //});
+ });
+ });
describe('checkAddressValidity', function() {
it('should call checkAddressValidity successfully', function() {
//uncomment below and update the code to test checkAddressValidity
@@ -86,16 +96,6 @@ import {ApiClient, Env} from "../../src/index.js";
//});
});
});
- describe('getAddress', function() {
- it('should call getAddress successfully', function() {
- //uncomment below and update the code to test getAddress
- //instance.getAddress().then(function(data) {
- // console.log(data);
- //}, function(error) {
- // console.error(error);
- //});
- });
- });
describe('getChainById', function() {
it('should call getChainById successfully', function() {
//uncomment below and update the code to test getChainById
diff --git a/test/model/AddressTransferDestinationUtxoOutputsInner.spec.js b/test/model/AddressTransferDestinationUtxoOutputsInner.spec.js
index 099cba2f..08e8110a 100644
--- a/test/model/AddressTransferDestinationUtxoOutputsInner.spec.js
+++ b/test/model/AddressTransferDestinationUtxoOutputsInner.spec.js
@@ -64,12 +64,6 @@
//expect(instance).to.be();
});
- it('should have the property script (base name: "script")', function() {
- // uncomment below and update the code to test the property script
- //var instance = new CoboWaas2.AddressTransferDestinationUtxoOutputsInner();
- //expect(instance).to.be();
- });
-
});
}));
diff --git a/test/model/BabylonStakeEstimatedFee.spec.js b/test/model/BabylonStakeEstimatedFee.spec.js
new file mode 100644
index 00000000..ec6cd13d
--- /dev/null
+++ b/test/model/BabylonStakeEstimatedFee.spec.js
@@ -0,0 +1,81 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.BabylonStakeEstimatedFee();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('BabylonStakeEstimatedFee', function() {
+ it('should create an instance of BabylonStakeEstimatedFee', function() {
+ // uncomment below and update the code to test BabylonStakeEstimatedFee
+ //var instance = new CoboWaas2.BabylonStakeEstimatedFee();
+ //expect(instance).to.be.a(CoboWaas2.BabylonStakeEstimatedFee);
+ });
+
+ it('should have the property pool_type (base name: "pool_type")', function() {
+ // uncomment below and update the code to test the property pool_type
+ //var instance = new CoboWaas2.BabylonStakeEstimatedFee();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property fee_type (base name: "fee_type")', function() {
+ // uncomment below and update the code to test the property fee_type
+ //var instance = new CoboWaas2.BabylonStakeEstimatedFee();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property fee_amount (base name: "fee_amount")', function() {
+ // uncomment below and update the code to test the property fee_amount
+ //var instance = new CoboWaas2.BabylonStakeEstimatedFee();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property token_id (base name: "token_id")', function() {
+ // uncomment below and update the code to test the property token_id
+ //var instance = new CoboWaas2.BabylonStakeEstimatedFee();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/CheckAddressChainsValidity200ResponseInner.spec.js b/test/model/CheckAddressChainsValidity200ResponseInner.spec.js
new file mode 100644
index 00000000..8b44f0cf
--- /dev/null
+++ b/test/model/CheckAddressChainsValidity200ResponseInner.spec.js
@@ -0,0 +1,69 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.CheckAddressChainsValidity200ResponseInner();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('CheckAddressChainsValidity200ResponseInner', function() {
+ it('should create an instance of CheckAddressChainsValidity200ResponseInner', function() {
+ // uncomment below and update the code to test CheckAddressChainsValidity200ResponseInner
+ //var instance = new CoboWaas2.CheckAddressChainsValidity200ResponseInner();
+ //expect(instance).to.be.a(CoboWaas2.CheckAddressChainsValidity200ResponseInner);
+ });
+
+ it('should have the property chain_id (base name: "chain_id")', function() {
+ // uncomment below and update the code to test the property chain_id
+ //var instance = new CoboWaas2.CheckAddressChainsValidity200ResponseInner();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property validity (base name: "validity")', function() {
+ // uncomment below and update the code to test the property validity
+ //var instance = new CoboWaas2.CheckAddressChainsValidity200ResponseInner();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/CreateStakeActivityExtra.spec.js b/test/model/CreateStakeActivityExtra.spec.js
index 8fc4114c..3c57c08d 100644
--- a/test/model/CreateStakeActivityExtra.spec.js
+++ b/test/model/CreateStakeActivityExtra.spec.js
@@ -76,6 +76,12 @@
//expect(instance).to.be();
});
+ it('should have the property provider_name (base name: "provider_name")', function() {
+ // uncomment below and update the code to test the property provider_name
+ //var instance = new CoboWaas2.CreateStakeActivityExtra();
+ //expect(instance).to.be();
+ });
+
});
}));
diff --git a/test/model/CreateUnstakeActivity.spec.js b/test/model/CreateUnstakeActivity.spec.js
index c0bbdff6..a3a88dbe 100644
--- a/test/model/CreateUnstakeActivity.spec.js
+++ b/test/model/CreateUnstakeActivity.spec.js
@@ -76,6 +76,12 @@
//expect(instance).to.be();
});
+ it('should have the property extra (base name: "extra")', function() {
+ // uncomment below and update the code to test the property extra
+ //var instance = new CoboWaas2.CreateUnstakeActivity();
+ //expect(instance).to.be();
+ });
+
});
}));
diff --git a/test/model/CreateUnstakeActivityExtra.spec.js b/test/model/CreateUnstakeActivityExtra.spec.js
new file mode 100644
index 00000000..ad35005c
--- /dev/null
+++ b/test/model/CreateUnstakeActivityExtra.spec.js
@@ -0,0 +1,69 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.CreateUnstakeActivityExtra();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('CreateUnstakeActivityExtra', function() {
+ it('should create an instance of CreateUnstakeActivityExtra', function() {
+ // uncomment below and update the code to test CreateUnstakeActivityExtra
+ //var instance = new CoboWaas2.CreateUnstakeActivityExtra();
+ //expect(instance).to.be.a(CoboWaas2.CreateUnstakeActivityExtra);
+ });
+
+ it('should have the property pool_type (base name: "pool_type")', function() {
+ // uncomment below and update the code to test the property pool_type
+ //var instance = new CoboWaas2.CreateUnstakeActivityExtra();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property validator_pubkeys (base name: "validator_pubkeys")', function() {
+ // uncomment below and update the code to test the property validator_pubkeys
+ //var instance = new CoboWaas2.CreateUnstakeActivityExtra();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/CreateUnstakeActivityRequest.spec.js b/test/model/CreateUnstakeActivityRequest.spec.js
index e1225cbf..29ce314a 100644
--- a/test/model/CreateUnstakeActivityRequest.spec.js
+++ b/test/model/CreateUnstakeActivityRequest.spec.js
@@ -76,6 +76,12 @@
//expect(instance).to.be();
});
+ it('should have the property extra (base name: "extra")', function() {
+ // uncomment below and update the code to test the property extra
+ //var instance = new CoboWaas2.CreateUnstakeActivityRequest();
+ //expect(instance).to.be();
+ });
+
it('should have the property app_initiator (base name: "app_initiator")', function() {
// uncomment below and update the code to test the property app_initiator
//var instance = new CoboWaas2.CreateUnstakeActivityRequest();
diff --git a/test/model/EstimateUnstakeFee.spec.js b/test/model/EstimateUnstakeFee.spec.js
index 579d39a3..4be12cfc 100644
--- a/test/model/EstimateUnstakeFee.spec.js
+++ b/test/model/EstimateUnstakeFee.spec.js
@@ -82,6 +82,12 @@
//expect(instance).to.be();
});
+ it('should have the property extra (base name: "extra")', function() {
+ // uncomment below and update the code to test the property extra
+ //var instance = new CoboWaas2.EstimateUnstakeFee();
+ //expect(instance).to.be();
+ });
+
});
}));
diff --git a/test/model/EthStakeEstimatedFee.spec.js b/test/model/EthStakeEstimatedFee.spec.js
new file mode 100644
index 00000000..0cd58ef9
--- /dev/null
+++ b/test/model/EthStakeEstimatedFee.spec.js
@@ -0,0 +1,75 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.EthStakeEstimatedFee();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('EthStakeEstimatedFee', function() {
+ it('should create an instance of EthStakeEstimatedFee', function() {
+ // uncomment below and update the code to test EthStakeEstimatedFee
+ //var instance = new CoboWaas2.EthStakeEstimatedFee();
+ //expect(instance).to.be.a(CoboWaas2.EthStakeEstimatedFee);
+ });
+
+ it('should have the property pool_type (base name: "pool_type")', function() {
+ // uncomment below and update the code to test the property pool_type
+ //var instance = new CoboWaas2.EthStakeEstimatedFee();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property fee (base name: "fee")', function() {
+ // uncomment below and update the code to test the property fee
+ //var instance = new CoboWaas2.EthStakeEstimatedFee();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property validator_pubkeys (base name: "validator_pubkeys")', function() {
+ // uncomment below and update the code to test the property validator_pubkeys
+ //var instance = new CoboWaas2.EthStakeEstimatedFee();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/EthStakeExtra.spec.js b/test/model/EthStakeExtra.spec.js
new file mode 100644
index 00000000..34a26a63
--- /dev/null
+++ b/test/model/EthStakeExtra.spec.js
@@ -0,0 +1,69 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.EthStakeExtra();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('EthStakeExtra', function() {
+ it('should create an instance of EthStakeExtra', function() {
+ // uncomment below and update the code to test EthStakeExtra
+ //var instance = new CoboWaas2.EthStakeExtra();
+ //expect(instance).to.be.a(CoboWaas2.EthStakeExtra);
+ });
+
+ it('should have the property pool_type (base name: "pool_type")', function() {
+ // uncomment below and update the code to test the property pool_type
+ //var instance = new CoboWaas2.EthStakeExtra();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property provider_name (base name: "provider_name")', function() {
+ // uncomment below and update the code to test the property provider_name
+ //var instance = new CoboWaas2.EthStakeExtra();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/EthStakingExtra.spec.js b/test/model/EthStakingExtra.spec.js
new file mode 100644
index 00000000..05d00302
--- /dev/null
+++ b/test/model/EthStakingExtra.spec.js
@@ -0,0 +1,69 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.EthStakingExtra();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('EthStakingExtra', function() {
+ it('should create an instance of EthStakingExtra', function() {
+ // uncomment below and update the code to test EthStakingExtra
+ //var instance = new CoboWaas2.EthStakingExtra();
+ //expect(instance).to.be.a(CoboWaas2.EthStakingExtra);
+ });
+
+ it('should have the property pool_type (base name: "pool_type")', function() {
+ // uncomment below and update the code to test the property pool_type
+ //var instance = new CoboWaas2.EthStakingExtra();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property pos_chain (base name: "pos_chain")', function() {
+ // uncomment below and update the code to test the property pos_chain
+ //var instance = new CoboWaas2.EthStakingExtra();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/EthUnstakeExtra.spec.js b/test/model/EthUnstakeExtra.spec.js
new file mode 100644
index 00000000..d6e4b8d1
--- /dev/null
+++ b/test/model/EthUnstakeExtra.spec.js
@@ -0,0 +1,69 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.EthUnstakeExtra();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('EthUnstakeExtra', function() {
+ it('should create an instance of EthUnstakeExtra', function() {
+ // uncomment below and update the code to test EthUnstakeExtra
+ //var instance = new CoboWaas2.EthUnstakeExtra();
+ //expect(instance).to.be.a(CoboWaas2.EthUnstakeExtra);
+ });
+
+ it('should have the property pool_type (base name: "pool_type")', function() {
+ // uncomment below and update the code to test the property pool_type
+ //var instance = new CoboWaas2.EthUnstakeExtra();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property validator_pubkeys (base name: "validator_pubkeys")', function() {
+ // uncomment below and update the code to test the property validator_pubkeys
+ //var instance = new CoboWaas2.EthUnstakeExtra();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/GetApiKeyInfo200Response.spec.js b/test/model/GetApiKeyInfo200Response.spec.js
new file mode 100644
index 00000000..e8fdd8e3
--- /dev/null
+++ b/test/model/GetApiKeyInfo200Response.spec.js
@@ -0,0 +1,111 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.GetApiKeyInfo200Response();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('GetApiKeyInfo200Response', function() {
+ it('should create an instance of GetApiKeyInfo200Response', function() {
+ // uncomment below and update the code to test GetApiKeyInfo200Response
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be.a(CoboWaas2.GetApiKeyInfo200Response);
+ });
+
+ it('should have the property name (base name: "name")', function() {
+ // uncomment below and update the code to test the property name
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property curve_type (base name: "curve_type")', function() {
+ // uncomment below and update the code to test the property curve_type
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property key (base name: "key")', function() {
+ // uncomment below and update the code to test the property key
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property callback_url (base name: "callback_url")', function() {
+ // uncomment below and update the code to test the property callback_url
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property valid_ips (base name: "valid_ips")', function() {
+ // uncomment below and update the code to test the property valid_ips
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property created_timestamp (base name: "created_timestamp")', function() {
+ // uncomment below and update the code to test the property created_timestamp
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property updated_timestamp (base name: "updated_timestamp")', function() {
+ // uncomment below and update the code to test the property updated_timestamp
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property expired_timestamp (base name: "expired_timestamp")', function() {
+ // uncomment below and update the code to test the property expired_timestamp
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property role_scopes (base name: "role_scopes")', function() {
+ // uncomment below and update the code to test the property role_scopes
+ //var instance = new CoboWaas2.GetApiKeyInfo200Response();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/GetStakingEstimationFee201Response.spec.js b/test/model/GetStakingEstimationFee201Response.spec.js
index b89eeba0..f93a4191 100644
--- a/test/model/GetStakingEstimationFee201Response.spec.js
+++ b/test/model/GetStakingEstimationFee201Response.spec.js
@@ -52,6 +52,24 @@
//expect(instance).to.be.a(CoboWaas2.GetStakingEstimationFee201Response);
});
+ it('should have the property pool_type (base name: "pool_type")', function() {
+ // uncomment below and update the code to test the property pool_type
+ //var instance = new CoboWaas2.GetStakingEstimationFee201Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property fee (base name: "fee")', function() {
+ // uncomment below and update the code to test the property fee
+ //var instance = new CoboWaas2.GetStakingEstimationFee201Response();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property validator_pubkeys (base name: "validator_pubkeys")', function() {
+ // uncomment below and update the code to test the property validator_pubkeys
+ //var instance = new CoboWaas2.GetStakingEstimationFee201Response();
+ //expect(instance).to.be();
+ });
+
it('should have the property fee_type (base name: "fee_type")', function() {
// uncomment below and update the code to test the property fee_type
//var instance = new CoboWaas2.GetStakingEstimationFee201Response();
diff --git a/test/model/GetToken200Response.spec.js b/test/model/GetToken2XXResponse.spec.js
similarity index 78%
rename from test/model/GetToken200Response.spec.js
rename to test/model/GetToken2XXResponse.spec.js
index c5cdcafe..73f686ee 100644
--- a/test/model/GetToken200Response.spec.js
+++ b/test/model/GetToken2XXResponse.spec.js
@@ -26,7 +26,7 @@
var instance;
beforeEach(function() {
- instance = new CoboWaas2.GetToken200Response();
+ instance = new CoboWaas2.GetToken2XXResponse();
});
var getProperty = function(object, getter, property) {
@@ -45,40 +45,40 @@
object[property] = value;
}
- describe('GetToken200Response', function() {
- it('should create an instance of GetToken200Response', function() {
- // uncomment below and update the code to test GetToken200Response
- //var instance = new CoboWaas2.GetToken200Response();
- //expect(instance).to.be.a(CoboWaas2.GetToken200Response);
+ describe('GetToken2XXResponse', function() {
+ it('should create an instance of GetToken2XXResponse', function() {
+ // uncomment below and update the code to test GetToken2XXResponse
+ //var instance = new CoboWaas2.GetToken2XXResponse();
+ //expect(instance).to.be.a(CoboWaas2.GetToken2XXResponse);
});
it('should have the property access_token (base name: "access_token")', function() {
// uncomment below and update the code to test the property access_token
- //var instance = new CoboWaas2.GetToken200Response();
+ //var instance = new CoboWaas2.GetToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property token_type (base name: "token_type")', function() {
// uncomment below and update the code to test the property token_type
- //var instance = new CoboWaas2.GetToken200Response();
+ //var instance = new CoboWaas2.GetToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property scope (base name: "scope")', function() {
// uncomment below and update the code to test the property scope
- //var instance = new CoboWaas2.GetToken200Response();
+ //var instance = new CoboWaas2.GetToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property expires_in (base name: "expires_in")', function() {
// uncomment below and update the code to test the property expires_in
- //var instance = new CoboWaas2.GetToken200Response();
+ //var instance = new CoboWaas2.GetToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property refresh_token (base name: "refresh_token")', function() {
// uncomment below and update the code to test the property refresh_token
- //var instance = new CoboWaas2.GetToken200Response();
+ //var instance = new CoboWaas2.GetToken2XXResponse();
//expect(instance).to.be();
});
diff --git a/test/model/GetToken4XXResponse.spec.js b/test/model/GetToken4XXResponse.spec.js
index 60f596d9..958ad4ea 100644
--- a/test/model/GetToken4XXResponse.spec.js
+++ b/test/model/GetToken4XXResponse.spec.js
@@ -58,8 +58,8 @@
//expect(instance).to.be();
});
- it('should have the property error_message (base name: "error_message")', function() {
- // uncomment below and update the code to test the property error_message
+ it('should have the property error_description (base name: "error_description")', function() {
+ // uncomment below and update the code to test the property error_description
//var instance = new CoboWaas2.GetToken4XXResponse();
//expect(instance).to.be();
});
diff --git a/test/model/RefreshToken201Response.spec.js b/test/model/RefreshToken2XXResponse.spec.js
similarity index 79%
rename from test/model/RefreshToken201Response.spec.js
rename to test/model/RefreshToken2XXResponse.spec.js
index c359511a..d08a4edd 100644
--- a/test/model/RefreshToken201Response.spec.js
+++ b/test/model/RefreshToken2XXResponse.spec.js
@@ -26,7 +26,7 @@
var instance;
beforeEach(function() {
- instance = new CoboWaas2.RefreshToken201Response();
+ instance = new CoboWaas2.RefreshToken2XXResponse();
});
var getProperty = function(object, getter, property) {
@@ -45,40 +45,40 @@
object[property] = value;
}
- describe('RefreshToken201Response', function() {
- it('should create an instance of RefreshToken201Response', function() {
- // uncomment below and update the code to test RefreshToken201Response
- //var instance = new CoboWaas2.RefreshToken201Response();
- //expect(instance).to.be.a(CoboWaas2.RefreshToken201Response);
+ describe('RefreshToken2XXResponse', function() {
+ it('should create an instance of RefreshToken2XXResponse', function() {
+ // uncomment below and update the code to test RefreshToken2XXResponse
+ //var instance = new CoboWaas2.RefreshToken2XXResponse();
+ //expect(instance).to.be.a(CoboWaas2.RefreshToken2XXResponse);
});
it('should have the property access_token (base name: "access_token")', function() {
// uncomment below and update the code to test the property access_token
- //var instance = new CoboWaas2.RefreshToken201Response();
+ //var instance = new CoboWaas2.RefreshToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property token_type (base name: "token_type")', function() {
// uncomment below and update the code to test the property token_type
- //var instance = new CoboWaas2.RefreshToken201Response();
+ //var instance = new CoboWaas2.RefreshToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property scope (base name: "scope")', function() {
// uncomment below and update the code to test the property scope
- //var instance = new CoboWaas2.RefreshToken201Response();
+ //var instance = new CoboWaas2.RefreshToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property expires_in (base name: "expires_in")', function() {
// uncomment below and update the code to test the property expires_in
- //var instance = new CoboWaas2.RefreshToken201Response();
+ //var instance = new CoboWaas2.RefreshToken2XXResponse();
//expect(instance).to.be();
});
it('should have the property refresh_token (base name: "refresh_token")', function() {
// uncomment below and update the code to test the property refresh_token
- //var instance = new CoboWaas2.RefreshToken201Response();
+ //var instance = new CoboWaas2.RefreshToken2XXResponse();
//expect(instance).to.be();
});
diff --git a/test/model/RoleScopes.spec.js b/test/model/RoleScopes.spec.js
new file mode 100644
index 00000000..9b8ea3cc
--- /dev/null
+++ b/test/model/RoleScopes.spec.js
@@ -0,0 +1,69 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.RoleScopes();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('RoleScopes', function() {
+ it('should create an instance of RoleScopes', function() {
+ // uncomment below and update the code to test RoleScopes
+ //var instance = new CoboWaas2.RoleScopes();
+ //expect(instance).to.be.a(CoboWaas2.RoleScopes);
+ });
+
+ it('should have the property role_name (base name: "role_name")', function() {
+ // uncomment below and update the code to test the property role_name
+ //var instance = new CoboWaas2.RoleScopes();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property scopes (base name: "scopes")', function() {
+ // uncomment below and update the code to test the property scopes
+ //var instance = new CoboWaas2.RoleScopes();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/Scopes.spec.js b/test/model/Scopes.spec.js
new file mode 100644
index 00000000..4f766bdf
--- /dev/null
+++ b/test/model/Scopes.spec.js
@@ -0,0 +1,87 @@
+/**
+ * Cobo Wallet as a Service 2.0
+ *
+ * Contact: help@cobo.com
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+(function(root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD.
+ define(['expect.js', process.cwd()+'/src/index'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ // CommonJS-like environments that support module.exports, like Node.
+ factory(require('expect.js'), require(process.cwd()+'/src/index'));
+ } else {
+ // Browser globals (root is window)
+ factory(root.expect, root.CoboWaas2);
+ }
+}(this, function(expect, CoboWaas2) {
+ 'use strict';
+
+ var instance;
+
+ beforeEach(function() {
+ instance = new CoboWaas2.Scopes();
+ });
+
+ var getProperty = function(object, getter, property) {
+ // Use getter method if present; otherwise, get the property directly.
+ if (typeof object[getter] === 'function')
+ return object[getter]();
+ else
+ return object[property];
+ }
+
+ var setProperty = function(object, setter, property, value) {
+ // Use setter method if present; otherwise, set the property directly.
+ if (typeof object[setter] === 'function')
+ object[setter](value);
+ else
+ object[property] = value;
+ }
+
+ describe('Scopes', function() {
+ it('should create an instance of Scopes', function() {
+ // uncomment below and update the code to test Scopes
+ //var instance = new CoboWaas2.Scopes();
+ //expect(instance).to.be.a(CoboWaas2.Scopes);
+ });
+
+ it('should have the property wallet_types (base name: "wallet_types")', function() {
+ // uncomment below and update the code to test the property wallet_types
+ //var instance = new CoboWaas2.Scopes();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property wallet_subtypes (base name: "wallet_subtypes")', function() {
+ // uncomment below and update the code to test the property wallet_subtypes
+ //var instance = new CoboWaas2.Scopes();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property wallet_ids (base name: "wallet_ids")', function() {
+ // uncomment below and update the code to test the property wallet_ids
+ //var instance = new CoboWaas2.Scopes();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property vault_ids (base name: "vault_ids")', function() {
+ // uncomment below and update the code to test the property vault_ids
+ //var instance = new CoboWaas2.Scopes();
+ //expect(instance).to.be();
+ });
+
+ it('should have the property project_ids (base name: "project_ids")', function() {
+ // uncomment below and update the code to test the property project_ids
+ //var instance = new CoboWaas2.Scopes();
+ //expect(instance).to.be();
+ });
+
+ });
+
+}));
diff --git a/test/model/TransactionTransferToAddressDestinationUtxoOutputsInner.spec.js b/test/model/TransactionTransferToAddressDestinationUtxoOutputsInner.spec.js
index 4b0b8378..7db4b1b7 100644
--- a/test/model/TransactionTransferToAddressDestinationUtxoOutputsInner.spec.js
+++ b/test/model/TransactionTransferToAddressDestinationUtxoOutputsInner.spec.js
@@ -64,12 +64,6 @@
//expect(instance).to.be();
});
- it('should have the property script (base name: "script")', function() {
- // uncomment below and update the code to test the property script
- //var instance = new CoboWaas2.TransactionTransferToAddressDestinationUtxoOutputsInner();
- //expect(instance).to.be();
- });
-
});
}));