@cobo/cobo-waas2 1.4.0 → 1.6.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 +32 -10
- package/dist/ApiClient.js +1 -1
- package/dist/ServerDemo.js +80 -0
- package/dist/api/AddressBooksApi.js +105 -0
- package/dist/api/DevelopersApi.js +79 -0
- package/dist/api/DevelopersWebhooksApi.js +43 -0
- package/dist/api/OAuthApi.js +10 -10
- package/dist/api/TransactionsApi.js +12 -12
- package/dist/api/WalletsApi.js +60 -59
- package/dist/api/WalletsExchangeWalletApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +8 -8
- package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
- package/dist/index.js +181 -34
- package/dist/model/AddressBook.js +25 -10
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
- package/dist/model/ApiLogDetails.js +238 -0
- package/dist/model/ApiLogSummary.js +161 -0
- package/dist/model/BabylonStakeEstimatedFee.js +118 -0
- package/dist/model/BabylonValidator.js +5 -0
- package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
- package/dist/model/CoboSafeDelegate.js +2 -2
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +42 -8
- package/dist/model/CreateUnstakeActivity.js +16 -0
- package/dist/model/CreateUnstakeActivityExtra.js +159 -0
- package/dist/model/CreateUnstakeActivityRequest.js +20 -0
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +5 -7
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +5 -9
- package/dist/model/EstimateUnstakeFee.js +20 -0
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EthStakeEstimatedFee.js +112 -0
- package/dist/model/EthStakeExtra.js +131 -0
- package/dist/model/EthStakingExtra.js +131 -0
- package/dist/model/EthUnstakeExtra.js +131 -0
- package/dist/model/ExchangeId.js +10 -0
- package/dist/model/ExtendedTokenInfo.js +17 -4
- package/dist/model/FeeGasLimit.js +1 -2
- package/dist/model/GetApiKeyInfo200Response.js +251 -0
- package/dist/model/GetStakingEstimationFee201Response.js +144 -43
- package/dist/model/GetStakingEstimationFeeRequest.js +2 -2
- package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
- package/dist/model/GetToken4XXResponse.js +12 -10
- package/dist/model/ListAddressBooks200Response.js +123 -0
- package/dist/model/MPCDelegate.js +5 -5
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/{RefreshToken200Response.js → RefreshToken2XXResponse.js} +21 -21
- package/dist/model/{WalletBalanceSnapshot.js → RoleScopes.js} +42 -34
- package/dist/model/SafeWalletDelegates.js +210 -0
- package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
- package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
- package/dist/model/Scopes.js +142 -0
- package/dist/model/SmartContractWalletInfo.js +1 -1
- package/dist/model/StakingPoolType.js +5 -0
- package/dist/model/StakingsExtra.js +36 -8
- package/dist/model/TokenAssetModelType.js +61 -0
- package/dist/model/TokenBalanceBalance.js +6 -6
- package/dist/model/TokenInfo.js +11 -2
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDestination.js +50 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionEvmCalldataInfo.js +177 -0
- package/dist/model/TransactionEvmContractDestination.js +16 -0
- package/dist/model/TransactionEvmContractMethod.js +136 -0
- package/dist/model/TransactionEvmEip1559Fee.js +2 -4
- package/dist/model/TransactionEvmLegacyFee.js +2 -4
- package/dist/model/TransactionFee.js +1 -2
- package/dist/model/TransactionRawMessageSignDestination.js +120 -0
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -2
- package/dist/model/TransactionRequestFee.js +1 -2
- package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
- package/dist/model/TransactionSource.js +1 -1
- package/dist/model/TransactionTokeApproval.js +17 -4
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
- package/dist/model/TransactionWebhookEventData.js +2 -2
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
- package/dist/model/TriggerTestWebhookEventRequest.js +115 -0
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/AddressBook.md +8 -7
- package/docs/AddressBooksApi.md +71 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
- package/docs/ApiLogDetails.md +18 -0
- package/docs/ApiLogSummary.md +13 -0
- package/docs/BabylonStakeEstimatedFee.md +12 -0
- package/docs/BabylonValidator.md +2 -0
- package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
- package/docs/CoboSafeDelegate.md +2 -2
- package/docs/CreateStakeActivityExtra.md +1 -0
- package/docs/CreateUnstakeActivity.md +1 -0
- package/docs/CreateUnstakeActivityExtra.md +10 -0
- package/docs/CreateUnstakeActivityRequest.md +1 -0
- package/docs/DevelopersApi.md +55 -0
- package/docs/DevelopersWebhooksApi.md +53 -0
- package/docs/ErrorResponse.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +2 -2
- package/docs/EstimateUnstakeFee.md +1 -0
- package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
- package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/EthStakeEstimatedFee.md +11 -0
- package/docs/EthStakeExtra.md +10 -0
- package/docs/EthStakingExtra.md +10 -0
- package/docs/EthUnstakeExtra.md +10 -0
- package/docs/ExchangeId.md +4 -0
- package/docs/ExtendedTokenInfo.md +3 -2
- package/docs/FeeGasLimit.md +1 -1
- package/docs/GetApiKeyInfo200Response.md +30 -0
- package/docs/GetStakingEstimationFee201Response.md +3 -0
- package/docs/GetStakingEstimationFeeRequest.md +1 -1
- package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
- package/docs/GetToken4XXResponse.md +1 -1
- package/docs/ListAddressBooks200Response.md +10 -0
- package/docs/MPCDelegate.md +2 -2
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +5 -5
- package/docs/PoolDetailsAllOfValidatorsInfo.md +2 -0
- package/docs/{RefreshToken200Response.md → RefreshToken2XXResponse.md} +1 -1
- package/docs/RoleScopes.md +10 -0
- package/docs/SafeWalletDelegates.md +14 -0
- package/docs/SafeWalletDelegatesContractCall.md +12 -0
- package/docs/SafeWalletDelegatesTransfer.md +12 -0
- package/docs/Scopes.md +13 -0
- package/docs/StakingPoolType.md +2 -0
- package/docs/TokenAssetModelType.md +12 -0
- package/docs/TokenBalanceBalance.md +4 -4
- package/docs/TokenInfo.md +3 -2
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDestination.md +4 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionEvmCalldataInfo.md +16 -0
- package/docs/TransactionEvmContractDestination.md +1 -0
- package/docs/TransactionEvmContractMethod.md +13 -0
- package/docs/TransactionEvmEip1559Fee.md +1 -1
- package/docs/TransactionEvmLegacyFee.md +1 -1
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionRawMessageSignDestination.md +10 -0
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
- package/docs/TransactionRequestEvmLegacyFee.md +1 -1
- package/docs/TransactionRequestFee.md +1 -1
- package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
- package/docs/TransactionSource.md +1 -1
- package/docs/TransactionTokeApproval.md +3 -2
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +7 -7
- package/docs/TransferDestination.md +2 -2
- package/docs/TriggerTestWebhookEvent201Response.md +9 -0
- package/docs/TriggerTestWebhookEventRequest.md +10 -0
- package/docs/WalletsApi.md +55 -55
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +4 -4
- package/docs/WalletsSmartContractWalletsApi.md +63 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +3 -2
- package/dist/model/BookkeepingRecord.js +0 -243
- package/docs/BookkeepingRecord.md +0 -19
- package/docs/BookkeepingSummary.md +0 -12
- package/docs/WalletBalanceSnapshot.md +0 -10
- package/docs/WalletBalanceSnapshotRecord.md +0 -13
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _TokenAssetModelType = _interopRequireDefault(require("./TokenAssetModelType"));
|
|
8
9
|
var _TokenInfo = _interopRequireDefault(require("./TokenInfo"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
11
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -107,6 +108,9 @@ var TransactionTokeApproval = /*#__PURE__*/function () {
|
|
|
107
108
|
if (data.hasOwnProperty('custodial_minimum_deposit_threshold')) {
|
|
108
109
|
obj['custodial_minimum_deposit_threshold'] = _ApiClient["default"].convertToType(data['custodial_minimum_deposit_threshold'], 'String');
|
|
109
110
|
}
|
|
111
|
+
if (data.hasOwnProperty('asset_model_type')) {
|
|
112
|
+
obj['asset_model_type'] = _TokenAssetModelType["default"].constructFromObject(data['asset_model_type']);
|
|
113
|
+
}
|
|
110
114
|
if (data.hasOwnProperty('amount')) {
|
|
111
115
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
|
|
112
116
|
}
|
|
@@ -257,17 +261,22 @@ TransactionTokeApproval.prototype['can_deposit'] = undefined;
|
|
|
257
261
|
TransactionTokeApproval.prototype['can_withdraw'] = undefined;
|
|
258
262
|
|
|
259
263
|
/**
|
|
260
|
-
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Loop
|
|
264
|
+
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfers do not have this limitation.
|
|
261
265
|
* @member {String} dust_threshold
|
|
262
266
|
*/
|
|
263
267
|
TransactionTokeApproval.prototype['dust_threshold'] = undefined;
|
|
264
268
|
|
|
265
269
|
/**
|
|
266
|
-
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Loop
|
|
270
|
+
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop)transfers do not have this limitation.
|
|
267
271
|
* @member {String} custodial_minimum_deposit_threshold
|
|
268
272
|
*/
|
|
269
273
|
TransactionTokeApproval.prototype['custodial_minimum_deposit_threshold'] = undefined;
|
|
270
274
|
|
|
275
|
+
/**
|
|
276
|
+
* @member {module:model/TokenAssetModelType} asset_model_type
|
|
277
|
+
*/
|
|
278
|
+
TransactionTokeApproval.prototype['asset_model_type'] = undefined;
|
|
279
|
+
|
|
271
280
|
/**
|
|
272
281
|
* Transaction value (Note that this is an absolute value. If you trade 1.5 BTC, then the value is 1.5)
|
|
273
282
|
* @member {Number} amount
|
|
@@ -337,13 +346,17 @@ _TokenInfo["default"].prototype['can_deposit'] = undefined;
|
|
|
337
346
|
*/
|
|
338
347
|
_TokenInfo["default"].prototype['can_withdraw'] = undefined;
|
|
339
348
|
/**
|
|
340
|
-
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Loop
|
|
349
|
+
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfers do not have this limitation.
|
|
341
350
|
* @member {String} dust_threshold
|
|
342
351
|
*/
|
|
343
352
|
_TokenInfo["default"].prototype['dust_threshold'] = undefined;
|
|
344
353
|
/**
|
|
345
|
-
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Loop
|
|
354
|
+
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop)transfers do not have this limitation.
|
|
346
355
|
* @member {String} custodial_minimum_deposit_threshold
|
|
347
356
|
*/
|
|
348
357
|
_TokenInfo["default"].prototype['custodial_minimum_deposit_threshold'] = undefined;
|
|
358
|
+
/**
|
|
359
|
+
* @member {module:model/TokenAssetModelType} asset_model_type
|
|
360
|
+
*/
|
|
361
|
+
_TokenInfo["default"].prototype['asset_model_type'] = undefined;
|
|
349
362
|
var _default = exports["default"] = TransactionTokeApproval;
|
|
@@ -171,13 +171,13 @@ TransactionTransferToAddressDestination.prototype['utxo_outputs'] = undefined;
|
|
|
171
171
|
TransactionTransferToAddressDestination.prototype['change_address'] = undefined;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* Whether the transaction request must be executed as a
|
|
174
|
+
* 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.
|
|
175
175
|
* @member {Boolean} force_internal
|
|
176
176
|
*/
|
|
177
177
|
TransactionTransferToAddressDestination.prototype['force_internal'] = undefined;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Whether the transaction request must not be executed as a
|
|
180
|
+
* 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.
|
|
181
181
|
* @member {Boolean} force_external
|
|
182
182
|
*/
|
|
183
183
|
TransactionTransferToAddressDestination.prototype['force_external'] = undefined;
|
|
@@ -62,9 +62,6 @@ var TransactionTransferToAddressDestinationUtxoOutputsInner = /*#__PURE__*/funct
|
|
|
62
62
|
if (data.hasOwnProperty('amount')) {
|
|
63
63
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty('script')) {
|
|
66
|
-
obj['script'] = _ApiClient["default"].convertToType(data['script'], 'String');
|
|
67
|
-
}
|
|
68
65
|
}
|
|
69
66
|
return obj;
|
|
70
67
|
}
|
|
@@ -85,10 +82,6 @@ var TransactionTransferToAddressDestinationUtxoOutputsInner = /*#__PURE__*/funct
|
|
|
85
82
|
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
86
83
|
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
|
|
87
84
|
}
|
|
88
|
-
// ensure the json data is a string
|
|
89
|
-
if (data['script'] && !(typeof data['script'] === 'string' || data['script'] instanceof String)) {
|
|
90
|
-
throw new Error("Expected the field `script` to be a primitive type in the JSON string but got " + data['script']);
|
|
91
|
-
}
|
|
92
85
|
return true;
|
|
93
86
|
}
|
|
94
87
|
}]);
|
|
@@ -104,10 +97,4 @@ TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['address'] = u
|
|
|
104
97
|
* @member {String} amount
|
|
105
98
|
*/
|
|
106
99
|
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['amount'] = undefined;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent.
|
|
110
|
-
* @member {String} script
|
|
111
|
-
*/
|
|
112
|
-
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['script'] = undefined;
|
|
113
100
|
var _default = exports["default"] = TransactionTransferToAddressDestinationUtxoOutputsInner;
|
|
@@ -460,7 +460,7 @@ TransactionWebhookEventData.prototype['category'] = undefined;
|
|
|
460
460
|
TransactionWebhookEventData.prototype['description'] = undefined;
|
|
461
461
|
|
|
462
462
|
/**
|
|
463
|
-
* Whether the transaction
|
|
463
|
+
* Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
|
|
464
464
|
* @member {Boolean} is_loop
|
|
465
465
|
*/
|
|
466
466
|
TransactionWebhookEventData.prototype['is_loop'] = undefined;
|
|
@@ -599,7 +599,7 @@ _Transaction["default"].prototype['category'] = undefined;
|
|
|
599
599
|
*/
|
|
600
600
|
_Transaction["default"].prototype['description'] = undefined;
|
|
601
601
|
/**
|
|
602
|
-
* Whether the transaction
|
|
602
|
+
* Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
|
|
603
603
|
* @member {Boolean} is_loop
|
|
604
604
|
*/
|
|
605
605
|
_Transaction["default"].prototype['is_loop'] = undefined;
|
|
@@ -196,13 +196,13 @@ TransferDestination.prototype['utxo_outputs'] = undefined;
|
|
|
196
196
|
TransferDestination.prototype['change_address'] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* Whether the transaction request must be executed as a
|
|
199
|
+
* 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`.
|
|
200
200
|
* @member {Boolean} force_internal
|
|
201
201
|
*/
|
|
202
202
|
TransferDestination.prototype['force_internal'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* Whether the transaction request must not be executed as a
|
|
205
|
+
* 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`.
|
|
206
206
|
* @member {Boolean} force_external
|
|
207
207
|
*/
|
|
208
208
|
TransferDestination.prototype['force_external'] = undefined;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
|
+
* Cobo Wallet as a Service 2.0
|
|
16
|
+
*
|
|
17
|
+
* Contact: help@cobo.com
|
|
18
|
+
*
|
|
19
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20
|
+
* https://openapi-generator.tech
|
|
21
|
+
* Do not edit the class manually.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* The TriggerTestWebhookEvent201Response model module.
|
|
26
|
+
* @module model/TriggerTestWebhookEvent201Response
|
|
27
|
+
*/
|
|
28
|
+
var TriggerTestWebhookEvent201Response = /*#__PURE__*/function () {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>TriggerTestWebhookEvent201Response</code>.
|
|
31
|
+
* @alias module:model/TriggerTestWebhookEvent201Response
|
|
32
|
+
*/
|
|
33
|
+
function TriggerTestWebhookEvent201Response() {
|
|
34
|
+
_classCallCheck(this, TriggerTestWebhookEvent201Response);
|
|
35
|
+
TriggerTestWebhookEvent201Response.initialize(this);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes the fields of this object.
|
|
40
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
41
|
+
* Only for internal use.
|
|
42
|
+
*/
|
|
43
|
+
return _createClass(TriggerTestWebhookEvent201Response, null, [{
|
|
44
|
+
key: "initialize",
|
|
45
|
+
value: function initialize(obj) {}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a <code>TriggerTestWebhookEvent201Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
50
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
51
|
+
* @param {module:model/TriggerTestWebhookEvent201Response} obj Optional instance to populate.
|
|
52
|
+
* @return {module:model/TriggerTestWebhookEvent201Response} The populated <code>TriggerTestWebhookEvent201Response</code> instance.
|
|
53
|
+
*/
|
|
54
|
+
}, {
|
|
55
|
+
key: "constructFromObject",
|
|
56
|
+
value: function constructFromObject(data, obj) {
|
|
57
|
+
if (data) {
|
|
58
|
+
obj = obj || new TriggerTestWebhookEvent201Response();
|
|
59
|
+
if (data.hasOwnProperty('triggered')) {
|
|
60
|
+
obj['triggered'] = _ApiClient["default"].convertToType(data['triggered'], 'Boolean');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return obj;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Validates the JSON data with respect to <code>TriggerTestWebhookEvent201Response</code>.
|
|
68
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TriggerTestWebhookEvent201Response</code>.
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "validateJSON",
|
|
73
|
+
value: function validateJSON(data) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}]);
|
|
77
|
+
}();
|
|
78
|
+
/**
|
|
79
|
+
* Whether a test webhook event was successfully triggered. - `true`: The test webhook event was successfully triggered. - `false`: The test webhook event could not be triggered.
|
|
80
|
+
* @member {Boolean} triggered
|
|
81
|
+
*/
|
|
82
|
+
TriggerTestWebhookEvent201Response.prototype['triggered'] = undefined;
|
|
83
|
+
var _default = exports["default"] = TriggerTestWebhookEvent201Response;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _WebhookEventType = _interopRequireDefault(require("./WebhookEventType"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The TriggerTestWebhookEventRequest model module.
|
|
30
|
+
* @module model/TriggerTestWebhookEventRequest
|
|
31
|
+
*/
|
|
32
|
+
var TriggerTestWebhookEventRequest = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>TriggerTestWebhookEventRequest</code>.
|
|
35
|
+
* @alias module:model/TriggerTestWebhookEventRequest
|
|
36
|
+
* @param event_type {module:model/WebhookEventType}
|
|
37
|
+
*/
|
|
38
|
+
function TriggerTestWebhookEventRequest(event_type) {
|
|
39
|
+
_classCallCheck(this, TriggerTestWebhookEventRequest);
|
|
40
|
+
TriggerTestWebhookEventRequest.initialize(this, event_type);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(TriggerTestWebhookEventRequest, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj, event_type) {
|
|
51
|
+
obj['event_type'] = event_type;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a <code>TriggerTestWebhookEventRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
56
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
57
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
58
|
+
* @param {module:model/TriggerTestWebhookEventRequest} obj Optional instance to populate.
|
|
59
|
+
* @return {module:model/TriggerTestWebhookEventRequest} The populated <code>TriggerTestWebhookEventRequest</code> instance.
|
|
60
|
+
*/
|
|
61
|
+
}, {
|
|
62
|
+
key: "constructFromObject",
|
|
63
|
+
value: function constructFromObject(data, obj) {
|
|
64
|
+
if (data) {
|
|
65
|
+
obj = obj || new TriggerTestWebhookEventRequest();
|
|
66
|
+
if (data.hasOwnProperty('event_type')) {
|
|
67
|
+
obj['event_type'] = _WebhookEventType["default"].constructFromObject(data['event_type']);
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('override_data')) {
|
|
70
|
+
obj['override_data'] = _ApiClient["default"].convertToType(data['override_data'], Object);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>TriggerTestWebhookEventRequest</code>.
|
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TriggerTestWebhookEventRequest</code>.
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "validateJSON",
|
|
83
|
+
value: function validateJSON(data) {
|
|
84
|
+
// check to make sure all required properties are present in the JSON string
|
|
85
|
+
var _iterator = _createForOfIteratorHelper(TriggerTestWebhookEventRequest.RequiredProperties),
|
|
86
|
+
_step;
|
|
87
|
+
try {
|
|
88
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
89
|
+
var property = _step.value;
|
|
90
|
+
if (!data.hasOwnProperty(property)) {
|
|
91
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
} catch (err) {
|
|
95
|
+
_iterator.e(err);
|
|
96
|
+
} finally {
|
|
97
|
+
_iterator.f();
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
}]);
|
|
102
|
+
}();
|
|
103
|
+
TriggerTestWebhookEventRequest.RequiredProperties = ["event_type"];
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @member {module:model/WebhookEventType} event_type
|
|
107
|
+
*/
|
|
108
|
+
TriggerTestWebhookEventRequest.prototype['event_type'] = undefined;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* An object for customization of the webhook event payload. You only need to include the fields you want to customize. The provided fields must match the webhook event data structure, depending on the specified event type. For a complete introduction of the webhook event data structure, refer to the `data.data` property in the response of [List all webhook events](/v2/api-references/developers--webhooks/list-all-webhook-events). If this property is not provided, a default payload will be returned.
|
|
112
|
+
* @member {Object} override_data
|
|
113
|
+
*/
|
|
114
|
+
TriggerTestWebhookEventRequest.prototype['override_data'] = undefined;
|
|
115
|
+
var _default = exports["default"] = TriggerTestWebhookEventRequest;
|
|
@@ -329,7 +329,7 @@ WebhookEventData.prototype['category'] = undefined;
|
|
|
329
329
|
WebhookEventData.prototype['description'] = undefined;
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
|
-
* Whether the transaction
|
|
332
|
+
* Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
|
|
333
333
|
* @member {Boolean} is_loop
|
|
334
334
|
*/
|
|
335
335
|
WebhookEventData.prototype['is_loop'] = undefined;
|
package/docs/AddressBook.md
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**org_id** | **String** |
|
|
8
|
-
**entry_id** | **String** |
|
|
9
|
-
**address** | **String** | address. |
|
|
10
|
-
**memo** | **String** | memo. | [optional]
|
|
11
|
-
**wallet_name** | **String** | wallet name. | [optional]
|
|
7
|
+
**org_id** | **String** | The organization ID. |
|
|
8
|
+
**entry_id** | **String** | The entry ID. |
|
|
9
|
+
**address** | **String** | The wallet address. |
|
|
10
|
+
**memo** | **String** | The memo. | [optional]
|
|
11
|
+
**wallet_name** | **String** | The wallet name. | [optional]
|
|
12
12
|
**wallet_type** | [**WalletType**](WalletType.md) | | [optional]
|
|
13
|
-
**label** | **String** | The label
|
|
14
|
-
**
|
|
13
|
+
**label** | **String** | The address label. |
|
|
14
|
+
**chain_ids** | **[String]** | A list of chain IDs. | [optional]
|
|
15
|
+
**email** | **String** | The email of the address owner. | [optional]
|
|
15
16
|
|
|
16
17
|
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# CoboWaas2.AddressBooksApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**listAddressBooks**](AddressBooksApi.md#listAddressBooks) | **GET** /address_books | List address book entries
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## listAddressBooks
|
|
12
|
+
|
|
13
|
+
> ListAddressBooks200Response listAddressBooks(chain_id, opts)
|
|
14
|
+
|
|
15
|
+
List address book entries
|
|
16
|
+
|
|
17
|
+
This operation retrieves a list of addresses from your address book.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
23
|
+
// Initialize the API client
|
|
24
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
25
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
26
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
27
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
28
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
29
|
+
// Call the API
|
|
30
|
+
const apiInstance = new CoboWaas2.AddressBooksApi();
|
|
31
|
+
const chain_id = "ETH";
|
|
32
|
+
const opts = {
|
|
33
|
+
'address': "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
|
34
|
+
'label': "test",
|
|
35
|
+
'limit': 10,
|
|
36
|
+
'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
|
|
37
|
+
'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
|
|
38
|
+
};
|
|
39
|
+
apiInstance.listAddressBooks(chain_id, opts).then((data) => {
|
|
40
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
41
|
+
}, (error) => {
|
|
42
|
+
console.error(error);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
Name | Type | Description | Notes
|
|
51
|
+
------------- | ------------- | ------------- | -------------
|
|
52
|
+
**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). |
|
|
53
|
+
**address** | **String**| The wallet address. | [optional]
|
|
54
|
+
**label** | **String**| The address label. | [optional]
|
|
55
|
+
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
56
|
+
**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]
|
|
57
|
+
**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]
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
[**ListAddressBooks200Response**](ListAddressBooks200Response.md)
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: Not defined
|
|
70
|
+
- **Accept**: application/json
|
|
71
|
+
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
|
|
9
9
|
**utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
|
|
10
10
|
**change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
|
|
11
|
-
**force_internal** | **Boolean** | Whether the transaction request must be executed as a
|
|
12
|
-
**force_external** | **Boolean** | Whether the transaction request must not be executed as a
|
|
11
|
+
**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]
|
|
12
|
+
**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]
|
|
13
13
|
|
|
14
14
|
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The destination address. |
|
|
8
|
-
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
|
9
|
-
**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]
|
|
8
|
+
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
|
10
9
|
|
|
11
10
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CoboWaas2.ApiLogDetails
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**log_id** | **String** | A unique identifier for the API log, used for tracking. |
|
|
8
|
+
**api_method** | **String** | The HTTP method used for the API request. |
|
|
9
|
+
**api_endpoint** | **String** | The endpoint of the API request. |
|
|
10
|
+
**status_code** | **Number** | The HTTP status code returned by the API request. |
|
|
11
|
+
**ip_address** | **String** | The client's IP address that made the API request. |
|
|
12
|
+
**request_timestamp** | **Number** | The time when the API request was created, in Unix timestamp format, measured in milliseconds. |
|
|
13
|
+
**api_key** | **String** | The API key used to call the API. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key). |
|
|
14
|
+
**response_body** | **String** | The response body of the API request. |
|
|
15
|
+
**query_params** | **String** | The query parameters of the API request. |
|
|
16
|
+
**request_body** | **String** | The request body of the API request. |
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CoboWaas2.ApiLogSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**log_id** | **String** | A unique identifier for the API log, used for tracking. | [optional]
|
|
8
|
+
**api_method** | **String** | The HTTP method used for the API request. |
|
|
9
|
+
**api_endpoint** | **String** | The endpoint of the API request. |
|
|
10
|
+
**request_timestamp** | **Number** | The time when the API request was created, in Unix timestamp format, measured in milliseconds. |
|
|
11
|
+
**status_code** | **Number** | The HTTP status code returned by the API request. |
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.BabylonStakeEstimatedFee
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
|
|
8
|
+
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
|
|
9
|
+
**fee_amount** | **String** | The amount of the estimated fee. | [optional]
|
|
10
|
+
**token_id** | **String** | The token ID of the staking fee. | [optional]
|
|
11
|
+
|
|
12
|
+
|
package/docs/BabylonValidator.md
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CheckAddressChainsValidity200ResponseInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. |
|
|
8
|
+
**validity** | **Boolean** | Whether the address is valid for the specified chain. - `true`: The address is valid. - `false`: The address is invalid. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The wallet address. | [optional]
|
|
8
|
-
**is_loop** | **Boolean** | Whether the transaction from the given source to the given destination address can be executed as a Loop transfer. - `true`: The transaction can be executed as a Loop transfer. - `false`: The transaction cannot be executed as a Loop transfer. | [optional]
|
|
8
|
+
**is_loop** | **Boolean** | Whether the transaction from the given source to the given destination address can be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction can be executed as a Cobo Loop transfer. - `false`: The transaction cannot be executed as a Cobo Loop transfer. | [optional]
|
|
9
9
|
|
|
10
10
|
|
package/docs/CoboSafeDelegate.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**delegate_type** | [**CoboSafeDelegateType**](CoboSafeDelegateType.md) | |
|
|
8
|
-
**wallet_id** | **String** | The wallet ID of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
|
|
9
|
-
**address** | **String** | The wallet address of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
|
|
8
|
+
**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}). |
|
|
9
|
+
**address** | **String** | The wallet address of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}). |
|
|
10
10
|
|
|
11
11
|
|
|
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**finality_provider_public_key** | **String** | The public key of the finality provider. |
|
|
9
9
|
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
|
|
10
10
|
**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]
|
|
11
|
+
**provider_name** | **String** | The name of the provider. |
|
|
11
12
|
|
|
12
13
|
|
|
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
9
|
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
10
10
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
11
|
+
**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
|
|
11
12
|
|
|
12
13
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CreateUnstakeActivityExtra
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
+
**validator_pubkeys** | **[String]** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
9
|
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
10
10
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
11
|
+
**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
|
|
11
12
|
**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]
|
|
12
13
|
|
|
13
14
|
|