proof-of-take-sdk 4.0.0 → 5.0.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.
@@ -314,7 +314,7 @@
314
314
  {
315
315
  "name": "moonpool",
316
316
  "docs": [
317
- "Global Moonpool PDA (required when `season.launchpad == true`).",
317
+ "Global Moonpool PDA (required when `season.is_moonpool()`).",
318
318
  "The Moonpool is the Moon's seesaw for buying and selling stars (virtual tokens).",
319
319
  "Shared across all seasons for this token mint."
320
320
  ],
@@ -667,7 +667,7 @@
667
667
  {
668
668
  "name": "moonpool",
669
669
  "docs": [
670
- "Global Moonpool PDA (required when `season.launchpad == true`).",
670
+ "Global Moonpool PDA (required when `season.is_moonpool()`).",
671
671
  "The Moonpool is the Moon's seesaw for buying and selling stars (virtual tokens).",
672
672
  "Shared across all seasons for this token mint."
673
673
  ],
@@ -1096,7 +1096,7 @@
1096
1096
  {
1097
1097
  "name": "moonpool",
1098
1098
  "docs": [
1099
- "Global Moonpool PDA (required when `season.launchpad == true`).",
1099
+ "Global Moonpool PDA (required when `season.is_moonpool()`).",
1100
1100
  "The Moonpool is the Moon's seesaw for buying and selling stars (virtual tokens).",
1101
1101
  "Shared across all seasons for this token mint."
1102
1102
  ],
@@ -3570,6 +3570,10 @@
3570
3570
  {
3571
3571
  "name": "star_flag_prompt",
3572
3572
  "type": "string"
3573
+ },
3574
+ {
3575
+ "name": "symbol",
3576
+ "type": "string"
3573
3577
  }
3574
3578
  ]
3575
3579
  },
@@ -5695,76 +5699,86 @@
5695
5699
  },
5696
5700
  {
5697
5701
  "code": 6061,
5702
+ "name": "SymbolTooLong",
5703
+ "msg": "Symbol cannot be longer than 4 characters"
5704
+ },
5705
+ {
5706
+ "code": 6062,
5707
+ "name": "SymbolRequired",
5708
+ "msg": "Symbol is required when initializing a new pool"
5709
+ },
5710
+ {
5711
+ "code": 6063,
5698
5712
  "name": "InvalidUserJoinCreditOwner",
5699
5713
  "msg": "Invalid user join credit owner"
5700
5714
  },
5701
5715
  {
5702
- "code": 6062,
5716
+ "code": 6064,
5703
5717
  "name": "JoinCreditPendingSeasonMismatch",
5704
5718
  "msg": "Pending join credit is locked for a different season than expected"
5705
5719
  },
5706
5720
  {
5707
- "code": 6063,
5721
+ "code": 6065,
5708
5722
  "name": "MissingLaunchpadPoolAccount",
5709
5723
  "msg": "Missing required launchpad pool account"
5710
5724
  },
5711
5725
  {
5712
- "code": 6064,
5726
+ "code": 6066,
5713
5727
  "name": "MissingLaunchpadTreasuryAccount",
5714
5728
  "msg": "Missing required launchpad treasury account"
5715
5729
  },
5716
5730
  {
5717
- "code": 6065,
5731
+ "code": 6067,
5718
5732
  "name": "LaunchpadModeMismatch",
5719
5733
  "msg": "Launchpad mode mismatch (season launchpad flag does not match instruction argument)"
5720
5734
  },
5721
5735
  {
5722
- "code": 6066,
5736
+ "code": 6068,
5723
5737
  "name": "InsufficientLaunchpadTokenReserve",
5724
5738
  "msg": "Insufficient launchpad token reserve in pool"
5725
5739
  },
5726
5740
  {
5727
- "code": 6067,
5741
+ "code": 6069,
5728
5742
  "name": "InsufficientLaunchpadTokenEscrow",
5729
5743
  "msg": "Insufficient launchpad token escrow balance"
5730
5744
  },
5731
5745
  {
5732
- "code": 6068,
5746
+ "code": 6070,
5733
5747
  "name": "LaunchpadMaxSolExceeded",
5734
5748
  "msg": "Launchpad buy exceeds max SOL input (slippage)"
5735
5749
  },
5736
5750
  {
5737
- "code": 6069,
5751
+ "code": 6071,
5738
5752
  "name": "MissingRequiredAccount",
5739
5753
  "msg": "Missing required account for this mode"
5740
5754
  },
