@cobo/cobo-waas2 1.3.0 → 1.5.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 (128) hide show
  1. package/README.md +22 -10
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +105 -0
  4. package/dist/api/DevelopersWebhooksApi.js +43 -0
  5. package/dist/api/OAuthApi.js +18 -18
  6. package/dist/api/TransactionsApi.js +14 -14
  7. package/dist/api/WalletsApi.js +4 -4
  8. package/dist/api/WalletsExchangeWalletApi.js +4 -4
  9. package/dist/api/WalletsMPCWalletsApi.js +10 -10
  10. package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
  11. package/dist/index.js +108 -31
  12. package/dist/model/AddressBook.js +217 -0
  13. package/dist/model/AddressTransferDestination.js +2 -2
  14. package/dist/model/ApiLogDetails.js +238 -0
  15. package/dist/model/ApiLogSummary.js +161 -0
  16. package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
  17. package/dist/model/CoboSafeDelegate.js +2 -2
  18. package/dist/model/ContractCallSource.js +0 -6
  19. package/dist/model/CreateKeyShareHolder.js +2 -2
  20. package/dist/model/ErrorResponse.js +2 -2
  21. package/dist/model/EstimateContractCallFeeParams.js +2 -2
  22. package/dist/model/EstimateFeeParams.js +2 -2
  23. package/dist/model/EstimateTransferFeeParams.js +2 -2
  24. package/dist/model/EstimatedFee.js +1 -1
  25. package/dist/model/EstimatedFixedFee.js +1 -1
  26. package/dist/model/ExchangeId.js +10 -0
  27. package/dist/model/ExtendedTokenInfo.js +17 -4
  28. package/dist/model/GetToken200Response.js +4 -4
  29. package/dist/model/KeyShareHolder.js +1 -1
  30. package/dist/model/ListAddressBooks200Response.js +123 -0
  31. package/dist/model/MPCDelegate.js +4 -4
  32. package/dist/model/MessageSignParams.js +1 -1
  33. package/dist/model/MpcContractCallSource.js +0 -9
  34. package/dist/model/{RefreshToken200Response.js → RefreshToken201Response.js} +25 -25
  35. package/dist/model/RefreshTokenRequest.js +2 -2
  36. package/dist/model/SafeWalletDelegates.js +210 -0
  37. package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
  38. package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
  39. package/dist/model/TSSRequestStatus.js +5 -0
  40. package/dist/model/TokenAssetModelType.js +61 -0
  41. package/dist/model/TokenBalanceBalance.js +6 -6
  42. package/dist/model/TokenInfo.js +11 -2
  43. package/dist/model/Transaction.js +1 -1
  44. package/dist/model/TransactionDestination.js +50 -10
  45. package/dist/model/TransactionDestinationType.js +5 -0
  46. package/dist/model/TransactionDetail.js +2 -2
  47. package/dist/model/TransactionDetails.js +2 -2
  48. package/dist/model/TransactionEvmCalldataInfo.js +177 -0
  49. package/dist/model/TransactionEvmContractDestination.js +16 -0
  50. package/dist/model/TransactionEvmContractMethod.js +136 -0
  51. package/dist/model/TransactionRawMessageSignDestination.js +120 -0
  52. package/dist/model/TransactionSignatureResult.js +1 -1
  53. package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
  54. package/dist/model/TransactionStatus.js +0 -5
  55. package/dist/model/TransactionSubStatus.js +40 -5
  56. package/dist/model/TransactionTokeApproval.js +17 -4
  57. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  58. package/dist/model/TransactionWebhookEventData.js +2 -2
  59. package/dist/model/TransferDestination.js +2 -2
  60. package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
  61. package/dist/model/{WalletBalanceSnapshot.js → TriggerTestWebhookEventRequest.js} +31 -36
  62. package/dist/model/WebhookEventData.js +1 -1
  63. package/docs/AddressBook.md +17 -0
  64. package/docs/AddressBooksApi.md +71 -0
  65. package/docs/AddressTransferDestination.md +2 -2
  66. package/docs/ApiLogDetails.md +18 -0
  67. package/docs/ApiLogSummary.md +13 -0
  68. package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
  69. package/docs/CoboSafeDelegate.md +2 -2
  70. package/docs/ContractCallSource.md +0 -1
  71. package/docs/CreateKeyShareHolder.md +2 -2
  72. package/docs/DevelopersWebhooksApi.md +53 -0
  73. package/docs/ErrorResponse.md +1 -1
  74. package/docs/EstimateContractCallFeeParams.md +1 -1
  75. package/docs/EstimateFeeParams.md +1 -1
  76. package/docs/EstimateTransferFeeParams.md +1 -1
  77. package/docs/EstimatedFee.md +1 -1
  78. package/docs/EstimatedFixedFee.md +1 -1
  79. package/docs/ExchangeId.md +4 -0
  80. package/docs/ExtendedTokenInfo.md +3 -2
  81. package/docs/GetToken200Response.md +4 -4
  82. package/docs/KeyShareHolder.md +1 -1
  83. package/docs/ListAddressBooks200Response.md +10 -0
  84. package/docs/MPCDelegate.md +2 -2
  85. package/docs/MessageSignParams.md +1 -1
  86. package/docs/MpcContractCallSource.md +0 -1
  87. package/docs/OAuthApi.md +11 -11
  88. package/docs/RefreshToken201Response.md +13 -0
  89. package/docs/RefreshTokenRequest.md +2 -2
  90. package/docs/SafeWalletDelegates.md +14 -0
  91. package/docs/SafeWalletDelegatesContractCall.md +12 -0
  92. package/docs/SafeWalletDelegatesTransfer.md +12 -0
  93. package/docs/TSSRequestStatus.md +2 -0
  94. package/docs/TokenAssetModelType.md +12 -0
  95. package/docs/TokenBalanceBalance.md +4 -4
  96. package/docs/TokenInfo.md +3 -2
  97. package/docs/Transaction.md +1 -1
  98. package/docs/TransactionDestination.md +4 -2
  99. package/docs/TransactionDestinationType.md +2 -0
  100. package/docs/TransactionDetail.md +1 -1
  101. package/docs/TransactionDetails.md +1 -1
  102. package/docs/TransactionEvmCalldataInfo.md +16 -0
  103. package/docs/TransactionEvmContractDestination.md +1 -0
  104. package/docs/TransactionEvmContractMethod.md +13 -0
  105. package/docs/TransactionRawMessageSignDestination.md +10 -0
  106. package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
  107. package/docs/TransactionSource.md +1 -1
  108. package/docs/TransactionStatus.md +0 -2
  109. package/docs/TransactionSubStatus.md +16 -2
  110. package/docs/TransactionTokeApproval.md +3 -2
  111. package/docs/TransactionTransferToAddressDestination.md +2 -2
  112. package/docs/TransactionWebhookEventData.md +1 -1
  113. package/docs/TransactionsApi.md +8 -8
  114. package/docs/TransferDestination.md +2 -2
  115. package/docs/TriggerTestWebhookEvent201Response.md +9 -0
  116. package/docs/TriggerTestWebhookEventRequest.md +10 -0
  117. package/docs/WalletsApi.md +2 -2
  118. package/docs/WalletsExchangeWalletApi.md +2 -2
  119. package/docs/WalletsMPCWalletsApi.md +5 -5
  120. package/docs/WalletsSmartContractWalletsApi.md +63 -0
  121. package/docs/WebhookEventData.md +1 -1
  122. package/package.json +2 -2
  123. package/dist/model/BookkeepingRecord.js +0 -243
  124. package/docs/BookkeepingRecord.md +0 -19
  125. package/docs/BookkeepingSummary.md +0 -12
  126. package/docs/RefreshToken200Response.md +0 -13
  127. package/docs/WalletBalanceSnapshot.md +0 -10
  128. package/docs/WalletBalanceSnapshotRecord.md +0 -13
