nft-lend
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -21,2 +21,8 @@ /** | ||
} | ||
/** TokenNotSupported: The SPL Token mint is not supported */ | ||
export declare class TokenNotSupportedError extends ProgramError { | ||
readonly name: string; | ||
readonly code: number; | ||
constructor(program: Program, cause?: Error); | ||
} | ||
/** | ||
@@ -23,0 +29,0 @@ * Attempts to resolve a custom program error from the provided error code. |
@@ -10,3 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getNftLendErrorFromName = exports.getNftLendErrorFromCode = exports.CreatorNotVerifiedError = exports.LoanNotExpiredError = void 0; | ||
exports.getNftLendErrorFromName = exports.getNftLendErrorFromCode = exports.TokenNotSupportedError = exports.CreatorNotVerifiedError = exports.LoanNotExpiredError = void 0; | ||
const umi_1 = require("@metaplex-foundation/umi"); | ||
@@ -37,2 +37,13 @@ const codeToErrorMap = new Map(); | ||
nameToErrorMap.set('CreatorNotVerified', CreatorNotVerifiedError); | ||
/** TokenNotSupported: The SPL Token mint is not supported */ | ||
class TokenNotSupportedError extends umi_1.ProgramError { | ||
constructor(program, cause) { | ||
super('The SPL Token mint is not supported', program, cause); | ||
this.name = 'TokenNotSupported'; | ||
this.code = 0x1772; // 6002 | ||
} | ||
} | ||
exports.TokenNotSupportedError = TokenNotSupportedError; | ||
codeToErrorMap.set(0x1772, TokenNotSupportedError); | ||
nameToErrorMap.set('TokenNotSupported', TokenNotSupportedError); | ||
/** | ||
@@ -39,0 +50,0 @@ * Attempts to resolve a custom program error from the provided error code. |
{ | ||
"name": "nft-lend", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "NFT lending and borrowing protocol", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -44,2 +44,15 @@ /** | ||
/** TokenNotSupported: The SPL Token mint is not supported */ | ||
export class TokenNotSupportedError extends ProgramError { | ||
override readonly name: string = 'TokenNotSupported'; | ||
readonly code: number = 0x1772; // 6002 | ||
constructor(program: Program, cause?: Error) { | ||
super('The SPL Token mint is not supported', program, cause); | ||
} | ||
} | ||
codeToErrorMap.set(0x1772, TokenNotSupportedError); | ||
nameToErrorMap.set('TokenNotSupported', TokenNotSupportedError); | ||
/** | ||
@@ -46,0 +59,0 @@ * Attempts to resolve a custom program error from the provided error code. |
Sorry, the diff of this file is not supported yet
276202
5882