@gabox-labs/sdk 0.8.0 → 0.9.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.
@@ -1,6 +1,42 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { $ as getDeliverDrawInstructionAsync, $t as getPrizeDecoder, A as getInitializePoolInstructionDataCodec, At as fetchAllPool, B as getFundPrizesInstructionDataEncoder, Bt as fetchAllDraw, C as getRetryDrawInstructionDataDecoder, Ct as getWalletActivityDecoder, D as getInitializePoolDiscriminatorBytes, Dt as POOL_DISCRIMINATOR, E as INITIALIZE_POOL_DISCRIMINATOR, Et as getWalletActivitySize, F as getFundPrizesDiscriminatorBytes, Ft as getPoolDiscriminatorBytes, G as getExpireDrawInstructionAsync, Gt as getDrawDecoder, H as EXPIRE_DRAW_DISCRIMINATOR, Ht as fetchDraw, I as getFundPrizesInstruction, It as getPoolEncoder, J as getExpireDrawInstructionDataEncoder, Jt as getDrawSize, K as getExpireDrawInstructionDataCodec, Kt as getDrawDiscriminatorBytes, L as getFundPrizesInstructionAsync, Lt as getPoolSize, M as getInitializePoolInstructionDataEncoder, Mt as fetchPool, N as parseInitializePoolInstruction, Nt as getPoolCodec, O as getInitializePoolInstruction, Ot as decodePool, P as FUND_PRIZES_DISCRIMINATOR, Pt as getPoolDecoder, Q as getDeliverDrawInstruction, Qt as getPrizeCodec, R as getFundPrizesInstructionDataCodec, Rt as DRAW_DISCRIMINATOR, S as getRetryDrawInstructionDataCodec, St as getWalletActivityCodec, T as parseRetryDrawInstruction, Tt as getWalletActivityEncoder, U as getExpireDrawDiscriminatorBytes, Ut as fetchMaybeDraw, V as parseFundPrizesInstruction, Vt as fetchAllMaybeDraw, W as getExpireDrawInstruction, Wt as getDrawCodec, X as DELIVER_DRAW_DISCRIMINATOR, Xt as getTierDecoder, Y as parseExpireDrawInstruction, Yt as getTierCodec, Z as getDeliverDrawDiscriminatorBytes, Zt as getTierEncoder, _ as parseSellTokensInstruction, _t as decodeWalletActivity, a as gaboxProgram, at as getBuyPackDiscriminatorBytes, b as getRetryDrawInstruction, bt as fetchMaybeWalletActivity, c as identifyGaboxInstruction, ct as getBuyPackInstructionDataCodec, d as getSellTokensDiscriminatorBytes, dt as parseBuyPackInstruction, en as getPrizeEncoder, et as getDeliverDrawInstructionDataCodec, f as getSellTokensInstruction, ft as findPoolPda, g as getSellTokensInstructionDataEncoder, gt as WALLET_ACTIVITY_DISCRIMINATOR, h as getSellTokensInstructionDataDecoder, ht as findActivityPda, i as GaboxInstruction, it as BUY_PACK_DISCRIMINATOR, j as getInitializePoolInstructionDataDecoder, jt as fetchMaybePool, k as getInitializePoolInstructionAsync, kt as fetchAllMaybePool, l as parseGaboxInstruction, lt as getBuyPackInstructionDataDecoder, m as getSellTokensInstructionDataCodec, mt as findDrawPda, n as GaboxAccount, nt as getDeliverDrawInstructionDataEncoder, o as identifyGaboxAccount, ot as getBuyPackInstruction, p as getSellTokensInstructionAsync, pt as findIdentityPda, q as getExpireDrawInstructionDataDecoder, qt as getDrawEncoder, r as GaboxEvent, rt as parseDeliverDrawInstruction, s as identifyGaboxEvent, st as getBuyPackInstructionAsync, t as GABOX_PROGRAM_ADDRESS, tt as getDeliverDrawInstructionDataDecoder, u as SELL_TOKENS_DISCRIMINATOR, ut as getBuyPackInstructionDataEncoder, v as RETRY_DRAW_DISCRIMINATOR, vt as fetchAllMaybeWalletActivity, w as getRetryDrawInstructionDataEncoder, wt as getWalletActivityDiscriminatorBytes, x as getRetryDrawInstructionAsync, xt as fetchWalletActivity, y as getRetryDrawDiscriminatorBytes, yt as fetchAllWalletActivity, z as getFundPrizesInstructionDataDecoder, zt as decodeDraw } from "../gabox-DGTCh34U.js";
3
- import { combineCodec, containsBytes, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBooleanDecoder, getBooleanEncoder, getBytesDecoder, getBytesEncoder, getConstantDecoder, getConstantEncoder, getHiddenPrefixDecoder, getHiddenPrefixEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, isProgramError } from "@solana/kit";
2
+ import { $ as getDeliverDrawInstructionAsync, $t as getPoolSize, A as getInitializePoolInstructionDataCodec, At as findDrawPda, B as getFundPrizesInstructionDataEncoder, Bt as getWalletActivityDiscriminatorBytes, C as getRetryDrawInstructionDataDecoder, Ct as getBuyPacksInstructionAsync, D as getInitializePoolDiscriminatorBytes, Dt as parseBuyPacksInstruction, E as INITIALIZE_POOL_DISCRIMINATOR, Et as getBuyPacksInstructionDataEncoder, F as getFundPrizesDiscriminatorBytes, Ft as fetchAllWalletActivity, G as getExpireDrawInstructionAsync, Gt as fetchAllMaybePool, H as EXPIRE_DRAW_DISCRIMINATOR, Ht as getWalletActivitySize, I as getFundPrizesInstruction, It as fetchMaybeWalletActivity, J as getExpireDrawInstructionDataEncoder, Jt as fetchPool, K as getExpireDrawInstructionDataCodec, Kt as fetchAllPool, L as getFundPrizesInstructionAsync, Lt as fetchWalletActivity, M as getInitializePoolInstructionDataEncoder, Mt as WALLET_ACTIVITY_DISCRIMINATOR, N as parseInitializePoolInstruction, Nt as decodeWalletActivity, O as getInitializePoolInstruction, Ot as findPoolPda, P as FUND_PRIZES_DISCRIMINATOR, Pt as fetchAllMaybeWalletActivity, Q as getDeliverDrawInstruction, Qt as getPoolEncoder, R as getFundPrizesInstructionDataCodec, Rt as getWalletActivityCodec, S as getRetryDrawInstructionDataCodec, St as getBuyPacksInstruction, T as parseRetryDrawInstruction, Tt as getBuyPacksInstructionDataDecoder, U as getExpireDrawDiscriminatorBytes, Ut as POOL_DISCRIMINATOR, V as parseFundPrizesInstruction, Vt as getWalletActivityEncoder, W as getExpireDrawInstruction, Wt as decodePool, X as DELIVER_DRAW_DISCRIMINATOR, Xt as getPoolDecoder, Y as parseExpireDrawInstruction, Yt as getPoolCodec, Z as getDeliverDrawDiscriminatorBytes, Zt as getPoolDiscriminatorBytes, _ as parseSellTokensInstruction, _t as getClaimPrizeInstructionDataDecoder, a as gaboxProgram, an as fetchMaybeDraw, at as getClaimPrizeToDiscriminatorBytes, b as getRetryDrawInstruction, bt as BUY_PACKS_DISCRIMINATOR, c as identifyGaboxInstruction, cn as getDrawDiscriminatorBytes, ct as getClaimPrizeToInstructionDataCodec, d as getSellTokensDiscriminatorBytes, dn as getTierCodec, dt as parseClaimPrizeToInstruction, en as DRAW_DISCRIMINATOR, et as getDeliverDrawInstructionDataCodec, f as getSellTokensInstruction, fn as getTierDecoder, ft as CLAIM_PRIZE_DISCRIMINATOR, g as getSellTokensInstructionDataEncoder, gt as getClaimPrizeInstructionDataCodec, h as getSellTokensInstructionDataDecoder, ht as getClaimPrizeInstructionAsync, i as GaboxInstruction, in as fetchDraw, it as CLAIM_PRIZE_TO_DISCRIMINATOR, j as getInitializePoolInstructionDataDecoder, jt as findActivityPda, k as getInitializePoolInstructionAsync, kt as findIdentityPda, l as parseGaboxInstruction, ln as getDrawEncoder, lt as getClaimPrizeToInstructionDataDecoder, m as getSellTokensInstructionDataCodec, mt as getClaimPrizeInstruction, n as GaboxAccount, nn as fetchAllDraw, nt as getDeliverDrawInstructionDataEncoder, o as identifyGaboxAccount, on as getDrawCodec, ot as getClaimPrizeToInstruction, p as getSellTokensInstructionAsync, pn as getTierEncoder, pt as getClaimPrizeDiscriminatorBytes, q as getExpireDrawInstructionDataDecoder, qt as fetchMaybePool, r as GaboxEvent, rn as fetchAllMaybeDraw, rt as parseDeliverDrawInstruction, s as identifyGaboxEvent, sn as getDrawDecoder, st as getClaimPrizeToInstructionAsync, t as GABOX_PROGRAM_ADDRESS, tn as decodeDraw, tt as getDeliverDrawInstructionDataDecoder, u as SELL_TOKENS_DISCRIMINATOR, un as getDrawSize, ut as getClaimPrizeToInstructionDataEncoder, v as RETRY_DRAW_DISCRIMINATOR, vt as getClaimPrizeInstructionDataEncoder, w as getRetryDrawInstructionDataEncoder, wt as getBuyPacksInstructionDataCodec, x as getRetryDrawInstructionAsync, xt as getBuyPacksDiscriminatorBytes, y as getRetryDrawDiscriminatorBytes, yt as parseClaimPrizeInstruction, z as getFundPrizesInstructionDataDecoder, zt as getWalletActivityDecoder } from "../gabox-CuyJYmrS.js";
3
+ import { combineCodec, containsBytes, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBooleanDecoder, getBooleanEncoder, getBytesDecoder, getBytesEncoder, getConstantDecoder, getConstantEncoder, getHiddenPrefixDecoder, getHiddenPrefixEncoder, getStructDecoder, getStructEncoder, getU32Decoder, getU32Encoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, isProgramError } from "@solana/kit";
4
+ //#region src/generated/types/packResult.ts
5
+ /**
6
+ * This code was AUTOGENERATED using the Codama library.
7
+ * Please DO NOT EDIT THIS FILE, instead use visitors
8
+ * to add features, then rerun Codama to update it.
9
+ *
10
+ * @see https://github.com/codama-idl/codama
11
+ */
12
+ function getPackResultEncoder() {
13
+ return getStructEncoder([["tier", getU8Encoder()], ["amount", getU64Encoder()]]);
14
+ }
15
+ function getPackResultDecoder() {
16
+ return getStructDecoder([["tier", getU8Decoder()], ["amount", getU64Decoder()]]);
17
+ }
18
+ function getPackResultCodec() {
19
+ return combineCodec(getPackResultEncoder(), getPackResultDecoder());
20
+ }
21
+ //#endregion
22
+ //#region src/generated/types/prize.ts
23
+ /**
24
+ * This code was AUTOGENERATED using the Codama library.
25
+ * Please DO NOT EDIT THIS FILE, instead use visitors
26
+ * to add features, then rerun Codama to update it.
27
+ *
28
+ * @see https://github.com/codama-idl/codama
29
+ */
30
+ function getPrizeEncoder() {
31
+ return getStructEncoder([["amount", getU64Encoder()], ["tickets", getU32Encoder()]]);
32
+ }
33
+ function getPrizeDecoder() {
34
+ return getStructDecoder([["amount", getU64Decoder()], ["tickets", getU32Decoder()]]);
35
+ }
36
+ function getPrizeCodec() {
37
+ return combineCodec(getPrizeEncoder(), getPrizeDecoder());
38
+ }
39
+ //#endregion
4
40
  //#region src/generated/events/drawResolved.ts
