@cobo/cobo-waas2 1.6.0 → 1.7.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.
Files changed (97) hide show
  1. package/README.md +17 -2
  2. package/dist/ApiClient.js +56 -6
  3. package/dist/api/DevelopersWebhooksApi.js +2 -2
  4. package/dist/api/StakingsApi.js +91 -7
  5. package/dist/api/TransactionsApi.js +4 -4
  6. package/dist/crypto/Ed25519Signer.js +36 -0
  7. package/dist/crypto/Secp256k1Signer.js +36 -0
  8. package/dist/index.js +70 -7
  9. package/dist/model/Activity.js +4 -8
  10. package/dist/model/ActivityAction.js +20 -0
  11. package/dist/model/ActivityType.js +5 -0
  12. package/dist/model/AutoFuelType.js +61 -0
  13. package/dist/model/BabylonValidator.js +4 -12
  14. package/dist/model/ContractCallParams.js +9 -0
  15. package/dist/model/CoreStakeExtra.js +170 -0
  16. package/dist/model/CoreStakingExtra.js +187 -0
  17. package/dist/model/CreateClaimActivity.js +139 -0
  18. package/dist/model/CreateClaimActivityRequest.js +182 -0
  19. package/dist/model/CreateStakeActivity.js +4 -8
  20. package/dist/model/CreateStakeActivityExtra.js +60 -8
  21. package/dist/model/CreateStakeActivityRequest.js +5 -10
  22. package/dist/model/CreateWithdrawActivity.js +0 -13
  23. package/dist/model/CreateWithdrawActivityRequest.js +0 -18
  24. package/dist/model/EstimateClaimFee.js +145 -0
  25. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  26. package/dist/model/EstimateFeeParams.js +1 -1
  27. package/dist/model/EstimateStakeFee.js +5 -10
  28. package/dist/model/EstimateWithdrawFee.js +0 -18
  29. package/dist/model/EstimatedFee.js +1 -1
  30. package/dist/model/EstimatedFixedFee.js +4 -4
  31. package/dist/model/EstimatedUtxoFeeSlow.js +3 -3
  32. package/dist/model/EthStakingExtra.js +31 -0
  33. package/dist/model/EthStakingExtraAllOfBeaconValidators.js +140 -0
  34. package/dist/model/FeeAmount.js +1 -1
  35. package/dist/model/FeeRate.js +1 -1
  36. package/dist/model/FixedFeeRate.js +2 -2
  37. package/dist/model/GetStakingEstimationFeeRequest.js +39 -17
  38. package/dist/model/MPCProject.js +4 -4
  39. package/dist/model/MpcTransferSource.js +1 -1
  40. package/dist/model/Pagination.js +2 -2
  41. package/dist/model/StakingPoolId.js +81 -0
  42. package/dist/model/StakingPoolType.js +5 -0
  43. package/dist/model/Stakings.js +10 -14
  44. package/dist/model/StakingsExtra.js +67 -8
  45. package/dist/model/TransactionRbf.js +9 -0
  46. package/dist/model/TransactionRbfSource.js +1 -1
  47. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  48. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  49. package/dist/model/TransactionRequestFixedFee.js +1 -1
  50. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  51. package/dist/model/TransferParams.js +9 -0
  52. package/docs/Activity.md +1 -1
  53. package/docs/ActivityAction.md +8 -0
  54. package/docs/ActivityType.md +2 -0
  55. package/docs/AutoFuelType.md +12 -0
  56. package/docs/BabylonValidator.md +4 -4
  57. package/docs/ContractCallParams.md +1 -0
  58. package/docs/CoreStakeExtra.md +13 -0
  59. package/docs/CoreStakingExtra.md +14 -0
  60. package/docs/CreateClaimActivity.md +11 -0
  61. package/docs/CreateClaimActivityRequest.md +12 -0
  62. package/docs/CreateStakeActivity.md +1 -1
  63. package/docs/CreateStakeActivityExtra.md +4 -0
  64. package/docs/CreateStakeActivityRequest.md +1 -1
  65. package/docs/CreateWithdrawActivity.md +0 -1
  66. package/docs/CreateWithdrawActivityRequest.md +0 -1
  67. package/docs/DevelopersWebhooksApi.md +1 -1
  68. package/docs/EstimateClaimFee.md +11 -0
  69. package/docs/EstimateContractCallFeeParams.md +1 -1
  70. package/docs/EstimateFeeParams.md +1 -1
  71. package/docs/EstimateStakeFee.md +1 -1
  72. package/docs/EstimateWithdrawFee.md +0 -1
  73. package/docs/EstimatedFee.md +1 -1
  74. package/docs/EstimatedFixedFee.md +1 -1
  75. package/docs/EstimatedUtxoFeeSlow.md +1 -1
  76. package/docs/EthStakingExtra.md +1 -0
  77. package/docs/EthStakingExtraAllOfBeaconValidators.md +14 -0
  78. package/docs/FeeAmount.md +1 -1
  79. package/docs/FeeRate.md +1 -1
  80. package/docs/FixedFeeRate.md +1 -1
  81. package/docs/GetStakingEstimationFeeRequest.md +2 -3
  82. package/docs/MPCProject.md +1 -1
  83. package/docs/MpcTransferSource.md +1 -1
  84. package/docs/Pagination.md +1 -1
  85. package/docs/PoolDetailsAllOfValidatorsInfo.md +4 -4
  86. package/docs/StakingPoolId.md +20 -0
  87. package/docs/StakingPoolType.md +2 -0
  88. package/docs/Stakings.md +2 -2
  89. package/docs/StakingsApi.md +108 -2
  90. package/docs/StakingsExtra.md +5 -0
  91. package/docs/TransactionRbf.md +1 -0
  92. package/docs/TransactionRbfSource.md +1 -1
  93. package/docs/TransactionsApi.md +2 -2
  94. package/docs/TransferParams.md +1 -0
  95. package/package.json +3 -2
  96. package/dist/model/StakingsValidatorInfo.js +0 -140
  97. package/docs/StakingsValidatorInfo.md +0 -13
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _BabylonStakingExtra = _interopRequireDefault(require("./BabylonStakingExtra"));
9
+ var _CoreStakingExtra = _interopRequireDefault(require("./CoreStakingExtra"));
9
10
  var _EthStakingExtra = _interopRequireDefault(require("./EthStakingExtra"));
