@dynamic-labs/sdk-api-core 0.0.911 → 0.0.913
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 +128 -0
- package/src/apis/SDKApi.d.ts +51 -1
- package/src/apis/SDKApi.js +128 -0
- package/src/apis/WaasApi.cjs +2 -0
- package/src/apis/WaasApi.js +2 -0
- package/src/index.cjs +76 -20
- package/src/index.js +17 -5
- package/src/models/Checkout.cjs +0 -2
- package/src/models/Checkout.d.ts +0 -6
- package/src/models/Checkout.js +0 -2
- package/src/models/CheckoutCreateRequest.cjs +0 -2
- package/src/models/CheckoutCreateRequest.d.ts +0 -6
- package/src/models/CheckoutCreateRequest.js +0 -2
- package/src/models/CheckoutTransaction.cjs +5 -5
- package/src/models/CheckoutTransaction.d.ts +5 -5
- package/src/models/CheckoutTransaction.js +5 -5
- package/src/models/CheckoutTransactionCreateRequest.cjs +2 -2
- package/src/models/CheckoutTransactionCreateRequest.d.ts +2 -2
- package/src/models/CheckoutTransactionCreateRequest.js +2 -2
- package/src/models/CheckoutUpdateRequest.cjs +0 -2
- package/src/models/CheckoutUpdateRequest.d.ts +0 -6
- package/src/models/CheckoutUpdateRequest.js +0 -2
- package/src/models/{CheckoutEvmApprovalData.cjs → SwapEvmApprovalData.cjs} +7 -7
- package/src/models/{CheckoutEvmApprovalData.d.ts → SwapEvmApprovalData.d.ts} +8 -8
- package/src/models/{CheckoutEvmApprovalData.js → SwapEvmApprovalData.js} +5 -5
- package/src/models/SwapEvmTransactionData.cjs +47 -0
- package/src/models/SwapEvmTransactionData.d.ts +69 -0
- package/src/models/SwapEvmTransactionData.js +41 -0
- package/src/models/SwapFee.cjs +42 -0
- package/src/models/SwapFee.d.ts +52 -0
- package/src/models/SwapFee.js +36 -0
- package/src/models/SwapGasCost.cjs +38 -0
- package/src/models/SwapGasCost.d.ts +40 -0
- package/src/models/SwapGasCost.js +32 -0
- package/src/models/{CheckoutPsbtTransactionData.cjs → SwapPsbtTransactionData.cjs} +7 -7
- package/src/models/SwapPsbtTransactionData.d.ts +27 -0
- package/src/models/{CheckoutPsbtTransactionData.js → SwapPsbtTransactionData.js} +5 -5
- package/src/models/SwapQuoteRequest.cjs +51 -0
- package/src/models/SwapQuoteRequest.d.ts +60 -0
- package/src/models/SwapQuoteRequest.js +45 -0
- package/src/models/SwapQuoteRequestSide.cjs +42 -0
- package/src/models/SwapQuoteRequestSide.d.ts +52 -0
- package/src/models/SwapQuoteRequestSide.js +36 -0
- package/src/models/SwapQuoteResponse.cjs +51 -0
- package/src/models/SwapQuoteResponse.d.ts +73 -0
- package/src/models/SwapQuoteResponse.js +45 -0
- package/src/models/SwapQuoteResponseSide.cjs +42 -0
- package/src/models/SwapQuoteResponseSide.d.ts +52 -0
- package/src/models/SwapQuoteResponseSide.js +36 -0
- package/src/models/{CheckoutSerializedTransactionData.cjs → SwapSerializedTransactionData.cjs} +7 -7
- package/src/models/SwapSerializedTransactionData.d.ts +27 -0
- package/src/models/{CheckoutSerializedTransactionData.js → SwapSerializedTransactionData.js} +5 -5
- package/src/models/SwapSigningPayload.cjs +48 -0
- package/src/models/SwapSigningPayload.d.ts +62 -0
- package/src/models/SwapSigningPayload.js +42 -0
- package/src/models/SwapStatusRequest.cjs +38 -0
- package/src/models/SwapStatusRequest.d.ts +40 -0
- package/src/models/SwapStatusRequest.js +32 -0
- package/src/models/SwapStatusRequestChain.cjs +36 -0
- package/src/models/SwapStatusRequestChain.d.ts +34 -0
- package/src/models/SwapStatusRequestChain.js +30 -0
- package/src/models/SwapStatusResponse.cjs +56 -0
- package/src/models/SwapStatusResponse.d.ts +73 -0
- package/src/models/SwapStatusResponse.js +50 -0
- package/src/models/SwapStep.cjs +48 -0
- package/src/models/SwapStep.d.ts +66 -0
- package/src/models/SwapStep.js +42 -0
- package/src/models/SwapStepSide.cjs +40 -0
- package/src/models/SwapStepSide.d.ts +46 -0
- package/src/models/SwapStepSide.js +34 -0
- package/src/models/SwapToken.cjs +47 -0
- package/src/models/SwapToken.d.ts +69 -0
- package/src/models/SwapToken.js +41 -0
- package/src/models/index.d.ts +17 -5
- package/src/models/CheckoutEvmTransactionData.cjs +0 -39
- package/src/models/CheckoutEvmTransactionData.d.ts +0 -45
- package/src/models/CheckoutEvmTransactionData.js +0 -33
- package/src/models/CheckoutPsbtTransactionData.d.ts +0 -27
- package/src/models/CheckoutSerializedTransactionData.d.ts +0 -27
- package/src/models/CheckoutSigningPayload.cjs +0 -48
- package/src/models/CheckoutSigningPayload.d.ts +0 -62
- package/src/models/CheckoutSigningPayload.js +0 -42
package/src/models/Checkout.js
CHANGED
|
@@ -19,7 +19,6 @@ function CheckoutFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
20
20
|
'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
21
21
|
'enableOrchestration': json['enableOrchestration'],
|
|
22
|
-
'integratorFeeBps': !exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
23
22
|
'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
24
23
|
'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
25
24
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -40,7 +39,6 @@ function CheckoutToJSON(value) {
|
|
|
40
39
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
41
40
|
'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
42
41
|
'enableOrchestration': value.enableOrchestration,
|
|
43
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
44
42
|
'geoRestrictions': value.geoRestrictions,
|
|
45
43
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
46
44
|
'createdAt': (value.createdAt.toISOString()),
|
|
@@ -22,7 +22,6 @@ function CheckoutCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
23
23
|
'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
24
24
|
'enableOrchestration': !runtime.exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
25
|
-
'integratorFeeBps': !runtime.exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
26
25
|
'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
27
26
|
'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
28
27
|
};
|
|
@@ -40,7 +39,6 @@ function CheckoutCreateRequestToJSON(value) {
|
|
|
40
39
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
41
40
|
'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
42
41
|
'enableOrchestration': value.enableOrchestration,
|
|
43
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
44
42
|
'geoRestrictions': value.geoRestrictions,
|
|
45
43
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
46
44
|
};
|
|
@@ -49,12 +49,6 @@ export interface CheckoutCreateRequest {
|
|
|
49
49
|
* @memberof CheckoutCreateRequest
|
|
50
50
|
*/
|
|
51
51
|
enableOrchestration?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof CheckoutCreateRequest
|
|
56
|
-
*/
|
|
57
|
-
integratorFeeBps?: number;
|
|
58
52
|
/**
|
|
59
53
|
*
|
|
60
54
|
* @type {Array<string>}
|
|
@@ -18,7 +18,6 @@ function CheckoutCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'destinationConfig': DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
19
19
|
'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
20
20
|
'enableOrchestration': !exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
21
|
-
'integratorFeeBps': !exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
22
21
|
'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
23
22
|
'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
24
23
|
};
|
|
@@ -36,7 +35,6 @@ function CheckoutCreateRequestToJSON(value) {
|
|
|
36
35
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
37
36
|
'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
38
37
|
'enableOrchestration': value.enableOrchestration,
|
|
39
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
40
38
|
'geoRestrictions': value.geoRestrictions,
|
|
41
39
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
42
40
|
};
|
|
@@ -10,9 +10,9 @@ var CheckoutQuoteSnapshot = require('./CheckoutQuoteSnapshot.cjs');
|
|
|
10
10
|
var CheckoutRiskStateEnum = require('./CheckoutRiskStateEnum.cjs');
|
|
11
11
|
var CheckoutSettlementData = require('./CheckoutSettlementData.cjs');
|
|
12
12
|
var CheckoutSettlementStateEnum = require('./CheckoutSettlementStateEnum.cjs');
|
|
13
|
-
var CheckoutSigningPayload = require('./CheckoutSigningPayload.cjs');
|
|
14
13
|
var CheckoutSourceTypeEnum = require('./CheckoutSourceTypeEnum.cjs');
|
|
15
14
|
var CheckoutTransactionDestinationAddress = require('./CheckoutTransactionDestinationAddress.cjs');
|
|
15
|
+
var SwapSigningPayload = require('./SwapSigningPayload.cjs');
|
|
16
16
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -25,7 +25,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return {
|
|
26
26
|
'id': json['id'],
|
|
27
27
|
'checkoutId': json['checkoutId'],
|
|
28
|
-
'
|
|
28
|
+
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
29
29
|
'userId': !runtime.exists(json, 'userId') ? undefined : json['userId'],
|
|
30
30
|
'amount': json['amount'],
|
|
31
31
|
'currency': json['currency'],
|
|
@@ -46,7 +46,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'quote': !runtime.exists(json, 'quote') ? undefined : CheckoutQuoteSnapshot.CheckoutQuoteSnapshotFromJSON(json['quote']),
|
|
47
47
|
'quoteExpiresAt': !runtime.exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
|
|
48
48
|
'lastQuotedAt': !runtime.exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
|
|
49
|
-
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined :
|
|
49
|
+
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
50
50
|
'txHash': !runtime.exists(json, 'txHash') ? undefined : json['txHash'],
|
|
51
51
|
'broadcastedAt': !runtime.exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
|
|
52
52
|
'sourceConfirmedAt': !runtime.exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
|
|
@@ -69,7 +69,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
69
69
|
return {
|
|
70
70
|
'id': value.id,
|
|
71
71
|
'checkoutId': value.checkoutId,
|
|
72
|
-
'
|
|
72
|
+
'memo': value.memo,
|
|
73
73
|
'userId': value.userId,
|
|
74
74
|
'amount': value.amount,
|
|
75
75
|
'currency': value.currency,
|
|
@@ -90,7 +90,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
90
90
|
'quote': CheckoutQuoteSnapshot.CheckoutQuoteSnapshotToJSON(value.quote),
|
|
91
91
|
'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
|
|
92
92
|
'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
|
|
93
|
-
'signingPayload':
|
|
93
|
+
'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
|
|
94
94
|
'txHash': value.txHash,
|
|
95
95
|
'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
|
|
96
96
|
'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
|
|
@@ -16,9 +16,9 @@ import { CheckoutQuoteSnapshot } from './CheckoutQuoteSnapshot';
|
|
|
16
16
|
import { CheckoutRiskStateEnum } from './CheckoutRiskStateEnum';
|
|
17
17
|
import { CheckoutSettlementData } from './CheckoutSettlementData';
|
|
18
18
|
import { CheckoutSettlementStateEnum } from './CheckoutSettlementStateEnum';
|
|
19
|
-
import { CheckoutSigningPayload } from './CheckoutSigningPayload';
|
|
20
19
|
import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
|
|
21
20
|
import { CheckoutTransactionDestinationAddress } from './CheckoutTransactionDestinationAddress';
|
|
21
|
+
import { SwapSigningPayload } from './SwapSigningPayload';
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @export
|
|
@@ -39,10 +39,10 @@ export interface CheckoutTransaction {
|
|
|
39
39
|
checkoutId: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof CheckoutTransaction
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
memo?: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -165,10 +165,10 @@ export interface CheckoutTransaction {
|
|
|
165
165
|
lastQuotedAt?: Date;
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
168
|
-
* @type {
|
|
168
|
+
* @type {SwapSigningPayload}
|
|
169
169
|
* @memberof CheckoutTransaction
|
|
170
170
|
*/
|
|
171
|
-
signingPayload?:
|
|
171
|
+
signingPayload?: SwapSigningPayload;
|
|
172
172
|
/**
|
|
173
173
|
* A string with a max length of 4096 characters
|
|
174
174
|
* @type {string}
|
|
@@ -6,9 +6,9 @@ import { CheckoutQuoteSnapshotFromJSON, CheckoutQuoteSnapshotToJSON } from './Ch
|
|
|
6
6
|
import { CheckoutRiskStateEnumFromJSON, CheckoutRiskStateEnumToJSON } from './CheckoutRiskStateEnum.js';
|
|
7
7
|
import { CheckoutSettlementDataFromJSON, CheckoutSettlementDataToJSON } from './CheckoutSettlementData.js';
|
|
8
8
|
import { CheckoutSettlementStateEnumFromJSON, CheckoutSettlementStateEnumToJSON } from './CheckoutSettlementStateEnum.js';
|
|
9
|
-
import { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadToJSON } from './CheckoutSigningPayload.js';
|
|
10
9
|
import { CheckoutSourceTypeEnumFromJSON, CheckoutSourceTypeEnumToJSON } from './CheckoutSourceTypeEnum.js';
|
|
11
10
|
import { CheckoutTransactionDestinationAddressFromJSON, CheckoutTransactionDestinationAddressToJSON } from './CheckoutTransactionDestinationAddress.js';
|
|
11
|
+
import { SwapSigningPayloadFromJSON, SwapSigningPayloadToJSON } from './SwapSigningPayload.js';
|
|
12
12
|
|
|
13
13
|
/* tslint:disable */
|
|
14
14
|
function CheckoutTransactionFromJSON(json) {
|
|
@@ -21,7 +21,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21
21
|
return {
|
|
22
22
|
'id': json['id'],
|
|
23
23
|
'checkoutId': json['checkoutId'],
|
|
24
|
-
'
|
|
24
|
+
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
25
25
|
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
|
26
26
|
'amount': json['amount'],
|
|
27
27
|
'currency': json['currency'],
|
|
@@ -42,7 +42,7 @@ function CheckoutTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'quote': !exists(json, 'quote') ? undefined : CheckoutQuoteSnapshotFromJSON(json['quote']),
|
|
43
43
|
'quoteExpiresAt': !exists(json, 'quoteExpiresAt') ? undefined : (new Date(json['quoteExpiresAt'])),
|
|
44
44
|
'lastQuotedAt': !exists(json, 'lastQuotedAt') ? undefined : (new Date(json['lastQuotedAt'])),
|
|
45
|
-
'signingPayload': !exists(json, 'signingPayload') ? undefined :
|
|
45
|
+
'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
46
46
|
'txHash': !exists(json, 'txHash') ? undefined : json['txHash'],
|
|
47
47
|
'broadcastedAt': !exists(json, 'broadcastedAt') ? undefined : (new Date(json['broadcastedAt'])),
|
|
48
48
|
'sourceConfirmedAt': !exists(json, 'sourceConfirmedAt') ? undefined : (new Date(json['sourceConfirmedAt'])),
|
|
@@ -65,7 +65,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
65
65
|
return {
|
|
66
66
|
'id': value.id,
|
|
67
67
|
'checkoutId': value.checkoutId,
|
|
68
|
-
'
|
|
68
|
+
'memo': value.memo,
|
|
69
69
|
'userId': value.userId,
|
|
70
70
|
'amount': value.amount,
|
|
71
71
|
'currency': value.currency,
|
|
@@ -86,7 +86,7 @@ function CheckoutTransactionToJSON(value) {
|
|
|
86
86
|
'quote': CheckoutQuoteSnapshotToJSON(value.quote),
|
|
87
87
|
'quoteExpiresAt': value.quoteExpiresAt === undefined ? undefined : (value.quoteExpiresAt.toISOString()),
|
|
88
88
|
'lastQuotedAt': value.lastQuotedAt === undefined ? undefined : (value.lastQuotedAt.toISOString()),
|
|
89
|
-
'signingPayload':
|
|
89
|
+
'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
|
|
90
90
|
'txHash': value.txHash,
|
|
91
91
|
'broadcastedAt': value.broadcastedAt === undefined ? undefined : (value.broadcastedAt.toISOString()),
|
|
92
92
|
'sourceConfirmedAt': value.sourceConfirmedAt === undefined ? undefined : (value.sourceConfirmedAt.toISOString()),
|
|
@@ -16,7 +16,7 @@ function CheckoutTransactionCreateRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
16
16
|
'amount': json['amount'],
|
|
17
17
|
'currency': json['currency'],
|
|
18
18
|
'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
19
|
-
'
|
|
19
|
+
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function CheckoutTransactionCreateRequestToJSON(value) {
|
|
@@ -30,7 +30,7 @@ function CheckoutTransactionCreateRequestToJSON(value) {
|
|
|
30
30
|
'amount': value.amount,
|
|
31
31
|
'currency': value.currency,
|
|
32
32
|
'expiresIn': value.expiresIn,
|
|
33
|
-
'
|
|
33
|
+
'memo': value.memo,
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -35,10 +35,10 @@ export interface CheckoutTransactionCreateRequest {
|
|
|
35
35
|
expiresIn?: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof CheckoutTransactionCreateRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
memo?: object;
|
|
42
42
|
}
|
|
43
43
|
export declare function CheckoutTransactionCreateRequestFromJSON(json: any): CheckoutTransactionCreateRequest;
|
|
44
44
|
export declare function CheckoutTransactionCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutTransactionCreateRequest;
|
|
@@ -12,7 +12,7 @@ function CheckoutTransactionCreateRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
12
12
|
'amount': json['amount'],
|
|
13
13
|
'currency': json['currency'],
|
|
14
14
|
'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
15
|
-
'
|
|
15
|
+
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
function CheckoutTransactionCreateRequestToJSON(value) {
|
|
@@ -26,7 +26,7 @@ function CheckoutTransactionCreateRequestToJSON(value) {
|
|
|
26
26
|
'amount': value.amount,
|
|
27
27
|
'currency': value.currency,
|
|
28
28
|
'expiresIn': value.expiresIn,
|
|
29
|
-
'
|
|
29
|
+
'memo': value.memo,
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -20,7 +20,6 @@ function CheckoutUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
'destinationConfig': !runtime.exists(json, 'destinationConfig') ? undefined : DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
21
21
|
'depositConfig': !runtime.exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInput.DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
22
22
|
'enableOrchestration': !runtime.exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
23
|
-
'integratorFeeBps': !runtime.exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
24
23
|
'geoRestrictions': !runtime.exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
25
24
|
'exchangeRestrictions': !runtime.exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
26
25
|
};
|
|
@@ -37,7 +36,6 @@ function CheckoutUpdateRequestToJSON(value) {
|
|
|
37
36
|
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
38
37
|
'depositConfig': DepositAmountsConfigInput.DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
39
38
|
'enableOrchestration': value.enableOrchestration,
|
|
40
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
41
39
|
'geoRestrictions': value.geoRestrictions,
|
|
42
40
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
43
41
|
};
|
|
@@ -42,12 +42,6 @@ export interface CheckoutUpdateRequest {
|
|
|
42
42
|
* @memberof CheckoutUpdateRequest
|
|
43
43
|
*/
|
|
44
44
|
enableOrchestration?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof CheckoutUpdateRequest
|
|
49
|
-
*/
|
|
50
|
-
integratorFeeBps?: number;
|
|
51
45
|
/**
|
|
52
46
|
*
|
|
53
47
|
* @type {Array<string>}
|
|
@@ -16,7 +16,6 @@ function CheckoutUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
16
|
'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
17
17
|
'depositConfig': !exists(json, 'depositConfig') ? undefined : DepositAmountsConfigInputFromJSON(json['depositConfig']),
|
|
18
18
|
'enableOrchestration': !exists(json, 'enableOrchestration') ? undefined : json['enableOrchestration'],
|
|
19
|
-
'integratorFeeBps': !exists(json, 'integratorFeeBps') ? undefined : json['integratorFeeBps'],
|
|
20
19
|
'geoRestrictions': !exists(json, 'geoRestrictions') ? undefined : json['geoRestrictions'],
|
|
21
20
|
'exchangeRestrictions': !exists(json, 'exchangeRestrictions') ? undefined : json['exchangeRestrictions'],
|
|
22
21
|
};
|
|
@@ -33,7 +32,6 @@ function CheckoutUpdateRequestToJSON(value) {
|
|
|
33
32
|
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
34
33
|
'depositConfig': DepositAmountsConfigInputToJSON(value.depositConfig),
|
|
35
34
|
'enableOrchestration': value.enableOrchestration,
|
|
36
|
-
'integratorFeeBps': value.integratorFeeBps,
|
|
37
35
|
'geoRestrictions': value.geoRestrictions,
|
|
38
36
|
'exchangeRestrictions': value.exchangeRestrictions,
|
|
39
37
|
};
|
|
@@ -15,10 +15,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
15
15
|
* https://openapi-generator.tech
|
|
16
16
|
* Do not edit the class manually.
|
|
17
17
|
*/
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function SwapEvmApprovalDataFromJSON(json) {
|
|
19
|
+
return SwapEvmApprovalDataFromJSONTyped(json);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function SwapEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
22
|
if ((json === undefined) || (json === null)) {
|
|
23
23
|
return json;
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ function CheckoutEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
'amount': json['amount'],
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function SwapEvmApprovalDataToJSON(value) {
|
|
32
32
|
if (value === undefined) {
|
|
33
33
|
return undefined;
|
|
34
34
|
}
|
|
@@ -42,6 +42,6 @@ function CheckoutEvmApprovalDataToJSON(value) {
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
45
|
+
exports.SwapEvmApprovalDataFromJSON = SwapEvmApprovalDataFromJSON;
|
|
46
|
+
exports.SwapEvmApprovalDataFromJSONTyped = SwapEvmApprovalDataFromJSONTyped;
|
|
47
|
+
exports.SwapEvmApprovalDataToJSON = SwapEvmApprovalDataToJSON;
|
|
@@ -12,28 +12,28 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface SwapEvmApprovalData
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface SwapEvmApprovalData {
|
|
18
18
|
/**
|
|
19
19
|
* ERC-20 contract to approve
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof SwapEvmApprovalData
|
|
22
22
|
*/
|
|
23
23
|
tokenAddress: string;
|
|
24
24
|
/**
|
|
25
25
|
* Contract that needs the allowance (e.g. LiFi Diamond)
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof SwapEvmApprovalData
|
|
28
28
|
*/
|
|
29
29
|
spenderAddress: string;
|
|
30
30
|
/**
|
|
31
31
|
* Amount to approve in token's smallest unit
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof SwapEvmApprovalData
|
|
34
34
|
*/
|
|
35
35
|
amount: string;
|
|
36
36
|
}
|
|
37
|
-
export declare function
|
|
38
|
-
export declare function
|
|
39
|
-
export declare function
|
|
37
|
+
export declare function SwapEvmApprovalDataFromJSON(json: any): SwapEvmApprovalData;
|
|
38
|
+
export declare function SwapEvmApprovalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapEvmApprovalData;
|
|
39
|
+
export declare function SwapEvmApprovalDataToJSON(value?: SwapEvmApprovalData | null): any;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function SwapEvmApprovalDataFromJSON(json) {
|
|
15
|
+
return SwapEvmApprovalDataFromJSONTyped(json);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function SwapEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
18
|
if ((json === undefined) || (json === null)) {
|
|
19
19
|
return json;
|
|
20
20
|
}
|
|
@@ -24,7 +24,7 @@ function CheckoutEvmApprovalDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
'amount': json['amount'],
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function SwapEvmApprovalDataToJSON(value) {
|
|
28
28
|
if (value === undefined) {
|
|
29
29
|
return undefined;
|
|
30
30
|
}
|
|
@@ -38,4 +38,4 @@ function CheckoutEvmApprovalDataToJSON(value) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataFromJSONTyped, SwapEvmApprovalDataToJSON };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function SwapEvmTransactionDataFromJSON(json) {
|
|
9
|
+
return SwapEvmTransactionDataFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function SwapEvmTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'to': json['to'],
|
|
17
|
+
'data': json['data'],
|
|
18
|
+
'value': json['value'],
|
|
19
|
+
'gasLimit': !runtime.exists(json, 'gasLimit') ? undefined : json['gasLimit'],
|
|
20
|
+
'gasPrice': !runtime.exists(json, 'gasPrice') ? undefined : json['gasPrice'],
|
|
21
|
+
'maxFeePerGas': !runtime.exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
|
|
22
|
+
'maxPriorityFeePerGas': !runtime.exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
|
|
23
|
+
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function SwapEvmTransactionDataToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'to': value.to,
|
|
35
|
+
'data': value.data,
|
|
36
|
+
'value': value.value,
|
|
37
|
+
'gasLimit': value.gasLimit,
|
|
38
|
+
'gasPrice': value.gasPrice,
|
|
39
|
+
'maxFeePerGas': value.maxFeePerGas,
|
|
40
|
+
'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
|
|
41
|
+
'nonce': value.nonce,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.SwapEvmTransactionDataFromJSON = SwapEvmTransactionDataFromJSON;
|
|
46
|
+
exports.SwapEvmTransactionDataFromJSONTyped = SwapEvmTransactionDataFromJSONTyped;
|
|
47
|
+
exports.SwapEvmTransactionDataToJSON = SwapEvmTransactionDataToJSON;
|
|
@@ -0,0 +1,69 @@
|
|
|
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 SwapEvmTransactionData
|
|
16
|
+
*/
|
|
17
|
+
export interface SwapEvmTransactionData {
|
|
18
|
+
/**
|
|
19
|
+
* Contract address to call
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SwapEvmTransactionData
|
|
22
|
+
*/
|
|
23
|
+
to: string;
|
|
24
|
+
/**
|
|
25
|
+
* Encoded calldata (hex)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SwapEvmTransactionData
|
|
28
|
+
*/
|
|
29
|
+
data: string;
|
|
30
|
+
/**
|
|
31
|
+
* Native asset amount in wei (hex string, "0x0" if token-only)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SwapEvmTransactionData
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
/**
|
|
37
|
+
* Suggested gas limit (hex string)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SwapEvmTransactionData
|
|
40
|
+
*/
|
|
41
|
+
gasLimit?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Gas price in wei (hex string, legacy transactions)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SwapEvmTransactionData
|
|
46
|
+
*/
|
|
47
|
+
gasPrice?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Max fee per gas (EIP-1559)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SwapEvmTransactionData
|
|
52
|
+
*/
|
|
53
|
+
maxFeePerGas?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Max priority fee per gas (EIP-1559)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SwapEvmTransactionData
|
|
58
|
+
*/
|
|
59
|
+
maxPriorityFeePerGas?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Transaction nonce
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof SwapEvmTransactionData
|
|
64
|
+
*/
|
|
65
|
+
nonce?: number;
|
|
66
|
+
}
|
|
67
|
+
export declare function SwapEvmTransactionDataFromJSON(json: any): SwapEvmTransactionData;
|
|
68
|
+
export declare function SwapEvmTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapEvmTransactionData;
|
|
69
|
+
export declare function SwapEvmTransactionDataToJSON(value?: SwapEvmTransactionData | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function SwapEvmTransactionDataFromJSON(json) {
|
|
5
|
+
return SwapEvmTransactionDataFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function SwapEvmTransactionDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'to': json['to'],
|
|
13
|
+
'data': json['data'],
|
|
14
|
+
'value': json['value'],
|
|
15
|
+
'gasLimit': !exists(json, 'gasLimit') ? undefined : json['gasLimit'],
|
|
16
|
+
'gasPrice': !exists(json, 'gasPrice') ? undefined : json['gasPrice'],
|
|
17
|
+
'maxFeePerGas': !exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
|
|
18
|
+
'maxPriorityFeePerGas': !exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
|
|
19
|
+
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function SwapEvmTransactionDataToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'to': value.to,
|
|
31
|
+
'data': value.data,
|
|
32
|
+
'value': value.value,
|
|
33
|
+
'gasLimit': value.gasLimit,
|
|
34
|
+
'gasPrice': value.gasPrice,
|
|
35
|
+
'maxFeePerGas': value.maxFeePerGas,
|
|
36
|
+
'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
|
|
37
|
+
'nonce': value.nonce,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataFromJSONTyped, SwapEvmTransactionDataToJSON };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var SwapToken = require('./SwapToken.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function SwapFeeFromJSON(json) {
|
|
10
|
+
return SwapFeeFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function SwapFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'amount': json['amount'],
|
|
18
|
+
'amountUSD': !runtime.exists(json, 'amountUSD') ? undefined : json['amountUSD'],
|
|
19
|
+
'included': json['included'],
|
|
20
|
+
'name': json['name'],
|
|
21
|
+
'token': SwapToken.SwapTokenFromJSON(json['token']),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function SwapFeeToJSON(value) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'amount': value.amount,
|
|
33
|
+
'amountUSD': value.amountUSD,
|
|
34
|
+
'included': value.included,
|
|
35
|
+
'name': value.name,
|
|
36
|
+
'token': SwapToken.SwapTokenToJSON(value.token),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.SwapFeeFromJSON = SwapFeeFromJSON;
|
|
41
|
+
exports.SwapFeeFromJSONTyped = SwapFeeFromJSONTyped;
|
|
42
|
+
exports.SwapFeeToJSON = SwapFeeToJSON;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { SwapToken } from './SwapToken';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SwapFee
|
|
17
|
+
*/
|
|
18
|
+
export interface SwapFee {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SwapFee
|
|
23
|
+
*/
|
|
24
|
+
amount: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SwapFee
|
|
29
|
+
*/
|
|
30
|
+
amountUSD?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof SwapFee
|
|
35
|
+
*/
|
|
36
|
+
included: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SwapFee
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {SwapToken}
|
|
46
|
+
* @memberof SwapFee
|
|
47
|
+
*/
|
|
48
|
+
token: SwapToken;
|
|
49
|
+
}
|
|
50
|
+
export declare function SwapFeeFromJSON(json: any): SwapFee;
|
|
51
|
+
export declare function SwapFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapFee;
|
|
52
|
+
export declare function SwapFeeToJSON(value?: SwapFee | null): any;
|