@@ -31,22 +31,66 @@ pub enum GovernanceError {
31
31
#[ error( "Governing Token Owner must sign transaction" ) ]
32
32
GoverningTokenOwnerMustSign ,
33
33
34
- /// Governing Token Owner or Vote Authority must sign transaction
35
- #[ error( "Governing Token Owner or Vote Authority must sign transaction" ) ]
36
- GoverningTokenOwnerOrVoteAuthrotiyMustSign ,
34
+ /// Governing Token Owner or Delegate must sign transaction
35
+ #[ error( "Governing Token Owner or Delegate must sign transaction" ) ]
36
+ GoverningTokenOwnerOrDelegateMustSign ,
37
37
38
38
/// All active votes must be relinquished to withdraw governing tokens
39
39
#[ error( "All active votes must be relinquished to withdraw governing tokens" ) ]
40
40
CannotWithdrawGoverningTokensWhenActiveVotesExist ,
41
41
42
- /// Invalid Voter account address
43
- #[ error( "Invalid Voter account address" ) ]
44
- InvalidVoterAccountAddress ,
42
+ /// Invalid Token Owner Record account address
43
+ #[ error( "Invalid Token Owner Record account address" ) ]
44
+ InvalidTokenOwnerRecordAccountAddress ,
45
+
46
+ /// Invalid Token Owner Record Governing mint
47
+ #[ error( "Invalid Token Owner Record Governing mint" ) ]
48
+ InvalidTokenOwnerRecordGoverningMint ,
49
+
50
+ /// Invalid Token Owner Record Realm
51
+ #[ error( "Invalid Token Owner Record Realm" ) ]
52
+ InvalidTokenOwnerRecordRealm ,
53
+
54
+ /// Invalid Signatory account address
55
+ #[ error( "Invalid Signatory account address" ) ]
56
+ InvalidSignatoryAddress ,
57
+
58
+ /// Signatory already signed off
59
+ #[ error( "Signatory already signed off" ) ]
60
+ SignatoryAlreadySignedOff ,
61
+
62
+ /// Signatory must sign
63
+ #[ error( "Signatory must sign" ) ]
64
+ SignatoryMustSign ,
65
+
66
+ /// Invalid Proposal Owner
67
+ #[ error( "Invalid Proposal Owner" ) ]
68
+ InvalidProposalOwnerAccount ,
45
69
46
70
/// Invalid Governance config
47
71
#[ error( "Invalid Governance config" ) ]
48
72
InvalidGovernanceConfig ,
49
73
74
+ /// Proposal for the given Governance, Governing Token Mint and index already exists
75
+ #[ error( "Proposal for the given Governance, Governing Token Mint and index already exists" ) ]
76
+ ProposalAlreadyExists ,
77
+
78
+ /// Owner doesn't have enough governing tokens to create Proposal
79
+ #[ error( "Owner doesn't have enough governing tokens to create Proposal" ) ]
80
+ NotEnoughTokensToCreateProposal ,
81
+
82
+ /// Invalid State: Can't edit Signatories
83
+ #[ error( "Invalid State: Can't edit Signatories" ) ]
84
+ InvalidStateCannotEditSignatories ,
85
+
86
+ /// Invalid State: Can't sign off
87
+ #[ error( "Invalid State: Can't sign off" ) ]
88
+ InvalidStateCannotSignOff ,
89
+
90
+ /// Invalid Signatory Mint
91
+ #[ error( "Invalid Signatory Mint" ) ]
92
+ InvalidSignatoryMint ,
93
+
50
94
/// ---- Account Tools Errors ----
51
95
52
96
/// Invalid account owner
0 commit comments