@@ -0,0 +1,210 @@
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 _EstimateFeeRequestType = _interopRequireDefault(require("./EstimateFeeRequestType"));
9
+ var _SafeWalletDelegatesContractCall = _interopRequireDefault(require("./SafeWalletDelegatesContractCall"));
10
+ var _SafeWalletDelegatesTransfer = _interopRequireDefault(require("./SafeWalletDelegatesTransfer"));
11
+ var _SafeWalletDelegates;
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
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 _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
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 SafeWalletDelegates model module.
31
+ * @module model/SafeWalletDelegates
32
+ */
33
+ var SafeWalletDelegates = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>SafeWalletDelegates</code>.
36
+ * @alias module:model/SafeWalletDelegates
37
+ * @param {(module:model/SafeWalletDelegatesContractCall|module:model/SafeWalletDelegatesTransfer)} instance The actual instance to initialize SafeWalletDelegates.
38
+ */
39
+ function SafeWalletDelegates() {
40
+ var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
41
+ _classCallCheck(this, SafeWalletDelegates);
42
+ /**
43
+ * Returns the JSON representation of the actual instance.
44
+ * @return {string}
45
+ */
46
+ _defineProperty(this, "toJSON", function () {
47
+ return this.getActualInstance();
48
+ });
49
+ if (instance === null) {
50
+ this.actualInstance = null;
51
+ return;
52
+ }
53
+ var match = 0;
54
+ var errorMessages = [];
55
+ var discriminatorValue = instance["request_type"];
56
+ if (discriminatorValue) {
57
+ switch (discriminatorValue) {
58
+ case "ContractCall":
59
+ this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
60
+ match++;
61
+ break;
62
+ case "Transfer":
63
+ this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
64
+ match++;
65
+ break;
66
+ default:
67
+ errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
68
+ break;
69
+ }
70
+ return;
71
+ }
72
+ try {
73
+ if (instance instanceof _SafeWalletDelegatesContractCall["default"]) {
74
+ this.actualInstance = instance;
75
+ } else if (!!_SafeWalletDelegatesContractCall["default"].validateJSON && _SafeWalletDelegatesContractCall["default"].validateJSON(instance)) {
76
+ // plain JS object
77
+ // create SafeWalletDelegatesContractCall from JS object
78
+ this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
79
+ } else {
80
+ if (_SafeWalletDelegatesContractCall["default"].constructFromObject(instance)) {
81
+ if (!!_SafeWalletDelegatesContractCall["default"].constructFromObject(instance).toJSON) {
82
+ if (_SafeWalletDelegatesContractCall["default"].constructFromObject(instance).toJSON()) {
83
+ this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
84
+ }
85
+ } else {
86
+ this.actualInstance = _SafeWalletDelegatesContractCall["default"].constructFromObject(instance);
87
+ }
88
+ }
89
+ }
90
+ match++;
91
+ } catch (err) {
92
+ // json data failed to deserialize into SafeWalletDelegatesContractCall
93
+ errorMessages.push("Failed to construct SafeWalletDelegatesContractCall: " + err);
94
+ }
95
+ try {
96
+ if (instance instanceof _SafeWalletDelegatesTransfer["default"]) {
97
+ this.actualInstance = instance;
98
+ } else if (!!_SafeWalletDelegatesTransfer["default"].validateJSON && _SafeWalletDelegatesTransfer["default"].validateJSON(instance)) {
99
+ // plain JS object
100
+ // create SafeWalletDelegatesTransfer from JS object
101
+ this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
102
+ } else {
103
+ if (_SafeWalletDelegatesTransfer["default"].constructFromObject(instance)) {
104
+ if (!!_SafeWalletDelegatesTransfer["default"].constructFromObject(instance).toJSON) {
105
+ if (_SafeWalletDelegatesTransfer["default"].constructFromObject(instance).toJSON()) {
106
+ this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
107
+ }
108
+ } else {
109
+ this.actualInstance = _SafeWalletDelegatesTransfer["default"].constructFromObject(instance);
110
+ }
111
+ }
112
+ }
113
+ match++;
114
+ } catch (err) {
115
+ // json data failed to deserialize into SafeWalletDelegatesTransfer
116
+ errorMessages.push("Failed to construct SafeWalletDelegatesTransfer: " + err);
117
+ }
118
+
119
+ // if (match > 1) {
120
+ // throw new Error("Multiple matches found constructing `SafeWalletDelegates` with oneOf schemas SafeWalletDelegatesContractCall, SafeWalletDelegatesTransfer. Input: " + JSON.stringify(instance));
121
+ // } else
122
+ if (match === 0) {
123
+ // this.actualInstance = null; // clear the actual instance in case there are multiple matches
124
+ // throw new Error("No match found constructing `SafeWalletDelegates` with oneOf schemas SafeWalletDelegatesContractCall, SafeWalletDelegatesTransfer. Details: " +
125
+ // errorMessages.join(", "));
126
+ return;
127
+ } else {// only 1 match
128
+ // the input is valid
129
+ }
130
+ }
131
+
132
+ /**
133
+ * Constructs a <code>SafeWalletDelegates</code> from a plain JavaScript object, optionally creating a new instance.
134
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
135
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
136
+ * @param {module:model/SafeWalletDelegates} obj Optional instance to populate.
137
+ * @return {module:model/SafeWalletDelegates} The populated <code>SafeWalletDelegates</code> instance.
138
+ */
139
+ return _createClass(SafeWalletDelegates, [{
140
+ key: "getActualInstance",
141
+ value:
142
+ /**
143
+ * Gets the actual instance, which can be <code>SafeWalletDelegatesContractCall</code>, <code>SafeWalletDelegatesTransfer</code>.
144
+ * @return {(module:model/SafeWalletDelegatesContractCall|module:model/SafeWalletDelegatesTransfer)} The actual instance.
145
+ */
146
+ function getActualInstance() {
147
+ return this.actualInstance;
148
+ }
149
+
150
+ /**
151
+ * Sets the actual instance, which can be <code>SafeWalletDelegatesContractCall</code>, <code>SafeWalletDelegatesTransfer</code>.
152
+ * @param {(module:model/SafeWalletDelegatesContractCall|module:model/SafeWalletDelegatesTransfer)} obj The actual instance.
153
+ */
154
+ }, {
155
+ key: "setActualInstance",
156
+ value: function setActualInstance(obj) {
157
+ this.actualInstance = SafeWalletDelegates.constructFromObject(obj).getActualInstance();
158
+ }
159
+ }], [{
160
+ key: "constructFromObject",
161
+ value: function constructFromObject(data, obj) {
162
+ return new SafeWalletDelegates(data);
163
+ }
164
+ }]);
165
+ }();
166
+ /**
167
+ * @member {module:model/EstimateFeeRequestType} request_type
168
+ */
169
+ _SafeWalletDelegates = SafeWalletDelegates;
170
+ /**
171
+ * Create an instance of SafeWalletDelegates from a JSON string.
172
+ * @param {string} json_string JSON string.
173
+ * @return {module:model/SafeWalletDelegates} An instance of SafeWalletDelegates.
174
+ */
175
+ _defineProperty(SafeWalletDelegates, "fromJSON", function (json_string) {
176
+ return _SafeWalletDelegates.constructFromObject(JSON.parse(json_string));
177
+ });
178
+ SafeWalletDelegates.prototype['request_type'] = undefined;
179
+
180
+ /**
181
+ * The address of the recipient.
182
+ * @member {String} address
183
+ */
184
+ SafeWalletDelegates.prototype['address'] = undefined;
185
+
186
+ /**
187
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
188
+ * @member {String} value
189
+ */
190
+ SafeWalletDelegates.prototype['value'] = undefined;
191
+
192
+ /**
193
+ * The data that is used to invoke a specific function or method within the specified contract at the destination address.
194
+ * @member {String} calldata
195
+ */
196
+ SafeWalletDelegates.prototype['calldata'] = undefined;
197
+
198
+ /**
199
+ * The token ID.
200
+ * @member {String} token_id
201
+ */
202
+ SafeWalletDelegates.prototype['token_id'] = undefined;
203
+
204
+ /**
205
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
206
+ * @member {String} amount
207
+ */
208
+ SafeWalletDelegates.prototype['amount'] = undefined;
209
+ SafeWalletDelegates.OneOf = ["SafeWalletDelegatesContractCall", "SafeWalletDelegatesTransfer"];
210
+ var _default = exports["default"] = SafeWalletDelegates;
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _EstimateFeeRequestType = _interopRequireDefault(require("./EstimateFeeRequestType"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
10
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -25,21 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
26
  *
26
27
  */
27
28
  /**
28
- * The BookkeepingSummary model module.
29
- * @module model/BookkeepingSummary
29
+ * The SafeWalletDelegatesContractCall model module.
30
+ * @module model/SafeWalletDelegatesContractCall
30
31
  */
31
- var BookkeepingSummary = /*#__PURE__*/function () {
32
+ var SafeWalletDelegatesContractCall = /*#__PURE__*/function () {
32
33
  /**
33
- * Constructs a new <code>BookkeepingSummary</code>.
34
- * The bookkeeping item information.
35
- * @alias module:model/BookkeepingSummary
36
- * @param total_transaction_count {Number} Total transaction count.
37
- * @param total_inflow_value {String} The USD value of the inflow.
38
- * @param total_outflow_value {String} The USD value of the outflow.
34
+ * Constructs a new <code>SafeWalletDelegatesContractCall</code>.
35
+ * @alias module:model/SafeWalletDelegatesContractCall
36
+ * @param request_type {module:model/EstimateFeeRequestType}
39
37
  */
40
- function BookkeepingSummary(total_transaction_count, total_inflow_value, total_outflow_value) {
41
- _classCallCheck(this, BookkeepingSummary);
42
- BookkeepingSummary.initialize(this, total_transaction_count, total_inflow_value, total_outflow_value);
38
+ function SafeWalletDelegatesContractCall(request_type) {
39
+ _classCallCheck(this, SafeWalletDelegatesContractCall);
40
+ SafeWalletDelegatesContractCall.initialize(this, request_type);
43
41
  }
44
42
 
45
43
  /**
@@ -47,52 +45,50 @@ var BookkeepingSummary = /*#__PURE__*/function () {
47
45
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
48
46
  * Only for internal use.
49
47
  */
50
- return _createClass(BookkeepingSummary, null, [{
48
+ return _createClass(SafeWalletDelegatesContractCall, null, [{
51
49
  key: "initialize",
52
- value: function initialize(obj, total_transaction_count, total_inflow_value, total_outflow_value) {
53
- obj['total_transaction_count'] = total_transaction_count;
54
- obj['total_inflow_value'] = total_inflow_value;
55
- obj['total_outflow_value'] = total_outflow_value;
50
+ value: function initialize(obj, request_type) {
51
+ obj['request_type'] = request_type;
56
52
  }
57
53
 
58
54
  /**
59
- * Constructs a <code>BookkeepingSummary</code> from a plain JavaScript object, optionally creating a new instance.
55
+ * Constructs a <code>SafeWalletDelegatesContractCall</code> from a plain JavaScript object, optionally creating a new instance.
60
56
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
57
  * @param {Object} data The plain JavaScript object bearing properties of interest.
62
- * @param {module:model/BookkeepingSummary} obj Optional instance to populate.
63
- * @return {module:model/BookkeepingSummary} The populated <code>BookkeepingSummary</code> instance.
58
+ * @param {module:model/SafeWalletDelegatesContractCall} obj Optional instance to populate.
59
+ * @return {module:model/SafeWalletDelegatesContractCall} The populated <code>SafeWalletDelegatesContractCall</code> instance.
64
60
  */
65
61
  }, {
66
62
  key: "constructFromObject",
67
63
  value: function constructFromObject(data, obj) {
68
64
  if (data) {
69
- obj = obj || new BookkeepingSummary();
70
- if (data.hasOwnProperty('total_transaction_count')) {
71
- obj['total_transaction_count'] = _ApiClient["default"].convertToType(data['total_transaction_count'], 'Number');
65
+ obj = obj || new SafeWalletDelegatesContractCall();
66
+ if (data.hasOwnProperty('request_type')) {
67
+ obj['request_type'] = _EstimateFeeRequestType["default"].constructFromObject(data['request_type']);
72
68
  }
73
- if (data.hasOwnProperty('total_inflow_value')) {
74
- obj['total_inflow_value'] = _ApiClient["default"].convertToType(data['total_inflow_value'], 'String');
69
+ if (data.hasOwnProperty('address')) {
70
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
75
71
  }
76
- if (data.hasOwnProperty('total_outflow_value')) {
77
- obj['total_outflow_value'] = _ApiClient["default"].convertToType(data['total_outflow_value'], 'String');
72
+ if (data.hasOwnProperty('value')) {
73
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
78
74
  }
79
- if (data.hasOwnProperty('total_fee_value')) {
80
- obj['total_fee_value'] = _ApiClient["default"].convertToType(data['total_fee_value'], 'String');
75
+ if (data.hasOwnProperty('calldata')) {
76
+ obj['calldata'] = _ApiClient["default"].convertToType(data['calldata'], 'String');
81
77
  }
82
78
  }
83
79
  return obj;
84
80
  }
85
81
 
86
82
  /**
87
- * Validates the JSON data with respect to <code>BookkeepingSummary</code>.
83
+ * Validates the JSON data with respect to <code>SafeWalletDelegatesContractCall</code>.
88
84
  * @param {Object} data The plain JavaScript object bearing properties of interest.
89
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>BookkeepingSummary</code>.
85
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SafeWalletDelegatesContractCall</code>.
90
86
  */
91
87
  }, {
92
88
  key: "validateJSON",
93
89
  value: function validateJSON(data) {
94
90
  // check to make sure all required properties are present in the JSON string
95
- var _iterator = _createForOfIteratorHelper(BookkeepingSummary.RequiredProperties),
91
+ var _iterator = _createForOfIteratorHelper(SafeWalletDelegatesContractCall.RequiredProperties),
96
92
  _step;
97
93
  try {
98
94
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -107,44 +103,43 @@ var BookkeepingSummary = /*#__PURE__*/function () {
107
103
  } finally {
108
104
  _iterator.f();
109
105
  }
110
- if (data['total_inflow_value'] && !(typeof data['total_inflow_value'] === 'string' || data['total_inflow_value'] instanceof String)) {
111
- throw new Error("Expected the field `total_inflow_value` to be a primitive type in the JSON string but got " + data['total_inflow_value']);
106
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
107
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
112
108
  }
113
109
  // ensure the json data is a string
114
- if (data['total_outflow_value'] && !(typeof data['total_outflow_value'] === 'string' || data['total_outflow_value'] instanceof String)) {
115
- throw new Error("Expected the field `total_outflow_value` to be a primitive type in the JSON string but got " + data['total_outflow_value']);
110
+ if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
111
+ throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
116
112
  }
117
113
  // ensure the json data is a string
118
- if (data['total_fee_value'] && !(typeof data['total_fee_value'] === 'string' || data['total_fee_value'] instanceof String)) {
119
- throw new Error("Expected the field `total_fee_value` to be a primitive type in the JSON string but got " + data['total_fee_value']);
114
+ if (data['calldata'] && !(typeof data['calldata'] === 'string' || data['calldata'] instanceof String)) {
115
+ throw new Error("Expected the field `calldata` to be a primitive type in the JSON string but got " + data['calldata']);
120
116
  }
121
117
  return true;
122
118
  }
123
119
  }]);
124
120
  }();
125
- BookkeepingSummary.RequiredProperties = ["total_transaction_count", "total_inflow_value", "total_outflow_value"];
121
+ SafeWalletDelegatesContractCall.RequiredProperties = ["request_type"];
126
122
 
127
123
  /**
128
- * Total transaction count.
129
- * @member {Number} total_transaction_count
124
+ * @member {module:model/EstimateFeeRequestType} request_type
130
125
  */
131
- BookkeepingSummary.prototype['total_transaction_count'] = undefined;
126
+ SafeWalletDelegatesContractCall.prototype['request_type'] = undefined;
132
127
 
133
128
  /**
134
- * The USD value of the inflow.
135
- * @member {String} total_inflow_value
129
+ * The destination address.
130
+ * @member {String} address
136
131
  */
137
- BookkeepingSummary.prototype['total_inflow_value'] = undefined;
132
+ SafeWalletDelegatesContractCall.prototype['address'] = undefined;
138
133
 
139
134
  /**
140
- * The USD value of the outflow.
141
- * @member {String} total_outflow_value
135
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
136
+ * @member {String} value
142
137
  */
143
- BookkeepingSummary.prototype['total_outflow_value'] = undefined;
138
+ SafeWalletDelegatesContractCall.prototype['value'] = undefined;
144
139
 
145
140
  /**
146
- * The USD value of the fee.
147
- * @member {String} total_fee_value
141
+ * The data that is used to invoke a specific function or method within the specified contract at the destination address.
142
+ * @member {String} calldata
148
143
  */
149
- BookkeepingSummary.prototype['total_fee_value'] = undefined;
150
- var _default = exports["default"] = BookkeepingSummary;
144
+ SafeWalletDelegatesContractCall.prototype['calldata'] = undefined;
145
+ var _default = exports["default"] = SafeWalletDelegatesContractCall;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _WalletType = _interopRequireDefault(require("./WalletType"));
8
+ var _EstimateFeeRequestType = _interopRequireDefault(require("./EstimateFeeRequestType"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
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
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; } } }; }
@@ -26,21 +26,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  *
27
27
  */
28
28
  /**
29
- * The WalletBalanceSnapshotRecord model module.
30
- * @module model/WalletBalanceSnapshotRecord
29
+ * The SafeWalletDelegatesTransfer model module.
30
+ * @module model/SafeWalletDelegatesTransfer
31
31
  */
32
- var WalletBalanceSnapshotRecord = /*#__PURE__*/function () {
32
+ var SafeWalletDelegatesTransfer = /*#__PURE__*/function () {
33
33
  /**
34
- * Constructs a new <code>WalletBalanceSnapshotRecord</code>.
35
- * The token snapshot detail information.
36
- * @alias module:model/WalletBalanceSnapshotRecord
37
- * @param wallet_id {String} The wallet ID.
38
- * @param token_id {String} The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
39
- * @param balance {String} The balance of the token.
34
+ * Constructs a new <code>SafeWalletDelegatesTransfer</code>.
35
+ * @alias module:model/SafeWalletDelegatesTransfer
36
+ * @param request_type {module:model/EstimateFeeRequestType}
37
+ * @param token_id {String} The token ID.
40
38
  */
41
- function WalletBalanceSnapshotRecord(wallet_id, token_id, balance) {
42
- _classCallCheck(this, WalletBalanceSnapshotRecord);
43
- WalletBalanceSnapshotRecord.initialize(this, wallet_id, token_id, balance);
39
+ function SafeWalletDelegatesTransfer(request_type, token_id) {
40
+ _classCallCheck(this, SafeWalletDelegatesTransfer);
41
+ SafeWalletDelegatesTransfer.initialize(this, request_type, token_id);
44
42
  }
45
43
 
46
44
  /**
@@ -48,55 +46,51 @@ var WalletBalanceSnapshotRecord = /*#__PURE__*/function () {
48
46
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
47
  * Only for internal use.
50
48
  */
51
- return _createClass(WalletBalanceSnapshotRecord, null, [{
49
+ return _createClass(SafeWalletDelegatesTransfer, null, [{
52
50
  key: "initialize",
53
- value: function initialize(obj, wallet_id, token_id, balance) {
54
- obj['wallet_id'] = wallet_id;
51
+ value: function initialize(obj, request_type, token_id) {
52
+ obj['request_type'] = request_type;
55
53
  obj['token_id'] = token_id;
56
- obj['balance'] = balance;
57
54
  }
58
55
 
59
56
  /**
60
- * Constructs a <code>WalletBalanceSnapshotRecord</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Constructs a <code>SafeWalletDelegatesTransfer</code> from a plain JavaScript object, optionally creating a new instance.
61
58
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
59
  * @param {Object} data The plain JavaScript object bearing properties of interest.
63
- * @param {module:model/WalletBalanceSnapshotRecord} obj Optional instance to populate.
64
- * @return {module:model/WalletBalanceSnapshotRecord} The populated <code>WalletBalanceSnapshotRecord</code> instance.
60
+ * @param {module:model/SafeWalletDelegatesTransfer} obj Optional instance to populate.
61
+ * @return {module:model/SafeWalletDelegatesTransfer} The populated <code>SafeWalletDelegatesTransfer</code> instance.
65
62
  */
66
63
  }, {
67
64
  key: "constructFromObject",
68
65
  value: function constructFromObject(data, obj) {
69
66
  if (data) {
70
- obj = obj || new WalletBalanceSnapshotRecord();
71
- if (data.hasOwnProperty('wallet_id')) {
72
- obj['wallet_id'] = _ApiClient["default"].convertToType(data['wallet_id'], 'String');
73
- }
74
- if (data.hasOwnProperty('wallet_type')) {
75
- obj['wallet_type'] = _WalletType["default"].constructFromObject(data['wallet_type']);
76
- }
77
- if (data.hasOwnProperty('wallet_name')) {
78
- obj['wallet_name'] = _ApiClient["default"].convertToType(data['wallet_name'], 'String');
67
+ obj = obj || new SafeWalletDelegatesTransfer();
68
+ if (data.hasOwnProperty('request_type')) {
69
+ obj['request_type'] = _EstimateFeeRequestType["default"].constructFromObject(data['request_type']);
79
70
  }
80
71
  if (data.hasOwnProperty('token_id')) {
81
72
  obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
82
73
  }
83
- if (data.hasOwnProperty('balance')) {
84
- obj['balance'] = _ApiClient["default"].convertToType(data['balance'], 'String');
74
+ if (data.hasOwnProperty('amount')) {
75
+ obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
76
+ }
77
+ if (data.hasOwnProperty('address')) {
78
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
85
79
  }
86
80
  }
87
81
  return obj;
88
82
  }
89
83
 
90
84
  /**
91
- * Validates the JSON data with respect to <code>WalletBalanceSnapshotRecord</code>.
85
+ * Validates the JSON data with respect to <code>SafeWalletDelegatesTransfer</code>.
92
86
  * @param {Object} data The plain JavaScript object bearing properties of interest.
93
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>WalletBalanceSnapshotRecord</code>.
87
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SafeWalletDelegatesTransfer</code>.
94
88
  */
95
89
  }, {
96
90
  key: "validateJSON",
97
91
  value: function validateJSON(data) {
98
92
  // check to make sure all required properties are present in the JSON string
99
- var _iterator = _createForOfIteratorHelper(WalletBalanceSnapshotRecord.RequiredProperties),
93
+ var _iterator = _createForOfIteratorHelper(SafeWalletDelegatesTransfer.RequiredProperties),
100
94
  _step;
101
95
  try {
102
96
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -111,53 +105,43 @@ var WalletBalanceSnapshotRecord = /*#__PURE__*/function () {
111
105
  } finally {
112
106
  _iterator.f();
113
107
  }
114
- if (data['wallet_id'] && !(typeof data['wallet_id'] === 'string' || data['wallet_id'] instanceof String)) {
115
- throw new Error("Expected the field `wallet_id` to be a primitive type in the JSON string but got " + data['wallet_id']);
116
- }
117
- // ensure the json data is a string
118
- if (data['wallet_name'] && !(typeof data['wallet_name'] === 'string' || data['wallet_name'] instanceof String)) {
119
- throw new Error("Expected the field `wallet_name` to be a primitive type in the JSON string but got " + data['wallet_name']);
120
- }
121
- // ensure the json data is a string
122
108
  if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
123
109
  throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
124
110
  }
125
111
  // ensure the json data is a string
126
- if (data['balance'] && !(typeof data['balance'] === 'string' || data['balance'] instanceof String)) {
127
- throw new Error("Expected the field `balance` to be a primitive type in the JSON string but got " + data['balance']);
112
+ if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
113
+ throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
114
+ }
115
+ // ensure the json data is a string
116
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
117
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
128
118
  }
129
119
  return true;
130
120
  }
131
121
  }]);
132
122
  }();
133
- WalletBalanceSnapshotRecord.RequiredProperties = ["wallet_id", "token_id", "balance"];
123
+ SafeWalletDelegatesTransfer.RequiredProperties = ["request_type", "token_id"];
134
124
 
135
125
  /**
136
- * The wallet ID.
137
- * @member {String} wallet_id
126
+ * @member {module:model/EstimateFeeRequestType} request_type
138
127
  */
139
- WalletBalanceSnapshotRecord.prototype['wallet_id'] = undefined;
128
+ SafeWalletDelegatesTransfer.prototype['request_type'] = undefined;
140
129
 
141
130
  /**
142
- * @member {module:model/WalletType} wallet_type
143
- */
144
- WalletBalanceSnapshotRecord.prototype['wallet_type'] = undefined;
145
-
146
- /**
147
- * The wallet name.
148
- * @member {String} wallet_name
131
+ * The token ID.
132
+ * @member {String} token_id
149
133
  */
150
- WalletBalanceSnapshotRecord.prototype['wallet_name'] = undefined;
134
+ SafeWalletDelegatesTransfer.prototype['token_id'] = undefined;
151
135
 
152
136
  /**
153
- * The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
154
- * @member {String} token_id
137
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
138
+ * @member {String} amount
155
139
  */
156
- WalletBalanceSnapshotRecord.prototype['token_id'] = undefined;
140
+ SafeWalletDelegatesTransfer.prototype['amount'] = undefined;
157
141
 
158
142
  /**
159
- * The balance of the token.
160
- * @member {String} balance
143
+ * The address of the recipient.
144
+ * @member {String} address
161
145
  */
162
- WalletBalanceSnapshotRecord.prototype['balance'] = undefined;
163
- var _default = exports["default"] = WalletBalanceSnapshotRecord;
146
+ SafeWalletDelegatesTransfer.prototype['address'] = undefined;
147
+ var _default = exports["default"] = SafeWalletDelegatesTransfer;
@@ -45,6 +45,11 @@ var TSSRequestStatus = exports["default"] = /*#__PURE__*/function () {
45
45
  * @const
46
46
  */
47
47
  _defineProperty(this, "KeyGenerating", "KeyGenerating");
48
+ /**
49
+ * value: "MPCProcessing"
50
+ * @const
51
+ */
52
+ _defineProperty(this, "MPCProcessing", "MPCProcessing");
48
53
  /**
49
54
  * value: "KeyGeneratingFailed"
50
55
  * @const