Aragon_Conviction_Voting/models/v3/model/partial_state_update_block.py

57 lines
1.4 KiB
Python

from .parts.system import *
from .parts.participants import *
from .parts.proposals import *
# The Partial State Update Blocks
partial_state_update_blocks = [
{
# system.py:
'policies': {
'random': driving_process
},
'variables': {
'network': update_network,
'effective_supply': increment_supply,
}
},
{
'policies': {
'random': minting_rule
},
'variables': {
'total_supply': mint_to_supply,
'funds':mint_to_funds,
}
},
{
# participants.py
'policies': {
'completion': check_progress
},
'variables': {
'sentiment': update_sentiment_on_completion, #note completing decays sentiment, completing bumps it
'network': complete_proposal
}
},
{
# proposals.py
'policies': {
'release': trigger_function
},
'variables': {
'funds': decrement_funds,
'sentiment': update_sentiment_on_release, #releasing funds can bump sentiment
'network': update_proposals
}
},
{
# participants.py
'policies': {
'participants_act': participants_decisions
},
'variables': {
'network': update_tokens
}
}
]