@cobo/cobo-waas2 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -3
- package/dist/ApiClient.js +1 -1
- package/dist/api/OAuthApi.js +16 -15
- package/dist/api/TransactionsApi.js +18 -18
- package/dist/api/WalletsApi.js +123 -12
- package/dist/api/WalletsExchangeWalletApi.js +254 -0
- package/dist/api/WalletsMPCWalletsApi.js +8 -8
- package/dist/index.js +56 -0
- package/dist/model/Activity.js +3 -1
- package/dist/model/AddressInfo.js +1 -1
- package/dist/model/AddressTransferDestination.js +6 -4
- package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +1 -1
- package/dist/model/AssetBalance.js +3 -1
- package/dist/model/AssetInfo.js +2 -2
- package/dist/model/BabylonStakeExtra.js +9 -0
- package/dist/model/CheckAddressValidity200Response.js +2 -2
- package/dist/model/CheckAddressesValidity200ResponseInner.js +121 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +96 -0
- package/dist/model/CoboSafeDelegate.js +3 -3
- package/dist/model/ContractCallDestination.js +4 -4
- package/dist/model/ContractCallParams.js +9 -3
- package/dist/model/ContractCallSource.js +6 -6
- package/dist/model/CreateSafeWalletParams.js +3 -1
- package/dist/model/CreateSmartContractWalletParams.js +3 -3
- package/dist/model/CreateStakeActivity.js +23 -4
- package/dist/model/CreateStakeActivityExtra.js +15 -9
- package/dist/model/CreateTssRequestRequest.js +16 -1
- package/dist/model/CreateUnstakeActivity.js +16 -1
- package/dist/model/CreateWalletParams.js +9 -9
- package/dist/model/CreateWithdrawActivity.js +16 -1
- package/dist/model/CreatedWalletInfo.js +21 -9
- package/dist/model/EstimateContractCallFeeParams.js +6 -2
- package/dist/model/EstimateFeeParams.js +6 -6
- package/dist/model/EstimateStakeFee.js +28 -4
- package/dist/model/EstimateTransferFeeParams.js +6 -2
- package/dist/model/EstimateUnstakeFee.js +21 -1
- package/dist/model/EstimateWithdrawFee.js +21 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +9 -3
- package/dist/model/EstimatedEvmLegacyFee.js +9 -3
- package/dist/model/EstimatedFee.js +12 -12
- package/dist/model/EstimatedUtxoFee.js +9 -3
- package/dist/model/EvmContractCallDestination.js +1 -1
- package/dist/model/EvmEip1559FeeRate.js +9 -3
- package/dist/model/EvmLegacyFeeRate.js +9 -3
- package/dist/model/ExchangeId.js +5 -0
- package/dist/model/ExchangeTransferDestination.js +16 -16
- package/dist/model/ExchangeTransferSource.js +14 -14
- package/dist/model/FeeRate.js +12 -12
- package/dist/model/GetToken200Response.js +4 -4
- package/dist/model/KeyShareHolder.js +13 -0
- package/dist/model/ListAddresses200Response.js +3 -1
- package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +123 -0
- package/dist/model/ListExchanges200ResponseInner.js +122 -0
- package/dist/model/ListKeyShareHolderGroups200Response.js +3 -1
- package/dist/model/ListMpcProjects200Response.js +3 -1
- package/dist/model/ListMpcVaults200Response.js +3 -1
- package/dist/model/ListSupportedAssetsForExchange200Response.js +123 -0
- package/dist/model/ListSupportedChains200Response.js +3 -1
- package/dist/model/ListSupportedTokens200Response.js +3 -1
- package/dist/model/ListTokenBalancesForAddress200Response.js +3 -1
- package/dist/model/ListTransactions200Response.js +3 -1
- package/dist/model/ListTssRequests200Response.js +3 -1
- package/dist/model/ListUtxos200Response.js +3 -1
- package/dist/model/ListWallets200Response.js +3 -1
- package/dist/model/ListWebhookEndpoints200Response.js +3 -1
- package/dist/model/ListWebhookEventLogs200Response.js +3 -1
- package/dist/model/ListWebhookEvents200Response.js +3 -1
- package/dist/model/MPCWalletInfo.js +26 -0
- package/dist/model/MaxTransferableValue.js +3 -1
- package/dist/model/MessageSignDestination.js +6 -6
- package/dist/model/MessageSignParams.js +6 -2
- package/dist/model/MessageSignSource.js +3 -3
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +6 -6
- package/dist/model/RefreshToken200Response.js +135 -0
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/SafeContractCallSource.js +3 -1
- package/dist/model/SafeTransferSource.js +3 -1
- package/dist/model/SafeWallet.js +3 -1
- package/dist/model/SmartContractWalletInfo.js +3 -3
- package/dist/model/SmartContractWalletType.js +2 -2
- package/dist/model/StakingSource.js +6 -6
- package/dist/model/Stakings.js +3 -1
- package/dist/model/SubWalletAssetBalance.js +13 -11
- package/dist/model/TSSRequest.js +26 -2
- package/dist/model/TSSRequestWebhookEventData.js +263 -0
- package/dist/model/TokenBalance.js +3 -1
- package/dist/model/Transaction.js +21 -7
- package/dist/model/TransactionDepositFromWalletSource.js +6 -6
- package/dist/model/TransactionDepositToAddressDestination.js +2 -2
- package/dist/model/TransactionDepositToWalletDestination.js +9 -9
- package/dist/model/TransactionDestination.js +26 -26
- package/dist/model/TransactionDetail.js +21 -7
- package/dist/model/TransactionDetails.js +24 -8
- package/dist/model/TransactionEvmContractDestination.js +1 -1
- package/dist/model/TransactionExchangeWalletSource.js +6 -6
- package/dist/model/TransactionFee.js +12 -12
- package/dist/model/TransactionMPCWalletSource.js +13 -0
- package/dist/model/TransactionRbf.js +6 -2
- package/dist/model/TransactionRbfSource.js +3 -3
- package/dist/model/TransactionRequestFee.js +12 -12
- package/dist/model/TransactionResult.js +3 -3
- package/dist/model/TransactionSmartContractSafeWalletSource.js +3 -1
- package/dist/model/TransactionSource.js +29 -23
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionTransferToAddressDestination.js +3 -1
- package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +1 -1
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +1 -1
- package/dist/model/TransactionTransferToWalletDestination.js +9 -9
- package/dist/model/TransactionWebhookEventData.js +29 -10
- package/dist/model/TransferDestination.js +12 -12
- package/dist/model/TransferParams.js +11 -5
- package/dist/model/TransferSource.js +15 -15
- package/dist/model/UpdateWalletParams.js +12 -12
- package/dist/model/UtxoFeeRate.js +9 -3
- package/dist/model/WalletInfo.js +24 -12
- package/dist/model/WebhookEvent.js +3 -1
- package/dist/model/WebhookEventData.js +52 -18
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventLog.js +3 -1
- package/dist/model/WebhookEventType.js +24 -4
- package/docs/AddressInfo.md +1 -1
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressTransferDestinationAccountOutput.md +1 -1
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
- package/docs/AssetInfo.md +1 -1
- package/docs/BabylonStakeExtra.md +1 -0
- package/docs/CheckAddressValidity200Response.md +1 -1
- package/docs/CheckAddressesValidity200ResponseInner.md +10 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +10 -0
- package/docs/ContractCallDestination.md +1 -1
- package/docs/CreateStakeActivity.md +1 -0
- package/docs/CreateStakeActivityExtra.md +1 -0
- package/docs/CreateTssRequestRequest.md +1 -0
- package/docs/CreateUnstakeActivity.md +1 -0
- package/docs/CreateWithdrawActivity.md +1 -0
- package/docs/CreatedWalletInfo.md +2 -0
- package/docs/DevelopersWebhooksApi.md +78 -69
- package/docs/EstimateStakeFee.md +1 -0
- package/docs/EstimateUnstakeFee.md +1 -0
- package/docs/EstimateWithdrawFee.md +1 -0
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeId.md +2 -0
- package/docs/ExchangeTransferDestination.md +2 -2
- package/docs/ExchangeTransferSource.md +1 -1
- package/docs/GetToken200Response.md +4 -4
- package/docs/KeyShareHolder.md +1 -0
- package/docs/ListAssetBalancesForExchangeWallet200Response.md +10 -0
- package/docs/ListExchanges200ResponseInner.md +10 -0
- package/docs/ListSupportedAssetsForExchange200Response.md +10 -0
- package/docs/MPCWalletInfo.md +2 -0
- package/docs/OAuthApi.md +26 -24
- package/docs/RefreshToken200Response.md +13 -0
- package/docs/RefreshTokenRequest.md +2 -2
- package/docs/SmartContractWalletType.md +1 -1
- package/docs/SubWalletAssetBalance.md +2 -2
- package/docs/TSSRequest.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +29 -0
- package/docs/TransactionDepositFromWalletSource.md +1 -1
- package/docs/TransactionDepositToAddressDestination.md +1 -1
- package/docs/TransactionDepositToWalletDestination.md +2 -2
- package/docs/TransactionDestination.md +3 -3
- package/docs/TransactionEvmContractDestination.md +1 -1
- package/docs/TransactionExchangeWalletSource.md +1 -1
- package/docs/TransactionMPCWalletSource.md +1 -0
- package/docs/TransactionSource.md +2 -1
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
- package/docs/TransactionTransferToWalletDestination.md +2 -2
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +98 -88
- package/docs/TransferDestination.md +4 -4
- package/docs/TransferParams.md +1 -1
- package/docs/TransferSource.md +1 -1
- package/docs/WalletInfo.md +2 -0
- package/docs/WalletsApi.md +316 -187
- package/docs/WalletsExchangeWalletApi.md +230 -0
- package/docs/WalletsMPCWalletsApi.md +153 -135
- package/docs/WebhookEventData.md +10 -5
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +12 -4
- package/package.json +1 -1
|
@@ -118,17 +118,23 @@ var EstimatedEvmEip1559Fee = /*#__PURE__*/function () {
|
|
|
118
118
|
// validate the optional field `slow`
|
|
119
119
|
if (data['slow']) {
|
|
120
120
|
// data not null
|
|
121
|
-
_EstimatedEvmEip1559FeeSlow["default"].validateJSON
|
|
121
|
+
if (!!_EstimatedEvmEip1559FeeSlow["default"].validateJSON) {
|
|
122
|
+
_EstimatedEvmEip1559FeeSlow["default"].validateJSON(data['slow']);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
// validate the optional field `recommended`
|
|
124
126
|
if (data['recommended']) {
|
|
125
127
|
// data not null
|
|
126
|
-
_EstimatedEvmEip1559FeeSlow["default"].validateJSON
|
|
128
|
+
if (!!_EstimatedEvmEip1559FeeSlow["default"].validateJSON) {
|
|
129
|
+
_EstimatedEvmEip1559FeeSlow["default"].validateJSON(data['recommended']);
|
|
130
|
+
}
|
|
127
131
|
}
|
|
128
132
|
// validate the optional field `fast`
|
|
129
133
|
if (data['fast']) {
|
|
130
134
|
// data not null
|
|
131
|
-
_EstimatedEvmEip1559FeeSlow["default"].validateJSON
|
|
135
|
+
if (!!_EstimatedEvmEip1559FeeSlow["default"].validateJSON) {
|
|
136
|
+
_EstimatedEvmEip1559FeeSlow["default"].validateJSON(data['fast']);
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return true;
|
|
134
140
|
}
|
|
@@ -118,17 +118,23 @@ var EstimatedEvmLegacyFee = /*#__PURE__*/function () {
|
|
|
118
118
|
// validate the optional field `slow`
|
|
119
119
|
if (data['slow']) {
|
|
120
120
|
// data not null
|
|
121
|
-
_EstimatedEvmLegacyFeeSlow["default"].validateJSON
|
|
121
|
+
if (!!_EstimatedEvmLegacyFeeSlow["default"].validateJSON) {
|
|
122
|
+
_EstimatedEvmLegacyFeeSlow["default"].validateJSON(data['slow']);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
// validate the optional field `recommended`
|
|
124
126
|
if (data['recommended']) {
|
|
125
127
|
// data not null
|
|
126
|
-
_EstimatedEvmLegacyFeeSlow["default"].validateJSON
|
|
128
|
+
if (!!_EstimatedEvmLegacyFeeSlow["default"].validateJSON) {
|
|
129
|
+
_EstimatedEvmLegacyFeeSlow["default"].validateJSON(data['recommended']);
|
|
130
|
+
}
|
|
127
131
|
}
|
|
128
132
|
// validate the optional field `fast`
|
|
129
133
|
if (data['fast']) {
|
|
130
134
|
// data not null
|
|
131
|
-
_EstimatedEvmLegacyFeeSlow["default"].validateJSON
|
|
135
|
+
if (!!_EstimatedEvmLegacyFeeSlow["default"].validateJSON) {
|
|
136
|
+
_EstimatedEvmLegacyFeeSlow["default"].validateJSON(data['fast']);
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return true;
|
|
134
140
|
}
|
|
@@ -58,12 +58,12 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
58
58
|
try {
|
|
59
59
|
if (instance instanceof _EstimatedFixedFee["default"]) {
|
|
60
60
|
this.actualInstance = instance;
|
|
61
|
-
} else if (_EstimatedFixedFee["default"].validateJSON(instance)) {
|
|
61
|
+
} else if (!!_EstimatedFixedFee["default"].validateJSON && _EstimatedFixedFee["default"].validateJSON(instance)) {
|
|
62
62
|
// plain JS object
|
|
63
63
|
// create EstimatedFixedFee from JS object
|
|
64
64
|
this.actualInstance = _EstimatedFixedFee["default"].constructFromObject(instance);
|
|
65
|
-
} else {
|
|
66
|
-
|
|
65
|
+
} else if (_EstimatedFixedFee["default"].constructFromObject(instance)) {
|
|
66
|
+
this.actualInstance = _EstimatedFixedFee["default"].constructFromObject(instance);
|
|
67
67
|
}
|
|
68
68
|
match++;
|
|
69
69
|
} catch (err) {
|
|
@@ -73,12 +73,12 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
73
73
|
try {
|
|
74
74
|
if (instance instanceof _EstimatedEvmEip1559Fee["default"]) {
|
|
75
75
|
this.actualInstance = instance;
|
|
76
|
-
} else if (_EstimatedEvmEip1559Fee["default"].validateJSON(instance)) {
|
|
76
|
+
} else if (!!_EstimatedEvmEip1559Fee["default"].validateJSON && _EstimatedEvmEip1559Fee["default"].validateJSON(instance)) {
|
|
77
77
|
// plain JS object
|
|
78
78
|
// create EstimatedEvmEip1559Fee from JS object
|
|
79
79
|
this.actualInstance = _EstimatedEvmEip1559Fee["default"].constructFromObject(instance);
|
|
80
|
-
} else {
|
|
81
|
-
|
|
80
|
+
} else if (_EstimatedEvmEip1559Fee["default"].constructFromObject(instance)) {
|
|
81
|
+
this.actualInstance = _EstimatedEvmEip1559Fee["default"].constructFromObject(instance);
|
|
82
82
|
}
|
|
83
83
|
match++;
|
|
84
84
|
} catch (err) {
|
|
@@ -88,12 +88,12 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
88
88
|
try {
|
|
89
89
|
if (instance instanceof _EstimatedEvmLegacyFee["default"]) {
|
|
90
90
|
this.actualInstance = instance;
|
|
91
|
-
} else if (_EstimatedEvmLegacyFee["default"].validateJSON(instance)) {
|
|
91
|
+
} else if (!!_EstimatedEvmLegacyFee["default"].validateJSON && _EstimatedEvmLegacyFee["default"].validateJSON(instance)) {
|
|
92
92
|
// plain JS object
|
|
93
93
|
// create EstimatedEvmLegacyFee from JS object
|
|
94
94
|
this.actualInstance = _EstimatedEvmLegacyFee["default"].constructFromObject(instance);
|
|
95
|
-
} else {
|
|
96
|
-
|
|
95
|
+
} else if (_EstimatedEvmLegacyFee["default"].constructFromObject(instance)) {
|
|
96
|
+
this.actualInstance = _EstimatedEvmLegacyFee["default"].constructFromObject(instance);
|
|
97
97
|
}
|
|
98
98
|
match++;
|
|
99
99
|
} catch (err) {
|
|
@@ -103,12 +103,12 @@ var EstimatedFee = /*#__PURE__*/function () {
|
|
|
103
103
|
try {
|
|
104
104
|
if (instance instanceof _EstimatedUtxoFee["default"]) {
|
|
105
105
|
this.actualInstance = instance;
|
|
106
|
-
} else if (_EstimatedUtxoFee["default"].validateJSON(instance)) {
|
|
106
|
+
} else if (!!_EstimatedUtxoFee["default"].validateJSON && _EstimatedUtxoFee["default"].validateJSON(instance)) {
|
|
107
107
|
// plain JS object
|
|
108
108
|
// create EstimatedUtxoFee from JS object
|
|
109
109
|
this.actualInstance = _EstimatedUtxoFee["default"].constructFromObject(instance);
|
|
110
|
-
} else {
|
|
111
|
-
|
|
110
|
+
} else if (_EstimatedUtxoFee["default"].constructFromObject(instance)) {
|
|
111
|
+
this.actualInstance = _EstimatedUtxoFee["default"].constructFromObject(instance);
|
|
112
112
|
}
|
|
113
113
|
match++;
|
|
114
114
|
} catch (err) {
|
|
@@ -118,17 +118,23 @@ var EstimatedUtxoFee = /*#__PURE__*/function () {
|
|
|
118
118
|
// validate the optional field `slow`
|
|
119
119
|
if (data['slow']) {
|
|
120
120
|
// data not null
|
|
121
|
-
_EstimatedUtxoFeeSlow["default"].validateJSON
|
|
121
|
+
if (!!_EstimatedUtxoFeeSlow["default"].validateJSON) {
|
|
122
|
+
_EstimatedUtxoFeeSlow["default"].validateJSON(data['slow']);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
// validate the optional field `recommended`
|
|
124
126
|
if (data['recommended']) {
|
|
125
127
|
// data not null
|
|
126
|
-
_EstimatedUtxoFeeSlow["default"].validateJSON
|
|
128
|
+
if (!!_EstimatedUtxoFeeSlow["default"].validateJSON) {
|
|
129
|
+
_EstimatedUtxoFeeSlow["default"].validateJSON(data['recommended']);
|
|
130
|
+
}
|
|
127
131
|
}
|
|
128
132
|
// validate the optional field `fast`
|
|
129
133
|
if (data['fast']) {
|
|
130
134
|
// data not null
|
|
131
|
-
_EstimatedUtxoFeeSlow["default"].validateJSON
|
|
135
|
+
if (!!_EstimatedUtxoFeeSlow["default"].validateJSON) {
|
|
136
|
+
_EstimatedUtxoFeeSlow["default"].validateJSON(data['fast']);
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return true;
|
|
134
140
|
}
|
|
@@ -133,7 +133,7 @@ EvmContractCallDestination.prototype['destination_type'] = undefined;
|
|
|
133
133
|
EvmContractCallDestination.prototype['address'] = undefined;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* The
|
|
136
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
137
137
|
* @member {String} value
|
|
138
138
|
*/
|
|
139
139
|
EvmContractCallDestination.prototype['value'] = undefined;
|
|
@@ -118,17 +118,23 @@ var EvmEip1559FeeRate = /*#__PURE__*/function () {
|
|
|
118
118
|
// validate the optional field `slow`
|
|
119
119
|
if (data['slow']) {
|
|
120
120
|
// data not null
|
|
121
|
-
_EvmEip1559FeeBasePrice["default"].validateJSON
|
|
121
|
+
if (!!_EvmEip1559FeeBasePrice["default"].validateJSON) {
|
|
122
|
+
_EvmEip1559FeeBasePrice["default"].validateJSON(data['slow']);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
// validate the optional field `recommended`
|
|
124
126
|
if (data['recommended']) {
|
|
125
127
|
// data not null
|
|
126
|
-
_EvmEip1559FeeBasePrice["default"].validateJSON
|
|
128
|
+
if (!!_EvmEip1559FeeBasePrice["default"].validateJSON) {
|
|
129
|
+
_EvmEip1559FeeBasePrice["default"].validateJSON(data['recommended']);
|
|
130
|
+
}
|
|
127
131
|
}
|
|
128
132
|
// validate the optional field `fast`
|
|
129
133
|
if (data['fast']) {
|
|
130
134
|
// data not null
|
|
131
|
-
_EvmEip1559FeeBasePrice["default"].validateJSON
|
|
135
|
+
if (!!_EvmEip1559FeeBasePrice["default"].validateJSON) {
|
|
136
|
+
_EvmEip1559FeeBasePrice["default"].validateJSON(data['fast']);
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return true;
|
|
134
140
|
}
|
|
@@ -118,17 +118,23 @@ var EvmLegacyFeeRate = /*#__PURE__*/function () {
|
|
|
118
118
|
// validate the optional field `slow`
|
|
119
119
|
if (data['slow']) {
|
|
120
120
|
// data not null
|
|
121
|
-
_EvmLegacyFeeBasePrice["default"].validateJSON
|
|
121
|
+
if (!!_EvmLegacyFeeBasePrice["default"].validateJSON) {
|
|
122
|
+
_EvmLegacyFeeBasePrice["default"].validateJSON(data['slow']);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
// validate the optional field `recommended`
|
|
124
126
|
if (data['recommended']) {
|
|
125
127
|
// data not null
|
|
126
|
-
_EvmLegacyFeeBasePrice["default"].validateJSON
|
|
128
|
+
if (!!_EvmLegacyFeeBasePrice["default"].validateJSON) {
|
|
129
|
+
_EvmLegacyFeeBasePrice["default"].validateJSON(data['recommended']);
|
|
130
|
+
}
|
|
127
131
|
}
|
|
128
132
|
// validate the optional field `fast`
|
|
129
133
|
if (data['fast']) {
|
|
130
134
|
// data not null
|
|
131
|
-
_EvmLegacyFeeBasePrice["default"].validateJSON
|
|
135
|
+
if (!!_EvmLegacyFeeBasePrice["default"].validateJSON) {
|
|
136
|
+
_EvmLegacyFeeBasePrice["default"].validateJSON(data['fast']);
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return true;
|
|
134
140
|
}
|
package/dist/model/ExchangeId.js
CHANGED
|
@@ -55,6 +55,11 @@ var ExchangeId = exports["default"] = /*#__PURE__*/function () {
|
|
|
55
55
|
* @const
|
|
56
56
|
*/
|
|
57
57
|
_defineProperty(this, "gate", "gate");
|
|
58
|
+
/**
|
|
59
|
+
* value: "bitget"
|
|
60
|
+
* @const
|
|
61
|
+
*/
|
|
62
|
+
_defineProperty(this, "bitget", "bitget");
|
|
58
63
|
/**
|
|
59
64
|
* value: "unknown_default_open_api"
|
|
60
65
|
* @const
|
|
@@ -32,16 +32,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var ExchangeTransferDestination = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>ExchangeTransferDestination</code>.
|
|
35
|
-
* The information about the transaction destination type `ExchangeWallet`. An Exchange Wallet (Sub Account)
|
|
35
|
+
* The information about the transaction destination type `ExchangeWallet`. An Exchange Wallet (Sub Account) can only receive asset transfers from another Exchange Wallet.
|
|
36
36
|
* @alias module:model/ExchangeTransferDestination
|
|
37
37
|
* @param destination_type {module:model/TransferDestinationType}
|
|
38
38
|
* @param wallet_id {String} The wallet ID.
|
|
39
|
-
* @param
|
|
40
|
-
* @param amount {String} The
|
|
39
|
+
* @param trading_account_type {String} The trading account type.
|
|
40
|
+
* @param amount {String} The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
41
41
|
*/
|
|
42
|
-
function ExchangeTransferDestination(destination_type, wallet_id,
|
|
42
|
+
function ExchangeTransferDestination(destination_type, wallet_id, trading_account_type, amount) {
|
|
43
43
|
_classCallCheck(this, ExchangeTransferDestination);
|
|
44
|
-
ExchangeTransferDestination.initialize(this, destination_type, wallet_id,
|
|
44
|
+
ExchangeTransferDestination.initialize(this, destination_type, wallet_id, trading_account_type, amount);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -51,10 +51,10 @@ var ExchangeTransferDestination = /*#__PURE__*/function () {
|
|
|
51
51
|
*/
|
|
52
52
|
return _createClass(ExchangeTransferDestination, null, [{
|
|
53
53
|
key: "initialize",
|
|
54
|
-
value: function initialize(obj, destination_type, wallet_id,
|
|
54
|
+
value: function initialize(obj, destination_type, wallet_id, trading_account_type, amount) {
|
|
55
55
|
obj['destination_type'] = destination_type;
|
|
56
56
|
obj['wallet_id'] = wallet_id;
|
|
57
|
-
obj['
|
|
57
|
+
obj['trading_account_type'] = trading_account_type;
|
|
58
58
|
obj['amount'] = amount;
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -76,8 +76,8 @@ var ExchangeTransferDestination = /*#__PURE__*/function () {
|
|
|
76
76
|
if (data.hasOwnProperty('wallet_id')) {
|
|
77
77
|
obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty('
|
|
80
|
-
obj['
|
|
79
|
+
if (data.hasOwnProperty('trading_account_type')) {
|
|
80
|
+
obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
|
|
81
81
|
}
|
|
82
82
|
if (data.hasOwnProperty('amount')) {
|
|
83
83
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
@@ -114,8 +114,8 @@ var ExchangeTransferDestination = /*#__PURE__*/function () {
|
|
|
114
114
|
throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
|
|
115
115
|
}
|
|
116
116
|
// ensure the json data is a string
|
|
117
|
-
if (data['
|
|
118
|
-
throw new Error("Expected the field `
|
|
117
|
+
if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
|
|
119
119
|
}
|
|
120
120
|
// ensure the json data is a string
|
|
121
121
|
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
@@ -125,7 +125,7 @@ var ExchangeTransferDestination = /*#__PURE__*/function () {
|
|
|
125
125
|
}
|
|
126
126
|
}]);
|
|
127
127
|
}();
|
|
128
|
-
ExchangeTransferDestination.RequiredProperties = ["destination_type", "wallet_id", "
|
|
128
|
+
ExchangeTransferDestination.RequiredProperties = ["destination_type", "wallet_id", "trading_account_type", "amount"];
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* @member {module:model/TransferDestinationType} destination_type
|
|
@@ -139,13 +139,13 @@ ExchangeTransferDestination.prototype['destination_type'] = undefined;
|
|
|
139
139
|
ExchangeTransferDestination.prototype['wallet_id'] = undefined;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* The
|
|
143
|
-
* @member {String}
|
|
142
|
+
* The trading account type.
|
|
143
|
+
* @member {String} trading_account_type
|
|
144
144
|
*/
|
|
145
|
-
ExchangeTransferDestination.prototype['
|
|
145
|
+
ExchangeTransferDestination.prototype['trading_account_type'] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* The
|
|
148
|
+
* The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
|
|
149
149
|
* @member {String} amount
|
|
150
150
|
*/
|
|
151
151
|
ExchangeTransferDestination.prototype['amount'] = undefined;
|
|
@@ -32,15 +32,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var ExchangeTransferSource = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>ExchangeTransferSource</code>.
|
|
35
|
-
* The information about the transaction source types `Main` and `Sub`.
|
|
35
|
+
* The information about the transaction source types `Main` and `Sub`. Assets in an Exchange Wallet (Sub Account) can only be transferred to another Exchange Wallet.
|
|
36
36
|
* @alias module:model/ExchangeTransferSource
|
|
37
37
|
* @param source_type {module:model/WalletSubtype}
|
|
38
38
|
* @param wallet_id {String} The wallet ID.
|
|
39
|
-
* @param
|
|
39
|
+
* @param trading_account_type {String} The trading account type.
|
|
40
40
|
*/
|
|
41
|
-
function ExchangeTransferSource(source_type, wallet_id,
|
|
41
|
+
function ExchangeTransferSource(source_type, wallet_id, trading_account_type) {
|
|
42
42
|
_classCallCheck(this, ExchangeTransferSource);
|
|
43
|
-
ExchangeTransferSource.initialize(this, source_type, wallet_id,
|
|
43
|
+
ExchangeTransferSource.initialize(this, source_type, wallet_id, trading_account_type);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -50,10 +50,10 @@ var ExchangeTransferSource = /*#__PURE__*/function () {
|
|
|
50
50
|
*/
|
|
51
51
|
return _createClass(ExchangeTransferSource, null, [{
|
|
52
52
|
key: "initialize",
|
|
53
|
-
value: function initialize(obj, source_type, wallet_id,
|
|
53
|
+
value: function initialize(obj, source_type, wallet_id, trading_account_type) {
|
|
54
54
|
obj['source_type'] = source_type;
|
|
55
55
|
obj['wallet_id'] = wallet_id;
|
|
56
|
-
obj['
|
|
56
|
+
obj['trading_account_type'] = trading_account_type;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -74,8 +74,8 @@ var ExchangeTransferSource = /*#__PURE__*/function () {
|
|
|
74
74
|
if (data.hasOwnProperty('wallet_id')) {
|
|
75
75
|
obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty('
|
|
78
|
-
obj['
|
|
77
|
+
if (data.hasOwnProperty('trading_account_type')) {
|
|
78
|
+
obj['trading_account_type'] = _ApiClient["default"].convertToType(data['trading_account_type'], 'String');
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
return obj;
|
|
@@ -109,14 +109,14 @@ var ExchangeTransferSource = /*#__PURE__*/function () {
|
|
|
109
109
|
throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
|
|
110
110
|
}
|
|
111
111
|
// ensure the json data is a string
|
|
112
|
-
if (data['
|
|
113
|
-
throw new Error("Expected the field `
|
|
112
|
+
if (data['trading_account_type'] && !(typeof data['trading_account_type'] === 'string' || data['trading_account_type'] instanceof String)) {
|
|
113
|
+
throw new Error("Expected the field `trading_account_type` to be a primitive type in the JSON string but got " + data['trading_account_type']);
|
|
114
114
|
}
|
|
115
115
|
return true;
|
|
116
116
|
}
|
|
117
117
|
}]);
|
|
118
118
|
}();
|
|
119
|
-
ExchangeTransferSource.RequiredProperties = ["source_type", "wallet_id", "
|
|
119
|
+
ExchangeTransferSource.RequiredProperties = ["source_type", "wallet_id", "trading_account_type"];
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* @member {module:model/WalletSubtype} source_type
|
|
@@ -130,8 +130,8 @@ ExchangeTransferSource.prototype['source_type'] = undefined;
|
|
|
130
130
|
ExchangeTransferSource.prototype['wallet_id'] = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* The
|
|
134
|
-
* @member {String}
|
|
133
|
+
* The trading account type.
|
|
134
|
+
* @member {String} trading_account_type
|
|
135
135
|
*/
|
|
136
|
-
ExchangeTransferSource.prototype['
|
|
136
|
+
ExchangeTransferSource.prototype['trading_account_type'] = undefined;
|
|
137
137
|
var _default = exports["default"] = ExchangeTransferSource;
|
package/dist/model/FeeRate.js
CHANGED
|
@@ -58,12 +58,12 @@ var FeeRate = /*#__PURE__*/function () {
|
|
|
58
58
|
try {
|
|
59
59
|
if (instance instanceof _FixedFeeRate["default"]) {
|
|
60
60
|
this.actualInstance = instance;
|
|
61
|
-
} else if (_FixedFeeRate["default"].validateJSON(instance)) {
|
|
61
|
+
} else if (!!_FixedFeeRate["default"].validateJSON && _FixedFeeRate["default"].validateJSON(instance)) {
|
|
62
62
|
// plain JS object
|
|
63
63
|
// create FixedFeeRate from JS object
|
|
64
64
|
this.actualInstance = _FixedFeeRate["default"].constructFromObject(instance);
|
|
65
|
-
} else {
|
|
66
|
-
|
|
65
|
+
} else if (_FixedFeeRate["default"].constructFromObject(instance)) {
|
|
66
|
+
this.actualInstance = _FixedFeeRate["default"].constructFromObject(instance);
|
|
67
67
|
}
|
|
68
68
|
match++;
|
|
69
69
|
} catch (err) {
|
|
@@ -73,12 +73,12 @@ var FeeRate = /*#__PURE__*/function () {
|
|
|
73
73
|
try {
|
|
74
74
|
if (instance instanceof _EvmEip1559FeeRate["default"]) {
|
|
75
75
|
this.actualInstance = instance;
|
|
76
|
-
} else if (_EvmEip1559FeeRate["default"].validateJSON(instance)) {
|
|
76
|
+
} else if (!!_EvmEip1559FeeRate["default"].validateJSON && _EvmEip1559FeeRate["default"].validateJSON(instance)) {
|
|
77
77
|
// plain JS object
|
|
78
78
|
// create EvmEip1559FeeRate from JS object
|
|
79
79
|
this.actualInstance = _EvmEip1559FeeRate["default"].constructFromObject(instance);
|
|
80
|
-
} else {
|
|
81
|
-
|
|
80
|
+
} else if (_EvmEip1559FeeRate["default"].constructFromObject(instance)) {
|
|
81
|
+
this.actualInstance = _EvmEip1559FeeRate["default"].constructFromObject(instance);
|
|
82
82
|
}
|
|
83
83
|
match++;
|
|
84
84
|
} catch (err) {
|
|
@@ -88,12 +88,12 @@ var FeeRate = /*#__PURE__*/function () {
|
|
|
88
88
|
try {
|
|
89
89
|
if (instance instanceof _EvmLegacyFeeRate["default"]) {
|
|
90
90
|
this.actualInstance = instance;
|
|
91
|
-
} else if (_EvmLegacyFeeRate["default"].validateJSON(instance)) {
|
|
91
|
+
} else if (!!_EvmLegacyFeeRate["default"].validateJSON && _EvmLegacyFeeRate["default"].validateJSON(instance)) {
|
|
92
92
|
// plain JS object
|
|
93
93
|
// create EvmLegacyFeeRate from JS object
|
|
94
94
|
this.actualInstance = _EvmLegacyFeeRate["default"].constructFromObject(instance);
|
|
95
|
-
} else {
|
|
96
|
-
|
|
95
|
+
} else if (_EvmLegacyFeeRate["default"].constructFromObject(instance)) {
|
|
96
|
+
this.actualInstance = _EvmLegacyFeeRate["default"].constructFromObject(instance);
|
|
97
97
|
}
|
|
98
98
|
match++;
|
|
99
99
|
} catch (err) {
|
|
@@ -103,12 +103,12 @@ var FeeRate = /*#__PURE__*/function () {
|
|
|
103
103
|
try {
|
|
104
104
|
if (instance instanceof _UtxoFeeRate["default"]) {
|
|
105
105
|
this.actualInstance = instance;
|
|
106
|
-
} else if (_UtxoFeeRate["default"].validateJSON(instance)) {
|
|
106
|
+
} else if (!!_UtxoFeeRate["default"].validateJSON && _UtxoFeeRate["default"].validateJSON(instance)) {
|
|
107
107
|
// plain JS object
|
|
108
108
|
// create UtxoFeeRate from JS object
|
|
109
109
|
this.actualInstance = _UtxoFeeRate["default"].constructFromObject(instance);
|
|
110
|
-
} else {
|
|
111
|
-
|
|
110
|
+
} else if (_UtxoFeeRate["default"].constructFromObject(instance)) {
|
|
111
|
+
this.actualInstance = _UtxoFeeRate["default"].constructFromObject(instance);
|
|
112
112
|
}
|
|
113
113
|
match++;
|
|
114
114
|
} catch (err) {
|
|
@@ -104,19 +104,19 @@ var GetToken200Response = /*#__PURE__*/function () {
|
|
|
104
104
|
}]);
|
|
105
105
|
}();
|
|
106
106
|
/**
|
|
107
|
-
* The access token
|
|
107
|
+
* The access token.
|
|
108
108
|
* @member {String} access_token
|
|
109
109
|
*/
|
|
110
110
|
GetToken200Response.prototype['access_token'] = undefined;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* The type of the tokens.
|
|
113
|
+
* The type of the tokens, which is Bearer.
|
|
114
114
|
* @member {String} token_type
|
|
115
115
|
*/
|
|
116
116
|
GetToken200Response.prototype['token_type'] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* The scope of the access token.
|
|
119
|
+
* The scope of the access token to limit the app's access to the organization's resources. **Note**: Currently this property value is empty. The scope of the access token is based on the permissions granted when the app user installs the app.
|
|
120
120
|
* @member {String} scope
|
|
121
121
|
*/
|
|
122
122
|
GetToken200Response.prototype['scope'] = undefined;
|
|
@@ -128,7 +128,7 @@ GetToken200Response.prototype['scope'] = undefined;
|
|
|
128
128
|
GetToken200Response.prototype['expires_in'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* The refresh token, used
|
|
131
|
+
* The refresh token, used to obtain a new access token when the current access token expires.
|
|
132
132
|
* @member {String} refresh_token
|
|
133
133
|
*/
|
|
134
134
|
GetToken200Response.prototype['refresh_token'] = undefined;
|
|
@@ -77,6 +77,9 @@ var KeyShareHolder = /*#__PURE__*/function () {
|
|
|
77
77
|
if (data.hasOwnProperty('status')) {
|
|
78
78
|
obj['status'] = _KeyShareHolderStatus["default"].constructFromObject(data['status']);
|
|
79
79
|
}
|
|
80
|
+
if (data.hasOwnProperty('account_id')) {
|
|
81
|
+
obj['account_id'] = _ApiClient["default"].convertToType(data['account_id'], 'String');
|
|
82
|
+
}
|
|
80
83
|
}
|
|
81
84
|
return obj;
|
|
82
85
|
}
|
|
@@ -97,6 +100,10 @@ var KeyShareHolder = /*#__PURE__*/function () {
|
|
|
97
100
|
if (data['tss_node_id'] && !(typeof data['tss_node_id'] === 'string' || data['tss_node_id'] instanceof String)) {
|
|
98
101
|
throw new Error("Expected the field `tss_node_id` to be a primitive type in the JSON string but got " + data['tss_node_id']);
|
|
99
102
|
}
|
|
103
|
+
// ensure the json data is a string
|
|
104
|
+
if (data['account_id'] && !(typeof data['account_id'] === 'string' || data['account_id'] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `account_id` to be a primitive type in the JSON string but got " + data['account_id']);
|
|
106
|
+
}
|
|
100
107
|
return true;
|
|
101
108
|
}
|
|
102
109
|
}]);
|
|
@@ -134,4 +141,10 @@ KeyShareHolder.prototype['signer'] = undefined;
|
|
|
134
141
|
* @member {module:model/KeyShareHolderStatus} status
|
|
135
142
|
*/
|
|
136
143
|
KeyShareHolder.prototype['status'] = undefined;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The key share holder's Cobo Portal account ID.
|
|
147
|
+
* @member {String} account_id
|
|
148
|
+
*/
|
|
149
|
+
KeyShareHolder.prototype['account_id'] = undefined;
|
|
137
150
|
var _default = exports["default"] = KeyShareHolder;
|
|
@@ -103,7 +103,9 @@ var ListAddresses200Response = /*#__PURE__*/function () {
|
|
|
103
103
|
// validate the optional field `pagination`
|
|
104
104
|
if (data['pagination']) {
|
|
105
105
|
// data not null
|
|
106
|
-
_Pagination["default"].validateJSON
|
|
106
|
+
if (!!_Pagination["default"].validateJSON) {
|
|
107
|
+
_Pagination["default"].validateJSON(data['pagination']);
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
110
|
return true;
|
|
109
111
|
}
|