@gabox-labs/sdk 0.1.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.
- package/CHANGELOG.md +37 -0
- package/LICENSE +21 -0
- package/README.md +511 -0
- package/dist/gaboxV2-CV2XltqC.js +3347 -0
- package/dist/gaboxV2-CV2XltqC.js.map +1 -0
- package/dist/generated/index.d.ts +1468 -0
- package/dist/generated/index.js +795 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/index-BxvSkzCO.d.ts +471 -0
- package/dist/index.d.ts +823 -0
- package/dist/index.js +1763 -0
- package/dist/index.js.map +1 -0
- package/dist/pump/index.d.ts +2 -0
- package/dist/pump/index.js +2 -0
- package/dist/pump-D0K_0uiC.js +1531 -0
- package/dist/pump-D0K_0uiC.js.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/llms.txt +22 -0
- package/package.json +97 -0
- package/skills/gabox-sdk/SKILL.md +163 -0
- package/skills/gabox-sdk/references/api.md +149 -0
|
@@ -0,0 +1,795 @@
|
|
|
1
|
+
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { $ as getFulfillDrawInstructionDataCodec, $n as getPrizeEncoder, $t as findPoolPda, A as getRetryDrawInstructionDataCodec, An as fetchMaybePool, At as getClaimPrizeInstructionAsync, B as getInitializePoolInstructionDataEncoder, Bn as fetchAllMaybeDraw, Bt as getBuyPackInstructionDataDecoder, C as getSellPrizeInstructionDataDecoder, Cn as getReferralDiscriminatorBytes, Ct as getClaimReferralInstructionDataCodec, D as getRetryDrawDiscriminatorBytes, Dn as decodePool, Dt as CLAIM_PRIZE_DISCRIMINATOR, E as RETRY_DRAW_DISCRIMINATOR, En as POOL_DISCRIMINATOR, Et as parseClaimReferralInstruction, F as getInitializePoolDiscriminatorBytes, Fn as getPoolEncoder, Ft as BUY_PACK_DISCRIMINATOR, G as getFundPrizesInstructionDataCodec, Gn as getDrawDiscriminatorBytes, Gt as getBindReferrerInstruction, H as FUND_PRIZES_DISCRIMINATOR, Hn as fetchMaybeDraw, Ht as parseBuyPackInstruction, I as getInitializePoolInstruction, In as getPoolSize, It as getBuyPackDiscriminatorBytes, J as parseFundPrizesInstruction, Jn as getTierCodec, Jt as getBindReferrerInstructionDataDecoder, K as getFundPrizesInstructionDataDecoder, Kn as getDrawEncoder, Kt as getBindReferrerInstructionAsync, L as getInitializePoolInstructionAsync, Ln as DRAW_DISCRIMINATOR, Lt as getBuyPackInstruction, M as getRetryDrawInstructionDataEncoder, Mn as getPoolCodec, Mt as getClaimPrizeInstructionDataDecoder, N as parseRetryDrawInstruction, Nn as getPoolDecoder, Nt as getClaimPrizeInstructionDataEncoder, O as getRetryDrawInstruction, On as fetchAllMaybePool, Ot as getClaimPrizeDiscriminatorBytes, P as INITIALIZE_POOL_DISCRIMINATOR, Pn as getPoolDiscriminatorBytes, Pt as parseClaimPrizeInstruction, Q as getFulfillDrawInstructionAsync, Qn as getPrizeDecoder, Qt as findReferralPda, R as getInitializePoolInstructionDataCodec, Rn as decodeDraw, Rt as getBuyPackInstructionAsync, S as getSellPrizeInstructionDataCodec, Sn as getReferralDecoder, St as getClaimReferralInstructionAsync, T as parseSellPrizeInstruction, Tn as getReferralSize, Tt as getClaimReferralInstructionDataEncoder, U as getFundPrizesDiscriminatorBytes, Un as getDrawCodec, Ut as BIND_REFERRER_DISCRIMINATOR, V as parseInitializePoolInstruction, Vn as fetchDraw, Vt as getBuyPackInstructionDataEncoder, W as getFundPrizesInstruction, Wn as getDrawDecoder, Wt as getBindReferrerDiscriminatorBytes, X as getFulfillDrawDiscriminatorBytes, Xn as getTierEncoder, Xt as parseBindReferrerInstruction, Y as FULFILL_DRAW_DISCRIMINATOR, Yn as getTierDecoder, Yt as getBindReferrerInstructionDataEncoder, Z as getFulfillDrawInstruction, Zn as getPrizeCodec, Zt as findReferralLinkPda, _ as parseSellTokensInstruction, _n as fetchAllMaybeReferral, _t as getDeliverDrawInstructionDataEncoder, a as gaboxV2Program, an as decodeReferralLink, at as getExpireDrawInstruction, b as getSellPrizeInstruction, bn as fetchReferral, bt as getClaimReferralDiscriminatorBytes, c as identifyGaboxV2Instruction, cn as fetchMaybeReferralLink, ct as getExpireDrawInstructionDataDecoder, d as getSellTokensDiscriminatorBytes, dn as getReferralLinkDecoder, dt as DELIVER_DRAW_DISCRIMINATOR, en as findLinkPda, er as DrawStatus, et as getFulfillDrawInstructionDataDecoder, f as getSellTokensInstruction, fn as getReferralLinkDiscriminatorBytes, ft as getDeliverDrawDiscriminatorBytes, g as getSellTokensInstructionDataEncoder, gn as decodeReferral, gt as getDeliverDrawInstructionDataDecoder, h as getSellTokensInstructionDataDecoder, hn as REFERRAL_DISCRIMINATOR, ht as getDeliverDrawInstructionDataCodec, i as GaboxV2Instruction, in as REFERRAL_LINK_DISCRIMINATOR, it as getExpireDrawDiscriminatorBytes, j as getRetryDrawInstructionDataDecoder, jn as fetchPool, jt as getClaimPrizeInstructionDataCodec, k as getRetryDrawInstructionAsync, kn as fetchAllPool, kt as getClaimPrizeInstruction, l as parseGaboxV2Instruction, ln as fetchReferralLink, lt as getExpireDrawInstructionDataEncoder, m as getSellTokensInstructionDataCodec, mn as getReferralLinkSize, mt as getDeliverDrawInstructionAsync, n as GaboxV2Account, nn as findDrawPda, nr as getDrawStatusDecoder, nt as parseFulfillDrawInstruction, o as identifyGaboxV2Account, on as fetchAllMaybeReferralLink, ot as getExpireDrawInstructionAsync, p as getSellTokensInstructionAsync, pn as getReferralLinkEncoder, pt as getDeliverDrawInstruction, q as getFundPrizesInstructionDataEncoder, qn as getDrawSize, qt as getBindReferrerInstructionDataCodec, r as GaboxV2Event, rn as findClaimReferralReferralPda, rr as getDrawStatusEncoder, rt as EXPIRE_DRAW_DISCRIMINATOR, s as identifyGaboxV2Event, sn as fetchAllReferralLink, st as getExpireDrawInstructionDataCodec, t as GABOX_V2_PROGRAM_ADDRESS, tn as findIdentityPda, tr as getDrawStatusCodec, tt as getFulfillDrawInstructionDataEncoder, u as SELL_TOKENS_DISCRIMINATOR, un as getReferralLinkCodec, ut as parseExpireDrawInstruction, v as SELL_PRIZE_DISCRIMINATOR, vn as fetchAllReferral, vt as parseDeliverDrawInstruction, w as getSellPrizeInstructionDataEncoder, wn as getReferralEncoder, wt as getClaimReferralInstructionDataDecoder, x as getSellPrizeInstructionAsync, xn as getReferralCodec, xt as getClaimReferralInstruction, y as getSellPrizeDiscriminatorBytes, yn as fetchMaybeReferral, yt as CLAIM_REFERRAL_DISCRIMINATOR, z as getInitializePoolInstructionDataDecoder, zn as fetchAllDraw, zt as getBuyPackInstructionDataCodec } from "../gaboxV2-CV2XltqC.js";
|
|
3
|
+
import { combineCodec, containsBytes, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBooleanDecoder, getBooleanEncoder, getBytesDecoder, getBytesEncoder, getConstantDecoder, getConstantEncoder, getHiddenPrefixDecoder, getHiddenPrefixEncoder, getStructDecoder, getStructEncoder, getU16Decoder, getU16Encoder, getU64Decoder, getU64Encoder, getU8Decoder, getU8Encoder, isProgramError } from "@solana/kit";
|
|
4
|
+
//#region src/generated/events/drawResolved.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
|
+
const DRAW_RESOLVED_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
13
|
+
127,
|
|
14
|
+
177,
|
|
15
|
+
62,
|
|
16
|
+
146,
|
|
17
|
+
164,
|
|
18
|
+
90,
|
|
19
|
+
185,
|
|
20
|
+
218
|
|
21
|
+
]);
|
|
22
|
+
function getDrawResolvedEventDiscriminatorBytes() {
|
|
23
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(DRAW_RESOLVED_EVENT_DISCRIMINATOR);
|
|
24
|
+
}
|
|
25
|
+
/** Gets the encoder for {@link DrawResolvedEventArgs} event data. */
|
|
26
|
+
function getDrawResolvedEventEncoder() {
|
|
27
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
28
|
+
["pool", getAddressEncoder()],
|
|
29
|
+
["seq", getU64Encoder()],
|
|
30
|
+
["purchaser", getAddressEncoder()],
|
|
31
|
+
["amount", getU64Encoder()],
|
|
32
|
+
["randomness", fixEncoderSize(getBytesEncoder(), 32)],
|
|
33
|
+
["timedOut", getBooleanEncoder()]
|
|
34
|
+
]), [getConstantEncoder(DRAW_RESOLVED_EVENT_DISCRIMINATOR)]);
|
|
35
|
+
}
|
|
36
|
+
/** Gets the decoder for {@link DrawResolvedEvent} event data. */
|
|
37
|
+
function getDrawResolvedEventDecoder() {
|
|
38
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
39
|
+
["pool", getAddressDecoder()],
|
|
40
|
+
["seq", getU64Decoder()],
|
|
41
|
+
["purchaser", getAddressDecoder()],
|
|
42
|
+
["amount", getU64Decoder()],
|
|
43
|
+
["randomness", fixDecoderSize(getBytesDecoder(), 32)],
|
|
44
|
+
["timedOut", getBooleanDecoder()]
|
|
45
|
+
]), [getConstantDecoder(DRAW_RESOLVED_EVENT_DISCRIMINATOR)]);
|
|
46
|
+
}
|
|
47
|
+
/** Gets the codec for {@link DrawResolvedEvent} event data. */
|
|
48
|
+
function getDrawResolvedEventCodec() {
|
|
49
|
+
return combineCodec(getDrawResolvedEventEncoder(), getDrawResolvedEventDecoder());
|
|
50
|
+
}
|
|
51
|
+
/** Parses the provided bytes into {@link DrawResolvedEvent} event data. */
|
|
52
|
+
function parseDrawResolvedEvent(data) {
|
|
53
|
+
if (containsBytes(data, DRAW_RESOLVED_EVENT_DISCRIMINATOR, 0)) return getDrawResolvedEventDecoder().decode(data);
|
|
54
|
+
throw new Error("The provided data does not match the \"DrawResolvedEvent\" event discriminators.");
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/generated/events/packBought.ts
|
|
58
|
+
/**
|
|
59
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
60
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
61
|
+
* to add features, then rerun Codama to update it.
|
|
62
|
+
*
|
|
63
|
+
* @see https://github.com/codama-idl/codama
|
|
64
|
+
*/
|
|
65
|
+
const PACK_BOUGHT_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
66
|
+
220,
|
|
67
|
+
208,
|
|
68
|
+
74,
|
|
69
|
+
75,
|
|
70
|
+
42,
|
|
71
|
+
144,
|
|
72
|
+
231,
|
|
73
|
+
69
|
|
74
|
+
]);
|
|
75
|
+
function getPackBoughtEventDiscriminatorBytes() {
|
|
76
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(PACK_BOUGHT_EVENT_DISCRIMINATOR);
|
|
77
|
+
}
|
|
78
|
+
/** Gets the encoder for {@link PackBoughtEventArgs} event data. */
|
|
79
|
+
function getPackBoughtEventEncoder() {
|
|
80
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
81
|
+
["pool", getAddressEncoder()],
|
|
82
|
+
["seq", getU64Encoder()],
|
|
83
|
+
["purchaser", getAddressEncoder()],
|
|
84
|
+
["venue", getAddressEncoder()],
|
|
85
|
+
["tokensBought", getU64Encoder()],
|
|
86
|
+
["venueDebit", getU64Encoder()],
|
|
87
|
+
["feeLamports", getU64Encoder()],
|
|
88
|
+
["referralLamports", getU64Encoder()],
|
|
89
|
+
["protocolLamports", getU64Encoder()],
|
|
90
|
+
["vrfDebit", getU64Encoder()],
|
|
91
|
+
["prizes", getArrayEncoder(getPrizeEncoder(), { size: 8 })]
|
|
92
|
+
]), [getConstantEncoder(PACK_BOUGHT_EVENT_DISCRIMINATOR)]);
|
|
93
|
+
}
|
|
94
|
+
/** Gets the decoder for {@link PackBoughtEvent} event data. */
|
|
95
|
+
function getPackBoughtEventDecoder() {
|
|
96
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
97
|
+
["pool", getAddressDecoder()],
|
|
98
|
+
["seq", getU64Decoder()],
|
|
99
|
+
["purchaser", getAddressDecoder()],
|
|
100
|
+
["venue", getAddressDecoder()],
|
|
101
|
+
["tokensBought", getU64Decoder()],
|
|
102
|
+
["venueDebit", getU64Decoder()],
|
|
103
|
+
["feeLamports", getU64Decoder()],
|
|
104
|
+
["referralLamports", getU64Decoder()],
|
|
105
|
+
["protocolLamports", getU64Decoder()],
|
|
106
|
+
["vrfDebit", getU64Decoder()],
|
|
107
|
+
["prizes", getArrayDecoder(getPrizeDecoder(), { size: 8 })]
|
|
108
|
+
]), [getConstantDecoder(PACK_BOUGHT_EVENT_DISCRIMINATOR)]);
|
|
109
|
+
}
|
|
110
|
+
/** Gets the codec for {@link PackBoughtEvent} event data. */
|
|
111
|
+
function getPackBoughtEventCodec() {
|
|
112
|
+
return combineCodec(getPackBoughtEventEncoder(), getPackBoughtEventDecoder());
|
|
113
|
+
}
|
|
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.");
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/generated/events/poolCreated.ts
|
|
121
|
+
/**
|
|
122
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
123
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
124
|
+
* to add features, then rerun Codama to update it.
|
|
125
|
+
*
|
|
126
|
+
* @see https://github.com/codama-idl/codama
|
|
127
|
+
*/
|
|
128
|
+
const POOL_CREATED_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
129
|
+
202,
|
|
130
|
+
44,
|
|
131
|
+
41,
|
|
132
|
+
88,
|
|
133
|
+
104,
|
|
134
|
+
220,
|
|
135
|
+
157,
|
|
136
|
+
82
|
|
137
|
+
]);
|
|
138
|
+
function getPoolCreatedEventDiscriminatorBytes() {
|
|
139
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(POOL_CREATED_EVENT_DISCRIMINATOR);
|
|
140
|
+
}
|
|
141
|
+
/** Gets the encoder for {@link PoolCreatedEventArgs} event data. */
|
|
142
|
+
function getPoolCreatedEventEncoder() {
|
|
143
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
144
|
+
["pool", getAddressEncoder()],
|
|
145
|
+
["mint", getAddressEncoder()],
|
|
146
|
+
["creator", getAddressEncoder()],
|
|
147
|
+
["packTokens", getU64Encoder()],
|
|
148
|
+
["feeBps", getU16Encoder()],
|
|
149
|
+
["tiers", getArrayEncoder(getTierEncoder(), { size: 8 })],
|
|
150
|
+
["seedTokens", getU64Encoder()],
|
|
151
|
+
["seedLamports", getU64Encoder()]
|
|
152
|
+
]), [getConstantEncoder(POOL_CREATED_EVENT_DISCRIMINATOR)]);
|
|
153
|
+
}
|
|
154
|
+
/** Gets the decoder for {@link PoolCreatedEvent} event data. */
|
|
155
|
+
function getPoolCreatedEventDecoder() {
|
|
156
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
157
|
+
["pool", getAddressDecoder()],
|
|
158
|
+
["mint", getAddressDecoder()],
|
|
159
|
+
["creator", getAddressDecoder()],
|
|
160
|
+
["packTokens", getU64Decoder()],
|
|
161
|
+
["feeBps", getU16Decoder()],
|
|
162
|
+
["tiers", getArrayDecoder(getTierDecoder(), { size: 8 })],
|
|
163
|
+
["seedTokens", getU64Decoder()],
|
|
164
|
+
["seedLamports", getU64Decoder()]
|
|
165
|
+
]), [getConstantDecoder(POOL_CREATED_EVENT_DISCRIMINATOR)]);
|
|
166
|
+
}
|
|
167
|
+
/** Gets the codec for {@link PoolCreatedEvent} event data. */
|
|
168
|
+
function getPoolCreatedEventCodec() {
|
|
169
|
+
return combineCodec(getPoolCreatedEventEncoder(), getPoolCreatedEventDecoder());
|
|
170
|
+
}
|
|
171
|
+
/** Parses the provided bytes into {@link PoolCreatedEvent} event data. */
|
|
172
|
+
function parsePoolCreatedEvent(data) {
|
|
173
|
+
if (containsBytes(data, POOL_CREATED_EVENT_DISCRIMINATOR, 0)) return getPoolCreatedEventDecoder().decode(data);
|
|
174
|
+
throw new Error("The provided data does not match the \"PoolCreatedEvent\" event discriminators.");
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/generated/events/prizeRedeemed.ts
|
|
178
|
+
/**
|
|
179
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
180
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
181
|
+
* to add features, then rerun Codama to update it.
|
|
182
|
+
*
|
|
183
|
+
* @see https://github.com/codama-idl/codama
|
|
184
|
+
*/
|
|
185
|
+
const PRIZE_REDEEMED_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
186
|
+
243,
|
|
187
|
+
193,
|
|
188
|
+
245,
|
|
189
|
+
166,
|
|
190
|
+
160,
|
|
191
|
+
101,
|
|
192
|
+
182,
|
|
193
|
+
207
|
|
194
|
+
]);
|
|
195
|
+
function getPrizeRedeemedEventDiscriminatorBytes() {
|
|
196
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(PRIZE_REDEEMED_EVENT_DISCRIMINATOR);
|
|
197
|
+
}
|
|
198
|
+
/** Gets the encoder for {@link PrizeRedeemedEventArgs} event data. */
|
|
199
|
+
function getPrizeRedeemedEventEncoder() {
|
|
200
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
201
|
+
["pool", getAddressEncoder()],
|
|
202
|
+
["seq", getU64Encoder()],
|
|
203
|
+
["purchaser", getAddressEncoder()],
|
|
204
|
+
["amount", getU64Encoder()],
|
|
205
|
+
["sold", getBooleanEncoder()]
|
|
206
|
+
]), [getConstantEncoder(PRIZE_REDEEMED_EVENT_DISCRIMINATOR)]);
|
|
207
|
+
}
|
|
208
|
+
/** Gets the decoder for {@link PrizeRedeemedEvent} event data. */
|
|
209
|
+
function getPrizeRedeemedEventDecoder() {
|
|
210
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
211
|
+
["pool", getAddressDecoder()],
|
|
212
|
+
["seq", getU64Decoder()],
|
|
213
|
+
["purchaser", getAddressDecoder()],
|
|
214
|
+
["amount", getU64Decoder()],
|
|
215
|
+
["sold", getBooleanDecoder()]
|
|
216
|
+
]), [getConstantDecoder(PRIZE_REDEEMED_EVENT_DISCRIMINATOR)]);
|
|
217
|
+
}
|
|
218
|
+
/** Gets the codec for {@link PrizeRedeemedEvent} event data. */
|
|
219
|
+
function getPrizeRedeemedEventCodec() {
|
|
220
|
+
return combineCodec(getPrizeRedeemedEventEncoder(), getPrizeRedeemedEventDecoder());
|
|
221
|
+
}
|
|
222
|
+
/** Parses the provided bytes into {@link PrizeRedeemedEvent} event data. */
|
|
223
|
+
function parsePrizeRedeemedEvent(data) {
|
|
224
|
+
if (containsBytes(data, PRIZE_REDEEMED_EVENT_DISCRIMINATOR, 0)) return getPrizeRedeemedEventDecoder().decode(data);
|
|
225
|
+
throw new Error("The provided data does not match the \"PrizeRedeemedEvent\" event discriminators.");
|
|
226
|
+
}
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/generated/events/prizesFunded.ts
|
|
229
|
+
/**
|
|
230
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
231
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
232
|
+
* to add features, then rerun Codama to update it.
|
|
233
|
+
*
|
|
234
|
+
* @see https://github.com/codama-idl/codama
|
|
235
|
+
*/
|
|
236
|
+
const PRIZES_FUNDED_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
237
|
+
188,
|
|
238
|
+
129,
|
|
239
|
+
185,
|
|
240
|
+
44,
|
|
241
|
+
234,
|
|
242
|
+
71,
|
|
243
|
+
53,
|
|
244
|
+
60
|
|
245
|
+
]);
|
|
246
|
+
function getPrizesFundedEventDiscriminatorBytes() {
|
|
247
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(PRIZES_FUNDED_EVENT_DISCRIMINATOR);
|
|
248
|
+
}
|
|
249
|
+
/** Gets the encoder for {@link PrizesFundedEventArgs} event data. */
|
|
250
|
+
function getPrizesFundedEventEncoder() {
|
|
251
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
252
|
+
["pool", getAddressEncoder()],
|
|
253
|
+
["funder", getAddressEncoder()],
|
|
254
|
+
["amount", getU64Encoder()]
|
|
255
|
+
]), [getConstantEncoder(PRIZES_FUNDED_EVENT_DISCRIMINATOR)]);
|
|
256
|
+
}
|
|
257
|
+
/** Gets the decoder for {@link PrizesFundedEvent} event data. */
|
|
258
|
+
function getPrizesFundedEventDecoder() {
|
|
259
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
260
|
+
["pool", getAddressDecoder()],
|
|
261
|
+
["funder", getAddressDecoder()],
|
|
262
|
+
["amount", getU64Decoder()]
|
|
263
|
+
]), [getConstantDecoder(PRIZES_FUNDED_EVENT_DISCRIMINATOR)]);
|
|
264
|
+
}
|
|
265
|
+
/** Gets the codec for {@link PrizesFundedEvent} event data. */
|
|
266
|
+
function getPrizesFundedEventCodec() {
|
|
267
|
+
return combineCodec(getPrizesFundedEventEncoder(), getPrizesFundedEventDecoder());
|
|
268
|
+
}
|
|
269
|
+
/** Parses the provided bytes into {@link PrizesFundedEvent} event data. */
|
|
270
|
+
function parsePrizesFundedEvent(data) {
|
|
271
|
+
if (containsBytes(data, PRIZES_FUNDED_EVENT_DISCRIMINATOR, 0)) return getPrizesFundedEventDecoder().decode(data);
|
|
272
|
+
throw new Error("The provided data does not match the \"PrizesFundedEvent\" event discriminators.");
|
|
273
|
+
}
|
|
274
|
+
//#endregion
|
|
275
|
+
//#region src/generated/events/randomnessRetried.ts
|
|
276
|
+
/**
|
|
277
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
278
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
279
|
+
* to add features, then rerun Codama to update it.
|
|
280
|
+
*
|
|
281
|
+
* @see https://github.com/codama-idl/codama
|
|
282
|
+
*/
|
|
283
|
+
const RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
284
|
+
243,
|
|
285
|
+
30,
|
|
286
|
+
148,
|
|
287
|
+
22,
|
|
288
|
+
14,
|
|
289
|
+
127,
|
|
290
|
+
52,
|
|
291
|
+
140
|
|
292
|
+
]);
|
|
293
|
+
function getRandomnessRetriedEventDiscriminatorBytes() {
|
|
294
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR);
|
|
295
|
+
}
|
|
296
|
+
/** Gets the encoder for {@link RandomnessRetriedEventArgs} event data. */
|
|
297
|
+
function getRandomnessRetriedEventEncoder() {
|
|
298
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
299
|
+
["pool", getAddressEncoder()],
|
|
300
|
+
["seq", getU64Encoder()],
|
|
301
|
+
["attempt", getU8Encoder()]
|
|
302
|
+
]), [getConstantEncoder(RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR)]);
|
|
303
|
+
}
|
|
304
|
+
/** Gets the decoder for {@link RandomnessRetriedEvent} event data. */
|
|
305
|
+
function getRandomnessRetriedEventDecoder() {
|
|
306
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
307
|
+
["pool", getAddressDecoder()],
|
|
308
|
+
["seq", getU64Decoder()],
|
|
309
|
+
["attempt", getU8Decoder()]
|
|
310
|
+
]), [getConstantDecoder(RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR)]);
|
|
311
|
+
}
|
|
312
|
+
/** Gets the codec for {@link RandomnessRetriedEvent} event data. */
|
|
313
|
+
function getRandomnessRetriedEventCodec() {
|
|
314
|
+
return combineCodec(getRandomnessRetriedEventEncoder(), getRandomnessRetriedEventDecoder());
|
|
315
|
+
}
|
|
316
|
+
/** Parses the provided bytes into {@link RandomnessRetriedEvent} event data. */
|
|
317
|
+
function parseRandomnessRetriedEvent(data) {
|
|
318
|
+
if (containsBytes(data, RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR, 0)) return getRandomnessRetriedEventDecoder().decode(data);
|
|
319
|
+
throw new Error("The provided data does not match the \"RandomnessRetriedEvent\" event discriminators.");
|
|
320
|
+
}
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region src/generated/events/tokensSold.ts
|
|
323
|
+
/**
|
|
324
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
325
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
326
|
+
* to add features, then rerun Codama to update it.
|
|
327
|
+
*
|
|
328
|
+
* @see https://github.com/codama-idl/codama
|
|
329
|
+
*/
|
|
330
|
+
const TOKENS_SOLD_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
331
|
+
217,
|
|
332
|
+
83,
|
|
333
|
+
68,
|
|
334
|
+
137,
|
|
335
|
+
134,
|
|
336
|
+
225,
|
|
337
|
+
94,
|
|
338
|
+
45
|
|
339
|
+
]);
|
|
340
|
+
function getTokensSoldEventDiscriminatorBytes() {
|
|
341
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(TOKENS_SOLD_EVENT_DISCRIMINATOR);
|
|
342
|
+
}
|
|
343
|
+
/** Gets the encoder for {@link TokensSoldEventArgs} event data. */
|
|
344
|
+
function getTokensSoldEventEncoder() {
|
|
345
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
346
|
+
["pool", getAddressEncoder()],
|
|
347
|
+
["seller", getAddressEncoder()],
|
|
348
|
+
["venue", getAddressEncoder()],
|
|
349
|
+
["amount", getU64Encoder()],
|
|
350
|
+
["proceeds", getU64Encoder()],
|
|
351
|
+
["protocolFee", getU64Encoder()]
|
|
352
|
+
]), [getConstantEncoder(TOKENS_SOLD_EVENT_DISCRIMINATOR)]);
|
|
353
|
+
}
|
|
354
|
+
/** Gets the decoder for {@link TokensSoldEvent} event data. */
|
|
355
|
+
function getTokensSoldEventDecoder() {
|
|
356
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
357
|
+
["pool", getAddressDecoder()],
|
|
358
|
+
["seller", getAddressDecoder()],
|
|
359
|
+
["venue", getAddressDecoder()],
|
|
360
|
+
["amount", getU64Decoder()],
|
|
361
|
+
["proceeds", getU64Decoder()],
|
|
362
|
+
["protocolFee", getU64Decoder()]
|
|
363
|
+
]), [getConstantDecoder(TOKENS_SOLD_EVENT_DISCRIMINATOR)]);
|
|
364
|
+
}
|
|
365
|
+
/** Gets the codec for {@link TokensSoldEvent} event data. */
|
|
366
|
+
function getTokensSoldEventCodec() {
|
|
367
|
+
return combineCodec(getTokensSoldEventEncoder(), getTokensSoldEventDecoder());
|
|
368
|
+
}
|
|
369
|
+
/** Parses the provided bytes into {@link TokensSoldEvent} event data. */
|
|
370
|
+
function parseTokensSoldEvent(data) {
|
|
371
|
+
if (containsBytes(data, TOKENS_SOLD_EVENT_DISCRIMINATOR, 0)) return getTokensSoldEventDecoder().decode(data);
|
|
372
|
+
throw new Error("The provided data does not match the \"TokensSoldEvent\" event discriminators.");
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/generated/errors/gaboxV2.ts
|
|
376
|
+
/**
|
|
377
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
378
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
379
|
+
* to add features, then rerun Codama to update it.
|
|
380
|
+
*
|
|
381
|
+
* @see https://github.com/codama-idl/codama
|
|
382
|
+
*/
|
|
383
|
+
/** Arithmetic: Arithmetic overflow or inconsistent accounting */
|
|
384
|
+
const GABOX_V2_ERROR__ARITHMETIC = 6e3;
|
|
385
|
+
/** InvalidDistribution: Invalid prize distribution */
|
|
386
|
+
const GABOX_V2_ERROR__INVALID_DISTRIBUTION = 6001;
|
|
387
|
+
/** UnfundedExpectation: Expected token award exceeds tokens purchased */
|
|
388
|
+
const GABOX_V2_ERROR__UNFUNDED_EXPECTATION = 6002;
|
|
389
|
+
/** UnsupportedMint: Mint must have no mint/freeze authority and only supported extensions */
|
|
390
|
+
const GABOX_V2_ERROR__UNSUPPORTED_MINT = 6003;
|
|
391
|
+
/** InsolventInventory: Prize inventory does not cover reservations */
|
|
392
|
+
const GABOX_V2_ERROR__INSOLVENT_INVENTORY = 6004;
|
|
393
|
+
/** PrizeCapChanged: Top prize is below the signed minimum; refresh the offer */
|
|
394
|
+
const GABOX_V2_ERROR__PRIZE_CAP_CHANGED = 6005;
|
|
395
|
+
/** PackTooSmall: A pack pays zero tokens on some tier */
|
|
396
|
+
const GABOX_V2_ERROR__PACK_TOO_SMALL = 6006;
|
|
397
|
+
/** JackpotBelowOnePack: The largest tier must pay at least one pack */
|
|
398
|
+
const GABOX_V2_ERROR__JACKPOT_BELOW_ONE_PACK = 6007;
|
|
399
|
+
/** InvalidVenue: Incorrect trade program, account order, or token binding */
|
|
400
|
+
const GABOX_V2_ERROR__INVALID_VENUE = 6008;
|
|
401
|
+
/** IncorrectTokenDelta: Trade did not move the exact token amount */
|
|
402
|
+
const GABOX_V2_ERROR__INCORRECT_TOKEN_DELTA = 6009;
|
|
403
|
+
/** SlippageExceeded: Spend exceeds the signed limit */
|
|
404
|
+
const GABOX_V2_ERROR__SLIPPAGE_EXCEEDED = 6010;
|
|
405
|
+
/** NotPending: Draw is not awaiting randomness */
|
|
406
|
+
const GABOX_V2_ERROR__NOT_PENDING = 6011;
|
|
407
|
+
/** NotReady: Draw has not resolved */
|
|
408
|
+
const GABOX_V2_ERROR__NOT_READY = 6012;
|
|
409
|
+
/** RetryTooSoon: Retry interval has not elapsed */
|
|
410
|
+
const GABOX_V2_ERROR__RETRY_TOO_SOON = 6013;
|
|
411
|
+
/** RetryUnavailable: Retry limit reached or draw expired */
|
|
412
|
+
const GABOX_V2_ERROR__RETRY_UNAVAILABLE = 6014;
|
|
413
|
+
/** NotExpired: Oracle timeout has not elapsed */
|
|
414
|
+
const GABOX_V2_ERROR__NOT_EXPIRED = 6015;
|
|
415
|
+
/** ZeroAmount: Amount must be positive */
|
|
416
|
+
const GABOX_V2_ERROR__ZERO_AMOUNT = 6016;
|
|
417
|
+
/** InvalidFee: Creator fee exceeds the limit */
|
|
418
|
+
const GABOX_V2_ERROR__INVALID_FEE = 6017;
|
|
419
|
+
/** CoinNotCreatedHere: A pool must be created in the same transaction that creates the coin */
|
|
420
|
+
const GABOX_V2_ERROR__COIN_NOT_CREATED_HERE = 6018;
|
|
421
|
+
/** InvalidReferral: Referral account is missing or inconsistent */
|
|
422
|
+
const GABOX_V2_ERROR__INVALID_REFERRAL = 6019;
|
|
423
|
+
/** NothingOwedToReferrer: No referral revenue is owed */
|
|
424
|
+
const GABOX_V2_ERROR__NOTHING_OWED_TO_REFERRER = 6020;
|
|
425
|
+
/** InvalidFeeCollector: Fee account is not the protocol fee collector's */
|
|
426
|
+
const GABOX_V2_ERROR__INVALID_FEE_COLLECTOR = 6021;
|
|
427
|
+
let gaboxV2ErrorMessages;
|
|
428
|
+
if (process.env["NODE_ENV"] !== "production") gaboxV2ErrorMessages = {
|
|
429
|
+
[GABOX_V2_ERROR__ARITHMETIC]: `Arithmetic overflow or inconsistent accounting`,
|
|
430
|
+
[GABOX_V2_ERROR__COIN_NOT_CREATED_HERE]: `A pool must be created in the same transaction that creates the coin`,
|
|
431
|
+
[GABOX_V2_ERROR__INCORRECT_TOKEN_DELTA]: `Trade did not move the exact token amount`,
|
|
432
|
+
[GABOX_V2_ERROR__INSOLVENT_INVENTORY]: `Prize inventory does not cover reservations`,
|
|
433
|
+
[GABOX_V2_ERROR__INVALID_DISTRIBUTION]: `Invalid prize distribution`,
|
|
434
|
+
[GABOX_V2_ERROR__INVALID_FEE]: `Creator fee exceeds the limit`,
|
|
435
|
+
[GABOX_V2_ERROR__INVALID_FEE_COLLECTOR]: `Fee account is not the protocol fee collector's`,
|
|
436
|
+
[GABOX_V2_ERROR__INVALID_REFERRAL]: `Referral account is missing or inconsistent`,
|
|
437
|
+
[GABOX_V2_ERROR__INVALID_VENUE]: `Incorrect trade program, account order, or token binding`,
|
|
438
|
+
[GABOX_V2_ERROR__JACKPOT_BELOW_ONE_PACK]: `The largest tier must pay at least one pack`,
|
|
439
|
+
[GABOX_V2_ERROR__NOT_EXPIRED]: `Oracle timeout has not elapsed`,
|
|
440
|
+
[GABOX_V2_ERROR__NOTHING_OWED_TO_REFERRER]: `No referral revenue is owed`,
|
|
441
|
+
[GABOX_V2_ERROR__NOT_PENDING]: `Draw is not awaiting randomness`,
|
|
442
|
+
[GABOX_V2_ERROR__NOT_READY]: `Draw has not resolved`,
|
|
443
|
+
[GABOX_V2_ERROR__PACK_TOO_SMALL]: `A pack pays zero tokens on some tier`,
|
|
444
|
+
[GABOX_V2_ERROR__PRIZE_CAP_CHANGED]: `Top prize is below the signed minimum; refresh the offer`,
|
|
445
|
+
[GABOX_V2_ERROR__RETRY_TOO_SOON]: `Retry interval has not elapsed`,
|
|
446
|
+
[GABOX_V2_ERROR__RETRY_UNAVAILABLE]: `Retry limit reached or draw expired`,
|
|
447
|
+
[GABOX_V2_ERROR__SLIPPAGE_EXCEEDED]: `Spend exceeds the signed limit`,
|
|
448
|
+
[GABOX_V2_ERROR__UNFUNDED_EXPECTATION]: `Expected token award exceeds tokens purchased`,
|
|
449
|
+
[GABOX_V2_ERROR__UNSUPPORTED_MINT]: `Mint must have no mint/freeze authority and only supported extensions`,
|
|
450
|
+
[GABOX_V2_ERROR__ZERO_AMOUNT]: `Amount must be positive`
|
|
451
|
+
};
|
|
452
|
+
function getGaboxV2ErrorMessage(code) {
|
|
453
|
+
if (process.env["NODE_ENV"] !== "production") return gaboxV2ErrorMessages[code];
|
|
454
|
+
return "Error message not available in production bundles.";
|
|
455
|
+
}
|
|
456
|
+
function isGaboxV2Error(error, transactionMessage, code) {
|
|
457
|
+
return isProgramError(error, transactionMessage, GABOX_V2_PROGRAM_ADDRESS, code);
|
|
458
|
+
}
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region src/generated/events/referralBound.ts
|
|
461
|
+
/**
|
|
462
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
463
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
464
|
+
* to add features, then rerun Codama to update it.
|
|
465
|
+
*
|
|
466
|
+
* @see https://github.com/codama-idl/codama
|
|
467
|
+
*/
|
|
468
|
+
const REFERRAL_BOUND_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
469
|
+
12,
|
|
470
|
+
28,
|
|
471
|
+
152,
|
|
472
|
+
148,
|
|
473
|
+
55,
|
|
474
|
+
210,
|
|
475
|
+
102,
|
|
476
|
+
190
|
|
477
|
+
]);
|
|
478
|
+
function getReferralBoundEventDiscriminatorBytes() {
|
|
479
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(REFERRAL_BOUND_EVENT_DISCRIMINATOR);
|
|
480
|
+
}
|
|
481
|
+
/** Gets the encoder for {@link ReferralBoundEventArgs} event data. */
|
|
482
|
+
function getReferralBoundEventEncoder() {
|
|
483
|
+
return getHiddenPrefixEncoder(getStructEncoder([["referee", getAddressEncoder()], ["referrer", getAddressEncoder()]]), [getConstantEncoder(REFERRAL_BOUND_EVENT_DISCRIMINATOR)]);
|
|
484
|
+
}
|
|
485
|
+
/** Gets the decoder for {@link ReferralBoundEvent} event data. */
|
|
486
|
+
function getReferralBoundEventDecoder() {
|
|
487
|
+
return getHiddenPrefixDecoder(getStructDecoder([["referee", getAddressDecoder()], ["referrer", getAddressDecoder()]]), [getConstantDecoder(REFERRAL_BOUND_EVENT_DISCRIMINATOR)]);
|
|
488
|
+
}
|
|
489
|
+
/** Gets the codec for {@link ReferralBoundEvent} event data. */
|
|
490
|
+
function getReferralBoundEventCodec() {
|
|
491
|
+
return combineCodec(getReferralBoundEventEncoder(), getReferralBoundEventDecoder());
|
|
492
|
+
}
|
|
493
|
+
/** Parses the provided bytes into {@link ReferralBoundEvent} event data. */
|
|
494
|
+
function parseReferralBoundEvent(data) {
|
|
495
|
+
if (containsBytes(data, REFERRAL_BOUND_EVENT_DISCRIMINATOR, 0)) return getReferralBoundEventDecoder().decode(data);
|
|
496
|
+
throw new Error("The provided data does not match the \"ReferralBoundEvent\" event discriminators.");
|
|
497
|
+
}
|
|
498
|
+
//#endregion
|
|
499
|
+
//#region src/generated/events/referralClaimed.ts
|
|
500
|
+
/**
|
|
501
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
502
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
503
|
+
* to add features, then rerun Codama to update it.
|
|
504
|
+
*
|
|
505
|
+
* @see https://github.com/codama-idl/codama
|
|
506
|
+
*/
|
|
507
|
+
const REFERRAL_CLAIMED_EVENT_DISCRIMINATOR = new Uint8Array([
|
|
508
|
+
195,
|
|
509
|
+
109,
|
|
510
|
+
77,
|
|
511
|
+
196,
|
|
512
|
+
134,
|
|
513
|
+
226,
|
|
514
|
+
78,
|
|
515
|
+
108
|
|
516
|
+
]);
|
|
517
|
+
function getReferralClaimedEventDiscriminatorBytes() {
|
|
518
|
+
return fixEncoderSize(getBytesEncoder(), 8).encode(REFERRAL_CLAIMED_EVENT_DISCRIMINATOR);
|
|
519
|
+
}
|
|
520
|
+
/** Gets the encoder for {@link ReferralClaimedEventArgs} event data. */
|
|
521
|
+
function getReferralClaimedEventEncoder() {
|
|
522
|
+
return getHiddenPrefixEncoder(getStructEncoder([
|
|
523
|
+
["pool", getAddressEncoder()],
|
|
524
|
+
["referrer", getAddressEncoder()],
|
|
525
|
+
["amount", getU64Encoder()]
|
|
526
|
+
]), [getConstantEncoder(REFERRAL_CLAIMED_EVENT_DISCRIMINATOR)]);
|
|
527
|
+
}
|
|
528
|
+
/** Gets the decoder for {@link ReferralClaimedEvent} event data. */
|
|
529
|
+
function getReferralClaimedEventDecoder() {
|
|
530
|
+
return getHiddenPrefixDecoder(getStructDecoder([
|
|
531
|
+
["pool", getAddressDecoder()],
|
|
532
|
+
["referrer", getAddressDecoder()],
|
|
533
|
+
["amount", getU64Decoder()]
|
|
534
|
+
]), [getConstantDecoder(REFERRAL_CLAIMED_EVENT_DISCRIMINATOR)]);
|
|
535
|
+
}
|
|
536
|
+
/** Gets the codec for {@link ReferralClaimedEvent} event data. */
|
|
537
|
+
function getReferralClaimedEventCodec() {
|
|
538
|
+
return combineCodec(getReferralClaimedEventEncoder(), getReferralClaimedEventDecoder());
|
|
539
|
+
}
|
|
540
|
+
/** Parses the provided bytes into {@link ReferralClaimedEvent} event data. */
|
|
541
|
+
function parseReferralClaimedEvent(data) {
|
|
542
|
+
if (containsBytes(data, REFERRAL_CLAIMED_EVENT_DISCRIMINATOR, 0)) return getReferralClaimedEventDecoder().decode(data);
|
|
543
|
+
throw new Error("The provided data does not match the \"ReferralClaimedEvent\" event discriminators.");
|
|
544
|
+
}
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region src/generated/index.ts
|
|
547
|
+
var generated_exports = /* @__PURE__ */ __exportAll({
|
|
548
|
+
BIND_REFERRER_DISCRIMINATOR: () => BIND_REFERRER_DISCRIMINATOR,
|
|
549
|
+
BUY_PACK_DISCRIMINATOR: () => BUY_PACK_DISCRIMINATOR,
|
|
550
|
+
CLAIM_PRIZE_DISCRIMINATOR: () => CLAIM_PRIZE_DISCRIMINATOR,
|
|
551
|
+
CLAIM_REFERRAL_DISCRIMINATOR: () => CLAIM_REFERRAL_DISCRIMINATOR,
|
|
552
|
+
DELIVER_DRAW_DISCRIMINATOR: () => DELIVER_DRAW_DISCRIMINATOR,
|
|
553
|
+
DRAW_DISCRIMINATOR: () => DRAW_DISCRIMINATOR,
|
|
554
|
+
DRAW_RESOLVED_EVENT_DISCRIMINATOR: () => DRAW_RESOLVED_EVENT_DISCRIMINATOR,
|
|
555
|
+
DrawStatus: () => DrawStatus,
|
|
556
|
+
EXPIRE_DRAW_DISCRIMINATOR: () => EXPIRE_DRAW_DISCRIMINATOR,
|
|
557
|
+
FULFILL_DRAW_DISCRIMINATOR: () => FULFILL_DRAW_DISCRIMINATOR,
|
|
558
|
+
FUND_PRIZES_DISCRIMINATOR: () => FUND_PRIZES_DISCRIMINATOR,
|
|
559
|
+
GABOX_V2_ERROR__ARITHMETIC: () => GABOX_V2_ERROR__ARITHMETIC,
|
|
560
|
+
GABOX_V2_ERROR__COIN_NOT_CREATED_HERE: () => GABOX_V2_ERROR__COIN_NOT_CREATED_HERE,
|
|
561
|
+
GABOX_V2_ERROR__INCORRECT_TOKEN_DELTA: () => GABOX_V2_ERROR__INCORRECT_TOKEN_DELTA,
|
|
562
|
+
GABOX_V2_ERROR__INSOLVENT_INVENTORY: () => GABOX_V2_ERROR__INSOLVENT_INVENTORY,
|
|
563
|
+
GABOX_V2_ERROR__INVALID_DISTRIBUTION: () => GABOX_V2_ERROR__INVALID_DISTRIBUTION,
|
|
564
|
+
GABOX_V2_ERROR__INVALID_FEE: () => GABOX_V2_ERROR__INVALID_FEE,
|
|
565
|
+
GABOX_V2_ERROR__INVALID_FEE_COLLECTOR: () => GABOX_V2_ERROR__INVALID_FEE_COLLECTOR,
|
|
566
|
+
GABOX_V2_ERROR__INVALID_REFERRAL: () => GABOX_V2_ERROR__INVALID_REFERRAL,
|
|
567
|
+
GABOX_V2_ERROR__INVALID_VENUE: () => GABOX_V2_ERROR__INVALID_VENUE,
|
|
568
|
+
GABOX_V2_ERROR__JACKPOT_BELOW_ONE_PACK: () => GABOX_V2_ERROR__JACKPOT_BELOW_ONE_PACK,
|
|
569
|
+
GABOX_V2_ERROR__NOTHING_OWED_TO_REFERRER: () => GABOX_V2_ERROR__NOTHING_OWED_TO_REFERRER,
|
|
570
|
+
GABOX_V2_ERROR__NOT_EXPIRED: () => GABOX_V2_ERROR__NOT_EXPIRED,
|
|
571
|
+
GABOX_V2_ERROR__NOT_PENDING: () => GABOX_V2_ERROR__NOT_PENDING,
|
|
572
|
+
GABOX_V2_ERROR__NOT_READY: () => GABOX_V2_ERROR__NOT_READY,
|
|
573
|
+
GABOX_V2_ERROR__PACK_TOO_SMALL: () => GABOX_V2_ERROR__PACK_TOO_SMALL,
|
|
574
|
+
GABOX_V2_ERROR__PRIZE_CAP_CHANGED: () => GABOX_V2_ERROR__PRIZE_CAP_CHANGED,
|
|
575
|
+
GABOX_V2_ERROR__RETRY_TOO_SOON: () => GABOX_V2_ERROR__RETRY_TOO_SOON,
|
|
576
|
+
GABOX_V2_ERROR__RETRY_UNAVAILABLE: () => GABOX_V2_ERROR__RETRY_UNAVAILABLE,
|
|
577
|
+
GABOX_V2_ERROR__SLIPPAGE_EXCEEDED: () => GABOX_V2_ERROR__SLIPPAGE_EXCEEDED,
|
|
578
|
+
GABOX_V2_ERROR__UNFUNDED_EXPECTATION: () => GABOX_V2_ERROR__UNFUNDED_EXPECTATION,
|
|
579
|
+
GABOX_V2_ERROR__UNSUPPORTED_MINT: () => GABOX_V2_ERROR__UNSUPPORTED_MINT,
|
|
580
|
+
GABOX_V2_ERROR__ZERO_AMOUNT: () => GABOX_V2_ERROR__ZERO_AMOUNT,
|
|
581
|
+
GABOX_V2_PROGRAM_ADDRESS: () => GABOX_V2_PROGRAM_ADDRESS,
|
|
582
|
+
GaboxV2Account: () => GaboxV2Account,
|
|
583
|
+
GaboxV2Event: () => GaboxV2Event,
|
|
584
|
+
GaboxV2Instruction: () => GaboxV2Instruction,
|
|
585
|
+
INITIALIZE_POOL_DISCRIMINATOR: () => INITIALIZE_POOL_DISCRIMINATOR,
|
|
586
|
+
PACK_BOUGHT_EVENT_DISCRIMINATOR: () => PACK_BOUGHT_EVENT_DISCRIMINATOR,
|
|
587
|
+
POOL_CREATED_EVENT_DISCRIMINATOR: () => POOL_CREATED_EVENT_DISCRIMINATOR,
|
|
588
|
+
POOL_DISCRIMINATOR: () => POOL_DISCRIMINATOR,
|
|
589
|
+
PRIZES_FUNDED_EVENT_DISCRIMINATOR: () => PRIZES_FUNDED_EVENT_DISCRIMINATOR,
|
|
590
|
+
PRIZE_REDEEMED_EVENT_DISCRIMINATOR: () => PRIZE_REDEEMED_EVENT_DISCRIMINATOR,
|
|
591
|
+
RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR: () => RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR,
|
|
592
|
+
REFERRAL_BOUND_EVENT_DISCRIMINATOR: () => REFERRAL_BOUND_EVENT_DISCRIMINATOR,
|
|
593
|
+
REFERRAL_CLAIMED_EVENT_DISCRIMINATOR: () => REFERRAL_CLAIMED_EVENT_DISCRIMINATOR,
|
|
594
|
+
REFERRAL_DISCRIMINATOR: () => REFERRAL_DISCRIMINATOR,
|
|
595
|
+
REFERRAL_LINK_DISCRIMINATOR: () => REFERRAL_LINK_DISCRIMINATOR,
|
|
596
|
+
RETRY_DRAW_DISCRIMINATOR: () => RETRY_DRAW_DISCRIMINATOR,
|
|
597
|
+
SELL_PRIZE_DISCRIMINATOR: () => SELL_PRIZE_DISCRIMINATOR,
|
|
598
|
+
SELL_TOKENS_DISCRIMINATOR: () => SELL_TOKENS_DISCRIMINATOR,
|
|
599
|
+
TOKENS_SOLD_EVENT_DISCRIMINATOR: () => TOKENS_SOLD_EVENT_DISCRIMINATOR,
|
|
600
|
+
decodeDraw: () => decodeDraw,
|
|
601
|
+
decodePool: () => decodePool,
|
|
602
|
+
decodeReferral: () => decodeReferral,
|
|
603
|
+
decodeReferralLink: () => decodeReferralLink,
|
|
604
|
+
fetchAllDraw: () => fetchAllDraw,
|
|
605
|
+
fetchAllMaybeDraw: () => fetchAllMaybeDraw,
|
|
606
|
+
fetchAllMaybePool: () => fetchAllMaybePool,
|
|
607
|
+
fetchAllMaybeReferral: () => fetchAllMaybeReferral,
|
|
608
|
+
fetchAllMaybeReferralLink: () => fetchAllMaybeReferralLink,
|
|
609
|
+
fetchAllPool: () => fetchAllPool,
|
|
610
|
+
fetchAllReferral: () => fetchAllReferral,
|
|
611
|
+
fetchAllReferralLink: () => fetchAllReferralLink,
|
|
612
|
+
fetchDraw: () => fetchDraw,
|
|
613
|
+
fetchMaybeDraw: () => fetchMaybeDraw,
|
|
614
|
+
fetchMaybePool: () => fetchMaybePool,
|
|
615
|
+
fetchMaybeReferral: () => fetchMaybeReferral,
|
|
616
|
+
fetchMaybeReferralLink: () => fetchMaybeReferralLink,
|
|
617
|
+
fetchPool: () => fetchPool,
|
|
618
|
+
fetchReferral: () => fetchReferral,
|
|
619
|
+
fetchReferralLink: () => fetchReferralLink,
|
|
620
|
+
findClaimReferralReferralPda: () => findClaimReferralReferralPda,
|
|
621
|
+
findDrawPda: () => findDrawPda,
|
|
622
|
+
findIdentityPda: () => findIdentityPda,
|
|
623
|
+
findLinkPda: () => findLinkPda,
|
|
624
|
+
findPoolPda: () => findPoolPda,
|
|
625
|
+
findReferralLinkPda: () => findReferralLinkPda,
|
|
626
|
+
findReferralPda: () => findReferralPda,
|
|
627
|
+
gaboxV2Program: () => gaboxV2Program,
|
|
628
|
+
getBindReferrerDiscriminatorBytes: () => getBindReferrerDiscriminatorBytes,
|
|
629
|
+
getBindReferrerInstruction: () => getBindReferrerInstruction,
|
|
630
|
+
getBindReferrerInstructionAsync: () => getBindReferrerInstructionAsync,
|
|
631
|
+
getBindReferrerInstructionDataCodec: () => getBindReferrerInstructionDataCodec,
|
|
632
|
+
getBindReferrerInstructionDataDecoder: () => getBindReferrerInstructionDataDecoder,
|
|
633
|
+
getBindReferrerInstructionDataEncoder: () => getBindReferrerInstructionDataEncoder,
|
|
634
|
+
getBuyPackDiscriminatorBytes: () => getBuyPackDiscriminatorBytes,
|
|
635
|
+
getBuyPackInstruction: () => getBuyPackInstruction,
|
|
636
|
+
getBuyPackInstructionAsync: () => getBuyPackInstructionAsync,
|
|
637
|
+
getBuyPackInstructionDataCodec: () => getBuyPackInstructionDataCodec,
|
|
638
|
+
getBuyPackInstructionDataDecoder: () => getBuyPackInstructionDataDecoder,
|
|
639
|
+
getBuyPackInstructionDataEncoder: () => getBuyPackInstructionDataEncoder,
|
|
640
|
+
getClaimPrizeDiscriminatorBytes: () => getClaimPrizeDiscriminatorBytes,
|
|
641
|
+
getClaimPrizeInstruction: () => getClaimPrizeInstruction,
|
|
642
|
+
getClaimPrizeInstructionAsync: () => getClaimPrizeInstructionAsync,
|
|
643
|
+
getClaimPrizeInstructionDataCodec: () => getClaimPrizeInstructionDataCodec,
|
|
644
|
+
getClaimPrizeInstructionDataDecoder: () => getClaimPrizeInstructionDataDecoder,
|
|
645
|
+
getClaimPrizeInstructionDataEncoder: () => getClaimPrizeInstructionDataEncoder,
|
|
646
|
+
getClaimReferralDiscriminatorBytes: () => getClaimReferralDiscriminatorBytes,
|
|
647
|
+
getClaimReferralInstruction: () => getClaimReferralInstruction,
|
|
648
|
+
getClaimReferralInstructionAsync: () => getClaimReferralInstructionAsync,
|
|
649
|
+
getClaimReferralInstructionDataCodec: () => getClaimReferralInstructionDataCodec,
|
|
650
|
+
getClaimReferralInstructionDataDecoder: () => getClaimReferralInstructionDataDecoder,
|
|
651
|
+
getClaimReferralInstructionDataEncoder: () => getClaimReferralInstructionDataEncoder,
|
|
652
|
+
getDeliverDrawDiscriminatorBytes: () => getDeliverDrawDiscriminatorBytes,
|
|
653
|
+
getDeliverDrawInstruction: () => getDeliverDrawInstruction,
|
|
654
|
+
getDeliverDrawInstructionAsync: () => getDeliverDrawInstructionAsync,
|
|
655
|
+
getDeliverDrawInstructionDataCodec: () => getDeliverDrawInstructionDataCodec,
|
|
656
|
+
getDeliverDrawInstructionDataDecoder: () => getDeliverDrawInstructionDataDecoder,
|
|
657
|
+
getDeliverDrawInstructionDataEncoder: () => getDeliverDrawInstructionDataEncoder,
|
|
658
|
+
getDrawCodec: () => getDrawCodec,
|
|
659
|
+
getDrawDecoder: () => getDrawDecoder,
|
|
660
|
+
getDrawDiscriminatorBytes: () => getDrawDiscriminatorBytes,
|
|
661
|
+
getDrawEncoder: () => getDrawEncoder,
|
|
662
|
+
getDrawResolvedEventCodec: () => getDrawResolvedEventCodec,
|
|
663
|
+
getDrawResolvedEventDecoder: () => getDrawResolvedEventDecoder,
|
|
664
|
+
getDrawResolvedEventDiscriminatorBytes: () => getDrawResolvedEventDiscriminatorBytes,
|
|
665
|
+
getDrawResolvedEventEncoder: () => getDrawResolvedEventEncoder,
|
|
666
|
+
getDrawSize: () => getDrawSize,
|
|
667
|
+
getDrawStatusCodec: () => getDrawStatusCodec,
|
|
668
|
+
getDrawStatusDecoder: () => getDrawStatusDecoder,
|
|
669
|
+
getDrawStatusEncoder: () => getDrawStatusEncoder,
|
|
670
|
+
getExpireDrawDiscriminatorBytes: () => getExpireDrawDiscriminatorBytes,
|
|
671
|
+
getExpireDrawInstruction: () => getExpireDrawInstruction,
|
|
672
|
+
getExpireDrawInstructionAsync: () => getExpireDrawInstructionAsync,
|
|
673
|
+
getExpireDrawInstructionDataCodec: () => getExpireDrawInstructionDataCodec,
|
|
674
|
+
getExpireDrawInstructionDataDecoder: () => getExpireDrawInstructionDataDecoder,
|
|
675
|
+
getExpireDrawInstructionDataEncoder: () => getExpireDrawInstructionDataEncoder,
|
|
676
|
+
getFulfillDrawDiscriminatorBytes: () => getFulfillDrawDiscriminatorBytes,
|
|
677
|
+
getFulfillDrawInstruction: () => getFulfillDrawInstruction,
|
|
678
|
+
getFulfillDrawInstructionAsync: () => getFulfillDrawInstructionAsync,
|
|
679
|
+
getFulfillDrawInstructionDataCodec: () => getFulfillDrawInstructionDataCodec,
|
|
680
|
+
getFulfillDrawInstructionDataDecoder: () => getFulfillDrawInstructionDataDecoder,
|
|
681
|
+
getFulfillDrawInstructionDataEncoder: () => getFulfillDrawInstructionDataEncoder,
|
|
682
|
+
getFundPrizesDiscriminatorBytes: () => getFundPrizesDiscriminatorBytes,
|
|
683
|
+
getFundPrizesInstruction: () => getFundPrizesInstruction,
|
|
684
|
+
getFundPrizesInstructionDataCodec: () => getFundPrizesInstructionDataCodec,
|
|
685
|
+
getFundPrizesInstructionDataDecoder: () => getFundPrizesInstructionDataDecoder,
|
|
686
|
+
getFundPrizesInstructionDataEncoder: () => getFundPrizesInstructionDataEncoder,
|
|
687
|
+
getGaboxV2ErrorMessage: () => getGaboxV2ErrorMessage,
|
|
688
|
+
getInitializePoolDiscriminatorBytes: () => getInitializePoolDiscriminatorBytes,
|
|
689
|
+
getInitializePoolInstruction: () => getInitializePoolInstruction,
|
|
690
|
+
getInitializePoolInstructionAsync: () => getInitializePoolInstructionAsync,
|
|
691
|
+
getInitializePoolInstructionDataCodec: () => getInitializePoolInstructionDataCodec,
|
|
692
|
+
getInitializePoolInstructionDataDecoder: () => getInitializePoolInstructionDataDecoder,
|
|
693
|
+
getInitializePoolInstructionDataEncoder: () => getInitializePoolInstructionDataEncoder,
|
|
694
|
+
getPackBoughtEventCodec: () => getPackBoughtEventCodec,
|
|
695
|
+
getPackBoughtEventDecoder: () => getPackBoughtEventDecoder,
|
|
696
|
+
getPackBoughtEventDiscriminatorBytes: () => getPackBoughtEventDiscriminatorBytes,
|
|
697
|
+
getPackBoughtEventEncoder: () => getPackBoughtEventEncoder,
|
|
698
|
+
getPoolCodec: () => getPoolCodec,
|
|
699
|
+
getPoolCreatedEventCodec: () => getPoolCreatedEventCodec,
|
|
700
|
+
getPoolCreatedEventDecoder: () => getPoolCreatedEventDecoder,
|
|
701
|
+
getPoolCreatedEventDiscriminatorBytes: () => getPoolCreatedEventDiscriminatorBytes,
|
|
702
|
+
getPoolCreatedEventEncoder: () => getPoolCreatedEventEncoder,
|
|
703
|
+
getPoolDecoder: () => getPoolDecoder,
|
|
704
|
+
getPoolDiscriminatorBytes: () => getPoolDiscriminatorBytes,
|
|
705
|
+
getPoolEncoder: () => getPoolEncoder,
|
|
706
|
+
getPoolSize: () => getPoolSize,
|
|
707
|
+
getPrizeCodec: () => getPrizeCodec,
|
|
708
|
+
getPrizeDecoder: () => getPrizeDecoder,
|
|
709
|
+
getPrizeEncoder: () => getPrizeEncoder,
|
|
710
|
+
getPrizeRedeemedEventCodec: () => getPrizeRedeemedEventCodec,
|
|
711
|
+
getPrizeRedeemedEventDecoder: () => getPrizeRedeemedEventDecoder,
|
|
712
|
+
getPrizeRedeemedEventDiscriminatorBytes: () => getPrizeRedeemedEventDiscriminatorBytes,
|
|
713
|
+
getPrizeRedeemedEventEncoder: () => getPrizeRedeemedEventEncoder,
|
|
714
|
+
getPrizesFundedEventCodec: () => getPrizesFundedEventCodec,
|
|
715
|
+
getPrizesFundedEventDecoder: () => getPrizesFundedEventDecoder,
|
|
716
|
+
getPrizesFundedEventDiscriminatorBytes: () => getPrizesFundedEventDiscriminatorBytes,
|
|
717
|
+
getPrizesFundedEventEncoder: () => getPrizesFundedEventEncoder,
|
|
718
|
+
getRandomnessRetriedEventCodec: () => getRandomnessRetriedEventCodec,
|
|
719
|
+
getRandomnessRetriedEventDecoder: () => getRandomnessRetriedEventDecoder,
|
|
720
|
+
getRandomnessRetriedEventDiscriminatorBytes: () => getRandomnessRetriedEventDiscriminatorBytes,
|
|
721
|
+
getRandomnessRetriedEventEncoder: () => getRandomnessRetriedEventEncoder,
|
|
722
|
+
getReferralBoundEventCodec: () => getReferralBoundEventCodec,
|
|
723
|
+
getReferralBoundEventDecoder: () => getReferralBoundEventDecoder,
|
|
724
|
+
getReferralBoundEventDiscriminatorBytes: () => getReferralBoundEventDiscriminatorBytes,
|
|
725
|
+
getReferralBoundEventEncoder: () => getReferralBoundEventEncoder,
|
|
726
|
+
getReferralClaimedEventCodec: () => getReferralClaimedEventCodec,
|
|
727
|
+
getReferralClaimedEventDecoder: () => getReferralClaimedEventDecoder,
|
|
728
|
+
getReferralClaimedEventDiscriminatorBytes: () => getReferralClaimedEventDiscriminatorBytes,
|
|
729
|
+
getReferralClaimedEventEncoder: () => getReferralClaimedEventEncoder,
|
|
730
|
+
getReferralCodec: () => getReferralCodec,
|
|
731
|
+
getReferralDecoder: () => getReferralDecoder,
|
|
732
|
+
getReferralDiscriminatorBytes: () => getReferralDiscriminatorBytes,
|
|
733
|
+
getReferralEncoder: () => getReferralEncoder,
|
|
734
|
+
getReferralLinkCodec: () => getReferralLinkCodec,
|
|
735
|
+
getReferralLinkDecoder: () => getReferralLinkDecoder,
|
|
736
|
+
getReferralLinkDiscriminatorBytes: () => getReferralLinkDiscriminatorBytes,
|
|
737
|
+
getReferralLinkEncoder: () => getReferralLinkEncoder,
|
|
738
|
+
getReferralLinkSize: () => getReferralLinkSize,
|
|
739
|
+
getReferralSize: () => getReferralSize,
|
|
740
|
+
getRetryDrawDiscriminatorBytes: () => getRetryDrawDiscriminatorBytes,
|
|
741
|
+
getRetryDrawInstruction: () => getRetryDrawInstruction,
|
|
742
|
+
getRetryDrawInstructionAsync: () => getRetryDrawInstructionAsync,
|
|
743
|
+
getRetryDrawInstructionDataCodec: () => getRetryDrawInstructionDataCodec,
|
|
744
|
+
getRetryDrawInstructionDataDecoder: () => getRetryDrawInstructionDataDecoder,
|
|
745
|
+
getRetryDrawInstructionDataEncoder: () => getRetryDrawInstructionDataEncoder,
|
|
746
|
+
getSellPrizeDiscriminatorBytes: () => getSellPrizeDiscriminatorBytes,
|
|
747
|
+
getSellPrizeInstruction: () => getSellPrizeInstruction,
|
|
748
|
+
getSellPrizeInstructionAsync: () => getSellPrizeInstructionAsync,
|
|
749
|
+
getSellPrizeInstructionDataCodec: () => getSellPrizeInstructionDataCodec,
|
|
750
|
+
getSellPrizeInstructionDataDecoder: () => getSellPrizeInstructionDataDecoder,
|
|
751
|
+
getSellPrizeInstructionDataEncoder: () => getSellPrizeInstructionDataEncoder,
|
|
752
|
+
getSellTokensDiscriminatorBytes: () => getSellTokensDiscriminatorBytes,
|
|
753
|
+
getSellTokensInstruction: () => getSellTokensInstruction,
|
|
754
|
+
getSellTokensInstructionAsync: () => getSellTokensInstructionAsync,
|
|
755
|
+
getSellTokensInstructionDataCodec: () => getSellTokensInstructionDataCodec,
|
|
756
|
+
getSellTokensInstructionDataDecoder: () => getSellTokensInstructionDataDecoder,
|
|
757
|
+
getSellTokensInstructionDataEncoder: () => getSellTokensInstructionDataEncoder,
|
|
758
|
+
getTierCodec: () => getTierCodec,
|
|
759
|
+
getTierDecoder: () => getTierDecoder,
|
|
760
|
+
getTierEncoder: () => getTierEncoder,
|
|
761
|
+
getTokensSoldEventCodec: () => getTokensSoldEventCodec,
|
|
762
|
+
getTokensSoldEventDecoder: () => getTokensSoldEventDecoder,
|
|
763
|
+
getTokensSoldEventDiscriminatorBytes: () => getTokensSoldEventDiscriminatorBytes,
|
|
764
|
+
getTokensSoldEventEncoder: () => getTokensSoldEventEncoder,
|
|
765
|
+
identifyGaboxV2Account: () => identifyGaboxV2Account,
|
|
766
|
+
identifyGaboxV2Event: () => identifyGaboxV2Event,
|
|
767
|
+
identifyGaboxV2Instruction: () => identifyGaboxV2Instruction,
|
|
768
|
+
isGaboxV2Error: () => isGaboxV2Error,
|
|
769
|
+
parseBindReferrerInstruction: () => parseBindReferrerInstruction,
|
|
770
|
+
parseBuyPackInstruction: () => parseBuyPackInstruction,
|
|
771
|
+
parseClaimPrizeInstruction: () => parseClaimPrizeInstruction,
|
|
772
|
+
parseClaimReferralInstruction: () => parseClaimReferralInstruction,
|
|
773
|
+
parseDeliverDrawInstruction: () => parseDeliverDrawInstruction,
|
|
774
|
+
parseDrawResolvedEvent: () => parseDrawResolvedEvent,
|
|
775
|
+
parseExpireDrawInstruction: () => parseExpireDrawInstruction,
|
|
776
|
+
parseFulfillDrawInstruction: () => parseFulfillDrawInstruction,
|
|
777
|
+
parseFundPrizesInstruction: () => parseFundPrizesInstruction,
|
|
778
|
+
parseGaboxV2Instruction: () => parseGaboxV2Instruction,
|
|
779
|
+
parseInitializePoolInstruction: () => parseInitializePoolInstruction,
|
|
780
|
+
parsePackBoughtEvent: () => parsePackBoughtEvent,
|
|
781
|
+
parsePoolCreatedEvent: () => parsePoolCreatedEvent,
|
|
782
|
+
parsePrizeRedeemedEvent: () => parsePrizeRedeemedEvent,
|
|
783
|
+
parsePrizesFundedEvent: () => parsePrizesFundedEvent,
|
|
784
|
+
parseRandomnessRetriedEvent: () => parseRandomnessRetriedEvent,
|
|
785
|
+
parseReferralBoundEvent: () => parseReferralBoundEvent,
|
|
786
|
+
parseReferralClaimedEvent: () => parseReferralClaimedEvent,
|
|
787
|
+
parseRetryDrawInstruction: () => parseRetryDrawInstruction,
|
|
788
|
+
parseSellPrizeInstruction: () => parseSellPrizeInstruction,
|
|
789
|
+
parseSellTokensInstruction: () => parseSellTokensInstruction,
|
|
790
|
+
parseTokensSoldEvent: () => parseTokensSoldEvent
|
|
791
|
+
});
|
|
792
|
+
//#endregion
|
|
793
|
+
export { BIND_REFERRER_DISCRIMINATOR, BUY_PACK_DISCRIMINATOR, CLAIM_PRIZE_DISCRIMINATOR, CLAIM_REFERRAL_DISCRIMINATOR, DELIVER_DRAW_DISCRIMINATOR, DRAW_DISCRIMINATOR, DRAW_RESOLVED_EVENT_DISCRIMINATOR, DrawStatus, EXPIRE_DRAW_DISCRIMINATOR, FULFILL_DRAW_DISCRIMINATOR, FUND_PRIZES_DISCRIMINATOR, GABOX_V2_ERROR__ARITHMETIC, GABOX_V2_ERROR__COIN_NOT_CREATED_HERE, GABOX_V2_ERROR__INCORRECT_TOKEN_DELTA, GABOX_V2_ERROR__INSOLVENT_INVENTORY, GABOX_V2_ERROR__INVALID_DISTRIBUTION, GABOX_V2_ERROR__INVALID_FEE, GABOX_V2_ERROR__INVALID_FEE_COLLECTOR, GABOX_V2_ERROR__INVALID_REFERRAL, GABOX_V2_ERROR__INVALID_VENUE, GABOX_V2_ERROR__JACKPOT_BELOW_ONE_PACK, GABOX_V2_ERROR__NOTHING_OWED_TO_REFERRER, GABOX_V2_ERROR__NOT_EXPIRED, GABOX_V2_ERROR__NOT_PENDING, GABOX_V2_ERROR__NOT_READY, GABOX_V2_ERROR__PACK_TOO_SMALL, GABOX_V2_ERROR__PRIZE_CAP_CHANGED, GABOX_V2_ERROR__RETRY_TOO_SOON, GABOX_V2_ERROR__RETRY_UNAVAILABLE, GABOX_V2_ERROR__SLIPPAGE_EXCEEDED, GABOX_V2_ERROR__UNFUNDED_EXPECTATION, GABOX_V2_ERROR__UNSUPPORTED_MINT, GABOX_V2_ERROR__ZERO_AMOUNT, GABOX_V2_PROGRAM_ADDRESS, GaboxV2Account, GaboxV2Event, GaboxV2Instruction, INITIALIZE_POOL_DISCRIMINATOR, PACK_BOUGHT_EVENT_DISCRIMINATOR, POOL_CREATED_EVENT_DISCRIMINATOR, POOL_DISCRIMINATOR, PRIZES_FUNDED_EVENT_DISCRIMINATOR, PRIZE_REDEEMED_EVENT_DISCRIMINATOR, RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR, REFERRAL_BOUND_EVENT_DISCRIMINATOR, REFERRAL_CLAIMED_EVENT_DISCRIMINATOR, REFERRAL_DISCRIMINATOR, REFERRAL_LINK_DISCRIMINATOR, RETRY_DRAW_DISCRIMINATOR, SELL_PRIZE_DISCRIMINATOR, SELL_TOKENS_DISCRIMINATOR, TOKENS_SOLD_EVENT_DISCRIMINATOR, decodeDraw, decodePool, decodeReferral, decodeReferralLink, fetchAllDraw, fetchAllMaybeDraw, fetchAllMaybePool, fetchAllMaybeReferral, fetchAllMaybeReferralLink, fetchAllPool, fetchAllReferral, fetchAllReferralLink, fetchDraw, fetchMaybeDraw, fetchMaybePool, fetchMaybeReferral, fetchMaybeReferralLink, fetchPool, fetchReferral, fetchReferralLink, findClaimReferralReferralPda, findDrawPda, findIdentityPda, findLinkPda, findPoolPda, findReferralLinkPda, findReferralPda, gaboxV2Program, getBindReferrerDiscriminatorBytes, getBindReferrerInstruction, getBindReferrerInstructionAsync, getBindReferrerInstructionDataCodec, getBindReferrerInstructionDataDecoder, getBindReferrerInstructionDataEncoder, getBuyPackDiscriminatorBytes, getBuyPackInstruction, getBuyPackInstructionAsync, getBuyPackInstructionDataCodec, getBuyPackInstructionDataDecoder, getBuyPackInstructionDataEncoder, getClaimPrizeDiscriminatorBytes, getClaimPrizeInstruction, getClaimPrizeInstructionAsync, getClaimPrizeInstructionDataCodec, getClaimPrizeInstructionDataDecoder, getClaimPrizeInstructionDataEncoder, getClaimReferralDiscriminatorBytes, getClaimReferralInstruction, getClaimReferralInstructionAsync, getClaimReferralInstructionDataCodec, getClaimReferralInstructionDataDecoder, getClaimReferralInstructionDataEncoder, getDeliverDrawDiscriminatorBytes, getDeliverDrawInstruction, getDeliverDrawInstructionAsync, getDeliverDrawInstructionDataCodec, getDeliverDrawInstructionDataDecoder, getDeliverDrawInstructionDataEncoder, getDrawCodec, getDrawDecoder, getDrawDiscriminatorBytes, getDrawEncoder, getDrawResolvedEventCodec, getDrawResolvedEventDecoder, getDrawResolvedEventDiscriminatorBytes, getDrawResolvedEventEncoder, getDrawSize, getDrawStatusCodec, getDrawStatusDecoder, getDrawStatusEncoder, getExpireDrawDiscriminatorBytes, getExpireDrawInstruction, getExpireDrawInstructionAsync, getExpireDrawInstructionDataCodec, getExpireDrawInstructionDataDecoder, getExpireDrawInstructionDataEncoder, getFulfillDrawDiscriminatorBytes, getFulfillDrawInstruction, getFulfillDrawInstructionAsync, getFulfillDrawInstructionDataCodec, getFulfillDrawInstructionDataDecoder, getFulfillDrawInstructionDataEncoder, getFundPrizesDiscriminatorBytes, getFundPrizesInstruction, getFundPrizesInstructionDataCodec, getFundPrizesInstructionDataDecoder, getFundPrizesInstructionDataEncoder, getGaboxV2ErrorMessage, getInitializePoolDiscriminatorBytes, getInitializePoolInstruction, getInitializePoolInstructionAsync, getInitializePoolInstructionDataCodec, getInitializePoolInstructionDataDecoder, getInitializePoolInstructionDataEncoder, getPackBoughtEventCodec, getPackBoughtEventDecoder, getPackBoughtEventDiscriminatorBytes, getPackBoughtEventEncoder, getPoolCodec, getPoolCreatedEventCodec, getPoolCreatedEventDecoder, getPoolCreatedEventDiscriminatorBytes, getPoolCreatedEventEncoder, getPoolDecoder, getPoolDiscriminatorBytes, getPoolEncoder, getPoolSize, getPrizeCodec, getPrizeDecoder, getPrizeEncoder, getPrizeRedeemedEventCodec, getPrizeRedeemedEventDecoder, getPrizeRedeemedEventDiscriminatorBytes, getPrizeRedeemedEventEncoder, getPrizesFundedEventCodec, getPrizesFundedEventDecoder, getPrizesFundedEventDiscriminatorBytes, getPrizesFundedEventEncoder, getRandomnessRetriedEventCodec, getRandomnessRetriedEventDecoder, getRandomnessRetriedEventDiscriminatorBytes, getRandomnessRetriedEventEncoder, getReferralBoundEventCodec, getReferralBoundEventDecoder, getReferralBoundEventDiscriminatorBytes, getReferralBoundEventEncoder, getReferralClaimedEventCodec, getReferralClaimedEventDecoder, getReferralClaimedEventDiscriminatorBytes, getReferralClaimedEventEncoder, getReferralCodec, getReferralDecoder, getReferralDiscriminatorBytes, getReferralEncoder, getReferralLinkCodec, getReferralLinkDecoder, getReferralLinkDiscriminatorBytes, getReferralLinkEncoder, getReferralLinkSize, getReferralSize, getRetryDrawDiscriminatorBytes, getRetryDrawInstruction, getRetryDrawInstructionAsync, getRetryDrawInstructionDataCodec, getRetryDrawInstructionDataDecoder, getRetryDrawInstructionDataEncoder, getSellPrizeDiscriminatorBytes, getSellPrizeInstruction, getSellPrizeInstructionAsync, getSellPrizeInstructionDataCodec, getSellPrizeInstructionDataDecoder, getSellPrizeInstructionDataEncoder, getSellTokensDiscriminatorBytes, getSellTokensInstruction, getSellTokensInstructionAsync, getSellTokensInstructionDataCodec, getSellTokensInstructionDataDecoder, getSellTokensInstructionDataEncoder, getTierCodec, getTierDecoder, getTierEncoder, getTokensSoldEventCodec, getTokensSoldEventDecoder, getTokensSoldEventDiscriminatorBytes, getTokensSoldEventEncoder, identifyGaboxV2Account, identifyGaboxV2Event, identifyGaboxV2Instruction, isGaboxV2Error, parseBindReferrerInstruction, parseBuyPackInstruction, parseClaimPrizeInstruction, parseClaimReferralInstruction, parseDeliverDrawInstruction, parseDrawResolvedEvent, parseExpireDrawInstruction, parseFulfillDrawInstruction, parseFundPrizesInstruction, parseGaboxV2Instruction, parseInitializePoolInstruction, parsePackBoughtEvent, parsePoolCreatedEvent, parsePrizeRedeemedEvent, parsePrizesFundedEvent, parseRandomnessRetriedEvent, parseReferralBoundEvent, parseReferralClaimedEvent, parseRetryDrawInstruction, parseSellPrizeInstruction, parseSellTokensInstruction, parseTokensSoldEvent, generated_exports as t };
|
|
794
|
+
|
|
795
|
+
//# sourceMappingURL=index.js.map
|