@@ -7,10 +7,6 @@ import (
77
88var _ Metadata = (* GovernanceProposal )(nil )
99
10- func (t GovernanceProposal ) Type () schema.Type {
11- return typex .GovernanceProposal
12- }
13-
1410type GovernanceProposal struct {
1511 ID string `json:"id"`
1612 Body string `json:"body,omitempty"`
@@ -20,16 +16,11 @@ type GovernanceProposal struct {
2016 Link string `json:"link,omitempty"`
2117}
2218
23- var _ Metadata = (* GovernanceVote )(nil )
24-
25- func (t GovernanceVote ) Type () schema.Type {
26- return typex .GovernanceVote
19+ func (t GovernanceProposal ) Type () schema.Type {
20+ return typex .GovernanceProposal
2721}
2822
29- //go:generate go run --mod=mod github.com/dmarkham/enumer --values --type=GovernanceVoteAction --transform=snake --trimprefix=ActionGovernanceVote --output governance_vote.go --json --sql
30- type GovernanceVoteAction uint64
31-
32- var _ Metadata = (* GovernanceVoteAction )(nil )
23+ var _ Metadata = (* GovernanceVote )(nil )
3324
3425type GovernanceVote struct {
3526 Action GovernanceVoteAction `json:"action"`
@@ -38,10 +29,13 @@ type GovernanceVote struct {
3829 Proposal GovernanceProposal `json:"token"`
3930}
4031
41- func (r GovernanceVoteAction ) Type () schema.Type {
32+ func (t GovernanceVote ) Type () schema.Type {
4233 return typex .GovernanceVote
4334}
4435
36+ //go:generate go run --mod=mod github.com/dmarkham/enumer --values --type=GovernanceVoteAction --transform=snake --trimprefix=ActionGovernanceVote --output governance_vote.go --json --sql
37+ type GovernanceVoteAction uint64
38+
4539const (
4640 ActionGovernanceVoteFor GovernanceVoteAction = iota + 1
4741 ActionGovernanceVoteAgainst
0 commit comments