Giter Site home page Giter Site logo

seeds-grove's Introduction

Init Process Flow:

Seeds - Proposal Grove

Flows: Connect wallet Function giveSeeds ◦ Hit button for seeds ◦ Send 10 seeds to msg.sender ◦ Maybe Add wallet to list to keep balance of seeds dispensed

Function createProp ◦ Send 1 seed with txt idea of proposal ◦ Msg.sender balance ==-1 ◦ Add proposal to billboard

Function Accept Proposal ◦ Contract owner can accept proposals and return 3 seeds ◦ Add text for funding, other details

◦	Contract setup in openzeplin wizard
◦	Mint 33k SEEDS as ERC20 or 1155

Test Steps

◦	Contract is payable 
◦	Wallet can receive seeds
◦	SubmitProposal should be 1 seed
◦	Accept Proposals should return 2 seeds
◦	

Future Ideas: ◦ Use seeds for purchases ◦ Integrate ETH payment into the approveProposal so people gets Seeds and ETH on the same step or a following step.

dependencies and starter commands:

npm install truffle init npm install @openzeppelin/contracts

//**** //OLD SimpleBank Readme.md

Simple Bank Exercise

SimpleBank is a Truffle project that contains a starter contract, migration and Truffle JavaScript test files. In this exercise you are going to implement the SimpleBank.sol contract.

Files

  • contracts/SimpleBank.sol : the partial implementation of a Solidity Contract you will complete.
  • test/simpleBank.test.js : the Truffle test file that describes the behavior of a correct SimpleBank contract.

Requirements

  1. Latest truffle version.
    npm -g uninstall truffle && npm -g install truffle
  2. Your preferred code editor.
  3. Familiarity with terminals.

Instructions

Follow the comments outlined in SimpleBank.sol to implement its functionality. The test are there to determine correct contract behavior as well as guide you through the implementation.

The general workflow is to use Test Drive Development's red green process:

  1. Run truffle test from a terminal.
  2. Use the failed test output along with the hints in contracts/SimpleBank.sol to make the test pass.

seeds-grove's People

Contributors

ryvince avatar github-classroom[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.