11
+ var _EthStakingExtraAllOfBeaconValidators = _interopRequireDefault(require("./EthStakingExtraAllOfBeaconValidators"));
10
12
  var _StakingPoolType = _interopRequireDefault(require("./StakingPoolType"));
11
13
  var _StakingsExtra;
12
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -34,7 +36,7 @@ var StakingsExtra = /*#__PURE__*/function () {
34
36
  /**
35
37
  * Constructs a new <code>StakingsExtra</code>.
36
38
  * @alias module:model/StakingsExtra
37
- * @param {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} instance The actual instance to initialize StakingsExtra.
39
+ * @param {(module:model/BabylonStakingExtra|module:model/CoreStakingExtra|module:model/EthStakingExtra)} instance The actual instance to initialize StakingsExtra.
38
40
  */
39
41
  function StakingsExtra() {
40
42
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -59,6 +61,10 @@ var StakingsExtra = /*#__PURE__*/function () {
59
61
  this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
60
62
  match++;
61
63
  break;
64
+ case "CoreBTC":
65
+ this.actualInstance = _CoreStakingExtra["default"].constructFromObject(instance);
66
+ match++;
67
+ break;
62
68
  case "ETHBeacon":
63
69
  this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
64
70
  match++;
@@ -115,13 +121,36 @@ var StakingsExtra = /*#__PURE__*/function () {
115
121
  // json data failed to deserialize into EthStakingExtra
116
122
  errorMessages.push("Failed to construct EthStakingExtra: " + err);
117
123
  }
124
+ try {
125
+ if (instance instanceof _CoreStakingExtra["default"]) {
126
+ this.actualInstance = instance;
127
+ } else if (!!_CoreStakingExtra["default"].validateJSON && _CoreStakingExtra["default"].validateJSON(instance)) {
128
+ // plain JS object
129
+ // create CoreStakingExtra from JS object
130
+ this.actualInstance = _CoreStakingExtra["default"].constructFromObject(instance);
131
+ } else {
132
+ if (_CoreStakingExtra["default"].constructFromObject(instance)) {
133
+ if (!!_CoreStakingExtra["default"].constructFromObject(instance).toJSON) {
134
+ if (_CoreStakingExtra["default"].constructFromObject(instance).toJSON()) {
135
+ this.actualInstance = _CoreStakingExtra["default"].constructFromObject(instance);
136
+ }
137
+ } else {
138
+ this.actualInstance = _CoreStakingExtra["default"].constructFromObject(instance);
139
+ }
140
+ }
141
+ }
142
+ match++;
143
+ } catch (err) {
144
+ // json data failed to deserialize into CoreStakingExtra
145
+ errorMessages.push("Failed to construct CoreStakingExtra: " + err);
146
+ }
118
147
 
119
148
  // if (match > 1) {
120
- // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Input: " + JSON.stringify(instance));
149
+ // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, CoreStakingExtra, EthStakingExtra. Input: " + JSON.stringify(instance));
121
150
  // } else
122
151
  if (match === 0) {
123
152
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
124
- // throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Details: " +
153
+ // throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, CoreStakingExtra, EthStakingExtra. Details: " +
125
154
  // errorMessages.join(", "));
126
155
  return;
127
156
  } else {// only 1 match
@@ -140,16 +169,16 @@ var StakingsExtra = /*#__PURE__*/function () {
140
169
  key: "getActualInstance",
141
170
  value:
142
171
  /**
143
- * Gets the actual instance, which can be <code>BabylonStakingExtra</code>, <code>EthStakingExtra</code>.
144
- * @return {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} The actual instance.
172
+ * Gets the actual instance, which can be <code>BabylonStakingExtra</code>, <code>CoreStakingExtra</code>, <code>EthStakingExtra</code>.
173
+ * @return {(module:model/BabylonStakingExtra|module:model/CoreStakingExtra|module:model/EthStakingExtra)} The actual instance.
145
174
  */
146
175
  function getActualInstance() {
147
176
  return this.actualInstance;
148
177
  }
149
178
 
150
179
  /**
151
- * Sets the actual instance, which can be <code>BabylonStakingExtra</code>, <code>EthStakingExtra</code>.
152
- * @param {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} obj The actual instance.
180
+ * Sets the actual instance, which can be <code>BabylonStakingExtra</code>, <code>CoreStakingExtra</code>, <code>EthStakingExtra</code>.
181
+ * @param {(module:model/BabylonStakingExtra|module:model/CoreStakingExtra|module:model/EthStakingExtra)} obj The actual instance.
153
182
  */
154
183
  }, {
155
184
  key: "setActualInstance",
@@ -206,5 +235,35 @@ StakingsExtra.prototype['stake_address'] = undefined;
206
235
  * @member {String} unbond_address
207
236
  */
208
237
  StakingsExtra.prototype['unbond_address'] = undefined;
209
- StakingsExtra.OneOf = ["BabylonStakingExtra", "EthStakingExtra"];
238
+
239
+ /**
240
+ * The list of validator information.
241
+ * @member {Array.<module:model/EthStakingExtraAllOfBeaconValidators>} beacon_validators
242
+ */
243
+ StakingsExtra.prototype['beacon_validators'] = undefined;
244
+
245
+ /**
246
+ * The staker's Bitcoin address.
247
+ * @member {String} staker_address
248
+ */
249
+ StakingsExtra.prototype['staker_address'] = undefined;
250
+
251
+ /**
252
+ * The validator's EVM address.
253
+ * @member {String} validator_address
254
+ */
255
+ StakingsExtra.prototype['validator_address'] = undefined;
256
+
257
+ /**
258
+ * The EVM address to receive staking rewards.
259
+ * @member {String} reward_address
260
+ */
261
+ StakingsExtra.prototype['reward_address'] = undefined;
262
+
263
+ /**
264
+ * The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal.
265
+ * @member {Number} timelock
266
+ */
267
+ StakingsExtra.prototype['timelock'] = undefined;
268
+ StakingsExtra.OneOf = ["BabylonStakingExtra", "CoreStakingExtra", "EthStakingExtra"];
210
269
  var _default = exports["default"] = StakingsExtra;
@@ -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 _AutoFuelType = _interopRequireDefault(require("./AutoFuelType"));
8
9
  var _TransactionRbfSource = _interopRequireDefault(require("./TransactionRbfSource"));
9
10
  var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
10
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -82,6 +83,9 @@ var TransactionRbf = /*#__PURE__*/function () {
82
83
  if (data.hasOwnProperty('description')) {
83
84
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
84
85
  }
86
+ if (data.hasOwnProperty('auto_fuel')) {
87
+ obj['auto_fuel'] = _AutoFuelType["default"].constructFromObject(data['auto_fuel']);
88
+ }
85
89
  }
86
90
  return obj;
87
91
  }
@@ -168,4 +172,9 @@ TransactionRbf.prototype['category_names'] = undefined;
168
172
  * @member {String} description
169
173
  */
170
174
  TransactionRbf.prototype['description'] = undefined;
175
+
176
+ /**
177
+ * @member {module:model/AutoFuelType} auto_fuel
178
+ */
179
+ TransactionRbf.prototype['auto_fuel'] = undefined;
171
180
  var _default = exports["default"] = TransactionRbf;
@@ -161,7 +161,7 @@ TransactionRbfSource.prototype['source_type'] = undefined;
161
161
  TransactionRbfSource.prototype['wallet_id'] = undefined;
162
162
 
163
163
  /**
164
- * 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.
164
+ * 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. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
165
165
  * @member {String} address
166
166
  */
167
167
  TransactionRbfSource.prototype['address'] = undefined;
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var TransactionRequestEvmEip1559Fee = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>TransactionRequestEvmEip1559Fee</code>.
36
- * The preset properties to limit transaction fee. In the EIP-1559 fee model, the transaction fee is calculated by multiplying the gas price and the gas units used by the transaction. This can be expressed as: Transaction fee &#x3D; gas price * gas units used. You can specify the maximum gas fee per gas unit, maximum priority fee per gas unit, and the gas limit to limit the gas price, priority fee per gas unit, gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
36
+ * The preset properties to limit transaction fee. In the EIP-1559 fee model, the transaction fee is calculated by multiplying the gas price and the gas units used by the transaction. This can be expressed as: Transaction fee &#x3D; gas price * gas units used. For more information about the EIP-1559 fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum gas fee per gas unit, maximum priority fee per gas unit, and the gas limit to limit the gas price, priority fee per gas unit, gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
37
37
  * @alias module:model/TransactionRequestEvmEip1559Fee
38
38
  * @implements module:model/EvmEip1559FeeBasePrice
39
39
  * @param max_fee_per_gas {String} The maximum gas fee per gas unit used on the chain, in wei.
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var TransactionRequestEvmLegacyFee = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>TransactionRequestEvmLegacyFee</code>.
36
- * The preset properties to limit transaction fee. In the legacy fee model, the transaction fee is calculated by multiplying the gas price by the gas units used by the transaction. This can be expressed as: Transaction fee &#x3D; (gas price * gas units used). You can specify the gas limit to limit the gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
36
+ * The preset properties to limit transaction fee. In the legacy fee model, the transaction fee is calculated by multiplying the gas price by the gas units used by the transaction. This can be expressed as: Transaction fee &#x3D; (gas price * gas units used). For more information about the legacy fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the gas limit to limit the gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
37
37
  * @alias module:model/TransactionRequestEvmLegacyFee
38
38
  * @implements module:model/EvmLegacyFeeBasePrice
39
39
  * @param 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.
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var TransactionRequestFixedFee = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>TransactionRequestFixedFee</code>.
36
- * The preset properties to limit transaction fee. In the fixed fee model, the transaction fee is a fixed amount within a certain amount of period regardless of the transaction size or network congestion, which can vary between different chains. You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
36
+ * The preset properties to limit transaction fee. In the fixed fee model, the transaction fee is a fixed amount within a certain amount of period regardless of the transaction size or network congestion, which can vary between different chains. For more information about the fixed fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
37
37
  * @alias module:model/TransactionRequestFixedFee
38
38
  * @implements module:model/MaxFeeAmount
39
39
  * @param fee_type {module:model/FeeType}
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  var TransactionRequestUtxoFee = /*#__PURE__*/function () {
34
34
  /**
35
35
  * Constructs a new <code>TransactionRequestUtxoFee</code>.
36
- * The preset properties to limit transaction fee. In the UTXO fee model, the transaction fee is calculated by multiplying the fee rate by the transaction size. This can be expressed as: Transaction fee &#x3D; fee rate * transaction size. You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
36
+ * The preset properties to limit transaction fee. In the UTXO fee model, the transaction fee is calculated by multiplying the fee rate by the transaction size. This can be expressed as: Transaction fee &#x3D; fee rate * transaction size. For more information about the UTXO fee model, see [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
37
37
  * @alias module:model/TransactionRequestUtxoFee
38
38
  * @implements module:model/UtxoFeeBasePrice
39
39
  * @param 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.
@@ -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 _AutoFuelType = _interopRequireDefault(require("./AutoFuelType"));
8
9
  var _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
9
10
  var _TransferDestination = _interopRequireDefault(require("./TransferDestination"));
10
11
  var _TransferSource = _interopRequireDefault(require("./TransferSource"));
@@ -93,6 +94,9 @@ var TransferParams = /*#__PURE__*/function () {
93
94
  if (data.hasOwnProperty('fee')) {
94
95
  obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
95
96
  }
97
+ if (data.hasOwnProperty('auto_fuel')) {
98
+ obj['auto_fuel'] = _AutoFuelType["default"].constructFromObject(data['auto_fuel']);
99
+ }
96
100
  }
97
101
  return obj;
98
102
  }
@@ -201,4 +205,9 @@ TransferParams.prototype['description'] = undefined;
201
205
  * @member {module:model/TransactionRequestFee} fee
202
206
  */
203
207
  TransferParams.prototype['fee'] = undefined;
208
+
209
+ /**
210
+ * @member {module:model/AutoFuelType} auto_fuel
211
+ */
212
+ TransferParams.prototype['auto_fuel'] = undefined;
204
213
  var _default = exports["default"] = TransferParams;
package/docs/Activity.md CHANGED
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **type** | [**ActivityType**](ActivityType.md) | | [optional]
11
11
  **wallet_id** | **String** | The staker&#39;s wallet ID. | [optional]
12
12
  **address** | **String** | The staker&#39;s wallet address. | [optional]
13
- **pool_id** | **String** | The ID of the staking pool. |
13
+ **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
14
14
  **token_id** | **String** | The token ID. |
15
15
  **staking_id** | **String** | The ID of the corresponding staking position. | [optional]
16
16
  **amount** | **String** | The staking amount. |
@@ -9,6 +9,14 @@
9
9
 
10
10
  * `BabylonConfirmation` (value: `"BabylonConfirmation"`)
11
11
 
12
+ * `DepositETH` (value: `"DepositETH"`)
13
+
14
+ * `ClaimRewards` (value: `"ClaimRewards"`)
15
+
16
+ * `ActivateValidator` (value: `"ActivateValidator"`)
17
+
18
+ * `UnstakeETH` (value: `"UnstakeETH"`)
19
+
12
20
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
13
21
 
14
22
 
@@ -9,6 +9,8 @@
9
9
 
10
10
  * `Withdraw` (value: `"Withdraw"`)
11
11
 
12
+ * `Claim` (value: `"Claim"`)
13
+
12
14
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
13
15
 
14
16
 
@@ -0,0 +1,12 @@
1
+ # CoboWaas2.AutoFuelType
2
+
3
+ ## Enum
4
+
5
+
6
+ * `PassiveAutoFuel` (value: `"PassiveAutoFuel"`)
7
+
8
+ * `ProActiveAutoFuel` (value: `"ProActiveAutoFuel"`)
9
+
10
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
11
+
12
+
@@ -5,12 +5,12 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
- **icon_url** | **String** | The URL of the validator&#39;s icon. |
8
+ **icon_url** | **String** | The URL of the validator&#39;s icon. | [optional]
9
9
  **name** | **String** | The validator&#39;s name. |
10
10
  **priority** | **Number** | This property can be ignored. | [optional]
11
- **public_key** | **String** | The public key of the validator. |
12
- **commission_rate** | **Number** | The commission rate of the validator. |
13
- **supported_pos_chains** | **[String]** | A list of supported Proof-of-Stake (PoS) chains. |
11
+ **public_key** | **String** | The public key of the validator. | [optional]
12
+ **commission_rate** | **Number** | The commission rate of the validator. | [optional]
13
+ **supported_pos_chains** | **[String]** | A list of supported Proof-of-Stake (PoS) chains. | [optional]
14
14
 
15
15
 
16
16
 
@@ -11,5 +11,6 @@ Name | Type | Description | Notes
11
11
  **description** | **String** | The description of the contract call transaction. | [optional]
12
12
  **category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
13
13
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
14
+ **auto_fuel** | [**AutoFuelType**](AutoFuelType.md) | | [optional]
14
15
 
15
16
 
@@ -0,0 +1,13 @@
1
+ # CoboWaas2.CoreStakeExtra
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
+ **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. |
9
+ **change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet&#39;s address will be used as the change address. | [optional]
10
+ **validator_address** | **String** | The validator&#39;s EVM address. |
11
+ **reward_address** | **String** | The EVM address to receive staking rewards. |
12
+
13
+
@@ -0,0 +1,14 @@
1
+ # CoboWaas2.CoreStakingExtra
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
+ **pos_chain** | **String** | The Proof-of-Stake (PoS) chain. |
9
+ **staker_address** | **String** | The staker&#39;s Bitcoin address. |
10
+ **validator_address** | **String** | The validator&#39;s EVM address. |
11
+ **reward_address** | **String** | The EVM address to receive staking rewards. |
12
+ **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. |
13
+
14
+
@@ -0,0 +1,11 @@
1
+ # CoboWaas2.CreateClaimActivity
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
+ **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
9
+ **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
10
+
11
+
@@ -0,0 +1,12 @@
1
+ # CoboWaas2.CreateClaimActivityRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
+ **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
9
+ **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
10
+ **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]
11
+
12
+
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
8
  **source** | [**StakingSource**](StakingSource.md) | | [optional]
9
- **pool_id** | **String** | The ID of the staking pool. |
9
+ **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
10
10
  **amount** | **String** | The amount to stake. |
11
11
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
12
12
  **extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
@@ -9,5 +9,9 @@ Name | Type | Description | Notes
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 &#x60;true&#x60;. - &#x60;true&#x60;: Automatically broadcast the transaction. - &#x60;false&#x60;: 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 &#x60;raw_tx&#x60; by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
11
11
  **provider_name** | **String** | The name of the provider. |
12
+ **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. |
13
+ **change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet&#39;s address will be used as the change address. | [optional]
14
+ **validator_address** | **String** | The validator&#39;s EVM address. |
15
+ **reward_address** | **String** | The EVM address to receive staking rewards. |
12
16
 
13
17
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
8
  **source** | [**StakingSource**](StakingSource.md) | | [optional]
9
- **pool_id** | **String** | The ID of the staking pool. |
9
+ **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
10
10
  **amount** | **String** | The amount to stake. |
11
11
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
12
12
  **extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
7
7
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
8
  **staking_id** | **String** | The ID of the corresponding staking position. |
9
9
  **amount** | **String** | The amount to withdraw. | [optional]
10
- **address** | **String** | The withdrawal address. | [optional]
11
10
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
12
11
 
13
12
 
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
7
7
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
8
8
  **staking_id** | **String** | The ID of the corresponding staking position. |
9
9
  **amount** | **String** | The amount to withdraw. | [optional]
10
- **address** | **String** | The withdrawal address. | [optional]
11
10
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
12
11
  **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]
13
12
 
@@ -457,7 +457,7 @@ Name | Type | Description | Notes
457
457
 
458
458
  Trigger test event
459
459
 
460
- This operation tests the functionality of your webhook endpoint by triggering a test webhook event. You only need to provide the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the &#x60;override_data&#x60; property to customize the payload.
460
+ This operation tests the functionality of your webhook endpoint by triggering a test webhook event. The test event will be sent to all the endpoints you have registered on Cobo Portal. You only need to provide the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the &#x60;override_data&#x60; property to customize the payload.
461
461
 
462
462
  ### Example
463
463
 
@@ -0,0 +1,11 @@
1
+ # CoboWaas2.EstimateClaimFee
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **activity_type** | [**ActivityType**](ActivityType.md) | |
8
+ **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). | [optional]
9
+ **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
10
+
11
+
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **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]
8
8
  **request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
