From e4ba9f26ebf2f534cf65887c9962bd0abac8ff33 Mon Sep 17 00:00:00 2001 From: Samuel Vanderwaal Date: Thu, 6 Jul 2023 11:34:46 -0800 Subject: [PATCH] rejen JS api --- fixed-price-sale/js/idl/fixed_price_sale.json | 5 ++++ .../js/src/generated/errors/index.ts | 23 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/fixed-price-sale/js/idl/fixed_price_sale.json b/fixed-price-sale/js/idl/fixed_price_sale.json index 8e2f2475ac..b33544c1a2 100644 --- a/fixed-price-sale/js/idl/fixed_price_sale.json +++ b/fixed-price-sale/js/idl/fixed_price_sale.json @@ -1355,6 +1355,11 @@ "code": 6044, "name": "EditionMarkerFull", "msg": "No available editions in edition marker" + }, + { + "code": 6045, + "name": "InvalidEditionMarkerAccount", + "msg": "Invalid edition marker" } ], "metadata": { diff --git a/fixed-price-sale/js/src/generated/errors/index.ts b/fixed-price-sale/js/src/generated/errors/index.ts index 4b7513b4e5..5cda03a893 100644 --- a/fixed-price-sale/js/src/generated/errors/index.ts +++ b/fixed-price-sale/js/src/generated/errors/index.ts @@ -950,6 +950,29 @@ export class EditionMarkerFullError extends Error { createErrorFromCodeLookup.set(0x179c, () => new EditionMarkerFullError()); createErrorFromNameLookup.set('EditionMarkerFull', () => new EditionMarkerFullError()); +/** + * InvalidEditionMarkerAccount: 'Invalid edition marker' + * + * @category Errors + * @category generated + */ +export class InvalidEditionMarkerAccountError extends Error { + readonly code: number = 0x179d; + readonly name: string = 'InvalidEditionMarkerAccount'; + constructor() { + super('Invalid edition marker'); + if (typeof Error.captureStackTrace === 'function') { + Error.captureStackTrace(this, InvalidEditionMarkerAccountError); + } + } +} + +createErrorFromCodeLookup.set(0x179d, () => new InvalidEditionMarkerAccountError()); +createErrorFromNameLookup.set( + 'InvalidEditionMarkerAccount', + () => new InvalidEditionMarkerAccountError(), +); + /** * Attempts to resolve a custom program error from the provided error code. * @category Errors