Skip to content

Ventura-Protocol/ventura-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 

Repository files navigation

ventura-protocol

Monorepo for Ventura Protocol

Local dev

To run the app and contract locally go into each package and run:

npm i followed by npm run dev

In pledges project it spins up a local hardhat node and deploys the contract locally saving a .json file to the front-end folder.

In app folder npm run dev command start up next.js.

To make smart contract work with metamask you need to go into advanced and click on Reset account, as otherwise you will get an error regarding nonce being not at 0.

Currently only the save button on the bottom of the page works, and produces 2 transactions to save an "Ask" and create an additonal "Pledge", results of which should appear in the Chrome dev console.

Polygon

The contract is live on Polygon on the address 0x2e912E9e6Db6402037670Ae00b354DE310824D22

Subgraph

Subgraph endpoints: Queries (HTTP): https://api.studio.thegraph.com/query/6030/venturapledges/v0.0.1 Subscriptions (WS): https://api.studio.thegraph.com/query/6030/venturapledges/v0.0.1