Skip to content

About

Test Halo governance spells

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

Repository files navigation

Test Halo Spells

Governance payloads for the Test Halo in the Sky ecosystem.

Keep each dated payload and its matching .t.sol tests together under src/proposals/. Include the target chain in each dated payload's name. Extract shared test helpers into src/test-harness/ as needed. Payloads inherit the shared SpellPayload contract and implement execute(). They can override isExecutable() to add an execution guard.

Develop

Install Foundry v1.9.0 and initialize the pinned submodules after cloning. Set ETH_RPC_URL to an Ethereum archive RPC before running the tests.

git submodule update --init --recursive
forge fmt --check
forge build --sizes
forge test -vvv

December 3, 2026 NFAT pilot

The payload uses the deployed mainnet addresses. The ALM Freezer Safe serves as both the agent revoker and the Facility freezer. The pilot leaves the optional identity network and base URI unset.

The November 23 Core cast authorized Test Halo StarGuard on the SubProxy and set a seven-day plot window. The pilot Core cast must register the audited NFAT_HALO_FACET selector table on the PAU Beacon and plot this spell. Onboarding cast · Test Halo launch scope

This payload grants the PAS Configurator admin on Test Halo AccessControls and RateLimits. The separate Core cBEAM setup must allow the PAS configuration in BeamState and pair the Test Halo cBEAM with its RateLimits contract. cBEAM activation scope

Test Halo RateLimits inherits the PAS Configurator's 16-hour onchain cooldown and 1.2e18 maximum change factor. The pilot ramp schedule requires at least 24 hours between updates to the same rate-limit key. Osero and Test Halo update their own keys. PAS bounds · Ramp-up plan

forge test --match-contract TestHaloEthereum_20261203_ForkTest -vvv

With the deployment constants unset, CI forks Ethereum at block 26478359 using ETH_RPC_URL, deploys a fresh payload on the fork, and logs its runtime code hash. After deployment, fill in DEPLOYED_SPELL, DEPLOYED_SPELL_CODEHASH, and DEPLOYED_SPELL_BLOCK in the test contract. The fixture forks at that block and checks the deployed payload's runtime code hash. The deployment block must include the Test Halo StarGuard onboarding and precede the pilot initialization.

The fixture verifies the live StarGuard ward and seven-day plot window, stages the Halo facet registration on the Beacon, and plots the payload with its runtime code hash. The initialization test calls StarGuard.exec() as an unprivileged keeper, checks it fits within the 16,777,216 gas transaction cap including intrinsic gas, and verifies the initialized state. EIP-7825

The opening round-trip test funds the Osero ALMProxy on the fork and uses it to subscribe, withdraw and resubscribe, and collect repayments from the Test NFAT Facility. It calls the Test Halo AdministeredAgent as the ALM Relayer Safe to issue a 1M USDS NFAT and repay 100 USDS of interest and 1M USDS of principal. The Osero mint and burn steps belong to the combined pilot rehearsal.

The emergency-role tests verify that the ALM Freezer Safe can revoke the ALM Relayer Safe's ability to issue through the AdministeredAgent and stop new Test NFAT Facility subscriptions.

Before release, rehearse the final Core cast from its pre-cast state. Check that the Core cast registers the approved Beacon integration and plots the approved payload address and runtime hash with a seven-day deadline. Execute that plot through StarGuard.exec(). Verify the Safe owners, thresholds, modules, and guards. Reconcile the Facility's Rely/Deny, Kiss/Diss, and AddFreezer/RemoveFreezer history through the rehearsal base block to account for all existing wards, buds, and freezers.

The pilot payload and tests are licensed under the GNU AGPL v3 or later. License

Upstream reference

The dated proposal layout, lifecycle ABI, compiler settings, submodule pins and CI checks follow Osero Spells at 6c7a271. src/SpellPayload.sol adapts Osero’s lifecycle contract under the MIT license.

About

Test Halo governance spells

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages