@dynamic-labs/sdk-api 0.0.951 → 0.0.952

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.951",
3
+ "version": "0.0.952",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -708,6 +708,7 @@ var WalletSanctionsResponse = require('./models/WalletSanctionsResponse.cjs');
708
708
  var WalletTransaction = require('./models/WalletTransaction.cjs');
709
709
  var WalletTransactionAssetTransfer = require('./models/WalletTransactionAssetTransfer.cjs');
710
710
  var WalletTransactionAssetTransferMetadata = require('./models/WalletTransactionAssetTransferMetadata.cjs');
711
+ var WalletTransactionFee = require('./models/WalletTransactionFee.cjs');
711
712
  var WalletTransactionType = require('./models/WalletTransactionType.cjs');
712
713
  var WalletTransactionsResponse = require('./models/WalletTransactionsResponse.cjs');
713
714
  var WalletsBreakdownResult = require('./models/WalletsBreakdownResult.cjs');
@@ -3214,6 +3215,9 @@ exports.WalletTransactionAssetTransferToJSON = WalletTransactionAssetTransfer.Wa
3214
3215
  exports.WalletTransactionAssetTransferMetadataFromJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSON;
3215
3216
  exports.WalletTransactionAssetTransferMetadataFromJSONTyped = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataFromJSONTyped;
3216
3217
  exports.WalletTransactionAssetTransferMetadataToJSON = WalletTransactionAssetTransferMetadata.WalletTransactionAssetTransferMetadataToJSON;
3218
+ exports.WalletTransactionFeeFromJSON = WalletTransactionFee.WalletTransactionFeeFromJSON;
3219
+ exports.WalletTransactionFeeFromJSONTyped = WalletTransactionFee.WalletTransactionFeeFromJSONTyped;
3220
+ exports.WalletTransactionFeeToJSON = WalletTransactionFee.WalletTransactionFeeToJSON;
3217
3221
  Object.defineProperty(exports, 'WalletTransactionType', {
3218
3222
  enumerable: true,
3219
3223
  get: function () { return WalletTransactionType.WalletTransactionType; }
package/src/index.js CHANGED
@@ -704,6 +704,7 @@ export { WalletSanctionsResponseFromJSON, WalletSanctionsResponseFromJSONTyped,
704
704
  export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON } from './models/WalletTransaction.js';
705
705
  export { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferFromJSONTyped, WalletTransactionAssetTransferToJSON } from './models/WalletTransactionAssetTransfer.js';
706
706
  export { WalletTransactionAssetTransferMetadataFromJSON, WalletTransactionAssetTransferMetadataFromJSONTyped, WalletTransactionAssetTransferMetadataToJSON } from './models/WalletTransactionAssetTransferMetadata.js';
707
+ export { WalletTransactionFeeFromJSON, WalletTransactionFeeFromJSONTyped, WalletTransactionFeeToJSON } from './models/WalletTransactionFee.js';
707
708
  export { WalletTransactionType, WalletTransactionTypeFromJSON, WalletTransactionTypeFromJSONTyped, WalletTransactionTypeToJSON } from './models/WalletTransactionType.js';
708
709
  export { WalletTransactionsResponseFromJSON, WalletTransactionsResponseFromJSONTyped, WalletTransactionsResponseToJSON } from './models/WalletTransactionsResponse.js';
709
710
  export { WalletsBreakdownResultFromJSON, WalletsBreakdownResultFromJSONTyped, WalletsBreakdownResultToJSON } from './models/WalletsBreakdownResult.js';
@@ -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 };
@@ -662,6 +662,7 @@ export * from './WalletSanctionsResponse';
662
662
  export * from './WalletTransaction';
663
663
  export * from './WalletTransactionAssetTransfer';
664
664
  export * from './WalletTransactionAssetTransferMetadata';
665
+ export * from './WalletTransactionFee';
665
666
  export * from './WalletTransactionType';
666
667
  export * from './WalletTransactionsResponse';
667
668
  export * from './WalletsBreakdownResult';