GithubHelp home page GithubHelp logo

ecs265's Introduction

ECS 265 Final Project

Crowdfunding using Scrypto Radix Blockchain

  • Our aim is to build the smart contract using Scrypto and deploy it on the Radix public network

How to test

  1. Go into the scrypto directory: cd scrypto
  2. Reset the simulator: resim reset
  3. Create the manager account: resim new-account -> Store the account address and private key somewhere
  4. Create the member account: resim new-account -> Store the account address and private key somewhere
  5. Build and deploy the blueprint: resim publish .
  6. Instantiate a Campaign component: resim call-function [package_address] Campaign create_campaign 10 -> Store the component address and the second resource address (member badge address)
  7. Switch to the second account: resim set-default-account [account2_address] [account2_priv_key]
  8. Contribute 11 XRD to become a member: resim call-method [component_address] contribute 11,resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag
  9. Create a request to send 10 XRD to the manager: resim call-method [component_address] create_request "hello" 10 [account1_address] 1,[member_badge_address]
  10. Switch back to the first account: resim set-default-account [account1_address] [account1_priv_key]
  11. Approve the request: resim call-method [component_address] approve_request 0 1,[member_badge_address]
  12. Finalize the request: resim call-method [component_address] finalize_request 0 1,[member_badge_address]
  13. Look at the resource in account1: resim show [account1_address]. It should show 1010 XRD!

Demo and PPT

UI diagrams

  • Below are images of example User Interfaces we could present on program on. The UI is built on proto.io. The images include screencaptures of the main page, create a campaign, current open campaigns (before and after adding a new campaign), more information of a campaign (before and after a donation), create a request, and view requests

Main Page:

image

Create Campaign

image

Open Campaign:

image image

Campaign Show:

image image

Create Requests

image

View Requests

image

ecs265's People

Contributors

abrar-syed avatar adesh-thakare avatar

Watchers

James Cloos avatar  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.