@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,1468 @@
|
|
|
1
|
+
import { Account, AccountMeta, AccountSignerMeta, Address, ClientWithPayer, ClientWithRpc, ClientWithTransactionPlanning, ClientWithTransactionSending, EncodedAccount, ExtendedClient, FetchAccountConfig, FetchAccountsConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, GetAccountInfoApi, GetMultipleAccountsApi, Instruction, InstructionWithAccounts, InstructionWithData, MaybeAccount, MaybeEncodedAccount, ProgramDerivedAddress, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, SolanaError, TransactionSigner, WritableAccount, WritableSignerAccount, fetchEncodedAccount, fetchEncodedAccounts } from "@solana/kit";
|
|
2
|
+
import { SelfFetchFunctions, SelfPlanAndSendFunctions } from "@solana/program-client-core";
|
|
3
|
+
//#region src/generated/types/drawStatus.d.ts
|
|
4
|
+
export declare enum DrawStatus {
|
|
5
|
+
Pending = 0,
|
|
6
|
+
Ready = 1
|
|
7
|
+
}
|
|
8
|
+
export type DrawStatusArgs = DrawStatus;
|
|
9
|
+
export declare function getDrawStatusEncoder(): FixedSizeEncoder<DrawStatusArgs>;
|
|
10
|
+
export declare function getDrawStatusDecoder(): FixedSizeDecoder<DrawStatus>;
|
|
11
|
+
export declare function getDrawStatusCodec(): FixedSizeCodec<DrawStatusArgs, DrawStatus>;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/generated/types/prize.d.ts
|
|
14
|
+
export type Prize = {
|
|
15
|
+
amount: bigint;
|
|
16
|
+
tickets: number;
|
|
17
|
+
};
|
|
18
|
+
export type PrizeArgs = {
|
|
19
|
+
amount: number | bigint;
|
|
20
|
+
tickets: number;
|
|
21
|
+
};
|
|
22
|
+
export declare function getPrizeEncoder(): FixedSizeEncoder<PrizeArgs>;
|
|
23
|
+
export declare function getPrizeDecoder(): FixedSizeDecoder<Prize>;
|
|
24
|
+
export declare function getPrizeCodec(): FixedSizeCodec<PrizeArgs, Prize>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/generated/types/tier.d.ts
|
|
27
|
+
/** Counts, not cumulative thresholds. Zero-ticket entries must be all zero. */
|
|
28
|
+
export type Tier = {
|
|
29
|
+
multiplierBps: number;
|
|
30
|
+
tickets: number;
|
|
31
|
+
};
|
|
32
|
+
export type TierArgs = Tier;
|
|
33
|
+
export declare function getTierEncoder(): FixedSizeEncoder<TierArgs>;
|
|
34
|
+
export declare function getTierDecoder(): FixedSizeDecoder<Tier>;
|
|
35
|
+
export declare function getTierCodec(): FixedSizeCodec<TierArgs, Tier>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/generated/accounts/draw.d.ts
|
|
38
|
+
export declare const DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
39
|
+
export declare function getDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
40
|
+
export type Draw = {
|
|
41
|
+
discriminator: ReadonlyUint8Array;
|
|
42
|
+
pool: Address;
|
|
43
|
+
purchaser: Address;
|
|
44
|
+
seq: bigint;
|
|
45
|
+
bump: number;
|
|
46
|
+
status: DrawStatus;
|
|
47
|
+
requestSlot: bigint;
|
|
48
|
+
lastAttemptSlot: bigint;
|
|
49
|
+
attempts: number;
|
|
50
|
+
maximum: bigint;
|
|
51
|
+
minimum: bigint;
|
|
52
|
+
prizes: Array<Prize>;
|
|
53
|
+
amount: bigint;
|
|
54
|
+
randomness: ReadonlyUint8Array;
|
|
55
|
+
timedOut: boolean;
|
|
56
|
+
};
|
|
57
|
+
export type DrawArgs = {
|
|
58
|
+
pool: Address;
|
|
59
|
+
purchaser: Address;
|
|
60
|
+
seq: number | bigint;
|
|
61
|
+
bump: number;
|
|
62
|
+
status: DrawStatusArgs;
|
|
63
|
+
requestSlot: number | bigint;
|
|
64
|
+
lastAttemptSlot: number | bigint;
|
|
65
|
+
attempts: number;
|
|
66
|
+
maximum: number | bigint;
|
|
67
|
+
minimum: number | bigint;
|
|
68
|
+
prizes: Array<PrizeArgs>;
|
|
69
|
+
amount: number | bigint;
|
|
70
|
+
randomness: ReadonlyUint8Array;
|
|
71
|
+
timedOut: boolean;
|
|
72
|
+
};
|
|
73
|
+
/** Gets the encoder for {@link DrawArgs} account data. */
|
|
74
|
+
export declare function getDrawEncoder(): FixedSizeEncoder<DrawArgs>;
|
|
75
|
+
/** Gets the decoder for {@link Draw} account data. */
|
|
76
|
+
export declare function getDrawDecoder(): FixedSizeDecoder<Draw>;
|
|
77
|
+
/** Gets the codec for {@link Draw} account data. */
|
|
78
|
+
export declare function getDrawCodec(): FixedSizeCodec<DrawArgs, Draw>;
|
|
79
|
+
export declare function decodeDraw<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Draw, TAddress>;
|
|
80
|
+
export declare function decodeDraw<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Draw, TAddress>;
|
|
81
|
+
export declare function fetchDraw<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Draw, TAddress>>;
|
|
82
|
+
export declare function fetchMaybeDraw<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Draw, TAddress>>;
|
|
83
|
+
export declare function fetchAllDraw(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Draw>[]>;
|
|
84
|
+
export declare function fetchAllMaybeDraw(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Draw>[]>;
|
|
85
|
+
export declare function getDrawSize(): number;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/generated/accounts/pool.d.ts
|
|
88
|
+
export declare const POOL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
89
|
+
export declare function getPoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
90
|
+
export type Pool = {
|
|
91
|
+
discriminator: ReadonlyUint8Array;
|
|
92
|
+
creator: Address;
|
|
93
|
+
mint: Address;
|
|
94
|
+
tokenProgram: Address;
|
|
95
|
+
vault: Address;
|
|
96
|
+
bump: number;
|
|
97
|
+
/**
|
|
98
|
+
* Fixed token count of one pack, in base units. Always `PACK_TOKENS` for
|
|
99
|
+
* this program version. The venue decides what that costs in SOL.
|
|
100
|
+
*/
|
|
101
|
+
packTokens: bigint;
|
|
102
|
+
/**
|
|
103
|
+
* The creator's fee per pack, in basis points of what the venue charged.
|
|
104
|
+
* At most `MAX_FEE_BPS`. Immutable and disclosed.
|
|
105
|
+
*/
|
|
106
|
+
feeBps: number;
|
|
107
|
+
/**
|
|
108
|
+
* Lamports the seed buy cost the creator at creation. Recorded for
|
|
109
|
+
* display; the jackpot is defined by `seed_tokens`, not by this.
|
|
110
|
+
*/
|
|
111
|
+
seedLamports: bigint;
|
|
112
|
+
/**
|
|
113
|
+
* Tokens the seed buy deposited permanently in the vault. Exactly
|
|
114
|
+
* `(max_multiplier - 1x) * pack_tokens`, so the first pack can pay the
|
|
115
|
+
* largest tier in full.
|
|
116
|
+
*/
|
|
117
|
+
seedTokens: bigint;
|
|
118
|
+
tiers: Array<Tier>;
|
|
119
|
+
nextSeq: bigint;
|
|
120
|
+
/** Maximum awards reserved by pending draws. Never creator revenue. */
|
|
121
|
+
reserved: bigint;
|
|
122
|
+
};
|
|
123
|
+
export type PoolArgs = {
|
|
124
|
+
creator: Address;
|
|
125
|
+
mint: Address;
|
|
126
|
+
tokenProgram: Address;
|
|
127
|
+
vault: Address;
|
|
128
|
+
bump: number;
|
|
129
|
+
/**
|
|
130
|
+
* Fixed token count of one pack, in base units. Always `PACK_TOKENS` for
|
|
131
|
+
* this program version. The venue decides what that costs in SOL.
|
|
132
|
+
*/
|
|
133
|
+
packTokens: number | bigint;
|
|
134
|
+
/**
|
|
135
|
+
* The creator's fee per pack, in basis points of what the venue charged.
|
|
136
|
+
* At most `MAX_FEE_BPS`. Immutable and disclosed.
|
|
137
|
+
*/
|
|
138
|
+
feeBps: number;
|
|
139
|
+
/**
|
|
140
|
+
* Lamports the seed buy cost the creator at creation. Recorded for
|
|
141
|
+
* display; the jackpot is defined by `seed_tokens`, not by this.
|
|
142
|
+
*/
|
|
143
|
+
seedLamports: number | bigint;
|
|
144
|
+
/**
|
|
145
|
+
* Tokens the seed buy deposited permanently in the vault. Exactly
|
|
146
|
+
* `(max_multiplier - 1x) * pack_tokens`, so the first pack can pay the
|
|
147
|
+
* largest tier in full.
|
|
148
|
+
*/
|
|
149
|
+
seedTokens: number | bigint;
|
|
150
|
+
tiers: Array<TierArgs>;
|
|
151
|
+
nextSeq: number | bigint;
|
|
152
|
+
/** Maximum awards reserved by pending draws. Never creator revenue. */
|
|
153
|
+
reserved: number | bigint;
|
|
154
|
+
};
|
|
155
|
+
/** Gets the encoder for {@link PoolArgs} account data. */
|
|
156
|
+
export declare function getPoolEncoder(): FixedSizeEncoder<PoolArgs>;
|
|
157
|
+
/** Gets the decoder for {@link Pool} account data. */
|
|
158
|
+
export declare function getPoolDecoder(): FixedSizeDecoder<Pool>;
|
|
159
|
+
/** Gets the codec for {@link Pool} account data. */
|
|
160
|
+
export declare function getPoolCodec(): FixedSizeCodec<PoolArgs, Pool>;
|
|
161
|
+
export declare function decodePool<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Pool, TAddress>;
|
|
162
|
+
export declare function decodePool<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Pool, TAddress>;
|
|
163
|
+
export declare function fetchPool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Pool, TAddress>>;
|
|
164
|
+
export declare function fetchMaybePool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Pool, TAddress>>;
|
|
165
|
+
export declare function fetchAllPool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Pool>[]>;
|
|
166
|
+
export declare function fetchAllMaybePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Pool>[]>;
|
|
167
|
+
export declare function getPoolSize(): number;
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/generated/accounts/referral.d.ts
|
|
170
|
+
export declare const REFERRAL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
171
|
+
export declare function getReferralDiscriminatorBytes(): ReadonlyUint8Array;
|
|
172
|
+
export type Referral = {
|
|
173
|
+
discriminator: ReadonlyUint8Array;
|
|
174
|
+
pool: Address;
|
|
175
|
+
referrer: Address;
|
|
176
|
+
owed: bigint;
|
|
177
|
+
bump: number;
|
|
178
|
+
};
|
|
179
|
+
export type ReferralArgs = {
|
|
180
|
+
pool: Address;
|
|
181
|
+
referrer: Address;
|
|
182
|
+
owed: number | bigint;
|
|
183
|
+
bump: number;
|
|
184
|
+
};
|
|
185
|
+
/** Gets the encoder for {@link ReferralArgs} account data. */
|
|
186
|
+
export declare function getReferralEncoder(): FixedSizeEncoder<ReferralArgs>;
|
|
187
|
+
/** Gets the decoder for {@link Referral} account data. */
|
|
188
|
+
export declare function getReferralDecoder(): FixedSizeDecoder<Referral>;
|
|
189
|
+
/** Gets the codec for {@link Referral} account data. */
|
|
190
|
+
export declare function getReferralCodec(): FixedSizeCodec<ReferralArgs, Referral>;
|
|
191
|
+
export declare function decodeReferral<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Referral, TAddress>;
|
|
192
|
+
export declare function decodeReferral<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Referral, TAddress>;
|
|
193
|
+
export declare function fetchReferral<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Referral, TAddress>>;
|
|
194
|
+
export declare function fetchMaybeReferral<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Referral, TAddress>>;
|
|
195
|
+
export declare function fetchAllReferral(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Referral>[]>;
|
|
196
|
+
export declare function fetchAllMaybeReferral(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Referral>[]>;
|
|
197
|
+
export declare function getReferralSize(): number;
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region src/generated/accounts/referralLink.d.ts
|
|
200
|
+
export declare const REFERRAL_LINK_DISCRIMINATOR: ReadonlyUint8Array;
|
|
201
|
+
export declare function getReferralLinkDiscriminatorBytes(): ReadonlyUint8Array;
|
|
202
|
+
export type ReferralLink = {
|
|
203
|
+
discriminator: ReadonlyUint8Array;
|
|
204
|
+
referee: Address;
|
|
205
|
+
referrer: Address;
|
|
206
|
+
bump: number;
|
|
207
|
+
};
|
|
208
|
+
export type ReferralLinkArgs = {
|
|
209
|
+
referee: Address;
|
|
210
|
+
referrer: Address;
|
|
211
|
+
bump: number;
|
|
212
|
+
};
|
|
213
|
+
/** Gets the encoder for {@link ReferralLinkArgs} account data. */
|
|
214
|
+
export declare function getReferralLinkEncoder(): FixedSizeEncoder<ReferralLinkArgs>;
|
|
215
|
+
/** Gets the decoder for {@link ReferralLink} account data. */
|
|
216
|
+
export declare function getReferralLinkDecoder(): FixedSizeDecoder<ReferralLink>;
|
|
217
|
+
/** Gets the codec for {@link ReferralLink} account data. */
|
|
218
|
+
export declare function getReferralLinkCodec(): FixedSizeCodec<ReferralLinkArgs, ReferralLink>;
|
|
219
|
+
export declare function decodeReferralLink<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<ReferralLink, TAddress>;
|
|
220
|
+
export declare function decodeReferralLink<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<ReferralLink, TAddress>;
|
|
221
|
+
export declare function fetchReferralLink<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<ReferralLink, TAddress>>;
|
|
222
|
+
export declare function fetchMaybeReferralLink<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<ReferralLink, TAddress>>;
|
|
223
|
+
export declare function fetchAllReferralLink(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<ReferralLink>[]>;
|
|
224
|
+
export declare function fetchAllMaybeReferralLink(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<ReferralLink>[]>;
|
|
225
|
+
export declare function getReferralLinkSize(): number;
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/generated/errors/gaboxV2.d.ts
|
|
228
|
+
/** Arithmetic: Arithmetic overflow or inconsistent accounting */
|
|
229
|
+
export declare const GABOX_V2_ERROR__ARITHMETIC = 6000;
|
|
230
|
+
/** InvalidDistribution: Invalid prize distribution */
|
|
231
|
+
export declare const GABOX_V2_ERROR__INVALID_DISTRIBUTION = 6001;
|
|
232
|
+
/** UnfundedExpectation: Expected token award exceeds tokens purchased */
|
|
233
|
+
export declare const GABOX_V2_ERROR__UNFUNDED_EXPECTATION = 6002;
|
|
234
|
+
/** UnsupportedMint: Mint must have no mint/freeze authority and only supported extensions */
|
|
235
|
+
export declare const GABOX_V2_ERROR__UNSUPPORTED_MINT = 6003;
|
|
236
|
+
/** InsolventInventory: Prize inventory does not cover reservations */
|
|
237
|
+
export declare const GABOX_V2_ERROR__INSOLVENT_INVENTORY = 6004;
|
|
238
|
+
/** PrizeCapChanged: Top prize is below the signed minimum; refresh the offer */
|
|
239
|
+
export declare const GABOX_V2_ERROR__PRIZE_CAP_CHANGED = 6005;
|
|
240
|
+
/** PackTooSmall: A pack pays zero tokens on some tier */
|
|
241
|
+
export declare const GABOX_V2_ERROR__PACK_TOO_SMALL = 6006;
|
|
242
|
+
/** JackpotBelowOnePack: The largest tier must pay at least one pack */
|
|
243
|
+
export declare const GABOX_V2_ERROR__JACKPOT_BELOW_ONE_PACK = 6007;
|
|
244
|
+
/** InvalidVenue: Incorrect trade program, account order, or token binding */
|
|
245
|
+
export declare const GABOX_V2_ERROR__INVALID_VENUE = 6008;
|
|
246
|
+
/** IncorrectTokenDelta: Trade did not move the exact token amount */
|
|
247
|
+
export declare const GABOX_V2_ERROR__INCORRECT_TOKEN_DELTA = 6009;
|
|
248
|
+
/** SlippageExceeded: Spend exceeds the signed limit */
|
|
249
|
+
export declare const GABOX_V2_ERROR__SLIPPAGE_EXCEEDED = 6010;
|
|
250
|
+
/** NotPending: Draw is not awaiting randomness */
|
|
251
|
+
export declare const GABOX_V2_ERROR__NOT_PENDING = 6011;
|
|
252
|
+
/** NotReady: Draw has not resolved */
|
|
253
|
+
export declare const GABOX_V2_ERROR__NOT_READY = 6012;
|
|
254
|
+
/** RetryTooSoon: Retry interval has not elapsed */
|
|
255
|
+
export declare const GABOX_V2_ERROR__RETRY_TOO_SOON = 6013;
|
|
256
|
+
/** RetryUnavailable: Retry limit reached or draw expired */
|
|
257
|
+
export declare const GABOX_V2_ERROR__RETRY_UNAVAILABLE = 6014;
|
|
258
|
+
/** NotExpired: Oracle timeout has not elapsed */
|
|
259
|
+
export declare const GABOX_V2_ERROR__NOT_EXPIRED = 6015;
|
|
260
|
+
/** ZeroAmount: Amount must be positive */
|
|
261
|
+
export declare const GABOX_V2_ERROR__ZERO_AMOUNT = 6016;
|
|
262
|
+
/** InvalidFee: Creator fee exceeds the limit */
|
|
263
|
+
export declare const GABOX_V2_ERROR__INVALID_FEE = 6017;
|
|
264
|
+
/** CoinNotCreatedHere: A pool must be created in the same transaction that creates the coin */
|
|
265
|
+
export declare const GABOX_V2_ERROR__COIN_NOT_CREATED_HERE = 6018;
|
|
266
|
+
/** InvalidReferral: Referral account is missing or inconsistent */
|
|
267
|
+
export declare const GABOX_V2_ERROR__INVALID_REFERRAL = 6019;
|
|
268
|
+
/** NothingOwedToReferrer: No referral revenue is owed */
|
|
269
|
+
export declare const GABOX_V2_ERROR__NOTHING_OWED_TO_REFERRER = 6020;
|
|
270
|
+
/** InvalidFeeCollector: Fee account is not the protocol fee collector's */
|
|
271
|
+
export declare const GABOX_V2_ERROR__INVALID_FEE_COLLECTOR = 6021;
|
|
272
|
+
export type GaboxV2Error = typeof GABOX_V2_ERROR__ARITHMETIC | typeof GABOX_V2_ERROR__COIN_NOT_CREATED_HERE | typeof GABOX_V2_ERROR__INCORRECT_TOKEN_DELTA | typeof GABOX_V2_ERROR__INSOLVENT_INVENTORY | typeof GABOX_V2_ERROR__INVALID_DISTRIBUTION | typeof GABOX_V2_ERROR__INVALID_FEE | typeof GABOX_V2_ERROR__INVALID_FEE_COLLECTOR | typeof GABOX_V2_ERROR__INVALID_REFERRAL | typeof GABOX_V2_ERROR__INVALID_VENUE | typeof GABOX_V2_ERROR__JACKPOT_BELOW_ONE_PACK | typeof GABOX_V2_ERROR__NOT_EXPIRED | typeof GABOX_V2_ERROR__NOTHING_OWED_TO_REFERRER | typeof GABOX_V2_ERROR__NOT_PENDING | typeof GABOX_V2_ERROR__NOT_READY | typeof GABOX_V2_ERROR__PACK_TOO_SMALL | typeof GABOX_V2_ERROR__PRIZE_CAP_CHANGED | typeof GABOX_V2_ERROR__RETRY_TOO_SOON | typeof GABOX_V2_ERROR__RETRY_UNAVAILABLE | typeof GABOX_V2_ERROR__SLIPPAGE_EXCEEDED | typeof GABOX_V2_ERROR__UNFUNDED_EXPECTATION | typeof GABOX_V2_ERROR__UNSUPPORTED_MINT | typeof GABOX_V2_ERROR__ZERO_AMOUNT;
|
|
273
|
+
export declare function getGaboxV2ErrorMessage(code: GaboxV2Error): string;
|
|
274
|
+
export declare function isGaboxV2Error<TProgramErrorCode extends GaboxV2Error>(error: unknown, transactionMessage: {
|
|
275
|
+
instructions: Record<number, {
|
|
276
|
+
programAddress: Address;
|
|
277
|
+
}>;
|
|
278
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
279
|
+
context: Readonly<{
|
|
280
|
+
code: TProgramErrorCode;
|
|
281
|
+
}>;
|
|
282
|
+
}>;
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/generated/events/drawResolved.d.ts
|
|
285
|
+
export declare const DRAW_RESOLVED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
286
|
+
export declare function getDrawResolvedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
287
|
+
export type DrawResolvedEvent = {
|
|
288
|
+
pool: Address;
|
|
289
|
+
seq: bigint;
|
|
290
|
+
purchaser: Address;
|
|
291
|
+
amount: bigint;
|
|
292
|
+
randomness: ReadonlyUint8Array;
|
|
293
|
+
timedOut: boolean;
|
|
294
|
+
};
|
|
295
|
+
export type DrawResolvedEventArgs = {
|
|
296
|
+
pool: Address;
|
|
297
|
+
seq: number | bigint;
|
|
298
|
+
purchaser: Address;
|
|
299
|
+
amount: number | bigint;
|
|
300
|
+
randomness: ReadonlyUint8Array;
|
|
301
|
+
timedOut: boolean;
|
|
302
|
+
};
|
|
303
|
+
/** Gets the encoder for {@link DrawResolvedEventArgs} event data. */
|
|
304
|
+
export declare function getDrawResolvedEventEncoder(): FixedSizeEncoder<DrawResolvedEventArgs>;
|
|
305
|
+
/** Gets the decoder for {@link DrawResolvedEvent} event data. */
|
|
306
|
+
export declare function getDrawResolvedEventDecoder(): FixedSizeDecoder<DrawResolvedEvent>;
|
|
307
|
+
/** Gets the codec for {@link DrawResolvedEvent} event data. */
|
|
308
|
+
export declare function getDrawResolvedEventCodec(): FixedSizeCodec<DrawResolvedEventArgs, DrawResolvedEvent>;
|
|
309
|
+
/** Parses the provided bytes into {@link DrawResolvedEvent} event data. */
|
|
310
|
+
export declare function parseDrawResolvedEvent(data: ReadonlyUint8Array | Uint8Array): DrawResolvedEvent;
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/generated/events/packBought.d.ts
|
|
313
|
+
export declare const PACK_BOUGHT_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
314
|
+
export declare function getPackBoughtEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
315
|
+
export type PackBoughtEvent = {
|
|
316
|
+
pool: Address;
|
|
317
|
+
seq: bigint;
|
|
318
|
+
purchaser: Address;
|
|
319
|
+
venue: Address;
|
|
320
|
+
/** Always `pool.pack_tokens`. The trade is exact-tokens-out. */
|
|
321
|
+
tokensBought: bigint;
|
|
322
|
+
/**
|
|
323
|
+
* What the pack cost: venue quote spend plus venue account rent; SOL + WSOL,
|
|
324
|
+
* without double counting. Both fees below are a share of this number.
|
|
325
|
+
*/
|
|
326
|
+
venueDebit: bigint;
|
|
327
|
+
/** The creator's `fee_bps` share of `venue_debit`, paid on top of it. */
|
|
328
|
+
feeLamports: bigint;
|
|
329
|
+
/** The referrer's share of `fee_lamports`, deducted from the creator fee. */
|
|
330
|
+
referralLamports: bigint;
|
|
331
|
+
/** The protocol's 1% of `venue_debit`, paid on top of it. */
|
|
332
|
+
protocolLamports: bigint;
|
|
333
|
+
vrfDebit: bigint;
|
|
334
|
+
prizes: Array<Prize>;
|
|
335
|
+
};
|
|
336
|
+
export type PackBoughtEventArgs = {
|
|
337
|
+
pool: Address;
|
|
338
|
+
seq: number | bigint;
|
|
339
|
+
purchaser: Address;
|
|
340
|
+
venue: Address;
|
|
341
|
+
/** Always `pool.pack_tokens`. The trade is exact-tokens-out. */
|
|
342
|
+
tokensBought: number | bigint;
|
|
343
|
+
/**
|
|
344
|
+
* What the pack cost: venue quote spend plus venue account rent; SOL + WSOL,
|
|
345
|
+
* without double counting. Both fees below are a share of this number.
|
|
346
|
+
*/
|
|
347
|
+
venueDebit: number | bigint;
|
|
348
|
+
/** The creator's `fee_bps` share of `venue_debit`, paid on top of it. */
|
|
349
|
+
feeLamports: number | bigint;
|
|
350
|
+
/** The referrer's share of `fee_lamports`, deducted from the creator fee. */
|
|
351
|
+
referralLamports: number | bigint;
|
|
352
|
+
/** The protocol's 1% of `venue_debit`, paid on top of it. */
|
|
353
|
+
protocolLamports: number | bigint;
|
|
354
|
+
vrfDebit: number | bigint;
|
|
355
|
+
prizes: Array<PrizeArgs>;
|
|
356
|
+
};
|
|
357
|
+
/** Gets the encoder for {@link PackBoughtEventArgs} event data. */
|
|
358
|
+
export declare function getPackBoughtEventEncoder(): FixedSizeEncoder<PackBoughtEventArgs>;
|
|
359
|
+
/** Gets the decoder for {@link PackBoughtEvent} event data. */
|
|
360
|
+
export declare function getPackBoughtEventDecoder(): FixedSizeDecoder<PackBoughtEvent>;
|
|
361
|
+
/** Gets the codec for {@link PackBoughtEvent} event data. */
|
|
362
|
+
export declare function getPackBoughtEventCodec(): FixedSizeCodec<PackBoughtEventArgs, PackBoughtEvent>;
|
|
363
|
+
/** Parses the provided bytes into {@link PackBoughtEvent} event data. */
|
|
364
|
+
export declare function parsePackBoughtEvent(data: ReadonlyUint8Array | Uint8Array): PackBoughtEvent;
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region src/generated/events/poolCreated.d.ts
|
|
367
|
+
export declare const POOL_CREATED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
368
|
+
export declare function getPoolCreatedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
369
|
+
export type PoolCreatedEvent = {
|
|
370
|
+
pool: Address;
|
|
371
|
+
mint: Address;
|
|
372
|
+
creator: Address;
|
|
373
|
+
packTokens: bigint;
|
|
374
|
+
feeBps: number;
|
|
375
|
+
tiers: Array<Tier>;
|
|
376
|
+
/** Tokens the creator donated at creation. Nobody can withdraw them. */
|
|
377
|
+
seedTokens: bigint;
|
|
378
|
+
/** Lamports the creator spent on the curve to buy that seed. */
|
|
379
|
+
seedLamports: bigint;
|
|
380
|
+
};
|
|
381
|
+
export type PoolCreatedEventArgs = {
|
|
382
|
+
pool: Address;
|
|
383
|
+
mint: Address;
|
|
384
|
+
creator: Address;
|
|
385
|
+
packTokens: number | bigint;
|
|
386
|
+
feeBps: number;
|
|
387
|
+
tiers: Array<TierArgs>;
|
|
388
|
+
/** Tokens the creator donated at creation. Nobody can withdraw them. */
|
|
389
|
+
seedTokens: number | bigint;
|
|
390
|
+
/** Lamports the creator spent on the curve to buy that seed. */
|
|
391
|
+
seedLamports: number | bigint;
|
|
392
|
+
};
|
|
393
|
+
/** Gets the encoder for {@link PoolCreatedEventArgs} event data. */
|
|
394
|
+
export declare function getPoolCreatedEventEncoder(): FixedSizeEncoder<PoolCreatedEventArgs>;
|
|
395
|
+
/** Gets the decoder for {@link PoolCreatedEvent} event data. */
|
|
396
|
+
export declare function getPoolCreatedEventDecoder(): FixedSizeDecoder<PoolCreatedEvent>;
|
|
397
|
+
/** Gets the codec for {@link PoolCreatedEvent} event data. */
|
|
398
|
+
export declare function getPoolCreatedEventCodec(): FixedSizeCodec<PoolCreatedEventArgs, PoolCreatedEvent>;
|
|
399
|
+
/** Parses the provided bytes into {@link PoolCreatedEvent} event data. */
|
|
400
|
+
export declare function parsePoolCreatedEvent(data: ReadonlyUint8Array | Uint8Array): PoolCreatedEvent;
|
|
401
|
+
//#endregion
|
|
402
|
+
//#region src/generated/events/prizeRedeemed.d.ts
|
|
403
|
+
export declare const PRIZE_REDEEMED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
404
|
+
export declare function getPrizeRedeemedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
405
|
+
export type PrizeRedeemedEvent = {
|
|
406
|
+
pool: Address;
|
|
407
|
+
seq: bigint;
|
|
408
|
+
purchaser: Address;
|
|
409
|
+
amount: bigint;
|
|
410
|
+
sold: boolean;
|
|
411
|
+
};
|
|
412
|
+
export type PrizeRedeemedEventArgs = {
|
|
413
|
+
pool: Address;
|
|
414
|
+
seq: number | bigint;
|
|
415
|
+
purchaser: Address;
|
|
416
|
+
amount: number | bigint;
|
|
417
|
+
sold: boolean;
|
|
418
|
+
};
|
|
419
|
+
/** Gets the encoder for {@link PrizeRedeemedEventArgs} event data. */
|
|
420
|
+
export declare function getPrizeRedeemedEventEncoder(): FixedSizeEncoder<PrizeRedeemedEventArgs>;
|
|
421
|
+
/** Gets the decoder for {@link PrizeRedeemedEvent} event data. */
|
|
422
|
+
export declare function getPrizeRedeemedEventDecoder(): FixedSizeDecoder<PrizeRedeemedEvent>;
|
|
423
|
+
/** Gets the codec for {@link PrizeRedeemedEvent} event data. */
|
|
424
|
+
export declare function getPrizeRedeemedEventCodec(): FixedSizeCodec<PrizeRedeemedEventArgs, PrizeRedeemedEvent>;
|
|
425
|
+
/** Parses the provided bytes into {@link PrizeRedeemedEvent} event data. */
|
|
426
|
+
export declare function parsePrizeRedeemedEvent(data: ReadonlyUint8Array | Uint8Array): PrizeRedeemedEvent;
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region src/generated/events/prizesFunded.d.ts
|
|
429
|
+
export declare const PRIZES_FUNDED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
430
|
+
export declare function getPrizesFundedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
431
|
+
export type PrizesFundedEvent = {
|
|
432
|
+
pool: Address;
|
|
433
|
+
funder: Address;
|
|
434
|
+
amount: bigint;
|
|
435
|
+
};
|
|
436
|
+
export type PrizesFundedEventArgs = {
|
|
437
|
+
pool: Address;
|
|
438
|
+
funder: Address;
|
|
439
|
+
amount: number | bigint;
|
|
440
|
+
};
|
|
441
|
+
/** Gets the encoder for {@link PrizesFundedEventArgs} event data. */
|
|
442
|
+
export declare function getPrizesFundedEventEncoder(): FixedSizeEncoder<PrizesFundedEventArgs>;
|
|
443
|
+
/** Gets the decoder for {@link PrizesFundedEvent} event data. */
|
|
444
|
+
export declare function getPrizesFundedEventDecoder(): FixedSizeDecoder<PrizesFundedEvent>;
|
|
445
|
+
/** Gets the codec for {@link PrizesFundedEvent} event data. */
|
|
446
|
+
export declare function getPrizesFundedEventCodec(): FixedSizeCodec<PrizesFundedEventArgs, PrizesFundedEvent>;
|
|
447
|
+
/** Parses the provided bytes into {@link PrizesFundedEvent} event data. */
|
|
448
|
+
export declare function parsePrizesFundedEvent(data: ReadonlyUint8Array | Uint8Array): PrizesFundedEvent;
|
|
449
|
+
//#endregion
|
|
450
|
+
//#region src/generated/events/randomnessRetried.d.ts
|
|
451
|
+
export declare const RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
452
|
+
export declare function getRandomnessRetriedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
453
|
+
export type RandomnessRetriedEvent = {
|
|
454
|
+
pool: Address;
|
|
455
|
+
seq: bigint;
|
|
456
|
+
attempt: number;
|
|
457
|
+
};
|
|
458
|
+
export type RandomnessRetriedEventArgs = {
|
|
459
|
+
pool: Address;
|
|
460
|
+
seq: number | bigint;
|
|
461
|
+
attempt: number;
|
|
462
|
+
};
|
|
463
|
+
/** Gets the encoder for {@link RandomnessRetriedEventArgs} event data. */
|
|
464
|
+
export declare function getRandomnessRetriedEventEncoder(): FixedSizeEncoder<RandomnessRetriedEventArgs>;
|
|
465
|
+
/** Gets the decoder for {@link RandomnessRetriedEvent} event data. */
|
|
466
|
+
export declare function getRandomnessRetriedEventDecoder(): FixedSizeDecoder<RandomnessRetriedEvent>;
|
|
467
|
+
/** Gets the codec for {@link RandomnessRetriedEvent} event data. */
|
|
468
|
+
export declare function getRandomnessRetriedEventCodec(): FixedSizeCodec<RandomnessRetriedEventArgs, RandomnessRetriedEvent>;
|
|
469
|
+
/** Parses the provided bytes into {@link RandomnessRetriedEvent} event data. */
|
|
470
|
+
export declare function parseRandomnessRetriedEvent(data: ReadonlyUint8Array | Uint8Array): RandomnessRetriedEvent;
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region src/generated/events/referralBound.d.ts
|
|
473
|
+
export declare const REFERRAL_BOUND_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
474
|
+
export declare function getReferralBoundEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
475
|
+
export type ReferralBoundEvent = {
|
|
476
|
+
referee: Address;
|
|
477
|
+
referrer: Address;
|
|
478
|
+
};
|
|
479
|
+
export type ReferralBoundEventArgs = ReferralBoundEvent;
|
|
480
|
+
/** Gets the encoder for {@link ReferralBoundEventArgs} event data. */
|
|
481
|
+
export declare function getReferralBoundEventEncoder(): FixedSizeEncoder<ReferralBoundEventArgs>;
|
|
482
|
+
/** Gets the decoder for {@link ReferralBoundEvent} event data. */
|
|
483
|
+
export declare function getReferralBoundEventDecoder(): FixedSizeDecoder<ReferralBoundEvent>;
|
|
484
|
+
/** Gets the codec for {@link ReferralBoundEvent} event data. */
|
|
485
|
+
export declare function getReferralBoundEventCodec(): FixedSizeCodec<ReferralBoundEventArgs, ReferralBoundEvent>;
|
|
486
|
+
/** Parses the provided bytes into {@link ReferralBoundEvent} event data. */
|
|
487
|
+
export declare function parseReferralBoundEvent(data: ReadonlyUint8Array | Uint8Array): ReferralBoundEvent;
|
|
488
|
+
//#endregion
|
|
489
|
+
//#region src/generated/events/referralClaimed.d.ts
|
|
490
|
+
export declare const REFERRAL_CLAIMED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
491
|
+
export declare function getReferralClaimedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
492
|
+
export type ReferralClaimedEvent = {
|
|
493
|
+
pool: Address;
|
|
494
|
+
referrer: Address;
|
|
495
|
+
amount: bigint;
|
|
496
|
+
};
|
|
497
|
+
export type ReferralClaimedEventArgs = {
|
|
498
|
+
pool: Address;
|
|
499
|
+
referrer: Address;
|
|
500
|
+
amount: number | bigint;
|
|
501
|
+
};
|
|
502
|
+
/** Gets the encoder for {@link ReferralClaimedEventArgs} event data. */
|
|
503
|
+
export declare function getReferralClaimedEventEncoder(): FixedSizeEncoder<ReferralClaimedEventArgs>;
|
|
504
|
+
/** Gets the decoder for {@link ReferralClaimedEvent} event data. */
|
|
505
|
+
export declare function getReferralClaimedEventDecoder(): FixedSizeDecoder<ReferralClaimedEvent>;
|
|
506
|
+
/** Gets the codec for {@link ReferralClaimedEvent} event data. */
|
|
507
|
+
export declare function getReferralClaimedEventCodec(): FixedSizeCodec<ReferralClaimedEventArgs, ReferralClaimedEvent>;
|
|
508
|
+
/** Parses the provided bytes into {@link ReferralClaimedEvent} event data. */
|
|
509
|
+
export declare function parseReferralClaimedEvent(data: ReadonlyUint8Array | Uint8Array): ReferralClaimedEvent;
|
|
510
|
+
//#endregion
|
|
511
|
+
//#region src/generated/events/tokensSold.d.ts
|
|
512
|
+
export declare const TOKENS_SOLD_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
513
|
+
export declare function getTokensSoldEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
514
|
+
export type TokensSoldEvent = {
|
|
515
|
+
pool: Address;
|
|
516
|
+
seller: Address;
|
|
517
|
+
venue: Address;
|
|
518
|
+
amount: bigint;
|
|
519
|
+
/** SOL plus WSOL the venue paid the seller, before the protocol fee. */
|
|
520
|
+
proceeds: bigint;
|
|
521
|
+
/** The protocol's 1% of `proceeds`, SOL plus WSOL. */
|
|
522
|
+
protocolFee: bigint;
|
|
523
|
+
};
|
|
524
|
+
export type TokensSoldEventArgs = {
|
|
525
|
+
pool: Address;
|
|
526
|
+
seller: Address;
|
|
527
|
+
venue: Address;
|
|
528
|
+
amount: number | bigint;
|
|
529
|
+
/** SOL plus WSOL the venue paid the seller, before the protocol fee. */
|
|
530
|
+
proceeds: number | bigint;
|
|
531
|
+
/** The protocol's 1% of `proceeds`, SOL plus WSOL. */
|
|
532
|
+
protocolFee: number | bigint;
|
|
533
|
+
};
|
|
534
|
+
/** Gets the encoder for {@link TokensSoldEventArgs} event data. */
|
|
535
|
+
export declare function getTokensSoldEventEncoder(): FixedSizeEncoder<TokensSoldEventArgs>;
|
|
536
|
+
/** Gets the decoder for {@link TokensSoldEvent} event data. */
|
|
537
|
+
export declare function getTokensSoldEventDecoder(): FixedSizeDecoder<TokensSoldEvent>;
|
|
538
|
+
/** Gets the codec for {@link TokensSoldEvent} event data. */
|
|
539
|
+
export declare function getTokensSoldEventCodec(): FixedSizeCodec<TokensSoldEventArgs, TokensSoldEvent>;
|
|
540
|
+
/** Parses the provided bytes into {@link TokensSoldEvent} event data. */
|
|
541
|
+
export declare function parseTokensSoldEvent(data: ReadonlyUint8Array | Uint8Array): TokensSoldEvent;
|
|
542
|
+
//#endregion
|
|
543
|
+
//#region src/generated/pdas/claimReferralReferral.d.ts
|
|
544
|
+
export type ClaimReferralReferralSeeds = {
|
|
545
|
+
pool: Address;
|
|
546
|
+
referrer: Address;
|
|
547
|
+
};
|
|
548
|
+
export declare function findClaimReferralReferralPda(seeds: ClaimReferralReferralSeeds, config?: {
|
|
549
|
+
programAddress?: Address | undefined;
|
|
550
|
+
}): Promise<ProgramDerivedAddress>;
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region src/generated/pdas/draw.d.ts
|
|
553
|
+
export type DrawSeeds = {
|
|
554
|
+
pool: Address;
|
|
555
|
+
seq: number | bigint;
|
|
556
|
+
};
|
|
557
|
+
export declare function findDrawPda(seeds: DrawSeeds, config?: {
|
|
558
|
+
programAddress?: Address | undefined;
|
|
559
|
+
}): Promise<ProgramDerivedAddress>;
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region src/generated/pdas/identity.d.ts
|
|
562
|
+
export declare function findIdentityPda(config?: {
|
|
563
|
+
programAddress?: Address | undefined;
|
|
564
|
+
}): Promise<ProgramDerivedAddress>;
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/generated/pdas/link.d.ts
|
|
567
|
+
export type LinkSeeds = {
|
|
568
|
+
referee: Address;
|
|
569
|
+
};
|
|
570
|
+
export declare function findLinkPda(seeds: LinkSeeds, config?: {
|
|
571
|
+
programAddress?: Address | undefined;
|
|
572
|
+
}): Promise<ProgramDerivedAddress>;
|
|
573
|
+
//#endregion
|
|
574
|
+
//#region src/generated/pdas/pool.d.ts
|
|
575
|
+
export type PoolSeeds = {
|
|
576
|
+
mint: Address;
|
|
577
|
+
};
|
|
578
|
+
export declare function findPoolPda(seeds: PoolSeeds, config?: {
|
|
579
|
+
programAddress?: Address | undefined;
|
|
580
|
+
}): Promise<ProgramDerivedAddress>;
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region src/generated/pdas/referral.d.ts
|
|
583
|
+
export type ReferralSeeds = {
|
|
584
|
+
pool: Address;
|
|
585
|
+
referralLink: Address;
|
|
586
|
+
};
|
|
587
|
+
export declare function findReferralPda(seeds: ReferralSeeds, config?: {
|
|
588
|
+
programAddress?: Address | undefined;
|
|
589
|
+
}): Promise<ProgramDerivedAddress>;
|
|
590
|
+
//#endregion
|
|
591
|
+
//#region src/generated/pdas/referralLink.d.ts
|
|
592
|
+
export type ReferralLinkSeeds = {
|
|
593
|
+
purchaser: Address;
|
|
594
|
+
};
|
|
595
|
+
export declare function findReferralLinkPda(seeds: ReferralLinkSeeds, config?: {
|
|
596
|
+
programAddress?: Address | undefined;
|
|
597
|
+
}): Promise<ProgramDerivedAddress>;
|
|
598
|
+
//#endregion
|
|
599
|
+
//#region src/generated/programs/gaboxV2.d.ts
|
|
600
|
+
export declare const GABOX_V2_PROGRAM_ADDRESS: Address<"GaBoxR9nYcK1zeu8EvSJVHV3SrYpCFmvbh2MLgobMcUA">;
|
|
601
|
+
export declare enum GaboxV2Account {
|
|
602
|
+
Draw = 0,
|
|
603
|
+
Pool = 1,
|
|
604
|
+
Referral = 2,
|
|
605
|
+
ReferralLink = 3
|
|
606
|
+
}
|
|
607
|
+
export declare function identifyGaboxV2Account(account: {
|
|
608
|
+
data: ReadonlyUint8Array;
|
|
609
|
+
} | ReadonlyUint8Array): GaboxV2Account;
|
|
610
|
+
export declare enum GaboxV2Event {
|
|
611
|
+
DrawResolved = 0,
|
|
612
|
+
PackBought = 1,
|
|
613
|
+
PoolCreated = 2,
|
|
614
|
+
PrizeRedeemed = 3,
|
|
615
|
+
PrizesFunded = 4,
|
|
616
|
+
RandomnessRetried = 5,
|
|
617
|
+
ReferralBound = 6,
|
|
618
|
+
ReferralClaimed = 7,
|
|
619
|
+
TokensSold = 8
|
|
620
|
+
}
|
|
621
|
+
export declare function identifyGaboxV2Event(event: {
|
|
622
|
+
data: ReadonlyUint8Array;
|
|
623
|
+
} | ReadonlyUint8Array): GaboxV2Event;
|
|
624
|
+
export declare enum GaboxV2Instruction {
|
|
625
|
+
BindReferrer = 0,
|
|
626
|
+
BuyPack = 1,
|
|
627
|
+
ClaimPrize = 2,
|
|
628
|
+
ClaimReferral = 3,
|
|
629
|
+
DeliverDraw = 4,
|
|
630
|
+
ExpireDraw = 5,
|
|
631
|
+
FulfillDraw = 6,
|
|
632
|
+
FundPrizes = 7,
|
|
633
|
+
InitializePool = 8,
|
|
634
|
+
RetryDraw = 9,
|
|
635
|
+
SellPrize = 10,
|
|
636
|
+
SellTokens = 11
|
|
637
|
+
}
|
|
638
|
+
export declare function identifyGaboxV2Instruction(instruction: {
|
|
639
|
+
data: ReadonlyUint8Array;
|
|
640
|
+
} | ReadonlyUint8Array): GaboxV2Instruction;
|
|
641
|
+
export type ParsedGaboxV2Instruction<TProgram extends string = 'GaBoxR9nYcK1zeu8EvSJVHV3SrYpCFmvbh2MLgobMcUA'> = {
|
|
642
|
+
instructionType: GaboxV2Instruction.BindReferrer;
|
|
643
|
+
} & ParsedBindReferrerInstruction<TProgram> | {
|
|
644
|
+
instructionType: GaboxV2Instruction.BuyPack;
|
|
645
|
+
} & ParsedBuyPackInstruction<TProgram> | {
|
|
646
|
+
instructionType: GaboxV2Instruction.ClaimPrize;
|
|
647
|
+
} & ParsedClaimPrizeInstruction<TProgram> | {
|
|
648
|
+
instructionType: GaboxV2Instruction.ClaimReferral;
|
|
649
|
+
} & ParsedClaimReferralInstruction<TProgram> | {
|
|
650
|
+
instructionType: GaboxV2Instruction.DeliverDraw;
|
|
651
|
+
} & ParsedDeliverDrawInstruction<TProgram> | {
|
|
652
|
+
instructionType: GaboxV2Instruction.ExpireDraw;
|
|
653
|
+
} & ParsedExpireDrawInstruction<TProgram> | {
|
|
654
|
+
instructionType: GaboxV2Instruction.FulfillDraw;
|
|
655
|
+
} & ParsedFulfillDrawInstruction<TProgram> | {
|
|
656
|
+
instructionType: GaboxV2Instruction.FundPrizes;
|
|
657
|
+
} & ParsedFundPrizesInstruction<TProgram> | {
|
|
658
|
+
instructionType: GaboxV2Instruction.InitializePool;
|
|
659
|
+
} & ParsedInitializePoolInstruction<TProgram> | {
|
|
660
|
+
instructionType: GaboxV2Instruction.RetryDraw;
|
|
661
|
+
} & ParsedRetryDrawInstruction<TProgram> | {
|
|
662
|
+
instructionType: GaboxV2Instruction.SellPrize;
|
|
663
|
+
} & ParsedSellPrizeInstruction<TProgram> | {
|
|
664
|
+
instructionType: GaboxV2Instruction.SellTokens;
|
|
665
|
+
} & ParsedSellTokensInstruction<TProgram>;
|
|
666
|
+
export declare function parseGaboxV2Instruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedGaboxV2Instruction<TProgram>;
|
|
667
|
+
export type GaboxV2Plugin = {
|
|
668
|
+
accounts: GaboxV2PluginAccounts;
|
|
669
|
+
instructions: GaboxV2PluginInstructions;
|
|
670
|
+
pdas: GaboxV2PluginPdas;
|
|
671
|
+
identifyAccount: typeof identifyGaboxV2Account;
|
|
672
|
+
identifyInstruction: typeof identifyGaboxV2Instruction;
|
|
673
|
+
parseInstruction: typeof parseGaboxV2Instruction;
|
|
674
|
+
};
|
|
675
|
+
export type GaboxV2PluginAccounts = {
|
|
676
|
+
draw: ReturnType<typeof getDrawCodec> & SelfFetchFunctions<DrawArgs, Draw>;
|
|
677
|
+
pool: ReturnType<typeof getPoolCodec> & SelfFetchFunctions<PoolArgs, Pool>;
|
|
678
|
+
referral: ReturnType<typeof getReferralCodec> & SelfFetchFunctions<ReferralArgs, Referral>;
|
|
679
|
+
referralLink: ReturnType<typeof getReferralLinkCodec> & SelfFetchFunctions<ReferralLinkArgs, ReferralLink>;
|
|
680
|
+
};
|
|
681
|
+
export type GaboxV2PluginInstructions = {
|
|
682
|
+
bindReferrer: (input: BindReferrerAsyncInput) => ReturnType<typeof getBindReferrerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
683
|
+
buyPack: (input: BuyPackAsyncInput) => ReturnType<typeof getBuyPackInstructionAsync> & SelfPlanAndSendFunctions;
|
|
684
|
+
claimPrize: (input: ClaimPrizeAsyncInput) => ReturnType<typeof getClaimPrizeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
685
|
+
claimReferral: (input: ClaimReferralAsyncInput) => ReturnType<typeof getClaimReferralInstructionAsync> & SelfPlanAndSendFunctions;
|
|
686
|
+
deliverDraw: (input: DeliverDrawAsyncInput) => ReturnType<typeof getDeliverDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
687
|
+
expireDraw: (input: ExpireDrawAsyncInput) => ReturnType<typeof getExpireDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
688
|
+
fulfillDraw: (input: FulfillDrawAsyncInput) => ReturnType<typeof getFulfillDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
689
|
+
fundPrizes: (input: FundPrizesInput) => ReturnType<typeof getFundPrizesInstruction> & SelfPlanAndSendFunctions;
|
|
690
|
+
initializePool: (input: InitializePoolAsyncInput) => ReturnType<typeof getInitializePoolInstructionAsync> & SelfPlanAndSendFunctions;
|
|
691
|
+
retryDraw: (input: MakeOptional<RetryDrawAsyncInput, "payer">) => ReturnType<typeof getRetryDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
692
|
+
sellPrize: (input: SellPrizeAsyncInput) => ReturnType<typeof getSellPrizeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
693
|
+
sellTokens: (input: SellTokensAsyncInput) => ReturnType<typeof getSellTokensInstructionAsync> & SelfPlanAndSendFunctions;
|
|
694
|
+
};
|
|
695
|
+
export type GaboxV2PluginPdas = {
|
|
696
|
+
link: typeof findLinkPda;
|
|
697
|
+
identity: typeof findIdentityPda;
|
|
698
|
+
referralLink: typeof findReferralLinkPda;
|
|
699
|
+
referral: typeof findReferralPda;
|
|
700
|
+
pool: typeof findPoolPda;
|
|
701
|
+
claimReferralReferral: typeof findClaimReferralReferralPda;
|
|
702
|
+
draw: typeof findDrawPda;
|
|
703
|
+
};
|
|
704
|
+
export type GaboxV2PluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
705
|
+
export declare function gaboxV2Program(): <T extends GaboxV2PluginRequirements>(client: T) => ExtendedClient<T, {
|
|
706
|
+
gaboxV2: GaboxV2Plugin;
|
|
707
|
+
}>;
|
|
708
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region src/generated/instructions/bindReferrer.d.ts
|
|
711
|
+
export declare const BIND_REFERRER_DISCRIMINATOR: ReadonlyUint8Array;
|
|
712
|
+
export declare function getBindReferrerDiscriminatorBytes(): ReadonlyUint8Array;
|
|
713
|
+
export type BindReferrerInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountReferee extends string | AccountMeta<string> = string, TAccountLink extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountReferee extends string ? WritableSignerAccount<TAccountReferee> & AccountSignerMeta<TAccountReferee> : TAccountReferee, TAccountLink extends string ? WritableAccount<TAccountLink> : TAccountLink, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
714
|
+
export type BindReferrerInstructionData = {
|
|
715
|
+
discriminator: ReadonlyUint8Array;
|
|
716
|
+
referrer: Address;
|
|
717
|
+
};
|
|
718
|
+
export type BindReferrerInstructionDataArgs = {
|
|
719
|
+
referrer: Address;
|
|
720
|
+
};
|
|
721
|
+
export declare function getBindReferrerInstructionDataEncoder(): FixedSizeEncoder<BindReferrerInstructionDataArgs>;
|
|
722
|
+
export declare function getBindReferrerInstructionDataDecoder(): FixedSizeDecoder<BindReferrerInstructionData>;
|
|
723
|
+
export declare function getBindReferrerInstructionDataCodec(): FixedSizeCodec<BindReferrerInstructionDataArgs, BindReferrerInstructionData>;
|
|
724
|
+
export type BindReferrerAsyncInput<TAccountReferee extends string = string, TAccountLink extends string = string, TAccountSystemProgram extends string = string> = {
|
|
725
|
+
referee: TransactionSigner<TAccountReferee>;
|
|
726
|
+
link?: Address<TAccountLink>;
|
|
727
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
728
|
+
referrer: BindReferrerInstructionDataArgs["referrer"];
|
|
729
|
+
};
|
|
730
|
+
export declare function getBindReferrerInstructionAsync<TAccountReferee extends string, TAccountLink extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: BindReferrerAsyncInput<TAccountReferee, TAccountLink, TAccountSystemProgram>, config?: {
|
|
731
|
+
programAddress?: TProgramAddress;
|
|
732
|
+
}): Promise<BindReferrerInstruction<TProgramAddress, TAccountReferee, TAccountLink, TAccountSystemProgram>>;
|
|
733
|
+
export type BindReferrerInput<TAccountReferee extends string = string, TAccountLink extends string = string, TAccountSystemProgram extends string = string> = {
|
|
734
|
+
referee: TransactionSigner<TAccountReferee>;
|
|
735
|
+
link: Address<TAccountLink>;
|
|
736
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
737
|
+
referrer: BindReferrerInstructionDataArgs["referrer"];
|
|
738
|
+
};
|
|
739
|
+
export declare function getBindReferrerInstruction<TAccountReferee extends string, TAccountLink extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: BindReferrerInput<TAccountReferee, TAccountLink, TAccountSystemProgram>, config?: {
|
|
740
|
+
programAddress?: TProgramAddress;
|
|
741
|
+
}): BindReferrerInstruction<TProgramAddress, TAccountReferee, TAccountLink, TAccountSystemProgram>;
|
|
742
|
+
export type ParsedBindReferrerInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
743
|
+
programAddress: Address<TProgram>;
|
|
744
|
+
accounts: {
|
|
745
|
+
referee: TAccountMetas[0];
|
|
746
|
+
link: TAccountMetas[1];
|
|
747
|
+
systemProgram: TAccountMetas[2];
|
|
748
|
+
};
|
|
749
|
+
data: BindReferrerInstructionData;
|
|
750
|
+
};
|
|
751
|
+
export declare function parseBindReferrerInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBindReferrerInstruction<TProgram, TAccountMetas>;
|
|
752
|
+
//#endregion
|
|
753
|
+
//#region src/generated/instructions/buyPack.d.ts
|
|
754
|
+
export declare const BUY_PACK_DISCRIMINATOR: ReadonlyUint8Array;
|
|
755
|
+
export declare function getBuyPackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
756
|
+
export type BuyPackInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountPurchaser extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountCreator extends string | AccountMeta<string> = string, TAccountFeeCollector extends string | AccountMeta<string> = "5WcPTEQ59UqpQzjZUPbU8QRGCbj7NeQNLDa7DbsLkLKT", TAccountDraw extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = string, TAccountIdentity extends string | AccountMeta<string> = string, TAccountQueue extends string | AccountMeta<string> = "Cuj97ggrhhidhbu39TijNVqE74xvKJ69gDervRUXAxGh", TAccountProgram extends string | AccountMeta<string> = "Vrf1RNUjXmQGjmQrQLvJHs9SNkvDJEsRVFPkfSQUwGz", TAccountSlotHashes extends string | AccountMeta<string> = "SysvarS1otHashes111111111111111111111111111", TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountReferralLink extends string | AccountMeta<string> = string, TAccountReferral extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPurchaser extends string ? WritableSignerAccount<TAccountPurchaser> & AccountSignerMeta<TAccountPurchaser> : TAccountPurchaser, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountCreator extends string ? WritableAccount<TAccountCreator> : TAccountCreator, TAccountFeeCollector extends string ? WritableAccount<TAccountFeeCollector> : TAccountFeeCollector, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountIdentity extends string ? ReadonlyAccount<TAccountIdentity> : TAccountIdentity, TAccountQueue extends string ? WritableAccount<TAccountQueue> : TAccountQueue, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountReferralLink extends string ? ReadonlyAccount<TAccountReferralLink> : TAccountReferralLink, TAccountReferral extends string ? WritableAccount<TAccountReferral> : TAccountReferral, ...TRemainingAccounts]>;
|
|
757
|
+
export type BuyPackInstructionData = {
|
|
758
|
+
discriminator: ReadonlyUint8Array;
|
|
759
|
+
maxQuoteIn: bigint;
|
|
760
|
+
minMaximum: bigint;
|
|
761
|
+
maxTotalDebit: bigint;
|
|
762
|
+
};
|
|
763
|
+
export type BuyPackInstructionDataArgs = {
|
|
764
|
+
maxQuoteIn: number | bigint;
|
|
765
|
+
minMaximum: number | bigint;
|
|
766
|
+
maxTotalDebit: number | bigint;
|
|
767
|
+
};
|
|
768
|
+
export declare function getBuyPackInstructionDataEncoder(): FixedSizeEncoder<BuyPackInstructionDataArgs>;
|
|
769
|
+
export declare function getBuyPackInstructionDataDecoder(): FixedSizeDecoder<BuyPackInstructionData>;
|
|
770
|
+
export declare function getBuyPackInstructionDataCodec(): FixedSizeCodec<BuyPackInstructionDataArgs, BuyPackInstructionData>;
|
|
771
|
+
export type BuyPackAsyncInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountCreator extends string = string, TAccountFeeCollector extends string = string, TAccountDraw extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountIdentity extends string = string, TAccountQueue extends string = string, TAccountProgram extends string = string, TAccountSlotHashes extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountReferralLink extends string = string, TAccountReferral extends string = string> = {
|
|
772
|
+
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
773
|
+
pool: Address<TAccountPool>;
|
|
774
|
+
creator: Address<TAccountCreator>;
|
|
775
|
+
feeCollector?: Address<TAccountFeeCollector>;
|
|
776
|
+
draw: Address<TAccountDraw>;
|
|
777
|
+
mint: Address<TAccountMint>;
|
|
778
|
+
vault: Address<TAccountVault>;
|
|
779
|
+
userTokens?: Address<TAccountUserTokens>;
|
|
780
|
+
venue: Address<TAccountVenue>;
|
|
781
|
+
identity?: Address<TAccountIdentity>;
|
|
782
|
+
queue?: Address<TAccountQueue>;
|
|
783
|
+
program?: Address<TAccountProgram>;
|
|
784
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
785
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
786
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
787
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
788
|
+
referralLink?: Address<TAccountReferralLink>;
|
|
789
|
+
referral?: Address<TAccountReferral>;
|
|
790
|
+
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
791
|
+
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
792
|
+
maxTotalDebit: BuyPackInstructionDataArgs["maxTotalDebit"];
|
|
793
|
+
};
|
|
794
|
+
export declare function getBuyPackInstructionAsync<TAccountPurchaser extends string, TAccountPool extends string, TAccountCreator extends string, TAccountFeeCollector extends string, TAccountDraw extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountIdentity extends string, TAccountQueue extends string, TAccountProgram extends string, TAccountSlotHashes extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountReferralLink extends string, TAccountReferral extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: BuyPackAsyncInput<TAccountPurchaser, TAccountPool, TAccountCreator, TAccountFeeCollector, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountReferralLink, TAccountReferral>, config?: {
|
|
795
|
+
programAddress?: TProgramAddress;
|
|
796
|
+
}): Promise<BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountCreator, TAccountFeeCollector, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountReferralLink, TAccountReferral>>;
|
|
797
|
+
export type BuyPackInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountCreator extends string = string, TAccountFeeCollector extends string = string, TAccountDraw extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountIdentity extends string = string, TAccountQueue extends string = string, TAccountProgram extends string = string, TAccountSlotHashes extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountReferralLink extends string = string, TAccountReferral extends string = string> = {
|
|
798
|
+
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
799
|
+
pool: Address<TAccountPool>;
|
|
800
|
+
creator: Address<TAccountCreator>;
|
|
801
|
+
feeCollector?: Address<TAccountFeeCollector>;
|
|
802
|
+
draw: Address<TAccountDraw>;
|
|
803
|
+
mint: Address<TAccountMint>;
|
|
804
|
+
vault: Address<TAccountVault>;
|
|
805
|
+
userTokens: Address<TAccountUserTokens>;
|
|
806
|
+
venue: Address<TAccountVenue>;
|
|
807
|
+
identity: Address<TAccountIdentity>;
|
|
808
|
+
queue?: Address<TAccountQueue>;
|
|
809
|
+
program?: Address<TAccountProgram>;
|
|
810
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
811
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
812
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
813
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
814
|
+
referralLink?: Address<TAccountReferralLink>;
|
|
815
|
+
referral?: Address<TAccountReferral>;
|
|
816
|
+
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
817
|
+
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
818
|
+
maxTotalDebit: BuyPackInstructionDataArgs["maxTotalDebit"];
|
|
819
|
+
};
|
|
820
|
+
export declare function getBuyPackInstruction<TAccountPurchaser extends string, TAccountPool extends string, TAccountCreator extends string, TAccountFeeCollector extends string, TAccountDraw extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountIdentity extends string, TAccountQueue extends string, TAccountProgram extends string, TAccountSlotHashes extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountReferralLink extends string, TAccountReferral extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: BuyPackInput<TAccountPurchaser, TAccountPool, TAccountCreator, TAccountFeeCollector, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountReferralLink, TAccountReferral>, config?: {
|
|
821
|
+
programAddress?: TProgramAddress;
|
|
822
|
+
}): BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountCreator, TAccountFeeCollector, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountReferralLink, TAccountReferral>;
|
|
823
|
+
export type ParsedBuyPackInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
824
|
+
programAddress: Address<TProgram>;
|
|
825
|
+
accounts: {
|
|
826
|
+
purchaser: TAccountMetas[0];
|
|
827
|
+
pool: TAccountMetas[1];
|
|
828
|
+
creator: TAccountMetas[2];
|
|
829
|
+
feeCollector: TAccountMetas[3];
|
|
830
|
+
draw: TAccountMetas[4];
|
|
831
|
+
mint: TAccountMetas[5];
|
|
832
|
+
vault: TAccountMetas[6];
|
|
833
|
+
userTokens: TAccountMetas[7];
|
|
834
|
+
venue: TAccountMetas[8];
|
|
835
|
+
identity: TAccountMetas[9];
|
|
836
|
+
queue: TAccountMetas[10];
|
|
837
|
+
program: TAccountMetas[11];
|
|
838
|
+
slotHashes: TAccountMetas[12];
|
|
839
|
+
tokenProgram: TAccountMetas[13];
|
|
840
|
+
associatedTokenProgram: TAccountMetas[14];
|
|
841
|
+
systemProgram: TAccountMetas[15];
|
|
842
|
+
referralLink?: TAccountMetas[16] | undefined;
|
|
843
|
+
referral?: TAccountMetas[17] | undefined;
|
|
844
|
+
};
|
|
845
|
+
data: BuyPackInstructionData;
|
|
846
|
+
};
|
|
847
|
+
export declare function parseBuyPackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyPackInstruction<TProgram, TAccountMetas>;
|
|
848
|
+
//#endregion
|
|
849
|
+
//#region src/generated/instructions/claimPrize.d.ts
|
|
850
|
+
export declare const CLAIM_PRIZE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
851
|
+
export declare function getClaimPrizeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
852
|
+
export type ClaimPrizeInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountPurchaser extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPurchaser extends string ? WritableSignerAccount<TAccountPurchaser> & AccountSignerMeta<TAccountPurchaser> : TAccountPurchaser, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
853
|
+
export type ClaimPrizeInstructionData = {
|
|
854
|
+
discriminator: ReadonlyUint8Array;
|
|
855
|
+
};
|
|
856
|
+
export type ClaimPrizeInstructionDataArgs = {};
|
|
857
|
+
export declare function getClaimPrizeInstructionDataEncoder(): FixedSizeEncoder<ClaimPrizeInstructionDataArgs>;
|
|
858
|
+
export declare function getClaimPrizeInstructionDataDecoder(): FixedSizeDecoder<ClaimPrizeInstructionData>;
|
|
859
|
+
export declare function getClaimPrizeInstructionDataCodec(): FixedSizeCodec<ClaimPrizeInstructionDataArgs, ClaimPrizeInstructionData>;
|
|
860
|
+
export type ClaimPrizeAsyncInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
861
|
+
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
862
|
+
pool?: Address<TAccountPool>;
|
|
863
|
+
draw: Address<TAccountDraw>;
|
|
864
|
+
mint: Address<TAccountMint>;
|
|
865
|
+
vault: Address<TAccountVault>;
|
|
866
|
+
userTokens?: Address<TAccountUserTokens>;
|
|
867
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
868
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
869
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
870
|
+
};
|
|
871
|
+
export declare function getClaimPrizeInstructionAsync<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: ClaimPrizeAsyncInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
872
|
+
programAddress?: TProgramAddress;
|
|
873
|
+
}): Promise<ClaimPrizeInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
874
|
+
export type ClaimPrizeInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
875
|
+
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
876
|
+
pool: Address<TAccountPool>;
|
|
877
|
+
draw: Address<TAccountDraw>;
|
|
878
|
+
mint: Address<TAccountMint>;
|
|
879
|
+
vault: Address<TAccountVault>;
|
|
880
|
+
userTokens: Address<TAccountUserTokens>;
|
|
881
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
882
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
883
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
884
|
+
};
|
|
885
|
+
export declare function getClaimPrizeInstruction<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: ClaimPrizeInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
886
|
+
programAddress?: TProgramAddress;
|
|
887
|
+
}): ClaimPrizeInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
888
|
+
export type ParsedClaimPrizeInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
889
|
+
programAddress: Address<TProgram>;
|
|
890
|
+
accounts: {
|
|
891
|
+
purchaser: TAccountMetas[0];
|
|
892
|
+
pool: TAccountMetas[1];
|
|
893
|
+
draw: TAccountMetas[2];
|
|
894
|
+
mint: TAccountMetas[3];
|
|
895
|
+
vault: TAccountMetas[4];
|
|
896
|
+
userTokens: TAccountMetas[5];
|
|
897
|
+
tokenProgram: TAccountMetas[6];
|
|
898
|
+
associatedTokenProgram: TAccountMetas[7];
|
|
899
|
+
systemProgram: TAccountMetas[8];
|
|
900
|
+
};
|
|
901
|
+
data: ClaimPrizeInstructionData;
|
|
902
|
+
};
|
|
903
|
+
export declare function parseClaimPrizeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimPrizeInstruction<TProgram, TAccountMetas>;
|
|
904
|
+
//#endregion
|
|
905
|
+
//#region src/generated/instructions/claimReferral.d.ts
|
|
906
|
+
export declare const CLAIM_REFERRAL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
907
|
+
export declare function getClaimReferralDiscriminatorBytes(): ReadonlyUint8Array;
|
|
908
|
+
export type ClaimReferralInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountReferrer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountReferral extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountReferrer extends string ? WritableSignerAccount<TAccountReferrer> & AccountSignerMeta<TAccountReferrer> : TAccountReferrer, TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool, TAccountReferral extends string ? WritableAccount<TAccountReferral> : TAccountReferral, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
909
|
+
export type ClaimReferralInstructionData = {
|
|
910
|
+
discriminator: ReadonlyUint8Array;
|
|
911
|
+
};
|
|
912
|
+
export type ClaimReferralInstructionDataArgs = {};
|
|
913
|
+
export declare function getClaimReferralInstructionDataEncoder(): FixedSizeEncoder<ClaimReferralInstructionDataArgs>;
|
|
914
|
+
export declare function getClaimReferralInstructionDataDecoder(): FixedSizeDecoder<ClaimReferralInstructionData>;
|
|
915
|
+
export declare function getClaimReferralInstructionDataCodec(): FixedSizeCodec<ClaimReferralInstructionDataArgs, ClaimReferralInstructionData>;
|
|
916
|
+
export type ClaimReferralAsyncInput<TAccountReferrer extends string = string, TAccountPool extends string = string, TAccountReferral extends string = string, TAccountSystemProgram extends string = string> = {
|
|
917
|
+
referrer: TransactionSigner<TAccountReferrer>;
|
|
918
|
+
pool: Address<TAccountPool>;
|
|
919
|
+
referral?: Address<TAccountReferral>;
|
|
920
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
921
|
+
};
|
|
922
|
+
export declare function getClaimReferralInstructionAsync<TAccountReferrer extends string, TAccountPool extends string, TAccountReferral extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: ClaimReferralAsyncInput<TAccountReferrer, TAccountPool, TAccountReferral, TAccountSystemProgram>, config?: {
|
|
923
|
+
programAddress?: TProgramAddress;
|
|
924
|
+
}): Promise<ClaimReferralInstruction<TProgramAddress, TAccountReferrer, TAccountPool, TAccountReferral, TAccountSystemProgram>>;
|
|
925
|
+
export type ClaimReferralInput<TAccountReferrer extends string = string, TAccountPool extends string = string, TAccountReferral extends string = string, TAccountSystemProgram extends string = string> = {
|
|
926
|
+
referrer: TransactionSigner<TAccountReferrer>;
|
|
927
|
+
pool: Address<TAccountPool>;
|
|
928
|
+
referral: Address<TAccountReferral>;
|
|
929
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
930
|
+
};
|
|
931
|
+
export declare function getClaimReferralInstruction<TAccountReferrer extends string, TAccountPool extends string, TAccountReferral extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: ClaimReferralInput<TAccountReferrer, TAccountPool, TAccountReferral, TAccountSystemProgram>, config?: {
|
|
932
|
+
programAddress?: TProgramAddress;
|
|
933
|
+
}): ClaimReferralInstruction<TProgramAddress, TAccountReferrer, TAccountPool, TAccountReferral, TAccountSystemProgram>;
|
|
934
|
+
export type ParsedClaimReferralInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
935
|
+
programAddress: Address<TProgram>;
|
|
936
|
+
accounts: {
|
|
937
|
+
referrer: TAccountMetas[0];
|
|
938
|
+
pool: TAccountMetas[1];
|
|
939
|
+
referral: TAccountMetas[2];
|
|
940
|
+
systemProgram: TAccountMetas[3];
|
|
941
|
+
};
|
|
942
|
+
data: ClaimReferralInstructionData;
|
|
943
|
+
};
|
|
944
|
+
export declare function parseClaimReferralInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimReferralInstruction<TProgram, TAccountMetas>;
|
|
945
|
+
//#endregion
|
|
946
|
+
//#region src/generated/instructions/deliverDraw.d.ts
|
|
947
|
+
export declare const DELIVER_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
948
|
+
export declare function getDeliverDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
949
|
+
export type DeliverDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountOracleIdentity extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TAccountPurchaser extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountOracleIdentity extends string ? ReadonlySignerAccount<TAccountOracleIdentity> & AccountSignerMeta<TAccountOracleIdentity> : TAccountOracleIdentity, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, TAccountPurchaser extends string ? WritableAccount<TAccountPurchaser> : TAccountPurchaser, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, ...TRemainingAccounts]>;
|
|
950
|
+
export type DeliverDrawInstructionData = {
|
|
951
|
+
discriminator: ReadonlyUint8Array;
|
|
952
|
+
randomness: ReadonlyUint8Array;
|
|
953
|
+
seq: bigint;
|
|
954
|
+
};
|
|
955
|
+
export type DeliverDrawInstructionDataArgs = {
|
|
956
|
+
randomness: ReadonlyUint8Array;
|
|
957
|
+
seq: number | bigint;
|
|
958
|
+
};
|
|
959
|
+
export declare function getDeliverDrawInstructionDataEncoder(): FixedSizeEncoder<DeliverDrawInstructionDataArgs>;
|
|
960
|
+
export declare function getDeliverDrawInstructionDataDecoder(): FixedSizeDecoder<DeliverDrawInstructionData>;
|
|
961
|
+
export declare function getDeliverDrawInstructionDataCodec(): FixedSizeCodec<DeliverDrawInstructionDataArgs, DeliverDrawInstructionData>;
|
|
962
|
+
export type DeliverDrawAsyncInput<TAccountOracleIdentity extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountPurchaser extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string> = {
|
|
963
|
+
oracleIdentity?: TransactionSigner<TAccountOracleIdentity>;
|
|
964
|
+
pool?: Address<TAccountPool>;
|
|
965
|
+
draw?: Address<TAccountDraw>;
|
|
966
|
+
purchaser: Address<TAccountPurchaser>;
|
|
967
|
+
mint: Address<TAccountMint>;
|
|
968
|
+
vault: Address<TAccountVault>;
|
|
969
|
+
userTokens?: Address<TAccountUserTokens>;
|
|
970
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
971
|
+
randomness: DeliverDrawInstructionDataArgs["randomness"];
|
|
972
|
+
seq: DeliverDrawInstructionDataArgs["seq"];
|
|
973
|
+
};
|
|
974
|
+
export declare function getDeliverDrawInstructionAsync<TAccountOracleIdentity extends string, TAccountPool extends string, TAccountDraw extends string, TAccountPurchaser extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: DeliverDrawAsyncInput<TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
975
|
+
programAddress?: TProgramAddress;
|
|
976
|
+
}): Promise<DeliverDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>>;
|
|
977
|
+
export type DeliverDrawInput<TAccountOracleIdentity extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountPurchaser extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string> = {
|
|
978
|
+
oracleIdentity: TransactionSigner<TAccountOracleIdentity>;
|
|
979
|
+
pool: Address<TAccountPool>;
|
|
980
|
+
draw: Address<TAccountDraw>;
|
|
981
|
+
purchaser: Address<TAccountPurchaser>;
|
|
982
|
+
mint: Address<TAccountMint>;
|
|
983
|
+
vault: Address<TAccountVault>;
|
|
984
|
+
userTokens: Address<TAccountUserTokens>;
|
|
985
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
986
|
+
randomness: DeliverDrawInstructionDataArgs["randomness"];
|
|
987
|
+
seq: DeliverDrawInstructionDataArgs["seq"];
|
|
988
|
+
};
|
|
989
|
+
export declare function getDeliverDrawInstruction<TAccountOracleIdentity extends string, TAccountPool extends string, TAccountDraw extends string, TAccountPurchaser extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: DeliverDrawInput<TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
990
|
+
programAddress?: TProgramAddress;
|
|
991
|
+
}): DeliverDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>;
|
|
992
|
+
export type ParsedDeliverDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
993
|
+
programAddress: Address<TProgram>;
|
|
994
|
+
accounts: {
|
|
995
|
+
oracleIdentity: TAccountMetas[0];
|
|
996
|
+
pool: TAccountMetas[1];
|
|
997
|
+
draw: TAccountMetas[2];
|
|
998
|
+
purchaser: TAccountMetas[3];
|
|
999
|
+
mint: TAccountMetas[4];
|
|
1000
|
+
vault: TAccountMetas[5];
|
|
1001
|
+
userTokens: TAccountMetas[6];
|
|
1002
|
+
tokenProgram: TAccountMetas[7];
|
|
1003
|
+
};
|
|
1004
|
+
data: DeliverDrawInstructionData;
|
|
1005
|
+
};
|
|
1006
|
+
export declare function parseDeliverDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDeliverDrawInstruction<TProgram, TAccountMetas>;
|
|
1007
|
+
//#endregion
|
|
1008
|
+
//#region src/generated/instructions/expireDraw.d.ts
|
|
1009
|
+
export declare const EXPIRE_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1010
|
+
export declare function getExpireDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1011
|
+
export type ExpireDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TAccountPurchaser extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, TAccountPurchaser extends string ? WritableAccount<TAccountPurchaser> : TAccountPurchaser, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, ...TRemainingAccounts]>;
|
|
1012
|
+
export type ExpireDrawInstructionData = {
|
|
1013
|
+
discriminator: ReadonlyUint8Array;
|
|
1014
|
+
};
|
|
1015
|
+
export type ExpireDrawInstructionDataArgs = {};
|
|
1016
|
+
export declare function getExpireDrawInstructionDataEncoder(): FixedSizeEncoder<ExpireDrawInstructionDataArgs>;
|
|
1017
|
+
export declare function getExpireDrawInstructionDataDecoder(): FixedSizeDecoder<ExpireDrawInstructionData>;
|
|
1018
|
+
export declare function getExpireDrawInstructionDataCodec(): FixedSizeCodec<ExpireDrawInstructionDataArgs, ExpireDrawInstructionData>;
|
|
1019
|
+
export type ExpireDrawAsyncInput<TAccountPool extends string = string, TAccountDraw extends string = string, TAccountPurchaser extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1020
|
+
pool?: Address<TAccountPool>;
|
|
1021
|
+
draw: Address<TAccountDraw>;
|
|
1022
|
+
purchaser: Address<TAccountPurchaser>;
|
|
1023
|
+
mint: Address<TAccountMint>;
|
|
1024
|
+
vault: Address<TAccountVault>;
|
|
1025
|
+
userTokens?: Address<TAccountUserTokens>;
|
|
1026
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1027
|
+
};
|
|
1028
|
+
export declare function getExpireDrawInstructionAsync<TAccountPool extends string, TAccountDraw extends string, TAccountPurchaser extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: ExpireDrawAsyncInput<TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
1029
|
+
programAddress?: TProgramAddress;
|
|
1030
|
+
}): Promise<ExpireDrawInstruction<TProgramAddress, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>>;
|
|
1031
|
+
export type ExpireDrawInput<TAccountPool extends string = string, TAccountDraw extends string = string, TAccountPurchaser extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1032
|
+
pool: Address<TAccountPool>;
|
|
1033
|
+
draw: Address<TAccountDraw>;
|
|
1034
|
+
purchaser: Address<TAccountPurchaser>;
|
|
1035
|
+
mint: Address<TAccountMint>;
|
|
1036
|
+
vault: Address<TAccountVault>;
|
|
1037
|
+
userTokens: Address<TAccountUserTokens>;
|
|
1038
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1039
|
+
};
|
|
1040
|
+
export declare function getExpireDrawInstruction<TAccountPool extends string, TAccountDraw extends string, TAccountPurchaser extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: ExpireDrawInput<TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
1041
|
+
programAddress?: TProgramAddress;
|
|
1042
|
+
}): ExpireDrawInstruction<TProgramAddress, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>;
|
|
1043
|
+
export type ParsedExpireDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1044
|
+
programAddress: Address<TProgram>;
|
|
1045
|
+
accounts: {
|
|
1046
|
+
pool: TAccountMetas[0];
|
|
1047
|
+
draw: TAccountMetas[1];
|
|
1048
|
+
purchaser: TAccountMetas[2];
|
|
1049
|
+
mint: TAccountMetas[3];
|
|
1050
|
+
vault: TAccountMetas[4];
|
|
1051
|
+
userTokens: TAccountMetas[5];
|
|
1052
|
+
tokenProgram: TAccountMetas[6];
|
|
1053
|
+
};
|
|
1054
|
+
data: ExpireDrawInstructionData;
|
|
1055
|
+
};
|
|
1056
|
+
export declare function parseExpireDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedExpireDrawInstruction<TProgram, TAccountMetas>;
|
|
1057
|
+
//#endregion
|
|
1058
|
+
//#region src/generated/instructions/fulfillDraw.d.ts
|
|
1059
|
+
export declare const FULFILL_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1060
|
+
export declare function getFulfillDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1061
|
+
export type FulfillDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountOracleIdentity extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountOracleIdentity extends string ? ReadonlySignerAccount<TAccountOracleIdentity> & AccountSignerMeta<TAccountOracleIdentity> : TAccountOracleIdentity, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, ...TRemainingAccounts]>;
|
|
1062
|
+
export type FulfillDrawInstructionData = {
|
|
1063
|
+
discriminator: ReadonlyUint8Array;
|
|
1064
|
+
randomness: ReadonlyUint8Array;
|
|
1065
|
+
seq: bigint;
|
|
1066
|
+
};
|
|
1067
|
+
export type FulfillDrawInstructionDataArgs = {
|
|
1068
|
+
randomness: ReadonlyUint8Array;
|
|
1069
|
+
seq: number | bigint;
|
|
1070
|
+
};
|
|
1071
|
+
export declare function getFulfillDrawInstructionDataEncoder(): FixedSizeEncoder<FulfillDrawInstructionDataArgs>;
|
|
1072
|
+
export declare function getFulfillDrawInstructionDataDecoder(): FixedSizeDecoder<FulfillDrawInstructionData>;
|
|
1073
|
+
export declare function getFulfillDrawInstructionDataCodec(): FixedSizeCodec<FulfillDrawInstructionDataArgs, FulfillDrawInstructionData>;
|
|
1074
|
+
export type FulfillDrawAsyncInput<TAccountOracleIdentity extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string> = {
|
|
1075
|
+
oracleIdentity?: TransactionSigner<TAccountOracleIdentity>;
|
|
1076
|
+
pool: Address<TAccountPool>;
|
|
1077
|
+
draw?: Address<TAccountDraw>;
|
|
1078
|
+
randomness: FulfillDrawInstructionDataArgs["randomness"];
|
|
1079
|
+
seq: FulfillDrawInstructionDataArgs["seq"];
|
|
1080
|
+
};
|
|
1081
|
+
export declare function getFulfillDrawInstructionAsync<TAccountOracleIdentity extends string, TAccountPool extends string, TAccountDraw extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: FulfillDrawAsyncInput<TAccountOracleIdentity, TAccountPool, TAccountDraw>, config?: {
|
|
1082
|
+
programAddress?: TProgramAddress;
|
|
1083
|
+
}): Promise<FulfillDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw>>;
|
|
1084
|
+
export type FulfillDrawInput<TAccountOracleIdentity extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string> = {
|
|
1085
|
+
oracleIdentity: TransactionSigner<TAccountOracleIdentity>;
|
|
1086
|
+
pool: Address<TAccountPool>;
|
|
1087
|
+
draw: Address<TAccountDraw>;
|
|
1088
|
+
randomness: FulfillDrawInstructionDataArgs["randomness"];
|
|
1089
|
+
seq: FulfillDrawInstructionDataArgs["seq"];
|
|
1090
|
+
};
|
|
1091
|
+
export declare function getFulfillDrawInstruction<TAccountOracleIdentity extends string, TAccountPool extends string, TAccountDraw extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: FulfillDrawInput<TAccountOracleIdentity, TAccountPool, TAccountDraw>, config?: {
|
|
1092
|
+
programAddress?: TProgramAddress;
|
|
1093
|
+
}): FulfillDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw>;
|
|
1094
|
+
export type ParsedFulfillDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1095
|
+
programAddress: Address<TProgram>;
|
|
1096
|
+
accounts: {
|
|
1097
|
+
oracleIdentity: TAccountMetas[0];
|
|
1098
|
+
pool: TAccountMetas[1];
|
|
1099
|
+
draw: TAccountMetas[2];
|
|
1100
|
+
};
|
|
1101
|
+
data: FulfillDrawInstructionData;
|
|
1102
|
+
};
|
|
1103
|
+
export declare function parseFulfillDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFulfillDrawInstruction<TProgram, TAccountMetas>;
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region src/generated/instructions/fundPrizes.d.ts
|
|
1106
|
+
export declare const FUND_PRIZES_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1107
|
+
export declare function getFundPrizesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1108
|
+
export type FundPrizesInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountFunder extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountSource extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountFunder extends string ? ReadonlySignerAccount<TAccountFunder> & AccountSignerMeta<TAccountFunder> : TAccountFunder, TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountSource extends string ? WritableAccount<TAccountSource> : TAccountSource, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, ...TRemainingAccounts]>;
|
|
1109
|
+
export type FundPrizesInstructionData = {
|
|
1110
|
+
discriminator: ReadonlyUint8Array;
|
|
1111
|
+
amount: bigint;
|
|
1112
|
+
};
|
|
1113
|
+
export type FundPrizesInstructionDataArgs = {
|
|
1114
|
+
amount: number | bigint;
|
|
1115
|
+
};
|
|
1116
|
+
export declare function getFundPrizesInstructionDataEncoder(): FixedSizeEncoder<FundPrizesInstructionDataArgs>;
|
|
1117
|
+
export declare function getFundPrizesInstructionDataDecoder(): FixedSizeDecoder<FundPrizesInstructionData>;
|
|
1118
|
+
export declare function getFundPrizesInstructionDataCodec(): FixedSizeCodec<FundPrizesInstructionDataArgs, FundPrizesInstructionData>;
|
|
1119
|
+
export type FundPrizesInput<TAccountFunder extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountSource extends string = string, TAccountVault extends string = string, TAccountTokenProgram extends string = string> = {
|
|
1120
|
+
funder: TransactionSigner<TAccountFunder>;
|
|
1121
|
+
pool: Address<TAccountPool>;
|
|
1122
|
+
mint: Address<TAccountMint>;
|
|
1123
|
+
source: Address<TAccountSource>;
|
|
1124
|
+
vault: Address<TAccountVault>;
|
|
1125
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1126
|
+
amount: FundPrizesInstructionDataArgs["amount"];
|
|
1127
|
+
};
|
|
1128
|
+
export declare function getFundPrizesInstruction<TAccountFunder extends string, TAccountPool extends string, TAccountMint extends string, TAccountSource extends string, TAccountVault extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: FundPrizesInput<TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>, config?: {
|
|
1129
|
+
programAddress?: TProgramAddress;
|
|
1130
|
+
}): FundPrizesInstruction<TProgramAddress, TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>;
|
|
1131
|
+
export type ParsedFundPrizesInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1132
|
+
programAddress: Address<TProgram>;
|
|
1133
|
+
accounts: {
|
|
1134
|
+
funder: TAccountMetas[0];
|
|
1135
|
+
pool: TAccountMetas[1];
|
|
1136
|
+
mint: TAccountMetas[2];
|
|
1137
|
+
source: TAccountMetas[3];
|
|
1138
|
+
vault: TAccountMetas[4];
|
|
1139
|
+
tokenProgram: TAccountMetas[5];
|
|
1140
|
+
};
|
|
1141
|
+
data: FundPrizesInstructionData;
|
|
1142
|
+
};
|
|
1143
|
+
export declare function parseFundPrizesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedFundPrizesInstruction<TProgram, TAccountMetas>;
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region src/generated/instructions/initializePool.d.ts
|
|
1146
|
+
export declare const INITIALIZE_POOL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1147
|
+
export declare function getInitializePoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1148
|
+
export type InitializePoolInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountCreatorTokens extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", TAccountInstructions extends string | AccountMeta<string> = "Sysvar1nstructions1111111111111111111111111", TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountCreatorTokens extends string ? WritableAccount<TAccountCreatorTokens> : TAccountCreatorTokens, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountInstructions extends string ? ReadonlyAccount<TAccountInstructions> : TAccountInstructions, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
1149
|
+
export type InitializePoolInstructionData = {
|
|
1150
|
+
discriminator: ReadonlyUint8Array;
|
|
1151
|
+
feeBps: number;
|
|
1152
|
+
tiers: Array<Tier>;
|
|
1153
|
+
maxSeedLamports: bigint;
|
|
1154
|
+
};
|
|
1155
|
+
export type InitializePoolInstructionDataArgs = {
|
|
1156
|
+
feeBps: number;
|
|
1157
|
+
tiers: Array<TierArgs>;
|
|
1158
|
+
maxSeedLamports: number | bigint;
|
|
1159
|
+
};
|
|
1160
|
+
export declare function getInitializePoolInstructionDataEncoder(): FixedSizeEncoder<InitializePoolInstructionDataArgs>;
|
|
1161
|
+
export declare function getInitializePoolInstructionDataDecoder(): FixedSizeDecoder<InitializePoolInstructionData>;
|
|
1162
|
+
export declare function getInitializePoolInstructionDataCodec(): FixedSizeCodec<InitializePoolInstructionDataArgs, InitializePoolInstructionData>;
|
|
1163
|
+
export type InitializePoolAsyncInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1164
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
1165
|
+
/**
|
|
1166
|
+
* One pool per coin. The mint alone is the seed, so the same coin can never
|
|
1167
|
+
* carry two pools with different terms.
|
|
1168
|
+
*/
|
|
1169
|
+
pool?: Address<TAccountPool>;
|
|
1170
|
+
mint: Address<TAccountMint>;
|
|
1171
|
+
/**
|
|
1172
|
+
* The creator's own ATA. The seed is bought into it, then moved to the
|
|
1173
|
+
* vault. Always required, even for a 1x table that needs no seed.
|
|
1174
|
+
*/
|
|
1175
|
+
creatorTokens?: Address<TAccountCreatorTokens>;
|
|
1176
|
+
vault?: Address<TAccountVault>;
|
|
1177
|
+
venue?: Address<TAccountVenue>;
|
|
1178
|
+
instructions?: Address<TAccountInstructions>;
|
|
1179
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1180
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1181
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1182
|
+
feeBps: InitializePoolInstructionDataArgs["feeBps"];
|
|
1183
|
+
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
1184
|
+
maxSeedLamports: InitializePoolInstructionDataArgs["maxSeedLamports"];
|
|
1185
|
+
};
|
|
1186
|
+
export declare function getInitializePoolInstructionAsync<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: InitializePoolAsyncInput<TAccountCreator, TAccountPool, TAccountMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1187
|
+
programAddress?: TProgramAddress;
|
|
1188
|
+
}): Promise<InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
1189
|
+
export type InitializePoolInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1190
|
+
creator: TransactionSigner<TAccountCreator>;
|
|
1191
|
+
/**
|
|
1192
|
+
* One pool per coin. The mint alone is the seed, so the same coin can never
|
|
1193
|
+
* carry two pools with different terms.
|
|
1194
|
+
*/
|
|
1195
|
+
pool: Address<TAccountPool>;
|
|
1196
|
+
mint: Address<TAccountMint>;
|
|
1197
|
+
/**
|
|
1198
|
+
* The creator's own ATA. The seed is bought into it, then moved to the
|
|
1199
|
+
* vault. Always required, even for a 1x table that needs no seed.
|
|
1200
|
+
*/
|
|
1201
|
+
creatorTokens: Address<TAccountCreatorTokens>;
|
|
1202
|
+
vault: Address<TAccountVault>;
|
|
1203
|
+
venue?: Address<TAccountVenue>;
|
|
1204
|
+
instructions?: Address<TAccountInstructions>;
|
|
1205
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1206
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1207
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1208
|
+
feeBps: InitializePoolInstructionDataArgs["feeBps"];
|
|
1209
|
+
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
1210
|
+
maxSeedLamports: InitializePoolInstructionDataArgs["maxSeedLamports"];
|
|
1211
|
+
};
|
|
1212
|
+
export declare function getInitializePoolInstruction<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: InitializePoolInput<TAccountCreator, TAccountPool, TAccountMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1213
|
+
programAddress?: TProgramAddress;
|
|
1214
|
+
}): InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1215
|
+
export type ParsedInitializePoolInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1216
|
+
programAddress: Address<TProgram>;
|
|
1217
|
+
accounts: {
|
|
1218
|
+
creator: TAccountMetas[0];
|
|
1219
|
+
/**
|
|
1220
|
+
* One pool per coin. The mint alone is the seed, so the same coin can never
|
|
1221
|
+
* carry two pools with different terms.
|
|
1222
|
+
*/
|
|
1223
|
+
pool: TAccountMetas[1];
|
|
1224
|
+
mint: TAccountMetas[2];
|
|
1225
|
+
/**
|
|
1226
|
+
* The creator's own ATA. The seed is bought into it, then moved to the
|
|
1227
|
+
* vault. Always required, even for a 1x table that needs no seed.
|
|
1228
|
+
*/
|
|
1229
|
+
creatorTokens: TAccountMetas[3];
|
|
1230
|
+
vault: TAccountMetas[4];
|
|
1231
|
+
venue: TAccountMetas[5];
|
|
1232
|
+
instructions: TAccountMetas[6];
|
|
1233
|
+
tokenProgram: TAccountMetas[7];
|
|
1234
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
1235
|
+
systemProgram: TAccountMetas[9];
|
|
1236
|
+
};
|
|
1237
|
+
data: InitializePoolInstructionData;
|
|
1238
|
+
};
|
|
1239
|
+
export declare function parseInitializePoolInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializePoolInstruction<TProgram, TAccountMetas>;
|
|
1240
|
+
//#endregion
|
|
1241
|
+
//#region src/generated/instructions/retryDraw.d.ts
|
|
1242
|
+
export declare const RETRY_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1243
|
+
export declare function getRetryDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1244
|
+
export type RetryDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TAccountIdentity extends string | AccountMeta<string> = string, TAccountQueue extends string | AccountMeta<string> = "Cuj97ggrhhidhbu39TijNVqE74xvKJ69gDervRUXAxGh", TAccountProgram extends string | AccountMeta<string> = "Vrf1RNUjXmQGjmQrQLvJHs9SNkvDJEsRVFPkfSQUwGz", TAccountSlotHashes extends string | AccountMeta<string> = "SysvarS1otHashes111111111111111111111111111", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, TAccountIdentity extends string ? ReadonlyAccount<TAccountIdentity> : TAccountIdentity, TAccountQueue extends string ? WritableAccount<TAccountQueue> : TAccountQueue, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
1245
|
+
export type RetryDrawInstructionData = {
|
|
1246
|
+
discriminator: ReadonlyUint8Array;
|
|
1247
|
+
maxVrfDebit: bigint;
|
|
1248
|
+
};
|
|
1249
|
+
export type RetryDrawInstructionDataArgs = {
|
|
1250
|
+
maxVrfDebit: number | bigint;
|
|
1251
|
+
};
|
|
1252
|
+
export declare function getRetryDrawInstructionDataEncoder(): FixedSizeEncoder<RetryDrawInstructionDataArgs>;
|
|
1253
|
+
export declare function getRetryDrawInstructionDataDecoder(): FixedSizeDecoder<RetryDrawInstructionData>;
|
|
1254
|
+
export declare function getRetryDrawInstructionDataCodec(): FixedSizeCodec<RetryDrawInstructionDataArgs, RetryDrawInstructionData>;
|
|
1255
|
+
export type RetryDrawAsyncInput<TAccountPayer extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountIdentity extends string = string, TAccountQueue extends string = string, TAccountProgram extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1256
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
1257
|
+
pool: Address<TAccountPool>;
|
|
1258
|
+
draw: Address<TAccountDraw>;
|
|
1259
|
+
identity?: Address<TAccountIdentity>;
|
|
1260
|
+
queue?: Address<TAccountQueue>;
|
|
1261
|
+
program?: Address<TAccountProgram>;
|
|
1262
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
1263
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1264
|
+
maxVrfDebit: RetryDrawInstructionDataArgs["maxVrfDebit"];
|
|
1265
|
+
};
|
|
1266
|
+
export declare function getRetryDrawInstructionAsync<TAccountPayer extends string, TAccountPool extends string, TAccountDraw extends string, TAccountIdentity extends string, TAccountQueue extends string, TAccountProgram extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: RetryDrawAsyncInput<TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
1267
|
+
programAddress?: TProgramAddress;
|
|
1268
|
+
}): Promise<RetryDrawInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>>;
|
|
1269
|
+
export type RetryDrawInput<TAccountPayer extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountIdentity extends string = string, TAccountQueue extends string = string, TAccountProgram extends string = string, TAccountSlotHashes extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1270
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
1271
|
+
pool: Address<TAccountPool>;
|
|
1272
|
+
draw: Address<TAccountDraw>;
|
|
1273
|
+
identity: Address<TAccountIdentity>;
|
|
1274
|
+
queue?: Address<TAccountQueue>;
|
|
1275
|
+
program?: Address<TAccountProgram>;
|
|
1276
|
+
slotHashes?: Address<TAccountSlotHashes>;
|
|
1277
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1278
|
+
maxVrfDebit: RetryDrawInstructionDataArgs["maxVrfDebit"];
|
|
1279
|
+
};
|
|
1280
|
+
export declare function getRetryDrawInstruction<TAccountPayer extends string, TAccountPool extends string, TAccountDraw extends string, TAccountIdentity extends string, TAccountQueue extends string, TAccountProgram extends string, TAccountSlotHashes extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: RetryDrawInput<TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
1281
|
+
programAddress?: TProgramAddress;
|
|
1282
|
+
}): RetryDrawInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>;
|
|
1283
|
+
export type ParsedRetryDrawInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1284
|
+
programAddress: Address<TProgram>;
|
|
1285
|
+
accounts: {
|
|
1286
|
+
payer: TAccountMetas[0];
|
|
1287
|
+
pool: TAccountMetas[1];
|
|
1288
|
+
draw: TAccountMetas[2];
|
|
1289
|
+
identity: TAccountMetas[3];
|
|
1290
|
+
queue: TAccountMetas[4];
|
|
1291
|
+
program: TAccountMetas[5];
|
|
1292
|
+
slotHashes: TAccountMetas[6];
|
|
1293
|
+
systemProgram: TAccountMetas[7];
|
|
1294
|
+
};
|
|
1295
|
+
data: RetryDrawInstructionData;
|
|
1296
|
+
};
|
|
1297
|
+
export declare function parseRetryDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRetryDrawInstruction<TProgram, TAccountMetas>;
|
|
1298
|
+
//#endregion
|
|
1299
|
+
//#region src/generated/instructions/sellPrize.d.ts
|
|
1300
|
+
export declare const SELL_PRIZE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1301
|
+
export declare function getSellPrizeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1302
|
+
export type SellPrizeInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountPurchaser extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountVenue extends string | AccountMeta<string> = string, TAccountFeeCollector extends string | AccountMeta<string> = "5WcPTEQ59UqpQzjZUPbU8QRGCbj7NeQNLDa7DbsLkLKT", TAccountFeeCollectorWsol extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPurchaser extends string ? WritableSignerAccount<TAccountPurchaser> & AccountSignerMeta<TAccountPurchaser> : TAccountPurchaser, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountFeeCollector extends string ? WritableAccount<TAccountFeeCollector> : TAccountFeeCollector, TAccountFeeCollectorWsol extends string ? WritableAccount<TAccountFeeCollectorWsol> : TAccountFeeCollectorWsol, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, ...TRemainingAccounts]>;
|
|
1303
|
+
export type SellPrizeInstructionData = {
|
|
1304
|
+
discriminator: ReadonlyUint8Array;
|
|
1305
|
+
minQuoteOutput: bigint;
|
|
1306
|
+
};
|
|
1307
|
+
export type SellPrizeInstructionDataArgs = {
|
|
1308
|
+
minQuoteOutput: number | bigint;
|
|
1309
|
+
};
|
|
1310
|
+
export declare function getSellPrizeInstructionDataEncoder(): FixedSizeEncoder<SellPrizeInstructionDataArgs>;
|
|
1311
|
+
export declare function getSellPrizeInstructionDataDecoder(): FixedSizeDecoder<SellPrizeInstructionData>;
|
|
1312
|
+
export declare function getSellPrizeInstructionDataCodec(): FixedSizeCodec<SellPrizeInstructionDataArgs, SellPrizeInstructionData>;
|
|
1313
|
+
export type SellPrizeAsyncInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountVenue extends string = string, TAccountFeeCollector extends string = string, TAccountFeeCollectorWsol extends string = string, TAccountQuoteTokenProgram extends string = string> = {
|
|
1314
|
+
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
1315
|
+
pool?: Address<TAccountPool>;
|
|
1316
|
+
draw: Address<TAccountDraw>;
|
|
1317
|
+
mint: Address<TAccountMint>;
|
|
1318
|
+
vault: Address<TAccountVault>;
|
|
1319
|
+
userTokens?: Address<TAccountUserTokens>;
|
|
1320
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1321
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1322
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1323
|
+
venue: Address<TAccountVenue>;
|
|
1324
|
+
feeCollector?: Address<TAccountFeeCollector>;
|
|
1325
|
+
/** The collector's WSOL ATA. It must already exist; no seller pays its rent. */
|
|
1326
|
+
feeCollectorWsol?: Address<TAccountFeeCollectorWsol>;
|
|
1327
|
+
/** Classic SPL Token, the program WSOL lives under. */
|
|
1328
|
+
quoteTokenProgram?: Address<TAccountQuoteTokenProgram>;
|
|
1329
|
+
minQuoteOutput: SellPrizeInstructionDataArgs["minQuoteOutput"];
|
|
1330
|
+
};
|
|
1331
|
+
export declare function getSellPrizeInstructionAsync<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountVenue extends string, TAccountFeeCollector extends string, TAccountFeeCollectorWsol extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: SellPrizeAsyncInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram>, config?: {
|
|
1332
|
+
programAddress?: TProgramAddress;
|
|
1333
|
+
}): Promise<SellPrizeInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram>>;
|
|
1334
|
+
export type SellPrizeInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountVenue extends string = string, TAccountFeeCollector extends string = string, TAccountFeeCollectorWsol extends string = string, TAccountQuoteTokenProgram extends string = string> = {
|
|
1335
|
+
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
1336
|
+
pool: Address<TAccountPool>;
|
|
1337
|
+
draw: Address<TAccountDraw>;
|
|
1338
|
+
mint: Address<TAccountMint>;
|
|
1339
|
+
vault: Address<TAccountVault>;
|
|
1340
|
+
userTokens: Address<TAccountUserTokens>;
|
|
1341
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1342
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1343
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1344
|
+
venue: Address<TAccountVenue>;
|
|
1345
|
+
feeCollector?: Address<TAccountFeeCollector>;
|
|
1346
|
+
/** The collector's WSOL ATA. It must already exist; no seller pays its rent. */
|
|
1347
|
+
feeCollectorWsol: Address<TAccountFeeCollectorWsol>;
|
|
1348
|
+
/** Classic SPL Token, the program WSOL lives under. */
|
|
1349
|
+
quoteTokenProgram?: Address<TAccountQuoteTokenProgram>;
|
|
1350
|
+
minQuoteOutput: SellPrizeInstructionDataArgs["minQuoteOutput"];
|
|
1351
|
+
};
|
|
1352
|
+
export declare function getSellPrizeInstruction<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountVenue extends string, TAccountFeeCollector extends string, TAccountFeeCollectorWsol extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: SellPrizeInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram>, config?: {
|
|
1353
|
+
programAddress?: TProgramAddress;
|
|
1354
|
+
}): SellPrizeInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram>;
|
|
1355
|
+
export type ParsedSellPrizeInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1356
|
+
programAddress: Address<TProgram>;
|
|
1357
|
+
accounts: {
|
|
1358
|
+
purchaser: TAccountMetas[0];
|
|
1359
|
+
pool: TAccountMetas[1];
|
|
1360
|
+
draw: TAccountMetas[2];
|
|
1361
|
+
mint: TAccountMetas[3];
|
|
1362
|
+
vault: TAccountMetas[4];
|
|
1363
|
+
userTokens: TAccountMetas[5];
|
|
1364
|
+
tokenProgram: TAccountMetas[6];
|
|
1365
|
+
associatedTokenProgram: TAccountMetas[7];
|
|
1366
|
+
systemProgram: TAccountMetas[8];
|
|
1367
|
+
venue: TAccountMetas[9];
|
|
1368
|
+
feeCollector: TAccountMetas[10];
|
|
1369
|
+
/** The collector's WSOL ATA. It must already exist; no seller pays its rent. */
|
|
1370
|
+
feeCollectorWsol: TAccountMetas[11];
|
|
1371
|
+
/** Classic SPL Token, the program WSOL lives under. */
|
|
1372
|
+
quoteTokenProgram: TAccountMetas[12];
|
|
1373
|
+
};
|
|
1374
|
+
data: SellPrizeInstructionData;
|
|
1375
|
+
};
|
|
1376
|
+
export declare function parseSellPrizeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellPrizeInstruction<TProgram, TAccountMetas>;
|
|
1377
|
+
//#endregion
|
|
1378
|
+
//#region src/generated/instructions/sellTokens.d.ts
|
|
1379
|
+
export declare const SELL_TOKENS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1380
|
+
export declare function getSellTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1381
|
+
export type SellTokensInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountSeller extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = string, TAccountFeeCollector extends string | AccountMeta<string> = "5WcPTEQ59UqpQzjZUPbU8QRGCbj7NeQNLDa7DbsLkLKT", TAccountFeeCollectorWsol extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountSeller extends string ? WritableSignerAccount<TAccountSeller> & AccountSignerMeta<TAccountSeller> : TAccountSeller, TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountFeeCollector extends string ? WritableAccount<TAccountFeeCollector> : TAccountFeeCollector, TAccountFeeCollectorWsol extends string ? WritableAccount<TAccountFeeCollectorWsol> : TAccountFeeCollectorWsol, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
1382
|
+
export type SellTokensInstructionData = {
|
|
1383
|
+
discriminator: ReadonlyUint8Array;
|
|
1384
|
+
amount: bigint;
|
|
1385
|
+
minQuoteOutput: bigint;
|
|
1386
|
+
};
|
|
1387
|
+
export type SellTokensInstructionDataArgs = {
|
|
1388
|
+
amount: number | bigint;
|
|
1389
|
+
minQuoteOutput: number | bigint;
|
|
1390
|
+
};
|
|
1391
|
+
export declare function getSellTokensInstructionDataEncoder(): FixedSizeEncoder<SellTokensInstructionDataArgs>;
|
|
1392
|
+
export declare function getSellTokensInstructionDataDecoder(): FixedSizeDecoder<SellTokensInstructionData>;
|
|
1393
|
+
export declare function getSellTokensInstructionDataCodec(): FixedSizeCodec<SellTokensInstructionDataArgs, SellTokensInstructionData>;
|
|
1394
|
+
export type SellTokensAsyncInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountFeeCollector extends string = string, TAccountFeeCollectorWsol extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1395
|
+
seller: TransactionSigner<TAccountSeller>;
|
|
1396
|
+
/**
|
|
1397
|
+
* The coin's pool. Only its vault address is read, to keep the vault out of
|
|
1398
|
+
* the venue's account list.
|
|
1399
|
+
*/
|
|
1400
|
+
pool: Address<TAccountPool>;
|
|
1401
|
+
mint: Address<TAccountMint>;
|
|
1402
|
+
userTokens?: Address<TAccountUserTokens>;
|
|
1403
|
+
venue: Address<TAccountVenue>;
|
|
1404
|
+
feeCollector?: Address<TAccountFeeCollector>;
|
|
1405
|
+
/** The collector's WSOL ATA. It must already exist; no seller pays its rent. */
|
|
1406
|
+
feeCollectorWsol?: Address<TAccountFeeCollectorWsol>;
|
|
1407
|
+
/** Classic SPL Token, the program WSOL lives under. */
|
|
1408
|
+
quoteTokenProgram?: Address<TAccountQuoteTokenProgram>;
|
|
1409
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1410
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1411
|
+
amount: SellTokensInstructionDataArgs["amount"];
|
|
1412
|
+
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1413
|
+
};
|
|
1414
|
+
export declare function getSellTokensInstructionAsync<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountFeeCollector extends string, TAccountFeeCollectorWsol extends string, TAccountQuoteTokenProgram extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: SellTokensAsyncInput<TAccountSeller, TAccountPool, TAccountMint, TAccountUserTokens, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
1415
|
+
programAddress?: TProgramAddress;
|
|
1416
|
+
}): Promise<SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountUserTokens, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram, TAccountTokenProgram, TAccountSystemProgram>>;
|
|
1417
|
+
export type SellTokensInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountFeeCollector extends string = string, TAccountFeeCollectorWsol extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1418
|
+
seller: TransactionSigner<TAccountSeller>;
|
|
1419
|
+
/**
|
|
1420
|
+
* The coin's pool. Only its vault address is read, to keep the vault out of
|
|
1421
|
+
* the venue's account list.
|
|
1422
|
+
*/
|
|
1423
|
+
pool: Address<TAccountPool>;
|
|
1424
|
+
mint: Address<TAccountMint>;
|
|
1425
|
+
userTokens: Address<TAccountUserTokens>;
|
|
1426
|
+
venue: Address<TAccountVenue>;
|
|
1427
|
+
feeCollector?: Address<TAccountFeeCollector>;
|
|
1428
|
+
/** The collector's WSOL ATA. It must already exist; no seller pays its rent. */
|
|
1429
|
+
feeCollectorWsol: Address<TAccountFeeCollectorWsol>;
|
|
1430
|
+
/** Classic SPL Token, the program WSOL lives under. */
|
|
1431
|
+
quoteTokenProgram?: Address<TAccountQuoteTokenProgram>;
|
|
1432
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1433
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
1434
|
+
amount: SellTokensInstructionDataArgs["amount"];
|
|
1435
|
+
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1436
|
+
};
|
|
1437
|
+
export declare function getSellTokensInstruction<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountFeeCollector extends string, TAccountFeeCollectorWsol extends string, TAccountQuoteTokenProgram extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_V2_PROGRAM_ADDRESS>(input: SellTokensInput<TAccountSeller, TAccountPool, TAccountMint, TAccountUserTokens, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram, TAccountTokenProgram, TAccountSystemProgram>, config?: {
|
|
1438
|
+
programAddress?: TProgramAddress;
|
|
1439
|
+
}): SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountUserTokens, TAccountVenue, TAccountFeeCollector, TAccountFeeCollectorWsol, TAccountQuoteTokenProgram, TAccountTokenProgram, TAccountSystemProgram>;
|
|
1440
|
+
export type ParsedSellTokensInstruction<TProgram extends string = typeof GABOX_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1441
|
+
programAddress: Address<TProgram>;
|
|
1442
|
+
accounts: {
|
|
1443
|
+
seller: TAccountMetas[0];
|
|
1444
|
+
/**
|
|
1445
|
+
* The coin's pool. Only its vault address is read, to keep the vault out of
|
|
1446
|
+
* the venue's account list.
|
|
1447
|
+
*/
|
|
1448
|
+
pool: TAccountMetas[1];
|
|
1449
|
+
mint: TAccountMetas[2];
|
|
1450
|
+
userTokens: TAccountMetas[3];
|
|
1451
|
+
venue: TAccountMetas[4];
|
|
1452
|
+
feeCollector: TAccountMetas[5];
|
|
1453
|
+
/** The collector's WSOL ATA. It must already exist; no seller pays its rent. */
|
|
1454
|
+
feeCollectorWsol: TAccountMetas[6];
|
|
1455
|
+
/** Classic SPL Token, the program WSOL lives under. */
|
|
1456
|
+
quoteTokenProgram: TAccountMetas[7];
|
|
1457
|
+
tokenProgram: TAccountMetas[8];
|
|
1458
|
+
systemProgram: TAccountMetas[9];
|
|
1459
|
+
};
|
|
1460
|
+
data: SellTokensInstructionData;
|
|
1461
|
+
};
|
|
1462
|
+
export declare function parseSellTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellTokensInstruction<TProgram, TAccountMetas>;
|
|
1463
|
+
declare namespace index_d_exports {
|
|
1464
|
+
export { BIND_REFERRER_DISCRIMINATOR, BUY_PACK_DISCRIMINATOR, BindReferrerAsyncInput, BindReferrerInput, BindReferrerInstruction, BindReferrerInstructionData, BindReferrerInstructionDataArgs, BuyPackAsyncInput, BuyPackInput, BuyPackInstruction, BuyPackInstructionData, BuyPackInstructionDataArgs, CLAIM_PRIZE_DISCRIMINATOR, CLAIM_REFERRAL_DISCRIMINATOR, ClaimPrizeAsyncInput, ClaimPrizeInput, ClaimPrizeInstruction, ClaimPrizeInstructionData, ClaimPrizeInstructionDataArgs, ClaimReferralAsyncInput, ClaimReferralInput, ClaimReferralInstruction, ClaimReferralInstructionData, ClaimReferralInstructionDataArgs, ClaimReferralReferralSeeds, DELIVER_DRAW_DISCRIMINATOR, DRAW_DISCRIMINATOR, DRAW_RESOLVED_EVENT_DISCRIMINATOR, DeliverDrawAsyncInput, DeliverDrawInput, DeliverDrawInstruction, DeliverDrawInstructionData, DeliverDrawInstructionDataArgs, Draw, DrawArgs, DrawResolvedEvent, DrawResolvedEventArgs, DrawSeeds, DrawStatus, DrawStatusArgs, EXPIRE_DRAW_DISCRIMINATOR, ExpireDrawAsyncInput, ExpireDrawInput, ExpireDrawInstruction, ExpireDrawInstructionData, ExpireDrawInstructionDataArgs, FULFILL_DRAW_DISCRIMINATOR, FUND_PRIZES_DISCRIMINATOR, FulfillDrawAsyncInput, FulfillDrawInput, FulfillDrawInstruction, FulfillDrawInstructionData, FulfillDrawInstructionDataArgs, FundPrizesInput, FundPrizesInstruction, FundPrizesInstructionData, FundPrizesInstructionDataArgs, 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, GaboxV2Error, GaboxV2Event, GaboxV2Instruction, GaboxV2Plugin, GaboxV2PluginAccounts, GaboxV2PluginInstructions, GaboxV2PluginPdas, GaboxV2PluginRequirements, INITIALIZE_POOL_DISCRIMINATOR, InitializePoolAsyncInput, InitializePoolInput, InitializePoolInstruction, InitializePoolInstructionData, InitializePoolInstructionDataArgs, LinkSeeds, PACK_BOUGHT_EVENT_DISCRIMINATOR, POOL_CREATED_EVENT_DISCRIMINATOR, POOL_DISCRIMINATOR, PRIZES_FUNDED_EVENT_DISCRIMINATOR, PRIZE_REDEEMED_EVENT_DISCRIMINATOR, PackBoughtEvent, PackBoughtEventArgs, ParsedBindReferrerInstruction, ParsedBuyPackInstruction, ParsedClaimPrizeInstruction, ParsedClaimReferralInstruction, ParsedDeliverDrawInstruction, ParsedExpireDrawInstruction, ParsedFulfillDrawInstruction, ParsedFundPrizesInstruction, ParsedGaboxV2Instruction, ParsedInitializePoolInstruction, ParsedRetryDrawInstruction, ParsedSellPrizeInstruction, ParsedSellTokensInstruction, Pool, PoolArgs, PoolCreatedEvent, PoolCreatedEventArgs, PoolSeeds, Prize, PrizeArgs, PrizeRedeemedEvent, PrizeRedeemedEventArgs, PrizesFundedEvent, PrizesFundedEventArgs, RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR, REFERRAL_BOUND_EVENT_DISCRIMINATOR, REFERRAL_CLAIMED_EVENT_DISCRIMINATOR, REFERRAL_DISCRIMINATOR, REFERRAL_LINK_DISCRIMINATOR, RETRY_DRAW_DISCRIMINATOR, RandomnessRetriedEvent, RandomnessRetriedEventArgs, Referral, ReferralArgs, ReferralBoundEvent, ReferralBoundEventArgs, ReferralClaimedEvent, ReferralClaimedEventArgs, ReferralLink, ReferralLinkArgs, ReferralLinkSeeds, ReferralSeeds, RetryDrawAsyncInput, RetryDrawInput, RetryDrawInstruction, RetryDrawInstructionData, RetryDrawInstructionDataArgs, SELL_PRIZE_DISCRIMINATOR, SELL_TOKENS_DISCRIMINATOR, SellPrizeAsyncInput, SellPrizeInput, SellPrizeInstruction, SellPrizeInstructionData, SellPrizeInstructionDataArgs, SellTokensAsyncInput, SellTokensInput, SellTokensInstruction, SellTokensInstructionData, SellTokensInstructionDataArgs, TOKENS_SOLD_EVENT_DISCRIMINATOR, Tier, TierArgs, TokensSoldEvent, TokensSoldEventArgs, 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 };
|
|
1465
|
+
}
|
|
1466
|
+
//#endregion
|
|
1467
|
+
export { index_d_exports as t };
|
|
1468
|
+
//# sourceMappingURL=index.d.ts.map
|