11use aiken/ transaction/ credential.{
2- ColdCommitteeCredential , Credential , DRepCredential , HotCommitteeCredential ,
3- PoolId , VerificationKeyHash ,
2+ ColdCommitteeCredential , DRepCredential , HotCommitteeCredential , PoolId ,
3+ StakeCredential , VerificationKeyHash ,
44}
55use aiken/ transaction/ governance.{Delegatee }
66use aiken/ transaction/ value.{Lovelace }
@@ -10,30 +10,43 @@ use aiken/transaction/value.{Lovelace}
1010/// they require signatures from / specific keys.
1111pub type Certificate {
1212 // Register staking credential with an optional deposit amount
13- RegisterStaking (Credential , Option < Lovelace > )
13+ RegisterStaking {
14+ delegator: StakeCredential ,
15+ deposit_amount: Option < Lovelace > ,
16+ }
1417 // Un-Register staking credential with an optional refund amount
15- UnRegisterStaking (Credential , Option < Lovelace > )
18+ UnregisterStaking {
19+ delegator: StakeCredential ,
20+ refund_amount: Option < Lovelace > ,
21+ }
1622 // Delegate staking credential to a Delegatee
17- DelegateStaking ( Credential , Delegatee )
23+ DelegateStaking { delegator: StakeCredential , delegatee: Delegatee }
1824 // Register and delegate staking credential to a Delegatee in one certificate. Noter that
1925 // deposit is mandatory.
20- RegisterAndDelegate (Credential , Delegatee , Lovelace )
26+ RegisterAndDelegate {
27+ delegator: StakeCredential ,
28+ delegatee: Delegatee ,
29+ deposit_amount: Lovelace ,
30+ }
2131 // Register a DRep with a deposit value. The optional anchor is omitted.
22- RegisterDRep ( DRepCredential , Lovelace )
32+ RegisterDRep { representative: DRepCredential , deposit_amount: Lovelace }
2333 // Update a DRep. The optional anchor is omitted.
24- UpdateDRep ( DRepCredential )
34+ UpdateDRep { representative: DRepCredential }
2535 // UnRegister a DRep with mandatory refund value
26- UnregisterDRep ( DRepCredential , Lovelace )
36+ UnregisterDRep { representative: DRepCredential , refund_amount: Lovelace }
2737 // A digest of the PoolParams
28- PoolRegister (
38+ PoolRegister {
2939 // poolId
30- PoolId ,
40+ pool_id: PoolId ,
3141 // pool VFR
32- VerificationKeyHash ,
33- )
42+ pool_vrf: VerificationKeyHash ,
43+ }
3444 // The retirement certificate and the Epoch in which the retirement will take place
35- PoolRetire ( VerificationKeyHash , Int )
45+ PoolRetire { pool_id: PoolId , epoch: Int }
3646 // Authorize a Hot credential for a specific Committee member's cold credential
37- AuthorizeHotCommittee (ColdCommitteeCredential , HotCommitteeCredential )
38- ResignColdCommittee (ColdCommitteeCredential )
47+ AuthorizeHotCommittee {
48+ cold_memeber: ColdCommitteeCredential ,
49+ hot_member: HotCommitteeCredential ,
50+ }
51+ ResignColdCommittee { cold_member: ColdCommitteeCredential }
3952}
0 commit comments