@cobo/cobo-waas2 1.9.0 → 1.11.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 +47 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +1 -1
- package/dist/api/DevelopersApi.js +7 -7
- package/dist/api/DevelopersWebhooksApi.js +8 -8
- package/dist/api/StakingsApi.js +412 -18
- package/dist/api/SwapsApi.js +360 -0
- package/dist/api/TransactionsApi.js +18 -18
- package/dist/api/TravelRuleApi.js +4 -4
- package/dist/api/WalletsApi.js +19 -19
- package/dist/api/WalletsExchangeWalletApi.js +1 -1
- package/dist/api/WalletsMPCWalletsApi.js +19 -19
- package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
- package/dist/index.js +213 -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/ChainInfo.js +2 -2
- package/dist/model/ContractCallDestination.js +42 -8
- package/dist/model/ContractCallDestinationType.js +5 -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/EstimatedEvmEip1559FeeSlow.js +23 -0
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +23 -0
- package/dist/model/ExtendedTokenInfo.js +3 -3
- package/dist/model/FeeReserved.js +87 -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/MaxFeeAmount.js +1 -1
- 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/SolContractCallAccount.js +133 -0
- package/dist/model/SolContractCallDestination.js +139 -0
- package/dist/model/SolContractCallInstruction.js +158 -0
- package/dist/model/StakingPoolId.js +30 -0
- package/dist/model/StakingPoolType.js +15 -0
- package/dist/model/SwapQuote.js +203 -0
- package/dist/model/TokenInfo.js +2 -2
- package/dist/model/TransactionDestination.js +45 -11
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionFee.js +1 -1
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionRawTxInfo.js +16 -0
- package/dist/model/TransactionRbfSource.js +6 -0
- package/dist/model/TransactionRequestFee.js +1 -1
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionSolContractAccount.js +106 -0
- package/dist/model/TransactionSolContractDestination.js +137 -0
- package/dist/model/TransactionSolContractInstruction.js +134 -0
- package/dist/model/TransactionTokeApproval.js +3 -3
- package/dist/model/TransactionUtxoChange.js +101 -0
- package/dist/model/TransferSource.js +6 -0
- package/dist/model/WebhookEventData.js +2 -2
- package/docs/AddressBooksApi.md +1 -1
- 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/ChainInfo.md +1 -1
- package/docs/ContractCallDestination.md +1 -0
- package/docs/ContractCallDestinationType.md +2 -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 +5 -5
- package/docs/DevelopersWebhooksApi.md +8 -8
- package/docs/EstimatedEvmEip1559FeeSlow.md +1 -0
- package/docs/EstimatedEvmLegacyFeeSlow.md +1 -0
- package/docs/ExtendedTokenInfo.md +1 -1
- package/docs/FeeReserved.md +9 -0
- 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/MaxFeeAmount.md +1 -1
- 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/SolContractCallAccount.md +11 -0
- package/docs/SolContractCallDestination.md +10 -0
- package/docs/SolContractCallInstruction.md +11 -0
- package/docs/StakingPoolId.md +12 -0
- package/docs/StakingPoolType.md +6 -0
- package/docs/StakingsApi.md +461 -13
- package/docs/SwapQuote.md +16 -0
- package/docs/SwapsApi.md +348 -0
- package/docs/TokenInfo.md +1 -1
- package/docs/TransactionDestination.md +1 -0
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionFixedFee.md +1 -1
- package/docs/TransactionRawTxInfo.md +1 -0
- package/docs/TransactionRbfSource.md +1 -0
- package/docs/TransactionRequestFee.md +1 -1
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestUtxoFee.md +1 -1
- package/docs/TransactionSolContractAccount.md +11 -0
- package/docs/TransactionSolContractDestination.md +10 -0
- package/docs/TransactionSolContractInstruction.md +11 -0
- package/docs/TransactionTokeApproval.md +1 -1
- package/docs/TransactionUtxoChange.md +10 -0
- package/docs/TransactionsApi.md +16 -16
- package/docs/TransferSource.md +1 -0
- package/docs/TravelRuleApi.md +4 -4
- package/docs/WalletsApi.md +16 -16
- package/docs/WalletsExchangeWalletApi.md +1 -1
- package/docs/WalletsMPCWalletsApi.md +19 -19
- package/docs/WalletsSmartContractWalletsApi.md +1 -1
- package/docs/WebhookEventData.md +1 -1
- package/package.json +2 -2
- package/docs/SwapSummary.md +0 -10
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
|
|
9
|
+
var _TransactionSolContractInstruction = _interopRequireDefault(require("./TransactionSolContractInstruction"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The TransactionSolContractDestination model module.
|
|
31
|
+
* @module model/TransactionSolContractDestination
|
|
32
|
+
*/
|
|
33
|
+
var TransactionSolContractDestination = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>TransactionSolContractDestination</code>.
|
|
36
|
+
* The information about the transaction destination. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
|
|
37
|
+
* @alias module:model/TransactionSolContractDestination
|
|
38
|
+
* @param destination_type {module:model/TransactionDestinationType}
|
|
39
|
+
*/
|
|
40
|
+
function TransactionSolContractDestination(destination_type) {
|
|
41
|
+
_classCallCheck(this, TransactionSolContractDestination);
|
|
42
|
+
TransactionSolContractDestination.initialize(this, destination_type);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(TransactionSolContractDestination, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, destination_type) {
|
|
53
|
+
obj['destination_type'] = destination_type;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>TransactionSolContractDestination</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/TransactionSolContractDestination} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/TransactionSolContractDestination} The populated <code>TransactionSolContractDestination</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new TransactionSolContractDestination();
|
|
68
|
+
if (data.hasOwnProperty('destination_type')) {
|
|
69
|
+
obj['destination_type'] = _TransactionDestinationType["default"].constructFromObject(data['destination_type']);
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('instructions')) {
|
|
72
|
+
obj['instructions'] = _ApiClient["default"].convertToType(data['instructions'], [_TransactionSolContractInstruction["default"]]);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>TransactionSolContractDestination</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionSolContractDestination</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// check to make sure all required properties are present in the JSON string
|
|
87
|
+
var _iterator = _createForOfIteratorHelper(TransactionSolContractDestination.RequiredProperties),
|
|
88
|
+
_step;
|
|
89
|
+
try {
|
|
90
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
91
|
+
var property = _step.value;
|
|
92
|
+
if (!data.hasOwnProperty(property)) {
|
|
93
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
if (data['instructions']) {
|
|
102
|
+
// data not null
|
|
103
|
+
// ensure the json data is an array
|
|
104
|
+
if (!Array.isArray(data['instructions'])) {
|
|
105
|
+
throw new Error("Expected the field `instructions` to be an array in the JSON data but got " + data['instructions']);
|
|
106
|
+
}
|
|
107
|
+
// validate the optional field `instructions` (array)
|
|
108
|
+
var _iterator2 = _createForOfIteratorHelper(data['instructions']),
|
|
109
|
+
_step2;
|
|
110
|
+
try {
|
|
111
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
112
|
+
var item = _step2.value;
|
|
113
|
+
_TransactionSolContractInstruction["default"].validateJSON(item);
|
|
114
|
+
}
|
|
115
|
+
} catch (err) {
|
|
116
|
+
_iterator2.e(err);
|
|
117
|
+
} finally {
|
|
118
|
+
_iterator2.f();
|
|
119
|
+
}
|
|
120
|
+
;
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}]);
|
|
125
|
+
}();
|
|
126
|
+
TransactionSolContractDestination.RequiredProperties = ["destination_type"];
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @member {module:model/TransactionDestinationType} destination_type
|
|
130
|
+
*/
|
|
131
|
+
TransactionSolContractDestination.prototype['destination_type'] = undefined;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @member {Array.<module:model/TransactionSolContractInstruction>} instructions
|
|
135
|
+
*/
|
|
136
|
+
TransactionSolContractDestination.prototype['instructions'] = undefined;
|
|
137
|
+
var _default = exports["default"] = TransactionSolContractDestination;
|
|
@@ -0,0 +1,134 @@
|
|
|
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 _TransactionSolContractAccount = _interopRequireDefault(require("./TransactionSolContractAccount"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The TransactionSolContractInstruction model module.
|
|
30
|
+
* @module model/TransactionSolContractInstruction
|
|
31
|
+
*/
|
|
32
|
+
var TransactionSolContractInstruction = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>TransactionSolContractInstruction</code>.
|
|
35
|
+
* sol contract instruction
|
|
36
|
+
* @alias module:model/TransactionSolContractInstruction
|
|
37
|
+
*/
|
|
38
|
+
function TransactionSolContractInstruction() {
|
|
39
|
+
_classCallCheck(this, TransactionSolContractInstruction);
|
|
40
|
+
TransactionSolContractInstruction.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(TransactionSolContractInstruction, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj) {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a <code>TransactionSolContractInstruction</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
+
* @param {module:model/TransactionSolContractInstruction} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/TransactionSolContractInstruction} The populated <code>TransactionSolContractInstruction</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "constructFromObject",
|
|
61
|
+
value: function constructFromObject(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new TransactionSolContractInstruction();
|
|
64
|
+
if (data.hasOwnProperty('accounts')) {
|
|
65
|
+
obj['accounts'] = _ApiClient["default"].convertToType(data['accounts'], [_TransactionSolContractAccount["default"]]);
|
|
66
|
+
}
|
|
67
|
+
if (data.hasOwnProperty('data')) {
|
|
68
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String');
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('program_id')) {
|
|
71
|
+
obj['program_id'] = _ApiClient["default"].convertToType(data['program_id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>TransactionSolContractInstruction</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionSolContractInstruction</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
if (data['accounts']) {
|
|
86
|
+
// data not null
|
|
87
|
+
// ensure the json data is an array
|
|
88
|
+
if (!Array.isArray(data['accounts'])) {
|
|
89
|
+
throw new Error("Expected the field `accounts` to be an array in the JSON data but got " + data['accounts']);
|
|
90
|
+
}
|
|
91
|
+
// validate the optional field `accounts` (array)
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(data['accounts']),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var item = _step.value;
|
|
97
|
+
_TransactionSolContractAccount["default"].validateJSON(item);
|
|
98
|
+
}
|
|
99
|
+
} catch (err) {
|
|
100
|
+
_iterator.e(err);
|
|
101
|
+
} finally {
|
|
102
|
+
_iterator.f();
|
|
103
|
+
}
|
|
104
|
+
;
|
|
105
|
+
}
|
|
106
|
+
// ensure the json data is a string
|
|
107
|
+
if (data['data'] && !(typeof data['data'] === 'string' || data['data'] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `data` to be a primitive type in the JSON string but got " + data['data']);
|
|
109
|
+
}
|
|
110
|
+
// ensure the json data is a string
|
|
111
|
+
if (data['program_id'] && !(typeof data['program_id'] === 'string' || data['program_id'] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `program_id` to be a primitive type in the JSON string but got " + data['program_id']);
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
}]);
|
|
117
|
+
}();
|
|
118
|
+
/**
|
|
119
|
+
* @member {Array.<module:model/TransactionSolContractAccount>} accounts
|
|
120
|
+
*/
|
|
121
|
+
TransactionSolContractInstruction.prototype['accounts'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* data used for calling Solana contract..
|
|
125
|
+
* @member {String} data
|
|
126
|
+
*/
|
|
127
|
+
TransactionSolContractInstruction.prototype['data'] = undefined;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* contract address. when calling a Solana contract, the to_address parameter needs to match the program_id parameter. If multiple contracts are being called, then the to_address parameter should match the program_id parameter of the first instruction.
|
|
131
|
+
* @member {String} program_id
|
|
132
|
+
*/
|
|
133
|
+
TransactionSolContractInstruction.prototype['program_id'] = undefined;
|
|
134
|
+
var _default = exports["default"] = TransactionSolContractInstruction;
|
|
@@ -35,7 +35,7 @@ var TransactionTokeApproval = /*#__PURE__*/function () {
|
|
|
35
35
|
* Constructs a new <code>TransactionTokeApproval</code>.
|
|
36
36
|
* @alias module:model/TransactionTokeApproval
|
|
37
37
|
* @implements module:model/TokenInfo
|
|
38
|
-
* @param token_id {String} The token ID, which is the unique identifier of a token.
|
|
38
|
+
* @param token_id {String} The token ID, which is the unique identifier of a token.
|
|
39
39
|
* @param chain_id {String} The ID of the chain on which the token operates.
|
|
40
40
|
*/
|
|
41
41
|
function TransactionTokeApproval(token_id, chain_id) {
|
|
@@ -195,7 +195,7 @@ var TransactionTokeApproval = /*#__PURE__*/function () {
|
|
|
195
195
|
TransactionTokeApproval.RequiredProperties = ["token_id", "chain_id"];
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
|
-
* The token ID, which is the unique identifier of a token.
|
|
198
|
+
* The token ID, which is the unique identifier of a token.
|
|
199
199
|
* @member {String} token_id
|
|
200
200
|
*/
|
|
201
201
|
TransactionTokeApproval.prototype['token_id'] = undefined;
|
|
@@ -291,7 +291,7 @@ TransactionTokeApproval.prototype['spender'] = undefined;
|
|
|
291
291
|
|
|
292
292
|
// Implement TokenInfo interface:
|
|
293
293
|
/**
|
|
294
|
-
* The token ID, which is the unique identifier of a token.
|
|
294
|
+
* The token ID, which is the unique identifier of a token.
|
|
295
295
|
* @member {String} token_id
|
|
296
296
|
*/
|
|
297
297
|
_TokenInfo["default"].prototype['token_id'] = undefined;
|
|
@@ -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
|
|
package/docs/AddressBooksApi.md
CHANGED
|
@@ -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
|
+
|
package/docs/ChainInfo.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain.
|
|
7
|
+
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. |
|
|
8
8
|
**symbol** | **String** | The chain symbol, which is the abbreviated name of a chain. | [optional]
|
|
9
9
|
**icon_url** | **String** | The URL of the chain icon. | [optional]
|
|
10
10
|
**explorer_tx_url** | **String** | The transaction URL pattern on the blockchain explorer. You can use it to concatenate the transaction URLs. | [optional]
|
|
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**address** | **String** | The destination address. |
|
|
9
9
|
**value** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`. | [optional]
|
|
10
10
|
**calldata** | **String** | The data that is used to invoke a specific function or method within the specified contract at the destination address. |
|
|
11
|
+
**instructions** | [**[SolContractCallInstruction]**](SolContractCallInstruction.md) | |
|
|
11
12
|
|
|
12
13
|
|
|
@@ -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
|
+
|