9
- **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). |
9
+ **chain_id** | **String** | The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
10
10
  **source** | [**ContractCallSource**](ContractCallSource.md) | |
11
11
  **destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
12
12
  **fee_type** | [**FeeType**](FeeType.md) | | [optional]
@@ -10,6 +10,6 @@ Name | Type | Description | Notes
10
10
  **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). |
11
11
  **destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
12
12
  **fee_type** | [**FeeType**](FeeType.md) | | [optional]
13
- **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). |
13
+ **chain_id** | **String** | The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
14
14
 
15
15
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **activity_type** | [**ActivityType**](ActivityType.md) | |
8
8
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
9
9
  **source** | [**StakingSource**](StakingSource.md) | | [optional]
10
- **pool_id** | **String** | The ID of the staking pool. |
10
+ **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
11
11
  **amount** | **String** | The amount to stake. |
12
12
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
13
13
  **extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
8
8
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
9
9
  **staking_id** | **String** | The ID of the corresponding staking position. |
10
10
  **amount** | **String** | The amount to withdraw. | [optional]
11
- **address** | **String** | The withdrawal address. | [optional]
12
11
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
13
12
 
14
13
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **fee_type** | [**FeeType**](FeeType.md) | |
8
8
  **token_id** | **String** | The token ID of the transaction fee. |
