Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

axiom-crypto/old-autonomous-airdrop-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autonomous Airdrop (using Axiom Client SDK)

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

/contracts contains all of the Solidity contract code.

Webapp

/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.