@proton/wrap-constants 0.2.140 → 0.2.142

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/dist/index.d.ts CHANGED
@@ -8386,19 +8386,39 @@ declare const dbHistoryTransactionParser: z.ZodObject<{
8386
8386
  block_num: z.ZodString;
8387
8387
  block_time: z.ZodString;
8388
8388
  trx_id: z.ZodString;
8389
- trace: z.ZodAny;
8389
+ trace: z.ZodObject<{
8390
+ block_num: z.ZodString;
8391
+ block_timestamp: z.ZodString;
8392
+ trace: z.ZodAny;
8393
+ }, "strip", z.ZodTypeAny, {
8394
+ block_num: string;
8395
+ block_timestamp: string;
8396
+ trace?: any;
8397
+ }, {
8398
+ block_num: string;
8399
+ block_timestamp: string;
8400
+ trace?: any;
8401
+ }>;
8390
8402
  }, "strip", z.ZodTypeAny, {
8391
8403
  block_time: string;
8392
8404
  seq: string;
8393
8405
  block_num: string;
8394
8406
  trx_id: string;
8395
- trace?: any;
8407
+ trace: {
8408
+ block_num: string;
8409
+ block_timestamp: string;
8410
+ trace?: any;
8411
+ };
8396
8412
  }, {
8397
8413
  block_time: string;
8398
8414
  seq: string;
8399
8415
  block_num: string;
8400
8416
  trx_id: string;
8401
- trace?: any;
8417
+ trace: {
8418
+ block_num: string;
8419
+ block_timestamp: string;
8420
+ trace?: any;
8421
+ };
8402
8422
  }>;
8403
8423
  declare type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
