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,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 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>;
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
/** ix_name: "buy" | "buy_exact_quote_in" */
|
|
10
|
+
export type BuyEvent = {
|
|
11
|
+
timestamp: bigint;
|
|
12
|
+
baseAmountOut: bigint;
|
|
13
|
+
maxQuoteAmountIn: bigint;
|
|
14
|
+
userBaseTokenReserves: bigint;
|
|
15
|
+
userQuoteTokenReserves: bigint;
|
|
16
|
+
poolBaseTokenReserves: bigint;
|
|
17
|
+
poolQuoteTokenReserves: bigint;
|
|
18
|
+
quoteAmountIn: bigint;
|
|
19
|
+
lpFeeBasisPoints: bigint;
|
|
20
|
+
lpFee: bigint;
|
|
21
|
+
protocolFeeBasisPoints: bigint;
|
|
22
|
+
protocolFee: bigint;
|
|
23
|
+
quoteAmountInWithLpFee: bigint;
|
|
24
|
+
userQuoteAmountIn: bigint;
|
|
25
|
+
pool: Address;
|
|
26
|
+
user: Address;
|
|
27
|
+
userBaseTokenAccount: Address;
|
|
28
|
+
userQuoteTokenAccount: Address;
|
|
29
|
+
protocolFeeRecipient: Address;
|
|
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
|
+
};
|
|
42
|
+
export type BuyEventArgs = {
|
|
43
|
+
timestamp: number | bigint;
|
|
44
|
+
baseAmountOut: number | bigint;
|
|
45
|
+
maxQuoteAmountIn: number | bigint;
|
|
46
|
+
userBaseTokenReserves: number | bigint;
|
|
47
|
+
userQuoteTokenReserves: number | bigint;
|
|
48
|
+
poolBaseTokenReserves: number | bigint;
|
|
49
|
+
poolQuoteTokenReserves: number | bigint;
|
|
50
|
+
quoteAmountIn: number | bigint;
|
|
51
|
+
lpFeeBasisPoints: number | bigint;
|
|
52
|
+
lpFee: number | bigint;
|
|
53
|
+
protocolFeeBasisPoints: number | bigint;
|
|
54
|
+
protocolFee: number | bigint;
|
|
55
|
+
quoteAmountInWithLpFee: number | bigint;
|
|
56
|
+
userQuoteAmountIn: number | bigint;
|
|
57
|
+
pool: Address;
|
|
58
|
+
user: Address;
|
|
59
|
+
userBaseTokenAccount: Address;
|
|
60
|
+
userQuoteTokenAccount: Address;
|
|
61
|
+
protocolFeeRecipient: Address;
|
|
62
|
+
protocolFeeRecipientTokenAccount: Address;
|
|
63
|
+
coinCreator: Address;
|
|
64
|
+
coinCreatorFeeBasisPoints: number | bigint;
|
|
65
|
+
coinCreatorFee: number | bigint;
|
|
66
|
+
trackVolume: boolean;
|
|
67
|
+
totalUnclaimedTokens: number | bigint;
|
|
68
|
+
totalClaimedTokens: number | bigint;
|
|
69
|
+
currentSolVolume: number | bigint;
|
|
70
|
+
lastUpdateTimestamp: number | bigint;
|
|
71
|
+
minBaseAmountOut: number | bigint;
|
|
72
|
+
ixName: string;
|
|
73
|
+
};
|
|
74
|
+
export declare function getBuyEventEncoder(): Encoder<BuyEventArgs>;
|
|
75
|
+
export declare function getBuyEventDecoder(): Decoder<BuyEvent>;
|
|
76
|
+
export declare function getBuyEventCodec(): Codec<BuyEventArgs, BuyEvent>;
|
|
@@ -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,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 CreateConfigEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
admin: Address;
|
|
12
|
+
lpFeeBasisPoints: bigint;
|
|
13
|
+
protocolFeeBasisPoints: bigint;
|
|
14
|
+
protocolFeeRecipients: Array<Address>;
|
|
15
|
+
coinCreatorFeeBasisPoints: bigint;
|
|
16
|
+
adminSetCoinCreatorAuthority: Address;
|
|
17
|
+
};
|
|
18
|
+
export type CreateConfigEventArgs = {
|
|
19
|
+
timestamp: number | bigint;
|
|
20
|
+
admin: Address;
|
|
21
|
+
lpFeeBasisPoints: number | bigint;
|
|
22
|
+
protocolFeeBasisPoints: number | bigint;
|
|
23
|
+
protocolFeeRecipients: Array<Address>;
|
|
24
|
+
coinCreatorFeeBasisPoints: number | bigint;
|
|
25
|
+
adminSetCoinCreatorAuthority: Address;
|
|
26
|
+
};
|
|
27
|
+
export declare function getCreateConfigEventEncoder(): FixedSizeEncoder<CreateConfigEventArgs>;
|
|
28
|
+
export declare function getCreateConfigEventDecoder(): FixedSizeDecoder<CreateConfigEvent>;
|
|
29
|
+
export declare function getCreateConfigEventCodec(): FixedSizeCodec<CreateConfigEventArgs, CreateConfigEvent>;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 CreatePoolEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
index: number;
|
|
12
|
+
creator: Address;
|
|
13
|
+
baseMint: Address;
|
|
14
|
+
quoteMint: Address;
|
|
15
|
+
baseMintDecimals: number;
|
|
16
|
+
quoteMintDecimals: number;
|
|
17
|
+
baseAmountIn: bigint;
|
|
18
|
+
quoteAmountIn: bigint;
|
|
19
|
+
poolBaseAmount: bigint;
|
|
20
|
+
poolQuoteAmount: bigint;
|
|
21
|
+
minimumLiquidity: bigint;
|
|
22
|
+
initialLiquidity: bigint;
|
|
23
|
+
lpTokenAmountOut: bigint;
|
|
24
|
+
poolBump: number;
|
|
25
|
+
pool: Address;
|
|
26
|
+
lpMint: Address;
|
|
27
|
+
userBaseTokenAccount: Address;
|
|
28
|
+
userQuoteTokenAccount: Address;
|
|
29
|
+
coinCreator: Address;
|
|
30
|
+
};
|
|
31
|
+
export type CreatePoolEventArgs = {
|
|
32
|
+
timestamp: number | bigint;
|
|
33
|
+
index: number;
|
|
34
|
+
creator: Address;
|
|
35
|
+
baseMint: Address;
|
|
36
|
+
quoteMint: Address;
|
|
37
|
+
baseMintDecimals: number;
|
|
38
|
+
quoteMintDecimals: number;
|
|
39
|
+
baseAmountIn: number | bigint;
|
|
40
|
+
quoteAmountIn: number | bigint;
|
|
41
|
+
poolBaseAmount: number | bigint;
|
|
42
|
+
poolQuoteAmount: number | bigint;
|
|
43
|
+
minimumLiquidity: number | bigint;
|
|
44
|
+
initialLiquidity: number | bigint;
|
|
45
|
+
lpTokenAmountOut: number | bigint;
|
|
46
|
+
poolBump: number;
|
|
47
|
+
pool: Address;
|
|
48
|
+
lpMint: Address;
|
|
49
|
+
userBaseTokenAccount: Address;
|
|
50
|
+
userQuoteTokenAccount: Address;
|
|
51
|
+
coinCreator: Address;
|
|
52
|
+
};
|
|
53
|
+
export declare function getCreatePoolEventEncoder(): FixedSizeEncoder<CreatePoolEventArgs>;
|
|
54
|
+
export declare function getCreatePoolEventDecoder(): FixedSizeDecoder<CreatePoolEvent>;
|
|
55
|
+
export declare function getCreatePoolEventCodec(): FixedSizeCodec<CreatePoolEventArgs, CreatePoolEvent>;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 DepositEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
lpTokenAmountOut: bigint;
|
|
12
|
+
maxBaseAmountIn: bigint;
|
|
13
|
+
maxQuoteAmountIn: bigint;
|
|
14
|
+
userBaseTokenReserves: bigint;
|
|
15
|
+
userQuoteTokenReserves: bigint;
|
|
16
|
+
poolBaseTokenReserves: bigint;
|
|
17
|
+
poolQuoteTokenReserves: bigint;
|
|
18
|
+
baseAmountIn: bigint;
|
|
19
|
+
quoteAmountIn: bigint;
|
|
20
|
+
lpMintSupply: bigint;
|
|
21
|
+
pool: Address;
|
|
22
|
+
user: Address;
|
|
23
|
+
userBaseTokenAccount: Address;
|
|
24
|
+
userQuoteTokenAccount: Address;
|
|
25
|
+
userPoolTokenAccount: Address;
|
|
26
|
+
};
|
|
27
|
+
export type DepositEventArgs = {
|
|
28
|
+
timestamp: number | bigint;
|
|
29
|
+
lpTokenAmountOut: number | bigint;
|
|
30
|
+
maxBaseAmountIn: number | bigint;
|
|
31
|
+
maxQuoteAmountIn: number | bigint;
|
|
32
|
+
userBaseTokenReserves: number | bigint;
|
|
33
|
+
userQuoteTokenReserves: number | bigint;
|
|
34
|
+
poolBaseTokenReserves: number | bigint;
|
|
35
|
+
poolQuoteTokenReserves: number | bigint;
|
|
36
|
+
baseAmountIn: number | bigint;
|
|
37
|
+
quoteAmountIn: number | bigint;
|
|
38
|
+
lpMintSupply: number | bigint;
|
|
39
|
+
pool: Address;
|
|
40
|
+
user: Address;
|
|
41
|
+
userBaseTokenAccount: Address;
|
|
42
|
+
userQuoteTokenAccount: Address;
|
|
43
|
+
userPoolTokenAccount: Address;
|
|
44
|
+
};
|
|
45
|
+
export declare function getDepositEventEncoder(): FixedSizeEncoder<DepositEventArgs>;
|
|
46
|
+
export declare function getDepositEventDecoder(): FixedSizeDecoder<DepositEvent>;
|
|
47
|
+
export declare function getDepositEventCodec(): FixedSizeCodec<DepositEventArgs, DepositEvent>;
|
|
@@ -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 DisableEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
admin: Address;
|
|
12
|
+
disableCreatePool: boolean;
|
|
13
|
+
disableDeposit: boolean;
|
|
14
|
+
disableWithdraw: boolean;
|
|
15
|
+
disableBuy: boolean;
|
|
16
|
+
disableSell: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type DisableEventArgs = {
|
|
19
|
+
timestamp: number | bigint;
|
|
20
|
+
admin: Address;
|
|
21
|
+
disableCreatePool: boolean;
|
|
22
|
+
disableDeposit: boolean;
|
|
23
|
+
disableWithdraw: boolean;
|
|
24
|
+
disableBuy: boolean;
|
|
25
|
+
disableSell: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare function getDisableEventEncoder(): FixedSizeEncoder<DisableEventArgs>;
|
|
28
|
+
export declare function getDisableEventDecoder(): FixedSizeDecoder<DisableEvent>;
|
|
29
|
+
export declare function getDisableEventCodec(): FixedSizeCodec<DisableEventArgs, DisableEvent>;
|
|
@@ -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
|
+
timestamp: bigint;
|
|
11
|
+
account: Address;
|
|
12
|
+
user: Address;
|
|
13
|
+
currentSize: bigint;
|
|
14
|
+
newSize: bigint;
|
|
15
|
+
};
|
|
16
|
+
export type ExtendAccountEventArgs = {
|
|
17
|
+
timestamp: number | bigint;
|
|
18
|
+
account: Address;
|
|
19
|
+
user: Address;
|
|
20
|
+
currentSize: number | bigint;
|
|
21
|
+
newSize: 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>;
|
|
@@ -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>;
|
|
@@ -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
|
+
export * from './adminSetCoinCreatorEvent';
|
|
9
|
+
export * from './adminUpdateTokenIncentivesEvent';
|
|
10
|
+
export * from './buyEvent';
|
|
11
|
+
export * from './claimTokenIncentivesEvent';
|
|
12
|
+
export * from './closeUserVolumeAccumulatorEvent';
|
|
13
|
+
export * from './collectCoinCreatorFeeEvent';
|
|
14
|
+
export * from './createConfigEvent';
|
|
15
|
+
export * from './createPoolEvent';
|
|
16
|
+
export * from './depositEvent';
|
|
17
|
+
export * from './disableEvent';
|
|
18
|
+
export * from './extendAccountEvent';
|
|
19
|
+
export * from './fees';
|
|
20
|
+
export * from './feeTier';
|
|
21
|
+
export * from './initUserVolumeAccumulatorEvent';
|
|
22
|
+
export * from './optionBool';
|
|
23
|
+
export * from './sellEvent';
|
|
24
|
+
export * from './setBondingCurveCoinCreatorEvent';
|
|
25
|
+
export * from './setMetaplexCoinCreatorEvent';
|
|
26
|
+
export * from './syncUserVolumeAccumulatorEvent';
|
|
27
|
+
export * from './updateAdminEvent';
|
|
28
|
+
export * from './updateFeeConfigEvent';
|
|
29
|
+
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>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 OptionBool = readonly [boolean];
|
|
10
|
+
export type OptionBoolArgs = OptionBool;
|
|
11
|
+
export declare function getOptionBoolEncoder(): FixedSizeEncoder<OptionBoolArgs>;
|
|
12
|
+
export declare function getOptionBoolDecoder(): FixedSizeDecoder<OptionBool>;
|
|
13
|
+
export declare function getOptionBoolCodec(): FixedSizeCodec<OptionBoolArgs, OptionBool>;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 SellEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
baseAmountIn: bigint;
|
|
12
|
+
minQuoteAmountOut: bigint;
|
|
13
|
+
userBaseTokenReserves: bigint;
|
|
14
|
+
userQuoteTokenReserves: bigint;
|
|
15
|
+
poolBaseTokenReserves: bigint;
|
|
16
|
+
poolQuoteTokenReserves: bigint;
|
|
17
|
+
quoteAmountOut: bigint;
|
|
18
|
+
lpFeeBasisPoints: bigint;
|
|
19
|
+
lpFee: bigint;
|
|
20
|
+
protocolFeeBasisPoints: bigint;
|
|
21
|
+
protocolFee: bigint;
|
|
22
|
+
quoteAmountOutWithoutLpFee: bigint;
|
|
23
|
+
userQuoteAmountOut: bigint;
|
|
24
|
+
pool: Address;
|
|
25
|
+
user: Address;
|
|
26
|
+
userBaseTokenAccount: Address;
|
|
27
|
+
userQuoteTokenAccount: Address;
|
|
28
|
+
protocolFeeRecipient: Address;
|
|
29
|
+
protocolFeeRecipientTokenAccount: Address;
|
|
30
|
+
coinCreator: Address;
|
|
31
|
+
coinCreatorFeeBasisPoints: bigint;
|
|
32
|
+
coinCreatorFee: bigint;
|
|
33
|
+
};
|
|
34
|
+
export type SellEventArgs = {
|
|
35
|
+
timestamp: number | bigint;
|
|
36
|
+
baseAmountIn: number | bigint;
|
|
37
|
+
minQuoteAmountOut: number | bigint;
|
|
38
|
+
userBaseTokenReserves: number | bigint;
|
|
39
|
+
userQuoteTokenReserves: number | bigint;
|
|
40
|
+
poolBaseTokenReserves: number | bigint;
|
|
41
|
+
poolQuoteTokenReserves: number | bigint;
|
|
42
|
+
quoteAmountOut: number | bigint;
|
|
43
|
+
lpFeeBasisPoints: number | bigint;
|
|
44
|
+
lpFee: number | bigint;
|
|
45
|
+
protocolFeeBasisPoints: number | bigint;
|
|
46
|
+
protocolFee: number | bigint;
|
|
47
|
+
quoteAmountOutWithoutLpFee: number | bigint;
|
|
48
|
+
userQuoteAmountOut: number | bigint;
|
|
49
|
+
pool: Address;
|
|
50
|
+
user: Address;
|
|
51
|
+
userBaseTokenAccount: Address;
|
|
52
|
+
userQuoteTokenAccount: Address;
|
|
53
|
+
protocolFeeRecipient: Address;
|
|
54
|
+
protocolFeeRecipientTokenAccount: Address;
|
|
55
|
+
coinCreator: Address;
|
|
56
|
+
coinCreatorFeeBasisPoints: number | bigint;
|
|
57
|
+
coinCreatorFee: number | bigint;
|
|
58
|
+
};
|
|
59
|
+
export declare function getSellEventEncoder(): FixedSizeEncoder<SellEventArgs>;
|
|
60
|
+
export declare function getSellEventDecoder(): FixedSizeDecoder<SellEvent>;
|
|
61
|
+
export declare function getSellEventCodec(): FixedSizeCodec<SellEventArgs, SellEvent>;
|
|
@@ -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 SetBondingCurveCoinCreatorEvent = {
|
|
10
|
+
timestamp: bigint;
|
|
11
|
+
baseMint: Address;
|
|
12
|
+
pool: Address;
|
|
13
|
+
bondingCurve: Address;
|
|
14
|
+
coinCreator: Address;
|
|
15
|
+
};
|
|
16
|
+
export type SetBondingCurveCoinCreatorEventArgs = {
|
|
17
|
+
timestamp: number | bigint;
|
|
18
|
+
baseMint: Address;
|
|
19
|
+
pool: Address;
|
|
20
|
+
bondingCurve: Address;
|
|
21
|
+
coinCreator: Address;
|
|
22
|
+
};
|
|
23
|
+
export declare function getSetBondingCurveCoinCreatorEventEncoder(): FixedSizeEncoder<SetBondingCurveCoinCreatorEventArgs>;
|
|
24
|
+
export declare function getSetBondingCurveCoinCreatorEventDecoder(): FixedSizeDecoder<SetBondingCurveCoinCreatorEvent>;
|
|
25
|
+
export declare function getSetBondingCurveCoinCreatorEventCodec(): FixedSizeCodec<SetBondingCurveCoinCreatorEventArgs, SetBondingCurveCoinCreatorEvent>;
|