@metaplex-foundation/genesis 0.38.0 → 0.39.1

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 (49) hide show
  1. package/dist/src/api/payloadBuilder.js +6 -0
  2. package/dist/src/api/payloadBuilder.js.map +1 -1
  3. package/dist/src/api/types.d.ts +7 -0
  4. package/dist/src/conditions.d.ts +17 -0
  5. package/dist/src/conditions.js +26 -1
  6. package/dist/src/conditions.js.map +1 -1
  7. package/dist/src/extensions.d.ts +19 -0
  8. package/dist/src/extensions.js +33 -0
  9. package/dist/src/extensions.js.map +1 -0
  10. package/dist/src/generated/errors/genesis.d.ts +60 -0
  11. package/dist/src/generated/errors/genesis.js +111 -1
  12. package/dist/src/generated/errors/genesis.js.map +1 -1
  13. package/dist/src/generated/instructions/addRaydiumCpmmBucketV2.d.ts +3 -1
  14. package/dist/src/generated/instructions/addRaydiumCpmmBucketV2.js +44 -0
  15. package/dist/src/generated/instructions/addRaydiumCpmmBucketV2.js.map +1 -1
  16. package/dist/src/generated/instructions/index.d.ts +1 -0
  17. package/dist/src/generated/instructions/index.js +1 -0
  18. package/dist/src/generated/instructions/index.js.map +1 -1
  19. package/dist/src/generated/instructions/postponeStartRaydiumCpmmBucketV2.d.ts +32 -0
  20. package/dist/src/generated/instructions/postponeStartRaydiumCpmmBucketV2.js +72 -0
  21. package/dist/src/generated/instructions/postponeStartRaydiumCpmmBucketV2.js.map +1 -0
  22. package/dist/src/generated/types/condition.d.ts +11 -0
  23. package/dist/src/generated/types/condition.js +52 -0
  24. package/dist/src/generated/types/condition.js.map +1 -1
  25. package/dist/src/generated/types/conditionTypes.d.ts +2 -1
  26. package/dist/src/generated/types/conditionTypes.js +1 -0
  27. package/dist/src/generated/types/conditionTypes.js.map +1 -1
  28. package/dist/src/generated/types/index.d.ts +2 -0
  29. package/dist/src/generated/types/index.js +2 -0
  30. package/dist/src/generated/types/index.js.map +1 -1
  31. package/dist/src/generated/types/postponableStart.d.ts +16 -0
  32. package/dist/src/generated/types/postponableStart.js +21 -0
  33. package/dist/src/generated/types/postponableStart.js.map +1 -0
  34. package/dist/src/generated/types/raydiumCpmmV2Extension.d.ts +8 -1
  35. package/dist/src/generated/types/raydiumCpmmV2Extension.js +4 -0
  36. package/dist/src/generated/types/raydiumCpmmV2Extension.js.map +1 -1
  37. package/dist/src/generated/types/raydiumCpmmV2ExtensionType.d.ts +2 -1
  38. package/dist/src/generated/types/raydiumCpmmV2ExtensionType.js +1 -0
  39. package/dist/src/generated/types/raydiumCpmmV2ExtensionType.js.map +1 -1
  40. package/dist/src/generated/types/raydiumCpmmV2Extensions.d.ts +3 -1
  41. package/dist/src/generated/types/raydiumCpmmV2Extensions.js +44 -1
  42. package/dist/src/generated/types/raydiumCpmmV2Extensions.js.map +1 -1
  43. package/dist/src/generated/types/triggeredWithExpiryCondition.d.ts +23 -0
  44. package/dist/src/generated/types/triggeredWithExpiryCondition.js +67 -0
  45. package/dist/src/generated/types/triggeredWithExpiryCondition.js.map +1 -0
  46. package/dist/src/index.d.ts +1 -0
  47. package/dist/src/index.js +1 -0
  48. package/dist/src/index.js.map +1 -1
  49. package/package.json +1 -1
@@ -144,6 +144,9 @@ function validateLaunchpoolInput(input) {
144
144
  launchpool.raydiumLiquidityBps > TOTAL_BPS) {
145
145
  throw (0, errors_1.genesisValidationError)(`Raydium liquidity must be between ${RAYDIUM_MIN_BPS} and ${TOTAL_BPS} basis points`, 'launchpool.raydiumLiquidityBps');
146
146
  }
147
+ if (launchpool.softCap !== undefined && launchpool.softCap <= 0) {
148
+ throw (0, errors_1.genesisValidationError)('Your soft cap needs to be more than 0', 'launchpool.softCap');
149
+ }
147
150
  let totalAllocated = launchpool.tokenAllocation;
148
151
  if (lockedAllocations) {
149
152
  for (const alloc of lockedAllocations) {
@@ -252,6 +255,9 @@ function buildLaunchpoolPayload(input) {
252
255
  claimStartCondition,
253
256
  claimEndCondition,
254
257
  minimumQuoteTokenThreshold: launchpool.raiseGoal,
258
+ softCap: launchpool.softCap !== undefined
259
+ ? { enabled: true, amount: launchpool.softCap }
260
+ : { enabled: false },
255
261
  depositBonus: LAUNCHPOOL_DEPOSIT_BONUS,
256
262
  withdrawPenalty: LAUNCHPOOL_WITHDRAW_PENALTY,
257
263
  fundFlows,
@@ -1 +1 @@
1
- {"version":3,"file":"payloadBuilder.js","sourceRoot":"","sources":["../../../src/api/payloadBuilder.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,kDAAqD;AACrD,0BAAsC;AACtC,qCAAkD;AAWlD,+EAA+E;AAE/E,MAAM,YAAY,GAAG,UAAa,CAAC;AACnC,MAAM,SAAS,GAAG,KAAM,CAAC;AACzB,MAAM,QAAQ,GAAG,CAAC,CAAC;AAEnB,MAAM,8BAA8B,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;AAEvE,MAAM,eAAe,GAAG,IAAI,CAAC;AAC7B,MAAM,4BAA4B,GAAG,oBAAoB,CAAC;AAE1D,+EAA+E;AAE/E,MAAM,aAAa,GAAG,gBAAoB,CAAC;AAC3C,MAAM,wBAAwB,GAAG,gBAAoB,CAAC;AACtD,MAAM,0BAA0B,GAAG,gBAAoB,CAAC;AACxD,MAAM,sBAAsB,GAAG,kBAAkB,CAC/C,0BAA0B,EAC1B,QAAQ,CACT,CAAC;AACF,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,4BAA4B,GAAG,KAAM,CAAC;AAE5C,+EAA+E;AAE/E,MAAM,wBAAwB,GAAG;IAC/B,OAAO,EAAE,IAAa;IACtB,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,CAAC;IACZ,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,MAAM,2BAA2B,GAAG;IAClC,OAAO,EAAE,IAAa;IACtB,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,CAAC;IACZ,aAAa,EA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kE;wBAClE,+CAA+C;wBAC/C,cAAc,EAAE;4BACd,OAAO,EAAE,IAAa;4BACtB,cAAc,EAAE,EAAE,IAAI,EAAE,OAAgB,EAAE;4BAC1C,QAAQ,EAAE,CAAC;4BACX,MAAM,EAAE,CAAC;4BACT,cAAc,EAAE,EAAE,IAAI,EAAE,OAAgB,EAAE;4BAC1C,cAAc,EAAE,CAAC;yBAClB;wBACD,UAAU,EAAE;4BACV,OAAO,EAAE,IAAI;4BACb,MAAM,EAAE,gBAAgB,IAAI,KAAK,CAAC,WAAW,IAAI,SAAS;yBAC3D;qBACF;iBACF;aACF;SACF;KACF,CAAC;IAEF,OAAO,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AAC5E,CAAC;AAED;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,KAAwB;IAC/D,QAAQ,KAAK,CAAC,UAAU,EAAE;QACxB,KAAK,YAAY;YACf,OAAO,sBAAsB,CAAC,KAAK,CAAC,CAAC;QACvC,KAAK,cAAc;YACjB,OAAO,wBAAwB,CAAC,KAAK,CAAC,CAAC;QACzC;YACE,MAAM,IAAA,+BAAsB,EAC1B,4BAA6B,KAAgC,CAAC,UAAU,EAAE,EAC1E,YAAY,CACb,CAAC;KACL;AACH,CAAC;AAZD,4DAYC"}
@@ -53,6 +53,13 @@ export interface LaunchpoolConfig {
53
53
  * Wallet address that receives the unlocked portion of raised funds.
54
54
  */
55
55
  fundsRecipient: PublicKey | string;
56
+ /**
57
+ * Optional soft cap: a ceiling on the total quote tokens raised. When set and
58
+ * total deposits exceed the cap, the launch succeeds and the excess quote is
59
+ * returned to depositors pro-rata. Specified in whole units (e.g., 200 means 200 SOL,
60
+ * 25000 means 25000 USDC) and must be greater than 0. Omit to disable the soft cap.
61
+ */
62
+ softCap?: number;
56
63
  }
57
64
  /**
58
65
  * Cliff unlock amount configuration.
@@ -42,6 +42,23 @@ export declare function createNeverCondition(): ConditionArgs;
42
42
  * purchased (sell-out), allowing graduation via TriggerBehaviorsV2.
43
43
  */
44
44
  export declare function createTriggeredCondition(): ConditionArgs;
45
+ /**
46
+ * Creates a TriggeredWithExpiry condition. Behaves like `Triggered` — the
47
+ * program can fire it early (e.g. on a presale sell-out) — but with a hard
48
+ * deadline: past `expiryTime` it behaves like `TimeAbsolute`, and cranking it
49
+ * (via `TriggerConditionsV2` or any deposit/claim) sets the triggered
50
+ * timestamp to exactly `expiryTime`.
51
+ *
52
+ * Use as a `depositEndCondition` (presale) or `swapEndCondition` (bonding
53
+ * curve): the sale ends at sell-out or at the expiry, whichever comes first.
54
+ * Unlike `Triggered`, the sale end is always bounded, so the postponable-start
55
+ * extension can validate postponements against `expiryTime` before the sale
56
+ * ends.
57
+ *
58
+ * @param expiryTime - Unix timestamp (seconds) at which the condition
59
+ * triggers unconditionally. Must be > 0 and < i64::MAX.
60
+ */
61
+ export declare function createTriggeredWithExpiryCondition(expiryTime: bigint): ConditionArgs;
45
62
  /**
46
63
  * Creates a ClaimSchedule with TimeAbsolute conditions.
47
64
  *
@@ -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.createTriggeredCondition = exports.createNeverCondition = exports.createTimeRelativeCondition = exports.createTimeAbsoluteCondition = exports.isConditionArgs = void 0;
3
+ exports.createLinearBpsScheduleV2WithRelativeStart = exports.createLinearBpsScheduleV2WithAbsoluteStart = exports.createNeverClaimSchedule = exports.createClaimSchedule = exports.createTriggeredWithExpiryCondition = 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.
@@ -79,6 +79,31 @@ function createTriggeredCondition() {
79
79
  };
80
80
  }
81
81
  exports.createTriggeredCondition = createTriggeredCondition;
82
+ /**
83
+ * Creates a TriggeredWithExpiry condition. Behaves like `Triggered` — the
84
+ * program can fire it early (e.g. on a presale sell-out) — but with a hard
85
+ * deadline: past `expiryTime` it behaves like `TimeAbsolute`, and cranking it
86
+ * (via `TriggerConditionsV2` or any deposit/claim) sets the triggered
87
+ * timestamp to exactly `expiryTime`.
88
+ *
89
+ * Use as a `depositEndCondition` (presale) or `swapEndCondition` (bonding
90
+ * curve): the sale ends at sell-out or at the expiry, whichever comes first.
91
+ * Unlike `Triggered`, the sale end is always bounded, so the postponable-start
92
+ * extension can validate postponements against `expiryTime` before the sale
93
+ * ends.
94
+ *
95
+ * @param expiryTime - Unix timestamp (seconds) at which the condition
96
+ * triggers unconditionally. Must be > 0 and < i64::MAX.
97
+ */
98
+ function createTriggeredWithExpiryCondition(expiryTime) {
99
+ return {
100
+ __kind: 'TriggeredWithExpiry',
101
+ padding: Array(47).fill(0),
102
+ expiryTime,
103
+ triggeredTimestamp: null,
104
+ };
105
+ }
106
+ exports.createTriggeredWithExpiryCondition = createTriggeredWithExpiryCondition;
82
107
  // ---------------------------------------------------------------------------
83
108
  // ClaimSchedule Creators
84
109
  // ---------------------------------------------------------------------------
@@ -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,SAAgB,2BAA2B,CAAC,IAAY;IACtD,OAAO;QACL,MAAM,EAAE,cAAc;QACtB,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1B,IAAI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,MAQ1D;IACC,OAAO,IAAA,oCAAyB,EAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAC7D,cAAc,EAAE,2BAA2B,CACzC,MAAM,CAAC,eAAe,EACtB,MAAM,CAAC,UAAU,EACjB,MAAM,CAAC,UAAU,CAClB;QACD,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,CAAC;AACL,CAAC;AAlBD,gGAkBC"}
@@ -0,0 +1,19 @@
1
+ import { RaydiumCpmmV2ExtensionArgs } from './generated';
2
+ /** Default max number of times a graduation start may be postponed. */
3
+ export declare const DEFAULT_POSTPONE_MAX_POSTPONES = 1;
4
+ /** The default delay budget: a 30-day window. */
5
+ export declare const DEFAULT_POSTPONE_DELAY_BUDGET_SECONDS: number;
6
+ /**
7
+ * Creates a PostponableStart extension init value — grants a graduation
8
+ * (Raydium CPMM) bucket the ability to have its start condition postponed
9
+ * on-chain, up to `maxPostpones` times and within `delayBudgetSeconds` total,
10
+ * via `postponeStartRaydiumCpmmBucketV2`.
11
+ *
12
+ * @param options.maxPostpones - Max number of postpones allowed (default {@link DEFAULT_POSTPONE_MAX_POSTPONES})
13
+ * @param options.delayBudgetSeconds - Total seconds of delay budget available across all postpones
14
+ * (default {@link DEFAULT_POSTPONE_DELAY_BUDGET_SECONDS})
15
+ */
16
+ export declare function createPostponableStart(options?: {
17
+ maxPostpones?: number;
18
+ delayBudgetSeconds?: number;
19
+ }): RaydiumCpmmV2ExtensionArgs;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPostponableStart = exports.DEFAULT_POSTPONE_DELAY_BUDGET_SECONDS = exports.DEFAULT_POSTPONE_MAX_POSTPONES = void 0;
4
+ // ---------------------------------------------------------------------------
5
+ // Raydium CPMM V2 Extension Creators
6
+ // ---------------------------------------------------------------------------
7
+ /** Default max number of times a graduation start may be postponed. */
8
+ exports.DEFAULT_POSTPONE_MAX_POSTPONES = 1;
9
+ /** The default delay budget: a 30-day window. */
10
+ exports.DEFAULT_POSTPONE_DELAY_BUDGET_SECONDS = 30 * 24 * 60 * 60;
11
+ /**
12
+ * Creates a PostponableStart extension init value — grants a graduation
13
+ * (Raydium CPMM) bucket the ability to have its start condition postponed
14
+ * on-chain, up to `maxPostpones` times and within `delayBudgetSeconds` total,
15
+ * via `postponeStartRaydiumCpmmBucketV2`.
16
+ *
17
+ * @param options.maxPostpones - Max number of postpones allowed (default {@link DEFAULT_POSTPONE_MAX_POSTPONES})
18
+ * @param options.delayBudgetSeconds - Total seconds of delay budget available across all postpones
19
+ * (default {@link DEFAULT_POSTPONE_DELAY_BUDGET_SECONDS})
20
+ */
21
+ function createPostponableStart(options) {
22
+ return {
23
+ __kind: 'PostponableStart',
24
+ postponableStart: {
25
+ maxPostpones: options?.maxPostpones ?? exports.DEFAULT_POSTPONE_MAX_POSTPONES,
26
+ timesPostponed: 0,
27
+ padding: [0, 0],
28
+ delayBudgetSeconds: options?.delayBudgetSeconds ?? exports.DEFAULT_POSTPONE_DELAY_BUDGET_SECONDS,
29
+ },
30
+ };
31
+ }
32
+ exports.createPostponableStart = createPostponableStart;
33
+ //# sourceMappingURL=extensions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../src/extensions.ts"],"names":[],"mappings":";;;AAEA,8EAA8E;AAC9E,qCAAqC;AACrC,8EAA8E;AAE9E,uEAAuE;AAC1D,QAAA,8BAA8B,GAAG,CAAC,CAAC;AAEhD,iDAAiD;AACpC,QAAA,qCAAqC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEvE;;;;;;;;;GASG;AACH,SAAgB,sBAAsB,CAAC,OAGtC;IACC,OAAO;QACL,MAAM,EAAE,kBAAkB;QAC1B,gBAAgB,EAAE;YAChB,YAAY,EAAE,OAAO,EAAE,YAAY,IAAI,sCAA8B;YACrE,cAAc,EAAE,CAAC;YACjB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;YACf,kBAAkB,EAChB,OAAO,EAAE,kBAAkB,IAAI,6CAAqC;SACvE;KACF,CAAC;AACJ,CAAC;AAdD,wDAcC"}
@@ -1344,6 +1344,66 @@ export declare class SoftCapBelowThresholdError extends ProgramError {
1344
1344
  readonly code: number;
1345
1345
  constructor(program: Program, cause?: Error);
1346
1346
  }
1347
+ /** BucketAlreadyStored: This bucket's inflows have already been stored; the settlement cannot be replayed */
1348
+ export declare class BucketAlreadyStoredError extends ProgramError {
1349
+ readonly name: string;
1350
+ readonly code: number;
1351
+ constructor(program: Program, cause?: Error);
1352
+ }
1353
+ /** InvalidGraduationDelay: The scheduled graduation delay exceeds the launch's configured maximum window after the sale ends */
1354
+ export declare class InvalidGraduationDelayError extends ProgramError {
1355
+ readonly name: string;
1356
+ readonly code: number;
1357
+ constructor(program: Program, cause?: Error);
1358
+ }
1359
+ /** PostponeLimitReached: The graduation has already been postponed the maximum number of times */
1360
+ export declare class PostponeLimitReachedError extends ProgramError {
1361
+ readonly name: string;
1362
+ readonly code: number;
1363
+ constructor(program: Program, cause?: Error);
1364
+ }
1365
+ /** PostponeNotLater: The new graduation must be strictly later than the currently scheduled graduation */
1366
+ export declare class PostponeNotLaterError extends ProgramError {
1367
+ readonly name: string;
1368
+ readonly code: number;
1369
+ constructor(program: Program, cause?: Error);
1370
+ }
1371
+ /** PostponeExceedsMaxDelay: The new graduation must stay within the launch's configured maximum delay after the sale ends */
1372
+ export declare class PostponeExceedsMaxDelayError extends ProgramError {
1373
+ readonly name: string;
1374
+ readonly code: number;
1375
+ constructor(program: Program, cause?: Error);
1376
+ }
1377
+ /** PostponeTooLate: Postponement must happen no later than 30 minutes before the scheduled graduation */
1378
+ export declare class PostponeTooLateError extends ProgramError {
1379
+ readonly name: string;
1380
+ readonly code: number;
1381
+ constructor(program: Program, cause?: Error);
1382
+ }
1383
+ /** PostponeTooSoon: The new graduation must be at least 24 hours from now (or 24 hours after the current graduation while the sale is ongoing) */
1384
+ export declare class PostponeTooSoonError extends ProgramError {
1385
+ readonly name: string;
1386
+ readonly code: number;
1387
+ constructor(program: Program, cause?: Error);
1388
+ }
1389
+ /** InvalidPostponeUpdate: Invalid postpone: the bucket's start condition is not a postponable delayed graduation */
1390
+ export declare class InvalidPostponeUpdateError extends ProgramError {
1391
+ readonly name: string;
1392
+ readonly code: number;
1393
+ constructor(program: Program, cause?: Error);
1394
+ }
1395
+ /** BucketNotPostponable: The bucket has no postpone policy and cannot be postponed */
1396
+ export declare class BucketNotPostponableError extends ProgramError {
1397
+ readonly name: string;
1398
+ readonly code: number;
1399
+ constructor(program: Program, cause?: Error);
1400
+ }
1401
+ /** InvalidConditionExpiry: Invalid expiry for a TriggeredWithExpiry condition */
1402
+ export declare class InvalidConditionExpiryError extends ProgramError {
1403
+ readonly name: string;
1404
+ readonly code: number;
1405
+ constructor(program: Program, cause?: Error);
1406
+ }
1347
1407
  /**
1348
1408
  * Attempts to resolve a custom program error from the provided error code.
1349
1409
  * @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.SoftCapBelowThresholdError = exports.InvalidSoftCapError = exports.InvalidTransientAccountStateError = exports.InvalidPoolStatePdaError = exports.InvalidCreatorFeeWalletError = exports.MissingCreatorFeeAccountError = exports.InvalidCreatorFeeConfigError = exports.SwapAmountBelowMinimumError = 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;
14
+ exports.getGenesisErrorFromName = exports.getGenesisErrorFromCode = exports.InvalidConditionExpiryError = exports.BucketNotPostponableError = exports.InvalidPostponeUpdateError = exports.PostponeTooSoonError = exports.PostponeTooLateError = exports.PostponeExceedsMaxDelayError = exports.PostponeNotLaterError = exports.PostponeLimitReachedError = exports.InvalidGraduationDelayError = exports.BucketAlreadyStoredError = exports.SoftCapBelowThresholdError = exports.InvalidSoftCapError = exports.InvalidTransientAccountStateError = exports.InvalidPoolStatePdaError = exports.InvalidCreatorFeeWalletError = exports.MissingCreatorFeeAccountError = exports.InvalidCreatorFeeConfigError = exports.SwapAmountBelowMinimumError = 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();
@@ -2468,6 +2468,116 @@ class SoftCapBelowThresholdError extends umi_1.ProgramError {
2468
2468
  exports.SoftCapBelowThresholdError = SoftCapBelowThresholdError;
2469
2469
  codeToErrorMap.set(0xde, SoftCapBelowThresholdError);
2470
2470
  nameToErrorMap.set('SoftCapBelowThreshold', SoftCapBelowThresholdError);
2471
+ /** BucketAlreadyStored: This bucket's inflows have already been stored; the settlement cannot be replayed */
2472
+ class BucketAlreadyStoredError extends umi_1.ProgramError {
2473
+ constructor(program, cause) {
2474
+ super("This bucket's inflows have already been stored; the settlement cannot be replayed", program, cause);
2475
+ this.name = 'BucketAlreadyStored';
2476
+ this.code = 0xdf; // 223
2477
+ }
2478
+ }
2479
+ exports.BucketAlreadyStoredError = BucketAlreadyStoredError;
2480
+ codeToErrorMap.set(0xdf, BucketAlreadyStoredError);
2481
+ nameToErrorMap.set('BucketAlreadyStored', BucketAlreadyStoredError);
2482
+ /** InvalidGraduationDelay: The scheduled graduation delay exceeds the launch's configured maximum window after the sale ends */
2483
+ class InvalidGraduationDelayError extends umi_1.ProgramError {
2484
+ constructor(program, cause) {
2485
+ super("The scheduled graduation delay exceeds the launch's configured maximum window after the sale ends", program, cause);
2486
+ this.name = 'InvalidGraduationDelay';
2487
+ this.code = 0xe0; // 224
2488
+ }
2489
+ }
2490
+ exports.InvalidGraduationDelayError = InvalidGraduationDelayError;
2491
+ codeToErrorMap.set(0xe0, InvalidGraduationDelayError);
2492
+ nameToErrorMap.set('InvalidGraduationDelay', InvalidGraduationDelayError);
2493
+ /** PostponeLimitReached: The graduation has already been postponed the maximum number of times */
2494
+ class PostponeLimitReachedError extends umi_1.ProgramError {
2495
+ constructor(program, cause) {
2496
+ super('The graduation has already been postponed the maximum number of times', program, cause);
2497
+ this.name = 'PostponeLimitReached';
2498
+ this.code = 0xe1; // 225
2499
+ }
2500
+ }
2501
+ exports.PostponeLimitReachedError = PostponeLimitReachedError;
2502
+ codeToErrorMap.set(0xe1, PostponeLimitReachedError);
2503
+ nameToErrorMap.set('PostponeLimitReached', PostponeLimitReachedError);
2504
+ /** PostponeNotLater: The new graduation must be strictly later than the currently scheduled graduation */
2505
+ class PostponeNotLaterError extends umi_1.ProgramError {
2506
+ constructor(program, cause) {
2507
+ super('The new graduation must be strictly later than the currently scheduled graduation', program, cause);
2508
+ this.name = 'PostponeNotLater';
2509
+ this.code = 0xe2; // 226
2510
+ }
2511
+ }
2512
+ exports.PostponeNotLaterError = PostponeNotLaterError;
2513
+ codeToErrorMap.set(0xe2, PostponeNotLaterError);
2514
+ nameToErrorMap.set('PostponeNotLater', PostponeNotLaterError);
2515
+ /** PostponeExceedsMaxDelay: The new graduation must stay within the launch's configured maximum delay after the sale ends */
2516
+ class PostponeExceedsMaxDelayError extends umi_1.ProgramError {
2517
+ constructor(program, cause) {
2518
+ super("The new graduation must stay within the launch's configured maximum delay after the sale ends", program, cause);
2519
+ this.name = 'PostponeExceedsMaxDelay';
2520
+ this.code = 0xe3; // 227
2521
+ }
2522
+ }
2523
+ exports.PostponeExceedsMaxDelayError = PostponeExceedsMaxDelayError;
2524
+ codeToErrorMap.set(0xe3, PostponeExceedsMaxDelayError);
2525
+ nameToErrorMap.set('PostponeExceedsMaxDelay', PostponeExceedsMaxDelayError);
2526
+ /** PostponeTooLate: Postponement must happen no later than 30 minutes before the scheduled graduation */
2527
+ class PostponeTooLateError extends umi_1.ProgramError {
2528
+ constructor(program, cause) {
2529
+ super('Postponement must happen no later than 30 minutes before the scheduled graduation', program, cause);
2530
+ this.name = 'PostponeTooLate';
2531
+ this.code = 0xe4; // 228
2532
+ }
2533
+ }
2534
+ exports.PostponeTooLateError = PostponeTooLateError;
2535
+ codeToErrorMap.set(0xe4, PostponeTooLateError);
2536
+ nameToErrorMap.set('PostponeTooLate', PostponeTooLateError);
2537
+ /** PostponeTooSoon: The new graduation must be at least 24 hours from now (or 24 hours after the current graduation while the sale is ongoing) */
2538
+ class PostponeTooSoonError extends umi_1.ProgramError {
2539
+ constructor(program, cause) {
2540
+ super('The new graduation must be at least 24 hours from now (or 24 hours after the current graduation while the sale is ongoing)', program, cause);
2541
+ this.name = 'PostponeTooSoon';
2542
+ this.code = 0xe5; // 229
2543
+ }
2544
+ }
2545
+ exports.PostponeTooSoonError = PostponeTooSoonError;
2546
+ codeToErrorMap.set(0xe5, PostponeTooSoonError);
2547
+ nameToErrorMap.set('PostponeTooSoon', PostponeTooSoonError);
2548
+ /** InvalidPostponeUpdate: Invalid postpone: the bucket's start condition is not a postponable delayed graduation */
2549
+ class InvalidPostponeUpdateError extends umi_1.ProgramError {
2550
+ constructor(program, cause) {
2551
+ super("Invalid postpone: the bucket's start condition is not a postponable delayed graduation", program, cause);
2552
+ this.name = 'InvalidPostponeUpdate';
2553
+ this.code = 0xe6; // 230
2554
+ }
2555
+ }
2556
+ exports.InvalidPostponeUpdateError = InvalidPostponeUpdateError;
2557
+ codeToErrorMap.set(0xe6, InvalidPostponeUpdateError);
2558
+ nameToErrorMap.set('InvalidPostponeUpdate', InvalidPostponeUpdateError);
2559
+ /** BucketNotPostponable: The bucket has no postpone policy and cannot be postponed */
2560
+ class BucketNotPostponableError extends umi_1.ProgramError {
2561
+ constructor(program, cause) {
2562
+ super('The bucket has no postpone policy and cannot be postponed', program, cause);
2563
+ this.name = 'BucketNotPostponable';
2564
+ this.code = 0xe7; // 231
2565
+ }
2566
+ }
2567
+ exports.BucketNotPostponableError = BucketNotPostponableError;
2568
+ codeToErrorMap.set(0xe7, BucketNotPostponableError);
2569
+ nameToErrorMap.set('BucketNotPostponable', BucketNotPostponableError);
2570
+ /** InvalidConditionExpiry: Invalid expiry for a TriggeredWithExpiry condition */
2571
+ class InvalidConditionExpiryError extends umi_1.ProgramError {
2572
+ constructor(program, cause) {
2573
+ super('Invalid expiry for a TriggeredWithExpiry condition', program, cause);
2574
+ this.name = 'InvalidConditionExpiry';
2575
+ this.code = 0xe8; // 232
2576
+ }
2577
+ }
2578
+ exports.InvalidConditionExpiryError = InvalidConditionExpiryError;
2579
+ codeToErrorMap.set(0xe8, InvalidConditionExpiryError);
2580
+ nameToErrorMap.set('InvalidConditionExpiry', InvalidConditionExpiryError);
2471
2581
  /**
2472
2582
  * Attempts to resolve a custom program error from the provided error code.
2473
2583
  * @category Errors