1c0e57d984
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
53 lines
1.7 KiB
TypeScript
53 lines
1.7 KiB
TypeScript
import { test, expect } from "bun:test";
|
|
import { Presets } from "../src";
|
|
import { runPresetUntilLaunched, spawnMiner } from "../src/cmd";
|
|
import { Chain, EventOutcome, Observe, runTest, TestCase } from "../src/test-case";
|
|
import { getApis, GlobalTimeout, logger, nullifyUnsigned } from "../src/utils";
|
|
import { commonSignedSteps } from "./common";
|
|
|
|
const PRESET: Presets = Presets.FakeDot;
|
|
|
|
test(
|
|
`pruning era with signed (full solution) on ${PRESET}`,
|
|
async () => {
|
|
const { killZn, paraLog } = await runPresetUntilLaunched(PRESET);
|
|
const apis = await getApis();
|
|
const killMiner = await spawnMiner();
|
|
|
|
// This test has no real assertions. Change the `HistoryDepth` to 1 in the runtime, run it,
|
|
// and observe the logs and PoV sizes.
|
|
const steps = [
|
|
// first relay session change at block 11
|
|
Observe.on(Chain.Relay, "Session", "NewSession").byBlock(11)
|
|
.onPass(() => {
|
|
nullifyUnsigned(apis.paraApi).then((ok) => {
|
|
logger.verbose("Nullified signed phase:", ok);
|
|
});
|
|
}),
|
|
Observe.on(Chain.Teyrchain, "Staking", "EraPruned")
|
|
.withDataCheck((x) => x.index == 0),
|
|
Observe.on(Chain.Teyrchain, "Staking", "EraPruned")
|
|
.withDataCheck((x) => x.index == 1),
|
|
// Observe.on(Chain.Teyrchain, "Staking", "EraPruned")
|
|
// .withDataCheck((x) => x.index == 2),
|
|
// Observe.on(Chain.Teyrchain, "Staking", "EraPruned")
|
|
// .withDataCheck((x) => x.index == 3),
|
|
// Observe.on(Chain.Teyrchain, "Staking", "EraPruned")
|
|
// .withDataCheck((x) => x.index == 4),
|
|
].map((s) => s.build())
|
|
|
|
const testCase = new TestCase(
|
|
steps,
|
|
true,
|
|
() => {
|
|
killMiner();
|
|
killZn();
|
|
}
|
|
);
|
|
|
|
const outcome = await runTest(testCase, apis, paraLog);
|
|
expect(outcome).toEqual(EventOutcome.Done);
|
|
},
|
|
{ timeout: GlobalTimeout * 10 }
|
|
);
|