3
3
## Parameter
4
4
5
5
- ` delegate_pool_id ` : ByteArray
6
- - ` gov_action ` : GovernanceAction
6
+ - ` gov_action ` : VGovernanceAction
7
7
- ` proposer_key_hash ` : ByteArray
8
8
- ` stake_register_deposit ` : Lovelace
9
9
- ` drep_register_deposit ` : Lovelace
10
+ - ` gov_deposit ` : Lovelace
10
11
11
12
## Datum
12
13
@@ -35,18 +36,16 @@ pub type Datum {
35
36
start_hash : ByteArray ,
36
37
share_token : ByteArray ,
37
38
funds_controlled : Int ,
38
- deadline : Int ,
39
39
}
40
40
}
41
41
```
42
42
43
43
## User Action
44
44
45
45
1 . 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 `
48
47
- 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
50
49
- Output datum in state of ` Proposed `
51
50
- fields exactly the same
52
51
- Registering stake cert
@@ -55,32 +54,29 @@ pub type Datum {
55
54
- Propose gov action
56
55
57
56
2 . 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 `
60
58
- Input datum in state of ` Proposed `
61
- - Check output value (deducted by 100k ADA exactly)
62
59
- Output datum in state of ` Voted ` , with ` gov_tx_id ` composed by own's input ` TransactionId ` + ` proposal_procedure ` as 0
63
60
- fields exactly the same
61
+ - Voted yes by drep
64
62
65
63
3 . DeregisterCerts
66
-
64
+ - collecting 100k ada from reward address to spending address
67
65
- 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 `
69
67
- Input datum in state of ` Voted `
70
68
- Output datum in state of ` Refundable `
71
69
- fields exactly the same
72
70
- Deregistering both certs
73
71
- Refunds (502ADA) go into the output
74
72
75
73
4 . ContributorWithdrawal
76
-
74
+ - Input with token of policy ` start_hash `
77
75
- Input datum in state of Refundable
78
- - ` deadline ` is passed
79
76
- The lovelace unlocking from current equal exactly the amount that the ` share_token ` with token name of ` completion_script ` is burnt
80
77
81
78
5 . RemoveEmptyInstance
82
-
79
+ - Input with token of policy ` start_hash ` , which is burnt
83
80
- Input datum in state of Refundable
84
- - ` deadline ` is passed
85
81
- share token with token name ` completion_script ` burning in current tx == ` current_fundraised_amount `
86
82
- signed by ` proposer_key_hash `
0 commit comments