pump-kit 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@pump-kit.png +0 -0
- package/README.md +133 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +173 -0
- package/dist/types/ammsdk/bondingCurveMath.d.ts +41 -0
- package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +39 -0
- package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +33 -0
- package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +61 -0
- package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
- package/dist/types/ammsdk/generated/accounts/index.d.ts +13 -0
- package/dist/types/ammsdk/generated/accounts/pool.d.ts +47 -0
- package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +39 -0
- package/dist/types/ammsdk/generated/errors/index.d.ts +8 -0
- package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +101 -0
- package/dist/types/ammsdk/generated/index.d.ts +12 -0
- 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 +144 -0
- package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +144 -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 +79 -0
- package/dist/types/ammsdk/generated/instructions/createPool.d.ts +127 -0
- package/dist/types/ammsdk/generated/instructions/deposit.d.ts +111 -0
- package/dist/types/ammsdk/generated/instructions/disable.d.ts +75 -0
- package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/index.d.ts +26 -0
- package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
- package/dist/types/ammsdk/generated/instructions/sell.d.ts +131 -0
- package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +75 -0
- package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +111 -0
- package/dist/types/ammsdk/generated/programs/index.d.ts +8 -0
- package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +84 -0
- package/dist/types/ammsdk/generated/shared/index.d.ts +49 -0
- 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 +76 -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/createConfigEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +55 -0
- package/dist/types/ammsdk/generated/types/depositEvent.d.ts +47 -0
- package/dist/types/ammsdk/generated/types/disableEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/extendAccountEvent.d.ts +25 -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 +29 -0
- package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/optionBool.d.ts +13 -0
- package/dist/types/ammsdk/generated/types/sellEvent.d.ts +61 -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/syncUserVolumeAccumulatorEvent.d.ts +23 -0
- package/dist/types/ammsdk/generated/types/updateAdminEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/withdrawEvent.d.ts +47 -0
- package/dist/types/clients/amm.d.ts +109 -0
- package/dist/types/clients/pump.d.ts +76 -0
- package/dist/types/config/addresses.d.ts +12 -0
- package/dist/types/config/commitment.d.ts +4 -0
- package/dist/types/config/connection.d.ts +10 -0
- package/dist/types/config/constants.d.ts +4 -0
- package/dist/types/config/polyfills.d.ts +1 -0
- package/dist/types/events/pumpEvents.d.ts +30 -0
- package/dist/types/helpers/createAndBuy.d.ts +34 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/liquidity.d.ts +47 -0
- package/dist/types/pda/ata.d.ts +29 -0
- package/dist/types/pda/pump.d.ts +46 -0
- package/dist/types/pda/pumpAmm.d.ts +55 -0
- package/dist/types/pumpsdk/generated/accounts/bondingCurve.d.ts +39 -0
- package/dist/types/pumpsdk/generated/accounts/feeConfig.d.ts +33 -0
- package/dist/types/pumpsdk/generated/accounts/global.d.ts +59 -0
- package/dist/types/pumpsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
- package/dist/types/pumpsdk/generated/accounts/index.d.ts +12 -0
- package/dist/types/pumpsdk/generated/accounts/userVolumeAccumulator.d.ts +39 -0
- package/dist/types/pumpsdk/generated/errors/index.d.ts +8 -0
- package/dist/types/pumpsdk/generated/errors/pump.d.ts +105 -0
- package/dist/types/pumpsdk/generated/index.d.ts +12 -0
- package/dist/types/pumpsdk/generated/instructions/adminSetCreator.d.ts +67 -0
- package/dist/types/pumpsdk/generated/instructions/adminSetIdlAuthority.d.ts +71 -0
- package/dist/types/pumpsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
- package/dist/types/pumpsdk/generated/instructions/buy.d.ts +116 -0
- package/dist/types/pumpsdk/generated/instructions/buyExactSolIn.d.ts +116 -0
- package/dist/types/pumpsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
- package/dist/types/pumpsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
- package/dist/types/pumpsdk/generated/instructions/collectCreatorFee.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/create.d.ts +111 -0
- package/dist/types/pumpsdk/generated/instructions/extendAccount.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/index.d.ts +26 -0
- package/dist/types/pumpsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
- package/dist/types/pumpsdk/generated/instructions/initialize.d.ts +50 -0
- package/dist/types/pumpsdk/generated/instructions/migrate.d.ts +134 -0
- package/dist/types/pumpsdk/generated/instructions/sell.d.ts +103 -0
- package/dist/types/pumpsdk/generated/instructions/setCreator.d.ts +71 -0
- package/dist/types/pumpsdk/generated/instructions/setMetaplexCreator.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/setParams.d.ts +99 -0
- package/dist/types/pumpsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/updateGlobalAuthority.d.ts +58 -0
- package/dist/types/pumpsdk/generated/programs/index.d.ts +8 -0
- package/dist/types/pumpsdk/generated/programs/pump.d.ts +83 -0
- package/dist/types/pumpsdk/generated/shared/index.d.ts +49 -0
- package/dist/types/pumpsdk/generated/types/adminSetCreatorEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/adminSetIdlAuthorityEvent.d.ts +15 -0
- package/dist/types/pumpsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
- package/dist/types/pumpsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/collectCreatorFeeEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/completeEvent.d.ts +23 -0
- package/dist/types/pumpsdk/generated/types/completePumpAmmMigrationEvent.d.ts +31 -0
- package/dist/types/pumpsdk/generated/types/createEvent.d.ts +39 -0
- package/dist/types/pumpsdk/generated/types/extendAccountEvent.d.ts +25 -0
- package/dist/types/pumpsdk/generated/types/feeTier.d.ts +20 -0
- package/dist/types/pumpsdk/generated/types/fees.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/index.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/optionBool.d.ts +13 -0
- package/dist/types/pumpsdk/generated/types/setCreatorEvent.d.ts +23 -0
- package/dist/types/pumpsdk/generated/types/setMetaplexCreatorEvent.d.ts +25 -0
- package/dist/types/pumpsdk/generated/types/setParamsEvent.d.ts +43 -0
- package/dist/types/pumpsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
- package/dist/types/pumpsdk/generated/types/tradeEvent.d.ts +60 -0
- package/dist/types/pumpsdk/generated/types/updateGlobalAuthorityEvent.d.ts +23 -0
- package/dist/types/recipes/buy.d.ts +51 -0
- package/dist/types/recipes/mintFirstBuy.d.ts +51 -0
- package/dist/types/recipes/provideLiquidity.d.ts +42 -0
- package/dist/types/recipes/removeLiquidity.d.ts +40 -0
- package/dist/types/recipes/sell.d.ts +39 -0
- package/dist/types/simple.d.ts +10 -0
- package/dist/types/swap.d.ts +49 -0
- package/dist/types/utils/amounts.d.ts +4 -0
- package/dist/types/utils/ata.d.ts +15 -0
- package/dist/types/utils/slippage.d.ts +37 -0
- package/dist/types/utils/transaction.d.ts +101 -0
- package/dist/types/utils/wsol.d.ts +18 -0
- package/metadata/social.json +8 -0
- package/package.json +56 -0
|
@@ -0,0 +1,99 @@
|
|
|
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 AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { PUMP_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const SET_PARAMS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getSetParamsDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type SetParamsInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountAuthority 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
|
+
TAccountGlobal extends string ? WritableAccount<TAccountGlobal> : TAccountGlobal,
|
|
14
|
+
TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
15
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
16
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
17
|
+
...TRemainingAccounts
|
|
18
|
+
]>;
|
|
19
|
+
export type SetParamsInstructionData = {
|
|
20
|
+
discriminator: ReadonlyUint8Array;
|
|
21
|
+
initialVirtualTokenReserves: bigint;
|
|
22
|
+
initialVirtualSolReserves: bigint;
|
|
23
|
+
initialRealTokenReserves: bigint;
|
|
24
|
+
tokenTotalSupply: bigint;
|
|
25
|
+
feeBasisPoints: bigint;
|
|
26
|
+
withdrawAuthority: Address;
|
|
27
|
+
enableMigrate: boolean;
|
|
28
|
+
poolMigrationFee: bigint;
|
|
29
|
+
creatorFeeBasisPoints: bigint;
|
|
30
|
+
setCreatorAuthority: Address;
|
|
31
|
+
adminSetCreatorAuthority: Address;
|
|
32
|
+
};
|
|
33
|
+
export type SetParamsInstructionDataArgs = {
|
|
34
|
+
initialVirtualTokenReserves: number | bigint;
|
|
35
|
+
initialVirtualSolReserves: number | bigint;
|
|
36
|
+
initialRealTokenReserves: number | bigint;
|
|
37
|
+
tokenTotalSupply: number | bigint;
|
|
38
|
+
feeBasisPoints: number | bigint;
|
|
39
|
+
withdrawAuthority: Address;
|
|
40
|
+
enableMigrate: boolean;
|
|
41
|
+
poolMigrationFee: number | bigint;
|
|
42
|
+
creatorFeeBasisPoints: number | bigint;
|
|
43
|
+
setCreatorAuthority: Address;
|
|
44
|
+
adminSetCreatorAuthority: Address;
|
|
45
|
+
};
|
|
46
|
+
export declare function getSetParamsInstructionDataEncoder(): FixedSizeEncoder<SetParamsInstructionDataArgs>;
|
|
47
|
+
export declare function getSetParamsInstructionDataDecoder(): FixedSizeDecoder<SetParamsInstructionData>;
|
|
48
|
+
export declare function getSetParamsInstructionDataCodec(): FixedSizeCodec<SetParamsInstructionDataArgs, SetParamsInstructionData>;
|
|
49
|
+
export type SetParamsAsyncInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
50
|
+
global?: Address<TAccountGlobal>;
|
|
51
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
52
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
53
|
+
program: Address<TAccountProgram>;
|
|
54
|
+
initialVirtualTokenReserves: SetParamsInstructionDataArgs['initialVirtualTokenReserves'];
|
|
55
|
+
initialVirtualSolReserves: SetParamsInstructionDataArgs['initialVirtualSolReserves'];
|
|
56
|
+
initialRealTokenReserves: SetParamsInstructionDataArgs['initialRealTokenReserves'];
|
|
57
|
+
tokenTotalSupply: SetParamsInstructionDataArgs['tokenTotalSupply'];
|
|
58
|
+
feeBasisPoints: SetParamsInstructionDataArgs['feeBasisPoints'];
|
|
59
|
+
withdrawAuthority: SetParamsInstructionDataArgs['withdrawAuthority'];
|
|
60
|
+
enableMigrate: SetParamsInstructionDataArgs['enableMigrate'];
|
|
61
|
+
poolMigrationFee: SetParamsInstructionDataArgs['poolMigrationFee'];
|
|
62
|
+
creatorFeeBasisPoints: SetParamsInstructionDataArgs['creatorFeeBasisPoints'];
|
|
63
|
+
setCreatorAuthority: SetParamsInstructionDataArgs['setCreatorAuthority'];
|
|
64
|
+
adminSetCreatorAuthority: SetParamsInstructionDataArgs['adminSetCreatorAuthority'];
|
|
65
|
+
};
|
|
66
|
+
export declare function getSetParamsInstructionAsync<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetParamsAsyncInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
67
|
+
programAddress?: TProgramAddress;
|
|
68
|
+
}): Promise<SetParamsInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>>;
|
|
69
|
+
export type SetParamsInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
70
|
+
global: Address<TAccountGlobal>;
|
|
71
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
72
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
73
|
+
program: Address<TAccountProgram>;
|
|
74
|
+
initialVirtualTokenReserves: SetParamsInstructionDataArgs['initialVirtualTokenReserves'];
|
|
75
|
+
initialVirtualSolReserves: SetParamsInstructionDataArgs['initialVirtualSolReserves'];
|
|
76
|
+
initialRealTokenReserves: SetParamsInstructionDataArgs['initialRealTokenReserves'];
|
|
77
|
+
tokenTotalSupply: SetParamsInstructionDataArgs['tokenTotalSupply'];
|
|
78
|
+
feeBasisPoints: SetParamsInstructionDataArgs['feeBasisPoints'];
|
|
79
|
+
withdrawAuthority: SetParamsInstructionDataArgs['withdrawAuthority'];
|
|
80
|
+
enableMigrate: SetParamsInstructionDataArgs['enableMigrate'];
|
|
81
|
+
poolMigrationFee: SetParamsInstructionDataArgs['poolMigrationFee'];
|
|
82
|
+
creatorFeeBasisPoints: SetParamsInstructionDataArgs['creatorFeeBasisPoints'];
|
|
83
|
+
setCreatorAuthority: SetParamsInstructionDataArgs['setCreatorAuthority'];
|
|
84
|
+
adminSetCreatorAuthority: SetParamsInstructionDataArgs['adminSetCreatorAuthority'];
|
|
85
|
+
};
|
|
86
|
+
export declare function getSetParamsInstruction<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetParamsInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
87
|
+
programAddress?: TProgramAddress;
|
|
88
|
+
}): SetParamsInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>;
|
|
89
|
+
export type ParsedSetParamsInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
90
|
+
programAddress: Address<TProgram>;
|
|
91
|
+
accounts: {
|
|
92
|
+
global: TAccountMetas[0];
|
|
93
|
+
authority: TAccountMetas[1];
|
|
94
|
+
eventAuthority: TAccountMetas[2];
|
|
95
|
+
program: TAccountMetas[3];
|
|
96
|
+
};
|
|
97
|
+
data: SetParamsInstructionData;
|
|
98
|
+
};
|
|
99
|
+
export declare function parseSetParamsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetParamsInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 AccountMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { PUMP_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const SYNC_USER_VOLUME_ACCUMULATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getSyncUserVolumeAccumulatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type SyncUserVolumeAccumulatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountGlobalVolumeAccumulator extends string | AccountMeta<string> = string, TAccountUserVolumeAccumulator 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
|
+
TAccountUser extends string ? ReadonlyAccount<TAccountUser> : TAccountUser,
|
|
14
|
+
TAccountGlobalVolumeAccumulator extends string ? ReadonlyAccount<TAccountGlobalVolumeAccumulator> : TAccountGlobalVolumeAccumulator,
|
|
15
|
+
TAccountUserVolumeAccumulator extends string ? WritableAccount<TAccountUserVolumeAccumulator> : TAccountUserVolumeAccumulator,
|
|
16
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
17
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type SyncUserVolumeAccumulatorInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
};
|
|
23
|
+
export type SyncUserVolumeAccumulatorInstructionDataArgs = {};
|
|
24
|
+
export declare function getSyncUserVolumeAccumulatorInstructionDataEncoder(): FixedSizeEncoder<SyncUserVolumeAccumulatorInstructionDataArgs>;
|
|
25
|
+
export declare function getSyncUserVolumeAccumulatorInstructionDataDecoder(): FixedSizeDecoder<SyncUserVolumeAccumulatorInstructionData>;
|
|
26
|
+
export declare function getSyncUserVolumeAccumulatorInstructionDataCodec(): FixedSizeCodec<SyncUserVolumeAccumulatorInstructionDataArgs, SyncUserVolumeAccumulatorInstructionData>;
|
|
27
|
+
export type SyncUserVolumeAccumulatorAsyncInput<TAccountUser extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
28
|
+
user: Address<TAccountUser>;
|
|
29
|
+
globalVolumeAccumulator?: Address<TAccountGlobalVolumeAccumulator>;
|
|
30
|
+
userVolumeAccumulator?: Address<TAccountUserVolumeAccumulator>;
|
|
31
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
32
|
+
program: Address<TAccountProgram>;
|
|
33
|
+
};
|
|
34
|
+
export declare function getSyncUserVolumeAccumulatorInstructionAsync<TAccountUser extends string, TAccountGlobalVolumeAccumulator extends string, TAccountUserVolumeAccumulator extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SyncUserVolumeAccumulatorAsyncInput<TAccountUser, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
36
|
+
}): Promise<SyncUserVolumeAccumulatorInstruction<TProgramAddress, TAccountUser, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>>;
|
|
37
|
+
export type SyncUserVolumeAccumulatorInput<TAccountUser extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
user: Address<TAccountUser>;
|
|
39
|
+
globalVolumeAccumulator: Address<TAccountGlobalVolumeAccumulator>;
|
|
40
|
+
userVolumeAccumulator: Address<TAccountUserVolumeAccumulator>;
|
|
41
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
42
|
+
program: Address<TAccountProgram>;
|
|
43
|
+
};
|
|
44
|
+
export declare function getSyncUserVolumeAccumulatorInstruction<TAccountUser extends string, TAccountGlobalVolumeAccumulator extends string, TAccountUserVolumeAccumulator extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SyncUserVolumeAccumulatorInput<TAccountUser, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
45
|
+
programAddress?: TProgramAddress;
|
|
46
|
+
}): SyncUserVolumeAccumulatorInstruction<TProgramAddress, TAccountUser, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>;
|
|
47
|
+
export type ParsedSyncUserVolumeAccumulatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
|
+
programAddress: Address<TProgram>;
|
|
49
|
+
accounts: {
|
|
50
|
+
user: TAccountMetas[0];
|
|
51
|
+
globalVolumeAccumulator: TAccountMetas[1];
|
|
52
|
+
userVolumeAccumulator: TAccountMetas[2];
|
|
53
|
+
eventAuthority: TAccountMetas[3];
|
|
54
|
+
program: TAccountMetas[4];
|
|
55
|
+
};
|
|
56
|
+
data: SyncUserVolumeAccumulatorInstructionData;
|
|
57
|
+
};
|
|
58
|
+
export declare function parseSyncUserVolumeAccumulatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSyncUserVolumeAccumulatorInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 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
|
+
import { PUMP_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const UPDATE_GLOBAL_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getUpdateGlobalAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type UpdateGlobalAuthorityInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountAuthority extends string | AccountMeta<string> = string, TAccountNewAuthority 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
|
+
TAccountGlobal extends string ? WritableAccount<TAccountGlobal> : TAccountGlobal,
|
|
14
|
+
TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
|
|
15
|
+
TAccountNewAuthority extends string ? ReadonlyAccount<TAccountNewAuthority> : TAccountNewAuthority,
|
|
16
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
17
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type UpdateGlobalAuthorityInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
};
|
|
23
|
+
export type UpdateGlobalAuthorityInstructionDataArgs = {};
|
|
24
|
+
export declare function getUpdateGlobalAuthorityInstructionDataEncoder(): FixedSizeEncoder<UpdateGlobalAuthorityInstructionDataArgs>;
|
|
25
|
+
export declare function getUpdateGlobalAuthorityInstructionDataDecoder(): FixedSizeDecoder<UpdateGlobalAuthorityInstructionData>;
|
|
26
|
+
export declare function getUpdateGlobalAuthorityInstructionDataCodec(): FixedSizeCodec<UpdateGlobalAuthorityInstructionDataArgs, UpdateGlobalAuthorityInstructionData>;
|
|
27
|
+
export type UpdateGlobalAuthorityAsyncInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountNewAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
28
|
+
global?: Address<TAccountGlobal>;
|
|
29
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
30
|
+
newAuthority: Address<TAccountNewAuthority>;
|
|
31
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
32
|
+
program: Address<TAccountProgram>;
|
|
33
|
+
};
|
|
34
|
+
export declare function getUpdateGlobalAuthorityInstructionAsync<TAccountGlobal extends string, TAccountAuthority extends string, TAccountNewAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: UpdateGlobalAuthorityAsyncInput<TAccountGlobal, TAccountAuthority, TAccountNewAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
36
|
+
}): Promise<UpdateGlobalAuthorityInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountNewAuthority, TAccountEventAuthority, TAccountProgram>>;
|
|
37
|
+
export type UpdateGlobalAuthorityInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountNewAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
global: Address<TAccountGlobal>;
|
|
39
|
+
authority: TransactionSigner<TAccountAuthority>;
|
|
40
|
+
newAuthority: Address<TAccountNewAuthority>;
|
|
41
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
42
|
+
program: Address<TAccountProgram>;
|
|
43
|
+
};
|
|
44
|
+
export declare function getUpdateGlobalAuthorityInstruction<TAccountGlobal extends string, TAccountAuthority extends string, TAccountNewAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: UpdateGlobalAuthorityInput<TAccountGlobal, TAccountAuthority, TAccountNewAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
45
|
+
programAddress?: TProgramAddress;
|
|
46
|
+
}): UpdateGlobalAuthorityInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountNewAuthority, TAccountEventAuthority, TAccountProgram>;
|
|
47
|
+
export type ParsedUpdateGlobalAuthorityInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
|
+
programAddress: Address<TProgram>;
|
|
49
|
+
accounts: {
|
|
50
|
+
global: TAccountMetas[0];
|
|
51
|
+
authority: TAccountMetas[1];
|
|
52
|
+
newAuthority: TAccountMetas[2];
|
|
53
|
+
eventAuthority: TAccountMetas[3];
|
|
54
|
+
program: TAccountMetas[4];
|
|
55
|
+
};
|
|
56
|
+
data: UpdateGlobalAuthorityInstructionData;
|
|
57
|
+
};
|
|
58
|
+
export declare function parseUpdateGlobalAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateGlobalAuthorityInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
import { type ParsedAdminSetCreatorInstruction, type ParsedAdminSetIdlAuthorityInstruction, type ParsedAdminUpdateTokenIncentivesInstruction, type ParsedBuyExactSolInInstruction, type ParsedBuyInstruction, type ParsedClaimTokenIncentivesInstruction, type ParsedCloseUserVolumeAccumulatorInstruction, type ParsedCollectCreatorFeeInstruction, type ParsedCreateInstruction, type ParsedExtendAccountInstruction, type ParsedInitializeInstruction, type ParsedInitUserVolumeAccumulatorInstruction, type ParsedMigrateInstruction, type ParsedSellInstruction, type ParsedSetCreatorInstruction, type ParsedSetMetaplexCreatorInstruction, type ParsedSetParamsInstruction, type ParsedSyncUserVolumeAccumulatorInstruction, type ParsedUpdateGlobalAuthorityInstruction } from '../instructions';
|
|
10
|
+
export declare const PUMP_PROGRAM_ADDRESS: Address<"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P">;
|
|
11
|
+
export declare enum PumpAccount {
|
|
12
|
+
BondingCurve = 0,
|
|
13
|
+
FeeConfig = 1,
|
|
14
|
+
Global = 2,
|
|
15
|
+
GlobalVolumeAccumulator = 3,
|
|
16
|
+
UserVolumeAccumulator = 4
|
|
17
|
+
}
|
|
18
|
+
export declare function identifyPumpAccount(account: {
|
|
19
|
+
data: ReadonlyUint8Array;
|
|
20
|
+
} | ReadonlyUint8Array): PumpAccount;
|
|
21
|
+
export declare enum PumpInstruction {
|
|
22
|
+
AdminSetCreator = 0,
|
|
23
|
+
AdminSetIdlAuthority = 1,
|
|
24
|
+
AdminUpdateTokenIncentives = 2,
|
|
25
|
+
Buy = 3,
|
|
26
|
+
BuyExactSolIn = 4,
|
|
27
|
+
ClaimTokenIncentives = 5,
|
|
28
|
+
CloseUserVolumeAccumulator = 6,
|
|
29
|
+
CollectCreatorFee = 7,
|
|
30
|
+
Create = 8,
|
|
31
|
+
ExtendAccount = 9,
|
|
32
|
+
InitUserVolumeAccumulator = 10,
|
|
33
|
+
Initialize = 11,
|
|
34
|
+
Migrate = 12,
|
|
35
|
+
Sell = 13,
|
|
36
|
+
SetCreator = 14,
|
|
37
|
+
SetMetaplexCreator = 15,
|
|
38
|
+
SetParams = 16,
|
|
39
|
+
SyncUserVolumeAccumulator = 17,
|
|
40
|
+
UpdateGlobalAuthority = 18
|
|
41
|
+
}
|
|
42
|
+
export declare function identifyPumpInstruction(instruction: {
|
|
43
|
+
data: ReadonlyUint8Array;
|
|
44
|
+
} | ReadonlyUint8Array): PumpInstruction;
|
|
45
|
+
export type ParsedPumpInstruction<TProgram extends string = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P'> = ({
|
|
46
|
+
instructionType: PumpInstruction.AdminSetCreator;
|
|
47
|
+
} & ParsedAdminSetCreatorInstruction<TProgram>) | ({
|
|
48
|
+
instructionType: PumpInstruction.AdminSetIdlAuthority;
|
|
49
|
+
} & ParsedAdminSetIdlAuthorityInstruction<TProgram>) | ({
|
|
50
|
+
instructionType: PumpInstruction.AdminUpdateTokenIncentives;
|
|
51
|
+
} & ParsedAdminUpdateTokenIncentivesInstruction<TProgram>) | ({
|
|
52
|
+
instructionType: PumpInstruction.Buy;
|
|
53
|
+
} & ParsedBuyInstruction<TProgram>) | ({
|
|
54
|
+
instructionType: PumpInstruction.BuyExactSolIn;
|
|
55
|
+
} & ParsedBuyExactSolInInstruction<TProgram>) | ({
|
|
56
|
+
instructionType: PumpInstruction.ClaimTokenIncentives;
|
|
57
|
+
} & ParsedClaimTokenIncentivesInstruction<TProgram>) | ({
|
|
58
|
+
instructionType: PumpInstruction.CloseUserVolumeAccumulator;
|
|
59
|
+
} & ParsedCloseUserVolumeAccumulatorInstruction<TProgram>) | ({
|
|
60
|
+
instructionType: PumpInstruction.CollectCreatorFee;
|
|
61
|
+
} & ParsedCollectCreatorFeeInstruction<TProgram>) | ({
|
|
62
|
+
instructionType: PumpInstruction.Create;
|
|
63
|
+
} & ParsedCreateInstruction<TProgram>) | ({
|
|
64
|
+
instructionType: PumpInstruction.ExtendAccount;
|
|
65
|
+
} & ParsedExtendAccountInstruction<TProgram>) | ({
|
|
66
|
+
instructionType: PumpInstruction.InitUserVolumeAccumulator;
|
|
67
|
+
} & ParsedInitUserVolumeAccumulatorInstruction<TProgram>) | ({
|
|
68
|
+
instructionType: PumpInstruction.Initialize;
|
|
69
|
+
} & ParsedInitializeInstruction<TProgram>) | ({
|
|
70
|
+
instructionType: PumpInstruction.Migrate;
|
|
71
|
+
} & ParsedMigrateInstruction<TProgram>) | ({
|
|
72
|
+
instructionType: PumpInstruction.Sell;
|
|
73
|
+
} & ParsedSellInstruction<TProgram>) | ({
|
|
74
|
+
instructionType: PumpInstruction.SetCreator;
|
|
75
|
+
} & ParsedSetCreatorInstruction<TProgram>) | ({
|
|
76
|
+
instructionType: PumpInstruction.SetMetaplexCreator;
|
|
77
|
+
} & ParsedSetMetaplexCreatorInstruction<TProgram>) | ({
|
|
78
|
+
instructionType: PumpInstruction.SetParams;
|
|
79
|
+
} & ParsedSetParamsInstruction<TProgram>) | ({
|
|
80
|
+
instructionType: PumpInstruction.SyncUserVolumeAccumulator;
|
|
81
|
+
} & ParsedSyncUserVolumeAccumulatorInstruction<TProgram>) | ({
|
|
82
|
+
instructionType: PumpInstruction.UpdateGlobalAuthority;
|
|
83
|
+
} & ParsedUpdateGlobalAuthorityInstruction<TProgram>);
|
|
@@ -0,0 +1,49 @@
|
|
|
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 AccountMeta, type AccountSignerMeta, type Address, type ProgramDerivedAddress, type TransactionSigner } from '@solana/kit';
|
|
9
|
+
/**
|
|
10
|
+
* Asserts that the given value is not null or undefined.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare function expectSome<T>(value: T | null | undefined): T;
|
|
14
|
+
/**
|
|
15
|
+
* Asserts that the given value is a PublicKey.
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare function expectAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): Address<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Asserts that the given value is a PDA.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare function expectProgramDerivedAddress<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): ProgramDerivedAddress<T>;
|
|
24
|
+
/**
|
|
25
|
+
* Asserts that the given value is a TransactionSigner.
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare function expectTransactionSigner<T extends string = string>(value: Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null | undefined): TransactionSigner<T>;
|
|
29
|
+
/**
|
|
30
|
+
* Defines an instruction account to resolve.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export type ResolvedAccount<T extends string = string, U extends Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null = Address<T> | ProgramDerivedAddress<T> | TransactionSigner<T> | null> = {
|
|
34
|
+
isWritable: boolean;
|
|
35
|
+
value: U;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Defines an instruction that stores additional bytes on-chain.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export type InstructionWithByteDelta = {
|
|
42
|
+
byteDelta: number;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Get account metas and signers from resolved accounts.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
export declare function getAccountMetaFactory(programAddress: Address, optionalAccountStrategy: 'omitted' | 'programId'): (account: ResolvedAccount) => AccountMeta | AccountSignerMeta | undefined;
|
|
49
|
+
export declare function isTransactionSigner<TAddress extends string = string>(value: Address<TAddress> | ProgramDerivedAddress<TAddress> | TransactionSigner<TAddress>): value is TransactionSigner<TAddress>;
|
|
@@ -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 AdminSetCreatorEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
adminSetCreatorAuthority: Address;
|
|
12
|
+
mint: Address;
|
|
13
|
+
bondingCurve: Address;
|
|
14
|
+
oldCreator: Address;
|
|
15
|
+
newCreator: Address;
|
|
16
|
+
};
|
|
17
|
+
export type AdminSetCreatorEventArgs = {
|
|
18
|
+
timestamp: number | bigint;
|
|
19
|
+
adminSetCreatorAuthority: Address;
|
|
20
|
+
mint: Address;
|
|
21
|
+
bondingCurve: Address;
|
|
22
|
+
oldCreator: Address;
|
|
23
|
+
newCreator: Address;
|
|
24
|
+
};
|
|
25
|
+
export declare function getAdminSetCreatorEventEncoder(): FixedSizeEncoder<AdminSetCreatorEventArgs>;
|
|
26
|
+
export declare function getAdminSetCreatorEventDecoder(): FixedSizeDecoder<AdminSetCreatorEvent>;
|
|
27
|
+
export declare function getAdminSetCreatorEventCodec(): FixedSizeCodec<AdminSetCreatorEventArgs, AdminSetCreatorEvent>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 AdminSetIdlAuthorityEvent = {
|
|
10
|
+
idlAuthority: Address;
|
|
11
|
+
};
|
|
12
|
+
export type AdminSetIdlAuthorityEventArgs = AdminSetIdlAuthorityEvent;
|
|
13
|
+
export declare function getAdminSetIdlAuthorityEventEncoder(): FixedSizeEncoder<AdminSetIdlAuthorityEventArgs>;
|
|
14
|
+
export declare function getAdminSetIdlAuthorityEventDecoder(): FixedSizeDecoder<AdminSetIdlAuthorityEvent>;
|
|
15
|
+
export declare function getAdminSetIdlAuthorityEventCodec(): FixedSizeCodec<AdminSetIdlAuthorityEventArgs, AdminSetIdlAuthorityEvent>;
|
|
@@ -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>;
|
|
@@ -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,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 CollectCreatorFeeEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
creator: Address;
|
|
12
|
+
creatorFee: bigint;
|
|
13
|
+
};
|
|
14
|
+
export type CollectCreatorFeeEventArgs = {
|
|
15
|
+
timestamp: number | bigint;
|
|
16
|
+
creator: Address;
|
|
17
|
+
creatorFee: number | bigint;
|
|
18
|
+
};
|
|
19
|
+
export declare function getCollectCreatorFeeEventEncoder(): FixedSizeEncoder<CollectCreatorFeeEventArgs>;
|
|
20
|
+
export declare function getCollectCreatorFeeEventDecoder(): FixedSizeDecoder<CollectCreatorFeeEvent>;
|
|
21
|
+
export declare function getCollectCreatorFeeEventCodec(): FixedSizeCodec<CollectCreatorFeeEventArgs, CollectCreatorFeeEvent>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 CompleteEvent = {
|
|
10
|
+
user: Address;
|
|
11
|
+
mint: Address;
|
|
12
|
+
bondingCurve: Address;
|
|
13
|
+
timestamp: bigint;
|
|
14
|
+
};
|
|
15
|
+
export type CompleteEventArgs = {
|
|
16
|
+
user: Address;
|
|
17
|
+
mint: Address;
|
|
18
|
+
bondingCurve: Address;
|
|
19
|
+
timestamp: number | bigint;
|
|
20
|
+
};
|
|
21
|
+
export declare function getCompleteEventEncoder(): FixedSizeEncoder<CompleteEventArgs>;
|
|
22
|
+
export declare function getCompleteEventDecoder(): FixedSizeDecoder<CompleteEvent>;
|
|
23
|
+
export declare function getCompleteEventCodec(): FixedSizeCodec<CompleteEventArgs, CompleteEvent>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CompletePumpAmmMigrationEvent = {
|
|
10
|
+
user: Address;
|
|
11
|
+
mint: Address;
|
|
12
|
+
mintAmount: bigint;
|
|
13
|
+
solAmount: bigint;
|
|
14
|
+
poolMigrationFee: bigint;
|
|
15
|
+
bondingCurve: Address;
|
|
16
|
+
timestamp: bigint;
|
|
17
|
+
pool: Address;
|
|
18
|
+
};
|
|
19
|
+
export type CompletePumpAmmMigrationEventArgs = {
|
|
20
|
+
user: Address;
|
|
21
|
+
mint: Address;
|
|
22
|
+
mintAmount: number | bigint;
|
|
23
|
+
solAmount: number | bigint;
|
|
24
|
+
poolMigrationFee: number | bigint;
|
|
25
|
+
bondingCurve: Address;
|
|
26
|
+
timestamp: number | bigint;
|
|
27
|
+
pool: Address;
|
|
28
|
+
};
|
|
29
|
+
export declare function getCompletePumpAmmMigrationEventEncoder(): FixedSizeEncoder<CompletePumpAmmMigrationEventArgs>;
|
|
30
|
+
export declare function getCompletePumpAmmMigrationEventDecoder(): FixedSizeDecoder<CompletePumpAmmMigrationEvent>;
|
|
31
|
+
export declare function getCompletePumpAmmMigrationEventCodec(): FixedSizeCodec<CompletePumpAmmMigrationEventArgs, CompletePumpAmmMigrationEvent>;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 Codec, type Decoder, type Encoder } from '@solana/kit';
|
|
9
|
+
export type CreateEvent = {
|
|
10
|
+
name: string;
|
|
11
|
+
symbol: string;
|
|
12
|
+
uri: string;
|
|
13
|
+
mint: Address;
|
|
14
|
+
bondingCurve: Address;
|
|
15
|
+
user: Address;
|
|
16
|
+
creator: Address;
|
|
17
|
+
timestamp: bigint;
|
|
18
|
+
virtualTokenReserves: bigint;
|
|
19
|
+
virtualSolReserves: bigint;
|
|
20
|
+
realTokenReserves: bigint;
|
|
21
|
+
tokenTotalSupply: bigint;
|
|
22
|
+
};
|
|
23
|
+
export type CreateEventArgs = {
|
|
24
|
+
name: string;
|
|
25
|
+
symbol: string;
|
|
26
|
+
uri: string;
|
|
27
|
+
mint: Address;
|
|
28
|
+
bondingCurve: Address;
|
|
29
|
+
user: Address;
|
|
30
|
+
creator: Address;
|
|
31
|
+
timestamp: number | bigint;
|
|
32
|
+
virtualTokenReserves: number | bigint;
|
|
33
|
+
virtualSolReserves: number | bigint;
|
|
34
|
+
realTokenReserves: number | bigint;
|
|
35
|
+
tokenTotalSupply: number | bigint;
|
|
36
|
+
};
|
|
37
|
+
export declare function getCreateEventEncoder(): Encoder<CreateEventArgs>;
|
|
38
|
+
export declare function getCreateEventDecoder(): Decoder<CreateEvent>;
|
|
39
|
+
export declare function getCreateEventCodec(): Codec<CreateEventArgs, CreateEvent>;
|
|
@@ -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 ExtendAccountEvent = {
|
|
10
|
+
account: Address;
|
|
11
|
+
user: Address;
|
|
12
|
+
currentSize: bigint;
|
|
13
|
+
newSize: bigint;
|
|
14
|
+
timestamp: bigint;
|
|
15
|
+
};
|
|
16
|
+
export type ExtendAccountEventArgs = {
|
|
17
|
+
account: Address;
|
|
18
|
+
user: Address;
|
|
19
|
+
currentSize: number | bigint;
|
|
20
|
+
newSize: number | bigint;
|
|
21
|
+
timestamp: number | bigint;
|
|
22
|
+
};
|
|
23
|
+
export declare function getExtendAccountEventEncoder(): FixedSizeEncoder<ExtendAccountEventArgs>;
|
|
24
|
+
export declare function getExtendAccountEventDecoder(): FixedSizeDecoder<ExtendAccountEvent>;
|
|
25
|
+
export declare function getExtendAccountEventCodec(): FixedSizeCodec<ExtendAccountEventArgs, ExtendAccountEvent>;
|