A dynamic SVG NFT project that uses chainlink functions to fetch off chain data from the BuidlGuidl API. All BuidlGuidl members with at least 1 published build are welcome to mint an NFT with a dynamic background color that changes based on the number of builds submitted!
- Clone the repo
git clone https://github.com/MattPereira/only-buidlors
- Install the packages with yarn
yarn install
-
Add a
.env
file to/packages/nextjs
with a validALCHEMY_API_KEY
. (The frontend does not expose it because its only used in route handlers) -
Start the project on localhost
yarn start
-
The deployment script is setup to automatically add any freshly deployed contract to a chainlink functions subscription, but the subscription itself must be created at functions.chain.link
-
Change the subscriptionId for the corresponding network where your subscriptionw was created in the
HelperConfig.s.sol
-
Change
SUBSCRIPTION_ID
constant on the frontend homepageindex.tsx
which is needed for kicking off request to chainlink functions node
-
Add
.env
file to/packages/foundry
with a validPRIVATE_KEY
andETHERSCAN_API_KEY
-
Run the deploy command
yarn deploy --network arbitrumSepolia
*Foundry HelperConfig.s.sol
script is also setup to support deployment to eth-sepolia and mumbai
- Scaffold ETH 2
- Chainlink Functions
- Alchemy NFT API