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

decode finalizing instructions and index them #174

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

swaggymarie
Copy link
Contributor

No description provided.

@@ -276,6 +277,154 @@ export const AutocratProposalIndexer: IntervalFetchIndexer = {
.execute()
);

const formattedIx: TransactionInstruction = {
Copy link
Contributor Author

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 {
Copy link
Contributor Author

@swaggymarie swaggymarie Jun 20, 2024

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", {
Copy link
Contributor

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?

Copy link
Contributor Author

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

@swaggymarie swaggymarie changed the title add finalize instructions decode finalizing instructions and index them Jun 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants