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.
Files changed (142) hide show
  1. package/@pump-kit.png +0 -0
  2. package/README.md +133 -0
  3. package/dist/index.js +25 -0
  4. package/dist/index.js.map +173 -0
  5. package/dist/types/ammsdk/bondingCurveMath.d.ts +41 -0
  6. package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +39 -0
  7. package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +33 -0
  8. package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +61 -0
  9. package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
  10. package/dist/types/ammsdk/generated/accounts/index.d.ts +13 -0
  11. package/dist/types/ammsdk/generated/accounts/pool.d.ts +47 -0
  12. package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +39 -0
  13. package/dist/types/ammsdk/generated/errors/index.d.ts +8 -0
  14. package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +101 -0
  15. package/dist/types/ammsdk/generated/index.d.ts +12 -0
  16. package/dist/types/ammsdk/generated/instructions/adminSetCoinCreator.d.ts +63 -0
  17. package/dist/types/ammsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
  18. package/dist/types/ammsdk/generated/instructions/buy.d.ts +144 -0
  19. package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +144 -0
  20. package/dist/types/ammsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
  21. package/dist/types/ammsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
  22. package/dist/types/ammsdk/generated/instructions/collectCoinCreatorFee.d.ts +70 -0
  23. package/dist/types/ammsdk/generated/instructions/createConfig.d.ts +79 -0
  24. package/dist/types/ammsdk/generated/instructions/createPool.d.ts +127 -0
  25. package/dist/types/ammsdk/generated/instructions/deposit.d.ts +111 -0
  26. package/dist/types/ammsdk/generated/instructions/disable.d.ts +75 -0
  27. package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +58 -0
  28. package/dist/types/ammsdk/generated/instructions/index.d.ts +26 -0
  29. package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
  30. package/dist/types/ammsdk/generated/instructions/sell.d.ts +131 -0
  31. package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +58 -0
  32. package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
  33. package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +58 -0
  34. package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +75 -0
  35. package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +111 -0
  36. package/dist/types/ammsdk/generated/programs/index.d.ts +8 -0
  37. package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +84 -0
  38. package/dist/types/ammsdk/generated/shared/index.d.ts +49 -0
  39. package/dist/types/ammsdk/generated/types/adminSetCoinCreatorEvent.d.ts +27 -0
  40. package/dist/types/ammsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
  41. package/dist/types/ammsdk/generated/types/buyEvent.d.ts +76 -0
  42. package/dist/types/ammsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
  43. package/dist/types/ammsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
  44. package/dist/types/ammsdk/generated/types/collectCoinCreatorFeeEvent.d.ts +25 -0
  45. package/dist/types/ammsdk/generated/types/createConfigEvent.d.ts +29 -0
  46. package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +55 -0
  47. package/dist/types/ammsdk/generated/types/depositEvent.d.ts +47 -0
  48. package/dist/types/ammsdk/generated/types/disableEvent.d.ts +29 -0
  49. package/dist/types/ammsdk/generated/types/extendAccountEvent.d.ts +25 -0
  50. package/dist/types/ammsdk/generated/types/feeTier.d.ts +20 -0
  51. package/dist/types/ammsdk/generated/types/fees.d.ts +21 -0
  52. package/dist/types/ammsdk/generated/types/index.d.ts +29 -0
  53. package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
  54. package/dist/types/ammsdk/generated/types/optionBool.d.ts +13 -0
  55. package/dist/types/ammsdk/generated/types/sellEvent.d.ts +61 -0
  56. package/dist/types/ammsdk/generated/types/setBondingCurveCoinCreatorEvent.d.ts +25 -0
  57. package/dist/types/ammsdk/generated/types/setMetaplexCoinCreatorEvent.d.ts +25 -0
  58. package/dist/types/ammsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
  59. package/dist/types/ammsdk/generated/types/updateAdminEvent.d.ts +21 -0
  60. package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +29 -0
  61. package/dist/types/ammsdk/generated/types/withdrawEvent.d.ts +47 -0
  62. package/dist/types/clients/amm.d.ts +109 -0
  63. package/dist/types/clients/pump.d.ts +76 -0
  64. package/dist/types/config/addresses.d.ts +12 -0
  65. package/dist/types/config/commitment.d.ts +4 -0
  66. package/dist/types/config/connection.d.ts +10 -0
  67. package/dist/types/config/constants.d.ts +4 -0
  68. package/dist/types/config/polyfills.d.ts +1 -0
  69. package/dist/types/events/pumpEvents.d.ts +30 -0
  70. package/dist/types/helpers/createAndBuy.d.ts +34 -0
  71. package/dist/types/index.d.ts +20 -0
  72. package/dist/types/liquidity.d.ts +47 -0
  73. package/dist/types/pda/ata.d.ts +29 -0
  74. package/dist/types/pda/pump.d.ts +46 -0
  75. package/dist/types/pda/pumpAmm.d.ts +55 -0
  76. package/dist/types/pumpsdk/generated/accounts/bondingCurve.d.ts +39 -0
  77. package/dist/types/pumpsdk/generated/accounts/feeConfig.d.ts +33 -0
  78. package/dist/types/pumpsdk/generated/accounts/global.d.ts +59 -0
  79. package/dist/types/pumpsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
  80. package/dist/types/pumpsdk/generated/accounts/index.d.ts +12 -0
  81. package/dist/types/pumpsdk/generated/accounts/userVolumeAccumulator.d.ts +39 -0
  82. package/dist/types/pumpsdk/generated/errors/index.d.ts +8 -0
  83. package/dist/types/pumpsdk/generated/errors/pump.d.ts +105 -0
  84. package/dist/types/pumpsdk/generated/index.d.ts +12 -0
  85. package/dist/types/pumpsdk/generated/instructions/adminSetCreator.d.ts +67 -0
  86. package/dist/types/pumpsdk/generated/instructions/adminSetIdlAuthority.d.ts +71 -0
  87. package/dist/types/pumpsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
  88. package/dist/types/pumpsdk/generated/instructions/buy.d.ts +116 -0
  89. package/dist/types/pumpsdk/generated/instructions/buyExactSolIn.d.ts +116 -0
  90. package/dist/types/pumpsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
  91. package/dist/types/pumpsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
  92. package/dist/types/pumpsdk/generated/instructions/collectCreatorFee.d.ts +58 -0
  93. package/dist/types/pumpsdk/generated/instructions/create.d.ts +111 -0
  94. package/dist/types/pumpsdk/generated/instructions/extendAccount.d.ts +58 -0
  95. package/dist/types/pumpsdk/generated/instructions/index.d.ts +26 -0
  96. package/dist/types/pumpsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
  97. package/dist/types/pumpsdk/generated/instructions/initialize.d.ts +50 -0
  98. package/dist/types/pumpsdk/generated/instructions/migrate.d.ts +134 -0
  99. package/dist/types/pumpsdk/generated/instructions/sell.d.ts +103 -0
  100. package/dist/types/pumpsdk/generated/instructions/setCreator.d.ts +71 -0
  101. package/dist/types/pumpsdk/generated/instructions/setMetaplexCreator.d.ts +58 -0
  102. package/dist/types/pumpsdk/generated/instructions/setParams.d.ts +99 -0
  103. package/dist/types/pumpsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
  104. package/dist/types/pumpsdk/generated/instructions/updateGlobalAuthority.d.ts +58 -0
  105. package/dist/types/pumpsdk/generated/programs/index.d.ts +8 -0
  106. package/dist/types/pumpsdk/generated/programs/pump.d.ts +83 -0
  107. package/dist/types/pumpsdk/generated/shared/index.d.ts +49 -0
  108. package/dist/types/pumpsdk/generated/types/adminSetCreatorEvent.d.ts +27 -0
  109. package/dist/types/pumpsdk/generated/types/adminSetIdlAuthorityEvent.d.ts +15 -0
  110. package/dist/types/pumpsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
  111. package/dist/types/pumpsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
  112. package/dist/types/pumpsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
  113. package/dist/types/pumpsdk/generated/types/collectCreatorFeeEvent.d.ts +21 -0
  114. package/dist/types/pumpsdk/generated/types/completeEvent.d.ts +23 -0
  115. package/dist/types/pumpsdk/generated/types/completePumpAmmMigrationEvent.d.ts +31 -0
  116. package/dist/types/pumpsdk/generated/types/createEvent.d.ts +39 -0
  117. package/dist/types/pumpsdk/generated/types/extendAccountEvent.d.ts +25 -0
  118. package/dist/types/pumpsdk/generated/types/feeTier.d.ts +20 -0
  119. package/dist/types/pumpsdk/generated/types/fees.d.ts +21 -0
  120. package/dist/types/pumpsdk/generated/types/index.d.ts +27 -0
  121. package/dist/types/pumpsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
  122. package/dist/types/pumpsdk/generated/types/optionBool.d.ts +13 -0
  123. package/dist/types/pumpsdk/generated/types/setCreatorEvent.d.ts +23 -0
  124. package/dist/types/pumpsdk/generated/types/setMetaplexCreatorEvent.d.ts +25 -0
  125. package/dist/types/pumpsdk/generated/types/setParamsEvent.d.ts +43 -0
  126. package/dist/types/pumpsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
  127. package/dist/types/pumpsdk/generated/types/tradeEvent.d.ts +60 -0
  128. package/dist/types/pumpsdk/generated/types/updateGlobalAuthorityEvent.d.ts +23 -0
  129. package/dist/types/recipes/buy.d.ts +51 -0
  130. package/dist/types/recipes/mintFirstBuy.d.ts +51 -0
  131. package/dist/types/recipes/provideLiquidity.d.ts +42 -0
  132. package/dist/types/recipes/removeLiquidity.d.ts +40 -0
  133. package/dist/types/recipes/sell.d.ts +39 -0
  134. package/dist/types/simple.d.ts +10 -0
  135. package/dist/types/swap.d.ts +49 -0
  136. package/dist/types/utils/amounts.d.ts +4 -0
  137. package/dist/types/utils/ata.d.ts +15 -0
  138. package/dist/types/utils/slippage.d.ts +37 -0
  139. package/dist/types/utils/transaction.d.ts +101 -0
  140. package/dist/types/utils/wsol.d.ts +18 -0
  141. package/metadata/social.json +8 -0
  142. package/package.json +56 -0
