@gabox-labs/sdk 0.2.0 → 0.6.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 +226 -0
- package/README.md +116 -460
- package/dist/generated/index.d.ts +334 -755
- package/dist/generated/index.js +2403 -338
- package/dist/generated/index.js.map +1 -1
- package/dist/index-BDfGvmgF.d.ts +934 -0
- package/dist/index.d.ts +191 -448
- package/dist/index.js +468 -1034
- 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-B-l9V3O-.js +2604 -0
- package/dist/raydium-B-l9V3O-.js.map +1 -0
- package/llms.txt +4 -2
- package/package.json +11 -16
- package/skills/gabox-sdk/SKILL.md +40 -142
- package/skills/gabox-sdk/references/api.md +103 -145
- package/dist/gaboxV2-CV2XltqC.js +0 -3347
- 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,64 +71,46 @@ 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. Always WSOL today. */
|
|
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 WSOL.
|
|
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;
|
|
122
95
|
};
|
|
123
96
|
export type PoolArgs = {
|
|
97
|
+
/**
|
|
98
|
+
* The coin creator. LaunchLab pays its creator fee to this wallet, and
|
|
99
|
+
* the CPMM pool created at graduation names the same wallet.
|
|
100
|
+
*/
|
|
124
101
|
creator: Address;
|
|
125
102
|
mint: Address;
|
|
126
|
-
tokenProgram: Address;
|
|
127
103
|
vault: Address;
|
|
104
|
+
/** The quote asset of both venues. Always WSOL today. */
|
|
105
|
+
quoteMint: Address;
|
|
128
106
|
bump: number;
|
|
129
107
|
/**
|
|
130
|
-
* Fixed token count of one pack, in base units. Always `PACK_TOKENS
|
|
131
|
-
*
|
|
108
|
+
* Fixed token count of one pack, in base units. Always `PACK_TOKENS`.
|
|
109
|
+
* The venue decides what that costs in WSOL.
|
|
132
110
|
*/
|
|
133
111
|
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;
|
|
112
|
+
/** Raw quote token spent in the seed purchase. */
|
|
113
|
+
seedQuoteAmount: number | bigint;
|
|
150
114
|
tiers: Array<TierArgs>;
|
|
151
115
|
nextSeq: number | bigint;
|
|
152
116
|
/** Maximum awards reserved by pending draws. Never creator revenue. */
|
|
@@ -166,112 +130,102 @@ export declare function fetchAllPool(rpc: Parameters<typeof fetchEncodedAccounts
|
|
|
166
130
|
export declare function fetchAllMaybePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Pool>[]>;
|
|
167
131
|
export declare function getPoolSize(): number;
|
|
168
132
|
//#endregion
|
|
169
|
-
//#region src/generated/accounts/
|
|
170
|
-
export declare const
|
|
171
|
-
export declare function
|
|
172
|
-
export type
|
|
133
|
+
//#region src/generated/accounts/walletActivity.d.ts
|
|
134
|
+
export declare const WALLET_ACTIVITY_DISCRIMINATOR: ReadonlyUint8Array;
|
|
135
|
+
export declare function getWalletActivityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
136
|
+
export type WalletActivity = {
|
|
173
137
|
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;
|
|
138
|
+
wallet: Address;
|
|
206
139
|
bump: number;
|
|
140
|
+
/** Packs this wallet bought, across every pool. */
|
|
141
|
+
packsBought: bigint;
|
|
142
|
+
/**
|
|
143
|
+
* Lamports this wallet paid for packs in SOL-quoted pools: what the
|
|
144
|
+
* venue charged in WSOL, which is SOL. Gabox charges no fee. Gabox's own
|
|
145
|
+
* rent (draw, activity, the token ATA), VRF fees, and buys in a non-SOL
|
|
146
|
+
* quote asset add nothing here.
|
|
147
|
+
*/
|
|
148
|
+
nativeSpent: bigint;
|
|
149
|
+
/**
|
|
150
|
+
* Reserved for future fields. A layout change that needs more than
|
|
151
|
+
* this still needs a new seed prefix, since this account has no
|
|
152
|
+
* close instruction and old accounts cannot be dropped.
|
|
153
|
+
*/
|
|
154
|
+
reserved: ReadonlyUint8Array;
|
|
207
155
|
};
|
|
208
|
-
export type
|
|
209
|
-
|
|
210
|
-
referrer: Address;
|
|
156
|
+
export type WalletActivityArgs = {
|
|
157
|
+
wallet: Address;
|
|
211
158
|
bump: number;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
159
|
+
/** Packs this wallet bought, across every pool. */
|
|
160
|
+
packsBought: number | bigint;
|
|
161
|
+
/**
|
|
162
|
+
* Lamports this wallet paid for packs in SOL-quoted pools: what the
|
|
163
|
+
* venue charged in WSOL, which is SOL. Gabox charges no fee. Gabox's own
|
|
164
|
+
* rent (draw, activity, the token ATA), VRF fees, and buys in a non-SOL
|
|
165
|
+
* quote asset add nothing here.
|
|
166
|
+
*/
|
|
167
|
+
nativeSpent: number | bigint;
|
|
168
|
+
/**
|
|
169
|
+
* Reserved for future fields. A layout change that needs more than
|
|
170
|
+
* this still needs a new seed prefix, since this account has no
|
|
171
|
+
* close instruction and old accounts cannot be dropped.
|
|
172
|
+
*/
|
|
173
|
+
reserved: ReadonlyUint8Array;
|
|
174
|
+
};
|
|
175
|
+
/** Gets the encoder for {@link WalletActivityArgs} account data. */
|
|
176
|
+
export declare function getWalletActivityEncoder(): FixedSizeEncoder<WalletActivityArgs>;
|
|
177
|
+
/** Gets the decoder for {@link WalletActivity} account data. */
|
|
178
|
+
export declare function getWalletActivityDecoder(): FixedSizeDecoder<WalletActivity>;
|
|
179
|
+
/** Gets the codec for {@link WalletActivity} account data. */
|
|
180
|
+
export declare function getWalletActivityCodec(): FixedSizeCodec<WalletActivityArgs, WalletActivity>;
|
|
181
|
+
export declare function decodeWalletActivity<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<WalletActivity, TAddress>;
|
|
182
|
+
export declare function decodeWalletActivity<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<WalletActivity, TAddress>;
|
|
183
|
+
export declare function fetchWalletActivity<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<WalletActivity, TAddress>>;
|
|
184
|
+
export declare function fetchMaybeWalletActivity<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<WalletActivity, TAddress>>;
|
|
185
|
+
export declare function fetchAllWalletActivity(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<WalletActivity>[]>;
|
|
186
|
+
export declare function fetchAllMaybeWalletActivity(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<WalletActivity>[]>;
|
|
187
|
+
export declare function getWalletActivitySize(): number;
|
|
226
188
|
//#endregion
|
|
227
|
-
//#region src/generated/errors/
|
|
189
|
+
//#region src/generated/errors/gabox.d.ts
|
|
228
190
|
/** Arithmetic: Arithmetic overflow or inconsistent accounting */
|
|
229
|
-
export declare const
|
|
191
|
+
export declare const GABOX_ERROR__ARITHMETIC = 6000;
|
|
230
192
|
/** InvalidDistribution: Invalid prize distribution */
|
|
231
|
-
export declare const
|
|
193
|
+
export declare const GABOX_ERROR__INVALID_DISTRIBUTION = 6001;
|
|
232
194
|
/** UnfundedExpectation: Expected token award exceeds tokens purchased */
|
|
233
|
-
export declare const
|
|
234
|
-
/** UnsupportedMint: Mint must have no mint
|
|
235
|
-
export declare const
|
|
195
|
+
export declare const GABOX_ERROR__UNFUNDED_EXPECTATION = 6002;
|
|
196
|
+
/** UnsupportedMint: Mint must have 6 decimals and no mint or freeze authority */
|
|
197
|
+
export declare const GABOX_ERROR__UNSUPPORTED_MINT = 6003;
|
|
236
198
|
/** InsolventInventory: Prize inventory does not cover reservations */
|
|
237
|
-
export declare const
|
|
199
|
+
export declare const GABOX_ERROR__INSOLVENT_INVENTORY = 6004;
|
|
238
200
|
/** PrizeCapChanged: Top prize is below the signed minimum; refresh the offer */
|
|
239
|
-
export declare const
|
|
201
|
+
export declare const GABOX_ERROR__PRIZE_CAP_CHANGED = 6005;
|
|
240
202
|
/** PackTooSmall: A pack pays zero tokens on some tier */
|
|
241
|
-
export declare const
|
|
203
|
+
export declare const GABOX_ERROR__PACK_TOO_SMALL = 6006;
|
|
242
204
|
/** JackpotBelowOnePack: The largest tier must pay at least one pack */
|
|
243
|
-
export declare const
|
|
205
|
+
export declare const GABOX_ERROR__JACKPOT_BELOW_ONE_PACK = 6007;
|
|
244
206
|
/** InvalidVenue: Incorrect trade program, account order, or token binding */
|
|
245
|
-
export declare const
|
|
207
|
+
export declare const GABOX_ERROR__INVALID_VENUE = 6008;
|
|
246
208
|
/** IncorrectTokenDelta: Trade did not move the exact token amount */
|
|
247
|
-
export declare const
|
|
209
|
+
export declare const GABOX_ERROR__INCORRECT_TOKEN_DELTA = 6009;
|
|
248
210
|
/** 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;
|
|
211
|
+
export declare const GABOX_ERROR__SLIPPAGE_EXCEEDED = 6010;
|
|
254
212
|
/** RetryTooSoon: Retry interval has not elapsed */
|
|
255
|
-
export declare const
|
|
213
|
+
export declare const GABOX_ERROR__RETRY_TOO_SOON = 6011;
|
|
256
214
|
/** RetryUnavailable: Retry limit reached or draw expired */
|
|
257
|
-
export declare const
|
|
215
|
+
export declare const GABOX_ERROR__RETRY_UNAVAILABLE = 6012;
|
|
258
216
|
/** NotExpired: Oracle timeout has not elapsed */
|
|
259
|
-
export declare const
|
|
217
|
+
export declare const GABOX_ERROR__NOT_EXPIRED = 6013;
|
|
260
218
|
/** 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: {
|
|
219
|
+
export declare const GABOX_ERROR__ZERO_AMOUNT = 6014;
|
|
220
|
+
/** InvalidLaunch: LaunchLab create instruction is malformed or missing before this instruction */
|
|
221
|
+
export declare const GABOX_ERROR__INVALID_LAUNCH = 6015;
|
|
222
|
+
/** InvalidQuote: Quote mint or quote token program is unsupported */
|
|
223
|
+
export declare const GABOX_ERROR__INVALID_QUOTE = 6016;
|
|
224
|
+
/** WalletActivityMismatch: Wallet activity account belongs to a different wallet */
|
|
225
|
+
export declare const GABOX_ERROR__WALLET_ACTIVITY_MISMATCH = 6017;
|
|
226
|
+
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;
|
|
227
|
+
export declare function getGaboxErrorMessage(code: GaboxError): string;
|
|
228
|
+
export declare function isGaboxError<TProgramErrorCode extends GaboxError>(error: unknown, transactionMessage: {
|
|
275
229
|
instructions: Record<number, {
|
|
276
230
|
programAddress: Address;
|
|
277
231
|
}>;
|
|
@@ -317,20 +271,14 @@ export type PackBoughtEvent = {
|
|
|
317
271
|
seq: bigint;
|
|
318
272
|
purchaser: Address;
|
|
319
273
|
venue: Address;
|
|
320
|
-
|
|
274
|
+
quoteMint: Address;
|
|
321
275
|
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;
|
|
276
|
+
/** Quote token the venue charged for the pack. */
|
|
277
|
+
quoteDebit: bigint;
|
|
278
|
+
/** Lamports the venue call itself spent, which is venue account rent. */
|
|
279
|
+
nativeDebit: bigint;
|
|
280
|
+
vrfNativeDebit: bigint;
|
|
281
|
+
totalNativeDebit: bigint;
|
|
334
282
|
prizes: Array<Prize>;
|
|
335
283
|
};
|
|
336
284
|
export type PackBoughtEventArgs = {
|
|
@@ -338,20 +286,14 @@ export type PackBoughtEventArgs = {
|
|
|
338
286
|
seq: number | bigint;
|
|
339
287
|
purchaser: Address;
|
|
340
288
|
venue: Address;
|
|
341
|
-
|
|
289
|
+
quoteMint: Address;
|
|
342
290
|
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;
|
|
291
|
+
/** Quote token the venue charged for the pack. */
|
|
292
|
+
quoteDebit: number | bigint;
|
|
293
|
+
/** Lamports the venue call itself spent, which is venue account rent. */
|
|
294
|
+
nativeDebit: number | bigint;
|
|
295
|
+
vrfNativeDebit: number | bigint;
|
|
296
|
+
totalNativeDebit: number | bigint;
|
|
355
297
|
prizes: Array<PrizeArgs>;
|
|
356
298
|
};
|
|
357
299
|
/** Gets the encoder for {@link PackBoughtEventArgs} event data. */
|
|
@@ -371,24 +313,28 @@ export type PoolCreatedEvent = {
|
|
|
371
313
|
mint: Address;
|
|
372
314
|
creator: Address;
|
|
373
315
|
packTokens: bigint;
|
|
374
|
-
feeBps: number;
|
|
375
316
|
tiers: Array<Tier>;
|
|
376
|
-
/** Tokens the creator donated at creation. Nobody can withdraw them. */
|
|
377
317
|
seedTokens: bigint;
|
|
378
|
-
|
|
379
|
-
|
|
318
|
+
extraSeedTokens: bigint;
|
|
319
|
+
quoteMint: Address;
|
|
320
|
+
/** Quote token the seed buy spent. */
|
|
321
|
+
seedQuoteAmount: bigint;
|
|
322
|
+
/** Lamports the seed buy spent, which is venue account rent, not price. */
|
|
323
|
+
seedNativeDebit: bigint;
|
|
380
324
|
};
|
|
381
325
|
export type PoolCreatedEventArgs = {
|
|
382
326
|
pool: Address;
|
|
383
327
|
mint: Address;
|
|
384
328
|
creator: Address;
|
|
385
329
|
packTokens: number | bigint;
|
|
386
|
-
feeBps: number;
|
|
387
330
|
tiers: Array<TierArgs>;
|
|
388
|
-
/** Tokens the creator donated at creation. Nobody can withdraw them. */
|
|
389
331
|
seedTokens: number | bigint;
|
|
390
|
-
|
|
391
|
-
|
|
332
|
+
extraSeedTokens: number | bigint;
|
|
333
|
+
quoteMint: Address;
|
|
334
|
+
/** Quote token the seed buy spent. */
|
|
335
|
+
seedQuoteAmount: number | bigint;
|
|
336
|
+
/** Lamports the seed buy spent, which is venue account rent, not price. */
|
|
337
|
+
seedNativeDebit: number | bigint;
|
|
392
338
|
};
|
|
393
339
|
/** Gets the encoder for {@link PoolCreatedEventArgs} event data. */
|
|
394
340
|
export declare function getPoolCreatedEventEncoder(): FixedSizeEncoder<PoolCreatedEventArgs>;
|
|
@@ -399,32 +345,6 @@ export declare function getPoolCreatedEventCodec(): FixedSizeCodec<PoolCreatedEv
|
|
|
399
345
|
/** Parses the provided bytes into {@link PoolCreatedEvent} event data. */
|
|
400
346
|
export declare function parsePoolCreatedEvent(data: ReadonlyUint8Array | Uint8Array): PoolCreatedEvent;
|
|
401
347
|
//#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
348
|
//#region src/generated/events/prizesFunded.d.ts
|
|
429
349
|
export declare const PRIZES_FUNDED_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
430
350
|
export declare function getPrizesFundedEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -469,45 +389,6 @@ export declare function getRandomnessRetriedEventCodec(): FixedSizeCodec<Randomn
|
|
|
469
389
|
/** Parses the provided bytes into {@link RandomnessRetriedEvent} event data. */
|
|
470
390
|
export declare function parseRandomnessRetriedEvent(data: ReadonlyUint8Array | Uint8Array): RandomnessRetriedEvent;
|
|
471
391
|
//#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
392
|
//#region src/generated/events/tokensSold.d.ts
|
|
512
393
|
export declare const TOKENS_SOLD_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
|
|
513
394
|
export declare function getTokensSoldEventDiscriminatorBytes(): ReadonlyUint8Array;
|
|
@@ -515,21 +396,19 @@ export type TokensSoldEvent = {
|
|
|
515
396
|
pool: Address;
|
|
516
397
|
seller: Address;
|
|
517
398
|
venue: Address;
|
|
399
|
+
quoteMint: Address;
|
|
518
400
|
amount: bigint;
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
/** The protocol's 1% of `proceeds`, SOL plus WSOL. */
|
|
522
|
-
protocolFee: bigint;
|
|
401
|
+
quoteProceeds: bigint;
|
|
402
|
+
nativeDebit: bigint;
|
|
523
403
|
};
|
|
524
404
|
export type TokensSoldEventArgs = {
|
|
525
405
|
pool: Address;
|
|
526
406
|
seller: Address;
|
|
527
407
|
venue: Address;
|
|
408
|
+
quoteMint: Address;
|
|
528
409
|
amount: number | bigint;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
/** The protocol's 1% of `proceeds`, SOL plus WSOL. */
|
|
532
|
-
protocolFee: number | bigint;
|
|
410
|
+
quoteProceeds: number | bigint;
|
|
411
|
+
nativeDebit: number | bigint;
|
|
533
412
|
};
|
|
534
413
|
/** Gets the encoder for {@link TokensSoldEventArgs} event data. */
|
|
535
414
|
export declare function getTokensSoldEventEncoder(): FixedSizeEncoder<TokensSoldEventArgs>;
|
|
@@ -540,12 +419,11 @@ export declare function getTokensSoldEventCodec(): FixedSizeCodec<TokensSoldEven
|
|
|
540
419
|
/** Parses the provided bytes into {@link TokensSoldEvent} event data. */
|
|
541
420
|
export declare function parseTokensSoldEvent(data: ReadonlyUint8Array | Uint8Array): TokensSoldEvent;
|
|
542
421
|
//#endregion
|
|
543
|
-
//#region src/generated/pdas/
|
|
544
|
-
export type
|
|
545
|
-
|
|
546
|
-
referrer: Address;
|
|
422
|
+
//#region src/generated/pdas/activity.d.ts
|
|
423
|
+
export type ActivitySeeds = {
|
|
424
|
+
purchaser: Address;
|
|
547
425
|
};
|
|
548
|
-
export declare function
|
|
426
|
+
export declare function findActivityPda(seeds: ActivitySeeds, config?: {
|
|
549
427
|
programAddress?: Address | undefined;
|
|
550
428
|
}): Promise<ProgramDerivedAddress>;
|
|
551
429
|
//#endregion
|
|
@@ -563,14 +441,6 @@ export declare function findIdentityPda(config?: {
|
|
|
563
441
|
programAddress?: Address | undefined;
|
|
564
442
|
}): Promise<ProgramDerivedAddress>;
|
|
565
443
|
//#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
444
|
//#region src/generated/pdas/pool.d.ts
|
|
575
445
|
export type PoolSeeds = {
|
|
576
446
|
mint: Address;
|
|
@@ -579,204 +449,123 @@ export declare function findPoolPda(seeds: PoolSeeds, config?: {
|
|
|
579
449
|
programAddress?: Address | undefined;
|
|
580
450
|
}): Promise<ProgramDerivedAddress>;
|
|
581
451
|
//#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 {
|
|
452
|
+
//#region src/generated/programs/gabox.d.ts
|
|
453
|
+
export declare const GABOX_PROGRAM_ADDRESS: Address<"GaBoxR9nYcK1zeu8EvSJVHV3SrYpCFmvbh2MLgobMcUA">;
|
|
454
|
+
export declare enum GaboxAccount {
|
|
602
455
|
Draw = 0,
|
|
603
456
|
Pool = 1,
|
|
604
|
-
|
|
605
|
-
ReferralLink = 3
|
|
457
|
+
WalletActivity = 2
|
|
606
458
|
}
|
|
607
|
-
export declare function
|
|
459
|
+
export declare function identifyGaboxAccount(account: {
|
|
608
460
|
data: ReadonlyUint8Array;
|
|
609
|
-
} | ReadonlyUint8Array):
|
|
610
|
-
export declare enum
|
|
461
|
+
} | ReadonlyUint8Array): GaboxAccount;
|
|
462
|
+
export declare enum GaboxEvent {
|
|
611
463
|
DrawResolved = 0,
|
|
612
464
|
PackBought = 1,
|
|
613
465
|
PoolCreated = 2,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
ReferralBound = 6,
|
|
618
|
-
ReferralClaimed = 7,
|
|
619
|
-
TokensSold = 8
|
|
466
|
+
PrizesFunded = 3,
|
|
467
|
+
RandomnessRetried = 4,
|
|
468
|
+
TokensSold = 5
|
|
620
469
|
}
|
|
621
|
-
export declare function
|
|
470
|
+
export declare function identifyGaboxEvent(event: {
|
|
622
471
|
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
|
|
472
|
+
} | ReadonlyUint8Array): GaboxEvent;
|
|
473
|
+
export declare enum GaboxInstruction {
|
|
474
|
+
BuyPack = 0,
|
|
475
|
+
DeliverDraw = 1,
|
|
476
|
+
ExpireDraw = 2,
|
|
477
|
+
FundPrizes = 3,
|
|
478
|
+
InitializePool = 4,
|
|
479
|
+
RetryDraw = 5,
|
|
480
|
+
SellTokens = 6
|
|
637
481
|
}
|
|
638
|
-
export declare function
|
|
482
|
+
export declare function identifyGaboxInstruction(instruction: {
|
|
639
483
|
data: ReadonlyUint8Array;
|
|
640
|
-
} | ReadonlyUint8Array):
|
|
641
|
-
export type
|
|
642
|
-
instructionType:
|
|
643
|
-
} & ParsedBindReferrerInstruction<TProgram> | {
|
|
644
|
-
instructionType: GaboxV2Instruction.BuyPack;
|
|
484
|
+
} | ReadonlyUint8Array): GaboxInstruction;
|
|
485
|
+
export type ParsedGaboxInstruction<TProgram extends string = 'GaBoxR9nYcK1zeu8EvSJVHV3SrYpCFmvbh2MLgobMcUA'> = {
|
|
486
|
+
instructionType: GaboxInstruction.BuyPack;
|
|
645
487
|
} & ParsedBuyPackInstruction<TProgram> | {
|
|
646
|
-
instructionType:
|
|
647
|
-
} & ParsedClaimPrizeInstruction<TProgram> | {
|
|
648
|
-
instructionType: GaboxV2Instruction.ClaimReferral;
|
|
649
|
-
} & ParsedClaimReferralInstruction<TProgram> | {
|
|
650
|
-
instructionType: GaboxV2Instruction.DeliverDraw;
|
|
488
|
+
instructionType: GaboxInstruction.DeliverDraw;
|
|
651
489
|
} & ParsedDeliverDrawInstruction<TProgram> | {
|
|
652
|
-
instructionType:
|
|
490
|
+
instructionType: GaboxInstruction.ExpireDraw;
|
|
653
491
|
} & ParsedExpireDrawInstruction<TProgram> | {
|
|
654
|
-
instructionType:
|
|
655
|
-
} & ParsedFulfillDrawInstruction<TProgram> | {
|
|
656
|
-
instructionType: GaboxV2Instruction.FundPrizes;
|
|
492
|
+
instructionType: GaboxInstruction.FundPrizes;
|
|
657
493
|
} & ParsedFundPrizesInstruction<TProgram> | {
|
|
658
|
-
instructionType:
|
|
494
|
+
instructionType: GaboxInstruction.InitializePool;
|
|
659
495
|
} & ParsedInitializePoolInstruction<TProgram> | {
|
|
660
|
-
instructionType:
|
|
496
|
+
instructionType: GaboxInstruction.RetryDraw;
|
|
661
497
|
} & ParsedRetryDrawInstruction<TProgram> | {
|
|
662
|
-
instructionType:
|
|
663
|
-
} & ParsedSellPrizeInstruction<TProgram> | {
|
|
664
|
-
instructionType: GaboxV2Instruction.SellTokens;
|
|
498
|
+
instructionType: GaboxInstruction.SellTokens;
|
|
665
499
|
} & 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
|
|
500
|
+
export declare function parseGaboxInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedGaboxInstruction<TProgram>;
|
|
501
|
+
export type GaboxPlugin = {
|
|
502
|
+
accounts: GaboxPluginAccounts;
|
|
503
|
+
instructions: GaboxPluginInstructions;
|
|
504
|
+
pdas: GaboxPluginPdas;
|
|
505
|
+
identifyAccount: typeof identifyGaboxAccount;
|
|
506
|
+
identifyInstruction: typeof identifyGaboxInstruction;
|
|
507
|
+
parseInstruction: typeof parseGaboxInstruction;
|
|
508
|
+
};
|
|
509
|
+
export type GaboxPluginAccounts = {
|
|
676
510
|
draw: ReturnType<typeof getDrawCodec> & SelfFetchFunctions<DrawArgs, Draw>;
|
|
677
511
|
pool: ReturnType<typeof getPoolCodec> & SelfFetchFunctions<PoolArgs, Pool>;
|
|
678
|
-
|
|
679
|
-
referralLink: ReturnType<typeof getReferralLinkCodec> & SelfFetchFunctions<ReferralLinkArgs, ReferralLink>;
|
|
512
|
+
walletActivity: ReturnType<typeof getWalletActivityCodec> & SelfFetchFunctions<WalletActivityArgs, WalletActivity>;
|
|
680
513
|
};
|
|
681
|
-
export type
|
|
682
|
-
bindReferrer: (input: BindReferrerAsyncInput) => ReturnType<typeof getBindReferrerInstructionAsync> & SelfPlanAndSendFunctions;
|
|
514
|
+
export type GaboxPluginInstructions = {
|
|
683
515
|
buyPack: (input: BuyPackAsyncInput) => ReturnType<typeof getBuyPackInstructionAsync> & SelfPlanAndSendFunctions;
|
|
684
|
-
claimPrize: (input: ClaimPrizeAsyncInput) => ReturnType<typeof getClaimPrizeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
685
|
-
claimReferral: (input: ClaimReferralAsyncInput) => ReturnType<typeof getClaimReferralInstructionAsync> & SelfPlanAndSendFunctions;
|
|
686
516
|
deliverDraw: (input: DeliverDrawAsyncInput) => ReturnType<typeof getDeliverDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
687
517
|
expireDraw: (input: ExpireDrawAsyncInput) => ReturnType<typeof getExpireDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
688
|
-
|
|
689
|
-
fundPrizes: (input: FundPrizesInput) => ReturnType<typeof getFundPrizesInstruction> & SelfPlanAndSendFunctions;
|
|
518
|
+
fundPrizes: (input: FundPrizesAsyncInput) => ReturnType<typeof getFundPrizesInstructionAsync> & SelfPlanAndSendFunctions;
|
|
690
519
|
initializePool: (input: InitializePoolAsyncInput) => ReturnType<typeof getInitializePoolInstructionAsync> & SelfPlanAndSendFunctions;
|
|
691
520
|
retryDraw: (input: MakeOptional<RetryDrawAsyncInput, "payer">) => ReturnType<typeof getRetryDrawInstructionAsync> & SelfPlanAndSendFunctions;
|
|
692
|
-
sellPrize: (input: SellPrizeAsyncInput) => ReturnType<typeof getSellPrizeInstructionAsync> & SelfPlanAndSendFunctions;
|
|
693
521
|
sellTokens: (input: SellTokensAsyncInput) => ReturnType<typeof getSellTokensInstructionAsync> & SelfPlanAndSendFunctions;
|
|
694
522
|
};
|
|
695
|
-
export type
|
|
696
|
-
link: typeof findLinkPda;
|
|
697
|
-
identity: typeof findIdentityPda;
|
|
698
|
-
referralLink: typeof findReferralLinkPda;
|
|
699
|
-
referral: typeof findReferralPda;
|
|
523
|
+
export type GaboxPluginPdas = {
|
|
700
524
|
pool: typeof findPoolPda;
|
|
701
|
-
|
|
525
|
+
activity: typeof findActivityPda;
|
|
526
|
+
identity: typeof findIdentityPda;
|
|
702
527
|
draw: typeof findDrawPda;
|
|
703
528
|
};
|
|
704
|
-
export type
|
|
705
|
-
export declare function
|
|
706
|
-
|
|
529
|
+
export type GaboxPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
530
|
+
export declare function gaboxProgram(): <T extends GaboxPluginRequirements>(client: T) => ExtendedClient<T, {
|
|
531
|
+
gabox: GaboxPlugin;
|
|
707
532
|
}>;
|
|
708
533
|
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
709
534
|
//#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
535
|
//#region src/generated/instructions/buyPack.d.ts
|
|
754
536
|
export declare const BUY_PACK_DISCRIMINATOR: ReadonlyUint8Array;
|
|
755
537
|
export declare function getBuyPackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
756
|
-
export type BuyPackInstruction<TProgram extends string = typeof
|
|
538
|
+
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", 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, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
757
539
|
export type BuyPackInstructionData = {
|
|
758
540
|
discriminator: ReadonlyUint8Array;
|
|
759
541
|
maxQuoteIn: bigint;
|
|
760
542
|
minMaximum: bigint;
|
|
761
|
-
|
|
543
|
+
maxNativeDebit: bigint;
|
|
762
544
|
};
|
|
763
545
|
export type BuyPackInstructionDataArgs = {
|
|
764
546
|
maxQuoteIn: number | bigint;
|
|
765
547
|
minMaximum: number | bigint;
|
|
766
|
-
|
|
548
|
+
maxNativeDebit: number | bigint;
|
|
767
549
|
};
|
|
768
550
|
export declare function getBuyPackInstructionDataEncoder(): FixedSizeEncoder<BuyPackInstructionDataArgs>;
|
|
769
551
|
export declare function getBuyPackInstructionDataDecoder(): FixedSizeDecoder<BuyPackInstructionData>;
|
|
770
552
|
export declare function getBuyPackInstructionDataCodec(): FixedSizeCodec<BuyPackInstructionDataArgs, BuyPackInstructionData>;
|
|
771
|
-
export type BuyPackAsyncInput<TAccountPurchaser extends string = string, TAccountPool extends string = string,
|
|
553
|
+
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, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
772
554
|
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
773
|
-
pool
|
|
774
|
-
creator: Address<TAccountCreator>;
|
|
775
|
-
feeCollector?: Address<TAccountFeeCollector>;
|
|
555
|
+
pool?: Address<TAccountPool>;
|
|
776
556
|
draw: Address<TAccountDraw>;
|
|
557
|
+
/**
|
|
558
|
+
* Rent for this account (when it is first created) is outside
|
|
559
|
+
* `total_native_debit`, the same as `draw`'s rent: Anchor's `init_if_needed`
|
|
560
|
+
* runs before the handler body executes, so `before_native` is already
|
|
561
|
+
* sampled after this account exists.
|
|
562
|
+
*/
|
|
563
|
+
activity?: Address<TAccountActivity>;
|
|
777
564
|
mint: Address<TAccountMint>;
|
|
565
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
778
566
|
vault: Address<TAccountVault>;
|
|
779
567
|
userTokens?: Address<TAccountUserTokens>;
|
|
568
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
780
569
|
venue: Address<TAccountVenue>;
|
|
781
570
|
identity?: Address<TAccountIdentity>;
|
|
782
571
|
queue?: Address<TAccountQueue>;
|
|
@@ -785,24 +574,29 @@ export type BuyPackAsyncInput<TAccountPurchaser extends string = string, TAccoun
|
|
|
785
574
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
786
575
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
787
576
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
788
|
-
referralLink?: Address<TAccountReferralLink>;
|
|
789
|
-
referral?: Address<TAccountReferral>;
|
|
790
577
|
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
791
578
|
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
792
|
-
|
|
579
|
+
maxNativeDebit: BuyPackInstructionDataArgs["maxNativeDebit"];
|
|
793
580
|
};
|
|
794
|
-
export declare function getBuyPackInstructionAsync<TAccountPurchaser extends string, TAccountPool extends string,
|
|
581
|
+
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, 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, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
795
582
|
programAddress?: TProgramAddress;
|
|
796
|
-
}): Promise<BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool,
|
|
797
|
-
export type BuyPackInput<TAccountPurchaser extends string = string, TAccountPool extends string = string,
|
|
583
|
+
}): Promise<BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
584
|
+
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, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
798
585
|
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
799
586
|
pool: Address<TAccountPool>;
|
|
800
|
-
creator: Address<TAccountCreator>;
|
|
801
|
-
feeCollector?: Address<TAccountFeeCollector>;
|
|
802
587
|
draw: Address<TAccountDraw>;
|
|
588
|
+
/**
|
|
589
|
+
* Rent for this account (when it is first created) is outside
|
|
590
|
+
* `total_native_debit`, the same as `draw`'s rent: Anchor's `init_if_needed`
|
|
591
|
+
* runs before the handler body executes, so `before_native` is already
|
|
592
|
+
* sampled after this account exists.
|
|
593
|
+
*/
|
|
594
|
+
activity: Address<TAccountActivity>;
|
|
803
595
|
mint: Address<TAccountMint>;
|
|
596
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
804
597
|
vault: Address<TAccountVault>;
|
|
805
598
|
userTokens: Address<TAccountUserTokens>;
|
|
599
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
806
600
|
venue: Address<TAccountVenue>;
|
|
807
601
|
identity: Address<TAccountIdentity>;
|
|
808
602
|
queue?: Address<TAccountQueue>;
|
|
@@ -811,26 +605,31 @@ export type BuyPackInput<TAccountPurchaser extends string = string, TAccountPool
|
|
|
811
605
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
812
606
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
813
607
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
814
|
-
referralLink?: Address<TAccountReferralLink>;
|
|
815
|
-
referral?: Address<TAccountReferral>;
|
|
816
608
|
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
817
609
|
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
818
|
-
|
|
610
|
+
maxNativeDebit: BuyPackInstructionDataArgs["maxNativeDebit"];
|
|
819
611
|
};
|
|
820
|
-
export declare function getBuyPackInstruction<TAccountPurchaser extends string, TAccountPool extends string,
|
|
612
|
+
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, 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, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
821
613
|
programAddress?: TProgramAddress;
|
|
822
|
-
}): BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool,
|
|
823
|
-
export type ParsedBuyPackInstruction<TProgram extends string = typeof
|
|
614
|
+
}): BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
615
|
+
export type ParsedBuyPackInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
824
616
|
programAddress: Address<TProgram>;
|
|
825
617
|
accounts: {
|
|
826
618
|
purchaser: TAccountMetas[0];
|
|
827
619
|
pool: TAccountMetas[1];
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
620
|
+
draw: TAccountMetas[2];
|
|
621
|
+
/**
|
|
622
|
+
* Rent for this account (when it is first created) is outside
|
|
623
|
+
* `total_native_debit`, the same as `draw`'s rent: Anchor's `init_if_needed`
|
|
624
|
+
* runs before the handler body executes, so `before_native` is already
|
|
625
|
+
* sampled after this account exists.
|
|
626
|
+
*/
|
|
627
|
+
activity: TAccountMetas[3];
|
|
628
|
+
mint: TAccountMetas[4];
|
|
629
|
+
quoteMint: TAccountMetas[5];
|
|
832
630
|
vault: TAccountMetas[6];
|
|
833
631
|
userTokens: TAccountMetas[7];
|
|
632
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
834
633
|
venue: TAccountMetas[8];
|
|
835
634
|
identity: TAccountMetas[9];
|
|
836
635
|
queue: TAccountMetas[10];
|
|
@@ -839,114 +638,15 @@ export type ParsedBuyPackInstruction<TProgram extends string = typeof GABOX_V2_P
|
|
|
839
638
|
tokenProgram: TAccountMetas[13];
|
|
840
639
|
associatedTokenProgram: TAccountMetas[14];
|
|
841
640
|
systemProgram: TAccountMetas[15];
|
|
842
|
-
referralLink?: TAccountMetas[16] | undefined;
|
|
843
|
-
referral?: TAccountMetas[17] | undefined;
|
|
844
641
|
};
|
|
845
642
|
data: BuyPackInstructionData;
|
|
846
643
|
};
|
|
847
644
|
export declare function parseBuyPackInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyPackInstruction<TProgram, TAccountMetas>;
|
|
848
645
|
//#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
646
|
//#region src/generated/instructions/deliverDraw.d.ts
|
|
947
647
|
export declare const DELIVER_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
948
648
|
export declare function getDeliverDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
949
|
-
export type DeliverDrawInstruction<TProgram extends string = typeof
|
|
649
|
+
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
650
|
export type DeliverDrawInstructionData = {
|
|
951
651
|
discriminator: ReadonlyUint8Array;
|
|
952
652
|
randomness: ReadonlyUint8Array;
|
|
@@ -971,7 +671,7 @@ export type DeliverDrawAsyncInput<TAccountOracleIdentity extends string = string
|
|
|
971
671
|
randomness: DeliverDrawInstructionDataArgs["randomness"];
|
|
972
672
|
seq: DeliverDrawInstructionDataArgs["seq"];
|
|
973
673
|
};
|
|
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
|
|
674
|
+
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
675
|
programAddress?: TProgramAddress;
|
|
976
676
|
}): Promise<DeliverDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>>;
|
|
977
677
|
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 +686,10 @@ export type DeliverDrawInput<TAccountOracleIdentity extends string = string, TAc
|
|
|
986
686
|
randomness: DeliverDrawInstructionDataArgs["randomness"];
|
|
987
687
|
seq: DeliverDrawInstructionDataArgs["seq"];
|
|
988
688
|
};
|
|
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
|
|
689
|
+
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
690
|
programAddress?: TProgramAddress;
|
|
991
691
|
}): DeliverDrawInstruction<TProgramAddress, TAccountOracleIdentity, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>;
|
|
992
|
-
export type ParsedDeliverDrawInstruction<TProgram extends string = typeof
|
|
692
|
+
export type ParsedDeliverDrawInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
993
693
|
programAddress: Address<TProgram>;
|
|
994
694
|
accounts: {
|
|
995
695
|
oracleIdentity: TAccountMetas[0];
|
|
@@ -1008,7 +708,7 @@ export declare function parseDeliverDrawInstruction<TProgram extends string, TAc
|
|
|
1008
708
|
//#region src/generated/instructions/expireDraw.d.ts
|
|
1009
709
|
export declare const EXPIRE_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1010
710
|
export declare function getExpireDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1011
|
-
export type ExpireDrawInstruction<TProgram extends string = typeof
|
|
711
|
+
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
712
|
export type ExpireDrawInstructionData = {
|
|
1013
713
|
discriminator: ReadonlyUint8Array;
|
|
1014
714
|
};
|
|
@@ -1025,7 +725,7 @@ export type ExpireDrawAsyncInput<TAccountPool extends string = string, TAccountD
|
|
|
1025
725
|
userTokens?: Address<TAccountUserTokens>;
|
|
1026
726
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1027
727
|
};
|
|
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
|
|
728
|
+
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
729
|
programAddress?: TProgramAddress;
|
|
1030
730
|
}): Promise<ExpireDrawInstruction<TProgramAddress, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>>;
|
|
1031
731
|
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 +737,10 @@ export type ExpireDrawInput<TAccountPool extends string = string, TAccountDraw e
|
|
|
1037
737
|
userTokens: Address<TAccountUserTokens>;
|
|
1038
738
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1039
739
|
};
|
|
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
|
|
740
|
+
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
741
|
programAddress?: TProgramAddress;
|
|
1042
742
|
}): ExpireDrawInstruction<TProgramAddress, TAccountPool, TAccountDraw, TAccountPurchaser, TAccountMint, TAccountVault, TAccountUserTokens, TAccountTokenProgram>;
|
|
1043
|
-
export type ParsedExpireDrawInstruction<TProgram extends string = typeof
|
|
743
|
+
export type ParsedExpireDrawInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1044
744
|
programAddress: Address<TProgram>;
|
|
1045
745
|
accounts: {
|
|
1046
746
|
pool: TAccountMetas[0];
|
|
@@ -1055,57 +755,10 @@ export type ParsedExpireDrawInstruction<TProgram extends string = typeof GABOX_V
|
|
|
1055
755
|
};
|
|
1056
756
|
export declare function parseExpireDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedExpireDrawInstruction<TProgram, TAccountMetas>;
|
|
1057
757
|
//#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
758
|
//#region src/generated/instructions/fundPrizes.d.ts
|
|
1106
759
|
export declare const FUND_PRIZES_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1107
760
|
export declare function getFundPrizesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1108
|
-
export type FundPrizesInstruction<TProgram extends string = typeof
|
|
761
|
+
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
762
|
export type FundPrizesInstructionData = {
|
|
1110
763
|
discriminator: ReadonlyUint8Array;
|
|
1111
764
|
amount: bigint;
|
|
@@ -1116,6 +769,18 @@ export type FundPrizesInstructionDataArgs = {
|
|
|
1116
769
|
export declare function getFundPrizesInstructionDataEncoder(): FixedSizeEncoder<FundPrizesInstructionDataArgs>;
|
|
1117
770
|
export declare function getFundPrizesInstructionDataDecoder(): FixedSizeDecoder<FundPrizesInstructionData>;
|
|
1118
771
|
export declare function getFundPrizesInstructionDataCodec(): FixedSizeCodec<FundPrizesInstructionDataArgs, FundPrizesInstructionData>;
|
|
772
|
+
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> = {
|
|
773
|
+
funder: TransactionSigner<TAccountFunder>;
|
|
774
|
+
pool?: Address<TAccountPool>;
|
|
775
|
+
mint: Address<TAccountMint>;
|
|
776
|
+
source: Address<TAccountSource>;
|
|
777
|
+
vault: Address<TAccountVault>;
|
|
778
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
779
|
+
amount: FundPrizesInstructionDataArgs["amount"];
|
|
780
|
+
};
|
|
781
|
+
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?: {
|
|
782
|
+
programAddress?: TProgramAddress;
|
|
783
|
+
}): Promise<FundPrizesInstruction<TProgramAddress, TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>>;
|
|
1119
784
|
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
785
|
funder: TransactionSigner<TAccountFunder>;
|
|
1121
786
|
pool: Address<TAccountPool>;
|
|
@@ -1125,10 +790,10 @@ export type FundPrizesInput<TAccountFunder extends string = string, TAccountPool
|
|
|
1125
790
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1126
791
|
amount: FundPrizesInstructionDataArgs["amount"];
|
|
1127
792
|
};
|
|
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
|
|
793
|
+
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
794
|
programAddress?: TProgramAddress;
|
|
1130
795
|
}): FundPrizesInstruction<TProgramAddress, TAccountFunder, TAccountPool, TAccountMint, TAccountSource, TAccountVault, TAccountTokenProgram>;
|
|
1131
|
-
export type ParsedFundPrizesInstruction<TProgram extends string = typeof
|
|
796
|
+
export type ParsedFundPrizesInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1132
797
|
programAddress: Address<TProgram>;
|
|
1133
798
|
accounts: {
|
|
1134
799
|
funder: TAccountMetas[0];
|
|
@@ -1145,94 +810,80 @@ export declare function parseFundPrizesInstruction<TProgram extends string, TAcc
|
|
|
1145
810
|
//#region src/generated/instructions/initializePool.d.ts
|
|
1146
811
|
export declare const INITIALIZE_POOL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1147
812
|
export declare function getInitializePoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1148
|
-
export type InitializePoolInstruction<TProgram extends string = typeof
|
|
813
|
+
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, TAccountCreatorTokens extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = "DRay6fNdQ5J82H7xV6uq2aV3mNrUZ1J4PgSKsWgptcm6", TAccountInstructions extends string | AccountMeta<string> = "Sysvar1nstructions1111111111111111111111111", TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountCreatorTokens extends string ? WritableAccount<TAccountCreatorTokens> : TAccountCreatorTokens, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountInstructions extends string ? ReadonlyAccount<TAccountInstructions> : TAccountInstructions, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
1149
814
|
export type InitializePoolInstructionData = {
|
|
1150
815
|
discriminator: ReadonlyUint8Array;
|
|
1151
|
-
feeBps: number;
|
|
1152
816
|
tiers: Array<Tier>;
|
|
1153
|
-
|
|
817
|
+
maxSeedQuoteIn: bigint;
|
|
818
|
+
maxSeedNativeDebit: bigint;
|
|
819
|
+
extraSeedTokens: bigint;
|
|
1154
820
|
};
|
|
1155
821
|
export type InitializePoolInstructionDataArgs = {
|
|
1156
|
-
feeBps: number;
|
|
1157
822
|
tiers: Array<TierArgs>;
|
|
1158
|
-
|
|
823
|
+
maxSeedQuoteIn: number | bigint;
|
|
824
|
+
maxSeedNativeDebit: number | bigint;
|
|
825
|
+
extraSeedTokens: number | bigint;
|
|
1159
826
|
};
|
|
1160
827
|
export declare function getInitializePoolInstructionDataEncoder(): FixedSizeEncoder<InitializePoolInstructionDataArgs>;
|
|
1161
828
|
export declare function getInitializePoolInstructionDataDecoder(): FixedSizeDecoder<InitializePoolInstructionData>;
|
|
1162
829
|
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> = {
|
|
830
|
+
export type InitializePoolAsyncInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1164
831
|
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
832
|
pool?: Address<TAccountPool>;
|
|
1170
833
|
mint: Address<TAccountMint>;
|
|
1171
|
-
|
|
1172
|
-
* The creator's own ATA. The seed is bought into it, then moved to the
|
|
1173
|
-
* vault. Always required, even for a 1x table that needs no seed.
|
|
1174
|
-
*/
|
|
834
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
1175
835
|
creatorTokens?: Address<TAccountCreatorTokens>;
|
|
1176
836
|
vault?: Address<TAccountVault>;
|
|
837
|
+
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
1177
838
|
venue?: Address<TAccountVenue>;
|
|
1178
839
|
instructions?: Address<TAccountInstructions>;
|
|
1179
840
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1180
841
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1181
842
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1182
|
-
feeBps: InitializePoolInstructionDataArgs["feeBps"];
|
|
1183
843
|
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
1184
|
-
|
|
844
|
+
maxSeedQuoteIn: InitializePoolInstructionDataArgs["maxSeedQuoteIn"];
|
|
845
|
+
maxSeedNativeDebit: InitializePoolInstructionDataArgs["maxSeedNativeDebit"];
|
|
846
|
+
extraSeedTokens: InitializePoolInstructionDataArgs["extraSeedTokens"];
|
|
1185
847
|
};
|
|
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
|
|
848
|
+
export declare function getInitializePoolInstructionAsync<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: InitializePoolAsyncInput<TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1187
849
|
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> = {
|
|
850
|
+
}): Promise<InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
851
|
+
export type InitializePoolInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
1190
852
|
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
853
|
pool: Address<TAccountPool>;
|
|
1196
854
|
mint: Address<TAccountMint>;
|
|
1197
|
-
|
|
1198
|
-
* The creator's own ATA. The seed is bought into it, then moved to the
|
|
1199
|
-
* vault. Always required, even for a 1x table that needs no seed.
|
|
1200
|
-
*/
|
|
855
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
1201
856
|
creatorTokens: Address<TAccountCreatorTokens>;
|
|
1202
857
|
vault: Address<TAccountVault>;
|
|
858
|
+
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
1203
859
|
venue?: Address<TAccountVenue>;
|
|
1204
860
|
instructions?: Address<TAccountInstructions>;
|
|
1205
861
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1206
862
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
1207
863
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1208
|
-
feeBps: InitializePoolInstructionDataArgs["feeBps"];
|
|
1209
864
|
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
1210
|
-
|
|
865
|
+
maxSeedQuoteIn: InitializePoolInstructionDataArgs["maxSeedQuoteIn"];
|
|
866
|
+
maxSeedNativeDebit: InitializePoolInstructionDataArgs["maxSeedNativeDebit"];
|
|
867
|
+
extraSeedTokens: InitializePoolInstructionDataArgs["extraSeedTokens"];
|
|
1211
868
|
};
|
|
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
|
|
869
|
+
export declare function getInitializePoolInstruction<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: InitializePoolInput<TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
1213
870
|
programAddress?: TProgramAddress;
|
|
1214
|
-
}): InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
1215
|
-
export type ParsedInitializePoolInstruction<TProgram extends string = typeof
|
|
871
|
+
}): InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
872
|
+
export type ParsedInitializePoolInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1216
873
|
programAddress: Address<TProgram>;
|
|
1217
874
|
accounts: {
|
|
1218
875
|
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
876
|
pool: TAccountMetas[1];
|
|
1224
877
|
mint: TAccountMetas[2];
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
associatedTokenProgram: TAccountMetas[8];
|
|
1235
|
-
systemProgram: TAccountMetas[9];
|
|
878
|
+
quoteMint: TAccountMetas[3];
|
|
879
|
+
creatorTokens: TAccountMetas[4];
|
|
880
|
+
vault: TAccountMetas[5];
|
|
881
|
+
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
882
|
+
venue: TAccountMetas[6];
|
|
883
|
+
instructions: TAccountMetas[7];
|
|
884
|
+
tokenProgram: TAccountMetas[8];
|
|
885
|
+
associatedTokenProgram: TAccountMetas[9];
|
|
886
|
+
systemProgram: TAccountMetas[10];
|
|
1236
887
|
};
|
|
1237
888
|
data: InitializePoolInstructionData;
|
|
1238
889
|
};
|
|
@@ -1241,7 +892,7 @@ export declare function parseInitializePoolInstruction<TProgram extends string,
|
|
|
1241
892
|
//#region src/generated/instructions/retryDraw.d.ts
|
|
1242
893
|
export declare const RETRY_DRAW_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1243
894
|
export declare function getRetryDrawDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1244
|
-
export type RetryDrawInstruction<TProgram extends string = typeof
|
|
895
|
+
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
896
|
export type RetryDrawInstructionData = {
|
|
1246
897
|
discriminator: ReadonlyUint8Array;
|
|
1247
898
|
maxVrfDebit: bigint;
|
|
@@ -1254,6 +905,15 @@ export declare function getRetryDrawInstructionDataDecoder(): FixedSizeDecoder<R
|
|
|
1254
905
|
export declare function getRetryDrawInstructionDataCodec(): FixedSizeCodec<RetryDrawInstructionDataArgs, RetryDrawInstructionData>;
|
|
1255
906
|
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
907
|
payer: TransactionSigner<TAccountPayer>;
|
|
908
|
+
/**
|
|
909
|
+
* This account carries no `seeds` constraint, unlike every other
|
|
910
|
+
* instruction. There is no `mint` account here to build the seed from,
|
|
911
|
+
* and none is needed: `draw` names this pool with `has_one`, so the draw
|
|
912
|
+
* always belongs to it, and the account type already proves the Gabox
|
|
913
|
+
* program owns it. A retry only pays for another randomness request. The
|
|
914
|
+
* callback lands in `deliver_draw`, which checks the full pool seeds
|
|
915
|
+
* before any tokens move.
|
|
916
|
+
*/
|
|
1257
917
|
pool: Address<TAccountPool>;
|
|
1258
918
|
draw: Address<TAccountDraw>;
|
|
1259
919
|
identity?: Address<TAccountIdentity>;
|
|
@@ -1263,11 +923,20 @@ export type RetryDrawAsyncInput<TAccountPayer extends string = string, TAccountP
|
|
|
1263
923
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1264
924
|
maxVrfDebit: RetryDrawInstructionDataArgs["maxVrfDebit"];
|
|
1265
925
|
};
|
|
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
|
|
926
|
+
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
927
|
programAddress?: TProgramAddress;
|
|
1268
928
|
}): Promise<RetryDrawInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>>;
|
|
1269
929
|
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
930
|
payer: TransactionSigner<TAccountPayer>;
|
|
931
|
+
/**
|
|
932
|
+
* This account carries no `seeds` constraint, unlike every other
|
|
933
|
+
* instruction. There is no `mint` account here to build the seed from,
|
|
934
|
+
* and none is needed: `draw` names this pool with `has_one`, so the draw
|
|
935
|
+
* always belongs to it, and the account type already proves the Gabox
|
|
936
|
+
* program owns it. A retry only pays for another randomness request. The
|
|
937
|
+
* callback lands in `deliver_draw`, which checks the full pool seeds
|
|
938
|
+
* before any tokens move.
|
|
939
|
+
*/
|
|
1271
940
|
pool: Address<TAccountPool>;
|
|
1272
941
|
draw: Address<TAccountDraw>;
|
|
1273
942
|
identity: Address<TAccountIdentity>;
|
|
@@ -1277,13 +946,22 @@ export type RetryDrawInput<TAccountPayer extends string = string, TAccountPool e
|
|
|
1277
946
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
1278
947
|
maxVrfDebit: RetryDrawInstructionDataArgs["maxVrfDebit"];
|
|
1279
948
|
};
|
|
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
|
|
949
|
+
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
950
|
programAddress?: TProgramAddress;
|
|
1282
951
|
}): RetryDrawInstruction<TProgramAddress, TAccountPayer, TAccountPool, TAccountDraw, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountSystemProgram>;
|
|
1283
|
-
export type ParsedRetryDrawInstruction<TProgram extends string = typeof
|
|
952
|
+
export type ParsedRetryDrawInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1284
953
|
programAddress: Address<TProgram>;
|
|
1285
954
|
accounts: {
|
|
1286
955
|
payer: TAccountMetas[0];
|
|
956
|
+
/**
|
|
957
|
+
* This account carries no `seeds` constraint, unlike every other
|
|
958
|
+
* instruction. There is no `mint` account here to build the seed from,
|
|
959
|
+
* and none is needed: `draw` names this pool with `has_one`, so the draw
|
|
960
|
+
* always belongs to it, and the account type already proves the Gabox
|
|
961
|
+
* program owns it. A retry only pays for another randomness request. The
|
|
962
|
+
* callback lands in `deliver_draw`, which checks the full pool seeds
|
|
963
|
+
* before any tokens move.
|
|
964
|
+
*/
|
|
1287
965
|
pool: TAccountMetas[1];
|
|
1288
966
|
draw: TAccountMetas[2];
|
|
1289
967
|
identity: TAccountMetas[3];
|
|
@@ -1296,172 +974,73 @@ export type ParsedRetryDrawInstruction<TProgram extends string = typeof GABOX_V2
|
|
|
1296
974
|
};
|
|
1297
975
|
export declare function parseRetryDrawInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedRetryDrawInstruction<TProgram, TAccountMetas>;
|
|
1298
976
|
//#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
977
|
//#region src/generated/instructions/sellTokens.d.ts
|
|
1379
978
|
export declare const SELL_TOKENS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
1380
979
|
export declare function getSellTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
1381
|
-
export type SellTokensInstruction<TProgram extends string = typeof
|
|
980
|
+
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", 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, ...TRemainingAccounts]>;
|
|
1382
981
|
export type SellTokensInstructionData = {
|
|
1383
982
|
discriminator: ReadonlyUint8Array;
|
|
1384
983
|
amount: bigint;
|
|
1385
984
|
minQuoteOutput: bigint;
|
|
985
|
+
maxNativeDebit: bigint;
|
|
1386
986
|
};
|
|
1387
987
|
export type SellTokensInstructionDataArgs = {
|
|
1388
988
|
amount: number | bigint;
|
|
1389
989
|
minQuoteOutput: number | bigint;
|
|
990
|
+
maxNativeDebit: number | bigint;
|
|
1390
991
|
};
|
|
1391
992
|
export declare function getSellTokensInstructionDataEncoder(): FixedSizeEncoder<SellTokensInstructionDataArgs>;
|
|
1392
993
|
export declare function getSellTokensInstructionDataDecoder(): FixedSizeDecoder<SellTokensInstructionData>;
|
|
1393
994
|
export declare function getSellTokensInstructionDataCodec(): FixedSizeCodec<SellTokensInstructionDataArgs, SellTokensInstructionData>;
|
|
1394
|
-
export type SellTokensAsyncInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string,
|
|
995
|
+
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> = {
|
|
1395
996
|
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>;
|
|
997
|
+
pool?: Address<TAccountPool>;
|
|
1401
998
|
mint: Address<TAccountMint>;
|
|
999
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
1402
1000
|
userTokens?: Address<TAccountUserTokens>;
|
|
1001
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
1403
1002
|
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
1003
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1410
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1411
1004
|
amount: SellTokensInstructionDataArgs["amount"];
|
|
1412
1005
|
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1006
|
+
maxNativeDebit: SellTokensInstructionDataArgs["maxNativeDebit"];
|
|
1413
1007
|
};
|
|
1414
|
-
export declare function getSellTokensInstructionAsync<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string,
|
|
1008
|
+
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, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: SellTokensAsyncInput<TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram>, config?: {
|
|
1415
1009
|
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,
|
|
1010
|
+
}): Promise<SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram>>;
|
|
1011
|
+
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> = {
|
|
1418
1012
|
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
1013
|
pool: Address<TAccountPool>;
|
|
1424
1014
|
mint: Address<TAccountMint>;
|
|
1015
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
1425
1016
|
userTokens: Address<TAccountUserTokens>;
|
|
1017
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
1426
1018
|
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
1019
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1433
|
-
systemProgram?: Address<TAccountSystemProgram>;
|
|
1434
1020
|
amount: SellTokensInstructionDataArgs["amount"];
|
|
1435
1021
|
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1022
|
+
maxNativeDebit: SellTokensInstructionDataArgs["maxNativeDebit"];
|
|
1436
1023
|
};
|
|
1437
|
-
export declare function getSellTokensInstruction<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string,
|
|
1024
|
+
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, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: SellTokensInput<TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram>, config?: {
|
|
1438
1025
|
programAddress?: TProgramAddress;
|
|
1439
|
-
}): SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountUserTokens, TAccountVenue,
|
|
1440
|
-
export type ParsedSellTokensInstruction<TProgram extends string = typeof
|
|
1026
|
+
}): SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram>;
|
|
1027
|
+
export type ParsedSellTokensInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1441
1028
|
programAddress: Address<TProgram>;
|
|
1442
1029
|
accounts: {
|
|
1443
1030
|
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
1031
|
pool: TAccountMetas[1];
|
|
1449
1032
|
mint: TAccountMetas[2];
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
/** Classic SPL Token, the program WSOL lives under. */
|
|
1456
|
-
quoteTokenProgram: TAccountMetas[7];
|
|
1457
|
-
tokenProgram: TAccountMetas[8];
|
|
1458
|
-
systemProgram: TAccountMetas[9];
|
|
1033
|
+
quoteMint: TAccountMetas[3];
|
|
1034
|
+
userTokens: TAccountMetas[4];
|
|
1035
|
+
/** LaunchLab before graduation, CPMM after it. */
|
|
1036
|
+
venue: TAccountMetas[5];
|
|
1037
|
+
tokenProgram: TAccountMetas[6];
|
|
1459
1038
|
};
|
|
1460
1039
|
data: SellTokensInstructionData;
|
|
1461
1040
|
};
|
|
1462
1041
|
export declare function parseSellTokensInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellTokensInstruction<TProgram, TAccountMetas>;
|
|
1463
1042
|
declare namespace index_d_exports {
|
|
1464
|
-
export {
|
|
1043
|
+
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
1044
|
}
|
|
1466
1045
|
//#endregion
|
|
1467
1046
|
export { index_d_exports as t };
|