A server that relays proofs to Semaphore Airdrop contracts.
To get started, you will need to create an OpenZeppelin Relayer for the network that you want to work with, and seed it with some ETH. You'll also need a deployed version of the Semaphore Airdrop contract.
While you can set up the environment yourself, we provide a Docker image for convenience. You'll just need to configure the following env variables:
OZ_KEY
OpenZeppelin Defender Relayer KeyOZ_SECRET
OpenZeppelin Defender Relayer SecretCONTRACT_ADDRESS
Address of the airdrop contract to useNETWORK
The network to useUSE_MULTI
Whether to use the multi-airdrop contract instead of the single airdrop one
The image exposes a web server on port 3000
, which will relay transactions for POST requests with the following format:
interface RelayerRequest {
receiver: string;
root: bignumber;
nullifierHash: bignumber;
proof: bignumber[8];
}
This project is open-sourced software licensed under the MIT license. See the License file for more information.