@cobo/cobo-waas2 1.12.0 → 1.13.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 (159) hide show
  1. package/README.md +54 -18
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/FeeStationApi.js +18 -18
  4. package/dist/api/TransactionsApi.js +2 -2
  5. package/dist/api/WalletsApi.js +8 -8
  6. package/dist/index.js +260 -43
  7. package/dist/model/ActivityExtra.js +0 -23
  8. package/dist/model/AddressEncoding.js +15 -0
  9. package/dist/model/AddressesEventData.js +8 -3
  10. package/dist/model/BTCBIP137MessageSignDestination.js +122 -0
  11. package/dist/model/BTCBIP322MessageSignDestination.js +122 -0
  12. package/dist/model/BabylonStakingActivityDetailExtra.js +0 -39
  13. package/dist/model/{ListSwapActivities200Response.js → BankAccount.js} +51 -51
  14. package/dist/model/ChainsEventData.js +8 -3
  15. package/dist/model/CosmosAdr36MessageSignDestination.js +122 -0
  16. package/dist/model/CosmosContractCallDestination.js +152 -0
  17. package/dist/model/CosmosContractCallMessage.js +126 -0
  18. package/dist/model/CreateSettlement.js +174 -0
  19. package/dist/model/MPCVaultEventData.js +8 -3
  20. package/dist/model/{CreateSwapActivityRequest.js → Merchant.js} +45 -58
  21. package/dist/model/MessageSignDestination.js +111 -9
  22. package/dist/model/MessageSignDestinationType.js +15 -0
  23. package/dist/model/Order.js +306 -0
  24. package/dist/model/OrderStatus.js +76 -0
  25. package/dist/model/PaymentTransaction.js +201 -0
  26. package/dist/model/RefreshAddressBalancesByTokenRequest.js +2 -3
  27. package/dist/model/Refund.js +237 -0
  28. package/dist/model/RefundStatus.js +76 -0
  29. package/dist/model/RefundType.js +61 -0
  30. package/dist/model/SettleRequestStatus.js +76 -0
  31. package/dist/model/SettleStatus.js +76 -0
  32. package/dist/model/Settlement.js +168 -0
  33. package/dist/model/SettlementDetail.js +184 -0
  34. package/dist/model/SettlementInfo.js +175 -0
  35. package/dist/model/SettlementType.js +61 -0
  36. package/dist/model/SwapActivity.js +36 -5
  37. package/dist/model/SwapActivityStatus.js +66 -0
  38. package/dist/model/SwapActivityType.js +61 -0
  39. package/dist/model/SwapQuote.js +21 -34
  40. package/dist/model/{CreateSwapQuoteRequest.js → SwapToken.js} +73 -60
  41. package/dist/model/TSSRequestWebhookEventData.js +8 -3
  42. package/dist/model/TokenListing.js +230 -0
  43. package/dist/model/TokenListingEventData.js +363 -0
  44. package/dist/model/TokenListingRequestSource.js +61 -0
  45. package/dist/model/TokenListingRequestStatus.js +66 -0
  46. package/dist/model/TokensEventData.js +8 -3
  47. package/dist/model/Transaction.js +22 -5
  48. package/dist/model/TransactionBIP137Destination.js +122 -0
  49. package/dist/model/TransactionBIP322Destination.js +122 -0
  50. package/dist/model/TransactionBabylonBusinessInfo.js +138 -0
  51. package/dist/model/TransactionBabylonTxParameters.js +168 -0
  52. package/dist/model/TransactionCoreStakeInfo.js +168 -0
  53. package/dist/model/TransactionCosmosAdr36Destination.js +122 -0
  54. package/dist/model/TransactionCosmosContractDestination.js +152 -0
  55. package/dist/model/{ListEnableTokenPairs200Response.js → TransactionCosmosMessage.js} +54 -51
  56. package/dist/model/TransactionDestination.js +172 -8
  57. package/dist/model/TransactionDestinationType.js +20 -0
  58. package/dist/model/TransactionDetail.js +29 -7
  59. package/dist/model/TransactionDetails.js +29 -7
  60. package/dist/model/TransactionExtra.js +278 -0
  61. package/dist/model/TransactionExtraType.js +66 -0
  62. package/dist/model/TransactionFuelingInfo.js +3 -3
  63. package/dist/model/TransactionMessageSignBTCEIP191Destination.js +122 -0
  64. package/dist/model/TransactionRbfSource.js +37 -9
  65. package/dist/model/TransactionSelectedUtxo.js +2 -2
  66. package/dist/model/TransactionSubStatus.js +45 -0
  67. package/dist/model/TransactionWebhookEventData.js +37 -10
  68. package/dist/model/UpdateCustodialWalletParams.js +6 -4
  69. package/dist/model/UpdateExchangeWalletParams.js +6 -4
  70. package/dist/model/UpdateMpcWalletParams.js +6 -4
  71. package/dist/model/UpdateSmartContractWalletParams.js +6 -4
  72. package/dist/model/WalletInfoEventData.js +8 -3
  73. package/dist/model/WebhookEventData.js +81 -18
  74. package/dist/model/WebhookEventDataType.js +7 -2
  75. package/dist/model/WebhookEventType.js +10 -0
  76. package/docs/ActivityExtra.md +0 -4
  77. package/docs/AddressEncoding.md +6 -0
  78. package/docs/AddressesEventData.md +3 -1
  79. package/docs/BTCBIP137MessageSignDestination.md +10 -0
  80. package/docs/BTCBIP322MessageSignDestination.md +10 -0
  81. package/docs/BabylonStakingActivityDetailExtra.md +0 -4
  82. package/docs/BankAccount.md +10 -0
  83. package/docs/ChainsEventData.md +3 -1
  84. package/docs/CosmosAdr36MessageSignDestination.md +10 -0
  85. package/docs/CosmosContractCallDestination.md +11 -0
  86. package/docs/CosmosContractCallMessage.md +10 -0
  87. package/docs/CreateSettlement.md +14 -0
  88. package/docs/FeeStationApi.md +13 -13
  89. package/docs/MPCVaultEventData.md +3 -1
  90. package/docs/Merchant.md +11 -0
  91. package/docs/MessageSignDestination.md +3 -0
  92. package/docs/MessageSignDestinationType.md +6 -0
  93. package/docs/Order.md +23 -0
  94. package/docs/OrderStatus.md +18 -0
  95. package/docs/PaymentTransaction.md +16 -0
  96. package/docs/RefreshAddressBalancesByTokenRequest.md +1 -1
  97. package/docs/Refund.md +17 -0
  98. package/docs/RefundStatus.md +18 -0
  99. package/docs/RefundType.md +12 -0
  100. package/docs/SettleRequestStatus.md +18 -0
  101. package/docs/SettleStatus.md +18 -0
  102. package/docs/Settlement.md +12 -0
  103. package/docs/SettlementDetail.md +15 -0
  104. package/docs/SettlementInfo.md +14 -0
  105. package/docs/SettlementType.md +12 -0
  106. package/docs/SwapActivity.md +4 -1
  107. package/docs/SwapActivityStatus.md +14 -0
  108. package/docs/SwapActivityType.md +12 -0
  109. package/docs/SwapQuote.md +3 -4
  110. package/docs/SwapToken.md +14 -0
  111. package/docs/TSSRequestWebhookEventData.md +3 -1
  112. package/docs/TokenListing.md +19 -0
  113. package/docs/TokenListingEventData.md +45 -0
  114. package/docs/TokenListingRequestSource.md +12 -0
  115. package/docs/TokenListingRequestStatus.md +14 -0
  116. package/docs/TokensEventData.md +3 -1
  117. package/docs/Transaction.md +4 -3
  118. package/docs/TransactionBIP137Destination.md +10 -0
  119. package/docs/TransactionBIP322Destination.md +10 -0
  120. package/docs/TransactionBabylonBusinessInfo.md +11 -0
  121. package/docs/TransactionBabylonTxParameters.md +15 -0
  122. package/docs/TransactionCoreStakeInfo.md +14 -0
  123. package/docs/TransactionCosmosAdr36Destination.md +10 -0
  124. package/docs/TransactionCosmosContractDestination.md +11 -0
  125. package/docs/TransactionCosmosMessage.md +10 -0
  126. package/docs/TransactionDestination.md +4 -0
  127. package/docs/TransactionDestinationType.md +8 -0
  128. package/docs/TransactionDetail.md +4 -3
  129. package/docs/TransactionDetails.md +4 -3
  130. package/docs/TransactionExtra.md +21 -0
  131. package/docs/TransactionExtraType.md +14 -0
  132. package/docs/TransactionFuelingInfo.md +2 -2
  133. package/docs/TransactionMessageSignBTCEIP191Destination.md +10 -0
  134. package/docs/TransactionRbfSource.md +1 -1
  135. package/docs/TransactionSelectedUtxo.md +2 -2
  136. package/docs/TransactionSubStatus.md +18 -0
  137. package/docs/TransactionWebhookEventData.md +7 -4
  138. package/docs/TransactionsApi.md +1 -1
  139. package/docs/UpdateCustodialWalletParams.md +1 -1
  140. package/docs/UpdateExchangeWalletParams.md +1 -1
  141. package/docs/UpdateMpcWalletParams.md +1 -1
  142. package/docs/UpdateSmartContractWalletParams.md +1 -1
  143. package/docs/UpdateWalletParams.md +1 -1
  144. package/docs/WalletInfoEventData.md +3 -1
  145. package/docs/WalletsApi.md +5 -5
  146. package/docs/WebhookEventData.md +16 -8
  147. package/docs/WebhookEventDataType.md +3 -1
  148. package/docs/WebhookEventType.md +4 -0
  149. package/package.json +1 -1
  150. package/dist/api/SwapsApi.js +0 -360
  151. package/dist/model/CreateSwapQuote201Response.js +0 -264
  152. package/dist/model/SwapTokenPair.js +0 -100
  153. package/docs/CreateSwapActivityRequest.md +0 -12
  154. package/docs/CreateSwapQuote201Response.md +0 -17
  155. package/docs/CreateSwapQuoteRequest.md +0 -13
  156. package/docs/ListEnableTokenPairs200Response.md +0 -10
  157. package/docs/ListSwapActivities200Response.md +0 -10
  158. package/docs/SwapTokenPair.md +0 -10
  159. package/docs/SwapsApi.md +0 -348
