@dynamic-labs/sdk-api-core 0.0.910 → 0.0.912
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 +129 -0
- package/src/apis/SDKApi.d.ts +51 -1
- package/src/apis/SDKApi.js +129 -0
- package/src/apis/WaasApi.cjs +4 -0
- package/src/apis/WaasApi.js +4 -0
- package/src/index.cjs +88 -20
- package/src/index.js +19 -6
- package/src/models/BackupKeySharesToLocationsPendingResponse.cjs +55 -0
- package/src/models/BackupKeySharesToLocationsPendingResponse.d.ts +46 -0
- package/src/models/BackupKeySharesToLocationsPendingResponse.js +49 -0
- package/src/models/BackupKeySharesToLocationsRequest.cjs +3 -0
- package/src/models/BackupKeySharesToLocationsRequest.d.ts +6 -0
- package/src/models/BackupKeySharesToLocationsRequest.js +3 -0
- package/src/models/BackupKeySharesToLocationsResponse.cjs +12 -0
- package/src/models/BackupKeySharesToLocationsResponse.d.ts +14 -0
- package/src/models/BackupKeySharesToLocationsResponse.js +13 -1
- 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/{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 +18 -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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { SwapTokenFromJSON, SwapTokenToJSON } from './SwapToken.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function SwapStepSideFromJSON(json) {
|
|
6
|
+
return SwapStepSideFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function SwapStepSideFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'amount': json['amount'],
|
|
14
|
+
'amountMin': !exists(json, 'amountMin') ? undefined : json['amountMin'],
|
|
15
|
+
'amountUSD': !exists(json, 'amountUSD') ? undefined : json['amountUSD'],
|
|
16
|
+
'token': SwapTokenFromJSON(json['token']),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function SwapStepSideToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'amount': value.amount,
|
|
28
|
+
'amountMin': value.amountMin,
|
|
29
|
+
'amountUSD': value.amountUSD,
|
|
30
|
+
'token': SwapTokenToJSON(value.token),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { SwapStepSideFromJSON, SwapStepSideFromJSONTyped, SwapStepSideToJSON };
|
|
@@ -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 SwapTokenFromJSON(json) {
|
|
9
|
+
return SwapTokenFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function SwapTokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'address': json['address'],
|
|
17
|
+
'chainId': json['chainId'],
|
|
18
|
+
'coinKey': !runtime.exists(json, 'coinKey') ? undefined : json['coinKey'],
|
|
19
|
+
'decimals': json['decimals'],
|
|
20
|
+
'logoURI': !runtime.exists(json, 'logoURI') ? undefined : json['logoURI'],
|
|
21
|
+
'name': json['name'],
|
|
22
|
+
'priceUSD': !runtime.exists(json, 'priceUSD') ? undefined : json['priceUSD'],
|
|
23
|
+
'symbol': json['symbol'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function SwapTokenToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'address': value.address,
|
|
35
|
+
'chainId': value.chainId,
|
|
36
|
+
'coinKey': value.coinKey,
|
|
37
|
+
'decimals': value.decimals,
|
|
38
|
+
'logoURI': value.logoURI,
|
|
39
|
+
'name': value.name,
|
|
40
|
+
'priceUSD': value.priceUSD,
|
|
41
|
+
'symbol': value.symbol,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.SwapTokenFromJSON = SwapTokenFromJSON;
|
|
46
|
+
exports.SwapTokenFromJSONTyped = SwapTokenFromJSONTyped;
|
|
47
|
+
exports.SwapTokenToJSON = SwapTokenToJSON;
|
|
@@ -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 SwapToken
|
|
16
|
+
*/
|
|
17
|
+
export interface SwapToken {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SwapToken
|
|
22
|
+
*/
|
|
23
|
+
address: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SwapToken
|
|
28
|
+
*/
|
|
29
|
+
chainId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SwapToken
|
|
34
|
+
*/
|
|
35
|
+
coinKey?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SwapToken
|
|
40
|
+
*/
|
|
41
|
+
decimals: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SwapToken
|
|
46
|
+
*/
|
|
47
|
+
logoURI?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SwapToken
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SwapToken
|
|
58
|
+
*/
|
|
59
|
+
priceUSD?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SwapToken
|
|
64
|
+
*/
|
|
65
|
+
symbol: string;
|
|
66
|
+
}
|
|
67
|
+
export declare function SwapTokenFromJSON(json: any): SwapToken;
|
|
68
|
+
export declare function SwapTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapToken;
|
|
69
|
+
export declare function SwapTokenToJSON(value?: SwapToken | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function SwapTokenFromJSON(json) {
|
|
5
|
+
return SwapTokenFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function SwapTokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'address': json['address'],
|
|
13
|
+
'chainId': json['chainId'],
|
|
14
|
+
'coinKey': !exists(json, 'coinKey') ? undefined : json['coinKey'],
|
|
15
|
+
'decimals': json['decimals'],
|
|
16
|
+
'logoURI': !exists(json, 'logoURI') ? undefined : json['logoURI'],
|
|
17
|
+
'name': json['name'],
|
|
18
|
+
'priceUSD': !exists(json, 'priceUSD') ? undefined : json['priceUSD'],
|
|
19
|
+
'symbol': json['symbol'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function SwapTokenToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'address': value.address,
|
|
31
|
+
'chainId': value.chainId,
|
|
32
|
+
'coinKey': value.coinKey,
|
|
33
|
+
'decimals': value.decimals,
|
|
34
|
+
'logoURI': value.logoURI,
|
|
35
|
+
'name': value.name,
|
|
36
|
+
'priceUSD': value.priceUSD,
|
|
37
|
+
'symbol': value.symbol,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { SwapTokenFromJSON, SwapTokenFromJSONTyped, SwapTokenToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './AuthenticatorSelectionCriteria';
|
|
|
19
19
|
export * from './AuthenticatorTransportProtocol';
|
|
20
20
|
export * from './BackupKeySharesToLocationRequest';
|
|
21
21
|
export * from './BackupKeySharesToLocationResponse';
|
|
22
|
+
export * from './BackupKeySharesToLocationsPendingResponse';
|
|
22
23
|
export * from './BackupKeySharesToLocationsRequest';
|
|
23
24
|
export * from './BackupKeySharesToLocationsRequestLocations';
|
|
24
25
|
export * from './BackupKeySharesToLocationsResponse';
|
|
@@ -34,19 +35,14 @@ export * from './ChainEnum';
|
|
|
34
35
|
export * from './ChainSettlementConfig';
|
|
35
36
|
export * from './Checkout';
|
|
36
37
|
export * from './CheckoutCreateRequest';
|
|
37
|
-
export * from './CheckoutEvmApprovalData';
|
|
38
|
-
export * from './CheckoutEvmTransactionData';
|
|
39
38
|
export * from './CheckoutExecutionStateEnum';
|
|
40
39
|
export * from './CheckoutFailure';
|
|
41
40
|
export * from './CheckoutFeeBreakdown';
|
|
42
41
|
export * from './CheckoutModeEnum';
|
|
43
|
-
export * from './CheckoutPsbtTransactionData';
|
|
44
42
|
export * from './CheckoutQuoteSnapshot';
|
|
45
43
|
export * from './CheckoutRiskStateEnum';
|
|
46
|
-
export * from './CheckoutSerializedTransactionData';
|
|
47
44
|
export * from './CheckoutSettlementData';
|
|
48
45
|
export * from './CheckoutSettlementStateEnum';
|
|
49
|
-
export * from './CheckoutSigningPayload';
|
|
50
46
|
export * from './CheckoutSourceTypeEnum';
|
|
51
47
|
export * from './CheckoutTransaction';
|
|
52
48
|
export * from './CheckoutTransactionCreateRequest';
|
|
@@ -361,6 +357,23 @@ export * from './SupportedOfframpsResponse';
|
|
|
361
357
|
export * from './SupportedOnrampsResponse';
|
|
362
358
|
export * from './SupportedSecurityMethod';
|
|
363
359
|
export * from './SupportedSecurityMethods';
|
|
360
|
+
export * from './SwapEvmApprovalData';
|
|
361
|
+
export * from './SwapEvmTransactionData';
|
|
362
|
+
export * from './SwapFee';
|
|
363
|
+
export * from './SwapGasCost';
|
|
364
|
+
export * from './SwapPsbtTransactionData';
|
|
365
|
+
export * from './SwapQuoteRequest';
|
|
366
|
+
export * from './SwapQuoteRequestSide';
|
|
367
|
+
export * from './SwapQuoteResponse';
|
|
368
|
+
export * from './SwapQuoteResponseSide';
|
|
369
|
+
export * from './SwapSerializedTransactionData';
|
|
370
|
+
export * from './SwapSigningPayload';
|
|
371
|
+
export * from './SwapStatusRequest';
|
|
372
|
+
export * from './SwapStatusRequestChain';
|
|
373
|
+
export * from './SwapStatusResponse';
|
|
374
|
+
export * from './SwapStep';
|
|
375
|
+
export * from './SwapStepSide';
|
|
376
|
+
export * from './SwapToken';
|
|
364
377
|
export * from './TelegramPostRequest';
|
|
365
378
|
export * from './TelegramUser';
|
|
366
379
|
export * from './ThresholdSignatureScheme';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
|
-
|
|
7
|
-
/* tslint:disable */
|
|
8
|
-
function CheckoutEvmTransactionDataFromJSON(json) {
|
|
9
|
-
return CheckoutEvmTransactionDataFromJSONTyped(json);
|
|
10
|
-
}
|
|
11
|
-
function CheckoutEvmTransactionDataFromJSONTyped(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
|
-
};
|
|
21
|
-
}
|
|
22
|
-
function CheckoutEvmTransactionDataToJSON(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
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
exports.CheckoutEvmTransactionDataFromJSON = CheckoutEvmTransactionDataFromJSON;
|
|
38
|
-
exports.CheckoutEvmTransactionDataFromJSONTyped = CheckoutEvmTransactionDataFromJSONTyped;
|
|
39
|
-
exports.CheckoutEvmTransactionDataToJSON = CheckoutEvmTransactionDataToJSON;
|
|
@@ -1,45 +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 CheckoutEvmTransactionData
|
|
16
|
-
*/
|
|
17
|
-
export interface CheckoutEvmTransactionData {
|
|
18
|
-
/**
|
|
19
|
-
* Contract address to call
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CheckoutEvmTransactionData
|
|
22
|
-
*/
|
|
23
|
-
to: string;
|
|
24
|
-
/**
|
|
25
|
-
* Encoded calldata (hex)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CheckoutEvmTransactionData
|
|
28
|
-
*/
|
|
29
|
-
data: string;
|
|
30
|
-
/**
|
|
31
|
-
* Native asset amount in wei (hex string, "0x0" if token-only)
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CheckoutEvmTransactionData
|
|
34
|
-
*/
|
|
35
|
-
value: string;
|
|
36
|
-
/**
|
|
37
|
-
* Suggested gas limit (hex string)
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CheckoutEvmTransactionData
|
|
40
|
-
*/
|
|
41
|
-
gasLimit?: string;
|
|
42
|
-
}
|
|
43
|
-
export declare function CheckoutEvmTransactionDataFromJSON(json: any): CheckoutEvmTransactionData;
|
|
44
|
-
export declare function CheckoutEvmTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutEvmTransactionData;
|
|
45
|
-
export declare function CheckoutEvmTransactionDataToJSON(value?: CheckoutEvmTransactionData | null): any;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
|
-
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
function CheckoutEvmTransactionDataFromJSON(json) {
|
|
5
|
-
return CheckoutEvmTransactionDataFromJSONTyped(json);
|
|
6
|
-
}
|
|
7
|
-
function CheckoutEvmTransactionDataFromJSONTyped(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
|
-
};
|
|
17
|
-
}
|
|
18
|
-
function CheckoutEvmTransactionDataToJSON(value) {
|
|
19
|
-
if (value === undefined) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
if (value === null) {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'to': value.to,
|
|
27
|
-
'data': value.data,
|
|
28
|
-
'value': value.value,
|
|
29
|
-
'gasLimit': value.gasLimit,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { CheckoutEvmTransactionDataFromJSON, CheckoutEvmTransactionDataFromJSONTyped, CheckoutEvmTransactionDataToJSON };
|
|
@@ -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 CheckoutPsbtTransactionData
|
|
16
|
-
*/
|
|
17
|
-
export interface CheckoutPsbtTransactionData {
|
|
18
|
-
/**
|
|
19
|
-
* Base64-encoded unsigned PSBT
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CheckoutPsbtTransactionData
|
|
22
|
-
*/
|
|
23
|
-
psbt: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function CheckoutPsbtTransactionDataFromJSON(json: any): CheckoutPsbtTransactionData;
|
|
26
|
-
export declare function CheckoutPsbtTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutPsbtTransactionData;
|
|
27
|
-
export declare function CheckoutPsbtTransactionDataToJSON(value?: CheckoutPsbtTransactionData | null): any;
|
|
@@ -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 CheckoutSerializedTransactionData
|
|
16
|
-
*/
|
|
17
|
-
export interface CheckoutSerializedTransactionData {
|
|
18
|
-
/**
|
|
19
|
-
* Base64-encoded serialized transaction
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CheckoutSerializedTransactionData
|
|
22
|
-
*/
|
|
23
|
-
serializedTransaction: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function CheckoutSerializedTransactionDataFromJSON(json: any): CheckoutSerializedTransactionData;
|
|
26
|
-
export declare function CheckoutSerializedTransactionDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSerializedTransactionData;
|
|
27
|
-
export declare function CheckoutSerializedTransactionDataToJSON(value?: CheckoutSerializedTransactionData | null): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var runtime = require('../runtime.cjs');
|
|
6
|
-
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
-
var CheckoutEvmApprovalData = require('./CheckoutEvmApprovalData.cjs');
|
|
8
|
-
var CheckoutEvmTransactionData = require('./CheckoutEvmTransactionData.cjs');
|
|
9
|
-
var CheckoutPsbtTransactionData = require('./CheckoutPsbtTransactionData.cjs');
|
|
10
|
-
var CheckoutSerializedTransactionData = require('./CheckoutSerializedTransactionData.cjs');
|
|
11
|
-
|
|
12
|
-
/* tslint:disable */
|
|
13
|
-
function CheckoutSigningPayloadFromJSON(json) {
|
|
14
|
-
return CheckoutSigningPayloadFromJSONTyped(json);
|
|
15
|
-
}
|
|
16
|
-
function CheckoutSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
-
if ((json === undefined) || (json === null)) {
|
|
18
|
-
return json;
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
|
|
22
|
-
'chainId': json['chainId'],
|
|
23
|
-
'evmTransaction': !runtime.exists(json, 'evmTransaction') ? undefined : CheckoutEvmTransactionData.CheckoutEvmTransactionDataFromJSON(json['evmTransaction']),
|
|
24
|
-
'evmApproval': !runtime.exists(json, 'evmApproval') ? undefined : CheckoutEvmApprovalData.CheckoutEvmApprovalDataFromJSON(json['evmApproval']),
|
|
25
|
-
'serializedTransaction': !runtime.exists(json, 'serializedTransaction') ? undefined : CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataFromJSON(json['serializedTransaction']),
|
|
26
|
-
'psbtTransaction': !runtime.exists(json, 'psbtTransaction') ? undefined : CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataFromJSON(json['psbtTransaction']),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function CheckoutSigningPayloadToJSON(value) {
|
|
30
|
-
if (value === undefined) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
if (value === null) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
|
|
38
|
-
'chainId': value.chainId,
|
|
39
|
-
'evmTransaction': CheckoutEvmTransactionData.CheckoutEvmTransactionDataToJSON(value.evmTransaction),
|
|
40
|
-
'evmApproval': CheckoutEvmApprovalData.CheckoutEvmApprovalDataToJSON(value.evmApproval),
|
|
41
|
-
'serializedTransaction': CheckoutSerializedTransactionData.CheckoutSerializedTransactionDataToJSON(value.serializedTransaction),
|
|
42
|
-
'psbtTransaction': CheckoutPsbtTransactionData.CheckoutPsbtTransactionDataToJSON(value.psbtTransaction),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
exports.CheckoutSigningPayloadFromJSON = CheckoutSigningPayloadFromJSON;
|
|
47
|
-
exports.CheckoutSigningPayloadFromJSONTyped = CheckoutSigningPayloadFromJSONTyped;
|
|
48
|
-
exports.CheckoutSigningPayloadToJSON = CheckoutSigningPayloadToJSON;
|
|
@@ -1,62 +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 { ChainEnum } from './ChainEnum';
|
|
13
|
-
import { CheckoutEvmApprovalData } from './CheckoutEvmApprovalData';
|
|
14
|
-
import { CheckoutEvmTransactionData } from './CheckoutEvmTransactionData';
|
|
15
|
-
import { CheckoutPsbtTransactionData } from './CheckoutPsbtTransactionData';
|
|
16
|
-
import { CheckoutSerializedTransactionData } from './CheckoutSerializedTransactionData';
|
|
17
|
-
/**
|
|
18
|
-
* Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbtTransaction.
|
|
19
|
-
* @export
|
|
20
|
-
* @interface CheckoutSigningPayload
|
|
21
|
-
*/
|
|
22
|
-
export interface CheckoutSigningPayload {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {ChainEnum}
|
|
26
|
-
* @memberof CheckoutSigningPayload
|
|
27
|
-
*/
|
|
28
|
-
chainName: ChainEnum;
|
|
29
|
-
/**
|
|
30
|
-
* Source chain identifier
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof CheckoutSigningPayload
|
|
33
|
-
*/
|
|
34
|
-
chainId: string;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {CheckoutEvmTransactionData}
|
|
38
|
-
* @memberof CheckoutSigningPayload
|
|
39
|
-
*/
|
|
40
|
-
evmTransaction?: CheckoutEvmTransactionData;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {CheckoutEvmApprovalData}
|
|
44
|
-
* @memberof CheckoutSigningPayload
|
|
45
|
-
*/
|
|
46
|
-
evmApproval?: CheckoutEvmApprovalData;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {CheckoutSerializedTransactionData}
|
|
50
|
-
* @memberof CheckoutSigningPayload
|
|
51
|
-
*/
|
|
52
|
-
serializedTransaction?: CheckoutSerializedTransactionData;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {CheckoutPsbtTransactionData}
|
|
56
|
-
* @memberof CheckoutSigningPayload
|
|
57
|
-
*/
|
|
58
|
-
psbtTransaction?: CheckoutPsbtTransactionData;
|
|
59
|
-
}
|
|
60
|
-
export declare function CheckoutSigningPayloadFromJSON(json: any): CheckoutSigningPayload;
|
|
61
|
-
export declare function CheckoutSigningPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSigningPayload;
|
|
62
|
-
export declare function CheckoutSigningPayloadToJSON(value?: CheckoutSigningPayload | null): any;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { exists } from '../runtime.js';
|
|
2
|
-
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
-
import { CheckoutEvmApprovalDataFromJSON, CheckoutEvmApprovalDataToJSON } from './CheckoutEvmApprovalData.js';
|
|
4
|
-
import { CheckoutEvmTransactionDataFromJSON, CheckoutEvmTransactionDataToJSON } from './CheckoutEvmTransactionData.js';
|
|
5
|
-
import { CheckoutPsbtTransactionDataFromJSON, CheckoutPsbtTransactionDataToJSON } from './CheckoutPsbtTransactionData.js';
|
|
6
|
-
import { CheckoutSerializedTransactionDataFromJSON, CheckoutSerializedTransactionDataToJSON } from './CheckoutSerializedTransactionData.js';
|
|
7
|
-
|
|
8
|
-
/* tslint:disable */
|
|
9
|
-
function CheckoutSigningPayloadFromJSON(json) {
|
|
10
|
-
return CheckoutSigningPayloadFromJSONTyped(json);
|
|
11
|
-
}
|
|
12
|
-
function CheckoutSigningPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
-
if ((json === undefined) || (json === null)) {
|
|
14
|
-
return json;
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
'chainName': ChainEnumFromJSON(json['chainName']),
|
|
18
|
-
'chainId': json['chainId'],
|
|
19
|
-
'evmTransaction': !exists(json, 'evmTransaction') ? undefined : CheckoutEvmTransactionDataFromJSON(json['evmTransaction']),
|
|
20
|
-
'evmApproval': !exists(json, 'evmApproval') ? undefined : CheckoutEvmApprovalDataFromJSON(json['evmApproval']),
|
|
21
|
-
'serializedTransaction': !exists(json, 'serializedTransaction') ? undefined : CheckoutSerializedTransactionDataFromJSON(json['serializedTransaction']),
|
|
22
|
-
'psbtTransaction': !exists(json, 'psbtTransaction') ? undefined : CheckoutPsbtTransactionDataFromJSON(json['psbtTransaction']),
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function CheckoutSigningPayloadToJSON(value) {
|
|
26
|
-
if (value === undefined) {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
if (value === null) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'chainName': ChainEnumToJSON(value.chainName),
|
|
34
|
-
'chainId': value.chainId,
|
|
35
|
-
'evmTransaction': CheckoutEvmTransactionDataToJSON(value.evmTransaction),
|
|
36
|
-
'evmApproval': CheckoutEvmApprovalDataToJSON(value.evmApproval),
|
|
37
|
-
'serializedTransaction': CheckoutSerializedTransactionDataToJSON(value.serializedTransaction),
|
|
38
|
-
'psbtTransaction': CheckoutPsbtTransactionDataToJSON(value.psbtTransaction),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { CheckoutSigningPayloadFromJSON, CheckoutSigningPayloadFromJSONTyped, CheckoutSigningPayloadToJSON };
|