Skip to content

Commit

Permalink
New: Ballot
Browse files Browse the repository at this point in the history
A example from solidity document
  • Loading branch information
zero.qn committed Apr 8, 2018
1 parent 5640829 commit 0797b2d
Show file tree
Hide file tree
Showing 6 changed files with 614 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ballot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

/target/
**/*.rs.bk
Cargo.lock
19 changes: 19 additions & 0 deletions ballot/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "ballot"
version = "0.1.0"
authors = ["user"]

[dependencies]
exonum = "0.6.0"
iron = "0.6.0"
bodyparser = "0.8.0"
router = "0.6.0"
serde = "1.0.0"
serde_json = "1.0.0"
serde_derive = "1.0.0"
failure = "0.1.1"

[dev-dependencies]
exonum-testkit = "0.6.0"
pretty_assertions = "0.5.0"
rand = "0.4"
3 changes: 3 additions & 0 deletions ballot/src/constants.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub const SERVICE_ID: u16 = 1;
pub const MAX_PROPOSALS: u16 = 10;
pub const INIT_WEIGHT: u16 = 10;
Loading

0 comments on commit 0797b2d

Please sign in to comment.