mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-utils.git
synced 2026-07-12 15:45:50 +00:00
test: add Pezkuwi's own chains to the balance test fixture (#37)
* test: add Pezkuwi's own chains to the balance test fixture Nova's upstream fixture only covers chains it knows about - Pezkuwi (relay), Pezkuwi Asset Hub, and Pezkuwi People never had test coverage at all, since they don't exist in Nova's world. This adds them as a pure addition on top of the existing filter+override pipeline, so the published chains_for_testBalance.json now covers exactly what our merged chains.json actually contains: Nova-inherited chains + our own ecosystem. Test account is the mainnet Founder key, verified live via @pezkuwi/api on 2026-07-09 against all three chains: substantial non-zero, non-frozen free balance and a high nonce (actively used) on each - not a guessed or reaped account. See pezkuwi-overlay/tests/pezkuwi_chains_for_testBalance.json for the exact verified figures. * chore: retrigger CI now that master triggers are fixed
This commit is contained in:
@@ -298,6 +298,12 @@ def sync_tests():
|
||||
been reaped/emptied - each override must be verified live before being
|
||||
added, not guessed. See that file for details on the accounts currently
|
||||
in use.
|
||||
|
||||
Pezkuwi's own chains (pezkuwi-overlay/tests/pezkuwi_chains_for_testBalance.json)
|
||||
are ADDED on top - Nova's fixture has no entries for them at all (Nova doesn't
|
||||
know Pezkuwi/Tron exist), so there's nothing to filter/override for these,
|
||||
they're a pure addition. Same rule applies: each account must be verified
|
||||
live (non-zero, non-frozen free balance) before being added, not guessed.
|
||||
"""
|
||||
print("\nSyncing tests...")
|
||||
|
||||
@@ -327,8 +333,21 @@ def sync_tests():
|
||||
if overridden:
|
||||
print(f" Applied {overridden} account override(s)")
|
||||
|
||||
pezkuwi_tests_file = PEZKUWI_OVERLAY / "tests" / "pezkuwi_chains_for_testBalance.json"
|
||||
added = 0
|
||||
if pezkuwi_tests_file.exists():
|
||||
pezkuwi_entries = load_json(pezkuwi_tests_file)["chains"]
|
||||
for entry in pezkuwi_entries:
|
||||
filtered.append({
|
||||
"chainId": entry["chainId"],
|
||||
"name": entry["name"],
|
||||
"account": entry["account"]
|
||||
})
|
||||
added = len(pezkuwi_entries)
|
||||
print(f" Added {added} Pezkuwi chain(s)")
|
||||
|
||||
save_json(OUTPUT_TESTS / "chains_for_testBalance.json", filtered)
|
||||
print(f" chains_for_testBalance.json: {len(fixture)} - {dropped} not in {latest_version.name} = {len(filtered)}")
|
||||
print(f" chains_for_testBalance.json: {len(fixture)} - {dropped} not in {latest_version.name} + {added} Pezkuwi = {len(filtered)}")
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user