This example allows users to autonomously claim an airdrop of an example ERC20 token. Users utilize a data-fetching layer on top of Axiom to autonomously prove that their account matches some parameters before submitting a Query. In this case, it is the user has used Uniswap (swapping a token for a token that is not ETH) on Goerli testnet after block 9000000.
This example was created by writing a client circuit with the Axiom Client SDK and using it to generate Axiom queries inside a webapp using Axiom SDK React Components.
/contracts
contains all of the Solidity contract code.
/webapp
is a full Next.js 13 (app router) implementation of an Autonomous Airdrop dApp.
The Axiom client circuit code is located at /webapp/src/lib/circuit/circuit.ts
.