9
9
  **is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction was executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction was not executed as a Cobo Loop transfer. | [optional]
10
- **fee_amount** | **String** | The fee that you need to pay for the transaction. |
10
+ **fee_amount** | **String** | The transaction fee that you need to pay for the transaction. |
11
11
  **slow** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | | [optional]
12
12
  **recommended** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | |
13
13
  **fast** | [**EstimatedUtxoFeeSlow**](EstimatedUtxoFeeSlow.md) | | [optional]
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **fee_amount** | **String** | The fee that you need to pay for the transaction. |
7
+ **fee_amount** | **String** | The transaction fee that you need to pay for the transaction. |
8
8
  **fee_type** | [**FeeType**](FeeType.md) | |
9
9
  **token_id** | **String** | The token ID of the transaction fee. |
10
10
  **is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction was executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction was not executed as a Cobo Loop transfer. | [optional]
@@ -5,6 +5,6 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **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. |
8
- **fee_amount** | **String** | The fee that you need to pay for the transaction. |
8
+ **fee_amount** | **String** | The transaction fee that you need to pay for the transaction. |
9
9
 
10
10
 
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
8
  **pos_chain** | **String** | The Proof-of-Stake (PoS) chain. |
9
+ **beacon_validators** | [**[EthStakingExtraAllOfBeaconValidators]**](EthStakingExtraAllOfBeaconValidators.md) | The list of validator information. | [optional]
9
10
 
