updated process and policy table
This commit is contained in:
parent
7163480581
commit
a28c313982
@ -22,31 +22,43 @@ old_process_format = {
|
|||||||
|
|
||||||
new_process_format = {
|
new_process_format = {
|
||||||
initiator = "user",
|
initiator = "user",
|
||||||
|
status = "request",
|
||||||
org_id = 12314,
|
org_id = 12314,
|
||||||
module = "create_child_org", -- policy table lookup
|
module = "create_child_org", -- policy table lookup
|
||||||
process_id = 8347,
|
process_id = 8347,
|
||||||
-- used to freeze voter eligibility
|
|
||||||
timestamp = 1632850133, -- look into supporting other formats, overrides (turn based, etc.)
|
timestamp = 1632850133, -- look into supporting other formats, overrides (turn based, etc.)
|
||||||
|
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
child_org_name = "oligarchy"
|
child_org_name = "oligarchy"
|
||||||
|
},
|
||||||
|
|
||||||
|
consent = {
|
||||||
|
-- voter eligibilty frozen by action table invites
|
||||||
|
start_time = 384179234,
|
||||||
|
member_count = 14,
|
||||||
|
votes_yes = {},
|
||||||
|
votes_no = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
--[[
|
|
||||||
voting configuration:
|
|
||||||
<quorum>
|
|
||||||
minimum voters (ratio or const)
|
|
||||||
maximum voters (ratio or const)
|
|
||||||
|
|
||||||
<temporal quorum>
|
|
||||||
minimum duration
|
|
||||||
maximum duration
|
|
||||||
--]]
|
|
||||||
|
|
||||||
policy_table_format = {
|
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": {
|
"create_child_org": {
|
||||||
consent_threshold = 0.51,
|
consent_threshold = 0.51,
|
||||||
max_duration = 89324, -- seconds until vote closes if threshold not reached, or nil for no limit
|
max_duration = 89324, -- seconds until vote closes if threshold not reached, or nil for no limit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user