5741
5755
  {
5742
- "code": 6070,
5756
+ "code": 6072,
5743
5757
  "name": "UnexpectedAccountForMode",
5744
5758
  "msg": "Unexpected account provided for this mode"
5745
5759
  },
5746
5760
  {
5747
- "code": 6071,
5761
+ "code": 6073,
5748
5762
  "name": "LaunchpadModeRequired",
5749
5763
  "msg": "Launchpad mode is required: launchpad pool is already initialized"
5750
5764
  },
5751
5765
  {
5752
- "code": 6072,
5766
+ "code": 6074,
5753
5767
  "name": "ClassicModeRequired",
5754
5768
  "msg": "Classic mode is required: sunpool is already initialized"
5755
5769
  },
5756
5770
  {
5757
- "code": 6073,
5771
+ "code": 6075,
5758
5772
  "name": "InvariantViolation",
5759
5773
  "msg": "AMM invariant violation: k decreased after trade (this should never happen)"
5760
5774
  },
5761
5775
  {
5762
- "code": 6074,
5776
+ "code": 6076,
5763
5777
  "name": "InvalidLaunchpadTokenMint",
5764
5778
  "msg": "Invalid launchpad token mint: does not match the stored mint in Moonpool"
5765
5779
  },
5766
5780
  {
5767
- "code": 6075,
5781
+ "code": 6077,
5768
5782
  "name": "InvalidSunpoolTokenMint",
5769
5783
  "msg": "Invalid sunpool token mint: does not match the stored mint in Sunpool"
5770
5784
  }
@@ -6502,6 +6516,38 @@
6502
6516
  "Unix timestamp when the Moonpool was initialized."
6503
6517
  ],
6504
6518
  "type": "i64"
6519
+ },
6520
+ {
6521
+ "name": "star_flag_prompt",
6522
+ "docs": [
6523
+ "Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.",
6524
+ "Example: \"Show your star to the Moon!\""
6525
+ ],
6526
+ "type": "string"
6527
+ },
6528
+ {
6529
+ "name": "symbol",
6530
+ "docs": [
6531
+ "Token symbol (max 4 chars, e.g., \"MOON\", \"SOL\")."
6532
+ ],
6533
+ "type": "string"
6534
+ }
6535
+ ]
6536
+ }
6537
+ },
6538
+ {
6539
+ "name": "PoolType",
6540
+ "type": {
6541
+ "kind": "enum",
6542
+ "variants": [
6543
+ {
6544
+ "name": "Uninitialized"
6545
+ },
6546
+ {
6547
+ "name": "Sunpool"
6548
+ },
6549
+ {
6550
+ "name": "Moonpool"
6505
6551
  }
6506
6552
  ]
6507
6553
  }
@@ -6947,22 +6993,23 @@
6947
6993
  "type": "u64"
6948
6994
  },
6949
6995
  {
6950
- "name": "launchpad",
6996
+ "name": "pool_type",
6951
6997
  "docs": [
6952
- "Launchpad mode flag.",
6998
+ "Pool type for this season.",
6953
6999
  "",
6954
- "If true, this season uses a SOL↔virtual-token launchpad pool and claim flows pay SOL by",
6955
- "selling escrowed virtual tokens. No SPL \"season token\" is minted or transferred."
6956
- ],
6957
- "type": "bool"
6958
- },
6959
- {
6960
- "name": "star_flag_prompt",
6961
- "docs": [
6962
- "Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.",
6963
- "Example: \"Show your star to the Moon!\""
7000
+ "- Uninitialized: Season not yet configured with a pool type",
7001
+ "- Sunpool: Classic mode with SPL token transfers (non-launchpad)",
7002
+ "- Moonpool: Launchpad mode with SOL↔virtual-token pool; claim flows pay SOL by",
7003
+ "selling escrowed virtual tokens. No SPL \"season token\" is minted or transferred.",
7004
+ "",
7005
+ "Note: The pool account itself can be derived via PDA (Moonpool or Sunpool)",
7006
+ "using the token_mint field, so we don't store it here."
6964
7007
  ],
6965
- "type": "string"
7008
+ "type": {
7009
+ "defined": {
7010
+ "name": "PoolType"
7011
+ }
7012
+ }
6966
7013
  },
