33## Parameter
44
55- ` delegate_pool_id ` : ByteArray
6- - ` gov_action ` : GovernanceAction
6+ - ` gov_action ` : VGovernanceAction
77- ` proposer_key_hash ` : ByteArray
88- ` stake_register_deposit ` : Lovelace
99- ` drep_register_deposit ` : Lovelace
10+ - ` gov_deposit ` : Lovelace
1011
1112## Datum
1213
@@ -35,18 +36,16 @@ pub type Datum {
3536 start_hash : ByteArray ,
3637 share_token : ByteArray ,
3738 funds_controlled : Int ,
38- deadline : Int ,
3939 }
4040}
4141```
4242
4343## User Action
4444
45451 . RegisterCerts
46-
47- - Only one input and output from current address
46+ - Only one input and output from current address with token of policy ` start_hash `
4847 - Input datum in state of ` Init `
49- - Output value has deducted with 502 ADA exactly
48+ - Output value has deducted with 502 + 100k ADA exactly
5049 - Output datum in state of ` Proposed `
5150 - fields exactly the same
5251 - Registering stake cert
@@ -55,32 +54,29 @@ pub type Datum {
5554 - Propose gov action
5655
57562 . VoteOnGovAction
58-
59- - Only one input and output from current address
57+ - Only one input and output from current address with token of policy ` start_hash `
6058 - Input datum in state of ` Proposed `
61- - Check output value (deducted by 100k ADA exactly)
6259 - Output datum in state of ` Voted ` , with ` gov_tx_id ` composed by own's input ` TransactionId ` + ` proposal_procedure ` as 0
6360 - fields exactly the same
61+ - Voted yes by drep
6462
65633 . DeregisterCerts
66-
64+ - collecting 100k ada from reward address to spending address
6765 - deadline is passed
68- - Only one input and output from current address
66+ - Only one input and output from current address with token of policy ` start_hash `
6967 - Input datum in state of ` Voted `
7068 - Output datum in state of ` Refundable `
7169 - fields exactly the same
7270 - Deregistering both certs
7371 - Refunds (502ADA) go into the output
7472
75734 . ContributorWithdrawal
76-
74+ - Input with token of policy ` start_hash `
7775 - Input datum in state of Refundable
78- - ` deadline ` is passed
7976 - The lovelace unlocking from current equal exactly the amount that the ` share_token ` with token name of ` completion_script ` is burnt
8077
81785 . RemoveEmptyInstance
82-
79+ - Input with token of policy ` start_hash ` , which is burnt
8380 - Input datum in state of Refundable
84- - ` deadline ` is passed
8581 - share token with token name ` completion_script ` burning in current tx == ` current_fundraised_amount `
8682 - signed by ` proposer_key_hash `
0 commit comments