Skip to content

CS481a3 Term Project: Save consent to the rinkeby testnet

License

Notifications You must be signed in to change notification settings

Mas9311/consent-contract

Repository files navigation

Cover Your Assets

Cover Your Assets logo

Solidity smart contract that saves consent to the rinkeby testnet.
Check out the demo on YouTube.

Usage

  1. Alice and Bob create their accounts using their first and last name.
  2. Alice inputs a party name as a string and creates the party "ThisIsMyPartyName".
  3. Alice informs Bob to join the party.
  4. Bob joins the party provided.

When creating a party, the creator is given the option to include:

  • The maximum number of guests permitted to join (excluding the creator).
  • A time limit when the party will expire.

When the last guest joins the party, the party is set to a finalized state.

Run Requirements:

  • npm i to install all required packages to the project's directory.
  • truffle compile to compile the Solidity contract.
  • npm start to start the UI in browser.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits to any of the javascript files in ./src/.

npm test

Requirements: ganache-cli

  • npm i -g ganache-cli to install globally.
  1. In a Terminal window, run ganache-cli to create 10 local pseudo-accounts.
  2. In a separate terminal window, run truffle migrate to deploy the contract to ganache.
  3. Once migrated, run truffle test to initiate the test cases.

About

CS481a3 Term Project: Save consent to the rinkeby testnet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published