@dynamic-labs/sdk-api-core 0.0.920 → 0.0.921
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/package.json +1 -1
- package/src/apis/SDKApi.cjs +3 -0
- package/src/apis/SDKApi.d.ts +1 -1
- package/src/apis/SDKApi.js +3 -0
- package/src/index.cjs +4 -12
- package/src/index.js +1 -3
- package/src/models/CheckoutTransaction.cjs +3 -10
- package/src/models/CheckoutTransaction.d.ts +3 -22
- package/src/models/CheckoutTransaction.js +3 -10
- package/src/models/CheckoutTransactionQuote.cjs +51 -0
- package/src/models/CheckoutTransactionQuote.d.ts +77 -0
- package/src/models/CheckoutTransactionQuote.js +45 -0
- package/src/models/SwapSigningPayload.cjs +4 -6
- package/src/models/SwapSigningPayload.d.ts +7 -9
- package/src/models/SwapSigningPayload.js +4 -6
- package/src/models/index.d.ts +1 -3
- package/src/models/CheckoutQuoteSnapshot.cjs +0 -50
- package/src/models/CheckoutQuoteSnapshot.d.ts +0 -76
- package/src/models/CheckoutQuoteSnapshot.js +0 -44
- package/src/models/SwapPsbtTransactionData.cjs +0 -43
- package/src/models/SwapPsbtTransactionData.d.ts +0 -27
- package/src/models/SwapPsbtTransactionData.js +0 -37
- package/src/models/SwapSerializedTransactionData.cjs +0 -43
- package/src/models/SwapSerializedTransactionData.d.ts +0 -27
- package/src/models/SwapSerializedTransactionData.js +0 -37
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -4837,6 +4837,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4837
4837
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4838
4838
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheck.');
|
|
4839
4839
|
}
|
|
4840
|
+
if (requestParameters.filter === null || requestParameters.filter === undefined) {
|
|
4841
|
+
throw new runtime.RequiredError('filter', 'Required parameter requestParameters.filter was null or undefined when calling getUserFieldsCheck.');
|
|
4842
|
+
}
|
|
4840
4843
|
const queryParameters = {};
|
|
4841
4844
|
if (requestParameters.filter !== undefined) {
|
|
4842
4845
|
queryParameters['filter'] = requestParameters.filter;
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -535,7 +535,7 @@ export interface GetUserAccountsOptionsRequest {
|
|
|
535
535
|
}
|
|
536
536
|
export interface GetUserFieldsCheckRequest {
|
|
537
537
|
environmentId: string;
|
|
538
|
-
filter
|
|
538
|
+
filter: UserFieldsCheckParams;
|
|
539
539
|
}
|
|
540
540
|
export interface GetUserFieldsCheckOptionsRequest {
|
|
541
541
|
environmentId: string;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -4833,6 +4833,9 @@ class SDKApi extends BaseAPI {
|
|
|
4833
4833
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4834
4834
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheck.');
|
|
4835
4835
|
}
|
|
4836
|
+
if (requestParameters.filter === null || requestParameters.filter === undefined) {
|
|
4837
|
+
throw new RequiredError('filter', 'Required parameter requestParameters.filter was null or undefined when calling getUserFieldsCheck.');
|
|
4838
|
+
}
|
|
4836
4839
|
const queryParameters = {};
|
|
4837
4840
|
if (requestParameters.filter !== undefined) {
|
|
4838
4841
|
queryParameters['filter'] = requestParameters.filter;
|
package/src/index.cjs
CHANGED
|
@@ -47,7 +47,6 @@ var CheckoutFailure = require('./models/CheckoutFailure.cjs');
|
|
|
47
47
|
var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
|
|
48
48
|
var CheckoutGasEstimate = require('./models/CheckoutGasEstimate.cjs');
|
|
49
49
|
var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
|
|
50
|
-
var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
|
|
51
50
|
var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
|
|
52
51
|
var CheckoutSettlementData = require('./models/CheckoutSettlementData.cjs');
|
|
53
52
|
var CheckoutSettlementStateEnum = require('./models/CheckoutSettlementStateEnum.cjs');
|
|
@@ -56,6 +55,7 @@ var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
|
|
|
56
55
|
var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
|
|
57
56
|
var CheckoutTransactionCreateResponse = require('./models/CheckoutTransactionCreateResponse.cjs');
|
|
58
57
|
var CheckoutTransactionDestinationAddress = require('./models/CheckoutTransactionDestinationAddress.cjs');
|
|
58
|
+
var CheckoutTransactionQuote = require('./models/CheckoutTransactionQuote.cjs');
|
|
59
59
|
var CheckoutUpdateRequest = require('./models/CheckoutUpdateRequest.cjs');
|
|
60
60
|
var CheckoutsResponse = require('./models/CheckoutsResponse.cjs');
|
|
61
61
|
var CoinbaseMpcWalletProperties = require('./models/CoinbaseMpcWalletProperties.cjs');
|
|
@@ -372,12 +372,10 @@ var SwapEvmApprovalData = require('./models/SwapEvmApprovalData.cjs');
|
|
|
372
372
|
var SwapEvmTransactionData = require('./models/SwapEvmTransactionData.cjs');
|
|
373
373
|
var SwapFee = require('./models/SwapFee.cjs');
|
|
374
374
|
var SwapGasCost = require('./models/SwapGasCost.cjs');
|
|
375
|
-
var SwapPsbtTransactionData = require('./models/SwapPsbtTransactionData.cjs');
|
|
376
375
|
var SwapQuoteRequest = require('./models/SwapQuoteRequest.cjs');
|
|
377
376
|
var SwapQuoteRequestSide = require('./models/SwapQuoteRequestSide.cjs');
|
|
378
377
|
var SwapQuoteResponse = require('./models/SwapQuoteResponse.cjs');
|
|
379
378
|
var SwapQuoteResponseSide = require('./models/SwapQuoteResponseSide.cjs');
|
|
380
|
-
var SwapSerializedTransactionData = require('./models/SwapSerializedTransactionData.cjs');
|
|
381
379
|
var SwapSigningPayload = require('./models/SwapSigningPayload.cjs');
|
|
382
380
|
var SwapStatusRequest = require('./models/SwapStatusRequest.cjs');
|
|
383
381
|
var SwapStatusRequestChain = require('./models/SwapStatusRequestChain.cjs');
|
|
@@ -633,9 +631,6 @@ Object.defineProperty(exports, 'CheckoutModeEnum', {
|
|
|
633
631
|
exports.CheckoutModeEnumFromJSON = CheckoutModeEnum.CheckoutModeEnumFromJSON;
|
|
634
632
|
exports.CheckoutModeEnumFromJSONTyped = CheckoutModeEnum.CheckoutModeEnumFromJSONTyped;
|
|
635
633
|
exports.CheckoutModeEnumToJSON = CheckoutModeEnum.CheckoutModeEnumToJSON;
|
|
636
|
-
exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON;
|
|
637
|
-
exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSONTyped;
|
|
638
|
-
exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON;
|
|
639
634
|
Object.defineProperty(exports, 'CheckoutRiskStateEnum', {
|
|
640
635
|
enumerable: true,
|
|
641
636
|
get: function () { return CheckoutRiskStateEnum.CheckoutRiskStateEnum; }
|
|
@@ -672,6 +667,9 @@ exports.CheckoutTransactionCreateResponseToJSON = CheckoutTransactionCreateRespo
|
|
|
672
667
|
exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON;
|
|
673
668
|
exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSONTyped;
|
|
674
669
|
exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON;
|
|
670
|
+
exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON;
|
|
671
|
+
exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSONTyped;
|
|
672
|
+
exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON;
|
|
675
673
|
exports.CheckoutUpdateRequestFromJSON = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSON;
|
|
676
674
|
exports.CheckoutUpdateRequestFromJSONTyped = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSONTyped;
|
|
677
675
|
exports.CheckoutUpdateRequestToJSON = CheckoutUpdateRequest.CheckoutUpdateRequestToJSON;
|
|
@@ -1844,9 +1842,6 @@ exports.SwapFeeToJSON = SwapFee.SwapFeeToJSON;
|
|
|
1844
1842
|
exports.SwapGasCostFromJSON = SwapGasCost.SwapGasCostFromJSON;
|
|
1845
1843
|
exports.SwapGasCostFromJSONTyped = SwapGasCost.SwapGasCostFromJSONTyped;
|
|
1846
1844
|
exports.SwapGasCostToJSON = SwapGasCost.SwapGasCostToJSON;
|
|
1847
|
-
exports.SwapPsbtTransactionDataFromJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSON;
|
|
1848
|
-
exports.SwapPsbtTransactionDataFromJSONTyped = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSONTyped;
|
|
1849
|
-
exports.SwapPsbtTransactionDataToJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataToJSON;
|
|
1850
1845
|
exports.SwapQuoteRequestFromJSON = SwapQuoteRequest.SwapQuoteRequestFromJSON;
|
|
1851
1846
|
exports.SwapQuoteRequestFromJSONTyped = SwapQuoteRequest.SwapQuoteRequestFromJSONTyped;
|
|
1852
1847
|
Object.defineProperty(exports, 'SwapQuoteRequestOrderEnum', {
|
|
@@ -1863,9 +1858,6 @@ exports.SwapQuoteResponseToJSON = SwapQuoteResponse.SwapQuoteResponseToJSON;
|
|
|
1863
1858
|
exports.SwapQuoteResponseSideFromJSON = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSON;
|
|
1864
1859
|
exports.SwapQuoteResponseSideFromJSONTyped = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSONTyped;
|
|
1865
1860
|
exports.SwapQuoteResponseSideToJSON = SwapQuoteResponseSide.SwapQuoteResponseSideToJSON;
|
|
1866
|
-
exports.SwapSerializedTransactionDataFromJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSON;
|
|
1867
|
-
exports.SwapSerializedTransactionDataFromJSONTyped = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSONTyped;
|
|
1868
|
-
exports.SwapSerializedTransactionDataToJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataToJSON;
|
|
1869
1861
|
exports.SwapSigningPayloadFromJSON = SwapSigningPayload.SwapSigningPayloadFromJSON;
|
|
1870
1862
|
exports.SwapSigningPayloadFromJSONTyped = SwapSigningPayload.SwapSigningPayloadFromJSONTyped;
|
|
1871
1863
|
exports.SwapSigningPayloadToJSON = SwapSigningPayload.SwapSigningPayloadToJSON;
|
package/src/index.js
CHANGED
|
@@ -43,7 +43,6 @@ export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureT
|
|
|
43
43
|
export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
|
|
44
44
|
export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON } from './models/CheckoutGasEstimate.js';
|
|
45
45
|
export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
|
|
46
|
-
export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
|
|
47
46
|
export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
|
|
48
47
|
export { CheckoutSettlementDataFromJSON, CheckoutSettlementDataFromJSONTyped, CheckoutSettlementDataToJSON } from './models/CheckoutSettlementData.js';
|
|
49
48
|
export { CheckoutSettlementStateEnum, CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumFromJSONTyped, CheckoutSettlementStateEnumToJSON } from './models/CheckoutSettlementStateEnum.js';
|
|
@@ -52,6 +51,7 @@ export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, Checkout
|
|
|
52
51
|
export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
|
|
53
52
|
export { CheckoutTransactionCreateResponseFromJSON, CheckoutTransactionCreateResponseFromJSONTyped, CheckoutTransactionCreateResponseToJSON } from './models/CheckoutTransactionCreateResponse.js';
|
|
54
53
|
export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON } from './models/CheckoutTransactionDestinationAddress.js';
|
|
54
|
+
export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON } from './models/CheckoutTransactionQuote.js';
|
|
55
55
|
export { CheckoutUpdateRequestFromJSON, CheckoutUpdateRequestFromJSONTyped, CheckoutUpdateRequestToJSON } from './models/CheckoutUpdateRequest.js';
|
|
56
56
|
export { CheckoutsResponseFromJSON, CheckoutsResponseFromJSONTyped, CheckoutsResponseToJSON } from './models/CheckoutsResponse.js';
|
|
57
57
|
export { CoinbaseMpcWalletPropertiesFromJSON, CoinbaseMpcWalletPropertiesFromJSONTyped, CoinbaseMpcWalletPropertiesToJSON } from './models/CoinbaseMpcWalletProperties.js';
|
|
@@ -368,12 +368,10 @@ export { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataFromJSONTyped, SwapEvmA
|
|
|
368
368
|
export { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataFromJSONTyped, SwapEvmTransactionDataToJSON } from './models/SwapEvmTransactionData.js';
|
|
369
369
|
export { SwapFeeFromJSON, SwapFeeFromJSONTyped, SwapFeeToJSON } from './models/SwapFee.js';
|
|
370
370
|
export { SwapGasCostFromJSON, SwapGasCostFromJSONTyped, SwapGasCostToJSON } from './models/SwapGasCost.js';
|
|
371
|
-
export { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataFromJSONTyped, SwapPsbtTransactionDataToJSON } from './models/SwapPsbtTransactionData.js';
|
|
372
371
|
export { SwapQuoteRequestFromJSON, SwapQuoteRequestFromJSONTyped, SwapQuoteRequestOrderEnum, SwapQuoteRequestToJSON } from './models/SwapQuoteRequest.js';
|
|
373
372
|
export { SwapQuoteRequestSideFromJSON, SwapQuoteRequestSideFromJSONTyped, SwapQuoteRequestSideToJSON } from './models/SwapQuoteRequestSide.js';
|
|
374
373
|
export { SwapQuoteResponseFromJSON, SwapQuoteResponseFromJSONTyped, SwapQuoteResponseToJSON } from './models/SwapQuoteResponse.js';
|
|
375
374
|
export { SwapQuoteResponseSideFromJSON, SwapQuoteResponseSideFromJSONTyped, SwapQuoteResponseSideToJSON } from './models/SwapQuoteResponseSide.js';
|
|
376
|
-
export { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataFromJSONTyped, SwapSerializedTransactionDataToJSON } from './models/SwapSerializedTransactionData.js';
|
|
377
375
|
export { SwapSigningPayloadFromJSON, SwapSigningPayloadFromJSONTyped, SwapSigningPayloadToJSON } from './models/SwapSigningPayload.js';
|
|
378
376
|
export { SwapStatusRequestFromJSON, SwapStatusRequestFromJSONTyped, SwapStatusRequestToJSON } from './models/SwapStatusRequest.js';
|
|
379
377
|
export { SwapStatusRequestChainFromJSON, SwapStatusRequestChainFromJSONTyped, SwapStatusRequestChainToJSON } from './models/SwapStatusRequestChain.js';
|
|
@@ -6,13 +6,12 @@ var runtime = require('../runtime.cjs');
|
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
7
|
var CheckoutExecutionStateEnum = require('./CheckoutExecutionStateEnum.cjs');
|
|
8
8
|
var CheckoutFailure = require('./CheckoutFailure.cjs');
|
|
9
|
-
var CheckoutQuoteSnapshot = require('./CheckoutQuoteSnapshot.cjs');
|
|
10
9
|
var CheckoutRiskStateEnum = require('./CheckoutRiskStateEnum.cjs');
|
|
11
10
|
var CheckoutSettlementData = require('./CheckoutSettlementData.cjs');
|
|
12
11
|
var CheckoutSettlementStateEnum = require('./CheckoutSettlementStateEnum.cjs');
|
|
13
12
|
var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
|
|
14
13
|
var CheckoutTransactionDestinationAddress = require('./CheckoutTransactionDestinationAddress.cjs');
|
|
15
|
-
var
|
|
14
|
+
var CheckoutTransactionQuote = require('./CheckoutTransactionQuote.cjs');
|
|
16
15
|
|
|
17
16
|
/* tslint:disable */
|
|
18
17
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -43,10 +42,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
42
|
'toChainName': !runtime.exists(json, 'toChainName') ? undefined : ChainEnum.ChainEnumFromJSON(json['toChainName']),
|
|
44
43
|
'toToken': !runtime.exists(json, 'toToken') ? undefined : json['toToken'],
|
|
45
44
|
'quoteVersion': json['quoteVersion'],
|
|
46
|
-
'quote': !runtime.exists(json, 'quote') ? undefined :
|
|
47
|
-
'quoteExpiresAt': !runtime.exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
|
|
48
|
-
'lastQuotedAt': !runtime.exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
|
|
49
|
-
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
45
|
+
'quote': !runtime.exists(json, 'quote') ? undefined : CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON(json['quote']),
|
|
50
46
|
'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
|
|
51
47
|
'broadcastedAt': !runtime.exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
|
|
52
48
|
'sourceConfirmedAt': !runtime.exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
|
|
@@ -87,10 +83,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
87
83
|
'toChainName': ChainEnum.ChainEnumToJSON(value.toChainName),
|
|
88
84
|
'toToken': value.toToken,
|
|
89
85
|
'quoteVersion': value.quoteVersion,
|
|
90
|
-
'quote':
|
|
91
|
-
'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
|
|
92
|
-
'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
|
|
93
|
-
'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
|
|
86
|
+
'quote': CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON(value.quote),
|
|
94
87
|
'txHash': value.txHash,
|
|
95
88
|
'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
|
|
96
89
|
'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
|
|
@@ -12,13 +12,12 @@
|
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
13
|
import { CheckoutExecutionStateEnum } from './CheckoutExecutionStateEnum';
|
|
14
14
|
import { CheckoutFailure } from './CheckoutFailure';
|
|
15
|
-
import { CheckoutQuoteSnapshot } from './CheckoutQuoteSnapshot';
|
|
16
15
|
import { CheckoutRiskStateEnum } from './CheckoutRiskStateEnum';
|
|
17
16
|
import { CheckoutSettlementData } from './CheckoutSettlementData';
|
|
18
17
|
import { CheckoutSettlementStateEnum } from './CheckoutSettlementStateEnum';
|
|
19
18
|
import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
|
|
20
19
|
import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDestinationAddress';
|
|
21
|
-
import {
|
|
20
|
+
import { CheckoutTransactionQuote } from './CheckoutTransactionQuote';
|
|
22
21
|
/**
|
|
23
22
|
*
|
|
24
23
|
* @export
|
|
@@ -147,28 +146,10 @@ export interface CheckoutTransaction {
|
|
|
147
146
|
quoteVersion: number;
|
|
148
147
|
/**
|
|
149
148
|
*
|
|
150
|
-
* @type {
|
|
149
|
+
* @type {CheckoutTransactionQuote}
|
|
151
150
|
* @memberof CheckoutTransaction
|
|
152
151
|
*/
|
|
153
|
-
quote?:
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @type {Date}
|
|
157
|
-
* @memberof CheckoutTransaction
|
|
158
|
-
*/
|
|
159
|
-
quoteExpiresAt?: Date;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {Date}
|
|
163
|
-
* @memberof CheckoutTransaction
|
|
164
|
-
*/
|
|
165
|
-
lastQuotedAt?: Date;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {SwapSigningPayload}
|
|
169
|
-
* @memberof CheckoutTransaction
|
|
170
|
-
*/
|
|
171
|
-
signingPayload?: SwapSigningPayload;
|
|
152
|
+
quote?: CheckoutTransactionQuote;
|
|
172
153
|
/**
|
|
173
154
|
* A string with a max length of 4096 characters
|
|
174
155
|
* @type {string}
|
|
@@ -2,13 +2,12 @@ import { exists } from '../runtime.js';
|
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
3
|
import { CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumToJSON } from './CheckoutExecutionStateEnum.js';
|
|
4
4
|
import { CheckoutFailureFromJSON, CheckoutFailureToJSON } from './CheckoutFailure.js';
|
|
5
|
-
import { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotToJSON } from './CheckoutQuoteSnapshot.js';
|
|
6
5
|
import { CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumToJSON } from './CheckoutRiskStateEnum.js';
|
|
7
6
|
import { CheckoutSettlementDataFromJSON, CheckoutSettlementDataToJSON } from './CheckoutSettlementData.js';
|
|
8
7
|
import { CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumToJSON } from './CheckoutSettlementStateEnum.js';
|
|
9
8
|
import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
|
|
10
9
|
import { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressToJSON } from './CheckoutTransactionDestinationAddress.js';
|
|
11
|
-
import {
|
|
10
|
+
import { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteToJSON } from './CheckoutTransactionQuote.js';
|
|
12
11
|
|
|
13
12
|
/* tslint:disable */
|
|
14
13
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -39,10 +38,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
38
|
'toChainName': !exists(json, 'toChainName') ? undefined : ChainEnumFromJSON(json['toChainName']),
|
|
40
39
|
'toToken': !exists(json, 'toToken') ? undefined : json['toToken'],
|
|
41
40
|
'quoteVersion': json['quoteVersion'],
|
|
42
|
-
'quote': !exists(json, 'quote') ? undefined :
|
|
43
|
-
'quoteExpiresAt': !exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
|
|
44
|
-
'lastQuotedAt': !exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
|
|
45
|
-
'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
41
|
+
'quote': !exists(json, 'quote') ? undefined : CheckoutTransactionQuoteFromJSON(json['quote']),
|
|
46
42
|
'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
|
|
47
43
|
'broadcastedAt': !exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
|
|
48
44
|
'sourceConfirmedAt': !exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
|
|
@@ -83,10 +79,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
83
79
|
'toChainName': ChainEnumToJSON(value.toChainName),
|
|
84
80
|
'toToken': value.toToken,
|
|
85
81
|
'quoteVersion': value.quoteVersion,
|
|
86
|
-
'quote':
|
|
87
|
-
'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
|
|
88
|
-
'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
|
|
89
|
-
'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
|
|
82
|
+
'quote': CheckoutTransactionQuoteToJSON(value.quote),
|
|
90
83
|
'txHash': value.txHash,
|
|
91
84
|
'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
|
|
92
85
|
'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var CheckoutFeeBreakdown = require('./CheckoutFeeBreakdown.cjs');
|
|
7
|
+
var SwapSigningPayload = require('./SwapSigningPayload.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function CheckoutTransactionQuoteFromJSON(json) {
|
|
11
|
+
return CheckoutTransactionQuoteFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'version': json['version'],
|
|
19
|
+
'fromAmount': json['fromAmount'],
|
|
20
|
+
'toAmount': json['toAmount'],
|
|
21
|
+
'fees': !runtime.exists(json, 'fees') ? undefined : CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON(json['fees']),
|
|
22
|
+
'estimatedTimeSec': !runtime.exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
|
|
23
|
+
'rawQuote': !runtime.exists(json, 'rawQuote') ? undefined : json['rawQuote'],
|
|
24
|
+
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
25
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
26
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function CheckoutTransactionQuoteToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'version': value.version,
|
|
38
|
+
'fromAmount': value.fromAmount,
|
|
39
|
+
'toAmount': value.toAmount,
|
|
40
|
+
'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON(value.fees),
|
|
41
|
+
'estimatedTimeSec': value.estimatedTimeSec,
|
|
42
|
+
'rawQuote': value.rawQuote,
|
|
43
|
+
'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
|
|
44
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
45
|
+
'expiresAt': (value.expiresAt.toISOString()),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuoteFromJSON;
|
|
50
|
+
exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuoteFromJSONTyped;
|
|
51
|
+
exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuoteToJSON;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CheckoutFeeBreakdown } from './CheckoutFeeBreakdown';
|
|
13
|
+
import { SwapSigningPayload } from './SwapSigningPayload';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CheckoutTransactionQuote
|
|
18
|
+
*/
|
|
19
|
+
export interface CheckoutTransactionQuote {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof CheckoutTransactionQuote
|
|
24
|
+
*/
|
|
25
|
+
version: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CheckoutTransactionQuote
|
|
30
|
+
*/
|
|
31
|
+
fromAmount: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CheckoutTransactionQuote
|
|
36
|
+
*/
|
|
37
|
+
toAmount: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {CheckoutFeeBreakdown}
|
|
41
|
+
* @memberof CheckoutTransactionQuote
|
|
42
|
+
*/
|
|
43
|
+
fees?: CheckoutFeeBreakdown;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof CheckoutTransactionQuote
|
|
48
|
+
*/
|
|
49
|
+
estimatedTimeSec?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Raw quote result data from the swap provider
|
|
52
|
+
* @type {object}
|
|
53
|
+
* @memberof CheckoutTransactionQuote
|
|
54
|
+
*/
|
|
55
|
+
rawQuote?: object;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SwapSigningPayload}
|
|
59
|
+
* @memberof CheckoutTransactionQuote
|
|
60
|
+
*/
|
|
61
|
+
signingPayload?: SwapSigningPayload;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof CheckoutTransactionQuote
|
|
66
|
+
*/
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof CheckoutTransactionQuote
|
|
72
|
+
*/
|
|
73
|
+
expiresAt: Date;
|
|
74
|
+
}
|
|
75
|
+
export declare function CheckoutTransactionQuoteFromJSON(json: any): CheckoutTransactionQuote;
|
|
76
|
+
export declare function CheckoutTransactionQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransactionQuote;
|
|
77
|
+
export declare function CheckoutTransactionQuoteToJSON(value?: CheckoutTransactionQuote | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownToJSON } from './CheckoutFeeBreakdown.js';
|
|
3
|
+
import { SwapSigningPayloadFromJSON, SwapSigningPayloadToJSON } from './SwapSigningPayload.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function CheckoutTransactionQuoteFromJSON(json) {
|
|
7
|
+
return CheckoutTransactionQuoteFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function CheckoutTransactionQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'version': json['version'],
|
|
15
|
+
'fromAmount': json['fromAmount'],
|
|
16
|
+
'toAmount': json['toAmount'],
|
|
17
|
+
'fees': !exists(json, 'fees') ? undefined : CheckoutFeeBreakdownFromJSON(json['fees']),
|
|
18
|
+
'estimatedTimeSec': !exists(json, 'estimatedTimeSec') ? undefined : json['estimatedTimeSec'],
|
|
19
|
+
'rawQuote': !exists(json, 'rawQuote') ? undefined : json['rawQuote'],
|
|
20
|
+
'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
21
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
22
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function CheckoutTransactionQuoteToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'version': value.version,
|
|
34
|
+
'fromAmount': value.fromAmount,
|
|
35
|
+
'toAmount': value.toAmount,
|
|
36
|
+
'fees': CheckoutFeeBreakdownToJSON(value.fees),
|
|
37
|
+
'estimatedTimeSec': value.estimatedTimeSec,
|
|
38
|
+
'rawQuote': value.rawQuote,
|
|
39
|
+
'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
|
|
40
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
41
|
+
'expiresAt': (value.expiresAt.toISOString()),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON };
|
|
@@ -6,8 +6,6 @@ var runtime = require('../runtime.cjs');
|
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
7
|
var SwapEvmApprovalData = require('./SwapEvmApprovalData.cjs');
|
|
8
8
|
var SwapEvmTransactionData = require('./SwapEvmTransactionData.cjs');
|
|
9
|
-
var SwapPsbtTransactionData = require('./SwapPsbtTransactionData.cjs');
|
|
10
|
-
var SwapSerializedTransactionData = require('./SwapSerializedTransactionData.cjs');
|
|
11
9
|
|
|
12
10
|
/* tslint:disable */
|
|
13
11
|
function SwapSigningPayloadFromJSON(json) {
|
|
@@ -22,8 +20,8 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
20
|
'chainId': json['chainId'],
|
|
23
21
|
'evmTransaction': !runtime.exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionData.SwapEvmTransactionDataFromJSON(json['evmTransaction']),
|
|
24
22
|
'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : SwapEvmApprovalData.SwapEvmApprovalDataFromJSON(json['evmApproval']),
|
|
25
|
-
'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined :
|
|
26
|
-
'
|
|
23
|
+
'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
|
|
24
|
+
'psbt': !runtime.exists(json, 'psbt') ? undefined : json['psbt'],
|
|
27
25
|
};
|
|
28
26
|
}
|
|
29
27
|
function SwapSigningPayloadToJSON(value) {
|
|
@@ -38,8 +36,8 @@ function SwapSigningPayloadToJSON(value) {
|
|
|
38
36
|
'chainId': value.chainId,
|
|
39
37
|
'evmTransaction': SwapEvmTransactionData.SwapEvmTransactionDataToJSON(value.evmTransaction),
|
|
40
38
|
'evmApproval': SwapEvmApprovalData.SwapEvmApprovalDataToJSON(value.evmApproval),
|
|
41
|
-
'serializedTransaction':
|
|
42
|
-
'
|
|
39
|
+
'serializedTransaction': value.serializedTransaction,
|
|
40
|
+
'psbt': value.psbt,
|
|
43
41
|
};
|
|
44
42
|
}
|
|
45
43
|
|
|
@@ -12,10 +12,8 @@
|
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
13
|
import { SwapEvmApprovalData } from './SwapEvmApprovalData';
|
|
14
14
|
import { SwapEvmTransactionData } from './SwapEvmTransactionData';
|
|
15
|
-
import { SwapPsbtTransactionData } from './SwapPsbtTransactionData';
|
|
16
|
-
import { SwapSerializedTransactionData } from './SwapSerializedTransactionData';
|
|
17
15
|
/**
|
|
18
|
-
* Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses
|
|
16
|
+
* Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbt.
|
|
19
17
|
* @export
|
|
20
18
|
* @interface SwapSigningPayload
|
|
21
19
|
*/
|
|
@@ -45,17 +43,17 @@ export interface SwapSigningPayload {
|
|
|
45
43
|
*/
|
|
46
44
|
evmApproval?: SwapEvmApprovalData;
|
|
47
45
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {
|
|
46
|
+
* Base64-encoded serialized transaction
|
|
47
|
+
* @type {string}
|
|
50
48
|
* @memberof SwapSigningPayload
|
|
51
49
|
*/
|
|
52
|
-
serializedTransaction?:
|
|
50
|
+
serializedTransaction?: string;
|
|
53
51
|
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {
|
|
52
|
+
* Base64-encoded unsigned PSBT
|
|
53
|
+
* @type {string}
|
|
56
54
|
* @memberof SwapSigningPayload
|
|
57
55
|
*/
|
|
58
|
-
|
|
56
|
+
psbt?: string;
|
|
59
57
|
}
|
|
60
58
|
export declare function SwapSigningPayloadFromJSON(json: any): SwapSigningPayload;
|
|
61
59
|
export declare function SwapSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapSigningPayload;
|
|
@@ -2,8 +2,6 @@ import { exists } from '../runtime.js';
|
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
3
|
import { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataToJSON } from './SwapEvmApprovalData.js';
|
|
4
4
|
import { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataToJSON } from './SwapEvmTransactionData.js';
|
|
5
|
-
import { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataToJSON } from './SwapPsbtTransactionData.js';
|
|
6
|
-
import { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataToJSON } from './SwapSerializedTransactionData.js';
|
|
7
5
|
|
|
8
6
|
/* tslint:disable */
|
|
9
7
|
function SwapSigningPayloadFromJSON(json) {
|
|
@@ -18,8 +16,8 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
16
|
'chainId': json['chainId'],
|
|
19
17
|
'evmTransaction': !exists(json, 'evmTransaction') ? undefined : SwapEvmTransactionDataFromJSON(json['evmTransaction']),
|
|
20
18
|
'evmApproval': !exists(json, 'evmApproval') ? undefined : SwapEvmApprovalDataFromJSON(json['evmApproval']),
|
|
21
|
-
'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined :
|
|
22
|
-
'
|
|
19
|
+
'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
|
|
20
|
+
'psbt': !exists(json, 'psbt') ? undefined : json['psbt'],
|
|
23
21
|
};
|
|
24
22
|
}
|
|
25
23
|
function SwapSigningPayloadToJSON(value) {
|
|
@@ -34,8 +32,8 @@ function SwapSigningPayloadToJSON(value) {
|
|
|
34
32
|
'chainId': value.chainId,
|
|
35
33
|
'evmTransaction': SwapEvmTransactionDataToJSON(value.evmTransaction),
|
|
36
34
|
'evmApproval': SwapEvmApprovalDataToJSON(value.evmApproval),
|
|
37
|
-
'serializedTransaction':
|
|
38
|
-
'
|
|
35
|
+
'serializedTransaction': value.serializedTransaction,
|
|
36
|
+
'psbt': value.psbt,
|
|
39
37
|
};
|
|
40
38
|
}
|
|
41
39
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ export * from './CheckoutFailure';
|
|
|
40
40
|
export * from './CheckoutFeeBreakdown';
|
|
41
41
|
export * from './CheckoutGasEstimate';
|
|
42
42
|
export * from './CheckoutModeEnum';
|
|
43
|
-
export * from './CheckoutQuoteSnapshot';
|
|
44
43
|
export * from './CheckoutRiskStateEnum';
|
|
45
44
|
export * from './CheckoutSettlementData';
|
|
46
45
|
export * from './CheckoutSettlementStateEnum';
|
|
@@ -49,6 +48,7 @@ export * from './CheckoutTransaction';
|
|
|
49
48
|
export * from './CheckoutTransactionCreateRequest';
|
|
50
49
|
export * from './CheckoutTransactionCreateResponse';
|
|
51
50
|
export * from './CheckoutTransactionDestinationAddress';
|
|
51
|
+
export * from './CheckoutTransactionQuote';
|
|
52
52
|
export * from './CheckoutUpdateRequest';
|
|
53
53
|
export * from './CheckoutsResponse';
|
|
54
54
|
export * from './CoinbaseMpcWalletProperties';
|
|
@@ -365,12 +365,10 @@ export * from './SwapEvmApprovalData';
|
|
|
365
365
|
export * from './SwapEvmTransactionData';
|
|
366
366
|
export * from './SwapFee';
|
|
367
367
|
export * from './SwapGasCost';
|
|
368
|
-
export * from './SwapPsbtTransactionData';
|
|
369
368
|
export * from './SwapQuoteRequest';
|
|
370
369
|
export * from './SwapQuoteRequestSide';
|
|
371
370
|
export * from './SwapQuoteResponse';
|
|
372
371
|
export * from './SwapQuoteResponseSide';
|
|
373
|
-
export * from './SwapSerializedTransactionData';
|
|
374
372
|
export * from './SwapSigningPayload';
|
|
375
373
|
export * from './SwapStatusRequest';
|
|
376
374
|
export * from './SwapStatusRequestChain';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
|
-
var CheckoutFeeBreakdown = require('./CheckoutFeeBreakdown.cjs');
|
|
7
|
-
|
|
8
|
-
/* tslint:disable */
|
|
9
|
-
function CheckoutQuoteSnapshotFromJSON(json) {
|
|
10
|
-
return CheckoutQuoteSnapshotFromJSONTyped(json);
|
|
11
|
-
}
|
|
12
|
-
function CheckoutQuoteSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if ((json === undefined) || (json === null)) {
|
|
14
|
-
return json;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
'version': json['version'],
|
|
18
|
-
'fromAmount': json['fromAmount'],
|
|
19
|
-
'toAmount': json['toAmount'],
|
|
20
|
-
'toAmountMin': json['toAmountMin'],
|
|
21
|
-
'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownFromJSON(json['fees']),
|
|
22
|
-
'estimatedTimeSec': json['estimatedTimeSec'],
|
|
23
|
-
'route': !runtime.exists(json, 'route') ? undefined : json['route'],
|
|
24
|
-
'createdAt': (new Date(json['createdAt'])),
|
|
25
|
-
'expiresAt': (new Date(json['expiresAt'])),
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
function CheckoutQuoteSnapshotToJSON(value) {
|
|
29
|
-
if (value === undefined) {
|
|
30
|
-
return undefined;
|
|
31
|
-
}
|
|
32
|
-
if (value === null) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'version': value.version,
|
|
37
|
-
'fromAmount': value.fromAmount,
|
|
38
|
-
'toAmount': value.toAmount,
|
|
39
|
-
'toAmountMin': value.toAmountMin,
|
|
40
|
-
'fees': CheckoutFeeBreakdown.CheckoutFeeBreakdownToJSON(value.fees),
|
|
41
|
-
'estimatedTimeSec': value.estimatedTimeSec,
|
|
42
|
-
'route': value.route,
|
|
43
|
-
'createdAt': (value.createdAt.toISOString()),
|
|
44
|
-
'expiresAt': (value.expiresAt.toISOString()),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshotFromJSON;
|
|
49
|
-
exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshotFromJSONTyped;
|
|
50
|
-
exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshotToJSON;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard API
|
|
3
|
-
* Dashboard API documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { CheckoutFeeBreakdown } from './CheckoutFeeBreakdown';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CheckoutQuoteSnapshot
|
|
17
|
-
*/
|
|
18
|
-
export interface CheckoutQuoteSnapshot {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof CheckoutQuoteSnapshot
|
|
23
|
-
*/
|
|
24
|
-
version: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CheckoutQuoteSnapshot
|
|
29
|
-
*/
|
|
30
|
-
fromAmount: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CheckoutQuoteSnapshot
|
|
35
|
-
*/
|
|
36
|
-
toAmount: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CheckoutQuoteSnapshot
|
|
41
|
-
*/
|
|
42
|
-
toAmountMin: string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {CheckoutFeeBreakdown}
|
|
46
|
-
* @memberof CheckoutQuoteSnapshot
|
|
47
|
-
*/
|
|
48
|
-
fees: CheckoutFeeBreakdown;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof CheckoutQuoteSnapshot
|
|
53
|
-
*/
|
|
54
|
-
estimatedTimeSec: number;
|
|
55
|
-
/**
|
|
56
|
-
* Raw route data from the swap provider
|
|
57
|
-
* @type {object}
|
|
58
|
-
* @memberof CheckoutQuoteSnapshot
|
|
59
|
-
*/
|
|
60
|
-
route?: object;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Date}
|
|
64
|
-
* @memberof CheckoutQuoteSnapshot
|
|
65
|
-
*/
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {Date}
|
|
70
|
-
* @memberof CheckoutQuoteSnapshot
|
|
71
|
-
*/
|
|
72
|
-
expiresAt: Date;
|
|
73
|
-
}
|
|
74
|
-
export declare function CheckoutQuoteSnapshotFromJSON(json: any): CheckoutQuoteSnapshot;
|
|
75
|
-
export declare function CheckoutQuoteSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutQuoteSnapshot;
|
|
76
|
-
export declare function CheckoutQuoteSnapshotToJSON(value?: CheckoutQuoteSnapshot | null): any;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
|
-
import { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownToJSON } from './CheckoutFeeBreakdown.js';
|
|
3
|
-
|
|
4
|
-
/* tslint:disable */
|
|
5
|
-
function CheckoutQuoteSnapshotFromJSON(json) {
|
|
6
|
-
return CheckoutQuoteSnapshotFromJSONTyped(json);
|
|
7
|
-
}
|
|
8
|
-
function CheckoutQuoteSnapshotFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
-
if ((json === undefined) || (json === null)) {
|
|
10
|
-
return json;
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
'version': json['version'],
|
|
14
|
-
'fromAmount': json['fromAmount'],
|
|
15
|
-
'toAmount': json['toAmount'],
|
|
16
|
-
'toAmountMin': json['toAmountMin'],
|
|
17
|
-
'fees': CheckoutFeeBreakdownFromJSON(json['fees']),
|
|
18
|
-
'estimatedTimeSec': json['estimatedTimeSec'],
|
|
19
|
-
'route': !exists(json, 'route') ? undefined : json['route'],
|
|
20
|
-
'createdAt': (new Date(json['createdAt'])),
|
|
21
|
-
'expiresAt': (new Date(json['expiresAt'])),
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
function CheckoutQuoteSnapshotToJSON(value) {
|
|
25
|
-
if (value === undefined) {
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
if (value === null) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
'version': value.version,
|
|
33
|
-
'fromAmount': value.fromAmount,
|
|
34
|
-
'toAmount': value.toAmount,
|
|
35
|
-
'toAmountMin': value.toAmountMin,
|
|
36
|
-
'fees': CheckoutFeeBreakdownToJSON(value.fees),
|
|
37
|
-
'estimatedTimeSec': value.estimatedTimeSec,
|
|
38
|
-
'route': value.route,
|
|
39
|
-
'createdAt': (value.createdAt.toISOString()),
|
|
40
|
-
'expiresAt': (value.expiresAt.toISOString()),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
/**
|
|
8
|
-
* Dashboard API
|
|
9
|
-
* Dashboard API documentation
|
|
10
|
-
*
|
|
11
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
-
* https://openapi-generator.tech
|
|
16
|
-
* Do not edit the class manually.
|
|
17
|
-
*/
|
|
18
|
-
function SwapPsbtTransactionDataFromJSON(json) {
|
|
19
|
-
return SwapPsbtTransactionDataFromJSONTyped(json);
|
|
20
|
-
}
|
|
21
|
-
function SwapPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'psbt': json['psbt'],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function SwapPsbtTransactionDataToJSON(value) {
|
|
30
|
-
if (value === undefined) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
if (value === null) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'psbt': value.psbt,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.SwapPsbtTransactionDataFromJSON = SwapPsbtTransactionDataFromJSON;
|
|
42
|
-
exports.SwapPsbtTransactionDataFromJSONTyped = SwapPsbtTransactionDataFromJSONTyped;
|
|
43
|
-
exports.SwapPsbtTransactionDataToJSON = SwapPsbtTransactionDataToJSON;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard API
|
|
3
|
-
* Dashboard API documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SwapPsbtTransactionData
|
|
16
|
-
*/
|
|
17
|
-
export interface SwapPsbtTransactionData {
|
|
18
|
-
/**
|
|
19
|
-
* Base64-encoded unsigned PSBT
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SwapPsbtTransactionData
|
|
22
|
-
*/
|
|
23
|
-
psbt: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function SwapPsbtTransactionDataFromJSON(json: any): SwapPsbtTransactionData;
|
|
26
|
-
export declare function SwapPsbtTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapPsbtTransactionData;
|
|
27
|
-
export declare function SwapPsbtTransactionDataToJSON(value?: SwapPsbtTransactionData | null): any;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dashboard API
|
|
5
|
-
* Dashboard API documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
function SwapPsbtTransactionDataFromJSON(json) {
|
|
15
|
-
return SwapPsbtTransactionDataFromJSONTyped(json);
|
|
16
|
-
}
|
|
17
|
-
function SwapPsbtTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
if ((json === undefined) || (json === null)) {
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
'psbt': json['psbt'],
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function SwapPsbtTransactionDataToJSON(value) {
|
|
26
|
-
if (value === undefined) {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'psbt': value.psbt,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataFromJSONTyped, SwapPsbtTransactionDataToJSON };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
/**
|
|
8
|
-
* Dashboard API
|
|
9
|
-
* Dashboard API documentation
|
|
10
|
-
*
|
|
11
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
-
* https://openapi-generator.tech
|
|
16
|
-
* Do not edit the class manually.
|
|
17
|
-
*/
|
|
18
|
-
function SwapSerializedTransactionDataFromJSON(json) {
|
|
19
|
-
return SwapSerializedTransactionDataFromJSONTyped(json);
|
|
20
|
-
}
|
|
21
|
-
function SwapSerializedTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'serializedTransaction': json['serializedTransaction'],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function SwapSerializedTransactionDataToJSON(value) {
|
|
30
|
-
if (value === undefined) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
if (value === null) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'serializedTransaction': value.serializedTransaction,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.SwapSerializedTransactionDataFromJSON = SwapSerializedTransactionDataFromJSON;
|
|
42
|
-
exports.SwapSerializedTransactionDataFromJSONTyped = SwapSerializedTransactionDataFromJSONTyped;
|
|
43
|
-
exports.SwapSerializedTransactionDataToJSON = SwapSerializedTransactionDataToJSON;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard API
|
|
3
|
-
* Dashboard API documentation
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SwapSerializedTransactionData
|
|
16
|
-
*/
|
|
17
|
-
export interface SwapSerializedTransactionData {
|
|
18
|
-
/**
|
|
19
|
-
* Base64-encoded serialized transaction
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof SwapSerializedTransactionData
|
|
22
|
-
*/
|
|
23
|
-
serializedTransaction: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function SwapSerializedTransactionDataFromJSON(json: any): SwapSerializedTransactionData;
|
|
26
|
-
export declare function SwapSerializedTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapSerializedTransactionData;
|
|
27
|
-
export declare function SwapSerializedTransactionDataToJSON(value?: SwapSerializedTransactionData | null): any;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dashboard API
|
|
5
|
-
* Dashboard API documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
function SwapSerializedTransactionDataFromJSON(json) {
|
|
15
|
-
return SwapSerializedTransactionDataFromJSONTyped(json);
|
|
16
|
-
}
|
|
17
|
-
function SwapSerializedTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
-
if ((json === undefined) || (json === null)) {
|
|
19
|
-
return json;
|
|
20
|
-
}
|
|
21
|
-
return {
|
|
22
|
-
'serializedTransaction': json['serializedTransaction'],
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function SwapSerializedTransactionDataToJSON(value) {
|
|
26
|
-
if (value === undefined) {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'serializedTransaction': value.serializedTransaction,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataFromJSONTyped, SwapSerializedTransactionDataToJSON };
|