@cobo/cobo-waas2 1.12.0 → 1.13.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 +54 -18
- package/dist/ApiClient.js +1 -1
- package/dist/api/FeeStationApi.js +18 -18
- package/dist/api/TransactionsApi.js +2 -2
- package/dist/api/WalletsApi.js +8 -8
- package/dist/index.js +260 -43
- package/dist/model/ActivityExtra.js +0 -23
- package/dist/model/AddressEncoding.js +15 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/BTCBIP137MessageSignDestination.js +122 -0
- package/dist/model/BTCBIP322MessageSignDestination.js +122 -0
- package/dist/model/BabylonStakingActivityDetailExtra.js +0 -39
- package/dist/model/{ListSwapActivities200Response.js → BankAccount.js} +51 -51
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CosmosAdr36MessageSignDestination.js +122 -0
- package/dist/model/CosmosContractCallDestination.js +152 -0
- package/dist/model/CosmosContractCallMessage.js +126 -0
- package/dist/model/CreateSettlement.js +174 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/{CreateSwapActivityRequest.js → Merchant.js} +45 -58
- package/dist/model/MessageSignDestination.js +111 -9
- package/dist/model/MessageSignDestinationType.js +15 -0
- package/dist/model/Order.js +306 -0
- package/dist/model/OrderStatus.js +76 -0
- package/dist/model/PaymentTransaction.js +201 -0
- package/dist/model/RefreshAddressBalancesByTokenRequest.js +2 -3
- package/dist/model/Refund.js +237 -0
- package/dist/model/RefundStatus.js +76 -0
- package/dist/model/RefundType.js +61 -0
- package/dist/model/SettleRequestStatus.js +76 -0
- package/dist/model/SettleStatus.js +76 -0
- package/dist/model/Settlement.js +168 -0
- package/dist/model/SettlementDetail.js +184 -0
- package/dist/model/SettlementInfo.js +175 -0
- package/dist/model/SettlementType.js +61 -0
- package/dist/model/SwapActivity.js +36 -5
- package/dist/model/SwapActivityStatus.js +66 -0
- package/dist/model/SwapActivityType.js +61 -0
- package/dist/model/SwapQuote.js +21 -34
- package/dist/model/{CreateSwapQuoteRequest.js → SwapToken.js} +73 -60
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListing.js +230 -0
- package/dist/model/TokenListingEventData.js +363 -0
- package/dist/model/TokenListingRequestSource.js +61 -0
- package/dist/model/TokenListingRequestStatus.js +66 -0
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/Transaction.js +22 -5
- package/dist/model/TransactionBIP137Destination.js +122 -0
- package/dist/model/TransactionBIP322Destination.js +122 -0
- package/dist/model/TransactionBabylonBusinessInfo.js +138 -0
- package/dist/model/TransactionBabylonTxParameters.js +168 -0
- package/dist/model/TransactionCoreStakeInfo.js +168 -0
- package/dist/model/TransactionCosmosAdr36Destination.js +122 -0
- package/dist/model/TransactionCosmosContractDestination.js +152 -0
- package/dist/model/{ListEnableTokenPairs200Response.js → TransactionCosmosMessage.js} +54 -51
- package/dist/model/TransactionDestination.js +172 -8
- package/dist/model/TransactionDestinationType.js +20 -0
- package/dist/model/TransactionDetail.js +29 -7
- package/dist/model/TransactionDetails.js +29 -7
- package/dist/model/TransactionExtra.js +278 -0
- package/dist/model/TransactionExtraType.js +66 -0
- package/dist/model/TransactionFuelingInfo.js +3 -3
- package/dist/model/TransactionMessageSignBTCEIP191Destination.js +122 -0
- package/dist/model/TransactionRbfSource.js +37 -9
- package/dist/model/TransactionSelectedUtxo.js +2 -2
- package/dist/model/TransactionSubStatus.js +45 -0
- package/dist/model/TransactionWebhookEventData.js +37 -10
- package/dist/model/UpdateCustodialWalletParams.js +6 -4
- package/dist/model/UpdateExchangeWalletParams.js +6 -4
- package/dist/model/UpdateMpcWalletParams.js +6 -4
- package/dist/model/UpdateSmartContractWalletParams.js +6 -4
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WebhookEventData.js +81 -18
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/ActivityExtra.md +0 -4
- package/docs/AddressEncoding.md +6 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/BTCBIP137MessageSignDestination.md +10 -0
- package/docs/BTCBIP322MessageSignDestination.md +10 -0
- package/docs/BabylonStakingActivityDetailExtra.md +0 -4
- package/docs/BankAccount.md +10 -0
- package/docs/ChainsEventData.md +3 -1
- package/docs/CosmosAdr36MessageSignDestination.md +10 -0
- package/docs/CosmosContractCallDestination.md +11 -0
- package/docs/CosmosContractCallMessage.md +10 -0
- package/docs/CreateSettlement.md +14 -0
- package/docs/FeeStationApi.md +13 -13
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +11 -0
- package/docs/MessageSignDestination.md +3 -0
- package/docs/MessageSignDestinationType.md +6 -0
- package/docs/Order.md +23 -0
- package/docs/OrderStatus.md +18 -0
- package/docs/PaymentTransaction.md +16 -0
- package/docs/RefreshAddressBalancesByTokenRequest.md +1 -1
- package/docs/Refund.md +17 -0
- package/docs/RefundStatus.md +18 -0
- package/docs/RefundType.md +12 -0
- package/docs/SettleRequestStatus.md +18 -0
- package/docs/SettleStatus.md +18 -0
- package/docs/Settlement.md +12 -0
- package/docs/SettlementDetail.md +15 -0
- package/docs/SettlementInfo.md +14 -0
- package/docs/SettlementType.md +12 -0
- package/docs/SwapActivity.md +4 -1
- package/docs/SwapActivityStatus.md +14 -0
- package/docs/SwapActivityType.md +12 -0
- package/docs/SwapQuote.md +3 -4
- package/docs/SwapToken.md +14 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListing.md +19 -0
- package/docs/TokenListingEventData.md +45 -0
- package/docs/TokenListingRequestSource.md +12 -0
- package/docs/TokenListingRequestStatus.md +14 -0
- package/docs/TokensEventData.md +3 -1
- package/docs/Transaction.md +4 -3
- package/docs/TransactionBIP137Destination.md +10 -0
- package/docs/TransactionBIP322Destination.md +10 -0
- package/docs/TransactionBabylonBusinessInfo.md +11 -0
- package/docs/TransactionBabylonTxParameters.md +15 -0
- package/docs/TransactionCoreStakeInfo.md +14 -0
- package/docs/TransactionCosmosAdr36Destination.md +10 -0
- package/docs/TransactionCosmosContractDestination.md +11 -0
- package/docs/TransactionCosmosMessage.md +10 -0
- package/docs/TransactionDestination.md +4 -0
- package/docs/TransactionDestinationType.md +8 -0
- package/docs/TransactionDetail.md +4 -3
- package/docs/TransactionDetails.md +4 -3
- package/docs/TransactionExtra.md +21 -0
- package/docs/TransactionExtraType.md +14 -0
- package/docs/TransactionFuelingInfo.md +2 -2
- package/docs/TransactionMessageSignBTCEIP191Destination.md +10 -0
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionSelectedUtxo.md +2 -2
- package/docs/TransactionSubStatus.md +18 -0
- package/docs/TransactionWebhookEventData.md +7 -4
- package/docs/TransactionsApi.md +1 -1
- package/docs/UpdateCustodialWalletParams.md +1 -1
- package/docs/UpdateExchangeWalletParams.md +1 -1
- package/docs/UpdateMpcWalletParams.md +1 -1
- package/docs/UpdateSmartContractWalletParams.md +1 -1
- package/docs/UpdateWalletParams.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletsApi.md +5 -5
- package/docs/WebhookEventData.md +16 -8
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
- package/dist/api/SwapsApi.js +0 -360
- package/dist/model/CreateSwapQuote201Response.js +0 -264
- package/dist/model/SwapTokenPair.js +0 -100
- package/docs/CreateSwapActivityRequest.md +0 -12
- package/docs/CreateSwapQuote201Response.md +0 -17
- package/docs/CreateSwapQuoteRequest.md +0 -13
- package/docs/ListEnableTokenPairs200Response.md +0 -10
- package/docs/ListSwapActivities200Response.md +0 -10
- package/docs/SwapTokenPair.md +0 -10
- package/docs/SwapsApi.md +0 -348
|
@@ -13,9 +13,11 @@ var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
|
|
|
13
13
|
var _MPCVaultType = _interopRequireDefault(require("./MPCVaultType"));
|
|
14
14
|
var _RootPubkey = _interopRequireDefault(require("./RootPubkey"));
|
|
15
15
|
var _SourceGroup = _interopRequireDefault(require("./SourceGroup"));
|
|
16
|
-
var _TSSRequestStatus = _interopRequireDefault(require("./TSSRequestStatus"));
|
|
17
16
|
var _TSSRequestWebhookEventData = _interopRequireDefault(require("./TSSRequestWebhookEventData"));
|
|
18
17
|
var _TokenInfo = _interopRequireDefault(require("./TokenInfo"));
|
|
18
|
+
var _TokenListingEventData = _interopRequireDefault(require("./TokenListingEventData"));
|
|
19
|
+
var _TokenListingRequestSource = _interopRequireDefault(require("./TokenListingRequestSource"));
|
|
20
|
+
var _TokenListingRequestStatus = _interopRequireDefault(require("./TokenListingRequestStatus"));
|
|
19
21
|
var _TokensEventData = _interopRequireDefault(require("./TokensEventData"));
|
|
20
22
|
var _TransactionBlockInfo = _interopRequireDefault(require("./TransactionBlockInfo"));
|
|
21
23
|
var _TransactionDestination = _interopRequireDefault(require("./TransactionDestination"));
|
|
@@ -25,11 +27,12 @@ var _TransactionInitiatorType = _interopRequireDefault(require("./TransactionIni
|
|
|
25
27
|
var _TransactionRawTxInfo = _interopRequireDefault(require("./TransactionRawTxInfo"));
|
|
26
28
|
var _TransactionReplacement = _interopRequireDefault(require("./TransactionReplacement"));
|
|
27
29
|
var _TransactionResult = _interopRequireDefault(require("./TransactionResult"));
|
|
28
|
-
var _TransactionSource = _interopRequireDefault(require("./TransactionSource"));
|
|
29
30
|
var _TransactionSubStatus = _interopRequireDefault(require("./TransactionSubStatus"));
|
|
30
31
|
var _TransactionWebhookEventData = _interopRequireDefault(require("./TransactionWebhookEventData"));
|
|
31
32
|
var _WalletInfo = _interopRequireDefault(require("./WalletInfo"));
|
|
32
33
|
var _WalletInfoEventData = _interopRequireDefault(require("./WalletInfoEventData"));
|
|
34
|
+
var _WalletSubtype = _interopRequireDefault(require("./WalletSubtype"));
|
|
35
|
+
var _WalletType = _interopRequireDefault(require("./WalletType"));
|
|
33
36
|
var _WebhookEventData;
|
|
34
37
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
35
38
|
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); }
|
|
@@ -56,7 +59,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
56
59
|
/**
|
|
57
60
|
* Constructs a new <code>WebhookEventData</code>.
|
|
58
61
|
* @alias module:model/WebhookEventData
|
|
59
|
-
* @param {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
62
|
+
* @param {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
60
63
|
*/
|
|
61
64
|
function WebhookEventData() {
|
|
62
65
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -93,6 +96,10 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
93
96
|
this.actualInstance = _TSSRequestWebhookEventData["default"].constructFromObject(instance);
|
|
94
97
|
match++;
|
|
95
98
|
break;
|
|
99
|
+
case "TokenListing":
|
|
100
|
+
this.actualInstance = _TokenListingEventData["default"].constructFromObject(instance);
|
|
101
|
+
match++;
|
|
102
|
+
break;
|
|
96
103
|
case "Tokens":
|
|
97
104
|
this.actualInstance = _TokensEventData["default"].constructFromObject(instance);
|
|
98
105
|
match++;
|
|
@@ -272,13 +279,36 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
272
279
|
// json data failed to deserialize into TokensEventData
|
|
273
280
|
errorMessages.push("Failed to construct TokensEventData: " + err);
|
|
274
281
|
}
|
|
282
|
+
try {
|
|
283
|
+
if (instance instanceof _TokenListingEventData["default"]) {
|
|
284
|
+
this.actualInstance = instance;
|
|
285
|
+
} else if (!!_TokenListingEventData["default"].validateJSON && _TokenListingEventData["default"].validateJSON(instance)) {
|
|
286
|
+
// plain JS object
|
|
287
|
+
// create TokenListingEventData from JS object
|
|
288
|
+
this.actualInstance = _TokenListingEventData["default"].constructFromObject(instance);
|
|
289
|
+
} else {
|
|
290
|
+
if (_TokenListingEventData["default"].constructFromObject(instance)) {
|
|
291
|
+
if (!!_TokenListingEventData["default"].constructFromObject(instance).toJSON) {
|
|
292
|
+
if (_TokenListingEventData["default"].constructFromObject(instance).toJSON()) {
|
|
293
|
+
this.actualInstance = _TokenListingEventData["default"].constructFromObject(instance);
|
|
294
|
+
}
|
|
295
|
+
} else {
|
|
296
|
+
this.actualInstance = _TokenListingEventData["default"].constructFromObject(instance);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
match++;
|
|
301
|
+
} catch (err) {
|
|
302
|
+
// json data failed to deserialize into TokenListingEventData
|
|
303
|
+
errorMessages.push("Failed to construct TokenListingEventData: " + err);
|
|
304
|
+
}
|
|
275
305
|
|
|
276
306
|
// if (match > 1) {
|
|
277
|
-
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, ChainsEventData, MPCVaultEventData, TSSRequestWebhookEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
307
|
+
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, ChainsEventData, MPCVaultEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
278
308
|
// } else
|
|
279
309
|
if (match === 0) {
|
|
280
310
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
281
|
-
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, ChainsEventData, MPCVaultEventData, TSSRequestWebhookEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
311
|
+
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, ChainsEventData, MPCVaultEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
282
312
|
// errorMessages.join(", "));
|
|
283
313
|
return;
|
|
284
314
|
} else {// only 1 match
|
|
@@ -297,16 +327,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
297
327
|
key: "getActualInstance",
|
|
298
328
|
value:
|
|
299
329
|
/**
|
|
300
|
-
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
301
|
-
* @return {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
330
|
+
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
331
|
+
* @return {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
302
332
|
*/
|
|
303
333
|
function getActualInstance() {
|
|
304
334
|
return this.actualInstance;
|
|
305
335
|
}
|
|
306
336
|
|
|
307
337
|
/**
|
|
308
|
-
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
309
|
-
* @param {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
338
|
+
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>ChainsEventData</code>, <code>MPCVaultEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
339
|
+
* @param {(module:model/AddressesEventData|module:model/ChainsEventData|module:model/MPCVaultEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
310
340
|
*/
|
|
311
341
|
}, {
|
|
312
342
|
key: "setActualInstance",
|
|
@@ -321,7 +351,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
321
351
|
}]);
|
|
322
352
|
}();
|
|
323
353
|
/**
|
|
324
|
-
* 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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
|
|
354
|
+
* 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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data.
|
|
325
355
|
* @member {module:model/WebhookEventData.DataTypeEnum} data_type
|
|
326
356
|
*/
|
|
327
357
|
_WebhookEventData = WebhookEventData;
|
|
@@ -348,7 +378,7 @@ WebhookEventData.prototype['transaction_id'] = undefined;
|
|
|
348
378
|
WebhookEventData.prototype['cobo_id'] = undefined;
|
|
349
379
|
|
|
350
380
|
/**
|
|
351
|
-
*
|
|
381
|
+
* Unique identifier of the token listing request
|
|
352
382
|
* @member {String} request_id
|
|
353
383
|
*/
|
|
354
384
|
WebhookEventData.prototype['request_id'] = undefined;
|
|
@@ -365,7 +395,7 @@ WebhookEventData.prototype['wallet_id'] = undefined;
|
|
|
365
395
|
WebhookEventData.prototype['type'] = undefined;
|
|
366
396
|
|
|
367
397
|
/**
|
|
368
|
-
* @member {module:model/
|
|
398
|
+
* @member {module:model/TokenListingRequestStatus} status
|
|
369
399
|
*/
|
|
370
400
|
WebhookEventData.prototype['status'] = undefined;
|
|
371
401
|
|
|
@@ -381,7 +411,7 @@ WebhookEventData.prototype['sub_status'] = undefined;
|
|
|
381
411
|
WebhookEventData.prototype['failed_reason'] = undefined;
|
|
382
412
|
|
|
383
413
|
/**
|
|
384
|
-
*
|
|
414
|
+
* chain_id of the blockchain where the token exists
|
|
385
415
|
* @member {String} chain_id
|
|
386
416
|
*/
|
|
387
417
|
WebhookEventData.prototype['chain_id'] = undefined;
|
|
@@ -399,7 +429,7 @@ WebhookEventData.prototype['token_id'] = undefined;
|
|
|
399
429
|
WebhookEventData.prototype['asset_id'] = undefined;
|
|
400
430
|
|
|
401
431
|
/**
|
|
402
|
-
* @member {module:model/
|
|
432
|
+
* @member {module:model/TokenListingRequestSource} source
|
|
403
433
|
*/
|
|
404
434
|
WebhookEventData.prototype['source'] = undefined;
|
|
405
435
|
|
|
@@ -481,24 +511,30 @@ WebhookEventData.prototype['description'] = undefined;
|
|
|
481
511
|
WebhookEventData.prototype['is_loop'] = undefined;
|
|
482
512
|
|
|
483
513
|
/**
|
|
484
|
-
*
|
|
514
|
+
* The transaction category defined by Cobo. Possible values include: - `AutoSweep`: An auto-sweep transaction. - `AutoFueling`: A transaction where Fee Station pays transaction fees to an address within your wallet. - `AutoFuelingRefund`: A refund for an auto-fueling transaction. - `SafeTxMessage`: A message signing transaction to authorize a Smart Contract Wallet (Safe\\{Wallet\\}) transaction. - `BillPayment`: A transaction to pay Cobo bills through Fee Station. - `BillRefund`: A refund for a previously made bill payment. - `CommissionFeeCharge`: A transaction to charge commission fees via Fee Station. - `CommissionFeeRefund`: A refund of previously charged commission fees.
|
|
485
515
|
* @member {Array.<String>} cobo_category
|
|
486
516
|
*/
|
|
487
517
|
WebhookEventData.prototype['cobo_category'] = undefined;
|
|
488
518
|
|
|
519
|
+
/**
|
|
520
|
+
* The transaction extra information.
|
|
521
|
+
* @member {Array.<String>} extra
|
|
522
|
+
*/
|
|
523
|
+
WebhookEventData.prototype['extra'] = undefined;
|
|
524
|
+
|
|
489
525
|
/**
|
|
490
526
|
* @member {module:model/TransactionFuelingInfo} fueling_info
|
|
491
527
|
*/
|
|
492
528
|
WebhookEventData.prototype['fueling_info'] = undefined;
|
|
493
529
|
|
|
494
530
|
/**
|
|
495
|
-
*
|
|
531
|
+
* Timestamp when the request was created (in milliseconds since Unix epoch)
|
|
496
532
|
* @member {Number} created_timestamp
|
|
497
533
|
*/
|
|
498
534
|
WebhookEventData.prototype['created_timestamp'] = undefined;
|
|
499
535
|
|
|
500
536
|
/**
|
|
501
|
-
*
|
|
537
|
+
* Timestamp when the request was last updated (in milliseconds since Unix epoch)
|
|
502
538
|
* @member {Number} updated_timestamp
|
|
503
539
|
*/
|
|
504
540
|
WebhookEventData.prototype['updated_timestamp'] = undefined;
|
|
@@ -565,5 +601,32 @@ WebhookEventData.prototype['chains'] = undefined;
|
|
|
565
601
|
* @member {Array.<module:model/TokenInfo>} tokens
|
|
566
602
|
*/
|
|
567
603
|
WebhookEventData.prototype['tokens'] = undefined;
|
|
568
|
-
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Contract address of the token
|
|
607
|
+
* @member {String} contract_address
|
|
608
|
+
*/
|
|
609
|
+
WebhookEventData.prototype['contract_address'] = undefined;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @member {module:model/WalletType} wallet_type
|
|
613
|
+
*/
|
|
614
|
+
WebhookEventData.prototype['wallet_type'] = undefined;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* @member {module:model/WalletSubtype} wallet_subtype
|
|
618
|
+
*/
|
|
619
|
+
WebhookEventData.prototype['wallet_subtype'] = undefined;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @member {module:model/TokenInfo} token
|
|
623
|
+
*/
|
|
624
|
+
WebhookEventData.prototype['token'] = undefined;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Feedback provided by the admin for rejected requests
|
|
628
|
+
* @member {String} feedback
|
|
629
|
+
*/
|
|
630
|
+
WebhookEventData.prototype['feedback'] = undefined;
|
|
631
|
+
WebhookEventData.OneOf = ["AddressesEventData", "ChainsEventData", "MPCVaultEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
|
|
569
632
|
var _default = exports["default"] = WebhookEventData;
|
|
@@ -33,7 +33,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>WebhookEventDataType</code>.
|
|
34
34
|
* The data type of the event.
|
|
35
35
|
* @alias module:model/WebhookEventDataType
|
|
36
|
-
* @param data_type {module:model/WebhookEventDataType.DataTypeEnum} 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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
|
|
36
|
+
* @param data_type {module:model/WebhookEventDataType.DataTypeEnum} 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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data.
|
|
37
37
|
*/
|
|
38
38
|
function WebhookEventDataType(data_type) {
|
|
39
39
|
_classCallCheck(this, WebhookEventDataType);
|
|
@@ -104,7 +104,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
104
104
|
WebhookEventDataType.RequiredProperties = ["data_type"];
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* 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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data.
|
|
107
|
+
* 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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data.
|
|
108
108
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
109
109
|
*/
|
|
110
110
|
WebhookEventDataType.prototype['data_type'] = undefined;
|
|
@@ -150,6 +150,11 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
150
150
|
* @const
|
|
151
151
|
*/
|
|
152
152
|
"Tokens": "Tokens",
|
|
153
|
+
/**
|
|
154
|
+
* value: "TokenListing"
|
|
155
|
+
* @const
|
|
156
|
+
*/
|
|
157
|
+
"TokenListing": "TokenListing",
|
|
153
158
|
/**
|
|
154
159
|
* value: "unknown_default_open_api"
|
|
155
160
|
* @const
|
|
@@ -80,6 +80,16 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
80
80
|
* @const
|
|
81
81
|
*/
|
|
82
82
|
_defineProperty(this, "wallets.created", "wallets.created");
|
|
83
|
+
/**
|
|
84
|
+
* value: "wallets.token_listing.failed"
|
|
85
|
+
* @const
|
|
86
|
+
*/
|
|
87
|
+
_defineProperty(this, "wallets.token_listing.failed", "wallets.token_listing.failed");
|
|
88
|
+
/**
|
|
89
|
+
* value: "wallets.token_listing.succeeded"
|
|
90
|
+
* @const
|
|
91
|
+
*/
|
|
92
|
+
_defineProperty(this, "wallets.token_listing.succeeded", "wallets.token_listing.succeeded");
|
|
83
93
|
/**
|
|
84
94
|
* value: "mpc_vaults.created"
|
|
85
95
|
* @const
|
package/docs/ActivityExtra.md
CHANGED
|
@@ -8,10 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
|
|
9
9
|
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
|
|
10
10
|
**auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/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](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
|
|
11
|
-
**param_version** | **Number** | The version of babylon global parameters. | [optional]
|
|
12
|
-
**withdraw_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
13
|
-
**slash_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
14
|
-
**stake_amount** | **String** | The origin staking amount. | [optional]
|
|
15
11
|
**provider_name** | **String** | The name of the provider. | [optional]
|
|
16
12
|
**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this unstaking operation. | [optional]
|
|
17
13
|
**timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
|
package/docs/AddressEncoding.md
CHANGED
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
|
|
18
18
|
* `P2TR` (value: `"ENCODING_P2TR"`)
|
|
19
19
|
|
|
20
|
+
* `ADA_BYRON` (value: `"ENCODING_ADA_BYRON"`)
|
|
21
|
+
|
|
22
|
+
* `ADA_SHELLEY` (value: `"ENCODING_ADA_SHELLEY"`)
|
|
23
|
+
|
|
24
|
+
* `DEFAULT` (value: `"ENCODING_DEFAULT"`)
|
|
25
|
+
|
|
20
26
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
21
27
|
|
|
22
28
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. |
|
|
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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. |
|
|
8
8
|
**addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -26,6 +26,8 @@ Name | Type | Description | Notes
|
|
|
26
26
|
|
|
27
27
|
* `Tokens` (value: `"Tokens"`)
|
|
28
28
|
|
|
29
|
+
* `TokenListing` (value: `"TokenListing"`)
|
|
30
|
+
|
|
29
31
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
30
32
|
|
|
31
33
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.BTCBIP137MessageSignDestination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
|
|
8
|
+
**message_bip137** | **String** | Message to be signed, in hexadecimal format. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.BTCBIP322MessageSignDestination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
|
|
8
|
+
**message_bip322** | **String** | Message to be signed, in hexadecimal format. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -8,9 +8,5 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
|
|
9
9
|
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
|
|
10
10
|
**auto_broadcast** | **Boolean** | Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/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](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
|
|
11
|
-
**param_version** | **Number** | The version of babylon global parameters. | [optional]
|
|
12
|
-
**withdraw_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
13
|
-
**slash_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
14
|
-
**stake_amount** | **String** | The origin staking amount. | [optional]
|
|
15
11
|
|
|
16
12
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.BankAccount
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**bank_account_id** | **String** | The bank account ID. |
|
|
8
|
+
**info** | **{String: Object}** | JSON-formatted bank account details. |
|
|
9
|
+
|
|
10
|
+
|
package/docs/ChainsEventData.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. |
|
|
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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. |
|
|
8
8
|
**chains** | [**[ChainInfo]**](ChainInfo.md) | The enabled chains. |
|
|
9
9
|
|
|
10
10
|
|
|
@@ -26,6 +26,8 @@ Name | Type | Description | Notes
|
|
|
26
26
|
|
|
27
27
|
* `Tokens` (value: `"Tokens"`)
|
|
28
28
|
|
|
29
|
+
* `TokenListing` (value: `"TokenListing"`)
|
|
30
|
+
|
|
29
31
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
30
32
|
|
|
31
33
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CosmosAdr36MessageSignDestination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
|
|
8
|
+
**message_cosmos_adr36** | **String** | Message to be signed, in hexadecimal format. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.CosmosContractCallDestination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**ContractCallDestinationType**](ContractCallDestinationType.md) | |
|
|
8
|
+
**cosmos_messages** | [**[CosmosContractCallMessage]**](CosmosContractCallMessage.md) | |
|
|
9
|
+
**value** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`. | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CosmosContractCallMessage
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**type_url** | **String** | The type URL of the Cosmos message. |
|
|
8
|
+
**message** | **String** | The Base64-encoded Cosmos message. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.CreateSettlement
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**merchant_id** | **String** | The merchant ID. | [optional]
|
|
8
|
+
**token_id** | **String** | The ID of the cryptocurrency token you want to settle. Supported values: - USDC: `ETH_USDC`, `ARBITRUM_USDC`, `SOL_USDC`, `BASE_USDC`, `MATIC_USDC`, `BSC_USDC` - USDT: `TRON_USDT`, `ETH_USDT`, `ARBITRUM_USDT`, `SOL_USDT`, `BASE_USDT`, `MATIC_USDT`, `BSC_USDT` | [optional]
|
|
9
|
+
**currency** | **String** | The currency for settling the cryptocurrency. Currently, only `USD` is supported. | [optional] [default to 'USD']
|
|
10
|
+
**amount** | **String** | The amount to be settled. - If `token_id` is specified, this represents the settlement amount in the specified cryptocurrency token. - If `token_id` is not specified, this represents the settlement amount in the specified currency. |
|
|
11
|
+
**bank_account_id** | **String** | The ID of the bank account where the settled funds will be deposited. |
|
|
12
|
+
**settlement_type** | [**SettlementType**](SettlementType.md) | | [optional]
|
|
13
|
+
|
|
14
|
+
|
package/docs/FeeStationApi.md
CHANGED
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**getFeeStationTransactionById**](FeeStationApi.md#getFeeStationTransactionById) | **GET** /fee_station/transactions/{transaction_id} | Get
|
|
8
|
-
[**listFeeStationAddresses**](FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List
|
|
9
|
-
[**listFeeStationTransactions**](FeeStationApi.md#listFeeStationTransactions) | **GET** /fee_station/transactions | List all
|
|
10
|
-
[**listTokenBalancesForFeeStation**](FeeStationApi.md#listTokenBalancesForFeeStation) | **GET** /fee_station/tokens | List token balances
|
|
7
|
+
[**getFeeStationTransactionById**](FeeStationApi.md#getFeeStationTransactionById) | **GET** /fee_station/transactions/{transaction_id} | Get Fee Station transaction information
|
|
8
|
+
[**listFeeStationAddresses**](FeeStationApi.md#listFeeStationAddresses) | **GET** /fee_station/addresses | List Fee Station addresses
|
|
9
|
+
[**listFeeStationTransactions**](FeeStationApi.md#listFeeStationTransactions) | **GET** /fee_station/transactions | List all Fee Station transactions
|
|
10
|
+
[**listTokenBalancesForFeeStation**](FeeStationApi.md#listTokenBalancesForFeeStation) | **GET** /fee_station/tokens | List Fee Station token balances
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -15,9 +15,9 @@ Method | HTTP request | Description
|
|
|
15
15
|
|
|
16
16
|
> TransactionDetail getFeeStationTransactionById(transaction_id)
|
|
17
17
|
|
|
18
|
-
Get
|
|
18
|
+
Get Fee Station transaction information
|
|
19
19
|
|
|
20
|
-
This operation retrieves detailed information about a specified transaction, such as the transaction status, source address, destination address, and timestamp.
|
|
20
|
+
This operation retrieves detailed information about a specified Fee Station transaction, such as the transaction status, source address, destination address, and timestamp.
|
|
21
21
|
|
|
22
22
|
### Example
|
|
23
23
|
|
|
@@ -65,9 +65,9 @@ Name | Type | Description | Notes
|
|
|
65
65
|
|
|
66
66
|
> ListAddresses200Response listFeeStationAddresses(opts)
|
|
67
67
|
|
|
68
|
-
List
|
|
68
|
+
List Fee Station addresses
|
|
69
69
|
|
|
70
|
-
This operation retrieves a list of addresses within
|
|
70
|
+
This operation retrieves a list of addresses within your Fee Station.
|
|
71
71
|
|
|
72
72
|
### Example
|
|
73
73
|
|
|
@@ -125,9 +125,9 @@ Name | Type | Description | Notes
|
|
|
125
125
|
|
|
126
126
|
> ListTransactions200Response listFeeStationTransactions(opts)
|
|
127
127
|
|
|
128
|
-
List all
|
|
128
|
+
List all Fee Station transactions
|
|
129
129
|
|
|
130
|
-
This operation retrieves all
|
|
130
|
+
This operation retrieves all Fee Station transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamp. You can also paginate and sort your query results.
|
|
131
131
|
|
|
132
132
|
### Example
|
|
133
133
|
|
|
@@ -175,7 +175,7 @@ Name | Type | Description | Notes
|
|
|
175
175
|
**cobo_ids** | **String**| A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction. | [optional]
|
|
176
176
|
**transaction_ids** | **String**| A list of transaction IDs, separated by comma. | [optional]
|
|
177
177
|
**transaction_hashes** | **String**| A list of transaction hashes, separated by comma. | [optional]
|
|
178
|
-
**types** | **String**| A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. | [optional]
|
|
178
|
+
**types** | **String**| A list of transaction types for Fee Station, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. | [optional]
|
|
179
179
|
**statuses** | **String**| A list of transaction statuses, separated by comma. Possible values include: - `Submitted`: The transaction is submitted. - `PendingScreening`: The transaction is pending screening by Risk Control. - `PendingAuthorization`: The transaction is pending approvals. - `PendingSignature`: The transaction is pending signature. - `Broadcasting`: The transaction is being broadcast. - `Confirming`: The transaction is waiting for the required number of confirmations. - `Completed`: The transaction is completed. - `Failed`: The transaction failed. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is waiting to be included in the next block of the blockchain. | [optional]
|
|
180
180
|
**chain_ids** | **String**| A list of chain IDs, separated by comma. The chain ID 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). | [optional]
|
|
181
181
|
**token_ids** | **String**| A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
|
|
@@ -205,9 +205,9 @@ Name | Type | Description | Notes
|
|
|
205
205
|
|
|
206
206
|
> ListTokenBalancesForAddress200Response listTokenBalancesForFeeStation(opts)
|
|
207
207
|
|
|
208
|
-
List token balances
|
|
208
|
+
List Fee Station token balances
|
|
209
209
|
|
|
210
|
-
The operation retrieves a list of token balances within
|
|
210
|
+
The operation retrieves a list of token balances within your Fee Station.
|
|
211
211
|
|
|
212
212
|
### Example
|
|
213
213
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. |
|
|
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. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. |
|
|
8
8
|
**vault_id** | **String** | The vault ID. | [optional]
|
|
9
9
|
**project_id** | **String** | The project ID. | [optional]
|
|
10
10
|
**name** | **String** | The vault name. | [optional]
|
|
@@ -31,6 +31,8 @@ Name | Type | Description | Notes
|
|
|
31
31
|
|
|
32
32
|
* `Tokens` (value: `"Tokens"`)
|
|
33
33
|
|
|
34
|
+
* `TokenListing` (value: `"TokenListing"`)
|
|
35
|
+
|
|
34
36
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
35
37
|
|
|
36
38
|
|
package/docs/Merchant.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.Merchant
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**merchant_id** | **String** | The merchant ID. |
|
|
8
|
+
**name** | **String** | The merchant name. |
|
|
9
|
+
**wallet_id** | **String** | The ID of the associated wallet. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -8,5 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**message** | **String** | The raw data of the message to be signed, encoded in Base64 format. |
|
|
9
9
|
**structured_data** | **{String: Object}** | The structured data to be signed, formatted as a JSON object according to the EIP-712 standard. |
|
|
10
10
|
**msg_hash** | **String** | Message hash to be signed, in hexadecimal format. |
|
|
11
|
+
**message_bip137** | **String** | Message to be signed, in hexadecimal format. |
|
|
12
|
+
**message_bip322** | **String** | Message to be signed, in hexadecimal format. |
|
|
13
|
+
**message_cosmos_adr36** | **String** | Message to be signed, in hexadecimal format. |
|
|
11
14
|
|
|
12
15
|
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
|
|
10
10
|
* `BTC_EIP_191_Signature` (value: `"BTC_EIP_191_Signature"`)
|
|
11
11
|
|
|
12
|
+
* `BTC_BIP_137_Signature` (value: `"BTC_BIP_137_Signature"`)
|
|
13
|
+
|
|
14
|
+
* `BTC_BIP_322_Signature` (value: `"BTC_BIP_322_Signature"`)
|
|
15
|
+
|
|
16
|
+
* `COSMOS_ADR_36_Signature` (value: `"COSMOS_ADR_36_Signature"`)
|
|
17
|
+
|
|
12
18
|
* `Raw_Message_Signature` (value: `"Raw_Message_Signature"`)
|
|
13
19
|
|
|
14
20
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
package/docs/Order.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# CoboWaas2.Order
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**order_id** | **String** | The order ID. |
|
|
8
|
+
**merchant_id** | **String** | The merchant ID. | [optional]
|
|
9
|
+
**token_id** | **String** | The ID of the cryptocurrency token used for payment. |
|
|
10
|
+
**chain_id** | **String** | The ID of the blockchain network where the payment transaction should be made. |
|
|
11
|
+
**payable_amount** | **String** | The cryptocurrency amount to be paid for this order. |
|
|
12
|
+
**receive_address** | **String** | The recipient wallet address to be used for the payment transaction. |
|
|
13
|
+
**currency** | **String** | The currency of the order. |
|
|
14
|
+
**order_amount** | **String** | The base amount in currency to be charged for the payment order, excluding the payment gateway fee (specified in `fee_amount`). |
|
|
15
|
+
**fee_amount** | **String** | The payment gateway fee in currency. It is added to the base amount (`order_amount`) to determine the final charge. |
|
|
16
|
+
**exchange_rate** | **String** | The exchange rate used to convert between currency and cryptocurrency token. Expressed as the amount of currency per one unit of cryptocurrency. For example, if the token is USDT and the currency is USD, a rate of \"0.99\" means 1 USDT = 0.99 USD. |
|
|
17
|
+
**expired_at** | **Number** | The expiration time of the payment order, represented as a UNIX timestamp in seconds. | [optional]
|
|
18
|
+
**merchant_order_code** | **String** | A unique reference code assigned by the merchant to identify this order in their system. | [optional]
|
|
19
|
+
**psp_order_code** | **String** | A unique reference code assigned by the payment gateway to identify this order in their system. |
|
|
20
|
+
**status** | [**OrderStatus**](OrderStatus.md) | |
|
|
21
|
+
**received_token_amount** | **String** | The total cryptocurrency amount received for this order. Updates until order expires. Precision matches the token standard (e.g., 6 decimals for USDT). |
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CoboWaas2.OrderStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Pending` (value: `"Pending"`)
|
|
7
|
+
|
|
8
|
+
* `Processing` (value: `"Processing"`)
|
|
9
|
+
|
|
10
|
+
* `Completed` (value: `"Completed"`)
|
|
11
|
+
|
|
12
|
+
* `Expired` (value: `"Expired"`)
|
|
13
|
+
|
|
14
|
+
* `Underpaid` (value: `"Underpaid"`)
|
|
15
|
+
|
|
16
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CoboWaas2.PaymentTransaction
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**tx_id** | **String** | Unique identifier for the transaction. |
|
|
8
|
+
**tx_hash** | **String** | The blockchain transaction hash, may be initially null and populated after submission. | [optional]
|
|
9
|
+
**from_address** | **String** | Source cryptocurrency address for the transaction. |
|
|
10
|
+
**to_address** | **String** | Destination cryptocurrency address for the transaction. |
|
|
11
|
+
**amount** | **String** | The amount of cryptocurrency transferred, as a decimal string. |
|
|
12
|
+
**status** | [**TransactionStatus**](TransactionStatus.md) | |
|
|
13
|
+
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
14
|
+
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
15
|
+
|
|
16
|
+
|