@cobo/cobo-waas2 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +32 -10
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/ServerDemo.js +80 -0
  4. package/dist/api/AddressBooksApi.js +105 -0
  5. package/dist/api/DevelopersApi.js +79 -0
  6. package/dist/api/DevelopersWebhooksApi.js +43 -0
  7. package/dist/api/OAuthApi.js +10 -10
  8. package/dist/api/TransactionsApi.js +12 -12
  9. package/dist/api/WalletsApi.js +60 -59
  10. package/dist/api/WalletsExchangeWalletApi.js +4 -4
  11. package/dist/api/WalletsMPCWalletsApi.js +8 -8
  12. package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
  13. package/dist/index.js +181 -34
  14. package/dist/model/AddressBook.js +25 -10
  15. package/dist/model/AddressTransferDestination.js +2 -2
  16. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
  17. package/dist/model/ApiLogDetails.js +238 -0
  18. package/dist/model/ApiLogSummary.js +161 -0
  19. package/dist/model/BabylonStakeEstimatedFee.js +118 -0
  20. package/dist/model/BabylonValidator.js +5 -0
  21. package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
  22. package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
  23. package/dist/model/CoboSafeDelegate.js +2 -2
  24. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  25. package/dist/model/CreateStakeActivityExtra.js +42 -8
  26. package/dist/model/CreateUnstakeActivity.js +16 -0
  27. package/dist/model/CreateUnstakeActivityExtra.js +159 -0
  28. package/dist/model/CreateUnstakeActivityRequest.js +20 -0
  29. package/dist/model/ErrorResponse.js +2 -2
  30. package/dist/model/EstimateContractCallFeeParams.js +5 -7
  31. package/dist/model/EstimateFeeParams.js +1 -1
  32. package/dist/model/EstimateTransferFeeParams.js +5 -9
  33. package/dist/model/EstimateUnstakeFee.js +20 -0
  34. package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
  35. package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
  36. package/dist/model/EstimatedFee.js +1 -1
  37. package/dist/model/EstimatedFixedFee.js +1 -1
  38. package/dist/model/EthStakeEstimatedFee.js +112 -0
  39. package/dist/model/EthStakeExtra.js +131 -0
  40. package/dist/model/EthStakingExtra.js +131 -0
  41. package/dist/model/EthUnstakeExtra.js +131 -0
  42. package/dist/model/ExchangeId.js +10 -0
  43. package/dist/model/ExtendedTokenInfo.js +17 -4
  44. package/dist/model/FeeGasLimit.js +1 -2
  45. package/dist/model/GetApiKeyInfo200Response.js +251 -0
  46. package/dist/model/GetStakingEstimationFee201Response.js +144 -43
  47. package/dist/model/GetStakingEstimationFeeRequest.js +2 -2
  48. package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
  49. package/dist/model/GetToken4XXResponse.js +12 -10
  50. package/dist/model/ListAddressBooks200Response.js +123 -0
  51. package/dist/model/MPCDelegate.js +5 -5
  52. package/dist/model/MpcTransferSource.js +2 -2
  53. package/dist/model/{RefreshToken200Response.js → RefreshToken2XXResponse.js} +21 -21
  54. package/dist/model/{WalletBalanceSnapshot.js → RoleScopes.js} +42 -34
  55. package/dist/model/SafeWalletDelegates.js +210 -0
  56. package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
  57. package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
  58. package/dist/model/Scopes.js +142 -0
  59. package/dist/model/SmartContractWalletInfo.js +1 -1
  60. package/dist/model/StakingPoolType.js +5 -0
  61. package/dist/model/StakingsExtra.js +36 -8
  62. package/dist/model/TokenAssetModelType.js +61 -0
  63. package/dist/model/TokenBalanceBalance.js +6 -6
  64. package/dist/model/TokenInfo.js +11 -2
  65. package/dist/model/Transaction.js +1 -1
  66. package/dist/model/TransactionDestination.js +50 -10
  67. package/dist/model/TransactionDestinationType.js +5 -0
  68. package/dist/model/TransactionDetail.js +2 -2
  69. package/dist/model/TransactionDetails.js +2 -2
  70. package/dist/model/TransactionEvmCalldataInfo.js +177 -0
  71. package/dist/model/TransactionEvmContractDestination.js +16 -0
  72. package/dist/model/TransactionEvmContractMethod.js +136 -0
  73. package/dist/model/TransactionEvmEip1559Fee.js +2 -4
  74. package/dist/model/TransactionEvmLegacyFee.js +2 -4
  75. package/dist/model/TransactionFee.js +1 -2
  76. package/dist/model/TransactionRawMessageSignDestination.js +120 -0
  77. package/dist/model/TransactionRbfSource.js +1 -1
  78. package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -2
  79. package/dist/model/TransactionRequestEvmLegacyFee.js +1 -2
  80. package/dist/model/TransactionRequestFee.js +1 -2
  81. package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
  82. package/dist/model/TransactionSource.js +1 -1
  83. package/dist/model/TransactionTokeApproval.js +17 -4
  84. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  85. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
  86. package/dist/model/TransactionWebhookEventData.js +2 -2
  87. package/dist/model/TransferDestination.js +2 -2
  88. package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
  89. package/dist/model/TriggerTestWebhookEventRequest.js +115 -0
  90. package/dist/model/WebhookEventData.js +1 -1
  91. package/docs/AddressBook.md +8 -7
  92. package/docs/AddressBooksApi.md +71 -0
  93. package/docs/AddressTransferDestination.md +2 -2
  94. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
  95. package/docs/ApiLogDetails.md +18 -0
  96. package/docs/ApiLogSummary.md +13 -0
  97. package/docs/BabylonStakeEstimatedFee.md +12 -0
  98. package/docs/BabylonValidator.md +2 -0
  99. package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
  100. package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
  101. package/docs/CoboSafeDelegate.md +2 -2
  102. package/docs/CreateStakeActivityExtra.md +1 -0
  103. package/docs/CreateUnstakeActivity.md +1 -0
  104. package/docs/CreateUnstakeActivityExtra.md +10 -0
  105. package/docs/CreateUnstakeActivityRequest.md +1 -0
  106. package/docs/DevelopersApi.md +55 -0
  107. package/docs/DevelopersWebhooksApi.md +53 -0
  108. package/docs/ErrorResponse.md +1 -1
  109. package/docs/EstimateContractCallFeeParams.md +1 -1
  110. package/docs/EstimateFeeParams.md +1 -1
  111. package/docs/EstimateTransferFeeParams.md +2 -2
  112. package/docs/EstimateUnstakeFee.md +1 -0
  113. package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
  114. package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
  115. package/docs/EstimatedFee.md +1 -1
  116. package/docs/EstimatedFixedFee.md +1 -1
  117. package/docs/EthStakeEstimatedFee.md +11 -0
  118. package/docs/EthStakeExtra.md +10 -0
  119. package/docs/EthStakingExtra.md +10 -0
  120. package/docs/EthUnstakeExtra.md +10 -0
  121. package/docs/ExchangeId.md +4 -0
  122. package/docs/ExtendedTokenInfo.md +3 -2
  123. package/docs/FeeGasLimit.md +1 -1
  124. package/docs/GetApiKeyInfo200Response.md +30 -0
  125. package/docs/GetStakingEstimationFee201Response.md +3 -0
  126. package/docs/GetStakingEstimationFeeRequest.md +1 -1
  127. package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
  128. package/docs/GetToken4XXResponse.md +1 -1
  129. package/docs/ListAddressBooks200Response.md +10 -0
  130. package/docs/MPCDelegate.md +2 -2
  131. package/docs/MpcTransferSource.md +1 -1
  132. package/docs/OAuthApi.md +5 -5
  133. package/docs/PoolDetailsAllOfValidatorsInfo.md +2 -0
  134. package/docs/{RefreshToken200Response.md → RefreshToken2XXResponse.md} +1 -1
  135. package/docs/RoleScopes.md +10 -0
  136. package/docs/SafeWalletDelegates.md +14 -0
  137. package/docs/SafeWalletDelegatesContractCall.md +12 -0
  138. package/docs/SafeWalletDelegatesTransfer.md +12 -0
  139. package/docs/Scopes.md +13 -0
  140. package/docs/StakingPoolType.md +2 -0
  141. package/docs/TokenAssetModelType.md +12 -0
  142. package/docs/TokenBalanceBalance.md +4 -4
  143. package/docs/TokenInfo.md +3 -2
  144. package/docs/Transaction.md +1 -1
  145. package/docs/TransactionDestination.md +4 -2
  146. package/docs/TransactionDestinationType.md +2 -0
  147. package/docs/TransactionDetail.md +1 -1
  148. package/docs/TransactionDetails.md +1 -1
  149. package/docs/TransactionEvmCalldataInfo.md +16 -0
  150. package/docs/TransactionEvmContractDestination.md +1 -0
  151. package/docs/TransactionEvmContractMethod.md +13 -0
  152. package/docs/TransactionEvmEip1559Fee.md +1 -1
  153. package/docs/TransactionEvmLegacyFee.md +1 -1
  154. package/docs/TransactionFee.md +1 -1
  155. package/docs/TransactionRawMessageSignDestination.md +10 -0
  156. package/docs/TransactionRbfSource.md +1 -1
  157. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  158. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  159. package/docs/TransactionRequestFee.md +1 -1
  160. package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
  161. package/docs/TransactionSource.md +1 -1
  162. package/docs/TransactionTokeApproval.md +3 -2
  163. package/docs/TransactionTransferToAddressDestination.md +2 -2
  164. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
  165. package/docs/TransactionWebhookEventData.md +1 -1
  166. package/docs/TransactionsApi.md +7 -7
  167. package/docs/TransferDestination.md +2 -2
  168. package/docs/TriggerTestWebhookEvent201Response.md +9 -0
  169. package/docs/TriggerTestWebhookEventRequest.md +10 -0
  170. package/docs/WalletsApi.md +55 -55
  171. package/docs/WalletsExchangeWalletApi.md +2 -2
  172. package/docs/WalletsMPCWalletsApi.md +4 -4
  173. package/docs/WalletsSmartContractWalletsApi.md +63 -0
  174. package/docs/WebhookEventData.md +1 -1
  175. package/package.json +3 -2
  176. package/dist/model/BookkeepingRecord.js +0 -243
  177. package/docs/BookkeepingRecord.md +0 -19
  178. package/docs/BookkeepingSummary.md +0 -12
  179. package/docs/WalletBalanceSnapshot.md +0 -10
  180. package/docs/WalletBalanceSnapshotRecord.md +0 -13
