@cobo/cobo-waas2 1.22.0 → 1.24.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 +81 -17
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +200 -21
- package/dist/api/AutoSweepApi.js +26 -26
- package/dist/api/ComplianceApi.js +214 -0
- package/dist/api/FeeStationApi.js +47 -4
- package/dist/api/PaymentApi.js +204 -57
- package/dist/api/SwapsApi.js +374 -0
- package/dist/api/TokenizationApi.js +2 -2
- package/dist/api/TransactionsApi.js +18 -18
- package/dist/api/WalletsApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +2 -2
- package/dist/index.js +329 -21
- package/dist/model/AddressBook.js +12 -12
- package/dist/model/AddressInfo.js +13 -0
- package/dist/model/AddressesEventData.js +8 -3
- package/dist/model/AddressesEventDataAllOfAddresses.js +18 -0
- package/dist/model/ApprovalDetail.js +4 -4
- package/dist/model/ApprovalResult.js +6 -11
- package/dist/model/ApprovalTemplate.js +4 -4
- package/dist/model/ApprovalTransactionResult.js +8 -8
- package/dist/model/ApprovalUserDetail.js +95 -24
- package/dist/model/AutoSweepTask.js +9 -9
- package/dist/model/BalanceUpdateInfoEventData.js +8 -3
- package/dist/model/BridgingFee.js +136 -0
- package/dist/model/ChainInfo.js +14 -1
- package/dist/model/ChainsEventData.js +8 -3
- package/dist/model/CommissionFee.js +110 -0
- package/dist/model/ComplianceDispositionUpdateEventData.js +321 -0
- package/dist/model/ContractCallDestination.js +48 -8
- package/dist/model/ContractCallDestinationType.js +5 -0
- package/dist/model/CreateAddressBookParam.js +165 -0
- package/dist/model/CreateAddressBooks201Response.js +107 -0
- package/dist/model/CreateAddressBooksParam.js +128 -0
- package/dist/model/CreateAutoSweepTask.js +5 -5
- package/dist/model/CreateCustodialWalletParams.js +1 -1
- package/dist/model/CreateExchangeWalletParams.js +2 -2
- package/dist/model/CreateMerchantRequest.js +14 -7
- package/dist/model/CreateMpcWalletParams.js +2 -2
- package/dist/model/CreatePaymentOrderRequest.js +17 -4
- package/dist/model/CreateRefundRequest.js +2 -2
- package/dist/model/CreateSafeWalletParams.js +1 -1
- package/dist/model/CreateSettlement.js +3 -3
- package/dist/model/CreateSettlementRequestRequest.js +39 -0
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateSwapActivityRequest.js +193 -0
- package/dist/model/CreateSweepToAddress.js +1 -1
- package/dist/model/CreateWalletParams.js +1 -1
- package/dist/model/CustodialTransferDestination.js +1 -1
- package/dist/model/DeleteAddressBookById201Response.js +106 -0
- package/dist/model/DispositionEventData.js +170 -0
- package/dist/model/DispositionQueryResponse.js +146 -0
- package/dist/model/DispositionResponse.js +122 -0
- package/dist/model/DispositionStatus.js +116 -0
- package/dist/model/DispositionType.js +66 -0
- package/dist/model/EstimateContractCallFeeParams.js +1 -1
- package/dist/model/EstimateFeeParams.js +1 -1
- package/dist/model/EstimateTransferFeeParams.js +1 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
- package/dist/model/EstimatedEvmLegacyFee.js +1 -1
- package/dist/model/EstimatedFILFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/EstimatedSOLFee.js +1 -1
- package/dist/model/EstimatedUtxoFee.js +1 -1
- package/dist/model/FeeStationCheckFeeStationUsage.js +186 -0
- package/dist/model/FeeStationCheckFeeStationUsageResponse.js +200 -0
- package/dist/model/FeeStationGasStationType.js +61 -0
- package/dist/model/IsolateDisposition.js +167 -0
- package/dist/model/ListSwapActivities200Response.js +123 -0
- package/dist/model/ListSwapEnabledTokens200Response.js +123 -0
- package/dist/model/ListTopUpPayerAccounts200Response.js +123 -0
- package/dist/model/MPCVaultEventData.js +8 -3
- package/dist/model/Merchant.js +10 -1
- package/dist/model/MerchantBalance.js +7 -7
- package/dist/model/MessageSignDestination.js +8 -70
- package/dist/model/OrgInfo.js +9 -0
- package/dist/model/OtcFee.js +123 -0
- package/dist/model/PaymentAddressUpdateEventData.js +8 -3
- package/dist/model/PaymentEstimateFee.js +125 -0
- package/dist/model/PaymentEstimateFee201Response.js +107 -0
- package/dist/model/{RawMessageSignDestination.js → PaymentEstimateFeeRequest.js} +51 -37
- package/dist/model/PaymentEstimatedFee.js +173 -0
- package/dist/model/PaymentFeeType.js +71 -0
- package/dist/model/PaymentOrderEventData.js +8 -3
- package/dist/model/PaymentRefundEventData.js +30 -5
- package/dist/model/PaymentSettlementEvent.js +70 -9
- package/dist/model/PaymentTransactionEventData.js +8 -3
- package/dist/model/PaymentWalletBalance.js +6 -6
- package/dist/model/PspBalance.js +7 -7
- package/dist/model/ReceivedAmountPerAddress.js +5 -5
- package/dist/model/Refund.js +17 -1
- package/dist/model/RefundDisposition.js +167 -0
- package/dist/model/RoleDetail.js +41 -6
- package/dist/model/SettleRequestStatus.js +5 -0
- package/dist/model/Settlement.js +45 -3
- package/dist/model/SettlementDetail.js +33 -1
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SolContractCallAddressLookupTableAccount.js +126 -0
- package/dist/model/SolContractCallDestination.js +30 -0
- package/dist/model/StellarContractCallContractParam.js +164 -0
- package/dist/model/StellarContractCallContractType.js +56 -0
- package/dist/model/StellarContractCallDestination.js +125 -0
- package/dist/model/StellarContractCallTrustLineOperationType.js +56 -0
- package/dist/model/StellarContractCallTrustLineParam.js +133 -0
- package/dist/model/SupportedToken.js +9 -0
- package/dist/model/SuspendedTokenEventData.js +8 -3
- package/dist/model/SwapActivity.js +9 -9
- package/dist/model/SwapActivityApprovers.js +1 -1
- package/dist/model/SwapActivityDetail.js +34 -18
- package/dist/model/SwapActivitySigners.js +2 -2
- package/dist/model/SwapActivityTimeline.js +5 -5
- package/dist/model/SwapEstimateFee.js +147 -0
- package/dist/model/SwapQuote.js +18 -31
- package/dist/model/SwapReceivingTransaction.js +133 -0
- package/dist/model/SwapToken.js +9 -9
- package/dist/model/SweepToAddress.js +1 -1
- package/dist/model/TSSRequestWebhookEventData.js +8 -3
- package/dist/model/TokenListingEventData.js +8 -3
- package/dist/model/TokensEventData.js +8 -3
- package/dist/model/TransactionCoboCategory.js +5 -0
- package/dist/model/TransactionDestination.js +48 -8
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionEvmLegacyFee.js +1 -1
- package/dist/model/TransactionFILFee.js +1 -1
- package/dist/model/TransactionFixedFee.js +1 -1
- package/dist/model/TransactionFuelingInfo.js +13 -0
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -1
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -1
- package/dist/model/TransactionRequestFILFee.js +1 -1
- package/dist/model/TransactionRequestSOLFee.js +1 -1
- package/dist/model/TransactionRequestUtxoFee.js +1 -1
- package/dist/model/TransactionSOLFee.js +1 -1
- package/dist/model/TransactionSolContractAddressLookupTableAccount.js +126 -0
- package/dist/model/TransactionSolContractDestination.js +30 -0
- package/dist/model/TransactionStellarContractParam.js +164 -0
- package/dist/model/TransactionStellarContractType.js +56 -0
- package/dist/model/{BTCEIP191MessageSignDestination.js → TransactionStellarDestination.js} +38 -35
- package/dist/model/TransactionStellarTrustLineOperationType.js +56 -0
- package/dist/model/TransactionStellarTrustLineParam.js +133 -0
- package/dist/model/TransactionUtxoFee.js +1 -1
- package/dist/model/TransactionWebhookEventData.js +8 -3
- package/dist/model/UnfreezeDisposition.js +111 -0
- package/dist/model/UpdateAddressBookParam.js +150 -0
- package/dist/model/UpdateBankAccountByIdRequest.js +108 -0
- package/dist/model/UpdateMerchantByIdRequest.js +1 -1
- package/dist/model/UpdateTopUpAddress.js +4 -6
- package/dist/model/WalletInfoEventData.js +8 -3
- package/dist/model/WalletSetup.js +66 -0
- package/dist/model/WebhookEventData.js +81 -11
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventType.js +5 -0
- package/docs/AddressBook.md +7 -7
- package/docs/AddressBooksApi.md +218 -8
- package/docs/AddressInfo.md +1 -0
- package/docs/AddressesEventData.md +3 -1
- package/docs/AddressesEventDataAllOfAddresses.md +1 -0
- package/docs/ApprovalDetail.md +3 -3
- package/docs/ApprovalResult.md +3 -5
- package/docs/ApprovalTemplate.md +3 -3
- package/docs/ApprovalTransactionResult.md +4 -4
- package/docs/ApprovalUserDetail.md +15 -9
- package/docs/AutoSweepApi.md +18 -18
- package/docs/AutoSweepTask.md +5 -5
- package/docs/BalanceUpdateInfoEventData.md +3 -1
- package/docs/BridgingFee.md +11 -0
- package/docs/ChainInfo.md +2 -1
- package/docs/ChainsEventData.md +3 -1
- package/docs/CommissionFee.md +9 -0
- package/docs/ComplianceApi.md +218 -0
- package/docs/ComplianceDispositionUpdateEventData.md +56 -0
- package/docs/ContractCallDestination.md +2 -0
- package/docs/ContractCallDestinationType.md +2 -0
- package/docs/CreateAddressBookParam.md +13 -0
- package/docs/CreateAddressBooks201Response.md +9 -0
- package/docs/CreateAddressBooksParam.md +9 -0
- package/docs/CreateAutoSweepTask.md +2 -2
- package/docs/CreateCustodialWalletParams.md +1 -1
- package/docs/CreateExchangeWalletParams.md +1 -1
- package/docs/CreateMerchantRequest.md +3 -2
- package/docs/CreateMpcWalletParams.md +1 -1
- package/docs/CreatePaymentOrderRequest.md +4 -3
- package/docs/CreateRefundRequest.md +1 -1
- package/docs/CreateSafeWalletParams.md +1 -1
- package/docs/CreateSettlement.md +3 -3
- package/docs/CreateSettlementRequestRequest.md +3 -0
- package/docs/CreateSmartContractWalletParams.md +1 -1
- package/docs/CreateSwapActivityRequest.md +15 -0
- package/docs/CreateWalletParams.md +1 -1
- package/docs/DeleteAddressBookById201Response.md +9 -0
- package/docs/DispositionEventData.md +14 -0
- package/docs/DispositionQueryResponse.md +12 -0
- package/docs/DispositionResponse.md +10 -0
- package/docs/DispositionStatus.md +34 -0
- package/docs/DispositionType.md +14 -0
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/FeeStationApi.md +53 -0
- package/docs/FeeStationCheckFeeStationUsage.md +14 -0
- package/docs/FeeStationCheckFeeStationUsageResponse.md +16 -0
- package/docs/FeeStationGasStationType.md +12 -0
- package/docs/IsolateDisposition.md +13 -0
- package/docs/ListSwapActivities200Response.md +10 -0
- package/docs/ListSwapEnabledTokens200Response.md +10 -0
- package/docs/ListTopUpPayerAccounts200Response.md +10 -0
- package/docs/MPCVaultEventData.md +3 -1
- package/docs/Merchant.md +2 -1
- package/docs/MerchantBalance.md +6 -6
- package/docs/MessageSignDestination.md +0 -1
- package/docs/OrgInfo.md +1 -0
- package/docs/OtcFee.md +10 -0
- package/docs/PaymentAddressUpdateEventData.md +3 -1
- package/docs/PaymentApi.md +203 -28
- package/docs/PaymentEstimateFee.md +10 -0
- package/docs/PaymentEstimateFee201Response.md +9 -0
- package/docs/PaymentEstimateFeeRequest.md +10 -0
- package/docs/PaymentEstimatedFee.md +13 -0
- package/docs/PaymentFeeType.md +16 -0
- package/docs/PaymentOrderEventData.md +3 -1
- package/docs/PaymentRefundEventData.md +5 -2
- package/docs/PaymentSettlementEvent.md +9 -4
- package/docs/PaymentTransactionEventData.md +3 -1
- package/docs/PaymentWalletBalance.md +5 -5
- package/docs/PspBalance.md +6 -6
- package/docs/ReceivedAmountPerAddress.md +2 -2
- package/docs/Refund.md +2 -1
- package/docs/RefundDisposition.md +13 -0
- package/docs/RoleDetail.md +4 -1
- package/docs/SettleRequestStatus.md +2 -0
- package/docs/Settlement.md +6 -3
- package/docs/SettlementDetail.md +3 -1
- package/docs/SettlementInfo.md +6 -6
- package/docs/SolContractCallAddressLookupTableAccount.md +10 -0
- package/docs/SolContractCallDestination.md +1 -0
- package/docs/StellarContractCallContractParam.md +11 -0
- package/docs/StellarContractCallContractType.md +10 -0
- package/docs/StellarContractCallDestination.md +10 -0
- package/docs/StellarContractCallTrustLineOperationType.md +10 -0
- package/docs/StellarContractCallTrustLineParam.md +11 -0
- package/docs/SupportedToken.md +1 -0
- package/docs/SuspendedTokenEventData.md +3 -1
- package/docs/SwapActivity.md +9 -9
- package/docs/SwapActivityDetail.md +10 -9
- package/docs/SwapActivitySigners.md +1 -1
- package/docs/SwapActivityTimeline.md +3 -3
- package/docs/SwapEstimateFee.md +12 -0
- package/docs/SwapQuote.md +10 -11
- package/docs/SwapReceivingTransaction.md +11 -0
- package/docs/SwapToken.md +6 -6
- package/docs/SwapsApi.md +356 -0
- package/docs/TSSRequestWebhookEventData.md +3 -1
- package/docs/TokenListingEventData.md +3 -1
- package/docs/TokenizationApi.md +2 -2
- package/docs/TokensEventData.md +3 -1
- package/docs/TransactionCoboCategory.md +2 -0
- package/docs/TransactionDestination.md +2 -0
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionFuelingInfo.md +1 -0
- package/docs/TransactionSolContractAddressLookupTableAccount.md +10 -0
- package/docs/TransactionSolContractDestination.md +1 -0
- package/docs/TransactionStellarContractParam.md +11 -0
- package/docs/TransactionStellarContractType.md +10 -0
- package/docs/TransactionStellarDestination.md +10 -0
- package/docs/TransactionStellarTrustLineOperationType.md +10 -0
- package/docs/TransactionStellarTrustLineParam.md +11 -0
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +11 -11
- package/docs/UnfreezeDisposition.md +9 -0
- package/docs/UpdateAddressBookParam.md +12 -0
- package/docs/UpdateBankAccountByIdRequest.md +9 -0
- package/docs/UpdateMerchantByIdRequest.md +1 -1
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/WalletInfoEventData.md +3 -1
- package/docs/WalletSetup.md +14 -0
- package/docs/WalletsApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +1 -1
- package/docs/WebhookEventData.md +12 -3
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +2 -0
- package/package.json +1 -1
- package/dist/model/ApprovalShowInfo.js +0 -140
- package/docs/ApprovalShowInfo.md +0 -13
- package/docs/BTCEIP191MessageSignDestination.md +0 -10
- package/docs/RawMessageSignDestination.md +0 -10
|
@@ -37,7 +37,7 @@ var TokensEventData = /*#__PURE__*/function () {
|
|
|
37
37
|
* Constructs a new <code>TokensEventData</code>.
|
|
38
38
|
* @alias module:model/TokensEventData
|
|
39
39
|
* @implements module:model/WebhookEventDataType
|
|
40
|
-
* @param data_type {module:model/TokensEventData.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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
40
|
+
* @param data_type {module:model/TokensEventData.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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
41
41
|
* @param tokens {Array.<module:model/TokenInfo>} The enabled tokens.
|
|
42
42
|
*/
|
|
43
43
|
function TokensEventData(data_type, tokens) {
|
|
@@ -146,7 +146,7 @@ var TokensEventData = /*#__PURE__*/function () {
|
|
|
146
146
|
TokensEventData.RequiredProperties = ["data_type", "tokens"];
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
149
|
+
* 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
150
150
|
* @member {module:model/TokensEventData.DataTypeEnum} data_type
|
|
151
151
|
*/
|
|
152
152
|
TokensEventData.prototype['data_type'] = undefined;
|
|
@@ -169,7 +169,7 @@ TokensEventData.prototype['wallet_subtypes'] = undefined;
|
|
|
169
169
|
|
|
170
170
|
// Implement WebhookEventDataType interface:
|
|
171
171
|
/**
|
|
172
|
-
* 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data.
|
|
172
|
+
* 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. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data.
|
|
173
173
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
174
174
|
*/
|
|
175
175
|
_WebhookEventDataType["default"].prototype['data_type'] = undefined;
|
|
@@ -255,6 +255,11 @@ TokensEventData['DataTypeEnum'] = {
|
|
|
255
255
|
* @const
|
|
256
256
|
*/
|
|
257
257
|
"SuspendedToken": "SuspendedToken",
|
|
258
|
+
/**
|
|
259
|
+
* value: "ComplianceDisposition"
|
|
260
|
+
* @const
|
|
261
|
+
*/
|
|
262
|
+
"ComplianceDisposition": "ComplianceDisposition",
|
|
258
263
|
/**
|
|
259
264
|
* value: "unknown_default_open_api"
|
|
260
265
|
* @const
|
|
@@ -185,6 +185,11 @@ var TransactionCoboCategory = exports["default"] = /*#__PURE__*/function () {
|
|
|
185
185
|
* @const
|
|
186
186
|
*/
|
|
187
187
|
_defineProperty(this, "ComplianceIsolate", "ComplianceIsolate");
|
|
188
|
+
/**
|
|
189
|
+
* value: "StellarChangeTrust"
|
|
190
|
+
* @const
|
|
191
|
+
*/
|
|
192
|
+
_defineProperty(this, "StellarChangeTrust", "StellarChangeTrust");
|
|
188
193
|
/**
|
|
189
194
|
* value: "unknown_default_open_api"
|
|
190
195
|
* @const
|
|
@@ -21,8 +21,11 @@ var _TransactionEvmContractDestination = _interopRequireDefault(require("./Trans
|
|
|
21
21
|
var _TransactionMessageSignEIP191Destination = _interopRequireDefault(require("./TransactionMessageSignEIP191Destination"));
|
|
22
22
|
var _TransactionMessageSignEIP712Destination = _interopRequireDefault(require("./TransactionMessageSignEIP712Destination"));
|
|
23
23
|
var _TransactionRawMessageSignDestination = _interopRequireDefault(require("./TransactionRawMessageSignDestination"));
|
|
24
|
+
var _TransactionSolContractAddressLookupTableAccount = _interopRequireDefault(require("./TransactionSolContractAddressLookupTableAccount"));
|
|
24
25
|
var _TransactionSolContractDestination = _interopRequireDefault(require("./TransactionSolContractDestination"));
|
|
25
26
|
var _TransactionSolContractInstruction = _interopRequireDefault(require("./TransactionSolContractInstruction"));
|
|
27
|
+
var _TransactionStellarContractParam = _interopRequireDefault(require("./TransactionStellarContractParam"));
|
|
28
|
+
var _TransactionStellarDestination = _interopRequireDefault(require("./TransactionStellarDestination"));
|
|
26
29
|
var _TransactionTransferToAddressDestination = _interopRequireDefault(require("./TransactionTransferToAddressDestination"));
|
|
27
30
|
var _TransactionTransferToAddressDestinationAccountOutput = _interopRequireDefault(require("./TransactionTransferToAddressDestinationAccountOutput"));
|
|
28
31
|
var _TransactionTransferToAddressDestinationUtxoOutputsInner = _interopRequireDefault(require("./TransactionTransferToAddressDestinationUtxoOutputsInner"));
|
|
@@ -55,7 +58,7 @@ var TransactionDestination = /*#__PURE__*/function () {
|
|
|
55
58
|
/**
|
|
56
59
|
* Constructs a new <code>TransactionDestination</code>.
|
|
57
60
|
* @alias module:model/TransactionDestination
|
|
58
|
-
* @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} instance The actual instance to initialize TransactionDestination.
|
|
61
|
+
* @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} instance The actual instance to initialize TransactionDestination.
|
|
59
62
|
*/
|
|
60
63
|
function TransactionDestination() {
|
|
61
64
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -132,6 +135,10 @@ var TransactionDestination = /*#__PURE__*/function () {
|
|
|
132
135
|
this.actualInstance = _TransactionSolContractDestination["default"].constructFromObject(instance);
|
|
133
136
|
match++;
|
|
134
137
|
break;
|
|
138
|
+
case "STELLAR_Contract":
|
|
139
|
+
this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
|
|
140
|
+
match++;
|
|
141
|
+
break;
|
|
135
142
|
default:
|
|
136
143
|
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
137
144
|
break;
|
|
@@ -437,13 +444,36 @@ var TransactionDestination = /*#__PURE__*/function () {
|
|
|
437
444
|
// json data failed to deserialize into TransactionCosmosAdr36Destination
|
|
438
445
|
errorMessages.push("Failed to construct TransactionCosmosAdr36Destination: " + err);
|
|
439
446
|
}
|
|
447
|
+
try {
|
|
448
|
+
if (instance instanceof _TransactionStellarDestination["default"]) {
|
|
449
|
+
this.actualInstance = instance;
|
|
450
|
+
} else if (!!_TransactionStellarDestination["default"].validateJSON && _TransactionStellarDestination["default"].validateJSON(instance)) {
|
|
451
|
+
// plain JS object
|
|
452
|
+
// create TransactionStellarDestination from JS object
|
|
453
|
+
this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
|
|
454
|
+
} else {
|
|
455
|
+
if (_TransactionStellarDestination["default"].constructFromObject(instance)) {
|
|
456
|
+
if (!!_TransactionStellarDestination["default"].constructFromObject(instance).toJSON) {
|
|
457
|
+
if (_TransactionStellarDestination["default"].constructFromObject(instance).toJSON()) {
|
|
458
|
+
this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
|
|
459
|
+
}
|
|
460
|
+
} else {
|
|
461
|
+
this.actualInstance = _TransactionStellarDestination["default"].constructFromObject(instance);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
match++;
|
|
466
|
+
} catch (err) {
|
|
467
|
+
// json data failed to deserialize into TransactionStellarDestination
|
|
468
|
+
errorMessages.push("Failed to construct TransactionStellarDestination: " + err);
|
|
469
|
+
}
|
|
440
470
|
|
|
441
471
|
// if (match > 1) {
|
|
442
|
-
// throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Input: " + JSON.stringify(instance));
|
|
472
|
+
// throw new Error("Multiple matches found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Input: " + JSON.stringify(instance));
|
|
443
473
|
// } else
|
|
444
474
|
if (match === 0) {
|
|
445
475
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
446
|
-
// throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Details: " +
|
|
476
|
+
// throw new Error("No match found constructing `TransactionDestination` with oneOf schemas TransactionBIP137Destination, TransactionBIP322Destination, TransactionCosmosAdr36Destination, TransactionCosmosContractDestination, TransactionDepositToAddressDestination, TransactionDepositToWalletDestination, TransactionEvmContractDestination, TransactionMessageSignEIP191Destination, TransactionMessageSignEIP712Destination, TransactionRawMessageSignDestination, TransactionSolContractDestination, TransactionStellarDestination, TransactionTransferToAddressDestination, TransactionTransferToWalletDestination. Details: " +
|
|
447
477
|
// errorMessages.join(", "));
|
|
448
478
|
return;
|
|
449
479
|
} else {// only 1 match
|
|
@@ -462,16 +492,16 @@ var TransactionDestination = /*#__PURE__*/function () {
|
|
|
462
492
|
key: "getActualInstance",
|
|
463
493
|
value:
|
|
464
494
|
/**
|
|
465
|
-
* Gets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
|
|
466
|
-
* @return {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} The actual instance.
|
|
495
|
+
* Gets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
|
|
496
|
+
* @return {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} The actual instance.
|
|
467
497
|
*/
|
|
468
498
|
function getActualInstance() {
|
|
469
499
|
return this.actualInstance;
|
|
470
500
|
}
|
|
471
501
|
|
|
472
502
|
/**
|
|
473
|
-
* Sets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
|
|
474
|
-
* @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} obj The actual instance.
|
|
503
|
+
* Sets the actual instance, which can be <code>TransactionBIP137Destination</code>, <code>TransactionBIP322Destination</code>, <code>TransactionCosmosAdr36Destination</code>, <code>TransactionCosmosContractDestination</code>, <code>TransactionDepositToAddressDestination</code>, <code>TransactionDepositToWalletDestination</code>, <code>TransactionEvmContractDestination</code>, <code>TransactionMessageSignEIP191Destination</code>, <code>TransactionMessageSignEIP712Destination</code>, <code>TransactionRawMessageSignDestination</code>, <code>TransactionSolContractDestination</code>, <code>TransactionStellarDestination</code>, <code>TransactionTransferToAddressDestination</code>, <code>TransactionTransferToWalletDestination</code>.
|
|
504
|
+
* @param {(module:model/TransactionBIP137Destination|module:model/TransactionBIP322Destination|module:model/TransactionCosmosAdr36Destination|module:model/TransactionCosmosContractDestination|module:model/TransactionDepositToAddressDestination|module:model/TransactionDepositToWalletDestination|module:model/TransactionEvmContractDestination|module:model/TransactionMessageSignEIP191Destination|module:model/TransactionMessageSignEIP712Destination|module:model/TransactionRawMessageSignDestination|module:model/TransactionSolContractDestination|module:model/TransactionStellarDestination|module:model/TransactionTransferToAddressDestination|module:model/TransactionTransferToWalletDestination)} obj The actual instance.
|
|
475
505
|
*/
|
|
476
506
|
}, {
|
|
477
507
|
key: "setActualInstance",
|
|
@@ -578,6 +608,11 @@ TransactionDestination.prototype['calldata_info'] = undefined;
|
|
|
578
608
|
*/
|
|
579
609
|
TransactionDestination.prototype['instructions'] = undefined;
|
|
580
610
|
|
|
611
|
+
/**
|
|
612
|
+
* @member {Array.<module:model/TransactionSolContractAddressLookupTableAccount>} address_lookup_table_accounts
|
|
613
|
+
*/
|
|
614
|
+
TransactionDestination.prototype['address_lookup_table_accounts'] = undefined;
|
|
615
|
+
|
|
581
616
|
/**
|
|
582
617
|
* @member {Array.<module:model/TransactionCosmosMessage>} cosmos_messages
|
|
583
618
|
*/
|
|
@@ -650,5 +685,10 @@ TransactionDestination.prototype['message_bip322'] = undefined;
|
|
|
650
685
|
* @member {String} message_cosmos_adr36
|
|
651
686
|
*/
|
|
652
687
|
TransactionDestination.prototype['message_cosmos_adr36'] = undefined;
|
|
653
|
-
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* @member {module:model/TransactionStellarContractParam} contract_param
|
|
691
|
+
*/
|
|
692
|
+
TransactionDestination.prototype['contract_param'] = undefined;
|
|
693
|
+
TransactionDestination.OneOf = ["TransactionBIP137Destination", "TransactionBIP322Destination", "TransactionCosmosAdr36Destination", "TransactionCosmosContractDestination", "TransactionDepositToAddressDestination", "TransactionDepositToWalletDestination", "TransactionEvmContractDestination", "TransactionMessageSignEIP191Destination", "TransactionMessageSignEIP712Destination", "TransactionRawMessageSignDestination", "TransactionSolContractDestination", "TransactionStellarDestination", "TransactionTransferToAddressDestination", "TransactionTransferToWalletDestination"];
|
|
654
694
|
var _default = exports["default"] = TransactionDestination;
|
|
@@ -55,6 +55,11 @@ var TransactionDestinationType = exports["default"] = /*#__PURE__*/function () {
|
|
|
55
55
|
* @const
|
|
56
56
|
*/
|
|
57
57
|
_defineProperty(this, "SOL_Contract", "SOL_Contract");
|
|
58
|
+
/**
|
|
59
|
+
* value: "STELLAR_Contract"
|
|
60
|
+
* @const
|
|
61
|
+
*/
|
|
62
|
+
_defineProperty(this, "STELLAR_Contract", "STELLAR_Contract");
|
|
58
63
|
/**
|
|
59
64
|
* value: "COSMOS_Contract"
|
|
60
65
|
* @const
|
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
var TransactionEvmEip1559Fee = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TransactionEvmEip1559Fee</code>.
|
|
37
|
-
* The transaction fee actually charged by the chain that uses the EIP-1559 fee model.
|
|
37
|
+
* The transaction fee actually charged by the chain that uses the EIP-1559 fee model. For more information about the EIP-1559 fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). Switch between the tabs to display the properties for different transaction fee models.
|
|
38
38
|
* @alias module:model/TransactionEvmEip1559Fee
|
|
39
39
|
* @implements module:model/EvmEip1559FeeBasePrice
|
|
40
40
|
* @implements module:model/FeeGasLimit
|
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
var TransactionEvmLegacyFee = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TransactionEvmLegacyFee</code>.
|
|
37
|
-
* The transaction fee actually charged by the chain that uses the legacy fee model.
|
|
37
|
+
* The transaction fee actually charged by the chain that uses the legacy fee model. For more information about the Legacy fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). Switch between the tabs to display the properties for different transaction fee models.
|
|
38
38
|
* @alias module:model/TransactionEvmLegacyFee
|
|
39
39
|
* @implements module:model/EvmLegacyFeeBasePrice
|
|
40
40
|
* @implements module:model/FeeGasLimit
|
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
var TransactionFILFee = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TransactionFILFee</code>.
|
|
37
|
-
* The transaction fee actually charged by the chain that uses the Filecoin fee model.
|
|
37
|
+
* The transaction fee actually charged by the chain that uses the Filecoin fee model. For more details about the Filecoin fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). Switch between the tabs to display the properties for different transaction fee models.
|
|
38
38
|
* @alias module:model/TransactionFILFee
|
|
39
39
|
* @implements module:model/FILBase
|
|
40
40
|
* @implements module:model/FILPrice
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionFixedFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionFixedFee</code>.
|
|
36
|
-
* The transaction fee actually charged by the chain that uses the fixed fee model. Switch between the tabs to display the properties for different transaction fee models.
|
|
36
|
+
* The transaction fee actually charged by the chain that uses the fixed fee model. For more information about the fixed fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). Switch between the tabs to display the properties for different transaction fee models.
|
|
37
37
|
* @alias module:model/TransactionFixedFee
|
|
38
38
|
* @implements module:model/MaxFeeAmount
|
|
39
39
|
* @param fee_type {module:model/FeeType}
|
|
@@ -63,6 +63,9 @@ var TransactionFuelingInfo = /*#__PURE__*/function () {
|
|
|
63
63
|
if (data.hasOwnProperty('transaction_id')) {
|
|
64
64
|
obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String');
|
|
65
65
|
}
|
|
66
|
+
if (data.hasOwnProperty('main_transaction_id')) {
|
|
67
|
+
obj['main_transaction_id'] = _ApiClient["default"].convertToType(data['main_transaction_id'], 'String');
|
|
68
|
+
}
|
|
66
69
|
}
|
|
67
70
|
return obj;
|
|
68
71
|
}
|
|
@@ -83,6 +86,10 @@ var TransactionFuelingInfo = /*#__PURE__*/function () {
|
|
|
83
86
|
if (data['transaction_id'] && !(typeof data['transaction_id'] === 'string' || data['transaction_id'] instanceof String)) {
|
|
84
87
|
throw new Error("Expected the field `transaction_id` to be a primitive type in the JSON string but got " + data['transaction_id']);
|
|
85
88
|
}
|
|
89
|
+
// ensure the json data is a string
|
|
90
|
+
if (data['main_transaction_id'] && !(typeof data['main_transaction_id'] === 'string' || data['main_transaction_id'] instanceof String)) {
|
|
91
|
+
throw new Error("Expected the field `main_transaction_id` to be a primitive type in the JSON string but got " + data['main_transaction_id']);
|
|
92
|
+
}
|
|
86
93
|
return true;
|
|
87
94
|
}
|
|
88
95
|
}]);
|
|
@@ -98,4 +105,10 @@ TransactionFuelingInfo.prototype['request_id'] = undefined;
|
|
|
98
105
|
* @member {String} transaction_id
|
|
99
106
|
*/
|
|
100
107
|
TransactionFuelingInfo.prototype['transaction_id'] = undefined;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The UUID of the parent (main) transaction that this record is associated with. Set only when the current record is a gas/fee transaction initiated by Fee Station; omit for main transactions.
|
|
111
|
+
* @member {String} main_transaction_id
|
|
112
|
+
*/
|
|
113
|
+
TransactionFuelingInfo.prototype['main_transaction_id'] = undefined;
|
|
101
114
|
var _default = exports["default"] = TransactionFuelingInfo;
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionRequestEvmEip1559Fee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionRequestEvmEip1559Fee</code>.
|
|
36
|
-
* The preset properties to limit transaction fee.
|
|
36
|
+
* The preset properties to limit transaction fee. For more information about the EIP-1559 fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum gas fee per gas unit, maximum priority fee per gas unit, and the gas limit to limit the gas price, priority fee per gas unit, gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
|
|
37
37
|
* @alias module:model/TransactionRequestEvmEip1559Fee
|
|
38
38
|
* @implements module:model/EvmEip1559FeeBasePrice
|
|
39
39
|
* @param max_fee_per_gas {String} The maximum gas fee per gas unit used on the chain, in wei.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionRequestEvmLegacyFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionRequestEvmLegacyFee</code>.
|
|
36
|
-
* The preset properties to limit transaction fee.
|
|
36
|
+
* The preset properties to limit transaction fee. For more information about the Legacy fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the gas limit to limit the gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
|
|
37
37
|
* @alias module:model/TransactionRequestEvmLegacyFee
|
|
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.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionRequestFILFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionRequestFILFee</code>.
|
|
36
|
-
* The preset properties to limit transaction fee.
|
|
36
|
+
* The preset properties to limit transaction fee. For more information about the FIL fee model, see [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
37
|
* @alias module:model/TransactionRequestFILFee
|
|
38
38
|
* @implements module:model/FILPrice
|
|
39
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.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionRequestSOLFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionRequestSOLFee</code>.
|
|
36
|
-
* The preset properties to limit transaction fee.
|
|
36
|
+
* The preset properties to limit transaction fee. For more information about the SOL fee model, see [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
37
|
* @alias module:model/TransactionRequestSOLFee
|
|
38
38
|
* @implements module:model/SOLComputeUnit
|
|
39
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.
|
|
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TransactionRequestUtxoFee = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TransactionRequestUtxoFee</code>.
|
|
36
|
-
* The preset properties to limit transaction fee.
|
|
36
|
+
* The preset properties to limit transaction fee. For more information about the UTXO fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
|
|
37
37
|
* @alias module:model/TransactionRequestUtxoFee
|
|
38
38
|
* @implements module:model/UtxoFeeBasePrice
|
|
39
39
|
* @param fee_type {module:model/FeeType}
|
|
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
34
34
|
var TransactionSOLFee = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TransactionSOLFee</code>.
|
|
37
|
-
* The transaction fee actually charged by the chain that uses the Solana fee model.
|
|
37
|
+
* The transaction fee actually charged by the chain that uses the Solana fee model. For more details about the Solana fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). Switch between the tabs to display the properties for different transaction fee models.
|
|
38
38
|
* @alias module:model/TransactionSOLFee
|
|
39
39
|
* @implements module:model/SOLBase
|
|
40
40
|
* @implements module:model/SOLComputeUnit
|
|
@@ -0,0 +1,126 @@
|
|
|
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
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
|
+
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; } } }; }
|
|
11
|
+
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; } }
|
|
12
|
+
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; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
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); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
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); } /**
|
|
18
|
+
* Cobo Wallet as a Service 2.0
|
|
19
|
+
*
|
|
20
|
+
* Contact: help@cobo.com
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The TransactionSolContractAddressLookupTableAccount model module.
|
|
29
|
+
* @module model/TransactionSolContractAddressLookupTableAccount
|
|
30
|
+
*/
|
|
31
|
+
var TransactionSolContractAddressLookupTableAccount = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>TransactionSolContractAddressLookupTableAccount</code>.
|
|
34
|
+
* The information about a Solana Address Lookup Table account.
|
|
35
|
+
* @alias module:model/TransactionSolContractAddressLookupTableAccount
|
|
36
|
+
* @param alt_account_key {String} The on-chain public key of the Address Lookup Table (ALT) account, identifying the specific lookup table.
|
|
37
|
+
* @param addresses {Array.<String>} An array of stored account addresses within the lookup table, which can be referenced in transactions by index.
|
|
38
|
+
*/
|
|
39
|
+
function TransactionSolContractAddressLookupTableAccount(alt_account_key, addresses) {
|
|
40
|
+
_classCallCheck(this, TransactionSolContractAddressLookupTableAccount);
|
|
41
|
+
TransactionSolContractAddressLookupTableAccount.initialize(this, alt_account_key, addresses);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(TransactionSolContractAddressLookupTableAccount, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj, alt_account_key, addresses) {
|
|
52
|
+
obj['alt_account_key'] = alt_account_key;
|
|
53
|
+
obj['addresses'] = addresses;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a <code>TransactionSolContractAddressLookupTableAccount</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
+
* @param {module:model/TransactionSolContractAddressLookupTableAccount} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/TransactionSolContractAddressLookupTableAccount} The populated <code>TransactionSolContractAddressLookupTableAccount</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
}, {
|
|
64
|
+
key: "constructFromObject",
|
|
65
|
+
value: function constructFromObject(data, obj) {
|
|
66
|
+
if (data) {
|
|
67
|
+
obj = obj || new TransactionSolContractAddressLookupTableAccount();
|
|
68
|
+
if (data.hasOwnProperty('alt_account_key')) {
|
|
69
|
+
obj['alt_account_key'] = _ApiClient["default"].convertToType(data['alt_account_key'], 'String');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('addresses')) {
|
|
72
|
+
obj['addresses'] = _ApiClient["default"].convertToType(data['addresses'], ['String']);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Validates the JSON data with respect to <code>TransactionSolContractAddressLookupTableAccount</code>.
|
|
80
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TransactionSolContractAddressLookupTableAccount</code>.
|
|
82
|
+
*/
|
|
83
|
+
}, {
|
|
84
|
+
key: "validateJSON",
|
|
85
|
+
value: function validateJSON(data) {
|
|
86
|
+
// check to make sure all required properties are present in the JSON string
|
|
87
|
+
var _iterator = _createForOfIteratorHelper(TransactionSolContractAddressLookupTableAccount.RequiredProperties),
|
|
88
|
+
_step;
|
|
89
|
+
try {
|
|
90
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
91
|
+
var property = _step.value;
|
|
92
|
+
if (!data.hasOwnProperty(property)) {
|
|
93
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// ensure the json data is a string
|
|
97
|
+
} catch (err) {
|
|
98
|
+
_iterator.e(err);
|
|
99
|
+
} finally {
|
|
100
|
+
_iterator.f();
|
|
101
|
+
}
|
|
102
|
+
if (data['alt_account_key'] && !(typeof data['alt_account_key'] === 'string' || data['alt_account_key'] instanceof String)) {
|
|
103
|
+
throw new Error("Expected the field `alt_account_key` to be a primitive type in the JSON string but got " + data['alt_account_key']);
|
|
104
|
+
}
|
|
105
|
+
// ensure the json data is an array
|
|
106
|
+
if (!Array.isArray(data['addresses'])) {
|
|
107
|
+
throw new Error("Expected the field `addresses` to be an array in the JSON data but got " + data['addresses']);
|
|
108
|
+
}
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
}]);
|
|
112
|
+
}();
|
|
113
|
+
TransactionSolContractAddressLookupTableAccount.RequiredProperties = ["alt_account_key", "addresses"];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The on-chain public key of the Address Lookup Table (ALT) account, identifying the specific lookup table.
|
|
117
|
+
* @member {String} alt_account_key
|
|
118
|
+
*/
|
|
119
|
+
TransactionSolContractAddressLookupTableAccount.prototype['alt_account_key'] = undefined;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* An array of stored account addresses within the lookup table, which can be referenced in transactions by index.
|
|
123
|
+
* @member {Array.<String>} addresses
|
|
124
|
+
*/
|
|
125
|
+
TransactionSolContractAddressLookupTableAccount.prototype['addresses'] = undefined;
|
|
126
|
+
var _default = exports["default"] = TransactionSolContractAddressLookupTableAccount;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _TransactionDestinationType = _interopRequireDefault(require("./TransactionDestinationType"));
|
|
9
|
+
var _TransactionSolContractAddressLookupTableAccount = _interopRequireDefault(require("./TransactionSolContractAddressLookupTableAccount"));
|
|
9
10
|
var _TransactionSolContractInstruction = _interopRequireDefault(require("./TransactionSolContractInstruction"));
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
12
|
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); }
|
|
@@ -71,6 +72,9 @@ var TransactionSolContractDestination = /*#__PURE__*/function () {
|
|
|
71
72
|
if (data.hasOwnProperty('instructions')) {
|
|
72
73
|
obj['instructions'] = _ApiClient["default"].convertToType(data['instructions'], [_TransactionSolContractInstruction["default"]]);
|
|
73
74
|
}
|
|
75
|
+
if (data.hasOwnProperty('address_lookup_table_accounts')) {
|
|
76
|
+
obj['address_lookup_table_accounts'] = _ApiClient["default"].convertToType(data['address_lookup_table_accounts'], [_TransactionSolContractAddressLookupTableAccount["default"]]);
|
|
77
|
+
}
|
|
74
78
|
}
|
|
75
79
|
return obj;
|
|
76
80
|
}
|
|
@@ -119,6 +123,27 @@ var TransactionSolContractDestination = /*#__PURE__*/function () {
|
|
|
119
123
|
}
|
|
120
124
|
;
|
|
121
125
|
}
|
|
126
|
+
if (data['address_lookup_table_accounts']) {
|
|
127
|
+
// data not null
|
|
128
|
+
// ensure the json data is an array
|
|
129
|
+
if (!Array.isArray(data['address_lookup_table_accounts'])) {
|
|
130
|
+
throw new Error("Expected the field `address_lookup_table_accounts` to be an array in the JSON data but got " + data['address_lookup_table_accounts']);
|
|
131
|
+
}
|
|
132
|
+
// validate the optional field `address_lookup_table_accounts` (array)
|
|
133
|
+
var _iterator3 = _createForOfIteratorHelper(data['address_lookup_table_accounts']),
|
|
134
|
+
_step3;
|
|
135
|
+
try {
|
|
136
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
137
|
+
var _item = _step3.value;
|
|
138
|
+
_TransactionSolContractAddressLookupTableAccount["default"].validateJSON(_item);
|
|
139
|
+
}
|
|
140
|
+
} catch (err) {
|
|
141
|
+
_iterator3.e(err);
|
|
142
|
+
} finally {
|
|
143
|
+
_iterator3.f();
|
|
144
|
+
}
|
|
145
|
+
;
|
|
146
|
+
}
|
|
122
147
|
return true;
|
|
123
148
|
}
|
|
124
149
|
}]);
|
|
@@ -134,4 +159,9 @@ TransactionSolContractDestination.prototype['destination_type'] = undefined;
|
|
|
134
159
|
* @member {Array.<module:model/TransactionSolContractInstruction>} instructions
|
|
135
160
|
*/
|
|
136
161
|
TransactionSolContractDestination.prototype['instructions'] = undefined;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @member {Array.<module:model/TransactionSolContractAddressLookupTableAccount>} address_lookup_table_accounts
|
|
165
|
+
*/
|
|
166
|
+
TransactionSolContractDestination.prototype['address_lookup_table_accounts'] = undefined;
|
|
137
167
|
var _default = exports["default"] = TransactionSolContractDestination;
|