-
Notifications
You must be signed in to change notification settings - Fork 5
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
decode finalizing instructions and index them #174
base: staging
Are you sure you want to change the base?
Conversation
@@ -276,6 +277,154 @@ export const AutocratProposalIndexer: IntervalFetchIndexer = { | |||
.execute() | |||
); | |||
|
|||
const formattedIx: TransactionInstruction = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chose to format before inserting into the database, we could also do it when retrieving
We could also export some functions, because the file begins to be pretty huge
@@ -140,6 +140,80 @@ export const proposals = pgTable("proposals", { | |||
completedAt: timestamp("completed_at"), | |||
}); | |||
|
|||
|
|||
export enum DisplayName { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could add more for later use!
|
||
// NOT USED | ||
|
||
// export const instructionAccounts = pgTable("instruction_accounts", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm should we delete this entirely then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes think so, need to check deeper, wondered if you knew
No description provided.