@metaplex-foundation/genesis 0.24.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/src/api/index.d.ts +1 -1
  2. package/dist/src/api/payloadBuilder.d.ts +1 -1
  3. package/dist/src/api/payloadBuilder.js +7 -99
  4. package/dist/src/api/payloadBuilder.js.map +1 -1
  5. package/dist/src/api/types.d.ts +7 -19
  6. package/dist/src/conditions.d.ts +13 -0
  7. package/dist/src/conditions.js +21 -1
  8. package/dist/src/conditions.js.map +1 -1
  9. package/dist/src/generated/accounts/bondingCurveBucketV2.js +2 -2
  10. package/dist/src/generated/errors/genesis.d.ts +24 -0
  11. package/dist/src/generated/errors/genesis.js +45 -1
  12. package/dist/src/generated/errors/genesis.js.map +1 -1
  13. package/dist/src/generated/instructions/addBondingCurveBucketV2Extensions.d.ts +2 -0
  14. package/dist/src/generated/instructions/addBondingCurveBucketV2Extensions.js +5 -0
  15. package/dist/src/generated/instructions/addBondingCurveBucketV2Extensions.js.map +1 -1
  16. package/dist/src/generated/instructions/addConstantProductBondingCurveBucketV2.d.ts +4 -2
  17. package/dist/src/generated/instructions/addConstantProductBondingCurveBucketV2.js +10 -50
  18. package/dist/src/generated/instructions/addConstantProductBondingCurveBucketV2.js.map +1 -1
  19. package/dist/src/generated/instructions/swapBondingCurveV2.d.ts +9 -7
  20. package/dist/src/generated/instructions/swapBondingCurveV2.js +27 -22
  21. package/dist/src/generated/instructions/swapBondingCurveV2.js.map +1 -1
  22. package/dist/src/generated/types/bondingCurveV2Extension.d.ts +7 -5
  23. package/dist/src/generated/types/bondingCurveV2Extension.js +3 -2
  24. package/dist/src/generated/types/bondingCurveV2Extension.js.map +1 -1
  25. package/dist/src/generated/types/bondingCurveV2ExtensionType.d.ts +1 -1
  26. package/dist/src/generated/types/bondingCurveV2ExtensionType.js +1 -1
  27. package/dist/src/generated/types/bondingCurveV2ExtensionType.js.map +1 -1
  28. package/dist/src/generated/types/bondingCurveV2Extensions.d.ts +4 -4
  29. package/dist/src/generated/types/bondingCurveV2Extensions.js +4 -4
  30. package/dist/src/generated/types/bondingCurveV2Extensions.js.map +1 -1
  31. package/dist/src/generated/types/firstBuy.d.ts +18 -0
  32. package/dist/src/generated/types/firstBuy.js +19 -0
  33. package/dist/src/generated/types/firstBuy.js.map +1 -0
  34. package/dist/src/generated/types/index.d.ts +1 -0
  35. package/dist/src/generated/types/index.js +1 -0
  36. package/dist/src/generated/types/index.js.map +1 -1
  37. package/package.json +1 -1
@@ -3,4 +3,4 @@ export { buildCreateLaunchPayload } from './payloadBuilder';
3
3
  export { signAndSendLaunchTransactions } from './transactionHelper';
4
4
  export type { GenesisApiError, GenesisApiNetworkError, GenesisValidationError, } from './errors';
5
5
  export { genesisApiError, genesisApiNetworkError, genesisValidationError, isGenesisApiError, isGenesisApiNetworkError, isGenesisValidationError, } from './errors';