5
41
  /**
6
42
  * This code was AUTOGENERATED using the Codama library.
@@ -26,22 +62,30 @@ function getDrawResolvedEventDiscriminatorBytes() {
26
62
  function getDrawResolvedEventEncoder() {
27
63
  return getHiddenPrefixEncoder(getStructEncoder([
28
64
  ["pool", getAddressEncoder()],
29
- ["seq", getU64Encoder()],
65
+ ["draw", getAddressEncoder()],
30
66
  ["purchaser", getAddressEncoder()],
31
- ["amount", getU64Encoder()],
67
+ ["seqStart", getU64Encoder()],
68
+ ["count", getU8Encoder()],
69
+ ["total", getU64Encoder()],
32
70
  ["randomness", fixEncoderSize(getBytesEncoder(), 32)],
33
- ["timedOut", getBooleanEncoder()]
71
+ ["timedOut", getBooleanEncoder()],
72
+ ["paid", getBooleanEncoder()],
73
+ ["results", getArrayEncoder(getPackResultEncoder())]
34
74
  ]), [getConstantEncoder(DRAW_RESOLVED_EVENT_DISCRIMINATOR)]);
35
75
  }
36
76
  /** Gets the decoder for {@link DrawResolvedEvent} event data. */
37
77
  function getDrawResolvedEventDecoder() {
38
78
  return getHiddenPrefixDecoder(getStructDecoder([
39
79
  ["pool", getAddressDecoder()],
40
- ["seq", getU64Decoder()],
80
+ ["draw", getAddressDecoder()],
41
81
  ["purchaser", getAddressDecoder()],
42
- ["amount", getU64Decoder()],
82
+ ["seqStart", getU64Decoder()],
83
+ ["count", getU8Decoder()],
84
+ ["total", getU64Decoder()],
43
85
  ["randomness", fixDecoderSize(getBytesDecoder(), 32)],
44
- ["timedOut", getBooleanDecoder()]
86
+ ["timedOut", getBooleanDecoder()],
87
+ ["paid", getBooleanDecoder()],
88
+ ["results", getArrayDecoder(getPackResultDecoder())]
45
89
  ]), [getConstantDecoder(DRAW_RESOLVED_EVENT_DISCRIMINATOR)]);
46
90
  }