8404
8424
  declare const historyPartialParser: z.ZodObject<{
@@ -8849,7 +8869,7 @@ declare const traceParser: z.ZodObject<{
8849
8869
  error_code: string | null;
8850
8870
  return_value: string;
8851
8871
  }>, "many">;
8852
- account_ram_delta: z.ZodArray<z.ZodObject<{
8872
+ account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
8853
8873
  account: z.ZodString;
8854
8874
  delta: z.ZodString;
8855
8875
  }, "strip", z.ZodTypeAny, {
@@ -8858,7 +8878,7 @@ declare const traceParser: z.ZodObject<{
8858
8878
  }, {
8859
8879
  account: string;
8860
8880
  delta: string;
8861
- }>, "many">;
8881
+ }>, "many">>;
8862
8882
  except: z.ZodString;
8863
8883
  error_code: z.ZodNullable<z.ZodString>;
8864
8884
  failed_dtrx_trace: z.ZodArray<z.ZodUnknown, "many">;
@@ -8952,7 +8972,7 @@ declare const traceParser: z.ZodObject<{
8952
8972
  account_ram_delta: {
8953
8973
  account: string;
8954
8974
  delta: string;
8955
- }[];
8975
+ }[] | null;
8956
8976
  failed_dtrx_trace: unknown[];
8957
8977
  partial: {
8958
8978
  expiration: {
@@ -9016,7 +9036,7 @@ declare const traceParser: z.ZodObject<{
9016
9036
  account_ram_delta: {
9017
9037
  account: string;
9018
9038
  delta: string;
9019
- }[];
9039
+ }[] | null;
9020
9040
  failed_dtrx_trace: unknown[];
9021
9041
  partial: {
9022
9042
  expiration: {
@@ -9211,7 +9231,7 @@ declare const historyTransactionParser: z.ZodObject<{
9211
9231
  error_code: string | null;
9212
9232
  return_value: string;
9213
9233
  }>, "many">;
9214
- account_ram_delta: z.ZodArray<z.ZodObject<{
9234
+ account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
9215
9235
  account: z.ZodString;
9216
9236
  delta: z.ZodString;
9217
9237
  }, "strip", z.ZodTypeAny, {
@@ -9220,7 +9240,7 @@ declare const historyTransactionParser: z.ZodObject<{
9220
9240
  }, {
9221
9241
  account: string;
9222
9242
  delta: string;
9223
- }>, "many">;
9243
+ }>, "many">>;
9224
9244
  except: z.ZodString;
9225
9245
  error_code: z.ZodNullable<z.ZodString>;
9226
9246
  failed_dtrx_trace: z.ZodArray<z.ZodUnknown, "many">;
@@ -9314,7 +9334,7 @@ declare const historyTransactionParser: z.ZodObject<{
9314
9334
  account_ram_delta: {
9315
9335
  account: string;
9316
9336
  delta: string;
9317
- }[];
9337
+ }[] | null;
9318
9338
  failed_dtrx_trace: unknown[];
9319
9339
  partial: {
9320
9340
  expiration: {
@@ -9378,7 +9398,7 @@ declare const historyTransactionParser: z.ZodObject<{
9378
9398
  account_ram_delta: {
9379
9399
  account: string;
9380
9400
  delta: string;
9381
- }[];
9401
+ }[] | null;
9382
9402
  failed_dtrx_trace: unknown[];
9383
9403
  partial: {
9384
9404
  expiration: {
@@ -9445,7 +9465,7 @@ declare const historyTransactionParser: z.ZodObject<{
9445
9465
  account_ram_delta: {
9446
9466
  account: string;
9447
9467
  delta: string;
9448
- }[];
9468
+ }[] | null;
9449
9469
  failed_dtrx_trace: unknown[];
9450
9470
  partial: {
9451
9471
  expiration: {
@@ -9513,7 +9533,7 @@ declare const historyTransactionParser: z.ZodObject<{
9513
9533
  account_ram_delta: {
9514
9534
  account: string;
9515
9535
  delta: string;
9516
- }[];
9536
+ }[] | null;
9517
9537
  failed_dtrx_trace: unknown[];
9518
9538
  partial: {
9519
9539
  expiration: {
@@ -9587,7 +9607,7 @@ declare const historyTransactionParser: z.ZodObject<{
9587
9607
  account_ram_delta: {
9588
9608
  account: string;
9589
9609
  delta: string;
9590
- }[];
9610
+ }[] | null;
9591
9611
  failed_dtrx_trace: unknown[];
9592
9612
  partial: {
9593
9613
  expiration: {
@@ -9661,7 +9681,7 @@ declare const historyTransactionParser: z.ZodObject<{
9661
9681
  account_ram_delta: {
9662
9682
  account: string;
9663
9683
  delta: string;
9664
- }[];
9684
+ }[] | null;
9665
9685
  failed_dtrx_trace: unknown[];
9666
9686
  partial: {
9667
9687
  expiration: {
@@ -9860,7 +9880,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
9860
9880
  error_code: string | null;
9861
9881
  return_value: string;
9862
9882
  }>, "many">;
9863
- account_ram_delta: z.ZodArray<z.ZodObject<{
9883
+ account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
9864
9884
  account: z.ZodString;
9865
9885
  delta: z.ZodString;
9866
9886
  }, "strip", z.ZodTypeAny, {
@@ -9869,7 +9889,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
9869
9889
  }, {
9870
9890
  account: string;
9871
9891
  delta: string;
9872
- }>, "many">;
9892
+ }>, "many">>;
9873
9893
  except: z.ZodString;
9874
9894
  error_code: z.ZodNullable<z.ZodString>;
9875
9895
  failed_dtrx_trace: z.ZodArray<z.ZodUnknown, "many">;
@@ -9963,7 +9983,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
9963
9983
  account_ram_delta: {
9964
9984
  account: string;
9965
9985
  delta: string;
9966
- }[];
9986
+ }[] | null;
9967
9987
  failed_dtrx_trace: unknown[];
9968
9988
  partial: {
9969
9989
  expiration: {
@@ -10027,7 +10047,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10027
10047
  account_ram_delta: {
10028
10048
  account: string;
10029
10049
  delta: string;
10030
- }[];
10050
+ }[] | null;
10031
10051
  failed_dtrx_trace: unknown[];
10032
10052
  partial: {
10033
10053
  expiration: {
@@ -10094,7 +10114,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10094
10114
  account_ram_delta: {
10095
10115
  account: string;
10096
10116
  delta: string;
10097
- }[];
10117
+ }[] | null;
10098
10118
  failed_dtrx_trace: unknown[];
10099
10119
  partial: {
10100
10120
  expiration: {
@@ -10162,7 +10182,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10162
10182
  account_ram_delta: {
10163
10183
  account: string;
10164
10184
  delta: string;
10165
- }[];
10185
+ }[] | null;
10166
10186
  failed_dtrx_trace: unknown[];
10167
10187
  partial: {
10168
10188
  expiration: {
@@ -10236,7 +10256,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10236
10256
  account_ram_delta: {
10237
10257
  account: string;
10238
10258
  delta: string;
10239
- }[];
10259
+ }[] | null;
10240
10260
  failed_dtrx_trace: unknown[];
10241
10261
  partial: {
10242
10262
  expiration: {
@@ -10310,7 +10330,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10310
10330
  account_ram_delta: {
10311
10331
  account: string;
10312
10332
  delta: string;
10313
- }[];
10333
+ }[] | null;
10314
10334
  failed_dtrx_trace: unknown[];
10315
10335
  partial: {
10316
10336
  expiration: {
@@ -10386,7 +10406,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10386
10406
  account_ram_delta: {
10387
10407
  account: string;
10388
10408
  delta: string;
10389
- }[];
10409
+ }[] | null;
10390
10410
  failed_dtrx_trace: unknown[];
10391
10411
  partial: {
10392
10412
  expiration: {
@@ -10462,7 +10482,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
10462
10482
  account_ram_delta: {
10463
10483
  account: string;
10464
10484
  delta: string;
10465
- }[];
10485
+ }[] | null;
10466
10486
  failed_dtrx_trace: unknown[];
10467
10487
  partial: {
10468
10488
  expiration: {
package/dist/index.js CHANGED
@@ -2264,7 +2264,11 @@ var dbHistoryTransactionParser = z11.object({
2264
2264
  block_num: z11.string(),
2265
2265
  block_time: z11.string(),
2266
2266
  trx_id: z11.string(),
2267
- trace: z11.any()
2267
+ trace: z11.object({
2268
+ block_num: z11.string(),
2269
+ block_timestamp: z11.string(),
2270
+ trace: z11.any()
2271
+ })
2268
2272
  });
2269
2273
  var historyPartialParser = z11.object({
2270
2274
  expiration: z11.object({ utc_seconds: z11.string() }),
@@ -2317,7 +2321,7 @@ var traceParser = z11.object({
2317
2321
  net_usage: z11.string(),
2318
2322
  scheduled: z11.string(),
2319
2323
  action_traces: z11.array(actionTraceParser),
2320
- account_ram_delta: z11.array(accountRamDeltaParser),
2324
+ account_ram_delta: z11.array(accountRamDeltaParser).nullable(),
2321
2325
  except: z11.string(),
2322
2326
  error_code: z11.string().nullable(),
2323
2327
  failed_dtrx_trace: z11.array(z11.unknown()),
package/dist/index.mjs CHANGED
@@ -2112,7 +2112,11 @@ var dbHistoryTransactionParser = z11.object({
2112
2112
  block_num: z11.string(),
2113
2113
  block_time: z11.string(),
2114
2114
  trx_id: z11.string(),
2115
- trace: z11.any()
2115
+ trace: z11.object({
2116
+ block_num: z11.string(),
2117
+ block_timestamp: z11.string(),
2118
+ trace: z11.any()
2119
+ })
2116
2120
  });
2117
2121
  var historyPartialParser = z11.object({
2118
2122
  expiration: z11.object({ utc_seconds: z11.string() }),
@@ -2165,7 +2169,7 @@ var traceParser = z11.object({
2165
2169
  net_usage: z11.string(),
2166
2170
  scheduled: z11.string(),
2167
2171
  action_traces: z11.array(actionTraceParser),
2168
- account_ram_delta: z11.array(accountRamDeltaParser),
2172
+ account_ram_delta: z11.array(accountRamDeltaParser).nullable(),
2169
2173
  except: z11.string(),
2170
2174
  error_code: z11.string().nullable(),
2171
2175
  failed_dtrx_trace: z11.array(z11.unknown()),
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.140",
8
+ "version": "0.2.142",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -40,5 +40,5 @@
40
40
  "resolutions": {
41
41
  "typescript": "4.5"
42
42
  },
43
- "gitHead": "5f643d93a2414ea4301ef51c0f987543af029bd8"
43
+ "gitHead": "4ac41833a791f82afce7d2fd719659b95f2f79a3"
44
44
  }
@@ -531,7 +531,11 @@ export const dbHistoryTransactionParser = z.object({
531
531
  block_num: z.string(),
532
532
  block_time: z.string(),
533
533
  trx_id: z.string(),
534
- trace: z.any(),
534
+ trace: z.object({
535
+ block_num: z.string(),
536
+ block_timestamp: z.string(),
537
+ trace: z.any()
538
+ }),
535
539
  });
536
540
  export type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
537
541
 
@@ -594,7 +598,7 @@ export const traceParser = z.object({
594
598
  net_usage: z.string(),
595
599
  scheduled: z.string(),
596
600
  action_traces: z.array(actionTraceParser),
597
- account_ram_delta: z.array(accountRamDeltaParser),
601
+ account_ram_delta: z.array(accountRamDeltaParser).nullable(),
598
602
  except: z.string(),
599
603
  error_code: z.string().nullable(),
600
604
  failed_dtrx_trace: z.array(z.unknown()),