cosmin-harangus / scilla-open-block-school Goto Github PK
View Code? Open in Web Editor NEWA demo of Scilla smart contract project from the first Cluj Napoca Zilliqa Workshop
License: MIT License
A demo of Scilla smart contract project from the first Cluj Napoca Zilliqa Workshop
License: MIT License
The Request contract will contain variables for the following:
Students should be able to support and join a request for knowledge by paying a specific amount to the Request contract.
Define a method named Join() that is payable and records the amount of coins sent by every student.
This method should be secure and add the new student address to the list with his balance if he is new or update him amount if he has already paid.
The student should also be able to retreat their participation by calling a Leave() method that sends back his coins from the contract and removes him from the list of enrolled students and votes if the a teacher has not been selected yet.
As a teacher I should be able to apply as a teacher on an existing request by calling a Apply(name, url) method.
The teacher will be added to the list of joined teachers that are waiting to be voted on by the enrolled students.
The teacher can choose to cancel his application by calling the CancelApplication() method.
Students must each vote for the teachers that they want to be selected in order to teach the course.
The students will be able to call the Vote([teachers]) method with the list of teachers that they approve.
In order to reach a consensus all students must vote the same teacher and reach unanimous consensus over who will be accepted by the group as their teacher.
If a student wants to leave the course their vote is cancelled and the consensus is rechecked to see if a teacher should be accepted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.