@gabox-labs/sdk 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +84 -0
- package/README.md +113 -34
- package/dist/gabox-DGTCh34U.js +2338 -0
- package/dist/gabox-DGTCh34U.js.map +1 -0
- package/dist/generated/index.d.ts +89 -36
- package/dist/generated/index.js +2 -2289
- package/dist/generated/index.js.map +1 -1
- package/dist/{index-BDfGvmgF.d.ts → index-C4at2cZ_.d.ts} +304 -54
- package/dist/index.d.ts +333 -34
- package/dist/index.js +884 -506
- package/dist/index.js.map +1 -1
- package/dist/raydium/index.d.ts +2 -2
- package/dist/raydium/index.js +2 -2
- package/dist/{raydium-B-l9V3O-.js → raydium-CU-tZzIk.js} +869 -191
- package/dist/raydium-CU-tZzIk.js.map +1 -0
- package/llms.txt +4 -2
- package/package.json +1 -1
- package/skills/gabox-sdk/SKILL.md +27 -14
- package/skills/gabox-sdk/references/api.md +78 -26
- package/dist/raydium-B-l9V3O-.js.map +0 -1
|
@@ -78,12 +78,12 @@ export type Pool = {
|
|
|
78
78
|
creator: Address;
|
|
79
79
|
mint: Address;
|
|
80
80
|
vault: Address;
|
|
81
|
-
/** The quote asset of both venues
|
|
81
|
+
/** The quote asset of both venues: any mint Raydium enabled on LaunchLab. */
|
|
82
82
|
quoteMint: Address;
|
|
83
83
|
bump: number;
|
|
84
84
|
/**
|
|
85
85
|
* Fixed token count of one pack, in base units. Always `PACK_TOKENS`.
|
|
86
|
-
* The venue decides what that costs in
|
|
86
|
+
* The venue decides what that costs in the quote asset.
|
|
87
87
|
*/
|
|
88
88
|
packTokens: bigint;
|
|
89
89
|
/** Raw quote token spent in the seed purchase. */
|
|
@@ -92,6 +92,19 @@ export type Pool = {
|
|
|
92
92
|
nextSeq: bigint;
|
|
93
93
|
/** Maximum awards reserved by pending draws. Never creator revenue. */
|
|
94
94
|
reserved: bigint;
|
|
95
|
+
/**
|
|
96
|
+
* The LaunchLab global config for this pool's quote mint. Raydium's
|
|
97
|
+
* admin is the only wallet that can create one, so a launch that names
|
|
98
|
+
* it proves Raydium enabled that quote. Both venues check the trade
|
|
99
|
+
* against this stored value.
|
|
100
|
+
*/
|
|
101
|
+
quoteConfig: Address;
|
|
102
|
+
/**
|
|
103
|
+
* The token program that owns the quote mint: classic SPL Token, or
|
|
104
|
+
* Token-2022 with the profile `tokens::validate_quote_mint` accepts.
|
|
105
|
+
* The base coin is always classic SPL Token, so it needs no field.
|
|
106
|
+
*/
|
|
107
|
+
quoteTokenProgram: Address;
|
|
95
108
|
};
|
|
96
109
|
export type PoolArgs = {
|
|
97
110
|
/**
|
|
@@ -101,12 +114,12 @@ export type PoolArgs = {
|
|
|
101
114
|
creator: Address;
|
|
102
115
|
mint: Address;
|
|
103
116
|
vault: Address;
|
|
104
|
-
/** The quote asset of both venues
|
|
117
|
+
/** The quote asset of both venues: any mint Raydium enabled on LaunchLab. */
|
|
105
118
|
quoteMint: Address;
|
|
106
119
|
bump: number;
|
|
107
120
|
/**
|
|
108
121
|
* Fixed token count of one pack, in base units. Always `PACK_TOKENS`.
|
|
109
|
-
* The venue decides what that costs in
|
|
122
|
+
* The venue decides what that costs in the quote asset.
|
|
110
123
|
*/
|
|
111
124
|
packTokens: number | bigint;
|
|
112
125
|
/** Raw quote token spent in the seed purchase. */
|
|
@@ -115,6 +128,19 @@ export type PoolArgs = {
|
|
|
115
128
|
nextSeq: number | bigint;
|
|
116
129
|
/** Maximum awards reserved by pending draws. Never creator revenue. */
|
|
117
130
|
reserved: number | bigint;
|
|
131
|
+
/**
|
|
132
|
+
* The LaunchLab global config for this pool's quote mint. Raydium's
|
|
133
|
+
* admin is the only wallet that can create one, so a launch that names
|
|
134
|
+
* it proves Raydium enabled that quote. Both venues check the trade
|
|
135
|
+
* against this stored value.
|
|
136
|
+
*/
|
|
137
|
+
quoteConfig: Address;
|
|
138
|
+
/**
|
|
139
|
+
* The token program that owns the quote mint: classic SPL Token, or
|
|
140
|
+
* Token-2022 with the profile `tokens::validate_quote_mint` accepts.
|
|
141
|
+
* The base coin is always classic SPL Token, so it needs no field.
|
|
142
|
+
*/
|
|
143
|
+
quoteTokenProgram: Address;
|
|
118
144
|
};
|
|
119
145
|
/** Gets the encoder for {@link PoolArgs} account data. */
|
|
120
146
|
export declare function getPoolEncoder(): FixedSizeEncoder<PoolArgs>;
|
|
@@ -535,7 +561,7 @@ type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
|
535
561
|
//#region src/generated/instructions/buyPack.d.ts
|
|
536
562
|
export declare const BUY_PACK_DISCRIMINATOR: ReadonlyUint8Array;
|
|
537
563
|
export declare function getBuyPackDiscriminatorBytes(): ReadonlyUint8Array;
|
|
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]>;
|
|
564
|
+
export type BuyPackInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountPurchaser extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountDraw extends string | AccountMeta<string> = string, TAccountActivity extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = string, TAccountIdentity extends string | AccountMeta<string> = string, TAccountQueue extends string | AccountMeta<string> = "Cuj97ggrhhidhbu39TijNVqE74xvKJ69gDervRUXAxGh", TAccountProgram extends string | AccountMeta<string> = "Vrf1RNUjXmQGjmQrQLvJHs9SNkvDJEsRVFPkfSQUwGz", TAccountSlotHashes extends string | AccountMeta<string> = "SysvarS1otHashes111111111111111111111111111", TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPurchaser extends string ? WritableSignerAccount<TAccountPurchaser> & AccountSignerMeta<TAccountPurchaser> : TAccountPurchaser, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountDraw extends string ? WritableAccount<TAccountDraw> : TAccountDraw, TAccountActivity extends string ? WritableAccount<TAccountActivity> : TAccountActivity, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountIdentity extends string ? ReadonlyAccount<TAccountIdentity> : TAccountIdentity, TAccountQueue extends string ? WritableAccount<TAccountQueue> : TAccountQueue, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, TAccountSlotHashes extends string ? ReadonlyAccount<TAccountSlotHashes> : TAccountSlotHashes, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
539
565
|
export type BuyPackInstructionData = {
|
|
540
566
|
discriminator: ReadonlyUint8Array;
|
|
541
567
|
maxQuoteIn: bigint;
|
|
@@ -550,7 +576,7 @@ export type BuyPackInstructionDataArgs = {
|
|
|
550
576
|
export declare function getBuyPackInstructionDataEncoder(): FixedSizeEncoder<BuyPackInstructionDataArgs>;
|
|
551
577
|
export declare function getBuyPackInstructionDataDecoder(): FixedSizeDecoder<BuyPackInstructionData>;
|
|
552
578
|
export declare function getBuyPackInstructionDataCodec(): FixedSizeCodec<BuyPackInstructionDataArgs, BuyPackInstructionData>;
|
|
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> = {
|
|
579
|
+
export type BuyPackAsyncInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountActivity extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountIdentity extends string = string, TAccountQueue extends string = string, TAccountProgram extends string = string, TAccountSlotHashes extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
554
580
|
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
555
581
|
pool?: Address<TAccountPool>;
|
|
556
582
|
draw: Address<TAccountDraw>;
|
|
@@ -572,16 +598,17 @@ export type BuyPackAsyncInput<TAccountPurchaser extends string = string, TAccoun
|
|
|
572
598
|
program?: Address<TAccountProgram>;
|
|
573
599
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
574
600
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
601
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
575
602
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
576
603
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
577
604
|
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
578
605
|
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
579
606
|
maxNativeDebit: BuyPackInstructionDataArgs["maxNativeDebit"];
|
|
580
607
|
};
|
|
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?: {
|
|
608
|
+
export declare function getBuyPackInstructionAsync<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountActivity extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountIdentity extends string, TAccountQueue extends string, TAccountProgram extends string, TAccountSlotHashes extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: BuyPackAsyncInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
582
609
|
programAddress?: TProgramAddress;
|
|
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> = {
|
|
610
|
+
}): Promise<BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
611
|
+
export type BuyPackInput<TAccountPurchaser extends string = string, TAccountPool extends string = string, TAccountDraw extends string = string, TAccountActivity extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountVault extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountIdentity extends string = string, TAccountQueue extends string = string, TAccountProgram extends string = string, TAccountSlotHashes extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
585
612
|
purchaser: TransactionSigner<TAccountPurchaser>;
|
|
586
613
|
pool: Address<TAccountPool>;
|
|
587
614
|
draw: Address<TAccountDraw>;
|
|
@@ -603,15 +630,16 @@ export type BuyPackInput<TAccountPurchaser extends string = string, TAccountPool
|
|
|
603
630
|
program?: Address<TAccountProgram>;
|
|
604
631
|
slotHashes?: Address<TAccountSlotHashes>;
|
|
605
632
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
633
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
606
634
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
607
635
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
608
636
|
maxQuoteIn: BuyPackInstructionDataArgs["maxQuoteIn"];
|
|
609
637
|
minMaximum: BuyPackInstructionDataArgs["minMaximum"];
|
|
610
638
|
maxNativeDebit: BuyPackInstructionDataArgs["maxNativeDebit"];
|
|
611
639
|
};
|
|
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?: {
|
|
640
|
+
export declare function getBuyPackInstruction<TAccountPurchaser extends string, TAccountPool extends string, TAccountDraw extends string, TAccountActivity extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountVault extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountIdentity extends string, TAccountQueue extends string, TAccountProgram extends string, TAccountSlotHashes extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: BuyPackInput<TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
613
641
|
programAddress?: TProgramAddress;
|
|
614
|
-
}): BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
642
|
+
}): BuyPackInstruction<TProgramAddress, TAccountPurchaser, TAccountPool, TAccountDraw, TAccountActivity, TAccountMint, TAccountQuoteMint, TAccountVault, TAccountUserTokens, TAccountVenue, TAccountIdentity, TAccountQueue, TAccountProgram, TAccountSlotHashes, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
615
643
|
export type ParsedBuyPackInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
616
644
|
programAddress: Address<TProgram>;
|
|
617
645
|
accounts: {
|
|
@@ -636,8 +664,9 @@ export type ParsedBuyPackInstruction<TProgram extends string = typeof GABOX_PROG
|
|
|
636
664
|
program: TAccountMetas[11];
|
|
637
665
|
slotHashes: TAccountMetas[12];
|
|
638
666
|
tokenProgram: TAccountMetas[13];
|
|
639
|
-
|
|
640
|
-
|
|
667
|
+
quoteTokenProgram: TAccountMetas[14];
|
|
668
|
+
associatedTokenProgram: TAccountMetas[15];
|
|
669
|
+
systemProgram: TAccountMetas[16];
|
|
641
670
|
};
|
|
642
671
|
data: BuyPackInstructionData;
|
|
643
672
|
};
|
|
@@ -810,7 +839,7 @@ export declare function parseFundPrizesInstruction<TProgram extends string, TAcc
|
|
|
810
839
|
//#region src/generated/instructions/initializePool.d.ts
|
|
811
840
|
export declare const INITIALIZE_POOL_DISCRIMINATOR: ReadonlyUint8Array;
|
|
812
841
|
export declare function getInitializePoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
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> =
|
|
842
|
+
export type InitializePoolInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountQuoteConfig extends string | AccountMeta<string> = string, TAccountCreatorTokens extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = string, TAccountInstructions extends string | AccountMeta<string> = "Sysvar1nstructions1111111111111111111111111", TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountCreator extends string ? WritableSignerAccount<TAccountCreator> & AccountSignerMeta<TAccountCreator> : TAccountCreator, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountQuoteConfig extends string ? ReadonlyAccount<TAccountQuoteConfig> : TAccountQuoteConfig, TAccountCreatorTokens extends string ? WritableAccount<TAccountCreatorTokens> : TAccountCreatorTokens, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountInstructions extends string ? ReadonlyAccount<TAccountInstructions> : TAccountInstructions, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
|
|
814
843
|
export type InitializePoolInstructionData = {
|
|
815
844
|
discriminator: ReadonlyUint8Array;
|
|
816
845
|
tiers: Array<Tier>;
|
|
@@ -827,17 +856,24 @@ export type InitializePoolInstructionDataArgs = {
|
|
|
827
856
|
export declare function getInitializePoolInstructionDataEncoder(): FixedSizeEncoder<InitializePoolInstructionDataArgs>;
|
|
828
857
|
export declare function getInitializePoolInstructionDataDecoder(): FixedSizeDecoder<InitializePoolInstructionData>;
|
|
829
858
|
export declare function getInitializePoolInstructionDataCodec(): FixedSizeCodec<InitializePoolInstructionDataArgs, InitializePoolInstructionData>;
|
|
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> = {
|
|
859
|
+
export type InitializePoolAsyncInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteConfig extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
831
860
|
creator: TransactionSigner<TAccountCreator>;
|
|
832
861
|
pool?: Address<TAccountPool>;
|
|
833
862
|
mint: Address<TAccountMint>;
|
|
863
|
+
/**
|
|
864
|
+
* The quote mint. Classic SPL Token, or Token-2022 with the bounded
|
|
865
|
+
* profile `tokens::validate_quote_mint` accepts.
|
|
866
|
+
*/
|
|
834
867
|
quoteMint: Address<TAccountQuoteMint>;
|
|
868
|
+
/** quote mint, by its owner, discriminator, curve type and quote field. */
|
|
869
|
+
quoteConfig: Address<TAccountQuoteConfig>;
|
|
835
870
|
creatorTokens?: Address<TAccountCreatorTokens>;
|
|
836
871
|
vault?: Address<TAccountVault>;
|
|
837
872
|
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
838
|
-
venue
|
|
873
|
+
venue: Address<TAccountVenue>;
|
|
839
874
|
instructions?: Address<TAccountInstructions>;
|
|
840
875
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
876
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
841
877
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
842
878
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
843
879
|
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
@@ -845,20 +881,27 @@ export type InitializePoolAsyncInput<TAccountCreator extends string = string, TA
|
|
|
845
881
|
maxSeedNativeDebit: InitializePoolInstructionDataArgs["maxSeedNativeDebit"];
|
|
846
882
|
extraSeedTokens: InitializePoolInstructionDataArgs["extraSeedTokens"];
|
|
847
883
|
};
|
|
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?: {
|
|
884
|
+
export declare function getInitializePoolInstructionAsync<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountQuoteConfig extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: InitializePoolAsyncInput<TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
849
885
|
programAddress?: TProgramAddress;
|
|
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> = {
|
|
886
|
+
}): Promise<InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>>;
|
|
887
|
+
export type InitializePoolInput<TAccountCreator extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteConfig extends string = string, TAccountCreatorTokens extends string = string, TAccountVault extends string = string, TAccountVenue extends string = string, TAccountInstructions extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string> = {
|
|
852
888
|
creator: TransactionSigner<TAccountCreator>;
|
|
853
889
|
pool: Address<TAccountPool>;
|
|
854
890
|
mint: Address<TAccountMint>;
|
|
891
|
+
/**
|
|
892
|
+
* The quote mint. Classic SPL Token, or Token-2022 with the bounded
|
|
893
|
+
* profile `tokens::validate_quote_mint` accepts.
|
|
894
|
+
*/
|
|
855
895
|
quoteMint: Address<TAccountQuoteMint>;
|
|
896
|
+
/** quote mint, by its owner, discriminator, curve type and quote field. */
|
|
897
|
+
quoteConfig: Address<TAccountQuoteConfig>;
|
|
856
898
|
creatorTokens: Address<TAccountCreatorTokens>;
|
|
857
899
|
vault: Address<TAccountVault>;
|
|
858
900
|
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
859
|
-
venue
|
|
901
|
+
venue: Address<TAccountVenue>;
|
|
860
902
|
instructions?: Address<TAccountInstructions>;
|
|
861
903
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
904
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
862
905
|
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
863
906
|
systemProgram?: Address<TAccountSystemProgram>;
|
|
864
907
|
tiers: InitializePoolInstructionDataArgs["tiers"];
|
|
@@ -866,24 +909,31 @@ export type InitializePoolInput<TAccountCreator extends string = string, TAccoun
|
|
|
866
909
|
maxSeedNativeDebit: InitializePoolInstructionDataArgs["maxSeedNativeDebit"];
|
|
867
910
|
extraSeedTokens: InitializePoolInstructionDataArgs["extraSeedTokens"];
|
|
868
911
|
};
|
|
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?: {
|
|
912
|
+
export declare function getInitializePoolInstruction<TAccountCreator extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountQuoteConfig extends string, TAccountCreatorTokens extends string, TAccountVault extends string, TAccountVenue extends string, TAccountInstructions extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: InitializePoolInput<TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>, config?: {
|
|
870
913
|
programAddress?: TProgramAddress;
|
|
871
|
-
}): InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
914
|
+
}): InitializePoolInstruction<TProgramAddress, TAccountCreator, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountQuoteConfig, TAccountCreatorTokens, TAccountVault, TAccountVenue, TAccountInstructions, TAccountTokenProgram, TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram, TAccountSystemProgram>;
|
|
872
915
|
export type ParsedInitializePoolInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
873
916
|
programAddress: Address<TProgram>;
|
|
874
917
|
accounts: {
|
|
875
918
|
creator: TAccountMetas[0];
|
|
876
919
|
pool: TAccountMetas[1];
|
|
877
920
|
mint: TAccountMetas[2];
|
|
921
|
+
/**
|
|
922
|
+
* The quote mint. Classic SPL Token, or Token-2022 with the bounded
|
|
923
|
+
* profile `tokens::validate_quote_mint` accepts.
|
|
924
|
+
*/
|
|
878
925
|
quoteMint: TAccountMetas[3];
|
|
879
|
-
|
|
880
|
-
|
|
926
|
+
/** quote mint, by its owner, discriminator, curve type and quote field. */
|
|
927
|
+
quoteConfig: TAccountMetas[4];
|
|
928
|
+
creatorTokens: TAccountMetas[5];
|
|
929
|
+
vault: TAccountMetas[6];
|
|
881
930
|
/** introspected. A new coin is always on the curve, so CPMM is refused. */
|
|
882
|
-
venue: TAccountMetas[
|
|
883
|
-
instructions: TAccountMetas[
|
|
884
|
-
tokenProgram: TAccountMetas[
|
|
885
|
-
|
|
886
|
-
|
|
931
|
+
venue: TAccountMetas[7];
|
|
932
|
+
instructions: TAccountMetas[8];
|
|
933
|
+
tokenProgram: TAccountMetas[9];
|
|
934
|
+
quoteTokenProgram: TAccountMetas[10];
|
|
935
|
+
associatedTokenProgram: TAccountMetas[11];
|
|
936
|
+
systemProgram: TAccountMetas[12];
|
|
887
937
|
};
|
|
888
938
|
data: InitializePoolInstructionData;
|
|
889
939
|
};
|
|
@@ -977,7 +1027,7 @@ export declare function parseRetryDrawInstruction<TProgram extends string, TAcco
|
|
|
977
1027
|
//#region src/generated/instructions/sellTokens.d.ts
|
|
978
1028
|
export declare const SELL_TOKENS_DISCRIMINATOR: ReadonlyUint8Array;
|
|
979
1029
|
export declare function getSellTokensDiscriminatorBytes(): ReadonlyUint8Array;
|
|
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]>;
|
|
1030
|
+
export type SellTokensInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountSeller extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountUserTokens extends string | AccountMeta<string> = string, TAccountVenue extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountSeller extends string ? WritableSignerAccount<TAccountSeller> & AccountSignerMeta<TAccountSeller> : TAccountSeller, TAccountPool extends string ? ReadonlyAccount<TAccountPool> : TAccountPool, TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountUserTokens extends string ? WritableAccount<TAccountUserTokens> : TAccountUserTokens, TAccountVenue extends string ? ReadonlyAccount<TAccountVenue> : TAccountVenue, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, ...TRemainingAccounts]>;
|
|
981
1031
|
export type SellTokensInstructionData = {
|
|
982
1032
|
discriminator: ReadonlyUint8Array;
|
|
983
1033
|
amount: bigint;
|
|
@@ -992,7 +1042,7 @@ export type SellTokensInstructionDataArgs = {
|
|
|
992
1042
|
export declare function getSellTokensInstructionDataEncoder(): FixedSizeEncoder<SellTokensInstructionDataArgs>;
|
|
993
1043
|
export declare function getSellTokensInstructionDataDecoder(): FixedSizeDecoder<SellTokensInstructionData>;
|
|
994
1044
|
export declare function getSellTokensInstructionDataCodec(): FixedSizeCodec<SellTokensInstructionDataArgs, SellTokensInstructionData>;
|
|
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> = {
|
|
1045
|
+
export type SellTokensAsyncInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = {
|
|
996
1046
|
seller: TransactionSigner<TAccountSeller>;
|
|
997
1047
|
pool?: Address<TAccountPool>;
|
|
998
1048
|
mint: Address<TAccountMint>;
|
|
@@ -1001,14 +1051,15 @@ export type SellTokensAsyncInput<TAccountSeller extends string = string, TAccoun
|
|
|
1001
1051
|
/** LaunchLab before graduation, CPMM after it. */
|
|
1002
1052
|
venue: Address<TAccountVenue>;
|
|
1003
1053
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1054
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
1004
1055
|
amount: SellTokensInstructionDataArgs["amount"];
|
|
1005
1056
|
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1006
1057
|
maxNativeDebit: SellTokensInstructionDataArgs["maxNativeDebit"];
|
|
1007
1058
|
};
|
|
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?: {
|
|
1059
|
+
export declare function getSellTokensInstructionAsync<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: SellTokensAsyncInput<TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>, config?: {
|
|
1009
1060
|
programAddress?: TProgramAddress;
|
|
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> = {
|
|
1061
|
+
}): Promise<SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>>;
|
|
1062
|
+
export type SellTokensInput<TAccountSeller extends string = string, TAccountPool extends string = string, TAccountMint extends string = string, TAccountQuoteMint extends string = string, TAccountUserTokens extends string = string, TAccountVenue extends string = string, TAccountTokenProgram extends string = string, TAccountQuoteTokenProgram extends string = string> = {
|
|
1012
1063
|
seller: TransactionSigner<TAccountSeller>;
|
|
1013
1064
|
pool: Address<TAccountPool>;
|
|
1014
1065
|
mint: Address<TAccountMint>;
|
|
@@ -1017,13 +1068,14 @@ export type SellTokensInput<TAccountSeller extends string = string, TAccountPool
|
|
|
1017
1068
|
/** LaunchLab before graduation, CPMM after it. */
|
|
1018
1069
|
venue: Address<TAccountVenue>;
|
|
1019
1070
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
1071
|
+
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
1020
1072
|
amount: SellTokensInstructionDataArgs["amount"];
|
|
1021
1073
|
minQuoteOutput: SellTokensInstructionDataArgs["minQuoteOutput"];
|
|
1022
1074
|
maxNativeDebit: SellTokensInstructionDataArgs["maxNativeDebit"];
|
|
1023
1075
|
};
|
|
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?: {
|
|
1076
|
+
export declare function getSellTokensInstruction<TAccountSeller extends string, TAccountPool extends string, TAccountMint extends string, TAccountQuoteMint extends string, TAccountUserTokens extends string, TAccountVenue extends string, TAccountTokenProgram extends string, TAccountQuoteTokenProgram extends string, TProgramAddress extends Address = typeof GABOX_PROGRAM_ADDRESS>(input: SellTokensInput<TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>, config?: {
|
|
1025
1077
|
programAddress?: TProgramAddress;
|
|
1026
|
-
}): SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram>;
|
|
1078
|
+
}): SellTokensInstruction<TProgramAddress, TAccountSeller, TAccountPool, TAccountMint, TAccountQuoteMint, TAccountUserTokens, TAccountVenue, TAccountTokenProgram, TAccountQuoteTokenProgram>;
|
|
1027
1079
|
export type ParsedSellTokensInstruction<TProgram extends string = typeof GABOX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
1028
1080
|
programAddress: Address<TProgram>;
|
|
1029
1081
|
accounts: {
|
|
@@ -1035,6 +1087,7 @@ export type ParsedSellTokensInstruction<TProgram extends string = typeof GABOX_P
|
|
|
1035
1087
|
/** LaunchLab before graduation, CPMM after it. */
|
|
1036
1088
|
venue: TAccountMetas[5];
|
|
1037
1089
|
tokenProgram: TAccountMetas[6];
|
|
1090
|
+
quoteTokenProgram: TAccountMetas[7];
|
|
1038
1091
|
};
|
|
1039
1092
|
data: SellTokensInstructionData;
|
|
1040
1093
|
};
|