10
11
 
@@ -0,0 +1,14 @@
1
+ # CoboWaas2.EthStakingExtraAllOfBeaconValidators
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pubkey** | **String** | The public key of the validator. | [optional]
8
+ **status** | [**AmountStatus**](AmountStatus.md) | | [optional]
9
+ **apy** | **Number** | The annual percentage yield (APY) of the validator. | [optional]
10
+ **staked_amount** | **String** | The staked amount. | [optional]
11
+ **rewards_received** | **String** | The rewards received. | [optional]
12
+ **updated_timestamp** | **Number** | The time when the validator&#39;s status was last updated, in Unix timestamp format and measured in milliseconds. | [optional]
13
+
14
+
package/docs/FeeAmount.md CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **fee_amount** | **String** | The fee that you need to pay for the transaction. | [optional]
7
+ **fee_amount** | **String** | The transaction fee that you need to pay for the transaction. | [optional]
8
8
 
9
9
 
package/docs/FeeRate.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **fee_type** | [**FeeType**](FeeType.md) | |
8
8
  **token_id** | **String** | The token ID of the transaction fee. |
9
- **fee_amount** | **String** | The fee that you need to pay for the transaction. | [optional]
9
+ **fee_amount** | **String** | The transaction fee that you need to pay for the transaction. | [optional]
10
10
  **slow** | [**UtxoFeeBasePrice**](UtxoFeeBasePrice.md) | | [optional]