@@ -0,0 +1,177 @@
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 _TransactionEvmContractMethod = _interopRequireDefault(require("./TransactionEvmContractMethod"));
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
+ 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); } }
13
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Cobo Wallet as a Service 2.0
17
+ *
18
+ * Contact: help@cobo.com
19
+ *
20
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
+ * https://openapi-generator.tech
22
+ * Do not edit the class manually.
23
+ *
24
+ */
25
+ /**
26
+ * The TransactionEvmCalldataInfo model module.
27
+ * @module model/TransactionEvmCalldataInfo
28
+ */
29
+ var TransactionEvmCalldataInfo = /*#__PURE__*/function () {
30
+ /**
31
+ * Constructs a new <code>TransactionEvmCalldataInfo</code>.
32
+ * @alias module:model/TransactionEvmCalldataInfo
33
+ */
34
+ function TransactionEvmCalldataInfo() {
35
+ _classCallCheck(this, TransactionEvmCalldataInfo);
36
+ TransactionEvmCalldataInfo.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ return _createClass(TransactionEvmCalldataInfo, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>TransactionEvmCalldataInfo</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/TransactionEvmCalldataInfo} obj Optional instance to populate.
53
+ * @return {module:model/TransactionEvmCalldataInfo} The populated <code>TransactionEvmCalldataInfo</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new TransactionEvmCalldataInfo();
60
+ if (data.hasOwnProperty('chain_id')) {
61
+ obj['chain_id'] = _ApiClient["default"].convertToType(data['chain_id'], 'String');
62
+ }
63
+ if (data.hasOwnProperty('address')) {
64
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
65
+ }
66
+ if (data.hasOwnProperty('name')) {
67
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
68
+ }
69
+ if (data.hasOwnProperty('impl_address')) {
70
+ obj['impl_address'] = _ApiClient["default"].convertToType(data['impl_address'], 'String');
71
+ }
72
+ if (data.hasOwnProperty('impl_name')) {
73
+ obj['impl_name'] = _ApiClient["default"].convertToType(data['impl_name'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('proxy')) {
76
+ obj['proxy'] = _ApiClient["default"].convertToType(data['proxy'], 'Boolean');
77
+ }
78
+ if (data.hasOwnProperty('method')) {
79
+ obj['method'] = _TransactionEvmContractMethod["default"].constructFromObject(data['method']);
80
+ }
81
+ if (data.hasOwnProperty('params')) {
82
+ obj['params'] = _ApiClient["default"].convertToType(data['params'], 'String');
83
+ }
84
+ }
85
+ return obj;
86
+ }
87
+
88
+ /**
89
+ * Validates the JSON data with respect to <code>TransactionEvmCalldataInfo</code>.
90
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
91
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionEvmCalldataInfo</code>.
92
+ */
93
+ }, {
94
+ key: "validateJSON",
95
+ value: function validateJSON(data) {
96
+ // ensure the json data is a string
97
+ if (data['chain_id'] && !(typeof data['chain_id'] === 'string' || data['chain_id'] instanceof String)) {
98
+ throw new Error("Expected the field `chain_id` to be a primitive type in the JSON string but got " + data['chain_id']);
99
+ }
100
+ // ensure the json data is a string
101
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
102
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
103
+ }
104
+ // ensure the json data is a string
105
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
106
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
107
+ }
108
+ // ensure the json data is a string
109
+ if (data['impl_address'] && !(typeof data['impl_address'] === 'string' || data['impl_address'] instanceof String)) {
110
+ throw new Error("Expected the field `impl_address` to be a primitive type in the JSON string but got " + data['impl_address']);
111
+ }
112
+ // ensure the json data is a string
113
+ if (data['impl_name'] && !(typeof data['impl_name'] === 'string' || data['impl_name'] instanceof String)) {
114
+ throw new Error("Expected the field `impl_name` to be a primitive type in the JSON string but got " + data['impl_name']);
115
+ }
116
+ // validate the optional field `method`
117
+ if (data['method']) {
118
+ // data not null
119
+ if (!!_TransactionEvmContractMethod["default"].validateJSON) {
120
+ _TransactionEvmContractMethod["default"].validateJSON(data['method']);
121
+ }
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['params'] && !(typeof data['params'] === 'string' || data['params'] instanceof String)) {
125
+ throw new Error("Expected the field `params` to be a primitive type in the JSON string but got " + data['params']);
126
+ }
127
+ return true;
128
+ }
129
+ }]);
130
+ }();
131
+ /**
132
+ * The ID of the chain on which the smart contract is deployed.
133
+ * @member {String} chain_id
134
+ */
135
+ TransactionEvmCalldataInfo.prototype['chain_id'] = undefined;
136
+
137
+ /**
138
+ * The address of the smart contract.
139
+ * @member {String} address
140
+ */
141
+ TransactionEvmCalldataInfo.prototype['address'] = undefined;
142
+
143
+ /**
144
+ * The name of the smart contract.
145
+ * @member {String} name
146
+ */
147
+ TransactionEvmCalldataInfo.prototype['name'] = undefined;
148
+
149
+ /**
150
+ * The address of the implementation smart contract. This property is applicable only when the specified smart contract is a proxy contract.
151
+ * @member {String} impl_address
152
+ */
153
+ TransactionEvmCalldataInfo.prototype['impl_address'] = undefined;
154
+
155
+ /**
156
+ * The name of the implementation smart contract. This property is applicable only when the specified smart contract is a proxy contract.
157
+ * @member {String} impl_name
158
+ */
159
+ TransactionEvmCalldataInfo.prototype['impl_name'] = undefined;
160
+
161
+ /**
162
+ * Whether the specified smart contract address is a proxy contract. - `true`: The specified smart contract address is a proxy contract. - `false`: The specified smart contract address is not a proxy contract.
163
+ * @member {Boolean} proxy
164
+ */
165
+ TransactionEvmCalldataInfo.prototype['proxy'] = undefined;
166
+
167
+ /**
168
+ * @member {module:model/TransactionEvmContractMethod} method
169
+ */
170
+ TransactionEvmCalldataInfo.prototype['method'] = undefined;
171
+
172
+ /**
173
+ * The parameters of the contract method are represented as a JSON array of arrays. Each element in the outer array is itself an array containing three elements that provide detailed information about a specific parameter: - Parameter name: The unique identifier of the parameter, such as `kind`, `swaps`, and `to`. - Parameter type: The Solidity data type of the parameter, such as `uint8`, `tuple[]`, `address[]`, and `int256[]`. - Parameter value: The actual value of the parameter. If the parameter type is a basic type such as `uint256` or `address`, this value is a single element. If the parameter type is a complex type such as `tuple[]` or `address[]`, the value is a nested array, with each inner array containing parameter names, types, and values.
174
+ * @member {String} params
175
+ */
176
+ TransactionEvmCalldataInfo.prototype['params'] = undefined;
177
+ var _default = exports["default"] = TransactionEvmCalldataInfo;
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
9
+ var _TransactionEvmCalldataInfo = _interopRequireDefault(require("./TransactionEvmCalldataInfo"));
9
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
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); }
11
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; } } }; }
@@ -80,6 +81,9 @@ var TransactionEvmContractDestination = /*#__PURE__*/function () {
80
81
  if (data.hasOwnProperty('calldata')) {
81
82
  obj['calldata'] = _ApiClient["default"].convertToType(data['calldata'], 'String');
82
83
  }
84
+ if (data.hasOwnProperty('calldata_info')) {
85
+ obj['calldata_info'] = _TransactionEvmCalldataInfo["default"].constructFromObject(data['calldata_info']);
86
+ }
83
87
  }
