Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Governance Database Watcher #26

Open
bonedaddy opened this issue Jan 4, 2021 · 0 comments
Open

Add Governance Database Watcher #26

bonedaddy opened this issue Jan 4, 2021 · 0 comments

Comments

@bonedaddy
Copy link
Owner

bonedaddy commented Jan 4, 2021

  • Every 10 minutes check to see the current proposal count, if greater than our last store the missing information in the database.
  • Every 60 minutes check to see if existing non-executed proposals have been cancelled or executed

Example table


// Proposal is a given governance proposal submission
type Proposal struct {
	gorm.Model
	ID           int64
	Proposer     string
	Eta          int64
	StartBlock   int64
	FortVotes    int64
	AgainstVotes int64
	Canceled     bool
	Executed     bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant