@cobo/cobo-waas2 1.23.0 → 1.24.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 (171) hide show
  1. package/README.md +45 -6
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +6 -6
  4. package/dist/api/FeeStationApi.js +47 -4
  5. package/dist/api/PaymentApi.js +194 -47
  6. package/dist/api/SwapsApi.js +374 -0
  7. package/dist/api/TransactionsApi.js +4 -4
  8. package/dist/index.js +224 -14
  9. package/dist/model/AddressInfo.js +13 -0
  10. package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
  11. package/dist/model/BridgingFee.js +136 -0
  12. package/dist/model/CommissionFee.js +110 -0
  13. package/dist/model/ContractCallDestination.js +48 -8
  14. package/dist/model/ContractCallDestinationType.js +5 -0
  15. package/dist/model/CreateMerchantRequest.js +13 -6
  16. package/dist/model/CreatePaymentOrderRequest.js +14 -1
  17. package/dist/model/CreateSettlement.js +2 -2
  18. package/dist/model/CreateSettlementRequestRequest.js +39 -0
  19. package/dist/model/CreateSwapActivityRequest.js +193 -0
  20. package/dist/model/CustodialTransferDestination.js +1 -1
  21. package/dist/model/EstimateContractCallFeeParams.js +1 -1
  22. package/dist/model/EstimateFeeParams.js +1 -1
  23. package/dist/model/EstimateTransferFeeParams.js +1 -1
  24. package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
  25. package/dist/model/EstimatedEvmLegacyFee.js +1 -1
  26. package/dist/model/EstimatedFILFee.js +1 -1
  27. package/dist/model/EstimatedFixedFee.js +1 -1
  28. package/dist/model/EstimatedSOLFee.js +1 -1
  29. package/dist/model/EstimatedUtxoFee.js +1 -1
  30. package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
  31. package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
  32. package/dist/model/FeeStationGasStationType.js +61 -0
  33. package/dist/model/ListSwapActivities200Response.js +123 -0
  34. package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
  35. package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
  36. package/dist/model/Merchant.js +9 -0
  37. package/dist/model/MerchantBalance.js +3 -3
  38. package/dist/model/MessageSignDestination.js +8 -70
  39. package/dist/model/OtcFee.js +123 -0
  40. package/dist/model/PaymentEstimateFee.js +125 -0
  41. package/dist/model/PaymentEstimateFee201Response.js +107 -0
  42. package/dist/model/{RawMessageSignDestination.js → PaymentEstimateFeeRequest.js} +51 -37
  43. package/dist/model/PaymentEstimatedFee.js +173 -0
  44. package/dist/model/PaymentFeeType.js +71 -0
  45. package/dist/model/PaymentRefundEventData.js +22 -2
  46. package/dist/model/PaymentSettlementEvent.js +62 -6
  47. package/dist/model/PspBalance.js +3 -3
  48. package/dist/model/Refund.js +17 -1
  49. package/dist/model/SettleRequestStatus.js +5 -0
  50. package/dist/model/Settlement.js +45 -3
  51. package/dist/model/SettlementDetail.js +33 -1
  52. package/dist/model/SettlementInfo.js +7 -7
  53. package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
  54. package/dist/model/SolContractCallDestination.js +30 -0
  55. package/dist/model/StellarContractCallContractParam.js +164 -0
  56. package/dist/model/StellarContractCallContractType.js +56 -0
  57. package/dist/model/StellarContractCallDestination.js +125 -0
  58. package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
  59. package/dist/model/StellarContractCallTrustLineParam.js +133 -0
  60. package/dist/model/SupportedToken.js +9 -0
  61. package/dist/model/SwapActivity.js +9 -9
  62. package/dist/model/SwapActivityApprovers.js +1 -1
  63. package/dist/model/SwapActivityDetail.js +34 -18
  64. package/dist/model/SwapActivitySigners.js +2 -2
  65. package/dist/model/SwapActivityTimeline.js +5 -5
  66. package/dist/model/SwapEstimateFee.js +147 -0
  67. package/dist/model/SwapQuote.js +18 -31
  68. package/dist/model/SwapReceivingTransaction.js +133 -0
  69. package/dist/model/SwapToken.js +9 -9
  70. package/dist/model/TransactionCoboCategory.js +5 -0
  71. package/dist/model/TransactionDestination.js +48 -8
  72. package/dist/model/TransactionDestinationType.js +5 -0
  73. package/dist/model/TransactionEvmEip1559Fee.js +1 -1
  74. package/dist/model/TransactionEvmLegacyFee.js +1 -1
  75. package/dist/model/TransactionFILFee.js +1 -1
  76. package/dist/model/TransactionFixedFee.js +1 -1
  77. package/dist/model/TransactionFuelingInfo.js +13 -0
  78. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
  79. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
  80. package/dist/model/TransactionRequestFILFee.js +1 -1
  81. package/dist/model/TransactionRequestSOLFee.js +1 -1
  82. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  83. package/dist/model/TransactionSOLFee.js +1 -1
  84. package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
  85. package/dist/model/TransactionSolContractDestination.js +30 -0
  86. package/dist/model/TransactionStellarContractParam.js +164 -0
  87. package/dist/model/TransactionStellarContractType.js +56 -0
  88. package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
  89. package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
  90. package/dist/model/TransactionStellarTrustLineParam.js +133 -0
  91. package/dist/model/TransactionUtxoFee.js +1 -1
  92. package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
  93. package/dist/model/UpdateTopUpAddress.js +4 -6
  94. package/dist/model/WalletSetup.js +66 -0
  95. package/dist/model/WebhookEventData.js +19 -1
  96. package/docs/AddressBooksApi.md +3 -3
  97. package/docs/AddressInfo.md +1 -0
  98. package/docs/AddressesEventDataAllOfAddresses.md +1 -0
  99. package/docs/BridgingFee.md +11 -0
  100. package/docs/CommissionFee.md +9 -0
  101. package/docs/ContractCallDestination.md +2 -0
  102. package/docs/ContractCallDestinationType.md +2 -0
  103. package/docs/CreateMerchantRequest.md +2 -1
  104. package/docs/CreatePaymentOrderRequest.md +2 -1
  105. package/docs/CreateSettlement.md +2 -2
  106. package/docs/CreateSettlementRequestRequest.md +3 -0
  107. package/docs/CreateSwapActivityRequest.md +15 -0
  108. package/docs/EstimateContractCallFeeParams.md +1 -1
  109. package/docs/EstimateFeeParams.md +1 -1
  110. package/docs/EstimateTransferFeeParams.md +1 -1
  111. package/docs/FeeStationApi.md +53 -0
  112. package/docs/FeeStationCheckFeeStationUsage.md +14 -0
  113. package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
  114. package/docs/FeeStationGasStationType.md +12 -0
  115. package/docs/ListSwapActivities200Response.md +10 -0
  116. package/docs/ListSwapEnabledTokens200Response.md +10 -0
  117. package/docs/ListTopUpPayerAccounts200Response.md +10 -0
  118. package/docs/Merchant.md +1 -0
  119. package/docs/MerchantBalance.md +3 -3
  120. package/docs/MessageSignDestination.md +0 -1
  121. package/docs/OtcFee.md +10 -0
  122. package/docs/PaymentApi.md +196 -21
  123. package/docs/PaymentEstimateFee.md +10 -0
  124. package/docs/PaymentEstimateFee201Response.md +9 -0
  125. package/docs/PaymentEstimateFeeRequest.md +10 -0
  126. package/docs/PaymentEstimatedFee.md +13 -0
  127. package/docs/PaymentFeeType.md +16 -0
  128. package/docs/PaymentRefundEventData.md +2 -1
  129. package/docs/PaymentSettlementEvent.md +6 -3
  130. package/docs/PspBalance.md +3 -3
  131. package/docs/Refund.md +2 -1
  132. package/docs/SettleRequestStatus.md +2 -0
  133. package/docs/Settlement.md +6 -3
  134. package/docs/SettlementDetail.md +3 -1
  135. package/docs/SettlementInfo.md +6 -6
  136. package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
  137. package/docs/SolContractCallDestination.md +1 -0
  138. package/docs/StellarContractCallContractParam.md +11 -0
  139. package/docs/StellarContractCallContractType.md +10 -0
  140. package/docs/StellarContractCallDestination.md +10 -0
  141. package/docs/StellarContractCallTrustLineOperationType.md +10 -0
  142. package/docs/StellarContractCallTrustLineParam.md +11 -0
  143. package/docs/SupportedToken.md +1 -0
  144. package/docs/SwapActivity.md +9 -9
  145. package/docs/SwapActivityDetail.md +10 -9
  146. package/docs/SwapActivitySigners.md +1 -1
  147. package/docs/SwapActivityTimeline.md +3 -3
  148. package/docs/SwapEstimateFee.md +12 -0
  149. package/docs/SwapQuote.md +10 -11
  150. package/docs/SwapReceivingTransaction.md +11 -0
  151. package/docs/SwapToken.md +6 -6
  152. package/docs/SwapsApi.md +356 -0
  153. package/docs/TransactionCoboCategory.md +2 -0
  154. package/docs/TransactionDestination.md +2 -0
  155. package/docs/TransactionDestinationType.md +2 -0
  156. package/docs/TransactionFuelingInfo.md +1 -0
  157. package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
  158. package/docs/TransactionSolContractDestination.md +1 -0
  159. package/docs/TransactionStellarContractParam.md +11 -0
  160. package/docs/TransactionStellarContractType.md +10 -0
  161. package/docs/TransactionStellarDestination.md +10 -0
  162. package/docs/TransactionStellarTrustLineOperationType.md +10 -0
  163. package/docs/TransactionStellarTrustLineParam.md +11 -0
  164. package/docs/TransactionsApi.md +2 -2
  165. package/docs/UpdateBankAccountByIdRequest.md +9 -0
  166. package/docs/UpdateTopUpAddress.md +1 -1
  167. package/docs/WalletSetup.md +14 -0
  168. package/docs/WebhookEventData.md +4 -1
  169. package/package.json +1 -1
  170. package/docs/BTCEIP191MessageSignDestination.md +0 -10
  171. package/docs/RawMessageSignDestination.md +0 -10
