@cobo/cobo-waas2 1.17.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 +113 -7
- package/dist/ApiClient.js +1 -1
- package/dist/api/FeeStationApi.js +2 -2
- package/dist/api/OAuthApi.js +12 -12
- package/dist/api/OrganizationsApi.js +79 -0
- package/dist/api/PaymentApi.js +233 -16
- package/dist/api/TransactionsApi.js +2 -94
- package/dist/api/WalletsApi.js +55 -2
- package/dist/index.js +717 -10
- package/dist/model/Account.js +174 -0
- package/dist/model/AcquiringType.js +61 -0
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressesEventData.js +13 -3
- 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/BalanceUpdateInfo.js +170 -0
- package/dist/model/BalanceUpdateInfoEventData.js +302 -0
- package/dist/model/BankAccount.js +2 -2
- package/dist/model/ChainsEventData.js +13 -3
- package/dist/model/CreateMerchantRequest.js +13 -0
- package/dist/model/CreatePaymentOrderRequest.js +16 -6
- package/dist/model/CreateRefundRequest.js +9 -11
- package/dist/model/CreateSettlement.js +7 -27
- package/dist/model/CreateSettlementRequestRequest.js +27 -0
- package/dist/model/CryptoAddress.js +7 -7
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/CustodialWeb3TransferSource.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
- package/dist/model/EstimatedEvmLegacyFee.js +2 -2
- package/dist/model/EstimatedFILFee.js +170 -0
- package/dist/model/EstimatedFILFeeSlow.js +186 -0
- package/dist/model/EstimatedFee.js +69 -13
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +170 -0
- package/dist/model/EstimatedSOLFeeSlow.js +184 -0
- 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/ExchangePermissionToken201Response.js +4 -4
- package/dist/model/ExchangePermissionTokenRequest.js +2 -2
- package/dist/model/FILBase.js +88 -0
- package/dist/model/FILPrice.js +113 -0
- package/dist/model/FeeRate.js +1 -1
- package/dist/model/FeeType.js +10 -0
- package/dist/model/FixedFeeRate.js +2 -2
- package/dist/model/GetExchangeRate200Response.js +2 -2
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
- package/dist/model/GraphQLError.js +135 -0
- package/dist/model/GraphQLErrorLocationsInner.js +92 -0
- package/dist/model/GraphQLRequest.js +135 -0
- package/dist/model/GraphQLResponse.js +119 -0
- package/dist/model/{ListTransactionApprovalDetails200Response.js → ListTopUpPayers200Response.js} +37 -21
- package/dist/model/ListTopUpPayers200ResponseDataInner.js +189 -0
- package/dist/model/MPCVaultEventData.js +13 -3
- package/dist/model/MaxFeeAmount.js +0 -1
- package/dist/model/MaxTransferableValue.js +2 -2
- package/dist/model/Merchant.js +15 -2
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/Order.js +12 -3
- package/dist/model/PayerAccount.js +189 -0
- package/dist/model/PaymentOrderEventData.js +32 -9
- package/dist/model/PaymentRefundEventData.js +71 -11
- package/dist/model/PaymentSettlementEvent.js +19 -9
- package/dist/model/RefreshPermissionTokenRequest.js +2 -2
- package/dist/model/Refund.js +39 -4
- package/dist/model/RefundStatus.js +5 -0
- package/dist/model/RoleDetail.js +126 -0
- package/dist/model/SOLBase.js +101 -0
- package/dist/model/SOLComputeUnit.js +100 -0
- package/dist/model/Settlement.js +3 -3
- package/dist/model/SettlementDetail.js +15 -6
- package/dist/model/SettlementInfo.js +11 -2
- 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 +68 -0
- package/dist/model/SwapActivitySigners.js +110 -0
- package/dist/model/SwapQuote.js +17 -4
- package/dist/model/SwapSingingStatus.js +71 -0
- package/dist/model/TSSRequestWebhookEventData.js +13 -3
- package/dist/model/TokenListingEventData.js +13 -3
- 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/{TransactionMessageSignBTCEIP191Destination.js → TokenizationAllowlistAddressNote.js} +46 -36
- 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 -3
- package/dist/model/TopUpAddress.js +230 -0
- package/dist/model/TransactionCoboCategory.js +20 -0
- package/dist/model/TransactionDestination.js +10 -38
- package/dist/model/TransactionEvmCalldataInfo.js +1 -1
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionFILFee.js +229 -0
- package/dist/model/TransactionFee.js +109 -11
- 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 +186 -0
- package/dist/model/TransactionRequestFee.js +90 -10
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestSOLFee.js +168 -0
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionSOLFee.js +229 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionTransferToWalletDestination.js +1 -1
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +13 -3
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/UpdateMerchantByIdRequest.js +13 -0
- package/dist/model/UpdateRefundByIdRequest.js +110 -0
- package/dist/model/UpdateTopUpAddress.js +141 -0
- package/dist/model/UtxoFeeBasePrice.js +0 -1
- package/dist/model/UtxoFeeRate.js +2 -2
- package/dist/model/WalletInfoEventData.js +13 -3
- package/dist/model/WebhookEvent.js +2 -2
- package/dist/model/WebhookEventData.js +123 -13
- package/dist/model/WebhookEventDataType.js +12 -2
- package/dist/model/WebhookEventLog.js +2 -2
- package/dist/model/WebhookEventType.js +35 -0
- package/docs/Account.md +14 -0
- package/docs/AcquiringType.md +12 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressesEventData.md +5 -1
- 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/BalanceUpdateInfo.md +13 -0
- package/docs/BalanceUpdateInfoEventData.md +49 -0
- package/docs/BankAccount.md +2 -2
- package/docs/ChainsEventData.md +5 -1
- package/docs/CreateMerchantRequest.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +5 -4
- package/docs/CreateRefundRequest.md +5 -5
- package/docs/CreateSettlement.md +7 -9
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CryptoAddress.md +5 -5
- package/docs/CustodialWeb3TransferSource.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimatedEvmEip1559Fee.md +1 -1
- package/docs/EstimatedEvmLegacyFee.md +1 -1
- package/docs/EstimatedFILFee.md +13 -0
- package/docs/EstimatedFILFeeSlow.md +12 -0
- package/docs/EstimatedFee.md +4 -4
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/EstimatedSOLFee.md +13 -0
- package/docs/EstimatedSOLFeeSlow.md +12 -0
- package/docs/EstimatedUtxoFee.md +1 -1
- package/docs/EvmEip1559FeeRate.md +1 -1
- package/docs/EvmLegacyFeeRate.md +1 -1
- package/docs/ExchangePermissionToken201Response.md +4 -4
- package/docs/ExchangePermissionTokenRequest.md +1 -1
- package/docs/FILBase.md +9 -0
- package/docs/FILPrice.md +11 -0
- package/docs/FeeRate.md +1 -1
- package/docs/FeeStationApi.md +1 -1
- package/docs/FeeType.md +4 -0
- package/docs/FixedFeeRate.md +1 -1
- package/docs/GetExchangeRate200Response.md +1 -1
- package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
- package/docs/GraphQLError.md +11 -0
- package/docs/GraphQLErrorLocationsInner.md +10 -0
- package/docs/GraphQLRequest.md +11 -0
- package/docs/GraphQLResponse.md +10 -0
- package/docs/ListTopUpPayers200Response.md +10 -0
- package/docs/ListTopUpPayers200ResponseDataInner.md +14 -0
- package/docs/MPCVaultEventData.md +5 -1
- package/docs/MaxTransferableValue.md +1 -1
- package/docs/Merchant.md +3 -2
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +8 -8
- package/docs/Order.md +4 -3
- package/docs/OrganizationsApi.md +55 -0
- package/docs/PayerAccount.md +14 -0
- package/docs/PaymentApi.md +230 -6
- package/docs/PaymentOrderEventData.md +9 -4
- package/docs/PaymentRefundEventData.md +12 -5
- package/docs/PaymentSettlementEvent.md +8 -4
- package/docs/RefreshPermissionTokenRequest.md +1 -1
- package/docs/Refund.md +7 -4
- package/docs/RefundStatus.md +2 -0
- package/docs/RoleDetail.md +11 -0
- package/docs/SOLBase.md +10 -0
- package/docs/SOLComputeUnit.md +10 -0
- package/docs/Settlement.md +3 -3
- package/docs/SettlementDetail.md +7 -6
- package/docs/SettlementInfo.md +3 -2
- package/docs/SuspendedTokenEventData.md +46 -0
- package/docs/SuspendedTokenOperationType.md +12 -0
- package/docs/SwapActivity.md +2 -0
- package/docs/SwapActivityDetail.md +3 -0
- package/docs/SwapActivitySigners.md +11 -0
- package/docs/SwapQuote.md +3 -2
- package/docs/SwapSingingStatus.md +16 -0
- package/docs/TSSRequestWebhookEventData.md +5 -1
- package/docs/TokenListingEventData.md +5 -1
- 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 -1
- package/docs/TopUpAddress.md +18 -0
- package/docs/TransactionCoboCategory.md +8 -0
- package/docs/TransactionDestination.md +2 -2
- package/docs/TransactionEvmCalldataInfo.md +1 -1
- package/docs/TransactionEvmEip1559Fee.md +2 -2
- package/docs/TransactionEvmLegacyFee.md +2 -2
- package/docs/TransactionFILFee.md +16 -0
- package/docs/TransactionFee.md +10 -3
- 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 +13 -0
- package/docs/TransactionRequestFee.md +6 -2
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestSOLFee.md +12 -0
- package/docs/TransactionRequestUtxoFee.md +1 -1
- package/docs/TransactionSOLFee.md +16 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionTransferToWalletDestination.md +1 -1
- package/docs/TransactionUtxoFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +5 -1
- package/docs/TransactionsApi.md +1 -107
- package/docs/TransferDestination.md +2 -2
- package/docs/UpdateMerchantByIdRequest.md +1 -0
- package/docs/UpdateRefundByIdRequest.md +9 -0
- package/docs/UpdateTopUpAddress.md +11 -0
- package/docs/UtxoFeeRate.md +1 -1
- package/docs/WalletInfoEventData.md +5 -1
- package/docs/WalletsApi.md +58 -1
- package/docs/WebhookEvent.md +1 -1
- package/docs/WebhookEventData.md +18 -5
- package/docs/WebhookEventDataType.md +5 -1
- package/docs/WebhookEventLog.md +1 -1
- package/docs/WebhookEventType.md +14 -0
- package/package.json +1 -1
- package/docs/ListTransactionApprovalDetails200Response.md +0 -9
- package/docs/TransactionMessageSignBTCEIP191Destination.md +0 -10
|
@@ -144,13 +144,13 @@ TransactionFixedFee.prototype['max_fee_amount'] = undefined;
|
|
|
144
144
|
TransactionFixedFee.prototype['fee_type'] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* The token
|
|
147
|
+
* The token used to pay the transaction fee.
|
|
148
148
|
* @member {String} token_id
|
|
149
149
|
*/
|
|
150
150
|
TransactionFixedFee.prototype['token_id'] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
* The transaction fee.
|
|
153
|
+
* The actually charged transaction fee.
|
|
154
154
|
* @member {String} fee_used
|
|
155
155
|
*/
|
|
156
156
|
TransactionFixedFee.prototype['fee_used'] = undefined;
|
|
@@ -190,7 +190,7 @@ TransactionRbfSource.prototype['source_type'] = undefined;
|
|
|
190
190
|
TransactionRbfSource.prototype['wallet_id'] = undefined;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
|
-
*
|
|
193
|
+
* 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.
|
|
194
194
|
* @member {String} address
|
|
195
195
|
*/
|
|
196
196
|
TransactionRbfSource.prototype['address'] = undefined;
|
|
@@ -39,7 +39,7 @@ var TransactionRequestEvmEip1559Fee = /*#__PURE__*/function () {
|
|
|
39
39
|
* @param max_fee_per_gas {String} The maximum gas fee per gas unit used on the chain, in wei.
|
|
40
40
|
* @param max_priority_fee_per_gas {String} The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction.
|
|
41
41
|
* @param fee_type {module:model/FeeType}
|
|
42
|
-
* @param token_id {String} The token
|
|
42
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
43
43
|
*/
|
|
44
44
|
function TransactionRequestEvmEip1559Fee(max_fee_per_gas, max_priority_fee_per_gas, fee_type, token_id) {
|
|
45
45
|
_classCallCheck(this, TransactionRequestEvmEip1559Fee);
|
|
@@ -156,7 +156,7 @@ TransactionRequestEvmEip1559Fee.prototype['max_priority_fee_per_gas'] = undefine
|
|
|
156
156
|
TransactionRequestEvmEip1559Fee.prototype['fee_type'] = undefined;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* The token
|
|
159
|
+
* The token used to pay the transaction fee.
|
|
160
160
|
* @member {String} token_id
|
|
161
161
|
*/
|
|
162
162
|
TransactionRequestEvmEip1559Fee.prototype['token_id'] = undefined;
|
|
@@ -38,7 +38,7 @@ var TransactionRequestEvmLegacyFee = /*#__PURE__*/function () {
|
|
|
38
38
|
* @implements module:model/EvmLegacyFeeBasePrice
|
|
39
39
|
* @param gas_price {String} The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used.
|
|
40
40
|
* @param fee_type {module:model/FeeType}
|
|
41
|
-
* @param token_id {String} The token
|
|
41
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
42
42
|
*/
|
|
43
43
|
function TransactionRequestEvmLegacyFee(gas_price, fee_type, token_id) {
|
|
44
44
|
_classCallCheck(this, TransactionRequestEvmLegacyFee);
|
|
@@ -141,7 +141,7 @@ TransactionRequestEvmLegacyFee.prototype['gas_price'] = undefined;
|
|
|
141
141
|
TransactionRequestEvmLegacyFee.prototype['fee_type'] = undefined;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* The token
|
|
144
|
+
* The token used to pay the transaction fee.
|
|
145
145
|
* @member {String} token_id
|
|
146
146
|
*/
|
|
147
147
|
TransactionRequestEvmLegacyFee.prototype['token_id'] = undefined;
|
|
@@ -0,0 +1,186 @@
|
|
|
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 _FILPrice = _interopRequireDefault(require("./FILPrice"));
|
|
9
|
+
var _FeeType = _interopRequireDefault(require("./FeeType"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The TransactionRequestFILFee model module.
|
|
31
|
+
* @module model/TransactionRequestFILFee
|
|
32
|
+
*/
|
|
33
|
+
var TransactionRequestFILFee = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>TransactionRequestFILFee</code>.
|
|
36
|
+
* The preset properties to limit transaction fee. In the Filecoin fee model, the transaction fee is calculated using the minimum of your specified gas fee cap and the sum of the base fee and gas premium, then multiplied by the gas limit. This can be expressed as: Transaction fee = min(gas fee cap, base fee + gas premium) * gas limit. For more information about the Filecoin fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the gas fee cap, gas premium, and gas limit to control fee behavior and prioritization. Switch between the tabs to display the properties for different transaction fee models.
|
|
37
|
+
* @alias module:model/TransactionRequestFILFee
|
|
38
|
+
* @implements module:model/FILPrice
|
|
39
|
+
* @param gas_premium {String} 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.
|
|
40
|
+
* @param gas_fee_cap {String} The maximum gas price you are willing to pay per unit of gas.
|
|
41
|
+
* @param fee_type {module:model/FeeType}
|
|
42
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
43
|
+
*/
|
|
44
|
+
function TransactionRequestFILFee(gas_premium, gas_fee_cap, fee_type, token_id) {
|
|
45
|
+
_classCallCheck(this, TransactionRequestFILFee);
|
|
46
|
+
_FILPrice["default"].initialize(this);
|
|
47
|
+
TransactionRequestFILFee.initialize(this, gas_premium, gas_fee_cap, fee_type, token_id);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Initializes the fields of this object.
|
|
52
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
53
|
+
* Only for internal use.
|
|
54
|
+
*/
|
|
55
|
+
return _createClass(TransactionRequestFILFee, null, [{
|
|
56
|
+
key: "initialize",
|
|
57
|
+
value: function initialize(obj, gas_premium, gas_fee_cap, fee_type, token_id) {
|
|
58
|
+
obj['gas_premium'] = gas_premium;
|
|
59
|
+
obj['gas_fee_cap'] = gas_fee_cap;
|
|
60
|
+
obj['fee_type'] = fee_type;
|
|
61
|
+
obj['token_id'] = token_id;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Constructs a <code>TransactionRequestFILFee</code> from a plain JavaScript object, optionally creating a new instance.
|
|
66
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
67
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
68
|
+
* @param {module:model/TransactionRequestFILFee} obj Optional instance to populate.
|
|
69
|
+
* @return {module:model/TransactionRequestFILFee} The populated <code>TransactionRequestFILFee</code> instance.
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "constructFromObject",
|
|
73
|
+
value: function constructFromObject(data, obj) {
|
|
74
|
+
if (data) {
|
|
75
|
+
obj = obj || new TransactionRequestFILFee();
|
|
76
|
+
_FILPrice["default"].constructFromObject(data, obj);
|
|
77
|
+
if (data.hasOwnProperty('gas_premium')) {
|
|
78
|
+
obj['gas_premium'] = _ApiClient["default"].convertToType(data['gas_premium'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('gas_fee_cap')) {
|
|
81
|
+
obj['gas_fee_cap'] = _ApiClient["default"].convertToType(data['gas_fee_cap'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('gas_limit')) {
|
|
84
|
+
obj['gas_limit'] = _ApiClient["default"].convertToType(data['gas_limit'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('fee_type')) {
|
|
87
|
+
obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('token_id')) {
|
|
90
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return obj;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Validates the JSON data with respect to <code>TransactionRequestFILFee</code>.
|
|
98
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
99
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionRequestFILFee</code>.
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "validateJSON",
|
|
103
|
+
value: function validateJSON(data) {
|
|
104
|
+
// check to make sure all required properties are present in the JSON string
|
|
105
|
+
var _iterator = _createForOfIteratorHelper(TransactionRequestFILFee.RequiredProperties),
|
|
106
|
+
_step;
|
|
107
|
+
try {
|
|
108
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
109
|
+
var property = _step.value;
|
|
110
|
+
if (!data.hasOwnProperty(property)) {
|
|
111
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
// ensure the json data is a string
|
|
115
|
+
} catch (err) {
|
|
116
|
+
_iterator.e(err);
|
|
117
|
+
} finally {
|
|
118
|
+
_iterator.f();
|
|
119
|
+
}
|
|
120
|
+
if (data['gas_premium'] && !(typeof data['gas_premium'] === 'string' || data['gas_premium'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `gas_premium` to be a primitive type in the JSON string but got " + data['gas_premium']);
|
|
122
|
+
}
|
|
123
|
+
// ensure the json data is a string
|
|
124
|
+
if (data['gas_fee_cap'] && !(typeof data['gas_fee_cap'] === 'string' || data['gas_fee_cap'] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `gas_fee_cap` to be a primitive type in the JSON string but got " + data['gas_fee_cap']);
|
|
126
|
+
}
|
|
127
|
+
// ensure the json data is a string
|
|
128
|
+
if (data['gas_limit'] && !(typeof data['gas_limit'] === 'string' || data['gas_limit'] instanceof String)) {
|
|
129
|
+
throw new Error("Expected the field `gas_limit` to be a primitive type in the JSON string but got " + data['gas_limit']);
|
|
130
|
+
}
|
|
131
|
+
// ensure the json data is a string
|
|
132
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
133
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
134
|
+
}
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
}]);
|
|
138
|
+
}();
|
|
139
|
+
TransactionRequestFILFee.RequiredProperties = ["gas_premium", "gas_fee_cap", "fee_type", "token_id"];
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 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.
|
|
143
|
+
* @member {String} gas_premium
|
|
144
|
+
*/
|
|
145
|
+
TransactionRequestFILFee.prototype['gas_premium'] = undefined;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The maximum gas price you are willing to pay per unit of gas.
|
|
149
|
+
* @member {String} gas_fee_cap
|
|
150
|
+
*/
|
|
151
|
+
TransactionRequestFILFee.prototype['gas_fee_cap'] = undefined;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The maximum amount of gas your transaction is allowed to consume.
|
|
155
|
+
* @member {String} gas_limit
|
|
156
|
+
*/
|
|
157
|
+
TransactionRequestFILFee.prototype['gas_limit'] = undefined;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @member {module:model/FeeType} fee_type
|
|
161
|
+
*/
|
|
162
|
+
TransactionRequestFILFee.prototype['fee_type'] = undefined;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The token used to pay the transaction fee.
|
|
166
|
+
* @member {String} token_id
|
|
167
|
+
*/
|
|
168
|
+
TransactionRequestFILFee.prototype['token_id'] = undefined;
|
|
169
|
+
|
|
170
|
+
// Implement FILPrice interface:
|
|
171
|
+
/**
|
|
172
|
+
* 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.
|
|
173
|
+
* @member {String} gas_premium
|
|
174
|
+
*/
|
|
175
|
+
_FILPrice["default"].prototype['gas_premium'] = undefined;
|
|
176
|
+
/**
|
|
177
|
+
* The maximum gas price you are willing to pay per unit of gas.
|
|
178
|
+
* @member {String} gas_fee_cap
|
|
179
|
+
*/
|
|
180
|
+
_FILPrice["default"].prototype['gas_fee_cap'] = undefined;
|
|
181
|
+
/**
|
|
182
|
+
* The maximum amount of gas your transaction is allowed to consume.
|
|
183
|
+
* @member {String} gas_limit
|
|
184
|
+
*/
|
|
185
|
+
_FILPrice["default"].prototype['gas_limit'] = undefined;
|
|
186
|
+
var _default = exports["default"] = TransactionRequestFILFee;
|
|
@@ -8,7 +8,9 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
8
8
|
var _FeeType = _interopRequireDefault(require("./FeeType"));
|
|
9
9
|
var _TransactionRequestEvmEip1559Fee = _interopRequireDefault(require("./TransactionRequestEvmEip1559Fee"));
|
|
10
10
|
var _TransactionRequestEvmLegacyFee = _interopRequireDefault(require("./TransactionRequestEvmLegacyFee"));
|
|
11
|
+
var _TransactionRequestFILFee = _interopRequireDefault(require("./TransactionRequestFILFee"));
|
|
11
12
|
var _TransactionRequestFixedFee = _interopRequireDefault(require("./TransactionRequestFixedFee"));
|
|
13
|
+
var _TransactionRequestSOLFee = _interopRequireDefault(require("./TransactionRequestSOLFee"));
|
|
12
14
|
var _TransactionRequestUtxoFee = _interopRequireDefault(require("./TransactionRequestUtxoFee"));
|
|
13
15
|
var _TransactionRequestFee;
|
|
14
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -36,7 +38,7 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
36
38
|
/**
|
|
37
39
|
* Constructs a new <code>TransactionRequestFee</code>.
|
|
38
40
|
* @alias module:model/TransactionRequestFee
|
|
39
|
-
* @param {(module:model/TransactionRequestEvmEip1559Fee|module:model/TransactionRequestEvmLegacyFee|module:model/TransactionRequestFixedFee|module:model/TransactionRequestUtxoFee)} instance The actual instance to initialize TransactionRequestFee.
|
|
41
|
+
* @param {(module:model/TransactionRequestEvmEip1559Fee|module:model/TransactionRequestEvmLegacyFee|module:model/TransactionRequestFILFee|module:model/TransactionRequestFixedFee|module:model/TransactionRequestSOLFee|module:model/TransactionRequestUtxoFee)} instance The actual instance to initialize TransactionRequestFee.
|
|
40
42
|
*/
|
|
41
43
|
function TransactionRequestFee() {
|
|
42
44
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -65,10 +67,18 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
65
67
|
this.actualInstance = _TransactionRequestEvmLegacyFee["default"].constructFromObject(instance);
|
|
66
68
|
match++;
|
|
67
69
|
break;
|
|
70
|
+
case "FIL":
|
|
71
|
+
this.actualInstance = _TransactionRequestFILFee["default"].constructFromObject(instance);
|
|
72
|
+
match++;
|
|
73
|
+
break;
|
|
68
74
|
case "Fixed":
|
|
69
75
|
this.actualInstance = _TransactionRequestFixedFee["default"].constructFromObject(instance);
|
|
70
76
|
match++;
|
|
71
77
|
break;
|
|
78
|
+
case "SOL":
|
|
79
|
+
this.actualInstance = _TransactionRequestSOLFee["default"].constructFromObject(instance);
|
|
80
|
+
match++;
|
|
81
|
+
break;
|
|
72
82
|
case "UTXO":
|
|
73
83
|
this.actualInstance = _TransactionRequestUtxoFee["default"].constructFromObject(instance);
|
|
74
84
|
match++;
|
|
@@ -171,13 +181,59 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
171
181
|
// json data failed to deserialize into TransactionRequestUtxoFee
|
|
172
182
|
errorMessages.push("Failed to construct TransactionRequestUtxoFee: " + err);
|
|
173
183
|
}
|
|
184
|
+
try {
|
|
185
|
+
if (instance instanceof _TransactionRequestSOLFee["default"]) {
|
|
186
|
+
this.actualInstance = instance;
|
|
187
|
+
} else if (!!_TransactionRequestSOLFee["default"].validateJSON && _TransactionRequestSOLFee["default"].validateJSON(instance)) {
|
|
188
|
+
// plain JS object
|
|
189
|
+
// create TransactionRequestSOLFee from JS object
|
|
190
|
+
this.actualInstance = _TransactionRequestSOLFee["default"].constructFromObject(instance);
|
|
191
|
+
} else {
|
|
192
|
+
if (_TransactionRequestSOLFee["default"].constructFromObject(instance)) {
|
|
193
|
+
if (!!_TransactionRequestSOLFee["default"].constructFromObject(instance).toJSON) {
|
|
194
|
+
if (_TransactionRequestSOLFee["default"].constructFromObject(instance).toJSON()) {
|
|
195
|
+
this.actualInstance = _TransactionRequestSOLFee["default"].constructFromObject(instance);
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
this.actualInstance = _TransactionRequestSOLFee["default"].constructFromObject(instance);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
match++;
|
|
203
|
+
} catch (err) {
|
|
204
|
+
// json data failed to deserialize into TransactionRequestSOLFee
|
|
205
|
+
errorMessages.push("Failed to construct TransactionRequestSOLFee: " + err);
|
|
206
|
+
}
|
|
207
|
+
try {
|
|
208
|
+
if (instance instanceof _TransactionRequestFILFee["default"]) {
|
|
209
|
+
this.actualInstance = instance;
|
|
210
|
+
} else if (!!_TransactionRequestFILFee["default"].validateJSON && _TransactionRequestFILFee["default"].validateJSON(instance)) {
|
|
211
|
+
// plain JS object
|
|
212
|
+
// create TransactionRequestFILFee from JS object
|
|
213
|
+
this.actualInstance = _TransactionRequestFILFee["default"].constructFromObject(instance);
|
|
214
|
+
} else {
|
|
215
|
+
if (_TransactionRequestFILFee["default"].constructFromObject(instance)) {
|
|
216
|
+
if (!!_TransactionRequestFILFee["default"].constructFromObject(instance).toJSON) {
|
|
217
|
+
if (_TransactionRequestFILFee["default"].constructFromObject(instance).toJSON()) {
|
|
218
|
+
this.actualInstance = _TransactionRequestFILFee["default"].constructFromObject(instance);
|
|
219
|
+
}
|
|
220
|
+
} else {
|
|
221
|
+
this.actualInstance = _TransactionRequestFILFee["default"].constructFromObject(instance);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
match++;
|
|
226
|
+
} catch (err) {
|
|
227
|
+
// json data failed to deserialize into TransactionRequestFILFee
|
|
228
|
+
errorMessages.push("Failed to construct TransactionRequestFILFee: " + err);
|
|
229
|
+
}
|
|
174
230
|
|
|
175
231
|
// if (match > 1) {
|
|
176
|
-
// throw new Error("Multiple matches found constructing `TransactionRequestFee` with oneOf schemas TransactionRequestEvmEip1559Fee, TransactionRequestEvmLegacyFee, TransactionRequestFixedFee, TransactionRequestUtxoFee. Input: " + JSON.stringify(instance));
|
|
232
|
+
// throw new Error("Multiple matches found constructing `TransactionRequestFee` with oneOf schemas TransactionRequestEvmEip1559Fee, TransactionRequestEvmLegacyFee, TransactionRequestFILFee, TransactionRequestFixedFee, TransactionRequestSOLFee, TransactionRequestUtxoFee. Input: " + JSON.stringify(instance));
|
|
177
233
|
// } else
|
|
178
234
|
if (match === 0) {
|
|
179
235
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
180
|
-
// throw new Error("No match found constructing `TransactionRequestFee` with oneOf schemas TransactionRequestEvmEip1559Fee, TransactionRequestEvmLegacyFee, TransactionRequestFixedFee, TransactionRequestUtxoFee. Details: " +
|
|
236
|
+
// throw new Error("No match found constructing `TransactionRequestFee` with oneOf schemas TransactionRequestEvmEip1559Fee, TransactionRequestEvmLegacyFee, TransactionRequestFILFee, TransactionRequestFixedFee, TransactionRequestSOLFee, TransactionRequestUtxoFee. Details: " +
|
|
181
237
|
// errorMessages.join(", "));
|
|
182
238
|
return;
|
|
183
239
|
} else {// only 1 match
|
|
@@ -196,16 +252,16 @@ var TransactionRequestFee = /*#__PURE__*/function () {
|
|
|
196
252
|
key: "getActualInstance",
|
|
197
253
|
value:
|
|
198
254
|
/**
|
|
199
|
-
* Gets the actual instance, which can be <code>TransactionRequestEvmEip1559Fee</code>, <code>TransactionRequestEvmLegacyFee</code>, <code>TransactionRequestFixedFee</code>, <code>TransactionRequestUtxoFee</code>.
|
|
200
|
-
* @return {(module:model/TransactionRequestEvmEip1559Fee|module:model/TransactionRequestEvmLegacyFee|module:model/TransactionRequestFixedFee|module:model/TransactionRequestUtxoFee)} The actual instance.
|
|
255
|
+
* Gets the actual instance, which can be <code>TransactionRequestEvmEip1559Fee</code>, <code>TransactionRequestEvmLegacyFee</code>, <code>TransactionRequestFILFee</code>, <code>TransactionRequestFixedFee</code>, <code>TransactionRequestSOLFee</code>, <code>TransactionRequestUtxoFee</code>.
|
|
256
|
+
* @return {(module:model/TransactionRequestEvmEip1559Fee|module:model/TransactionRequestEvmLegacyFee|module:model/TransactionRequestFILFee|module:model/TransactionRequestFixedFee|module:model/TransactionRequestSOLFee|module:model/TransactionRequestUtxoFee)} The actual instance.
|
|
201
257
|
*/
|
|
202
258
|
function getActualInstance() {
|
|
203
259
|
return this.actualInstance;
|
|
204
260
|
}
|
|
205
261
|
|
|
206
262
|
/**
|
|
207
|
-
* Sets the actual instance, which can be <code>TransactionRequestEvmEip1559Fee</code>, <code>TransactionRequestEvmLegacyFee</code>, <code>TransactionRequestFixedFee</code>, <code>TransactionRequestUtxoFee</code>.
|
|
208
|
-
* @param {(module:model/TransactionRequestEvmEip1559Fee|module:model/TransactionRequestEvmLegacyFee|module:model/TransactionRequestFixedFee|module:model/TransactionRequestUtxoFee)} obj The actual instance.
|
|
263
|
+
* Sets the actual instance, which can be <code>TransactionRequestEvmEip1559Fee</code>, <code>TransactionRequestEvmLegacyFee</code>, <code>TransactionRequestFILFee</code>, <code>TransactionRequestFixedFee</code>, <code>TransactionRequestSOLFee</code>, <code>TransactionRequestUtxoFee</code>.
|
|
264
|
+
* @param {(module:model/TransactionRequestEvmEip1559Fee|module:model/TransactionRequestEvmLegacyFee|module:model/TransactionRequestFILFee|module:model/TransactionRequestFixedFee|module:model/TransactionRequestSOLFee|module:model/TransactionRequestUtxoFee)} obj The actual instance.
|
|
209
265
|
*/
|
|
210
266
|
}, {
|
|
211
267
|
key: "setActualInstance",
|
|
@@ -234,7 +290,7 @@ _defineProperty(TransactionRequestFee, "fromJSON", function (json_string) {
|
|
|
234
290
|
TransactionRequestFee.prototype['fee_type'] = undefined;
|
|
235
291
|
|
|
236
292
|
/**
|
|
237
|
-
* The token
|
|
293
|
+
* The token used to pay the transaction fee.
|
|
238
294
|
* @member {String} token_id
|
|
239
295
|
*/
|
|
240
296
|
TransactionRequestFee.prototype['token_id'] = undefined;
|
|
@@ -246,7 +302,7 @@ TransactionRequestFee.prototype['token_id'] = undefined;
|
|
|
246
302
|
TransactionRequestFee.prototype['max_fee_amount'] = undefined;
|
|
247
303
|
|
|
248
304
|
/**
|
|
249
|
-
* The
|
|
305
|
+
* The maximum amount of gas your transaction is allowed to consume.
|
|
250
306
|
* @member {String} gas_limit
|
|
251
307
|
*/
|
|
252
308
|
TransactionRequestFee.prototype['gas_limit'] = undefined;
|
|
@@ -274,5 +330,29 @@ TransactionRequestFee.prototype['gas_price'] = undefined;
|
|
|
274
330
|
* @member {String} fee_rate
|
|
275
331
|
*/
|
|
276
332
|
TransactionRequestFee.prototype['fee_rate'] = undefined;
|
|
277
|
-
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
|
|
336
|
+
* @member {String} compute_unit_price
|
|
337
|
+
*/
|
|
338
|
+
TransactionRequestFee.prototype['compute_unit_price'] = undefined;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
|
|
342
|
+
* @member {String} compute_unit_limit
|
|
343
|
+
*/
|
|
344
|
+
TransactionRequestFee.prototype['compute_unit_limit'] = undefined;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* 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.
|
|
348
|
+
* @member {String} gas_premium
|
|
349
|
+
*/
|
|
350
|
+
TransactionRequestFee.prototype['gas_premium'] = undefined;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* The maximum gas price you are willing to pay per unit of gas.
|
|
354
|
+
* @member {String} gas_fee_cap
|
|
355
|
+
*/
|
|
356
|
+
TransactionRequestFee.prototype['gas_fee_cap'] = undefined;
|
|
357
|
+
TransactionRequestFee.OneOf = ["TransactionRequestEvmEip1559Fee", "TransactionRequestEvmLegacyFee", "TransactionRequestFILFee", "TransactionRequestFixedFee", "TransactionRequestSOLFee", "TransactionRequestUtxoFee"];
|
|
278
358
|
var _default = exports["default"] = TransactionRequestFee;
|
|
@@ -37,7 +37,7 @@ var TransactionRequestFixedFee = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/TransactionRequestFixedFee
|
|
38
38
|
* @implements module:model/MaxFeeAmount
|
|
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 TransactionRequestFixedFee(fee_type, token_id) {
|
|
43
43
|
_classCallCheck(this, TransactionRequestFixedFee);
|
|
@@ -132,7 +132,7 @@ TransactionRequestFixedFee.prototype['max_fee_amount'] = undefined;
|
|
|
132
132
|
TransactionRequestFixedFee.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
|
TransactionRequestFixedFee.prototype['token_id'] = undefined;
|
|
@@ -0,0 +1,168 @@
|
|
|
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 _FeeType = _interopRequireDefault(require("./FeeType"));
|
|
9
|
+
var _SOLComputeUnit = _interopRequireDefault(require("./SOLComputeUnit"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* Cobo Wallet as a Service 2.0
|
|
21
|
+
*
|
|
22
|
+
* Contact: help@cobo.com
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The TransactionRequestSOLFee model module.
|
|
31
|
+
* @module model/TransactionRequestSOLFee
|
|
32
|
+
*/
|
|
33
|
+
var TransactionRequestSOLFee = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>TransactionRequestSOLFee</code>.
|
|
36
|
+
* The preset properties to limit transaction fee. In the Solana fee model, the transaction fee is calculated by adding the base fee to the product of the compute unit limit and the compute unit price. This can be expressed as: Transaction fee = base fee + (CU limit * CU price). For more information about the Solana fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify CU price and CU limit to adjust the priority and resource allocation of your transaction. Switch between the tabs to display the properties for different transaction fee models.
|
|
37
|
+
* @alias module:model/TransactionRequestSOLFee
|
|
38
|
+
* @implements module:model/SOLComputeUnit
|
|
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 fee_type {module:model/FeeType}
|
|
42
|
+
* @param token_id {String} The token used to pay the transaction fee.
|
|
43
|
+
*/
|
|
44
|
+
function TransactionRequestSOLFee(compute_unit_price, compute_unit_limit, fee_type, token_id) {
|
|
45
|
+
_classCallCheck(this, TransactionRequestSOLFee);
|
|
46
|
+
_SOLComputeUnit["default"].initialize(this);
|
|
47
|
+
TransactionRequestSOLFee.initialize(this, compute_unit_price, compute_unit_limit, fee_type, token_id);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Initializes the fields of this object.
|
|
52
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
53
|
+
* Only for internal use.
|
|
54
|
+
*/
|
|
55
|
+
return _createClass(TransactionRequestSOLFee, null, [{
|
|
56
|
+
key: "initialize",
|
|
57
|
+
value: function initialize(obj, compute_unit_price, compute_unit_limit, fee_type, token_id) {
|
|
58
|
+
obj['compute_unit_price'] = compute_unit_price;
|
|
59
|
+
obj['compute_unit_limit'] = compute_unit_limit;
|
|
60
|
+
obj['fee_type'] = fee_type;
|
|
61
|
+
obj['token_id'] = token_id;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Constructs a <code>TransactionRequestSOLFee</code> from a plain JavaScript object, optionally creating a new instance.
|
|
66
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
67
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
68
|
+
* @param {module:model/TransactionRequestSOLFee} obj Optional instance to populate.
|
|
69
|
+
* @return {module:model/TransactionRequestSOLFee} The populated <code>TransactionRequestSOLFee</code> instance.
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "constructFromObject",
|
|
73
|
+
value: function constructFromObject(data, obj) {
|
|
74
|
+
if (data) {
|
|
75
|
+
obj = obj || new TransactionRequestSOLFee();
|
|
76
|
+
_SOLComputeUnit["default"].constructFromObject(data, obj);
|
|
77
|
+
if (data.hasOwnProperty('compute_unit_price')) {
|
|
78
|
+
obj['compute_unit_price'] = _ApiClient["default"].convertToType(data['compute_unit_price'], 'String');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('compute_unit_limit')) {
|
|
81
|
+
obj['compute_unit_limit'] = _ApiClient["default"].convertToType(data['compute_unit_limit'], 'String');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('fee_type')) {
|
|
84
|
+
obj['fee_type'] = _FeeType["default"].constructFromObject(data['fee_type']);
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('token_id')) {
|
|
87
|
+
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return obj;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Validates the JSON data with respect to <code>TransactionRequestSOLFee</code>.
|
|
95
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
96
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionRequestSOLFee</code>.
|
|
97
|
+
*/
|
|
98
|
+
}, {
|
|
99
|
+
key: "validateJSON",
|
|
100
|
+
value: function validateJSON(data) {
|
|
101
|
+
// check to make sure all required properties are present in the JSON string
|
|
102
|
+
var _iterator = _createForOfIteratorHelper(TransactionRequestSOLFee.RequiredProperties),
|
|
103
|
+
_step;
|
|
104
|
+
try {
|
|
105
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
106
|
+
var property = _step.value;
|
|
107
|
+
if (!data.hasOwnProperty(property)) {
|
|
108
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// ensure the json data is a string
|
|
112
|
+
} catch (err) {
|
|
113
|
+
_iterator.e(err);
|
|
114
|
+
} finally {
|
|
115
|
+
_iterator.f();
|
|
116
|
+
}
|
|
117
|
+
if (data['compute_unit_price'] && !(typeof data['compute_unit_price'] === 'string' || data['compute_unit_price'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `compute_unit_price` to be a primitive type in the JSON string but got " + data['compute_unit_price']);
|
|
119
|
+
}
|
|
120
|
+
// ensure the json data is a string
|
|
121
|
+
if (data['compute_unit_limit'] && !(typeof data['compute_unit_limit'] === 'string' || data['compute_unit_limit'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `compute_unit_limit` to be a primitive type in the JSON string but got " + data['compute_unit_limit']);
|
|
123
|
+
}
|
|
124
|
+
// ensure the json data is a string
|
|
125
|
+
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
127
|
+
}
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
}]);
|
|
131
|
+
}();
|
|
132
|
+
TransactionRequestSOLFee.RequiredProperties = ["compute_unit_price", "compute_unit_limit", "fee_type", "token_id"];
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
|
|
136
|
+
* @member {String} compute_unit_price
|
|
137
|
+
*/
|
|
138
|
+
TransactionRequestSOLFee.prototype['compute_unit_price'] = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
|
|
142
|
+
* @member {String} compute_unit_limit
|
|
143
|
+
*/
|
|
144
|
+
TransactionRequestSOLFee.prototype['compute_unit_limit'] = undefined;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @member {module:model/FeeType} fee_type
|
|
148
|
+
*/
|
|
149
|
+
TransactionRequestSOLFee.prototype['fee_type'] = undefined;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The token used to pay the transaction fee.
|
|
153
|
+
* @member {String} token_id
|
|
154
|
+
*/
|
|
155
|
+
TransactionRequestSOLFee.prototype['token_id'] = undefined;
|
|
156
|
+
|
|
157
|
+
// Implement SOLComputeUnit interface:
|
|
158
|
+
/**
|
|
159
|
+
* The price paid per compute unit. This value determines the priority fee for the transaction, allowing you to increase inclusion probability in congested conditions.
|
|
160
|
+
* @member {String} compute_unit_price
|
|
161
|
+
*/
|
|
162
|
+
_SOLComputeUnit["default"].prototype['compute_unit_price'] = undefined;
|
|
163
|
+
/**
|
|
164
|
+
* The maximum number of compute units your transaction is allowed to consume. It sets an upper bound on computational resource usage to prevent overload.
|
|
165
|
+
* @member {String} compute_unit_limit
|
|
166
|
+
*/
|
|
167
|
+
_SOLComputeUnit["default"].prototype['compute_unit_limit'] = undefined;
|
|
168
|
+
var _default = exports["default"] = TransactionRequestSOLFee;
|
|
@@ -37,7 +37,7 @@ var TransactionRequestUtxoFee = /*#__PURE__*/function () {
|
|
|
37
37
|
* @alias module:model/TransactionRequestUtxoFee
|
|
38
38
|
* @implements module:model/UtxoFeeBasePrice
|
|
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 TransactionRequestUtxoFee(fee_type, token_id) {
|
|
43
43
|
_classCallCheck(this, TransactionRequestUtxoFee);
|
|
@@ -139,7 +139,7 @@ TransactionRequestUtxoFee.prototype['fee_rate'] = undefined;
|
|
|
139
139
|
TransactionRequestUtxoFee.prototype['fee_type'] = undefined;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* The token
|
|
142
|
+
* The token used to pay the transaction fee.
|
|
143
143
|
* @member {String} token_id
|
|
144
144
|
*/
|
|
145
145
|
TransactionRequestUtxoFee.prototype['token_id'] = undefined;
|