diff --git a/clients/js/src/generated/errors/mplCore.ts b/clients/js/src/generated/errors/mplCore.ts index 9d392424..724769a6 100644 --- a/clients/js/src/generated/errors/mplCore.ts +++ b/clients/js/src/generated/errors/mplCore.ts @@ -526,7 +526,7 @@ export class RequiresLifecycleCheckError extends ProgramError { codeToErrorMap.set(0x24, RequiresLifecycleCheckError); nameToErrorMap.set('RequiresLifecycleCheck', RequiresLifecycleCheckError); -/** DuplicateLifecycleChecks: Duplicate lifecycle checks were provided for external plugin */ +/** DuplicateLifecycleChecks: Duplicate lifecycle checks were provided for external plugin */ export class DuplicateLifecycleChecksError extends ProgramError { override readonly name: string = 'DuplicateLifecycleChecks'; @@ -534,7 +534,7 @@ export class DuplicateLifecycleChecksError extends ProgramError { constructor(program: Program, cause?: Error) { super( - 'Duplicate lifecycle checks were provided for external plugin ', + 'Duplicate lifecycle checks were provided for external plugin', program, cause ); @@ -543,6 +543,19 @@ export class DuplicateLifecycleChecksError extends ProgramError { codeToErrorMap.set(0x25, DuplicateLifecycleChecksError); nameToErrorMap.set('DuplicateLifecycleChecks', DuplicateLifecycleChecksError); +/** InvalidOracleAccountData: Could not read from oracle account */ +export class InvalidOracleAccountDataError extends ProgramError { + override readonly name: string = 'InvalidOracleAccountData'; + + readonly code: number = 0x26; // 38 + + constructor(program: Program, cause?: Error) { + super('Could not read from oracle account', program, cause); + } +} +codeToErrorMap.set(0x26, InvalidOracleAccountDataError); +nameToErrorMap.set('InvalidOracleAccountData', InvalidOracleAccountDataError); + /** * Attempts to resolve a custom program error from the provided error code. * @category Errors diff --git a/clients/rust/src/generated/errors/mpl_core.rs b/clients/rust/src/generated/errors/mpl_core.rs index c2db7449..81aaff8b 100644 --- a/clients/rust/src/generated/errors/mpl_core.rs +++ b/clients/rust/src/generated/errors/mpl_core.rs @@ -122,8 +122,11 @@ pub enum MplCoreError { #[error("External plugin must have at least one lifecycle check")] RequiresLifecycleCheck, /// 37 (0x25) - Duplicate lifecycle checks were provided for external plugin - #[error("Duplicate lifecycle checks were provided for external plugin ")] + #[error("Duplicate lifecycle checks were provided for external plugin")] DuplicateLifecycleChecks, + /// 38 (0x26) - Could not read from oracle account + #[error("Could not read from oracle account")] + InvalidOracleAccountData, } impl solana_program::program_error::PrintProgramError for MplCoreError { diff --git a/idls/mpl_core.json b/idls/mpl_core.json index a9619d18..a75de249 100644 --- a/idls/mpl_core.json +++ b/idls/mpl_core.json @@ -4209,7 +4209,12 @@ { "code": 37, "name": "DuplicateLifecycleChecks", - "msg": "Duplicate lifecycle checks were provided for external plugin " + "msg": "Duplicate lifecycle checks were provided for external plugin" + }, + { + "code": 38, + "name": "InvalidOracleAccountData", + "msg": "Could not read from oracle account" } ], "metadata": {