# Harmony ONE airdrop on Ethereum: contract and tools This directory contains everything used to send the new ERC-20 ONE to eligible wallets on Ethereum: the smart contract, the scripts that deploy and run it, and the tools that turn a recipient list into the exact data the contract accepts. It is written so that anyone can check, before and after the fact, that the contract can only ever pay the published list. The recipient lists themselves are **not** in this directory. They are produced by the accounting pipeline in the rest of this repository and published separately when a distribution is announced. The code here does not know or care which list it is given, so the same code is used for the testnet rehearsal, a small live test on Ethereum, the priority list, and the full list. ## The idea in one paragraph A list of "address, amount" rows is split into numbered batches. Each batch is reduced to a 32-byte fingerprint, and all fingerprints are combined into a single 32-byte value called the **root**. A contract is deployed with that root written into it permanently. The wallet that holds the tokens (the supply-reserve multisig) allows the contract to spend exactly the list's total, and nothing more. An operator wallet then sends the batches one transaction at a time. For every batch, the contract recomputes the fingerprint from the addresses and amounts it is given and checks that the fingerprint belongs to the root. Anything not on the published list is rejected; anything already sent is rejected. The operator cannot change an address, change an amount, add a payment, or pay anyone twice. If the list ever has to change, a new contract is deployed with a new root and the old one is switched off by revoking its allowance. ## A second way: paying directly from the Safe For a distribution the signers prefer to approve batch by batch, the tools can also prepare Safe transactions that pay a list with plain token transfers from the Safe itself, with no contract and no operator wallet. Every batch is then a Safe transaction the signers check against three hashes before signing. `docs/SAFE_DIRECT.md` explains the procedure; `tools/select_batch.py` chooses the recipients of a batch and `tools/safe_batch.py` prepares, verifies and hashes the Safe transactions. ## Validator vaults Staked and delegated ONE does not go to the wallet; it becomes principal in a per-validator `GovernorDelegator` vault. `tools/vault_batch.py` prepares the Safe transactions that deploy the vaults (through the standard CREATE2 deployer, so every vault address is known before signing) and fund each delegator's credit, decodes what is queued in the Safe for review, checks deposits against Harmony's own delegation record at the cutoff block, and reconciles the vaults after execution. It can also send the deployments from a private key instead of the Safe, record each vault in `vault/deployments-