Pandora: Decentralized fundraising platform.
Pandora is a smart contract that replicates the idea of a traditional fundraising platform with which users can source for funds from benefactors, except it's fully decentralized! It implements the concept of rounds (a single fundraising campaign might have multiple rounds) and allows for staking of a native token. Stakers get benefits such as being able to flag a campaign as fraudulent and taking part in voting to decide whether or not a campaign may begin the next round. Donators to a round of a campaign also get to participate in the vote that decides whether or not that campaign may progress to the next round based on its perceived validity.
Pandora lives on the Solana devnet at address: DLkygNkiyVjJ4hu2fVV7M1fjX8DKdXbB3TgFmfwwKfqr
View the full steps here.
Deploy the contract to the devnet by following these steps on your cli:
- Run
solana-keygen new
to create a wallet keypair - Run
solana airdrop 2
to airdrop sol to your wallet
- Clone the repo and change into its root directory
- Run
anchor build
to generate a new public key for your program - Run
anchor keys list
. Copy the new pubkey into your declare_id! macro at the top oflib.rs
and replace the default key inAnchor.toml
- Change the
provider.cluster
variable inAnchor.toml
todevnet
- Run
anchor deploy
- Run
anchor run test