47
91
  /** Gets the codec for {@link DrawResolvedEvent} event data. */
@@ -54,7 +98,7 @@ function parseDrawResolvedEvent(data) {
54
98
  throw new Error("The provided data does not match the \"DrawResolvedEvent\" event discriminators.");
55
99
  }
56
100
  //#endregion
57
- //#region src/generated/events/packBought.ts
101
+ //#region src/generated/events/packsBought.ts
58
102
  /**
59
103
  * This code was AUTOGENERATED using the Codama library.
60
104
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -62,25 +106,27 @@ function parseDrawResolvedEvent(data) {
62
106
  *
63
107
  * @see https://github.com/codama-idl/codama
64
108
  */
65
- const PACK_BOUGHT_EVENT_DISCRIMINATOR = new Uint8Array([
66
- 220,
67
- 208,
68
- 74,
69
- 75,
70
- 42,
71
- 144,
72
- 231,
73
- 69
109
+ const PACKS_BOUGHT_EVENT_DISCRIMINATOR = new Uint8Array([
110
+ 44,
111
+ 243,
112
+ 223,
113
+ 11,
114
+ 90,
115
+ 23,
116
+ 184,
117
+ 47
74
118
  ]);
75
- function getPackBoughtEventDiscriminatorBytes() {
76
- return fixEncoderSize(getBytesEncoder(), 8).encode(PACK_BOUGHT_EVENT_DISCRIMINATOR);
119
+ function getPacksBoughtEventDiscriminatorBytes() {
120
+ return fixEncoderSize(getBytesEncoder(), 8).encode(PACKS_BOUGHT_EVENT_DISCRIMINATOR);
77
121
  }
78
- /** Gets the encoder for {@link PackBoughtEventArgs} event data. */
79
- function getPackBoughtEventEncoder() {
122
+ /** Gets the encoder for {@link PacksBoughtEventArgs} event data. */
123
+ function getPacksBoughtEventEncoder() {
80
124
  return getHiddenPrefixEncoder(getStructEncoder([
81
125
  ["pool", getAddressEncoder()],
82
- ["seq", getU64Encoder()],
126
+ ["draw", getAddressEncoder()],
83
127
  ["purchaser", getAddressEncoder()],
128
+ ["seqStart", getU64Encoder()],
129
+ ["count", getU8Encoder()],
84
130
  ["venue", getAddressEncoder()],
85
131
  ["quoteMint", getAddressEncoder()],
86
132
  ["tokensBought", getU64Encoder()],
@@ -88,15 +134,19 @@ function getPackBoughtEventEncoder() {
88
134
  ["nativeDebit", getU64Encoder()],
89
135
  ["vrfNativeDebit", getU64Encoder()],
90
136
  ["totalNativeDebit", getU64Encoder()],
91
- ["prizes", getArrayEncoder(getPrizeEncoder(), { size: 8 })]
92
- ]), [getConstantEncoder(PACK_BOUGHT_EVENT_DISCRIMINATOR)]);
137
+ ["freeSnapshot", getU64Encoder()],
138
+ ["reserved", getU64Encoder()],
139
+ ["firstPrizes", getArrayEncoder(getPrizeEncoder(), { size: 8 })]
140
+ ]), [getConstantEncoder(PACKS_BOUGHT_EVENT_DISCRIMINATOR)]);
93
141
  }
94
- /** Gets the decoder for {@link PackBoughtEvent} event data. */
95
- function getPackBoughtEventDecoder() {
142
+ /** Gets the decoder for {@link PacksBoughtEvent} event data. */
143
+ function getPacksBoughtEventDecoder() {
96
144
  return getHiddenPrefixDecoder(getStructDecoder([
97
145
  ["pool", getAddressDecoder()],
98
- ["seq", getU64Decoder()],
146
+ ["draw", getAddressDecoder()],
99
147
  ["purchaser", getAddressDecoder()],
148
+ ["seqStart", getU64Decoder()],
149
+ ["count", getU8Decoder()],
100
150
  ["venue", getAddressDecoder()],
101
151
  ["quoteMint", getAddressDecoder()],
102
152
  ["tokensBought", getU64Decoder()],
@@ -104,17 +154,19 @@ function getPackBoughtEventDecoder() {
104
154
  ["nativeDebit", getU64Decoder()],
105
155
  ["vrfNativeDebit", getU64Decoder()],
106
156
  ["totalNativeDebit", getU64Decoder()],
107
- ["prizes", getArrayDecoder(getPrizeDecoder(), { size: 8 })]
108
- ]), [getConstantDecoder(PACK_BOUGHT_EVENT_DISCRIMINATOR)]);
157
+ ["freeSnapshot", getU64Decoder()],
158
+ ["reserved", getU64Decoder()],
159
+ ["firstPrizes", getArrayDecoder(getPrizeDecoder(), { size: 8 })]
160
+ ]), [getConstantDecoder(PACKS_BOUGHT_EVENT_DISCRIMINATOR)]);
109
161
  }
110
- /** Gets the codec for {@link PackBoughtEvent} event data. */
111
- function getPackBoughtEventCodec() {
112
- return combineCodec(getPackBoughtEventEncoder(), getPackBoughtEventDecoder());
162
+ /** Gets the codec for {@link PacksBoughtEvent} event data. */
163
+ function getPacksBoughtEventCodec() {
164
+ return combineCodec(getPacksBoughtEventEncoder(), getPacksBoughtEventDecoder());
113
165
  }
114
- /** Parses the provided bytes into {@link PackBoughtEvent} event data. */
115
- function parsePackBoughtEvent(data) {
116
- if (containsBytes(data, PACK_BOUGHT_EVENT_DISCRIMINATOR, 0)) return getPackBoughtEventDecoder().decode(data);
117
- throw new Error("The provided data does not match the \"PackBoughtEvent\" event discriminators.");
166
+ /** Parses the provided bytes into {@link PacksBoughtEvent} event data. */
167
+ function parsePacksBoughtEvent(data) {
168
+ if (containsBytes(data, PACKS_BOUGHT_EVENT_DISCRIMINATOR, 0)) return getPacksBoughtEventDecoder().decode(data);
169
+ throw new Error("The provided data does not match the \"PacksBoughtEvent\" event discriminators.");
118
170
  }
119
171
  //#endregion
120
172
  //#region src/generated/events/poolCreated.ts
@@ -178,6 +230,59 @@ function parsePoolCreatedEvent(data) {
178
230
  throw new Error("The provided data does not match the \"PoolCreatedEvent\" event discriminators.");
179
231
  }
180
232
  //#endregion
233
+ //#region src/generated/events/prizeClaimed.ts
234
+ /**
235
+ * This code was AUTOGENERATED using the Codama library.
236
+ * Please DO NOT EDIT THIS FILE, instead use visitors
237
+ * to add features, then rerun Codama to update it.
238
+ *
239
+ * @see https://github.com/codama-idl/codama
240
+ */
241
+ const PRIZE_CLAIMED_EVENT_DISCRIMINATOR = new Uint8Array([
242
+ 213,
243
+ 150,
244
+ 192,
245
+ 76,
246
+ 199,
247
+ 33,
248
+ 212,
249
+ 38
250
+ ]);
251
+ function getPrizeClaimedEventDiscriminatorBytes() {
252
+ return fixEncoderSize(getBytesEncoder(), 8).encode(PRIZE_CLAIMED_EVENT_DISCRIMINATOR);
253
+ }
254
+ /** Gets the encoder for {@link PrizeClaimedEventArgs} event data. */
255
+ function getPrizeClaimedEventEncoder() {
256
+ return getHiddenPrefixEncoder(getStructEncoder([
257
+ ["pool", getAddressEncoder()],
258
+ ["draw", getAddressEncoder()],
259
+ ["purchaser", getAddressEncoder()],
260
+ ["amount", getU64Encoder()],
261
+ ["payer", getAddressEncoder()],
262
+ ["destination", getAddressEncoder()]
263
+ ]), [getConstantEncoder(PRIZE_CLAIMED_EVENT_DISCRIMINATOR)]);
264
+ }
265
+ /** Gets the decoder for {@link PrizeClaimedEvent} event data. */
266
+ function getPrizeClaimedEventDecoder() {
267
+ return getHiddenPrefixDecoder(getStructDecoder([
268
+ ["pool", getAddressDecoder()],
269
+ ["draw", getAddressDecoder()],
270
+ ["purchaser", getAddressDecoder()],
271
+ ["amount", getU64Decoder()],
272
+ ["payer", getAddressDecoder()],
273
+ ["destination", getAddressDecoder()]
274
+ ]), [getConstantDecoder(PRIZE_CLAIMED_EVENT_DISCRIMINATOR)]);
275
+ }
276
+ /** Gets the codec for {@link PrizeClaimedEvent} event data. */
277
+ function getPrizeClaimedEventCodec() {
278
+ return combineCodec(getPrizeClaimedEventEncoder(), getPrizeClaimedEventDecoder());
279
+ }
280
+ /** Parses the provided bytes into {@link PrizeClaimedEvent} event data. */
281
+ function parsePrizeClaimedEvent(data) {
282
+ if (containsBytes(data, PRIZE_CLAIMED_EVENT_DISCRIMINATOR, 0)) return getPrizeClaimedEventDecoder().decode(data);
283
+ throw new Error("The provided data does not match the \"PrizeClaimedEvent\" event discriminators.");
284
+ }
285
+ //#endregion
181
286
  //#region src/generated/events/prizesFunded.ts
182
287
  /**
183
288
  * This code was AUTOGENERATED using the Codama library.
@@ -250,7 +355,8 @@ function getRandomnessRetriedEventDiscriminatorBytes() {
250
355
  function getRandomnessRetriedEventEncoder() {
251
356
  return getHiddenPrefixEncoder(getStructEncoder([
252
357
  ["pool", getAddressEncoder()],
253
- ["seq", getU64Encoder()],
358
+ ["draw", getAddressEncoder()],
359
+ ["seqStart", getU64Encoder()],
254
360
  ["attempt", getU8Encoder()]
255
361
  ]), [getConstantEncoder(RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR)]);
256
362
  }
@@ -258,7 +364,8 @@ function getRandomnessRetriedEventEncoder() {
258
364
  function getRandomnessRetriedEventDecoder() {
259
365
  return getHiddenPrefixDecoder(getStructDecoder([
260
366
  ["pool", getAddressDecoder()],
261
- ["seq", getU64Decoder()],
367
+ ["draw", getAddressDecoder()],
368
+ ["seqStart", getU64Decoder()],
262
369
  ["attempt", getU8Decoder()]
263
370
  ]), [getConstantDecoder(RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR)]);
264
371
  }
@@ -371,9 +478,26 @@ const GABOX_ERROR__INVALID_LAUNCH = 6015;
371
478
  const GABOX_ERROR__INVALID_QUOTE = 6016;
372
479
  /** WalletActivityMismatch: Wallet activity account belongs to a different wallet */
373
480
  const GABOX_ERROR__WALLET_ACTIVITY_MISMATCH = 6017;
481
+ /** TooManyPacks: A purchase opens at most MAX_BATCH_SIZE packs */
482
+ const GABOX_ERROR__TOO_MANY_PACKS = 6018;
483
+ /** DrawAlreadySettled: The draw's outcome is already fixed */
484
+ const GABOX_ERROR__DRAW_ALREADY_SETTLED = 6019;
485
+ /** DrawNotSettled: The draw's outcome is not fixed yet */
486
+ const GABOX_ERROR__DRAW_NOT_SETTLED = 6020;
487
+ /** DrawExpired: Delivery is closed for this draw; only expiry remains */
488
+ const GABOX_ERROR__DRAW_EXPIRED = 6021;
489
+ /** WrongDraw: The callback's sequence number does not match this draw */
490
+ const GABOX_ERROR__WRONG_DRAW = 6022;
491
+ /** WrongTokenAccount: Not the purchaser's coin account */
492
+ const GABOX_ERROR__WRONG_TOKEN_ACCOUNT = 6023;
493
+ /** WrongDestination: The destination must be the purchaser's own account for this coin */
494
+ const GABOX_ERROR__WRONG_DESTINATION = 6024;
374
495
  let gaboxErrorMessages;
375
496
  if (process.env["NODE_ENV"] !== "production") gaboxErrorMessages = {
376
497
  [GABOX_ERROR__ARITHMETIC]: `Arithmetic overflow or inconsistent accounting`,
498
+ [GABOX_ERROR__DRAW_ALREADY_SETTLED]: `The draw's outcome is already fixed`,
499
+ [GABOX_ERROR__DRAW_EXPIRED]: `Delivery is closed for this draw; only expiry remains`,
500
+ [GABOX_ERROR__DRAW_NOT_SETTLED]: `The draw's outcome is not fixed yet`,
377
501
  [GABOX_ERROR__INCORRECT_TOKEN_DELTA]: `Trade did not move the exact token amount`,
378
502
  [GABOX_ERROR__INSOLVENT_INVENTORY]: `Prize inventory does not cover reservations`,
379
503
  [GABOX_ERROR__INVALID_DISTRIBUTION]: `Invalid prize distribution`,
@@ -387,9 +511,13 @@ if (process.env["NODE_ENV"] !== "production") gaboxErrorMessages = {
387
511
  [GABOX_ERROR__RETRY_TOO_SOON]: `Retry interval has not elapsed`,
388
512
  [GABOX_ERROR__RETRY_UNAVAILABLE]: `Retry limit reached or draw expired`,
389
513
  [GABOX_ERROR__SLIPPAGE_EXCEEDED]: `Spend exceeds the signed limit`,
514
+ [GABOX_ERROR__TOO_MANY_PACKS]: `A purchase opens at most MAX_BATCH_SIZE packs`,
390
515
  [GABOX_ERROR__UNFUNDED_EXPECTATION]: `Expected token award exceeds tokens purchased`,
391
516
  [GABOX_ERROR__UNSUPPORTED_MINT]: `Mint must have 6 decimals and no mint or freeze authority`,
392
517
  [GABOX_ERROR__WALLET_ACTIVITY_MISMATCH]: `Wallet activity account belongs to a different wallet`,
518
+ [GABOX_ERROR__WRONG_DESTINATION]: `The destination must be the purchaser's own account for this coin`,
519
+ [GABOX_ERROR__WRONG_DRAW]: `The callback's sequence number does not match this draw`,
520
+ [GABOX_ERROR__WRONG_TOKEN_ACCOUNT]: `Not the purchaser's coin account`,
393
521
  [GABOX_ERROR__ZERO_AMOUNT]: `Amount must be positive`
394
522
  };
395
523
  function getGaboxErrorMessage(code) {
@@ -402,13 +530,18 @@ function isGaboxError(error, transactionMessage, code) {
402
530
  //#endregion
403
531
  //#region src/generated/index.ts
404
532
  var generated_exports = /* @__PURE__ */ __exportAll({
405
- BUY_PACK_DISCRIMINATOR: () => BUY_PACK_DISCRIMINATOR,
533
+ BUY_PACKS_DISCRIMINATOR: () => BUY_PACKS_DISCRIMINATOR,
534
+ CLAIM_PRIZE_DISCRIMINATOR: () => CLAIM_PRIZE_DISCRIMINATOR,
535
+ CLAIM_PRIZE_TO_DISCRIMINATOR: () => CLAIM_PRIZE_TO_DISCRIMINATOR,
406
536
  DELIVER_DRAW_DISCRIMINATOR: () => DELIVER_DRAW_DISCRIMINATOR,
407
537
  DRAW_DISCRIMINATOR: () => DRAW_DISCRIMINATOR,
408
538
  DRAW_RESOLVED_EVENT_DISCRIMINATOR: () => DRAW_RESOLVED_EVENT_DISCRIMINATOR,
409
539
  EXPIRE_DRAW_DISCRIMINATOR: () => EXPIRE_DRAW_DISCRIMINATOR,
410
540
  FUND_PRIZES_DISCRIMINATOR: () => FUND_PRIZES_DISCRIMINATOR,
411
541
  GABOX_ERROR__ARITHMETIC: () => GABOX_ERROR__ARITHMETIC,
542
+ GABOX_ERROR__DRAW_ALREADY_SETTLED: () => GABOX_ERROR__DRAW_ALREADY_SETTLED,
543
+ GABOX_ERROR__DRAW_EXPIRED: () => GABOX_ERROR__DRAW_EXPIRED,
544
+ GABOX_ERROR__DRAW_NOT_SETTLED: () => GABOX_ERROR__DRAW_NOT_SETTLED,
412
545
  GABOX_ERROR__INCORRECT_TOKEN_DELTA: () => GABOX_ERROR__INCORRECT_TOKEN_DELTA,
413
546
  GABOX_ERROR__INSOLVENT_INVENTORY: () => GABOX_ERROR__INSOLVENT_INVENTORY,
414
547
  GABOX_ERROR__INVALID_DISTRIBUTION: () => GABOX_ERROR__INVALID_DISTRIBUTION,
@@ -422,19 +555,24 @@ var generated_exports = /* @__PURE__ */ __exportAll({
422
555
  GABOX_ERROR__RETRY_TOO_SOON: () => GABOX_ERROR__RETRY_TOO_SOON,
423
556
  GABOX_ERROR__RETRY_UNAVAILABLE: () => GABOX_ERROR__RETRY_UNAVAILABLE,
424
557
  GABOX_ERROR__SLIPPAGE_EXCEEDED: () => GABOX_ERROR__SLIPPAGE_EXCEEDED,
558
+ GABOX_ERROR__TOO_MANY_PACKS: () => GABOX_ERROR__TOO_MANY_PACKS,
425
559
  GABOX_ERROR__UNFUNDED_EXPECTATION: () => GABOX_ERROR__UNFUNDED_EXPECTATION,
426
560
  GABOX_ERROR__UNSUPPORTED_MINT: () => GABOX_ERROR__UNSUPPORTED_MINT,
427
561
  GABOX_ERROR__WALLET_ACTIVITY_MISMATCH: () => GABOX_ERROR__WALLET_ACTIVITY_MISMATCH,
562
+ GABOX_ERROR__WRONG_DESTINATION: () => GABOX_ERROR__WRONG_DESTINATION,
563
+ GABOX_ERROR__WRONG_DRAW: () => GABOX_ERROR__WRONG_DRAW,
564
+ GABOX_ERROR__WRONG_TOKEN_ACCOUNT: () => GABOX_ERROR__WRONG_TOKEN_ACCOUNT,
428
565
  GABOX_ERROR__ZERO_AMOUNT: () => GABOX_ERROR__ZERO_AMOUNT,
429
566
  GABOX_PROGRAM_ADDRESS: () => GABOX_PROGRAM_ADDRESS,
430
567
  GaboxAccount: () => GaboxAccount,
431
568
  GaboxEvent: () => GaboxEvent,
432
569
  GaboxInstruction: () => GaboxInstruction,
433
570
  INITIALIZE_POOL_DISCRIMINATOR: () => INITIALIZE_POOL_DISCRIMINATOR,
434
- PACK_BOUGHT_EVENT_DISCRIMINATOR: () => PACK_BOUGHT_EVENT_DISCRIMINATOR,
571
+ PACKS_BOUGHT_EVENT_DISCRIMINATOR: () => PACKS_BOUGHT_EVENT_DISCRIMINATOR,
435
572
  POOL_CREATED_EVENT_DISCRIMINATOR: () => POOL_CREATED_EVENT_DISCRIMINATOR,
436
573
  POOL_DISCRIMINATOR: () => POOL_DISCRIMINATOR,
437
574
  PRIZES_FUNDED_EVENT_DISCRIMINATOR: () => PRIZES_FUNDED_EVENT_DISCRIMINATOR,
575
+ PRIZE_CLAIMED_EVENT_DISCRIMINATOR: () => PRIZE_CLAIMED_EVENT_DISCRIMINATOR,
438
576
  RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR: () => RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR,
439
577
  RETRY_DRAW_DISCRIMINATOR: () => RETRY_DRAW_DISCRIMINATOR,
440
578
  SELL_TOKENS_DISCRIMINATOR: () => SELL_TOKENS_DISCRIMINATOR,
@@ -460,12 +598,24 @@ var generated_exports = /* @__PURE__ */ __exportAll({
460
598
  findIdentityPda: () => findIdentityPda,
461
599
  findPoolPda: () => findPoolPda,
462
600
  gaboxProgram: () => gaboxProgram,
463
- getBuyPackDiscriminatorBytes: () => getBuyPackDiscriminatorBytes,
464
- getBuyPackInstruction: () => getBuyPackInstruction,
465
- getBuyPackInstructionAsync: () => getBuyPackInstructionAsync,
466
- getBuyPackInstructionDataCodec: () => getBuyPackInstructionDataCodec,
467
- getBuyPackInstructionDataDecoder: () => getBuyPackInstructionDataDecoder,
468
- getBuyPackInstructionDataEncoder: () => getBuyPackInstructionDataEncoder,
601
+ getBuyPacksDiscriminatorBytes: () => getBuyPacksDiscriminatorBytes,
602
+ getBuyPacksInstruction: () => getBuyPacksInstruction,
603
+ getBuyPacksInstructionAsync: () => getBuyPacksInstructionAsync,
604
+ getBuyPacksInstructionDataCodec: () => getBuyPacksInstructionDataCodec,
605
+ getBuyPacksInstructionDataDecoder: () => getBuyPacksInstructionDataDecoder,
606
+ getBuyPacksInstructionDataEncoder: () => getBuyPacksInstructionDataEncoder,
607
+ getClaimPrizeDiscriminatorBytes: () => getClaimPrizeDiscriminatorBytes,
608
+ getClaimPrizeInstruction: () => getClaimPrizeInstruction,
609
+ getClaimPrizeInstructionAsync: () => getClaimPrizeInstructionAsync,
610
+ getClaimPrizeInstructionDataCodec: () => getClaimPrizeInstructionDataCodec,
611
+ getClaimPrizeInstructionDataDecoder: () => getClaimPrizeInstructionDataDecoder,
612
+ getClaimPrizeInstructionDataEncoder: () => getClaimPrizeInstructionDataEncoder,
613
+ getClaimPrizeToDiscriminatorBytes: () => getClaimPrizeToDiscriminatorBytes,
614
+ getClaimPrizeToInstruction: () => getClaimPrizeToInstruction,
615
+ getClaimPrizeToInstructionAsync: () => getClaimPrizeToInstructionAsync,
616
+ getClaimPrizeToInstructionDataCodec: () => getClaimPrizeToInstructionDataCodec,
617
+ getClaimPrizeToInstructionDataDecoder: () => getClaimPrizeToInstructionDataDecoder,
618
+ getClaimPrizeToInstructionDataEncoder: () => getClaimPrizeToInstructionDataEncoder,
469
619
  getDeliverDrawDiscriminatorBytes: () => getDeliverDrawDiscriminatorBytes,
470
620
  getDeliverDrawInstruction: () => getDeliverDrawInstruction,
471
621
  getDeliverDrawInstructionAsync: () => getDeliverDrawInstructionAsync,
@@ -500,10 +650,13 @@ var generated_exports = /* @__PURE__ */ __exportAll({
500
650
  getInitializePoolInstructionDataCodec: () => getInitializePoolInstructionDataCodec,
501
651
  getInitializePoolInstructionDataDecoder: () => getInitializePoolInstructionDataDecoder,
502
652
  getInitializePoolInstructionDataEncoder: () => getInitializePoolInstructionDataEncoder,
503
- getPackBoughtEventCodec: () => getPackBoughtEventCodec,
504
- getPackBoughtEventDecoder: () => getPackBoughtEventDecoder,
505
- getPackBoughtEventDiscriminatorBytes: () => getPackBoughtEventDiscriminatorBytes,
506
- getPackBoughtEventEncoder: () => getPackBoughtEventEncoder,
653
+ getPackResultCodec: () => getPackResultCodec,
654
+ getPackResultDecoder: () => getPackResultDecoder,
655
+ getPackResultEncoder: () => getPackResultEncoder,
656
+ getPacksBoughtEventCodec: () => getPacksBoughtEventCodec,
657
+ getPacksBoughtEventDecoder: () => getPacksBoughtEventDecoder,
658
+ getPacksBoughtEventDiscriminatorBytes: () => getPacksBoughtEventDiscriminatorBytes,
659
+ getPacksBoughtEventEncoder: () => getPacksBoughtEventEncoder,
507
660
  getPoolCodec: () => getPoolCodec,
508
661
  getPoolCreatedEventCodec: () => getPoolCreatedEventCodec,
509
662
  getPoolCreatedEventDecoder: () => getPoolCreatedEventDecoder,
@@ -513,6 +666,10 @@ var generated_exports = /* @__PURE__ */ __exportAll({
513
666
  getPoolDiscriminatorBytes: () => getPoolDiscriminatorBytes,
514
667
  getPoolEncoder: () => getPoolEncoder,
515
668
  getPoolSize: () => getPoolSize,
669
+ getPrizeClaimedEventCodec: () => getPrizeClaimedEventCodec,
670
+ getPrizeClaimedEventDecoder: () => getPrizeClaimedEventDecoder,
671
+ getPrizeClaimedEventDiscriminatorBytes: () => getPrizeClaimedEventDiscriminatorBytes,
672
+ getPrizeClaimedEventEncoder: () => getPrizeClaimedEventEncoder,
516
673
  getPrizeCodec: () => getPrizeCodec,
517
674
  getPrizeDecoder: () => getPrizeDecoder,
518
675
  getPrizeEncoder: () => getPrizeEncoder,
@@ -552,15 +709,18 @@ var generated_exports = /* @__PURE__ */ __exportAll({
552
709
  identifyGaboxEvent: () => identifyGaboxEvent,
553
710
  identifyGaboxInstruction: () => identifyGaboxInstruction,
554
711
  isGaboxError: () => isGaboxError,
555
- parseBuyPackInstruction: () => parseBuyPackInstruction,
712
+ parseBuyPacksInstruction: () => parseBuyPacksInstruction,
713
+ parseClaimPrizeInstruction: () => parseClaimPrizeInstruction,
714
+ parseClaimPrizeToInstruction: () => parseClaimPrizeToInstruction,
556
715
  parseDeliverDrawInstruction: () => parseDeliverDrawInstruction,
557
716
  parseDrawResolvedEvent: () => parseDrawResolvedEvent,
558
717
  parseExpireDrawInstruction: () => parseExpireDrawInstruction,
559
718
  parseFundPrizesInstruction: () => parseFundPrizesInstruction,
560
719
  parseGaboxInstruction: () => parseGaboxInstruction,
561
720
  parseInitializePoolInstruction: () => parseInitializePoolInstruction,
562
- parsePackBoughtEvent: () => parsePackBoughtEvent,
721
+ parsePacksBoughtEvent: () => parsePacksBoughtEvent,
563
722
  parsePoolCreatedEvent: () => parsePoolCreatedEvent,
723
+ parsePrizeClaimedEvent: () => parsePrizeClaimedEvent,
564
724
  parsePrizesFundedEvent: () => parsePrizesFundedEvent,
565
725
  parseRandomnessRetriedEvent: () => parseRandomnessRetriedEvent,
566
726
  parseRetryDrawInstruction: () => parseRetryDrawInstruction,
@@ -568,6 +728,6 @@ var generated_exports = /* @__PURE__ */ __exportAll({
568
728
  parseTokensSoldEvent: () => parseTokensSoldEvent
569
729
  });
570
730
  //#endregion
571
- export { BUY_PACK_DISCRIMINATOR, DELIVER_DRAW_DISCRIMINATOR, DRAW_DISCRIMINATOR, DRAW_RESOLVED_EVENT_DISCRIMINATOR, EXPIRE_DRAW_DISCRIMINATOR, FUND_PRIZES_DISCRIMINATOR, GABOX_ERROR__ARITHMETIC, GABOX_ERROR__INCORRECT_TOKEN_DELTA, GABOX_ERROR__INSOLVENT_INVENTORY, GABOX_ERROR__INVALID_DISTRIBUTION, GABOX_ERROR__INVALID_LAUNCH, GABOX_ERROR__INVALID_QUOTE, GABOX_ERROR__INVALID_VENUE, GABOX_ERROR__JACKPOT_BELOW_ONE_PACK, GABOX_ERROR__NOT_EXPIRED, GABOX_ERROR__PACK_TOO_SMALL, GABOX_ERROR__PRIZE_CAP_CHANGED, GABOX_ERROR__RETRY_TOO_SOON, GABOX_ERROR__RETRY_UNAVAILABLE, GABOX_ERROR__SLIPPAGE_EXCEEDED, GABOX_ERROR__UNFUNDED_EXPECTATION, GABOX_ERROR__UNSUPPORTED_MINT, GABOX_ERROR__WALLET_ACTIVITY_MISMATCH, GABOX_ERROR__ZERO_AMOUNT, GABOX_PROGRAM_ADDRESS, GaboxAccount, GaboxEvent, GaboxInstruction, INITIALIZE_POOL_DISCRIMINATOR, PACK_BOUGHT_EVENT_DISCRIMINATOR, POOL_CREATED_EVENT_DISCRIMINATOR, POOL_DISCRIMINATOR, PRIZES_FUNDED_EVENT_DISCRIMINATOR, RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR, RETRY_DRAW_DISCRIMINATOR, SELL_TOKENS_DISCRIMINATOR, TOKENS_SOLD_EVENT_DISCRIMINATOR, WALLET_ACTIVITY_DISCRIMINATOR, decodeDraw, decodePool, decodeWalletActivity, fetchAllDraw, fetchAllMaybeDraw, fetchAllMaybePool, fetchAllMaybeWalletActivity, fetchAllPool, fetchAllWalletActivity, fetchDraw, fetchMaybeDraw, fetchMaybePool, fetchMaybeWalletActivity, fetchPool, fetchWalletActivity, findActivityPda, findDrawPda, findIdentityPda, findPoolPda, gaboxProgram, getBuyPackDiscriminatorBytes, getBuyPackInstruction, getBuyPackInstructionAsync, getBuyPackInstructionDataCodec, getBuyPackInstructionDataDecoder, getBuyPackInstructionDataEncoder, getDeliverDrawDiscriminatorBytes, getDeliverDrawInstruction, getDeliverDrawInstructionAsync, getDeliverDrawInstructionDataCodec, getDeliverDrawInstructionDataDecoder, getDeliverDrawInstructionDataEncoder, getDrawCodec, getDrawDecoder, getDrawDiscriminatorBytes, getDrawEncoder, getDrawResolvedEventCodec, getDrawResolvedEventDecoder, getDrawResolvedEventDiscriminatorBytes, getDrawResolvedEventEncoder, getDrawSize, getExpireDrawDiscriminatorBytes, getExpireDrawInstruction, getExpireDrawInstructionAsync, getExpireDrawInstructionDataCodec, getExpireDrawInstructionDataDecoder, getExpireDrawInstructionDataEncoder, getFundPrizesDiscriminatorBytes, getFundPrizesInstruction, getFundPrizesInstructionAsync, getFundPrizesInstructionDataCodec, getFundPrizesInstructionDataDecoder, getFundPrizesInstructionDataEncoder, getGaboxErrorMessage, getInitializePoolDiscriminatorBytes, getInitializePoolInstruction, getInitializePoolInstructionAsync, getInitializePoolInstructionDataCodec, getInitializePoolInstructionDataDecoder, getInitializePoolInstructionDataEncoder, getPackBoughtEventCodec, getPackBoughtEventDecoder, getPackBoughtEventDiscriminatorBytes, getPackBoughtEventEncoder, getPoolCodec, getPoolCreatedEventCodec, getPoolCreatedEventDecoder, getPoolCreatedEventDiscriminatorBytes, getPoolCreatedEventEncoder, getPoolDecoder, getPoolDiscriminatorBytes, getPoolEncoder, getPoolSize, getPrizeCodec, getPrizeDecoder, getPrizeEncoder, getPrizesFundedEventCodec, getPrizesFundedEventDecoder, getPrizesFundedEventDiscriminatorBytes, getPrizesFundedEventEncoder, getRandomnessRetriedEventCodec, getRandomnessRetriedEventDecoder, getRandomnessRetriedEventDiscriminatorBytes, getRandomnessRetriedEventEncoder, getRetryDrawDiscriminatorBytes, getRetryDrawInstruction, getRetryDrawInstructionAsync, getRetryDrawInstructionDataCodec, getRetryDrawInstructionDataDecoder, getRetryDrawInstructionDataEncoder, getSellTokensDiscriminatorBytes, getSellTokensInstruction, getSellTokensInstructionAsync, getSellTokensInstructionDataCodec, getSellTokensInstructionDataDecoder, getSellTokensInstructionDataEncoder, getTierCodec, getTierDecoder, getTierEncoder, getTokensSoldEventCodec, getTokensSoldEventDecoder, getTokensSoldEventDiscriminatorBytes, getTokensSoldEventEncoder, getWalletActivityCodec, getWalletActivityDecoder, getWalletActivityDiscriminatorBytes, getWalletActivityEncoder, getWalletActivitySize, identifyGaboxAccount, identifyGaboxEvent, identifyGaboxInstruction, isGaboxError, parseBuyPackInstruction, parseDeliverDrawInstruction, parseDrawResolvedEvent, parseExpireDrawInstruction, parseFundPrizesInstruction, parseGaboxInstruction, parseInitializePoolInstruction, parsePackBoughtEvent, parsePoolCreatedEvent, parsePrizesFundedEvent, parseRandomnessRetriedEvent, parseRetryDrawInstruction, parseSellTokensInstruction, parseTokensSoldEvent, generated_exports as t };
731
+ export { BUY_PACKS_DISCRIMINATOR, CLAIM_PRIZE_DISCRIMINATOR, CLAIM_PRIZE_TO_DISCRIMINATOR, DELIVER_DRAW_DISCRIMINATOR, DRAW_DISCRIMINATOR, DRAW_RESOLVED_EVENT_DISCRIMINATOR, EXPIRE_DRAW_DISCRIMINATOR, FUND_PRIZES_DISCRIMINATOR, GABOX_ERROR__ARITHMETIC, GABOX_ERROR__DRAW_ALREADY_SETTLED, GABOX_ERROR__DRAW_EXPIRED, GABOX_ERROR__DRAW_NOT_SETTLED, GABOX_ERROR__INCORRECT_TOKEN_DELTA, GABOX_ERROR__INSOLVENT_INVENTORY, GABOX_ERROR__INVALID_DISTRIBUTION, GABOX_ERROR__INVALID_LAUNCH, GABOX_ERROR__INVALID_QUOTE, GABOX_ERROR__INVALID_VENUE, GABOX_ERROR__JACKPOT_BELOW_ONE_PACK, GABOX_ERROR__NOT_EXPIRED, GABOX_ERROR__PACK_TOO_SMALL, GABOX_ERROR__PRIZE_CAP_CHANGED, GABOX_ERROR__RETRY_TOO_SOON, GABOX_ERROR__RETRY_UNAVAILABLE, GABOX_ERROR__SLIPPAGE_EXCEEDED, GABOX_ERROR__TOO_MANY_PACKS, GABOX_ERROR__UNFUNDED_EXPECTATION, GABOX_ERROR__UNSUPPORTED_MINT, GABOX_ERROR__WALLET_ACTIVITY_MISMATCH, GABOX_ERROR__WRONG_DESTINATION, GABOX_ERROR__WRONG_DRAW, GABOX_ERROR__WRONG_TOKEN_ACCOUNT, GABOX_ERROR__ZERO_AMOUNT, GABOX_PROGRAM_ADDRESS, GaboxAccount, GaboxEvent, GaboxInstruction, INITIALIZE_POOL_DISCRIMINATOR, PACKS_BOUGHT_EVENT_DISCRIMINATOR, POOL_CREATED_EVENT_DISCRIMINATOR, POOL_DISCRIMINATOR, PRIZES_FUNDED_EVENT_DISCRIMINATOR, PRIZE_CLAIMED_EVENT_DISCRIMINATOR, RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR, RETRY_DRAW_DISCRIMINATOR, SELL_TOKENS_DISCRIMINATOR, TOKENS_SOLD_EVENT_DISCRIMINATOR, WALLET_ACTIVITY_DISCRIMINATOR, decodeDraw, decodePool, decodeWalletActivity, fetchAllDraw, fetchAllMaybeDraw, fetchAllMaybePool, fetchAllMaybeWalletActivity, fetchAllPool, fetchAllWalletActivity, fetchDraw, fetchMaybeDraw, fetchMaybePool, fetchMaybeWalletActivity, fetchPool, fetchWalletActivity, findActivityPda, findDrawPda, findIdentityPda, findPoolPda, gaboxProgram, getBuyPacksDiscriminatorBytes, getBuyPacksInstruction, getBuyPacksInstructionAsync, getBuyPacksInstructionDataCodec, getBuyPacksInstructionDataDecoder, getBuyPacksInstructionDataEncoder, getClaimPrizeDiscriminatorBytes, getClaimPrizeInstruction, getClaimPrizeInstructionAsync, getClaimPrizeInstructionDataCodec, getClaimPrizeInstructionDataDecoder, getClaimPrizeInstructionDataEncoder, getClaimPrizeToDiscriminatorBytes, getClaimPrizeToInstruction, getClaimPrizeToInstructionAsync, getClaimPrizeToInstructionDataCodec, getClaimPrizeToInstructionDataDecoder, getClaimPrizeToInstructionDataEncoder, getDeliverDrawDiscriminatorBytes, getDeliverDrawInstruction, getDeliverDrawInstructionAsync, getDeliverDrawInstructionDataCodec, getDeliverDrawInstructionDataDecoder, getDeliverDrawInstructionDataEncoder, getDrawCodec, getDrawDecoder, getDrawDiscriminatorBytes, getDrawEncoder, getDrawResolvedEventCodec, getDrawResolvedEventDecoder, getDrawResolvedEventDiscriminatorBytes, getDrawResolvedEventEncoder, getDrawSize, getExpireDrawDiscriminatorBytes, getExpireDrawInstruction, getExpireDrawInstructionAsync, getExpireDrawInstructionDataCodec, getExpireDrawInstructionDataDecoder, getExpireDrawInstructionDataEncoder, getFundPrizesDiscriminatorBytes, getFundPrizesInstruction, getFundPrizesInstructionAsync, getFundPrizesInstructionDataCodec, getFundPrizesInstructionDataDecoder, getFundPrizesInstructionDataEncoder, getGaboxErrorMessage, getInitializePoolDiscriminatorBytes, getInitializePoolInstruction, getInitializePoolInstructionAsync, getInitializePoolInstructionDataCodec, getInitializePoolInstructionDataDecoder, getInitializePoolInstructionDataEncoder, getPackResultCodec, getPackResultDecoder, getPackResultEncoder, getPacksBoughtEventCodec, getPacksBoughtEventDecoder, getPacksBoughtEventDiscriminatorBytes, getPacksBoughtEventEncoder, getPoolCodec, getPoolCreatedEventCodec, getPoolCreatedEventDecoder, getPoolCreatedEventDiscriminatorBytes, getPoolCreatedEventEncoder, getPoolDecoder, getPoolDiscriminatorBytes, getPoolEncoder, getPoolSize, getPrizeClaimedEventCodec, getPrizeClaimedEventDecoder, getPrizeClaimedEventDiscriminatorBytes, getPrizeClaimedEventEncoder, getPrizeCodec, getPrizeDecoder, getPrizeEncoder, getPrizesFundedEventCodec, getPrizesFundedEventDecoder, getPrizesFundedEventDiscriminatorBytes, getPrizesFundedEventEncoder, getRandomnessRetriedEventCodec, getRandomnessRetriedEventDecoder, getRandomnessRetriedEventDiscriminatorBytes, getRandomnessRetriedEventEncoder, getRetryDrawDiscriminatorBytes, getRetryDrawInstruction, getRetryDrawInstructionAsync, getRetryDrawInstructionDataCodec, getRetryDrawInstructionDataDecoder, getRetryDrawInstructionDataEncoder, getSellTokensDiscriminatorBytes, getSellTokensInstruction, getSellTokensInstructionAsync, getSellTokensInstructionDataCodec, getSellTokensInstructionDataDecoder, getSellTokensInstructionDataEncoder, getTierCodec, getTierDecoder, getTierEncoder, getTokensSoldEventCodec, getTokensSoldEventDecoder, getTokensSoldEventDiscriminatorBytes, getTokensSoldEventEncoder, getWalletActivityCodec, getWalletActivityDecoder, getWalletActivityDiscriminatorBytes, getWalletActivityEncoder, getWalletActivitySize, identifyGaboxAccount, identifyGaboxEvent, identifyGaboxInstruction, isGaboxError, parseBuyPacksInstruction, parseClaimPrizeInstruction, parseClaimPrizeToInstruction, parseDeliverDrawInstruction, parseDrawResolvedEvent, parseExpireDrawInstruction, parseFundPrizesInstruction, parseGaboxInstruction, parseInitializePoolInstruction, parsePacksBoughtEvent, parsePoolCreatedEvent, parsePrizeClaimedEvent, parsePrizesFundedEvent, parseRandomnessRetriedEvent, parseRetryDrawInstruction, parseSellTokensInstruction, parseTokensSoldEvent, generated_exports as t };
572
732
 
573
733
  //# sourceMappingURL=index.js.map