6
- export type { GenesisApiConfig, CreateLaunchInput, CreateProjectLaunchInput, CreateMemecoinLaunchInput, CreateLaunchResponse, RegisterLaunchInput, RegisterLaunchResponse, CreateAndRegisterLaunchResult, SignAndSendOptions, SvmNetwork, TokenMetadata, LaunchpoolConfig, LockedAllocation, MemecoinLaunchInput, ExternalLinks, TimeUnit, QuoteMintInput, CreateLaunchType, } from './types';
6
+ export type { GenesisApiConfig, CreateLaunchInput, CreateLaunchpoolLaunchInput, CreateLaunchResponse, RegisterLaunchInput, RegisterLaunchResponse, CreateAndRegisterLaunchResult, SignAndSendOptions, SvmNetwork, TokenMetadata, LaunchpoolConfig, LaunchpoolLaunchInput, LockedAllocation, ExternalLinks, TimeUnit, QuoteMintInput, CreateLaunchType, } from './types';
@@ -11,7 +11,7 @@ export declare function buildCreateLaunchPayload(input: CreateLaunchInput): {
11
11
  publicKey: string;
12
12
  externalLinks?: import("./types").ExternalLinks | undefined;
13
13
  description?: string | undefined;
14
- type: "project" | "memecoin";
14
+ type: "launchpool";
15
15
  name: string;
16
16
  symbol: string;
17
17
  image: string;
@@ -5,23 +5,9 @@ const errors_1 = require("./errors");
5
5
  // ─── Constants ──────────────────────────────────────────────────────────────
6
6
  const TOTAL_SUPPLY = 1000000000;
7
7
  const TOTAL_BPS = 10000;
8
- // Project constants
9
- const PROJECT_DEPOSIT_DURATION_MS = 48 * 60 * 60 * 1000; // 48 hours
8
+ const LAUNCHPOOL_DEPOSIT_DURATION_MS = 48 * 60 * 60 * 1000; // 48 hours
10
9
  const RAYDIUM_MIN_BPS = 2000;
11
10
  const DEFAULT_UNLOCKED_BUCKET_NAME = 'Creator Allocation';
12
- // Memecoin constants
13
- const MEMECOIN_DEPOSIT_DURATION_MS = 1 * 60 * 60 * 1000; // 1 hour
14
- const MEMECOIN_ALLOCATION_SUPPLY = 500000000; // 50% of 1B
15
- const MEMECOIN_UNLOCKED_BPS = 100; // 1%
16
- const MEMECOIN_UNLOCKED_SUPPLY = 10000000; // 1% of 1B
17
- const MEMECOIN_RAYDIUM_BPS = 9800; // 98%
18
- const MEMECOIN_RAYDIUM_SUPPLY = 490000000; // 98% of 500M
19
- const MEMECOIN_FEE_BPS = 100; // 1%
20
- const FEE_WALLET = '9kFjQsxtpBsaw8s7aUyiY3wazYDNgFP4Lj5rsBVVF8tb';
21
- const MEMECOIN_MIN_RAISE_GOAL = {
22
- SOL: 50,
23
- USDC: 5000,
24
- };
25
11
  // ─── Quote Mint Resolution ──────────────────────────────────────────────────
26
12
  const USDC_MINTS = {
27
13
  'solana-mainnet': 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
@@ -83,7 +69,7 @@ function validateTokenMetadata(input) {
83
69
  throw (0, errors_1.genesisValidationError)('Token description must be at most 250 characters', 'token.description');
84
70
  }
85
71
  }
86
- function validateProjectInput(input) {
72
+ function validateLaunchpoolInput(input) {
87
73
  validateTokenMetadata(input);
88
74
  const { launchpool, lockedAllocations } = input.launch;
89
75
  if (launchpool.tokenAllocation <= 0) {
@@ -109,9 +95,6 @@ function validateProjectInput(input) {
109
95
  throw (0, errors_1.genesisValidationError)(`Total allocated tokens (${totalAllocated}) exceeds total supply (${TOTAL_SUPPLY})`, 'allocations');
110
96
  }
111
97
  }
112
- function validateMemecoinInput(input) {
113
- validateTokenMetadata(input);
114
- }
115
98
  // ─── Payload Builder ────────────────────────────────────────────────────────
116
99
  function buildCommonPayloadFields(input) {
117
100
  const network = input.network ?? 'solana-mainnet';
@@ -140,14 +123,14 @@ function assemblePayload(input, walletStr, network, quoteMint, allocations) {
140
123
  },
141
124
  };
142
125
  }
143
- function buildProjectPayload(input) {
144
- validateProjectInput(input);
126
+ function buildLaunchpoolPayload(input) {
127
+ validateLaunchpoolInput(input);
145
128
  const { launch } = input;
146
129
  const { launchpool, lockedAllocations } = launch;
147
130
  const { network, quoteMint, walletStr } = buildCommonPayloadFields(input);
148
131
  // ── Launchpool timing ─────────────────────────────────────────────────
149
132
  const depositStartMs = toMs(launchpool.depositStartTime);
150
- const depositEndMs = depositStartMs + PROJECT_DEPOSIT_DURATION_MS;
133
+ const depositEndMs = depositStartMs + LAUNCHPOOL_DEPOSIT_DURATION_MS;
151
134
  const depositStartCondition = timeAbsolute(new Date(depositStartMs));
152
135
  const depositEndCondition = timeAbsolute(new Date(depositEndMs));
153
136
  const claimEndCondition = neverTimeCondition();
@@ -253,88 +236,13 @@ function buildProjectPayload(input) {
253
236
  }
254
237
  return assemblePayload(input, walletStr, network, quoteMint, allocations);
255
238
  }
256
- function buildMemecoinPayload(input) {
257
- validateMemecoinInput(input);
258
- const { launch, wallet } = input;
259
- const { network, quoteMint, walletStr } = buildCommonPayloadFields(input);
260
- // ── Launchpool timing (1 hour deposit window) ─────────────────────────
261
- const depositStartMs = toMs(launch.depositStartTime);
262
- const depositEndMs = depositStartMs + MEMECOIN_DEPOSIT_DURATION_MS;
263
- const depositStartCondition = timeAbsolute(new Date(depositStartMs));
264
- const depositEndCondition = timeAbsolute(new Date(depositEndMs));
265
- const claimEndCondition = neverTimeCondition();
266
- const claimStartCondition = {
267
- type: 'TimeRelativeToUnknownAddress',
268
- bucketType: 'raydiumV2',
269
- bucketIndex: 0,
270
- bucketTime: 'Graduate',
271
- timeOffset: 0,
272
- };
273
- // ── Fund flows (fixed: 1% unlocked, 98% raydium, 1% fees) ────────────
274
- const fundFlows = [
275
- {
276
- type: 'UnlockedFunds',
277
- percentageBps: MEMECOIN_UNLOCKED_BPS,
278
- name: 'Unlocked',
279
- supply: MEMECOIN_UNLOCKED_SUPPLY,
280
- recipient: toKeyString(wallet),
281
- claimStartCondition,
282
- claimEndCondition,
283
- },
284
- {
285
- type: 'RaydiumLP',
286
- percentageBps: MEMECOIN_RAYDIUM_BPS,
287
- name: 'Liquidity Pool',
288
- supply: MEMECOIN_RAYDIUM_SUPPLY,
289
- startCondition: depositEndCondition,
290
- lpLockSchedule: {
291
- enabled: true,
292
- startCondition: { type: 'Never' },
293
- duration: 1,
294
- period: 1,
295
- cliffCondition: { type: 'Never' },
296
- cliffAmountBps: 0,
297
- },
298
- },
299
- {
300
- type: 'UnlockedFees',
301
- percentageBps: MEMECOIN_FEE_BPS,
302
- name: 'Unlocked Fees',
303
- supply: 0,
304
- recipient: FEE_WALLET,
305
- claimStartCondition,
306
- claimEndCondition,
307
- },
308
- ];
309
- // ── Single launchpool allocation (fixed 500M supply) ──────────────────
310
- const allocations = [
311
- {
312
- type: 'launchpoolV2',
313
- name: 'Launchpool',
314
- supply: MEMECOIN_ALLOCATION_SUPPLY,
315
- launchpoolV2: {
316
- depositStartCondition,
317
- depositEndCondition,
318
- claimStartCondition,
319
- claimEndCondition,
320
- minimumQuoteTokenThreshold: MEMECOIN_MIN_RAISE_GOAL[input.quoteMint ?? 'SOL'],
321
- depositBonus: { enabled: false },
322
- withdrawPenalty: { enabled: false },
323
- fundFlows,
324
- },
325
- },
326
- ];
327
- return assemblePayload(input, walletStr, network, quoteMint, allocations);
328
- }
329
239
  /**
330
240
  * Builds the API payload for `/v1/launches/create` from simplified input.
331
241
  */
332
242
  function buildCreateLaunchPayload(input) {
333
243
  switch (input.launchType) {
334
- case 'project':
335
- return buildProjectPayload(input);
336
- case 'memecoin':
337
- return buildMemecoinPayload(input);
244
+ case 'launchpool':
245
+ return buildLaunchpoolPayload(input);
338
246
  default:
339
247
  throw (0, errors_1.genesisValidationError)(`Unsupported launch type: ${input.launchType}`, 'launchType');
340
248
  }
@@ -1 +1 @@
1
- {"version":3,"file":"payloadBuilder.js","sourceRoot":"","sources":["../../../src/api/payloadBuilder.ts"],"names":[],"mappings":";;;AAQA,qCAAkD;AAElD,+EAA+E;AAE/E,MAAM,YAAY,GAAG,UAAa,CAAC;AACnC,MAAM,SAAS,GAAG,KAAM,CAAC;AAEzB,oBAAoB;AACpB,MAAM,2BAA2B,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;AACpE,MAAM,eAAe,GAAG,IAAI,CAAC;AAC7B,MAAM,4BAA4B,GAAG,oBAAoB,CAAC;AAE1D,qBAAqB;AACrB,MAAM,4BAA4B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,SAAS;AAClE,MAAM,0BAA0B,GAAG,SAAW,CAAC,CAAC,YAAY;AAC5D,MAAM,qBAAqB,GAAG,GAAG,CAAC,CAAC,KAAK;AACxC,MAAM,wBAAwB,GAAG,QAAU,CAAC,CAAC,WAAW;AACxD,MAAM,oBAAoB,GAAG,IAAI,CAAC,CAAC,MAAM;AACzC,MAAM,uBAAuB,GAAG,SAAW,CAAC,CAAC,cAAc;AAC3D,MAAM,gBAAgB,GAAG,GAAG,CAAC,CAAC,KAAK;AACnC,MAAM,UAAU,GAAG,8CAA8C,CAAC;AAClE,MAAM,uBAAuB,GAAG;IAC9B,GAAG,EAAE,EAAE;IACP,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,+EAA+E;AAE/E,MAAM,UAAU,GAA+B;IAC7C,gBAAgB,EAAE,8CAA8C;IAChE,eAAe,EAAE,8CAA8C;CACh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ACrC;KACF;IACD,MAAM,eAAe,GAAG,YAAY,GAAG,cAAc,CAAC;IAEtD,IAAI,eAAe,GAAG,CAAC,EAAE;QACvB,WAAW,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,4BAA4B;YAClC,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE;gBACV,SAAS,EAAE,SAAS;gBACpB,mBAAmB;gBACnB,iBAAiB;aAClB;SACF,CAAC,CAAC;KACJ;IAED,OAAO,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAC5E,CAAC;AAED;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAwB;IAC/D,QAAQ,KAAK,CAAC,UAAU,EAAE;QACxB,KAAK,YAAY;YACf,OAAO,sBAAsB,CAAC,KAAK,CAAC,CAAC;QACvC;YACE,MAAM,IAAA,+BAAsB,EAC1B,4BAA6B,KAAgC,CAAC,UAAU,EAAE,EAC1E,YAAY,CACb,CAAC;KACL;AACH,CAAC;AAVD,4DAUC"}
@@ -6,7 +6,7 @@ export type TimeUnit = 'SECOND' | 'MINUTE' | 'HOUR' | 'DAY' | 'WEEK' | 'TWO_WEEK
6
6
  * The SDK resolves friendly names to the correct mint address per network.
7
7
  */
8
8
  export type QuoteMintInput = 'SOL' | 'USDC';
9
- export type CreateLaunchType = 'project' | 'memecoin';
9
+ export type CreateLaunchType = 'launchpool';
10
10
  export interface ExternalLinks {
11
11
  /** Website URL */
12
12
  website?: string;
@@ -81,13 +81,6 @@ export interface LockedAllocation {
81
81
  unlockAmount?: number;
82
82
  };
83
83
  }
84
- export interface MemecoinLaunchInput {
85
- /**
86
- * When the deposit period opens.
87
- * The deposit period lasts exactly 1 hour from this time.
88
- */
89
- depositStartTime: Date | string;
90
- }
91
84
  interface BaseLaunchInput {
92
85
  /** The creator's wallet public key (will sign transactions) */
93
86
  wallet: PublicKey | string;
@@ -102,20 +95,15 @@ interface BaseLaunchInput {
102
95
  */
103
96
  quoteMint?: QuoteMintInput;
104
97
  }
105
- export interface CreateProjectLaunchInput extends BaseLaunchInput {
106
- launchType: 'project';
107
- launch: ProjectLaunchInput;
108
- }
109
- export interface CreateMemecoinLaunchInput extends BaseLaunchInput {
110
- launchType: 'memecoin';
111
- launch: MemecoinLaunchInput;
98
+ export interface CreateLaunchpoolLaunchInput extends BaseLaunchInput {
99
+ launchType: 'launchpool';
100
+ launch: LaunchpoolLaunchInput;
112
101
  }
113
- export type CreateLaunchInput = CreateProjectLaunchInput | CreateMemecoinLaunchInput;
102
+ export type CreateLaunchInput = CreateLaunchpoolLaunchInput;
114
103
  /**
115
- * Simplified input for creating a project launch.
116
- *
104
+ * Input for creating a launchpool launch.
117
105
  */
118
- export interface ProjectLaunchInput {
106
+ export interface LaunchpoolLaunchInput {
119
107
  /** Launchpool (primary sale mechanism) configuration */
120
108
  launchpool: LaunchpoolConfig;
121
109
  /** Optional: locked/vesting token allocations via Streamflow */
@@ -29,6 +29,19 @@ export declare function createTimeRelativeCondition(referenceBucket: PublicKey,
29
29
  * schedules (e.g. LP tokens that should never vest).
30
30
  */
31
31
  export declare function createNeverCondition(): ConditionArgs;
32
+ /**
33
+ * Creates a Triggered condition. The condition starts unmet and is
34
+ * triggered on-chain by program logic when a bucket-specific completion
35
+ * event occurs.
36
+ *
37
+ * Use as a `swapEndCondition` or `depositEndCondition` on bucket types
38
+ * that support triggerable end conditions.
39
+ *
40
+ * For example, when used as a bonding curve `swapEndCondition`, the
41
+ * condition is automatically triggered when all base tokens are
42
+ * purchased (sell-out), allowing graduation via TriggerBehaviorsV2.
43
+ */
44
+ export declare function createTriggeredCondition(): ConditionArgs;
32
45
  /**
33
46
  * Creates a ClaimSchedule with TimeAbsolute conditions.
34
47
  *
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createLinearBpsScheduleV2WithRelativeStart = exports.createLinearBpsScheduleV2WithAbsoluteStart = exports.createNeverClaimSchedule = exports.createClaimSchedule = exports.createNeverCondition = exports.createTimeRelativeCondition = exports.createTimeAbsoluteCondition = exports.isConditionArgs = void 0;
3
+ exports.createLinearBpsScheduleV2WithRelativeStart = exports.createLinearBpsScheduleV2WithAbsoluteStart = exports.createNeverClaimSchedule = exports.createClaimSchedule = exports.createTriggeredCondition = exports.createNeverCondition = exports.createTimeRelativeCondition = exports.createTimeAbsoluteCondition = exports.isConditionArgs = void 0;
4
4
  const schedule_1 = require("./schedule");
5
5
  /**
6
6
  * Type guard to narrow a ConditionArgs to a specific variant.
@@ -59,6 +59,26 @@ function createNeverCondition() {
59
59
  };
60
60
  }
61
61
  exports.createNeverCondition = createNeverCondition;
62
+ /**
63
+ * Creates a Triggered condition. The condition starts unmet and is
64
+ * triggered on-chain by program logic when a bucket-specific completion
65
+ * event occurs.
66
+ *
67
+ * Use as a `swapEndCondition` or `depositEndCondition` on bucket types
68
+ * that support triggerable end conditions.
69
+ *
70
+ * For example, when used as a bonding curve `swapEndCondition`, the
71
+ * condition is automatically triggered when all base tokens are
72
+ * purchased (sell-out), allowing graduation via TriggerBehaviorsV2.
73
+ */
74
+ function createTriggeredCondition() {
75
+ return {
76
+ __kind: 'Triggered',
77
+ padding: Array(55).fill(0),
78
+ triggeredTimestamp: null,
79
+ };
80
+ }
81
+ exports.createTriggeredCondition = createTriggeredCondition;
62
82
  // ---------------------------------------------------------------------------
63
83
  // ClaimSchedule Creators
64
84
  // ---------------------------------------------------------------------------
@@ -1 +1 @@
1
- {"version":3,"file":"conditions.js","sourceRoot":"","sources":["../../src/conditions.ts"],"names":[],"mappings":";;;AAOA,yCAAsE;AAEtE;;;;;GAKG;AACH,SAAgB,eAAe,CAC7B,IAAO,EACP,KAAoB;IAEpB,OAAO,KAAK,CAAC,MAAM,KAAK,IAAI,CAAC;AAC/B,CAAC;AALD,0CAKC;AAED,8EAA8E;AAC9E,qBAAqB;AACrB,8EAA8E;AAE9E;;;GAGG;AACH,SAA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@ -87,8 +87,8 @@ function getBondingCurveBucketV2GpaBuilder(context) {
87
87
  swapEndCondition: [296, (0, types_1.getConditionSerializer)()],
88
88
  reserved: [360, (0, serializers_1.array)((0, serializers_1.u8)(), { size: 128 })],
89
89
  extensions: [488, (0, types_1.getBondingCurveV2ExtensionsSerializer)()],
90
- padding2: [688, (0, serializers_1.array)((0, serializers_1.u8)(), { size: 4 })],
91
- endBehaviors: [692, (0, serializers_1.array)((0, types_1.getBehaviorSerializer)())],
90
+ padding2: [696, (0, serializers_1.array)((0, serializers_1.u8)(), { size: 4 })],
91
+ endBehaviors: [700, (0, serializers_1.array)((0, types_1.getBehaviorSerializer)())],
92
92
  constantProductParams: [
93
93
  null,
94
94
  (0, serializers_1.struct)([
@@ -1272,6 +1272,30 @@ export declare class FirstBuyRestrictedError extends ProgramError {
1272
1272
  readonly code: number;
1273
1273
  constructor(program: Program, cause?: Error);
1274
1274
  }
1275
+ /** FirstBuyAmountMismatch: First buy amount does not match the configured exact amount */
1276
+ export declare class FirstBuyAmountMismatchError extends ProgramError {
1277
+ readonly name: string;
1278
+ readonly code: number;
1279
+ constructor(program: Program, cause?: Error);
1280
+ }
1281
+ /** InvalidFirstBuyConfig: Invalid first buy: buyer cannot be default key and amount must be non-zero */
1282
+ export declare class InvalidFirstBuyConfigError extends ProgramError {
1283
+ readonly name: string;
1284
+ readonly code: number;
1285
+ constructor(program: Program, cause?: Error);
1286
+ }
1287
+ /** InvalidBehaviorType: Invalid behavior type */
1288
+ export declare class InvalidBehaviorTypeError extends ProgramError {
1289
+ readonly name: string;
1290
+ readonly code: number;
1291
+ constructor(program: Program, cause?: Error);
1292
+ }
1293
+ /** MissingFirstBuySigner: FirstBuy extension requires the first_buyer account to be present and sign */
1294
+ export declare class MissingFirstBuySignerError extends ProgramError {
1295
+ readonly name: string;
1296
+ readonly code: number;
1297
+ constructor(program: Program, cause?: Error);
1298
+ }
1275
1299
  /**
1276
1300
  * Attempts to resolve a custom program error from the provided error code.
1277
1301
  * @category Errors
@@ -11,7 +11,7 @@ exports.DepositAlreadyClaimedError = exports.InvalidBucketIndexError = exports.I
11
11
  exports.InvalidAuctionTreeError = exports.BucketPausedError = exports.VaultDepositConsumedError = exports.VaultWithdrawNotAllowedError = exports.InvalidActionsAuthorityError = exports.InvalidOrdinalError = exports.BondingCurveInsufficientFundsError = exports.BondingCurveConstantProductDecreasedError = exports.BondingCurveEndedError = exports.BondingCurveNotStartedError = exports.InvalidConstantProductError = exports.BondingCurveNotEndedError = exports.InsufficientOutputAmountError = exports.InvalidAmountError = exports.VaultEndedError = exports.VaultNotStartedError = exports.VaultNotEndedError = exports.InvalidScheduleTimingError = exports.InsufficientFundsForPenaltyFeeError = exports.InvalidLinearScheduleError = exports.InvalidPenaltyWalletError = exports.FeeTransferFailedError = exports.InvalidFeeOverrideError = exports.InvalidFeeOverrideTypeError = exports.InvalidFeeAuthorityError = exports.InvalidMerkleProofError = exports.PresalePerCooldownDepositLimitExceededError = exports.PresaleDepositCooldownActiveError = exports.PresaleDepositLimitExceededError = exports.InvalidPresaleDepositAmountError = exports.InvalidBackendSignerError = exports.PresaleBucketWithdrawNotAllowedError = exports.PresaleBucketNotEndedError = exports.PresaleBucketAlreadyFundedError = exports.PresaleSaleEndedError = exports.PresaleSaleNotStartedError = exports.DistributionEndedError = exports.InvalidMintForDistributionError = exports.InvalidSolAllocationBpsError = exports.GenesisAccountAlreadyFinalizedError = exports.DistributionNotStartedError = exports.InvalidAtaDerivationError = exports.InflowsMustBeCompletedError = exports.BucketDoesNotSupportFundingError = exports.UnlockedBucketNotInitializedError = exports.StreamflowNotInitializedError = exports.BucketIsNotYetFundedError = exports.InvalidProgramOwnerForBucketError = exports.UnlockedBucketAlreadyClaimedError = exports.InvalidBucketAddressError = void 0;
12
12
  exports.InvalidPrimaryBucketError = exports.InvalidPrimaryBucketOwnerError = exports.DestinationBucketNotFoundError = exports.PresaleClaimEndedError = exports.MissingBackendSignerError = exports.InvalidDepositPdaAccountError = exports.InvalidQuoteTokenAccountOwnerError = exports.InvalidQuoteTokenAccountMintError = exports.InvalidGenesisAccountIndexError = exports.InvalidQuoteMintForGenesisAccountError = exports.InvalidQuoteMintError = exports.InvalidNativeSolMintError = exports.InvalidRaydiumProgramError = exports.InvalidRaydiumBucketSignerError = exports.RaydiumBucketNotFundedError = exports.MissingRaydiumBucketSignerError = exports.RaydiumBucketNotInitializedError = exports.RefundNotClaimedError = exports.TokensNotClaimedError = exports.TokensAlreadyClaimedError = exports.InvalidAuctionCapacityError = exports.LosingBidderCannotRebidError = exports.BidNotWinningError = exports.RefundAlreadyClaimedError = exports.CannotCloseWinningBidError = exports.BidQuantityCannotDecreaseError = exports.BidPriceCannotDecreaseError = exports.BidNotCompetitiveError = exports.BidQuantityExceedsTotalAllocationError = exports.BidQuantityExceedsMaximumError = exports.BidQuantityBelowMinimumError = exports.BidPriceBelowMinimumError = exports.BidQuantityCannotBeZeroError = exports.BidPriceCannotBeZeroError = exports.UnauthorizedBidderError = exports.InvalidBidIndexError = exports.InvalidBucketForAuctionBidError = exports.InvalidAuctionBidPdaDerivationError = exports.InvalidAuctionBidError = exports.AuctionNotEndedError = exports.AuctionEndedError = exports.AuctionNotStartedError = exports.InvalidAuctionExtensionConfigError = exports.MaximumBidQuantityExceedsAllocationError = exports.InvalidMaximumBidQuantityError = exports.InvalidMinimumPriceError = exports.InvalidTokenQuantityBpsError = exports.InvalidBidIncrementError = exports.InvalidTokenAllocationError = exports.InvalidAuctionTreeStateError = void 0;
13
13
  exports.InsufficientUnlockedAmountError = exports.InvalidRemainingAccountsLengthError = exports.InvalidConditionTypeError = exports.InvalidAuthorityDestinationTokenAccountError = exports.MissingAuthorityDestinationTokenAccountError = exports.SupplyBelowAllocatedError = exports.InvalidMintAndBurnError = exports.InvalidMintAuthorityError = exports.InvalidSupplyDeltaError = exports.InvalidStreamflowMetadataAccountError = exports.GraduationNotStartedError = exports.BucketAlreadyGraduatedError = exports.TotalSupplyNotFullyAllocatedError = exports.InvalidStreamflowConfigError = exports.LockEndedError = exports.StreamflowBucketAlreadyLockedError = exports.MissingFinalizeBucketAccountsError = exports.LaunchPoolMissingGraduationBehaviorError = exports.InvalidRaydiumPermissionPdaError = exports.InvalidRaydiumSignerError = exports.InvalidAllocationQuoteTokenCapError = exports.InvalidBaseTokenAllocationError = exports.DepositAlreadyRefundedError = exports.MissingPenaltyQuoteTokenAccountError = exports.BehaviorNotSupportedForBucketTypeError = exports.InvalidMinimumQuoteTokenThresholdError = exports.LaunchPoolThresholdMetError = exports.LaunchPoolFundingThresholdNotMetError = exports.LaunchPoolClaimEndedError = exports.InvalidMetadataAccountError = exports.InvalidTokenAccountProgramOwnerError = exports.BehaviorPercentageOverflowError = exports.PresaleDepositBelowMinimumError = exports.InvalidMinimumDepositAmountError = exports.SourceBucketNotFoundError = exports.PresaleNotFullyClaimedError = exports.BucketDoesNotSupportUnsoldWithdrawalError = exports.InvalidUnsoldWithdrawalAmountError = exports.NoUnsoldTokensError = exports.SaleNotEndedError = exports.ClaimScheduleDurationTooShortError = exports.InvalidClaimScheduleCliffAmountError = exports.InvalidClaimScheduleDurationError = exports.InvalidClaimSchedulePeriodError = exports.InvalidPresaleDepositError = exports.InvalidAuthoritySourceTokenAccountError = exports.MissingAuthoritySourceTokenAccountError = exports.UnlockedBucketClaimEndedError = exports.InvalidFundingModeError = exports.InvalidSecondaryBucketError = void 0;
14
- exports.getGenesisErrorFromName = exports.getGenesisErrorFromCode = exports.FirstBuyRestrictedError = exports.BondingCurveMissingGraduationBehaviorError = exports.InvalidSwapDirectionError = exports.InvalidLaunchTypeError = exports.InvalidRaydiumPoolStateError = exports.InstructionDeprecatedError = exports.InvalidConditionTypeForSlotError = exports.UninitializedConditionError = exports.InvalidRaydiumAmmConfigError = exports.InvalidLpClaimAuthorityError = exports.NoLpTokensToClaimError = void 0;
14
+ exports.getGenesisErrorFromName = exports.getGenesisErrorFromCode = exports.MissingFirstBuySignerError = exports.InvalidBehaviorTypeError = exports.InvalidFirstBuyConfigError = exports.FirstBuyAmountMismatchError = exports.FirstBuyRestrictedError = exports.BondingCurveMissingGraduationBehaviorError = exports.InvalidSwapDirectionError = exports.InvalidLaunchTypeError = exports.InvalidRaydiumPoolStateError = exports.InstructionDeprecatedError = exports.InvalidConditionTypeForSlotError = exports.UninitializedConditionError = exports.InvalidRaydiumAmmConfigError = exports.InvalidLpClaimAuthorityError = exports.NoLpTokensToClaimError = void 0;
15
15
  const umi_1 = require("@metaplex-foundation/umi");
16
16
  const codeToErrorMap = new Map();
17
17
  const nameToErrorMap = new Map();
@@ -2336,6 +2336,50 @@ class FirstBuyRestrictedError extends umi_1.ProgramError {
2336
2336
  exports.FirstBuyRestrictedError = FirstBuyRestrictedError;
2337
2337
  codeToErrorMap.set(0xd2, FirstBuyRestrictedError);
2338
2338
  nameToErrorMap.set('FirstBuyRestricted', FirstBuyRestrictedError);
2339
+ /** FirstBuyAmountMismatch: First buy amount does not match the configured exact amount */
2340
+ class FirstBuyAmountMismatchError extends umi_1.ProgramError {
2341
+ constructor(program, cause) {
2342
+ super('First buy amount does not match the configured exact amount', program, cause);
2343
+ this.name = 'FirstBuyAmountMismatch';
2344
+ this.code = 0xd3; // 211
2345
+ }
2346
+ }
2347
+ exports.FirstBuyAmountMismatchError = FirstBuyAmountMismatchError;
2348
+ codeToErrorMap.set(0xd3, FirstBuyAmountMismatchError);
2349
+ nameToErrorMap.set('FirstBuyAmountMismatch', FirstBuyAmountMismatchError);
2350
+ /** InvalidFirstBuyConfig: Invalid first buy: buyer cannot be default key and amount must be non-zero */
2351
+ class InvalidFirstBuyConfigError extends umi_1.ProgramError {
2352
+ constructor(program, cause) {
2353
+ super('Invalid first buy: buyer cannot be default key and amount must be non-zero', program, cause);
2354
+ this.name = 'InvalidFirstBuyConfig';
2355
+ this.code = 0xd4; // 212
2356
+ }
2357
+ }
2358
+ exports.InvalidFirstBuyConfigError = InvalidFirstBuyConfigError;
2359
+ codeToErrorMap.set(0xd4, InvalidFirstBuyConfigError);
2360
+ nameToErrorMap.set('InvalidFirstBuyConfig', InvalidFirstBuyConfigError);
2361
+ /** InvalidBehaviorType: Invalid behavior type */
2362
+ class InvalidBehaviorTypeError extends umi_1.ProgramError {
2363
+ constructor(program, cause) {
2364
+ super('Invalid behavior type', program, cause);
2365
+ this.name = 'InvalidBehaviorType';
2366
+ this.code = 0xd5; // 213
2367
+ }
2368
+ }
2369
+ exports.InvalidBehaviorTypeError = InvalidBehaviorTypeError;
2370
+ codeToErrorMap.set(0xd5, InvalidBehaviorTypeError);
2371
+ nameToErrorMap.set('InvalidBehaviorType', InvalidBehaviorTypeError);
2372
+ /** MissingFirstBuySigner: FirstBuy extension requires the first_buyer account to be present and sign */
2373
+ class MissingFirstBuySignerError extends umi_1.ProgramError {
2374
+ constructor(program, cause) {
2375
+ super('FirstBuy extension requires the first_buyer account to be present and sign', program, cause);
2376
+ this.name = 'MissingFirstBuySigner';
2377
+ this.code = 0xd6; // 214
2378
+ }
2379
+ }
2380
+ exports.MissingFirstBuySignerError = MissingFirstBuySignerError;
2381
+ codeToErrorMap.set(0xd6, MissingFirstBuySignerError);
2382
+ nameToErrorMap.set('MissingFirstBuySigner', MissingFirstBuySignerError);
2339
2383
  /**
2340
2384
  * Attempts to resolve a custom program error from the provided error code.
2341
2385
  * @category Errors