@gabox-labs/sdk 0.2.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +310 -0
- package/README.md +173 -438
- package/dist/{gaboxV2-CV2XltqC.js → gabox-DGTCh34U.js} +575 -1584
- package/dist/gabox-DGTCh34U.js.map +1 -0
- package/dist/generated/index.d.ts +384 -752
- package/dist/generated/index.js +116 -338
- package/dist/generated/index.js.map +1 -1
- package/dist/index-C4at2cZ_.d.ts +1184 -0
- package/dist/index.d.ts +474 -432
- package/dist/index.js +1186 -1374
- package/dist/index.js.map +1 -1
- package/dist/raydium/index.d.ts +2 -0
- package/dist/raydium/index.js +2 -0
- package/dist/raydium-CU-tZzIk.js +3282 -0
- package/dist/raydium-CU-tZzIk.js.map +1 -0
- package/llms.txt +7 -3
- package/package.json +11 -16
- package/skills/gabox-sdk/SKILL.md +57 -146
- package/skills/gabox-sdk/references/api.md +155 -145
- package/dist/gaboxV2-CV2XltqC.js.map +0 -1
- package/dist/index-BxvSkzCO.d.ts +0 -471
- package/dist/pump/index.d.ts +0 -2
- package/dist/pump/index.js +0 -2
- package/dist/pump-D0K_0uiC.js +0 -1531
- package/dist/pump-D0K_0uiC.js.map +0 -1
|
@@ -1,15 +1,5 @@
|
|
|
1
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
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
3
|
//#region src/generated/types/prize.d.ts
|
|
14
4
|
export type Prize = {
|
|
15
5
|
amount: bigint;
|
|
@@ -43,32 +33,24 @@ export type Draw = {
|
|
|
43
33
|
purchaser: Address;
|
|
44
34
|
seq: bigint;
|
|
45
35
|
bump: number;
|
|
46
|
-
status: DrawStatus;
|
|
47
36
|
requestSlot: bigint;
|
|
48
37
|
lastAttemptSlot: bigint;
|
|
49
38
|
attempts: number;
|
|
50
39
|
maximum: bigint;
|
|
51
40
|
minimum: bigint;
|
|
52
41
|
prizes: Array<Prize>;
|
|
53
|
-
amount: bigint;
|
|
54
|
-
randomness: ReadonlyUint8Array;
|
|
55
|
-
timedOut: boolean;
|
|
56
42
|
};
|
|
57
43
|
export type DrawArgs = {
|
|
58
44
|
pool: Address;
|
|
59
45
|
purchaser: Address;
|
|
60
46
|
seq: number | bigint;
|
|
61
47
|
bump: number;
|
|
62
|
-
status: DrawStatusArgs;
|
|
63
48
|
requestSlot: number | bigint;
|
|
64
49
|
lastAttemptSlot: number | bigint;
|
|
65
50
|
attempts: number;
|
|
66
51
|
maximum: number | bigint;
|
|
67
52
|
minimum: number | bigint;
|
|
68
53
|
prizes: Array<PrizeArgs>;
|
|
69
|
-
amount: number | bigint;
|
|
70
|
-
randomness: ReadonlyUint8Array;
|
|
71
|
-
timedOut: boolean;
|
|
72
54
|
};
|
|
73
55
|
/** Gets the encoder for {@link DrawArgs} account data. */
|
|
74
56
|
export declare function getDrawEncoder(): FixedSizeEncoder<DrawArgs>;
|
|
@@ -89,68 +71,76 @@ export declare const POOL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
|
89
71
|
export declare function getPoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
90
72
|
export type Pool = {
|
|
91
73
|
discriminator: ReadonlyUint8Array;
|
|
74
|
+
/**
|
|
75
|
+
* The coin creator. LaunchLab pays its creator fee to this wallet, and
|
|
76
|
+
* the CPMM pool created at graduation names the same wallet.
|
|
77
|
+
*/
|
|
92
78
|
creator: Address;
|
|
93
79
|
mint: Address;
|
|
94
|
-
tokenProgram: Address;
|
|
95
80
|
vault: Address;
|
|
81
|
+
/** The quote asset of both venues: any mint Raydium enabled on LaunchLab. */
|
|
82
|
+
quoteMint: Address;
|
|
96
83
|
bump: number;
|
|
97
84
|
/**
|
|
98
|
-
* Fixed token count of one pack, in base units. Always `PACK_TOKENS
|
|
99
|
-
*
|
|
85
|
+
* Fixed token count of one pack, in base units. Always `PACK_TOKENS`.
|
|
86
|
+
* The venue decides what that costs in the quote asset.
|
|
100
87
|
*/
|
|
101
88
|
packTokens: bigint;
|
|
102
|
-
/**
|
|
103
|
-
|
|
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;
|
|
89
|
+
/** Raw quote token spent in the seed purchase. */
|
|
90
|
+
seedQuoteAmount: bigint;
|
|
118
91
|
tiers: Array<Tier>;
|
|
119
92
|
nextSeq: bigint;
|
|
120
93
|
/** Maximum awards reserved by pending draws. Never creator revenue. */
|
|
121
94
|
reserved: bigint;
|
|
95
|
+
/**
|
|
96
|
+
* The LaunchLab global config for this pool's quote mint. Raydium's
|
|
97
|
+
* admin is the only wallet that can create one, so a launch that names
|
|
98
|
+
* it proves Raydium enabled that quote. Both venues check the trade
|
|
99
|
+
* against this stored value.
|
|
100
|
+
*/
|
|
101
|
+
quoteConfig: Address;
|
|
102
|
+
/**
|
|
103
|
+
* The token program that owns the quote mint: classic SPL Token, or
|
|
104
|
+
* Token-2022 with the profile `tokens::validate_quote_mint` accepts.
|
|
105
|
+
* The base coin is always classic SPL Token, so it needs no field.
|
|
106
|
+
*/
|
|
107
|
+
quoteTokenProgram: Address;
|
|
122
108
|
};
|
|
123
109
|
export type PoolArgs = {
|
|
110
|
+
/**
|
|
111
|
+
* The coin creator. LaunchLab pays its creator fee to this wallet, and
|
|
112
|
+
* the CPMM pool created at graduation names the same wallet.
|
|
113
|
+
*/
|
|
124
114
|
creator: Address;
|
|
125
115
|
mint: Address;
|
|
126
|
-
tokenProgram: Address;
|
|
127
116
|
vault: Address;
|
|
117
|
+
/** The quote asset of both venues: any mint Raydium enabled on LaunchLab. */
|
|
118
|
+
quoteMint: Address;
|
|
128
119
|
bump: number;
|
|
129
120
|
/**
|
|
130
|
-
* Fixed token count of one pack, in base units. Always `PACK_TOKENS
|
|
131
|
-
*
|
|
121
|
+
* Fixed token count of one pack, in base units. Always `PACK_TOKENS`.
|
|
122
|
+
* The venue decides what that costs in the quote asset.
|
|
132
123
|
*/
|
|
133
124
|
packTokens: number | bigint;
|
|
134
|
-
/**
|
|
135
|
-
|
|
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;
|
|
125
|
+
/** Raw quote token spent in the seed purchase. */
|
|
126
|
+
seedQuoteAmount: number | bigint;
|
|
150
127
|
tiers: Array<TierArgs>;
|
|
151
128
|
nextSeq: number | bigint;
|
|
152
129
|
/** Maximum awards reserved by pending draws. Never creator revenue. */
|
|
153
130
|
reserved: number | bigint;
|
|
131
|
+
/**
|
|
132
|
+
* The LaunchLab global config for this pool's quote mint. Raydium's
|
|
133
|
+
* admin is the only wallet that can create one, so a launch that names
|
|
134
|
+
* it proves Raydium enabled that quote. Both venues check the trade
|
|
135
|
+
* against this stored value.
|
|
136
|
+
*/
|
|
137
|
+
quoteConfig: Address;
|
|
138
|
+
/**
|
|
139
|
+
* The token program that owns the quote mint: classic SPL Token, or
|
|
140
|
+
* Token-2022 with the profile `tokens::validate_quote_mint` accepts.
|
|
141
|
+
* The base coin is always classic SPL Token, so it needs no field.
|
|
142
|
+
*/
|
|
143
|
+
quoteTokenProgram: Address;
|
|
154
144
|
};
|
|
155
145
|
/** Gets the encoder for {@link PoolArgs} account data. */
|
|
156
146
|
export declare function getPoolEncoder(): FixedSizeEncoder<PoolArgs>;
|
|
@@ -166,112 +156,102 @@ export declare function fetchAllPool(rpc: Parameters<typeof fetchEncodedAccounts
|
|
|
166
156
|
export declare function fetchAllMaybePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Pool>[]>;
|
|
167
157
|
export declare function getPoolSize(): number;
|
|
168
158
|
//#endregion
|
|
169
|
-
//#region src/generated/accounts/
|
|
170
|
-
export declare const
|
|
171
|
-
export declare function
|
|
172
|
-
export type
|
|
159
|
+
//#region src/generated/accounts/walletActivity.d.ts
|
|
160
|
+
export declare const WALLET_ACTIVITY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
161
|
+
export declare function getWalletActivityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
162
|
+
export type WalletActivity = {
|
|
173
163
|
discriminator: ReadonlyUint8Array;
|
|
174
|
-
|
|
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;
|
|
164
|
+
wallet: Address;
|
|
206
165
|
bump: number;
|
|
166
|
+
/** Packs this wallet bought, across every pool. */
|
|
167
|
+
packsBought: bigint;
|
|
168
|
+
/**
|
|
169
|
+
* Lamports this wallet paid for packs in SOL-quoted pools: what the
|
|
170
|
+
* venue charged in WSOL, which is SOL. Gabox charges no fee. Gabox's own
|
|
171
|
+
* rent (draw, activity, the token ATA), VRF fees, and buys in a non-SOL
|
|
172
|
+
* quote asset add nothing here.
|
|
173
|
+
*/
|
|
174
|
+
nativeSpent: bigint;
|
|
175
|
+
/**
|
|
176
|
+
* Reserved for future fields. A layout change that needs more than
|
|
177
|
+
* this still needs a new seed prefix, since this account has no
|
|
178
|
+
* close instruction and old accounts cannot be dropped.
|
|
179
|
+
*/
|
|
180
|
+
reserved: ReadonlyUint8Array;
|
|
207
181
|
};
|
|
208
|
-
export type
|
|
209
|
-
|
|
210
|
-
referrer: Address;
|
|
182
|
+
export type WalletActivityArgs = {
|
|
183
|
+
wallet: Address;
|
|
211
184
|
bump: number;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
185
|
+
/** Packs this wallet bought, across every pool. */
|
|
186
|
+
packsBought: number | bigint;
|
|
187
|
+
/**
|
|
188
|
+
* Lamports this wallet paid for packs in SOL-quoted pools: what the
|
|
189
|
+
* venue charged in WSOL, which is SOL. Gabox charges no fee. Gabox's own
|
|
190
|
+
* rent (draw, activity, the token ATA), VRF fees, and buys in a non-SOL
|
|
191
|
+
* quote asset add nothing here.
|
|
192
|
+
*/
|
|
193
|
+
nativeSpent: number | bigint;
|
|
194
|
+
/**
|
|
195
|
+
* Reserved for future fields. A layout change that needs more than
|
|
196
|
+
* this still needs a new seed prefix, since this account has no
|
|
197
|
+
* close instruction and old accounts cannot be dropped.
|
|
198
|
+
*/
|
|
199
|
+
reserved: ReadonlyUint8Array;
|
|
200
|
+
};
|
|
201
|
+
/** Gets the encoder for {@link WalletActivityArgs} account data. */
|
|
202
|
+
export declare function getWalletActivityEncoder(): FixedSizeEncoder<WalletActivityArgs>;
|
|
203
|
+
/** Gets the decoder for {@link WalletActivity} account data. */
|
|
204
|
+
export declare function getWalletActivityDecoder(): FixedSizeDecoder<WalletActivity>;
|
|
205
|
+
/** Gets the codec for {@link WalletActivity} account data. */
|
|
206
|
+
export declare function getWalletActivityCodec(): FixedSizeCodec<WalletActivityArgs, WalletActivity>;
|
|
207
|
+
export declare function decodeWalletActivity<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<WalletActivity, TAddress>;
|
|
208
|
+
export declare function decodeWalletActivity<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<WalletActivity, TAddress>;
|
|
209
|
+
export declare function fetchWalletActivity<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<WalletActivity, TAddress>>;
|
|
210
|
+
export declare function fetchMaybeWalletActivity<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<WalletActivity, TAddress>>;
|
|
211
|
+
export declare function fetchAllWalletActivity(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<WalletActivity>[]>;
|
|
212
|
+
export declare function fetchAllMaybeWalletActivity(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<WalletActivity>[]>;
|
|
213
|
+
export declare function getWalletActivitySize(): number;
|
|
226
214
|
//#endregion
|
|
227
|
-
//#region src/generated/errors/
|
|
215
|
+
//#region src/generated/errors/gabox.d.ts
|
|
228
216
|
/** Arithmetic: Arithmetic overflow or inconsistent accounting */
|
|
229
|
-
export declare const
|
|
217
|
+
export declare const GABOX_ERROR__ARITHMETIC = 6000;
|
|
230
218
|
/** InvalidDistribution: Invalid prize distribution */
|
|
231
|
-
export declare const
|
|
219
|
+
export declare const GABOX_ERROR__INVALID_DISTRIBUTION = 6001;
|
|
232
220
|
/** UnfundedExpectation: Expected token award exceeds tokens purchased */
|
|
233
|
-
export declare const
|
|
234
|
-
/** UnsupportedMint: Mint must have no mint
|
|
235
|
-
export declare const
|
|
221
|
+
export declare const GABOX_ERROR__UNFUNDED_EXPECTATION = 6002;
|
|
222
|
+
/** UnsupportedMint: Mint must have 6 decimals and no mint or freeze authority */
|
|
223
|
+
export declare const GABOX_ERROR__UNSUPPORTED_MINT = 6003;
|
|
236
224
|
/** InsolventInventory: Prize inventory does not cover reservations */
|
|
237
|
-
export declare const
|
|
225
|
+
export declare const GABOX_ERROR__INSOLVENT_INVENTORY = 6004;
|
|
238
226
|
/** PrizeCapChanged: Top prize is below the signed minimum; refresh the offer */
|
|
239
|
-
export declare const
|
|
227
|
+
export declare const GABOX_ERROR__PRIZE_CAP_CHANGED = 6005;
|
|
240
228
|
/** PackTooSmall: A pack pays zero tokens on some tier */
|
|
241
|
-
export declare const
|
|
229
|
+
export declare const GABOX_ERROR__PACK_TOO_SMALL = 6006;
|
|
242
230
|
/** JackpotBelowOnePack: The largest tier must pay at least one pack */
|
|
243
|
-
export declare const
|
|
231
|
+
export declare const GABOX_ERROR__JACKPOT_BELOW_ONE_PACK = 6007;
|
|
244
232
|
/** InvalidVenue: Incorrect trade program, account order, or token binding */
|
|
245
|
-
export declare const
|
|
233
|
+
export declare const GABOX_ERROR__INVALID_VENUE = 6008;
|
|
246
234
|
/** IncorrectTokenDelta: Trade did not move the exact token amount */
|
|
247
|
-
export declare const
|
|
235
|
+
export declare const GABOX_ERROR__INCORRECT_TOKEN_DELTA = 6009;
|
|
248
236
|
/** SlippageExceeded: Spend exceeds the signed limit */
|
|
249
|
-
export declare const
|
|
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;
|
|
237
|
+
export declare const GABOX_ERROR__SLIPPAGE_EXCEEDED = 6010;
|
|
254
238
|
/** RetryTooSoon: Retry interval has not elapsed */
|
|
255
|
-
export declare const
|
|
239
|
+
export declare const GABOX_ERROR__RETRY_TOO_SOON = 6011;
|
|
256
240
|
/** RetryUnavailable: Retry limit reached or draw expired */
|
|
257
|
-
export declare const
|
|
241
|
+
export declare const GABOX_ERROR__RETRY_UNAVAILABLE = 6012;
|
|
258
242
|
/** NotExpired: Oracle timeout has not elapsed */
|
|
259
|
-
export declare const
|
|
243
|
+
export declare const GABOX_ERROR__NOT_EXPIRED = 6013;
|
|
260
244
|
/** ZeroAmount: Amount must be positive */
|
|
261
|
-
export declare const
|
|
262
|
-
/**
|
|
263
|
-
export declare const
|
|
264
|
-
/**
|
|
265
|
-
export declare const
|
|
266
|
-
/**
|
|
267
|
-
export declare const
|
|
268
|
-
|
|
269
|
-
export declare
|
|
270
|
-
|
|
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: {
|
|
245
|
+
export declare const GABOX_ERROR__ZERO_AMOUNT = 6014;
|
|
246
|
+
/** InvalidLaunch: LaunchLab create instruction is malformed or missing before this instruction */
|
|
247
|
+
export declare const GABOX_ERROR__INVALID_LAUNCH = 6015;
|
|
248
|
+
/** InvalidQuote: Quote mint or quote token program is unsupported */
|
|
249
|
+
export declare const GABOX_ERROR__INVALID_QUOTE = 6016;
|
|
250
|
+
/** WalletActivityMismatch: Wallet activity account belongs to a different wallet */
|
|
251
|
+
export declare const GABOX_ERROR__WALLET_ACTIVITY_MISMATCH = 6017;
|
|
252
|
+
export type GaboxError = typeof GABOX_ERROR__ARITHMETIC | typeof GABOX_ERROR__INCORRECT_TOKEN_DELTA | typeof GABOX_ERROR__INSOLVENT_INVENTORY | typeof GABOX_ERROR__INVALID_DISTRIBUTION | typeof GABOX_ERROR__INVALID_LAUNCH | typeof GABOX_ERROR__INVALID_QUOTE | typeof GABOX_ERROR__INVALID_VENUE | typeof GABOX_ERROR__JACKPOT_BELOW_ONE_PACK | typeof GABOX_ERROR__NOT_EXPIRED | typeof GABOX_ERROR__PACK_TOO_SMALL | typeof GABOX_ERROR__PRIZE_CAP_CHANGED | typeof GABOX_ERROR__RETRY_TOO_SOON | typeof GABOX_ERROR__RETRY_UNAVAILABLE | typeof GABOX_ERROR__SLIPPAGE_EXCEEDED | typeof GABOX_ERROR__UNFUNDED_EXPECTATION | typeof GABOX_ERROR__UNSUPPORTED_MINT | typeof GABOX_ERROR__WALLET_ACTIVITY_MISMATCH | typeof GABOX_ERROR__ZERO_AMOUNT;
|
|
253
|
+
export declare function getGaboxErrorMessage(code: GaboxError): string;
|
|
254
|
+
export declare function isGaboxError<TProgramErrorCode extends GaboxError>(error: unknown, transactionMessage: {
|
|
275
255
|
instructions: Record<number, {
|
|
276
256
|
programAddress: Address;
|
|
277
257
|
}>;
|
|
@@ -317,20 +297,14 @@ export type PackBoughtEvent = {
|
|
|
317
297
|
seq: bigint;
|
|
318
298
|
purchaser: Address;
|
|
319
299
|
venue: Address;
|
|
320
|
-
|
|
300
|
+
quoteMint: Address;
|
|
321
301
|
tokensBought: bigint;
|
|
322
|
-
/**
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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;
|
|
302
|
+
/** Quote token the venue charged for the pack. */
|
|
303
|
+
quoteDebit: bigint;
|
|
304
|
+
/** Lamports the venue call itself spent, which is venue account rent. */
|
|
305
|
+
nativeDebit: bigint;
|
|
306
|
+
vrfNativeDebit: bigint;
|
|
307
|
+
totalNativeDebit: bigint;
|
|
334
308
|
prizes: Array<Prize>;
|
|
335
309
|
};
|
|
336
310
|
export type PackBoughtEventArgs = {
|
|
@@ -338,20 +312,14 @@ export type PackBoughtEventArgs = {
|
|
|
338
312
|
seq: number | bigint;
|
|
339
313
|
purchaser: Address;
|
|
340
314
|
venue: Address;
|
|
341
|
-
|
|
315
|
+
quoteMint: Address;
|
|
342
316
|
tokensBought: number | bigint;
|
|
343
|
-
/**
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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;
|
|
317
|
+
/** Quote token the venue charged for the pack. */
|
|
318
|
+
quoteDebit: number | bigint;
|
|
319
|
+
/** Lamports the venue call itself spent, which is venue account rent. */
|
|
320
|
+
nativeDebit: number | bigint;
|
|
321
|
+
vrfNativeDebit: number | bigint;
|
|
322
|
+
totalNativeDebit: number | bigint;
|
|
355
323
|
prizes: Array<PrizeArgs>;
|
|
356
324
|
};
|
|
357
325
|
/** Gets the encoder for {@link PackBoughtEventArgs} event data. */
|
|
@@ -371,24 +339,28 @@ export type PoolCreatedEvent = {
|
|
|
371
339
|
mint: Address;
|
|
372
340
|
creator: Address;
|
|
373
341
|
packTokens: bigint;
|
|
374
|
-
feeBps: number;
|
|
375
342
|
tiers: Array<Tier>;
|
|
376
|
-
/** Tokens the creator donated at creation. Nobody can withdraw them. */
|
|
377
343
|
seedTokens: bigint;
|
|
378
|
-
|
|
379
|
-
|
|
344
|
+
extraSeedTokens: bigint;
|
|
345
|
+
quoteMint: Address;
|
|
346
|
+
/** Quote token the seed buy spent. */
|
|
347
|
+
seedQuoteAmount: bigint;
|
|
348
|
+
/** Lamports the seed buy spent, which is venue account rent, not price. */
|
|
349
|
+
seedNativeDebit: bigint;
|
|
380
350
|
};
|
|
381
351
|
export type PoolCreatedEventArgs = {
|
|
382
352
|
pool: Address;
|
|
383
353
|
mint: Address;
|
|
384
354
|
creator: Address;
|
|
385
355
|
packTokens: number | bigint;
|
|
386
|
-
feeBps: number;
|
|
387
356
|
tiers: Array<TierArgs>;
|
|
388
|
-
/** Tokens the creator donated at creation. Nobody can withdraw them. */
|
|
389
357
|
seedTokens: number | bigint;
|
|
390
|
-
|
|
391
|
-
|
|
358
|
+
extraSeedTokens: number | bigint;
|
|
359
|
+
quoteMint: Address;
|
|
360
|
+
/** Quote token the seed buy spent. */
|
|
361
|
+
seedQuoteAmount: number | bigint;
|
|
362
|
+
/** Lamports the seed buy spent, which is venue account rent, not price. */
|
|
363
|
+
seedNativeDebit: number | bigint;
|
|
392
364
|
};
|
|
393
365
|
/** Gets the encoder for {@link PoolCreatedEventArgs} event data. */
|
|
394
366
|
export declare function getPoolCreatedEventEncoder(): FixedSizeEncoder<PoolCreatedEventArgs>;
|
|
@@ -399,32 +371,6 @@ export declare function getPoolCreatedEventCodec(): FixedSizeCodec<PoolCreatedEv
|
|
|
399
371
|
/** Parses the provided bytes into {@link PoolCreatedEvent} event data. */
|
|
400
372
|
export declare function parsePoolCreatedEvent(data: ReadonlyUint8Array | Uint8Array): PoolCreatedEvent;
|
|
401
373
|
//#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
374
|
//#region src/generated/events/prizesFunded.d.ts
|
|
429
375
|
export declare const PRIZES_FUNDED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
430
376
|
export declare function getPrizesFundedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -469,45 +415,6 @@ export declare function getRandomnessRetriedEventCodec(): FixedSizeCodec<Randomn
|
|
|
469
415
|
/** Parses the provided bytes into {@link RandomnessRetriedEvent} event data. */
|
|
470
416
|
export declare function parseRandomnessRetriedEvent(data: ReadonlyUint8Array | Uint8Array): RandomnessRetriedEvent;
|
|
471
417
|
//#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
418
|
//#region src/generated/events/tokensSold.d.ts
|
|
512
419
|
export declare const TOKENS_SOLD_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
513
420
|
export declare function getTokensSoldEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -515,21 +422,19 @@ export type TokensSoldEvent = {
|
|
|
515
422
|
pool: Address;
|
|
516
423
|
seller: Address;
|
|
517
424
|
venue: Address;
|
|
425
|
+
quoteMint: Address;
|
|
518
426
|
amount: bigint;
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
/** The protocol's 1% of `proceeds`, SOL plus WSOL. */
|
|
522
|
-
protocolFee: bigint;
|
|
427
|
+
quoteProceeds: bigint;
|
|
428
|
+
nativeDebit: bigint;
|
|
523
429
|
};
|
|
524
430
|
export type TokensSoldEventArgs = {
|
|
525
431
|
pool: Address;
|
|
526
432
|
seller: Address;
|
|
527
433
|
venue: Address;
|
|
434
|
+
quoteMint: Address;
|
|
528
435
|
amount: number | bigint;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
/** The protocol's 1% of `proceeds`, SOL plus WSOL. */
|
|
532
|
-
protocolFee: number | bigint;
|
|
436
|
+
quoteProceeds: number | bigint;
|
|
437
|
+
nativeDebit: number | bigint;
|
|
533
438
|
};
|
|
534
439
|
/** Gets the encoder for {@link TokensSoldEventArgs} event data. */
|
|
535
440
|
export declare function getTokensSoldEventEncoder(): FixedSizeEncoder<TokensSoldEventArgs>;
|
|
@@ -540,12 +445,11 @@ export declare function getTokensSoldEventCodec(): FixedSizeCodec<TokensSoldEven
|
|
|
540
445
|
/** Parses the provided bytes into {@link TokensSoldEvent} event data. */
|
|
541
446
|
export declare function parseTokensSoldEvent(data: ReadonlyUint8Array | Uint8Array): TokensSoldEvent;
|
|
542
447
|
//#endregion
|
|
543
|
-
//#region src/generated/pdas/
|
|
544
|
-
export type
|
|
545
|
-
|
|
546
|
-
referrer: Address;
|
|
448
|
+
//#region src/generated/pdas/activity.d.ts
|
|
449
|
+
export type ActivitySeeds = {
|
|
450
|
+
purchaser: Address;
|
|
547
451
|
};
|
|
548
|
-
export declare function
|
|
452
|
+
export declare function findActivityPda(seeds: ActivitySeeds, config?: {
|
|
549
453
|
programAddress?: Address | undefined;
|
|
550
454
|
}): Promise<ProgramDerivedAddress>;
|
|
551
455
|
//#endregion
|
|
@@ -563,14 +467,6 @@ export declare function findIdentityPda(config?: {
|
|
|
563
467
|
programAddress?: Address | undefined;
|
|
564
468
|
}): Promise<ProgramDerivedAddress>;
|
|
565
469
|
//#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
470
|
//#region src/generated/pdas/pool.d.ts
|
|
575
471
|
export type PoolSeeds = {
|
|
576
472
|
mint: Address;
|
|
@@ -579,374 +475,207 @@ export declare function findPoolPda(seeds: PoolSeeds, config?: {
|
|
|
579
475
|
programAddress?: Address | undefined;
|
|
580
476
|
}): Promise<ProgramDerivedAddress>;
|
|
581
477
|
//#endregion
|
|
582
|
-
//#region src/generated/
|
|
583
|
-
export
|
|
584
|
-
|
|
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 {
|
|
478
|
+
//#region src/generated/programs/gabox.d.ts
|
|
479
|
+
export declare const GABOX_PROGRAM_ADDRESS: Address<"GaBoxR9nYcK1zeu8EvSJVHV3SrYpCFmvbh2MLgobMcUA">;
|
|
480
|
+
export declare enum GaboxAccount {
|
|
602
481
|
Draw = 0,
|
|
603
482
|
Pool = 1,
|
|
604
|
-
|
|
605
|
-
ReferralLink = 3
|
|
483
|
+
WalletActivity = 2
|
|
606
484
|
}
|
|
607
|
-
export declare function
|
|
485
|
+
export declare function identifyGaboxAccount(account: {
|
|
608
486
|
data: ReadonlyUint8Array;
|
|
609
|
-
} | ReadonlyUint8Array):
|
|
610
|
-
export declare enum
|
|
487
|
+
} | ReadonlyUint8Array): GaboxAccount;
|
|
488
|
+
export declare enum GaboxEvent {
|
|
611
489
|
DrawResolved = 0,
|
|
612
490
|
PackBought = 1,
|
|
613
491
|
PoolCreated = 2,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
ReferralBound = 6,
|
|
618
|
-
ReferralClaimed = 7,
|
|
619
|
-
TokensSold = 8
|
|
492
|
+
PrizesFunded = 3,
|
|
493
|
+
RandomnessRetried = 4,
|
|
494
|
+
TokensSold = 5
|
|
620
495
|
}
|
|
621
|
-
export declare function
|
|
496
|
+
export declare function identifyGaboxEvent(event: {
|
|
622
497
|
data: ReadonlyUint8Array;
|
|
623
|
-
} | ReadonlyUint8Array):
|
|
624
|
-
export declare enum
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
FundPrizes = 7,
|
|
633
|
-
InitializePool = 8,
|
|
634
|
-
RetryDraw = 9,
|
|
635
|
-
SellPrize = 10,
|
|
636
|
-
SellTokens = 11
|
|
498
|
+
} | ReadonlyUint8Array): GaboxEvent;
|
|
499
|
+
export declare enum GaboxInstruction {
|
|
500
|
+
BuyPack = 0,
|
|
501
|
+
DeliverDraw = 1,
|
|
502
|
+
ExpireDraw = 2,
|
|
503
|
+
FundPrizes = 3,
|
|
504
|
+
InitializePool = 4,
|
|
505
|
+
RetryDraw = 5,
|
|
506
|
+
SellTokens = 6
|
|
637
507
|
}
|
|
638
|
-
export declare function
|
|
508
|
+
export declare function identifyGaboxInstruction(instruction: {
|
|
639
509
|
data: ReadonlyUint8Array;
|
|
640
|
-
} | ReadonlyUint8Array):
|
|
641
|
-
export type
|
|
642
|
-
instructionType:
|
|
643
|
-
} & ParsedBindReferrerInstruction<TProgram> | {
|
|
644
|
-
instructionType: GaboxV2Instruction.BuyPack;
|
|
510
|
+
} | ReadonlyUint8Array): GaboxInstruction;
|
|
511
|
+
export type ParsedGaboxInstruction<TProgram extends string = 'GaBoxR9nYcK1zeu8EvSJVHV3SrYpCFmvbh2MLgobMcUA'> = {
|
|
512
|
+
instructionType: GaboxInstruction.BuyPack;
|
|
645
513
|
} & ParsedBuyPackInstruction<TProgram> | {
|
|
646
|
-
instructionType:
|
|
647
|
-
} & ParsedClaimPrizeInstruction<TProgram> | {
|
|
648
|
-
instructionType: GaboxV2Instruction.ClaimReferral;
|
|
649
|
-
} & ParsedClaimReferralInstruction<TProgram> | {
|
|
650
|
-
instructionType: GaboxV2Instruction.DeliverDraw;
|
|
514
|
+
instructionType: GaboxInstruction.DeliverDraw;
|
|
651
515
|
} & ParsedDeliverDrawInstruction<TProgram> | {
|
|
652
|
-
instructionType:
|
|
516
|
+
instructionType: GaboxInstruction.ExpireDraw;
|
|
653
517
|
} & ParsedExpireDrawInstruction<TProgram> | {
|
|
654
|
-
instructionType:
|
|
655
|
-
} & ParsedFulfillDrawInstruction<TProgram> | {
|
|
656
|
-
instructionType: GaboxV2Instruction.FundPrizes;
|
|
518
|
+
instructionType: GaboxInstruction.FundPrizes;
|
|
657
519
|
} & ParsedFundPrizesInstruction<TProgram> | {
|
|
658
|
-
instructionType:
|
|
520
|
+
instructionType: GaboxInstruction.InitializePool;
|
|
659
521
|
} & ParsedInitializePoolInstruction<TProgram> | {
|
|
660
|
-
instructionType:
|
|
522
|
+
instructionType: GaboxInstruction.RetryDraw;
|
|
661
523
|
} & ParsedRetryDrawInstruction<TProgram> | {
|
|
662
|
-
instructionType:
|
|
663
|
-
} & ParsedSellPrizeInstruction<TProgram> | {
|
|
664
|
-
instructionType: GaboxV2Instruction.SellTokens;
|
|
524
|
+
instructionType: GaboxInstruction.SellTokens;
|
|
665
525
|
} & ParsedSellTokensInstruction<TProgram>;
|
|
666
|
-
export declare function
|
|
667
|
-
export type
|
|
668
|
-
accounts:
|
|
669
|
-
instructions:
|
|
670
|
-
pdas:
|
|
671
|
-
identifyAccount: typeof
|
|
672
|
-
identifyInstruction: typeof
|
|
673
|
-
parseInstruction: typeof
|
|
674
|
-
};
|
|
675
|
-
export type
|
|
526
|
+
export declare function parseGaboxInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedGaboxInstruction<TProgram>;
|
|
527
|
+
export type GaboxPlugin = {
|
|
528
|
+
accounts: GaboxPluginAccounts;
|
|
529
|
+
instructions: GaboxPluginInstructions;
|
|
530
|
+
pdas: GaboxPluginPdas;
|
|
531
|
+
identifyAccount: typeof identifyGaboxAccount;
|
|
532
|
+
identifyInstruction: typeof identifyGaboxInstruction;
|
|
533
|
+
parseInstruction: typeof parseGaboxInstruction;
|
|
534
|
+
};
|
|
535
|
+
export type GaboxPluginAccounts = {
|
|
676
536
|
draw: ReturnType<typeof getDrawCodec> & SelfFetchFunctions<DrawArgs, Draw>;
|
|
677
537
|
pool: ReturnType<typeof getPoolCodec> & SelfFetchFunctions<PoolArgs, Pool>;
|
|
678
|
-
|
|
679
|
-
referralLink: ReturnType<typeof getReferralLinkCodec> & SelfFetchFunctions<ReferralLinkArgs, ReferralLink>;
|
|
538
|
+
walletActivity: ReturnType<typeof getWalletActivityCodec> & SelfFetchFunctions<WalletActivityArgs, WalletActivity>;
|
|
680
539
|
};
|
|
681
|
-
export type
|
|
682
|
-
bindReferrer: (input: BindReferrerAsyncInput) => ReturnType<typeof getBindReferrerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
540
|
+
export type GaboxPluginInstructions = {
|
|
683
541
|
buyPack: (input: BuyPackAsyncInput) => ReturnType<typeof getBuyPackInstructionAsync> & SelfPlanAndSendFunctions;
|
|
684
|
-
claimPrize: (input: ClaimPrizeAsyncInput) => ReturnType<typeof getClaimPrizeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
685
|
-
claimReferral: (input: ClaimReferralAsyncInput) => ReturnType<typeof getClaimReferralInstructionAsync> & SelfPlanAndSendFunctions;
|
|
686
542
|
deliverDraw: (input: DeliverDrawAsyncInput) => ReturnType<typeof getDeliverDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
687
543
|
expireDraw: (input: ExpireDrawAsyncInput) => ReturnType<typeof getExpireDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
688
|
-
|
|
689
|
-
fundPrizes: (input: FundPrizesInput) => ReturnType<typeof getFundPrizesInstruction> & SelfPlanAndSendFunctions;
|
|
544
|
+
fundPrizes: (input: FundPrizesAsyncInput) => ReturnType<typeof getFundPrizesInstructionAsync> & SelfPlanAndSendFunctions;
|
|
690
545
|
initializePool: (input: InitializePoolAsyncInput) => ReturnType<typeof getInitializePoolInstructionAsync> & SelfPlanAndSendFunctions;
|
|
691
546
|
retryDraw: (input: MakeOptional<RetryDrawAsyncInput, "payer">) => ReturnType<typeof getRetryDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
692
|
-
sellPrize: (input: SellPrizeAsyncInput) => ReturnType<typeof getSellPrizeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
693
547
|
sellTokens: (input: SellTokensAsyncInput) => ReturnType<typeof getSellTokensInstructionAsync> & SelfPlanAndSendFunctions;
|
|
694
548
|
};
|
|
695
|
-
export type
|
|
696
|
-
link: typeof findLinkPda;
|
|
697
|
-
identity: typeof findIdentityPda;
|
|
698
|
-
referralLink: typeof findReferralLinkPda;
|
|
699
|
-
referral: typeof findReferralPda;
|
|
549
|
+
export type GaboxPluginPdas = {
|
|
700
550
|
pool: typeof findPoolPda;
|
|
701
|
-
|
|
551
|
+
activity: typeof findActivityPda;
|
|
552
|
+
identity: typeof findIdentityPda;
|
|
702
553
|
draw: typeof findDrawPda;
|
|
703
554
|
};
|
|
704
|
-
export type
|
|
705
|
-
export declare function
|
|
706
|
-
|
|
555
|
+
export type GaboxPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
556
|
+
export declare function gaboxProgram(): <T extends GaboxPluginRequirements>(client: T) => ExtendedClient<T, {
|
|
557
|
+
gabox: GaboxPlugin;
|
|
707
558
|
}>;
|
|
708
559
|
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
709
560
|
//#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
561
|
//#region src/generated/instructions/buyPack.d.ts
|
|
754
562
|
export declare const BUY_PACK_DISCRIMINATOR: ReadonlyUint8Array;
|
|
755
563
|
export declare function getBuyPackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
756
|
-
export type BuyPackInstruction<TProgram extends string = typeof
|
|
564
|
+
export type BuyPackInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountPurchaser extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TAccountActivity extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountQuoteMint 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", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, 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, TAccountActivity extends string ? WritableAccount<TAccountActivity> : TAccountActivity, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, 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, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
757
565
|
export type BuyPackInstructionData = {
|
|
758
566
|
discriminator: ReadonlyUint8Array;
|
|
759
567
|
maxQuoteIn: bigint;
|
|
760
568
|
minMaximum: bigint;
|
|
761
|
-
|
|
569
|
+
maxNativeDebit: bigint;
|
|
762
570
|
};
|
|
763
571
|
export type BuyPackInstructionDataArgs = {
|
|
764
572
|
maxQuoteIn: number | bigint;
|
|
765
573
|
minMaximum: number | bigint;
|
|
766
|
-
|
|
574
|
+
maxNativeDebit: number | bigint;
|
|
767
575
|
};
|
|
768
576
|
export declare function getBuyPackInstructionDataEncoder(): FixedSizeEncoder<BuyPackInstructionDataArgs>;
|
|
769
577
|
export declare function getBuyPackInstructionDataDecoder(): FixedSizeDecoder<BuyPackInstructionData>;
|
|
770
578
|
export declare function getBuyPackInstructionDataCodec(): FixedSizeCodec<BuyPackInstructionDataArgs, BuyPackInstructionData>;
|
|
771
|
-
export type BuyPackAsyncInput<TAccountPurchaser extends string = string, TAccountPool extends string = string,
|
|
579
|
+
export type BuyPackAsyncInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountActivity extends string = string, TAccountMint extends string = string, TAccountQuoteMint 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, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
772
580
|
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
773
|
-
pool
|
|
774
|
-
creator: Address<TAccountCreator>;
|
|
775
|
-
feeCollector?: Address<TAccountFeeCollector>;
|
|
581
|
+
pool?: Address<TAccountPool>;
|
|
776
582
|
draw: Address<TAccountDraw>;
|
|
583
|
+
/**
|
|
584
|
+
* Rent for this account (when it is first created) is outside
|
|
585
|
+
* `total_native_debit`, the same as `draw`'s rent: Anchor's `init_if_needed`
|
|
586
|
+
* runs before the handler body executes, so `before_native` is already
|
|
587
|
+
* sampled after this account exists.
|
|
588
|
+
*/
|
|
589
|
+
activity?: Address<TAccountActivity>;
|
|
777
590
|
mint: Address<TAccountMint>;
|
|
591
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
778
592
|
vault: Address<TAccountVault>;
|
|
779
593
|
userTokens?: Address<TAccountUserTokens>;
|
|
594
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
780
595
|
venue: Address<TAccountVenue>;
|
|
781
596
|
identity?: Address<TAccountIdentity>;
|
|
782
597
|
queue?: Address<TAccountQueue>;
|
|
783
598
|
program?: Address<TAccountProgram>;
|
|
784
599
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
785
600
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
601
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
786
602
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
787
603
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
788
|
-
referralLink?: Address<TAccountReferralLink>;
|
|
789
|
-
referral?: Address<TAccountReferral>;
|
|
790
604
|
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
791
605
|
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
792
|
-
|
|
606
|
+
maxNativeDebit: BuyPackInstructionDataArgs["maxNativeDebit"];
|
|
793
607
|
};
|
|
794
|
-
export declare function getBuyPackInstructionAsync<TAccountPurchaser extends string, TAccountPool extends string,
|
|
608
|
+
export declare function getBuyPackInstructionAsync<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountActivity extends string, TAccountMint extends string, TAccountQuoteMint 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, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: BuyPackAsyncInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
795
609
|
programAddress?: TProgramAddress;
|
|
796
|
-
}): Promise<BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool,
|
|
797
|
-
export type BuyPackInput<TAccountPurchaser extends string = string, TAccountPool extends string = string,
|
|
610
|
+
}): Promise<BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
611
|
+
export type BuyPackInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountActivity extends string = string, TAccountMint extends string = string, TAccountQuoteMint 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, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
798
612
|
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
799
613
|
pool: Address<TAccountPool>;
|
|
800
|
-
creator: Address<TAccountCreator>;
|
|
801
|
-
feeCollector?: Address<TAccountFeeCollector>;
|
|
802
614
|
draw: Address<TAccountDraw>;
|
|
615
|
+
/**
|
|
616
|
+
* Rent for this account (when it is first created) is outside
|
|
617
|
+
* `total_native_debit`, the same as `draw`'s rent: Anchor's `init_if_needed`
|
|
618
|
+
* runs before the handler body executes, so `before_native` is already
|
|
619
|
+
* sampled after this account exists.
|
|
620
|
+
*/
|
|
621
|
+
activity: Address<TAccountActivity>;
|
|
803
622
|
mint: Address<TAccountMint>;
|
|
623
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
804
624
|
vault: Address<TAccountVault>;
|
|
805
625
|
userTokens: Address<TAccountUserTokens>;
|
|
626
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
806
627
|
venue: Address<TAccountVenue>;
|
|
807
628
|
identity: Address<TAccountIdentity>;
|
|
808
629
|
queue?: Address<TAccountQueue>;
|
|
809
630
|
program?: Address<TAccountProgram>;
|
|
810
631
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
811
632
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
633
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
812
634
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
813
635
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
814
|
-
referralLink?: Address<TAccountReferralLink>;
|
|
815
|
-
referral?: Address<TAccountReferral>;
|
|
816
636
|
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
817
637
|
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
818
|
-
|
|
638
|
+
maxNativeDebit: BuyPackInstructionDataArgs["maxNativeDebit"];
|
|
819
639
|
};
|
|
820
|
-
export declare function getBuyPackInstruction<TAccountPurchaser extends string, TAccountPool extends string,
|
|
640
|
+
export declare function getBuyPackInstruction<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountActivity extends string, TAccountMint extends string, TAccountQuoteMint 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, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: BuyPackInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
821
641
|
programAddress?: TProgramAddress;
|
|
822
|
-
}): BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool,
|
|
823
|
-
export type ParsedBuyPackInstruction<TProgram extends string = typeof
|
|
642
|
+
}): BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
643
|
+
export type ParsedBuyPackInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
824
644
|
programAddress: Address<TProgram>;
|
|
825
645
|
accounts: {
|
|
826
646
|
purchaser: TAccountMetas[0];
|
|
827
647
|
pool: TAccountMetas[1];
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
648
|
+
draw: TAccountMetas[2];
|
|
649
|
+
/**
|
|
650
|
+
* Rent for this account (when it is first created) is outside
|
|
651
|
+
* `total_native_debit`, the same as `draw`'s rent: Anchor's `init_if_needed`
|
|
652
|
+
* runs before the handler body executes, so `before_native` is already
|
|
653
|
+
* sampled after this account exists.
|
|
654
|
+
*/
|
|
655
|
+
activity: TAccountMetas[3];
|
|
656
|
+
mint: TAccountMetas[4];
|
|
657
|
+
quoteMint: TAccountMetas[5];
|
|
832
658
|
vault: TAccountMetas[6];
|
|
833
659
|
userTokens: TAccountMetas[7];
|
|
660
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
834
661
|
venue: TAccountMetas[8];
|
|
835
662
|
identity: TAccountMetas[9];
|
|
836
663
|
queue: TAccountMetas[10];
|
|
837
664
|
program: TAccountMetas[11];
|
|
838
665
|
slotHashes: TAccountMetas[12];
|
|
839
666
|
tokenProgram: TAccountMetas[13];
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
referral?: TAccountMetas[17] | undefined;
|
|
667
|
+
quoteTokenProgram: TAccountMetas[14];
|
|
668
|
+
associatedTokenProgram: TAccountMetas[15];
|
|
669
|
+
systemProgram: TAccountMetas[16];
|
|
844
670
|
};
|
|
845
671
|
data: BuyPackInstructionData;
|
|
846
672
|
};
|
|
847
673
|
export declare function parseBuyPackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyPackInstruction<TProgram, TAccountMetas>;
|
|
848
674
|
//#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
675
|
//#region src/generated/instructions/deliverDraw.d.ts
|
|
947
676
|
export declare const DELIVER_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
948
677
|
export declare function getDeliverDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
949
|
-
export type DeliverDrawInstruction<TProgram extends string = typeof
|
|
678
|
+
export type DeliverDrawInstruction<TProgram extends string = typeof GABOX_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
679
|
export type DeliverDrawInstructionData = {
|
|
951
680
|
discriminator: ReadonlyUint8Array;
|
|
952
681
|
randomness: ReadonlyUint8Array;
|
|
@@ -971,7 +700,7 @@ export type DeliverDrawAsyncInput<TAccountOracleIdentity extends string = string
|
|
|
971
700
|
randomness: DeliverDrawInstructionDataArgs["randomness"];
|
|
972
701
|
seq: DeliverDrawInstructionDataArgs["seq"];
|
|
973
702
|
};
|
|
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
|
|
703
|
+
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_PROGRAM_ADDRESS>(input: DeliverDrawAsyncInput<TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
975
704
|
programAddress?: TProgramAddress;
|
|
976
705
|
}): Promise<DeliverDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>>;
|
|
977
706
|
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> = {
|
|
@@ -986,10 +715,10 @@ export type DeliverDrawInput<TAccountOracleIdentity extends string = string, TAc
|
|
|
986
715
|
randomness: DeliverDrawInstructionDataArgs["randomness"];
|
|
987
716
|
seq: DeliverDrawInstructionDataArgs["seq"];
|
|
988
717
|
};
|
|
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
|
|
718
|
+
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_PROGRAM_ADDRESS>(input: DeliverDrawInput<TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
990
719
|
programAddress?: TProgramAddress;
|
|
991
720
|
}): DeliverDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>;
|
|
992
|
-
export type ParsedDeliverDrawInstruction<TProgram extends string = typeof
|
|
721
|
+
export type ParsedDeliverDrawInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
993
722
|
programAddress: Address<TProgram>;
|
|
994
723
|
accounts: {
|
|
995
724
|
oracleIdentity: TAccountMetas[0];
|
|
@@ -1008,7 +737,7 @@ export declare function parseDeliverDrawInstruction<TProgram extends string, TAc
|
|
|
1008
737
|
//#region src/generated/instructions/expireDraw.d.ts
|
|
1009
738
|
export declare const EXPIRE_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1010
739
|
export declare function getExpireDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1011
|
-
export type ExpireDrawInstruction<TProgram extends string = typeof
|
|
740
|
+
export type ExpireDrawInstruction<TProgram extends string = typeof GABOX_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
741
|
export type ExpireDrawInstructionData = {
|
|
1013
742
|
discriminator: ReadonlyUint8Array;
|
|
1014
743
|
};
|
|
@@ -1025,7 +754,7 @@ export type ExpireDrawAsyncInput<TAccountPool extends string = string, TAccountD
|
|
|
1025
754
|
userTokens?: Address<TAccountUserTokens>;
|
|
1026
755
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1027
756
|
};
|
|
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
|
|
757
|
+
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_PROGRAM_ADDRESS>(input: ExpireDrawAsyncInput<TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
1029
758
|
programAddress?: TProgramAddress;
|
|
1030
759
|
}): Promise<ExpireDrawInstruction<TProgramAddress, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>>;
|
|
1031
760
|
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> = {
|
|
@@ -1037,10 +766,10 @@ export type ExpireDrawInput<TAccountPool extends string = string, TAccountDraw e
|
|
|
1037
766
|
userTokens: Address<TAccountUserTokens>;
|
|
1038
767
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1039
768
|
};
|
|
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
|
|
769
|
+
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_PROGRAM_ADDRESS>(input: ExpireDrawInput<TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>, config?: {
|
|
1041
770
|
programAddress?: TProgramAddress;
|
|
1042
771
|
}): ExpireDrawInstruction<TProgramAddress, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>;
|
|
1043
|
-
export type ParsedExpireDrawInstruction<TProgram extends string = typeof
|
|
772
|
+
export type ParsedExpireDrawInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1044
773
|
programAddress: Address<TProgram>;
|
|
1045
774
|
accounts: {
|
|
1046
775
|
pool: TAccountMetas[0];
|
|
@@ -1055,57 +784,10 @@ export type ParsedExpireDrawInstruction<TProgram extends string = typeof GABOX_V
|
|
|
1055
784
|
};
|
|
1056
785
|
export declare function parseExpireDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedExpireDrawInstruction<TProgram, TAccountMetas>;
|
|
1057
786
|
//#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
787
|
//#region src/generated/instructions/fundPrizes.d.ts
|
|
1106
788
|
export declare const FUND_PRIZES_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1107
789
|
export declare function getFundPrizesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1108
|
-
export type FundPrizesInstruction<TProgram extends string = typeof
|
|
790
|
+
export type FundPrizesInstruction<TProgram extends string = typeof GABOX_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
791
|
export type FundPrizesInstructionData = {
|
|
1110
792
|
discriminator: ReadonlyUint8Array;
|
|
1111
793
|
amount: bigint;
|
|
@@ -1116,6 +798,18 @@ export type FundPrizesInstructionDataArgs = {
|
|
|
1116
798
|
export declare function getFundPrizesInstructionDataEncoder(): FixedSizeEncoder<FundPrizesInstructionDataArgs>;
|
|
1117
799
|
export declare function getFundPrizesInstructionDataDecoder(): FixedSizeDecoder<FundPrizesInstructionData>;
|
|
1118
800
|
export declare function getFundPrizesInstructionDataCodec(): FixedSizeCodec<FundPrizesInstructionDataArgs, FundPrizesInstructionData>;
|
|
801
|
+
export type FundPrizesAsyncInput<TAccountFunder extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountSource extends string = string, TAccountVault extends string = string, TAccountTokenProgram extends string = string> = {
|
|
802
|
+
funder: TransactionSigner<TAccountFunder>;
|
|
803
|
+
pool?: Address<TAccountPool>;
|
|
804
|
+
mint: Address<TAccountMint>;
|
|
805
|
+
source: Address<TAccountSource>;
|
|
806
|
+
vault: Address<TAccountVault>;
|
|
807
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
808
|
+
amount: FundPrizesInstructionDataArgs["amount"];
|
|
809
|
+
};
|
|
810
|
+
export declare function getFundPrizesInstructionAsync<TAccountFunder extends string, TAccountPool extends string, TAccountMint extends string, TAccountSource extends string, TAccountVault extends string, TAccountTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: FundPrizesAsyncInput<TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>, config?: {
|
|
811
|
+
programAddress?: TProgramAddress;
|
|
812
|
+
}): Promise<FundPrizesInstruction<TProgramAddress, TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>>;
|
|
1119
813
|
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
814
|
funder: TransactionSigner<TAccountFunder>;
|
|
1121
815
|
pool: Address<TAccountPool>;
|
|
@@ -1125,10 +819,10 @@ export type FundPrizesInput<TAccountFunder extends string = string, TAccountPool
|
|
|
1125
819
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1126
820
|
amount: FundPrizesInstructionDataArgs["amount"];
|
|
1127
821
|
};
|
|
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
|
|
822
|
+
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_PROGRAM_ADDRESS>(input: FundPrizesInput<TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>, config?: {
|
|
1129
823
|
programAddress?: TProgramAddress;
|
|
1130
824
|
}): FundPrizesInstruction<TProgramAddress, TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>;
|
|
1131
|
-
export type ParsedFundPrizesInstruction<TProgram extends string = typeof
|
|
825
|
+
export type ParsedFundPrizesInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1132
826
|
programAddress: Address<TProgram>;
|
|
1133
827
|
accounts: {
|
|
1134
828
|
funder: TAccountMetas[0];
|
|
@@ -1145,94 +839,101 @@ export declare function parseFundPrizesInstruction<TProgram extends string, TAcc
|
|
|
1145
839
|
//#region src/generated/instructions/initializePool.d.ts
|
|
1146
840
|
export declare const INITIALIZE_POOL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1147
841
|
export declare function getInitializePoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1148
|
-
export type InitializePoolInstruction<TProgram extends string = typeof
|
|
842
|
+
export type InitializePoolInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountQuoteConfig extends string | AccountMeta<string> = string, TAccountCreatorTokens extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = "Sysvar1nstructions1111111111111111111111111", TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, 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, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountQuoteConfig extends string ? ReadonlyAccount<TAccountQuoteConfig> : TAccountQuoteConfig, 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, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
1149
843
|
export type InitializePoolInstructionData = {
|
|
1150
844
|
discriminator: ReadonlyUint8Array;
|
|
1151
|
-
feeBps: number;
|
|
1152
845
|
tiers: Array<Tier>;
|
|
1153
|
-
|
|
846
|
+
maxSeedQuoteIn: bigint;
|
|
847
|
+
maxSeedNativeDebit: bigint;
|
|
848
|
+
extraSeedTokens: bigint;
|
|
1154
849
|
};
|
|
1155
850
|
export type InitializePoolInstructionDataArgs = {
|
|
1156
|
-
feeBps: number;
|
|
1157
851
|
tiers: Array<TierArgs>;
|
|
1158
|
-
|
|
852
|
+
maxSeedQuoteIn: number | bigint;
|
|
853
|
+
maxSeedNativeDebit: number | bigint;
|
|
854
|
+
extraSeedTokens: number | bigint;
|
|
1159
855
|
};
|
|
1160
856
|
export declare function getInitializePoolInstructionDataEncoder(): FixedSizeEncoder<InitializePoolInstructionDataArgs>;
|
|
1161
857
|
export declare function getInitializePoolInstructionDataDecoder(): FixedSizeDecoder<InitializePoolInstructionData>;
|
|
1162
858
|
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> = {
|
|
859
|
+
export type InitializePoolAsyncInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteConfig extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1164
860
|
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
861
|
pool?: Address<TAccountPool>;
|
|
1170
862
|
mint: Address<TAccountMint>;
|
|
1171
863
|
/**
|
|
1172
|
-
* The
|
|
1173
|
-
*
|
|
864
|
+
* The quote mint. Classic SPL Token, or Token-2022 with the bounded
|
|
865
|
+
* profile `tokens::validate_quote_mint` accepts.
|
|
1174
866
|
*/
|
|
867
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
868
|
+
/** quote mint, by its owner, discriminator, curve type and quote field. */
|
|
869
|
+
quoteConfig: Address<TAccountQuoteConfig>;
|
|
1175
870
|
creatorTokens?: Address<TAccountCreatorTokens>;
|
|
1176
871
|
vault?: Address<TAccountVault>;
|
|
1177
|
-
|
|
872
|
+
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
873
|
+
venue: Address<TAccountVenue>;
|
|
1178
874
|
instructions?: Address<TAccountInstructions>;
|
|
1179
875
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
876
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
1180
877
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1181
878
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1182
|
-
feeBps: InitializePoolInstructionDataArgs["feeBps"];
|
|
1183
879
|
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
1184
|
-
|
|
880
|
+
maxSeedQuoteIn: InitializePoolInstructionDataArgs["maxSeedQuoteIn"];
|
|
881
|
+
maxSeedNativeDebit: InitializePoolInstructionDataArgs["maxSeedNativeDebit"];
|
|
882
|
+
extraSeedTokens: InitializePoolInstructionDataArgs["extraSeedTokens"];
|
|
1185
883
|
};
|
|
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
|
|
884
|
+
export declare function getInitializePoolInstructionAsync<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountQuoteConfig extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: InitializePoolAsyncInput<TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1187
885
|
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> = {
|
|
886
|
+
}): Promise<InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
887
|
+
export type InitializePoolInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteConfig extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1190
888
|
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
889
|
pool: Address<TAccountPool>;
|
|
1196
890
|
mint: Address<TAccountMint>;
|
|
1197
891
|
/**
|
|
1198
|
-
* The
|
|
1199
|
-
*
|
|
892
|
+
* The quote mint. Classic SPL Token, or Token-2022 with the bounded
|
|
893
|
+
* profile `tokens::validate_quote_mint` accepts.
|
|
1200
894
|
*/
|
|
895
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
896
|
+
/** quote mint, by its owner, discriminator, curve type and quote field. */
|
|
897
|
+
quoteConfig: Address<TAccountQuoteConfig>;
|
|
1201
898
|
creatorTokens: Address<TAccountCreatorTokens>;
|
|
1202
899
|
vault: Address<TAccountVault>;
|
|
1203
|
-
|
|
900
|
+
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
901
|
+
venue: Address<TAccountVenue>;
|
|
1204
902
|
instructions?: Address<TAccountInstructions>;
|
|
1205
903
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
904
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
1206
905
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1207
906
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1208
|
-
feeBps: InitializePoolInstructionDataArgs["feeBps"];
|
|
1209
907
|
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
1210
|
-
|
|
908
|
+
maxSeedQuoteIn: InitializePoolInstructionDataArgs["maxSeedQuoteIn"];
|
|
909
|
+
maxSeedNativeDebit: InitializePoolInstructionDataArgs["maxSeedNativeDebit"];
|
|
910
|
+
extraSeedTokens: InitializePoolInstructionDataArgs["extraSeedTokens"];
|
|
1211
911
|
};
|
|
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
|
|
912
|
+
export declare function getInitializePoolInstruction<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountQuoteConfig extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: InitializePoolInput<TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1213
913
|
programAddress?: TProgramAddress;
|
|
1214
|
-
}): InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1215
|
-
export type ParsedInitializePoolInstruction<TProgram extends string = typeof
|
|
914
|
+
}): InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
915
|
+
export type ParsedInitializePoolInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1216
916
|
programAddress: Address<TProgram>;
|
|
1217
917
|
accounts: {
|
|
1218
918
|
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
919
|
pool: TAccountMetas[1];
|
|
1224
920
|
mint: TAccountMetas[2];
|
|
1225
921
|
/**
|
|
1226
|
-
* The
|
|
1227
|
-
*
|
|
922
|
+
* The quote mint. Classic SPL Token, or Token-2022 with the bounded
|
|
923
|
+
* profile `tokens::validate_quote_mint` accepts.
|
|
1228
924
|
*/
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
925
|
+
quoteMint: TAccountMetas[3];
|
|
926
|
+
/** quote mint, by its owner, discriminator, curve type and quote field. */
|
|
927
|
+
quoteConfig: TAccountMetas[4];
|
|
928
|
+
creatorTokens: TAccountMetas[5];
|
|
929
|
+
vault: TAccountMetas[6];
|
|
930
|
+
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
931
|
+
venue: TAccountMetas[7];
|
|
932
|
+
instructions: TAccountMetas[8];
|
|
933
|
+
tokenProgram: TAccountMetas[9];
|
|
934
|
+
quoteTokenProgram: TAccountMetas[10];
|
|
935
|
+
associatedTokenProgram: TAccountMetas[11];
|
|
936
|
+
systemProgram: TAccountMetas[12];
|
|
1236
937
|
};
|
|
1237
938
|
data: InitializePoolInstructionData;
|
|
1238
939
|
};
|
|
@@ -1241,7 +942,7 @@ export declare function parseInitializePoolInstruction<TProgram extends string,
|
|
|
1241
942
|
//#region src/generated/instructions/retryDraw.d.ts
|
|
1242
943
|
export declare const RETRY_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1243
944
|
export declare function getRetryDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1244
|
-
export type RetryDrawInstruction<TProgram extends string = typeof
|
|
945
|
+
export type RetryDrawInstruction<TProgram extends string = typeof GABOX_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
946
|
export type RetryDrawInstructionData = {
|
|
1246
947
|
discriminator: ReadonlyUint8Array;
|
|
1247
948
|
maxVrfDebit: bigint;
|
|
@@ -1254,6 +955,15 @@ export declare function getRetryDrawInstructionDataDecoder(): FixedSizeDecoder<R
|
|
|
1254
955
|
export declare function getRetryDrawInstructionDataCodec(): FixedSizeCodec<RetryDrawInstructionDataArgs, RetryDrawInstructionData>;
|
|
1255
956
|
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
957
|
payer: TransactionSigner<TAccountPayer>;
|
|
958
|
+
/**
|
|
959
|
+
* This account carries no `seeds` constraint, unlike every other
|
|
960
|
+
* instruction. There is no `mint` account here to build the seed from,
|
|
961
|
+
* and none is needed: `draw` names this pool with `has_one`, so the draw
|
|
962
|
+
* always belongs to it, and the account type already proves the Gabox
|
|
963
|
+
* program owns it. A retry only pays for another randomness request. The
|
|
964
|
+
* callback lands in `deliver_draw`, which checks the full pool seeds
|
|
965
|
+
* before any tokens move.
|
|
966
|
+
*/
|
|
1257
967
|
pool: Address<TAccountPool>;
|
|
1258
968
|
draw: Address<TAccountDraw>;
|
|
1259
969
|
identity?: Address<TAccountIdentity>;
|
|
@@ -1263,11 +973,20 @@ export type RetryDrawAsyncInput<TAccountPayer extends string = string, TAccountP
|
|
|
1263
973
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1264
974
|
maxVrfDebit: RetryDrawInstructionDataArgs["maxVrfDebit"];
|
|
1265
975
|
};
|
|
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
|
|
976
|
+
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_PROGRAM_ADDRESS>(input: RetryDrawAsyncInput<TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
1267
977
|
programAddress?: TProgramAddress;
|
|
1268
978
|
}): Promise<RetryDrawInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>>;
|
|
1269
979
|
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
980
|
payer: TransactionSigner<TAccountPayer>;
|
|
981
|
+
/**
|
|
982
|
+
* This account carries no `seeds` constraint, unlike every other
|
|
983
|
+
* instruction. There is no `mint` account here to build the seed from,
|
|
984
|
+
* and none is needed: `draw` names this pool with `has_one`, so the draw
|
|
985
|
+
* always belongs to it, and the account type already proves the Gabox
|
|
986
|
+
* program owns it. A retry only pays for another randomness request. The
|
|
987
|
+
* callback lands in `deliver_draw`, which checks the full pool seeds
|
|
988
|
+
* before any tokens move.
|
|
989
|
+
*/
|
|
1271
990
|
pool: Address<TAccountPool>;
|
|
1272
991
|
draw: Address<TAccountDraw>;
|
|
1273
992
|
identity: Address<TAccountIdentity>;
|
|
@@ -1277,13 +996,22 @@ export type RetryDrawInput<TAccountPayer extends string = string, TAccountPool e
|
|
|
1277
996
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1278
997
|
maxVrfDebit: RetryDrawInstructionDataArgs["maxVrfDebit"];
|
|
1279
998
|
};
|
|
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
|
|
999
|
+
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_PROGRAM_ADDRESS>(input: RetryDrawInput<TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>, config?: {
|
|
1281
1000
|
programAddress?: TProgramAddress;
|
|
1282
1001
|
}): RetryDrawInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>;
|
|
1283
|
-
export type ParsedRetryDrawInstruction<TProgram extends string = typeof
|
|
1002
|
+
export type ParsedRetryDrawInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1284
1003
|
programAddress: Address<TProgram>;
|
|
1285
1004
|
accounts: {
|
|
1286
1005
|
payer: TAccountMetas[0];
|
|
1006
|
+
/**
|
|
1007
|
+
* This account carries no `seeds` constraint, unlike every other
|
|
1008
|
+
* instruction. There is no `mint` account here to build the seed from,
|
|
1009
|
+
* and none is needed: `draw` names this pool with `has_one`, so the draw
|
|
1010
|
+
* always belongs to it, and the account type already proves the Gabox
|
|
1011
|
+
* program owns it. A retry only pays for another randomness request. The
|
|
1012
|
+
* callback lands in `deliver_draw`, which checks the full pool seeds
|
|
1013
|
+
* before any tokens move.
|
|
1014
|
+
*/
|
|
1287
1015
|
pool: TAccountMetas[1];
|
|
1288
1016
|
draw: TAccountMetas[2];
|
|
1289
1017
|
identity: TAccountMetas[3];
|
|
@@ -1296,172 +1024,76 @@ export type ParsedRetryDrawInstruction<TProgram extends string = typeof GABOX_V2
|
|
|
1296
1024
|
};
|
|
1297
1025
|
export declare function parseRetryDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRetryDrawInstruction<TProgram, TAccountMetas>;
|
|
1298
1026
|
//#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
1027
|
//#region src/generated/instructions/sellTokens.d.ts
|
|
1379
1028
|
export declare const SELL_TOKENS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1380
1029
|
export declare function getSellTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1381
|
-
export type SellTokensInstruction<TProgram extends string = typeof
|
|
1030
|
+
export type SellTokensInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountSeller extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, 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, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, ...TRemainingAccounts]>;
|
|
1382
1031
|
export type SellTokensInstructionData = {
|
|
1383
1032
|
discriminator: ReadonlyUint8Array;
|
|
1384
1033
|
amount: bigint;
|
|
1385
1034
|
minQuoteOutput: bigint;
|
|
1035
|
+
maxNativeDebit: bigint;
|
|
1386
1036
|
};
|
|
1387
1037
|
export type SellTokensInstructionDataArgs = {
|
|
1388
1038
|
amount: number | bigint;
|
|
1389
1039
|
minQuoteOutput: number | bigint;
|
|
1040
|
+
maxNativeDebit: number | bigint;
|
|
1390
1041
|
};
|
|
1391
1042
|
export declare function getSellTokensInstructionDataEncoder(): FixedSizeEncoder<SellTokensInstructionDataArgs>;
|
|
1392
1043
|
export declare function getSellTokensInstructionDataDecoder(): FixedSizeDecoder<SellTokensInstructionData>;
|
|
1393
1044
|
export declare function getSellTokensInstructionDataCodec(): FixedSizeCodec<SellTokensInstructionDataArgs, SellTokensInstructionData>;
|
|
1394
|
-
export type SellTokensAsyncInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string,
|
|
1045
|
+
export type SellTokensAsyncInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = {
|
|
1395
1046
|
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>;
|
|
1047
|
+
pool?: Address<TAccountPool>;
|
|
1401
1048
|
mint: Address<TAccountMint>;
|
|
1049
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
1402
1050
|
userTokens?: Address<TAccountUserTokens>;
|
|
1051
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
1403
1052
|
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
1053
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1410
|
-
|
|
1054
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
1411
1055
|
amount: SellTokensInstructionDataArgs["amount"];
|
|
1412
1056
|
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1057
|
+
maxNativeDebit: SellTokensInstructionDataArgs["maxNativeDebit"];
|
|
1413
1058
|
};
|
|
1414
|
-
export declare function getSellTokensInstructionAsync<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string,
|
|
1059
|
+
export declare function getSellTokensInstructionAsync<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: SellTokensAsyncInput<TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>, config?: {
|
|
1415
1060
|
programAddress?: TProgramAddress;
|
|
1416
|
-
}): Promise<SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountUserTokens, TAccountVenue,
|
|
1417
|
-
export type SellTokensInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string,
|
|
1061
|
+
}): Promise<SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>>;
|
|
1062
|
+
export type SellTokensInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = {
|
|
1418
1063
|
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
1064
|
pool: Address<TAccountPool>;
|
|
1424
1065
|
mint: Address<TAccountMint>;
|
|
1066
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
1425
1067
|
userTokens: Address<TAccountUserTokens>;
|
|
1068
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
1426
1069
|
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
1070
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1433
|
-
|
|
1071
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
1434
1072
|
amount: SellTokensInstructionDataArgs["amount"];
|
|
1435
1073
|
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1074
|
+
maxNativeDebit: SellTokensInstructionDataArgs["maxNativeDebit"];
|
|
1436
1075
|
};
|
|
1437
|
-
export declare function getSellTokensInstruction<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string,
|
|
1076
|
+
export declare function getSellTokensInstruction<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: SellTokensInput<TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>, config?: {
|
|
1438
1077
|
programAddress?: TProgramAddress;
|
|
1439
|
-
}): SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountUserTokens, TAccountVenue,
|
|
1440
|
-
export type ParsedSellTokensInstruction<TProgram extends string = typeof
|
|
1078
|
+
}): SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>;
|
|
1079
|
+
export type ParsedSellTokensInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1441
1080
|
programAddress: Address<TProgram>;
|
|
1442
1081
|
accounts: {
|
|
1443
1082
|
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
1083
|
pool: TAccountMetas[1];
|
|
1449
1084
|
mint: TAccountMetas[2];
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
/** Classic SPL Token, the program WSOL lives under. */
|
|
1085
|
+
quoteMint: TAccountMetas[3];
|
|
1086
|
+
userTokens: TAccountMetas[4];
|
|
1087
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
1088
|
+
venue: TAccountMetas[5];
|
|
1089
|
+
tokenProgram: TAccountMetas[6];
|
|
1456
1090
|
quoteTokenProgram: TAccountMetas[7];
|
|
1457
|
-
tokenProgram: TAccountMetas[8];
|
|
1458
|
-
systemProgram: TAccountMetas[9];
|
|
1459
1091
|
};
|
|
1460
1092
|
data: SellTokensInstructionData;
|
|
1461
1093
|
};
|
|
1462
1094
|
export declare function parseSellTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellTokensInstruction<TProgram, TAccountMetas>;
|
|
1463
1095
|
declare namespace index_d_exports {
|
|
1464
|
-
export {
|
|
1096
|
+
export { ActivitySeeds, BUY_PACK_DISCRIMINATOR, BuyPackAsyncInput, BuyPackInput, BuyPackInstruction, BuyPackInstructionData, BuyPackInstructionDataArgs, DELIVER_DRAW_DISCRIMINATOR, DRAW_DISCRIMINATOR, DRAW_RESOLVED_EVENT_DISCRIMINATOR, DeliverDrawAsyncInput, DeliverDrawInput, DeliverDrawInstruction, DeliverDrawInstructionData, DeliverDrawInstructionDataArgs, Draw, DrawArgs, DrawResolvedEvent, DrawResolvedEventArgs, DrawSeeds, EXPIRE_DRAW_DISCRIMINATOR, ExpireDrawAsyncInput, ExpireDrawInput, ExpireDrawInstruction, ExpireDrawInstructionData, ExpireDrawInstructionDataArgs, FUND_PRIZES_DISCRIMINATOR, FundPrizesAsyncInput, FundPrizesInput, FundPrizesInstruction, FundPrizesInstructionData, FundPrizesInstructionDataArgs, GABOX_ERROR__ARITHMETIC, GABOX_ERROR__INCORRECT_TOKEN_DELTA, GABOX_ERROR__INSOLVENT_INVENTORY, GABOX_ERROR__INVALID_DISTRIBUTION, GABOX_ERROR__INVALID_LAUNCH, GABOX_ERROR__INVALID_QUOTE, GABOX_ERROR__INVALID_VENUE, GABOX_ERROR__JACKPOT_BELOW_ONE_PACK, GABOX_ERROR__NOT_EXPIRED, GABOX_ERROR__PACK_TOO_SMALL, GABOX_ERROR__PRIZE_CAP_CHANGED, GABOX_ERROR__RETRY_TOO_SOON, GABOX_ERROR__RETRY_UNAVAILABLE, GABOX_ERROR__SLIPPAGE_EXCEEDED, GABOX_ERROR__UNFUNDED_EXPECTATION, GABOX_ERROR__UNSUPPORTED_MINT, GABOX_ERROR__WALLET_ACTIVITY_MISMATCH, GABOX_ERROR__ZERO_AMOUNT, GABOX_PROGRAM_ADDRESS, GaboxAccount, GaboxError, GaboxEvent, GaboxInstruction, GaboxPlugin, GaboxPluginAccounts, GaboxPluginInstructions, GaboxPluginPdas, GaboxPluginRequirements, INITIALIZE_POOL_DISCRIMINATOR, InitializePoolAsyncInput, InitializePoolInput, InitializePoolInstruction, InitializePoolInstructionData, InitializePoolInstructionDataArgs, PACK_BOUGHT_EVENT_DISCRIMINATOR, POOL_CREATED_EVENT_DISCRIMINATOR, POOL_DISCRIMINATOR, PRIZES_FUNDED_EVENT_DISCRIMINATOR, PackBoughtEvent, PackBoughtEventArgs, ParsedBuyPackInstruction, ParsedDeliverDrawInstruction, ParsedExpireDrawInstruction, ParsedFundPrizesInstruction, ParsedGaboxInstruction, ParsedInitializePoolInstruction, ParsedRetryDrawInstruction, ParsedSellTokensInstruction, Pool, PoolArgs, PoolCreatedEvent, PoolCreatedEventArgs, PoolSeeds, Prize, PrizeArgs, PrizesFundedEvent, PrizesFundedEventArgs, RANDOMNESS_RETRIED_EVENT_DISCRIMINATOR, RETRY_DRAW_DISCRIMINATOR, RandomnessRetriedEvent, RandomnessRetriedEventArgs, RetryDrawAsyncInput, RetryDrawInput, RetryDrawInstruction, RetryDrawInstructionData, RetryDrawInstructionDataArgs, SELL_TOKENS_DISCRIMINATOR, SellTokensAsyncInput, SellTokensInput, SellTokensInstruction, SellTokensInstructionData, SellTokensInstructionDataArgs, TOKENS_SOLD_EVENT_DISCRIMINATOR, Tier, TierArgs, TokensSoldEvent, TokensSoldEventArgs, WALLET_ACTIVITY_DISCRIMINATOR, WalletActivity, WalletActivityArgs, decodeDraw, decodePool, decodeWalletActivity, fetchAllDraw, fetchAllMaybeDraw, fetchAllMaybePool, fetchAllMaybeWalletActivity, fetchAllPool, fetchAllWalletActivity, fetchDraw, fetchMaybeDraw, fetchMaybePool, fetchMaybeWalletActivity, fetchPool, fetchWalletActivity, findActivityPda, findDrawPda, findIdentityPda, findPoolPda, gaboxProgram, getBuyPackDiscriminatorBytes, getBuyPackInstruction, getBuyPackInstructionAsync, getBuyPackInstructionDataCodec, getBuyPackInstructionDataDecoder, getBuyPackInstructionDataEncoder, getDeliverDrawDiscriminatorBytes, getDeliverDrawInstruction, getDeliverDrawInstructionAsync, getDeliverDrawInstructionDataCodec, getDeliverDrawInstructionDataDecoder, getDeliverDrawInstructionDataEncoder, getDrawCodec, getDrawDecoder, getDrawDiscriminatorBytes, getDrawEncoder, getDrawResolvedEventCodec, getDrawResolvedEventDecoder, getDrawResolvedEventDiscriminatorBytes, getDrawResolvedEventEncoder, getDrawSize, getExpireDrawDiscriminatorBytes, getExpireDrawInstruction, getExpireDrawInstructionAsync, getExpireDrawInstructionDataCodec, getExpireDrawInstructionDataDecoder, getExpireDrawInstructionDataEncoder, getFundPrizesDiscriminatorBytes, getFundPrizesInstruction, getFundPrizesInstructionAsync, getFundPrizesInstructionDataCodec, getFundPrizesInstructionDataDecoder, getFundPrizesInstructionDataEncoder, getGaboxErrorMessage, getInitializePoolDiscriminatorBytes, getInitializePoolInstruction, getInitializePoolInstructionAsync, getInitializePoolInstructionDataCodec, getInitializePoolInstructionDataDecoder, getInitializePoolInstructionDataEncoder, getPackBoughtEventCodec, getPackBoughtEventDecoder, getPackBoughtEventDiscriminatorBytes, getPackBoughtEventEncoder, getPoolCodec, getPoolCreatedEventCodec, getPoolCreatedEventDecoder, getPoolCreatedEventDiscriminatorBytes, getPoolCreatedEventEncoder, getPoolDecoder, getPoolDiscriminatorBytes, getPoolEncoder, getPoolSize, getPrizeCodec, getPrizeDecoder, getPrizeEncoder, getPrizesFundedEventCodec, getPrizesFundedEventDecoder, getPrizesFundedEventDiscriminatorBytes, getPrizesFundedEventEncoder, getRandomnessRetriedEventCodec, getRandomnessRetriedEventDecoder, getRandomnessRetriedEventDiscriminatorBytes, getRandomnessRetriedEventEncoder, getRetryDrawDiscriminatorBytes, getRetryDrawInstruction, getRetryDrawInstructionAsync, getRetryDrawInstructionDataCodec, getRetryDrawInstructionDataDecoder, getRetryDrawInstructionDataEncoder, getSellTokensDiscriminatorBytes, getSellTokensInstruction, getSellTokensInstructionAsync, getSellTokensInstructionDataCodec, getSellTokensInstructionDataDecoder, getSellTokensInstructionDataEncoder, getTierCodec, getTierDecoder, getTierEncoder, getTokensSoldEventCodec, getTokensSoldEventDecoder, getTokensSoldEventDiscriminatorBytes, getTokensSoldEventEncoder, getWalletActivityCodec, getWalletActivityDecoder, getWalletActivityDiscriminatorBytes, getWalletActivityEncoder, getWalletActivitySize, identifyGaboxAccount, identifyGaboxEvent, identifyGaboxInstruction, isGaboxError, parseBuyPackInstruction, parseDeliverDrawInstruction, parseDrawResolvedEvent, parseExpireDrawInstruction, parseFundPrizesInstruction, parseGaboxInstruction, parseInitializePoolInstruction, parsePackBoughtEvent, parsePoolCreatedEvent, parsePrizesFundedEvent, parseRandomnessRetriedEvent, parseRetryDrawInstruction, parseSellTokensInstruction, parseTokensSoldEvent };
|
|
1465
1097
|
}
|
|
1466
1098
|
//#endregion
|
|
1467
1099
|
export { index_d_exports as t };
|