84
88
  return obj;
85
89
  }
@@ -119,6 +123,13 @@ var TransactionEvmContractDestination = /*#__PURE__*/function () {
119
123
  if (data['calldata'] && !(typeof data['calldata'] === 'string' || data['calldata'] instanceof String)) {
120
124
  throw new Error("Expected the field `calldata` to be a primitive type in the JSON string but got " + data['calldata']);
121
125
  }
126
+ // validate the optional field `calldata_info`
127
+ if (data['calldata_info']) {
128
+ // data not null
129
+ if (!!_TransactionEvmCalldataInfo["default"].validateJSON) {
130
+ _TransactionEvmCalldataInfo["default"].validateJSON(data['calldata_info']);
131
+ }
132
+ }
122
133
  return true;
123
134
  }
124
135
  }]);
@@ -147,4 +158,9 @@ TransactionEvmContractDestination.prototype['value'] = undefined;
147
158
  * @member {String} calldata
148
159
  */
149
160
  TransactionEvmContractDestination.prototype['calldata'] = undefined;
161
+
162
+ /**
163
+ * @member {module:model/TransactionEvmCalldataInfo} calldata_info
164
+ */
165
+ TransactionEvmContractDestination.prototype['calldata_info'] = undefined;
150
166
  var _default = exports["default"] = TransactionEvmContractDestination;
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
+ 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); } /**
15
+ * Cobo Wallet as a Service 2.0
16
+ *
17
+ * Contact: help@cobo.com
18
+ *
19
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20
+ * https://openapi-generator.tech
21
+ * Do not edit the class manually.
22
+ *
23
+ */
24
+ /**
25
+ * The TransactionEvmContractMethod model module.
26
+ * @module model/TransactionEvmContractMethod
27
+ */
28
+ var TransactionEvmContractMethod = /*#__PURE__*/function () {
29
+ /**
30
+ * Constructs a new <code>TransactionEvmContractMethod</code>.
31
+ * The information about a method in a smart contract.
32
+ * @alias module:model/TransactionEvmContractMethod
33
+ */
34
+ function TransactionEvmContractMethod() {
35
+ _classCallCheck(this, TransactionEvmContractMethod);
36
+ TransactionEvmContractMethod.initialize(this);
37
+ }
38
+
39
+ /**
40
+ * Initializes the fields of this object.
41
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
42
+ * Only for internal use.
43
+ */
44
+ return _createClass(TransactionEvmContractMethod, null, [{
45
+ key: "initialize",
46
+ value: function initialize(obj) {}
47
+
48
+ /**
49
+ * Constructs a <code>TransactionEvmContractMethod</code> from a plain JavaScript object, optionally creating a new instance.
50
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
51
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
52
+ * @param {module:model/TransactionEvmContractMethod} obj Optional instance to populate.
53
+ * @return {module:model/TransactionEvmContractMethod} The populated <code>TransactionEvmContractMethod</code> instance.
54
+ */
55
+ }, {
56
+ key: "constructFromObject",
57
+ value: function constructFromObject(data, obj) {
58
+ if (data) {
59
+ obj = obj || new TransactionEvmContractMethod();
60
+ if (data.hasOwnProperty('name')) {
61
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
62
+ }
63
+ if (data.hasOwnProperty('sig')) {
64
+ obj['sig'] = _ApiClient["default"].convertToType(data['sig'], 'String');
65
+ }
66
+ if (data.hasOwnProperty('type')) {
67
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
68
+ }
69
+ if (data.hasOwnProperty('payable')) {
70
+ obj['payable'] = _ApiClient["default"].convertToType(data['payable'], 'Boolean');
71
+ }
72
+ if (data.hasOwnProperty('selector')) {
73
+ obj['selector'] = _ApiClient["default"].convertToType(data['selector'], 'String');
74
+ }
75
+ }
76
+ return obj;
77
+ }
78
+
79
+ /**
80
+ * Validates the JSON data with respect to <code>TransactionEvmContractMethod</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>TransactionEvmContractMethod</code>.
83
+ */
84
+ }, {
85
+ key: "validateJSON",
86
+ value: function validateJSON(data) {
87
+ // ensure the json data is a string
88
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
89
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
90
+ }
91
+ // ensure the json data is a string
92
+ if (data['sig'] && !(typeof data['sig'] === 'string' || data['sig'] instanceof String)) {
93
+ throw new Error("Expected the field `sig` to be a primitive type in the JSON string but got " + data['sig']);
94
+ }
95
+ // ensure the json data is a string
96
+ if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
97
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
98
+ }
99
+ // ensure the json data is a string
100
+ if (data['selector'] && !(typeof data['selector'] === 'string' || data['selector'] instanceof String)) {
101
+ throw new Error("Expected the field `selector` to be a primitive type in the JSON string but got " + data['selector']);
102
+ }
103
+ return true;
104
+ }
105
+ }]);
106
+ }();
107
+ /**
108
+ * The method name.
109
+ * @member {String} name
110
+ */
111
+ TransactionEvmContractMethod.prototype['name'] = undefined;
112
+
113
+ /**
114
+ * The signature of the method, which includes the method name and parameter types.
115
+ * @member {String} sig
116
+ */
117
+ TransactionEvmContractMethod.prototype['sig'] = undefined;
118
+
119
+ /**
120
+ * The method type.
121
+ * @member {String} type
122
+ */
123
+ TransactionEvmContractMethod.prototype['type'] = undefined;
124
+
125
+ /**
126
+ * Whether the method is payable, which means it can receive tokens along with the transaction. - `true`: The method is payable. - `false`: The method is not payable.
127
+ * @member {Boolean} payable
128
+ */
129
+ TransactionEvmContractMethod.prototype['payable'] = undefined;
130
+
131
+ /**
132
+ * The method selector, a four-byte identifier derived from the method's signature, used to invoke the method in a transaction.
133
+ * @member {String} selector
134
+ */
135
+ TransactionEvmContractMethod.prototype['selector'] = undefined;
136
+ var _default = exports["default"] = TransactionEvmContractMethod;
@@ -172,9 +172,8 @@ TransactionEvmEip1559Fee.prototype['max_priority_fee_per_gas'] = undefined;
172
172
  /**
173
173
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
174
174
  * @member {String} gas_limit
175
- * @default '21000'
176
175
  */
