IPFS Pin Market
This repo is a Truffle project with
IPFSPinMarket.sol and a complete test suite.
IPFSPinContract.sol needs to be deployed for production.
To set up your dev environment, run
We will use
ganache-cli to fork mainnet to run the full test suite.
First, set an ENV variable for your mainnet node. Edit
~/.profile and add at the bottom:
Then reload it with:
Then in this directory run:
Then in a separate terminal run:
Wait for the oracle contracts to deploy, then find the line that says:
Please add this line to your contract constructor: OAR = OracleAddrResolverI(0x221A12eB30D238aBcFb7C6c9e5985bA9B5ab1CdA);
And add it to
contracts/IPFSPinMarket.sol as the last line in the IPFSPinMarket contract
Finally in a new terminal run:
Be sure to remove the added
OAR line from the contract before committing back to the repo so the master contract remains prepared for mainnet deployment.