Lamden / wallet

Official Lamden wallet as a Google Chrome plugin. Also includes native atomic swap tools.
24 stars 19 forks source link

FEATURE: Node Admin Control Center #264

Open JeffWScott opened 2 years ago

JeffWScott commented 2 years ago

Node Admin Control Center

Task

Node owners need a page that allows them to view, create and act on governance motions.

Requirements:

Create a new menu item called "Node Admin" which has the following information: 1) Details on the current open motion (if one exists)

MORE TO COME

JeffWScott commented 2 years ago

Election House

election_house.py

Purpose

The main contract which controls the voting on policies. Policies are other smart contracts that have an "interface" and are registered on this contract.

Hashes:

Variables

Methods:

register_policy

args

Used to register a policy contract.
Any contract that is to be registered must be OWNED by election_house. If the policy passes the interface check then it is added to the policies hash with a value of True.

current_value_for_policy

args

vote

args

once determining that the policy exists it will import the policy supplied in the policy arg and then call vote on that policy, passing in the callers vk and the value arg.

Relevant Items to Issue

1) The keys of the election_house.policies hash are effectively a list of all current governance policies. 2) All voting runs through this contract. The value arg for the vote method needs to be created differently depending on the name of the policy.