177
- TransactionEvmEip1559Fee.prototype['gas_limit'] = '21000';
176
+ TransactionEvmEip1559Fee.prototype['gas_limit'] = undefined;
178
177
 
179
178
  /**
180
179
  * @member {module:model/FeeType} fee_type
@@ -220,7 +219,6 @@ _EvmEip1559FeeBasePrice["default"].prototype['max_priority_fee_per_gas'] = undef
220
219
  /**
221
220
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
222
221
  * @member {String} gas_limit
223
- * @default '21000'
224
222
  */
225
- _FeeGasLimit["default"].prototype['gas_limit'] = '21000';
223
+ _FeeGasLimit["default"].prototype['gas_limit'] = undefined;
226
224
  var _default = exports["default"] = TransactionEvmEip1559Fee;
@@ -152,9 +152,8 @@ TransactionEvmLegacyFee.prototype['gas_price'] = undefined;
152
152
  /**
153
153
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
154
154
  * @member {String} gas_limit
155
- * @default '21000'
156
155
  */
157
- TransactionEvmLegacyFee.prototype['gas_limit'] = '21000';
156
+ TransactionEvmLegacyFee.prototype['gas_limit'] = undefined;
158
157
 
159
158
  /**
160
159
  * @member {module:model/FeeType} fee_type
@@ -189,7 +188,6 @@ _EvmLegacyFeeBasePrice["default"].prototype['gas_price'] = undefined;
189
188
  /**
190
189
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
191
190
  * @member {String} gas_limit
192
- * @default '21000'
193
191
  */
