Skip to content

Commit

Permalink
98 voting pallet (#111)
Browse files Browse the repository at this point in the history
* Updating branch with main updates (#100)

* Runtime update

Update to polkadot-v0.9.26

* Token symbol and pallet-uniques

Added the pallet-uniques to the runtime, and changed the token Symbol to USD

* Benchmarking fixed

Co-authored-by: ndkazu <ndongmefane@gmail.com>
Co-authored-by: Kazunobu Ndong <33208377+ndkazu@users.noreply.github.com>

* Merge main into voting pallet branch (#104)

* Runtime update

Update to polkadot-v0.9.26

* Token symbol and pallet-uniques

Added the pallet-uniques to the runtime, and changed the token Symbol to USD

* Benchmarking fixed

* refresh FS repo (#101)

* update readme and badges

* delete diagram

* add w3f badge and adjust readme

* adjust size and position

* remove unused files

* adjusted the readme some more

* add w3f badge back

* changed from docker hub to ghcr registry

* small change to the DockerFile

* 102 automatization tasks (#103)

* added a script to add a new pallet from a pallet template and configure the runtime Cargo.toml and lib.rs

* added a script to update polkadot lib in .toml files for the node, runtime, pallets and pallet template

Co-authored-by: ndkazu <ndongmefane@gmail.com>
Co-authored-by: Kazunobu Ndong <33208377+ndkazu@users.noreply.github.com>
Co-authored-by: Ilhan <29432367+ilhanu@users.noreply.github.com>
Co-authored-by: “ilhanu” <ilhanunlu@gmail.com>

* added voting pallet, added config in runtime

* added collective and democracy pallets to voting pallet and runtime config

* added collective and democracy config to runtime

* updated pallet_template

* added members to house council

* added functions to voting

* added pallet roles to voting

* update functions implementation

* added events, refactored code

* updated test configuration

* added call formating for collective::propose()

* added full process voting implementation with basic checks

* added origin check on proposal dispatching from Democracy

* added check origin call from collective pallet

* added proposal status transition management and documentation

* updated voting mockup for tests

* refactored code

* removed comments

* code review updates

* code review updates

* fix for voting benchmarking

* added fix for voting benchmarking

* fix update

* temporary deactivated voting benchmarking

* added unit tests

* added more tests

* renamed house_council to council in configuration

* removed democracy_porpose() call in investor voting

* updated launchperiod constant to 1 day and voting period to 3 minutes

Co-authored-by: ndkazu <ndongmefane@gmail.com>
Co-authored-by: Kazunobu Ndong <33208377+ndkazu@users.noreply.github.com>
Co-authored-by: Ilhan <29432367+ilhanu@users.noreply.github.com>
Co-authored-by: “ilhanu” <ilhanunlu@gmail.com>
  • Loading branch information
5 people authored Aug 19, 2022
1 parent 28ac5e6 commit 44db28f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ fn testnet_genesis(
get_account_id_from_seed::<sr25519::Public>("Alice"),
get_account_id_from_seed::<sr25519::Public>("Bob"),
get_account_id_from_seed::<sr25519::Public>("Charlie"),
get_account_id_from_seed::<sr25519::Public>("Dave"),
],
phantom: Default::default(),
}
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ impl pallet_scheduler::Config for Runtime {
}

parameter_types! {
pub const LaunchPeriod: BlockNumber = 28 * 24 * 60 * MINUTES;
pub const VotingPeriod: BlockNumber = 1 * MINUTES;//28 * 24 * 60 * MINUTES;
pub const LaunchPeriod: BlockNumber = 24 * 60 * MINUTES;
pub const VotingPeriod: BlockNumber = 3 * MINUTES;//28 * 24 * 60 * MINUTES;
pub const FastTrackVotingPeriod: BlockNumber = 3 * 24 * 60 * MINUTES;
pub const MinimumDeposit: Balance = 1 * DOLLARS;
pub const EnactmentPeriod: BlockNumber = 30 * 24 * 60 * MINUTES;
Expand Down

0 comments on commit 44db28f

Please sign in to comment.