Skip to content

hemilabs/pure.finance

 
 

Repository files navigation

Pure Finance website monorepo

Development

npm install
npx lerna run --stream dev

Then open the browser at http://localhost:3000.

Adding a new mini-app

  1. Add the new page component at site/pages.
  2. Add it to the Utilities component so it appears in the home page.
  3. Go from there!

Testing

Merkle claims

Go to packages/merkle-box-lib and create a list of recipients as a JSON file:

[
  {
    "account": "0x0000000000000000000000000000000000000010",
    "amount": "1000000000000000000"
  },
  {
    "account": "0x0000000000000000000000000000000000000020",
    "amount": "2000000000000000000"
  }
]

Create the dataset:

node scripts/create-dataset.js recipients.json > dataset.json

And copy the data set file to the development web server at site/public.

Set NODE_URL, MNEMONIC and create the claim group:

node scripts/create-claim-group.js WETH http://localhost:3000/test20241231.json 2024-12-31

End-to-end tests

Set the following environment variables: BASE_NODE_URL, MNEMONIC. Then run the tests:

npm run test:e2e

Deployment

npm ci
cd site
npm run build

Then upload the folder site/out to the hosting server.

About

Pure.Finance website and web3 dapp

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • CSS 0.1%