@cobo/cobo-waas2 1.5.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 (166) hide show
  1. package/README.md +31 -5
  2. package/dist/ApiClient.js +56 -6
  3. package/dist/ServerDemo.js +80 -0
  4. package/dist/api/DevelopersApi.js +79 -0
  5. package/dist/api/DevelopersWebhooksApi.js +2 -2
  6. package/dist/api/OAuthApi.js +8 -8
  7. package/dist/api/StakingsApi.js +91 -7
  8. package/dist/api/TransactionsApi.js +4 -4
  9. package/dist/api/WalletsApi.js +58 -57
  10. package/dist/crypto/Ed25519Signer.js +36 -0
  11. package/dist/crypto/Secp256k1Signer.js +36 -0
  12. package/dist/index.js +153 -13
  13. package/dist/model/Activity.js +4 -8
  14. package/dist/model/ActivityAction.js +20 -0
  15. package/dist/model/ActivityType.js +5 -0
  16. package/dist/model/AddressTransferDestination.js +2 -2
  17. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
  18. package/dist/model/AutoFuelType.js +61 -0
  19. package/dist/model/BabylonStakeEstimatedFee.js +118 -0
  20. package/dist/model/BabylonValidator.js +9 -12
  21. package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
  22. package/dist/model/ContractCallParams.js +9 -0
  23. package/dist/model/CoreStakeExtra.js +170 -0
  24. package/dist/model/CoreStakingExtra.js +187 -0
  25. package/dist/model/CreateClaimActivity.js +139 -0
  26. package/dist/model/CreateClaimActivityRequest.js +182 -0
  27. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  28. package/dist/model/CreateStakeActivity.js +4 -8
  29. package/dist/model/CreateStakeActivityExtra.js +94 -8
  30. package/dist/model/CreateStakeActivityRequest.js +5 -10
  31. package/dist/model/CreateUnstakeActivity.js +16 -0
  32. package/dist/model/CreateUnstakeActivityExtra.js +159 -0
  33. package/dist/model/CreateUnstakeActivityRequest.js +20 -0
  34. package/dist/model/CreateWithdrawActivity.js +0 -13
  35. package/dist/model/CreateWithdrawActivityRequest.js +0 -18
  36. package/dist/model/EstimateClaimFee.js +145 -0
  37. package/dist/model/EstimateContractCallFeeParams.js +6 -8
  38. package/dist/model/EstimateFeeParams.js +1 -1
  39. package/dist/model/EstimateStakeFee.js +5 -10
  40. package/dist/model/EstimateTransferFeeParams.js +4 -8
  41. package/dist/model/EstimateUnstakeFee.js +20 -0
  42. package/dist/model/EstimateWithdrawFee.js +0 -18
  43. package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
  44. package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
  45. package/dist/model/EstimatedFee.js +1 -1
  46. package/dist/model/EstimatedFixedFee.js +4 -4
  47. package/dist/model/EstimatedUtxoFeeSlow.js +3 -3
  48. package/dist/model/EthStakeEstimatedFee.js +112 -0
  49. package/dist/model/EthStakeExtra.js +131 -0
  50. package/dist/model/EthStakingExtra.js +162 -0
  51. package/dist/model/EthStakingExtraAllOfBeaconValidators.js +140 -0
  52. package/dist/model/EthUnstakeExtra.js +131 -0
  53. package/dist/model/FeeAmount.js +1 -1
  54. package/dist/model/FeeGasLimit.js +1 -2
  55. package/dist/model/FeeRate.js +1 -1
  56. package/dist/model/FixedFeeRate.js +2 -2
  57. package/dist/model/GetApiKeyInfo200Response.js +251 -0
  58. package/dist/model/GetStakingEstimationFee201Response.js +144 -43
  59. package/dist/model/GetStakingEstimationFeeRequest.js +41 -19
  60. package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
  61. package/dist/model/GetToken4XXResponse.js +12 -10
  62. package/dist/model/MPCDelegate.js +1 -1
  63. package/dist/model/MPCProject.js +4 -4
  64. package/dist/model/MpcTransferSource.js +2 -2
  65. package/dist/model/Pagination.js +2 -2
  66. package/dist/model/{RefreshToken201Response.js → RefreshToken2XXResponse.js} +21 -21
  67. package/dist/model/RoleScopes.js +128 -0
  68. package/dist/model/Scopes.js +142 -0
  69. package/dist/model/SmartContractWalletInfo.js +1 -1
  70. package/dist/model/StakingPoolId.js +81 -0
  71. package/dist/model/StakingPoolType.js +10 -0
  72. package/dist/model/Stakings.js +10 -14
  73. package/dist/model/StakingsExtra.js +95 -8
  74. package/dist/model/TransactionEvmEip1559Fee.js +2 -4
  75. package/dist/model/TransactionEvmLegacyFee.js +2 -4
  76. package/dist/model/TransactionFee.js +1 -2
  77. package/dist/model/TransactionRbf.js +9 -0
  78. package/dist/model/TransactionRbfSource.js +1 -1
  79. package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -3
  80. package/dist/model/TransactionRequestEvmLegacyFee.js +2 -3
  81. package/dist/model/TransactionRequestFee.js +1 -2
  82. package/dist/model/TransactionRequestFixedFee.js +1 -1
  83. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  84. package/dist/model/TransactionSource.js +1 -1
  85. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
  86. package/dist/model/TransferDestination.js +2 -2
  87. package/dist/model/TransferParams.js +9 -0
  88. package/docs/Activity.md +1 -1
  89. package/docs/ActivityAction.md +8 -0
  90. package/docs/ActivityType.md +2 -0
  91. package/docs/AddressTransferDestination.md +2 -2
  92. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
  93. package/docs/AutoFuelType.md +12 -0
  94. package/docs/BabylonStakeEstimatedFee.md +12 -0
  95. package/docs/BabylonValidator.md +6 -4
  96. package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
  97. package/docs/ContractCallParams.md +1 -0
  98. package/docs/CoreStakeExtra.md +13 -0
  99. package/docs/CoreStakingExtra.md +14 -0
  100. package/docs/CreateClaimActivity.md +11 -0
  101. package/docs/CreateClaimActivityRequest.md +12 -0
  102. package/docs/CreateStakeActivity.md +1 -1
  103. package/docs/CreateStakeActivityExtra.md +5 -0
  104. package/docs/CreateStakeActivityRequest.md +1 -1
  105. package/docs/CreateUnstakeActivity.md +1 -0
  106. package/docs/CreateUnstakeActivityExtra.md +10 -0
  107. package/docs/CreateUnstakeActivityRequest.md +1 -0
  108. package/docs/CreateWithdrawActivity.md +0 -1
  109. package/docs/CreateWithdrawActivityRequest.md +0 -1
  110. package/docs/DevelopersApi.md +55 -0
  111. package/docs/DevelopersWebhooksApi.md +1 -1
  112. package/docs/EstimateClaimFee.md +11 -0
  113. package/docs/EstimateContractCallFeeParams.md +2 -2
  114. package/docs/EstimateFeeParams.md +2 -2
  115. package/docs/EstimateStakeFee.md +1 -1
  116. package/docs/EstimateTransferFeeParams.md +2 -2
  117. package/docs/EstimateUnstakeFee.md +1 -0
  118. package/docs/EstimateWithdrawFee.md +0 -1
  119. package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
  120. package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
  121. package/docs/EstimatedFee.md +1 -1
  122. package/docs/EstimatedFixedFee.md +1 -1
  123. package/docs/EstimatedUtxoFeeSlow.md +1 -1
  124. package/docs/EthStakeEstimatedFee.md +11 -0
  125. package/docs/EthStakeExtra.md +10 -0
  126. package/docs/EthStakingExtra.md +11 -0
  127. package/docs/EthStakingExtraAllOfBeaconValidators.md +14 -0
  128. package/docs/EthUnstakeExtra.md +10 -0
  129. package/docs/FeeAmount.md +1 -1
  130. package/docs/FeeGasLimit.md +1 -1
  131. package/docs/FeeRate.md +1 -1
  132. package/docs/FixedFeeRate.md +1 -1
  133. package/docs/GetApiKeyInfo200Response.md +30 -0
  134. package/docs/GetStakingEstimationFee201Response.md +3 -0
  135. package/docs/GetStakingEstimationFeeRequest.md +3 -4
  136. package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
  137. package/docs/GetToken4XXResponse.md +1 -1
  138. package/docs/MPCProject.md +1 -1
  139. package/docs/MpcTransferSource.md +1 -1
  140. package/docs/OAuthApi.md +4 -4
  141. package/docs/Pagination.md +1 -1
  142. package/docs/PoolDetailsAllOfValidatorsInfo.md +6 -4
  143. package/docs/{RefreshToken201Response.md → RefreshToken2XXResponse.md} +1 -1
  144. package/docs/RoleScopes.md +10 -0
  145. package/docs/Scopes.md +13 -0
  146. package/docs/StakingPoolId.md +20 -0
  147. package/docs/StakingPoolType.md +4 -0
  148. package/docs/Stakings.md +2 -2
  149. package/docs/StakingsApi.md +108 -2
  150. package/docs/StakingsExtra.md +5 -0
  151. package/docs/TransactionEvmEip1559Fee.md +1 -1
  152. package/docs/TransactionEvmLegacyFee.md +1 -1
  153. package/docs/TransactionFee.md +1 -1
  154. package/docs/TransactionRbf.md +1 -0
  155. package/docs/TransactionRbfSource.md +1 -1
  156. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  157. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  158. package/docs/TransactionRequestFee.md +1 -1
  159. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
  160. package/docs/TransactionsApi.md +2 -2
  161. package/docs/TransferDestination.md +2 -2
  162. package/docs/TransferParams.md +1 -0
  163. package/docs/WalletsApi.md +54 -54
  164. package/package.json +4 -2
  165. package/dist/model/StakingsValidatorInfo.js +0 -140
  166. package/docs/StakingsValidatorInfo.md +0 -13
