@cobo/cobo-waas2 1.9.0 → 1.10.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 +40 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/DevelopersApi.js +4 -4
- package/dist/api/StakingsApi.js +400 -6
- package/dist/api/SwapsApi.js +360 -0
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/index.js +164 -3
- package/dist/model/AddressesEventData.js +4 -4
- package/dist/model/AddressesEventDataAllOfAddresses.js +295 -0
- package/dist/model/BTCEIP191MessageSignDestination.js +1 -1
- package/dist/model/BabylonAirdropPop.js +186 -0
- package/dist/model/BabylonAirdropRegistration.js +172 -0
- package/dist/model/BabylonEligibleAirdrop.js +157 -0
- package/dist/model/BabylonRegistrationRequestStatus.js +66 -0
- package/dist/model/BabylonRegistrationStatus.js +66 -0
- package/dist/model/BabylonStakingRegistration.js +185 -0
- package/dist/model/ContractCallSource.js +6 -0
- package/dist/model/CreateBabylonAirdropRegistration201Response.js +87 -0
- package/dist/model/CreateBabylonAirdropRegistrationRequest.js +105 -0
- package/dist/model/CreateBabylonStakingRegistration201Response.js +87 -0
- package/dist/model/CreateBabylonStakingRegistrationRequest.js +103 -0
- package/dist/model/CreateSwapActivityRequest.js +153 -0
- package/dist/model/CreateSwapQuote201Response.js +264 -0
- package/dist/model/CreateSwapQuoteRequest.js +166 -0
- package/dist/model/ListBabylonAirdropRegistrations200Response.js +123 -0
- package/dist/model/ListBabylonEligibleAirdrops200Response.js +123 -0
- package/dist/model/ListBabylonEligibleStakings200Response.js +123 -0
- package/dist/model/ListBabylonEligibleStakings200ResponseDataInner.js +141 -0
- package/dist/model/ListBabylonStakingRegistrations200Response.js +123 -0
- package/dist/model/{SwapSummary.js → ListEnableTokenPairs200Response.js} +51 -49
- package/dist/model/ListSwapActivities200Response.js +123 -0
- package/dist/model/MessageSignSource.js +6 -0
- package/dist/model/MpcContractCallSource.js +16 -0
- package/dist/model/MpcMessageSignSource.js +16 -0
- package/dist/model/MpcSigningGroup.js +27 -4
- package/dist/model/MpcTransferSource.js +16 -0
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +2 -2
- package/dist/model/StakingPoolId.js +30 -0
- package/dist/model/StakingPoolType.js +15 -0
- package/dist/model/SwapQuote.js +203 -0
- package/dist/model/TransactionDestination.js +4 -4
- package/dist/model/TransactionRawTxInfo.js +16 -0
- package/dist/model/TransactionRbfSource.js +6 -0
- package/dist/model/TransactionUtxoChange.js +101 -0
- package/dist/model/TransferSource.js +6 -0
- package/dist/model/WebhookEventData.js +2 -2
- package/docs/AddressesEventData.md +1 -1
- package/docs/AddressesEventDataAllOfAddresses.md +19 -0
- package/docs/BabylonAirdropPop.md +14 -0
- package/docs/BabylonAirdropRegistration.md +16 -0
- package/docs/BabylonEligibleAirdrop.md +14 -0
- package/docs/BabylonRegistrationRequestStatus.md +14 -0
- package/docs/BabylonRegistrationStatus.md +14 -0
- package/docs/BabylonStakingRegistration.md +17 -0
- package/docs/ContractCallSource.md +1 -0
- package/docs/CreateBabylonAirdropRegistration201Response.md +9 -0
- package/docs/CreateBabylonAirdropRegistrationRequest.md +10 -0
- package/docs/CreateBabylonStakingRegistration201Response.md +9 -0
- package/docs/CreateBabylonStakingRegistrationRequest.md +10 -0
- package/docs/CreateSwapActivityRequest.md +12 -0
- package/docs/CreateSwapQuote201Response.md +17 -0
- package/docs/CreateSwapQuoteRequest.md +13 -0
- package/docs/DevelopersApi.md +2 -2
- package/docs/ListBabylonAirdropRegistrations200Response.md +10 -0
- package/docs/ListBabylonEligibleAirdrops200Response.md +10 -0
- package/docs/ListBabylonEligibleStakings200Response.md +10 -0
- package/docs/ListBabylonEligibleStakings200ResponseDataInner.md +13 -0
- package/docs/ListBabylonStakingRegistrations200Response.md +10 -0
- package/docs/ListEnableTokenPairs200Response.md +10 -0
- package/docs/ListSwapActivities200Response.md +10 -0
- package/docs/MessageSignSource.md +1 -0
- package/docs/MpcContractCallSource.md +1 -0
- package/docs/MpcMessageSignSource.md +1 -0
- package/docs/MpcSigningGroup.md +1 -1
- package/docs/MpcTransferSource.md +1 -0
- package/docs/QueryGuardPubkey200ResponseAddressesInner.md +1 -1
- package/docs/StakingPoolId.md +12 -0
- package/docs/StakingPoolType.md +6 -0
- package/docs/StakingsApi.md +449 -1
- package/docs/SwapQuote.md +16 -0
- package/docs/SwapsApi.md +348 -0
- package/docs/TransactionRawTxInfo.md +1 -0
- package/docs/TransactionRbfSource.md +1 -0
- package/docs/TransactionUtxoChange.md +10 -0
- package/docs/TransactionsApi.md +2 -2
- package/docs/TransferSource.md +1 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +2 -2
- package/docs/SwapSummary.md +0 -10
|
@@ -0,0 +1,203 @@
|
|
|
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 SwapQuote model module.
|
|
29
|
+
* @module model/SwapQuote
|
|
30
|
+
*/
|
|
31
|
+
var SwapQuote = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>SwapQuote</code>.
|
|
34
|
+
* @alias module:model/SwapQuote
|
|
35
|
+
* @param pay_amount {String} The amount of tokens to pay.
|
|
36
|
+
* @param receive_amount {String} The amount of tokens to receive.
|
|
37
|
+
* @param fee_amount {String} The amount of tokens to pay for fee.
|
|
38
|
+
* @param quote_expired_timestamp {Number} The time when the quote will expire, in Unix timestamp format, measured in milliseconds.
|
|
39
|
+
*/
|
|
40
|
+
function SwapQuote(pay_amount, receive_amount, fee_amount, quote_expired_timestamp) {
|
|
41
|
+
_classCallCheck(this, SwapQuote);
|
|
42
|
+
SwapQuote.initialize(this, pay_amount, receive_amount, fee_amount, quote_expired_timestamp);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(SwapQuote, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, pay_amount, receive_amount, fee_amount, quote_expired_timestamp) {
|
|
53
|
+
obj['pay_amount'] = pay_amount;
|
|
54
|
+
obj['receive_amount'] = receive_amount;
|
|
55
|
+
obj['fee_amount'] = fee_amount;
|
|
56
|
+
obj['quote_expired_timestamp'] = quote_expired_timestamp;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Constructs a <code>SwapQuote</code> from a plain JavaScript object, optionally creating a new instance.
|
|
61
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
62
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
63
|
+
* @param {module:model/SwapQuote} obj Optional instance to populate.
|
|
64
|
+
* @return {module:model/SwapQuote} The populated <code>SwapQuote</code> instance.
|
|
65
|
+
*/
|
|
66
|
+
}, {
|
|
67
|
+
key: "constructFromObject",
|
|
68
|
+
value: function constructFromObject(data, obj) {
|
|
69
|
+
if (data) {
|
|
70
|
+
obj = obj || new SwapQuote();
|
|
71
|
+
if (data.hasOwnProperty('pay_amount')) {
|
|
72
|
+
obj['pay_amount'] = _ApiClient["default"].convertToType(data['pay_amount'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('receive_amount')) {
|
|
75
|
+
obj['receive_amount'] = _ApiClient["default"].convertToType(data['receive_amount'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('fee_amount')) {
|
|
78
|
+
obj['fee_amount'] = _ApiClient["default"].convertToType(data['fee_amount'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('min_pay_amount')) {
|
|
81
|
+
obj['min_pay_amount'] = _ApiClient["default"].convertToType(data['min_pay_amount'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('max_pay_amount')) {
|
|
84
|
+
obj['max_pay_amount'] = _ApiClient["default"].convertToType(data['max_pay_amount'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('min_receive_amount')) {
|
|
87
|
+
obj['min_receive_amount'] = _ApiClient["default"].convertToType(data['min_receive_amount'], 'String');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('max_receive_amount')) {
|
|
90
|
+
obj['max_receive_amount'] = _ApiClient["default"].convertToType(data['max_receive_amount'], 'String');
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('quote_expired_timestamp')) {
|
|
93
|
+
obj['quote_expired_timestamp'] = _ApiClient["default"].convertToType(data['quote_expired_timestamp'], 'Number');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return obj;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Validates the JSON data with respect to <code>SwapQuote</code>.
|
|
101
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
102
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SwapQuote</code>.
|
|
103
|
+
*/
|
|
104
|
+
}, {
|
|
105
|
+
key: "validateJSON",
|
|
106
|
+
value: function validateJSON(data) {
|
|
107
|
+
// check to make sure all required properties are present in the JSON string
|
|
108
|
+
var _iterator = _createForOfIteratorHelper(SwapQuote.RequiredProperties),
|
|
109
|
+
_step;
|
|
110
|
+
try {
|
|
111
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
112
|
+
var property = _step.value;
|
|
113
|
+
if (!data.hasOwnProperty(property)) {
|
|
114
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// ensure the json data is a string
|
|
118
|
+
} catch (err) {
|
|
119
|
+
_iterator.e(err);
|
|
120
|
+
} finally {
|
|
121
|
+
_iterator.f();
|
|
122
|
+
}
|
|
123
|
+
if (data['pay_amount'] && !(typeof data['pay_amount'] === 'string' || data['pay_amount'] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `pay_amount` to be a primitive type in the JSON string but got " + data['pay_amount']);
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
if (data['receive_amount'] && !(typeof data['receive_amount'] === 'string' || data['receive_amount'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `receive_amount` to be a primitive type in the JSON string but got " + data['receive_amount']);
|
|
129
|
+
}
|
|
130
|
+
// ensure the json data is a string
|
|
131
|
+
if (data['fee_amount'] && !(typeof data['fee_amount'] === 'string' || data['fee_amount'] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `fee_amount` to be a primitive type in the JSON string but got " + data['fee_amount']);
|
|
133
|
+
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['min_pay_amount'] && !(typeof data['min_pay_amount'] === 'string' || data['min_pay_amount'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `min_pay_amount` to be a primitive type in the JSON string but got " + data['min_pay_amount']);
|
|
137
|
+
}
|
|
138
|
+
// ensure the json data is a string
|
|
139
|
+
if (data['max_pay_amount'] && !(typeof data['max_pay_amount'] === 'string' || data['max_pay_amount'] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `max_pay_amount` to be a primitive type in the JSON string but got " + data['max_pay_amount']);
|
|
141
|
+
}
|
|
142
|
+
// ensure the json data is a string
|
|
143
|
+
if (data['min_receive_amount'] && !(typeof data['min_receive_amount'] === 'string' || data['min_receive_amount'] instanceof String)) {
|
|
144
|
+
throw new Error("Expected the field `min_receive_amount` to be a primitive type in the JSON string but got " + data['min_receive_amount']);
|
|
145
|
+
}
|
|
146
|
+
// ensure the json data is a string
|
|
147
|
+
if (data['max_receive_amount'] && !(typeof data['max_receive_amount'] === 'string' || data['max_receive_amount'] instanceof String)) {
|
|
148
|
+
throw new Error("Expected the field `max_receive_amount` to be a primitive type in the JSON string but got " + data['max_receive_amount']);
|
|
149
|
+
}
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
}]);
|
|
153
|
+
}();
|
|
154
|
+
SwapQuote.RequiredProperties = ["pay_amount", "receive_amount", "fee_amount", "quote_expired_timestamp"];
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The amount of tokens to pay.
|
|
158
|
+
* @member {String} pay_amount
|
|
159
|
+
*/
|
|
160
|
+
SwapQuote.prototype['pay_amount'] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The amount of tokens to receive.
|
|
164
|
+
* @member {String} receive_amount
|
|
165
|
+
*/
|
|
166
|
+
SwapQuote.prototype['receive_amount'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The amount of tokens to pay for fee.
|
|
170
|
+
* @member {String} fee_amount
|
|
171
|
+
*/
|
|
172
|
+
SwapQuote.prototype['fee_amount'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The minimum amount of tokens to pay.
|
|
176
|
+
* @member {String} min_pay_amount
|
|
177
|
+
*/
|
|
178
|
+
SwapQuote.prototype['min_pay_amount'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The maximum amount of tokens to pay.
|
|
182
|
+
* @member {String} max_pay_amount
|
|
183
|
+
*/
|
|
184
|
+
SwapQuote.prototype['max_pay_amount'] = undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The minimum amount of tokens to receive.
|
|
188
|
+
* @member {String} min_receive_amount
|
|
189
|
+
*/
|
|
190
|
+
SwapQuote.prototype['min_receive_amount'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The maximum amount of tokens to receive.
|
|
194
|
+
* @member {String} max_receive_amount
|
|
195
|
+
*/
|
|
196
|
+
SwapQuote.prototype['max_receive_amount'] = undefined;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The time when the quote will expire, in Unix timestamp format, measured in milliseconds.
|
|
200
|
+
* @member {Number} quote_expired_timestamp
|
|
201
|
+
*/
|
|
202
|
+
SwapQuote.prototype['quote_expired_timestamp'] = undefined;
|
|
203
|
+
var _default = exports["default"] = SwapQuote;
|
|
@@ -92,14 +92,14 @@ var TransactionDestination = /*#__PURE__*/function () {
|
|
|
92
92
|
this.actualInstance = _TransactionMessageSignEIP712Destination["default"].constructFromObject(instance);
|
|
93
93
|
match++;
|
|
94
94
|
break;
|
|
95
|
-
case "EVM_Raw_Message_Signature":
|
|
96
|
-
this.actualInstance = _TransactionRawMessageSignDestination["default"].constructFromObject(instance);
|
|
97
|
-
match++;
|
|
98
|
-
break;
|
|
99
95
|
case "ExchangeWallet":
|
|
100
96
|
this.actualInstance = _TransactionTransferToWalletDestination["default"].constructFromObject(instance);
|
|
101
97
|
match++;
|
|
102
98
|
break;
|
|
99
|
+
case "Raw_Message_Signature":
|
|
100
|
+
this.actualInstance = _TransactionRawMessageSignDestination["default"].constructFromObject(instance);
|
|
101
|
+
match++;
|
|
102
|
+
break;
|
|
103
103
|
default:
|
|
104
104
|
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
105
105
|
break;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _TransactionSelectedUtxo = _interopRequireDefault(require("./TransactionSelectedUtxo"));
|
|
9
|
+
var _TransactionUtxoChange = _interopRequireDefault(require("./TransactionUtxoChange"));
|
|
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; } } }; }
|
|
@@ -73,6 +74,9 @@ var TransactionRawTxInfo = /*#__PURE__*/function () {
|
|
|
73
74
|
if (data.hasOwnProperty('unsigned_raw_tx')) {
|
|
74
75
|
obj['unsigned_raw_tx'] = _ApiClient["default"].convertToType(data['unsigned_raw_tx'], 'String');
|
|
75
76
|
}
|
|
77
|
+
if (data.hasOwnProperty('utxo_change')) {
|
|
78
|
+
obj['utxo_change'] = _TransactionUtxoChange["default"].constructFromObject(data['utxo_change']);
|
|
79
|
+
}
|
|
76
80
|
}
|
|
77
81
|
return obj;
|
|
78
82
|
}
|
|
@@ -114,6 +118,13 @@ var TransactionRawTxInfo = /*#__PURE__*/function () {
|
|
|
114
118
|
if (data['unsigned_raw_tx'] && !(typeof data['unsigned_raw_tx'] === 'string' || data['unsigned_raw_tx'] instanceof String)) {
|
|
115
119
|
throw new Error("Expected the field `unsigned_raw_tx` to be a primitive type in the JSON string but got " + data['unsigned_raw_tx']);
|
|
116
120
|
}
|
|
121
|
+
// validate the optional field `utxo_change`
|
|
122
|
+
if (data['utxo_change']) {
|
|
123
|
+
// data not null
|
|
124
|
+
if (!!_TransactionUtxoChange["default"].validateJSON) {
|
|
125
|
+
_TransactionUtxoChange["default"].validateJSON(data['utxo_change']);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
117
128
|
return true;
|
|
118
129
|
}
|
|
119
130
|
}]);
|
|
@@ -141,4 +152,9 @@ TransactionRawTxInfo.prototype['raw_tx'] = undefined;
|
|
|
141
152
|
* @member {String} unsigned_raw_tx
|
|
142
153
|
*/
|
|
143
154
|
TransactionRawTxInfo.prototype['unsigned_raw_tx'] = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @member {module:model/TransactionUtxoChange} utxo_change
|
|
158
|
+
*/
|
|
159
|
+
TransactionRawTxInfo.prototype['utxo_change'] = undefined;
|
|
144
160
|
var _default = exports["default"] = TransactionRawTxInfo;
|
|
@@ -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 _MpcSigningGroup = _interopRequireDefault(require("./MpcSigningGroup"));
|
|
8
9
|
var _MpcTransferSource = _interopRequireDefault(require("./MpcTransferSource"));
|
|
9
10
|
var _TransactionUtxo = _interopRequireDefault(require("./TransactionUtxo"));
|
|
10
11
|
var _WalletSubtype = _interopRequireDefault(require("./WalletSubtype"));
|
|
@@ -175,5 +176,10 @@ TransactionRbfSource.prototype['included_utxos'] = undefined;
|
|
|
175
176
|
* @member {Array.<module:model/TransactionUtxo>} excluded_utxos
|
|
176
177
|
*/
|
|
177
178
|
TransactionRbfSource.prototype['excluded_utxos'] = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @member {module:model/MpcSigningGroup} mpc_used_key_share_holder_group
|
|
182
|
+
*/
|
|
183
|
+
TransactionRbfSource.prototype['mpc_used_key_share_holder_group'] = undefined;
|
|
178
184
|
TransactionRbfSource.OneOf = ["MpcTransferSource"];
|
|
179
185
|
var _default = exports["default"] = TransactionRbfSource;
|
|
@@ -0,0 +1,101 @@
|
|
|
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 TransactionUtxoChange model module.
|
|
26
|
+
* @module model/TransactionUtxoChange
|
|
27
|
+
*/
|
|
28
|
+
var TransactionUtxoChange = /*#__PURE__*/function () {
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a new <code>TransactionUtxoChange</code>.
|
|
31
|
+
* The UTXO change output information.
|
|
32
|
+
* @alias module:model/TransactionUtxoChange
|
|
33
|
+
*/
|
|
34
|
+
function TransactionUtxoChange() {
|
|
35
|
+
_classCallCheck(this, TransactionUtxoChange);
|
|
36
|
+
TransactionUtxoChange.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(TransactionUtxoChange, null, [{
|
|
45
|
+
key: "initialize",
|
|
46
|
+
value: function initialize(obj) {}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a <code>TransactionUtxoChange</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/TransactionUtxoChange} obj Optional instance to populate.
|
|
53
|
+
* @return {module:model/TransactionUtxoChange} The populated <code>TransactionUtxoChange</code> instance.
|
|
54
|
+
*/
|
|
55
|
+
}, {
|
|
56
|
+
key: "constructFromObject",
|
|
57
|
+
value: function constructFromObject(data, obj) {
|
|
58
|
+
if (data) {
|
|
59
|
+
obj = obj || new TransactionUtxoChange();
|
|
60
|
+
if (data.hasOwnProperty('address')) {
|
|
61
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('value')) {
|
|
64
|
+
obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return obj;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Validates the JSON data with respect to <code>TransactionUtxoChange</code>.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionUtxoChange</code>.
|
|
74
|
+
*/
|
|
75
|
+
}, {
|
|
76
|
+
key: "validateJSON",
|
|
77
|
+
value: function validateJSON(data) {
|
|
78
|
+
// ensure the json data is a string
|
|
79
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
80
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
81
|
+
}
|
|
82
|
+
// ensure the json data is a string
|
|
83
|
+
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
|
|
84
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
|
|
85
|
+
}
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
}]);
|
|
89
|
+
}();
|
|
90
|
+
/**
|
|
91
|
+
* The receiving address of the UTXO change output.
|
|
92
|
+
* @member {String} address
|
|
93
|
+
*/
|
|
94
|
+
TransactionUtxoChange.prototype['address'] = undefined;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The amount of the UTXO change output.
|
|
98
|
+
* @member {String} value
|
|
99
|
+
*/
|
|
100
|
+
TransactionUtxoChange.prototype['value'] = undefined;
|
|
101
|
+
var _default = exports["default"] = TransactionUtxoChange;
|
|
@@ -8,6 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
8
8
|
var _CoboSafeDelegate = _interopRequireDefault(require("./CoboSafeDelegate"));
|
|
9
9
|
var _CustodialTransferSource = _interopRequireDefault(require("./CustodialTransferSource"));
|
|
10
10
|
var _ExchangeTransferSource = _interopRequireDefault(require("./ExchangeTransferSource"));
|
|
11
|
+
var _MpcSigningGroup = _interopRequireDefault(require("./MpcSigningGroup"));
|
|
11
12
|
var _MpcTransferSource = _interopRequireDefault(require("./MpcTransferSource"));
|
|
12
13
|
var _SafeTransferSource = _interopRequireDefault(require("./SafeTransferSource"));
|
|
13
14
|
var _TransactionUtxo = _interopRequireDefault(require("./TransactionUtxo"));
|
|
@@ -265,6 +266,11 @@ TransferSource.prototype['included_utxos'] = undefined;
|
|
|
265
266
|
*/
|
|
266
267
|
TransferSource.prototype['excluded_utxos'] = undefined;
|
|
267
268
|
|
|
269
|
+
/**
|
|
270
|
+
* @member {module:model/MpcSigningGroup} mpc_used_key_share_holder_group
|
|
271
|
+
*/
|
|
272
|
+
TransferSource.prototype['mpc_used_key_share_holder_group'] = undefined;
|
|
273
|
+
|
|
268
274
|
/**
|
|
269
275
|
* @member {module:model/CoboSafeDelegate} delegate
|
|
270
276
|
*/
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var _AddressInfo = _interopRequireDefault(require("./AddressInfo"));
|
|
9
8
|
var _AddressesEventData = _interopRequireDefault(require("./AddressesEventData"));
|
|
9
|
+
var _AddressesEventDataAllOfAddresses = _interopRequireDefault(require("./AddressesEventDataAllOfAddresses"));
|
|
10
10
|
var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
|
|
11
11
|
var _MPCVaultType = _interopRequireDefault(require("./MPCVaultType"));
|
|
12
12
|
var _RootPubkey = _interopRequireDefault(require("./RootPubkey"));
|
|
@@ -452,7 +452,7 @@ WebhookEventData.prototype['target_key_share_holder_group_id'] = undefined;
|
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
454
|
* A list of addresses.
|
|
455
|
-
* @member {Array.<module:model/
|
|
455
|
+
* @member {Array.<module:model/AddressesEventDataAllOfAddresses>} addresses
|
|
456
456
|
*/
|
|
457
457
|
WebhookEventData.prototype['addresses'] = undefined;
|
|
458
458
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
|
|
8
|
-
**addresses** | [**[
|
|
8
|
+
**addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CoboWaas2.AddressesEventDataAllOfAddresses
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**address** | **String** | The wallet address. |
|
|
8
|
+
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
|
|
9
|
+
**memo** | **String** | The memo code. | [optional]
|
|
10
|
+
**path** | **String** | The derivation path of the address. This property applies to MPC Wallets only. To learn the meaning of each level in the path, see [Path levels](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#path-levels). | [optional]
|
|
11
|
+
**encoding** | [**AddressEncoding**](AddressEncoding.md) | | [optional]
|
|
12
|
+
**pubkey** | **String** | The public key of the address. This property applies to MPC Wallets only. | [optional]
|
|
13
|
+
**x_only_pubkey** | **String** | The 32-byte x-only public key in hexadecimal format after tweaking. | [optional]
|
|
14
|
+
**root_pubkey** | **String** | The root public key of the address. This property applies to MPC Wallets only. | [optional]
|
|
15
|
+
**taproot_script_tree_hash** | **String** | The information about the new address. | [optional]
|
|
16
|
+
**taproot_internal_address** | **String** | The Taproot address before tweaking. | [optional]
|
|
17
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.BabylonAirdropPop
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**baby_address** | **String** | The Babylon (BABY) address used to receive BABY rewards. |
|
|
8
|
+
**btc_address** | **String** | The Bitcoin (BTC) address used for staking. |
|
|
9
|
+
**btc_public_key** | **String** | The public key corresponding to the `btc_address`, represented in hex format. |
|
|
10
|
+
**btc_sign_baby** | **String** | A BTC signature that signs the `baby_address`. |
|
|
11
|
+
**baby_sign_btc** | **String** | A BABY signature that signs the `btc_address`. |
|
|
12
|
+
**baby_public_key** | **String** | The public key corresponding to the `baby_address`, represented in base64 format. |
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CoboWaas2.BabylonAirdropRegistration
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | The registration ID, a unique identifier for tracking the airdrop registration. | [optional]
|
|
8
|
+
**status** | [**BabylonRegistrationRequestStatus**](BabylonRegistrationRequestStatus.md) | | [optional]
|
|
9
|
+
**btc_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
10
|
+
**babylon_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
11
|
+
**airdrop_amount** | **String** | The actual airdrop amount allocated for this BTC address. | [optional]
|
|
12
|
+
**error_message** | **String** | The detailed error message if the registration failed. | [optional]
|
|
13
|
+
**created_timestamp** | **Number** | The time when the registration was created, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
14
|
+
**updated_timestamp** | **Number** | The time when the registration was updated, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.BabylonEligibleAirdrop
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**btc_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
8
|
+
**babylon_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
9
|
+
**babylon_points** | **String** | The current Babylon points balance accumulated by the BTC address. | [optional]
|
|
10
|
+
**airdrop_amount** | **String** | The estimated airdrop amount based on the current Babylon points balance. | [optional]
|
|
11
|
+
**status** | [**BabylonRegistrationStatus**](BabylonRegistrationStatus.md) | | [optional]
|
|
12
|
+
**pop** | [**BabylonAirdropPop**](BabylonAirdropPop.md) | | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.BabylonRegistrationRequestStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Processing` (value: `"Processing"`)
|
|
7
|
+
|
|
8
|
+
* `Completed` (value: `"Completed"`)
|
|
9
|
+
|
|
10
|
+
* `Failed` (value: `"Failed"`)
|
|
11
|
+
|
|
12
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.BabylonRegistrationStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Registered` (value: `"Registered"`)
|
|
7
|
+
|
|
8
|
+
* `Unregistered` (value: `"Unregistered"`)
|
|
9
|
+
|
|
10
|
+
* `Registering` (value: `"Registering"`)
|
|
11
|
+
|
|
12
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# CoboWaas2.BabylonStakingRegistration
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | The registration ID, a unique identifier for tracking the staking registration. | [optional]
|
|
8
|
+
**staking_id** | **String** | The ID of the Phase-1 BTC staking position. | [optional]
|
|
9
|
+
**babylon_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
10
|
+
**btc_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
11
|
+
**status** | [**BabylonRegistrationRequestStatus**](BabylonRegistrationRequestStatus.md) | | [optional]
|
|
12
|
+
**staked_amount** | **String** | The amount of BTC that is staked. | [optional]
|
|
13
|
+
**error_message** | **String** | The error message if the Babylon Phase-2 registration request failed. | [optional]
|
|
14
|
+
**created_timestamp** | **Number** | The time when the registration was created, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
15
|
+
**updated_timestamp** | **Number** | The time when the registration was updated, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
16
|
+
|
|
17
|
+
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**source_type** | [**ContractCallSourceType**](ContractCallSourceType.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
9
|
**address** | **String** | The wallet address. |
|
|
10
|
+
**mpc_used_key_share_holder_group** | [**MpcSigningGroup**](MpcSigningGroup.md) | | [optional]
|
|
10
11
|
**delegate** | [**CoboSafeDelegate**](CoboSafeDelegate.md) | |
|
|
11
12
|
|
|
12
13
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.CreateBabylonAirdropRegistration201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**registration_id** | **String** | The registration ID, a unique identifier for tracking the airdrop registration request. You can check the registration status with the [Get Babylon airdrop registration details](https://www.cobo.com/developers/v2/api-references/stakings/get_babylon_airdrop_registration_details) operation. | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CreateBabylonAirdropRegistrationRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**btc_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
8
|
+
**babylon_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.CreateBabylonStakingRegistration201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**registration_id** | **String** | The registration ID, a unique identifier for tracking the Babylon staking registration request. You can use it with the [Get Babylon staking registration details operation](https://www.cobo.com/developers/v2/api-references/stakings/get_babylon_staking_registration_details) to check the registration status. | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CreateBabylonStakingRegistrationRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**staking_id** | **String** | The ID of the Phase-1 BTC staking position. | [optional]
|
|
8
|
+
**babylon_address** | [**StakingSource**](StakingSource.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.CreateSwapActivityRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**wallet_id** | **String** | The unique identifier of the wallet. |
|
|
8
|
+
**quote_id** | **String** | The unique identifier of the quote. |
|
|
9
|
+
**slippage_tolerance** | **String** | The slippage tolerance for the swap. |
|
|
10
|
+
**app_initiator** | **String** | The initiator of the app activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# CoboWaas2.CreateSwapQuote201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pay_amount** | **String** | The amount of tokens to pay. |
|
|
8
|
+
**receive_amount** | **String** | The amount of tokens to receive. |
|
|
9
|
+
**fee_amount** | **String** | The amount of tokens to pay for fee. |
|
|
10
|
+
**min_pay_amount** | **String** | The minimum amount of tokens to pay. | [optional]
|
|
11
|
+
**max_pay_amount** | **String** | The maximum amount of tokens to pay. | [optional]
|
|
12
|
+
**min_receive_amount** | **String** | The minimum amount of tokens to receive. | [optional]
|
|
13
|
+
**max_receive_amount** | **String** | The maximum amount of tokens to receive. | [optional]
|
|
14
|
+
**quote_expired_timestamp** | **Number** | The time when the quote will expire, in Unix timestamp format, measured in milliseconds. |
|
|
15
|
+
**quote_id** | **String** | The unique identifier of this quote. |
|
|
16
|
+
|
|
17
|
+
|