@cobo/cobo-waas2 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +32 -10
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/ServerDemo.js +80 -0
  4. package/dist/api/AddressBooksApi.js +105 -0
  5. package/dist/api/DevelopersApi.js +79 -0
  6. package/dist/api/DevelopersWebhooksApi.js +43 -0
  7. package/dist/api/OAuthApi.js +10 -10
  8. package/dist/api/TransactionsApi.js +12 -12
  9. package/dist/api/WalletsApi.js +60 -59
  10. package/dist/api/WalletsExchangeWalletApi.js +4 -4
  11. package/dist/api/WalletsMPCWalletsApi.js +8 -8
  12. package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
  13. package/dist/index.js +181 -34
  14. package/dist/model/AddressBook.js +25 -10
  15. package/dist/model/AddressTransferDestination.js +2 -2
  16. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
  17. package/dist/model/ApiLogDetails.js +238 -0
  18. package/dist/model/ApiLogSummary.js +161 -0
  19. package/dist/model/BabylonStakeEstimatedFee.js +118 -0
  20. package/dist/model/BabylonValidator.js +5 -0
  21. package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
  22. package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
  23. package/dist/model/CoboSafeDelegate.js +2 -2
  24. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  25. package/dist/model/CreateStakeActivityExtra.js +42 -8
  26. package/dist/model/CreateUnstakeActivity.js +16 -0
  27. package/dist/model/CreateUnstakeActivityExtra.js +159 -0
  28. package/dist/model/CreateUnstakeActivityRequest.js +20 -0
  29. package/dist/model/ErrorResponse.js +2 -2
  30. package/dist/model/EstimateContractCallFeeParams.js +5 -7
  31. package/dist/model/EstimateFeeParams.js +1 -1
  32. package/dist/model/EstimateTransferFeeParams.js +5 -9
  33. package/dist/model/EstimateUnstakeFee.js +20 -0
  34. package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
  35. package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
  36. package/dist/model/EstimatedFee.js +1 -1
  37. package/dist/model/EstimatedFixedFee.js +1 -1
  38. package/dist/model/EthStakeEstimatedFee.js +112 -0
  39. package/dist/model/EthStakeExtra.js +131 -0
  40. package/dist/model/EthStakingExtra.js +131 -0
  41. package/dist/model/EthUnstakeExtra.js +131 -0
  42. package/dist/model/ExchangeId.js +10 -0
  43. package/dist/model/ExtendedTokenInfo.js +17 -4
  44. package/dist/model/FeeGasLimit.js +1 -2
  45. package/dist/model/GetApiKeyInfo200Response.js +251 -0
  46. package/dist/model/GetStakingEstimationFee201Response.js +144 -43
  47. package/dist/model/GetStakingEstimationFeeRequest.js +2 -2
  48. package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
  49. package/dist/model/GetToken4XXResponse.js +12 -10
  50. package/dist/model/ListAddressBooks200Response.js +123 -0
  51. package/dist/model/MPCDelegate.js +5 -5
  52. package/dist/model/MpcTransferSource.js +2 -2
  53. package/dist/model/{RefreshToken200Response.js → RefreshToken2XXResponse.js} +21 -21
  54. package/dist/model/{WalletBalanceSnapshot.js → RoleScopes.js} +42 -34
  55. package/dist/model/SafeWalletDelegates.js +210 -0
  56. package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
  57. package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
  58. package/dist/model/Scopes.js +142 -0
  59. package/dist/model/SmartContractWalletInfo.js +1 -1
  60. package/dist/model/StakingPoolType.js +5 -0
  61. package/dist/model/StakingsExtra.js +36 -8
  62. package/dist/model/TokenAssetModelType.js +61 -0
  63. package/dist/model/TokenBalanceBalance.js +6 -6
  64. package/dist/model/TokenInfo.js +11 -2
  65. package/dist/model/Transaction.js +1 -1
  66. package/dist/model/TransactionDestination.js +50 -10
  67. package/dist/model/TransactionDestinationType.js +5 -0
  68. package/dist/model/TransactionDetail.js +2 -2
  69. package/dist/model/TransactionDetails.js +2 -2
  70. package/dist/model/TransactionEvmCalldataInfo.js +177 -0
  71. package/dist/model/TransactionEvmContractDestination.js +16 -0
  72. package/dist/model/TransactionEvmContractMethod.js +136 -0
  73. package/dist/model/TransactionEvmEip1559Fee.js +2 -4
  74. package/dist/model/TransactionEvmLegacyFee.js +2 -4
  75. package/dist/model/TransactionFee.js +1 -2
  76. package/dist/model/TransactionRawMessageSignDestination.js +120 -0
  77. package/dist/model/TransactionRbfSource.js +1 -1
  78. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -2
  79. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -2
  80. package/dist/model/TransactionRequestFee.js +1 -2
  81. package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
  82. package/dist/model/TransactionSource.js +1 -1
  83. package/dist/model/TransactionTokeApproval.js +17 -4
  84. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  85. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
  86. package/dist/model/TransactionWebhookEventData.js +2 -2
  87. package/dist/model/TransferDestination.js +2 -2
  88. package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
  89. package/dist/model/TriggerTestWebhookEventRequest.js +115 -0
  90. package/dist/model/WebhookEventData.js +1 -1
  91. package/docs/AddressBook.md +8 -7
  92. package/docs/AddressBooksApi.md +71 -0
  93. package/docs/AddressTransferDestination.md +2 -2
  94. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
  95. package/docs/ApiLogDetails.md +18 -0
  96. package/docs/ApiLogSummary.md +13 -0
  97. package/docs/BabylonStakeEstimatedFee.md +12 -0
  98. package/docs/BabylonValidator.md +2 -0
  99. package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
  100. package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
  101. package/docs/CoboSafeDelegate.md +2 -2
  102. package/docs/CreateStakeActivityExtra.md +1 -0
  103. package/docs/CreateUnstakeActivity.md +1 -0
  104. package/docs/CreateUnstakeActivityExtra.md +10 -0
  105. package/docs/CreateUnstakeActivityRequest.md +1 -0
  106. package/docs/DevelopersApi.md +55 -0
  107. package/docs/DevelopersWebhooksApi.md +53 -0
  108. package/docs/ErrorResponse.md +1 -1
  109. package/docs/EstimateContractCallFeeParams.md +1 -1
  110. package/docs/EstimateFeeParams.md +1 -1
  111. package/docs/EstimateTransferFeeParams.md +2 -2
  112. package/docs/EstimateUnstakeFee.md +1 -0
  113. package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
  114. package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
  115. package/docs/EstimatedFee.md +1 -1
  116. package/docs/EstimatedFixedFee.md +1 -1
  117. package/docs/EthStakeEstimatedFee.md +11 -0
  118. package/docs/EthStakeExtra.md +10 -0
  119. package/docs/EthStakingExtra.md +10 -0
  120. package/docs/EthUnstakeExtra.md +10 -0
  121. package/docs/ExchangeId.md +4 -0
  122. package/docs/ExtendedTokenInfo.md +3 -2
  123. package/docs/FeeGasLimit.md +1 -1
  124. package/docs/GetApiKeyInfo200Response.md +30 -0
  125. package/docs/GetStakingEstimationFee201Response.md +3 -0
  126. package/docs/GetStakingEstimationFeeRequest.md +1 -1
  127. package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
  128. package/docs/GetToken4XXResponse.md +1 -1
  129. package/docs/ListAddressBooks200Response.md +10 -0
  130. package/docs/MPCDelegate.md +2 -2
  131. package/docs/MpcTransferSource.md +1 -1
  132. package/docs/OAuthApi.md +5 -5
  133. package/docs/PoolDetailsAllOfValidatorsInfo.md +2 -0
  134. package/docs/{RefreshToken200Response.md → RefreshToken2XXResponse.md} +1 -1
  135. package/docs/RoleScopes.md +10 -0
  136. package/docs/SafeWalletDelegates.md +14 -0
  137. package/docs/SafeWalletDelegatesContractCall.md +12 -0
  138. package/docs/SafeWalletDelegatesTransfer.md +12 -0
  139. package/docs/Scopes.md +13 -0
  140. package/docs/StakingPoolType.md +2 -0
  141. package/docs/TokenAssetModelType.md +12 -0
  142. package/docs/TokenBalanceBalance.md +4 -4
  143. package/docs/TokenInfo.md +3 -2
  144. package/docs/Transaction.md +1 -1
  145. package/docs/TransactionDestination.md +4 -2
  146. package/docs/TransactionDestinationType.md +2 -0
  147. package/docs/TransactionDetail.md +1 -1
  148. package/docs/TransactionDetails.md +1 -1
  149. package/docs/TransactionEvmCalldataInfo.md +16 -0
  150. package/docs/TransactionEvmContractDestination.md +1 -0
  151. package/docs/TransactionEvmContractMethod.md +13 -0
  152. package/docs/TransactionEvmEip1559Fee.md +1 -1
  153. package/docs/TransactionEvmLegacyFee.md +1 -1
  154. package/docs/TransactionFee.md +1 -1
  155. package/docs/TransactionRawMessageSignDestination.md +10 -0
  156. package/docs/TransactionRbfSource.md +1 -1
  157. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  158. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  159. package/docs/TransactionRequestFee.md +1 -1
  160. package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
  161. package/docs/TransactionSource.md +1 -1
  162. package/docs/TransactionTokeApproval.md +3 -2
  163. package/docs/TransactionTransferToAddressDestination.md +2 -2
  164. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
  165. package/docs/TransactionWebhookEventData.md +1 -1
  166. package/docs/TransactionsApi.md +7 -7
  167. package/docs/TransferDestination.md +2 -2
  168. package/docs/TriggerTestWebhookEvent201Response.md +9 -0
  169. package/docs/TriggerTestWebhookEventRequest.md +10 -0
  170. package/docs/WalletsApi.md +55 -55
  171. package/docs/WalletsExchangeWalletApi.md +2 -2
  172. package/docs/WalletsMPCWalletsApi.md +4 -4
  173. package/docs/WalletsSmartContractWalletsApi.md +63 -0
  174. package/docs/WebhookEventData.md +1 -1
  175. package/package.json +3 -2
  176. package/dist/model/BookkeepingRecord.js +0 -243
  177. package/docs/BookkeepingRecord.md +0 -19
  178. package/docs/BookkeepingSummary.md +0 -12
  179. package/docs/WalletBalanceSnapshot.md +0 -10
  180. package/docs/WalletBalanceSnapshotRecord.md +0 -13
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _WalletSubtype = _interopRequireDefault(require("./WalletSubtype"));
9
+ var _WalletType = _interopRequireDefault(require("./WalletType"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
13
+ 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); } }
14
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
+ 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); } /**
17
+ * Cobo Wallet as a Service 2.0
18
+ *
19
+ * Contact: help@cobo.com
20
+ *
21
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
22
+ * https://openapi-generator.tech
23
+ * Do not edit the class manually.
24
+ *
25
+ */
26
+ /**
27
+ * The Scopes model module.
28
+ * @module model/Scopes
29
+ */
30
+ var Scopes = /*#__PURE__*/function () {
31
+ /**
32
+ * Constructs a new <code>Scopes</code>.
33
+ * The wallet scopes associated with this API key.
34
+ * @alias module:model/Scopes
35
+ */
36
+ function Scopes() {
37
+ _classCallCheck(this, Scopes);
38
+ Scopes.initialize(this);
39
+ }
40
+
41
+ /**
42
+ * Initializes the fields of this object.
43
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
44
+ * Only for internal use.
45
+ */
46
+ return _createClass(Scopes, null, [{
47
+ key: "initialize",
48
+ value: function initialize(obj) {}
49
+
50
+ /**
51
+ * Constructs a <code>Scopes</code> from a plain JavaScript object, optionally creating a new instance.
52
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
53
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
54
+ * @param {module:model/Scopes} obj Optional instance to populate.
55
+ * @return {module:model/Scopes} The populated <code>Scopes</code> instance.
56
+ */
57
+ }, {
58
+ key: "constructFromObject",
59
+ value: function constructFromObject(data, obj) {
60
+ if (data) {
61
+ obj = obj || new Scopes();
62
+ if (data.hasOwnProperty('wallet_types')) {
63
+ obj['wallet_types'] = _ApiClient["default"].convertToType(data['wallet_types'], [_WalletType["default"]]);
64
+ }
65
+ if (data.hasOwnProperty('wallet_subtypes')) {
66
+ obj['wallet_subtypes'] = _ApiClient["default"].convertToType(data['wallet_subtypes'], [_WalletSubtype["default"]]);
67
+ }
68
+ if (data.hasOwnProperty('wallet_ids')) {
69
+ obj['wallet_ids'] = _ApiClient["default"].convertToType(data['wallet_ids'], ['String']);
70
+ }
71
+ if (data.hasOwnProperty('vault_ids')) {
72
+ obj['vault_ids'] = _ApiClient["default"].convertToType(data['vault_ids'], ['String']);
73
+ }
74
+ if (data.hasOwnProperty('project_ids')) {
75
+ obj['project_ids'] = _ApiClient["default"].convertToType(data['project_ids'], ['String']);
76
+ }
77
+ }
78
+ return obj;
79
+ }
80
+
81
+ /**
82
+ * Validates the JSON data with respect to <code>Scopes</code>.
83
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
84
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Scopes</code>.
85
+ */
86
+ }, {
87
+ key: "validateJSON",
88
+ value: function validateJSON(data) {
89
+ // ensure the json data is an array
90
+ if (!Array.isArray(data['wallet_types'])) {
91
+ throw new Error("Expected the field `wallet_types` to be an array in the JSON data but got " + data['wallet_types']);
92
+ }
93
+ // ensure the json data is an array
94
+ if (!Array.isArray(data['wallet_subtypes'])) {
95
+ throw new Error("Expected the field `wallet_subtypes` to be an array in the JSON data but got " + data['wallet_subtypes']);
96
+ }
97
+ // ensure the json data is an array
98
+ if (!Array.isArray(data['wallet_ids'])) {
99
+ throw new Error("Expected the field `wallet_ids` to be an array in the JSON data but got " + data['wallet_ids']);
100
+ }
101
+ // ensure the json data is an array
102
+ if (!Array.isArray(data['vault_ids'])) {
103
+ throw new Error("Expected the field `vault_ids` to be an array in the JSON data but got " + data['vault_ids']);
104
+ }
105
+ // ensure the json data is an array
106
+ if (!Array.isArray(data['project_ids'])) {
107
+ throw new Error("Expected the field `project_ids` to be an array in the JSON data but got " + data['project_ids']);
108
+ }
109
+ return true;
110
+ }
111
+ }]);
112
+ }();
113
+ /**
114
+ * The list of wallet types that this API key can access. Possible values include: - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
115
+ * @member {Array.<module:model/WalletType>} wallet_types
116
+ */
117
+ Scopes.prototype['wallet_types'] = undefined;
118
+
119
+ /**
120
+ * The list of wallet sub-types that this API key can access. Possible values include: - `Asset`: Custodial Wallets (Asset Wallets). - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets). - `User-Controlled`: MPC Wallets (User-Controlled Wallets). - `Safe{Wallet}`: Smart Contract Wallets (Safe). - `Main`: Exchange Wallets (Main Account). - `Sub`: Exchange Wallets (Sub Account).
121
+ * @member {Array.<module:model/WalletSubtype>} wallet_subtypes
122
+ */
123
+ Scopes.prototype['wallet_subtypes'] = undefined;
124
+
125
+ /**
126
+ * The list of wallet IDs that this API key can access.
127
+ * @member {Array.<String>} wallet_ids
128
+ */
129
+ Scopes.prototype['wallet_ids'] = undefined;
130
+
131
+ /**
132
+ * (Applicable to MPC Wallets only) The list of vault IDs that this API key can access.
133
+ * @member {Array.<String>} vault_ids
134
+ */
135
+ Scopes.prototype['vault_ids'] = undefined;
136
+
137
+ /**
138
+ * (Applicable to MPC Wallets only) The list of project IDs that this API key can access.
139
+ * @member {Array.<String>} project_ids
140
+ */
141
+ Scopes.prototype['project_ids'] = undefined;
142
+ var _default = exports["default"] = Scopes;
@@ -57,7 +57,7 @@ var SmartContractWalletInfo = /*#__PURE__*/function () {
57
57
  var discriminatorValue = instance["smart_contract_wallet_type"];
58
58
  if (discriminatorValue) {
59
59
  switch (discriminatorValue) {
60
- case "Safe":
60
+ case "Safe{Wallet}":
61
61
  this.actualInstance = _SafeWallet["default"].constructFromObject(instance);
62
62
  match++;
63
63
  break;
@@ -35,6 +35,11 @@ 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");
38
43
  /**
39
44
  * value: "unknown_default_open_api"
40
45
  * @const
@@ -6,6 +6,7 @@ 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 _EthStakingExtra = _interopRequireDefault(require("./EthStakingExtra"));
9
10
  var _StakingPoolType = _interopRequireDefault(require("./StakingPoolType"));
10
11
  var _StakingsExtra;
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -33,7 +34,7 @@ var StakingsExtra = /*#__PURE__*/function () {
33
34
  /**
34
35
  * Constructs a new <code>StakingsExtra</code>.
35
36
  * @alias module:model/StakingsExtra
36
- * @param {(module:model/BabylonStakingExtra)} instance The actual instance to initialize StakingsExtra.
37
+ * @param {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} instance The actual instance to initialize StakingsExtra.
37
38
  */
38
39
  function StakingsExtra() {
39
40
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -58,6 +59,10 @@ var StakingsExtra = /*#__PURE__*/function () {
58
59
  this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
59
60
  match++;
60
61
  break;
62
+ case "ETHBeacon":
63
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
64
+ match++;
65
+ break;
61
66
  default:
62
67
  errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
63
68
  break;
@@ -87,13 +92,36 @@ var StakingsExtra = /*#__PURE__*/function () {
87
92
  // json data failed to deserialize into BabylonStakingExtra
88
93
  errorMessages.push("Failed to construct BabylonStakingExtra: " + err);
89
94
  }
95
+ try {
96
+ if (instance instanceof _EthStakingExtra["default"]) {
97
+ this.actualInstance = instance;
98
+ } else if (!!_EthStakingExtra["default"].validateJSON && _EthStakingExtra["default"].validateJSON(instance)) {
99
+ // plain JS object
100
+ // create EthStakingExtra from JS object
101
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
102
+ } else {
103
+ if (_EthStakingExtra["default"].constructFromObject(instance)) {
104
+ if (!!_EthStakingExtra["default"].constructFromObject(instance).toJSON) {
105
+ if (_EthStakingExtra["default"].constructFromObject(instance).toJSON()) {
106
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
107
+ }
108
+ } else {
109
+ this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
110
+ }
111
+ }
112
+ }
113
+ match++;
114
+ } catch (err) {
115
+ // json data failed to deserialize into EthStakingExtra
116
+ errorMessages.push("Failed to construct EthStakingExtra: " + err);
117
+ }
90
118
 
91
119
  // if (match > 1) {
92
- // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Input: " + JSON.stringify(instance));
120
+ // throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Input: " + JSON.stringify(instance));
93
121
  // } else
94
122
  if (match === 0) {
95
123
  // 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: " +
124
+ // throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Details: " +
97
125
  // errorMessages.join(", "));
98
126
  return;
99
127
  } else {// only 1 match
@@ -112,16 +140,16 @@ var StakingsExtra = /*#__PURE__*/function () {
112
140
  key: "getActualInstance",
113
141
  value:
114
142
  /**
115
- * Gets the actual instance, which can be <code>BabylonStakingExtra</code>.
116
- * @return {(module:model/BabylonStakingExtra)} The actual instance.
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.
117
145
  */
118
146
  function getActualInstance() {
119
147
  return this.actualInstance;
120
148
  }
121
149
 
122
150
  /**
123
- * Sets the actual instance, which can be <code>BabylonStakingExtra</code>.
124
- * @param {(module:model/BabylonStakingExtra)} obj The actual instance.
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.
125
153
  */
126
154
  }, {
127
155
  key: "setActualInstance",
@@ -178,5 +206,5 @@ StakingsExtra.prototype['stake_address'] = undefined;
178
206
  * @member {String} unbond_address
179
207
  */
180
208
  StakingsExtra.prototype['unbond_address'] = undefined;
181
- StakingsExtra.OneOf = ["BabylonStakingExtra"];
209
+ StakingsExtra.OneOf = ["BabylonStakingExtra", "EthStakingExtra"];
182
210
  var _default = exports["default"] = StakingsExtra;
@@ -0,0 +1,61 @@
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 TokenAssetModelType.
27
+ * @enum {}
28
+ * @readonly
29
+ */
30
+ var TokenAssetModelType = exports["default"] = /*#__PURE__*/function () {
31
+ function TokenAssetModelType() {
32
+ _classCallCheck(this, TokenAssetModelType);
33
+ /**
34
+ * value: "Account"
35
+ * @const
36
+ */
37
+ _defineProperty(this, "Account", "Account");
38
+ /**
39
+ * value: "UTXO"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "UTXO", "UTXO");
43
+ /**
44
+ * value: "unknown_default_open_api"
45
+ * @const
46
+ */
47
+ _defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
48
+ }
49
+ return _createClass(TokenAssetModelType, null, [{
50
+ key: "constructFromObject",
51
+ value:
52
+ /**
53
+ * Returns a <code>TokenAssetModelType</code> enum value from a Javascript object name.
54
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
55
+ * @return {module:model/TokenAssetModelType} The enum <code>TokenAssetModelType</code> value.
56
+ */
57
+ function constructFromObject(object) {
58
+ return object;
59
+ }
60
+ }]);
61
+ }();
@@ -33,8 +33,8 @@ var TokenBalanceBalance = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>TokenBalanceBalance</code>.
34
34
  * The balance details.
35
35
  * @alias module:model/TokenBalanceBalance
36
- * @param total {String} The total balance, which is the sum of the available, pending, and locked balances.
37
- * @param available {String} The balance free to use.
36
+ * @param total {String} The current amount of tokens in an address, which is retrieved directly from the network. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
37
+ * @param available {String} The amount of tokens ready to be spent. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
38
38
  */
39
39
  function TokenBalanceBalance(total, available) {
40
40
  _classCallCheck(this, TokenBalanceBalance);
@@ -127,26 +127,26 @@ var TokenBalanceBalance = /*#__PURE__*/function () {
127
127
  TokenBalanceBalance.RequiredProperties = ["total", "available"];
128
128
 
129
129
  /**
130
- * The total balance, which is the sum of the available, pending, and locked balances.
130
+ * The current amount of tokens in an address, which is retrieved directly from the network. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
131
131
  * @member {String} total
132
132
  */
133
133
  TokenBalanceBalance.prototype['total'] = undefined;
134
134
 
135
135
  /**
136
- * The balance free to use.
136
+ * The amount of tokens ready to be spent. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
137
137
  * @member {String} available
138
138
  */
139
139
  TokenBalanceBalance.prototype['available'] = undefined;
140
140
 
141
141
  /**
142
- * The balance that is currently pending confirmation.
142
+ * The total amount being sent in a transaction, which is calculated as the withdrawal amount plus the transaction fee. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
143
143
  * @member {String} pending
144
144
  * @default '0'
145
145
  */
146
146
  TokenBalanceBalance.prototype['pending'] = '0';
147
147
 
148
148
  /**
149
- * The balance that is currently not accessible to transactions.
149
+ * For UTXO chains, this is the combined value of the selected UTXOs for the transaction. For other chains, it is equal to the Pending amount. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
150
150
  * @member {String} locked
151
151
  * @default '0'
152
152
  */
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _TokenAssetModelType = _interopRequireDefault(require("./TokenAssetModelType"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
10
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -104,6 +105,9 @@ var TokenInfo = /*#__PURE__*/function () {
104
105
  if (data.hasOwnProperty('custodial_minimum_deposit_threshold')) {
105
106
  obj['custodial_minimum_deposit_threshold'] = _ApiClient["default"].convertToType(data['custodial_minimum_deposit_threshold'], 'String');
106
107
  }
108
+ if (data.hasOwnProperty('asset_model_type')) {
109
+ obj['asset_model_type'] = _TokenAssetModelType["default"].constructFromObject(data['asset_model_type']);
110
+ }
107
111
  }
108
112
  return obj;
109
113
  }
@@ -244,14 +248,19 @@ TokenInfo.prototype['can_deposit'] = undefined;
244
248
  TokenInfo.prototype['can_withdraw'] = undefined;
245
249
 
246
250
  /**
247
- * The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Loop transfers](https://loop.top/) do not have this limitation.
251
+ * The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfers do not have this limitation.
248
252
  * @member {String} dust_threshold
249
253
  */
250
254
  TokenInfo.prototype['dust_threshold'] = undefined;
251
255
 
252
256
  /**
253
- * The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Loop transfers](https://loop.top/) do not have this limitation.
257
+ * The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop)transfers do not have this limitation.
254
258
  * @member {String} custodial_minimum_deposit_threshold
255
259
  */
256
260
  TokenInfo.prototype['custodial_minimum_deposit_threshold'] = undefined;
261
+
262
+ /**
263
+ * @member {module:model/TokenAssetModelType} asset_model_type
264
+ */
265
+ TokenInfo.prototype['asset_model_type'] = undefined;
257
266
  var _default = exports["default"] = TokenInfo;
@@ -438,7 +438,7 @@ Transaction.prototype['category'] = undefined;
438
438
  Transaction.prototype['description'] = undefined;
439
439
 
440
440
  /**
441
- * Whether the transaction is a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction is a Loop transfer. - `false`: The transaction is not a Loop transfer.
441
+ * Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
442
442
  * @member {Boolean} is_loop
443
443
  */
444
444
  Transaction.prototype['is_loop'] = undefined;
@@ -9,9 +9,11 @@ var _ExchangeId = _interopRequireDefault(require("./ExchangeId"));
9
9
  var _TransactionDepositToAddressDestination = _interopRequireDefault(require("./TransactionDepositToAddressDestination"));
10
10
  var _TransactionDepositToWalletDestination = _interopRequireDefault(require("./TransactionDepositToWalletDestination"));
11
11
  var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
12
+ var _TransactionEvmCalldataInfo = _interopRequireDefault(require("./TransactionEvmCalldataInfo"));
12
13
  var _TransactionEvmContractDestination = _interopRequireDefault(require("./TransactionEvmContractDestination"));
13
14
  var _TransactionMessageSignEIP191Destination = _interopRequireDefault(require("./TransactionMessageSignEIP191Destination"));
14
15
  var _TransactionMessageSignEIP712Destination = _interopRequireDefault(require("./TransactionMessageSignEIP712Destination"));
16
+ var _TransactionRawMessageSignDestination = _interopRequireDefault(require("./TransactionRawMessageSignDestination"));
15
17
  var _TransactionTransferToAddressDestination = _interopRequireDefault(require("./TransactionTransferToAddressDestination"));
16
18
  var _TransactionTransferToAddressDestinationAccountOutput = _interopRequireDefault(require("./TransactionTransferToAddressDestinationAccountOutput"));
17
19
  var _TransactionTransferToAddressDestinationUtxoOutputsInner = _interopRequireDefault(require("./TransactionTransferToAddressDestinationUtxoOutputsInner"));
@@ -44,7 +46,7 @@ var TransactionDestination = /*#__PURE__*/function () {
44
46
  /**
45
47
  * Constructs a new <code>TransactionDestination</code>.
46
48
  * @alias module:model/TransactionDestination
47
- * @param {(module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} instance The actual instance to initialize TransactionDestination.
49
+ * @param {(module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} instance The actual instance to initialize TransactionDestination.
48
50
  */
49
51
  function TransactionDestination() {
50
52
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -89,6 +91,10 @@ var TransactionDestination = /*#__PURE__*/function () {
89
91
  this.actualInstance = _TransactionMessageSignEIP712Destination["default"].constructFromObject(instance);
90
92
  match++;
91
93
  break;
94
+ case "EVM_Raw_Message_Signature":
95
+ this.actualInstance = _TransactionRawMessageSignDestination["default"].constructFromObject(instance);
96
+ match++;
97
+ break;
92
98
  case "ExchangeWallet":
93
99
  this.actualInstance = _TransactionTransferToWalletDestination["default"].constructFromObject(instance);
94
100
  match++;
@@ -214,6 +220,29 @@ var TransactionDestination = /*#__PURE__*/function () {
214
220
  // json data failed to deserialize into TransactionMessageSignEIP712Destination
215
221
  errorMessages.push("Failed to construct TransactionMessageSignEIP712Destination: " + err);
216
222
  }
223
+ try {
224
+ if (instance instanceof _TransactionRawMessageSignDestination["default"]) {
225
+ this.actualInstance = instance;
226
+ } else if (!!_TransactionRawMessageSignDestination["default"].validateJSON && _TransactionRawMessageSignDestination["default"].validateJSON(instance)) {
227
+ // plain JS object
228
+ // create TransactionRawMessageSignDestination from JS object
229
+ this.actualInstance = _TransactionRawMessageSignDestination["default"].constructFromObject(instance);
230
+ } else {
231
+ if (_TransactionRawMessageSignDestination["default"].constructFromObject(instance)) {
232
+ if (!!_TransactionRawMessageSignDestination["default"].constructFromObject(instance).toJSON) {
233
+ if (_TransactionRawMessageSignDestination["default"].constructFromObject(instance).toJSON()) {
234
+ this.actualInstance = _TransactionRawMessageSignDestination["default"].constructFromObject(instance);
235
+ }
236
+ } else {
237
+ this.actualInstance = _TransactionRawMessageSignDestination["default"].constructFromObject(instance);
238
+ }
239
+ }
240
+ }
241
+ match++;
242
+ } catch (err) {
243
+ // json data failed to deserialize into TransactionRawMessageSignDestination
244
+ errorMessages.push("Failed to construct TransactionRawMessageSignDestination: " + err);
245
+ }
217
246
  try {
218
247
  if (instance instanceof _TransactionDepositToAddressDestination["default"]) {
219
248
  this.actualInstance = instance;
@@ -262,11 +291,11 @@ var TransactionDestination = /*#__PURE__*/function () {
262
291
  }
263
292
 
264
293
  // if (match > 1) {
265
- // throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Input: " + JSON.stringify(instance));
294
+ // throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Input: " + JSON.stringify(instance));
266
295
  // } else
267
296
  if (match === 0) {
268
297
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
269
- // throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Details: " +
298
+ // throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Details: " +
270
299
  // errorMessages.join(", "));
271
300
  return;
272
301
  } else {// only 1 match
@@ -285,16 +314,16 @@ var TransactionDestination = /*#__PURE__*/function () {
285
314
  key: "getActualInstance",
286
315
  value:
287
316
  /**
288
- * Gets the actual instance, which can be <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
289
- * @return {(module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} The actual instance.
317
+ * Gets the actual instance, which can be <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
318
+ * @return {(module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} The actual instance.
290
319
  */
291
320
  function getActualInstance() {
292
321
  return this.actualInstance;
293
322
  }
294
323
 
295
324
  /**
296
- * Sets the actual instance, which can be <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
297
- * @param {(module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} obj The actual instance.
325
+ * Sets the actual instance, which can be <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
326
+ * @param {(module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} obj The actual instance.
298
327
  */
299
328
  }, {
300
329
  key: "setActualInstance",
@@ -339,13 +368,13 @@ TransactionDestination.prototype['utxo_outputs'] = undefined;
339
368
  TransactionDestination.prototype['change_address'] = undefined;
340
369
 
341
370
  /**
342
- * Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer.
371
+ * 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.
343
372
  * @member {Boolean} force_internal
344
373
  */
345
374
  TransactionDestination.prototype['force_internal'] = undefined;
346
375
 
347
376
  /**
348
- * Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer.
377
+ * 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.
349
378
  * @member {Boolean} force_external
350
379
  */
351
380
  TransactionDestination.prototype['force_external'] = undefined;
@@ -391,6 +420,11 @@ TransactionDestination.prototype['value'] = undefined;
391
420
  */
392
421
  TransactionDestination.prototype['calldata'] = undefined;
393
422
 
423
+ /**
424
+ * @member {module:model/TransactionEvmCalldataInfo} calldata_info
425
+ */
426
+ TransactionDestination.prototype['calldata_info'] = undefined;
427
+
394
428
  /**
395
429
  * The raw data of the message to be signed, encoded in Base64 format.
396
430
  * @member {String} message
@@ -403,6 +437,12 @@ TransactionDestination.prototype['message'] = undefined;
403
437
  */
404
438
  TransactionDestination.prototype['structured_data'] = undefined;
405
439
 
440
+ /**
441
+ * Message hash to be signed, in hexadecimal format.
442
+ * @member {String} msg_hash
443
+ */
444
+ TransactionDestination.prototype['msg_hash'] = undefined;
445
+
406
446
  /**
407
447
  * @member {module:model/WalletType} wallet_type
408
448
  */
@@ -418,5 +458,5 @@ TransactionDestination.prototype['wallet_subtype'] = undefined;
418
458
  * @member {String} memo
419
459
  */
420
460
  TransactionDestination.prototype['memo'] = undefined;
421
- TransactionDestination.OneOf = ["TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination"];
461
+ TransactionDestination.OneOf = ["TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionRawMessageSignDestination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination"];
422
462
  var _default = exports["default"] = TransactionDestination;
@@ -55,6 +55,11 @@ var TransactionDestinationType = exports["default"] = /*#__PURE__*/function () {
55
55
  * @const
56
56
  */
57
57
  _defineProperty(this, "EVM_EIP_712_Signature", "EVM_EIP_712_Signature");
58
+ /**
59
+ * value: "Raw_Message_Signature"
60
+ * @const
61
+ */
62
+ _defineProperty(this, "Raw_Message_Signature", "Raw_Message_Signature");
58
63
  /**
59
64
  * value: "DepositToAddress"
60
65
  * @const
@@ -466,7 +466,7 @@ TransactionDetail.prototype['category'] = undefined;
466
466
  TransactionDetail.prototype['description'] = undefined;
467
467
 
468
468
  /**
469
- * Whether the transaction is a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction is a Loop transfer. - `false`: The transaction is not a Loop transfer.
469
+ * Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
470
470
  * @member {Boolean} is_loop
471
471
  */
472
472
  TransactionDetail.prototype['is_loop'] = undefined;
@@ -604,7 +604,7 @@ _Transaction["default"].prototype['category'] = undefined;
604
604
  */
605
605
  _Transaction["default"].prototype['description'] = undefined;
606
606
  /**
607
- * Whether the transaction is a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction is a Loop transfer. - `false`: The transaction is not a Loop transfer.
607
+ * Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
608
608
  * @member {Boolean} is_loop
609
609
  */
610
610
  _Transaction["default"].prototype['is_loop'] = undefined;
@@ -558,7 +558,7 @@ TransactionDetails.prototype['category'] = undefined;
558
558
  TransactionDetails.prototype['description'] = undefined;
559
559
 
560
560
  /**
561
- * Whether the transaction is a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction is a Loop transfer. - `false`: The transaction is not a Loop transfer.
561
+ * Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
562
562
  * @member {Boolean} is_loop
563
563
  */
564
564
  TransactionDetails.prototype['is_loop'] = undefined;
@@ -741,7 +741,7 @@ _Transaction["default"].prototype['category'] = undefined;
741
741
  */
742
742
  _Transaction["default"].prototype['description'] = undefined;
743
743
  /**
744
- * Whether the transaction is a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction is a Loop transfer. - `false`: The transaction is not a Loop transfer.
744
+ * Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
745
745
  * @member {Boolean} is_loop
746
746
  */
747
747
  _Transaction["default"].prototype['is_loop'] = undefined;