@cobo/cobo-waas2 1.18.0 → 1.19.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 +78 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/OAuthApi.js +2 -2
- package/dist/api/TransactionsApi.js +0 -92
- package/dist/api/WalletsApi.js +50 -0
- package/dist/index.js +518 -7
- package/dist/model/AddressesEventData.js +13 -8
- package/dist/model/ApprovalDetail.js +160 -0
- package/dist/model/ApprovalResult.js +66 -0
- package/dist/model/ApprovalShowInfo.js +140 -0
- package/dist/model/ApprovalTemplate.js +114 -0
- package/dist/model/ApprovalTransactionResult.js +66 -0
- package/dist/model/ApprovalUserDetail.js +196 -0
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/BalanceUpdateInfoEventData.js +13 -8
- package/dist/model/ChainsEventData.js +13 -8
- package/dist/model/CreatePaymentOrderRequest.js +7 -6
- package/dist/model/CreateSettlement.js +1 -2
- package/dist/model/CustodialWeb3TransferSource.js +2 -2
- package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
- package/dist/model/EstimatedEvmLegacyFee.js +2 -2
- package/dist/model/EstimatedFILFee.js +2 -2
- package/dist/model/EstimatedFILFeeSlow.js +12 -12
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +2 -2
- package/dist/model/EstimatedSOLFeeSlow.js +11 -11
- package/dist/model/EstimatedUtxoFee.js +2 -2
- package/dist/model/EvmEip1559FeeBasePrice.js +0 -1
- package/dist/model/EvmEip1559FeeRate.js +2 -2
- package/dist/model/EvmLegacyFeeBasePrice.js +0 -1
- package/dist/model/EvmLegacyFeeRate.js +2 -2
- package/dist/model/FILBase.js +1 -1
- package/dist/model/FILPrice.js +3 -4
- package/dist/model/FeeRate.js +1 -1
- package/dist/model/FixedFeeRate.js +2 -2
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
- package/dist/model/MPCVaultEventData.js +13 -8
- package/dist/model/MaxFeeAmount.js +0 -1
- package/dist/model/MaxTransferableValue.js +2 -2
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/PaymentOrderEventData.js +13 -8
- package/dist/model/PaymentRefundEventData.js +13 -8
- package/dist/model/PaymentSettlementEvent.js +13 -8
- package/dist/model/{ListTransactionApprovalDetails200Response.js → RoleDetail.js} +46 -27
- package/dist/model/SOLBase.js +2 -2
- package/dist/model/SOLComputeUnit.js +2 -3
- package/dist/model/SuspendedTokenEventData.js +225 -0
- package/dist/model/SuspendedTokenOperationType.js +61 -0
- package/dist/model/SwapActivity.js +29 -0
- package/dist/model/SwapActivityDetail.js +38 -0
- package/dist/model/TSSRequestWebhookEventData.js +13 -8
- package/dist/model/TokenListingEventData.js +13 -8
- package/dist/model/TokenizationActivityInfo.js +224 -0
- package/dist/model/TokenizationActivityStatus.js +66 -0
- package/dist/model/TokenizationAddressPermission.js +135 -0
- package/dist/model/TokenizationAllowlistActivationParams.js +124 -0
- package/dist/model/TokenizationAllowlistActivationRequest.js +180 -0
- package/dist/model/TokenizationAllowlistAddressNote.js +132 -0
- package/dist/model/TokenizationAppInitiator.js +87 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +132 -0
- package/dist/model/TokenizationBurnEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationBurnTokenParams.js +146 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +125 -0
- package/dist/model/TokenizationBurnTokenRequest.js +202 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +167 -0
- package/dist/model/TokenizationContractCallParams.js +107 -0
- package/dist/model/TokenizationContractCallParamsData.js +164 -0
- package/dist/model/TokenizationContractCallRequest.js +182 -0
- package/dist/model/TokenizationContractCallType.js +56 -0
- package/dist/model/TokenizationERC20TokenParams.js +173 -0
- package/dist/model/TokenizationEstimateFeeRequest.js +113 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +439 -0
- package/dist/model/TokenizationEvmContractCallParams.js +133 -0
- package/dist/model/TokenizationHoldingInfo.js +166 -0
- package/dist/model/TokenizationIssueEstimateFeeParams.js +176 -0
- package/dist/model/TokenizationIssueTokenParams.js +146 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +183 -0
- package/dist/model/TokenizationIssuedTokenRequest.js +206 -0
- package/dist/model/TokenizationListActivitiesResponse.js +146 -0
- package/dist/model/TokenizationListEnabledChainsResponse.js +128 -0
- package/dist/model/TokenizationListHoldingsResponse.js +146 -0
- package/dist/model/TokenizationListTokenInfoResponse.js +146 -0
- package/dist/model/TokenizationMintEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationMintTokenParams.js +146 -0
- package/dist/model/TokenizationMintTokenParamsMintsInner.js +125 -0
- package/dist/model/TokenizationMintTokenRequest.js +202 -0
- package/dist/model/TokenizationMpcOperationSource.js +136 -0
- package/dist/model/TokenizationOperationResponse.js +110 -0
- package/dist/model/TokenizationOperationSourceType.js +61 -0
- package/dist/model/TokenizationOperationType.js +96 -0
- package/dist/model/TokenizationPauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationPauseTokenParams.js +113 -0
- package/dist/model/TokenizationPauseTokenRequest.js +164 -0
- package/dist/model/TokenizationStatus.js +71 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +165 -0
- package/dist/model/TokenizationTokenDetailInfo.js +309 -0
- package/dist/model/TokenizationTokenInfo.js +223 -0
- package/dist/model/TokenizationTokenOperationSource.js +192 -0
- package/dist/model/TokenizationTokenPermission.js +147 -0
- package/dist/model/TokenizationTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationTokenPermissionType.js +86 -0
- package/dist/model/TokenizationTokenPermissionsResponse.js +139 -0
- package/dist/model/TokenizationTokenStandard.js +56 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationUnpauseTokenParams.js +113 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +164 -0
- package/dist/model/TokenizationUpdateAddressAction.js +61 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +217 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +217 -0
- package/dist/model/TokenizationWeb3OperationSource.js +136 -0
- package/dist/model/TokensEventData.js +13 -8
- package/dist/model/TopUpAddress.js +2 -2
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionFILFee.js +11 -11
- package/dist/model/TransactionFee.js +10 -10
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFILFee.js +11 -11
- package/dist/model/TransactionRequestFee.js +6 -6
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestSOLFee.js +9 -9
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionSOLFee.js +11 -11
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +13 -8
- package/dist/model/UtxoFeeBasePrice.js +0 -1
- package/dist/model/UtxoFeeRate.js +2 -2
- package/dist/model/WalletInfoEventData.js +13 -8
- package/dist/model/WebhookEvent.js +2 -2
- package/dist/model/WebhookEventData.js +49 -9
- package/dist/model/WebhookEventDataType.js +12 -7
- package/dist/model/WebhookEventLog.js +2 -2
- package/dist/model/WebhookEventType.js +20 -0
- package/docs/AddressesEventData.md +5 -3
- package/docs/ApprovalDetail.md +14 -0
- package/docs/ApprovalResult.md +14 -0
- package/docs/ApprovalShowInfo.md +13 -0
- package/docs/ApprovalTemplate.md +11 -0
- package/docs/ApprovalTransactionResult.md +14 -0
- package/docs/ApprovalUserDetail.md +18 -0
- package/docs/AutoFuelType.md +2 -0
- package/docs/BalanceUpdateInfoEventData.md +5 -3
- package/docs/ChainsEventData.md +5 -3
- package/docs/CreatePaymentOrderRequest.md +4 -4
- package/docs/CreateSettlement.md +2 -2
- package/docs/CustodialWeb3TransferSource.md +1 -1
- package/docs/EstimatedEvmEip1559Fee.md +1 -1
- package/docs/EstimatedEvmLegacyFee.md +1 -1
- package/docs/EstimatedFILFee.md +1 -1
- package/docs/EstimatedFILFeeSlow.md +4 -4
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/EstimatedSOLFee.md +1 -1
- package/docs/EstimatedSOLFeeSlow.md +4 -4
- package/docs/EstimatedUtxoFee.md +1 -1
- package/docs/EvmEip1559FeeRate.md +1 -1
- package/docs/EvmLegacyFeeRate.md +1 -1
- package/docs/FILBase.md +1 -1
- package/docs/FILPrice.md +3 -3
- package/docs/FeeRate.md +1 -1
- package/docs/FixedFeeRate.md +1 -1
- package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
- package/docs/MPCVaultEventData.md +5 -3
- package/docs/MaxTransferableValue.md +1 -1
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +1 -1
- package/docs/PaymentOrderEventData.md +5 -3
- package/docs/PaymentRefundEventData.md +5 -3
- package/docs/PaymentSettlementEvent.md +5 -3
- package/docs/RoleDetail.md +11 -0
- package/docs/SOLBase.md +2 -2
- package/docs/SOLComputeUnit.md +2 -2
- package/docs/SuspendedTokenEventData.md +46 -0
- package/docs/SuspendedTokenOperationType.md +12 -0
- package/docs/SwapActivity.md +2 -0
- package/docs/SwapActivityDetail.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +5 -3
- package/docs/TokenListingEventData.md +5 -3
- package/docs/TokenizationActivityInfo.md +18 -0
- package/docs/TokenizationActivityStatus.md +14 -0
- package/docs/TokenizationAddressPermission.md +11 -0
- package/docs/TokenizationAllowlistActivationParams.md +10 -0
- package/docs/TokenizationAllowlistActivationRequest.md +12 -0
- package/docs/TokenizationAllowlistAddressNote.md +11 -0
- package/docs/TokenizationAppInitiator.md +9 -0
- package/docs/TokenizationBlocklistAddressNote.md +11 -0
- package/docs/TokenizationBurnEstimateFeeParams.md +12 -0
- package/docs/TokenizationBurnTokenParams.md +10 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +10 -0
- package/docs/TokenizationBurnTokenRequest.md +12 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +12 -0
- package/docs/TokenizationContractCallParams.md +10 -0
- package/docs/TokenizationContractCallParamsData.md +11 -0
- package/docs/TokenizationContractCallRequest.md +12 -0
- package/docs/TokenizationContractCallType.md +10 -0
- package/docs/TokenizationERC20TokenParams.md +14 -0
- package/docs/TokenizationEstimateFeeRequest.md +9 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +19 -0
- package/docs/TokenizationEvmContractCallParams.md +11 -0
- package/docs/TokenizationHoldingInfo.md +13 -0
- package/docs/TokenizationIssueEstimateFeeParams.md +12 -0
- package/docs/TokenizationIssueTokenParams.md +11 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +14 -0
- package/docs/TokenizationIssuedTokenRequest.md +13 -0
- package/docs/TokenizationListActivitiesResponse.md +10 -0
- package/docs/TokenizationListEnabledChainsResponse.md +10 -0
- package/docs/TokenizationListHoldingsResponse.md +10 -0
- package/docs/TokenizationListTokenInfoResponse.md +10 -0
- package/docs/TokenizationMintEstimateFeeParams.md +12 -0
- package/docs/TokenizationMintTokenParams.md +10 -0
- package/docs/TokenizationMintTokenParamsMintsInner.md +10 -0
- package/docs/TokenizationMintTokenRequest.md +12 -0
- package/docs/TokenizationMpcOperationSource.md +11 -0
- package/docs/TokenizationOperationResponse.md +9 -0
- package/docs/TokenizationOperationSourceType.md +12 -0
- package/docs/TokenizationOperationType.md +26 -0
- package/docs/TokenizationPauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationPauseTokenParams.md +9 -0
- package/docs/TokenizationPauseTokenRequest.md +11 -0
- package/docs/TokenizationStatus.md +16 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +19 -0
- package/docs/TokenizationTokenInfo.md +18 -0
- package/docs/TokenizationTokenOperationSource.md +11 -0
- package/docs/TokenizationTokenPermission.md +12 -0
- package/docs/TokenizationTokenPermissionParams.md +15 -0
- package/docs/TokenizationTokenPermissionType.md +22 -0
- package/docs/TokenizationTokenPermissionsResponse.md +10 -0
- package/docs/TokenizationTokenStandard.md +10 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationUnpauseTokenParams.md +9 -0
- package/docs/TokenizationUnpauseTokenRequest.md +11 -0
- package/docs/TokenizationUpdateAddressAction.md +12 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateAllowlistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +13 -0
- package/docs/TokenizationWeb3OperationSource.md +11 -0
- package/docs/TokensEventData.md +5 -3
- package/docs/TopUpAddress.md +1 -1
- package/docs/TransactionEvmEip1559Fee.md +2 -2
- package/docs/TransactionEvmLegacyFee.md +2 -2
- package/docs/TransactionFILFee.md +6 -6
- package/docs/TransactionFee.md +10 -10
- package/docs/TransactionFixedFee.md +2 -2
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
- package/docs/TransactionRequestEvmLegacyFee.md +1 -1
- package/docs/TransactionRequestFILFee.md +4 -4
- package/docs/TransactionRequestFee.md +6 -6
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestSOLFee.md +3 -3
- package/docs/TransactionRequestUtxoFee.md +1 -1
- package/docs/TransactionSOLFee.md +6 -6
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUtxoFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +5 -3
- package/docs/TransactionsApi.md +0 -106
- package/docs/UtxoFeeRate.md +1 -1
- package/docs/WalletInfoEventData.md +5 -3
- package/docs/WalletsApi.md +55 -0
- package/docs/WebhookEvent.md +1 -1
- package/docs/WebhookEventData.md +7 -3
- package/docs/WebhookEventDataType.md +5 -3
- package/docs/WebhookEventLog.md +1 -1
- package/docs/WebhookEventType.md +8 -0
- package/package.json +1 -1
- package/docs/ListTransactionApprovalDetails200Response.md +0 -9
|
@@ -36,9 +36,9 @@ var EstimatedSOLFeeSlow = /*#__PURE__*/function () {
|
|
|
36
36
|
* @alias module:model/EstimatedSOLFeeSlow
|
|
37
37
|
* @implements module:model/SOLComputeUnit
|
|
38
38
|
* @implements module:model/SOLBase
|
|
39
|
-
* @param compute_unit_price {String} The
|
|
40
|
-
* @param compute_unit_limit {String} The maximum number of compute units
|
|
41
|
-
* @param base_fee {String}
|
|
39
|
+
* @param compute_unit_price {String} The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
|
|
40
|
+
* @param compute_unit_limit {String} The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
|
|
41
|
+
* @param base_fee {String} A fixed fee charged per signature. The default is 5,000 lamports per signature.
|
|
42
42
|
*/
|
|
43
43
|
function EstimatedSOLFeeSlow(compute_unit_price, compute_unit_limit, base_fee) {
|
|
44
44
|
_classCallCheck(this, EstimatedSOLFeeSlow);
|
|
@@ -136,48 +136,48 @@ var EstimatedSOLFeeSlow = /*#__PURE__*/function () {
|
|
|
136
136
|
EstimatedSOLFeeSlow.RequiredProperties = ["compute_unit_price", "compute_unit_limit", "base_fee"];
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* The
|
|
139
|
+
* The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
|
|
140
140
|
* @member {String} compute_unit_price
|
|
141
141
|
*/
|
|
142
142
|
EstimatedSOLFeeSlow.prototype['compute_unit_price'] = undefined;
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* The maximum number of compute units
|
|
145
|
+
* The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
|
|
146
146
|
* @member {String} compute_unit_limit
|
|
147
147
|
*/
|
|
148
148
|
EstimatedSOLFeeSlow.prototype['compute_unit_limit'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
151
|
+
* A fixed fee charged per signature. The default is 5,000 lamports per signature.
|
|
152
152
|
* @member {String} base_fee
|
|
153
153
|
*/
|
|
154
154
|
EstimatedSOLFeeSlow.prototype['base_fee'] = undefined;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
* The fee charged
|
|
157
|
+
* The rent fee charged by the network to store non–rent-exempt accounts on-chain. It is deducted periodically until the account maintains the minimum balance required for rent exemption.
|
|
158
158
|
* @member {String} rent_amount
|
|
159
159
|
*/
|
|
160
160
|
EstimatedSOLFeeSlow.prototype['rent_amount'] = undefined;
|
|
161
161
|
|
|
162
162
|
// Implement SOLComputeUnit interface:
|
|
163
163
|
/**
|
|
164
|
-
* The
|
|
164
|
+
* The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
|
|
165
165
|
* @member {String} compute_unit_price
|
|
166
166
|
*/
|
|
167
167
|
_SOLComputeUnit["default"].prototype['compute_unit_price'] = undefined;
|
|
168
168
|
/**
|
|
169
|
-
* The maximum number of compute units
|
|
169
|
+
* The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
|
|
170
170
|
* @member {String} compute_unit_limit
|
|
171
171
|
*/
|
|
172
172
|
_SOLComputeUnit["default"].prototype['compute_unit_limit'] = undefined;
|
|
173
173
|
// Implement SOLBase interface:
|
|
174
174
|
/**
|
|
175
|
-
*
|
|
175
|
+
* A fixed fee charged per signature. The default is 5,000 lamports per signature.
|
|
176
176
|
* @member {String} base_fee
|
|
177
177
|
*/
|
|
178
178
|
_SOLBase["default"].prototype['base_fee'] = undefined;
|
|
179
179
|
/**
|
|
180
|
-
* The fee charged
|
|
180
|
+
* The rent fee charged by the network to store non–rent-exempt accounts on-chain. It is deducted periodically until the account maintains the minimum balance required for rent exemption.
|
|
181
181
|
* @member {String} rent_amount
|
|
182
182
|
*/
|
|
183
183
|
_SOLBase["default"].prototype['rent_amount'] = undefined;
|
|
@@ -36,7 +36,7 @@ var EstimatedUtxoFee = /*#__PURE__*/function () {
|
|
|
36
36
|
* The estimated transaction fee for UTXO-based chains.
|
|
37
37
|
* @alias module:model/EstimatedUtxoFee
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
|
-
* @param token_id {String} The token
|
|
39
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
40
40
|
* @param recommended {module:model/EstimatedUtxoFeeSlow}
|
|
41
41
|
*/
|
|
42
42
|
function EstimatedUtxoFee(fee_type, token_id, recommended) {
|
|
@@ -148,7 +148,7 @@ EstimatedUtxoFee.RequiredProperties = ["fee_type", "token_id", "recommended"];
|
|
|
148
148
|
EstimatedUtxoFee.prototype['fee_type'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* The token
|
|
151
|
+
* The token used to pay the transaction fee.
|
|
152
152
|
* @member {String} token_id
|
|
153
153
|
*/
|
|
154
154
|
EstimatedUtxoFee.prototype['token_id'] = undefined;
|
|
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
var EvmEip1559FeeBasePrice = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
30
|
* Constructs a new <code>EvmEip1559FeeBasePrice</code>.
|
|
31
|
-
* The transaction gas price based on the EIP-1559 fee model.
|
|
32
31
|
* @alias module:model/EvmEip1559FeeBasePrice
|
|
33
32
|
*/
|
|
34
33
|
function EvmEip1559FeeBasePrice() {
|
|
@@ -36,7 +36,7 @@ var EvmEip1559FeeRate = /*#__PURE__*/function () {
|
|
|
36
36
|
* The transaction fee rate based on the EIP-1559 fee model.
|
|
37
37
|
* @alias module:model/EvmEip1559FeeRate
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
|
-
* @param token_id {String} The token
|
|
39
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
40
40
|
* @param recommended {module:model/EvmEip1559FeeBasePrice}
|
|
41
41
|
*/
|
|
42
42
|
function EvmEip1559FeeRate(fee_type, token_id, recommended) {
|
|
@@ -148,7 +148,7 @@ EvmEip1559FeeRate.RequiredProperties = ["fee_type", "token_id", "recommended"];
|
|
|
148
148
|
EvmEip1559FeeRate.prototype['fee_type'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* The token
|
|
151
|
+
* The token used to pay the transaction fee.
|
|
152
152
|
* @member {String} token_id
|
|
153
153
|
*/
|
|
154
154
|
EvmEip1559FeeRate.prototype['token_id'] = undefined;
|
|
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
var EvmLegacyFeeBasePrice = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
30
|
* Constructs a new <code>EvmLegacyFeeBasePrice</code>.
|
|
31
|
-
* The transaction gas price based on the legacy fee model.
|
|
32
31
|
* @alias module:model/EvmLegacyFeeBasePrice
|
|
33
32
|
*/
|
|
34
33
|
function EvmLegacyFeeBasePrice() {
|
|
@@ -36,7 +36,7 @@ var EvmLegacyFeeRate = /*#__PURE__*/function () {
|
|
|
36
36
|
* The transaction fee rate based on the legacy fee model.
|
|
37
37
|
* @alias module:model/EvmLegacyFeeRate
|
|
38
38
|
* @param fee_type {module:model/FeeType}
|
|
39
|
-
* @param token_id {String} The token
|
|
39
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
40
40
|
* @param recommended {module:model/EvmLegacyFeeBasePrice}
|
|
41
41
|
*/
|
|
42
42
|
function EvmLegacyFeeRate(fee_type, token_id, recommended) {
|
|
@@ -148,7 +148,7 @@ EvmLegacyFeeRate.RequiredProperties = ["fee_type", "token_id", "recommended"];
|
|
|
148
148
|
EvmLegacyFeeRate.prototype['fee_type'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* The token
|
|
151
|
+
* The token used to pay the transaction fee.
|
|
152
152
|
* @member {String} token_id
|
|
153
153
|
*/
|
|
154
154
|
EvmLegacyFeeRate.prototype['token_id'] = undefined;
|
package/dist/model/FILBase.js
CHANGED
|
@@ -81,7 +81,7 @@ var FILBase = /*#__PURE__*/function () {
|
|
|
81
81
|
}]);
|
|
82
82
|
}();
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* The minimum fee required for a transaction to be included in a block. The base fee is dynamically adjusted based on network congestion to maintain target block utilization. It is burned rather than paid to miners, reducing the total Filecoin supply over time.
|
|
85
85
|
* @member {String} gas_base
|
|
86
86
|
*/
|
|
87
87
|
FILBase.prototype['gas_base'] = undefined;
|
package/dist/model/FILPrice.js
CHANGED
|
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
var FILPrice = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
30
|
* Constructs a new <code>FILPrice</code>.
|
|
31
|
-
* The transaction gas price based on the FIL fee model.
|
|
32
31
|
* @alias module:model/FILPrice
|
|
33
32
|
*/
|
|
34
33
|
function FILPrice() {
|
|
@@ -95,19 +94,19 @@ var FILPrice = /*#__PURE__*/function () {
|
|
|
95
94
|
}]);
|
|
96
95
|
}();
|
|
97
96
|
/**
|
|
98
|
-
* An optional
|
|
97
|
+
* An optional tip you can include to prioritize your transaction. The gas premium incentivizes miners to include your transaction sooner than those offering only the base fee.
|
|
99
98
|
* @member {String} gas_premium
|
|
100
99
|
*/
|
|
101
100
|
FILPrice.prototype['gas_premium'] = undefined;
|
|
102
101
|
|
|
103
102
|
/**
|
|
104
|
-
* The
|
|
103
|
+
* The maximum gas price you are willing to pay per unit of gas.
|
|
105
104
|
* @member {String} gas_fee_cap
|
|
106
105
|
*/
|
|
107
106
|
FILPrice.prototype['gas_fee_cap'] = undefined;
|
|
108
107
|
|
|
109
108
|
/**
|
|
110
|
-
*
|
|
109
|
+
* The maximum amount of gas your transaction is allowed to consume.
|
|
111
110
|
* @member {String} gas_limit
|
|
112
111
|
*/
|
|
113
112
|
FILPrice.prototype['gas_limit'] = undefined;
|
package/dist/model/FeeRate.js
CHANGED
|
@@ -235,7 +235,7 @@ _defineProperty(FeeRate, "fromJSON", function (json_string) {
|
|
|
235
235
|
FeeRate.prototype['fee_type'] = undefined;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
|
-
* The token
|
|
238
|
+
* The token used to pay the transaction fee.
|
|
239
239
|
* @member {String} token_id
|
|
240
240
|
*/
|
|
241
241
|
FeeRate.prototype['token_id'] = undefined;
|
|
@@ -37,7 +37,7 @@ var FixedFeeRate = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/FixedFeeRate
|
|
38
38
|
* @implements module:model/FeeAmount
|
|
39
39
|
* @param fee_type {module:model/FeeType}
|
|
40
|
-
* @param token_id {String} The token
|
|
40
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
41
41
|
*/
|
|
42
42
|
function FixedFeeRate(fee_type, token_id) {
|
|
43
43
|
_classCallCheck(this, FixedFeeRate);
|
|
@@ -132,7 +132,7 @@ FixedFeeRate.prototype['fee_amount'] = undefined;
|
|
|
132
132
|
FixedFeeRate.prototype['fee_type'] = undefined;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* The token
|
|
135
|
+
* The token used to pay the transaction fee.
|
|
136
136
|
* @member {String} token_id
|
|
137
137
|
*/
|
|
138
138
|
FixedFeeRate.prototype['token_id'] = undefined;
|
|
@@ -0,0 +1,156 @@
|
|
|
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 _TransactionRequestFee = _interopRequireDefault(require("./TransactionRequestFee"));
|
|
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 GetMaxTransferableValueWithFeeModelRequest model module.
|
|
30
|
+
* @module model/GetMaxTransferableValueWithFeeModelRequest
|
|
31
|
+
*/
|
|
32
|
+
var GetMaxTransferableValueWithFeeModelRequest = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>GetMaxTransferableValueWithFeeModelRequest</code>.
|
|
35
|
+
* @alias module:model/GetMaxTransferableValueWithFeeModelRequest
|
|
36
|
+
* @param token_id {String} The token ID of the transferred 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). For transfers from Exchange Wallets, this property value represents the asset ID.
|
|
37
|
+
* @param fee {module:model/TransactionRequestFee}
|
|
38
|
+
* @param to_address {String} The recipient's address.
|
|
39
|
+
*/
|
|
40
|
+
function GetMaxTransferableValueWithFeeModelRequest(token_id, fee, to_address) {
|
|
41
|
+
_classCallCheck(this, GetMaxTransferableValueWithFeeModelRequest);
|
|
42
|
+
GetMaxTransferableValueWithFeeModelRequest.initialize(this, token_id, fee, to_address);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(GetMaxTransferableValueWithFeeModelRequest, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, token_id, fee, to_address) {
|
|
53
|
+
obj['token_id'] = token_id;
|
|
54
|
+
obj['fee'] = fee;
|
|
55
|
+
obj['to_address'] = to_address;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Constructs a <code>GetMaxTransferableValueWithFeeModelRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
+
* @param {module:model/GetMaxTransferableValueWithFeeModelRequest} obj Optional instance to populate.
|
|
63
|
+
* @return {module:model/GetMaxTransferableValueWithFeeModelRequest} The populated <code>GetMaxTransferableValueWithFeeModelRequest</code> instance.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "constructFromObject",
|
|
67
|
+
value: function constructFromObject(data, obj) {
|
|
68
|
+
if (data) {
|
|
69
|
+
obj = obj || new GetMaxTransferableValueWithFeeModelRequest();
|
|
70
|
+
if (data.hasOwnProperty('token_id')) {
|
|
71
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('fee')) {
|
|
74
|
+
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('to_address')) {
|
|
77
|
+
obj['to_address'] = _ApiClient["default"].convertToType(data['to_address'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('from_address')) {
|
|
80
|
+
obj['from_address'] = _ApiClient["default"].convertToType(data['from_address'], 'String');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Validates the JSON data with respect to <code>GetMaxTransferableValueWithFeeModelRequest</code>.
|
|
88
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetMaxTransferableValueWithFeeModelRequest</code>.
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "validateJSON",
|
|
93
|
+
value: function validateJSON(data) {
|
|
94
|
+
// check to make sure all required properties are present in the JSON string
|
|
95
|
+
var _iterator = _createForOfIteratorHelper(GetMaxTransferableValueWithFeeModelRequest.RequiredProperties),
|
|
96
|
+
_step;
|
|
97
|
+
try {
|
|
98
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
99
|
+
var property = _step.value;
|
|
100
|
+
if (!data.hasOwnProperty(property)) {
|
|
101
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// ensure the json data is a string
|
|
105
|
+
} catch (err) {
|
|
106
|
+
_iterator.e(err);
|
|
107
|
+
} finally {
|
|
108
|
+
_iterator.f();
|
|
109
|
+
}
|
|
110
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
112
|
+
}
|
|
113
|
+
// validate the optional field `fee`
|
|
114
|
+
if (data['fee']) {
|
|
115
|
+
// data not null
|
|
116
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
117
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
if (data['to_address'] && !(typeof data['to_address'] === 'string' || data['to_address'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `to_address` to be a primitive type in the JSON string but got " + data['to_address']);
|
|
123
|
+
}
|
|
124
|
+
// ensure the json data is a string
|
|
125
|
+
if (data['from_address'] && !(typeof data['from_address'] === 'string' || data['from_address'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `from_address` to be a primitive type in the JSON string but got " + data['from_address']);
|
|
127
|
+
}
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
}]);
|
|
131
|
+
}();
|
|
132
|
+
GetMaxTransferableValueWithFeeModelRequest.RequiredProperties = ["token_id", "fee", "to_address"];
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The token ID of the transferred 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). For transfers from Exchange Wallets, this property value represents the asset ID.
|
|
136
|
+
* @member {String} token_id
|
|
137
|
+
*/
|
|
138
|
+
GetMaxTransferableValueWithFeeModelRequest.prototype['token_id'] = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @member {module:model/TransactionRequestFee} fee
|
|
142
|
+
*/
|
|
143
|
+
GetMaxTransferableValueWithFeeModelRequest.prototype['fee'] = undefined;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The recipient's address.
|
|
147
|
+
* @member {String} to_address
|
|
148
|
+
*/
|
|
149
|
+
GetMaxTransferableValueWithFeeModelRequest.prototype['to_address'] = undefined;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The sender's address. This property is required when using an EVM address in an MPC Wallet.
|
|
153
|
+
* @member {String} from_address
|
|
154
|
+
*/
|
|
155
|
+
GetMaxTransferableValueWithFeeModelRequest.prototype['from_address'] = undefined;
|
|
156
|
+
var _default = exports["default"] = GetMaxTransferableValueWithFeeModelRequest;
|
|
@@ -38,7 +38,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
|
|
|
38
38
|
* @alias module:model/MPCVaultEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
40
|
* @implements module:model/MPCVault
|
|
41
|
-
* @param data_type {module:model/MPCVaultEventData.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. - `PaymentOrder`: The payment order event data. - `
|
|
41
|
+
* @param data_type {module:model/MPCVaultEventData.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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
42
42
|
*/
|
|
43
43
|
function MPCVaultEventData(data_type) {
|
|
44
44
|
_classCallCheck(this, MPCVaultEventData);
|
|
@@ -164,7 +164,7 @@ var MPCVaultEventData = /*#__PURE__*/function () {
|
|
|
164
164
|
MPCVaultEventData.RequiredProperties = ["data_type"];
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* 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. - `PaymentOrder`: The payment order event data. - `
|
|
167
|
+
* 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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
168
168
|
* @member {module:model/MPCVaultEventData.DataTypeEnum} data_type
|
|
169
169
|
*/
|
|
170
170
|
MPCVaultEventData.prototype['data_type'] = undefined;
|
|
@@ -205,7 +205,7 @@ MPCVaultEventData.prototype['created_timestamp'] = undefined;
|
|
|
205
205
|
|
|
206
206
|
// Implement WebhookEventDataType interface:
|
|
207
207
|
/**
|
|
208
|
-
* 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. - `PaymentOrder`: The payment order event data. - `
|
|
208
|
+
* 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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
209
209
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
210
210
|
*/
|
|
211
211
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -285,11 +285,6 @@ MPCVaultEventData['DataTypeEnum'] = {
|
|
|
285
285
|
* @const
|
|
286
286
|
*/
|
|
287
287
|
"TokenListing": "TokenListing",
|
|
288
|
-
/**
|
|
289
|
-
* value: "BalanceUpdateInfo"
|
|
290
|
-
* @const
|
|
291
|
-
*/
|
|
292
|
-
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
293
288
|
/**
|
|
294
289
|
* value: "PaymentOrder"
|
|
295
290
|
* @const
|
|
@@ -305,6 +300,16 @@ MPCVaultEventData['DataTypeEnum'] = {
|
|
|
305
300
|
* @const
|
|
306
301
|
*/
|
|
307
302
|
"PaymentSettlement": "PaymentSettlement",
|
|
303
|
+
/**
|
|
304
|
+
* value: "BalanceUpdateInfo"
|
|
305
|
+
* @const
|
|
306
|
+
*/
|
|
307
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
308
|
+
/**
|
|
309
|
+
* value: "SuspendedToken"
|
|
310
|
+
* @const
|
|
311
|
+
*/
|
|
312
|
+
"SuspendedToken": "SuspendedToken",
|
|
308
313
|
/**
|
|
309
314
|
* value: "unknown_default_open_api"
|
|
310
315
|
* @const
|
|
@@ -28,7 +28,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
var MaxFeeAmount = /*#__PURE__*/function () {
|
|
29
29
|
/**
|
|
30
30
|
* Constructs a new <code>MaxFeeAmount</code>.
|
|
31
|
-
* The maximum transaction fee.
|
|
32
31
|
* @alias module:model/MaxFeeAmount
|
|
33
32
|
*/
|
|
34
33
|
function MaxFeeAmount() {
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
var MaxTransferableValue = /*#__PURE__*/function () {
|
|
30
30
|
/**
|
|
31
31
|
* Constructs a new <code>MaxTransferableValue</code>.
|
|
32
|
-
* The maximum
|
|
32
|
+
* The maximum transferable value from the wallet or the specified address, along with the estimated transaction fee.
|
|
33
33
|
* @alias module:model/MaxTransferableValue
|
|
34
34
|
*/
|
|
35
35
|
function MaxTransferableValue() {
|
|
@@ -105,7 +105,7 @@ var MaxTransferableValue = /*#__PURE__*/function () {
|
|
|
105
105
|
MaxTransferableValue.prototype['token_id'] = undefined;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* The maximum
|
|
108
|
+
* The maximum transferable value from the wallet or the specified address.
|
|
109
109
|
* @member {String} max_transferable_value
|
|
110
110
|
*/
|
|
111
111
|
MaxTransferableValue.prototype['max_transferable_value'] = undefined;
|
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
var MpcTransferSource = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>MpcTransferSource</code>.
|
|
37
|
-
* The information about the transaction source types `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
|
|
37
|
+
* The information about the transaction source types `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. - For UTXO-based chains: both `address` and `included_utxos` are optional. If both `address` and `included_utxos` are provided, the UTXOs must belong to the specified address. If neither `address` nor `included_utxos` is provided, the system will select UTXOs from the wallet associated with `wallet_id`. - For account-based chains: You need to provide `address` otherwise the token transfer will fail. However, when estimating fees for a transfer, `address` is not required. Switch between the tabs to display the properties for different transaction sources.
|
|
38
38
|
* @alias module:model/MpcTransferSource
|
|
39
39
|
* @param source_type {module:model/WalletSubtype}
|
|
40
40
|
* @param wallet_id {String} The wallet ID.
|
|
@@ -188,7 +188,7 @@ MpcTransferSource.prototype['source_type'] = undefined;
|
|
|
188
188
|
MpcTransferSource.prototype['wallet_id'] = undefined;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
*
|
|
191
|
+
* Indicates the wallet address to be used as the source of funds. - For UTXO-based chains: both `address` and `included_utxos` are optional. If both `address` and `included_utxos` are provided, the UTXOs must belong to the specified address. If neither `address` nor `included_utxos` is provided, the system will select UTXOs from the wallet associated with `wallet_id`. For RBF transactions, please note the following: - If the original transaction did not specify `included_utxos`, the RBF transaction may omit `address`, `included_utxos`, or both. - If the original transaction specified `included_utxos`, the RBF transaction must specify either `address` or `included_utxos`, or both. - The `address` or `included_utxos` in the RBF transaction may differ from those in the original transaction. - For account-based chains: You need to provide `address` otherwise the token transfer will fail. However, when estimating fees for a transfer, `address` is not required.
|
|
192
192
|
* @member {String} address
|
|
193
193
|
*/
|
|
194
194
|
MpcTransferSource.prototype['address'] = undefined;
|
|
@@ -39,7 +39,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
39
39
|
* @alias module:model/PaymentOrderEventData
|
|
40
40
|
* @implements module:model/WebhookEventDataType
|
|
41
41
|
* @implements module:model/Order
|
|
42
|
-
* @param data_type {module:model/PaymentOrderEventData.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. - `PaymentOrder`: The payment order event data. - `
|
|
42
|
+
* @param data_type {module:model/PaymentOrderEventData.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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
43
43
|
* @param order_id {String} The order ID.
|
|
44
44
|
* @param token_id {String} The ID of the cryptocurrency used for payment. Supported tokens: - 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`
|
|
45
45
|
* @param chain_id {String} The ID of the blockchain network where the payment transaction should be made. Supported chains: - USDC: `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC` - USDT: `TRON`, `ETH`, `ARBITRUM`, `SOL`, `BASE`, `MATIC`, `BSC`
|
|
@@ -268,7 +268,7 @@ var PaymentOrderEventData = /*#__PURE__*/function () {
|
|
|
268
268
|
PaymentOrderEventData.RequiredProperties = ["data_type", "order_id", "token_id", "chain_id", "payable_amount", "receive_address", "currency", "order_amount", "fee_amount", "exchange_rate", "psp_order_code", "status", "received_token_amount"];
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
|
-
* 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. - `PaymentOrder`: The payment order event data. - `
|
|
271
|
+
* 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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
272
272
|
* @member {module:model/PaymentOrderEventData.DataTypeEnum} data_type
|
|
273
273
|
*/
|
|
274
274
|
PaymentOrderEventData.prototype['data_type'] = undefined;
|
|
@@ -387,7 +387,7 @@ PaymentOrderEventData.prototype['settlement_status'] = undefined;
|
|
|
387
387
|
|
|
388
388
|
// Implement WebhookEventDataType interface:
|
|
389
389
|
/**
|
|
390
|
-
* 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. - `PaymentOrder`: The payment order event data. - `
|
|
390
|
+
* 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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
391
391
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
392
392
|
*/
|
|
393
393
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -532,11 +532,6 @@ PaymentOrderEventData['DataTypeEnum'] = {
|
|
|
532
532
|
* @const
|
|
533
533
|
*/
|
|
534
534
|
"TokenListing": "TokenListing",
|
|
535
|
-
/**
|
|
536
|
-
* value: "BalanceUpdateInfo"
|
|
537
|
-
* @const
|
|
538
|
-
*/
|
|
539
|
-
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
540
535
|
/**
|
|
541
536
|
* value: "PaymentOrder"
|
|
542
537
|
* @const
|
|
@@ -552,6 +547,16 @@ PaymentOrderEventData['DataTypeEnum'] = {
|
|
|
552
547
|
* @const
|
|
553
548
|
*/
|
|
554
549
|
"PaymentSettlement": "PaymentSettlement",
|
|
550
|
+
/**
|
|
551
|
+
* value: "BalanceUpdateInfo"
|
|
552
|
+
* @const
|
|
553
|
+
*/
|
|
554
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
555
|
+
/**
|
|
556
|
+
* value: "SuspendedToken"
|
|
557
|
+
* @const
|
|
558
|
+
*/
|
|
559
|
+
"SuspendedToken": "SuspendedToken",
|
|
555
560
|
/**
|
|
556
561
|
* value: "unknown_default_open_api"
|
|
557
562
|
* @const
|
|
@@ -39,7 +39,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
39
39
|
* @alias module:model/PaymentRefundEventData
|
|
40
40
|
* @implements module:model/WebhookEventDataType
|
|
41
41
|
* @implements module:model/Refund
|
|
42
|
-
* @param data_type {module:model/PaymentRefundEventData.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. - `PaymentOrder`: The payment order event data. - `
|
|
42
|
+
* @param data_type {module:model/PaymentRefundEventData.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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
43
43
|
* @param refund_id {String} The refund order ID.
|
|
44
44
|
* @param token_id {String} The ID of the cryptocurrency used for refund.
|
|
45
45
|
* @param chain_id {String} The ID of the blockchain network on which the refund transaction occurs.
|
|
@@ -242,7 +242,7 @@ var PaymentRefundEventData = /*#__PURE__*/function () {
|
|
|
242
242
|
PaymentRefundEventData.RequiredProperties = ["data_type", "refund_id", "token_id", "chain_id", "amount", "to_address", "status"];
|
|
243
243
|
|
|
244
244
|
/**
|
|
245
|
-
* 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. - `PaymentOrder`: The payment order event data. - `
|
|
245
|
+
* 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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
246
246
|
* @member {module:model/PaymentRefundEventData.DataTypeEnum} data_type
|
|
247
247
|
*/
|
|
248
248
|
PaymentRefundEventData.prototype['data_type'] = undefined;
|
|
@@ -349,7 +349,7 @@ PaymentRefundEventData.prototype['merchant_fee_token_id'] = undefined;
|
|
|
349
349
|
|
|
350
350
|
// Implement WebhookEventDataType interface:
|
|
351
351
|
/**
|
|
352
|
-
* 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. - `PaymentOrder`: The payment order event data. - `
|
|
352
|
+
* 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. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
353
353
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
354
354
|
*/
|
|
355
355
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -484,11 +484,6 @@ PaymentRefundEventData['DataTypeEnum'] = {
|
|
|
484
484
|
* @const
|
|
485
485
|
*/
|
|
486
486
|
"TokenListing": "TokenListing",
|
|
487
|
-
/**
|
|
488
|
-
* value: "BalanceUpdateInfo"
|
|
489
|
-
* @const
|
|
490
|
-
*/
|
|
491
|
-
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
492
487
|
/**
|
|
493
488
|
* value: "PaymentOrder"
|
|
494
489
|
* @const
|
|
@@ -504,6 +499,16 @@ PaymentRefundEventData['DataTypeEnum'] = {
|
|
|
504
499
|
* @const
|
|
505
500
|
*/
|
|
506
501
|
"PaymentSettlement": "PaymentSettlement",
|
|
502
|
+
/**
|
|
503
|
+
* value: "BalanceUpdateInfo"
|
|
504
|
+
* @const
|
|
505
|
+
*/
|
|
506
|
+
"BalanceUpdateInfo": "BalanceUpdateInfo",
|
|
507
|
+
/**
|
|
508
|
+
* value: "SuspendedToken"
|
|
509
|
+
* @const
|
|
510
|
+
*/
|
|
511
|
+
"SuspendedToken": "SuspendedToken",
|
|
507
512
|
/**
|
|
508
513
|
* value: "unknown_default_open_api"
|
|
509
514
|
* @const
|