194
- _FeeGasLimit["default"].prototype['gas_limit'] = '21000';
192
+ _FeeGasLimit["default"].prototype['gas_limit'] = undefined;
195
193
  var _default = exports["default"] = TransactionEvmLegacyFee;
@@ -272,9 +272,8 @@ TransactionFee.prototype['max_priority_fee_per_gas'] = undefined;
272
272
  /**
273
273
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
274
274
  * @member {String} gas_limit
275
- * @default '21000'
276
275
  */
277
- TransactionFee.prototype['gas_limit'] = '21000';
276
+ TransactionFee.prototype['gas_limit'] = undefined;
278
277
 
279
278
  /**
280
279
  * The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used.
@@ -0,0 +1,120 @@
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 TransactionRawMessageSignDestination model module.
30
+ * @module model/TransactionRawMessageSignDestination
31
+ */
32
+ var TransactionRawMessageSignDestination = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>TransactionRawMessageSignDestination</code>.
35
+ * The information about the destination &#x60;Raw_Message_Signature&#x60;. Refer to [Transaction sources and destinations](/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/TransactionRawMessageSignDestination
37
+ * @param destination_type {module:model/TransactionDestinationType}
38
+ */
39
+ function TransactionRawMessageSignDestination(destination_type) {
40
+ _classCallCheck(this, TransactionRawMessageSignDestination);
41
+ TransactionRawMessageSignDestination.initialize(this, destination_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(TransactionRawMessageSignDestination, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, destination_type) {
52
+ obj['destination_type'] = destination_type;
53
+ }
54
+
55
+ /**
56
+ * Constructs a <code>TransactionRawMessageSignDestination</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/TransactionRawMessageSignDestination} obj Optional instance to populate.
60
+ * @return {module:model/TransactionRawMessageSignDestination} The populated <code>TransactionRawMessageSignDestination</code> instance.
61
+ */
62
+ }, {
63
+ key: "constructFromObject",
64
+ value: function constructFromObject(data, obj) {
65
+ if (data) {
66
+ obj = obj || new TransactionRawMessageSignDestination();
67
+ if (data.hasOwnProperty('destination_type')) {
68
+ obj['destination_type'] = _TransactionDestinationType["default"].constructFromObject(data['destination_type']);
69
+ }
70
+ if (data.hasOwnProperty('msg_hash')) {
71
+ obj['msg_hash'] = _ApiClient["default"].convertToType(data['msg_hash'], 'String');
72
+ }
73
+ }
74
+ return obj;
75
+ }
76
+
77
+ /**
78
+ * Validates the JSON data with respect to <code>TransactionRawMessageSignDestination</code>.
79
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
80
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionRawMessageSignDestination</code>.
81
+ */
82
+ }, {
83
+ key: "validateJSON",
84
+ value: function validateJSON(data) {
85
+ // check to make sure all required properties are present in the JSON string
86
+ var _iterator = _createForOfIteratorHelper(TransactionRawMessageSignDestination.RequiredProperties),
87
+ _step;
88
+ try {
89
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
90
+ var property = _step.value;
91
+ if (!data.hasOwnProperty(property)) {
92
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
93
+ }
94
+ }
95
+ // ensure the json data is a string
96
+ } catch (err) {
97
+ _iterator.e(err);
98
+ } finally {
99
+ _iterator.f();
100
+ }
101
+ if (data['msg_hash'] && !(typeof data['msg_hash'] === 'string' || data['msg_hash'] instanceof String)) {
102
+ throw new Error("Expected the field `msg_hash` to be a primitive type in the JSON string but got " + data['msg_hash']);
103
+ }
104
+ return true;
105
+ }
106
+ }]);
107
+ }();
108
+ TransactionRawMessageSignDestination.RequiredProperties = ["destination_type"];
109
+
110
+ /**
111
+ * @member {module:model/TransactionDestinationType} destination_type
112
+ */
113
+ TransactionRawMessageSignDestination.prototype['destination_type'] = undefined;
114
+
115
+ /**
116
+ * Message hash to be signed, in hexadecimal format.
117
+ * @member {String} msg_hash
118
+ */
119
+ TransactionRawMessageSignDestination.prototype['msg_hash'] = undefined;
120
+ var _default = exports["default"] = TransactionRawMessageSignDestination;
@@ -161,7 +161,7 @@ TransactionRbfSource.prototype['source_type'] = undefined;
161
161
  TransactionRbfSource.prototype['wallet_id'] = undefined;