6967
7014
  {
6968
7015
  "name": "bump",
@@ -7536,6 +7583,21 @@
7536
7583
  "Timestamp when this Sunpool was initialized."
7537
7584
  ],
7538
7585
  "type": "i64"
7586
+ },
7587
+ {
7588
+ "name": "star_flag_prompt",
7589
+ "docs": [
7590
+ "Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.",
7591
+ "Example: \"Show your star to the Sun!\""
7592
+ ],
7593
+ "type": "string"
7594
+ },
7595
+ {
7596
+ "name": "symbol",
7597
+ "docs": [
7598
+ "Token symbol (max 4 chars, e.g., \"MIZD\", \"USDT\")."
7599
+ ],
7600
+ "type": "string"
7539
7601
  }
7540
7602
  ]
7541
7603
  }
@@ -34,9 +34,14 @@ export interface JoinSeasonOptions {
34
34
  maxSlippageBps?: number;
35
35
  /**
36
36
  * Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.
37
- * Only used when initializing a new season (first join). Ignored when joining existing season.
37
+ * Only used when initializing a new pool (first join). Ignored when joining existing season.
38
38
  */
39
39
  starFlagPrompt?: string;
40
+ /**
41
+ * Token symbol (max 4 chars, e.g., "MIZD", "USDT", "MOON").
42
+ * Only used when initializing a new pool (first join). Ignored when joining existing season.
43
+ */
44
+ symbol?: string;
40
45
  /** Optional injected timestamp (seconds) for optimistic state calculation */
41
46
  now?: BN;
42
47
  feePayer?: PublicKey;
@@ -47,14 +52,19 @@ export interface JoinSeasonOptions {
47
52
  }
48
53
  /**
49
54
  * Options for initializing a new season (first joiner).
50
- * Requires starFlagPrompt since it will be stored in the Season account.
55
+ * Requires starFlagPrompt and symbol since they will be stored in the pool accounts.
51
56
  */
52
- export type JoinSeasonAndInitializeOptions = Omit<JoinSeasonOptions, "starFlagPrompt"> & {
57
+ export type JoinSeasonAndInitializeOptions = Omit<JoinSeasonOptions, "starFlagPrompt" | "symbol"> & {
53
58
  /**
54
59
  * Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.
55
- * REQUIRED when initializing a new season.
60
+ * REQUIRED when initializing a new pool.
56
61
  */
57
62
  starFlagPrompt: string;
63
+ /**
64
+ * Token symbol (max 4 chars, e.g., "MIZD", "USDT", "MOON").
65
+ * REQUIRED when initializing a new pool.
66
+ */
67
+ symbol: string;
58
68
  };
59
69
  /**
60
70
  * Options for the classic (non-launchpad) joinSeason wrapper.
@@ -96,7 +96,7 @@ async function joinSeason(options) {
96
96
  const methodBuilder = program.methods
97
97
  // Anchor expects BN for u64 args.
98
98
  // referrerTier defaults to 0 if no referrer (ignored on-chain)
99
- .joinSeason(options.seasonNumber, options.tier, referrer, options.referrerTier ?? 0, options.star ?? false, launchpad, options.maxSolInLamports ?? new anchor_1.BN(0), options.expectedSolInLamports ?? new anchor_1.BN(0), options.maxSlippageBps ?? 0, options.starFlagPrompt ?? "")
99
+ .joinSeason(options.seasonNumber, options.tier, referrer, options.referrerTier ?? 0, options.star ?? false, launchpad, options.maxSolInLamports ?? new anchor_1.BN(0), options.expectedSolInLamports ?? new anchor_1.BN(0), options.maxSlippageBps ?? 0, options.starFlagPrompt ?? "", options.symbol ?? "")
100
100
  .accounts(accounts);
101
101
  if (remainingAccounts.length > 0) {
102
102
  methodBuilder.remainingAccounts(remainingAccounts);
@@ -320,7 +320,7 @@ export type ProofOfTake = {
320
320
  {
321
321
  "name": "moonpool";
322
322
  "docs": [
323
- "Global Moonpool PDA (required when `season.launchpad == true`).",
323
+ "Global Moonpool PDA (required when `season.is_moonpool()`).",
324
324
  "The Moonpool is the Moon's seesaw for buying and selling stars (virtual tokens).",
325
325
  "Shared across all seasons for this token mint."
326
326
  ];
@@ -673,7 +673,7 @@ export type ProofOfTake = {
673
673
  {
674
674
  "name": "moonpool";
675
675
  "docs": [
676
- "Global Moonpool PDA (required when `season.launchpad == true`).",
676
+ "Global Moonpool PDA (required when `season.is_moonpool()`).",
677
677
  "The Moonpool is the Moon's seesaw for buying and selling stars (virtual tokens).",
678
678
  "Shared across all seasons for this token mint."
679
679
  ];
@@ -1102,7 +1102,7 @@ export type ProofOfTake = {
1102
1102
  {
1103
1103
  "name": "moonpool";
1104
1104
  "docs": [
1105
- "Global Moonpool PDA (required when `season.launchpad == true`).",
1105
+ "Global Moonpool PDA (required when `season.is_moonpool()`).",
1106
1106
  "The Moonpool is the Moon's seesaw for buying and selling stars (virtual tokens).",
1107
1107
  "Shared across all seasons for this token mint."
1108
1108
  ];
@@ -3576,6 +3576,10 @@ export type ProofOfTake = {
3576
3576
  {
3577
3577
  "name": "starFlagPrompt";
3578
3578
  "type": "string";
3579
+ },
3580
+ {
3581
+ "name": "symbol";
3582
+ "type": "string";
3579
3583
  }
3580
3584
  ];
3581
3585
  },
@@ -5701,76 +5705,86 @@ export type ProofOfTake = {
5701
5705
  },
5702
5706
  {
5703
5707
  "code": 6061;
5708
+ "name": "symbolTooLong";
5709
+ "msg": "Symbol cannot be longer than 4 characters";
5710
+ },
5711
+ {
5712
+ "code": 6062;
5713
+ "name": "symbolRequired";
5714
+ "msg": "Symbol is required when initializing a new pool";
5715
+ },
5716
+ {
5717
+ "code": 6063;
5704
5718
  "name": "invalidUserJoinCreditOwner";
5705
5719
  "msg": "Invalid user join credit owner";
5706
5720
  },
5707
5721
  {
5708
- "code": 6062;
5722
+ "code": 6064;
5709
5723
  "name": "joinCreditPendingSeasonMismatch";
5710
5724
  "msg": "Pending join credit is locked for a different season than expected";
5711
5725
  },
5712
5726
  {
5713
- "code": 6063;
5727
+ "code": 6065;
5714
5728
  "name": "missingLaunchpadPoolAccount";
5715
5729
  "msg": "Missing required launchpad pool account";
5716
5730
  },
5717
5731
  {
5718
- "code": 6064;
5732
+ "code": 6066;
5719
5733
  "name": "missingLaunchpadTreasuryAccount";
5720
5734
  "msg": "Missing required launchpad treasury account";
5721
5735
  },
5722
5736
  {
5723
- "code": 6065;
5737
+ "code": 6067;
5724
5738
  "name": "launchpadModeMismatch";
5725
5739
  "msg": "Launchpad mode mismatch (season launchpad flag does not match instruction argument)";
5726
5740
  },
5727
5741
  {
5728
- "code": 6066;
5742
+ "code": 6068;
5729
5743
  "name": "insufficientLaunchpadTokenReserve";
5730
5744
  "msg": "Insufficient launchpad token reserve in pool";
5731
5745
  },
5732
5746
  {
5733
- "code": 6067;
5747
+ "code": 6069;
5734
5748
  "name": "insufficientLaunchpadTokenEscrow";
5735
5749
  "msg": "Insufficient launchpad token escrow balance";
5736
5750
  },
5737
5751
  {
5738
- "code": 6068;
5752
+ "code": 6070;
5739
5753
  "name": "launchpadMaxSolExceeded";
5740
5754
  "msg": "Launchpad buy exceeds max SOL input (slippage)";
5741
5755
  },
5742
5756
  {
5743
- "code": 6069;
5757
+ "code": 6071;
5744
5758
  "name": "missingRequiredAccount";
5745
5759
  "msg": "Missing required account for this mode";
5746
5760
  },
5747
5761
  {
5748
- "code": 6070;
5762
+ "code": 6072;
5749
5763
  "name": "unexpectedAccountForMode";
5750
5764
  "msg": "Unexpected account provided for this mode";
5751
5765
  },
5752
5766
  {
5753
- "code": 6071;
5767
+ "code": 6073;
5754
5768
  "name": "launchpadModeRequired";
5755
5769
  "msg": "Launchpad mode is required: launchpad pool is already initialized";
5756
5770
  },
5757
5771
  {
5758
- "code": 6072;
5772
+ "code": 6074;
5759
5773
  "name": "classicModeRequired";
5760
5774
  "msg": "Classic mode is required: sunpool is already initialized";
5761
5775
  },
5762
5776
  {
5763
- "code": 6073;
5777
+ "code": 6075;
5764
5778
  "name": "invariantViolation";
5765
5779
  "msg": "AMM invariant violation: k decreased after trade (this should never happen)";
5766
5780
  },
5767
5781
  {
5768
- "code": 6074;
5782
+ "code": 6076;
5769
5783
  "name": "invalidLaunchpadTokenMint";
5770
5784
  "msg": "Invalid launchpad token mint: does not match the stored mint in Moonpool";
5771
5785
  },
5772
5786
  {
5773
- "code": 6075;
5787
+ "code": 6077;
5774
5788
  "name": "invalidSunpoolTokenMint";
5775
5789
  "msg": "Invalid sunpool token mint: does not match the stored mint in Sunpool";
5776
5790
  }
@@ -6508,6 +6522,38 @@ export type ProofOfTake = {
6508
6522
  "Unix timestamp when the Moonpool was initialized."
6509
6523
  ];
6510
6524
  "type": "i64";
6525
+ },
6526
+ {
6527
+ "name": "starFlagPrompt";
6528
+ "docs": [
6529
+ "Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.",
6530
+ "Example: \"Show your star to the Moon!\""
6531
+ ];
6532
+ "type": "string";
6533
+ },
6534
+ {
6535
+ "name": "symbol";
6536
+ "docs": [
6537
+ "Token symbol (max 4 chars, e.g., \"MOON\", \"SOL\")."
6538
+ ];
6539
+ "type": "string";
6540
+ }
6541
+ ];
6542
+ };
6543
+ },
6544
+ {
6545
+ "name": "poolType";
6546
+ "type": {
6547
+ "kind": "enum";
6548
+ "variants": [
6549
+ {
6550
+ "name": "uninitialized";
6551
+ },
6552
+ {
6553
+ "name": "sunpool";
6554
+ },
6555
+ {
6556
+ "name": "moonpool";
6511
6557
  }
6512
6558
  ];
6513
6559
  };
@@ -6953,22 +6999,23 @@ export type ProofOfTake = {
6953
6999
  "type": "u64";
6954
7000
  },
6955
7001
  {
6956
- "name": "launchpad";
7002
+ "name": "poolType";
6957
7003
  "docs": [
6958
- "Launchpad mode flag.",
7004
+ "Pool type for this season.",
6959
7005
  "",
6960
- "If true, this season uses a SOL↔virtual-token launchpad pool and claim flows pay SOL by",
6961
- "selling escrowed virtual tokens. No SPL \"season token\" is minted or transferred."
6962
- ];
6963
- "type": "bool";
6964
- },
6965
- {
6966
- "name": "starFlagPrompt";
6967
- "docs": [
6968
- "Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.",
6969
- "Example: \"Show your star to the Moon!\""
7006
+ "- Uninitialized: Season not yet configured with a pool type",
7007
+ "- Sunpool: Classic mode with SPL token transfers (non-launchpad)",
7008
+ "- Moonpool: Launchpad mode with SOL↔virtual-token pool; claim flows pay SOL by",
7009
+ "selling escrowed virtual tokens. No SPL \"season token\" is minted or transferred.",
7010
+ "",
7011
+ "Note: The pool account itself can be derived via PDA (Moonpool or Sunpool)",
7012
+ "using the token_mint field, so we don't store it here."
6970
7013
  ];
6971
- "type": "string";
7014
+ "type": {
7015
+ "defined": {
7016
+ "name": "poolType";
7017
+ };
7018
+ };
6972
7019
  },
6973
7020
  {
6974
7021
  "name": "bump";
@@ -7542,6 +7589,21 @@ export type ProofOfTake = {
7542
7589
  "Timestamp when this Sunpool was initialized."
7543
7590
  ];
7544
7591
  "type": "i64";
7592
+ },
7593
+ {
7594
+ "name": "starFlagPrompt";
7595
+ "docs": [
7596
+ "Star flag prompt: a short message (max 33 chars) displayed when users raise their flag.",
7597
+ "Example: \"Show your star to the Sun!\""
7598
+ ];
7599
+ "type": "string";
7600
+ },
7601
+ {
7602
+ "name": "symbol";
7603
+ "docs": [
7604
+ "Token symbol (max 4 chars, e.g., \"MIZD\", \"USDT\")."
7605
+ ];
7606
+ "type": "string";
7545
7607
  }
7546
7608
  ];
7547
7609
  };
package/dist/types.d.ts CHANGED
@@ -100,14 +100,21 @@ export declare enum WindowState {
100
100
  Active = 1,
101
101
  Finalized = 2
102
102
  }
103
+ export declare enum PoolType {
104
+ Uninitialized = 0,
105
+ Sunpool = 1,
106
+ Moonpool = 2
107
+ }
103
108
  /**
104
109
  * Anchor enum formats returned by account fetches.
105
110
  * We accept both the SDK numeric enums and Anchor object enums throughout the SDK.
106
111
  */
107
112
  export type SeasonStateAnchor = AnchorEnumVariant<"uninitialized"> | AnchorEnumVariant<"active"> | AnchorEnumVariant<"ended">;
108
113
  export type WindowStateAnchor = AnchorEnumVariant<"uninitialized"> | AnchorEnumVariant<"active"> | AnchorEnumVariant<"finalized">;
114
+ export type PoolTypeAnchor = AnchorEnumVariant<"uninitialized"> | AnchorEnumVariant<"sunpool"> | AnchorEnumVariant<"moonpool">;
109
115
  export type SeasonStateLike = SeasonState | SeasonStateAnchor | number;
110
116
  export type WindowStateLike = WindowState | WindowStateAnchor | number;
117
+ export type PoolTypeLike = PoolType | PoolTypeAnchor | number;
111
118
  /**
112
119
  * Season deposit tier (Anchor enum representation)
113
120
  *
@@ -166,9 +173,7 @@ export interface Season {
166
173
  totalSuccessfulPosts: BN;
167
174
  totalPenaltiesCollected: BN;
168
175
  totalUnallocatedFunds: BN;
169
- launchpad: boolean;
170
- /** Star flag prompt: a short message (max 33 chars) displayed when users raise their flag. */
171
- starFlagPrompt: string;
176
+ poolType: PoolTypeLike;
172
177
  bump: number;
173
178
  }
174
179
  export interface SeasonMembership {
package/dist/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WindowState = exports.SeasonState = void 0;
3
+ exports.PoolType = exports.WindowState = exports.SeasonState = void 0;
4
4
  // Season Membership State Types
5
5
  var SeasonState;
6
6
  (function (SeasonState) {
@@ -14,3 +14,9 @@ var WindowState;
14
14
  WindowState[WindowState["Active"] = 1] = "Active";
15
15
  WindowState[WindowState["Finalized"] = 2] = "Finalized";
16
16
  })(WindowState || (exports.WindowState = WindowState = {}));
17
+ var PoolType;
18
+ (function (PoolType) {
19
+ PoolType[PoolType["Uninitialized"] = 0] = "Uninitialized";
20
+ PoolType[PoolType["Sunpool"] = 1] = "Sunpool";
21
+ PoolType[PoolType["Moonpool"] = 2] = "Moonpool";
22
+ })(PoolType || (exports.PoolType = PoolType = {}));
@@ -88,8 +88,7 @@ function toSdkSeason(a) {
88
88
  totalSuccessfulPosts: a.totalSuccessfulPosts,
89
89
  totalPenaltiesCollected: a.totalPenaltiesCollected,
90
90
  totalUnallocatedFunds: a.totalUnallocatedFunds,
91
- launchpad: a.launchpad,
92
- starFlagPrompt: a.starFlagPrompt,
91
+ poolType: a.poolType,
93
92
  bump: a.bump,
94
93
  };
95
94
  }
@@ -99,8 +99,7 @@ function expectedToBeLazyInitialized(params) {
99
99
  totalSuccessfulPosts: new anchor_1.BN(0),
100
100
  totalPenaltiesCollected: new anchor_1.BN(0),
101
101
  totalUnallocatedFunds: new anchor_1.BN(0),
102
- launchpad: false,
103
- starFlagPrompt: "",
102
+ poolType: types_1.PoolType.Sunpool,
104
103
  bump,
105
104
  };
106
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proof-of-take-sdk",
3
- "version": "4.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "TypeScript SDK for Proof of Take Solana program",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",