@dynamic-labs/sdk-api-core 0.0.951 → 0.0.953
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/BackupKeySharesToLocationsRequest.cjs +2 -0
- package/src/models/BackupKeySharesToLocationsRequest.d.ts +9 -0
- package/src/models/BackupKeySharesToLocationsRequest.js +2 -0
- package/src/models/BackupKeySharesToLocationsResponse.cjs +2 -0
- package/src/models/BackupKeySharesToLocationsResponse.d.ts +6 -0
- package/src/models/BackupKeySharesToLocationsResponse.js +2 -0
- package/src/models/WalletAddressType.cjs +3 -0
- package/src/models/WalletAddressType.d.ts +4 -1
- package/src/models/WalletAddressType.js +3 -0
- package/src/models/WalletTransaction.cjs +3 -0
- package/src/models/WalletTransaction.d.ts +7 -0
- package/src/models/WalletTransaction.js +3 -0
- package/src/models/WalletTransactionFee.cjs +41 -0
- package/src/models/WalletTransactionFee.d.ts +51 -0
- package/src/models/WalletTransactionFee.js +35 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -446,6 +446,7 @@ var WalletSanctionsResponse = require('./models/WalletSanctionsResponse.cjs');
|
|
|
446
446
|
var WalletTransaction = require('./models/WalletTransaction.cjs');
|
|
447
447
|
var WalletTransactionAssetTransfer = require('./models/WalletTransactionAssetTransfer.cjs');
|
|
448
448
|
var WalletTransactionAssetTransferMetadata = require('./models/WalletTransactionAssetTransferMetadata.cjs');
|
|
449
|
+
var WalletTransactionFee = require('./models/WalletTransactionFee.cjs');
|
|
449
450
|
var WalletTransactionType = require('./models/WalletTransactionType.cjs');
|
|
450
451
|
var WalletTransactionsResponse = require('./models/WalletTransactionsResponse.cjs');
|
|
451
452
|
var ZerodevBundlerProvider = require('./models/ZerodevBundlerProvider.cjs');
|
|
@@ -2131,6 +2132,9 @@ exports.WalletTransactionAssetTransferToJSON = WalletTransactionAssetTransfer.Wa
|
|
|
2131
2132
|
exports.WalletTransactionAssetTransferMetadataFromJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSON;
|
|
2132
2133
|
exports.WalletTransactionAssetTransferMetadataFromJSONTyped = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSONTyped;
|
|
2133
2134
|
exports.WalletTransactionAssetTransferMetadataToJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataToJSON;
|
|
2135
|
+
exports.WalletTransactionFeeFromJSON = WalletTransactionFee.WalletTransactionFeeFromJSON;
|
|
2136
|
+
exports.WalletTransactionFeeFromJSONTyped = WalletTransactionFee.WalletTransactionFeeFromJSONTyped;
|
|
2137
|
+
exports.WalletTransactionFeeToJSON = WalletTransactionFee.WalletTransactionFeeToJSON;
|
|
2134
2138
|
Object.defineProperty(exports, 'WalletTransactionType', {
|
|
2135
2139
|
enumerable: true,
|
|
2136
2140
|
get: function () { return WalletTransactionType.WalletTransactionType; }
|
package/src/index.js
CHANGED
|
@@ -442,6 +442,7 @@ export { WalletSanctionsResponseFromJSON, WalletSanctionsResponseFromJSONTyped,
|
|
|
442
442
|
export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON } from './models/WalletTransaction.js';
|
|
443
443
|
export { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferFromJSONTyped, WalletTransactionAssetTransferToJSON } from './models/WalletTransactionAssetTransfer.js';
|
|
444
444
|
export { WalletTransactionAssetTransferMetadataFromJSON, WalletTransactionAssetTransferMetadataFromJSONTyped, WalletTransactionAssetTransferMetadataToJSON } from './models/WalletTransactionAssetTransferMetadata.js';
|
|
445
|
+
export { WalletTransactionFeeFromJSON, WalletTransactionFeeFromJSONTyped, WalletTransactionFeeToJSON } from './models/WalletTransactionFee.js';
|
|
445
446
|
export { WalletTransactionType, WalletTransactionTypeFromJSON, WalletTransactionTypeFromJSONTyped, WalletTransactionTypeToJSON } from './models/WalletTransactionType.js';
|
|
446
447
|
export { WalletTransactionsResponseFromJSON, WalletTransactionsResponseFromJSONTyped, WalletTransactionsResponseToJSON } from './models/WalletTransactionsResponse.js';
|
|
447
448
|
export { ZerodevBundlerProvider, ZerodevBundlerProviderFromJSON, ZerodevBundlerProviderFromJSONTyped, ZerodevBundlerProviderToJSON } from './models/ZerodevBundlerProvider.js';
|
|
@@ -15,6 +15,7 @@ function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
15
15
|
}
|
|
16
16
|
return {
|
|
17
17
|
'passwordUpdateBatchId': !runtime.exists(json, 'passwordUpdateBatchId') ? undefined : json['passwordUpdateBatchId'],
|
|
18
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
18
19
|
'locations': (json['locations'].map(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSON)),
|
|
19
20
|
};
|
|
20
21
|
}
|
|
@@ -27,6 +28,7 @@ function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
|
27
28
|
}
|
|
28
29
|
return {
|
|
29
30
|
'passwordUpdateBatchId': value.passwordUpdateBatchId,
|
|
31
|
+
'shareSetId': value.shareSetId,
|
|
30
32
|
'locations': (value.locations.map(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsToJSON)),
|
|
31
33
|
};
|
|
32
34
|
}
|
|
@@ -22,6 +22,15 @@ export interface BackupKeySharesToLocationsRequest {
|
|
|
22
22
|
* @memberof BackupKeySharesToLocationsRequest
|
|
23
23
|
*/
|
|
24
24
|
passwordUpdateBatchId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Identifier of the share set (WaasWallets row) being activated. SDKs
|
|
27
|
+
* that already receive shareSetId from the ceremony_complete event
|
|
28
|
+
* should echo it back here. Optional for backwards compatibility — when
|
|
29
|
+
* omitted, the active rootUser share set is resolved from walletId.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BackupKeySharesToLocationsRequest
|
|
32
|
+
*/
|
|
33
|
+
shareSetId?: string | null;
|
|
25
34
|
/**
|
|
26
35
|
* List of backup locations with their key share configuration
|
|
27
36
|
* @type {Array<BackupKeySharesToLocationsRequestLocations>}
|
|
@@ -11,6 +11,7 @@ function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
11
11
|
}
|
|
12
12
|
return {
|
|
13
13
|
'passwordUpdateBatchId': !exists(json, 'passwordUpdateBatchId') ? undefined : json['passwordUpdateBatchId'],
|
|
14
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
14
15
|
'locations': (json['locations'].map(BackupKeySharesToLocationsRequestLocationsFromJSON)),
|
|
15
16
|
};
|
|
16
17
|
}
|
|
@@ -23,6 +24,7 @@ function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
|
23
24
|
}
|
|
24
25
|
return {
|
|
25
26
|
'passwordUpdateBatchId': value.passwordUpdateBatchId,
|
|
27
|
+
'shareSetId': value.shareSetId,
|
|
26
28
|
'locations': (value.locations.map(BackupKeySharesToLocationsRequestLocationsToJSON)),
|
|
27
29
|
};
|
|
28
30
|
}
|
|
@@ -25,6 +25,7 @@ function BackupKeySharesToLocationsResponseFromJSONTyped(json, ignoreDiscriminat
|
|
|
25
25
|
return {
|
|
26
26
|
'message': json['message'],
|
|
27
27
|
'walletId': json['walletId'],
|
|
28
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
28
29
|
'passwordUpdateStatus': !runtime.exists(json, 'passwordUpdateStatus') ? undefined : json['passwordUpdateStatus'],
|
|
29
30
|
'locationsWithKeyShares': (json['locationsWithKeyShares'].map(BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON)),
|
|
30
31
|
};
|
|
@@ -39,6 +40,7 @@ function BackupKeySharesToLocationsResponseToJSON(value) {
|
|
|
39
40
|
return {
|
|
40
41
|
'message': value.message,
|
|
41
42
|
'walletId': value.walletId,
|
|
43
|
+
'shareSetId': value.shareSetId,
|
|
42
44
|
'passwordUpdateStatus': value.passwordUpdateStatus,
|
|
43
45
|
'locationsWithKeyShares': (value.locationsWithKeyShares.map(BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON)),
|
|
44
46
|
};
|
|
@@ -28,6 +28,12 @@ export interface BackupKeySharesToLocationsResponse {
|
|
|
28
28
|
* @memberof BackupKeySharesToLocationsResponse
|
|
29
29
|
*/
|
|
30
30
|
walletId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Identifier of the share set that was activated by this backup.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BackupKeySharesToLocationsResponse
|
|
35
|
+
*/
|
|
36
|
+
shareSetId?: string | null;
|
|
31
37
|
/**
|
|
32
38
|
* Current status of the password update process
|
|
33
39
|
* @type {string}
|
|
@@ -21,6 +21,7 @@ function BackupKeySharesToLocationsResponseFromJSONTyped(json, ignoreDiscriminat
|
|
|
21
21
|
return {
|
|
22
22
|
'message': json['message'],
|
|
23
23
|
'walletId': json['walletId'],
|
|
24
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
24
25
|
'passwordUpdateStatus': !exists(json, 'passwordUpdateStatus') ? undefined : json['passwordUpdateStatus'],
|
|
25
26
|
'locationsWithKeyShares': (json['locationsWithKeyShares'].map(BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON)),
|
|
26
27
|
};
|
|
@@ -35,6 +36,7 @@ function BackupKeySharesToLocationsResponseToJSON(value) {
|
|
|
35
36
|
return {
|
|
36
37
|
'message': value.message,
|
|
37
38
|
'walletId': value.walletId,
|
|
39
|
+
'shareSetId': value.shareSetId,
|
|
38
40
|
'passwordUpdateStatus': value.passwordUpdateStatus,
|
|
39
41
|
'locationsWithKeyShares': (value.locationsWithKeyShares.map(BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON)),
|
|
40
42
|
};
|
|
@@ -28,6 +28,9 @@ exports.WalletAddressType = void 0;
|
|
|
28
28
|
WalletAddressType["Evm"] = "evm";
|
|
29
29
|
WalletAddressType["Stellar"] = "stellar";
|
|
30
30
|
WalletAddressType["Ton"] = "ton";
|
|
31
|
+
WalletAddressType["MidnightUnshielded"] = "midnight_unshielded";
|
|
32
|
+
WalletAddressType["MidnightDust"] = "midnight_dust";
|
|
33
|
+
WalletAddressType["MidnightShielded"] = "midnight_shielded";
|
|
31
34
|
})(exports.WalletAddressType || (exports.WalletAddressType = {}));
|
|
32
35
|
function WalletAddressTypeFromJSON(json) {
|
|
33
36
|
return WalletAddressTypeFromJSONTyped(json);
|
|
@@ -20,7 +20,10 @@ export declare enum WalletAddressType {
|
|
|
20
20
|
Cosmos = "cosmos",
|
|
21
21
|
Evm = "evm",
|
|
22
22
|
Stellar = "stellar",
|
|
23
|
-
Ton = "ton"
|
|
23
|
+
Ton = "ton",
|
|
24
|
+
MidnightUnshielded = "midnight_unshielded",
|
|
25
|
+
MidnightDust = "midnight_dust",
|
|
26
|
+
MidnightShielded = "midnight_shielded"
|
|
24
27
|
}
|
|
25
28
|
export declare function WalletAddressTypeFromJSON(json: any): WalletAddressType;
|
|
26
29
|
export declare function WalletAddressTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletAddressType;
|
|
@@ -24,6 +24,9 @@ var WalletAddressType;
|
|
|
24
24
|
WalletAddressType["Evm"] = "evm";
|
|
25
25
|
WalletAddressType["Stellar"] = "stellar";
|
|
26
26
|
WalletAddressType["Ton"] = "ton";
|
|
27
|
+
WalletAddressType["MidnightUnshielded"] = "midnight_unshielded";
|
|
28
|
+
WalletAddressType["MidnightDust"] = "midnight_dust";
|
|
29
|
+
WalletAddressType["MidnightShielded"] = "midnight_shielded";
|
|
27
30
|
})(WalletAddressType || (WalletAddressType = {}));
|
|
28
31
|
function WalletAddressTypeFromJSON(json) {
|
|
29
32
|
return WalletAddressTypeFromJSONTyped(json);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
7
|
var WalletTransactionAssetTransfer = require('./WalletTransactionAssetTransfer.cjs');
|
|
8
|
+
var WalletTransactionFee = require('./WalletTransactionFee.cjs');
|
|
8
9
|
var WalletTransactionType = require('./WalletTransactionType.cjs');
|
|
9
10
|
|
|
10
11
|
/* tslint:disable */
|
|
@@ -31,6 +32,7 @@ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
32
|
'source': !runtime.exists(json, 'source') ? undefined : json['source'],
|
|
32
33
|
'spam': !runtime.exists(json, 'spam') ? undefined : json['spam'],
|
|
33
34
|
'transactionType': !runtime.exists(json, 'transactionType') ? undefined : json['transactionType'],
|
|
35
|
+
'fee': !runtime.exists(json, 'fee') ? undefined : WalletTransactionFee.WalletTransactionFeeFromJSON(json['fee']),
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
function WalletTransactionToJSON(value) {
|
|
@@ -56,6 +58,7 @@ function WalletTransactionToJSON(value) {
|
|
|
56
58
|
'source': value.source,
|
|
57
59
|
'spam': value.spam,
|
|
58
60
|
'transactionType': value.transactionType,
|
|
61
|
+
'fee': WalletTransactionFee.WalletTransactionFeeToJSON(value.fee),
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
13
|
import { WalletTransactionAssetTransfer } from './WalletTransactionAssetTransfer';
|
|
14
|
+
import { WalletTransactionFee } from './WalletTransactionFee';
|
|
14
15
|
import { WalletTransactionType } from './WalletTransactionType';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -108,6 +109,12 @@ export interface WalletTransaction {
|
|
|
108
109
|
* @memberof WalletTransaction
|
|
109
110
|
*/
|
|
110
111
|
transactionType?: string;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {WalletTransactionFee}
|
|
115
|
+
* @memberof WalletTransaction
|
|
116
|
+
*/
|
|
117
|
+
fee?: WalletTransactionFee;
|
|
111
118
|
}
|
|
112
119
|
export declare function WalletTransactionFromJSON(json: any): WalletTransaction;
|
|
113
120
|
export declare function WalletTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletTransaction;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
3
|
import { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferToJSON } from './WalletTransactionAssetTransfer.js';
|
|
4
|
+
import { WalletTransactionFeeFromJSON, WalletTransactionFeeToJSON } from './WalletTransactionFee.js';
|
|
4
5
|
import { WalletTransactionTypeFromJSON, WalletTransactionTypeToJSON } from './WalletTransactionType.js';
|
|
5
6
|
|
|
6
7
|
/* tslint:disable */
|
|
@@ -27,6 +28,7 @@ function WalletTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
28
|
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
28
29
|
'spam': !exists(json, 'spam') ? undefined : json['spam'],
|
|
29
30
|
'transactionType': !exists(json, 'transactionType') ? undefined : json['transactionType'],
|
|
31
|
+
'fee': !exists(json, 'fee') ? undefined : WalletTransactionFeeFromJSON(json['fee']),
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
function WalletTransactionToJSON(value) {
|
|
@@ -52,6 +54,7 @@ function WalletTransactionToJSON(value) {
|
|
|
52
54
|
'source': value.source,
|
|
53
55
|
'spam': value.spam,
|
|
54
56
|
'transactionType': value.transactionType,
|
|
57
|
+
'fee': WalletTransactionFeeToJSON(value.fee),
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
60
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WalletTransactionFeeFromJSON(json) {
|
|
9
|
+
return WalletTransactionFeeFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WalletTransactionFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'amount': !runtime.exists(json, 'amount') ? undefined : json['amount'],
|
|
17
|
+
'sponsored': !runtime.exists(json, 'sponsored') ? undefined : json['sponsored'],
|
|
18
|
+
'sponsor': !runtime.exists(json, 'sponsor') ? undefined : json['sponsor'],
|
|
19
|
+
'gasUsed': !runtime.exists(json, 'gasUsed') ? undefined : json['gasUsed'],
|
|
20
|
+
'gasPrice': !runtime.exists(json, 'gasPrice') ? undefined : json['gasPrice'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function WalletTransactionFeeToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'amount': value.amount,
|
|
32
|
+
'sponsored': value.sponsored,
|
|
33
|
+
'sponsor': value.sponsor,
|
|
34
|
+
'gasUsed': value.gasUsed,
|
|
35
|
+
'gasPrice': value.gasPrice,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.WalletTransactionFeeFromJSON = WalletTransactionFeeFromJSON;
|
|
40
|
+
exports.WalletTransactionFeeFromJSONTyped = WalletTransactionFeeFromJSONTyped;
|
|
41
|
+
exports.WalletTransactionFeeToJSON = WalletTransactionFeeToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 WalletTransactionFee
|
|
16
|
+
*/
|
|
17
|
+
export interface WalletTransactionFee {
|
|
18
|
+
/**
|
|
19
|
+
* Fee amount in the smallest native denomination (wei for EVM chains, lamports for SVM chains).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WalletTransactionFee
|
|
22
|
+
*/
|
|
23
|
+
amount?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the fee was paid by a third party.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WalletTransactionFee
|
|
28
|
+
*/
|
|
29
|
+
sponsored?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Address of the entity that paid the fee. Only present when sponsored is true.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WalletTransactionFee
|
|
34
|
+
*/
|
|
35
|
+
sponsor?: string;
|
|
36
|
+
/**
|
|
37
|
+
* EVM only. Amount of gas actually consumed by the transaction.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WalletTransactionFee
|
|
40
|
+
*/
|
|
41
|
+
gasUsed?: string;
|
|
42
|
+
/**
|
|
43
|
+
* EVM only. Effective gas price paid in wei (base fee + priority fee for EIP-1559 transactions).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WalletTransactionFee
|
|
46
|
+
*/
|
|
47
|
+
gasPrice?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function WalletTransactionFeeFromJSON(json: any): WalletTransactionFee;
|
|
50
|
+
export declare function WalletTransactionFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletTransactionFee;
|
|
51
|
+
export declare function WalletTransactionFeeToJSON(value?: WalletTransactionFee | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WalletTransactionFeeFromJSON(json) {
|
|
5
|
+
return WalletTransactionFeeFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WalletTransactionFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'amount': !exists(json, 'amount') ? undefined : json['amount'],
|
|
13
|
+
'sponsored': !exists(json, 'sponsored') ? undefined : json['sponsored'],
|
|
14
|
+
'sponsor': !exists(json, 'sponsor') ? undefined : json['sponsor'],
|
|
15
|
+
'gasUsed': !exists(json, 'gasUsed') ? undefined : json['gasUsed'],
|
|
16
|
+
'gasPrice': !exists(json, 'gasPrice') ? undefined : json['gasPrice'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function WalletTransactionFeeToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'amount': value.amount,
|
|
28
|
+
'sponsored': value.sponsored,
|
|
29
|
+
'sponsor': value.sponsor,
|
|
30
|
+
'gasUsed': value.gasUsed,
|
|
31
|
+
'gasPrice': value.gasPrice,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { WalletTransactionFeeFromJSON, WalletTransactionFeeFromJSONTyped, WalletTransactionFeeToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -439,6 +439,7 @@ export * from './WalletSanctionsResponse';
|
|
|
439
439
|
export * from './WalletTransaction';
|
|
440
440
|
export * from './WalletTransactionAssetTransfer';
|
|
441
441
|
export * from './WalletTransactionAssetTransferMetadata';
|
|
442
|
+
export * from './WalletTransactionFee';
|
|
442
443
|
export * from './WalletTransactionType';
|
|
443
444
|
export * from './WalletTransactionsResponse';
|
|
444
445
|
export * from './ZerodevBundlerProvider';
|