Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Chainlink Functions is used to determine the total donation amount by multiplyin

**NOTE**: This example is not production ready, as edge cases are not handled.

**Production Deployment**: https://functions-demo.app

**Vercel Deployment**: https://functions-demo-app.vercel.app

## Usage

### Prerequisites
Expand All @@ -30,7 +34,7 @@ Run these from the project directory where you've cloned this repo.
2. Create a `.env` file, either by making a copy of `.env.example` or starting from scratch. See the chapter [Configuration](#configuration) for more details on the available settings.
- You'll need to set at least the `PRIVATE_KEY` variable. To get your key: click on the MetaMask icon; click the three dots; go to account details; and export your private key.
3. Generate and build all required files by running `npm build`. This downloads the required files, compiles the Solidity contracts and builds the Nextjs project.
4. Deploy the Ledger contract with `npx hardhat project:deploy`.
4. Deploy the Ledger contract with `npm deploy`.
5. Store the returned address in the `NEXT_PUBLIC_CONTRACT_ADDRESS` environment variable.
6. (optional) Verify the contract. This allows you to decode the bytecode on Polygonscan.
1. Create an account on [Polygonscan](polygonscan.com). Note that you'll need to create an account for the main network, which works just as well for the testnet.
Expand Down Expand Up @@ -94,4 +98,4 @@ Chainlink Functions will then read that wallet address and the gist's owner (i.e
- `tasks/` - Contains the Hardhat tasks to assist in managing the dApp.

## Disclaimer
> :warning: **Disclaimer**: The code used in this Chainlink Functions quickstart template comes from Chainlink community members and has not been audited. The Chainlink team disclaims and shall have no liability with respect to any loss, malfunction, or any other result of deploying a Quickstart Template. By electing to deploy a Quickstart Template you hereby acknowledge and agree to the above.
> :warning: **Disclaimer**: The code used in this Chainlink Functions quickstart template comes from Chainlink community members and has not been audited. The Chainlink team disclaims and shall have no liability with respect to any loss, malfunction, or any other result of deploying a Quickstart Template. By electing to deploy a Quickstart Template you hereby acknowledge and agree to the above.
22 changes: 2 additions & 20 deletions arguments.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
const fs = require('fs');
const path = require('node:path');
const { networks } = require('./networks');
const functionsPath = path.resolve(__dirname, 'functions');
const checkScriptPath = path.resolve(
functionsPath,
'get-wallet-and-repos-from-gist.js'
);
const calculateScriptPath = path.resolve(
functionsPath,
'github-metric-times-ether.js'
);
const checkScript = fs.readFileSync(checkScriptPath, {
encoding: 'utf-8',
});
const calculateScript = fs.readFileSync(calculateScriptPath, {
encoding: 'utf-8',
});

module.exports = [
networks.mumbai.functionsRouter,
// calculateScript,
// checkScript,
networks.mumbai.functionsRouter
];
Loading