@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
package/docs/Refund.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# CoboWaas2.Refund
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**request_id** | **String** | The request id. | [optional]
|
|
8
|
+
**refund_id** | **String** | The refund order ID. |
|
|
9
|
+
**merchant_id** | **String** | The merchant ID. | [optional]
|
|
10
|
+
**token_id** | **String** | The ID of the cryptocurrency token used for refund. |
|
|
11
|
+
**chain_id** | **String** | The ID of the blockchain network on which the refund transaction occurs. |
|
|
12
|
+
**amount** | **String** | The amount in cryptocurrency to be returned for this refund order. |
|
|
13
|
+
**to_address** | **String** | The recipient's wallet address where the refund will be sent. |
|
|
14
|
+
**status** | [**RefundStatus**](RefundStatus.md) | |
|
|
15
|
+
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | | [optional]
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CoboWaas2.RefundStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Pending` (value: `"Pending"`)
|
|
7
|
+
|
|
8
|
+
* `Processing` (value: `"Processing"`)
|
|
9
|
+
|
|
10
|
+
* `Completed` (value: `"Completed"`)
|
|
11
|
+
|
|
12
|
+
* `PartiallyCompleted` (value: `"PartiallyCompleted"`)
|
|
13
|
+
|
|
14
|
+
* `Failed` (value: `"Failed"`)
|
|
15
|
+
|
|
16
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CoboWaas2.SettleRequestStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Pending` (value: `"Pending"`)
|
|
7
|
+
|
|
8
|
+
* `Processing` (value: `"Processing"`)
|
|
9
|
+
|
|
10
|
+
* `Completed` (value: `"Completed"`)
|
|
11
|
+
|
|
12
|
+
* `PartiallyCompleted` (value: `"PartiallyCompleted"`)
|
|
13
|
+
|
|
14
|
+
* `Failed` (value: `"Failed"`)
|
|
15
|
+
|
|
16
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# CoboWaas2.SettleStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Pending` (value: `"Pending"`)
|
|
7
|
+
|
|
8
|
+
* `Processing` (value: `"Processing"`)
|
|
9
|
+
|
|
10
|
+
* `Completed` (value: `"Completed"`)
|
|
11
|
+
|
|
12
|
+
* `PartiallyCompleted` (value: `"PartiallyCompleted"`)
|
|
13
|
+
|
|
14
|
+
* `Failed` (value: `"Failed"`)
|
|
15
|
+
|
|
16
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.Settlement
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**settlement_request_id** | **String** | Internal system-generated identifier with a human-readable format. Used primarily for internal operations and logging. |
|
|
8
|
+
**request_id** | **String** | Client-provided external identifier. |
|
|
9
|
+
**status** | [**SettleRequestStatus**](SettleRequestStatus.md) | |
|
|
10
|
+
**settlements** | [**[SettlementDetail]**](SettlementDetail.md) | |
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CoboWaas2.SettlementDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**currency** | **String** | The currency for the settlement. | [optional]
|
|
8
|
+
**token_id** | **String** | The ID of the cryptocurrency token settled. | [optional]
|
|
9
|
+
**chain_id** | **String** | The ID of the blockchain network on which the settlement occurred. | [optional]
|
|
10
|
+
**amount** | **String** | The settled amount. - 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. | [optional]
|
|
11
|
+
**status** | [**SettleStatus**](SettleStatus.md) | | [optional]
|
|
12
|
+
**bank_account** | [**BankAccount**](BankAccount.md) | | [optional]
|
|
13
|
+
**transactions** | [**[PaymentTransaction]**](PaymentTransaction.md) | | [optional]
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.SettlementInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**merchant_id** | **String** | The merchant ID. For payment gateway balance, this field will be empty. | [optional]
|
|
8
|
+
**token_id** | **String** | The ID of the cryptocurrency token. | [optional]
|
|
9
|
+
**available_amount** | **String** | The amount available for settlement in the specified cryptocurrency token. |
|
|
10
|
+
**available_currency_balance** | **String** | The available currency balance. | [optional]
|
|
11
|
+
**pending_amount** | **String** | The pending amount. | [optional]
|
|
12
|
+
**pending_currency_balance** | **String** | The pending currency balance. | [optional]
|
|
13
|
+
|
|
14
|
+
|
package/docs/SwapActivity.md
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**activity_id** | **String** | The unique identifier of the swap activity. | [optional]
|
|
8
|
-
**
|
|
8
|
+
**activity_type** | [**SwapActivityType**](SwapActivityType.md) | | [optional]
|
|
9
|
+
**status** | [**SwapActivityStatus**](SwapActivityStatus.md) | | [optional]
|
|
10
|
+
**request_id** | **String** | The request id of the swap activity. | [optional]
|
|
9
11
|
**wallet_id** | **String** | The unique identifier of the wallet. | [optional]
|
|
10
12
|
**pay_token_id** | **String** | The token symbol to swap from. | [optional]
|
|
11
13
|
**receive_token_id** | **String** | The token symbol to swap to. | [optional]
|
|
@@ -14,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
14
16
|
**fee_amount** | **String** | The amount of fee. | [optional]
|
|
15
17
|
**initiator** | **String** | The initiator of the swap activity. | [optional]
|
|
16
18
|
**initiator_type** | [**TransactionInitiatorType**](TransactionInitiatorType.md) | | [optional]
|
|
19
|
+
**description** | **String** | The description of the swap activity. | [optional]
|
|
17
20
|
**created_timestamp** | **Number** | The time when the swap activity was created, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
18
21
|
**updated_timestamp** | **Number** | The time when the swap activity was last updated, in Unix timestamp format, measured in milliseconds. | [optional]
|
|
19
22
|
|
package/docs/SwapQuote.md
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**quote_id** | **String** | The unique id of quote. | [optional]
|
|
7
8
|
**pay_amount** | **String** | The amount of tokens to pay. |
|
|
8
9
|
**receive_amount** | **String** | The amount of tokens to receive. |
|
|
9
10
|
**fee_amount** | **String** | The amount of tokens to pay for fee. |
|
|
10
|
-
**
|
|
11
|
-
**max_pay_amount** | **String** | The maximum amount of tokens to pay. | [optional]
|
|
12
|
-
**min_receive_amount** | **String** | The minimum amount of tokens to receive. | [optional]
|
|
13
|
-
**max_receive_amount** | **String** | The maximum amount of tokens to receive. | [optional]
|
|
11
|
+
**min_receive_amount** | **String** | The minimum amount of tokens to receive if the pay amount is specified. | [optional]
|
|
12
|
+
**max_pay_amount** | **String** | The maximum amount of tokens to pay if the receive amount is specified. | [optional]
|
|
14
13
|
**quote_expired_timestamp** | **Number** | The time when the quote will expire, in Unix timestamp format, measured in milliseconds. |
|
|
15
14
|
|
|
16
15
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.SwapToken
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**token_id** | **String** | The token id. |
|
|
8
|
+
**chain_id** | **String** | The chain id. |
|
|
9
|
+
**asset_id** | **String** | The asset id. |
|
|
10
|
+
**token_address** | **String** | The token address. | [optional]
|
|
11
|
+
**min_amount** | **String** | The minimum amount to swap. | [optional]
|
|
12
|
+
**max_amount** | **String** | The maximum amount to swap. | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -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
|
**tss_request_id** | **String** | The TSS request ID. | [optional]
|
|
9
9
|
**source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
|
|
10
10
|
**target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
|
|
@@ -32,6 +32,8 @@ Name | Type | Description | Notes
|
|
|
32
32
|
|
|
33
33
|
* `Tokens` (value: `"Tokens"`)
|
|
34
34
|
|
|
35
|
+
* `TokenListing` (value: `"TokenListing"`)
|
|
36
|
+
|
|
35
37
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
36
38
|
|
|
37
39
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# CoboWaas2.TokenListing
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**request_id** | **String** | Unique identifier of the token listing request |
|
|
8
|
+
**chain_id** | **String** | chain_id of the blockchain where the token exists |
|
|
9
|
+
**contract_address** | **String** | Contract address of the token |
|
|
10
|
+
**wallet_type** | [**WalletType**](WalletType.md) | |
|
|
11
|
+
**wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
12
|
+
**token** | [**TokenInfo**](TokenInfo.md) | | [optional]
|
|
13
|
+
**status** | [**TokenListingRequestStatus**](TokenListingRequestStatus.md) | |
|
|
14
|
+
**source** | [**TokenListingRequestSource**](TokenListingRequestSource.md) | | [optional]
|
|
15
|
+
**feedback** | **String** | Feedback provided by the admin for rejected requests | [optional]
|
|
16
|
+
**created_timestamp** | **Number** | Timestamp when the request was created (in milliseconds since Unix epoch) | [optional]
|
|
17
|
+
**updated_timestamp** | **Number** | Timestamp when the request was last updated (in milliseconds since Unix epoch) | [optional]
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# CoboWaas2.TokenListingEventData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
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. - `TokenListing`: The token listing event data. |
|
|
8
|
+
**request_id** | **String** | Unique identifier of the token listing request |
|
|
9
|
+
**chain_id** | **String** | chain_id of the blockchain where the token exists |
|
|
10
|
+
**contract_address** | **String** | Contract address of the token |
|
|
11
|
+
**wallet_type** | [**WalletType**](WalletType.md) | |
|
|
12
|
+
**wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
13
|
+
**token** | [**TokenInfo**](TokenInfo.md) | | [optional]
|
|
14
|
+
**status** | [**TokenListingRequestStatus**](TokenListingRequestStatus.md) | |
|
|
15
|
+
**source** | [**TokenListingRequestSource**](TokenListingRequestSource.md) | | [optional]
|
|
16
|
+
**feedback** | **String** | Feedback provided by the admin for rejected requests | [optional]
|
|
17
|
+
**created_timestamp** | **Number** | Timestamp when the request was created (in milliseconds since Unix epoch) | [optional]
|
|
18
|
+
**updated_timestamp** | **Number** | Timestamp when the request was last updated (in milliseconds since Unix epoch) | [optional]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Enum: DataTypeEnum
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
* `Transaction` (value: `"Transaction"`)
|
|
26
|
+
|
|
27
|
+
* `TSSRequest` (value: `"TSSRequest"`)
|
|
28
|
+
|
|
29
|
+
* `Addresses` (value: `"Addresses"`)
|
|
30
|
+
|
|
31
|
+
* `WalletInfo` (value: `"WalletInfo"`)
|
|
32
|
+
|
|
33
|
+
* `MPCVault` (value: `"MPCVault"`)
|
|
34
|
+
|
|
35
|
+
* `Chains` (value: `"Chains"`)
|
|
36
|
+
|
|
37
|
+
* `Tokens` (value: `"Tokens"`)
|
|
38
|
+
|
|
39
|
+
* `TokenListing` (value: `"TokenListing"`)
|
|
40
|
+
|
|
41
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
package/docs/TokensEventData.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
|
**tokens** | [**[TokenInfo]**](TokenInfo.md) | The enabled tokens. |
|
|
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
|
|
package/docs/Transaction.md
CHANGED
|
@@ -30,9 +30,10 @@ Name | Type | Description | Notes
|
|
|
30
30
|
**category** | **[String]** | A custom transaction category for you to identify your transfers more easily. | [optional]
|
|
31
31
|
**description** | **String** | The description for your transaction. | [optional]
|
|
32
32
|
**is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
|
|
33
|
-
**cobo_category** | **[String]** |
|
|
33
|
+
**cobo_category** | **[String]** | 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. | [optional]
|
|
34
|
+
**extra** | **[String]** | The transaction extra information. | [optional]
|
|
34
35
|
**fueling_info** | [**TransactionFuelingInfo**](TransactionFuelingInfo.md) | | [optional]
|
|
35
|
-
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
36
|
-
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
36
|
+
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
37
|
+
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
37
38
|
|
|
38
39
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.TransactionBIP137Destination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**TransactionDestinationType**](TransactionDestinationType.md) | |
|
|
8
|
+
**message_bip137** | **String** | Message to be signed, in hexadecimal format. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.TransactionBIP322Destination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**TransactionDestinationType**](TransactionDestinationType.md) | |
|
|
8
|
+
**message_bip322** | **String** | Message to be signed, in hexadecimal format. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.TransactionBabylonBusinessInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**extra_type** | [**TransactionExtraType**](TransactionExtraType.md) | |
|
|
8
|
+
**babylon_address_info** | [**AddressInfo**](AddressInfo.md) | | [optional]
|
|
9
|
+
**btc_address_info** | [**AddressInfo**](AddressInfo.md) | | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CoboWaas2.TransactionBabylonTxParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**extra_type** | [**TransactionExtraType**](TransactionExtraType.md) | |
|
|
8
|
+
**stake_amount** | **String** | The origin staking amount. | [optional]
|
|
9
|
+
**finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
|
|
10
|
+
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [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
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.TransactionCoreStakeInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**extra_type** | [**TransactionExtraType**](TransactionExtraType.md) | |
|
|
8
|
+
**stake_amount** | **String** | The origin staking amount. | [optional]
|
|
9
|
+
**timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
|
|
10
|
+
**change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. | [optional]
|
|
11
|
+
**validator_address** | **String** | The validator's EVM address. | [optional]
|
|
12
|
+
**reward_address** | **String** | The EVM address to receive staking rewards. | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.TransactionCosmosAdr36Destination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**TransactionDestinationType**](TransactionDestinationType.md) | |
|
|
8
|
+
**message_cosmos_adr36** | **String** | Message to be signed, in hexadecimal format. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.TransactionCosmosContractDestination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**TransactionDestinationType**](TransactionDestinationType.md) | |
|
|
8
|
+
**cosmos_messages** | [**[TransactionCosmosMessage]**](TransactionCosmosMessage.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.TransactionCosmosMessage
|
|
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
|
+
|
|
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**calldata** | **String** | The data that is used to invoke a specific function or method within the specified contract at the destination address. |
|
|
20
20
|
**calldata_info** | [**TransactionEvmCalldataInfo**](TransactionEvmCalldataInfo.md) | | [optional]
|
|
21
21
|
**instructions** | [**[TransactionSolContractInstruction]**](TransactionSolContractInstruction.md) | | [optional]
|
|
22
|
+
**cosmos_messages** | [**[TransactionCosmosMessage]**](TransactionCosmosMessage.md) | |
|
|
22
23
|
**message** | **String** | The raw data of the message to be signed, encoded in Base64 format. |
|
|
23
24
|
**raw_structured_data** | **String** | The raw structured data to be signed, formatted as a JSON string. | [optional]
|
|
24
25
|
**structured_data** | **{String: Object}** | The structured data to be signed, formatted as a JSON object according to the EIP-712 standard. |
|
|
@@ -28,5 +29,8 @@ Name | Type | Description | Notes
|
|
|
28
29
|
**wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
29
30
|
**memo** | **String** | The memo that identifies a transaction in order to credit the correct account. For transfers out of Cobo Portal, it is highly recommended to include a memo for the chains such as XRP, EOS, XLM, IOST, BNB_BNB, ATOM, LUNA, and TON. | [optional]
|
|
30
31
|
**tx_info** | [**TransactionDepositToAddressDestinationTxInfo**](TransactionDepositToAddressDestinationTxInfo.md) | | [optional]
|
|
32
|
+
**message_bip137** | **String** | Message to be signed, in hexadecimal format. |
|
|
33
|
+
**message_bip322** | **String** | Message to be signed, in hexadecimal format. |
|
|
34
|
+
**message_cosmos_adr36** | **String** | Message to be signed, in hexadecimal format. |
|
|
31
35
|
|
|
32
36
|
|
|
@@ -11,10 +11,18 @@
|
|
|
11
11
|
|
|
12
12
|
* `SOL_Contract` (value: `"SOL_Contract"`)
|
|
13
13
|
|
|
14
|
+
* `COSMOS_Contract` (value: `"COSMOS_Contract"`)
|
|
15
|
+
|
|
14
16
|
* `EVM_EIP_191_Signature` (value: `"EVM_EIP_191_Signature"`)
|
|
15
17
|
|
|
16
18
|
* `EVM_EIP_712_Signature` (value: `"EVM_EIP_712_Signature"`)
|
|
17
19
|
|
|
20
|
+
* `BTC_BIP_137_Signature` (value: `"BTC_BIP_137_Signature"`)
|
|
21
|
+
|
|
22
|
+
* `BTC_BIP_322_Signature` (value: `"BTC_BIP_322_Signature"`)
|
|
23
|
+
|
|
24
|
+
* `COSMOS_ADR_36_Signature` (value: `"COSMOS_ADR_36_Signature"`)
|
|
25
|
+
|
|
18
26
|
* `Raw_Message_Signature` (value: `"Raw_Message_Signature"`)
|
|
19
27
|
|
|
20
28
|
* `DepositToAddress` (value: `"DepositToAddress"`)
|
|
@@ -30,10 +30,11 @@ Name | Type | Description | Notes
|
|
|
30
30
|
**category** | **[String]** | A custom transaction category for you to identify your transfers more easily. | [optional]
|
|
31
31
|
**description** | **String** | The description for your transaction. | [optional]
|
|
32
32
|
**is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
|
|
33
|
-
**cobo_category** | **[String]** |
|
|
33
|
+
**cobo_category** | **[String]** | 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. | [optional]
|
|
34
|
+
**extra** | **[String]** | The transaction extra information. | [optional]
|
|
34
35
|
**fueling_info** | [**TransactionFuelingInfo**](TransactionFuelingInfo.md) | | [optional]
|
|
35
|
-
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
36
|
-
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
36
|
+
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
37
|
+
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
37
38
|
**timeline** | [**[TransactionTimeline]**](TransactionTimeline.md) | | [optional]
|
|
38
39
|
|
|
39
40
|
|
|
@@ -30,10 +30,11 @@ Name | Type | Description | Notes
|
|
|
30
30
|
**category** | **[String]** | A custom transaction category for you to identify your transfers more easily. | [optional]
|
|
31
31
|
**description** | **String** | The description for your transaction. | [optional]
|
|
32
32
|
**is_loop** | **Boolean** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
|
|
33
|
-
**cobo_category** | **[String]** |
|
|
33
|
+
**cobo_category** | **[String]** | 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. | [optional]
|
|
34
|
+
**extra** | **[String]** | The transaction extra information. | [optional]
|
|
34
35
|
**fueling_info** | [**TransactionFuelingInfo**](TransactionFuelingInfo.md) | | [optional]
|
|
35
|
-
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
36
|
-
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
36
|
+
**created_timestamp** | **Number** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. |
|
|
37
|
+
**updated_timestamp** | **Number** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. |
|
|
37
38
|
**approvers** | [**[TransactionApprover]**](TransactionApprover.md) | | [optional]
|
|
38
39
|
**signers** | [**[TransactionSigner]**](TransactionSigner.md) | | [optional]
|
|
39
40
|
**nonce** | **Number** | Transaction nonce | [optional]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# CoboWaas2.TransactionExtra
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**extra_type** | [**TransactionExtraType**](TransactionExtraType.md) | |
|
|
8
|
+
**babylon_address_info** | [**AddressInfo**](AddressInfo.md) | | [optional]
|
|
9
|
+
**btc_address_info** | [**AddressInfo**](AddressInfo.md) | | [optional]
|
|
10
|
+
**stake_amount** | **String** | The origin staking amount. | [optional]
|
|
11
|
+
**finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
|
|
12
|
+
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
|
|
13
|
+
**param_version** | **Number** | The version of babylon global parameters. | [optional]
|
|
14
|
+
**withdraw_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
15
|
+
**slash_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
16
|
+
**timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
|
|
17
|
+
**change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. | [optional]
|
|
18
|
+
**validator_address** | **String** | The validator's EVM address. | [optional]
|
|
19
|
+
**reward_address** | **String** | The EVM address to receive staking rewards. | [optional]
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.TransactionExtraType
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `BabylonBusinessInfo` (value: `"BabylonBusinessInfo"`)
|
|
7
|
+
|
|
8
|
+
* `BabylonTxParameters` (value: `"BabylonTxParameters"`)
|
|
9
|
+
|
|
10
|
+
* `CoreStakeInfo` (value: `"CoreStakeInfo"`)
|
|
11
|
+
|
|
12
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
13
|
+
|
|
14
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**request_id** | **String** | The
|
|
8
|
-
**transaction_id** | **String** | The
|
|
7
|
+
**request_id** | **String** | The request ID of the transaction. | [optional]
|
|
8
|
+
**transaction_id** | **String** | The transaction ID. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.TransactionMessageSignBTCEIP191Destination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**TransactionDestinationType**](TransactionDestinationType.md) | |
|
|
8
|
+
**message** | **String** | The raw data of the message to be signed, encoded in Base64 format. |
|
|
9
|
+
|
|
10
|
+
|