@dynamic-labs/sdk-api 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
|
@@ -4948,6 +4948,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4948
4948
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4949
4949
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheck.');
|
|
4950
4950
|
}
|
|
4951
|
+
if (requestParameters.filter === null || requestParameters.filter === undefined) {
|
|
4952
|
+
throw new runtime.RequiredError('filter', 'Required parameter requestParameters.filter was null or undefined when calling getUserFieldsCheck.');
|
|
4953
|
+
}
|
|
4951
4954
|
const queryParameters = {};
|
|
4952
4955
|
if (requestParameters.filter !== undefined) {
|
|
4953
4956
|
queryParameters['filter'] = requestParameters.filter;
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -540,7 +540,7 @@ export interface GetUserAccountsOptionsRequest {
|
|
|
540
540
|
}
|
|
541
541
|
export interface GetUserFieldsCheckRequest {
|
|
542
542
|
environmentId: string;
|
|
543
|
-
filter
|
|
543
|
+
filter: UserFieldsCheckParams;
|
|
544
544
|
}
|
|
545
545
|
export interface GetUserFieldsCheckOptionsRequest {
|
|
546
546
|
environmentId: string;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -4944,6 +4944,9 @@ class SDKApi extends BaseAPI {
|
|
|
4944
4944
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
4945
4945
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserFieldsCheck.');
|
|
4946
4946
|
}
|
|
4947
|
+
if (requestParameters.filter === null || requestParameters.filter === undefined) {
|
|
4948
|
+
throw new RequiredError('filter', 'Required parameter requestParameters.filter was null or undefined when calling getUserFieldsCheck.');
|
|
4949
|
+
}
|
|
4947
4950
|
const queryParameters = {};
|
|
4948
4951
|
if (requestParameters.filter !== undefined) {
|
|
4949
4952
|
queryParameters['filter'] = requestParameters.filter;
|
package/src/index.cjs
CHANGED
|
@@ -122,7 +122,6 @@ var CheckoutFailure = require('./models/CheckoutFailure.cjs');
|
|
|
122
122
|
var CheckoutFeeBreakdown = require('./models/CheckoutFeeBreakdown.cjs');
|
|
123
123
|
var CheckoutGasEstimate = require('./models/CheckoutGasEstimate.cjs');
|
|
124
124
|
var CheckoutModeEnum = require('./models/CheckoutModeEnum.cjs');
|
|
125
|
-
var CheckoutQuoteSnapshot = require('./models/CheckoutQuoteSnapshot.cjs');
|
|
126
125
|
var CheckoutRiskStateEnum = require('./models/CheckoutRiskStateEnum.cjs');
|
|
127
126
|
var CheckoutSettlementData = require('./models/CheckoutSettlementData.cjs');
|
|
128
127
|
var CheckoutSettlementStateEnum = require('./models/CheckoutSettlementStateEnum.cjs');
|
|
@@ -131,6 +130,7 @@ var CheckoutTransaction = require('./models/CheckoutTransaction.cjs');
|
|
|
131
130
|
var CheckoutTransactionCreateRequest = require('./models/CheckoutTransactionCreateRequest.cjs');
|
|
132
131
|
var CheckoutTransactionCreateResponse = require('./models/CheckoutTransactionCreateResponse.cjs');
|
|
133
132
|
var CheckoutTransactionDestinationAddress = require('./models/CheckoutTransactionDestinationAddress.cjs');
|
|
133
|
+
var CheckoutTransactionQuote = require('./models/CheckoutTransactionQuote.cjs');
|
|
134
134
|
var CheckoutUpdateRequest = require('./models/CheckoutUpdateRequest.cjs');
|
|
135
135
|
var CheckoutsResponse = require('./models/CheckoutsResponse.cjs');
|
|
136
136
|
var CoinbaseMpcWalletProperties = require('./models/CoinbaseMpcWalletProperties.cjs');
|
|
@@ -567,12 +567,10 @@ var SwapEvmApprovalData = require('./models/SwapEvmApprovalData.cjs');
|
|
|
567
567
|
var SwapEvmTransactionData = require('./models/SwapEvmTransactionData.cjs');
|
|
568
568
|
var SwapFee = require('./models/SwapFee.cjs');
|
|
569
569
|
var SwapGasCost = require('./models/SwapGasCost.cjs');
|
|
570
|
-
var SwapPsbtTransactionData = require('./models/SwapPsbtTransactionData.cjs');
|
|
571
570
|
var SwapQuoteRequest = require('./models/SwapQuoteRequest.cjs');
|
|
572
571
|
var SwapQuoteRequestSide = require('./models/SwapQuoteRequestSide.cjs');
|
|
573
572
|
var SwapQuoteResponse = require('./models/SwapQuoteResponse.cjs');
|
|
574
573
|
var SwapQuoteResponseSide = require('./models/SwapQuoteResponseSide.cjs');
|
|
575
|
-
var SwapSerializedTransactionData = require('./models/SwapSerializedTransactionData.cjs');
|
|
576
574
|
var SwapSigningPayload = require('./models/SwapSigningPayload.cjs');
|
|
577
575
|
var SwapStatusRequest = require('./models/SwapStatusRequest.cjs');
|
|
578
576
|
var SwapStatusRequestChain = require('./models/SwapStatusRequestChain.cjs');
|
|
@@ -1061,9 +1059,6 @@ Object.defineProperty(exports, 'CheckoutModeEnum', {
|
|
|
1061
1059
|
exports.CheckoutModeEnumFromJSON = CheckoutModeEnum.CheckoutModeEnumFromJSON;
|
|
1062
1060
|
exports.CheckoutModeEnumFromJSONTyped = CheckoutModeEnum.CheckoutModeEnumFromJSONTyped;
|
|
1063
1061
|
exports.CheckoutModeEnumToJSON = CheckoutModeEnum.CheckoutModeEnumToJSON;
|
|
1064
|
-
exports.CheckoutQuoteSnapshotFromJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON;
|
|
1065
|
-
exports.CheckoutQuoteSnapshotFromJSONTyped = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSONTyped;
|
|
1066
|
-
exports.CheckoutQuoteSnapshotToJSON = CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON;
|
|
1067
1062
|
Object.defineProperty(exports, 'CheckoutRiskStateEnum', {
|
|
1068
1063
|
enumerable: true,
|
|
1069
1064
|
get: function () { return CheckoutRiskStateEnum.CheckoutRiskStateEnum; }
|
|
@@ -1100,6 +1095,9 @@ exports.CheckoutTransactionCreateResponseToJSON = CheckoutTransactionCreateRespo
|
|
|
1100
1095
|
exports.CheckoutTransactionDestinationAddressFromJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSON;
|
|
1101
1096
|
exports.CheckoutTransactionDestinationAddressFromJSONTyped = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressFromJSONTyped;
|
|
1102
1097
|
exports.CheckoutTransactionDestinationAddressToJSON = CheckoutTransactionDestinationAddress.CheckoutTransactionDestinationAddressToJSON;
|
|
1098
|
+
exports.CheckoutTransactionQuoteFromJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSON;
|
|
1099
|
+
exports.CheckoutTransactionQuoteFromJSONTyped = CheckoutTransactionQuote.CheckoutTransactionQuoteFromJSONTyped;
|
|
1100
|
+
exports.CheckoutTransactionQuoteToJSON = CheckoutTransactionQuote.CheckoutTransactionQuoteToJSON;
|
|
1103
1101
|
exports.CheckoutUpdateRequestFromJSON = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSON;
|
|
1104
1102
|
exports.CheckoutUpdateRequestFromJSONTyped = CheckoutUpdateRequest.CheckoutUpdateRequestFromJSONTyped;
|
|
1105
1103
|
exports.CheckoutUpdateRequestToJSON = CheckoutUpdateRequest.CheckoutUpdateRequestToJSON;
|
|
@@ -2680,9 +2678,6 @@ exports.SwapFeeToJSON = SwapFee.SwapFeeToJSON;
|
|
|
2680
2678
|
exports.SwapGasCostFromJSON = SwapGasCost.SwapGasCostFromJSON;
|
|
2681
2679
|
exports.SwapGasCostFromJSONTyped = SwapGasCost.SwapGasCostFromJSONTyped;
|
|
2682
2680
|
exports.SwapGasCostToJSON = SwapGasCost.SwapGasCostToJSON;
|
|
2683
|
-
exports.SwapPsbtTransactionDataFromJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSON;
|
|
2684
|
-
exports.SwapPsbtTransactionDataFromJSONTyped = SwapPsbtTransactionData.SwapPsbtTransactionDataFromJSONTyped;
|
|
2685
|
-
exports.SwapPsbtTransactionDataToJSON = SwapPsbtTransactionData.SwapPsbtTransactionDataToJSON;
|
|
2686
2681
|
exports.SwapQuoteRequestFromJSON = SwapQuoteRequest.SwapQuoteRequestFromJSON;
|
|
2687
2682
|
exports.SwapQuoteRequestFromJSONTyped = SwapQuoteRequest.SwapQuoteRequestFromJSONTyped;
|
|
2688
2683
|
Object.defineProperty(exports, 'SwapQuoteRequestOrderEnum', {
|
|
@@ -2699,9 +2694,6 @@ exports.SwapQuoteResponseToJSON = SwapQuoteResponse.SwapQuoteResponseToJSON;
|
|
|
2699
2694
|
exports.SwapQuoteResponseSideFromJSON = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSON;
|
|
2700
2695
|
exports.SwapQuoteResponseSideFromJSONTyped = SwapQuoteResponseSide.SwapQuoteResponseSideFromJSONTyped;
|
|
2701
2696
|
exports.SwapQuoteResponseSideToJSON = SwapQuoteResponseSide.SwapQuoteResponseSideToJSON;
|
|
2702
|
-
exports.SwapSerializedTransactionDataFromJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSON;
|
|
2703
|
-
exports.SwapSerializedTransactionDataFromJSONTyped = SwapSerializedTransactionData.SwapSerializedTransactionDataFromJSONTyped;
|
|
2704
|
-
exports.SwapSerializedTransactionDataToJSON = SwapSerializedTransactionData.SwapSerializedTransactionDataToJSON;
|
|
2705
2697
|
exports.SwapSigningPayloadFromJSON = SwapSigningPayload.SwapSigningPayloadFromJSON;
|
|
2706
2698
|
exports.SwapSigningPayloadFromJSONTyped = SwapSigningPayload.SwapSigningPayloadFromJSONTyped;
|
|
2707
2699
|
exports.SwapSigningPayloadToJSON = SwapSigningPayload.SwapSigningPayloadToJSON;
|
package/src/index.js
CHANGED
|
@@ -118,7 +118,6 @@ export { CheckoutFailureFromJSON, CheckoutFailureFromJSONTyped, CheckoutFailureT
|
|
|
118
118
|
export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON } from './models/CheckoutFeeBreakdown.js';
|
|
119
119
|
export { CheckoutGasEstimateFromJSON, CheckoutGasEstimateFromJSONTyped, CheckoutGasEstimateToJSON } from './models/CheckoutGasEstimate.js';
|
|
120
120
|
export { CheckoutModeEnum, CheckoutModeEnumFromJSON, CheckoutModeEnumFromJSONTyped, CheckoutModeEnumToJSON } from './models/CheckoutModeEnum.js';
|
|
121
|
-
export { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotFromJSONTyped, CheckoutQuoteSnapshotToJSON } from './models/CheckoutQuoteSnapshot.js';
|
|
122
121
|
export { CheckoutRiskStateEnum, CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumFromJSONTyped, CheckoutRiskStateEnumToJSON } from './models/CheckoutRiskStateEnum.js';
|
|
123
122
|
export { CheckoutSettlementDataFromJSON, CheckoutSettlementDataFromJSONTyped, CheckoutSettlementDataToJSON } from './models/CheckoutSettlementData.js';
|
|
124
123
|
export { CheckoutSettlementStateEnum, CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumFromJSONTyped, CheckoutSettlementStateEnumToJSON } from './models/CheckoutSettlementStateEnum.js';
|
|
@@ -127,6 +126,7 @@ export { CheckoutTransactionFromJSON, CheckoutTransactionFromJSONTyped, Checkout
|
|
|
127
126
|
export { CheckoutTransactionCreateRequestFromJSON, CheckoutTransactionCreateRequestFromJSONTyped, CheckoutTransactionCreateRequestToJSON } from './models/CheckoutTransactionCreateRequest.js';
|
|
128
127
|
export { CheckoutTransactionCreateResponseFromJSON, CheckoutTransactionCreateResponseFromJSONTyped, CheckoutTransactionCreateResponseToJSON } from './models/CheckoutTransactionCreateResponse.js';
|
|
129
128
|
export { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressFromJSONTyped, CheckoutTransactionDestinationAddressToJSON } from './models/CheckoutTransactionDestinationAddress.js';
|
|
129
|
+
export { CheckoutTransactionQuoteFromJSON, CheckoutTransactionQuoteFromJSONTyped, CheckoutTransactionQuoteToJSON } from './models/CheckoutTransactionQuote.js';
|
|
130
130
|
export { CheckoutUpdateRequestFromJSON, CheckoutUpdateRequestFromJSONTyped, CheckoutUpdateRequestToJSON } from './models/CheckoutUpdateRequest.js';
|
|
131
131
|
export { CheckoutsResponseFromJSON, CheckoutsResponseFromJSONTyped, CheckoutsResponseToJSON } from './models/CheckoutsResponse.js';
|
|
132
132
|
export { CoinbaseMpcWalletPropertiesFromJSON, CoinbaseMpcWalletPropertiesFromJSONTyped, CoinbaseMpcWalletPropertiesToJSON } from './models/CoinbaseMpcWalletProperties.js';
|
|
@@ -563,12 +563,10 @@ export { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataFromJSONTyped, SwapEvmA
|
|
|
563
563
|
export { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataFromJSONTyped, SwapEvmTransactionDataToJSON } from './models/SwapEvmTransactionData.js';
|
|
564
564
|
export { SwapFeeFromJSON, SwapFeeFromJSONTyped, SwapFeeToJSON } from './models/SwapFee.js';
|
|
565
565
|
export { SwapGasCostFromJSON, SwapGasCostFromJSONTyped, SwapGasCostToJSON } from './models/SwapGasCost.js';
|
|
566
|
-
export { SwapPsbtTransactionDataFromJSON, SwapPsbtTransactionDataFromJSONTyped, SwapPsbtTransactionDataToJSON } from './models/SwapPsbtTransactionData.js';
|
|
567
566
|
export { SwapQuoteRequestFromJSON, SwapQuoteRequestFromJSONTyped, SwapQuoteRequestOrderEnum, SwapQuoteRequestToJSON } from './models/SwapQuoteRequest.js';
|
|
568
567
|
export { SwapQuoteRequestSideFromJSON, SwapQuoteRequestSideFromJSONTyped, SwapQuoteRequestSideToJSON } from './models/SwapQuoteRequestSide.js';
|
|
569
568
|
export { SwapQuoteResponseFromJSON, SwapQuoteResponseFromJSONTyped, SwapQuoteResponseToJSON } from './models/SwapQuoteResponse.js';
|
|
570
569
|
export { SwapQuoteResponseSideFromJSON, SwapQuoteResponseSideFromJSONTyped, SwapQuoteResponseSideToJSON } from './models/SwapQuoteResponseSide.js';
|
|
571
|
-
export { SwapSerializedTransactionDataFromJSON, SwapSerializedTransactionDataFromJSONTyped, SwapSerializedTransactionDataToJSON } from './models/SwapSerializedTransactionData.js';
|
|
572
570
|
export { SwapSigningPayloadFromJSON, SwapSigningPayloadFromJSONTyped, SwapSigningPayloadToJSON } from './models/SwapSigningPayload.js';
|
|
573
571
|
export { SwapStatusRequestFromJSON, SwapStatusRequestFromJSONTyped, SwapStatusRequestToJSON } from './models/SwapStatusRequest.js';
|
|
574
572
|
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
|
@@ -79,7 +79,6 @@ export * from './CheckoutFailure';
|
|
|
79
79
|
export * from './CheckoutFeeBreakdown';
|
|
80
80
|
export * from './CheckoutGasEstimate';
|
|
81
81
|
export * from './CheckoutModeEnum';
|
|
82
|
-
export * from './CheckoutQuoteSnapshot';
|
|
83
82
|
export * from './CheckoutRiskStateEnum';
|
|
84
83
|
export * from './CheckoutSettlementData';
|
|
85
84
|
export * from './CheckoutSettlementStateEnum';
|
|
@@ -88,6 +87,7 @@ export * from './CheckoutTransaction';
|
|
|
88
87
|
export * from './CheckoutTransactionCreateRequest';
|
|
89
88
|
export * from './CheckoutTransactionCreateResponse';
|
|
90
89
|
export * from './CheckoutTransactionDestinationAddress';
|
|
90
|
+
export * from './CheckoutTransactionQuote';
|
|
91
91
|
export * from './CheckoutUpdateRequest';
|
|
92
92
|
export * from './CheckoutsResponse';
|
|
93
93
|
export * from './CoinbaseMpcWalletProperties';
|
|
@@ -524,12 +524,10 @@ export * from './SwapEvmApprovalData';
|
|
|
524
524
|
export * from './SwapEvmTransactionData';
|
|
525
525
|
export * from './SwapFee';
|
|
526
526
|
export * from './SwapGasCost';
|
|
527
|
-
export * from './SwapPsbtTransactionData';
|
|
528
527
|
export * from './SwapQuoteRequest';
|
|
529
528
|
export * from './SwapQuoteRequestSide';
|
|
530
529
|
export * from './SwapQuoteResponse';
|
|
531
530
|
export * from './SwapQuoteResponseSide';
|
|
532
|
-
export * from './SwapSerializedTransactionData';
|
|
533
531
|
export * from './SwapSigningPayload';
|
|
534
532
|
export * from './SwapStatusRequest';
|
|
535
533
|
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 };
|