@dynamic-labs/sdk-api 0.0.1041 → 0.0.1043
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/AdminActionsApi.cjs +5 -4
- package/src/apis/AdminActionsApi.js +5 -4
- package/src/apis/AllowlistsApi.cjs +5 -4
- package/src/apis/AllowlistsApi.js +5 -4
- package/src/apis/AnalyticsApi.cjs +5 -4
- package/src/apis/AnalyticsApi.js +5 -4
- package/src/apis/AuthorizedClientsApi.cjs +5 -4
- package/src/apis/AuthorizedClientsApi.js +5 -4
- package/src/apis/ChainalysisApi.cjs +5 -4
- package/src/apis/ChainalysisApi.js +5 -4
- package/src/apis/ChainsApi.cjs +5 -4
- package/src/apis/ChainsApi.js +5 -4
- package/src/apis/CheckoutApi.cjs +6 -5
- package/src/apis/CheckoutApi.js +6 -5
- package/src/apis/ClientGrantApi.cjs +5 -4
- package/src/apis/ClientGrantApi.js +5 -4
- package/src/apis/CustomFieldsApi.cjs +5 -4
- package/src/apis/CustomFieldsApi.js +5 -4
- package/src/apis/CustomHostnamesApi.cjs +5 -4
- package/src/apis/CustomHostnamesApi.js +5 -4
- package/src/apis/CustomNetworksApi.cjs +5 -4
- package/src/apis/CustomNetworksApi.js +5 -4
- package/src/apis/DeeplinkUrlsApi.cjs +5 -4
- package/src/apis/DeeplinkUrlsApi.js +5 -4
- package/src/apis/EnvironmentsApi.cjs +5 -4
- package/src/apis/EnvironmentsApi.js +5 -4
- package/src/apis/EventsApi.cjs +5 -4
- package/src/apis/EventsApi.js +5 -4
- package/src/apis/ExchangesApi.cjs +5 -4
- package/src/apis/ExchangesApi.js +5 -4
- package/src/apis/ExportsApi.cjs +5 -4
- package/src/apis/ExportsApi.js +5 -4
- package/src/apis/ExternalJwtApi.cjs +5 -4
- package/src/apis/ExternalJwtApi.js +5 -4
- package/src/apis/GatesApi.cjs +5 -4
- package/src/apis/GatesApi.js +5 -4
- package/src/apis/GlobalWalletAccessControlApi.cjs +5 -4
- package/src/apis/GlobalWalletAccessControlApi.js +5 -4
- package/src/apis/GlobalWalletConnectionsApi.cjs +5 -4
- package/src/apis/GlobalWalletConnectionsApi.js +5 -4
- package/src/apis/GlobalWalletsApi.cjs +5 -4
- package/src/apis/GlobalWalletsApi.js +5 -4
- package/src/apis/InvitesApi.cjs +5 -4
- package/src/apis/InvitesApi.js +5 -4
- package/src/apis/MembersApi.cjs +5 -4
- package/src/apis/MembersApi.js +5 -4
- package/src/apis/MfaSettingsApi.cjs +5 -4
- package/src/apis/MfaSettingsApi.js +5 -4
- package/src/apis/NameServicesApi.cjs +5 -4
- package/src/apis/NameServicesApi.js +5 -4
- package/src/apis/OrganizationSettingsApi.cjs +5 -4
- package/src/apis/OrganizationSettingsApi.js +5 -4
- package/src/apis/OrganizationsApi.cjs +5 -4
- package/src/apis/OrganizationsApi.js +5 -4
- package/src/apis/OriginsApi.cjs +5 -4
- package/src/apis/OriginsApi.js +5 -4
- package/src/apis/ProjectsApi.cjs +5 -4
- package/src/apis/ProjectsApi.js +5 -4
- package/src/apis/ProvidersApi.cjs +5 -4
- package/src/apis/ProvidersApi.js +5 -4
- package/src/apis/SDKApi.cjs +225 -287
- package/src/apis/SDKApi.d.ts +112 -140
- package/src/apis/SDKApi.js +225 -287
- package/src/apis/SDKViewsApi.cjs +5 -4
- package/src/apis/SDKViewsApi.js +5 -4
- package/src/apis/SessionsApi.cjs +5 -4
- package/src/apis/SessionsApi.js +5 -4
- package/src/apis/TestAccountApi.cjs +5 -4
- package/src/apis/TestAccountApi.js +5 -4
- package/src/apis/TokensApi.cjs +5 -4
- package/src/apis/TokensApi.js +5 -4
- package/src/apis/UserApiTokensApi.cjs +5 -4
- package/src/apis/UserApiTokensApi.js +5 -4
- package/src/apis/UsersApi.cjs +5 -4
- package/src/apis/UsersApi.js +5 -4
- package/src/apis/VisitsApi.cjs +5 -4
- package/src/apis/VisitsApi.js +5 -4
- package/src/apis/WaasApi.cjs +5 -4
- package/src/apis/WaasApi.js +5 -4
- package/src/apis/WalletConnectApi.cjs +5 -4
- package/src/apis/WalletConnectApi.js +5 -4
- package/src/apis/WalletsApi.cjs +5 -4
- package/src/apis/WalletsApi.js +5 -4
- package/src/apis/WebhooksApi.cjs +5 -4
- package/src/apis/WebhooksApi.js +5 -4
- package/src/index.cjs +100 -68
- package/src/index.js +20 -13
- package/src/models/AttachSourceRequest.cjs +3 -3
- package/src/models/AttachSourceRequest.d.ts +3 -3
- package/src/models/AttachSourceRequest.js +3 -3
- package/src/models/CheckoutTransaction.cjs +24 -24
- package/src/models/CheckoutTransaction.d.ts +24 -24
- package/src/models/CheckoutTransaction.js +24 -24
- package/src/models/Flow.cjs +109 -0
- package/src/models/Flow.d.ts +231 -0
- package/src/models/Flow.js +103 -0
- package/src/models/FlowAttachSourceRequest.cjs +44 -0
- package/src/models/FlowAttachSourceRequest.d.ts +54 -0
- package/src/models/FlowAttachSourceRequest.js +38 -0
- package/src/models/FlowCreateRequest.cjs +45 -0
- package/src/models/FlowCreateRequest.d.ts +59 -0
- package/src/models/FlowCreateRequest.js +39 -0
- package/src/models/FlowCreateResponse.cjs +33 -0
- package/src/models/FlowCreateResponse.d.ts +28 -0
- package/src/models/FlowCreateResponse.js +27 -0
- package/src/models/{CheckoutTransactionExchangeSource.cjs → FlowExchangeSource.cjs} +7 -7
- package/src/models/FlowExchangeSource.d.ts +33 -0
- package/src/models/{CheckoutTransactionExchangeSource.js → FlowExchangeSource.js} +5 -5
- package/src/models/FlowExecutionStateEnum.cjs +47 -0
- package/src/models/{CheckoutExecutionStateEnum.d.ts → FlowExecutionStateEnum.d.ts} +5 -5
- package/src/models/FlowExecutionStateEnum.js +41 -0
- package/src/models/{CheckoutFailure.cjs → FlowFailure.cjs} +7 -7
- package/src/models/{CheckoutFailure.d.ts → FlowFailure.d.ts} +12 -12
- package/src/models/{CheckoutFailure.js → FlowFailure.js} +5 -5
- package/src/models/FlowFeeBreakdown.cjs +36 -0
- package/src/models/FlowFeeBreakdown.d.ts +34 -0
- package/src/models/FlowFeeBreakdown.js +30 -0
- package/src/models/{CheckoutGasEstimate.cjs → FlowGasEstimate.cjs} +7 -7
- package/src/models/{CheckoutGasEstimate.d.ts → FlowGasEstimate.d.ts} +9 -9
- package/src/models/{CheckoutGasEstimate.js → FlowGasEstimate.js} +5 -5
- package/src/models/FlowModeEnum.cjs +41 -0
- package/src/models/FlowModeEnum.d.ts +24 -0
- package/src/models/FlowModeEnum.js +35 -0
- package/src/models/{PrepareSigningRequest.cjs → FlowPrepareSigningRequest.cjs} +7 -7
- package/src/models/FlowPrepareSigningRequest.d.ts +33 -0
- package/src/models/{PrepareSigningRequest.js → FlowPrepareSigningRequest.js} +5 -5
- package/src/models/{CheckoutTransactionQuote.cjs → FlowQuote.cjs} +10 -10
- package/src/models/{CheckoutTransactionQuote.d.ts → FlowQuote.d.ts} +18 -18
- package/src/models/{CheckoutTransactionQuote.js → FlowQuote.js} +8 -8
- package/src/models/{QuoteRequest.cjs → FlowQuoteRequest.cjs} +7 -7
- package/src/models/FlowQuoteRequest.d.ts +39 -0
- package/src/models/{QuoteRequest.js → FlowQuoteRequest.js} +5 -5
- package/src/models/{RecordBroadcastRequest.cjs → FlowRecordBroadcastRequest.cjs} +7 -7
- package/src/models/FlowRecordBroadcastRequest.d.ts +27 -0
- package/src/models/{RecordBroadcastRequest.js → FlowRecordBroadcastRequest.js} +5 -5
- package/src/models/FlowRiskStateEnum.cjs +43 -0
- package/src/models/{CheckoutRiskStateEnum.d.ts → FlowRiskStateEnum.d.ts} +5 -5
- package/src/models/FlowRiskStateEnum.js +37 -0
- package/src/models/{CheckoutSettlementData.cjs → FlowSettlementData.cjs} +7 -7
- package/src/models/{CheckoutSettlementData.d.ts → FlowSettlementData.d.ts} +10 -10
- package/src/models/{CheckoutSettlementData.js → FlowSettlementData.js} +5 -5
- package/src/models/FlowSettlementStateEnum.cjs +45 -0
- package/src/models/{CheckoutSettlementStateEnum.d.ts → FlowSettlementStateEnum.d.ts} +5 -5
- package/src/models/FlowSettlementStateEnum.js +39 -0
- package/src/models/FlowSourceResponse.cjs +37 -0
- package/src/models/FlowSourceResponse.d.ts +40 -0
- package/src/models/FlowSourceResponse.js +31 -0
- package/src/models/FlowSourceTypeEnum.cjs +41 -0
- package/src/models/FlowSourceTypeEnum.d.ts +24 -0
- package/src/models/FlowSourceTypeEnum.js +35 -0
- package/src/models/SwapSigningPayload.cjs +3 -0
- package/src/models/SwapSigningPayload.d.ts +8 -1
- package/src/models/SwapSigningPayload.js +3 -0
- package/src/models/SwapTronTransactionData.cjs +47 -0
- package/src/models/SwapTronTransactionData.d.ts +39 -0
- package/src/models/SwapTronTransactionData.js +41 -0
- package/src/models/TokenScopes.cjs +1 -0
- package/src/models/TokenScopes.d.ts +2 -1
- package/src/models/TokenScopes.js +1 -0
- package/src/models/index.d.ts +20 -13
- package/src/models/CheckoutExecutionStateEnum.cjs +0 -47
- package/src/models/CheckoutExecutionStateEnum.js +0 -41
- package/src/models/CheckoutFeeBreakdown.cjs +0 -36
- package/src/models/CheckoutFeeBreakdown.d.ts +0 -34
- package/src/models/CheckoutFeeBreakdown.js +0 -30
- package/src/models/CheckoutRiskStateEnum.cjs +0 -43
- package/src/models/CheckoutRiskStateEnum.js +0 -37
- package/src/models/CheckoutSettlementStateEnum.cjs +0 -45
- package/src/models/CheckoutSettlementStateEnum.js +0 -39
- package/src/models/CheckoutSourceTypeEnum.cjs +0 -41
- package/src/models/CheckoutSourceTypeEnum.d.ts +0 -24
- package/src/models/CheckoutSourceTypeEnum.js +0 -35
- package/src/models/CheckoutTransactionExchangeSource.d.ts +0 -33
- package/src/models/PrepareSigningRequest.d.ts +0 -33
- package/src/models/QuoteRequest.d.ts +0 -40
- package/src/models/RecordBroadcastRequest.d.ts +0 -27
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FlowFromJSON, FlowToJSON } from './Flow.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowSourceResponseFromJSON(json) {
|
|
5
|
+
return FlowSourceResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowSourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'sessionExpiresAt': (new Date(json['sessionExpiresAt'])),
|
|
13
|
+
'sessionToken': json['sessionToken'],
|
|
14
|
+
'flow': FlowFromJSON(json['flow']),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function FlowSourceResponseToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'sessionExpiresAt': (value.sessionExpiresAt.toISOString()),
|
|
26
|
+
'sessionToken': value.sessionToken,
|
|
27
|
+
'flow': FlowToJSON(value.flow),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { FlowSourceResponseFromJSON, FlowSourceResponseFromJSONTyped, FlowSourceResponseToJSON };
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
/**
|
|
19
|
+
* How a flow is funded — a connected wallet, a CEX, or a deposit address.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.FlowSourceTypeEnum = void 0;
|
|
24
|
+
(function (FlowSourceTypeEnum) {
|
|
25
|
+
FlowSourceTypeEnum["Wallet"] = "wallet";
|
|
26
|
+
FlowSourceTypeEnum["Exchange"] = "exchange";
|
|
27
|
+
FlowSourceTypeEnum["DepositAddress"] = "deposit_address";
|
|
28
|
+
})(exports.FlowSourceTypeEnum || (exports.FlowSourceTypeEnum = {}));
|
|
29
|
+
function FlowSourceTypeEnumFromJSON(json) {
|
|
30
|
+
return FlowSourceTypeEnumFromJSONTyped(json);
|
|
31
|
+
}
|
|
32
|
+
function FlowSourceTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
function FlowSourceTypeEnumToJSON(value) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.FlowSourceTypeEnumFromJSON = FlowSourceTypeEnumFromJSON;
|
|
40
|
+
exports.FlowSourceTypeEnumFromJSONTyped = FlowSourceTypeEnumFromJSONTyped;
|
|
41
|
+
exports.FlowSourceTypeEnumToJSON = FlowSourceTypeEnumToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* How a flow is funded — a connected wallet, a CEX, or a deposit address.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum FlowSourceTypeEnum {
|
|
18
|
+
Wallet = "wallet",
|
|
19
|
+
Exchange = "exchange",
|
|
20
|
+
DepositAddress = "deposit_address"
|
|
21
|
+
}
|
|
22
|
+
export declare function FlowSourceTypeEnumFromJSON(json: any): FlowSourceTypeEnum;
|
|
23
|
+
export declare function FlowSourceTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowSourceTypeEnum;
|
|
24
|
+
export declare function FlowSourceTypeEnumToJSON(value?: FlowSourceTypeEnum | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* How a flow is funded — a connected wallet, a CEX, or a deposit address.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var FlowSourceTypeEnum;
|
|
20
|
+
(function (FlowSourceTypeEnum) {
|
|
21
|
+
FlowSourceTypeEnum["Wallet"] = "wallet";
|
|
22
|
+
FlowSourceTypeEnum["Exchange"] = "exchange";
|
|
23
|
+
FlowSourceTypeEnum["DepositAddress"] = "deposit_address";
|
|
24
|
+
})(FlowSourceTypeEnum || (FlowSourceTypeEnum = {}));
|
|
25
|
+
function FlowSourceTypeEnumFromJSON(json) {
|
|
26
|
+
return FlowSourceTypeEnumFromJSONTyped(json);
|
|
27
|
+
}
|
|
28
|
+
function FlowSourceTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
function FlowSourceTypeEnumToJSON(value) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { FlowSourceTypeEnum, FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumFromJSONTyped, FlowSourceTypeEnumToJSON };
|
|
@@ -6,6 +6,7 @@ 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 SwapTronTransactionData = require('./SwapTronTransactionData.cjs');
|
|
9
10
|
|
|
10
11
|
/* tslint:disable */
|
|
11
12
|
function SwapSigningPayloadFromJSON(json) {
|
|
@@ -22,6 +23,7 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
23
|
'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : SwapEvmApprovalData.SwapEvmApprovalDataFromJSON(json['evmApproval']),
|
|
23
24
|
'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
|
|
24
25
|
'psbt': !runtime.exists(json, 'psbt') ? undefined : json['psbt'],
|
|
26
|
+
'tronTransaction': !runtime.exists(json, 'tronTransaction') ? undefined : SwapTronTransactionData.SwapTronTransactionDataFromJSON(json['tronTransaction']),
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
function SwapSigningPayloadToJSON(value) {
|
|
@@ -38,6 +40,7 @@ function SwapSigningPayloadToJSON(value) {
|
|
|
38
40
|
'evmApproval': SwapEvmApprovalData.SwapEvmApprovalDataToJSON(value.evmApproval),
|
|
39
41
|
'serializedTransaction': value.serializedTransaction,
|
|
40
42
|
'psbt': value.psbt,
|
|
43
|
+
'tronTransaction': SwapTronTransactionData.SwapTronTransactionDataToJSON(value.tronTransaction),
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
13
|
import { SwapEvmApprovalData } from './SwapEvmApprovalData';
|
|
14
14
|
import { SwapEvmTransactionData } from './SwapEvmTransactionData';
|
|
15
|
+
import { SwapTronTransactionData } from './SwapTronTransactionData';
|
|
15
16
|
/**
|
|
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.
|
|
17
|
+
* Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbt. TRON uses tronTransaction.
|
|
17
18
|
* @export
|
|
18
19
|
* @interface SwapSigningPayload
|
|
19
20
|
*/
|
|
@@ -54,6 +55,12 @@ export interface SwapSigningPayload {
|
|
|
54
55
|
* @memberof SwapSigningPayload
|
|
55
56
|
*/
|
|
56
57
|
psbt?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {SwapTronTransactionData}
|
|
61
|
+
* @memberof SwapSigningPayload
|
|
62
|
+
*/
|
|
63
|
+
tronTransaction?: SwapTronTransactionData;
|
|
57
64
|
}
|
|
58
65
|
export declare function SwapSigningPayloadFromJSON(json: any): SwapSigningPayload;
|
|
59
66
|
export declare function SwapSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapSigningPayload;
|
|
@@ -2,6 +2,7 @@ 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 { SwapTronTransactionDataFromJSON, SwapTronTransactionDataToJSON } from './SwapTronTransactionData.js';
|
|
5
6
|
|
|
6
7
|
/* tslint:disable */
|
|
7
8
|
function SwapSigningPayloadFromJSON(json) {
|
|
@@ -18,6 +19,7 @@ function SwapSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
19
|
'evmApproval': !exists(json, 'evmApproval') ? undefined : SwapEvmApprovalDataFromJSON(json['evmApproval']),
|
|
19
20
|
'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : json['serializedTransaction'],
|
|
20
21
|
'psbt': !exists(json, 'psbt') ? undefined : json['psbt'],
|
|
22
|
+
'tronTransaction': !exists(json, 'tronTransaction') ? undefined : SwapTronTransactionDataFromJSON(json['tronTransaction']),
|
|
21
23
|
};
|
|
22
24
|
}
|
|
23
25
|
function SwapSigningPayloadToJSON(value) {
|
|
@@ -34,6 +36,7 @@ function SwapSigningPayloadToJSON(value) {
|
|
|
34
36
|
'evmApproval': SwapEvmApprovalDataToJSON(value.evmApproval),
|
|
35
37
|
'serializedTransaction': value.serializedTransaction,
|
|
36
38
|
'psbt': value.psbt,
|
|
39
|
+
'tronTransaction': SwapTronTransactionDataToJSON(value.tronTransaction),
|
|
37
40
|
};
|
|
38
41
|
}
|
|
39
42
|
|
|
@@ -0,0 +1,47 @@
|
|
|
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 SwapTronTransactionDataFromJSON(json) {
|
|
19
|
+
return SwapTronTransactionDataFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function SwapTronTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'rawDataHex': json['rawDataHex'],
|
|
27
|
+
'to': json['to'],
|
|
28
|
+
'value': json['value'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function SwapTronTransactionDataToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'rawDataHex': value.rawDataHex,
|
|
40
|
+
'to': value.to,
|
|
41
|
+
'value': value.value,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.SwapTronTransactionDataFromJSON = SwapTronTransactionDataFromJSON;
|
|
46
|
+
exports.SwapTronTransactionDataFromJSONTyped = SwapTronTransactionDataFromJSONTyped;
|
|
47
|
+
exports.SwapTronTransactionDataToJSON = SwapTronTransactionDataToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 SwapTronTransactionData
|
|
16
|
+
*/
|
|
17
|
+
export interface SwapTronTransactionData {
|
|
18
|
+
/**
|
|
19
|
+
* Hex-encoded serialized Tron raw_data protobuf (a TriggerSmartContract call to the swap router). This is the full signable transaction; the Tron signer derives the txID (sha256 of raw_data) and signs it.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SwapTronTransactionData
|
|
22
|
+
*/
|
|
23
|
+
rawDataHex: string;
|
|
24
|
+
/**
|
|
25
|
+
* Router contract address (base58), for display only
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SwapTronTransactionData
|
|
28
|
+
*/
|
|
29
|
+
to: string;
|
|
30
|
+
/**
|
|
31
|
+
* Native TRX amount in sun (hex string, "0x0" if token-only)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SwapTronTransactionData
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function SwapTronTransactionDataFromJSON(json: any): SwapTronTransactionData;
|
|
38
|
+
export declare function SwapTronTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapTronTransactionData;
|
|
39
|
+
export declare function SwapTronTransactionDataToJSON(value?: SwapTronTransactionData | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 SwapTronTransactionDataFromJSON(json) {
|
|
15
|
+
return SwapTronTransactionDataFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function SwapTronTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'rawDataHex': json['rawDataHex'],
|
|
23
|
+
'to': json['to'],
|
|
24
|
+
'value': json['value'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function SwapTronTransactionDataToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'rawDataHex': value.rawDataHex,
|
|
36
|
+
'to': value.to,
|
|
37
|
+
'value': value.value,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { SwapTronTransactionDataFromJSON, SwapTronTransactionDataFromJSONTyped, SwapTronTransactionDataToJSON };
|
|
@@ -39,6 +39,7 @@ exports.TokenScopes = void 0;
|
|
|
39
39
|
TokenScopes["EnvironmentBalancesRead"] = "environment.balances.read";
|
|
40
40
|
TokenScopes["GaslessRead"] = "gasless.read";
|
|
41
41
|
TokenScopes["GaslessWrite"] = "gasless.write";
|
|
42
|
+
TokenScopes["FlowWrite"] = "flow.write";
|
|
42
43
|
})(exports.TokenScopes || (exports.TokenScopes = {}));
|
|
43
44
|
function TokenScopesFromJSON(json) {
|
|
44
45
|
return TokenScopesFromJSONTyped(json);
|
|
@@ -31,7 +31,8 @@ export declare enum TokenScopes {
|
|
|
31
31
|
EnvironmentEventsWrite = "environment.events.write",
|
|
32
32
|
EnvironmentBalancesRead = "environment.balances.read",
|
|
33
33
|
GaslessRead = "gasless.read",
|
|
34
|
-
GaslessWrite = "gasless.write"
|
|
34
|
+
GaslessWrite = "gasless.write",
|
|
35
|
+
FlowWrite = "flow.write"
|
|
35
36
|
}
|
|
36
37
|
export declare function TokenScopesFromJSON(json: any): TokenScopes;
|
|
37
38
|
export declare function TokenScopesFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenScopes;
|
|
@@ -35,6 +35,7 @@ var TokenScopes;
|
|
|
35
35
|
TokenScopes["EnvironmentBalancesRead"] = "environment.balances.read";
|
|
36
36
|
TokenScopes["GaslessRead"] = "gasless.read";
|
|
37
37
|
TokenScopes["GaslessWrite"] = "gasless.write";
|
|
38
|
+
TokenScopes["FlowWrite"] = "flow.write";
|
|
38
39
|
})(TokenScopes || (TokenScopes = {}));
|
|
39
40
|
function TokenScopesFromJSON(json) {
|
|
40
41
|
return TokenScopesFromJSONTyped(json);
|
package/src/models/index.d.ts
CHANGED
|
@@ -88,21 +88,11 @@ export * from './ChainalysisCheckResultEnum';
|
|
|
88
88
|
export * from './ChainalysisConfiguration';
|
|
89
89
|
export * from './Checkout';
|
|
90
90
|
export * from './CheckoutCreateRequest';
|
|
91
|
-
export * from './CheckoutExecutionStateEnum';
|
|
92
|
-
export * from './CheckoutFailure';
|
|
93
|
-
export * from './CheckoutFeeBreakdown';
|
|
94
|
-
export * from './CheckoutGasEstimate';
|
|
95
91
|
export * from './CheckoutModeEnum';
|
|
96
|
-
export * from './CheckoutRiskStateEnum';
|
|
97
|
-
export * from './CheckoutSettlementData';
|
|
98
|
-
export * from './CheckoutSettlementStateEnum';
|
|
99
|
-
export * from './CheckoutSourceTypeEnum';
|
|
100
92
|
export * from './CheckoutTransaction';
|
|
101
93
|
export * from './CheckoutTransactionCreateRequest';
|
|
102
94
|
export * from './CheckoutTransactionCreateResponse';
|
|
103
95
|
export * from './CheckoutTransactionDestinationAddress';
|
|
104
|
-
export * from './CheckoutTransactionExchangeSource';
|
|
105
|
-
export * from './CheckoutTransactionQuote';
|
|
106
96
|
export * from './CheckoutUpdateRequest';
|
|
107
97
|
export * from './CheckoutsResponse';
|
|
108
98
|
export * from './ClientMetadata';
|
|
@@ -245,6 +235,25 @@ export * from './ExternalWalletFundingDefaultSettingsToken';
|
|
|
245
235
|
export * from './ExternalWalletFundingTokenRule';
|
|
246
236
|
export * from './FarcasterSignInRequest';
|
|
247
237
|
export * from './FeatureFlags';
|
|
238
|
+
export * from './Flow';
|
|
239
|
+
export * from './FlowAttachSourceRequest';
|
|
240
|
+
export * from './FlowCreateRequest';
|
|
241
|
+
export * from './FlowCreateResponse';
|
|
242
|
+
export * from './FlowExchangeSource';
|
|
243
|
+
export * from './FlowExecutionStateEnum';
|
|
244
|
+
export * from './FlowFailure';
|
|
245
|
+
export * from './FlowFeeBreakdown';
|
|
246
|
+
export * from './FlowGasEstimate';
|
|
247
|
+
export * from './FlowModeEnum';
|
|
248
|
+
export * from './FlowPrepareSigningRequest';
|
|
249
|
+
export * from './FlowQuote';
|
|
250
|
+
export * from './FlowQuoteRequest';
|
|
251
|
+
export * from './FlowRecordBroadcastRequest';
|
|
252
|
+
export * from './FlowRiskStateEnum';
|
|
253
|
+
export * from './FlowSettlementData';
|
|
254
|
+
export * from './FlowSettlementStateEnum';
|
|
255
|
+
export * from './FlowSourceResponse';
|
|
256
|
+
export * from './FlowSourceTypeEnum';
|
|
248
257
|
export * from './Forbidden';
|
|
249
258
|
export * from './ForbiddenErrorPayload';
|
|
250
259
|
export * from './ForbiddenWithErrorAndPayload';
|
|
@@ -442,7 +451,6 @@ export * from './PostAllowlistEntriesRequest';
|
|
|
442
451
|
export * from './PostAllowlistsRequest';
|
|
443
452
|
export * from './PostTokenFields';
|
|
444
453
|
export * from './PrefetchRequest';
|
|
445
|
-
export * from './PrepareSigningRequest';
|
|
446
454
|
export * from './PriceData';
|
|
447
455
|
export * from './Project';
|
|
448
456
|
export * from './ProjectEnvironment';
|
|
@@ -488,11 +496,9 @@ export * from './PublicKeyCredentialType';
|
|
|
488
496
|
export * from './PublicKeyCredentialUserEntity';
|
|
489
497
|
export * from './PublishEvents';
|
|
490
498
|
export * from './PublishEventsEvents';
|
|
491
|
-
export * from './QuoteRequest';
|
|
492
499
|
export * from './RampConfiguration';
|
|
493
500
|
export * from './ReactSettings';
|
|
494
501
|
export * from './RealtimeAuthTokenResponse';
|
|
495
|
-
export * from './RecordBroadcastRequest';
|
|
496
502
|
export * from './RecoverMultipleClientKeySharesRequest';
|
|
497
503
|
export * from './RecoverMultipleClientKeySharesResponse';
|
|
498
504
|
export * from './RefreshKeySharesRequest';
|
|
@@ -595,6 +601,7 @@ export * from './SwapStatusResponse';
|
|
|
595
601
|
export * from './SwapStep';
|
|
596
602
|
export * from './SwapStepSide';
|
|
597
603
|
export * from './SwapToken';
|
|
604
|
+
export * from './SwapTronTransactionData';
|
|
598
605
|
export * from './TelegramPostRequest';
|
|
599
606
|
export * from './TelegramUser';
|
|
600
607
|
export * from './TestAccountResponse';
|
|
@@ -1,47 +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
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @enum {string}
|
|
22
|
-
*/
|
|
23
|
-
exports.CheckoutExecutionStateEnum = void 0;
|
|
24
|
-
(function (CheckoutExecutionStateEnum) {
|
|
25
|
-
CheckoutExecutionStateEnum["Initiated"] = "initiated";
|
|
26
|
-
CheckoutExecutionStateEnum["SourceAttached"] = "source_attached";
|
|
27
|
-
CheckoutExecutionStateEnum["Quoted"] = "quoted";
|
|
28
|
-
CheckoutExecutionStateEnum["Signing"] = "signing";
|
|
29
|
-
CheckoutExecutionStateEnum["Broadcasted"] = "broadcasted";
|
|
30
|
-
CheckoutExecutionStateEnum["SourceConfirmed"] = "source_confirmed";
|
|
31
|
-
CheckoutExecutionStateEnum["Cancelled"] = "cancelled";
|
|
32
|
-
CheckoutExecutionStateEnum["Expired"] = "expired";
|
|
33
|
-
CheckoutExecutionStateEnum["Failed"] = "failed";
|
|
34
|
-
})(exports.CheckoutExecutionStateEnum || (exports.CheckoutExecutionStateEnum = {}));
|
|
35
|
-
function CheckoutExecutionStateEnumFromJSON(json) {
|
|
36
|
-
return CheckoutExecutionStateEnumFromJSONTyped(json);
|
|
37
|
-
}
|
|
38
|
-
function CheckoutExecutionStateEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
function CheckoutExecutionStateEnumToJSON(value) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
exports.CheckoutExecutionStateEnumFromJSON = CheckoutExecutionStateEnumFromJSON;
|
|
46
|
-
exports.CheckoutExecutionStateEnumFromJSONTyped = CheckoutExecutionStateEnumFromJSONTyped;
|
|
47
|
-
exports.CheckoutExecutionStateEnumToJSON = CheckoutExecutionStateEnumToJSON;
|
|
@@ -1,41 +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
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @enum {string}
|
|
18
|
-
*/
|
|
19
|
-
var CheckoutExecutionStateEnum;
|
|
20
|
-
(function (CheckoutExecutionStateEnum) {
|
|
21
|
-
CheckoutExecutionStateEnum["Initiated"] = "initiated";
|
|
22
|
-
CheckoutExecutionStateEnum["SourceAttached"] = "source_attached";
|
|
23
|
-
CheckoutExecutionStateEnum["Quoted"] = "quoted";
|
|
24
|
-
CheckoutExecutionStateEnum["Signing"] = "signing";
|
|
25
|
-
CheckoutExecutionStateEnum["Broadcasted"] = "broadcasted";
|
|
26
|
-
CheckoutExecutionStateEnum["SourceConfirmed"] = "source_confirmed";
|
|
27
|
-
CheckoutExecutionStateEnum["Cancelled"] = "cancelled";
|
|
28
|
-
CheckoutExecutionStateEnum["Expired"] = "expired";
|
|
29
|
-
CheckoutExecutionStateEnum["Failed"] = "failed";
|
|
30
|
-
})(CheckoutExecutionStateEnum || (CheckoutExecutionStateEnum = {}));
|
|
31
|
-
function CheckoutExecutionStateEnumFromJSON(json) {
|
|
32
|
-
return CheckoutExecutionStateEnumFromJSONTyped(json);
|
|
33
|
-
}
|
|
34
|
-
function CheckoutExecutionStateEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
function CheckoutExecutionStateEnumToJSON(value) {
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { CheckoutExecutionStateEnum, CheckoutExecutionStateEnumFromJSON, CheckoutExecutionStateEnumFromJSONTyped, CheckoutExecutionStateEnumToJSON };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
|
-
var CheckoutGasEstimate = require('./CheckoutGasEstimate.cjs');
|
|
7
|
-
|
|
8
|
-
/* tslint:disable */
|
|
9
|
-
function CheckoutFeeBreakdownFromJSON(json) {
|
|
10
|
-
return CheckoutFeeBreakdownFromJSONTyped(json);
|
|
11
|
-
}
|
|
12
|
-
function CheckoutFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if ((json === undefined) || (json === null)) {
|
|
14
|
-
return json;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
'totalFeeUsd': !runtime.exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
|
|
18
|
-
'gasEstimate': !runtime.exists(json, 'gasEstimate') ? undefined : CheckoutGasEstimate.CheckoutGasEstimateFromJSON(json['gasEstimate']),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function CheckoutFeeBreakdownToJSON(value) {
|
|
22
|
-
if (value === undefined) {
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
25
|
-
if (value === null) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
'totalFeeUsd': value.totalFeeUsd,
|
|
30
|
-
'gasEstimate': CheckoutGasEstimate.CheckoutGasEstimateToJSON(value.gasEstimate),
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
exports.CheckoutFeeBreakdownFromJSON = CheckoutFeeBreakdownFromJSON;
|
|
35
|
-
exports.CheckoutFeeBreakdownFromJSONTyped = CheckoutFeeBreakdownFromJSONTyped;
|
|
36
|
-
exports.CheckoutFeeBreakdownToJSON = CheckoutFeeBreakdownToJSON;
|
|
@@ -1,34 +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 { CheckoutGasEstimate } from './CheckoutGasEstimate';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CheckoutFeeBreakdown
|
|
17
|
-
*/
|
|
18
|
-
export interface CheckoutFeeBreakdown {
|
|
19
|
-
/**
|
|
20
|
-
* Total fees for the transaction in USD
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CheckoutFeeBreakdown
|
|
23
|
-
*/
|
|
24
|
-
totalFeeUsd?: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {CheckoutGasEstimate}
|
|
28
|
-
* @memberof CheckoutFeeBreakdown
|
|
29
|
-
*/
|
|
30
|
-
gasEstimate?: CheckoutGasEstimate;
|
|
31
|
-
}
|
|
32
|
-
export declare function CheckoutFeeBreakdownFromJSON(json: any): CheckoutFeeBreakdown;
|
|
33
|
-
export declare function CheckoutFeeBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutFeeBreakdown;
|
|
34
|
-
export declare function CheckoutFeeBreakdownToJSON(value?: CheckoutFeeBreakdown | null): any;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
|
-
import { CheckoutGasEstimateFromJSON, CheckoutGasEstimateToJSON } from './CheckoutGasEstimate.js';
|
|
3
|
-
|
|
4
|
-
/* tslint:disable */
|
|
5
|
-
function CheckoutFeeBreakdownFromJSON(json) {
|
|
6
|
-
return CheckoutFeeBreakdownFromJSONTyped(json);
|
|
7
|
-
}
|
|
8
|
-
function CheckoutFeeBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
-
if ((json === undefined) || (json === null)) {
|
|
10
|
-
return json;
|
|
11
|
-
}
|
|
12
|
-
return {
|
|
13
|
-
'totalFeeUsd': !exists(json, 'totalFeeUsd') ? undefined : json['totalFeeUsd'],
|
|
14
|
-
'gasEstimate': !exists(json, 'gasEstimate') ? undefined : CheckoutGasEstimateFromJSON(json['gasEstimate']),
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function CheckoutFeeBreakdownToJSON(value) {
|
|
18
|
-
if (value === undefined) {
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
if (value === null) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
'totalFeeUsd': value.totalFeeUsd,
|
|
26
|
-
'gasEstimate': CheckoutGasEstimateToJSON(value.gasEstimate),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { CheckoutFeeBreakdownFromJSON, CheckoutFeeBreakdownFromJSONTyped, CheckoutFeeBreakdownToJSON };
|