@cobo/cobo-waas2 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -4
- package/dist/ApiClient.js +1 -1
- package/dist/ServerDemo.js +80 -0
- package/dist/api/DevelopersApi.js +79 -0
- package/dist/api/OAuthApi.js +8 -8
- package/dist/api/WalletsApi.js +58 -57
- package/dist/index.js +83 -6
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
- package/dist/model/BabylonStakeEstimatedFee.js +118 -0
- package/dist/model/BabylonValidator.js +5 -0
- package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +42 -8
- package/dist/model/CreateUnstakeActivity.js +16 -0
- package/dist/model/CreateUnstakeActivityExtra.js +159 -0
- package/dist/model/CreateUnstakeActivityRequest.js +20 -0
- package/dist/model/EstimateContractCallFeeParams.js +4 -6
- package/dist/model/EstimateTransferFeeParams.js +4 -8
- package/dist/model/EstimateUnstakeFee.js +20 -0
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
- package/dist/model/EthStakeEstimatedFee.js +112 -0
- package/dist/model/EthStakeExtra.js +131 -0
- package/dist/model/EthStakingExtra.js +131 -0
- package/dist/model/EthUnstakeExtra.js +131 -0
- package/dist/model/FeeGasLimit.js +1 -2
- package/dist/model/GetApiKeyInfo200Response.js +251 -0
- package/dist/model/GetStakingEstimationFee201Response.js +144 -43
- package/dist/model/GetStakingEstimationFeeRequest.js +2 -2
- package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
- package/dist/model/GetToken4XXResponse.js +12 -10
- package/dist/model/MPCDelegate.js +1 -1
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/{RefreshToken201Response.js → RefreshToken2XXResponse.js} +21 -21
- package/dist/model/RoleScopes.js +128 -0
- package/dist/model/Scopes.js +142 -0
- package/dist/model/SmartContractWalletInfo.js +1 -1
- package/dist/model/StakingPoolType.js +5 -0
- package/dist/model/StakingsExtra.js +36 -8
- package/dist/model/TransactionEvmEip1559Fee.js +2 -4
- package/dist/model/TransactionEvmLegacyFee.js +2 -4
- package/dist/model/TransactionFee.js +1 -2
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -2
- package/dist/model/TransactionRequestFee.js +1 -2
- package/dist/model/TransactionSource.js +1 -1
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
- package/dist/model/TransferDestination.js +2 -2
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
- package/docs/BabylonStakeEstimatedFee.md +12 -0
- package/docs/BabylonValidator.md +2 -0
- package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
- package/docs/CreateStakeActivityExtra.md +1 -0
- package/docs/CreateUnstakeActivity.md +1 -0
- package/docs/CreateUnstakeActivityExtra.md +10 -0
- package/docs/CreateUnstakeActivityRequest.md +1 -0
- package/docs/DevelopersApi.md +55 -0
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +2 -2
- package/docs/EstimateUnstakeFee.md +1 -0
- package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
- package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
- package/docs/EthStakeEstimatedFee.md +11 -0
- package/docs/EthStakeExtra.md +10 -0
- package/docs/EthStakingExtra.md +10 -0
- package/docs/EthUnstakeExtra.md +10 -0
- package/docs/FeeGasLimit.md +1 -1
- package/docs/GetApiKeyInfo200Response.md +30 -0
- package/docs/GetStakingEstimationFee201Response.md +3 -0
- package/docs/GetStakingEstimationFeeRequest.md +1 -1
- package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
- package/docs/GetToken4XXResponse.md +1 -1
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +4 -4
- package/docs/PoolDetailsAllOfValidatorsInfo.md +2 -0
- package/docs/{RefreshToken201Response.md → RefreshToken2XXResponse.md} +1 -1
- package/docs/RoleScopes.md +10 -0
- package/docs/Scopes.md +13 -0
- package/docs/StakingPoolType.md +2 -0
- package/docs/TransactionEvmEip1559Fee.md +1 -1
- package/docs/TransactionEvmLegacyFee.md +1 -1
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
- package/docs/TransactionRequestEvmLegacyFee.md +1 -1
- package/docs/TransactionRequestFee.md +1 -1
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
- package/docs/TransferDestination.md +2 -2
- package/docs/WalletsApi.md +54 -54
- package/package.json +2 -1
|
@@ -0,0 +1,128 @@
|
|
|
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 _Scopes = _interopRequireDefault(require("./Scopes"));
|
|
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 RoleScopes model module.
|
|
30
|
+
* @module model/RoleScopes
|
|
31
|
+
*/
|
|
32
|
+
var RoleScopes = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>RoleScopes</code>.
|
|
35
|
+
* @alias module:model/RoleScopes
|
|
36
|
+
* @param role_name {String} The user role associated with this API key.
|
|
37
|
+
* @param scopes {module:model/Scopes}
|
|
38
|
+
*/
|
|
39
|
+
function RoleScopes(role_name, scopes) {
|
|
40
|
+
_classCallCheck(this, RoleScopes);
|
|
41
|
+
RoleScopes.initialize(this, role_name, scopes);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(RoleScopes, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, role_name, scopes) {
|
|
52
|
+
obj['role_name'] = role_name;
|
|
53
|
+
obj['scopes'] = scopes;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>RoleScopes</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/RoleScopes} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/RoleScopes} The populated <code>RoleScopes</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new RoleScopes();
|
|
68
|
+
if (data.hasOwnProperty('role_name')) {
|
|
69
|
+
obj['role_name'] = _ApiClient["default"].convertToType(data['role_name'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('scopes')) {
|
|
72
|
+
obj['scopes'] = _Scopes["default"].constructFromObject(data['scopes']);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>RoleScopes</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>RoleScopes</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(RoleScopes.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
|
+
// ensure the json data is a string
|
|
97
|
+
} catch (err) {
|
|
98
|
+
_iterator.e(err);
|
|
99
|
+
} finally {
|
|
100
|
+
_iterator.f();
|
|
101
|
+
}
|
|
102
|
+
if (data['role_name'] && !(typeof data['role_name'] === 'string' || data['role_name'] instanceof String)) {
|
|
103
|
+
throw new Error("Expected the field `role_name` to be a primitive type in the JSON string but got " + data['role_name']);
|
|
104
|
+
}
|
|
105
|
+
// validate the optional field `scopes`
|
|
106
|
+
if (data['scopes']) {
|
|
107
|
+
// data not null
|
|
108
|
+
if (!!_Scopes["default"].validateJSON) {
|
|
109
|
+
_Scopes["default"].validateJSON(data['scopes']);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
}]);
|
|
115
|
+
}();
|
|
116
|
+
RoleScopes.RequiredProperties = ["role_name", "scopes"];
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The user role associated with this API key.
|
|
120
|
+
* @member {String} role_name
|
|
121
|
+
*/
|
|
122
|
+
RoleScopes.prototype['role_name'] = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @member {module:model/Scopes} scopes
|
|
126
|
+
*/
|
|
127
|
+
RoleScopes.prototype['scopes'] = undefined;
|
|
128
|
+
var _default = exports["default"] = RoleScopes;
|
|
@@ -0,0 +1,142 @@
|
|
|
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 _WalletSubtype = _interopRequireDefault(require("./WalletSubtype"));
|
|
9
|
+
var _WalletType = _interopRequireDefault(require("./WalletType"));
|
|
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Cobo Wallet as a Service 2.0
|
|
18
|
+
*
|
|
19
|
+
* Contact: help@cobo.com
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The Scopes model module.
|
|
28
|
+
* @module model/Scopes
|
|
29
|
+
*/
|
|
30
|
+
var Scopes = /*#__PURE__*/function () {
|
|
31
|
+
/**
|
|
32
|
+
* Constructs a new <code>Scopes</code>.
|
|
33
|
+
* The wallet scopes associated with this API key.
|
|
34
|
+
* @alias module:model/Scopes
|
|
35
|
+
*/
|
|
36
|
+
function Scopes() {
|
|
37
|
+
_classCallCheck(this, Scopes);
|
|
38
|
+
Scopes.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
return _createClass(Scopes, null, [{
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(obj) {}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>Scopes</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/Scopes} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/Scopes} The populated <code>Scopes</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new Scopes();
|
|
62
|
+
if (data.hasOwnProperty('wallet_types')) {
|
|
63
|
+
obj['wallet_types'] = _ApiClient["default"].convertToType(data['wallet_types'], [_WalletType["default"]]);
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('wallet_subtypes')) {
|
|
66
|
+
obj['wallet_subtypes'] = _ApiClient["default"].convertToType(data['wallet_subtypes'], [_WalletSubtype["default"]]);
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('wallet_ids')) {
|
|
69
|
+
obj['wallet_ids'] = _ApiClient["default"].convertToType(data['wallet_ids'], ['String']);
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('vault_ids')) {
|
|
72
|
+
obj['vault_ids'] = _ApiClient["default"].convertToType(data['vault_ids'], ['String']);
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('project_ids')) {
|
|
75
|
+
obj['project_ids'] = _ApiClient["default"].convertToType(data['project_ids'], ['String']);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Validates the JSON data with respect to <code>Scopes</code>.
|
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Scopes</code>.
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "validateJSON",
|
|
88
|
+
value: function validateJSON(data) {
|
|
89
|
+
// ensure the json data is an array
|
|
90
|
+
if (!Array.isArray(data['wallet_types'])) {
|
|
91
|
+
throw new Error("Expected the field `wallet_types` to be an array in the JSON data but got " + data['wallet_types']);
|
|
92
|
+
}
|
|
93
|
+
// ensure the json data is an array
|
|
94
|
+
if (!Array.isArray(data['wallet_subtypes'])) {
|
|
95
|
+
throw new Error("Expected the field `wallet_subtypes` to be an array in the JSON data but got " + data['wallet_subtypes']);
|
|
96
|
+
}
|
|
97
|
+
// ensure the json data is an array
|
|
98
|
+
if (!Array.isArray(data['wallet_ids'])) {
|
|
99
|
+
throw new Error("Expected the field `wallet_ids` to be an array in the JSON data but got " + data['wallet_ids']);
|
|
100
|
+
}
|
|
101
|
+
// ensure the json data is an array
|
|
102
|
+
if (!Array.isArray(data['vault_ids'])) {
|
|
103
|
+
throw new Error("Expected the field `vault_ids` to be an array in the JSON data but got " + data['vault_ids']);
|
|
104
|
+
}
|
|
105
|
+
// ensure the json data is an array
|
|
106
|
+
if (!Array.isArray(data['project_ids'])) {
|
|
107
|
+
throw new Error("Expected the field `project_ids` to be an array in the JSON data but got " + data['project_ids']);
|
|
108
|
+
}
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
}]);
|
|
112
|
+
}();
|
|
113
|
+
/**
|
|
114
|
+
* The list of wallet types that this API key can access. Possible values include: - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
115
|
+
* @member {Array.<module:model/WalletType>} wallet_types
|
|
116
|
+
*/
|
|
117
|
+
Scopes.prototype['wallet_types'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The list of wallet sub-types that this API key can access. Possible values include: - `Asset`: Custodial Wallets (Asset Wallets). - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets). - `User-Controlled`: MPC Wallets (User-Controlled Wallets). - `Safe{Wallet}`: Smart Contract Wallets (Safe). - `Main`: Exchange Wallets (Main Account). - `Sub`: Exchange Wallets (Sub Account).
|
|
121
|
+
* @member {Array.<module:model/WalletSubtype>} wallet_subtypes
|
|
122
|
+
*/
|
|
123
|
+
Scopes.prototype['wallet_subtypes'] = undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The list of wallet IDs that this API key can access.
|
|
127
|
+
* @member {Array.<String>} wallet_ids
|
|
128
|
+
*/
|
|
129
|
+
Scopes.prototype['wallet_ids'] = undefined;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* (Applicable to MPC Wallets only) The list of vault IDs that this API key can access.
|
|
133
|
+
* @member {Array.<String>} vault_ids
|
|
134
|
+
*/
|
|
135
|
+
Scopes.prototype['vault_ids'] = undefined;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* (Applicable to MPC Wallets only) The list of project IDs that this API key can access.
|
|
139
|
+
* @member {Array.<String>} project_ids
|
|
140
|
+
*/
|
|
141
|
+
Scopes.prototype['project_ids'] = undefined;
|
|
142
|
+
var _default = exports["default"] = Scopes;
|
|
@@ -57,7 +57,7 @@ var SmartContractWalletInfo = /*#__PURE__*/function () {
|
|
|
57
57
|
var discriminatorValue = instance["smart_contract_wallet_type"];
|
|
58
58
|
if (discriminatorValue) {
|
|
59
59
|
switch (discriminatorValue) {
|
|
60
|
-
case "Safe":
|
|
60
|
+
case "Safe{Wallet}":
|
|
61
61
|
this.actualInstance = _SafeWallet["default"].constructFromObject(instance);
|
|
62
62
|
match++;
|
|
63
63
|
break;
|
|
@@ -35,6 +35,11 @@ var StakingPoolType = exports["default"] = /*#__PURE__*/function () {
|
|
|
35
35
|
* @const
|
|
36
36
|
*/
|
|
37
37
|
_defineProperty(this, "Babylon", "Babylon");
|
|
38
|
+
/**
|
|
39
|
+
* value: "ETHBeacon"
|
|
40
|
+
* @const
|
|
41
|
+
*/
|
|
42
|
+
_defineProperty(this, "ETHBeacon", "ETHBeacon");
|
|
38
43
|
/**
|
|
39
44
|
* value: "unknown_default_open_api"
|
|
40
45
|
* @const
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _BabylonStakingExtra = _interopRequireDefault(require("./BabylonStakingExtra"));
|
|
9
|
+
var _EthStakingExtra = _interopRequireDefault(require("./EthStakingExtra"));
|
|
9
10
|
var _StakingPoolType = _interopRequireDefault(require("./StakingPoolType"));
|
|
10
11
|
var _StakingsExtra;
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -33,7 +34,7 @@ var StakingsExtra = /*#__PURE__*/function () {
|
|
|
33
34
|
/**
|
|
34
35
|
* Constructs a new <code>StakingsExtra</code>.
|
|
35
36
|
* @alias module:model/StakingsExtra
|
|
36
|
-
* @param {(module:model/BabylonStakingExtra)} instance The actual instance to initialize StakingsExtra.
|
|
37
|
+
* @param {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} instance The actual instance to initialize StakingsExtra.
|
|
37
38
|
*/
|
|
38
39
|
function StakingsExtra() {
|
|
39
40
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -58,6 +59,10 @@ var StakingsExtra = /*#__PURE__*/function () {
|
|
|
58
59
|
this.actualInstance = _BabylonStakingExtra["default"].constructFromObject(instance);
|
|
59
60
|
match++;
|
|
60
61
|
break;
|
|
62
|
+
case "ETHBeacon":
|
|
63
|
+
this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
|
|
64
|
+
match++;
|
|
65
|
+
break;
|
|
61
66
|
default:
|
|
62
67
|
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
63
68
|
break;
|
|
@@ -87,13 +92,36 @@ var StakingsExtra = /*#__PURE__*/function () {
|
|
|
87
92
|
// json data failed to deserialize into BabylonStakingExtra
|
|
88
93
|
errorMessages.push("Failed to construct BabylonStakingExtra: " + err);
|
|
89
94
|
}
|
|
95
|
+
try {
|
|
96
|
+
if (instance instanceof _EthStakingExtra["default"]) {
|
|
97
|
+
this.actualInstance = instance;
|
|
98
|
+
} else if (!!_EthStakingExtra["default"].validateJSON && _EthStakingExtra["default"].validateJSON(instance)) {
|
|
99
|
+
// plain JS object
|
|
100
|
+
// create EthStakingExtra from JS object
|
|
101
|
+
this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
|
|
102
|
+
} else {
|
|
103
|
+
if (_EthStakingExtra["default"].constructFromObject(instance)) {
|
|
104
|
+
if (!!_EthStakingExtra["default"].constructFromObject(instance).toJSON) {
|
|
105
|
+
if (_EthStakingExtra["default"].constructFromObject(instance).toJSON()) {
|
|
106
|
+
this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
this.actualInstance = _EthStakingExtra["default"].constructFromObject(instance);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
match++;
|
|
114
|
+
} catch (err) {
|
|
115
|
+
// json data failed to deserialize into EthStakingExtra
|
|
116
|
+
errorMessages.push("Failed to construct EthStakingExtra: " + err);
|
|
117
|
+
}
|
|
90
118
|
|
|
91
119
|
// if (match > 1) {
|
|
92
|
-
// throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Input: " + JSON.stringify(instance));
|
|
120
|
+
// throw new Error("Multiple matches found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Input: " + JSON.stringify(instance));
|
|
93
121
|
// } else
|
|
94
122
|
if (match === 0) {
|
|
95
123
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
96
|
-
// throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra. Details: " +
|
|
124
|
+
// throw new Error("No match found constructing `StakingsExtra` with oneOf schemas BabylonStakingExtra, EthStakingExtra. Details: " +
|
|
97
125
|
// errorMessages.join(", "));
|
|
98
126
|
return;
|
|
99
127
|
} else {// only 1 match
|
|
@@ -112,16 +140,16 @@ var StakingsExtra = /*#__PURE__*/function () {
|
|
|
112
140
|
key: "getActualInstance",
|
|
113
141
|
value:
|
|
114
142
|
/**
|
|
115
|
-
* Gets the actual instance, which can be <code>BabylonStakingExtra</code>.
|
|
116
|
-
* @return {(module:model/BabylonStakingExtra)} The actual instance.
|
|
143
|
+
* Gets the actual instance, which can be <code>BabylonStakingExtra</code>, <code>EthStakingExtra</code>.
|
|
144
|
+
* @return {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} The actual instance.
|
|
117
145
|
*/
|
|
118
146
|
function getActualInstance() {
|
|
119
147
|
return this.actualInstance;
|
|
120
148
|
}
|
|
121
149
|
|
|
122
150
|
/**
|
|
123
|
-
* Sets the actual instance, which can be <code>BabylonStakingExtra</code>.
|
|
124
|
-
* @param {(module:model/BabylonStakingExtra)} obj The actual instance.
|
|
151
|
+
* Sets the actual instance, which can be <code>BabylonStakingExtra</code>, <code>EthStakingExtra</code>.
|
|
152
|
+
* @param {(module:model/BabylonStakingExtra|module:model/EthStakingExtra)} obj The actual instance.
|
|
125
153
|
*/
|
|
126
154
|
}, {
|
|
127
155
|
key: "setActualInstance",
|
|
@@ -178,5 +206,5 @@ StakingsExtra.prototype['stake_address'] = undefined;
|
|
|
178
206
|
* @member {String} unbond_address
|
|
179
207
|
*/
|
|
180
208
|
StakingsExtra.prototype['unbond_address'] = undefined;
|
|
181
|
-
StakingsExtra.OneOf = ["BabylonStakingExtra"];
|
|
209
|
+
StakingsExtra.OneOf = ["BabylonStakingExtra", "EthStakingExtra"];
|
|
182
210
|
var _default = exports["default"] = StakingsExtra;
|
|
@@ -172,9 +172,8 @@ TransactionEvmEip1559Fee.prototype['max_priority_fee_per_gas'] = undefined;
|
|
|
172
172
|
/**
|
|
173
173
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
174
174
|
* @member {String} gas_limit
|
|
175
|
-
* @default '21000'
|
|
176
175
|
*/
|
|
177
|
-
TransactionEvmEip1559Fee.prototype['gas_limit'] =
|
|
176
|
+
TransactionEvmEip1559Fee.prototype['gas_limit'] = undefined;
|
|
178
177
|
|
|
179
178
|
/**
|
|
180
179
|
* @member {module:model/FeeType} fee_type
|
|
@@ -220,7 +219,6 @@ _EvmEip1559FeeBasePrice["default"].prototype['max_priority_fee_per_gas'] = undef
|
|
|
220
219
|
/**
|
|
221
220
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
222
221
|
* @member {String} gas_limit
|
|
223
|
-
* @default '21000'
|
|
224
222
|
*/
|
|
225
|
-
_FeeGasLimit["default"].prototype['gas_limit'] =
|
|
223
|
+
_FeeGasLimit["default"].prototype['gas_limit'] = undefined;
|
|
226
224
|
var _default = exports["default"] = TransactionEvmEip1559Fee;
|
|
@@ -152,9 +152,8 @@ TransactionEvmLegacyFee.prototype['gas_price'] = undefined;
|
|
|
152
152
|
/**
|
|
153
153
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
154
154
|
* @member {String} gas_limit
|
|
155
|
-
* @default '21000'
|
|
156
155
|
*/
|
|
157
|
-
TransactionEvmLegacyFee.prototype['gas_limit'] =
|
|
156
|
+
TransactionEvmLegacyFee.prototype['gas_limit'] = undefined;
|
|
158
157
|
|
|
159
158
|
/**
|
|
160
159
|
* @member {module:model/FeeType} fee_type
|
|
@@ -189,7 +188,6 @@ _EvmLegacyFeeBasePrice["default"].prototype['gas_price'] = undefined;
|
|
|
189
188
|
/**
|
|
190
189
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
191
190
|
* @member {String} gas_limit
|
|
192
|
-
* @default '21000'
|
|
193
191
|
*/
|
|
194
|
-
_FeeGasLimit["default"].prototype['gas_limit'] =
|
|
192
|
+
_FeeGasLimit["default"].prototype['gas_limit'] = undefined;
|
|
195
193
|
var _default = exports["default"] = TransactionEvmLegacyFee;
|
|
@@ -272,9 +272,8 @@ TransactionFee.prototype['max_priority_fee_per_gas'] = undefined;
|
|
|
272
272
|
/**
|
|
273
273
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
274
274
|
* @member {String} gas_limit
|
|
275
|
-
* @default '21000'
|
|
276
275
|
*/
|
|
277
|
-
TransactionFee.prototype['gas_limit'] =
|
|
276
|
+
TransactionFee.prototype['gas_limit'] = undefined;
|
|
278
277
|
|
|
279
278
|
/**
|
|
280
279
|
* The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used.
|
|
@@ -161,7 +161,7 @@ TransactionRbfSource.prototype['source_type'] = undefined;
|
|
|
161
161
|
TransactionRbfSource.prototype['wallet_id'] = undefined;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* The wallet address.
|
|
164
|
+
* The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
|
|
165
165
|
* @member {String} address
|
|
166
166
|
*/
|
|
167
167
|
TransactionRbfSource.prototype['address'] = undefined;
|
|
@@ -164,9 +164,8 @@ TransactionRequestEvmEip1559Fee.prototype['token_id'] = undefined;
|
|
|
164
164
|
/**
|
|
165
165
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
166
166
|
* @member {String} gas_limit
|
|
167
|
-
* @default '21000'
|
|
168
167
|
*/
|
|
169
|
-
TransactionRequestEvmEip1559Fee.prototype['gas_limit'] =
|
|
168
|
+
TransactionRequestEvmEip1559Fee.prototype['gas_limit'] = undefined;
|
|
170
169
|
|
|
171
170
|
// Implement EvmEip1559FeeBasePrice interface:
|
|
172
171
|
/**
|
|
@@ -149,9 +149,8 @@ TransactionRequestEvmLegacyFee.prototype['token_id'] = undefined;
|
|
|
149
149
|
/**
|
|
150
150
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
151
151
|
* @member {String} gas_limit
|
|
152
|
-
* @default '21000'
|
|
153
152
|
*/
|
|
154
|
-
TransactionRequestEvmLegacyFee.prototype['gas_limit'] =
|
|
153
|
+
TransactionRequestEvmLegacyFee.prototype['gas_limit'] = undefined;
|
|
155
154
|
|
|
156
155
|
// Implement EvmLegacyFeeBasePrice interface:
|
|
157
156
|
/**
|
|
@@ -248,9 +248,8 @@ TransactionRequestFee.prototype['max_fee_amount'] = undefined;
|
|
|
248
248
|
/**
|
|
249
249
|
* The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
|
|
250
250
|
* @member {String} gas_limit
|
|
251
|
-
* @default '21000'
|
|
252
251
|
*/
|
|
253
|
-
TransactionRequestFee.prototype['gas_limit'] =
|
|
252
|
+
TransactionRequestFee.prototype['gas_limit'] = undefined;
|
|
254
253
|
|
|
255
254
|
/**
|
|
256
255
|
* The maximum gas fee per gas unit used on the chain, in wei.
|
|
@@ -89,7 +89,7 @@ var TransactionSource = /*#__PURE__*/function () {
|
|
|
89
89
|
this.actualInstance = _TransactionMPCWalletSource["default"].constructFromObject(instance);
|
|
90
90
|
match++;
|
|
91
91
|
break;
|
|
92
|
-
case "
|
|
92
|
+
case "Safe{Wallet}":
|
|
93
93
|
this.actualInstance = _TransactionSmartContractSafeWalletSource["default"].constructFromObject(instance);
|
|
94
94
|
match++;
|
|
95
95
|
break;
|
|
@@ -62,9 +62,6 @@ var TransactionTransferToAddressDestinationUtxoOutputsInner = /*#__PURE__*/funct
|
|
|
62
62
|
if (data.hasOwnProperty('amount')) {
|
|
63
63
|
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty('script')) {
|
|
66
|
-
obj['script'] = _ApiClient["default"].convertToType(data['script'], 'String');
|
|
67
|
-
}
|
|
68
65
|
}
|
|
69
66
|
return obj;
|
|
70
67
|
}
|
|
@@ -85,10 +82,6 @@ var TransactionTransferToAddressDestinationUtxoOutputsInner = /*#__PURE__*/funct
|
|
|
85
82
|
if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
|
|
86
83
|
throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
|
|
87
84
|
}
|
|
88
|
-
// ensure the json data is a string
|
|
89
|
-
if (data['script'] && !(typeof data['script'] === 'string' || data['script'] instanceof String)) {
|
|
90
|
-
throw new Error("Expected the field `script` to be a primitive type in the JSON string but got " + data['script']);
|
|
91
|
-
}
|
|
92
85
|
return true;
|
|
93
86
|
}
|
|
94
87
|
}]);
|
|
@@ -104,10 +97,4 @@ TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['address'] = u
|
|
|
104
97
|
* @member {String} amount
|
|
105
98
|
*/
|
|
106
99
|
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['amount'] = undefined;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent.
|
|
110
|
-
* @member {String} script
|
|
111
|
-
*/
|
|
112
|
-
TransactionTransferToAddressDestinationUtxoOutputsInner.prototype['script'] = undefined;
|
|
113
100
|
var _default = exports["default"] = TransactionTransferToAddressDestinationUtxoOutputsInner;
|
|
@@ -196,13 +196,13 @@ TransferDestination.prototype['utxo_outputs'] = undefined;
|
|
|
196
196
|
TransferDestination.prototype['change_address'] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `
|
|
199
|
+
* Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
|
|
200
200
|
* @member {Boolean} force_internal
|
|
201
201
|
*/
|
|
202
202
|
TransferDestination.prototype['force_internal'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `
|
|
205
|
+
* Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
|
|
206
206
|
* @member {Boolean} force_external
|
|
207
207
|
*/
|
|
208
208
|
TransferDestination.prototype['force_external'] = undefined;
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
|
|
9
9
|
**utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
|
|
10
10
|
**change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
|
|
11
|
-
**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `
|
|
12
|
-
**force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `
|
|
11
|
+
**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
|
|
12
|
+
**force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
|
|
13
13
|
|
|
14
14
|
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The destination address. |
|
|
8
|
-
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
|
9
|
-
**script** | **String** | The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent. | [optional]
|
|
8
|
+
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
|
10
9
|
|
|
11
10
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.BabylonStakeEstimatedFee
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
|
|
8
|
+
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
|
|
9
|
+
**fee_amount** | **String** | The amount of the estimated fee. | [optional]
|
|
10
|
+
**token_id** | **String** | The token ID of the staking fee. | [optional]
|
|
11
|
+
|
|
12
|
+
|
package/docs/BabylonValidator.md
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CheckAddressChainsValidity200ResponseInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. |
|
|
8
|
+
**validity** | **Boolean** | Whether the address is valid for the specified chain. - `true`: The address is valid. - `false`: The address is invalid. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**finality_provider_public_key** | **String** | The public key of the finality provider. |
|
|
9
9
|
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
|
|
10
10
|
**auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
|
|
11
|
+
**provider_name** | **String** | The name of the provider. |
|
|
11
12
|
|
|
12
13
|
|
|
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
9
|
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
10
10
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
11
|
+
**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
|
|
11
12
|
|
|
12
13
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CreateUnstakeActivityExtra
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
+
**validator_pubkeys** | **[String]** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. |
|
|
9
|
+
|
|
10
|
+
|