-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 2aa04d3.
- Loading branch information
1 parent
504bb88
commit f324232
Showing
5 changed files
with
134 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* These types are literally a from the ones in the smart contract | ||
* https://github.com/solana-labs/solana-program-library/blob/6dfc68db1370c65076e8a860db74fd6483161d8a/governance/program/src/state/enums.rs#L7 | ||
*/ | ||
export enum AccountType { | ||
Uninitialized = 0, | ||
RealmV1 = 1, | ||
TokenOwnerRecordV1 = 2, | ||
GovernanceV1 = 3, | ||
ProgramGovernanceV1 = 4, | ||
ProposalV1 = 5, | ||
SignatoryRecordV1 = 6, | ||
VoteRecordV1 = 7, | ||
ProposalInstructionV1 = 8, | ||
MintGovernanceV1 = 9, | ||
TokenGovernanceV1 = 10, | ||
RealmConfig = 11, | ||
VoteRecordV2 = 12, | ||
ProposalTransactionV2 = 13, | ||
ProposalV2 = 14, | ||
ProgramMetadata = 15, | ||
RealmV2 = 16, | ||
TokenOwnerRecordV2 = 17, | ||
GovernanceV2 = 18, | ||
ProgramGovernanceV2 = 19, | ||
MintGovernanceV2 = 20, | ||
TokenGovernanceV2 = 21, | ||
SignatoryRecordV2 = 22, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters