@dynamic-labs/sdk-api 0.67.0 → 0.69.0
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 +4 -0
- package/src/apis/AdminActionsApi.js +4 -0
- package/src/apis/AllowlistsApi.cjs +4 -0
- package/src/apis/AllowlistsApi.js +4 -0
- package/src/apis/AnalyticsApi.cjs +4 -0
- package/src/apis/AnalyticsApi.js +4 -0
- package/src/apis/AuthorizedClientsApi.cjs +4 -0
- package/src/apis/AuthorizedClientsApi.js +4 -0
- package/src/apis/BusinessAccountsApi.cjs +4 -0
- package/src/apis/BusinessAccountsApi.js +4 -0
- package/src/apis/CaptchaApi.cjs +4 -0
- package/src/apis/CaptchaApi.js +4 -0
- package/src/apis/ChainalysisApi.cjs +4 -0
- package/src/apis/ChainalysisApi.js +4 -0
- package/src/apis/ChainsApi.cjs +4 -0
- package/src/apis/ChainsApi.js +4 -0
- package/src/apis/CheckoutApi.cjs +4 -0
- package/src/apis/CheckoutApi.js +4 -0
- package/src/apis/ClientGrantApi.cjs +4 -0
- package/src/apis/ClientGrantApi.js +4 -0
- package/src/apis/CustomFieldsApi.cjs +4 -0
- package/src/apis/CustomFieldsApi.js +4 -0
- package/src/apis/CustomHostnamesApi.cjs +4 -0
- package/src/apis/CustomHostnamesApi.js +4 -0
- package/src/apis/CustomNetworksApi.cjs +4 -0
- package/src/apis/CustomNetworksApi.js +4 -0
- package/src/apis/DeeplinkUrlsApi.cjs +4 -0
- package/src/apis/DeeplinkUrlsApi.js +4 -0
- package/src/apis/EnvironmentsApi.cjs +4 -0
- package/src/apis/EnvironmentsApi.js +4 -0
- package/src/apis/EventsApi.cjs +4 -0
- package/src/apis/EventsApi.js +4 -0
- package/src/apis/ExchangesApi.cjs +4 -0
- package/src/apis/ExchangesApi.js +4 -0
- package/src/apis/ExportsApi.cjs +4 -0
- package/src/apis/ExportsApi.js +4 -0
- package/src/apis/ExternalJwtApi.cjs +4 -0
- package/src/apis/ExternalJwtApi.js +4 -0
- package/src/apis/FlowAnalyticsApi.cjs +4 -0
- package/src/apis/FlowAnalyticsApi.js +4 -0
- package/src/apis/GaslessApi.cjs +4 -0
- package/src/apis/GaslessApi.js +4 -0
- package/src/apis/GatesApi.cjs +4 -0
- package/src/apis/GatesApi.js +4 -0
- package/src/apis/GlobalWalletAccessControlApi.cjs +4 -0
- package/src/apis/GlobalWalletAccessControlApi.js +4 -0
- package/src/apis/GlobalWalletConnectionsApi.cjs +4 -0
- package/src/apis/GlobalWalletConnectionsApi.js +4 -0
- package/src/apis/GlobalWalletsApi.cjs +4 -0
- package/src/apis/GlobalWalletsApi.js +4 -0
- package/src/apis/InvitesApi.cjs +4 -0
- package/src/apis/InvitesApi.js +4 -0
- package/src/apis/KybApi.cjs +4 -0
- package/src/apis/KybApi.js +4 -0
- package/src/apis/MembersApi.cjs +4 -0
- package/src/apis/MembersApi.js +4 -0
- package/src/apis/MfaSettingsApi.cjs +4 -0
- package/src/apis/MfaSettingsApi.js +4 -0
- package/src/apis/NameServicesApi.cjs +4 -0
- package/src/apis/NameServicesApi.js +4 -0
- package/src/apis/OrganizationSettingsApi.cjs +4 -0
- package/src/apis/OrganizationSettingsApi.js +4 -0
- package/src/apis/OrganizationsApi.cjs +4 -0
- package/src/apis/OrganizationsApi.js +4 -0
- package/src/apis/OriginsApi.cjs +4 -0
- package/src/apis/OriginsApi.js +4 -0
- package/src/apis/ProjectsApi.cjs +4 -0
- package/src/apis/ProjectsApi.js +4 -0
- package/src/apis/ProvidersApi.cjs +4 -0
- package/src/apis/ProvidersApi.js +4 -0
- package/src/apis/SDKApi.cjs +202 -0
- package/src/apis/SDKApi.d.ts +80 -1
- package/src/apis/SDKApi.js +202 -0
- package/src/apis/SDKViewsApi.cjs +4 -0
- package/src/apis/SDKViewsApi.js +4 -0
- package/src/apis/ScreeningPoliciesApi.cjs +4 -0
- package/src/apis/ScreeningPoliciesApi.js +4 -0
- package/src/apis/ServerApi.cjs +106 -0
- package/src/apis/ServerApi.d.ts +45 -1
- package/src/apis/ServerApi.js +106 -0
- package/src/apis/SessionsApi.cjs +4 -0
- package/src/apis/SessionsApi.js +4 -0
- package/src/apis/TestAccountApi.cjs +4 -0
- package/src/apis/TestAccountApi.js +4 -0
- package/src/apis/TokensApi.cjs +4 -0
- package/src/apis/TokensApi.js +4 -0
- package/src/apis/UserApiTokensApi.cjs +4 -0
- package/src/apis/UserApiTokensApi.js +4 -0
- package/src/apis/UsersApi.cjs +4 -0
- package/src/apis/UsersApi.js +4 -0
- package/src/apis/VisitsApi.cjs +4 -0
- package/src/apis/VisitsApi.js +4 -0
- package/src/apis/WaasApi.cjs +106 -0
- package/src/apis/WaasApi.d.ts +45 -1
- package/src/apis/WaasApi.js +106 -0
- package/src/apis/WalletConnectApi.cjs +4 -0
- package/src/apis/WalletConnectApi.js +4 -0
- package/src/apis/WalletsApi.cjs +4 -0
- package/src/apis/WalletsApi.js +4 -0
- package/src/apis/WebhooksApi.cjs +4 -0
- package/src/apis/WebhooksApi.js +4 -0
- package/src/apis/YieldApi.cjs +4 -0
- package/src/apis/YieldApi.js +4 -0
- package/src/apis/ZendeskApi.cjs +4 -0
- package/src/apis/ZendeskApi.js +4 -0
- package/src/index.cjs +76 -0
- package/src/index.js +15 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +15 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +15 -0
- package/src/models/UnprocessableEntityErrorCode.js +15 -0
- package/src/models/WaasSendEvmFee.cjs +37 -0
- package/src/models/WaasSendEvmFee.d.ts +39 -0
- package/src/models/WaasSendEvmFee.js +31 -0
- package/src/models/WaasSendEvmTransaction.cjs +48 -0
- package/src/models/WaasSendEvmTransaction.d.ts +70 -0
- package/src/models/WaasSendEvmTransaction.js +42 -0
- package/src/models/WaasSendSvmCosignerSignature.cjs +45 -0
- package/src/models/WaasSendSvmCosignerSignature.d.ts +33 -0
- package/src/models/WaasSendSvmCosignerSignature.js +39 -0
- package/src/models/WaasSendSvmTransaction.cjs +38 -0
- package/src/models/WaasSendSvmTransaction.d.ts +40 -0
- package/src/models/WaasSendSvmTransaction.js +32 -0
- package/src/models/WaasSendTransaction.cjs +37 -0
- package/src/models/WaasSendTransaction.d.ts +35 -0
- package/src/models/WaasSendTransaction.js +31 -0
- package/src/models/WaasSignAndBroadcastRequest.cjs +42 -0
- package/src/models/WaasSignAndBroadcastRequest.d.ts +54 -0
- package/src/models/WaasSignAndBroadcastRequest.js +36 -0
- package/src/models/WaasSvmCommitment.cjs +41 -0
- package/src/models/WaasSvmCommitment.d.ts +24 -0
- package/src/models/WaasSvmCommitment.js +35 -0
- package/src/models/WaasTransactionSend.cjs +84 -0
- package/src/models/WaasTransactionSend.d.ts +149 -0
- package/src/models/WaasTransactionSend.js +78 -0
- package/src/models/WaasTransactionSendAttempt.cjs +40 -0
- package/src/models/WaasTransactionSendAttempt.d.ts +46 -0
- package/src/models/WaasTransactionSendAttempt.js +34 -0
- package/src/models/WaasTransactionSendEvmProgress.cjs +35 -0
- package/src/models/WaasTransactionSendEvmProgress.d.ts +33 -0
- package/src/models/WaasTransactionSendEvmProgress.js +29 -0
- package/src/models/WaasTransactionSendProgress.cjs +40 -0
- package/src/models/WaasTransactionSendProgress.d.ts +46 -0
- package/src/models/WaasTransactionSendProgress.js +34 -0
- package/src/models/WaasTransactionSendProgressDetail.cjs +37 -0
- package/src/models/WaasTransactionSendProgressDetail.d.ts +35 -0
- package/src/models/WaasTransactionSendProgressDetail.js +31 -0
- package/src/models/WaasTransactionSendReason.cjs +48 -0
- package/src/models/WaasTransactionSendReason.d.ts +31 -0
- package/src/models/WaasTransactionSendReason.js +42 -0
- package/src/models/WaasTransactionSendStatus.cjs +46 -0
- package/src/models/WaasTransactionSendStatus.d.ts +29 -0
- package/src/models/WaasTransactionSendStatus.js +40 -0
- package/src/models/WaasTransactionSendSvmProgress.cjs +35 -0
- package/src/models/WaasTransactionSendSvmProgress.d.ts +34 -0
- package/src/models/WaasTransactionSendSvmProgress.js +29 -0
- package/src/models/index.d.ts +15 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* A Solana commitment level.
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.WaasSvmCommitment = void 0;
|
|
24
|
+
(function (WaasSvmCommitment) {
|
|
25
|
+
WaasSvmCommitment["Processed"] = "processed";
|
|
26
|
+
WaasSvmCommitment["Confirmed"] = "confirmed";
|
|
27
|
+
WaasSvmCommitment["Finalized"] = "finalized";
|
|
28
|
+
})(exports.WaasSvmCommitment || (exports.WaasSvmCommitment = {}));
|
|
29
|
+
function WaasSvmCommitmentFromJSON(json) {
|
|
30
|
+
return WaasSvmCommitmentFromJSONTyped(json);
|
|
31
|
+
}
|
|
32
|
+
function WaasSvmCommitmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
function WaasSvmCommitmentToJSON(value) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.WaasSvmCommitmentFromJSON = WaasSvmCommitmentFromJSON;
|
|
40
|
+
exports.WaasSvmCommitmentFromJSONTyped = WaasSvmCommitmentFromJSONTyped;
|
|
41
|
+
exports.WaasSvmCommitmentToJSON = WaasSvmCommitmentToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A Solana commitment level.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum WaasSvmCommitment {
|
|
18
|
+
Processed = "processed",
|
|
19
|
+
Confirmed = "confirmed",
|
|
20
|
+
Finalized = "finalized"
|
|
21
|
+
}
|
|
22
|
+
export declare function WaasSvmCommitmentFromJSON(json: any): WaasSvmCommitment;
|
|
23
|
+
export declare function WaasSvmCommitmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSvmCommitment;
|
|
24
|
+
export declare function WaasSvmCommitmentToJSON(value?: WaasSvmCommitment | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* A Solana commitment level.
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var WaasSvmCommitment;
|
|
20
|
+
(function (WaasSvmCommitment) {
|
|
21
|
+
WaasSvmCommitment["Processed"] = "processed";
|
|
22
|
+
WaasSvmCommitment["Confirmed"] = "confirmed";
|
|
23
|
+
WaasSvmCommitment["Finalized"] = "finalized";
|
|
24
|
+
})(WaasSvmCommitment || (WaasSvmCommitment = {}));
|
|
25
|
+
function WaasSvmCommitmentFromJSON(json) {
|
|
26
|
+
return WaasSvmCommitmentFromJSONTyped(json);
|
|
27
|
+
}
|
|
28
|
+
function WaasSvmCommitmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
function WaasSvmCommitmentToJSON(value) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { WaasSvmCommitment, WaasSvmCommitmentFromJSON, WaasSvmCommitmentFromJSONTyped, WaasSvmCommitmentToJSON };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var OpenRoomResponse = require('./OpenRoomResponse.cjs');
|
|
7
|
+
var WaasSendEvmFee = require('./WaasSendEvmFee.cjs');
|
|
8
|
+
var WaasTransactionSendAttempt = require('./WaasTransactionSendAttempt.cjs');
|
|
9
|
+
var WaasTransactionSendProgress = require('./WaasTransactionSendProgress.cjs');
|
|
10
|
+
var WaasTransactionSendReason = require('./WaasTransactionSendReason.cjs');
|
|
11
|
+
var WaasTransactionSendStatus = require('./WaasTransactionSendStatus.cjs');
|
|
12
|
+
|
|
13
|
+
/* tslint:disable */
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
exports.WaasTransactionSendChainTypeEnum = void 0;
|
|
19
|
+
(function (WaasTransactionSendChainTypeEnum) {
|
|
20
|
+
WaasTransactionSendChainTypeEnum["Evm"] = "evm";
|
|
21
|
+
WaasTransactionSendChainTypeEnum["Svm"] = "svm";
|
|
22
|
+
})(exports.WaasTransactionSendChainTypeEnum || (exports.WaasTransactionSendChainTypeEnum = {}));
|
|
23
|
+
function WaasTransactionSendFromJSON(json) {
|
|
24
|
+
return WaasTransactionSendFromJSONTyped(json);
|
|
25
|
+
}
|
|
26
|
+
function WaasTransactionSendFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'transactionId': json['transactionId'],
|
|
32
|
+
'status': WaasTransactionSendStatus.WaasTransactionSendStatusFromJSON(json['status']),
|
|
33
|
+
'reason': !runtime.exists(json, 'reason') ? undefined : WaasTransactionSendReason.WaasTransactionSendReasonFromJSON(json['reason']),
|
|
34
|
+
'errorMessage': !runtime.exists(json, 'errorMessage') ? undefined : json['errorMessage'],
|
|
35
|
+
'revertReason': !runtime.exists(json, 'revertReason') ? undefined : json['revertReason'],
|
|
36
|
+
'chainType': json['chainType'],
|
|
37
|
+
'chainId': json['chainId'],
|
|
38
|
+
'walletAddress': json['walletAddress'],
|
|
39
|
+
'idempotencyKey': json['idempotencyKey'],
|
|
40
|
+
'externalReference': !runtime.exists(json, 'externalReference') ? undefined : json['externalReference'],
|
|
41
|
+
'transactionHash': !runtime.exists(json, 'transactionHash') ? undefined : json['transactionHash'],
|
|
42
|
+
'blockExplorerUrls': !runtime.exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
|
|
43
|
+
'attempts': !runtime.exists(json, 'attempts') ? undefined : (json['attempts'].map(WaasTransactionSendAttempt.WaasTransactionSendAttemptFromJSON)),
|
|
44
|
+
'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
|
|
45
|
+
'replacementFee': !runtime.exists(json, 'replacementFee') ? undefined : WaasSendEvmFee.WaasSendEvmFeeFromJSON(json['replacementFee']),
|
|
46
|
+
'rooms': !runtime.exists(json, 'rooms') ? undefined : (json['rooms'].map(OpenRoomResponse.OpenRoomResponseFromJSON)),
|
|
47
|
+
'progress': !runtime.exists(json, 'progress') ? undefined : WaasTransactionSendProgress.WaasTransactionSendProgressFromJSON(json['progress']),
|
|
48
|
+
'requestedAt': (new Date(json['requestedAt'])),
|
|
49
|
+
'completedAt': !runtime.exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function WaasTransactionSendToJSON(value) {
|
|
53
|
+
if (value === undefined) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
if (value === null) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'transactionId': value.transactionId,
|
|
61
|
+
'status': WaasTransactionSendStatus.WaasTransactionSendStatusToJSON(value.status),
|
|
62
|
+
'reason': WaasTransactionSendReason.WaasTransactionSendReasonToJSON(value.reason),
|
|
63
|
+
'errorMessage': value.errorMessage,
|
|
64
|
+
'revertReason': value.revertReason,
|
|
65
|
+
'chainType': value.chainType,
|
|
66
|
+
'chainId': value.chainId,
|
|
67
|
+
'walletAddress': value.walletAddress,
|
|
68
|
+
'idempotencyKey': value.idempotencyKey,
|
|
69
|
+
'externalReference': value.externalReference,
|
|
70
|
+
'transactionHash': value.transactionHash,
|
|
71
|
+
'blockExplorerUrls': value.blockExplorerUrls,
|
|
72
|
+
'attempts': value.attempts === undefined ? undefined : (value.attempts.map(WaasTransactionSendAttempt.WaasTransactionSendAttemptToJSON)),
|
|
73
|
+
'nonce': value.nonce,
|
|
74
|
+
'replacementFee': WaasSendEvmFee.WaasSendEvmFeeToJSON(value.replacementFee),
|
|
75
|
+
'rooms': value.rooms === undefined ? undefined : (value.rooms.map(OpenRoomResponse.OpenRoomResponseToJSON)),
|
|
76
|
+
'progress': WaasTransactionSendProgress.WaasTransactionSendProgressToJSON(value.progress),
|
|
77
|
+
'requestedAt': (value.requestedAt.toISOString()),
|
|
78
|
+
'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
exports.WaasTransactionSendFromJSON = WaasTransactionSendFromJSON;
|
|
83
|
+
exports.WaasTransactionSendFromJSONTyped = WaasTransactionSendFromJSONTyped;
|
|
84
|
+
exports.WaasTransactionSendToJSON = WaasTransactionSendToJSON;
|
|
@@ -0,0 +1,149 @@
|
|
|
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 { OpenRoomResponse } from './OpenRoomResponse';
|
|
13
|
+
import { WaasSendEvmFee } from './WaasSendEvmFee';
|
|
14
|
+
import { WaasTransactionSendAttempt } from './WaasTransactionSendAttempt';
|
|
15
|
+
import { WaasTransactionSendProgress } from './WaasTransactionSendProgress';
|
|
16
|
+
import { WaasTransactionSendReason } from './WaasTransactionSendReason';
|
|
17
|
+
import { WaasTransactionSendStatus } from './WaasTransactionSendStatus';
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface WaasTransactionSend
|
|
22
|
+
*/
|
|
23
|
+
export interface WaasTransactionSend {
|
|
24
|
+
/**
|
|
25
|
+
* Dynamic's id for this transaction, the same on every event.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WaasTransactionSend
|
|
28
|
+
*/
|
|
29
|
+
transactionId: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {WaasTransactionSendStatus}
|
|
33
|
+
* @memberof WaasTransactionSend
|
|
34
|
+
*/
|
|
35
|
+
status: WaasTransactionSendStatus;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {WaasTransactionSendReason}
|
|
39
|
+
* @memberof WaasTransactionSend
|
|
40
|
+
*/
|
|
41
|
+
reason?: WaasTransactionSendReason;
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable detail on a `reverted` or `failed` transaction, written by Dynamic and never a raw provider or node error. For a log or a support ticket; branch on `reason` instead.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WaasTransactionSend
|
|
46
|
+
*/
|
|
47
|
+
errorMessage?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The contract's own error, when the transaction landed and reverted. Public chain output, passed through untouched and capped in length.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof WaasTransactionSend
|
|
52
|
+
*/
|
|
53
|
+
revertReason?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof WaasTransactionSend
|
|
58
|
+
*/
|
|
59
|
+
chainType: WaasTransactionSendChainTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
* An EVM chain id, or a Solana network id (101 mainnet, 103 devnet, 201 Eclipse).
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof WaasTransactionSend
|
|
64
|
+
*/
|
|
65
|
+
chainId: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof WaasTransactionSend
|
|
70
|
+
*/
|
|
71
|
+
walletAddress: string;
|
|
72
|
+
/**
|
|
73
|
+
* The key the transaction was requested with.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof WaasTransactionSend
|
|
76
|
+
*/
|
|
77
|
+
idempotencyKey: string;
|
|
78
|
+
/**
|
|
79
|
+
* Your own label, as sent.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof WaasTransactionSend
|
|
82
|
+
*/
|
|
83
|
+
externalReference?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The live attempt's hash, once it is signed.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof WaasTransactionSend
|
|
88
|
+
*/
|
|
89
|
+
transactionHash?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Array<string>}
|
|
93
|
+
* @memberof WaasTransactionSend
|
|
94
|
+
*/
|
|
95
|
+
blockExplorerUrls?: Array<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Every signed version of the transaction, cheapest first.
|
|
98
|
+
* @type {Array<WaasTransactionSendAttempt>}
|
|
99
|
+
* @memberof WaasTransactionSend
|
|
100
|
+
*/
|
|
101
|
+
attempts?: Array<WaasTransactionSendAttempt>;
|
|
102
|
+
/**
|
|
103
|
+
* EVM only. The transaction's nonce, the only safe one to reuse when replacing it.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof WaasTransactionSend
|
|
106
|
+
*/
|
|
107
|
+
nonce?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* EVM only, while the transaction is not final. The lowest fee a replacement at the same nonce would need to displace the live attempt.
|
|
110
|
+
* @type {WaasSendEvmFee}
|
|
111
|
+
* @memberof WaasTransactionSend
|
|
112
|
+
*/
|
|
113
|
+
replacementFee?: WaasSendEvmFee | null;
|
|
114
|
+
/**
|
|
115
|
+
* The signing rooms, one per attempt, while status is pending_signature.
|
|
116
|
+
* @type {Array<OpenRoomResponse>}
|
|
117
|
+
* @memberof WaasTransactionSend
|
|
118
|
+
*/
|
|
119
|
+
rooms?: Array<OpenRoomResponse>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {WaasTransactionSendProgress}
|
|
123
|
+
* @memberof WaasTransactionSend
|
|
124
|
+
*/
|
|
125
|
+
progress?: WaasTransactionSendProgress;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {Date}
|
|
129
|
+
* @memberof WaasTransactionSend
|
|
130
|
+
*/
|
|
131
|
+
requestedAt: Date;
|
|
132
|
+
/**
|
|
133
|
+
* Present when the status is terminal.
|
|
134
|
+
* @type {Date}
|
|
135
|
+
* @memberof WaasTransactionSend
|
|
136
|
+
*/
|
|
137
|
+
completedAt?: Date;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @export
|
|
141
|
+
* @enum {string}
|
|
142
|
+
*/
|
|
143
|
+
export declare enum WaasTransactionSendChainTypeEnum {
|
|
144
|
+
Evm = "evm",
|
|
145
|
+
Svm = "svm"
|
|
146
|
+
}
|
|
147
|
+
export declare function WaasTransactionSendFromJSON(json: any): WaasTransactionSend;
|
|
148
|
+
export declare function WaasTransactionSendFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionSend;
|
|
149
|
+
export declare function WaasTransactionSendToJSON(value?: WaasTransactionSend | null): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { OpenRoomResponseFromJSON, OpenRoomResponseToJSON } from './OpenRoomResponse.js';
|
|
3
|
+
import { WaasSendEvmFeeFromJSON, WaasSendEvmFeeToJSON } from './WaasSendEvmFee.js';
|
|
4
|
+
import { WaasTransactionSendAttemptFromJSON, WaasTransactionSendAttemptToJSON } from './WaasTransactionSendAttempt.js';
|
|
5
|
+
import { WaasTransactionSendProgressFromJSON, WaasTransactionSendProgressToJSON } from './WaasTransactionSendProgress.js';
|
|
6
|
+
import { WaasTransactionSendReasonFromJSON, WaasTransactionSendReasonToJSON } from './WaasTransactionSendReason.js';
|
|
7
|
+
import { WaasTransactionSendStatusFromJSON, WaasTransactionSendStatusToJSON } from './WaasTransactionSendStatus.js';
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
* @enum {string}
|
|
13
|
+
*/
|
|
14
|
+
var WaasTransactionSendChainTypeEnum;
|
|
15
|
+
(function (WaasTransactionSendChainTypeEnum) {
|
|
16
|
+
WaasTransactionSendChainTypeEnum["Evm"] = "evm";
|
|
17
|
+
WaasTransactionSendChainTypeEnum["Svm"] = "svm";
|
|
18
|
+
})(WaasTransactionSendChainTypeEnum || (WaasTransactionSendChainTypeEnum = {}));
|
|
19
|
+
function WaasTransactionSendFromJSON(json) {
|
|
20
|
+
return WaasTransactionSendFromJSONTyped(json);
|
|
21
|
+
}
|
|
22
|
+
function WaasTransactionSendFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'transactionId': json['transactionId'],
|
|
28
|
+
'status': WaasTransactionSendStatusFromJSON(json['status']),
|
|
29
|
+
'reason': !exists(json, 'reason') ? undefined : WaasTransactionSendReasonFromJSON(json['reason']),
|
|
30
|
+
'errorMessage': !exists(json, 'errorMessage') ? undefined : json['errorMessage'],
|
|
31
|
+
'revertReason': !exists(json, 'revertReason') ? undefined : json['revertReason'],
|
|
32
|
+
'chainType': json['chainType'],
|
|
33
|
+
'chainId': json['chainId'],
|
|
34
|
+
'walletAddress': json['walletAddress'],
|
|
35
|
+
'idempotencyKey': json['idempotencyKey'],
|
|
36
|
+
'externalReference': !exists(json, 'externalReference') ? undefined : json['externalReference'],
|
|
37
|
+
'transactionHash': !exists(json, 'transactionHash') ? undefined : json['transactionHash'],
|
|
38
|
+
'blockExplorerUrls': !exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
|
|
39
|
+
'attempts': !exists(json, 'attempts') ? undefined : (json['attempts'].map(WaasTransactionSendAttemptFromJSON)),
|
|
40
|
+
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
|
41
|
+
'replacementFee': !exists(json, 'replacementFee') ? undefined : WaasSendEvmFeeFromJSON(json['replacementFee']),
|
|
42
|
+
'rooms': !exists(json, 'rooms') ? undefined : (json['rooms'].map(OpenRoomResponseFromJSON)),
|
|
43
|
+
'progress': !exists(json, 'progress') ? undefined : WaasTransactionSendProgressFromJSON(json['progress']),
|
|
44
|
+
'requestedAt': (new Date(json['requestedAt'])),
|
|
45
|
+
'completedAt': !exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function WaasTransactionSendToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'transactionId': value.transactionId,
|
|
57
|
+
'status': WaasTransactionSendStatusToJSON(value.status),
|
|
58
|
+
'reason': WaasTransactionSendReasonToJSON(value.reason),
|
|
59
|
+
'errorMessage': value.errorMessage,
|
|
60
|
+
'revertReason': value.revertReason,
|
|
61
|
+
'chainType': value.chainType,
|
|
62
|
+
'chainId': value.chainId,
|
|
63
|
+
'walletAddress': value.walletAddress,
|
|
64
|
+
'idempotencyKey': value.idempotencyKey,
|
|
65
|
+
'externalReference': value.externalReference,
|
|
66
|
+
'transactionHash': value.transactionHash,
|
|
67
|
+
'blockExplorerUrls': value.blockExplorerUrls,
|
|
68
|
+
'attempts': value.attempts === undefined ? undefined : (value.attempts.map(WaasTransactionSendAttemptToJSON)),
|
|
69
|
+
'nonce': value.nonce,
|
|
70
|
+
'replacementFee': WaasSendEvmFeeToJSON(value.replacementFee),
|
|
71
|
+
'rooms': value.rooms === undefined ? undefined : (value.rooms.map(OpenRoomResponseToJSON)),
|
|
72
|
+
'progress': WaasTransactionSendProgressToJSON(value.progress),
|
|
73
|
+
'requestedAt': (value.requestedAt.toISOString()),
|
|
74
|
+
'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { WaasTransactionSendChainTypeEnum, WaasTransactionSendFromJSON, WaasTransactionSendFromJSONTyped, WaasTransactionSendToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasSendEvmFee = require('./WaasSendEvmFee.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasTransactionSendAttemptFromJSON(json) {
|
|
10
|
+
return WaasTransactionSendAttemptFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasTransactionSendAttemptFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'transactionHash': !runtime.exists(json, 'transactionHash') ? undefined : json['transactionHash'],
|
|
18
|
+
'fee': !runtime.exists(json, 'fee') ? undefined : WaasSendEvmFee.WaasSendEvmFeeFromJSON(json['fee']),
|
|
19
|
+
'blockExplorerUrls': !runtime.exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
|
|
20
|
+
'live': json['live'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function WaasTransactionSendAttemptToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'transactionHash': value.transactionHash,
|
|
32
|
+
'fee': WaasSendEvmFee.WaasSendEvmFeeToJSON(value.fee),
|
|
33
|
+
'blockExplorerUrls': value.blockExplorerUrls,
|
|
34
|
+
'live': value.live,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.WaasTransactionSendAttemptFromJSON = WaasTransactionSendAttemptFromJSON;
|
|
39
|
+
exports.WaasTransactionSendAttemptFromJSONTyped = WaasTransactionSendAttemptFromJSONTyped;
|
|
40
|
+
exports.WaasTransactionSendAttemptToJSON = WaasTransactionSendAttemptToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { WaasSendEvmFee } from './WaasSendEvmFee';
|
|
13
|
+
/**
|
|
14
|
+
* One signed version of the transaction, at one fee.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WaasTransactionSendAttempt
|
|
17
|
+
*/
|
|
18
|
+
export interface WaasTransactionSendAttempt {
|
|
19
|
+
/**
|
|
20
|
+
* Present once this attempt is signed.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WaasTransactionSendAttempt
|
|
23
|
+
*/
|
|
24
|
+
transactionHash?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {WaasSendEvmFee}
|
|
28
|
+
* @memberof WaasTransactionSendAttempt
|
|
29
|
+
*/
|
|
30
|
+
fee?: WaasSendEvmFee;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof WaasTransactionSendAttempt
|
|
35
|
+
*/
|
|
36
|
+
blockExplorerUrls?: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Whether this is the attempt currently sent. At most one is.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof WaasTransactionSendAttempt
|
|
41
|
+
*/
|
|
42
|
+
live: boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare function WaasTransactionSendAttemptFromJSON(json: any): WaasTransactionSendAttempt;
|
|
45
|
+
export declare function WaasTransactionSendAttemptFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionSendAttempt;
|
|
46
|
+
export declare function WaasTransactionSendAttemptToJSON(value?: WaasTransactionSendAttempt | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { WaasSendEvmFeeFromJSON, WaasSendEvmFeeToJSON } from './WaasSendEvmFee.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasTransactionSendAttemptFromJSON(json) {
|
|
6
|
+
return WaasTransactionSendAttemptFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasTransactionSendAttemptFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'transactionHash': !exists(json, 'transactionHash') ? undefined : json['transactionHash'],
|
|
14
|
+
'fee': !exists(json, 'fee') ? undefined : WaasSendEvmFeeFromJSON(json['fee']),
|
|
15
|
+
'blockExplorerUrls': !exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
|
|
16
|
+
'live': json['live'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function WaasTransactionSendAttemptToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'transactionHash': value.transactionHash,
|
|
28
|
+
'fee': WaasSendEvmFeeToJSON(value.fee),
|
|
29
|
+
'blockExplorerUrls': value.blockExplorerUrls,
|
|
30
|
+
'live': value.live,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { WaasTransactionSendAttemptFromJSON, WaasTransactionSendAttemptFromJSONTyped, WaasTransactionSendAttemptToJSON };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasTransactionSendEvmProgressFromJSON(json) {
|
|
9
|
+
return WaasTransactionSendEvmProgressFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasTransactionSendEvmProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'confirmations': json['confirmations'],
|
|
17
|
+
'requiredConfirmations': !runtime.exists(json, 'requiredConfirmations') ? undefined : json['requiredConfirmations'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function WaasTransactionSendEvmProgressToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'confirmations': value.confirmations,
|
|
29
|
+
'requiredConfirmations': value.requiredConfirmations,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.WaasTransactionSendEvmProgressFromJSON = WaasTransactionSendEvmProgressFromJSON;
|
|
34
|
+
exports.WaasTransactionSendEvmProgressFromJSONTyped = WaasTransactionSendEvmProgressFromJSONTyped;
|
|
35
|
+
exports.WaasTransactionSendEvmProgressToJSON = WaasTransactionSendEvmProgressToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 WaasTransactionSendEvmProgress
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasTransactionSendEvmProgress {
|
|
18
|
+
/**
|
|
19
|
+
* Blocks on top of the one holding the transaction, counting that block.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof WaasTransactionSendEvmProgress
|
|
22
|
+
*/
|
|
23
|
+
confirmations: number;
|
|
24
|
+
/**
|
|
25
|
+
* Confirmations needed. Absent when waiting for the chain's finalized block.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof WaasTransactionSendEvmProgress
|
|
28
|
+
*/
|
|
29
|
+
requiredConfirmations?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function WaasTransactionSendEvmProgressFromJSON(json: any): WaasTransactionSendEvmProgress;
|
|
32
|
+
export declare function WaasTransactionSendEvmProgressFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionSendEvmProgress;
|
|
33
|
+
export declare function WaasTransactionSendEvmProgressToJSON(value?: WaasTransactionSendEvmProgress | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WaasTransactionSendEvmProgressFromJSON(json) {
|
|
5
|
+
return WaasTransactionSendEvmProgressFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WaasTransactionSendEvmProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'confirmations': json['confirmations'],
|
|
13
|
+
'requiredConfirmations': !exists(json, 'requiredConfirmations') ? undefined : json['requiredConfirmations'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function WaasTransactionSendEvmProgressToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'confirmations': value.confirmations,
|
|
25
|
+
'requiredConfirmations': value.requiredConfirmations,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { WaasTransactionSendEvmProgressFromJSON, WaasTransactionSendEvmProgressFromJSONTyped, WaasTransactionSendEvmProgressToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var WaasTransactionSendProgressDetail = require('./WaasTransactionSendProgressDetail.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasTransactionSendProgressFromJSON(json) {
|
|
10
|
+
return WaasTransactionSendProgressFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasTransactionSendProgressFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'reached': json['reached'],
|
|
18
|
+
'required': json['required'],
|
|
19
|
+
'elapsedSeconds': json['elapsedSeconds'],
|
|
20
|
+
'detail': !runtime.exists(json, 'detail') ? undefined : WaasTransactionSendProgressDetail.WaasTransactionSendProgressDetailFromJSON(json['detail']),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function WaasTransactionSendProgressToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'reached': value.reached,
|
|
32
|
+
'required': value.required,
|
|
33
|
+
'elapsedSeconds': value.elapsedSeconds,
|
|
34
|
+
'detail': WaasTransactionSendProgressDetail.WaasTransactionSendProgressDetailToJSON(value.detail),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.WaasTransactionSendProgressFromJSON = WaasTransactionSendProgressFromJSON;
|
|
39
|
+
exports.WaasTransactionSendProgressFromJSONTyped = WaasTransactionSendProgressFromJSONTyped;
|
|
40
|
+
exports.WaasTransactionSendProgressToJSON = WaasTransactionSendProgressToJSON;
|