Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Latest commit

 

History

History
93 lines (59 loc) · 3.36 KB

README.md

File metadata and controls

93 lines (59 loc) · 3.36 KB

PartyBuy

TODO

PartyDAO 🥳

PartyBuy was developed by PartyDAO, a decentralized autonomous organization that builds and ships products. PartyDAO was created initially for the purpose of shipping PartyBid, a product similar to PartyBuy for participating in on-chain reserve auctions. To keep up with PartyDAO, follow @prtyDAO on Twitter and Mirror. Acquire 10 $PARTY tokens to join the DAO and party with us.

Features

  • TODO

Functions

PartyBidFactory

  • startParty - deploy a PartyBuy contract, specifying the NFT auction to target

PartyBid

  • contribute - contribute ETH to the PartyBuy
  • buy - TODO expire - TODO
  • claim - call once per contributor after the auction closes to claim fractionalized ERC-20 tokens (for any funds that were used to win the auction) and/or excess ETH (if the auction was lost, or if the funds were not used to win the auction)

Repo Layout

  • contracts/PartyBuy.sol - core logic contract for PartyBid
  • contracts/PartyBuyFactory.sol - factory contract used to deploy new PartyBid instances in a gas-efficient manner
  • deploy - Deployment script for contracts
  • test - Hardhat tests for the core protocol
  • contracts/external - External protocols' contracts (Fractional Art, copied to this repo for use in integration testing.
  • contracts/test - Contracts written for use in testing

Installation

  1. Install dependencies
npm i
  1. Setup your .env file in order to deploy the contracts
touch .env && cat .env.example > .env

Then, populate the values in .env.

Tests

To run the Hardhat tests, simply run

npm run test

Deployment

You can find the address of deployed PartyBuy Factories on each chain at deploy/deployed-contracts

To deploy a new PartyBuy Factory, first ensure you've populated your .env file. The RPC endpoint should point chain you want to deploy the contracts, and the private key of the Deployer account should be funded with ETH on that chain .

Next, add a config file to deploy/configs/[CHAIN_NAME].json specifying the addresses of the necessary external protocols on that chain. You can use other files in that folder to see which contract addresses must be populated.

Finally, run

npm run deploy

Security Review

TODO

Credits

License

PartyBuy contracts are reproduceable under the terms of MIT license.

MIT © PartyDAO