@@ -0,0 +1,81 @@
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 _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * Enum class StakingPoolId.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var StakingPoolId = exports["default"] = /*#__PURE__*/function () {
31
+ function StakingPoolId() {
32
+ _classCallCheck(this, StakingPoolId);
33
+ /**
34
+ * value: "babylon_btc_signet"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "babylon_btc_signet", "babylon_btc_signet");
38
+ /**
39
+ * value: "babylon_btc"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "babylon_btc", "babylon_btc");
43
+ /**
44
+ * value: "beacon_eth"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "beacon_eth", "beacon_eth");
48
+ /**
49
+ * value: "beacon_eth_holesky"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "beacon_eth_holesky", "beacon_eth_holesky");
53
+ /**
54
+ * value: "core_btc"
55
+ * @const
56
+ */
57
+ _defineProperty(this, "core_btc", "core_btc");
58
+ /**
59
+ * value: "core_xtn"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "core_xtn", "core_xtn");
63
+ /**
64
+ * value: "unknown_default_open_api"
65
+ * @const
66
+ */
67
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
68
+ }
69
+ return _createClass(StakingPoolId, null, [{
70
+ key: "constructFromObject",
71
+ value:
72
+ /**
73
+ * Returns a <code>StakingPoolId</code> enum value from a Javascript object name.
74
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
75
+ * @return {module:model/StakingPoolId} The enum <code>StakingPoolId</code> value.
76
+ */
77
+ function constructFromObject(object) {
78
+ return object;
79
+ }
80
+ }]);
81
+ }();
@@ -35,6 +35,16 @@ var StakingPoolType = exports["default"] = /*#__PURE__*/function () {
35
35
  * @const
36
36
  */
37
37
  _defineProperty(this, "Babylon", "Babylon");
38
+ /**
39
+ * value: "ETHBeacon"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "ETHBeacon", "ETHBeacon");
43
+ /**
44
+ * value: "CoreBTC"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "CoreBTC", "CoreBTC");
38
48
  /**
39
49
  * value: "unknown_default_open_api"
40
50
  * @const
@@ -6,8 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _AmountDetailsInner = _interopRequireDefault(require("./AmountDetailsInner"));
9
+ var _BabylonValidator = _interopRequireDefault(require("./BabylonValidator"));
10
+ var _StakingPoolId = _interopRequireDefault(require("./StakingPoolId"));
9
11
  var _StakingsExtra = _interopRequireDefault(require("./StakingsExtra"));
10
- var _StakingsValidatorInfo = _interopRequireDefault(require("./StakingsValidatorInfo"));
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
13
  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); }
13
14
  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; } } }; }
@@ -40,11 +41,11 @@ var Stakings = /*#__PURE__*/function () {
40
41
  * @param wallet_id {String} The staker's wallet ID.
41
42
  * @param address {String} The staker's wallet address.
42
43
  * @param amounts {Array.<module:model/AmountDetailsInner>} The details about the staking amount.
43
- * @param pool_id {String} The ID of the staking pool.
44
+ * @param pool_id {module:model/StakingPoolId}
44
45
  * @param token_id {String} The token ID.
45
46
  * @param created_timestamp {Number} The time when the staking position was created.
46
47
  * @param updated_timestamp {Number} The time when the staking position was last updated.
47
- * @param validator_info {module:model/StakingsValidatorInfo}
48
+ * @param validator_info {module:model/BabylonValidator}
48
49
  */
49
50
  function Stakings(id, wallet_id, address, amounts, pool_id, token_id, created_timestamp, updated_timestamp, validator_info) {
50
51
  _classCallCheck(this, Stakings);
@@ -95,7 +96,7 @@ var Stakings = /*#__PURE__*/function () {
95
96
  obj['amounts'] = _ApiClient["default"].convertToType(data['amounts'], [_AmountDetailsInner["default"]]);
96
97
  }
97
98
  if (data.hasOwnProperty('pool_id')) {
98
- obj['pool_id'] = _ApiClient["default"].convertToType(data['pool_id'], 'String');
99
+ obj['pool_id'] = _StakingPoolId["default"].constructFromObject(data['pool_id']);
99
100
  }
100
101
  if (data.hasOwnProperty('token_id')) {
101
102
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
@@ -110,7 +111,7 @@ var Stakings = /*#__PURE__*/function () {
110
111
  obj['updated_timestamp'] = _ApiClient["default"].convertToType(data['updated_timestamp'], 'Number');
111
112
  }
112
113
  if (data.hasOwnProperty('validator_info')) {
113
- obj['validator_info'] = _StakingsValidatorInfo["default"].constructFromObject(data['validator_info']);
114
+ obj['validator_info'] = _BabylonValidator["default"].constructFromObject(data['validator_info']);
114
115
  }
115
116
  if (data.hasOwnProperty('extra')) {
116
117
  obj['extra'] = _StakingsExtra["default"].constructFromObject(data['extra']);
@@ -176,18 +177,14 @@ var Stakings = /*#__PURE__*/function () {
176
177
  ;
177
178
  }
178
179
  // ensure the json data is a string
179
- if (data['pool_id'] && !(typeof data['pool_id'] === 'string' || data['pool_id'] instanceof String)) {
180
- throw new Error("Expected the field `pool_id` to be a primitive type in the JSON string but got " + data['pool_id']);
181
- }
182
- // ensure the json data is a string
183
180
  if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
184
181
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
185
182
  }
186
183
  // validate the optional field `validator_info`
187
184
  if (data['validator_info']) {
188
185
  // data not null
189
- if (!!_StakingsValidatorInfo["default"].validateJSON) {
190
- _StakingsValidatorInfo["default"].validateJSON(data['validator_info']);
186
+ if (!!_BabylonValidator["default"].validateJSON) {
187
+ _BabylonValidator["default"].validateJSON(data['validator_info']);
191
188
  }
192
189
  }
193
190
  // validate the optional field `extra`
@@ -228,8 +225,7 @@ Stakings.prototype['address'] = undefined;
228
225
  Stakings.prototype['amounts'] = undefined;
229
226
 
230
227
  /**
231
- * The ID of the staking pool.
232
- * @member {String} pool_id
228
+ * @member {module:model/StakingPoolId} pool_id
233
229
  */
234
230
  Stakings.prototype['pool_id'] = undefined;
235
231
 
@@ -258,7 +254,7 @@ Stakings.prototype['created_timestamp'] = undefined;
258
254
  Stakings.prototype['updated_timestamp'] = undefined;
259
255
 
260
256
  /**
261
- * @member {module:model/StakingsValidatorInfo} validator_info
257
+ * @member {module:model/BabylonValidator} validator_info
262
258
  */
263
259
  Stakings.prototype['validator_info'] = undefined;
264
260
 
@@ -6,6 +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"));
10
+ var _EthStakingExtra = _interopRequireDefault(require("./EthStakingExtra"));
11
+ var _EthStakingExtraAllOfBeaconValidators = _interopRequireDefault(require("./EthStakingExtraAllOfBeaconValidators"));
9
12
  var _StakingPoolType = _interopRequireDefault(require("./StakingPoolType"));
10
13
  var _StakingsExtra;
11
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -33,7 +36,7 @@ var StakingsExtra = /*#__PURE__*/function () {
33
36
  /**
34
37
  * Constructs a new <code>StakingsExtra</code>.
35
38
  * @alias module:model/StakingsExtra
36
- * @param {(module:model/BabylonStakingExtra)} 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.
37
40
  */
38
41
  function StakingsExtra() {
39
42
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -58,6 +61,14 @@ var StakingsExtra = /*#__PURE__*/function () {
58
61
  this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
59
62
  match++;
60
63
  break;
64
+ case "CoreBTC":
65
+ this.actualInstance = _CoreStakingExtra["default"].constructFromObject(instance);
66
+ match++;
67
+ break;
68
+ case "ETHBeacon":
69
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
70
+ match++;
71
+ break;
61
72
  default:
62
73
  errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
63
74
  break;
@@ -87,13 +98,59 @@ var StakingsExtra = /*#__PURE__*/function () {
87
98
  // json data failed to deserialize into BabylonStakingExtra
88
99
  errorMessages.push("Failed to construct BabylonStakingExtra: " + err);
89
100
  }
101
+ try {
102
+ if (instance instanceof _EthStakingExtra["default"]) {
103
+ this.actualInstance = instance;
104
+ } else if (!!_EthStakingExtra["default"].validateJSON && _EthStakingExtra["default"].validateJSON(instance)) {
105
+ // plain JS object
106
+ // create EthStakingExtra from JS object
107
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
108
+ } else {
109
+ if (_EthStakingExtra["default"].constructFromObject(instance)) {
110
+ if (!!_EthStakingExtra["default"].constructFromObject(instance).toJSON) {
111
+ if (_EthStakingExtra["default"].constructFromObject(instance).toJSON()) {
112
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
113
+ }
114
+ } else {
115
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
116
+ }
117
+ }
118
+ }
119
+ match++;
120
+ } catch (err) {
121
+ // json data failed to deserialize into EthStakingExtra
122
+ errorMessages.push("Failed to construct EthStakingExtra: " + err);
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
+ }
90
147
 
91
148
  // if (match > 1) {
92
- // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Input: " + JSON.stringify(instance));
149
+ // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, CoreStakingExtra, EthStakingExtra. Input: " + JSON.stringify(instance));
93
150
  // } else
94
151
  if (match === 0) {
95
152
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
96
- // throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Details: " +
153
+ // throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, CoreStakingExtra, EthStakingExtra. Details: " +
97
154
  // errorMessages.join(", "));
98
155
  return;
99
156
  } else {// only 1 match
@@ -112,16 +169,16 @@ var StakingsExtra = /*#__PURE__*/function () {
112
169
  key: "getActualInstance",
113
170
  value:
114
171
  /**
115
- * Gets the actual instance, which can be <code>BabylonStakingExtra</code>.
116
- * @return {(module:model/BabylonStakingExtra)} 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.
117
174
  */
118
175
  function getActualInstance() {
119
176
  return this.actualInstance;
120
177
  }
121
178
 
122
179
  /**
123
- * Sets the actual instance, which can be <code>BabylonStakingExtra</code>.
124
- * @param {(module:model/BabylonStakingExtra)} 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.
125
182
  */
126
183
  }, {
127
184
  key: "setActualInstance",
@@ -178,5 +235,35 @@ StakingsExtra.prototype['stake_address'] = undefined;
178
235
  * @member {String} unbond_address
179
236
  */
180
237
  StakingsExtra.prototype['unbond_address'] = undefined;
181
- StakingsExtra.OneOf = ["BabylonStakingExtra"];
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"];
182
269
  var _default = exports["default"] = StakingsExtra;
@@ -172,9 +172,8 @@ TransactionEvmEip1559Fee.prototype['max_priority_fee_per_gas'] = undefined;
172
172
  /**
173
173
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
174
174
  * @member {String} gas_limit
175
- * @default '21000'
176
175
  */
177
- TransactionEvmEip1559Fee.prototype['gas_limit'] = '21000';
176
+ TransactionEvmEip1559Fee.prototype['gas_limit'] = undefined;
178
177
 
179
178
  /**
180
179
  * @member {module:model/FeeType} fee_type
@@ -220,7 +219,6 @@ _EvmEip1559FeeBasePrice["default"].prototype['max_priority_fee_per_gas'] = undef
220
219
  /**
221
220
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
222
221
  * @member {String} gas_limit
223
- * @default '21000'
224
222
  */
225
- _FeeGasLimit["default"].prototype['gas_limit'] = '21000';
223
+ _FeeGasLimit["default"].prototype['gas_limit'] = undefined;
226
224
  var _default = exports["default"] = TransactionEvmEip1559Fee;
@@ -152,9 +152,8 @@ TransactionEvmLegacyFee.prototype['gas_price'] = undefined;
152
152
  /**
153
153
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
154
154
  * @member {String} gas_limit
155
- * @default '21000'
156
155
  */
157
- TransactionEvmLegacyFee.prototype['gas_limit'] = '21000';
156
+ TransactionEvmLegacyFee.prototype['gas_limit'] = undefined;
158
157
 
159
158
  /**
160
159
  * @member {module:model/FeeType} fee_type
@@ -189,7 +188,6 @@ _EvmLegacyFeeBasePrice["default"].prototype['gas_price'] = undefined;
189
188
  /**
190
189
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
191
190
  * @member {String} gas_limit
192
- * @default '21000'
193
191
  */
194
- _FeeGasLimit["default"].prototype['gas_limit'] = '21000';
192
+ _FeeGasLimit["default"].prototype['gas_limit'] = undefined;
195
193
  var _default = exports["default"] = TransactionEvmLegacyFee;
@@ -272,9 +272,8 @@ TransactionFee.prototype['max_priority_fee_per_gas'] = undefined;
272
272
  /**
273
273
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
274
274
  * @member {String} gas_limit
275
- * @default '21000'
276
275
  */
277
- TransactionFee.prototype['gas_limit'] = '21000';
276
+ TransactionFee.prototype['gas_limit'] = undefined;
278
277
 
279
278
  /**
280
279
  * 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.
@@ -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.
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.
@@ -164,9 +164,8 @@ TransactionRequestEvmEip1559Fee.prototype['token_id'] = undefined;
164
164
  /**
165
165
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
166
166
  * @member {String} gas_limit
167
- * @default '21000'
168
167
  */
169
- TransactionRequestEvmEip1559Fee.prototype['gas_limit'] = '21000';
168
+ TransactionRequestEvmEip1559Fee.prototype['gas_limit'] = undefined;
170
169
 
171
170
  // Implement EvmEip1559FeeBasePrice interface:
172
171
  /**
@@ -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.
@@ -149,9 +149,8 @@ TransactionRequestEvmLegacyFee.prototype['token_id'] = undefined;
149
149
  /**
150
150
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
151
151
  * @member {String} gas_limit
152
- * @default '21000'
153
152
  */
154
- TransactionRequestEvmLegacyFee.prototype['gas_limit'] = '21000';
153
+ TransactionRequestEvmLegacyFee.prototype['gas_limit'] = undefined;
155
154
 
156
155
  // Implement EvmLegacyFeeBasePrice interface:
157
156
  /**
@@ -248,9 +248,8 @@ TransactionRequestFee.prototype['max_fee_amount'] = undefined;
248
248
  /**
249
249
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
250
250
  * @member {String} gas_limit
251
- * @default '21000'
252
251
  */
253
- TransactionRequestFee.prototype['gas_limit'] = '21000';
252
+ TransactionRequestFee.prototype['gas_limit'] = undefined;
254
253
 
255
254
  /**
256
255
  * 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 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.
@@ -89,7 +89,7 @@ var TransactionSource = /*#__PURE__*/function () {
89
89
  this.actualInstance = _TransactionMPCWalletSource["default"].constructFromObject(instance);
90
90
  match++;
91
91
  break;
92
- case "SafeWallet":
92
+ case "Safe{Wallet}":
93
93
  this.actualInstance = _TransactionSmartContractSafeWalletSource["default"].constructFromObject(instance);
94
94
  match++;
95
95
  break;
@@ -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;
@@ -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 [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
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 [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
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;
@@ -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