11
11
  **recommended** | [**UtxoFeeBasePrice**](UtxoFeeBasePrice.md) | |
12
12
  **fast** | [**UtxoFeeBasePrice**](UtxoFeeBasePrice.md) | | [optional]
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **fee_amount** | **String** | The fee that you need to pay for the transaction. | [optional]
7
+ **fee_amount** | **String** | The transaction fee that you need to pay for the transaction. | [optional]
8
8
  **fee_type** | [**FeeType**](FeeType.md) | |
9
9
  **token_id** | **String** | The token ID of the transaction fee. |
10
10
 
@@ -7,11 +7,10 @@ Name | Type | Description | Notes
7
7
  **activity_type** | [**ActivityType**](ActivityType.md) | |
8
8
  **request_id** | **String** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
9
9
  **source** | [**StakingSource**](StakingSource.md) | | [optional]
10
- **pool_id** | **String** | The ID of the staking pool. |
10
+ **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
11
11
  **amount** | **String** | The amount to withdraw. |
12
12
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
13
13
  **extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | |
14
- **staking_id** | **String** | The ID of the corresponding staking position. |
15
- **address** | **String** | The withdrawal address. |
14
+ **staking_id** | **String** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
16
15
 
17
16
 
@@ -9,6 +9,6 @@ Name | Type | Description | Notes
9
9
  **name** | **String** | The project name. | [optional]