@@ -0,0 +1,168 @@
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 _ActivityType = _interopRequireDefault(require("./ActivityType"));
9
+ var _TransactionExtraType = _interopRequireDefault(require("./TransactionExtraType"));
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 _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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The TransactionBabylonTxParameters model module.
31
+ * @module model/TransactionBabylonTxParameters
32
+ */
33
+ var TransactionBabylonTxParameters = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>TransactionBabylonTxParameters</code>.
36
+ * The Babylon transaction parameters.
37
+ * @alias module:model/TransactionBabylonTxParameters
38
+ * @param extra_type {module:model/TransactionExtraType}
39
+ */
40
+ function TransactionBabylonTxParameters(extra_type) {
41
+ _classCallCheck(this, TransactionBabylonTxParameters);
42
+ TransactionBabylonTxParameters.initialize(this, extra_type);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(TransactionBabylonTxParameters, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, extra_type) {
53
+ obj['extra_type'] = extra_type;
54
+ }
55
+
56
+ /**
57
+ * Constructs a <code>TransactionBabylonTxParameters</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/TransactionBabylonTxParameters} obj Optional instance to populate.
61
+ * @return {module:model/TransactionBabylonTxParameters} The populated <code>TransactionBabylonTxParameters</code> instance.
62
+ */
63
+ }, {
64
+ key: "constructFromObject",
65
+ value: function constructFromObject(data, obj) {
66
+ if (data) {
67
+ obj = obj || new TransactionBabylonTxParameters();
68
+ if (data.hasOwnProperty('extra_type')) {
69
+ obj['extra_type'] = _TransactionExtraType["default"].constructFromObject(data['extra_type']);
70
+ }
71
+ if (data.hasOwnProperty('stake_amount')) {
72
+ obj['stake_amount'] = _ApiClient["default"].convertToType(data['stake_amount'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('finality_provider_public_key')) {
75
+ obj['finality_provider_public_key'] = _ApiClient["default"].convertToType(data['finality_provider_public_key'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('stake_block_time')) {
78
+ obj['stake_block_time'] = _ApiClient["default"].convertToType(data['stake_block_time'], 'Number');
79
+ }
80
+ if (data.hasOwnProperty('param_version')) {
81
+ obj['param_version'] = _ApiClient["default"].convertToType(data['param_version'], 'Number');
82
+ }
83
+ if (data.hasOwnProperty('withdraw_from_type')) {
84
+ obj['withdraw_from_type'] = _ActivityType["default"].constructFromObject(data['withdraw_from_type']);
85
+ }
86
+ if (data.hasOwnProperty('slash_from_type')) {
87
+ obj['slash_from_type'] = _ActivityType["default"].constructFromObject(data['slash_from_type']);
88
+ }
89
+ }
90
+ return obj;
91
+ }
92
+
93
+ /**
94
+ * Validates the JSON data with respect to <code>TransactionBabylonTxParameters</code>.
95
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
96
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionBabylonTxParameters</code>.
97
+ */
98
+ }, {
99
+ key: "validateJSON",
100
+ value: function validateJSON(data) {
101
+ // check to make sure all required properties are present in the JSON string
102
+ var _iterator = _createForOfIteratorHelper(TransactionBabylonTxParameters.RequiredProperties),
103
+ _step;
104
+ try {
105
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
106
+ var property = _step.value;
107
+ if (!data.hasOwnProperty(property)) {
108
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
109
+ }
110
+ }
111
+ // ensure the json data is a string
112
+ } catch (err) {
113
+ _iterator.e(err);
114
+ } finally {
115
+ _iterator.f();
116
+ }
117
+ if (data['stake_amount'] && !(typeof data['stake_amount'] === 'string' || data['stake_amount'] instanceof String)) {
118
+ throw new Error("Expected the field `stake_amount` to be a primitive type in the JSON string but got " + data['stake_amount']);
119
+ }
120
+ // ensure the json data is a string
121
+ if (data['finality_provider_public_key'] && !(typeof data['finality_provider_public_key'] === 'string' || data['finality_provider_public_key'] instanceof String)) {
122
+ throw new Error("Expected the field `finality_provider_public_key` to be a primitive type in the JSON string but got " + data['finality_provider_public_key']);
123
+ }
124
+ return true;
125
+ }
126
+ }]);
127
+ }();
128
+ TransactionBabylonTxParameters.RequiredProperties = ["extra_type"];
129
+
130
+ /**
131
+ * @member {module:model/TransactionExtraType} extra_type
132
+ */
133
+ TransactionBabylonTxParameters.prototype['extra_type'] = undefined;
134
+
135
+ /**
136
+ * The origin staking amount.
137
+ * @member {String} stake_amount
138
+ */
139
+ TransactionBabylonTxParameters.prototype['stake_amount'] = undefined;
140
+
141
+ /**
142
+ * The public key of the finality provider.
143
+ * @member {String} finality_provider_public_key
144
+ */
145
+ TransactionBabylonTxParameters.prototype['finality_provider_public_key'] = undefined;
146
+
147
+ /**
148
+ * The number of blocks that need to be processed before the locked tokens are unlocked and become accessible.
149
+ * @member {Number} stake_block_time
150
+ */
151
+ TransactionBabylonTxParameters.prototype['stake_block_time'] = undefined;
152
+
153
+ /**
154
+ * The version of babylon global parameters.
155
+ * @member {Number} param_version
156
+ */
157
+ TransactionBabylonTxParameters.prototype['param_version'] = undefined;
158
+
159
+ /**
160
+ * @member {module:model/ActivityType} withdraw_from_type
161
+ */
162
+ TransactionBabylonTxParameters.prototype['withdraw_from_type'] = undefined;
163
+
164
+ /**
165
+ * @member {module:model/ActivityType} slash_from_type
166
+ */
167
+ TransactionBabylonTxParameters.prototype['slash_from_type'] = undefined;
168
+ var _default = exports["default"] = TransactionBabylonTxParameters;
@@ -0,0 +1,168 @@
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 _TransactionExtraType = _interopRequireDefault(require("./TransactionExtraType"));
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 TransactionCoreStakeInfo model module.
30
+ * @module model/TransactionCoreStakeInfo
31
+ */
32
+ var TransactionCoreStakeInfo = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>TransactionCoreStakeInfo</code>.
35
+ * The core stake information.
36
+ * @alias module:model/TransactionCoreStakeInfo
37
+ * @param extra_type {module:model/TransactionExtraType}
38
+ */
39
+ function TransactionCoreStakeInfo(extra_type) {
40
+ _classCallCheck(this, TransactionCoreStakeInfo);
41
+ TransactionCoreStakeInfo.initialize(this, extra_type);
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(TransactionCoreStakeInfo, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, extra_type) {
52
+ obj['extra_type'] = extra_type;
53
+ }
54
+
55
+ /**
56
+ * Constructs a <code>TransactionCoreStakeInfo</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/TransactionCoreStakeInfo} obj Optional instance to populate.
60
+ * @return {module:model/TransactionCoreStakeInfo} The populated <code>TransactionCoreStakeInfo</code> instance.
61
+ */
62
+ }, {
63
+ key: "constructFromObject",
64
+ value: function constructFromObject(data, obj) {
65
+ if (data) {
66
+ obj = obj || new TransactionCoreStakeInfo();
67
+ if (data.hasOwnProperty('extra_type')) {
68
+ obj['extra_type'] = _TransactionExtraType["default"].constructFromObject(data['extra_type']);
69
+ }
70
+ if (data.hasOwnProperty('stake_amount')) {
71
+ obj['stake_amount'] = _ApiClient["default"].convertToType(data['stake_amount'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('timelock')) {
74
+ obj['timelock'] = _ApiClient["default"].convertToType(data['timelock'], 'Number');
75
+ }
76
+ if (data.hasOwnProperty('change_address')) {
77
+ obj['change_address'] = _ApiClient["default"].convertToType(data['change_address'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('validator_address')) {
80
+ obj['validator_address'] = _ApiClient["default"].convertToType(data['validator_address'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('reward_address')) {
83
+ obj['reward_address'] = _ApiClient["default"].convertToType(data['reward_address'], 'String');
84
+ }
85
+ }
86
+ return obj;
87
+ }
88
+
89
+ /**
90
+ * Validates the JSON data with respect to <code>TransactionCoreStakeInfo</code>.
91
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
92
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionCoreStakeInfo</code>.
93
+ */
94
+ }, {
95
+ key: "validateJSON",
96
+ value: function validateJSON(data) {
97
+ // check to make sure all required properties are present in the JSON string
98
+ var _iterator = _createForOfIteratorHelper(TransactionCoreStakeInfo.RequiredProperties),
99
+ _step;
100
+ try {
101
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
102
+ var property = _step.value;
103
+ if (!data.hasOwnProperty(property)) {
104
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
105
+ }
106
+ }
107
+ // ensure the json data is a string
108
+ } catch (err) {
109
+ _iterator.e(err);
110
+ } finally {
111
+ _iterator.f();
112
+ }
113
+ if (data['stake_amount'] && !(typeof data['stake_amount'] === 'string' || data['stake_amount'] instanceof String)) {
114
+ throw new Error("Expected the field `stake_amount` to be a primitive type in the JSON string but got " + data['stake_amount']);
115
+ }
116
+ // ensure the json data is a string
117
+ if (data['change_address'] && !(typeof data['change_address'] === 'string' || data['change_address'] instanceof String)) {
118
+ throw new Error("Expected the field `change_address` to be a primitive type in the JSON string but got " + data['change_address']);
119
+ }
120
+ // ensure the json data is a string
121
+ if (data['validator_address'] && !(typeof data['validator_address'] === 'string' || data['validator_address'] instanceof String)) {
122
+ throw new Error("Expected the field `validator_address` to be a primitive type in the JSON string but got " + data['validator_address']);
123
+ }
124
+ // ensure the json data is a string
125
+ if (data['reward_address'] && !(typeof data['reward_address'] === 'string' || data['reward_address'] instanceof String)) {
126
+ throw new Error("Expected the field `reward_address` to be a primitive type in the JSON string but got " + data['reward_address']);
127
+ }
128
+ return true;
129
+ }
130
+ }]);
131
+ }();
132
+ TransactionCoreStakeInfo.RequiredProperties = ["extra_type"];
133
+
134
+ /**
135
+ * @member {module:model/TransactionExtraType} extra_type
136
+ */
137
+ TransactionCoreStakeInfo.prototype['extra_type'] = undefined;
138
+
139
+ /**
140
+ * The origin staking amount.
141
+ * @member {String} stake_amount
142
+ */
143
+ TransactionCoreStakeInfo.prototype['stake_amount'] = undefined;
144
+
145
+ /**
146
+ * The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal.
147
+ * @member {Number} timelock
148
+ */
149
+ TransactionCoreStakeInfo.prototype['timelock'] = undefined;
150
+
151
+ /**
152
+ * The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address.
153
+ * @member {String} change_address
154
+ */
155
+ TransactionCoreStakeInfo.prototype['change_address'] = undefined;
156
+
157
+ /**
158
+ * The validator's EVM address.
159
+ * @member {String} validator_address
160
+ */
161
+ TransactionCoreStakeInfo.prototype['validator_address'] = undefined;
162
+
163
+ /**
164
+ * The EVM address to receive staking rewards.
165
+ * @member {String} reward_address
166
+ */
167
+ TransactionCoreStakeInfo.prototype['reward_address'] = undefined;
168
+ var _default = exports["default"] = TransactionCoreStakeInfo;
@@ -0,0 +1,122 @@
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 _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
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 TransactionCosmosAdr36Destination model module.
30
+ * @module model/TransactionCosmosAdr36Destination
31
+ */
32
+ var TransactionCosmosAdr36Destination = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>TransactionCosmosAdr36Destination</code>.
35
+ * The information about the destination &#x60;Cosmos_ADR36&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
36
+ * @alias module:model/TransactionCosmosAdr36Destination
37
+ * @param destination_type {module:model/TransactionDestinationType}
38
+ * @param message_cosmos_adr36 {String} Message to be signed, in hexadecimal format.
39
+ */
40
+ function TransactionCosmosAdr36Destination(destination_type, message_cosmos_adr36) {
41
+ _classCallCheck(this, TransactionCosmosAdr36Destination);
42
+ TransactionCosmosAdr36Destination.initialize(this, destination_type, message_cosmos_adr36);
43
+ }
44
+
45
+ /**
46
+ * Initializes the fields of this object.
47
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
+ * Only for internal use.
49
+ */
50
+ return _createClass(TransactionCosmosAdr36Destination, null, [{
51
+ key: "initialize",
52
+ value: function initialize(obj, destination_type, message_cosmos_adr36) {
53
+ obj['destination_type'] = destination_type;
54
+ obj['message_cosmos_adr36'] = message_cosmos_adr36;
55
+ }
56
+
57
+ /**
58
+ * Constructs a <code>TransactionCosmosAdr36Destination</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @param {module:model/TransactionCosmosAdr36Destination} obj Optional instance to populate.
62
+ * @return {module:model/TransactionCosmosAdr36Destination} The populated <code>TransactionCosmosAdr36Destination</code> instance.
63
+ */
64
+ }, {
65
+ key: "constructFromObject",
66
+ value: function constructFromObject(data, obj) {
67
+ if (data) {
68
+ obj = obj || new TransactionCosmosAdr36Destination();
69
+ if (data.hasOwnProperty('destination_type')) {
70
+ obj['destination_type'] = _TransactionDestinationType["default"].constructFromObject(data['destination_type']);
71
+ }
72
+ if (data.hasOwnProperty('message_cosmos_adr36')) {
73
+ obj['message_cosmos_adr36'] = _ApiClient["default"].convertToType(data['message_cosmos_adr36'], 'String');
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+
79
+ /**
80
+ * Validates the JSON data with respect to <code>TransactionCosmosAdr36Destination</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>TransactionCosmosAdr36Destination</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(TransactionCosmosAdr36Destination.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['message_cosmos_adr36'] && !(typeof data['message_cosmos_adr36'] === 'string' || data['message_cosmos_adr36'] instanceof String)) {
104
+ throw new Error("Expected the field `message_cosmos_adr36` to be a primitive type in the JSON string but got " + data['message_cosmos_adr36']);
105
+ }
106
+ return true;
107
+ }
108
+ }]);
109
+ }();
110
+ TransactionCosmosAdr36Destination.RequiredProperties = ["destination_type", "message_cosmos_adr36"];
111
+
112
+ /**
113
+ * @member {module:model/TransactionDestinationType} destination_type
114
+ */
115
+ TransactionCosmosAdr36Destination.prototype['destination_type'] = undefined;
116
+
117
+ /**
118
+ * Message to be signed, in hexadecimal format.
119
+ * @member {String} message_cosmos_adr36
120
+ */
121
+ TransactionCosmosAdr36Destination.prototype['message_cosmos_adr36'] = undefined;
122
+ var _default = exports["default"] = TransactionCosmosAdr36Destination;
@@ -0,0 +1,152 @@
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 _TransactionCosmosMessage = _interopRequireDefault(require("./TransactionCosmosMessage"));
9
+ var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
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 _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; } } }; }
13
+ 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; } }
14
+ 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; }
15
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
+ 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); } }
17
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ 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); } /**
20
+ * Cobo Wallet as a Service 2.0
21
+ *
22
+ * Contact: help@cobo.com
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The TransactionCosmosContractDestination model module.
31
+ * @module model/TransactionCosmosContractDestination
32
+ */
33
+ var TransactionCosmosContractDestination = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>TransactionCosmosContractDestination</code>.
36
+ * Information about the transaction destination type &#x60;COSMOS_Contract&#x60;. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
37
+ * @alias module:model/TransactionCosmosContractDestination
38
+ * @param destination_type {module:model/TransactionDestinationType}
39
+ * @param cosmos_messages {Array.<module:model/TransactionCosmosMessage>}
40
+ */
41
+ function TransactionCosmosContractDestination(destination_type, cosmos_messages) {
42
+ _classCallCheck(this, TransactionCosmosContractDestination);
43
+ TransactionCosmosContractDestination.initialize(this, destination_type, cosmos_messages);
44
+ }
45
+
46
+ /**
47
+ * Initializes the fields of this object.
48
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
+ * Only for internal use.
50
+ */
51
+ return _createClass(TransactionCosmosContractDestination, null, [{
52
+ key: "initialize",
53
+ value: function initialize(obj, destination_type, cosmos_messages) {
54
+ obj['destination_type'] = destination_type;
55
+ obj['cosmos_messages'] = cosmos_messages;
56
+ }
57
+
58
+ /**
59
+ * Constructs a <code>TransactionCosmosContractDestination</code> from a plain JavaScript object, optionally creating a new instance.
60
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @param {module:model/TransactionCosmosContractDestination} obj Optional instance to populate.
63
+ * @return {module:model/TransactionCosmosContractDestination} The populated <code>TransactionCosmosContractDestination</code> instance.
64
+ */
65
+ }, {
66
+ key: "constructFromObject",
67
+ value: function constructFromObject(data, obj) {
68
+ if (data) {
69
+ obj = obj || new TransactionCosmosContractDestination();
70
+ if (data.hasOwnProperty('destination_type')) {
71
+ obj['destination_type'] = _TransactionDestinationType["default"].constructFromObject(data['destination_type']);
72
+ }
73
+ if (data.hasOwnProperty('cosmos_messages')) {
74
+ obj['cosmos_messages'] = _ApiClient["default"].convertToType(data['cosmos_messages'], [_TransactionCosmosMessage["default"]]);
75
+ }
76
+ if (data.hasOwnProperty('value')) {
77
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
78
+ }
79
+ }
80
+ return obj;
81
+ }
82
+
83
+ /**
84
+ * Validates the JSON data with respect to <code>TransactionCosmosContractDestination</code>.
85
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
86
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionCosmosContractDestination</code>.
87
+ */
88
+ }, {
89
+ key: "validateJSON",
90
+ value: function validateJSON(data) {
91
+ // check to make sure all required properties are present in the JSON string
92
+ var _iterator = _createForOfIteratorHelper(TransactionCosmosContractDestination.RequiredProperties),
93
+ _step;
94
+ try {
95
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
96
+ var property = _step.value;
97
+ if (!data.hasOwnProperty(property)) {
98
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
99
+ }
100
+ }
101
+ } catch (err) {
102
+ _iterator.e(err);
103
+ } finally {
104
+ _iterator.f();
105
+ }
106
+ if (data['cosmos_messages']) {
107
+ // data not null
108
+ // ensure the json data is an array
109
+ if (!Array.isArray(data['cosmos_messages'])) {
110
+ throw new Error("Expected the field `cosmos_messages` to be an array in the JSON data but got " + data['cosmos_messages']);
111
+ }
112
+ // validate the optional field `cosmos_messages` (array)
113
+ var _iterator2 = _createForOfIteratorHelper(data['cosmos_messages']),
114
+ _step2;
115
+ try {
116
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
117
+ var item = _step2.value;
118
+ _TransactionCosmosMessage["default"].validateJSON(item);
119
+ }
120
+ } catch (err) {
121
+ _iterator2.e(err);
122
+ } finally {
123
+ _iterator2.f();
124
+ }
125
+ ;
126
+ }
127
+ // ensure the json data is a string
128
+ if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
129
+ throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
130
+ }
131
+ return true;
132
+ }
133
+ }]);
134
+ }();
135
+ TransactionCosmosContractDestination.RequiredProperties = ["destination_type", "cosmos_messages"];
136
+
137
+ /**
138
+ * @member {module:model/TransactionDestinationType} destination_type
139
+ */
140
+ TransactionCosmosContractDestination.prototype['destination_type'] = undefined;
141
+
142
+ /**
143
+ * @member {Array.<module:model/TransactionCosmosMessage>} cosmos_messages
144
+ */
145
+ TransactionCosmosContractDestination.prototype['cosmos_messages'] = undefined;
146
+
147
+ /**
148
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
149
+ * @member {String} value
150
+ */
151
+ TransactionCosmosContractDestination.prototype['value'] = undefined;
152
+ var _default = exports["default"] = TransactionCosmosContractDestination;