This repository holds the proof-of-concept contracts for a Merch Table for FWB DAO
The contracts are structured as followed:
- buyer
- seller / store
- arbiter
MerchTable.sol
- In charge of adding products to catalog and settling escrow arbitration once product is delivered.
Receipt.sol
- NFT gets sent to the buyer as proof of purchase, this will hold both the productId and any metadata we push to IPFS
Escrow.sol
- This contract gets created internally when a buyer purchases from a seller. The ETH
goes into this escrow contract until 2 of the 3 participants agree to either release or refund the amount once the transaction is settled.
- Allow for ERC20 Payments
- Shipping capabilities off-chain
git clone https://github.com/giuseppecrj/fwb-merch-table.git
cd fwb-merch-table
forge install
Here's a list of the most frequently needed commands.
Build the contracts:
$ forge build
Delete the build artifacts and cache directories:
$ forge clean
Compile the contracts:
$ forge build
Test the contracts:
$ forge test
Deploy to Anvil:
$ make deploy-anvil contract=MerchTable