10
10
  **participants** | **Number** | The number of key share holders in the project. | [optional]
11
11
  **threshold** | **Number** | The number of key share holders required to sign an operation in the project. | [optional]
12
- **create_timestamp** | **Number** | The project&#39;s creation time in Unix timestamp format, measured in milliseconds. | [optional]
12
+ **created_timestamp** | **Number** | The project&#39;s creation time in Unix timestamp format, measured in milliseconds. | [optional]
13
13
 
14
14
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_type** | [**WalletSubtype**](WalletSubtype.md) | |
8
8
  **wallet_id** | **String** | The wallet ID. |
9
- **address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the &#x60;included_utxos&#x60; property. If you specify both the &#x60;address&#x60; and &#x60;included_utxos&#x60; properties, the specified included UTXOs must belong to the address. You need to provide either the &#x60;address&#x60; or &#x60;included_utxos&#x60; property. If neither property is provided, the transfer will fail. | [optional]
9
+ **address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the &#x60;included_utxos&#x60; property. If you specify both the &#x60;address&#x60; and &#x60;included_utxos&#x60; properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the &#x60;address&#x60; or &#x60;included_utxos&#x60; property. If neither property is provided, the transfer will fail. | [optional]
10
10
  **included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
11
11
  **excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
12
12
 
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **before** | **String** | An object ID that serves as a starting point for retrieving data in reverse chronological order for the next request. If this property is empty, it means that you have reached the start of the data records. |
8
8
  **after** | **String** | An object ID that acts as a starting point for retrieving data in chronological order for the next request. If this property is empty, it means that you have reached the end of the data records. |
9
- **total_count** | **Number** | The total number of records that match the query, across all pages. |
9
+ **total_count** | **Number** | The total number of records that match the query criteria, unaffected by the pagination parameters (&#x60;before&#x60; , &#x60;after&#x60;, and &#x60;limit&#x60;). |
10
10
 
11
11