Skip to content

token-screen v1.0.0

Latest

Choose a tag to compare

@lavFACTORY lavFACTORY released this 03 Dec 11:48
· 7 commits to main since this release

token-screen v1.0.0

Screen an ERC-20 before it is used as a staking token: what can be upgraded, what can be paused, what a
transfer really costs, and whether a transfer to the burn address goes through.

Author: lavFACTORY protocol author

Asset: token-screen-v1.0.0.zip, 37056 bytes, md5 38f98402a3accdb3b49ca73965e5a2e2, sha256
d335a2aaf3aaf717007607c4af261724f392a051555043fadce110770d137c87. First committed in
286efd7b4761404ac71603f3da1b91246c9bd39e; the sources it was built from are the ones in the tagged
commit 6af65278414d6cfdd281a105768e2c1c69b11e65. The build is deterministic: the same content with the
same single timestamp produces the same bytes, so the checksum is worth quoting anywhere the archive goes.

Install

unzip token-screen-v1.0.0.zip
cd token-screen-v1.0.0
forge install foundry-rs/forge-std@v1.9.5

./selftest/selftest.sh        # eleven checks, no chain, no forge
./selftest/beacon-e2e.sh      # six checks against a local anvil, needs anvil and cast
./screen-all.sh               # the example list that ships inside, tokens.txt

What the archive holds

Fifteen files. check-token.sh, screen-all.sh, networks.sh, test/TokenScreen.t.sol, selftest/
(README, selftest.sh, beacon-e2e.sh, two JSON fixtures), RESULT-contract.md as the spec,
foundry.toml (solc 0.8.24, evm_version = "cancun", five rpc endpoints as literal URLs), tokens.txt,
and a top level README.md.

tokens.txt carries three lines: ARB on arbitrum with a real holder, USDC on base with no holder, and the
zero address on robinhood as a negative control. The last one has no code, so it exercises the
err=nocode to FAIL(nocode) path without any fork test being run.

What was verified before this release

  • eleven offline checks and six beacon fixture checks pass;
  • the live ARB row is fee 0.00 with no asterisk, which means the balance existed on chain rather than
    being funded by the test itself;
  • both event topic hashes were recomputed with an independent keccak256 and match the constants in
    networks.sh and the topic0 values inside the fixtures;
  • the archive that was committed is byte for byte the one that was checked, and every file pushed to the
    repository matches its recorded md5.

Known and deliberate

  • the table has no SYM column: the ticker travels in the RESULT line for parsers, and the human table
    keeps its seven columns on a narrow terminal;
  • block= stays - on forge 1.7.x, which does not record the fork block in its JSON; forge 1.10 and
    later fill it;
  • burn is taken from the fork test, which is the source of truth; the whole balance transfer that
    cast call simulates on a single read can disagree, and the row keeps the measured value;
  • the eip1967.proxy.admin slot is not read: any proxy is already a WARN, and the report does not claim
    to name the upgrade authority.

Provenance

patches/ carries r3 through r6, docs/ carries the release notes and the check notes, logs/ carries
the live runs. docs/token-screen-v1.0.0-ARTIFACTS.md lists md5 and size for every file of the chain.