@dynamic-labs/sdk-api 0.101.0 → 0.103.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.
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function GetSVMSponsorAddressResponseFromJSON(json) {
19
+ return GetSVMSponsorAddressResponseFromJSONTyped(json);
20
+ }
21
+ function GetSVMSponsorAddressResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'sponsorAddress': json['sponsorAddress'],
27
+ };
28
+ }
29
+ function GetSVMSponsorAddressResponseToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'sponsorAddress': value.sponsorAddress,
38
+ };
39
+ }
40
+
41
+ exports.GetSVMSponsorAddressResponseFromJSON = GetSVMSponsorAddressResponseFromJSON;
42
+ exports.GetSVMSponsorAddressResponseFromJSONTyped = GetSVMSponsorAddressResponseFromJSONTyped;
43
+ exports.GetSVMSponsorAddressResponseToJSON = GetSVMSponsorAddressResponseToJSON;
@@ -0,0 +1,27 @@
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
+ * Solana gas sponsor address for the environment's cluster
14
+ * @export
15
+ * @interface GetSVMSponsorAddressResponse
16
+ */
17
+ export interface GetSVMSponsorAddressResponse {
18
+ /**
19
+ * Base58 public key that signs as fee payer for sponsored Solana transactions
20
+ * @type {string}
21
+ * @memberof GetSVMSponsorAddressResponse
22
+ */
23
+ sponsorAddress: string;
24
+ }
25
+ export declare function GetSVMSponsorAddressResponseFromJSON(json: any): GetSVMSponsorAddressResponse;
26
+ export declare function GetSVMSponsorAddressResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSVMSponsorAddressResponse;
27
+ export declare function GetSVMSponsorAddressResponseToJSON(value?: GetSVMSponsorAddressResponse | null): any;
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function GetSVMSponsorAddressResponseFromJSON(json) {
15
+ return GetSVMSponsorAddressResponseFromJSONTyped(json);
16
+ }
17
+ function GetSVMSponsorAddressResponseFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'sponsorAddress': json['sponsorAddress'],
23
+ };
24
+ }
25
+ function GetSVMSponsorAddressResponseToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'sponsorAddress': value.sponsorAddress,
34
+ };
35
+ }
36
+
37
+ export { GetSVMSponsorAddressResponseFromJSON, GetSVMSponsorAddressResponseFromJSONTyped, GetSVMSponsorAddressResponseToJSON };
@@ -171,7 +171,6 @@ exports.UnprocessableEntityErrorCode = void 0;
171
171
  UnprocessableEntityErrorCode["UnsupportedShape"] = "unsupported_shape";
172
172
  UnprocessableEntityErrorCode["ContractCreationUnsupported"] = "contract_creation_unsupported";
173
173
  UnprocessableEntityErrorCode["MultipleTransactions"] = "multiple_transactions";
174
- UnprocessableEntityErrorCode["AttemptCountMismatch"] = "attempt_count_mismatch";
175
174
  UnprocessableEntityErrorCode["DurableNonceUnsupported"] = "durable_nonce_unsupported";
176
175
  UnprocessableEntityErrorCode["MissingCosigner"] = "missing_cosigner";
177
176
  UnprocessableEntityErrorCode["BlockhashTooOld"] = "blockhash_too_old";
