@cobo/cobo-waas2 1.4.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.
- package/README.md +19 -8
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +105 -0
- package/dist/api/DevelopersWebhooksApi.js +43 -0
- package/dist/api/OAuthApi.js +6 -6
- package/dist/api/TransactionsApi.js +12 -12
- package/dist/api/WalletsApi.js +2 -2
- package/dist/api/WalletsExchangeWalletApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +8 -8
- package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
- package/dist/index.js +101 -31
- package/dist/model/AddressBook.js +25 -10
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/ApiLogDetails.js +238 -0
- package/dist/model/ApiLogSummary.js +161 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
- package/dist/model/CoboSafeDelegate.js +2 -2
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +2 -2
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/ExchangeId.js +10 -0
- package/dist/model/ExtendedTokenInfo.js +17 -4
- package/dist/model/ListAddressBooks200Response.js +123 -0
- package/dist/model/MPCDelegate.js +4 -4
- package/dist/model/{RefreshToken200Response.js → RefreshToken201Response.js} +21 -21
- package/dist/model/SafeWalletDelegates.js +210 -0
- package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
- package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
- package/dist/model/TokenAssetModelType.js +61 -0
- package/dist/model/TokenBalanceBalance.js +6 -6
- package/dist/model/TokenInfo.js +11 -2
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDestination.js +50 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionEvmCalldataInfo.js +177 -0
- package/dist/model/TransactionEvmContractDestination.js +16 -0
- package/dist/model/TransactionEvmContractMethod.js +136 -0
- package/dist/model/TransactionRawMessageSignDestination.js +120 -0
- package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
- package/dist/model/TransactionTokeApproval.js +17 -4
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +2 -2
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
- package/dist/model/{WalletBalanceSnapshot.js → TriggerTestWebhookEventRequest.js} +31 -36
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/AddressBook.md +8 -7
- package/docs/AddressBooksApi.md +71 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/ApiLogDetails.md +18 -0
- package/docs/ApiLogSummary.md +13 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
- package/docs/CoboSafeDelegate.md +2 -2
- package/docs/DevelopersWebhooksApi.md +53 -0
- package/docs/ErrorResponse.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/ExchangeId.md +4 -0
- package/docs/ExtendedTokenInfo.md +3 -2
- package/docs/ListAddressBooks200Response.md +10 -0
- package/docs/MPCDelegate.md +2 -2
- package/docs/OAuthApi.md +3 -3
- package/docs/{RefreshToken200Response.md → RefreshToken201Response.md} +1 -1
- package/docs/SafeWalletDelegates.md +14 -0
- package/docs/SafeWalletDelegatesContractCall.md +12 -0
- package/docs/SafeWalletDelegatesTransfer.md +12 -0
- package/docs/TokenAssetModelType.md +12 -0
- package/docs/TokenBalanceBalance.md +4 -4
- package/docs/TokenInfo.md +3 -2
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDestination.md +4 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionEvmCalldataInfo.md +16 -0
- package/docs/TransactionEvmContractDestination.md +1 -0
- package/docs/TransactionEvmContractMethod.md +13 -0
- package/docs/TransactionRawMessageSignDestination.md +10 -0
- package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
- package/docs/TransactionSource.md +1 -1
- package/docs/TransactionTokeApproval.md +3 -2
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +7 -7
- package/docs/TransferDestination.md +2 -2
- package/docs/TriggerTestWebhookEvent201Response.md +9 -0
- package/docs/TriggerTestWebhookEventRequest.md +10 -0
- package/docs/WalletsApi.md +1 -1
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +4 -4
- package/docs/WalletsSmartContractWalletsApi.md +63 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +2 -2
- package/dist/model/BookkeepingRecord.js +0 -243
- package/docs/BookkeepingRecord.md +0 -19
- package/docs/BookkeepingSummary.md +0 -12
- package/docs/WalletBalanceSnapshot.md +0 -10
- package/docs/WalletBalanceSnapshotRecord.md +0 -13
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Cobo Wallet as a Service 2.0
|
|
19
|
+
*
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The ApiLogDetails model module.
|
|
29
|
+
* @module model/ApiLogDetails
|
|
30
|
+
*/
|
|
31
|
+
var ApiLogDetails = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>ApiLogDetails</code>.
|
|
34
|
+
* The information about an API log.
|
|
35
|
+
* @alias module:model/ApiLogDetails
|
|
36
|
+
* @param log_id {String} A unique identifier for the API log, used for tracking.
|
|
37
|
+
* @param api_method {String} The HTTP method used for the API request.
|
|
38
|
+
* @param api_endpoint {String} The endpoint of the API request.
|
|
39
|
+
* @param status_code {Number} The HTTP status code returned by the API request.
|
|
40
|
+
* @param ip_address {String} The client's IP address that made the API request.
|
|
41
|
+
* @param request_timestamp {Number} The time when the API request was created, in Unix timestamp format, measured in milliseconds.
|
|
42
|
+
* @param api_key {String} The API key used to call the API. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key).
|
|
43
|
+
* @param response_body {String} The response body of the API request.
|
|
44
|
+
* @param query_params {String} The query parameters of the API request.
|
|
45
|
+
* @param request_body {String} The request body of the API request.
|
|
46
|
+
*/
|
|
47
|
+
function ApiLogDetails(log_id, api_method, api_endpoint, status_code, ip_address, request_timestamp, api_key, response_body, query_params, request_body) {
|
|
48
|
+
_classCallCheck(this, ApiLogDetails);
|
|
49
|
+
ApiLogDetails.initialize(this, log_id, api_method, api_endpoint, status_code, ip_address, request_timestamp, api_key, response_body, query_params, request_body);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Initializes the fields of this object.
|
|
54
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
55
|
+
* Only for internal use.
|
|
56
|
+
*/
|
|
57
|
+
return _createClass(ApiLogDetails, null, [{
|
|
58
|
+
key: "initialize",
|
|
59
|
+
value: function initialize(obj, log_id, api_method, api_endpoint, status_code, ip_address, request_timestamp, api_key, response_body, query_params, request_body) {
|
|
60
|
+
obj['log_id'] = log_id;
|
|
61
|
+
obj['api_method'] = api_method;
|
|
62
|
+
obj['api_endpoint'] = api_endpoint;
|
|
63
|
+
obj['status_code'] = status_code;
|
|
64
|
+
obj['ip_address'] = ip_address;
|
|
65
|
+
obj['request_timestamp'] = request_timestamp;
|
|
66
|
+
obj['api_key'] = api_key;
|
|
67
|
+
obj['response_body'] = response_body;
|
|
68
|
+
obj['query_params'] = query_params;
|
|
69
|
+
obj['request_body'] = request_body;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Constructs a <code>ApiLogDetails</code> from a plain JavaScript object, optionally creating a new instance.
|
|
74
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
75
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
76
|
+
* @param {module:model/ApiLogDetails} obj Optional instance to populate.
|
|
77
|
+
* @return {module:model/ApiLogDetails} The populated <code>ApiLogDetails</code> instance.
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "constructFromObject",
|
|
81
|
+
value: function constructFromObject(data, obj) {
|
|
82
|
+
if (data) {
|
|
83
|
+
obj = obj || new ApiLogDetails();
|
|
84
|
+
if (data.hasOwnProperty('log_id')) {
|
|
85
|
+
obj['log_id'] = _ApiClient["default"].convertToType(data['log_id'], 'String');
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('api_method')) {
|
|
88
|
+
obj['api_method'] = _ApiClient["default"].convertToType(data['api_method'], 'String');
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('api_endpoint')) {
|
|
91
|
+
obj['api_endpoint'] = _ApiClient["default"].convertToType(data['api_endpoint'], 'String');
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('status_code')) {
|
|
94
|
+
obj['status_code'] = _ApiClient["default"].convertToType(data['status_code'], 'Number');
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('ip_address')) {
|
|
97
|
+
obj['ip_address'] = _ApiClient["default"].convertToType(data['ip_address'], 'String');
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('request_timestamp')) {
|
|
100
|
+
obj['request_timestamp'] = _ApiClient["default"].convertToType(data['request_timestamp'], 'Number');
|
|
101
|
+
}
|
|
102
|
+
if (data.hasOwnProperty('api_key')) {
|
|
103
|
+
obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String');
|
|
104
|
+
}
|
|
105
|
+
if (data.hasOwnProperty('response_body')) {
|
|
106
|
+
obj['response_body'] = _ApiClient["default"].convertToType(data['response_body'], 'String');
|
|
107
|
+
}
|
|
108
|
+
if (data.hasOwnProperty('query_params')) {
|
|
109
|
+
obj['query_params'] = _ApiClient["default"].convertToType(data['query_params'], 'String');
|
|
110
|
+
}
|
|
111
|
+
if (data.hasOwnProperty('request_body')) {
|
|
112
|
+
obj['request_body'] = _ApiClient["default"].convertToType(data['request_body'], 'String');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return obj;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Validates the JSON data with respect to <code>ApiLogDetails</code>.
|
|
120
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
121
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApiLogDetails</code>.
|
|
122
|
+
*/
|
|
123
|
+
}, {
|
|
124
|
+
key: "validateJSON",
|
|
125
|
+
value: function validateJSON(data) {
|
|
126
|
+
// check to make sure all required properties are present in the JSON string
|
|
127
|
+
var _iterator = _createForOfIteratorHelper(ApiLogDetails.RequiredProperties),
|
|
128
|
+
_step;
|
|
129
|
+
try {
|
|
130
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
131
|
+
var property = _step.value;
|
|
132
|
+
if (!data.hasOwnProperty(property)) {
|
|
133
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// ensure the json data is a string
|
|
137
|
+
} catch (err) {
|
|
138
|
+
_iterator.e(err);
|
|
139
|
+
} finally {
|
|
140
|
+
_iterator.f();
|
|
141
|
+
}
|
|
142
|
+
if (data['log_id'] && !(typeof data['log_id'] === 'string' || data['log_id'] instanceof String)) {
|
|
143
|
+
throw new Error("Expected the field `log_id` to be a primitive type in the JSON string but got " + data['log_id']);
|
|
144
|
+
}
|
|
145
|
+
// ensure the json data is a string
|
|
146
|
+
if (data['api_method'] && !(typeof data['api_method'] === 'string' || data['api_method'] instanceof String)) {
|
|
147
|
+
throw new Error("Expected the field `api_method` to be a primitive type in the JSON string but got " + data['api_method']);
|
|
148
|
+
}
|
|
149
|
+
// ensure the json data is a string
|
|
150
|
+
if (data['api_endpoint'] && !(typeof data['api_endpoint'] === 'string' || data['api_endpoint'] instanceof String)) {
|
|
151
|
+
throw new Error("Expected the field `api_endpoint` to be a primitive type in the JSON string but got " + data['api_endpoint']);
|
|
152
|
+
}
|
|
153
|
+
// ensure the json data is a string
|
|
154
|
+
if (data['ip_address'] && !(typeof data['ip_address'] === 'string' || data['ip_address'] instanceof String)) {
|
|
155
|
+
throw new Error("Expected the field `ip_address` to be a primitive type in the JSON string but got " + data['ip_address']);
|
|
156
|
+
}
|
|
157
|
+
// ensure the json data is a string
|
|
158
|
+
if (data['api_key'] && !(typeof data['api_key'] === 'string' || data['api_key'] instanceof String)) {
|
|
159
|
+
throw new Error("Expected the field `api_key` to be a primitive type in the JSON string but got " + data['api_key']);
|
|
160
|
+
}
|
|
161
|
+
// ensure the json data is a string
|
|
162
|
+
if (data['response_body'] && !(typeof data['response_body'] === 'string' || data['response_body'] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `response_body` to be a primitive type in the JSON string but got " + data['response_body']);
|
|
164
|
+
}
|
|
165
|
+
// ensure the json data is a string
|
|
166
|
+
if (data['query_params'] && !(typeof data['query_params'] === 'string' || data['query_params'] instanceof String)) {
|
|
167
|
+
throw new Error("Expected the field `query_params` to be a primitive type in the JSON string but got " + data['query_params']);
|
|
168
|
+
}
|
|
169
|
+
// ensure the json data is a string
|
|
170
|
+
if (data['request_body'] && !(typeof data['request_body'] === 'string' || data['request_body'] instanceof String)) {
|
|
171
|
+
throw new Error("Expected the field `request_body` to be a primitive type in the JSON string but got " + data['request_body']);
|
|
172
|
+
}
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
}]);
|
|
176
|
+
}();
|
|
177
|
+
ApiLogDetails.RequiredProperties = ["log_id", "api_method", "api_endpoint", "status_code", "ip_address", "request_timestamp", "api_key", "response_body", "query_params", "request_body"];
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* A unique identifier for the API log, used for tracking.
|
|
181
|
+
* @member {String} log_id
|
|
182
|
+
*/
|
|
183
|
+
ApiLogDetails.prototype['log_id'] = undefined;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The HTTP method used for the API request.
|
|
187
|
+
* @member {String} api_method
|
|
188
|
+
*/
|
|
189
|
+
ApiLogDetails.prototype['api_method'] = undefined;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The endpoint of the API request.
|
|
193
|
+
* @member {String} api_endpoint
|
|
194
|
+
*/
|
|
195
|
+
ApiLogDetails.prototype['api_endpoint'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The HTTP status code returned by the API request.
|
|
199
|
+
* @member {Number} status_code
|
|
200
|
+
*/
|
|
201
|
+
ApiLogDetails.prototype['status_code'] = undefined;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The client's IP address that made the API request.
|
|
205
|
+
* @member {String} ip_address
|
|
206
|
+
*/
|
|
207
|
+
ApiLogDetails.prototype['ip_address'] = undefined;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* The time when the API request was created, in Unix timestamp format, measured in milliseconds.
|
|
211
|
+
* @member {Number} request_timestamp
|
|
212
|
+
*/
|
|
213
|
+
ApiLogDetails.prototype['request_timestamp'] = undefined;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The API key used to call the API. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key).
|
|
217
|
+
* @member {String} api_key
|
|
218
|
+
*/
|
|
219
|
+
ApiLogDetails.prototype['api_key'] = undefined;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The response body of the API request.
|
|
223
|
+
* @member {String} response_body
|
|
224
|
+
*/
|
|
225
|
+
ApiLogDetails.prototype['response_body'] = undefined;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The query parameters of the API request.
|
|
229
|
+
* @member {String} query_params
|
|
230
|
+
*/
|
|
231
|
+
ApiLogDetails.prototype['query_params'] = undefined;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The request body of the API request.
|
|
235
|
+
* @member {String} request_body
|
|
236
|
+
*/
|
|
237
|
+
ApiLogDetails.prototype['request_body'] = undefined;
|
|
238
|
+
var _default = exports["default"] = ApiLogDetails;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Cobo Wallet as a Service 2.0
|
|
19
|
+
*
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The ApiLogSummary model module.
|
|
29
|
+
* @module model/ApiLogSummary
|
|
30
|
+
*/
|
|
31
|
+
var ApiLogSummary = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>ApiLogSummary</code>.
|
|
34
|
+
* The information about an API log.
|
|
35
|
+
* @alias module:model/ApiLogSummary
|
|
36
|
+
* @param api_method {String} The HTTP method used for the API request.
|
|
37
|
+
* @param api_endpoint {String} The endpoint of the API request.
|
|
38
|
+
* @param request_timestamp {Number} The time when the API request was created, in Unix timestamp format, measured in milliseconds.
|
|
39
|
+
* @param status_code {Number} The HTTP status code returned by the API request.
|
|
40
|
+
*/
|
|
41
|
+
function ApiLogSummary(api_method, api_endpoint, request_timestamp, status_code) {
|
|
42
|
+
_classCallCheck(this, ApiLogSummary);
|
|
43
|
+
ApiLogSummary.initialize(this, api_method, api_endpoint, request_timestamp, status_code);
|
|
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(ApiLogSummary, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, api_method, api_endpoint, request_timestamp, status_code) {
|
|
54
|
+
obj['api_method'] = api_method;
|
|
55
|
+
obj['api_endpoint'] = api_endpoint;
|
|
56
|
+
obj['request_timestamp'] = request_timestamp;
|
|
57
|
+
obj['status_code'] = status_code;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a <code>ApiLogSummary</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
63
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
+
* @param {module:model/ApiLogSummary} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/ApiLogSummary} The populated <code>ApiLogSummary</code> instance.
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "constructFromObject",
|
|
69
|
+
value: function constructFromObject(data, obj) {
|
|
70
|
+
if (data) {
|
|
71
|
+
obj = obj || new ApiLogSummary();
|
|
72
|
+
if (data.hasOwnProperty('log_id')) {
|
|
73
|
+
obj['log_id'] = _ApiClient["default"].convertToType(data['log_id'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('api_method')) {
|
|
76
|
+
obj['api_method'] = _ApiClient["default"].convertToType(data['api_method'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('api_endpoint')) {
|
|
79
|
+
obj['api_endpoint'] = _ApiClient["default"].convertToType(data['api_endpoint'], 'String');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('request_timestamp')) {
|
|
82
|
+
obj['request_timestamp'] = _ApiClient["default"].convertToType(data['request_timestamp'], 'Number');
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('status_code')) {
|
|
85
|
+
obj['status_code'] = _ApiClient["default"].convertToType(data['status_code'], 'Number');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Validates the JSON data with respect to <code>ApiLogSummary</code>.
|
|
93
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
94
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApiLogSummary</code>.
|
|
95
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "validateJSON",
|
|
98
|
+
value: function validateJSON(data) {
|
|
99
|
+
// check to make sure all required properties are present in the JSON string
|
|
100
|
+
var _iterator = _createForOfIteratorHelper(ApiLogSummary.RequiredProperties),
|
|
101
|
+
_step;
|
|
102
|
+
try {
|
|
103
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
104
|
+
var property = _step.value;
|
|
105
|
+
if (!data.hasOwnProperty(property)) {
|
|
106
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
} catch (err) {
|
|
111
|
+
_iterator.e(err);
|
|
112
|
+
} finally {
|
|
113
|
+
_iterator.f();
|
|
114
|
+
}
|
|
115
|
+
if (data['log_id'] && !(typeof data['log_id'] === 'string' || data['log_id'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `log_id` to be a primitive type in the JSON string but got " + data['log_id']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
if (data['api_method'] && !(typeof data['api_method'] === 'string' || data['api_method'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `api_method` to be a primitive type in the JSON string but got " + data['api_method']);
|
|
121
|
+
}
|
|
122
|
+
// ensure the json data is a string
|
|
123
|
+
if (data['api_endpoint'] && !(typeof data['api_endpoint'] === 'string' || data['api_endpoint'] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `api_endpoint` to be a primitive type in the JSON string but got " + data['api_endpoint']);
|
|
125
|
+
}
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
}]);
|
|
129
|
+
}();
|
|
130
|
+
ApiLogSummary.RequiredProperties = ["api_method", "api_endpoint", "request_timestamp", "status_code"];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* A unique identifier for the API log, used for tracking.
|
|
134
|
+
* @member {String} log_id
|
|
135
|
+
*/
|
|
136
|
+
ApiLogSummary.prototype['log_id'] = undefined;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The HTTP method used for the API request.
|
|
140
|
+
* @member {String} api_method
|
|
141
|
+
*/
|
|
142
|
+
ApiLogSummary.prototype['api_method'] = undefined;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The endpoint of the API request.
|
|
146
|
+
* @member {String} api_endpoint
|
|
147
|
+
*/
|
|
148
|
+
ApiLogSummary.prototype['api_endpoint'] = undefined;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The time when the API request was created, in Unix timestamp format, measured in milliseconds.
|
|
152
|
+
* @member {Number} request_timestamp
|
|
153
|
+
*/
|
|
154
|
+
ApiLogSummary.prototype['request_timestamp'] = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The HTTP status code returned by the API request.
|
|
158
|
+
* @member {Number} status_code
|
|
159
|
+
*/
|
|
160
|
+
ApiLogSummary.prototype['status_code'] = undefined;
|
|
161
|
+
var _default = exports["default"] = ApiLogSummary;
|
|
@@ -89,7 +89,7 @@ var CheckLoopTransfers200ResponseInner = /*#__PURE__*/function () {
|
|
|
89
89
|
CheckLoopTransfers200ResponseInner.prototype['address'] = undefined;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* Whether the transaction from the given source to the given destination address can be executed as a Loop transfer. - `true`: The transaction can be executed as a Loop transfer. - `false`: The transaction cannot be executed as a Loop transfer.
|
|
92
|
+
* Whether the transaction from the given source to the given destination address can be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction can be executed as a Cobo Loop transfer. - `false`: The transaction cannot be executed as a Cobo Loop transfer.
|
|
93
93
|
* @member {Boolean} is_loop
|
|
94
94
|
*/
|
|
95
95
|
CheckLoopTransfers200ResponseInner.prototype['is_loop'] = undefined;
|
|
@@ -154,13 +154,13 @@ _defineProperty(CoboSafeDelegate, "fromJSON", function (json_string) {
|
|
|
154
154
|
CoboSafeDelegate.prototype['delegate_type'] = undefined;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
* The wallet ID of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}).
|
|
157
|
+
* The wallet ID of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
|
|
158
158
|
* @member {String} wallet_id
|
|
159
159
|
*/
|
|
160
160
|
CoboSafeDelegate.prototype['wallet_id'] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
|
-
* The wallet address of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}).
|
|
163
|
+
* The wallet address of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
|
|
164
164
|
* @member {String} address
|
|
165
165
|
*/
|
|
166
166
|
CoboSafeDelegate.prototype['address'] = undefined;
|
|
@@ -33,7 +33,7 @@ var ErrorResponse = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>ErrorResponse</code>.
|
|
34
34
|
* The response of a failed request.
|
|
35
35
|
* @alias module:model/ErrorResponse
|
|
36
|
-
* @param error_code {Number} The error code.
|
|
36
|
+
* @param error_code {Number} The error code. Refer to [Error codes and status codes](/v2/api-references/error-codes) for more details.
|
|
37
37
|
* @param error_message {String} The error description.
|
|
38
38
|
* @param error_id {String} The error log ID. You can provide the error ID when submitting a ticket to help Cobo to locate the issue.
|
|
39
39
|
*/
|
|
@@ -118,7 +118,7 @@ var ErrorResponse = /*#__PURE__*/function () {
|
|
|
118
118
|
ErrorResponse.RequiredProperties = ["error_code", "error_message", "error_id"];
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* The error code.
|
|
121
|
+
* The error code. Refer to [Error codes and status codes](/v2/api-references/error-codes) for more details.
|
|
122
122
|
* @member {Number} error_code
|
|
123
123
|
*/
|
|
124
124
|
ErrorResponse.prototype['error_code'] = undefined;
|
|
@@ -37,7 +37,7 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>EstimateContractCallFeeParams</code>.
|
|
38
38
|
* The information about a transaction that interacts with a smart contract
|
|
39
39
|
* @alias module:model/EstimateContractCallFeeParams
|
|
40
|
-
* @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
40
|
+
* @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
|
|
41
41
|
* @param request_type {module:model/EstimateFeeRequestType}
|
|
42
42
|
* @param chain_id {String} The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
|
|
43
43
|
* @param source {module:model/ContractCallSource}
|
|
@@ -149,7 +149,7 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
|
|
|
149
149
|
EstimateContractCallFeeParams.RequiredProperties = ["request_id", "request_type", "chain_id", "source", "destination"];
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
152
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
|
|
153
153
|
* @member {String} request_id
|
|
154
154
|
*/
|
|
155
155
|
EstimateContractCallFeeParams.prototype['request_id'] = undefined;
|
|
@@ -167,7 +167,7 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
167
167
|
}]);
|
|
168
168
|
}();
|
|
169
169
|
/**
|
|
170
|
-
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
170
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
|
|
171
171
|
* @member {String} request_id
|
|
172
172
|
*/
|
|
173
173
|
_EstimateFeeParams = EstimateFeeParams;
|
|
@@ -37,7 +37,7 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>EstimateTransferFeeParams</code>.
|
|
38
38
|
* The information about a token transfer.
|
|
39
39
|
* @alias module:model/EstimateTransferFeeParams
|
|
40
|
-
* @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
40
|
+
* @param request_id {String} The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
|
|
41
41
|
* @param request_type {module:model/EstimateFeeRequestType}
|
|
42
42
|
* @param source {module:model/TransferSource}
|
|
43
43
|
* @param token_id {String} The token ID of the transferred 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).
|
|
@@ -149,7 +149,7 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
|
|
|
149
149
|
EstimateTransferFeeParams.RequiredProperties = ["request_id", "request_type", "source", "token_id", "destination"];
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
152
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
|
|
153
153
|
* @member {String} request_id
|
|
154
154
|
*/
|
|
155
155
|
EstimateTransferFeeParams.prototype['request_id'] = undefined;
|
|
@@ -241,7 +241,7 @@ EstimatedFee.prototype['fee_type'] = undefined;
|
|
|
241
241
|
EstimatedFee.prototype['token_id'] = undefined;
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
* Whether the transaction
|
|
244
|
+
* Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
|
|
245
245
|
* @member {Boolean} is_loop
|
|
246
246
|
*/
|
|
247
247
|
EstimatedFee.prototype['is_loop'] = undefined;
|
|
@@ -143,7 +143,7 @@ EstimatedFixedFee.prototype['fee_type'] = undefined;
|
|
|
143
143
|
EstimatedFixedFee.prototype['token_id'] = undefined;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* Whether the transaction
|
|
146
|
+
* Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer.
|
|
147
147
|
* @member {Boolean} is_loop
|
|
148
148
|
*/
|
|
149
149
|
EstimatedFixedFee.prototype['is_loop'] = undefined;
|
package/dist/model/ExchangeId.js
CHANGED
|
@@ -60,6 +60,16 @@ var ExchangeId = exports["default"] = /*#__PURE__*/function () {
|
|
|
60
60
|
* @const
|
|
61
61
|
*/
|
|
62
62
|
_defineProperty(this, "bitget", "bitget");
|
|
63
|
+
/**
|
|
64
|
+
* value: "bitmart"
|
|
65
|
+
* @const
|
|
66
|
+
*/
|
|
67
|
+
_defineProperty(this, "bitmart", "bitmart");
|
|
68
|
+
/**
|
|
69
|
+
* value: "bitfinex"
|
|
70
|
+
* @const
|
|
71
|
+
*/
|
|
72
|
+
_defineProperty(this, "bitfinex", "bitfinex");
|
|
63
73
|
/**
|
|
64
74
|
* value: "unknown_default_open_api"
|
|
65
75
|
* @const
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _TokenAssetModelType = _interopRequireDefault(require("./TokenAssetModelType"));
|
|
8
9
|
var _TokenInfo = _interopRequireDefault(require("./TokenInfo"));
|
|
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); }
|
|
@@ -108,6 +109,9 @@ var ExtendedTokenInfo = /*#__PURE__*/function () {
|
|
|
108
109
|
if (data.hasOwnProperty('custodial_minimum_deposit_threshold')) {
|
|
109
110
|
obj['custodial_minimum_deposit_threshold'] = _ApiClient["default"].convertToType(data['custodial_minimum_deposit_threshold'], 'String');
|
|
110
111
|
}
|
|
112
|
+
if (data.hasOwnProperty('asset_model_type')) {
|
|
113
|
+
obj['asset_model_type'] = _TokenAssetModelType["default"].constructFromObject(data['asset_model_type']);
|
|
114
|
+
}
|
|
111
115
|
}
|
|
112
116
|
return obj;
|
|
113
117
|
}
|
|
@@ -250,17 +254,22 @@ ExtendedTokenInfo.prototype['can_deposit'] = false;
|
|
|
250
254
|
ExtendedTokenInfo.prototype['can_withdraw'] = false;
|
|
251
255
|
|
|
252
256
|
/**
|
|
253
|
-
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Loop
|
|
257
|
+
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfers do not have this limitation.
|
|
254
258
|
* @member {String} dust_threshold
|
|
255
259
|
*/
|
|
256
260
|
ExtendedTokenInfo.prototype['dust_threshold'] = undefined;
|
|
257
261
|
|
|
258
262
|
/**
|
|
259
|
-
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Loop
|
|
263
|
+
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop)transfers do not have this limitation.
|
|
260
264
|
* @member {String} custodial_minimum_deposit_threshold
|
|
261
265
|
*/
|
|
262
266
|
ExtendedTokenInfo.prototype['custodial_minimum_deposit_threshold'] = undefined;
|
|
263
267
|
|
|
268
|
+
/**
|
|
269
|
+
* @member {module:model/TokenAssetModelType} asset_model_type
|
|
270
|
+
*/
|
|
271
|
+
ExtendedTokenInfo.prototype['asset_model_type'] = undefined;
|
|
272
|
+
|
|
264
273
|
// Implement TokenInfo interface:
|
|
265
274
|
/**
|
|
266
275
|
* 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).
|
|
@@ -318,13 +327,17 @@ _TokenInfo["default"].prototype['can_deposit'] = undefined;
|
|
|
318
327
|
*/
|
|
319
328
|
_TokenInfo["default"].prototype['can_withdraw'] = undefined;
|
|
320
329
|
/**
|
|
321
|
-
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Loop
|
|
330
|
+
* The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfers do not have this limitation.
|
|
322
331
|
* @member {String} dust_threshold
|
|
323
332
|
*/
|
|
324
333
|
_TokenInfo["default"].prototype['dust_threshold'] = undefined;
|
|
325
334
|
/**
|
|
326
|
-
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Loop
|
|
335
|
+
* The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events. Note: [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop)transfers do not have this limitation.
|
|
327
336
|
* @member {String} custodial_minimum_deposit_threshold
|
|
328
337
|
*/
|
|
329
338
|
_TokenInfo["default"].prototype['custodial_minimum_deposit_threshold'] = undefined;
|
|
339
|
+
/**
|
|
340
|
+
* @member {module:model/TokenAssetModelType} asset_model_type
|
|
341
|
+
*/
|
|
342
|
+
_TokenInfo["default"].prototype['asset_model_type'] = undefined;
|
|
330
343
|
var _default = exports["default"] = ExtendedTokenInfo;
|