@@ -33,8 +33,8 @@ var SwapActivityTimeline = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>SwapActivityTimeline</code>.
34
34
  * The timeline of the swap activity.
35
35
  * @alias module:model/SwapActivityTimeline
36
- * @param action {String} The action of the swap activity. Possible values include: - `Submitted`: The swap request is submitted. - `Pending Authorization`: The swap request is pending authorization. - `Bridge {Token}`: The token is being bridged to the target chain. - `Swap {Token}`: The token is being swapped on the target chain. - `Cobo Confirmation`: The swap result is waiting for Cobo confirmation.
37
- * @param status {String} The status of the action. Possible values include: - `Success`: The action is successfully completed. - `Processing`: The action is being processed. - `Failed`: The action has failed.
36
+ * @param action {String} The action in the swap activity. Possible values include: - `Submitted`: The swap request has been submitted. - `Pending Authorization`: The swap request is pending authorization. - `Bridge {Token}`: The token is being bridged to the destination chain. - `Swap {Token}`: The token is being exchanged to the destination token. - `Cobo Confirmation`: The swap result is pending Cobo's final confirmation.
37
+ * @param status {String} The status of the action. Possible values include: - `Success`: The action completed successfully. - `Processing`: The action is being processed. - `Failed`: The action failed.
38
38
  */
