pump-kit 0.2.4 → 0.2.5
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/README.md +12 -36
- package/dist/index.js +12 -12
- package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +43 -0
- package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +33 -0
- package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +16 -4
- package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
- package/dist/types/ammsdk/generated/accounts/index.d.ts +5 -0
- package/dist/types/ammsdk/generated/accounts/pool.d.ts +6 -0
- package/dist/types/ammsdk/generated/accounts/sharingConfig.d.ts +39 -0
- package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +43 -0
- package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +79 -29
- package/dist/types/ammsdk/generated/instructions/adminSetCoinCreator.d.ts +63 -0
- package/dist/types/ammsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
- package/dist/types/ammsdk/generated/instructions/buy.d.ts +67 -14
- package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +144 -0
- package/dist/types/ammsdk/generated/instructions/claimCashback.d.ts +74 -0
- package/dist/types/ammsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
- package/dist/types/ammsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
- package/dist/types/ammsdk/generated/instructions/collectCoinCreatorFee.d.ts +70 -0
- package/dist/types/ammsdk/generated/instructions/createConfig.d.ts +26 -5
- package/dist/types/ammsdk/generated/instructions/createPool.d.ts +51 -12
- package/dist/types/ammsdk/generated/instructions/deposit.d.ts +33 -10
- package/dist/types/ammsdk/generated/instructions/disable.d.ts +16 -2
- package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +12 -2
- package/dist/types/ammsdk/generated/instructions/index.d.ts +15 -0
- package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
- package/dist/types/ammsdk/generated/instructions/migratePoolCoinCreator.d.ts +54 -0
- package/dist/types/ammsdk/generated/instructions/sell.d.ts +54 -14
- package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
- package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
- package/dist/types/ammsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
- package/dist/types/ammsdk/generated/instructions/transferCreatorFeesToPump.d.ts +81 -0
- package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +12 -2
- package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +22 -2
- package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +33 -10
- package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +65 -15
- package/dist/types/ammsdk/generated/types/adminSetCoinCreatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/buyEvent.d.ts +29 -4
- package/dist/types/ammsdk/generated/types/claimCashbackEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/collectCoinCreatorFeeEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/configStatus.d.ts +16 -0
- package/dist/types/ammsdk/generated/types/createConfigEvent.d.ts +4 -0
- package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +4 -0
- package/dist/types/ammsdk/generated/types/feeTier.d.ts +20 -0
- package/dist/types/ammsdk/generated/types/fees.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/index.d.ts +17 -2
- package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/migratePoolCoinCreatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/optionBool.d.ts +13 -0
- package/dist/types/ammsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/sellEvent.d.ts +10 -0
- package/dist/types/ammsdk/generated/types/setBondingCurveCoinCreatorEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/setMetaplexCoinCreatorEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/shareholder.d.ts +16 -0
- package/dist/types/ammsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
- package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +4 -0
- package/dist/types/clients/amm.d.ts +2 -10
- package/dist/types/pumpsdk/generated/accounts/bondingCurve.d.ts +4 -0
- package/dist/types/pumpsdk/generated/accounts/global.d.ts +12 -0
- package/dist/types/pumpsdk/generated/accounts/index.d.ts +1 -0
- package/dist/types/pumpsdk/generated/accounts/sharingConfig.d.ts +39 -0
- package/dist/types/pumpsdk/generated/accounts/userVolumeAccumulator.d.ts +4 -0
- package/dist/types/pumpsdk/generated/errors/pump.d.ts +29 -1
- package/dist/types/pumpsdk/generated/instructions/buy.d.ts +1 -1
- package/dist/types/pumpsdk/generated/instructions/buyExactSolIn.d.ts +1 -1
- package/dist/types/pumpsdk/generated/instructions/claimCashback.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/createV2.d.ts +128 -0
- package/dist/types/pumpsdk/generated/instructions/distributeCreatorFees.d.ts +66 -0
- package/dist/types/pumpsdk/generated/instructions/getMinimumDistributableFee.d.ts +54 -0
- package/dist/types/pumpsdk/generated/instructions/index.d.ts +10 -0
- package/dist/types/pumpsdk/generated/instructions/migrateBondingCurveCreator.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/setMayhemVirtualParams.d.ts +70 -0
- package/dist/types/pumpsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
- package/dist/types/pumpsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
- package/dist/types/pumpsdk/generated/instructions/toggleCreateV2.d.ts +59 -0
- package/dist/types/pumpsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
- package/dist/types/pumpsdk/generated/programs/pump.d.ts +47 -16
- package/dist/types/pumpsdk/generated/types/claimCashbackEvent.d.ts +25 -0
- package/dist/types/pumpsdk/generated/types/configStatus.d.ts +16 -0
- package/dist/types/pumpsdk/generated/types/createEvent.d.ts +6 -0
- package/dist/types/pumpsdk/generated/types/distributeCreatorFeesEvent.d.ts +30 -0
- package/dist/types/pumpsdk/generated/types/index.d.ts +8 -0
- package/dist/types/pumpsdk/generated/types/migrateBondingCurveCreatorEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/minimumDistributableFeeEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/shareholder.d.ts +16 -0
- package/dist/types/pumpsdk/generated/types/tradeEvent.d.ts +6 -0
- package/dist/types/pumpsdk/generated/types/updateMayhemVirtualParamsEvent.d.ts +31 -0
- package/llms.txt +24 -0
- package/metadata/actions-registry.json +278 -0
- package/package.json +4 -2
- package/dist/types/ammsdk/generated/types/globalConfig.d.ts +0 -49
- package/dist/types/ammsdk/generated/types/pool.d.ts +0 -35
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner } from '@solana/kit';
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
9
9
|
import { PUMP_AMM_PROGRAM_ADDRESS } from '../programs';
|
|
10
10
|
export declare const UPDATE_FEE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
11
|
export declare function getUpdateFeeConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
12
12
|
export type UpdateFeeConfigInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountAdmin extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
13
|
TAccountAdmin extends string ? ReadonlySignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
|
|
14
|
-
TAccountGlobalConfig extends string ?
|
|
14
|
+
TAccountGlobalConfig extends string ? WritableAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
|
|
15
15
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
16
16
|
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
17
17
|
...TRemainingAccounts
|
|
@@ -21,15 +21,33 @@ export type UpdateFeeConfigInstructionData = {
|
|
|
21
21
|
lpFeeBasisPoints: bigint;
|
|
22
22
|
protocolFeeBasisPoints: bigint;
|
|
23
23
|
protocolFeeRecipients: Array<Address>;
|
|
24
|
+
coinCreatorFeeBasisPoints: bigint;
|
|
25
|
+
adminSetCoinCreatorAuthority: Address;
|
|
24
26
|
};
|
|
25
27
|
export type UpdateFeeConfigInstructionDataArgs = {
|
|
26
28
|
lpFeeBasisPoints: number | bigint;
|
|
27
29
|
protocolFeeBasisPoints: number | bigint;
|
|
28
30
|
protocolFeeRecipients: Array<Address>;
|
|
31
|
+
coinCreatorFeeBasisPoints: number | bigint;
|
|
32
|
+
adminSetCoinCreatorAuthority: Address;
|
|
29
33
|
};
|
|
30
34
|
export declare function getUpdateFeeConfigInstructionDataEncoder(): FixedSizeEncoder<UpdateFeeConfigInstructionDataArgs>;
|
|
31
35
|
export declare function getUpdateFeeConfigInstructionDataDecoder(): FixedSizeDecoder<UpdateFeeConfigInstructionData>;
|
|
32
36
|
export declare function getUpdateFeeConfigInstructionDataCodec(): FixedSizeCodec<UpdateFeeConfigInstructionDataArgs, UpdateFeeConfigInstructionData>;
|
|
37
|
+
export type UpdateFeeConfigAsyncInput<TAccountAdmin extends string = string, TAccountGlobalConfig extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
admin: TransactionSigner<TAccountAdmin>;
|
|
39
|
+
globalConfig: Address<TAccountGlobalConfig>;
|
|
40
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
41
|
+
program: Address<TAccountProgram>;
|
|
42
|
+
lpFeeBasisPoints: UpdateFeeConfigInstructionDataArgs['lpFeeBasisPoints'];
|
|
43
|
+
protocolFeeBasisPoints: UpdateFeeConfigInstructionDataArgs['protocolFeeBasisPoints'];
|
|
44
|
+
protocolFeeRecipients: UpdateFeeConfigInstructionDataArgs['protocolFeeRecipients'];
|
|
45
|
+
coinCreatorFeeBasisPoints: UpdateFeeConfigInstructionDataArgs['coinCreatorFeeBasisPoints'];
|
|
46
|
+
adminSetCoinCreatorAuthority: UpdateFeeConfigInstructionDataArgs['adminSetCoinCreatorAuthority'];
|
|
47
|
+
};
|
|
48
|
+
export declare function getUpdateFeeConfigInstructionAsync<TAccountAdmin extends string, TAccountGlobalConfig extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: UpdateFeeConfigAsyncInput<TAccountAdmin, TAccountGlobalConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
49
|
+
programAddress?: TProgramAddress;
|
|
50
|
+
}): Promise<UpdateFeeConfigInstruction<TProgramAddress, TAccountAdmin, TAccountGlobalConfig, TAccountEventAuthority, TAccountProgram>>;
|
|
33
51
|
export type UpdateFeeConfigInput<TAccountAdmin extends string = string, TAccountGlobalConfig extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
34
52
|
admin: TransactionSigner<TAccountAdmin>;
|
|
35
53
|
globalConfig: Address<TAccountGlobalConfig>;
|
|
@@ -38,6 +56,8 @@ export type UpdateFeeConfigInput<TAccountAdmin extends string = string, TAccount
|
|
|
38
56
|
lpFeeBasisPoints: UpdateFeeConfigInstructionDataArgs['lpFeeBasisPoints'];
|
|
39
57
|
protocolFeeBasisPoints: UpdateFeeConfigInstructionDataArgs['protocolFeeBasisPoints'];
|
|
40
58
|
protocolFeeRecipients: UpdateFeeConfigInstructionDataArgs['protocolFeeRecipients'];
|
|
59
|
+
coinCreatorFeeBasisPoints: UpdateFeeConfigInstructionDataArgs['coinCreatorFeeBasisPoints'];
|
|
60
|
+
adminSetCoinCreatorAuthority: UpdateFeeConfigInstructionDataArgs['adminSetCoinCreatorAuthority'];
|
|
41
61
|
};
|
|
42
62
|
export declare function getUpdateFeeConfigInstruction<TAccountAdmin extends string, TAccountGlobalConfig extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: UpdateFeeConfigInput<TAccountAdmin, TAccountGlobalConfig, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
43
63
|
programAddress?: TProgramAddress;
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner } from '@solana/kit';
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
9
9
|
import { PUMP_AMM_PROGRAM_ADDRESS } from '../programs';
|
|
10
10
|
export declare const WITHDRAW_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
11
|
export declare function getWithdrawDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
|
|
12
|
-
export type WithdrawInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountLpMint extends string | AccountMeta<string> = string, TAccountUserBaseTokenAccount extends string | AccountMeta<string> = string, TAccountUserQuoteTokenAccount extends string | AccountMeta<string> = string, TAccountUserPoolTokenAccount extends string | AccountMeta<string> = string, TAccountPoolBaseTokenAccount extends string | AccountMeta<string> = string, TAccountPoolQuoteTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountToken2022Program extends string | AccountMeta<string> =
|
|
13
|
-
TAccountPool extends string ?
|
|
12
|
+
export type WithdrawInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountPool extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountLpMint extends string | AccountMeta<string> = string, TAccountUserBaseTokenAccount extends string | AccountMeta<string> = string, TAccountUserQuoteTokenAccount extends string | AccountMeta<string> = string, TAccountUserPoolTokenAccount extends string | AccountMeta<string> = string, TAccountPoolBaseTokenAccount extends string | AccountMeta<string> = string, TAccountPoolQuoteTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountToken2022Program extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
|
|
14
14
|
TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
|
|
15
15
|
TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
16
16
|
TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint,
|
|
17
17
|
TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint,
|
|
18
|
-
TAccountLpMint extends string ?
|
|
19
|
-
TAccountUserBaseTokenAccount extends string ?
|
|
20
|
-
TAccountUserQuoteTokenAccount extends string ?
|
|
21
|
-
TAccountUserPoolTokenAccount extends string ?
|
|
22
|
-
TAccountPoolBaseTokenAccount extends string ?
|
|
23
|
-
TAccountPoolQuoteTokenAccount extends string ?
|
|
18
|
+
TAccountLpMint extends string ? WritableAccount<TAccountLpMint> : TAccountLpMint,
|
|
19
|
+
TAccountUserBaseTokenAccount extends string ? WritableAccount<TAccountUserBaseTokenAccount> : TAccountUserBaseTokenAccount,
|
|
20
|
+
TAccountUserQuoteTokenAccount extends string ? WritableAccount<TAccountUserQuoteTokenAccount> : TAccountUserQuoteTokenAccount,
|
|
21
|
+
TAccountUserPoolTokenAccount extends string ? WritableAccount<TAccountUserPoolTokenAccount> : TAccountUserPoolTokenAccount,
|
|
22
|
+
TAccountPoolBaseTokenAccount extends string ? WritableAccount<TAccountPoolBaseTokenAccount> : TAccountPoolBaseTokenAccount,
|
|
23
|
+
TAccountPoolQuoteTokenAccount extends string ? WritableAccount<TAccountPoolQuoteTokenAccount> : TAccountPoolQuoteTokenAccount,
|
|
24
24
|
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
25
25
|
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
26
26
|
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
@@ -41,6 +41,29 @@ export type WithdrawInstructionDataArgs = {
|
|
|
41
41
|
export declare function getWithdrawInstructionDataEncoder(): FixedSizeEncoder<WithdrawInstructionDataArgs>;
|
|
42
42
|
export declare function getWithdrawInstructionDataDecoder(): FixedSizeDecoder<WithdrawInstructionData>;
|
|
43
43
|
export declare function getWithdrawInstructionDataCodec(): FixedSizeCodec<WithdrawInstructionDataArgs, WithdrawInstructionData>;
|
|
44
|
+
export type WithdrawAsyncInput<TAccountPool extends string = string, TAccountGlobalConfig extends string = string, TAccountUser extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountLpMint extends string = string, TAccountUserBaseTokenAccount extends string = string, TAccountUserQuoteTokenAccount extends string = string, TAccountUserPoolTokenAccount extends string = string, TAccountPoolBaseTokenAccount extends string = string, TAccountPoolQuoteTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountToken2022Program extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
45
|
+
pool: Address<TAccountPool>;
|
|
46
|
+
globalConfig: Address<TAccountGlobalConfig>;
|
|
47
|
+
user: TransactionSigner<TAccountUser>;
|
|
48
|
+
baseMint: Address<TAccountBaseMint>;
|
|
49
|
+
quoteMint: Address<TAccountQuoteMint>;
|
|
50
|
+
lpMint: Address<TAccountLpMint>;
|
|
51
|
+
userBaseTokenAccount: Address<TAccountUserBaseTokenAccount>;
|
|
52
|
+
userQuoteTokenAccount: Address<TAccountUserQuoteTokenAccount>;
|
|
53
|
+
userPoolTokenAccount: Address<TAccountUserPoolTokenAccount>;
|
|
54
|
+
poolBaseTokenAccount: Address<TAccountPoolBaseTokenAccount>;
|
|
55
|
+
poolQuoteTokenAccount: Address<TAccountPoolQuoteTokenAccount>;
|
|
56
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
57
|
+
token2022Program?: Address<TAccountToken2022Program>;
|
|
58
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
59
|
+
program: Address<TAccountProgram>;
|
|
60
|
+
lpTokenAmountIn: WithdrawInstructionDataArgs['lpTokenAmountIn'];
|
|
61
|
+
minBaseAmountOut: WithdrawInstructionDataArgs['minBaseAmountOut'];
|
|
62
|
+
minQuoteAmountOut: WithdrawInstructionDataArgs['minQuoteAmountOut'];
|
|
63
|
+
};
|
|
64
|
+
export declare function getWithdrawInstructionAsync<TAccountPool extends string, TAccountGlobalConfig extends string, TAccountUser extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountLpMint extends string, TAccountUserBaseTokenAccount extends string, TAccountUserQuoteTokenAccount extends string, TAccountUserPoolTokenAccount extends string, TAccountPoolBaseTokenAccount extends string, TAccountPoolQuoteTokenAccount extends string, TAccountTokenProgram extends string, TAccountToken2022Program extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: WithdrawAsyncInput<TAccountPool, TAccountGlobalConfig, TAccountUser, TAccountBaseMint, TAccountQuoteMint, TAccountLpMint, TAccountUserBaseTokenAccount, TAccountUserQuoteTokenAccount, TAccountUserPoolTokenAccount, TAccountPoolBaseTokenAccount, TAccountPoolQuoteTokenAccount, TAccountTokenProgram, TAccountToken2022Program, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
65
|
+
programAddress?: TProgramAddress;
|
|
66
|
+
}): Promise<WithdrawInstruction<TProgramAddress, TAccountPool, TAccountGlobalConfig, TAccountUser, TAccountBaseMint, TAccountQuoteMint, TAccountLpMint, TAccountUserBaseTokenAccount, TAccountUserQuoteTokenAccount, TAccountUserPoolTokenAccount, TAccountPoolBaseTokenAccount, TAccountPoolQuoteTokenAccount, TAccountTokenProgram, TAccountToken2022Program, TAccountEventAuthority, TAccountProgram>>;
|
|
44
67
|
export type WithdrawInput<TAccountPool extends string = string, TAccountGlobalConfig extends string = string, TAccountUser extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountLpMint extends string = string, TAccountUserBaseTokenAccount extends string = string, TAccountUserQuoteTokenAccount extends string = string, TAccountUserPoolTokenAccount extends string = string, TAccountPoolBaseTokenAccount extends string = string, TAccountPoolQuoteTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountToken2022Program extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
45
68
|
pool: Address<TAccountPool>;
|
|
46
69
|
globalConfig: Address<TAccountGlobalConfig>;
|
|
@@ -54,7 +77,7 @@ export type WithdrawInput<TAccountPool extends string = string, TAccountGlobalCo
|
|
|
54
77
|
poolBaseTokenAccount: Address<TAccountPoolBaseTokenAccount>;
|
|
55
78
|
poolQuoteTokenAccount: Address<TAccountPoolQuoteTokenAccount>;
|
|
56
79
|
tokenProgram?: Address<TAccountTokenProgram>;
|
|
57
|
-
token2022Program
|
|
80
|
+
token2022Program?: Address<TAccountToken2022Program>;
|
|
58
81
|
eventAuthority: Address<TAccountEventAuthority>;
|
|
59
82
|
program: Address<TAccountProgram>;
|
|
60
83
|
lpTokenAmountIn: WithdrawInstructionDataArgs['lpTokenAmountIn'];
|
|
@@ -6,33 +6,67 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
import { type Address, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
-
import { type ParsedBuyInstruction, type ParsedCreateConfigInstruction, type ParsedCreatePoolInstruction, type ParsedDepositInstruction, type ParsedDisableInstruction, type ParsedExtendAccountInstruction, type ParsedSellInstruction, type ParsedUpdateAdminInstruction, type ParsedUpdateFeeConfigInstruction, type ParsedWithdrawInstruction } from '../instructions';
|
|
10
|
-
export declare const PUMP_AMM_PROGRAM_ADDRESS: Address<"">;
|
|
9
|
+
import { type ParsedAdminSetCoinCreatorInstruction, type ParsedAdminUpdateTokenIncentivesInstruction, type ParsedBuyExactQuoteInInstruction, type ParsedBuyInstruction, type ParsedClaimCashbackInstruction, type ParsedClaimTokenIncentivesInstruction, type ParsedCloseUserVolumeAccumulatorInstruction, type ParsedCollectCoinCreatorFeeInstruction, type ParsedCreateConfigInstruction, type ParsedCreatePoolInstruction, type ParsedDepositInstruction, type ParsedDisableInstruction, type ParsedExtendAccountInstruction, type ParsedInitUserVolumeAccumulatorInstruction, type ParsedMigratePoolCoinCreatorInstruction, type ParsedSellInstruction, type ParsedSetCoinCreatorInstruction, type ParsedSetReservedFeeRecipientsInstruction, type ParsedSyncUserVolumeAccumulatorInstruction, type ParsedToggleCashbackEnabledInstruction, type ParsedToggleMayhemModeInstruction, type ParsedTransferCreatorFeesToPumpInstruction, type ParsedUpdateAdminInstruction, type ParsedUpdateFeeConfigInstruction, type ParsedWithdrawInstruction } from '../instructions';
|
|
10
|
+
export declare const PUMP_AMM_PROGRAM_ADDRESS: Address<"pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA">;
|
|
11
11
|
export declare enum PumpAmmAccount {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
BondingCurve = 0,
|
|
13
|
+
FeeConfig = 1,
|
|
14
|
+
GlobalConfig = 2,
|
|
15
|
+
GlobalVolumeAccumulator = 3,
|
|
16
|
+
Pool = 4,
|
|
17
|
+
SharingConfig = 5,
|
|
18
|
+
UserVolumeAccumulator = 6
|
|
14
19
|
}
|
|
15
20
|
export declare function identifyPumpAmmAccount(account: {
|
|
16
21
|
data: ReadonlyUint8Array;
|
|
17
22
|
} | ReadonlyUint8Array): PumpAmmAccount;
|
|
18
23
|
export declare enum PumpAmmInstruction {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
AdminSetCoinCreator = 0,
|
|
25
|
+
AdminUpdateTokenIncentives = 1,
|
|
26
|
+
Buy = 2,
|
|
27
|
+
BuyExactQuoteIn = 3,
|
|
28
|
+
ClaimCashback = 4,
|
|
29
|
+
ClaimTokenIncentives = 5,
|
|
30
|
+
CloseUserVolumeAccumulator = 6,
|
|
31
|
+
CollectCoinCreatorFee = 7,
|
|
32
|
+
CreateConfig = 8,
|
|
33
|
+
CreatePool = 9,
|
|
34
|
+
Deposit = 10,
|
|
35
|
+
Disable = 11,
|
|
36
|
+
ExtendAccount = 12,
|
|
37
|
+
InitUserVolumeAccumulator = 13,
|
|
38
|
+
MigratePoolCoinCreator = 14,
|
|
39
|
+
Sell = 15,
|
|
40
|
+
SetCoinCreator = 16,
|
|
41
|
+
SetReservedFeeRecipients = 17,
|
|
42
|
+
SyncUserVolumeAccumulator = 18,
|
|
43
|
+
ToggleCashbackEnabled = 19,
|
|
44
|
+
ToggleMayhemMode = 20,
|
|
45
|
+
TransferCreatorFeesToPump = 21,
|
|
46
|
+
UpdateAdmin = 22,
|
|
47
|
+
UpdateFeeConfig = 23,
|
|
48
|
+
Withdraw = 24
|
|
29
49
|
}
|
|
30
50
|
export declare function identifyPumpAmmInstruction(instruction: {
|
|
31
51
|
data: ReadonlyUint8Array;
|
|
32
52
|
} | ReadonlyUint8Array): PumpAmmInstruction;
|
|
33
|
-
export type ParsedPumpAmmInstruction<TProgram extends string = ''> = ({
|
|
53
|
+
export type ParsedPumpAmmInstruction<TProgram extends string = 'pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA'> = ({
|
|
54
|
+
instructionType: PumpAmmInstruction.AdminSetCoinCreator;
|
|
55
|
+
} & ParsedAdminSetCoinCreatorInstruction<TProgram>) | ({
|
|
56
|
+
instructionType: PumpAmmInstruction.AdminUpdateTokenIncentives;
|
|
57
|
+
} & ParsedAdminUpdateTokenIncentivesInstruction<TProgram>) | ({
|
|
34
58
|
instructionType: PumpAmmInstruction.Buy;
|
|
35
59
|
} & ParsedBuyInstruction<TProgram>) | ({
|
|
60
|
+
instructionType: PumpAmmInstruction.BuyExactQuoteIn;
|
|
61
|
+
} & ParsedBuyExactQuoteInInstruction<TProgram>) | ({
|
|
62
|
+
instructionType: PumpAmmInstruction.ClaimCashback;
|
|
63
|
+
} & ParsedClaimCashbackInstruction<TProgram>) | ({
|
|
64
|
+
instructionType: PumpAmmInstruction.ClaimTokenIncentives;
|
|
65
|
+
} & ParsedClaimTokenIncentivesInstruction<TProgram>) | ({
|
|
66
|
+
instructionType: PumpAmmInstruction.CloseUserVolumeAccumulator;
|
|
67
|
+
} & ParsedCloseUserVolumeAccumulatorInstruction<TProgram>) | ({
|
|
68
|
+
instructionType: PumpAmmInstruction.CollectCoinCreatorFee;
|
|
69
|
+
} & ParsedCollectCoinCreatorFeeInstruction<TProgram>) | ({
|
|
36
70
|
instructionType: PumpAmmInstruction.CreateConfig;
|
|
37
71
|
} & ParsedCreateConfigInstruction<TProgram>) | ({
|
|
38
72
|
instructionType: PumpAmmInstruction.CreatePool;
|
|
@@ -43,8 +77,24 @@ export type ParsedPumpAmmInstruction<TProgram extends string = ''> = ({
|
|
|
43
77
|
} & ParsedDisableInstruction<TProgram>) | ({
|
|
44
78
|
instructionType: PumpAmmInstruction.ExtendAccount;
|
|
45
79
|
} & ParsedExtendAccountInstruction<TProgram>) | ({
|
|
80
|
+
instructionType: PumpAmmInstruction.InitUserVolumeAccumulator;
|
|
81
|
+
} & ParsedInitUserVolumeAccumulatorInstruction<TProgram>) | ({
|
|
82
|
+
instructionType: PumpAmmInstruction.MigratePoolCoinCreator;
|
|
83
|
+
} & ParsedMigratePoolCoinCreatorInstruction<TProgram>) | ({
|
|
46
84
|
instructionType: PumpAmmInstruction.Sell;
|
|
47
85
|
} & ParsedSellInstruction<TProgram>) | ({
|
|
86
|
+
instructionType: PumpAmmInstruction.SetCoinCreator;
|
|
87
|
+
} & ParsedSetCoinCreatorInstruction<TProgram>) | ({
|
|
88
|
+
instructionType: PumpAmmInstruction.SetReservedFeeRecipients;
|
|
89
|
+
} & ParsedSetReservedFeeRecipientsInstruction<TProgram>) | ({
|
|
90
|
+
instructionType: PumpAmmInstruction.SyncUserVolumeAccumulator;
|
|
91
|
+
} & ParsedSyncUserVolumeAccumulatorInstruction<TProgram>) | ({
|
|
92
|
+
instructionType: PumpAmmInstruction.ToggleCashbackEnabled;
|
|
93
|
+
} & ParsedToggleCashbackEnabledInstruction<TProgram>) | ({
|
|
94
|
+
instructionType: PumpAmmInstruction.ToggleMayhemMode;
|
|
95
|
+
} & ParsedToggleMayhemModeInstruction<TProgram>) | ({
|
|
96
|
+
instructionType: PumpAmmInstruction.TransferCreatorFeesToPump;
|
|
97
|
+
} & ParsedTransferCreatorFeesToPumpInstruction<TProgram>) | ({
|
|
48
98
|
instructionType: PumpAmmInstruction.UpdateAdmin;
|
|
49
99
|
} & ParsedUpdateAdminInstruction<TProgram>) | ({
|
|
50
100
|
instructionType: PumpAmmInstruction.UpdateFeeConfig;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type AdminSetCoinCreatorEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
adminSetCoinCreatorAuthority: Address;
|
|
12
|
+
baseMint: Address;
|
|
13
|
+
pool: Address;
|
|
14
|
+
oldCoinCreator: Address;
|
|
15
|
+
newCoinCreator: Address;
|
|
16
|
+
};
|
|
17
|
+
export type AdminSetCoinCreatorEventArgs = {
|
|
18
|
+
timestamp: number | bigint;
|
|
19
|
+
adminSetCoinCreatorAuthority: Address;
|
|
20
|
+
baseMint: Address;
|
|
21
|
+
pool: Address;
|
|
22
|
+
oldCoinCreator: Address;
|
|
23
|
+
newCoinCreator: Address;
|
|
24
|
+
};
|
|
25
|
+
export declare function getAdminSetCoinCreatorEventEncoder(): FixedSizeEncoder<AdminSetCoinCreatorEventArgs>;
|
|
26
|
+
export declare function getAdminSetCoinCreatorEventDecoder(): FixedSizeDecoder<AdminSetCoinCreatorEvent>;
|
|
27
|
+
export declare function getAdminSetCoinCreatorEventCodec(): FixedSizeCodec<AdminSetCoinCreatorEventArgs, AdminSetCoinCreatorEvent>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type AdminUpdateTokenIncentivesEvent = {
|
|
10
|
+
startTime: bigint;
|
|
11
|
+
endTime: bigint;
|
|
12
|
+
dayNumber: bigint;
|
|
13
|
+
tokenSupplyPerDay: bigint;
|
|
14
|
+
mint: Address;
|
|
15
|
+
secondsInADay: bigint;
|
|
16
|
+
timestamp: bigint;
|
|
17
|
+
};
|
|
18
|
+
export type AdminUpdateTokenIncentivesEventArgs = {
|
|
19
|
+
startTime: number | bigint;
|
|
20
|
+
endTime: number | bigint;
|
|
21
|
+
dayNumber: number | bigint;
|
|
22
|
+
tokenSupplyPerDay: number | bigint;
|
|
23
|
+
mint: Address;
|
|
24
|
+
secondsInADay: number | bigint;
|
|
25
|
+
timestamp: number | bigint;
|
|
26
|
+
};
|
|
27
|
+
export declare function getAdminUpdateTokenIncentivesEventEncoder(): FixedSizeEncoder<AdminUpdateTokenIncentivesEventArgs>;
|
|
28
|
+
export declare function getAdminUpdateTokenIncentivesEventDecoder(): FixedSizeDecoder<AdminUpdateTokenIncentivesEvent>;
|
|
29
|
+
export declare function getAdminUpdateTokenIncentivesEventCodec(): FixedSizeCodec<AdminUpdateTokenIncentivesEventArgs, AdminUpdateTokenIncentivesEvent>;
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
-
import { type Address, type
|
|
8
|
+
import { type Address, type Codec, type Decoder, type Encoder } from '@solana/kit';
|
|
9
|
+
/** ix_name: "buy" | "buy_exact_quote_in" */
|
|
9
10
|
export type BuyEvent = {
|
|
10
11
|
timestamp: bigint;
|
|
11
12
|
baseAmountOut: bigint;
|
|
@@ -27,6 +28,18 @@ export type BuyEvent = {
|
|
|
27
28
|
userQuoteTokenAccount: Address;
|
|
28
29
|
protocolFeeRecipient: Address;
|
|
29
30
|
protocolFeeRecipientTokenAccount: Address;
|
|
31
|
+
coinCreator: Address;
|
|
32
|
+
coinCreatorFeeBasisPoints: bigint;
|
|
33
|
+
coinCreatorFee: bigint;
|
|
34
|
+
trackVolume: boolean;
|
|
35
|
+
totalUnclaimedTokens: bigint;
|
|
36
|
+
totalClaimedTokens: bigint;
|
|
37
|
+
currentSolVolume: bigint;
|
|
38
|
+
lastUpdateTimestamp: bigint;
|
|
39
|
+
minBaseAmountOut: bigint;
|
|
40
|
+
ixName: string;
|
|
41
|
+
cashbackFeeBasisPoints: bigint;
|
|
42
|
+
cashback: bigint;
|
|
30
43
|
};
|
|
31
44
|
export type BuyEventArgs = {
|
|
32
45
|
timestamp: number | bigint;
|
|
@@ -49,7 +62,19 @@ export type BuyEventArgs = {
|
|
|
49
62
|
userQuoteTokenAccount: Address;
|
|
50
63
|
protocolFeeRecipient: Address;
|
|
51
64
|
protocolFeeRecipientTokenAccount: Address;
|
|
65
|
+
coinCreator: Address;
|
|
66
|
+
coinCreatorFeeBasisPoints: number | bigint;
|
|
67
|
+
coinCreatorFee: number | bigint;
|
|
68
|
+
trackVolume: boolean;
|
|
69
|
+
totalUnclaimedTokens: number | bigint;
|
|
70
|
+
totalClaimedTokens: number | bigint;
|
|
71
|
+
currentSolVolume: number | bigint;
|
|
72
|
+
lastUpdateTimestamp: number | bigint;
|
|
73
|
+
minBaseAmountOut: number | bigint;
|
|
74
|
+
ixName: string;
|
|
75
|
+
cashbackFeeBasisPoints: number | bigint;
|
|
76
|
+
cashback: number | bigint;
|
|
52
77
|
};
|
|
53
|
-
export declare function getBuyEventEncoder():
|
|
54
|
-
export declare function getBuyEventDecoder():
|
|
55
|
-
export declare function getBuyEventCodec():
|
|
78
|
+
export declare function getBuyEventEncoder(): Encoder<BuyEventArgs>;
|
|
79
|
+
export declare function getBuyEventDecoder(): Decoder<BuyEvent>;
|
|
80
|
+
export declare function getBuyEventCodec(): Codec<BuyEventArgs, BuyEvent>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type ClaimCashbackEvent = {
|
|
10
|
+
user: Address;
|
|
11
|
+
amount: bigint;
|
|
12
|
+
timestamp: bigint;
|
|
13
|
+
totalClaimed: bigint;
|
|
14
|
+
totalCashbackEarned: bigint;
|
|
15
|
+
};
|
|
16
|
+
export type ClaimCashbackEventArgs = {
|
|
17
|
+
user: Address;
|
|
18
|
+
amount: number | bigint;
|
|
19
|
+
timestamp: number | bigint;
|
|
20
|
+
totalClaimed: number | bigint;
|
|
21
|
+
totalCashbackEarned: number | bigint;
|
|
22
|
+
};
|
|
23
|
+
export declare function getClaimCashbackEventEncoder(): FixedSizeEncoder<ClaimCashbackEventArgs>;
|
|
24
|
+
export declare function getClaimCashbackEventDecoder(): FixedSizeDecoder<ClaimCashbackEvent>;
|
|
25
|
+
export declare function getClaimCashbackEventCodec(): FixedSizeCodec<ClaimCashbackEventArgs, ClaimCashbackEvent>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type ClaimTokenIncentivesEvent = {
|
|
10
|
+
user: Address;
|
|
11
|
+
mint: Address;
|
|
12
|
+
amount: bigint;
|
|
13
|
+
timestamp: bigint;
|
|
14
|
+
totalClaimedTokens: bigint;
|
|
15
|
+
currentSolVolume: bigint;
|
|
16
|
+
};
|
|
17
|
+
export type ClaimTokenIncentivesEventArgs = {
|
|
18
|
+
user: Address;
|
|
19
|
+
mint: Address;
|
|
20
|
+
amount: number | bigint;
|
|
21
|
+
timestamp: number | bigint;
|
|
22
|
+
totalClaimedTokens: number | bigint;
|
|
23
|
+
currentSolVolume: number | bigint;
|
|
24
|
+
};
|
|
25
|
+
export declare function getClaimTokenIncentivesEventEncoder(): FixedSizeEncoder<ClaimTokenIncentivesEventArgs>;
|
|
26
|
+
export declare function getClaimTokenIncentivesEventDecoder(): FixedSizeDecoder<ClaimTokenIncentivesEvent>;
|
|
27
|
+
export declare function getClaimTokenIncentivesEventCodec(): FixedSizeCodec<ClaimTokenIncentivesEventArgs, ClaimTokenIncentivesEvent>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type CloseUserVolumeAccumulatorEvent = {
|
|
10
|
+
user: Address;
|
|
11
|
+
timestamp: bigint;
|
|
12
|
+
totalUnclaimedTokens: bigint;
|
|
13
|
+
totalClaimedTokens: bigint;
|
|
14
|
+
currentSolVolume: bigint;
|
|
15
|
+
lastUpdateTimestamp: bigint;
|
|
16
|
+
};
|
|
17
|
+
export type CloseUserVolumeAccumulatorEventArgs = {
|
|
18
|
+
user: Address;
|
|
19
|
+
timestamp: number | bigint;
|
|
20
|
+
totalUnclaimedTokens: number | bigint;
|
|
21
|
+
totalClaimedTokens: number | bigint;
|
|
22
|
+
currentSolVolume: number | bigint;
|
|
23
|
+
lastUpdateTimestamp: number | bigint;
|
|
24
|
+
};
|
|
25
|
+
export declare function getCloseUserVolumeAccumulatorEventEncoder(): FixedSizeEncoder<CloseUserVolumeAccumulatorEventArgs>;
|
|
26
|
+
export declare function getCloseUserVolumeAccumulatorEventDecoder(): FixedSizeDecoder<CloseUserVolumeAccumulatorEvent>;
|
|
27
|
+
export declare function getCloseUserVolumeAccumulatorEventCodec(): FixedSizeCodec<CloseUserVolumeAccumulatorEventArgs, CloseUserVolumeAccumulatorEvent>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type CollectCoinCreatorFeeEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
coinCreator: Address;
|
|
12
|
+
coinCreatorFee: bigint;
|
|
13
|
+
coinCreatorVaultAta: Address;
|
|
14
|
+
coinCreatorTokenAccount: Address;
|
|
15
|
+
};
|
|
16
|
+
export type CollectCoinCreatorFeeEventArgs = {
|
|
17
|
+
timestamp: number | bigint;
|
|
18
|
+
coinCreator: Address;
|
|
19
|
+
coinCreatorFee: number | bigint;
|
|
20
|
+
coinCreatorVaultAta: Address;
|
|
21
|
+
coinCreatorTokenAccount: Address;
|
|
22
|
+
};
|
|
23
|
+
export declare function getCollectCoinCreatorFeeEventEncoder(): FixedSizeEncoder<CollectCoinCreatorFeeEventArgs>;
|
|
24
|
+
export declare function getCollectCoinCreatorFeeEventDecoder(): FixedSizeDecoder<CollectCoinCreatorFeeEvent>;
|
|
25
|
+
export declare function getCollectCoinCreatorFeeEventCodec(): FixedSizeCodec<CollectCoinCreatorFeeEventArgs, CollectCoinCreatorFeeEvent>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export declare enum ConfigStatus {
|
|
10
|
+
Paused = 0,
|
|
11
|
+
Active = 1
|
|
12
|
+
}
|
|
13
|
+
export type ConfigStatusArgs = ConfigStatus;
|
|
14
|
+
export declare function getConfigStatusEncoder(): FixedSizeEncoder<ConfigStatusArgs>;
|
|
15
|
+
export declare function getConfigStatusDecoder(): FixedSizeDecoder<ConfigStatus>;
|
|
16
|
+
export declare function getConfigStatusCodec(): FixedSizeCodec<ConfigStatusArgs, ConfigStatus>;
|
|
@@ -12,6 +12,8 @@ export type CreateConfigEvent = {
|
|
|
12
12
|
lpFeeBasisPoints: bigint;
|
|
13
13
|
protocolFeeBasisPoints: bigint;
|
|
14
14
|
protocolFeeRecipients: Array<Address>;
|
|
15
|
+
coinCreatorFeeBasisPoints: bigint;
|
|
16
|
+
adminSetCoinCreatorAuthority: Address;
|
|
15
17
|
};
|
|
16
18
|
export type CreateConfigEventArgs = {
|
|
17
19
|
timestamp: number | bigint;
|
|
@@ -19,6 +21,8 @@ export type CreateConfigEventArgs = {
|
|
|
19
21
|
lpFeeBasisPoints: number | bigint;
|
|
20
22
|
protocolFeeBasisPoints: number | bigint;
|
|
21
23
|
protocolFeeRecipients: Array<Address>;
|
|
24
|
+
coinCreatorFeeBasisPoints: number | bigint;
|
|
25
|
+
adminSetCoinCreatorAuthority: Address;
|
|
22
26
|
};
|
|
23
27
|
export declare function getCreateConfigEventEncoder(): FixedSizeEncoder<CreateConfigEventArgs>;
|
|
24
28
|
export declare function getCreateConfigEventDecoder(): FixedSizeDecoder<CreateConfigEvent>;
|
|
@@ -26,6 +26,8 @@ export type CreatePoolEvent = {
|
|
|
26
26
|
lpMint: Address;
|
|
27
27
|
userBaseTokenAccount: Address;
|
|
28
28
|
userQuoteTokenAccount: Address;
|
|
29
|
+
coinCreator: Address;
|
|
30
|
+
isMayhemMode: boolean;
|
|
29
31
|
};
|
|
30
32
|
export type CreatePoolEventArgs = {
|
|
31
33
|
timestamp: number | bigint;
|
|
@@ -47,6 +49,8 @@ export type CreatePoolEventArgs = {
|
|
|
47
49
|
lpMint: Address;
|
|
48
50
|
userBaseTokenAccount: Address;
|
|
49
51
|
userQuoteTokenAccount: Address;
|
|
52
|
+
coinCreator: Address;
|
|
53
|
+
isMayhemMode: boolean;
|
|
50
54
|
};
|
|
51
55
|
export declare function getCreatePoolEventEncoder(): FixedSizeEncoder<CreatePoolEventArgs>;
|
|
52
56
|
export declare function getCreatePoolEventDecoder(): FixedSizeDecoder<CreatePoolEvent>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
import { type Fees, type FeesArgs } from '.';
|
|
10
|
+
export type FeeTier = {
|
|
11
|
+
marketCapLamportsThreshold: bigint;
|
|
12
|
+
fees: Fees;
|
|
13
|
+
};
|
|
14
|
+
export type FeeTierArgs = {
|
|
15
|
+
marketCapLamportsThreshold: number | bigint;
|
|
16
|
+
fees: FeesArgs;
|
|
17
|
+
};
|
|
18
|
+
export declare function getFeeTierEncoder(): FixedSizeEncoder<FeeTierArgs>;
|
|
19
|
+
export declare function getFeeTierDecoder(): FixedSizeDecoder<FeeTier>;
|
|
20
|
+
export declare function getFeeTierCodec(): FixedSizeCodec<FeeTierArgs, FeeTier>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type Fees = {
|
|
10
|
+
lpFeeBps: bigint;
|
|
11
|
+
protocolFeeBps: bigint;
|
|
12
|
+
creatorFeeBps: bigint;
|
|
13
|
+
};
|
|
14
|
+
export type FeesArgs = {
|
|
15
|
+
lpFeeBps: number | bigint;
|
|
16
|
+
protocolFeeBps: number | bigint;
|
|
17
|
+
creatorFeeBps: number | bigint;
|
|
18
|
+
};
|
|
19
|
+
export declare function getFeesEncoder(): FixedSizeEncoder<FeesArgs>;
|
|
20
|
+
export declare function getFeesDecoder(): FixedSizeDecoder<Fees>;
|
|
21
|
+
export declare function getFeesCodec(): FixedSizeCodec<FeesArgs, Fees>;
|
|
@@ -5,15 +5,30 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
|
+
export * from './adminSetCoinCreatorEvent';
|
|
9
|
+
export * from './adminUpdateTokenIncentivesEvent';
|
|
8
10
|
export * from './buyEvent';
|
|
11
|
+
export * from './claimCashbackEvent';
|
|
12
|
+
export * from './claimTokenIncentivesEvent';
|
|
13
|
+
export * from './closeUserVolumeAccumulatorEvent';
|
|
14
|
+
export * from './collectCoinCreatorFeeEvent';
|
|
15
|
+
export * from './configStatus';
|
|
9
16
|
export * from './createConfigEvent';
|
|
10
17
|
export * from './createPoolEvent';
|
|
11
18
|
export * from './depositEvent';
|
|
12
19
|
export * from './disableEvent';
|
|
13
20
|
export * from './extendAccountEvent';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
21
|
+
export * from './fees';
|
|
22
|
+
export * from './feeTier';
|
|
23
|
+
export * from './initUserVolumeAccumulatorEvent';
|
|
24
|
+
export * from './migratePoolCoinCreatorEvent';
|
|
25
|
+
export * from './optionBool';
|
|
26
|
+
export * from './reservedFeeRecipientsEvent';
|
|
16
27
|
export * from './sellEvent';
|
|
28
|
+
export * from './setBondingCurveCoinCreatorEvent';
|
|
29
|
+
export * from './setMetaplexCoinCreatorEvent';
|
|
30
|
+
export * from './shareholder';
|
|
31
|
+
export * from './syncUserVolumeAccumulatorEvent';
|
|
17
32
|
export * from './updateAdminEvent';
|
|
18
33
|
export * from './updateFeeConfigEvent';
|
|
19
34
|
export * from './withdrawEvent';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
|
|
9
|
+
export type InitUserVolumeAccumulatorEvent = {
|
|
10
|
+
payer: Address;
|
|
11
|
+
user: Address;
|
|
12
|
+
timestamp: bigint;
|
|
13
|
+
};
|
|
14
|
+
export type InitUserVolumeAccumulatorEventArgs = {
|
|
15
|
+
payer: Address;
|
|
16
|
+
user: Address;
|
|
17
|
+
timestamp: number | bigint;
|
|
18
|
+
};
|
|
19
|
+
export declare function getInitUserVolumeAccumulatorEventEncoder(): FixedSizeEncoder<InitUserVolumeAccumulatorEventArgs>;
|
|
20
|
+
export declare function getInitUserVolumeAccumulatorEventDecoder(): FixedSizeDecoder<InitUserVolumeAccumulatorEvent>;
|
|
21
|
+
export declare function getInitUserVolumeAccumulatorEventCodec(): FixedSizeCodec<InitUserVolumeAccumulatorEventArgs, InitUserVolumeAccumulatorEvent>;
|