Skip to content

CPChain/cpchain-dapps-sponsor

Repository files navigation

Sponsor Contract

Test Coverage Badge

Product Vision

This contract is used to open community donation capabilities, which can form a mutual aid atmosphere in the community, which is conducive to building a developer ecosystem. Donation refers to donating to DApp. Users can register the DApp to be donated by themselves, and specify the contract address, contract homepage, and beneficiary address.

Contract Function

  • registerDapp : anyone can register their Dapps
  • deregisterDapp: registrant can deregitrant their Dapp
  • modifyDapp : registrant can modify their Dapp info
  • takedownDapp: admin can takedown Dapp that do not comply with the regulations
  • sponsor: anyone can sponsor their favorite Dapp

Setup

npm install

# test
truffle test

# test coverage
npm run test:coverage