From 694d46f232d661562e815bae12a79db87b338bbc Mon Sep 17 00:00:00 2001 From: Kyrylo Stepanov Date: Wed, 14 Feb 2024 17:59:34 +0200 Subject: [PATCH] update clients --- clients/js/src/generated/errors/mplBubblegum.ts | 17 +++++++++++++++++ .../rust/src/generated/errors/mpl_bubblegum.rs | 3 +++ idls/bubblegum.json | 5 +++++ 3 files changed, 25 insertions(+) diff --git a/clients/js/src/generated/errors/mplBubblegum.ts b/clients/js/src/generated/errors/mplBubblegum.ts index 56691df0..24ba1d9d 100644 --- a/clients/js/src/generated/errors/mplBubblegum.ts +++ b/clients/js/src/generated/errors/mplBubblegum.ts @@ -578,6 +578,23 @@ export class CreatorDidNotUnverifyError extends ProgramError { codeToErrorMap.set(0x1797, CreatorDidNotUnverifyError); nameToErrorMap.set('CreatorDidNotUnverify', CreatorDidNotUnverifyError); +/** InvalidTokenStandard: Minting Bubblegum is allowed only for NonFungible Standard */ +export class InvalidTokenStandardError extends ProgramError { + readonly name: string = 'InvalidTokenStandard'; + + readonly code: number = 0x1798; // 6040 + + constructor(program: Program, cause?: Error) { + super( + 'Minting Bubblegum is allowed only for NonFungible Standard', + program, + cause + ); + } +} +codeToErrorMap.set(0x1798, InvalidTokenStandardError); +nameToErrorMap.set('InvalidTokenStandard', InvalidTokenStandardError); + /** * Attempts to resolve a custom program error from the provided error code. * @category Errors diff --git a/clients/rust/src/generated/errors/mpl_bubblegum.rs b/clients/rust/src/generated/errors/mpl_bubblegum.rs index 2be5943b..3d5df067 100644 --- a/clients/rust/src/generated/errors/mpl_bubblegum.rs +++ b/clients/rust/src/generated/errors/mpl_bubblegum.rs @@ -130,6 +130,9 @@ pub enum MplBubblegumError { /// 6039 (0x1797) - Creator did not unverify the metadata #[error("Creator did not unverify the metadata")] CreatorDidNotUnverify, + /// 6040 (0x1798) - Minting Bubblegum is allowed only for NonFungible Standard + #[error("Minting Bubblegum is allowed only for NonFungible Standard")] + InvalidTokenStandard, } impl solana_program::program_error::PrintProgramError for MplBubblegumError { diff --git a/idls/bubblegum.json b/idls/bubblegum.json index 0f8b1d6c..38df54d3 100644 --- a/idls/bubblegum.json +++ b/idls/bubblegum.json @@ -2269,6 +2269,11 @@ "code": 6039, "name": "CreatorDidNotUnverify", "msg": "Creator did not unverify the metadata" + }, + { + "code": 6040, + "name": "InvalidTokenStandard", + "msg": "Minting Bubblegum is allowed only for NonFungible Standard" } ], "metadata": {