@elementfi/elf-council-proposals
v1.0.2
Published
A simple JSON file that stores our pairs of on-chain and off-chain proposals.
Downloads
5
Readme
elf-council-proposals
A simple JSON file that stores our pairs of on-chain and off-chain proposals.
Install
Run
npm install git+https://github.com/element-fi/elf-council-proposals.git
Build
npm run build
Example
import { mainnetProposals } from "elf-council-proposals";
// Get the list of proposals that haven't expired yet
const openProposals = mainnetProposals.proposals.filter(
(proposal) => provider.getBlock() < proposal.expiration
);
Here, take this!
Since this repo is not an npm package, it can be helpful to include this simple script to upgrade your project to the latest commit:
"scripts": {
"update-elf-council-proposals": "npm install git+https://github.com/element-fi/elf-council-proposals.git"
},
Configure
To build this repo you need to configure some env variables. For linux and mac run the following:
- Copy
elf.default.env
cp elf.default.env elf.env
- Update elf.env with your alchemy api key
export ALCHEMY_MAINNET_API_KEY=
- Source the env file
source elf.env