162
162
 
163
163
  /**
164
- * The wallet address.
164
+ * The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
165
165
  * @member {String} address
166
166
  */
167
167
  TransactionRbfSource.prototype['address'] = undefined;
@@ -164,9 +164,8 @@ TransactionRequestEvmEip1559Fee.prototype['token_id'] = undefined;
164
164
  /**
165
165
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
166
166
  * @member {String} gas_limit
167
- * @default '21000'
168
167
  */
169
- TransactionRequestEvmEip1559Fee.prototype['gas_limit'] = '21000';
168
+ TransactionRequestEvmEip1559Fee.prototype['gas_limit'] = undefined;
170
169
 
171
170
  // Implement EvmEip1559FeeBasePrice interface:
172
171
  /**
@@ -149,9 +149,8 @@ TransactionRequestEvmLegacyFee.prototype['token_id'] = undefined;
149
149
  /**
150
150
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
151
151
  * @member {String} gas_limit
152
- * @default '21000'
153
152
  */
154
- TransactionRequestEvmLegacyFee.prototype['gas_limit'] = '21000';
153
+ TransactionRequestEvmLegacyFee.prototype['gas_limit'] = undefined;
155
154
 
156
155
  // Implement EvmLegacyFeeBasePrice interface:
157
156
  /**
@@ -248,9 +248,8 @@ TransactionRequestFee.prototype['max_fee_amount'] = undefined;
248
248
  /**
249
249
  * The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
250
250
  * @member {String} gas_limit
251
- * @default '21000'
252
251
  */
