Skip to content
Back to skills

Precompile Genesis And Upgrades

ASecurity

Use when the agent needs to activate, deactivate, or reconfigure Avalanche L1 precompiles — at genesis vs later via a network upgrade.json — and the operational steps to roll an upgrade across validators.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 8, 2026
ai-agentsgonode

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill precompile-genesis-and-upgrades --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Precompile Genesis And Upgrades?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Precompile Genesis And Upgrades
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-precompile-genesis-and-upgrades/badge)](https://www.skillsdirectory.com/skills/majiayu000-precompile-genesis-and-upgrades)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: precompile-genesis-and-upgrades
description: Use when the agent needs to activate, deactivate, or reconfigure Avalanche L1 precompiles — at genesis vs later via a network upgrade.json — and the operational steps to roll an upgrade across validators.
category: Avalanche L1
difficulty: Advanced
version: "0.1.0"
---

# Precompile Activation: Genesis vs Network Upgrade

## Overview
Subnet-EVM precompiles ([[subnet-evm-precompiles]]) can be turned on at **genesis** or **activated/deactivated/reconfigured later** via a coordinated **network upgrade**. Choosing correctly matters because genesis config is baked in, while upgrades require all validators to apply the same change at the same activation timestamp.

## Option A — Activate at genesis
Put the precompile's `*Config` block in `genesis.json` with `blockTimestamp: 0` and the initial roles. Simplest for new chains; chosen via `avalanche blockchain create` ([[create-avalanche-l1]]).
```json
"txAllowListConfig": { "blockTimestamp": 0, "adminAddresses": ["0xAdmin"] }
```

## Option B — Activate/deactivate via network upgrade
Use an **`upgrade.json`** that schedules a precompile change at a future `blockTimestamp`. Every node must run the same `upgrade.json` before that timestamp.

```json
{
  "precompileUpgrades": [
    {
      "txAllowListConfig": {
        "blockTimestamp": 1735689600,
        "adminAddresses": ["0xAdmin"]
      }
    },
    {
      "txAllowListConfig": { "blockTimestamp": 1735693200 }   // empty body after = disable
    }
  ]
}
```
Rules:
- **Ordering:** upgrades are applied in increasing `blockTimestamp` order.
- **To enable:** provide the config with roles. **To disable:** schedule a later entry with an empty/disabling config.
- **Consistency:** all validators must have the same upgrade file; mismatches cause them to disagree and stall.

## Operational rollout (network upgrade)
1. Author/modify `upgrade.json` with a `blockTimestamp` safely in the future.
2. Distribute it to **every** validator's chain-config directory.
3. Restart nodes so they load the upgrade.
4. Verify each validator reads the same config; confirm activation after the timestamp passes; test the new precompile behavior.

## When to use which
- **New chain / known requirements** → genesis.
- **Live chain / new requirement, recovering from a lost admin, or rotating policy** → network upgrade.

## Common Pitfalls
- **Past or too-soon timestamp.** Set `blockTimestamp` comfortably in the future so all validators upgrade in time.
- **Partial rollout.** If some validators lack the upgrade, the network forks/stalls.
- **Disabling syntax.** Deactivation is a *later* scheduled entry, not deletion of the original.

## AI Agent Prompt
> "Act as an L1 operator. Write an `upgrade.json` to activate the Transaction AllowList at a future timestamp on a live L1, then describe the validator rollout and verification steps."

## References
See `references/README.md` (builders-hub `docs/avalanche-l1s/upgrade/precompile-upgrades`, academy access-restriction network-upgrade modules).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.