@typeberry/lib 0.0.1-7996e00 → 0.0.1-8d96ad4
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/index.d.ts +37 -41
- package/index.js +35 -41
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -8772,31 +8772,18 @@ declare const ignoreValueWithDefault = <T>(defaultValue: T) =>
|
|
|
8772
8772
|
* https://graypaper.fluffylabs.dev/#/7e6ff6a/108301108301?v=0.6.7
|
|
8773
8773
|
*/
|
|
8774
8774
|
declare class ServiceAccountInfo extends WithDebug {
|
|
8775
|
-
static Codec =
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
})
|
|
8788
|
-
: codec.Class(ServiceAccountInfo, {
|
|
8789
|
-
codeHash: codec.bytes(HASH_SIZE).asOpaque<CodeHash>(),
|
|
8790
|
-
balance: codec.u64,
|
|
8791
|
-
accumulateMinGas: codec.u64.convert((x) => x, tryAsServiceGas),
|
|
8792
|
-
onTransferMinGas: codec.u64.convert((x) => x, tryAsServiceGas),
|
|
8793
|
-
storageUtilisationBytes: codec.u64,
|
|
8794
|
-
storageUtilisationCount: codec.u32,
|
|
8795
|
-
gratisStorage: ignoreValueWithDefault(tryAsU64(0)),
|
|
8796
|
-
created: ignoreValueWithDefault(tryAsTimeSlot(0)),
|
|
8797
|
-
lastAccumulation: ignoreValueWithDefault(tryAsTimeSlot(0)),
|
|
8798
|
-
parentService: ignoreValueWithDefault(tryAsServiceId(0)),
|
|
8799
|
-
});
|
|
8775
|
+
static Codec = codec.Class(ServiceAccountInfo, {
|
|
8776
|
+
codeHash: codec.bytes(HASH_SIZE).asOpaque<CodeHash>(),
|
|
8777
|
+
balance: codec.u64,
|
|
8778
|
+
accumulateMinGas: codec.u64.convert((x) => x, tryAsServiceGas),
|
|
8779
|
+
onTransferMinGas: codec.u64.convert((x) => x, tryAsServiceGas),
|
|
8780
|
+
storageUtilisationBytes: codec.u64,
|
|
8781
|
+
gratisStorage: codec.u64,
|
|
8782
|
+
storageUtilisationCount: codec.u32,
|
|
8783
|
+
created: codec.u32.convert((x) => x, tryAsTimeSlot),
|
|
8784
|
+
lastAccumulation: codec.u32.convert((x) => x, tryAsTimeSlot),
|
|
8785
|
+
parentService: codec.u32.convert((x) => x, tryAsServiceId),
|
|
8786
|
+
});
|
|
8800
8787
|
|
|
8801
8788
|
static create(a: CodecRecord<ServiceAccountInfo>) {
|
|
8802
8789
|
return new ServiceAccountInfo(
|
|
@@ -10390,7 +10377,7 @@ type StateCodec<T> = {
|
|
|
10390
10377
|
|
|
10391
10378
|
/** Serialization for particular state entries. */
|
|
10392
10379
|
declare namespace serialize {
|
|
10393
|
-
/** C(1): https://graypaper.fluffylabs.dev/#/
|
|
10380
|
+
/** C(1): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b15013b1501?v=0.6.7 */
|
|
10394
10381
|
export const authPools: StateCodec<State["authPools"]> = {
|
|
10395
10382
|
key: stateKeys.index(StateKeyIdx.Alpha),
|
|
10396
10383
|
Codec: codecPerCore(
|
|
@@ -10403,7 +10390,7 @@ declare namespace serialize {
|
|
|
10403
10390
|
extract: (s) => s.authPools,
|
|
10404
10391
|
};
|
|
10405
10392
|
|
|
10406
|
-
/** C(2): https://graypaper.fluffylabs.dev/#/
|
|
10393
|
+
/** C(2): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b31013b3101?v=0.6.7 */
|
|
10407
10394
|
export const authQueues: StateCodec<State["authQueues"]> = {
|
|
10408
10395
|
key: stateKeys.index(StateKeyIdx.Phi),
|
|
10409
10396
|
Codec: codecPerCore(
|
|
@@ -10414,7 +10401,6 @@ declare namespace serialize {
|
|
|
10414
10401
|
|
|
10415
10402
|
/**
|
|
10416
10403
|
* C(3): Recent blocks with compatibility
|
|
10417
|
-
* https://graypaper.fluffylabs.dev/#/85129da/38cb0138cb01?v=0.6.3
|
|
10418
10404
|
* https://graypaper.fluffylabs.dev/#/7e6ff6a/3b3e013b3e01?v=0.6.7
|
|
10419
10405
|
*/
|
|
10420
10406
|
export const recentBlocks: StateCodec<State["recentBlocks"]> = {
|
|
@@ -10423,7 +10409,7 @@ declare namespace serialize {
|
|
|
10423
10409
|
extract: (s) => s.recentBlocks,
|
|
10424
10410
|
};
|
|
10425
10411
|
|
|
10426
|
-
/** C(4): https://graypaper.fluffylabs.dev/#/
|
|
10412
|
+
/** C(4): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b63013b6301?v=0.6.7 */
|
|
10427
10413
|
export const safrole: StateCodec<SafroleData> = {
|
|
10428
10414
|
key: stateKeys.index(StateKeyIdx.Gamma),
|
|
10429
10415
|
Codec: SafroleData.Codec,
|
|
@@ -10436,63 +10422,63 @@ declare namespace serialize {
|
|
|
10436
10422
|
}),
|
|
10437
10423
|
};
|
|
10438
10424
|
|
|
10439
|
-
/** C(5): https://graypaper.fluffylabs.dev/#/
|
|
10425
|
+
/** C(5): https://graypaper.fluffylabs.dev/#/7e6ff6a/3bba013bba01?v=0.6.7 */
|
|
10440
10426
|
export const disputesRecords: StateCodec<State["disputesRecords"]> = {
|
|
10441
10427
|
key: stateKeys.index(StateKeyIdx.Psi),
|
|
10442
10428
|
Codec: DisputesRecords.Codec,
|
|
10443
10429
|
extract: (s) => s.disputesRecords,
|
|
10444
10430
|
};
|
|
10445
10431
|
|
|
10446
|
-
/** C(6): https://graypaper.fluffylabs.dev/#/
|
|
10432
|
+
/** C(6): https://graypaper.fluffylabs.dev/#/7e6ff6a/3bf3013bf301?v=0.6.7 */
|
|
10447
10433
|
export const entropy: StateCodec<State["entropy"]> = {
|
|
10448
10434
|
key: stateKeys.index(StateKeyIdx.Eta),
|
|
10449
10435
|
Codec: codecFixedSizeArray(codec.bytes(HASH_SIZE).asOpaque<EntropyHash>(), ENTROPY_ENTRIES),
|
|
10450
10436
|
extract: (s) => s.entropy,
|
|
10451
10437
|
};
|
|
10452
10438
|
|
|
10453
|
-
/** C(7): https://graypaper.fluffylabs.dev/#/
|
|
10439
|
+
/** C(7): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b00023b0002?v=0.6.7 */
|
|
10454
10440
|
export const designatedValidators: StateCodec<State["designatedValidatorData"]> = {
|
|
10455
10441
|
key: stateKeys.index(StateKeyIdx.Iota),
|
|
10456
10442
|
Codec: codecPerValidator(ValidatorData.Codec),
|
|
10457
10443
|
extract: (s) => s.designatedValidatorData,
|
|
10458
10444
|
};
|
|
10459
10445
|
|
|
10460
|
-
/** C(8): https://graypaper.fluffylabs.dev/#/
|
|
10446
|
+
/** C(8): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b0d023b0d02?v=0.6.7 */
|
|
10461
10447
|
export const currentValidators: StateCodec<State["currentValidatorData"]> = {
|
|
10462
10448
|
key: stateKeys.index(StateKeyIdx.Kappa),
|
|
10463
10449
|
Codec: codecPerValidator(ValidatorData.Codec),
|
|
10464
10450
|
extract: (s) => s.currentValidatorData,
|
|
10465
10451
|
};
|
|
10466
10452
|
|
|
10467
|
-
/** C(9): https://graypaper.fluffylabs.dev/#/
|
|
10453
|
+
/** C(9): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b1a023b1a02?v=0.6.7 */
|
|
10468
10454
|
export const previousValidators: StateCodec<State["previousValidatorData"]> = {
|
|
10469
10455
|
key: stateKeys.index(StateKeyIdx.Lambda),
|
|
10470
10456
|
Codec: codecPerValidator(ValidatorData.Codec),
|
|
10471
10457
|
extract: (s) => s.previousValidatorData,
|
|
10472
10458
|
};
|
|
10473
10459
|
|
|
10474
|
-
/** C(10): https://graypaper.fluffylabs.dev/#/
|
|
10460
|
+
/** C(10): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b27023b2702?v=0.6.7 */
|
|
10475
10461
|
export const availabilityAssignment: StateCodec<State["availabilityAssignment"]> = {
|
|
10476
10462
|
key: stateKeys.index(StateKeyIdx.Rho),
|
|
10477
10463
|
Codec: codecPerCore(codec.optional(AvailabilityAssignment.Codec)),
|
|
10478
10464
|
extract: (s) => s.availabilityAssignment,
|
|
10479
10465
|
};
|
|
10480
10466
|
|
|
10481
|
-
/** C(11): https://graypaper.fluffylabs.dev/#/
|
|
10467
|
+
/** C(11): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b3e023b3e02?v=0.6.7 */
|
|
10482
10468
|
export const timeslot: StateCodec<State["timeslot"]> = {
|
|
10483
10469
|
key: stateKeys.index(StateKeyIdx.Tau),
|
|
10484
10470
|
Codec: codec.u32.asOpaque<TimeSlot>(),
|
|
10485
10471
|
extract: (s) => s.timeslot,
|
|
10486
10472
|
};
|
|
10487
10473
|
|
|
10488
|
-
/** C(12): https://graypaper.fluffylabs.dev/#/
|
|
10474
|
+
/** C(12): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b4c023b4c02?v=0.6.7 */
|
|
10489
10475
|
export const privilegedServices: StateCodec<State["privilegedServices"]> = {
|
|
10490
10476
|
key: stateKeys.index(StateKeyIdx.Chi),
|
|
10491
10477
|
Codec: PrivilegedServices.Codec,
|
|
10492
10478
|
extract: (s) => s.privilegedServices,
|
|
10493
10479
|
};
|
|
10494
10480
|
|
|
10495
|
-
/** C(13): https://graypaper.fluffylabs.dev/#/
|
|
10481
|
+
/** C(13): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b5e023b5e02?v=0.6.7 */
|
|
10496
10482
|
export const statistics: StateCodec<State["statistics"]> = {
|
|
10497
10483
|
key: stateKeys.index(StateKeyIdx.Pi),
|
|
10498
10484
|
Codec: StatisticsData.Codec,
|
|
@@ -10506,7 +10492,7 @@ declare namespace serialize {
|
|
|
10506
10492
|
extract: (s) => s.accumulationQueue,
|
|
10507
10493
|
};
|
|
10508
10494
|
|
|
10509
|
-
/** C(15): https://graypaper.fluffylabs.dev/#/
|
|
10495
|
+
/** C(15): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b96023b9602?v=0.6.7 */
|
|
10510
10496
|
export const recentlyAccumulated: StateCodec<State["recentlyAccumulated"]> = {
|
|
10511
10497
|
key: stateKeys.index(StateKeyIdx.Xi),
|
|
10512
10498
|
Codec: codecPerEpochBlock(
|
|
@@ -16725,8 +16711,18 @@ declare class HostCalls {
|
|
|
16725
16711
|
return this.getReturnValue(status, pvmInstance);
|
|
16726
16712
|
}
|
|
16727
16713
|
|
|
16728
|
-
|
|
16729
|
-
|
|
16714
|
+
if (result === PvmExecution.Panic) {
|
|
16715
|
+
status = Status.PANIC;
|
|
16716
|
+
return this.getReturnValue(status, pvmInstance);
|
|
16717
|
+
}
|
|
16718
|
+
|
|
16719
|
+
if (result === undefined) {
|
|
16720
|
+
pvmInstance.runProgram();
|
|
16721
|
+
status = pvmInstance.getStatus();
|
|
16722
|
+
continue;
|
|
16723
|
+
}
|
|
16724
|
+
|
|
16725
|
+
assertNever(result);
|
|
16730
16726
|
}
|
|
16731
16727
|
}
|
|
16732
16728
|
|
package/index.js
CHANGED
|
@@ -8535,31 +8535,18 @@ class ServiceAccountInfo extends WithDebug {
|
|
|
8535
8535
|
created;
|
|
8536
8536
|
lastAccumulation;
|
|
8537
8537
|
parentService;
|
|
8538
|
-
static Codec =
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
})
|
|
8551
|
-
: codec$1.Class(ServiceAccountInfo, {
|
|
8552
|
-
codeHash: codec$1.bytes(HASH_SIZE).asOpaque(),
|
|
8553
|
-
balance: codec$1.u64,
|
|
8554
|
-
accumulateMinGas: codec$1.u64.convert((x) => x, tryAsServiceGas),
|
|
8555
|
-
onTransferMinGas: codec$1.u64.convert((x) => x, tryAsServiceGas),
|
|
8556
|
-
storageUtilisationBytes: codec$1.u64,
|
|
8557
|
-
storageUtilisationCount: codec$1.u32,
|
|
8558
|
-
gratisStorage: ignoreValueWithDefault(tryAsU64(0)),
|
|
8559
|
-
created: ignoreValueWithDefault(tryAsTimeSlot(0)),
|
|
8560
|
-
lastAccumulation: ignoreValueWithDefault(tryAsTimeSlot(0)),
|
|
8561
|
-
parentService: ignoreValueWithDefault(tryAsServiceId(0)),
|
|
8562
|
-
});
|
|
8538
|
+
static Codec = codec$1.Class(ServiceAccountInfo, {
|
|
8539
|
+
codeHash: codec$1.bytes(HASH_SIZE).asOpaque(),
|
|
8540
|
+
balance: codec$1.u64,
|
|
8541
|
+
accumulateMinGas: codec$1.u64.convert((x) => x, tryAsServiceGas),
|
|
8542
|
+
onTransferMinGas: codec$1.u64.convert((x) => x, tryAsServiceGas),
|
|
8543
|
+
storageUtilisationBytes: codec$1.u64,
|
|
8544
|
+
gratisStorage: codec$1.u64,
|
|
8545
|
+
storageUtilisationCount: codec$1.u32,
|
|
8546
|
+
created: codec$1.u32.convert((x) => x, tryAsTimeSlot),
|
|
8547
|
+
lastAccumulation: codec$1.u32.convert((x) => x, tryAsTimeSlot),
|
|
8548
|
+
parentService: codec$1.u32.convert((x) => x, tryAsServiceId),
|
|
8549
|
+
});
|
|
8563
8550
|
static create(a) {
|
|
8564
8551
|
return new ServiceAccountInfo(a.codeHash, a.balance, a.accumulateMinGas, a.onTransferMinGas, a.storageUtilisationBytes, a.gratisStorage, a.storageUtilisationCount, a.created, a.lastAccumulation, a.parentService);
|
|
8565
8552
|
}
|
|
@@ -9715,7 +9702,7 @@ function legacyServiceNested(serviceId, hash) {
|
|
|
9715
9702
|
/** Serialization for particular state entries. */
|
|
9716
9703
|
var serialize;
|
|
9717
9704
|
(function (serialize) {
|
|
9718
|
-
/** C(1): https://graypaper.fluffylabs.dev/#/
|
|
9705
|
+
/** C(1): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b15013b1501?v=0.6.7 */
|
|
9719
9706
|
serialize.authPools = {
|
|
9720
9707
|
key: stateKeys.index(StateKeyIdx.Alpha),
|
|
9721
9708
|
Codec: codecPerCore(codecKnownSizeArray(codec$1.bytes(HASH_SIZE).asOpaque(), {
|
|
@@ -9725,7 +9712,7 @@ var serialize;
|
|
|
9725
9712
|
})),
|
|
9726
9713
|
extract: (s) => s.authPools,
|
|
9727
9714
|
};
|
|
9728
|
-
/** C(2): https://graypaper.fluffylabs.dev/#/
|
|
9715
|
+
/** C(2): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b31013b3101?v=0.6.7 */
|
|
9729
9716
|
serialize.authQueues = {
|
|
9730
9717
|
key: stateKeys.index(StateKeyIdx.Phi),
|
|
9731
9718
|
Codec: codecPerCore(codecFixedSizeArray(codec$1.bytes(HASH_SIZE).asOpaque(), AUTHORIZATION_QUEUE_SIZE)),
|
|
@@ -9733,7 +9720,6 @@ var serialize;
|
|
|
9733
9720
|
};
|
|
9734
9721
|
/**
|
|
9735
9722
|
* C(3): Recent blocks with compatibility
|
|
9736
|
-
* https://graypaper.fluffylabs.dev/#/85129da/38cb0138cb01?v=0.6.3
|
|
9737
9723
|
* https://graypaper.fluffylabs.dev/#/7e6ff6a/3b3e013b3e01?v=0.6.7
|
|
9738
9724
|
*/
|
|
9739
9725
|
serialize.recentBlocks = {
|
|
@@ -9741,7 +9727,7 @@ var serialize;
|
|
|
9741
9727
|
Codec: RecentBlocksHistory.Codec,
|
|
9742
9728
|
extract: (s) => s.recentBlocks,
|
|
9743
9729
|
};
|
|
9744
|
-
/** C(4): https://graypaper.fluffylabs.dev/#/
|
|
9730
|
+
/** C(4): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b63013b6301?v=0.6.7 */
|
|
9745
9731
|
serialize.safrole = {
|
|
9746
9732
|
key: stateKeys.index(StateKeyIdx.Gamma),
|
|
9747
9733
|
Codec: SafroleData.Codec,
|
|
@@ -9752,55 +9738,55 @@ var serialize;
|
|
|
9752
9738
|
ticketsAccumulator: s.ticketsAccumulator,
|
|
9753
9739
|
}),
|
|
9754
9740
|
};
|
|
9755
|
-
/** C(5): https://graypaper.fluffylabs.dev/#/
|
|
9741
|
+
/** C(5): https://graypaper.fluffylabs.dev/#/7e6ff6a/3bba013bba01?v=0.6.7 */
|
|
9756
9742
|
serialize.disputesRecords = {
|
|
9757
9743
|
key: stateKeys.index(StateKeyIdx.Psi),
|
|
9758
9744
|
Codec: DisputesRecords.Codec,
|
|
9759
9745
|
extract: (s) => s.disputesRecords,
|
|
9760
9746
|
};
|
|
9761
|
-
/** C(6): https://graypaper.fluffylabs.dev/#/
|
|
9747
|
+
/** C(6): https://graypaper.fluffylabs.dev/#/7e6ff6a/3bf3013bf301?v=0.6.7 */
|
|
9762
9748
|
serialize.entropy = {
|
|
9763
9749
|
key: stateKeys.index(StateKeyIdx.Eta),
|
|
9764
9750
|
Codec: codecFixedSizeArray(codec$1.bytes(HASH_SIZE).asOpaque(), ENTROPY_ENTRIES),
|
|
9765
9751
|
extract: (s) => s.entropy,
|
|
9766
9752
|
};
|
|
9767
|
-
/** C(7): https://graypaper.fluffylabs.dev/#/
|
|
9753
|
+
/** C(7): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b00023b0002?v=0.6.7 */
|
|
9768
9754
|
serialize.designatedValidators = {
|
|
9769
9755
|
key: stateKeys.index(StateKeyIdx.Iota),
|
|
9770
9756
|
Codec: codecPerValidator(ValidatorData.Codec),
|
|
9771
9757
|
extract: (s) => s.designatedValidatorData,
|
|
9772
9758
|
};
|
|
9773
|
-
/** C(8): https://graypaper.fluffylabs.dev/#/
|
|
9759
|
+
/** C(8): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b0d023b0d02?v=0.6.7 */
|
|
9774
9760
|
serialize.currentValidators = {
|
|
9775
9761
|
key: stateKeys.index(StateKeyIdx.Kappa),
|
|
9776
9762
|
Codec: codecPerValidator(ValidatorData.Codec),
|
|
9777
9763
|
extract: (s) => s.currentValidatorData,
|
|
9778
9764
|
};
|
|
9779
|
-
/** C(9): https://graypaper.fluffylabs.dev/#/
|
|
9765
|
+
/** C(9): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b1a023b1a02?v=0.6.7 */
|
|
9780
9766
|
serialize.previousValidators = {
|
|
9781
9767
|
key: stateKeys.index(StateKeyIdx.Lambda),
|
|
9782
9768
|
Codec: codecPerValidator(ValidatorData.Codec),
|
|
9783
9769
|
extract: (s) => s.previousValidatorData,
|
|
9784
9770
|
};
|
|
9785
|
-
/** C(10): https://graypaper.fluffylabs.dev/#/
|
|
9771
|
+
/** C(10): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b27023b2702?v=0.6.7 */
|
|
9786
9772
|
serialize.availabilityAssignment = {
|
|
9787
9773
|
key: stateKeys.index(StateKeyIdx.Rho),
|
|
9788
9774
|
Codec: codecPerCore(codec$1.optional(AvailabilityAssignment.Codec)),
|
|
9789
9775
|
extract: (s) => s.availabilityAssignment,
|
|
9790
9776
|
};
|
|
9791
|
-
/** C(11): https://graypaper.fluffylabs.dev/#/
|
|
9777
|
+
/** C(11): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b3e023b3e02?v=0.6.7 */
|
|
9792
9778
|
serialize.timeslot = {
|
|
9793
9779
|
key: stateKeys.index(StateKeyIdx.Tau),
|
|
9794
9780
|
Codec: codec$1.u32.asOpaque(),
|
|
9795
9781
|
extract: (s) => s.timeslot,
|
|
9796
9782
|
};
|
|
9797
|
-
/** C(12): https://graypaper.fluffylabs.dev/#/
|
|
9783
|
+
/** C(12): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b4c023b4c02?v=0.6.7 */
|
|
9798
9784
|
serialize.privilegedServices = {
|
|
9799
9785
|
key: stateKeys.index(StateKeyIdx.Chi),
|
|
9800
9786
|
Codec: PrivilegedServices.Codec,
|
|
9801
9787
|
extract: (s) => s.privilegedServices,
|
|
9802
9788
|
};
|
|
9803
|
-
/** C(13): https://graypaper.fluffylabs.dev/#/
|
|
9789
|
+
/** C(13): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b5e023b5e02?v=0.6.7 */
|
|
9804
9790
|
serialize.statistics = {
|
|
9805
9791
|
key: stateKeys.index(StateKeyIdx.Pi),
|
|
9806
9792
|
Codec: StatisticsData.Codec,
|
|
@@ -9812,7 +9798,7 @@ var serialize;
|
|
|
9812
9798
|
Codec: codecPerEpochBlock(readonlyArray(codec$1.sequenceVarLen(NotYetAccumulatedReport.Codec))),
|
|
9813
9799
|
extract: (s) => s.accumulationQueue,
|
|
9814
9800
|
};
|
|
9815
|
-
/** C(15): https://graypaper.fluffylabs.dev/#/
|
|
9801
|
+
/** C(15): https://graypaper.fluffylabs.dev/#/7e6ff6a/3b96023b9602?v=0.6.7 */
|
|
9816
9802
|
serialize.recentlyAccumulated = {
|
|
9817
9803
|
key: stateKeys.index(StateKeyIdx.Xi),
|
|
9818
9804
|
Codec: codecPerEpochBlock(codec$1.sequenceVarLen(codec$1.bytes(HASH_SIZE).asOpaque()).convert((x) => Array.from(x), (x) => HashSet.from(x))),
|
|
@@ -17174,8 +17160,16 @@ class HostCalls {
|
|
|
17174
17160
|
status = Status.HALT;
|
|
17175
17161
|
return this.getReturnValue(status, pvmInstance);
|
|
17176
17162
|
}
|
|
17177
|
-
|
|
17178
|
-
|
|
17163
|
+
if (result === PvmExecution.Panic) {
|
|
17164
|
+
status = Status.PANIC;
|
|
17165
|
+
return this.getReturnValue(status, pvmInstance);
|
|
17166
|
+
}
|
|
17167
|
+
if (result === undefined) {
|
|
17168
|
+
pvmInstance.runProgram();
|
|
17169
|
+
status = pvmInstance.getStatus();
|
|
17170
|
+
continue;
|
|
17171
|
+
}
|
|
17172
|
+
assertNever(result);
|
|
17179
17173
|
}
|
|
17180
17174
|
}
|
|
17181
17175
|
async runProgram(rawProgram, initialPc, initialGas, maybeRegisters, maybeMemory) {
|