sugar_cli/
program_errors.rs

1use phf::phf_map;
2
3pub static METADATA_ERROR: phf::Map<&'static str, &'static str> = phf_map! {
4    "0" => "InstructionUnpackError: Failed to unpack instruction data",
5    "1" => "InstructionPackError: Failed to pack instruction data",
6    "2" => "NotRentExempt: Lamport balance below rent-exempt threshold",
7    "3" => "AlreadyInitialized: Already initialized",
8    "4" => "Uninitialized: Uninitialized",
9    "5" => "InvalidMetadataKey:  Metadata's key must match seed of ['metadata', program id, mint] provided",
10    "6" => "InvalidEditionKey: Edition's key must match seed of ['metadata', program id, name, 'edition'] provided",
11    "7" => "UpdateAuthorityIncorrect: Update Authority given does not match",
12    "8" => "UpdateAuthorityIsNotSigner: Update Authority needs to be signer to update metadata",
13    "9" => "NotMintAuthority: You must be the mint authority and signer on this transaction",
14    "A" => "InvalidMintAuthority: Mint authority provided does not match the authority on the mint",
15    "B" => "NameTooLong: Name too long",
16    "C" => "SymbolTooLong: Symbol too long",
17    "D" => "UriTooLong: URI too long",
18    "E" => "UpdateAuthorityMustBeEqualToMetadataAuthorityAndSigner: Update authority must be equivalent to the metadata's authority and also signer of this transaction",
19    "F" => "MintMismatch: Mint given does not match mint on Metadata",
20    "10" => "EditionsMustHaveExactlyOneToken: Editions must have exactly one token",
21    "11" => "MaxEditionsMintedAlready: Maximum editions printed already",
22    "12" => "TokenMintToFailed: Token mint to failed",
23    "13" => "MasterRecordMismatch: The master edition record passed must match the master record on the edition given",
24    "14" => "DestinationMintMismatch: The destination account does not have the right mint",
25    "15" => "EditionAlreadyMinted: An edition can only mint one of its kind!",
26    "16" => "PrintingMintDecimalsShouldBeZero: Printing mint decimals should be zero",
27    "17" => "OneTimePrintingAuthorizationMintDecimalsShouldBeZero: OneTimePrintingAuthorization mint decimals should be zero",
28    "18" => "EditionMintDecimalsShouldBeZero: EditionMintDecimalsShouldBeZero",
29    "19" => "TokenBurnFailed: Token burn failed",
30    "1A" => "TokenAccountOneTimeAuthMintMismatch: The One Time authorization mint does not match that on the token account!",
31    "1B" => "DerivedKeyInvalid: Derived key invalid",
32    "1C" => "PrintingMintMismatch: The Printing mint does not match that on the master edition!",
33    "1D" => "OneTimePrintingAuthMintMismatch: The One Time Printing Auth mint does not match that on the master edition!",
34    "1E" => "TokenAccountMintMismatch: The mint of the token account does not match the Printing mint!",
35    "1F" => "TokenAccountMintMismatchV2: The mint of the token account does not match the master metadata mint!",
36    "20" => "NotEnoughTokens: Not enough tokens to mint a limited edition",
37    "21" => "PrintingMintAuthorizationAccountMismatch",
38    "22" => "AuthorizationTokenAccountOwnerMismatch: The authorization token account has a different owner than the update authority for the master edition!",
39    "23" => "Disabled: This feature is currently disabled.",
40    "24" => "CreatorsTooLong: Creators list too long",
41    "25" => "CreatorsMustBeAtleastOne: Creators must be at least one if set",
42    "26" => "MustBeOneOfCreators: If using a creators array, you must be one of the creators listed",
43    "27" => "NoCreatorsPresentOnMetadata: This metadata does not have creators",
44    "28" => "CreatorNotFound: This creator address was not found",
45    "29" => "InvalidBasisPoints: Basis points cannot be more than 10000",
46    "2A" => "PrimarySaleCanOnlyBeFlippedToTrue: Primary sale can only be flipped to true and is immutable",
47    "2B" => "OwnerMismatch: Owner does not match that on the account given",
48    "2C" => "NoBalanceInAccountForAuthorization: This account has no tokens to be used for authorization",
49    "2D" => "ShareTotalMustBe100: Share total must equal 100 for creator array",
50    "2E" => "ReservationExists: This reservation list already exists!",
51    "2F" => "ReservationDoesNotExist: This reservation list does not exist!",
52    "30" => "ReservationNotSet: This reservation list exists but was never set with reservations",
53    "31" => "ReservationAlreadyMade: This reservation list has already been set!",
54    "32" => "BeyondMaxAddressSize: Provided more addresses than max allowed in single reservation",
55    "33" => "NumericalOverflowError: NumericalOverflowError",
56    "34" => "ReservationBreachesMaximumSupply: This reservation would go beyond the maximum supply of the master edition!",
57    "35" => "AddressNotInReservation: Address not in reservation!",
58    "36" => "CannotVerifyAnotherCreator: You cannot unilaterally verify another creator, they must sign",
59    "37" => "CannotUnverifyAnotherCreator: You cannot unilaterally unverify another creator",
60    "38" => "SpotMismatch: In initial reservation setting, spots remaining should equal total spots",
61    "39" => "IncorrectOwner: Incorrect account owner",
62    "3A" => "PrintingWouldBreachMaximumSupply: printing these tokens would breach the maximum supply limit of the master edition",
63    "3B" => "DataIsImmutable: Data is immutable",
64    "3C" => "DuplicateCreatorAddress: No duplicate creator addresses",
65    "3D" => "ReservationSpotsRemainingShouldMatchTotalSpotsAtStart: Reservation spots remaining should match total spots when first being created",
66    "3E" => "InvalidTokenProgram: Invalid token program",
67    "3F" => "DataTypeMismatch: Data type mismatch",
68    "40" => "BeyondAlottedAddressSize: Beyond alotted address size in reservation!",
69    "41" => "ReservationNotComplete: The reservation has only been partially alotted",
70    "42" => "TriedToReplaceAnExistingReservation: You cannot splice over an existing reservation!",
71    "43" => "InvalidOperation: Invalid operation",
72    "44" => "InvalidOwner: Invalid Owner",
73    "45" => "PrintingMintSupplyMustBeZeroForConversion: Printing mint supply must be zero for conversion",
74    "46" => "OneTimeAuthMintSupplyMustBeZeroForConversion: One Time Auth mint supply must be zero for conversion",
75    "47" => "InvalidEditionIndex: You tried to insert one edition too many into an edition mark pda",
76    "48" => "ReservationArrayShouldBeSizeOne: In the legacy system the reservation needs to be of size one for cpu limit reasons",
77    "49" => "IsMutableCanOnlyBeFlippedToFalse: Is Mutable can only be flipped to false",
78    "4A" => "CollectionCannotBeVerifiedInThisInstruction: Collection cannot be verified in this instruction",
79    "4B" => "Removed: This instruction was deprecated in a previous release and is now removed",
80    "4C" => "MustBeBurned: This token use method is burn and there are no remaining uses, it must be burned",
81    "4D" => "InvalidUseMethod: This use method is invalid",
82    "4E" => "CannotChangeUseMethodAfterFirstUse: Cannot Change Use Method after the first use",
83    "4F" => "CannotChangeUsesAfterFirstUse: Cannot Change Remaining or Available uses after the first use",
84    "50" => "CollectionNotFound: Collection Not Found on Metadata",
85    "51" => "InvalidCollectionUpdateAuthority: Collection Update Authority is invalid",
86    "52" => "CollectionMustBeAUniqueMasterEdition: Collection Must Be a Unique Master Edition v2",
87    "53" => "UseAuthorityRecordAlreadyExists: The Use Authority Record Already Exists, to modify it Revoke, then Approve",
88    "54" => "UseAuthorityRecordAlreadyRevoked: The Use Authority Record is empty or already revoked",
89    "55" => "Unusable: This token has no uses",
90    "56" => "NotEnoughUses: There are not enough Uses left on this token.",
91    "57" => "CollectionAuthorityRecordAlreadyExists: This Collection Authority Record Already Exists.",
92    "58" => "CollectionAuthorityDoesNotExist: This Collection Authority Record Does Not Exist.",
93    "59" => "InvalidUseAuthorityRecord: This Use Authority Record is invalid.",
94    "5A" => "InvalidCollectionAuthorityRecord: This Collection Authority Record is invalid.",
95    "5B" => "InvalidFreezeAuthority: Metadata does not match the freeze authority on the mint",
96    "5C" => "InvalidDelegate: All tokens in this account have not been delegated to this user.",
97    "5D" => "CannotAdjustVerifiedCreator: Creator can not be adjusted once they are verified.",
98    "5E" => "CannotRemoveVerifiedCreator: Verified creators cannot be removed.",
99    "5F" => "CannotWipeVerifiedCreators: Can not wipe verified creators.",
100    "60" => "NotAllowedToChangeSellerFeeBasisPoints: Not allowed to change seller fee basis points.",
101    "61" => "EditionOverrideCannotBeZero: Edition override cannot be zero",
102    "62" => "InvalidUser: Invalid User",
103    "63" => "RevokeCollectionAuthoritySignerIncorrect: Revoke Collection Authority signer is incorrect",
104    "64" => "TokenCloseFailed: Token close failed",
105    "65" => "UnsizedCollection: Can't use this function on unsized collection",
106    "66" => "SizedCollection: Can't use this function on a sized collection",
107    "67" => "MissingCollectionMetadata",
108    "68" => "NotAMemberOfCollection: This NFT is not a member of the specified collection.",
109    "69" => "NotVerifiedMemberOfCollection: This NFT is not a verified member of the specified collection.",
110    "6A" => "NotACollectionParent: This NFT is not a collection parent NFT.",
111    "6B" => "CouldNotDetermineTokenStandard: Could not determine a TokenStandard type.",
112    "6C" => "MissingEditionAccount: This mint account has an edition but none was provided.",
113    "6D" => "NotAMasterEdition: This edition is not a Master Edition",
114    "6E" => "MasterEditionHasPrints: This Master Edition has existing prints",
115    "6F" => "BorshDeserializationError: Borsh Deserialization Error",
116    "70" => "CannotUpdateVerifiedCollection: Cannot update a verified collection in this command",
117    "71" => "CollectionMasterEditionAccountInvalid: Edition account doesnt match collection ",
118    "72" => "AlreadyVerified: Item is already verified.",
119    "73" => "AlreadyUnverified: Item is already unverified.",
120    "74" => "NotAPrintEdition: This edition is not a Print Edition",
121    "75" => "InvalidMasterEdition: Invalid Master Edition",
122    "76" => "InvalidPrintEdition: Invalid Print Edition",
123    "77" => "InvalidEditionMarker: Invalid Edition Marker",
124    "78" => "ReservationListDeprecated: Reservation List is Deprecated",
125    "79" => "PrintEditionDoesNotMatchMasterEdition: Print Edition does not match Master Edition",
126    "7A" => "EditionNumberGreaterThanMaxSupply: Edition Number greater than max supply",
127    "7B" => "MustUnverify: Must unverify before migrating collections.",
128    "7C" => "InvalidEscrowBumpSeed: Invalid Escrow Account Bump Seed",
129    "7D" => "MustBeEscrowAuthority: Must Escrow Authority",
130    "7E" => "InvalidSystemProgram: Invalid System Program",
131    "7F" => "MustBeNonFungible: Must be a Non Fungible Token",
132    "80" => "InsufficientTokens: Insufficient tokens for transfer",
133    "81" => "BorshSerializationError: Borsh Serialization Error",
134    "82" => "NoFreezeAuthoritySet: Cannot create NFT with no Freeze Authority.",
135    "83" => "InvalidCollectionSizeChange: Invalid collection size change",
136    "84" => "InvalidBubblegumSigner: Invalid bubblegum signer",
137    "85" => "EscrowParentHasDelegate: Escrow parent cannot have a delegate",
138    "86" => "MintIsNotSigner: Mint needs to be signer to initialize the account",
139    "87" => "InvalidTokenStandard: Invalid token standard",
140    "88" => "InvalidMintForTokenStandard: Invalid mint account for specified token standard",
141    "89" => "InvalidAuthorizationRules: Invalid authorization rules account",
142    "8A" => "MissingAuthorizationRules: Missing authorization rules account",
143    "8B" => "MissingProgrammableConfig: Missing programmable configuration",
144    "8C" => "InvalidProgrammableConfig: Invalid programmable configuration",
145    "8D" => "DelegateAlreadyExists: Delegate already exists",
146    "8E" => "DelegateNotFound: Delegate not found",
147    "8F" => "MissingAccountInBuilder: Required account not set in instruction builder",
148    "90" => "MissingArgumentInBuilder: Required argument not set in instruction builder",
149    "91" => "FeatureNotSupported: Feature not supported currently",
150    "92" => "InvalidSystemWallet: Invalid system wallet",
151    "93" => "OnlySaleDelegateCanTransfer: Only the sale delegate can transfer while its set",
152    "94" => "MissingTokenAccount: Missing token account",
153    "95" => "MissingSplTokenProgram: Missing SPL token program",
154    "96" => "MissingAuthorizationRulesProgram: Missing authorization rules program",
155    "97" => "InvalidDelegateRoleForTransfer: Invalid delegate role for transfer",
156    "98" => "InvalidTransferAuthority: Invalid transfer authority",
157    "99" => "InstructionNotSupported: Instruction not supported for ProgrammableNonFungible assets",
158    "9A" => "KeyMismatch: Public key does not match expected value",
159    "9B" => "LockedToken: Token is locked",
160    "9C" => "UnlockedToken: Token is unlocked",
161    "9D" => "MissingDelegateRole: Missing delegate role",
162    "9E" => "InvalidAuthorityType: Invalid authority type",
163    "9F" => "MissingTokenRecord: Missing token record account",
164    "A0" => "MintSupplyMustBeZero: Mint supply must be zero for programmable assets",
165    "A1" => "DataIsEmptyOrZeroed: Data is empty or zeroed",
166    "A2" => "MissingTokenOwnerAccount: Missing token owner",
167    "A3" => "InvalidMasterEditionAccountLength: Master edition account has an invalid length",
168    "A4" => "IncorrectTokenState: Incorrect token state",
169    "A5" => "InvalidDelegateRole: Invalid delegate role",
170    "A6" => "MissingPrintSupply: Print supply is required for non-fungibles",
171    "A7" => "MissingMasterEditionAccount: Missing master edition account",
172    "A8" => "AmountMustBeGreaterThanZero: Amount must be greater than zero",
173    "A9" => "InvalidDelegateArgs: Invalid delegate args",
174    "AA" => "MissingLockedTransferAddress: Missing address for locked transfer",
175    "AB" => "InvalidLockedTransferAddress: Invalid destination address for locked transfer",
176    "AC" => "DataIncrementLimitExceeded: Exceeded account realloc increase limit",
177    "AD" => "CannotUpdateAssetWithDelegate: Cannot update the rule set of a programmable asset that has a delegate",
178};
179
180pub static CANDY_CORE_ERROR: phf::Map<&'static str, &'static str> = phf_map! {
181    "1770" => "IncorrectOwner: Account does not have correct owner",
182    "1771" => "Uninitialized: Account is not initialized",
183    "1772" => "MintMismatch: Mint Mismatch",
184    "1773" => "IndexGreaterThanLength: Index greater than length",
185    "1774" => "NumericalOverflowError: Numerical overflow error",
186    "1775" => "TooManyCreators: Can only provide up to 4 creators to candy machine (because candy machine is one)",
187    "1776" => "CandyMachineEmpty: Candy machine is empty",
188    "1777" => "HiddenSettingsDoNotHaveConfigLines: Candy machines using hidden uris do not have config lines, they have a single hash representing hashed order",
189    "1778" => "CannotChangeNumberOfLines: Cannot change number of lines unless is a hidden config",
190    "1779" => "CannotSwitchToHiddenSettings: Cannot switch to hidden settings after items available is greater than 0",
191    "177A" => "IncorrectCollectionAuthority: Incorrect collection NFT authority",
192    "177B" => "MetadataAccountMustBeEmpty: The metadata account has data in it, and this must be empty to mint a new NFT",
193    "177C" => "NoChangingCollectionDuringMint: Can't change collection settings after items have begun to be minted",
194    "177D" => "ExceededLengthError: Value longer than expected maximum value",
195    "177E" => "MissingConfigLinesSettings: Missing config lines settings",
196    "177F" => "CannotIncreaseLength: Cannot increase the length in config lines settings",
197    "1780" => "CannotSwitchFromHiddenSettings: Cannot switch from hidden settings",
198    "1781" => "CannotChangeSequentialIndexGeneration: Cannot change sequential index generation after items have begun to be minted",
199    "1782" => "CollectionKeyMismatch: Collection public key mismatch",
200    "1783" => "CouldNotRetrieveConfigLineData: Could not retrive config line data",
201    "1784" => "NotFullyLoaded: Not all config lines were added to the candy machine",
202};
203
204pub static CANDY_GUARD_ERROR: phf::Map<&'static str, &'static str> = phf_map! {
205    "1770" => "InvalidAccountSize: Could not save guard to account",
206    "1771" => "DeserializationError: Could not deserialize guard",
207    "1772" => "PublicKeyMismatch: Public key mismatch",
208    "1773" => "DataIncrementLimitExceeded: Exceeded account increase limit",
209    "1774" => "IncorrectOwner: Account does not have correct owner",
210    "1775" => "Uninitialized: Account is not initialized",
211    "1776" => "MissingRemainingAccount: Missing expected remaining account",
212    "1777" => "NumericalOverflowError: Numerical overflow error",
213    "1778" => "RequiredGroupLabelNotFound: Missing required group label",
214    "1779" => "GroupNotFound: Group not found",
215    "177A" => "ExceededLength: Value exceeded maximum length",
216    "177B" => "CandyMachineEmpty: Candy machine is empty",
217    "177C" => "InstructionNotFound: No instruction was found",
218    "177D" => "CollectionKeyMismatch: Collection public key mismatch",
219    "177E" => "MissingCollectionAccounts: Missing collection accounts",
220    "177F" => "CollectionUpdateAuthorityKeyMismatch: Collection update authority public key mismatch",
221    "1780" => "MintNotLastTransaction: Mint must be the last instructions of the transaction",
222    "1781" => "MintNotLive: Mint is not live",
223    "1782" => "NotEnoughSOL: Not enough SOL to pay for the mint",
224    "1783" => "TokenBurnFailed: Token burn failed",
225    "1784" => "NotEnoughTokens: Not enough tokens on the account",
226    "1785" => "TokenTransferFailed: Token transfer failed",
227    "1786" => "MissingRequiredSignature: A signature was required but not found",
228    "1787" => "GatewayTokenInvalid: Gateway token is not valid",
229    "1788" => "AfterEndDate: Current time is after the set end date",
230    "1789" => "InvalidMintTime: Current time is not within the allowed mint time",
231    "178A" => "AddressNotFoundInAllowedList: Address not found on the allowed list",
232    "178B" => "MissingAllowedListProof: Missing allowed list proof",
233    "178C" => "AllowedListNotEnabled: Allow list guard is not enabled",
234    "178D" => "AllowedMintLimitReached: The maximum number of allowed mints was reached",
235    "178E" => "InvalidNftCollection: Invalid NFT collection",
236    "178F" => "MissingNft: Missing NFT on the account",
237    "1790" => "MaximumRedeemedAmount: Current redemeed items is at the set maximum amount",
238    "1791" => "AddressNotAuthorized: Address not authorized",
239    "1792" => "MissingFreezeInstruction: Missing freeze instruction data",
240    "1793" => "FreezeGuardNotEnabled: Freeze guard must be enabled",
241    "1794" => "FreezeNotInitialized: Freeze must be initialized",
242    "1795" => "MissingFreezePeriod: Missing freeze period",
243    "1796" => "FreezeEscrowAlreadyExists: The freeze escrow account already exists",
244    "1797" => "ExceededMaximumFreezePeriod: Maximum freeze period exceeded",
245    "1798" => "ThawNotEnabled: Thaw is not enabled",
246    "1799" => "UnlockNotEnabled: Unlock is not enabled (not all NFTs are thawed)",
247    "179A" => "DuplicatedGroupLabel: Duplicated group label",
248    "179B" => "DuplicatedMintLimitId: Duplicated mint limit id",
249    "179C" => "UnauthorizedProgramFound: An unauthorized program was found in the transaction",
250    "179D" => "ExceededProgramListSize: Exceeded the maximum number of programs in the additional list",
251    "179E" => "AllocationNotInitialized: Allocation PDA not initialized",
252    "179F" => "AllocationLimitReached: Allocation limit was reached",
253    "17A0" => "AllocationGuardNotEnabled: Allocation guard must be enabled",
254};
255
256pub static ANCHOR_ERROR: phf::Map<&'static str, &'static str> = phf_map! {
257    "64" => "InstructionMissing: 8 byte instruction identifier not provided",
258    "65" => "InstructionFallbackNotFound: Fallback functions are not supported",
259    "66" => "InstructionDidNotDeserialize: The program could not deserialize the given instruction",
260    "67" => "InstructionDidNotSerialize: The program could not serialize the given instruction",
261    "3E8" => "IdlInstructionStub: The program was compiled without idl instructions",
262    "3E9" => "IdlInstructionInvalidProgram: Invalid program given to the IDL instruction",
263    "3EA" => "IdlAccountNotEmpty: IDL account must be empty in order to resize, try closing first",
264    "7D0" => "ConstraintMut: A mut constraint was violated",
265    "7D1" => "ConstraintHasOne: A has one constraint was violated",
266    "7D2" => "ConstraintSigner: A signer constraint was violated",
267    "7D3" => "ConstraintRaw: A raw constraint was violated",
268    "7D4" => "ConstraintOwner: An owner constraint was violated",
269    "7D5" => "ConstraintRentExempt: A rent exemption constraint was violated",
270    "7D6" => "ConstraintSeeds: A seeds constraint was violated",
271    "7D7" => "ConstraintExecutable: An executable constraint was violated",
272    "7D8" => "ConstraintState: Deprecated Error, feel free to replace with something else",
273    "7D9" => "ConstraintAssociated: An associated constraint was violated",
274    "7DA" => "ConstraintAssociatedInit: An associated init constraint was violated",
275    "7DB" => "ConstraintClose: A close constraint was violated",
276    "7DC" => "ConstraintAddress: An address constraint was violated",
277    "7DD" => "ConstraintZero: Expected zero account discriminant",
278    "7DE" => "ConstraintTokenMint: A token mint constraint was violated",
279    "7DF" => "ConstraintTokenOwner: A token owner constraint was violated",
280    "7E0" => "ConstraintMintMintAuthority: A mint mint authority constraint was violated",
281    "7E1" => "ConstraintMintFreezeAuthority: A mint freeze authority constraint was violated",
282    "7E2" => "ConstraintMintDecimals: A mint decimals constraint was violated",
283    "7E3" => "ConstraintSpace: A space constraint was violated",
284    "7E4" => "ConstraintAccountIsNone: A required account for the constraint is None",
285    "9C4" => "RequireViolated: A require expression was violated",
286    "9C5" => "RequireEqViolated: A require_eq expression was violated",
287    "9C6" => "RequireKeysEqViolated: A require_keys_eq expression was violated",
288    "9C7" => "RequireNeqViolated: A require_neq expression was violated",
289    "9C8" => "RequireKeysNeqViolated: A require_keys_neq expression was violated",
290    "9C9" => "RequireGtViolated: A require_gt expression was violated",
291    "9CA" => "RequireGteViolated: A require_gte expression was violated",
292    "BB8" => "AccountDiscriminatorAlreadySet: The account discriminator was already set on this account",
293    "BB9" => "AccountDiscriminatorNotFound: No 8 byte discriminator was found on the account",
294    "BBA" => "AccountDiscriminatorMismatch: 8 byte discriminator did not match what was expected",
295    "BBB" => "AccountDidNotDeserialize: Failed to deserialize the account",
296    "BBC" => "AccountDidNotSerialize: Failed to serialize the account",
297    "BBD" => "AccountNotEnoughKeys: Not enough account keys given to the instruction",
298    "BBE" => "AccountNotMutable: The given account is not mutable",
299    "BBF" => "AccountOwnedByWrongProgram: The given account is owned by a different program than expected",
300    "BC0" => "InvalidProgramId: Program ID was not as expected",
301    "BC1" => "InvalidProgramExecutable: Program account is not executable",
302    "BC2" => "AccountNotSigner: The given account did not sign",
303    "BC3" => "AccountNotSystemOwned: The given account is not owned by the system program",
304    "BC4" => "AccountNotInitialized: The program expected this account to be already initialized",
305    "BC5" => "AccountNotProgramData: The given account is not a program data account",
306    "BC6" => "AccountNotAssociatedTokenAccount: The given account is not the associated token account",
307    "BC7" => "AccountSysvarMismatch: The given public key does not match the required sysvar",
308    "BC8" => "AccountReallocExceedsLimit: The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit",
309    "BC9" => "AccountDuplicateReallocs: The account was duplicated for more than one reallocation",
310    "1004" => "DeclaredProgramIdMismatch: The declared program id does not match the actual program id",
311    "1005" => "TryingToInitPayerAsProgramAccount: You cannot/should not initialize the payer account as a program account",
312    "1388" => "Deprecated: The API being used is deprecated and should no longer be used",
313};