@dynamic-labs/sdk-api 0.0.1111 → 0.0.1113
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 +1 -0
- package/src/apis/AdminActionsApi.js +1 -0
- package/src/apis/AllowlistsApi.cjs +1 -0
- package/src/apis/AllowlistsApi.js +1 -0
- package/src/apis/AnalyticsApi.cjs +1 -0
- package/src/apis/AnalyticsApi.js +1 -0
- package/src/apis/AuthorizedClientsApi.cjs +1 -0
- package/src/apis/AuthorizedClientsApi.js +1 -0
- package/src/apis/CaptchaApi.cjs +1 -0
- package/src/apis/CaptchaApi.js +1 -0
- package/src/apis/ChainalysisApi.cjs +1 -0
- package/src/apis/ChainalysisApi.js +1 -0
- package/src/apis/ChainsApi.cjs +1 -0
- package/src/apis/ChainsApi.js +1 -0
- package/src/apis/CheckoutApi.cjs +1 -0
- package/src/apis/CheckoutApi.js +1 -0
- package/src/apis/ClientGrantApi.cjs +1 -0
- package/src/apis/ClientGrantApi.js +1 -0
- package/src/apis/CustomFieldsApi.cjs +1 -0
- package/src/apis/CustomFieldsApi.js +1 -0
- package/src/apis/CustomHostnamesApi.cjs +1 -0
- package/src/apis/CustomHostnamesApi.js +1 -0
- package/src/apis/CustomNetworksApi.cjs +1 -0
- package/src/apis/CustomNetworksApi.js +1 -0
- package/src/apis/DeeplinkUrlsApi.cjs +1 -0
- package/src/apis/DeeplinkUrlsApi.js +1 -0
- package/src/apis/EnvironmentsApi.cjs +1 -0
- package/src/apis/EnvironmentsApi.js +1 -0
- package/src/apis/EventsApi.cjs +1 -0
- package/src/apis/EventsApi.js +1 -0
- package/src/apis/ExchangesApi.cjs +1 -0
- package/src/apis/ExchangesApi.js +1 -0
- package/src/apis/ExportsApi.cjs +1 -0
- package/src/apis/ExportsApi.js +1 -0
- package/src/apis/ExternalJwtApi.cjs +1 -0
- package/src/apis/ExternalJwtApi.js +1 -0
- package/src/apis/FlowAnalyticsApi.cjs +1 -0
- package/src/apis/FlowAnalyticsApi.js +1 -0
- package/src/apis/GaslessApi.cjs +1 -0
- package/src/apis/GaslessApi.js +1 -0
- package/src/apis/GatesApi.cjs +1 -0
- package/src/apis/GatesApi.js +1 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +1 -0
- package/src/apis/GlobalWalletAccessControlApi.js +1 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +1 -0
- package/src/apis/GlobalWalletConnectionsApi.js +1 -0
- package/src/apis/GlobalWalletsApi.cjs +1 -0
- package/src/apis/GlobalWalletsApi.js +1 -0
- package/src/apis/InvitesApi.cjs +1 -0
- package/src/apis/InvitesApi.js +1 -0
- package/src/apis/KybApi.cjs +1 -0
- package/src/apis/KybApi.js +1 -0
- package/src/apis/MembersApi.cjs +1 -0
- package/src/apis/MembersApi.js +1 -0
- package/src/apis/MfaSettingsApi.cjs +1 -0
- package/src/apis/MfaSettingsApi.js +1 -0
- package/src/apis/NameServicesApi.cjs +1 -0
- package/src/apis/NameServicesApi.js +1 -0
- package/src/apis/OrganizationSettingsApi.cjs +1 -0
- package/src/apis/OrganizationSettingsApi.js +1 -0
- package/src/apis/OrganizationsApi.cjs +1 -0
- package/src/apis/OrganizationsApi.js +1 -0
- package/src/apis/OriginsApi.cjs +1 -0
- package/src/apis/OriginsApi.js +1 -0
- package/src/apis/ProjectsApi.cjs +1 -0
- package/src/apis/ProjectsApi.js +1 -0
- package/src/apis/ProvidersApi.cjs +1 -0
- package/src/apis/ProvidersApi.js +1 -0
- package/src/apis/SDKApi.cjs +63 -0
- package/src/apis/SDKApi.d.ts +26 -1
- package/src/apis/SDKApi.js +63 -0
- package/src/apis/SDKViewsApi.cjs +1 -0
- package/src/apis/SDKViewsApi.js +1 -0
- package/src/apis/ServerApi.cjs +1 -0
- package/src/apis/ServerApi.js +1 -0
- package/src/apis/SessionsApi.cjs +1 -0
- package/src/apis/SessionsApi.js +1 -0
- package/src/apis/TestAccountApi.cjs +1 -0
- package/src/apis/TestAccountApi.js +1 -0
- package/src/apis/TokensApi.cjs +1 -0
- package/src/apis/TokensApi.js +1 -0
- package/src/apis/UserApiTokensApi.cjs +1 -0
- package/src/apis/UserApiTokensApi.js +1 -0
- package/src/apis/UsersApi.cjs +1 -0
- package/src/apis/UsersApi.js +1 -0
- package/src/apis/VisitsApi.cjs +1 -0
- package/src/apis/VisitsApi.js +1 -0
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/apis/WalletConnectApi.cjs +1 -0
- package/src/apis/WalletConnectApi.js +1 -0
- package/src/apis/WalletsApi.cjs +1 -0
- package/src/apis/WalletsApi.js +1 -0
- package/src/apis/WebhooksApi.cjs +1 -0
- package/src/apis/WebhooksApi.js +1 -0
- package/src/apis/ZendeskApi.cjs +1 -0
- package/src/apis/ZendeskApi.js +1 -0
- package/src/index.cjs +44 -0
- package/src/index.js +10 -0
- package/src/models/FlowQuote.cjs +5 -0
- package/src/models/FlowQuote.d.ts +13 -0
- package/src/models/FlowQuote.js +5 -0
- package/src/models/FlowTokenInfo.cjs +39 -0
- package/src/models/FlowTokenInfo.d.ts +45 -0
- package/src/models/FlowTokenInfo.js +33 -0
- package/src/models/ScreenTransactionRequest.cjs +41 -0
- package/src/models/ScreenTransactionRequest.d.ts +47 -0
- package/src/models/ScreenTransactionRequest.js +35 -0
- package/src/models/ScreenTransactionRequestContext.cjs +49 -0
- package/src/models/ScreenTransactionRequestContext.d.ts +63 -0
- package/src/models/ScreenTransactionRequestContext.js +43 -0
- package/src/models/ScreenTransactionRequestContextBtcTransaction.cjs +37 -0
- package/src/models/ScreenTransactionRequestContextBtcTransaction.d.ts +39 -0
- package/src/models/ScreenTransactionRequestContextBtcTransaction.js +31 -0
- package/src/models/ScreenTransactionRequestContextEvmTransaction.cjs +33 -0
- package/src/models/ScreenTransactionRequestContextEvmTransaction.d.ts +27 -0
- package/src/models/ScreenTransactionRequestContextEvmTransaction.js +27 -0
- package/src/models/ScreenTransactionRequestContextStellarTransaction.cjs +43 -0
- package/src/models/ScreenTransactionRequestContextStellarTransaction.d.ts +27 -0
- package/src/models/ScreenTransactionRequestContextStellarTransaction.js +37 -0
- package/src/models/ScreenTransactionRequestContextSuiTransaction.cjs +43 -0
- package/src/models/ScreenTransactionRequestContextSuiTransaction.d.ts +27 -0
- package/src/models/ScreenTransactionRequestContextSuiTransaction.js +37 -0
- package/src/models/ScreenTransactionRequestContextSvmTransaction.cjs +43 -0
- package/src/models/ScreenTransactionRequestContextSvmTransaction.d.ts +27 -0
- package/src/models/ScreenTransactionRequestContextSvmTransaction.js +37 -0
- package/src/models/ScreenTransactionRequestContextTronTransaction.cjs +43 -0
- package/src/models/ScreenTransactionRequestContextTronTransaction.d.ts +27 -0
- package/src/models/ScreenTransactionRequestContextTronTransaction.js +37 -0
- package/src/models/ScreenTransactionResponse.cjs +46 -0
- package/src/models/ScreenTransactionResponse.d.ts +47 -0
- package/src/models/ScreenTransactionResponse.js +40 -0
- package/src/models/index.d.ts +10 -0
package/src/index.js
CHANGED
|
@@ -354,6 +354,7 @@ export { FlowSettlementDataFromJSON, FlowSettlementDataFromJSONTyped, FlowSettle
|
|
|
354
354
|
export { FlowSettlementStateEnum, FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumFromJSONTyped, FlowSettlementStateEnumToJSON } from './models/FlowSettlementStateEnum.js';
|
|
355
355
|
export { FlowSourceResponseFromJSON, FlowSourceResponseFromJSONTyped, FlowSourceResponseToJSON } from './models/FlowSourceResponse.js';
|
|
356
356
|
export { FlowSourceTypeEnum, FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumFromJSONTyped, FlowSourceTypeEnumToJSON } from './models/FlowSourceTypeEnum.js';
|
|
357
|
+
export { FlowTokenInfoFromJSON, FlowTokenInfoFromJSONTyped, FlowTokenInfoToJSON } from './models/FlowTokenInfo.js';
|
|
357
358
|
export { ForbiddenFromJSON, ForbiddenFromJSONTyped, ForbiddenToJSON } from './models/Forbidden.js';
|
|
358
359
|
export { ForbiddenErrorPayloadFromJSON, ForbiddenErrorPayloadFromJSONTyped, ForbiddenErrorPayloadToJSON } from './models/ForbiddenErrorPayload.js';
|
|
359
360
|
export { ForbiddenWithErrorAndPayloadFromJSON, ForbiddenWithErrorAndPayloadFromJSONTyped, ForbiddenWithErrorAndPayloadToJSON } from './models/ForbiddenWithErrorAndPayload.js';
|
|
@@ -643,6 +644,15 @@ export { RoomTypeEnum, RoomTypeEnumFromJSON, RoomTypeEnumFromJSONTyped, RoomType
|
|
|
643
644
|
export { SanctionsWalletBlockedEventPayloadFromJSON, SanctionsWalletBlockedEventPayloadFromJSONTyped, SanctionsWalletBlockedEventPayloadKeyOwnerEnum, SanctionsWalletBlockedEventPayloadOriginEnum, SanctionsWalletBlockedEventPayloadSanctionsProviderEnum, SanctionsWalletBlockedEventPayloadToJSON } from './models/SanctionsWalletBlockedEventPayload.js';
|
|
644
645
|
export { ScanWebsiteUrlRequestFromJSON, ScanWebsiteUrlRequestFromJSONTyped, ScanWebsiteUrlRequestToJSON } from './models/ScanWebsiteUrlRequest.js';
|
|
645
646
|
export { ScanWebsiteUrlResponseFromJSON, ScanWebsiteUrlResponseFromJSONTyped, ScanWebsiteUrlResponseToJSON } from './models/ScanWebsiteUrlResponse.js';
|
|
647
|
+
export { ScreenTransactionRequestFromJSON, ScreenTransactionRequestFromJSONTyped, ScreenTransactionRequestToJSON } from './models/ScreenTransactionRequest.js';
|
|
648
|
+
export { ScreenTransactionRequestContextFromJSON, ScreenTransactionRequestContextFromJSONTyped, ScreenTransactionRequestContextToJSON } from './models/ScreenTransactionRequestContext.js';
|
|
649
|
+
export { ScreenTransactionRequestContextBtcTransactionFromJSON, ScreenTransactionRequestContextBtcTransactionFromJSONTyped, ScreenTransactionRequestContextBtcTransactionToJSON } from './models/ScreenTransactionRequestContextBtcTransaction.js';
|
|
650
|
+
export { ScreenTransactionRequestContextEvmTransactionFromJSON, ScreenTransactionRequestContextEvmTransactionFromJSONTyped, ScreenTransactionRequestContextEvmTransactionToJSON } from './models/ScreenTransactionRequestContextEvmTransaction.js';
|
|
651
|
+
export { ScreenTransactionRequestContextStellarTransactionFromJSON, ScreenTransactionRequestContextStellarTransactionFromJSONTyped, ScreenTransactionRequestContextStellarTransactionToJSON } from './models/ScreenTransactionRequestContextStellarTransaction.js';
|
|
652
|
+
export { ScreenTransactionRequestContextSuiTransactionFromJSON, ScreenTransactionRequestContextSuiTransactionFromJSONTyped, ScreenTransactionRequestContextSuiTransactionToJSON } from './models/ScreenTransactionRequestContextSuiTransaction.js';
|
|
653
|
+
export { ScreenTransactionRequestContextSvmTransactionFromJSON, ScreenTransactionRequestContextSvmTransactionFromJSONTyped, ScreenTransactionRequestContextSvmTransactionToJSON } from './models/ScreenTransactionRequestContextSvmTransaction.js';
|
|
654
|
+
export { ScreenTransactionRequestContextTronTransactionFromJSON, ScreenTransactionRequestContextTronTransactionFromJSONTyped, ScreenTransactionRequestContextTronTransactionToJSON } from './models/ScreenTransactionRequestContextTronTransaction.js';
|
|
655
|
+
export { ScreenTransactionResponseDecisionEnum, ScreenTransactionResponseFromJSON, ScreenTransactionResponseFromJSONTyped, ScreenTransactionResponseToJSON } from './models/ScreenTransactionResponse.js';
|
|
646
656
|
export { SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum } from './models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js';
|
|
647
657
|
export { SdkSettingsRequestFromJSON, SdkSettingsRequestFromJSONTyped, SdkSettingsRequestToJSON } from './models/SdkSettingsRequest.js';
|
|
648
658
|
export { SdkUserFromJSON, SdkUserFromJSONTyped, SdkUserToJSON } from './models/SdkUser.js';
|
package/src/models/FlowQuote.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var FlowFeeBreakdown = require('./FlowFeeBreakdown.cjs');
|
|
7
|
+
var FlowTokenInfo = require('./FlowTokenInfo.cjs');
|
|
7
8
|
var SwapSigningPayload = require('./SwapSigningPayload.cjs');
|
|
8
9
|
|
|
9
10
|
/* tslint:disable */
|
|
@@ -23,6 +24,8 @@ function FlowQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
24
|
'signingPayload': !runtime.exists(json, 'signingPayload') ? undefined : SwapSigningPayload.SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
24
25
|
'createdAt': (new Date(json['createdAt'])),
|
|
25
26
|
'expiresAt': (new Date(json['expiresAt'])),
|
|
27
|
+
'fromTokenInfo': !runtime.exists(json, 'fromTokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['fromTokenInfo']),
|
|
28
|
+
'toTokenInfo': !runtime.exists(json, 'toTokenInfo') ? undefined : FlowTokenInfo.FlowTokenInfoFromJSON(json['toTokenInfo']),
|
|
26
29
|
};
|
|
27
30
|
}
|
|
28
31
|
function FlowQuoteToJSON(value) {
|
|
@@ -41,6 +44,8 @@ function FlowQuoteToJSON(value) {
|
|
|
41
44
|
'signingPayload': SwapSigningPayload.SwapSigningPayloadToJSON(value.signingPayload),
|
|
42
45
|
'createdAt': (value.createdAt.toISOString()),
|
|
43
46
|
'expiresAt': (value.expiresAt.toISOString()),
|
|
47
|
+
'fromTokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.fromTokenInfo),
|
|
48
|
+
'toTokenInfo': FlowTokenInfo.FlowTokenInfoToJSON(value.toTokenInfo),
|
|
44
49
|
};
|
|
45
50
|
}
|
|
46
51
|
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { FlowFeeBreakdown } from './FlowFeeBreakdown';
|
|
13
|
+
import { FlowTokenInfo } from './FlowTokenInfo';
|
|
13
14
|
import { SwapSigningPayload } from './SwapSigningPayload';
|
|
14
15
|
/**
|
|
15
16
|
* A versioned quote snapshot stored on a flow.
|
|
@@ -65,6 +66,18 @@ export interface FlowQuote {
|
|
|
65
66
|
* @memberof FlowQuote
|
|
66
67
|
*/
|
|
67
68
|
expiresAt: Date;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {FlowTokenInfo}
|
|
72
|
+
* @memberof FlowQuote
|
|
73
|
+
*/
|
|
74
|
+
fromTokenInfo?: FlowTokenInfo;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {FlowTokenInfo}
|
|
78
|
+
* @memberof FlowQuote
|
|
79
|
+
*/
|
|
80
|
+
toTokenInfo?: FlowTokenInfo;
|
|
68
81
|
}
|
|
69
82
|
export declare function FlowQuoteFromJSON(json: any): FlowQuote;
|
|
70
83
|
export declare function FlowQuoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowQuote;
|
package/src/models/FlowQuote.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { FlowFeeBreakdownFromJSON, FlowFeeBreakdownToJSON } from './FlowFeeBreakdown.js';
|
|
3
|
+
import { FlowTokenInfoFromJSON, FlowTokenInfoToJSON } from './FlowTokenInfo.js';
|
|
3
4
|
import { SwapSigningPayloadFromJSON, SwapSigningPayloadToJSON } from './SwapSigningPayload.js';
|
|
4
5
|
|
|
5
6
|
/* tslint:disable */
|
|
@@ -19,6 +20,8 @@ function FlowQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
20
|
'signingPayload': !exists(json, 'signingPayload') ? undefined : SwapSigningPayloadFromJSON(json['signingPayload']),
|
|
20
21
|
'createdAt': (new Date(json['createdAt'])),
|
|
21
22
|
'expiresAt': (new Date(json['expiresAt'])),
|
|
23
|
+
'fromTokenInfo': !exists(json, 'fromTokenInfo') ? undefined : FlowTokenInfoFromJSON(json['fromTokenInfo']),
|
|
24
|
+
'toTokenInfo': !exists(json, 'toTokenInfo') ? undefined : FlowTokenInfoFromJSON(json['toTokenInfo']),
|
|
22
25
|
};
|
|
23
26
|
}
|
|
24
27
|
function FlowQuoteToJSON(value) {
|
|
@@ -37,6 +40,8 @@ function FlowQuoteToJSON(value) {
|
|
|
37
40
|
'signingPayload': SwapSigningPayloadToJSON(value.signingPayload),
|
|
38
41
|
'createdAt': (value.createdAt.toISOString()),
|
|
39
42
|
'expiresAt': (value.expiresAt.toISOString()),
|
|
43
|
+
'fromTokenInfo': FlowTokenInfoToJSON(value.fromTokenInfo),
|
|
44
|
+
'toTokenInfo': FlowTokenInfoToJSON(value.toTokenInfo),
|
|
40
45
|
};
|
|
41
46
|
}
|
|
42
47
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function FlowTokenInfoFromJSON(json) {
|
|
9
|
+
return FlowTokenInfoFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function FlowTokenInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'symbol': json['symbol'],
|
|
17
|
+
'decimals': json['decimals'],
|
|
18
|
+
'name': !runtime.exists(json, 'name') ? undefined : json['name'],
|
|
19
|
+
'logoURI': !runtime.exists(json, 'logoURI') ? undefined : json['logoURI'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function FlowTokenInfoToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'symbol': value.symbol,
|
|
31
|
+
'decimals': value.decimals,
|
|
32
|
+
'name': value.name,
|
|
33
|
+
'logoURI': value.logoURI,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.FlowTokenInfoFromJSON = FlowTokenInfoFromJSON;
|
|
38
|
+
exports.FlowTokenInfoFromJSONTyped = FlowTokenInfoFromJSONTyped;
|
|
39
|
+
exports.FlowTokenInfoToJSON = FlowTokenInfoToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Token metadata returned alongside a flow quote.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowTokenInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowTokenInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Token symbol (e.g. USDC, ETH)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FlowTokenInfo
|
|
22
|
+
*/
|
|
23
|
+
symbol: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of decimal places for this token
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof FlowTokenInfo
|
|
28
|
+
*/
|
|
29
|
+
decimals: number;
|
|
30
|
+
/**
|
|
31
|
+
* Human-readable token name (e.g. USD Coin, Ether)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FlowTokenInfo
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* URL to the token logo image
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FlowTokenInfo
|
|
40
|
+
*/
|
|
41
|
+
logoURI?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function FlowTokenInfoFromJSON(json: any): FlowTokenInfo;
|
|
44
|
+
export declare function FlowTokenInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowTokenInfo;
|
|
45
|
+
export declare function FlowTokenInfoToJSON(value?: FlowTokenInfo | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function FlowTokenInfoFromJSON(json) {
|
|
5
|
+
return FlowTokenInfoFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function FlowTokenInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'symbol': json['symbol'],
|
|
13
|
+
'decimals': json['decimals'],
|
|
14
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
15
|
+
'logoURI': !exists(json, 'logoURI') ? undefined : json['logoURI'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function FlowTokenInfoToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'symbol': value.symbol,
|
|
27
|
+
'decimals': value.decimals,
|
|
28
|
+
'name': value.name,
|
|
29
|
+
'logoURI': value.logoURI,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { FlowTokenInfoFromJSON, FlowTokenInfoFromJSONTyped, FlowTokenInfoToJSON };
|
|
@@ -0,0 +1,41 @@
|
|
|
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 ScreenTransactionRequestContext = require('./ScreenTransactionRequestContext.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function ScreenTransactionRequestFromJSON(json) {
|
|
11
|
+
return ScreenTransactionRequestFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function ScreenTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
19
|
+
'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
|
|
20
|
+
'senderAddress': !runtime.exists(json, 'senderAddress') ? undefined : json['senderAddress'],
|
|
21
|
+
'context': ScreenTransactionRequestContext.ScreenTransactionRequestContextFromJSON(json['context']),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function ScreenTransactionRequestToJSON(value) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
33
|
+
'chainId': value.chainId,
|
|
34
|
+
'senderAddress': value.senderAddress,
|
|
35
|
+
'context': ScreenTransactionRequestContext.ScreenTransactionRequestContextToJSON(value.context),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.ScreenTransactionRequestFromJSON = ScreenTransactionRequestFromJSON;
|
|
40
|
+
exports.ScreenTransactionRequestFromJSONTyped = ScreenTransactionRequestFromJSONTyped;
|
|
41
|
+
exports.ScreenTransactionRequestToJSON = ScreenTransactionRequestToJSON;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { ScreenTransactionRequestContext } from './ScreenTransactionRequestContext';
|
|
14
|
+
/**
|
|
15
|
+
* The sender and statically-encoded envelope destinations are extracted and screened server-side.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ScreenTransactionRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface ScreenTransactionRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ChainEnum}
|
|
23
|
+
* @memberof ScreenTransactionRequest
|
|
24
|
+
*/
|
|
25
|
+
chain: ChainEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Network identifier, recorded for audit/logging only — screening is per chain family.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ScreenTransactionRequest
|
|
30
|
+
*/
|
|
31
|
+
chainId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The transaction sender; screened alongside the extracted destinations.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ScreenTransactionRequest
|
|
36
|
+
*/
|
|
37
|
+
senderAddress?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ScreenTransactionRequestContext}
|
|
41
|
+
* @memberof ScreenTransactionRequest
|
|
42
|
+
*/
|
|
43
|
+
context: ScreenTransactionRequestContext;
|
|
44
|
+
}
|
|
45
|
+
export declare function ScreenTransactionRequestFromJSON(json: any): ScreenTransactionRequest;
|
|
46
|
+
export declare function ScreenTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenTransactionRequest;
|
|
47
|
+
export declare function ScreenTransactionRequestToJSON(value?: ScreenTransactionRequest | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
import { ScreenTransactionRequestContextFromJSON, ScreenTransactionRequestContextToJSON } from './ScreenTransactionRequestContext.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function ScreenTransactionRequestFromJSON(json) {
|
|
7
|
+
return ScreenTransactionRequestFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function ScreenTransactionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'chain': ChainEnumFromJSON(json['chain']),
|
|
15
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
16
|
+
'senderAddress': !exists(json, 'senderAddress') ? undefined : json['senderAddress'],
|
|
17
|
+
'context': ScreenTransactionRequestContextFromJSON(json['context']),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function ScreenTransactionRequestToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'chain': ChainEnumToJSON(value.chain),
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
'senderAddress': value.senderAddress,
|
|
31
|
+
'context': ScreenTransactionRequestContextToJSON(value.context),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { ScreenTransactionRequestFromJSON, ScreenTransactionRequestFromJSONTyped, ScreenTransactionRequestToJSON };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ScreenTransactionRequestContextBtcTransaction = require('./ScreenTransactionRequestContextBtcTransaction.cjs');
|
|
7
|
+
var ScreenTransactionRequestContextEvmTransaction = require('./ScreenTransactionRequestContextEvmTransaction.cjs');
|
|
8
|
+
var ScreenTransactionRequestContextStellarTransaction = require('./ScreenTransactionRequestContextStellarTransaction.cjs');
|
|
9
|
+
var ScreenTransactionRequestContextSuiTransaction = require('./ScreenTransactionRequestContextSuiTransaction.cjs');
|
|
10
|
+
var ScreenTransactionRequestContextSvmTransaction = require('./ScreenTransactionRequestContextSvmTransaction.cjs');
|
|
11
|
+
var ScreenTransactionRequestContextTronTransaction = require('./ScreenTransactionRequestContextTronTransaction.cjs');
|
|
12
|
+
|
|
13
|
+
/* tslint:disable */
|
|
14
|
+
function ScreenTransactionRequestContextFromJSON(json) {
|
|
15
|
+
return ScreenTransactionRequestContextFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function ScreenTransactionRequestContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'btcTransaction': !runtime.exists(json, 'btcTransaction') ? undefined : ScreenTransactionRequestContextBtcTransaction.ScreenTransactionRequestContextBtcTransactionFromJSON(json['btcTransaction']),
|
|
23
|
+
'evmTransaction': !runtime.exists(json, 'evmTransaction') ? undefined : ScreenTransactionRequestContextEvmTransaction.ScreenTransactionRequestContextEvmTransactionFromJSON(json['evmTransaction']),
|
|
24
|
+
'stellarTransaction': !runtime.exists(json, 'stellarTransaction') ? undefined : ScreenTransactionRequestContextStellarTransaction.ScreenTransactionRequestContextStellarTransactionFromJSON(json['stellarTransaction']),
|
|
25
|
+
'suiTransaction': !runtime.exists(json, 'suiTransaction') ? undefined : ScreenTransactionRequestContextSuiTransaction.ScreenTransactionRequestContextSuiTransactionFromJSON(json['suiTransaction']),
|
|
26
|
+
'svmTransaction': !runtime.exists(json, 'svmTransaction') ? undefined : ScreenTransactionRequestContextSvmTransaction.ScreenTransactionRequestContextSvmTransactionFromJSON(json['svmTransaction']),
|
|
27
|
+
'tronTransaction': !runtime.exists(json, 'tronTransaction') ? undefined : ScreenTransactionRequestContextTronTransaction.ScreenTransactionRequestContextTronTransactionFromJSON(json['tronTransaction']),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function ScreenTransactionRequestContextToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'btcTransaction': ScreenTransactionRequestContextBtcTransaction.ScreenTransactionRequestContextBtcTransactionToJSON(value.btcTransaction),
|
|
39
|
+
'evmTransaction': ScreenTransactionRequestContextEvmTransaction.ScreenTransactionRequestContextEvmTransactionToJSON(value.evmTransaction),
|
|
40
|
+
'stellarTransaction': ScreenTransactionRequestContextStellarTransaction.ScreenTransactionRequestContextStellarTransactionToJSON(value.stellarTransaction),
|
|
41
|
+
'suiTransaction': ScreenTransactionRequestContextSuiTransaction.ScreenTransactionRequestContextSuiTransactionToJSON(value.suiTransaction),
|
|
42
|
+
'svmTransaction': ScreenTransactionRequestContextSvmTransaction.ScreenTransactionRequestContextSvmTransactionToJSON(value.svmTransaction),
|
|
43
|
+
'tronTransaction': ScreenTransactionRequestContextTronTransaction.ScreenTransactionRequestContextTronTransactionToJSON(value.tronTransaction),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
exports.ScreenTransactionRequestContextFromJSON = ScreenTransactionRequestContextFromJSON;
|
|
48
|
+
exports.ScreenTransactionRequestContextFromJSONTyped = ScreenTransactionRequestContextFromJSONTyped;
|
|
49
|
+
exports.ScreenTransactionRequestContextToJSON = ScreenTransactionRequestContextToJSON;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { ScreenTransactionRequestContextBtcTransaction } from './ScreenTransactionRequestContextBtcTransaction';
|
|
13
|
+
import { ScreenTransactionRequestContextEvmTransaction } from './ScreenTransactionRequestContextEvmTransaction';
|
|
14
|
+
import { ScreenTransactionRequestContextStellarTransaction } from './ScreenTransactionRequestContextStellarTransaction';
|
|
15
|
+
import { ScreenTransactionRequestContextSuiTransaction } from './ScreenTransactionRequestContextSuiTransaction';
|
|
16
|
+
import { ScreenTransactionRequestContextSvmTransaction } from './ScreenTransactionRequestContextSvmTransaction';
|
|
17
|
+
import { ScreenTransactionRequestContextTronTransaction } from './ScreenTransactionRequestContextTronTransaction';
|
|
18
|
+
/**
|
|
19
|
+
* Chain-specific transaction payload; exactly one shape must be provided.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ScreenTransactionRequestContext
|
|
22
|
+
*/
|
|
23
|
+
export interface ScreenTransactionRequestContext {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ScreenTransactionRequestContextBtcTransaction}
|
|
27
|
+
* @memberof ScreenTransactionRequestContext
|
|
28
|
+
*/
|
|
29
|
+
btcTransaction?: ScreenTransactionRequestContextBtcTransaction;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ScreenTransactionRequestContextEvmTransaction}
|
|
33
|
+
* @memberof ScreenTransactionRequestContext
|
|
34
|
+
*/
|
|
35
|
+
evmTransaction?: ScreenTransactionRequestContextEvmTransaction;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ScreenTransactionRequestContextStellarTransaction}
|
|
39
|
+
* @memberof ScreenTransactionRequestContext
|
|
40
|
+
*/
|
|
41
|
+
stellarTransaction?: ScreenTransactionRequestContextStellarTransaction;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ScreenTransactionRequestContextSuiTransaction}
|
|
45
|
+
* @memberof ScreenTransactionRequestContext
|
|
46
|
+
*/
|
|
47
|
+
suiTransaction?: ScreenTransactionRequestContextSuiTransaction;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {ScreenTransactionRequestContextSvmTransaction}
|
|
51
|
+
* @memberof ScreenTransactionRequestContext
|
|
52
|
+
*/
|
|
53
|
+
svmTransaction?: ScreenTransactionRequestContextSvmTransaction;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {ScreenTransactionRequestContextTronTransaction}
|
|
57
|
+
* @memberof ScreenTransactionRequestContext
|
|
58
|
+
*/
|
|
59
|
+
tronTransaction?: ScreenTransactionRequestContextTronTransaction;
|
|
60
|
+
}
|
|
61
|
+
export declare function ScreenTransactionRequestContextFromJSON(json: any): ScreenTransactionRequestContext;
|
|
62
|
+
export declare function ScreenTransactionRequestContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenTransactionRequestContext;
|
|
63
|
+
export declare function ScreenTransactionRequestContextToJSON(value?: ScreenTransactionRequestContext | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ScreenTransactionRequestContextBtcTransactionFromJSON, ScreenTransactionRequestContextBtcTransactionToJSON } from './ScreenTransactionRequestContextBtcTransaction.js';
|
|
3
|
+
import { ScreenTransactionRequestContextEvmTransactionFromJSON, ScreenTransactionRequestContextEvmTransactionToJSON } from './ScreenTransactionRequestContextEvmTransaction.js';
|
|
4
|
+
import { ScreenTransactionRequestContextStellarTransactionFromJSON, ScreenTransactionRequestContextStellarTransactionToJSON } from './ScreenTransactionRequestContextStellarTransaction.js';
|
|
5
|
+
import { ScreenTransactionRequestContextSuiTransactionFromJSON, ScreenTransactionRequestContextSuiTransactionToJSON } from './ScreenTransactionRequestContextSuiTransaction.js';
|
|
6
|
+
import { ScreenTransactionRequestContextSvmTransactionFromJSON, ScreenTransactionRequestContextSvmTransactionToJSON } from './ScreenTransactionRequestContextSvmTransaction.js';
|
|
7
|
+
import { ScreenTransactionRequestContextTronTransactionFromJSON, ScreenTransactionRequestContextTronTransactionToJSON } from './ScreenTransactionRequestContextTronTransaction.js';
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function ScreenTransactionRequestContextFromJSON(json) {
|
|
11
|
+
return ScreenTransactionRequestContextFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function ScreenTransactionRequestContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'btcTransaction': !exists(json, 'btcTransaction') ? undefined : ScreenTransactionRequestContextBtcTransactionFromJSON(json['btcTransaction']),
|
|
19
|
+
'evmTransaction': !exists(json, 'evmTransaction') ? undefined : ScreenTransactionRequestContextEvmTransactionFromJSON(json['evmTransaction']),
|
|
20
|
+
'stellarTransaction': !exists(json, 'stellarTransaction') ? undefined : ScreenTransactionRequestContextStellarTransactionFromJSON(json['stellarTransaction']),
|
|
21
|
+
'suiTransaction': !exists(json, 'suiTransaction') ? undefined : ScreenTransactionRequestContextSuiTransactionFromJSON(json['suiTransaction']),
|
|
22
|
+
'svmTransaction': !exists(json, 'svmTransaction') ? undefined : ScreenTransactionRequestContextSvmTransactionFromJSON(json['svmTransaction']),
|
|
23
|
+
'tronTransaction': !exists(json, 'tronTransaction') ? undefined : ScreenTransactionRequestContextTronTransactionFromJSON(json['tronTransaction']),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function ScreenTransactionRequestContextToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'btcTransaction': ScreenTransactionRequestContextBtcTransactionToJSON(value.btcTransaction),
|
|
35
|
+
'evmTransaction': ScreenTransactionRequestContextEvmTransactionToJSON(value.evmTransaction),
|
|
36
|
+
'stellarTransaction': ScreenTransactionRequestContextStellarTransactionToJSON(value.stellarTransaction),
|
|
37
|
+
'suiTransaction': ScreenTransactionRequestContextSuiTransactionToJSON(value.suiTransaction),
|
|
38
|
+
'svmTransaction': ScreenTransactionRequestContextSvmTransactionToJSON(value.svmTransaction),
|
|
39
|
+
'tronTransaction': ScreenTransactionRequestContextTronTransactionToJSON(value.tronTransaction),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { ScreenTransactionRequestContextFromJSON, ScreenTransactionRequestContextFromJSONTyped, ScreenTransactionRequestContextToJSON };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function ScreenTransactionRequestContextBtcTransactionFromJSON(json) {
|
|
9
|
+
return ScreenTransactionRequestContextBtcTransactionFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function ScreenTransactionRequestContextBtcTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'chainId': json['chainId'],
|
|
17
|
+
'psbt': !runtime.exists(json, 'psbt') ? undefined : json['psbt'],
|
|
18
|
+
'recipientAddress': !runtime.exists(json, 'recipientAddress') ? undefined : json['recipientAddress'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function ScreenTransactionRequestContextBtcTransactionToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
'psbt': value.psbt,
|
|
31
|
+
'recipientAddress': value.recipientAddress,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.ScreenTransactionRequestContextBtcTransactionFromJSON = ScreenTransactionRequestContextBtcTransactionFromJSON;
|
|
36
|
+
exports.ScreenTransactionRequestContextBtcTransactionFromJSONTyped = ScreenTransactionRequestContextBtcTransactionFromJSONTyped;
|
|
37
|
+
exports.ScreenTransactionRequestContextBtcTransactionToJSON = ScreenTransactionRequestContextBtcTransactionToJSON;
|
|
@@ -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
|
+
* Exactly one of psbt / recipientAddress must be provided.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ScreenTransactionRequestContextBtcTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface ScreenTransactionRequestContextBtcTransaction {
|
|
18
|
+
/**
|
|
19
|
+
* Bitcoin network from the signing contract (1=mainnet, 2=testnet, 3=signet).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ScreenTransactionRequestContextBtcTransaction
|
|
22
|
+
*/
|
|
23
|
+
chainId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Base64- or hex-encoded PSBT.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ScreenTransactionRequestContextBtcTransaction
|
|
28
|
+
*/
|
|
29
|
+
psbt?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The envelope recipient, for callers that have not built a PSBT yet (e.g. sendBitcoin); screened like an extracted destination.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ScreenTransactionRequestContextBtcTransaction
|
|
34
|
+
*/
|
|
35
|
+
recipientAddress?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function ScreenTransactionRequestContextBtcTransactionFromJSON(json: any): ScreenTransactionRequestContextBtcTransaction;
|
|
38
|
+
export declare function ScreenTransactionRequestContextBtcTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenTransactionRequestContextBtcTransaction;
|
|
39
|
+
export declare function ScreenTransactionRequestContextBtcTransactionToJSON(value?: ScreenTransactionRequestContextBtcTransaction | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function ScreenTransactionRequestContextBtcTransactionFromJSON(json) {
|
|
5
|
+
return ScreenTransactionRequestContextBtcTransactionFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function ScreenTransactionRequestContextBtcTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'chainId': json['chainId'],
|
|
13
|
+
'psbt': !exists(json, 'psbt') ? undefined : json['psbt'],
|
|
14
|
+
'recipientAddress': !exists(json, 'recipientAddress') ? undefined : json['recipientAddress'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function ScreenTransactionRequestContextBtcTransactionToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'chainId': value.chainId,
|
|
26
|
+
'psbt': value.psbt,
|
|
27
|
+
'recipientAddress': value.recipientAddress,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ScreenTransactionRequestContextBtcTransactionFromJSON, ScreenTransactionRequestContextBtcTransactionFromJSONTyped, ScreenTransactionRequestContextBtcTransactionToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function ScreenTransactionRequestContextEvmTransactionFromJSON(json) {
|
|
9
|
+
return ScreenTransactionRequestContextEvmTransactionFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function ScreenTransactionRequestContextEvmTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'to': !runtime.exists(json, 'to') ? undefined : json['to'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function ScreenTransactionRequestContextEvmTransactionToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'to': value.to,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.ScreenTransactionRequestContextEvmTransactionFromJSON = ScreenTransactionRequestContextEvmTransactionFromJSON;
|
|
32
|
+
exports.ScreenTransactionRequestContextEvmTransactionFromJSONTyped = ScreenTransactionRequestContextEvmTransactionFromJSONTyped;
|
|
33
|
+
exports.ScreenTransactionRequestContextEvmTransactionToJSON = ScreenTransactionRequestContextEvmTransactionToJSON;
|