From a28c3139826a6eb9c16999ecb53f262a358deadf Mon Sep 17 00:00:00 2001 From: Luke Miller Date: Mon, 4 Oct 2021 17:50:24 -0400 Subject: [PATCH] updated process and policy table --- modpol/orgs/process.lua | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/modpol/orgs/process.lua b/modpol/orgs/process.lua index 4babcf4..ddd478a 100644 --- a/modpol/orgs/process.lua +++ b/modpol/orgs/process.lua @@ -22,31 +22,43 @@ old_process_format = { new_process_format = { initiator = "user", + status = "request", org_id = 12314, module = "create_child_org", -- policy table lookup process_id = 8347, - -- used to freeze voter eligibility timestamp = 1632850133, -- look into supporting other formats, overrides (turn based, etc.) - data = { child_org_name = "oligarchy" + }, + + consent = { + -- voter eligibilty frozen by action table invites + start_time = 384179234, + member_count = 14, + votes_yes = {}, + votes_no = {} } } ---[[ -voting configuration: - -minimum voters (ratio or const) -maximum voters (ratio or const) - -minimum duration -maximum duration ---]] policy_table_format = { + "create_child_org": { + defer_to = nil, + + -- duration + duration = nil, -- evaluates end conditions when reached + + -- thesholds + no_threshold = nil, -- fails if reached + yes_threshold = nil, -- succeeds if reached + + --ratios + consent_ratio = nil, -- % of voters + quorum = nil, -- % of members that vote + } "create_child_org": { consent_threshold = 0.51, max_duration = 89324, -- seconds until vote closes if threshold not reached, or nil for no limit