@@ -164,7 +164,6 @@ export declare enum UnprocessableEntityErrorCode {
164
164
  UnsupportedShape = "unsupported_shape",
165
165
  ContractCreationUnsupported = "contract_creation_unsupported",
166
166
  MultipleTransactions = "multiple_transactions",
167
- AttemptCountMismatch = "attempt_count_mismatch",
168
167
  DurableNonceUnsupported = "durable_nonce_unsupported",
169
168
  MissingCosigner = "missing_cosigner",
170
169
  BlockhashTooOld = "blockhash_too_old",
@@ -167,7 +167,6 @@ var UnprocessableEntityErrorCode;
167
167
  UnprocessableEntityErrorCode["UnsupportedShape"] = "unsupported_shape";
168
168
  UnprocessableEntityErrorCode["ContractCreationUnsupported"] = "contract_creation_unsupported";
169
169
  UnprocessableEntityErrorCode["MultipleTransactions"] = "multiple_transactions";
170
- UnprocessableEntityErrorCode["AttemptCountMismatch"] = "attempt_count_mismatch";
171
170
  UnprocessableEntityErrorCode["DurableNonceUnsupported"] = "durable_nonce_unsupported";
172
171
  UnprocessableEntityErrorCode["MissingCosigner"] = "missing_cosigner";
173
172
  UnprocessableEntityErrorCode["BlockhashTooOld"] = "blockhash_too_old";
@@ -16,13 +16,13 @@ function WaasSignAndBroadcastRequestFromJSONTyped(json, ignoreDiscriminator) {
16
16
  return json;
17
17
  }
18
18
  return {
19
- 'messages': json['messages'],
20
- 'contexts': (json['contexts'].map(SignMessageContext.SignMessageContextFromJSON)),
19
+ 'message': json['message'],
20
+ 'context': SignMessageContext.SignMessageContextFromJSON(json['context']),
21
21
  'broadcastOptions': !runtime.exists(json, 'broadcastOptions') ? undefined : WaasBroadcastOptions.WaasBroadcastOptionsFromJSON(json['broadcastOptions']),
22
22
  'isFormatted': !runtime.exists(json, 'isFormatted') ? undefined : json['isFormatted'],
23
23
  'requestedCertainty': !runtime.exists(json, 'requestedCertainty') ? undefined : json['requestedCertainty'],
24
24
  'externalReference': !runtime.exists(json, 'externalReference') ? undefined : json['externalReference'],
25
- 'roomIds': !runtime.exists(json, 'roomIds') ? undefined : json['roomIds'],
25
+ 'roomId': !runtime.exists(json, 'roomId') ? undefined : json['roomId'],
26
26
  'approvalQuorum': !runtime.exists(json, 'approvalQuorum') ? undefined : SignMessageApprovalQuorum.SignMessageApprovalQuorumFromJSON(json['approvalQuorum']),
27
27
  'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
28
28
  };
@@ -35,13 +35,13 @@ function WaasSignAndBroadcastRequestToJSON(value) {
35
35
  return null;
36
36
  }
37
37
  return {
38
- 'messages': value.messages,
39
- 'contexts': (value.contexts.map(SignMessageContext.SignMessageContextToJSON)),
38
+ 'message': value.message,
39
+ 'context': SignMessageContext.SignMessageContextToJSON(value.context),
40
40
  'broadcastOptions': WaasBroadcastOptions.WaasBroadcastOptionsToJSON(value.broadcastOptions),
41
41
  'isFormatted': value.isFormatted,
42
42
  'requestedCertainty': value.requestedCertainty,
43
43
  'externalReference': value.externalReference,
44
- 'roomIds': value.roomIds,
44
+ 'roomId': value.roomId,
45
45
  'approvalQuorum': SignMessageApprovalQuorum.SignMessageApprovalQuorumToJSON(value.approvalQuorum),
46
46
  'shareSetId': value.shareSetId,
47
47
  };
@@ -19,17 +19,17 @@ import { WaasBroadcastOptions } from './WaasBroadcastOptions';
19
19
  */
20
20
  export interface WaasSignAndBroadcastRequest {
21
21
  /**
22
- * One per fee attempt, in fee order: the serialized unsigned transaction to sign. RLP hex on EVM, message bytes on Solana.
23
- * @type {Array<string>}
22
+ * A string with a max length of 204800 characters
23
+ * @type {string}
24
24
  * @memberof WaasSignAndBroadcastRequest
25
25
  */
26
- messages: Array<string>;
26
+ message: string;
27
27
  /**
28
- * One per fee attempt, in fee order, the same length as `messages`: what the signer is asked to sign. Dynamic checks it and signs the matching message.
29
- * @type {Array<SignMessageContext>}
28
+ *
29
+ * @type {SignMessageContext}
30
30
  * @memberof WaasSignAndBroadcastRequest
31
31
  */
32
- contexts: Array<SignMessageContext>;
32
+ context: SignMessageContext;
33
33
  /**
34
34
  *
35
35
  * @type {WaasBroadcastOptions}
@@ -37,7 +37,7 @@ export interface WaasSignAndBroadcastRequest {
37
37
  */
38
38
  broadcastOptions?: WaasBroadcastOptions;
39
39
  /**
40
- * Whether each message is a pre-computed hash that is signed as-is. Send `false` for a serialized transaction.
40
+ * When true, `message` is treated as a pre-computed 32-byte hash (64 hex characters, optionally with a leading `0x`) and signed by the MPC server as-is ("raw signing"). When false or omitted, the SDK hashes the message bytes using the chain's standard algorithm (e.g. keccak256 for EVM). Sign and broadcast only accepts false.
41
41
  * @type {boolean}
42
42
  * @memberof WaasSignAndBroadcastRequest
43
43
  */
@@ -55,11 +55,11 @@ export interface WaasSignAndBroadcastRequest {
55
55
  */
56
56
  externalReference?: string;
57
57
  /**
58
- * Signing rooms you already opened, one per attempt in fee order. When omitted, Dynamic opens them.
59
- * @type {Array<string>}
58
+ * MPC room identifier for the signing session
59
+ * @type {string}
60
60
  * @memberof WaasSignAndBroadcastRequest
61
61
  */
62
- roomIds?: Array<string>;
62
+ roomId?: string;
63
63
  /**
64
64
  *
65
65
  * @type {SignMessageApprovalQuorum}
@@ -69,7 +69,7 @@ export interface WaasSignAndBroadcastRequest {
69
69
  /**
70
70
  * Optional identifier of the share set this operation targets. When
71
71
  * omitted, the active rootUser share set for `walletId` is resolved
72
- * server-side.
72
+ * server-side (backwards-compat fallback for older SDKs).
73
73
  * @type {string}
74
74
  * @memberof WaasSignAndBroadcastRequest
75
75
  */
@@ -12,13 +12,13 @@ function WaasSignAndBroadcastRequestFromJSONTyped(json, ignoreDiscriminator) {
12
12
  return json;
13
13
  }
14
14
  return {
15
- 'messages': json['messages'],
16
- 'contexts': (json['contexts'].map(SignMessageContextFromJSON)),
15
+ 'message': json['message'],
16
+ 'context': SignMessageContextFromJSON(json['context']),
17
17
  'broadcastOptions': !exists(json, 'broadcastOptions') ? undefined : WaasBroadcastOptionsFromJSON(json['broadcastOptions']),
18
18
  'isFormatted': !exists(json, 'isFormatted') ? undefined : json['isFormatted'],
19
19
  'requestedCertainty': !exists(json, 'requestedCertainty') ? undefined : json['requestedCertainty'],
20
20
  'externalReference': !exists(json, 'externalReference') ? undefined : json['externalReference'],
21
- 'roomIds': !exists(json, 'roomIds') ? undefined : json['roomIds'],
21
+ 'roomId': !exists(json, 'roomId') ? undefined : json['roomId'],
22
22
  'approvalQuorum': !exists(json, 'approvalQuorum') ? undefined : SignMessageApprovalQuorumFromJSON(json['approvalQuorum']),
23
23
  'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
24
24
  };
@@ -31,13 +31,13 @@ function WaasSignAndBroadcastRequestToJSON(value) {
31
31
  return null;
32
32
  }
33
33
  return {
34
- 'messages': value.messages,
35
- 'contexts': (value.contexts.map(SignMessageContextToJSON)),
34
+ 'message': value.message,
35
+ 'context': SignMessageContextToJSON(value.context),
36
36
  'broadcastOptions': WaasBroadcastOptionsToJSON(value.broadcastOptions),
37
37
  'isFormatted': value.isFormatted,
38
38
  'requestedCertainty': value.requestedCertainty,
39
39
  'externalReference': value.externalReference,
40
- 'roomIds': value.roomIds,
40
+ 'roomId': value.roomId,
41
41
  'approvalQuorum': SignMessageApprovalQuorumToJSON(value.approvalQuorum),
42
42
  'shareSetId': value.shareSetId,
43
43
  };
@@ -6,7 +6,6 @@ var runtime = require('../runtime.cjs');
6
6
  var OpenRoomResponse = require('./OpenRoomResponse.cjs');
7
7
  var WaasBroadcastEvmFee = require('./WaasBroadcastEvmFee.cjs');
8
8
  var WaasBroadcastStatus = require('./WaasBroadcastStatus.cjs');
9
- var WaasTransactionBroadcastAttempt = require('./WaasTransactionBroadcastAttempt.cjs');
10
9
  var WaasTransactionBroadcastProgress = require('./WaasTransactionBroadcastProgress.cjs');
11
10
  var WaasTransactionBroadcastReason = require('./WaasTransactionBroadcastReason.cjs');
12
11
 
@@ -40,10 +39,9 @@ function WaasTransactionBroadcastFromJSONTyped(json, ignoreDiscriminator) {
40
39
  'externalReference': !runtime.exists(json, 'externalReference') ? undefined : json['externalReference'],
41
40
  'transactionHash': !runtime.exists(json, 'transactionHash') ? undefined : json['transactionHash'],
42
41
  'blockExplorerUrls': !runtime.exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
43
- 'attempts': !runtime.exists(json, 'attempts') ? undefined : (json['attempts'].map(WaasTransactionBroadcastAttempt.WaasTransactionBroadcastAttemptFromJSON)),
44
42
  'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
45
43
  'replacementFee': !runtime.exists(json, 'replacementFee') ? undefined : WaasBroadcastEvmFee.WaasBroadcastEvmFeeFromJSON(json['replacementFee']),
46
- 'rooms': !runtime.exists(json, 'rooms') ? undefined : (json['rooms'].map(OpenRoomResponse.OpenRoomResponseFromJSON)),
44
+ 'room': !runtime.exists(json, 'room') ? undefined : OpenRoomResponse.OpenRoomResponseFromJSON(json['room']),
47
45
  'progress': !runtime.exists(json, 'progress') ? undefined : WaasTransactionBroadcastProgress.WaasTransactionBroadcastProgressFromJSON(json['progress']),
48
46
  'requestedAt': (new Date(json['requestedAt'])),
49
47
  'completedAt': !runtime.exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
@@ -69,10 +67,9 @@ function WaasTransactionBroadcastToJSON(value) {
69
67
  'externalReference': value.externalReference,
70
68
  'transactionHash': value.transactionHash,
71
69
  'blockExplorerUrls': value.blockExplorerUrls,
72
- 'attempts': value.attempts === undefined ? undefined : (value.attempts.map(WaasTransactionBroadcastAttempt.WaasTransactionBroadcastAttemptToJSON)),
73
70
  'nonce': value.nonce,
74
71
  'replacementFee': WaasBroadcastEvmFee.WaasBroadcastEvmFeeToJSON(value.replacementFee),
75
- 'rooms': value.rooms === undefined ? undefined : (value.rooms.map(OpenRoomResponse.OpenRoomResponseToJSON)),
72
+ 'room': OpenRoomResponse.OpenRoomResponseToJSON(value.room),
76
73
  'progress': WaasTransactionBroadcastProgress.WaasTransactionBroadcastProgressToJSON(value.progress),
77
74
  'requestedAt': (value.requestedAt.toISOString()),
78
75
  'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
@@ -12,7 +12,6 @@
12
12
  import { OpenRoomResponse } from './OpenRoomResponse';
13
13
  import { WaasBroadcastEvmFee } from './WaasBroadcastEvmFee';
14
14
  import { WaasBroadcastStatus } from './WaasBroadcastStatus';
15
- import { WaasTransactionBroadcastAttempt } from './WaasTransactionBroadcastAttempt';
16
15
  import { WaasTransactionBroadcastProgress } from './WaasTransactionBroadcastProgress';
17
16
  import { WaasTransactionBroadcastReason } from './WaasTransactionBroadcastReason';
18
17
  /**
@@ -82,7 +81,7 @@ export interface WaasTransactionBroadcast {
82
81
  */
83
82
  externalReference?: string;
84
83
  /**
85
- * The live attempt's hash, once it is signed.
84
+ * The transaction's hash, once it is signed.
86
85
  * @type {string}
87
86
  * @memberof WaasTransactionBroadcast
88
87
  */
@@ -93,12 +92,6 @@ export interface WaasTransactionBroadcast {
93
92
  * @memberof WaasTransactionBroadcast
94
93
  */
95
94
  blockExplorerUrls?: Array<string>;
96
- /**
97
- * Every signed version of the transaction, cheapest first.
98
- * @type {Array<WaasTransactionBroadcastAttempt>}
99
- * @memberof WaasTransactionBroadcast
100
- */
101
- attempts?: Array<WaasTransactionBroadcastAttempt>;
102
95
  /**
103
96
  * EVM only. The transaction's nonce, the only safe one to reuse when replacing it.
104
97
  * @type {string}
@@ -106,17 +99,17 @@ export interface WaasTransactionBroadcast {
106
99
  */
107
100
  nonce?: string | null;
108
101
  /**
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.
102
+ * EVM only, while the transaction is not final. The lowest fee a replacement at the same nonce would need to displace the transaction.
110
103
  * @type {WaasBroadcastEvmFee}
111
104
  * @memberof WaasTransactionBroadcast
112
105
  */
113
106
  replacementFee?: WaasBroadcastEvmFee | null;
114
107
  /**
115
- * The signing rooms, one per attempt, while status is pending_signature.
116
- * @type {Array<OpenRoomResponse>}
108
+ * The signing room, while status is pending_signature.
109
+ * @type {OpenRoomResponse}
117
110
  * @memberof WaasTransactionBroadcast
118
111
  */
119
- rooms?: Array<OpenRoomResponse>;
112
+ room?: OpenRoomResponse | null;
120
113
  /**
121
114
  *
122
115
  * @type {WaasTransactionBroadcastProgress}
@@ -2,7 +2,6 @@ import { exists } from '../runtime.js';
2
2
  import { OpenRoomResponseFromJSON, OpenRoomResponseToJSON } from './OpenRoomResponse.js';
3
3
  import { WaasBroadcastEvmFeeFromJSON, WaasBroadcastEvmFeeToJSON } from './WaasBroadcastEvmFee.js';
4
4
  import { WaasBroadcastStatusFromJSON, WaasBroadcastStatusToJSON } from './WaasBroadcastStatus.js';
5
- import { WaasTransactionBroadcastAttemptFromJSON, WaasTransactionBroadcastAttemptToJSON } from './WaasTransactionBroadcastAttempt.js';
6
5
  import { WaasTransactionBroadcastProgressFromJSON, WaasTransactionBroadcastProgressToJSON } from './WaasTransactionBroadcastProgress.js';
7
6
  import { WaasTransactionBroadcastReasonFromJSON, WaasTransactionBroadcastReasonToJSON } from './WaasTransactionBroadcastReason.js';
8
7
 
@@ -36,10 +35,9 @@ function WaasTransactionBroadcastFromJSONTyped(json, ignoreDiscriminator) {
36
35
  'externalReference': !exists(json, 'externalReference') ? undefined : json['externalReference'],
37
36
  'transactionHash': !exists(json, 'transactionHash') ? undefined : json['transactionHash'],
38
37
  'blockExplorerUrls': !exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
39
- 'attempts': !exists(json, 'attempts') ? undefined : (json['attempts'].map(WaasTransactionBroadcastAttemptFromJSON)),
40
38
  'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
41
39
  'replacementFee': !exists(json, 'replacementFee') ? undefined : WaasBroadcastEvmFeeFromJSON(json['replacementFee']),
42
- 'rooms': !exists(json, 'rooms') ? undefined : (json['rooms'].map(OpenRoomResponseFromJSON)),
40
+ 'room': !exists(json, 'room') ? undefined : OpenRoomResponseFromJSON(json['room']),
43
41
  'progress': !exists(json, 'progress') ? undefined : WaasTransactionBroadcastProgressFromJSON(json['progress']),
44
42
  'requestedAt': (new Date(json['requestedAt'])),
45
43
  'completedAt': !exists(json, 'completedAt') ? undefined : (new Date(json['completedAt'])),
@@ -65,10 +63,9 @@ function WaasTransactionBroadcastToJSON(value) {
65
63
  'externalReference': value.externalReference,
66
64
  'transactionHash': value.transactionHash,
67
65
  'blockExplorerUrls': value.blockExplorerUrls,
68
- 'attempts': value.attempts === undefined ? undefined : (value.attempts.map(WaasTransactionBroadcastAttemptToJSON)),
69
66
  'nonce': value.nonce,
70
67
  'replacementFee': WaasBroadcastEvmFeeToJSON(value.replacementFee),
71
- 'rooms': value.rooms === undefined ? undefined : (value.rooms.map(OpenRoomResponseToJSON)),
68
+ 'room': OpenRoomResponseToJSON(value.room),
72
69
  'progress': WaasTransactionBroadcastProgressToJSON(value.progress),
73
70
  'requestedAt': (value.requestedAt.toISOString()),
74
71
  'completedAt': value.completedAt === undefined ? undefined : (value.completedAt.toISOString()),
@@ -384,6 +384,7 @@ export * from './GetAvailableEVMGaslessRelayerResponse';
384
384
  export * from './GetEVMSponsoredTransactionStatusResponse';
385
385
  export * from './GetPasskeyAuthenticationOptionsResponse';
386
386
  export * from './GetPasskeyRegistrationOptionsResponse';
387
+ export * from './GetSVMSponsorAddressResponse';
387
388
  export * from './GetUserPasskeysResponse';
388
389
  export * from './GlobalWalletAccessControlDomainCreateRequest';
389
390
  export * from './GlobalWalletAccessControlDomainResponse';
@@ -930,7 +931,6 @@ export * from './WaasSignerPolicyLayerUpdateRequest';
930
931
  export * from './WaasSignerPolicyLayerUpdateRequestAllOf';
931
932
  export * from './WaasSvmCommitment';
932
933
  export * from './WaasTransactionBroadcast';
933
- export * from './WaasTransactionBroadcastAttempt';
934
934
  export * from './WaasTransactionBroadcastError';
935
935
  export * from './WaasTransactionBroadcastErrorPayload';
936
936
  export * from './WaasTransactionBroadcastEvmProgress';
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var runtime = require('../runtime.cjs');
6
- var WaasBroadcastEvmFee = require('./WaasBroadcastEvmFee.cjs');
7
-
8
- /* tslint:disable */
9
- function WaasTransactionBroadcastAttemptFromJSON(json) {
10
- return WaasTransactionBroadcastAttemptFromJSONTyped(json);
11
- }
12
- function WaasTransactionBroadcastAttemptFromJSONTyped(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 : WaasBroadcastEvmFee.WaasBroadcastEvmFeeFromJSON(json['fee']),
19
- 'blockExplorerUrls': !runtime.exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
20
- 'live': json['live'],
21
- };
22
- }
23
- function WaasTransactionBroadcastAttemptToJSON(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': WaasBroadcastEvmFee.WaasBroadcastEvmFeeToJSON(value.fee),
33
- 'blockExplorerUrls': value.blockExplorerUrls,
34
- 'live': value.live,
35
- };
36
- }
37
-
38
- exports.WaasTransactionBroadcastAttemptFromJSON = WaasTransactionBroadcastAttemptFromJSON;
39
- exports.WaasTransactionBroadcastAttemptFromJSONTyped = WaasTransactionBroadcastAttemptFromJSONTyped;
40
- exports.WaasTransactionBroadcastAttemptToJSON = WaasTransactionBroadcastAttemptToJSON;
@@ -1,46 +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 { WaasBroadcastEvmFee } from './WaasBroadcastEvmFee';
13
- /**
14
- * One signed version of the transaction, at one fee.
15
- * @export
16
- * @interface WaasTransactionBroadcastAttempt
17
- */
18
- export interface WaasTransactionBroadcastAttempt {
19
- /**
20
- * Present once this attempt is signed.
21
- * @type {string}
22
- * @memberof WaasTransactionBroadcastAttempt
23
- */
24
- transactionHash?: string;
25
- /**
26
- *
27
- * @type {WaasBroadcastEvmFee}
28
- * @memberof WaasTransactionBroadcastAttempt
29
- */
30
- fee?: WaasBroadcastEvmFee;
31
- /**
32
- *
33
- * @type {Array<string>}
34
- * @memberof WaasTransactionBroadcastAttempt
35
- */
36
- blockExplorerUrls?: Array<string>;
37
- /**
38
- * Whether this is the attempt currently sent. At most one is.
39
- * @type {boolean}
40
- * @memberof WaasTransactionBroadcastAttempt
41
- */
42
- live: boolean;
43
- }
44
- export declare function WaasTransactionBroadcastAttemptFromJSON(json: any): WaasTransactionBroadcastAttempt;
45
- export declare function WaasTransactionBroadcastAttemptFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasTransactionBroadcastAttempt;
46
- export declare function WaasTransactionBroadcastAttemptToJSON(value?: WaasTransactionBroadcastAttempt | null): any;
@@ -1,34 +0,0 @@
1
- import { exists } from '../runtime.js';
2
- import { WaasBroadcastEvmFeeFromJSON, WaasBroadcastEvmFeeToJSON } from './WaasBroadcastEvmFee.js';
3
-
4
- /* tslint:disable */
5
- function WaasTransactionBroadcastAttemptFromJSON(json) {
6
- return WaasTransactionBroadcastAttemptFromJSONTyped(json);
7
- }
8
- function WaasTransactionBroadcastAttemptFromJSONTyped(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 : WaasBroadcastEvmFeeFromJSON(json['fee']),
15
- 'blockExplorerUrls': !exists(json, 'blockExplorerUrls') ? undefined : json['blockExplorerUrls'],
16
- 'live': json['live'],
17
- };
18
- }
19
- function WaasTransactionBroadcastAttemptToJSON(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': WaasBroadcastEvmFeeToJSON(value.fee),
29
- 'blockExplorerUrls': value.blockExplorerUrls,
30
- 'live': value.live,
31
- };
32
- }
33
-
34
- export { WaasTransactionBroadcastAttemptFromJSON, WaasTransactionBroadcastAttemptFromJSONTyped, WaasTransactionBroadcastAttemptToJSON };