@@ -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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const BONDING_CURVE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
10
+ export declare function getBondingCurveDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type BondingCurve = {
12
+ discriminator: ReadonlyUint8Array;
13
+ virtualTokenReserves: bigint;
14
+ virtualSolReserves: bigint;
15
+ realTokenReserves: bigint;
16
+ realSolReserves: bigint;
17
+ tokenTotalSupply: bigint;
18
+ complete: boolean;
19
+ creator: Address;
20
+ };
21
+ export type BondingCurveArgs = {
22
+ virtualTokenReserves: number | bigint;
23
+ virtualSolReserves: number | bigint;
24
+ realTokenReserves: number | bigint;
25
+ realSolReserves: number | bigint;
26
+ tokenTotalSupply: number | bigint;
27
+ complete: boolean;
28
+ creator: Address;
29
+ };
30
+ export declare function getBondingCurveEncoder(): FixedSizeEncoder<BondingCurveArgs>;
31
+ export declare function getBondingCurveDecoder(): FixedSizeDecoder<BondingCurve>;
32
+ export declare function getBondingCurveCodec(): FixedSizeCodec<BondingCurveArgs, BondingCurve>;
33
+ export declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<BondingCurve, TAddress>;
34
+ export declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<BondingCurve, TAddress>;
35
+ export declare function fetchBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<BondingCurve, TAddress>>;
36
+ export declare function fetchMaybeBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<BondingCurve, TAddress>>;
37
+ export declare function fetchAllBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<BondingCurve>[]>;
38
+ export declare function fetchAllMaybeBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<BondingCurve>[]>;
39
+ export declare function getBondingCurveSize(): number;
@@ -0,0 +1,33 @@
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ import { type Fees, type FeesArgs, type FeeTier, type FeeTierArgs } from '../types';
10
+ export declare const FEE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getFeeConfigDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type FeeConfig = {
13
+ discriminator: ReadonlyUint8Array;
14
+ bump: number;
15
+ admin: Address;
16
+ flatFees: Fees;
17
+ feeTiers: Array<FeeTier>;
18
+ };
19
+ export type FeeConfigArgs = {
20
+ bump: number;
21
+ admin: Address;
22
+ flatFees: FeesArgs;
23
+ feeTiers: Array<FeeTierArgs>;
24
+ };
25
+ export declare function getFeeConfigEncoder(): Encoder<FeeConfigArgs>;
26
+ export declare function getFeeConfigDecoder(): Decoder<FeeConfig>;
27
+ export declare function getFeeConfigCodec(): Codec<FeeConfigArgs, FeeConfig>;
28
+ export declare function decodeFeeConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<FeeConfig, TAddress>;
29
+ export declare function decodeFeeConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<FeeConfig, TAddress>;
30
+ export declare function fetchFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<FeeConfig, TAddress>>;
31
+ export declare function fetchMaybeFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FeeConfig, TAddress>>;
32
+ export declare function fetchAllFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<FeeConfig>[]>;
33
+ export declare function fetchAllMaybeFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<FeeConfig>[]>;
@@ -0,0 +1,59 @@
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const GLOBAL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
10
+ export declare function getGlobalDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type Global = {
12
+ discriminator: ReadonlyUint8Array;
13
+ /** Unused */
14
+ initialized: boolean;
15
+ authority: Address;
16
+ feeRecipient: Address;
17
+ initialVirtualTokenReserves: bigint;
18
+ initialVirtualSolReserves: bigint;
19
+ initialRealTokenReserves: bigint;
20
+ tokenTotalSupply: bigint;
21
+ feeBasisPoints: bigint;
22
+ withdrawAuthority: Address;
23
+ /** Unused */
24
+ enableMigrate: boolean;
25
+ poolMigrationFee: bigint;
26
+ creatorFeeBasisPoints: bigint;
27
+ feeRecipients: Array<Address>;
28
+ setCreatorAuthority: Address;
29
+ adminSetCreatorAuthority: Address;
30
+ };
31
+ export type GlobalArgs = {
32
+ /** Unused */
33
+ initialized: boolean;
34
+ authority: Address;
35
+ feeRecipient: Address;
36
+ initialVirtualTokenReserves: number | bigint;
37
+ initialVirtualSolReserves: number | bigint;
38
+ initialRealTokenReserves: number | bigint;
39
+ tokenTotalSupply: number | bigint;
40
+ feeBasisPoints: number | bigint;
41
+ withdrawAuthority: Address;
42
+ /** Unused */
43
+ enableMigrate: boolean;
44
+ poolMigrationFee: number | bigint;
45
+ creatorFeeBasisPoints: number | bigint;
46
+ feeRecipients: Array<Address>;
47
+ setCreatorAuthority: Address;
48
+ adminSetCreatorAuthority: Address;
49
+ };
50
+ export declare function getGlobalEncoder(): FixedSizeEncoder<GlobalArgs>;
51
+ export declare function getGlobalDecoder(): FixedSizeDecoder<Global>;
52
+ export declare function getGlobalCodec(): FixedSizeCodec<GlobalArgs, Global>;
53
+ export declare function decodeGlobal<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Global, TAddress>;
54
+ export declare function decodeGlobal<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Global, TAddress>;
55
+ export declare function fetchGlobal<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Global, TAddress>>;
56
+ export declare function fetchMaybeGlobal<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Global, TAddress>>;
57
+ export declare function fetchAllGlobal(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Global>[]>;
58
+ export declare function fetchAllMaybeGlobal(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Global>[]>;
59
+ export declare function getGlobalSize(): number;
@@ -0,0 +1,37 @@
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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const GLOBAL_VOLUME_ACCUMULATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
10
+ export declare function getGlobalVolumeAccumulatorDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type GlobalVolumeAccumulator = {
12
+ discriminator: ReadonlyUint8Array;
13
+ startTime: bigint;
14
+ endTime: bigint;
15
+ secondsInADay: bigint;
16
+ mint: Address;
17
+ totalTokenSupply: Array<bigint>;
18
+ solVolumes: Array<bigint>;
19
+ };
20
+ export type GlobalVolumeAccumulatorArgs = {
21
+ startTime: number | bigint;
22
+ endTime: number | bigint;
23
+ secondsInADay: number | bigint;
24
+ mint: Address;
25
+ totalTokenSupply: Array<number | bigint>;
26
+ solVolumes: Array<number | bigint>;
27
+ };
28
+ export declare function getGlobalVolumeAccumulatorEncoder(): FixedSizeEncoder<GlobalVolumeAccumulatorArgs>;
29
+ export declare function getGlobalVolumeAccumulatorDecoder(): FixedSizeDecoder<GlobalVolumeAccumulator>;
30
+ export declare function getGlobalVolumeAccumulatorCodec(): FixedSizeCodec<GlobalVolumeAccumulatorArgs, GlobalVolumeAccumulator>;
31
+ export declare function decodeGlobalVolumeAccumulator<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<GlobalVolumeAccumulator, TAddress>;
32
+ export declare function decodeGlobalVolumeAccumulator<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<GlobalVolumeAccumulator, TAddress>;
33
+ export declare function fetchGlobalVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<GlobalVolumeAccumulator, TAddress>>;
34
+ export declare function fetchMaybeGlobalVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<GlobalVolumeAccumulator, TAddress>>;
35
+ export declare function fetchAllGlobalVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<GlobalVolumeAccumulator>[]>;
36
+ export declare function fetchAllMaybeGlobalVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<GlobalVolumeAccumulator>[]>;
37
+ export declare function getGlobalVolumeAccumulatorSize(): number;
@@ -0,0 +1,12 @@
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 './bondingCurve';
9
+ export * from './feeConfig';
10
+ export * from './global';
11
+ export * from './globalVolumeAccumulator';
12
+ export * from './userVolumeAccumulator';
@@ -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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ export declare const USER_VOLUME_ACCUMULATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
10
+ export declare function getUserVolumeAccumulatorDiscriminatorBytes(): ReadonlyUint8Array;
11
+ export type UserVolumeAccumulator = {
12
+ discriminator: ReadonlyUint8Array;
13
+ user: Address;
14
+ needsClaim: boolean;
15
+ totalUnclaimedTokens: bigint;
16
+ totalClaimedTokens: bigint;
17
+ currentSolVolume: bigint;
18
+ lastUpdateTimestamp: bigint;
19
+ hasTotalClaimedTokens: boolean;
20
+ };
21
+ export type UserVolumeAccumulatorArgs = {
22
+ user: Address;
23
+ needsClaim: boolean;
24
+ totalUnclaimedTokens: number | bigint;
25
+ totalClaimedTokens: number | bigint;
26
+ currentSolVolume: number | bigint;
27
+ lastUpdateTimestamp: number | bigint;
28
+ hasTotalClaimedTokens: boolean;
29
+ };
30
+ export declare function getUserVolumeAccumulatorEncoder(): FixedSizeEncoder<UserVolumeAccumulatorArgs>;
31
+ export declare function getUserVolumeAccumulatorDecoder(): FixedSizeDecoder<UserVolumeAccumulator>;
32
+ export declare function getUserVolumeAccumulatorCodec(): FixedSizeCodec<UserVolumeAccumulatorArgs, UserVolumeAccumulator>;
33
+ export declare function decodeUserVolumeAccumulator<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<UserVolumeAccumulator, TAddress>;
34
+ export declare function decodeUserVolumeAccumulator<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<UserVolumeAccumulator, TAddress>;
35
+ export declare function fetchUserVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<UserVolumeAccumulator, TAddress>>;
36
+ export declare function fetchMaybeUserVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<UserVolumeAccumulator, TAddress>>;
37
+ export declare function fetchAllUserVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<UserVolumeAccumulator>[]>;
38
+ export declare function fetchAllMaybeUserVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<UserVolumeAccumulator>[]>;
39
+ export declare function getUserVolumeAccumulatorSize(): number;
@@ -0,0 +1,8 @@
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 './pump';
@@ -0,0 +1,105 @@
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 SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
9
+ /** NotAuthorized: The given account is not authorized to execute this instruction. */
10
+ export declare const PUMP_ERROR__NOT_AUTHORIZED = 6000;
11
+ /** AlreadyInitialized: The program is already initialized. */
12
+ export declare const PUMP_ERROR__ALREADY_INITIALIZED = 6001;
13
+ /** TooMuchSolRequired: slippage: Too much SOL required to buy the given amount of tokens. */
14
+ export declare const PUMP_ERROR__TOO_MUCH_SOL_REQUIRED = 6002;
15
+ /** TooLittleSolReceived: slippage: Too little SOL received to sell the given amount of tokens. */
16
+ export declare const PUMP_ERROR__TOO_LITTLE_SOL_RECEIVED = 6003;
17
+ /** MintDoesNotMatchBondingCurve: The mint does not match the bonding curve. */
18
+ export declare const PUMP_ERROR__MINT_DOES_NOT_MATCH_BONDING_CURVE = 6004;
19
+ /** BondingCurveComplete: The bonding curve has completed and liquidity migrated to raydium. */
20
+ export declare const PUMP_ERROR__BONDING_CURVE_COMPLETE = 6005;
21
+ /** BondingCurveNotComplete: The bonding curve has not completed. */
22
+ export declare const PUMP_ERROR__BONDING_CURVE_NOT_COMPLETE = 6006;
23
+ /** NotInitialized: The program is not initialized. */
24
+ export declare const PUMP_ERROR__NOT_INITIALIZED = 6007;
25
+ /** WithdrawTooFrequent: Withdraw too frequent */
26
+ export declare const PUMP_ERROR__WITHDRAW_TOO_FREQUENT = 6008;
27
+ /** NewSizeShouldBeGreaterThanCurrentSize: new_size should be > current_size */
28
+ export declare const PUMP_ERROR__NEW_SIZE_SHOULD_BE_GREATER_THAN_CURRENT_SIZE = 6009;
29
+ /** AccountTypeNotSupported: Account type not supported */
30
+ export declare const PUMP_ERROR__ACCOUNT_TYPE_NOT_SUPPORTED = 6010;
31
+ /** InitialRealTokenReservesShouldBeLessThanTokenTotalSupply: initial_real_token_reserves should be less than token_total_supply */
32
+ export declare const PUMP_ERROR__INITIAL_REAL_TOKEN_RESERVES_SHOULD_BE_LESS_THAN_TOKEN_TOTAL_SUPPLY = 6011;
33
+ /** InitialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves: initial_virtual_token_reserves should be greater than initial_real_token_reserves */
34
+ export declare const PUMP_ERROR__INITIAL_VIRTUAL_TOKEN_RESERVES_SHOULD_BE_GREATER_THAN_INITIAL_REAL_TOKEN_RESERVES = 6012;
35
+ /** FeeBasisPointsGreaterThanMaximum: fee_basis_points greater than maximum */
36
+ export declare const PUMP_ERROR__FEE_BASIS_POINTS_GREATER_THAN_MAXIMUM = 6013;
37
+ /** AllZerosWithdrawAuthority: Withdraw authority cannot be set to System Program ID */
38
+ export declare const PUMP_ERROR__ALL_ZEROS_WITHDRAW_AUTHORITY = 6014;
39
+ /** PoolMigrationFeeShouldBeLessThanFinalRealSolReserves: pool_migration_fee should be less than final_real_sol_reserves */
40
+ export declare const PUMP_ERROR__POOL_MIGRATION_FEE_SHOULD_BE_LESS_THAN_FINAL_REAL_SOL_RESERVES = 6015;
41
+ /** PoolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees: pool_migration_fee should be greater than creator_fee + MAX_MIGRATE_FEES */
42
+ export declare const PUMP_ERROR__POOL_MIGRATION_FEE_SHOULD_BE_GREATER_THAN_CREATOR_FEE_PLUS_MAX_MIGRATE_FEES = 6016;
43
+ /** DisabledWithdraw: Migrate instruction is disabled */
44
+ export declare const PUMP_ERROR__DISABLED_WITHDRAW = 6017;
45
+ /** DisabledMigrate: Migrate instruction is disabled */
46
+ export declare const PUMP_ERROR__DISABLED_MIGRATE = 6018;
47
+ /** InvalidCreator: Invalid creator pubkey */
48
+ export declare const PUMP_ERROR__INVALID_CREATOR = 6019;
49
+ /** BuyZeroAmount: Buy zero amount */
50
+ export declare const PUMP_ERROR__BUY_ZERO_AMOUNT = 6020;
51
+ /** NotEnoughTokensToBuy: Not enough tokens to buy */
52
+ export declare const PUMP_ERROR__NOT_ENOUGH_TOKENS_TO_BUY = 6021;
53
+ /** SellZeroAmount: Sell zero amount */
54
+ export declare const PUMP_ERROR__SELL_ZERO_AMOUNT = 6022;
55
+ /** NotEnoughTokensToSell: Not enough tokens to sell */
56
+ export declare const PUMP_ERROR__NOT_ENOUGH_TOKENS_TO_SELL = 6023;
57
+ /** Overflow: Overflow */
58
+ export declare const PUMP_ERROR__OVERFLOW = 6024;
59
+ /** Truncation: Truncation */
60
+ export declare const PUMP_ERROR__TRUNCATION = 6025;
61
+ /** DivisionByZero: Division by zero */
62
+ export declare const PUMP_ERROR__DIVISION_BY_ZERO = 6026;
63
+ /** NotEnoughRemainingAccounts: Not enough remaining accounts */
64
+ export declare const PUMP_ERROR__NOT_ENOUGH_REMAINING_ACCOUNTS = 6027;
65
+ /** AllFeeRecipientsShouldBeNonZero: All fee recipients should be non-zero */
66
+ export declare const PUMP_ERROR__ALL_FEE_RECIPIENTS_SHOULD_BE_NON_ZERO = 6028;
67
+ /** UnsortedNotUniqueFeeRecipients: Unsorted or not unique fee recipients */
68
+ export declare const PUMP_ERROR__UNSORTED_NOT_UNIQUE_FEE_RECIPIENTS = 6029;
69
+ /** CreatorShouldNotBeZero: Creator should not be zero */
70
+ export declare const PUMP_ERROR__CREATOR_SHOULD_NOT_BE_ZERO = 6030;
71
+ /** StartTimeInThePast: */
72
+ export declare const PUMP_ERROR__START_TIME_IN_THE_PAST = 6031;
73
+ /** EndTimeInThePast: */
74
+ export declare const PUMP_ERROR__END_TIME_IN_THE_PAST = 6032;
75
+ /** EndTimeBeforeStartTime: */
76
+ export declare const PUMP_ERROR__END_TIME_BEFORE_START_TIME = 6033;
77
+ /** TimeRangeTooLarge: */
78
+ export declare const PUMP_ERROR__TIME_RANGE_TOO_LARGE = 6034;
79
+ /** EndTimeBeforeCurrentDay: */
80
+ export declare const PUMP_ERROR__END_TIME_BEFORE_CURRENT_DAY = 6035;
81
+ /** SupplyUpdateForFinishedRange: */
82
+ export declare const PUMP_ERROR__SUPPLY_UPDATE_FOR_FINISHED_RANGE = 6036;
83
+ /** DayIndexAfterEndIndex: */
84
+ export declare const PUMP_ERROR__DAY_INDEX_AFTER_END_INDEX = 6037;
85
+ /** DayInActiveRange: */
86
+ export declare const PUMP_ERROR__DAY_IN_ACTIVE_RANGE = 6038;
87
+ /** InvalidIncentiveMint: */
88
+ export declare const PUMP_ERROR__INVALID_INCENTIVE_MINT = 6039;
89
+ /** BuyNotEnoughSolToCoverRent: Buy: Not enough SOL to cover for rent exemption. */
90
+ export declare const PUMP_ERROR__BUY_NOT_ENOUGH_SOL_TO_COVER_RENT = 6040;
91
+ /** BuyNotEnoughSolToCoverFees: Buy: Not enough SOL to cover for fees. */
92
+ export declare const PUMP_ERROR__BUY_NOT_ENOUGH_SOL_TO_COVER_FEES = 6041;
93
+ /** BuySlippageBelowMinTokensOut: Slippage: Would buy less tokens than expected min_tokens_out */
94
+ export declare const PUMP_ERROR__BUY_SLIPPAGE_BELOW_MIN_TOKENS_OUT = 6042;
95
+ export type PumpError = typeof PUMP_ERROR__ACCOUNT_TYPE_NOT_SUPPORTED | typeof PUMP_ERROR__ALL_FEE_RECIPIENTS_SHOULD_BE_NON_ZERO | typeof PUMP_ERROR__ALL_ZEROS_WITHDRAW_AUTHORITY | typeof PUMP_ERROR__ALREADY_INITIALIZED | typeof PUMP_ERROR__BONDING_CURVE_COMPLETE | typeof PUMP_ERROR__BONDING_CURVE_NOT_COMPLETE | typeof PUMP_ERROR__BUY_NOT_ENOUGH_SOL_TO_COVER_FEES | typeof PUMP_ERROR__BUY_NOT_ENOUGH_SOL_TO_COVER_RENT | typeof PUMP_ERROR__BUY_SLIPPAGE_BELOW_MIN_TOKENS_OUT | typeof PUMP_ERROR__BUY_ZERO_AMOUNT | typeof PUMP_ERROR__CREATOR_SHOULD_NOT_BE_ZERO | typeof PUMP_ERROR__DAY_IN_ACTIVE_RANGE | typeof PUMP_ERROR__DAY_INDEX_AFTER_END_INDEX | typeof PUMP_ERROR__DISABLED_MIGRATE | typeof PUMP_ERROR__DISABLED_WITHDRAW | typeof PUMP_ERROR__DIVISION_BY_ZERO | typeof PUMP_ERROR__END_TIME_BEFORE_CURRENT_DAY | typeof PUMP_ERROR__END_TIME_BEFORE_START_TIME | typeof PUMP_ERROR__END_TIME_IN_THE_PAST | typeof PUMP_ERROR__FEE_BASIS_POINTS_GREATER_THAN_MAXIMUM | typeof PUMP_ERROR__INITIAL_REAL_TOKEN_RESERVES_SHOULD_BE_LESS_THAN_TOKEN_TOTAL_SUPPLY | typeof PUMP_ERROR__INITIAL_VIRTUAL_TOKEN_RESERVES_SHOULD_BE_GREATER_THAN_INITIAL_REAL_TOKEN_RESERVES | typeof PUMP_ERROR__INVALID_CREATOR | typeof PUMP_ERROR__INVALID_INCENTIVE_MINT | typeof PUMP_ERROR__MINT_DOES_NOT_MATCH_BONDING_CURVE | typeof PUMP_ERROR__NEW_SIZE_SHOULD_BE_GREATER_THAN_CURRENT_SIZE | typeof PUMP_ERROR__NOT_AUTHORIZED | typeof PUMP_ERROR__NOT_ENOUGH_REMAINING_ACCOUNTS | typeof PUMP_ERROR__NOT_ENOUGH_TOKENS_TO_BUY | typeof PUMP_ERROR__NOT_ENOUGH_TOKENS_TO_SELL | typeof PUMP_ERROR__NOT_INITIALIZED | typeof PUMP_ERROR__OVERFLOW | typeof PUMP_ERROR__POOL_MIGRATION_FEE_SHOULD_BE_GREATER_THAN_CREATOR_FEE_PLUS_MAX_MIGRATE_FEES | typeof PUMP_ERROR__POOL_MIGRATION_FEE_SHOULD_BE_LESS_THAN_FINAL_REAL_SOL_RESERVES | typeof PUMP_ERROR__SELL_ZERO_AMOUNT | typeof PUMP_ERROR__START_TIME_IN_THE_PAST | typeof PUMP_ERROR__SUPPLY_UPDATE_FOR_FINISHED_RANGE | typeof PUMP_ERROR__TIME_RANGE_TOO_LARGE | typeof PUMP_ERROR__TOO_LITTLE_SOL_RECEIVED | typeof PUMP_ERROR__TOO_MUCH_SOL_REQUIRED | typeof PUMP_ERROR__TRUNCATION | typeof PUMP_ERROR__UNSORTED_NOT_UNIQUE_FEE_RECIPIENTS | typeof PUMP_ERROR__WITHDRAW_TOO_FREQUENT;
96
+ export declare function getPumpErrorMessage(code: PumpError): string;
97
+ export declare function isPumpError<TProgramErrorCode extends PumpError>(error: unknown, transactionMessage: {
98
+ instructions: Record<number, {
99
+ programAddress: Address;
100
+ }>;
101
+ }, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
102
+ context: Readonly<{
103
+ code: TProgramErrorCode;
104
+ }>;
105
+ }>;
@@ -0,0 +1,12 @@
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 './accounts';
9
+ export * from './errors';
10
+ export * from './instructions';
11
+ export * from './programs';
12
+ export * from './types';
@@ -0,0 +1,67 @@
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 ADMIN_SET_CREATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getAdminSetCreatorDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type AdminSetCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountAdminSetCreatorAuthority extends string | AccountMeta<string> = string, TAccountGlobal extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountBondingCurve 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
+ TAccountAdminSetCreatorAuthority extends string ? ReadonlySignerAccount<TAccountAdminSetCreatorAuthority> & AccountSignerMeta<TAccountAdminSetCreatorAuthority> : TAccountAdminSetCreatorAuthority,
14
+ TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
15
+ TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
16
+ TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
17
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
18
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
19
+ ...TRemainingAccounts
20
+ ]>;
21
+ export type AdminSetCreatorInstructionData = {
22
+ discriminator: ReadonlyUint8Array;
23
+ creator: Address;
24
+ };
25
+ export type AdminSetCreatorInstructionDataArgs = {
26
+ creator: Address;
27
+ };
28
+ export declare function getAdminSetCreatorInstructionDataEncoder(): FixedSizeEncoder<AdminSetCreatorInstructionDataArgs>;
29
+ export declare function getAdminSetCreatorInstructionDataDecoder(): FixedSizeDecoder<AdminSetCreatorInstructionData>;
30
+ export declare function getAdminSetCreatorInstructionDataCodec(): FixedSizeCodec<AdminSetCreatorInstructionDataArgs, AdminSetCreatorInstructionData>;
31
+ export type AdminSetCreatorAsyncInput<TAccountAdminSetCreatorAuthority extends string = string, TAccountGlobal extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
32
+ adminSetCreatorAuthority: TransactionSigner<TAccountAdminSetCreatorAuthority>;
33
+ global?: Address<TAccountGlobal>;
34
+ mint: Address<TAccountMint>;
35
+ bondingCurve?: Address<TAccountBondingCurve>;
36
+ eventAuthority?: Address<TAccountEventAuthority>;
37
+ program: Address<TAccountProgram>;
38
+ creator: AdminSetCreatorInstructionDataArgs['creator'];
39
+ };
40
+ export declare function getAdminSetCreatorInstructionAsync<TAccountAdminSetCreatorAuthority extends string, TAccountGlobal extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: AdminSetCreatorAsyncInput<TAccountAdminSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>, config?: {
41
+ programAddress?: TProgramAddress;
42
+ }): Promise<AdminSetCreatorInstruction<TProgramAddress, TAccountAdminSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>>;
43
+ export type AdminSetCreatorInput<TAccountAdminSetCreatorAuthority extends string = string, TAccountGlobal extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
44
+ adminSetCreatorAuthority: TransactionSigner<TAccountAdminSetCreatorAuthority>;
45
+ global: Address<TAccountGlobal>;
46
+ mint: Address<TAccountMint>;
47
+ bondingCurve: Address<TAccountBondingCurve>;
48
+ eventAuthority: Address<TAccountEventAuthority>;
49
+ program: Address<TAccountProgram>;
50
+ creator: AdminSetCreatorInstructionDataArgs['creator'];
51
+ };
52
+ export declare function getAdminSetCreatorInstruction<TAccountAdminSetCreatorAuthority extends string, TAccountGlobal extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: AdminSetCreatorInput<TAccountAdminSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>, config?: {
53
+ programAddress?: TProgramAddress;
54
+ }): AdminSetCreatorInstruction<TProgramAddress, TAccountAdminSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>;
55
+ export type ParsedAdminSetCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
56
+ programAddress: Address<TProgram>;
57
+ accounts: {
58
+ adminSetCreatorAuthority: TAccountMetas[0];
59
+ global: TAccountMetas[1];
60
+ mint: TAccountMetas[2];
61
+ bondingCurve: TAccountMetas[3];
62
+ eventAuthority: TAccountMetas[4];
63
+ program: TAccountMetas[5];
64
+ };
65
+ data: AdminSetCreatorInstructionData;
66
+ };
67
+ export declare function parseAdminSetCreatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdminSetCreatorInstruction<TProgram, TAccountMetas>;
@@ -0,0 +1,71 @@
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 ADMIN_SET_IDL_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getAdminSetIdlAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type AdminSetIdlAuthorityInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountGlobal extends string | AccountMeta<string> = string, TAccountIdlAccount extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountProgramSigner 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
+ TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
14
+ TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
15
+ TAccountIdlAccount extends string ? WritableAccount<TAccountIdlAccount> : TAccountIdlAccount,
16
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
17
+ TAccountProgramSigner extends string ? ReadonlyAccount<TAccountProgramSigner> : TAccountProgramSigner,
18
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
19
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
20
+ ...TRemainingAccounts
21
+ ]>;
22
+ export type AdminSetIdlAuthorityInstructionData = {
23
+ discriminator: ReadonlyUint8Array;
24
+ idlAuthority: Address;
25
+ };
26
+ export type AdminSetIdlAuthorityInstructionDataArgs = {
27
+ idlAuthority: Address;
28
+ };
29
+ export declare function getAdminSetIdlAuthorityInstructionDataEncoder(): FixedSizeEncoder<AdminSetIdlAuthorityInstructionDataArgs>;
30
+ export declare function getAdminSetIdlAuthorityInstructionDataDecoder(): FixedSizeDecoder<AdminSetIdlAuthorityInstructionData>;
31
+ export declare function getAdminSetIdlAuthorityInstructionDataCodec(): FixedSizeCodec<AdminSetIdlAuthorityInstructionDataArgs, AdminSetIdlAuthorityInstructionData>;
32
+ export type AdminSetIdlAuthorityAsyncInput<TAccountAuthority extends string = string, TAccountGlobal extends string = string, TAccountIdlAccount extends string = string, TAccountSystemProgram extends string = string, TAccountProgramSigner extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
33
+ authority: TransactionSigner<TAccountAuthority>;
34
+ global?: Address<TAccountGlobal>;
35
+ idlAccount: Address<TAccountIdlAccount>;
36
+ systemProgram?: Address<TAccountSystemProgram>;
37
+ programSigner?: Address<TAccountProgramSigner>;
38
+ eventAuthority?: Address<TAccountEventAuthority>;
39
+ program: Address<TAccountProgram>;
40
+ idlAuthority: AdminSetIdlAuthorityInstructionDataArgs['idlAuthority'];
41
+ };
42
+ export declare function getAdminSetIdlAuthorityInstructionAsync<TAccountAuthority extends string, TAccountGlobal extends string, TAccountIdlAccount extends string, TAccountSystemProgram extends string, TAccountProgramSigner extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: AdminSetIdlAuthorityAsyncInput<TAccountAuthority, TAccountGlobal, TAccountIdlAccount, TAccountSystemProgram, TAccountProgramSigner, TAccountEventAuthority, TAccountProgram>, config?: {
43
+ programAddress?: TProgramAddress;
44
+ }): Promise<AdminSetIdlAuthorityInstruction<TProgramAddress, TAccountAuthority, TAccountGlobal, TAccountIdlAccount, TAccountSystemProgram, TAccountProgramSigner, TAccountEventAuthority, TAccountProgram>>;
45
+ export type AdminSetIdlAuthorityInput<TAccountAuthority extends string = string, TAccountGlobal extends string = string, TAccountIdlAccount extends string = string, TAccountSystemProgram extends string = string, TAccountProgramSigner extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
46
+ authority: TransactionSigner<TAccountAuthority>;
47
+ global: Address<TAccountGlobal>;
48
+ idlAccount: Address<TAccountIdlAccount>;
49
+ systemProgram?: Address<TAccountSystemProgram>;
50
+ programSigner: Address<TAccountProgramSigner>;
51
+ eventAuthority: Address<TAccountEventAuthority>;
52
+ program: Address<TAccountProgram>;
53
+ idlAuthority: AdminSetIdlAuthorityInstructionDataArgs['idlAuthority'];
54
+ };
55
+ export declare function getAdminSetIdlAuthorityInstruction<TAccountAuthority extends string, TAccountGlobal extends string, TAccountIdlAccount extends string, TAccountSystemProgram extends string, TAccountProgramSigner extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: AdminSetIdlAuthorityInput<TAccountAuthority, TAccountGlobal, TAccountIdlAccount, TAccountSystemProgram, TAccountProgramSigner, TAccountEventAuthority, TAccountProgram>, config?: {
56
+ programAddress?: TProgramAddress;
57
+ }): AdminSetIdlAuthorityInstruction<TProgramAddress, TAccountAuthority, TAccountGlobal, TAccountIdlAccount, TAccountSystemProgram, TAccountProgramSigner, TAccountEventAuthority, TAccountProgram>;
58
+ export type ParsedAdminSetIdlAuthorityInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
59
+ programAddress: Address<TProgram>;
60
+ accounts: {
61
+ authority: TAccountMetas[0];
62
+ global: TAccountMetas[1];
63
+ idlAccount: TAccountMetas[2];
64
+ systemProgram: TAccountMetas[3];
65
+ programSigner: TAccountMetas[4];
66
+ eventAuthority: TAccountMetas[5];
67
+ program: TAccountMetas[6];
68
+ };
69
+ data: AdminSetIdlAuthorityInstructionData;
70
+ };
71
+ export declare function parseAdminSetIdlAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdminSetIdlAuthorityInstruction<TProgram, TAccountMetas>;
@@ -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 ADMIN_UPDATE_TOKEN_INCENTIVES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getAdminUpdateTokenIncentivesDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type AdminUpdateTokenIncentivesInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountGlobal extends string | AccountMeta<string> = string, TAccountGlobalVolumeAccumulator extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountGlobalIncentiveTokenAccount extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
14
+ TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
15
+ TAccountGlobalVolumeAccumulator extends string ? WritableAccount<TAccountGlobalVolumeAccumulator> : TAccountGlobalVolumeAccumulator,
16
+ TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
17
+ TAccountGlobalIncentiveTokenAccount extends string ? WritableAccount<TAccountGlobalIncentiveTokenAccount> : TAccountGlobalIncentiveTokenAccount,
18
+ TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
19
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
20
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
21
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
22
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
23
+ ...TRemainingAccounts
24
+ ]>;
25
+ export type AdminUpdateTokenIncentivesInstructionData = {
26
+ discriminator: ReadonlyUint8Array;
27
+ startTime: bigint;
28
+ endTime: bigint;
29
+ secondsInADay: bigint;
30
+ dayNumber: bigint;
31
+ pumpTokenSupplyPerDay: bigint;
32
+ };
33
+ export type AdminUpdateTokenIncentivesInstructionDataArgs = {
34
+ startTime: number | bigint;
35
+ endTime: number | bigint;
36
+ secondsInADay: number | bigint;
37
+ dayNumber: number | bigint;
38
+ pumpTokenSupplyPerDay: number | bigint;
39
+ };
40
+ export declare function getAdminUpdateTokenIncentivesInstructionDataEncoder(): FixedSizeEncoder<AdminUpdateTokenIncentivesInstructionDataArgs>;
41
+ export declare function getAdminUpdateTokenIncentivesInstructionDataDecoder(): FixedSizeDecoder<AdminUpdateTokenIncentivesInstructionData>;
42
+ export declare function getAdminUpdateTokenIncentivesInstructionDataCodec(): FixedSizeCodec<AdminUpdateTokenIncentivesInstructionDataArgs, AdminUpdateTokenIncentivesInstructionData>;
43
+ export type AdminUpdateTokenIncentivesAsyncInput<TAccountAuthority extends string = string, TAccountGlobal extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountMint extends string = string, TAccountGlobalIncentiveTokenAccount extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
44
+ authority: TransactionSigner<TAccountAuthority>;
45
+ global?: Address<TAccountGlobal>;
46
+ globalVolumeAccumulator?: Address<TAccountGlobalVolumeAccumulator>;
47
+ mint: Address<TAccountMint>;
48
+ globalIncentiveTokenAccount?: Address<TAccountGlobalIncentiveTokenAccount>;
49
+ associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
50
+ systemProgram?: Address<TAccountSystemProgram>;
51
+ tokenProgram?: Address<TAccountTokenProgram>;
52
+ eventAuthority?: Address<TAccountEventAuthority>;
53
+ program: Address<TAccountProgram>;
54
+ startTime: AdminUpdateTokenIncentivesInstructionDataArgs['startTime'];
55
+ endTime: AdminUpdateTokenIncentivesInstructionDataArgs['endTime'];
56
+ secondsInADay: AdminUpdateTokenIncentivesInstructionDataArgs['secondsInADay'];
57
+ dayNumber: AdminUpdateTokenIncentivesInstructionDataArgs['dayNumber'];
58
+ pumpTokenSupplyPerDay: AdminUpdateTokenIncentivesInstructionDataArgs['pumpTokenSupplyPerDay'];
59
+ };
60
+ export declare function getAdminUpdateTokenIncentivesInstructionAsync<TAccountAuthority extends string, TAccountGlobal extends string, TAccountGlobalVolumeAccumulator extends string, TAccountMint extends string, TAccountGlobalIncentiveTokenAccount extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: AdminUpdateTokenIncentivesAsyncInput<TAccountAuthority, TAccountGlobal, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
61
+ programAddress?: TProgramAddress;
62
+ }): Promise<AdminUpdateTokenIncentivesInstruction<TProgramAddress, TAccountAuthority, TAccountGlobal, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>>;
63
+ export type AdminUpdateTokenIncentivesInput<TAccountAuthority extends string = string, TAccountGlobal extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountMint extends string = string, TAccountGlobalIncentiveTokenAccount extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
64
+ authority: TransactionSigner<TAccountAuthority>;
65
+ global: Address<TAccountGlobal>;
66
+ globalVolumeAccumulator: Address<TAccountGlobalVolumeAccumulator>;
67
+ mint: Address<TAccountMint>;
68
+ globalIncentiveTokenAccount: Address<TAccountGlobalIncentiveTokenAccount>;
69
+ associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
70
+ systemProgram?: Address<TAccountSystemProgram>;
71
+ tokenProgram?: Address<TAccountTokenProgram>;
72
+ eventAuthority: Address<TAccountEventAuthority>;
73
+ program: Address<TAccountProgram>;
74
+ startTime: AdminUpdateTokenIncentivesInstructionDataArgs['startTime'];
75
+ endTime: AdminUpdateTokenIncentivesInstructionDataArgs['endTime'];
76
+ secondsInADay: AdminUpdateTokenIncentivesInstructionDataArgs['secondsInADay'];
77
+ dayNumber: AdminUpdateTokenIncentivesInstructionDataArgs['dayNumber'];
78
+ pumpTokenSupplyPerDay: AdminUpdateTokenIncentivesInstructionDataArgs['pumpTokenSupplyPerDay'];
79
+ };
80
+ export declare function getAdminUpdateTokenIncentivesInstruction<TAccountAuthority extends string, TAccountGlobal extends string, TAccountGlobalVolumeAccumulator extends string, TAccountMint extends string, TAccountGlobalIncentiveTokenAccount extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: AdminUpdateTokenIncentivesInput<TAccountAuthority, TAccountGlobal, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
81
+ programAddress?: TProgramAddress;
82
+ }): AdminUpdateTokenIncentivesInstruction<TProgramAddress, TAccountAuthority, TAccountGlobal, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>;
83
+ export type ParsedAdminUpdateTokenIncentivesInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
84
+ programAddress: Address<TProgram>;
85
+ accounts: {
86
+ authority: TAccountMetas[0];
87
+ global: TAccountMetas[1];
88
+ globalVolumeAccumulator: TAccountMetas[2];
89
+ mint: TAccountMetas[3];
90
+ globalIncentiveTokenAccount: TAccountMetas[4];
91
+ associatedTokenProgram: TAccountMetas[5];
92
+ systemProgram: TAccountMetas[6];
93
+ tokenProgram: TAccountMetas[7];
94
+ eventAuthority: TAccountMetas[8];
95
+ program: TAccountMetas[9];
96
+ };
97
+ data: AdminUpdateTokenIncentivesInstructionData;
98
+ };
99
+ export declare function parseAdminUpdateTokenIncentivesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdminUpdateTokenIncentivesInstruction<TProgram, TAccountMetas>;