39
39
  function SwapActivityTimeline(action, status) {
40
40
  _classCallCheck(this, SwapActivityTimeline);
@@ -116,19 +116,19 @@ var SwapActivityTimeline = /*#__PURE__*/function () {
116
116
  SwapActivityTimeline.RequiredProperties = ["action", "status"];
117
117
 
118
118
  /**
119
- * The action of the swap activity. Possible values include: - `Submitted`: The swap request is submitted. - `Pending Authorization`: The swap request is pending authorization. - `Bridge {Token}`: The token is being bridged to the target chain. - `Swap {Token}`: The token is being swapped on the target chain. - `Cobo Confirmation`: The swap result is waiting for Cobo confirmation.
119
+ * The action in the swap activity. Possible values include: - `Submitted`: The swap request has been submitted. - `Pending Authorization`: The swap request is pending authorization. - `Bridge {Token}`: The token is being bridged to the destination chain. - `Swap {Token}`: The token is being exchanged to the destination token. - `Cobo Confirmation`: The swap result is pending Cobo's final confirmation.
120
120
  * @member {String} action
121
121
  */
122
122
  SwapActivityTimeline.prototype['action'] = undefined;
123
123
 
124
124
  /**
125
- * The status of the action. Possible values include: - `Success`: The action is successfully completed. - `Processing`: The action is being processed. - `Failed`: The action has failed.
125
+ * The status of the action. Possible values include: - `Success`: The action completed successfully. - `Processing`: The action is being processed. - `Failed`: The action failed.
126
126
  * @member {String} status
127
127
  */
128
128
  SwapActivityTimeline.prototype['status'] = undefined;
129
129
 
130
130
  /**
131
- * The time when the action took place, in Unix timestamp format, measured in milliseconds.
131
+ * The time when the action occurred, in Unix timestamp format, measured in milliseconds.
132
132
  * @member {Number} timestamp
133
133
  */
134
134
  SwapActivityTimeline.prototype['timestamp'] = undefined;
@@ -0,0 +1,147 @@
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 _FeeType = _interopRequireDefault(require("./FeeType"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The SwapEstimateFee model module.
30
+ * @module model/SwapEstimateFee
31
+ */
32
+ var SwapEstimateFee = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>SwapEstimateFee</code>.
35
+ * @alias module:model/SwapEstimateFee
36
+ * @param wallet_id {String} The ID of the wallet to pay.
37
+ * @param quote_id {String} The ID of the swap quote.
38
+ */
39
+ function SwapEstimateFee(wallet_id, quote_id) {
40
+ _classCallCheck(this, SwapEstimateFee);
41
+ SwapEstimateFee.initialize(this, wallet_id, quote_id);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(SwapEstimateFee, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, wallet_id, quote_id) {
52
+ obj['wallet_id'] = wallet_id;
53
+ obj['quote_id'] = quote_id;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>SwapEstimateFee</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
59
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
60
+ * @param {module:model/SwapEstimateFee} obj Optional instance to populate.
61
+ * @return {module:model/SwapEstimateFee} The populated <code>SwapEstimateFee</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new SwapEstimateFee();
68
+ if (data.hasOwnProperty('wallet_id')) {
69
+ obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
70
+ }
71
+ if (data.hasOwnProperty('address')) {
72
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('quote_id')) {
75
+ obj['quote_id'] = _ApiClient["default"].convertToType(data['quote_id'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('fee_type')) {
78
+ obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
79
+ }
80
+ }
81
+ return obj;
82
+ }
83
+
84
+ /**
85
+ * Validates the JSON data with respect to <code>SwapEstimateFee</code>.
86
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
87
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SwapEstimateFee</code>.
88
+ */
89
+ }, {
90
+ key: "validateJSON",
91
+ value: function validateJSON(data) {
92
+ // check to make sure all required properties are present in the JSON string
93
+ var _iterator = _createForOfIteratorHelper(SwapEstimateFee.RequiredProperties),
94
+ _step;
95
+ try {
96
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
97
+ var property = _step.value;
98
+ if (!data.hasOwnProperty(property)) {
99
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
100
+ }
101
+ }
102
+ // ensure the json data is a string
103
+ } catch (err) {
104
+ _iterator.e(err);
105
+ } finally {
106
+ _iterator.f();
107
+ }
108
+ if (data['wallet_id'] && !(typeof data['wallet_id'] === 'string' || data['wallet_id'] instanceof String)) {
109
+ throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
110
+ }
111
+ // ensure the json data is a string
112
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
113
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['quote_id'] && !(typeof data['quote_id'] === 'string' || data['quote_id'] instanceof String)) {
117
+ throw new Error("Expected the field `quote_id` to be a primitive type in the JSON string but got " + data['quote_id']);
118
+ }
119
+ return true;
120
+ }
121
+ }]);
122
+ }();
123
+ SwapEstimateFee.RequiredProperties = ["wallet_id", "quote_id"];
124
+
125
+ /**
126
+ * The ID of the wallet to pay.
127
+ * @member {String} wallet_id
128
+ */
129
+ SwapEstimateFee.prototype['wallet_id'] = undefined;
130
+
131
+ /**
132
+ * The wallet address. This property is required when the wallet to pay is not a Custodial Wallet (Asset Wallet).
133
+ * @member {String} address
134
+ */
135
+ SwapEstimateFee.prototype['address'] = undefined;
136
+
137
+ /**
138
+ * The ID of the swap quote.
139
+ * @member {String} quote_id
140
+ */
141
+ SwapEstimateFee.prototype['quote_id'] = undefined;
142
+
143
+ /**
144
+ * @member {module:model/FeeType} fee_type
145
+ */
146
+ SwapEstimateFee.prototype['fee_type'] = undefined;
147
+ var _default = exports["default"] = SwapEstimateFee;
@@ -32,14 +32,14 @@ var SwapQuote = /*#__PURE__*/function () {
32
32
  /**
33
33
  * Constructs a new <code>SwapQuote</code>.
34
34
  * @alias module:model/SwapQuote
35
- * @param quote_id {String} The unique id of quote.
36
- * @param pay_token_id {String} The token ID to pay.
37
- * @param pay_amount {String} The amount of tokens to pay.
38
- * @param receive_token_id {String} The token ID to receive.
39
- * @param receive_amount {String} The amount of tokens to receive.
40
- * @param fee_token_id {String} The token ID for the service fee.
41
- * @param fee_amount {String} The amount of tokens for the service fee.
42
- * @param quote_expired_timestamp {Number} The time when the quote will expire, in Unix timestamp format, measured in milliseconds.
35
+ * @param quote_id {String} The unique identifier of the swap quote.
36
+ * @param pay_token_id {String} The ID of the token to pay.
37
+ * @param pay_amount {String} The amount of the token to pay.
38
+ * @param receive_token_id {String} The ID of the token to receive.
39
+ * @param receive_amount {String} The amount of the token to receive.
40
+ * @param fee_token_id {String} The ID of the token for the service fee.
41
+ * @param fee_amount {String} The amount of the token for the service fee.
42
+ * @param quote_expired_timestamp {Number} The time when the swap quote expires, in Unix timestamp format, measured in milliseconds.
43
43
  */
44
44
  function SwapQuote(quote_id, pay_token_id, pay_amount, receive_token_id, receive_amount, fee_token_id, fee_amount, quote_expired_timestamp) {
45
45
  _classCallCheck(this, SwapQuote);
@@ -97,9 +97,6 @@ var SwapQuote = /*#__PURE__*/function () {
97
97
  if (data.hasOwnProperty('fee_amount')) {
98
98
  obj['fee_amount'] = _ApiClient["default"].convertToType(data['fee_amount'], 'String');
99
99
  }
100
- if (data.hasOwnProperty('estimated_network_fee_amount')) {
101
- obj['estimated_network_fee_amount'] = _ApiClient["default"].convertToType(data['estimated_network_fee_amount'], 'String');
102
- }
103
100
  if (data.hasOwnProperty('min_receive_amount')) {
104
101
  obj['min_receive_amount'] = _ApiClient["default"].convertToType(data['min_receive_amount'], 'String');
105
102
  }
@@ -165,10 +162,6 @@ var SwapQuote = /*#__PURE__*/function () {
165
162
  throw new Error("Expected the field `fee_amount` to be a primitive type in the JSON string but got " + data['fee_amount']);
166
163
  }
167
164
  // ensure the json data is a string
168
- if (data['estimated_network_fee_amount'] && !(typeof data['estimated_network_fee_amount'] === 'string' || data['estimated_network_fee_amount'] instanceof String)) {
169
- throw new Error("Expected the field `estimated_network_fee_amount` to be a primitive type in the JSON string but got " + data['estimated_network_fee_amount']);
170
- }
171
- // ensure the json data is a string
172
165
  if (data['min_receive_amount'] && !(typeof data['min_receive_amount'] === 'string' || data['min_receive_amount'] instanceof String)) {
173
166
  throw new Error("Expected the field `min_receive_amount` to be a primitive type in the JSON string but got " + data['min_receive_amount']);
174
167
  }
@@ -183,67 +176,61 @@ var SwapQuote = /*#__PURE__*/function () {
183
176
  SwapQuote.RequiredProperties = ["quote_id", "pay_token_id", "pay_amount", "receive_token_id", "receive_amount", "fee_token_id", "fee_amount", "quote_expired_timestamp"];
184
177
 
185
178
  /**
186
- * The unique id of quote.
179
+ * The unique identifier of the swap quote.
187
180
  * @member {String} quote_id
188
181
  */
189
182
  SwapQuote.prototype['quote_id'] = undefined;
190
183
 
191
184
  /**
192
- * The token ID to pay.
185
+ * The ID of the token to pay.
193
186
  * @member {String} pay_token_id
194
187
  */
195
188
  SwapQuote.prototype['pay_token_id'] = undefined;
196
189
 
197
190
  /**
198
- * The amount of tokens to pay.
191
+ * The amount of the token to pay.
199
192
  * @member {String} pay_amount
200
193
  */
201
194
  SwapQuote.prototype['pay_amount'] = undefined;
202
195
 
203
196
  /**
204
- * The token ID to receive.
197
+ * The ID of the token to receive.
205
198
  * @member {String} receive_token_id
206
199
  */
207
200
  SwapQuote.prototype['receive_token_id'] = undefined;
208
201
 
209
202
  /**
210
- * The amount of tokens to receive.
203
+ * The amount of the token to receive.
211
204
  * @member {String} receive_amount
212
205
  */
213
206
  SwapQuote.prototype['receive_amount'] = undefined;
214
207
 
215
208
  /**
216
- * The token ID for the service fee.
209
+ * The ID of the token for the service fee.
217
210
  * @member {String} fee_token_id
218
211
  */
219
212
  SwapQuote.prototype['fee_token_id'] = undefined;
220
213
 
221
214
  /**
222
- * The amount of tokens for the service fee.
215
+ * The amount of the token for the service fee.
223
216
  * @member {String} fee_amount
224
217
  */
225
218
  SwapQuote.prototype['fee_amount'] = undefined;
226
219
 
227
220
  /**
228
- * The estimated amount of tokens for the network fee.
229
- * @member {String} estimated_network_fee_amount
230
- */
231
- SwapQuote.prototype['estimated_network_fee_amount'] = undefined;
232
-
233
- /**
234
- * The minimum amount of tokens to receive if the pay amount is specified.
221
+ * The minimum amount of the token to receive if `pay_amount` is specified.
235
222
  * @member {String} min_receive_amount
236
223
  */
237
224
  SwapQuote.prototype['min_receive_amount'] = undefined;
238
225
 
239
226
  /**
240
- * The maximum amount of tokens to pay if the receive amount is specified.
227
+ * The maximum amount of the token to pay if `receive_amount` is specified.
241
228
  * @member {String} max_pay_amount
242
229
  */
243
230
  SwapQuote.prototype['max_pay_amount'] = undefined;
244
231
 
245
232
  /**
246
- * The time when the quote will expire, in Unix timestamp format, measured in milliseconds.
233
+ * The time when the swap quote expires, in Unix timestamp format, measured in milliseconds.
247
234
  * @member {Number} quote_expired_timestamp
248
235
  */
249
236
  SwapQuote.prototype['quote_expired_timestamp'] = undefined;
@@ -0,0 +1,133 @@
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 _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; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ 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); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); } /**
18
+ * Cobo Wallet as a Service 2.0
19
+ *
20
+ * Contact: help@cobo.com
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The SwapReceivingTransaction model module.
29
+ * @module model/SwapReceivingTransaction
30
+ */
31
+ var SwapReceivingTransaction = /*#__PURE__*/function () {
32
+ /**
33
+ * Constructs a new <code>SwapReceivingTransaction</code>.
34
+ * The transaction that delivers the swapped or bridged assets to the destination address.
35
+ * @alias module:model/SwapReceivingTransaction
36
+ * @param chain_id {String} The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
37
+ */
38
+ function SwapReceivingTransaction(chain_id) {
39
+ _classCallCheck(this, SwapReceivingTransaction);
40
+ SwapReceivingTransaction.initialize(this, chain_id);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(SwapReceivingTransaction, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj, chain_id) {
51
+ obj['chain_id'] = chain_id;
52
+ }
53
+
54
+ /**
55
+ * Constructs a <code>SwapReceivingTransaction</code> from a plain JavaScript object, optionally creating a new instance.
56
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
57
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
58
+ * @param {module:model/SwapReceivingTransaction} obj Optional instance to populate.
59
+ * @return {module:model/SwapReceivingTransaction} The populated <code>SwapReceivingTransaction</code> instance.
60
+ */
61
+ }, {
62
+ key: "constructFromObject",
63
+ value: function constructFromObject(data, obj) {
64
+ if (data) {
65
+ obj = obj || new SwapReceivingTransaction();
66
+ if (data.hasOwnProperty('chain_id')) {
67
+ obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
68
+ }
69
+ if (data.hasOwnProperty('transaction_hash')) {
70
+ obj['transaction_hash'] = _ApiClient["default"].convertToType(data['transaction_hash'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('is_loop')) {
73
+ obj['is_loop'] = _ApiClient["default"].convertToType(data['is_loop'], 'Boolean');
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+
79
+ /**
80
+ * Validates the JSON data with respect to <code>SwapReceivingTransaction</code>.
81
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
82
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SwapReceivingTransaction</code>.
83
+ */
84
+ }, {
85
+ key: "validateJSON",
86
+ value: function validateJSON(data) {
87
+ // check to make sure all required properties are present in the JSON string
88
+ var _iterator = _createForOfIteratorHelper(SwapReceivingTransaction.RequiredProperties),
89
+ _step;
90
+ try {
91
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
92
+ var property = _step.value;
93
+ if (!data.hasOwnProperty(property)) {
94
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
95
+ }
96
+ }
97
+ // ensure the json data is a string
98
+ } catch (err) {
99
+ _iterator.e(err);
100
+ } finally {
101
+ _iterator.f();
102
+ }
103
+ if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
104
+ throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
105
+ }
106
+ // ensure the json data is a string
107
+ if (data['transaction_hash'] && !(typeof data['transaction_hash'] === 'string' || data['transaction_hash'] instanceof String)) {
108
+ throw new Error("Expected the field `transaction_hash` to be a primitive type in the JSON string but got " + data['transaction_hash']);
109
+ }
110
+ return true;
111
+ }
112
+ }]);
113
+ }();
114
+ SwapReceivingTransaction.RequiredProperties = ["chain_id"];
115
+
116
+ /**
117
+ * The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
118
+ * @member {String} chain_id
119
+ */
120
+ SwapReceivingTransaction.prototype['chain_id'] = undefined;
121
+
122
+ /**
123
+ * The transaction hash.
124
+ * @member {String} transaction_hash
125
+ */
126
+ SwapReceivingTransaction.prototype['transaction_hash'] = undefined;
127
+
128
+ /**
129
+ * 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.
130
+ * @member {Boolean} is_loop
131
+ */
132
+ SwapReceivingTransaction.prototype['is_loop'] = undefined;
133
+ var _default = exports["default"] = SwapReceivingTransaction;
@@ -32,9 +32,9 @@ var SwapToken = /*#__PURE__*/function () {
32
32
  /**
33
33
  * Constructs a new <code>SwapToken</code>.
34
34
  * @alias module:model/SwapToken
35
- * @param token_id {String} The token id.
36
- * @param chain_id {String} The chain id.
37
- * @param asset_id {String} The asset id.
35
+ * @param token_id {String} The token ID.
36
+ * @param chain_id {String} The chain ID, which is the unique identifier of a blockchain.
37
+ * @param asset_id {String} The asset ID.
38
38
  */
39
39
  function SwapToken(token_id, chain_id, asset_id) {
40
40
  _classCallCheck(this, SwapToken);
@@ -142,37 +142,37 @@ var SwapToken = /*#__PURE__*/function () {
142
142
  SwapToken.RequiredProperties = ["token_id", "chain_id", "asset_id"];
143
143
 
144
144
  /**
145
- * The token id.
145
+ * The token ID.
146
146
  * @member {String} token_id
147
147
  */
148
148
  SwapToken.prototype['token_id'] = undefined;
149
149
 
150
150
  /**
151
- * The chain id.
151
+ * The chain ID, which is the unique identifier of a blockchain.
152
152
  * @member {String} chain_id
153
153
  */
154
154
  SwapToken.prototype['chain_id'] = undefined;
155
155
 
156
156
  /**
157
- * The asset id.
157
+ * The asset ID.
158
158
  * @member {String} asset_id
159
159
  */
160
160
  SwapToken.prototype['asset_id'] = undefined;
161
161
 
162
162
  /**
163
- * The token address.
163
+ * The on-chain contract address of the token.
164
164
  * @member {String} token_address
165
165
  */
166
166
  SwapToken.prototype['token_address'] = undefined;
167
167
 
168
168
  /**
169
- * The minimum amount.
169
+ * The minimum amount allowed for a swap.
170
170
  * @member {String} min_amount
171
171
  */
172
172
  SwapToken.prototype['min_amount'] = undefined;
173
173
 
174
174
  /**
175
- * The maximum amount.
175
+ * The maximum amount allowed for a swap.
176
176
  * @member {String} max_amount
177
177
  */
178
178
  SwapToken.prototype['max_amount'] = undefined;
@@ -185,6 +185,11 @@ var TransactionCoboCategory = exports["default"] = /*#__PURE__*/function () {
185
185
  * @const
186
186
  */
187
187
  _defineProperty(this, "ComplianceIsolate", "ComplianceIsolate");
188
+ /**
189
+ * value: "StellarChangeTrust"
190
+ * @const
191
+ */
192
+ _defineProperty(this, "StellarChangeTrust", "StellarChangeTrust");
188
193
  /**
189
194
  * value: "unknown_default_open_api"
190
195
  * @const
@@ -21,8 +21,11 @@ var _TransactionEvmContractDestination = _interopRequireDefault(require("./Trans
21
21
  var _TransactionMessageSignEIP191Destination = _interopRequireDefault(require("./TransactionMessageSignEIP191Destination"));
22
22
  var _TransactionMessageSignEIP712Destination = _interopRequireDefault(require("./TransactionMessageSignEIP712Destination"));
23
23
  var _TransactionRawMessageSignDestination = _interopRequireDefault(require("./TransactionRawMessageSignDestination"));
24
+ var _TransactionSolContractAddressLookupTableAccount = _interopRequireDefault(require("./TransactionSolContractAddressLookupTableAccount"));
24
25
  var _TransactionSolContractDestination = _interopRequireDefault(require("./TransactionSolContractDestination"));
25
26
  var _TransactionSolContractInstruction = _interopRequireDefault(require("./TransactionSolContractInstruction"));
27
+ var _TransactionStellarContractParam = _interopRequireDefault(require("./TransactionStellarContractParam"));
28
+ var _TransactionStellarDestination = _interopRequireDefault(require("./TransactionStellarDestination"));
26
29
  var _TransactionTransferToAddressDestination = _interopRequireDefault(require("./TransactionTransferToAddressDestination"));
27
30
  var _TransactionTransferToAddressDestinationAccountOutput = _interopRequireDefault(require("./TransactionTransferToAddressDestinationAccountOutput"));
28
31
  var _TransactionTransferToAddressDestinationUtxoOutputsInner = _interopRequireDefault(require("./TransactionTransferToAddressDestinationUtxoOutputsInner"));
@@ -55,7 +58,7 @@ var TransactionDestination = /*#__PURE__*/function () {
55
58
  /**
56
59
  * Constructs a new <code>TransactionDestination</code>.
57
60
  * @alias module:model/TransactionDestination
58
- * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} instance The actual instance to initialize TransactionDestination.
61
+ * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} instance The actual instance to initialize TransactionDestination.
59
62
  */
60
63
  function TransactionDestination() {
61
64
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -132,6 +135,10 @@ var TransactionDestination = /*#__PURE__*/function () {
132
135
  this.actualInstance = _TransactionSolContractDestination["default"].constructFromObject(instance);
133
136
  match++;
134
137
  break;
138
+ case "STELLAR_Contract":
139
+ this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
140
+ match++;
141
+ break;
135
142
  default:
136
143
  errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
137
144
  break;
@@ -437,13 +444,36 @@ var TransactionDestination = /*#__PURE__*/function () {
437
444
  // json data failed to deserialize into TransactionCosmosAdr36Destination
438
445
  errorMessages.push("Failed to construct TransactionCosmosAdr36Destination: " + err);
439
446
  }
447
+ try {
448
+ if (instance instanceof _TransactionStellarDestination["default"]) {
449
+ this.actualInstance = instance;
450
+ } else if (!!_TransactionStellarDestination["default"].validateJSON && _TransactionStellarDestination["default"].validateJSON(instance)) {
451
+ // plain JS object
452
+ // create TransactionStellarDestination from JS object
453
+ this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
454
+ } else {
455
+ if (_TransactionStellarDestination["default"].constructFromObject(instance)) {
456
+ if (!!_TransactionStellarDestination["default"].constructFromObject(instance).toJSON) {
457
+ if (_TransactionStellarDestination["default"].constructFromObject(instance).toJSON()) {
458
+ this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
459
+ }
460
+ } else {
461
+ this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
462
+ }
463
+ }
464
+ }
465
+ match++;
466
+ } catch (err) {
467
+ // json data failed to deserialize into TransactionStellarDestination
468
+ errorMessages.push("Failed to construct TransactionStellarDestination: " + err);
469
+ }
440
470
 
441
471
  // if (match > 1) {
442
- // throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Input: " + JSON.stringify(instance));
472
+ // throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Input: " + JSON.stringify(instance));
443
473
  // } else
444
474
  if (match === 0) {
445
475
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
446
- // throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Details: " +
476
+ // throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Details: " +
447
477
  // errorMessages.join(", "));
448
478
  return;
449
479
  } else {// only 1 match
@@ -462,16 +492,16 @@ var TransactionDestination = /*#__PURE__*/function () {
462
492
  key: "getActualInstance",
463
493
  value:
464
494
  /**
465
- * Gets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
466
- * @return {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} The actual instance.
495
+ * Gets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
496
+ * @return {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} The actual instance.
467
497
  */
468
498
  function getActualInstance() {
469
499
  return this.actualInstance;
470
500
  }
471
501
 
472
502
  /**
473
- * Sets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
474
- * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} obj The actual instance.
503
+ * Sets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
504
+ * @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} obj The actual instance.
475
505
  */
476
506
  }, {
477
507
  key: "setActualInstance",
@@ -578,6 +608,11 @@ TransactionDestination.prototype['calldata_info'] = undefined;
578
608
  */
579
609
  TransactionDestination.prototype['instructions'] = undefined;
580
610
 
611
+ /**
612
+ * @member {Array.<module:model/TransactionSolContractAddressLookupTableAccount>} address_lookup_table_accounts
613
+ */
614
+ TransactionDestination.prototype['address_lookup_table_accounts'] = undefined;
615
+
581
616
  /**
582
617
  * @member {Array.<module:model/TransactionCosmosMessage>} cosmos_messages
583
618
  */
@@ -650,5 +685,10 @@ TransactionDestination.prototype['message_bip322'] = undefined;
650
685
  * @member {String} message_cosmos_adr36
651
686
  */
652
687
  TransactionDestination.prototype['message_cosmos_adr36'] = undefined;
653
- TransactionDestination.OneOf = ["TransactionBIP137Destination", "TransactionBIP322Destination", "TransactionCosmosAdr36Destination", "TransactionCosmosContractDestination", "TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionRawMessageSignDestination", "TransactionSolContractDestination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination"];
688
+
689
+ /**
690
+ * @member {module:model/TransactionStellarContractParam} contract_param
691
+ */
692
+ TransactionDestination.prototype['contract_param'] = undefined;
693
+ TransactionDestination.OneOf = ["TransactionBIP137Destination", "TransactionBIP322Destination", "TransactionCosmosAdr36Destination", "TransactionCosmosContractDestination", "TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionRawMessageSignDestination", "TransactionSolContractDestination", "TransactionStellarDestination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination"];
654
694
  var _default = exports["default"] = TransactionDestination;