253
- TransactionRequestFee.prototype['gas_limit'] = '21000';
252
+ TransactionRequestFee.prototype['gas_limit'] = undefined;
254
253
 
255
254
  /**
256
255
  * The maximum gas fee per gas unit used on the chain, in wei.
@@ -38,11 +38,10 @@ var TransactionSmartContractSafeWalletSource = /*#__PURE__*/function () {
38
38
  * @param source_type {module:model/TransactionSourceType}
39
39
  * @param wallet_id {String} The wallet ID.
40
40
  * @param address {String} The wallet address.
41
- * @param delegate {module:model/CoboSafeDelegate}
42
41
  */
43
- function TransactionSmartContractSafeWalletSource(source_type, wallet_id, address, delegate) {
42
+ function TransactionSmartContractSafeWalletSource(source_type, wallet_id, address) {
44
43
  _classCallCheck(this, TransactionSmartContractSafeWalletSource);
45
- TransactionSmartContractSafeWalletSource.initialize(this, source_type, wallet_id, address, delegate);
44
+ TransactionSmartContractSafeWalletSource.initialize(this, source_type, wallet_id, address);
46
45
  }
47
46
 
48
47
  /**
@@ -52,11 +51,10 @@ var TransactionSmartContractSafeWalletSource = /*#__PURE__*/function () {
52
51
  */
53
52
  return _createClass(TransactionSmartContractSafeWalletSource, null, [{
54
53
  key: "initialize",
55
- value: function initialize(obj, source_type, wallet_id, address, delegate) {
54
+ value: function initialize(obj, source_type, wallet_id, address) {
56
55
  obj['source_type'] = source_type;
57
56
  obj['wallet_id'] = wallet_id;
58
57
  obj['address'] = address;
59
- obj['delegate'] = delegate;
60
58
  }
61
59
 
62
60
  /**
@@ -129,7 +127,7 @@ var TransactionSmartContractSafeWalletSource = /*#__PURE__*/function () {
129
127
  }
130
128
  }]);
131
129
  }();
132
- TransactionSmartContractSafeWalletSource.RequiredProperties = ["source_type", "wallet_id", "address", "delegate"];
130
+ TransactionSmartContractSafeWalletSource.RequiredProperties = ["source_type", "wallet_id", "address"];
133
131
 
134
132
  /**
135
133
  * @member {module:model/TransactionSourceType} source_type
@@ -89,7 +89,7 @@ var TransactionSource = /*#__PURE__*/function () {
89
89
  this.actualInstance = _TransactionMPCWalletSource["default"].constructFromObject(instance);
90
90
  match++;
91
91
  break;
92
- case "SafeWallet":
92
+ case "Safe{Wallet}":
93
93
  this.actualInstance = _TransactionSmartContractSafeWalletSource["default"].constructFromObject(instance);
94
94
  match++;
95
95
  break;