pump-kit 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +12 -36
  2. package/dist/index.js +12 -12
  3. package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +43 -0
  4. package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +33 -0
  5. package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +16 -4
  6. package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
  7. package/dist/types/ammsdk/generated/accounts/index.d.ts +5 -0
  8. package/dist/types/ammsdk/generated/accounts/pool.d.ts +6 -0
  9. package/dist/types/ammsdk/generated/accounts/sharingConfig.d.ts +39 -0
  10. package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +43 -0
  11. package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +79 -29
  12. package/dist/types/ammsdk/generated/instructions/adminSetCoinCreator.d.ts +63 -0
  13. package/dist/types/ammsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
  14. package/dist/types/ammsdk/generated/instructions/buy.d.ts +67 -14
  15. package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +144 -0
  16. package/dist/types/ammsdk/generated/instructions/claimCashback.d.ts +74 -0
  17. package/dist/types/ammsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
  18. package/dist/types/ammsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
  19. package/dist/types/ammsdk/generated/instructions/collectCoinCreatorFee.d.ts +70 -0
  20. package/dist/types/ammsdk/generated/instructions/createConfig.d.ts +26 -5
  21. package/dist/types/ammsdk/generated/instructions/createPool.d.ts +51 -12
  22. package/dist/types/ammsdk/generated/instructions/deposit.d.ts +33 -10
  23. package/dist/types/ammsdk/generated/instructions/disable.d.ts +16 -2
  24. package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +12 -2
  25. package/dist/types/ammsdk/generated/instructions/index.d.ts +15 -0
  26. package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
  27. package/dist/types/ammsdk/generated/instructions/migratePoolCoinCreator.d.ts +54 -0
  28. package/dist/types/ammsdk/generated/instructions/sell.d.ts +54 -14
  29. package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +58 -0
  30. package/dist/types/ammsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
  31. package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
  32. package/dist/types/ammsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
  33. package/dist/types/ammsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
  34. package/dist/types/ammsdk/generated/instructions/transferCreatorFeesToPump.d.ts +81 -0
  35. package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +12 -2
  36. package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +22 -2
  37. package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +33 -10
  38. package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +65 -15
  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 +29 -4
  42. package/dist/types/ammsdk/generated/types/claimCashbackEvent.d.ts +25 -0
  43. package/dist/types/ammsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
  44. package/dist/types/ammsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
  45. package/dist/types/ammsdk/generated/types/collectCoinCreatorFeeEvent.d.ts +25 -0
  46. package/dist/types/ammsdk/generated/types/configStatus.d.ts +16 -0
  47. package/dist/types/ammsdk/generated/types/createConfigEvent.d.ts +4 -0
  48. package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +4 -0
  49. package/dist/types/ammsdk/generated/types/feeTier.d.ts +20 -0
  50. package/dist/types/ammsdk/generated/types/fees.d.ts +21 -0
  51. package/dist/types/ammsdk/generated/types/index.d.ts +17 -2
  52. package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
  53. package/dist/types/ammsdk/generated/types/migratePoolCoinCreatorEvent.d.ts +27 -0
  54. package/dist/types/ammsdk/generated/types/optionBool.d.ts +13 -0
  55. package/dist/types/ammsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
  56. package/dist/types/ammsdk/generated/types/sellEvent.d.ts +10 -0
  57. package/dist/types/ammsdk/generated/types/setBondingCurveCoinCreatorEvent.d.ts +25 -0
  58. package/dist/types/ammsdk/generated/types/setMetaplexCoinCreatorEvent.d.ts +25 -0
  59. package/dist/types/ammsdk/generated/types/shareholder.d.ts +16 -0
  60. package/dist/types/ammsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
  61. package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +4 -0
  62. package/dist/types/clients/amm.d.ts +2 -10
  63. package/dist/types/pumpsdk/generated/accounts/bondingCurve.d.ts +4 -0
  64. package/dist/types/pumpsdk/generated/accounts/global.d.ts +12 -0
  65. package/dist/types/pumpsdk/generated/accounts/index.d.ts +1 -0
  66. package/dist/types/pumpsdk/generated/accounts/sharingConfig.d.ts +39 -0
  67. package/dist/types/pumpsdk/generated/accounts/userVolumeAccumulator.d.ts +4 -0
  68. package/dist/types/pumpsdk/generated/errors/pump.d.ts +29 -1
  69. package/dist/types/pumpsdk/generated/instructions/buy.d.ts +1 -1
  70. package/dist/types/pumpsdk/generated/instructions/buyExactSolIn.d.ts +1 -1
  71. package/dist/types/pumpsdk/generated/instructions/claimCashback.d.ts +58 -0
  72. package/dist/types/pumpsdk/generated/instructions/createV2.d.ts +128 -0
  73. package/dist/types/pumpsdk/generated/instructions/distributeCreatorFees.d.ts +66 -0
  74. package/dist/types/pumpsdk/generated/instructions/getMinimumDistributableFee.d.ts +54 -0
  75. package/dist/types/pumpsdk/generated/instructions/index.d.ts +10 -0
  76. package/dist/types/pumpsdk/generated/instructions/migrateBondingCurveCreator.d.ts +58 -0
  77. package/dist/types/pumpsdk/generated/instructions/setMayhemVirtualParams.d.ts +70 -0
  78. package/dist/types/pumpsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
  79. package/dist/types/pumpsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
  80. package/dist/types/pumpsdk/generated/instructions/toggleCreateV2.d.ts +59 -0
  81. package/dist/types/pumpsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
  82. package/dist/types/pumpsdk/generated/programs/pump.d.ts +47 -16
  83. package/dist/types/pumpsdk/generated/types/claimCashbackEvent.d.ts +25 -0
  84. package/dist/types/pumpsdk/generated/types/configStatus.d.ts +16 -0
  85. package/dist/types/pumpsdk/generated/types/createEvent.d.ts +6 -0
  86. package/dist/types/pumpsdk/generated/types/distributeCreatorFeesEvent.d.ts +30 -0
  87. package/dist/types/pumpsdk/generated/types/index.d.ts +8 -0
  88. package/dist/types/pumpsdk/generated/types/migrateBondingCurveCreatorEvent.d.ts +27 -0
  89. package/dist/types/pumpsdk/generated/types/minimumDistributableFeeEvent.d.ts +21 -0
  90. package/dist/types/pumpsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
  91. package/dist/types/pumpsdk/generated/types/shareholder.d.ts +16 -0
  92. package/dist/types/pumpsdk/generated/types/tradeEvent.d.ts +6 -0
  93. package/dist/types/pumpsdk/generated/types/updateMayhemVirtualParamsEvent.d.ts +31 -0
  94. package/llms.txt +24 -0
  95. package/metadata/actions-registry.json +278 -0
  96. package/package.json +4 -2
  97. package/dist/types/ammsdk/generated/types/globalConfig.d.ts +0 -49
  98. package/dist/types/ammsdk/generated/types/pool.d.ts +0 -35
@@ -0,0 +1,43 @@
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<ArrayBuffer>;
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
+ isMayhemMode: boolean;
21
+ isCashbackCoin: boolean;
22
+ };
23
+ export type BondingCurveArgs = {
24
+ virtualTokenReserves: number | bigint;
25
+ virtualSolReserves: number | bigint;
26
+ realTokenReserves: number | bigint;
27
+ realSolReserves: number | bigint;
28
+ tokenTotalSupply: number | bigint;
29
+ complete: boolean;
30
+ creator: Address;
31
+ isMayhemMode: boolean;
32
+ isCashbackCoin: boolean;
33
+ };
34
+ export declare function getBondingCurveEncoder(): FixedSizeEncoder<BondingCurveArgs>;
35
+ export declare function getBondingCurveDecoder(): FixedSizeDecoder<BondingCurve>;
36
+ export declare function getBondingCurveCodec(): FixedSizeCodec<BondingCurveArgs, BondingCurve>;
37
+ export declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<BondingCurve, TAddress>;
38
+ export declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<BondingCurve, TAddress>;
39
+ export declare function fetchBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<BondingCurve, TAddress>>;
40
+ export declare function fetchMaybeBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<BondingCurve, TAddress>>;
41
+ export declare function fetchAllBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<BondingCurve>[]>;
42
+ export declare function fetchAllMaybeBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<BondingCurve>[]>;
43
+ 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<ArrayBuffer>;
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>[]>;
@@ -12,9 +12,7 @@ export type GlobalConfig = {
12
12
  discriminator: ReadonlyUint8Array;
13
13
  /** The admin pubkey */
14
14
  admin: Address;
15
- /** The lp fee in basis points (0.01%) */
16
15
  lpFeeBasisPoints: bigint;
17
- /** The protocol fee in basis points (0.01%) */
18
16
  protocolFeeBasisPoints: bigint;
19
17
  /**
20
18
  * Flags to disable certain functionality
@@ -27,13 +25,19 @@ export type GlobalConfig = {
27
25
  disableFlags: number;
28
26
  /** Addresses of the protocol fee recipients */
29
27
  protocolFeeRecipients: Array<Address>;
28
+ coinCreatorFeeBasisPoints: bigint;
29
+ /** The admin authority for setting coin creators */
30
+ adminSetCoinCreatorAuthority: Address;
31
+ whitelistPda: Address;
32
+ reservedFeeRecipient: Address;
33
+ mayhemModeEnabled: boolean;
34
+ reservedFeeRecipients: Array<Address>;
35
+ isCashbackEnabled: boolean;
30
36
  };
31
37
  export type GlobalConfigArgs = {
32
38
  /** The admin pubkey */
33
39
  admin: Address;
34
- /** The lp fee in basis points (0.01%) */
35
40
  lpFeeBasisPoints: number | bigint;
36
- /** The protocol fee in basis points (0.01%) */
37
41
  protocolFeeBasisPoints: number | bigint;
38
42
  /**
39
43
  * Flags to disable certain functionality
@@ -46,6 +50,14 @@ export type GlobalConfigArgs = {
46
50
  disableFlags: number;
47
51
  /** Addresses of the protocol fee recipients */
48
52
  protocolFeeRecipients: Array<Address>;
53
+ coinCreatorFeeBasisPoints: number | bigint;
54
+ /** The admin authority for setting coin creators */
55
+ adminSetCoinCreatorAuthority: Address;
56
+ whitelistPda: Address;
57
+ reservedFeeRecipient: Address;
58
+ mayhemModeEnabled: boolean;
59
+ reservedFeeRecipients: Array<Address>;
60
+ isCashbackEnabled: boolean;
49
61
  };
50
62
  export declare function getGlobalConfigEncoder(): FixedSizeEncoder<GlobalConfigArgs>;
51
63
  export declare function getGlobalConfigDecoder(): FixedSizeDecoder<GlobalConfig>;
@@ -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<ArrayBuffer>;
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;
@@ -5,5 +5,10 @@
5
5
  *
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
+ export * from './bondingCurve';
9
+ export * from './feeConfig';
8
10
  export * from './globalConfig';
11
+ export * from './globalVolumeAccumulator';
9
12
  export * from './pool';
13
+ export * from './sharingConfig';
14
+ export * from './userVolumeAccumulator';
@@ -20,6 +20,9 @@ export type Pool = {
20
20
  poolQuoteTokenAccount: Address;
21
21
  /** True circulating supply without burns and lock-ups */
22
22
  lpSupply: bigint;
23
+ coinCreator: Address;
24
+ isMayhemMode: boolean;
25
+ isCashbackCoin: boolean;
23
26
  };
24
27
  export type PoolArgs = {
25
28
  poolBump: number;
@@ -32,6 +35,9 @@ export type PoolArgs = {
32
35
  poolQuoteTokenAccount: Address;
33
36
  /** True circulating supply without burns and lock-ups */
34
37
  lpSupply: number | bigint;
38
+ coinCreator: Address;
39
+ isMayhemMode: boolean;
40
+ isCashbackCoin: boolean;
35
41
  };
36
42
  export declare function getPoolEncoder(): FixedSizeEncoder<PoolArgs>;
37
43
  export declare function getPoolDecoder(): FixedSizeDecoder<Pool>;
@@ -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 Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ import { type ConfigStatus, type ConfigStatusArgs, type Shareholder, type ShareholderArgs } from '../types';
10
+ export declare const SHARING_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getSharingConfigDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type SharingConfig = {
13
+ discriminator: ReadonlyUint8Array;
14
+ bump: number;
15
+ version: number;
16
+ status: ConfigStatus;
17
+ mint: Address;
18
+ admin: Address;
19
+ adminRevoked: boolean;
20
+ shareholders: Array<Shareholder>;
21
+ };
22
+ export type SharingConfigArgs = {
23
+ bump: number;
24
+ version: number;
25
+ status: ConfigStatusArgs;
26
+ mint: Address;
27
+ admin: Address;
28
+ adminRevoked: boolean;
29
+ shareholders: Array<ShareholderArgs>;
30
+ };
31
+ export declare function getSharingConfigEncoder(): Encoder<SharingConfigArgs>;
32
+ export declare function getSharingConfigDecoder(): Decoder<SharingConfig>;
33
+ export declare function getSharingConfigCodec(): Codec<SharingConfigArgs, SharingConfig>;
34
+ export declare function decodeSharingConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<SharingConfig, TAddress>;
35
+ export declare function decodeSharingConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<SharingConfig, TAddress>;
36
+ export declare function fetchSharingConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<SharingConfig, TAddress>>;
37
+ export declare function fetchMaybeSharingConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<SharingConfig, TAddress>>;
38
+ export declare function fetchAllSharingConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<SharingConfig>[]>;
39
+ export declare function fetchAllMaybeSharingConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<SharingConfig>[]>;
@@ -0,0 +1,43 @@
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<ArrayBuffer>;
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
+ cashbackEarned: bigint;
21
+ totalCashbackClaimed: bigint;
22
+ };
23
+ export type UserVolumeAccumulatorArgs = {
24
+ user: Address;
25
+ needsClaim: boolean;
26
+ totalUnclaimedTokens: number | bigint;
27
+ totalClaimedTokens: number | bigint;
28
+ currentSolVolume: number | bigint;
29
+ lastUpdateTimestamp: number | bigint;
30
+ hasTotalClaimedTokens: boolean;
31
+ cashbackEarned: number | bigint;
32
+ totalCashbackClaimed: number | bigint;
33
+ };
34
+ export declare function getUserVolumeAccumulatorEncoder(): FixedSizeEncoder<UserVolumeAccumulatorArgs>;
35
+ export declare function getUserVolumeAccumulatorDecoder(): FixedSizeDecoder<UserVolumeAccumulator>;
36
+ export declare function getUserVolumeAccumulatorCodec(): FixedSizeCodec<UserVolumeAccumulatorArgs, UserVolumeAccumulator>;
37
+ export declare function decodeUserVolumeAccumulator<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<UserVolumeAccumulator, TAddress>;
38
+ export declare function decodeUserVolumeAccumulator<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<UserVolumeAccumulator, TAddress>;
39
+ export declare function fetchUserVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<UserVolumeAccumulator, TAddress>>;
40
+ export declare function fetchMaybeUserVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<UserVolumeAccumulator, TAddress>>;
41
+ export declare function fetchAllUserVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<UserVolumeAccumulator>[]>;
42
+ export declare function fetchAllMaybeUserVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<UserVolumeAccumulator>[]>;
43
+ export declare function getUserVolumeAccumulatorSize(): number;
@@ -6,63 +6,113 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
9
- /** FeeBasisPointsExceedsMaximum */
9
+ /** FeeBasisPointsExceedsMaximum: */
10
10
  export declare const PUMP_AMM_ERROR__FEE_BASIS_POINTS_EXCEEDS_MAXIMUM = 6000;
11
- /** ZeroBaseAmount */
11
+ /** ZeroBaseAmount: */
12
12
  export declare const PUMP_AMM_ERROR__ZERO_BASE_AMOUNT = 6001;
13
- /** ZeroQuoteAmount */
13
+ /** ZeroQuoteAmount: */
14
14
  export declare const PUMP_AMM_ERROR__ZERO_QUOTE_AMOUNT = 6002;
15
- /** TooLittlePoolTokenLiquidity */
15
+ /** TooLittlePoolTokenLiquidity: */
16
16
  export declare const PUMP_AMM_ERROR__TOO_LITTLE_POOL_TOKEN_LIQUIDITY = 6003;
17
- /** ExceededSlippage */
17
+ /** ExceededSlippage: */
18
18
  export declare const PUMP_AMM_ERROR__EXCEEDED_SLIPPAGE = 6004;
19
- /** InvalidAdmin */
19
+ /** InvalidAdmin: */
20
20
  export declare const PUMP_AMM_ERROR__INVALID_ADMIN = 6005;
21
- /** UnsupportedBaseMint */
21
+ /** UnsupportedBaseMint: */
22
22
  export declare const PUMP_AMM_ERROR__UNSUPPORTED_BASE_MINT = 6006;
23
- /** UnsupportedQuoteMint */
23
+ /** UnsupportedQuoteMint: */
24
24
  export declare const PUMP_AMM_ERROR__UNSUPPORTED_QUOTE_MINT = 6007;
25
- /** InvalidBaseMint */
25
+ /** InvalidBaseMint: */
26
26
  export declare const PUMP_AMM_ERROR__INVALID_BASE_MINT = 6008;
27
- /** InvalidQuoteMint */
27
+ /** InvalidQuoteMint: */
28
28
  export declare const PUMP_AMM_ERROR__INVALID_QUOTE_MINT = 6009;
29
- /** InvalidLpMint */
29
+ /** InvalidLpMint: */
30
30
  export declare const PUMP_AMM_ERROR__INVALID_LP_MINT = 6010;
31
- /** AllProtocolFeeRecipientsShouldBeNonZero */
31
+ /** AllProtocolFeeRecipientsShouldBeNonZero: */
32
32
  export declare const PUMP_AMM_ERROR__ALL_PROTOCOL_FEE_RECIPIENTS_SHOULD_BE_NON_ZERO = 6011;
33
- /** UnsortedNotUniqueProtocolFeeRecipients */
33
+ /** UnsortedNotUniqueProtocolFeeRecipients: */
34
34
  export declare const PUMP_AMM_ERROR__UNSORTED_NOT_UNIQUE_PROTOCOL_FEE_RECIPIENTS = 6012;
35
- /** InvalidProtocolFeeRecipient */
35
+ /** InvalidProtocolFeeRecipient: */
36
36
  export declare const PUMP_AMM_ERROR__INVALID_PROTOCOL_FEE_RECIPIENT = 6013;
37
- /** InvalidPoolBaseTokenAccount */
37
+ /** InvalidPoolBaseTokenAccount: */
38
38
  export declare const PUMP_AMM_ERROR__INVALID_POOL_BASE_TOKEN_ACCOUNT = 6014;
39
- /** InvalidPoolQuoteTokenAccount */
39
+ /** InvalidPoolQuoteTokenAccount: */
40
40
  export declare const PUMP_AMM_ERROR__INVALID_POOL_QUOTE_TOKEN_ACCOUNT = 6015;
41
- /** BuyMoreBaseAmountThanPoolReserves */
41
+ /** BuyMoreBaseAmountThanPoolReserves: */
42
42
  export declare const PUMP_AMM_ERROR__BUY_MORE_BASE_AMOUNT_THAN_POOL_RESERVES = 6016;
43
- /** DisabledCreatePool */
43
+ /** DisabledCreatePool: */
44
44
  export declare const PUMP_AMM_ERROR__DISABLED_CREATE_POOL = 6017;
45
- /** DisabledDeposit */
45
+ /** DisabledDeposit: */
46
46
  export declare const PUMP_AMM_ERROR__DISABLED_DEPOSIT = 6018;
47
- /** DisabledWithdraw */
47
+ /** DisabledWithdraw: */
48
48
  export declare const PUMP_AMM_ERROR__DISABLED_WITHDRAW = 6019;
49
- /** DisabledBuy */
49
+ /** DisabledBuy: */
50
50
  export declare const PUMP_AMM_ERROR__DISABLED_BUY = 6020;
51
- /** DisabledSell */
51
+ /** DisabledSell: */
52
52
  export declare const PUMP_AMM_ERROR__DISABLED_SELL = 6021;
53
- /** SameMint */
53
+ /** SameMint: */
54
54
  export declare const PUMP_AMM_ERROR__SAME_MINT = 6022;
55
- /** Overflow */
55
+ /** Overflow: */
56
56
  export declare const PUMP_AMM_ERROR__OVERFLOW = 6023;
57
- /** Truncation */
57
+ /** Truncation: */
58
58
  export declare const PUMP_AMM_ERROR__TRUNCATION = 6024;
59
- /** DivisionByZero */
59
+ /** DivisionByZero: */
60
60
  export declare const PUMP_AMM_ERROR__DIVISION_BY_ZERO = 6025;
61
- /** NewSizeLessThanCurrentSize */
61
+ /** NewSizeLessThanCurrentSize: */
62
62
  export declare const PUMP_AMM_ERROR__NEW_SIZE_LESS_THAN_CURRENT_SIZE = 6026;
63
- /** AccountTypeNotSupported */
63
+ /** AccountTypeNotSupported: */
64
64
  export declare const PUMP_AMM_ERROR__ACCOUNT_TYPE_NOT_SUPPORTED = 6027;
65
- export type PumpAmmError = typeof PUMP_AMM_ERROR__ACCOUNT_TYPE_NOT_SUPPORTED | typeof PUMP_AMM_ERROR__ALL_PROTOCOL_FEE_RECIPIENTS_SHOULD_BE_NON_ZERO | typeof PUMP_AMM_ERROR__BUY_MORE_BASE_AMOUNT_THAN_POOL_RESERVES | typeof PUMP_AMM_ERROR__DISABLED_BUY | typeof PUMP_AMM_ERROR__DISABLED_CREATE_POOL | typeof PUMP_AMM_ERROR__DISABLED_DEPOSIT | typeof PUMP_AMM_ERROR__DISABLED_SELL | typeof PUMP_AMM_ERROR__DISABLED_WITHDRAW | typeof PUMP_AMM_ERROR__DIVISION_BY_ZERO | typeof PUMP_AMM_ERROR__EXCEEDED_SLIPPAGE | typeof PUMP_AMM_ERROR__FEE_BASIS_POINTS_EXCEEDS_MAXIMUM | typeof PUMP_AMM_ERROR__INVALID_ADMIN | typeof PUMP_AMM_ERROR__INVALID_BASE_MINT | typeof PUMP_AMM_ERROR__INVALID_LP_MINT | typeof PUMP_AMM_ERROR__INVALID_POOL_BASE_TOKEN_ACCOUNT | typeof PUMP_AMM_ERROR__INVALID_POOL_QUOTE_TOKEN_ACCOUNT | typeof PUMP_AMM_ERROR__INVALID_PROTOCOL_FEE_RECIPIENT | typeof PUMP_AMM_ERROR__INVALID_QUOTE_MINT | typeof PUMP_AMM_ERROR__NEW_SIZE_LESS_THAN_CURRENT_SIZE | typeof PUMP_AMM_ERROR__OVERFLOW | typeof PUMP_AMM_ERROR__SAME_MINT | typeof PUMP_AMM_ERROR__TOO_LITTLE_POOL_TOKEN_LIQUIDITY | typeof PUMP_AMM_ERROR__TRUNCATION | typeof PUMP_AMM_ERROR__UNSORTED_NOT_UNIQUE_PROTOCOL_FEE_RECIPIENTS | typeof PUMP_AMM_ERROR__UNSUPPORTED_BASE_MINT | typeof PUMP_AMM_ERROR__UNSUPPORTED_QUOTE_MINT | typeof PUMP_AMM_ERROR__ZERO_BASE_AMOUNT | typeof PUMP_AMM_ERROR__ZERO_QUOTE_AMOUNT;
65
+ /** OnlyCanonicalPumpPoolsCanHaveCoinCreator: */
66
+ export declare const PUMP_AMM_ERROR__ONLY_CANONICAL_PUMP_POOLS_CAN_HAVE_COIN_CREATOR = 6028;
67
+ /** InvalidAdminSetCoinCreatorAuthority: */
68
+ export declare const PUMP_AMM_ERROR__INVALID_ADMIN_SET_COIN_CREATOR_AUTHORITY = 6029;
69
+ /** StartTimeInThePast: */
70
+ export declare const PUMP_AMM_ERROR__START_TIME_IN_THE_PAST = 6030;
71
+ /** EndTimeInThePast: */
72
+ export declare const PUMP_AMM_ERROR__END_TIME_IN_THE_PAST = 6031;
73
+ /** EndTimeBeforeStartTime: */
74
+ export declare const PUMP_AMM_ERROR__END_TIME_BEFORE_START_TIME = 6032;
75
+ /** TimeRangeTooLarge: */
76
+ export declare const PUMP_AMM_ERROR__TIME_RANGE_TOO_LARGE = 6033;
77
+ /** EndTimeBeforeCurrentDay: */
78
+ export declare const PUMP_AMM_ERROR__END_TIME_BEFORE_CURRENT_DAY = 6034;
79
+ /** SupplyUpdateForFinishedRange: */
80
+ export declare const PUMP_AMM_ERROR__SUPPLY_UPDATE_FOR_FINISHED_RANGE = 6035;
81
+ /** DayIndexAfterEndIndex: */
82
+ export declare const PUMP_AMM_ERROR__DAY_INDEX_AFTER_END_INDEX = 6036;
83
+ /** DayInActiveRange: */
84
+ export declare const PUMP_AMM_ERROR__DAY_IN_ACTIVE_RANGE = 6037;
85
+ /** InvalidIncentiveMint: */
86
+ export declare const PUMP_AMM_ERROR__INVALID_INCENTIVE_MINT = 6038;
87
+ /** BuyNotEnoughQuoteTokensToCoverFees: buy: Not enough quote tokens to cover for fees. */
88
+ export declare const PUMP_AMM_ERROR__BUY_NOT_ENOUGH_QUOTE_TOKENS_TO_COVER_FEES = 6039;
89
+ /** BuySlippageBelowMinBaseAmountOut: buy: slippage - would buy less tokens than expected min_base_amount_out */
90
+ export declare const PUMP_AMM_ERROR__BUY_SLIPPAGE_BELOW_MIN_BASE_AMOUNT_OUT = 6040;
91
+ /** MayhemModeDisabled: */
92
+ export declare const PUMP_AMM_ERROR__MAYHEM_MODE_DISABLED = 6041;
93
+ /** OnlyPumpPoolsMayhemMode: */
94
+ export declare const PUMP_AMM_ERROR__ONLY_PUMP_POOLS_MAYHEM_MODE = 6042;
95
+ /** MayhemModeInDesiredState: */
96
+ export declare const PUMP_AMM_ERROR__MAYHEM_MODE_IN_DESIRED_STATE = 6043;
97
+ /** NotEnoughRemainingAccounts: */
98
+ export declare const PUMP_AMM_ERROR__NOT_ENOUGH_REMAINING_ACCOUNTS = 6044;
99
+ /** InvalidSharingConfigBaseMint: */
100
+ export declare const PUMP_AMM_ERROR__INVALID_SHARING_CONFIG_BASE_MINT = 6045;
101
+ /** InvalidSharingConfigCoinCreator: */
102
+ export declare const PUMP_AMM_ERROR__INVALID_SHARING_CONFIG_COIN_CREATOR = 6046;
103
+ /** CoinCreatorMigratedToSharingConfig: coin creator has been migrated to sharing config, use pump_fees::reset_fee_sharing_config instead */
104
+ export declare const PUMP_AMM_ERROR__COIN_CREATOR_MIGRATED_TO_SHARING_CONFIG = 6047;
105
+ /** CreatorVaultMigratedToSharingConfig: creator_vault has been migrated to sharing config, use pump:distribute_creator_fees instead */
106
+ export declare const PUMP_AMM_ERROR__CREATOR_VAULT_MIGRATED_TO_SHARING_CONFIG = 6048;
107
+ /** CashbackNotEnabled: Cashback is disabled */
108
+ export declare const PUMP_AMM_ERROR__CASHBACK_NOT_ENABLED = 6049;
109
+ /** OnlyPumpPoolsCashback: */
110
+ export declare const PUMP_AMM_ERROR__ONLY_PUMP_POOLS_CASHBACK = 6050;
111
+ /** CashbackNotInDesiredState: */
112
+ export declare const PUMP_AMM_ERROR__CASHBACK_NOT_IN_DESIRED_STATE = 6051;
113
+ /** CashbackEarnedDoesNotMatchTokenInVault: */
114
+ export declare const PUMP_AMM_ERROR__CASHBACK_EARNED_DOES_NOT_MATCH_TOKEN_IN_VAULT = 6052;
115
+ export type PumpAmmError = typeof PUMP_AMM_ERROR__ACCOUNT_TYPE_NOT_SUPPORTED | typeof PUMP_AMM_ERROR__ALL_PROTOCOL_FEE_RECIPIENTS_SHOULD_BE_NON_ZERO | typeof PUMP_AMM_ERROR__BUY_MORE_BASE_AMOUNT_THAN_POOL_RESERVES | typeof PUMP_AMM_ERROR__BUY_NOT_ENOUGH_QUOTE_TOKENS_TO_COVER_FEES | typeof PUMP_AMM_ERROR__BUY_SLIPPAGE_BELOW_MIN_BASE_AMOUNT_OUT | typeof PUMP_AMM_ERROR__CASHBACK_EARNED_DOES_NOT_MATCH_TOKEN_IN_VAULT | typeof PUMP_AMM_ERROR__CASHBACK_NOT_ENABLED | typeof PUMP_AMM_ERROR__CASHBACK_NOT_IN_DESIRED_STATE | typeof PUMP_AMM_ERROR__COIN_CREATOR_MIGRATED_TO_SHARING_CONFIG | typeof PUMP_AMM_ERROR__CREATOR_VAULT_MIGRATED_TO_SHARING_CONFIG | typeof PUMP_AMM_ERROR__DAY_IN_ACTIVE_RANGE | typeof PUMP_AMM_ERROR__DAY_INDEX_AFTER_END_INDEX | typeof PUMP_AMM_ERROR__DISABLED_BUY | typeof PUMP_AMM_ERROR__DISABLED_CREATE_POOL | typeof PUMP_AMM_ERROR__DISABLED_DEPOSIT | typeof PUMP_AMM_ERROR__DISABLED_SELL | typeof PUMP_AMM_ERROR__DISABLED_WITHDRAW | typeof PUMP_AMM_ERROR__DIVISION_BY_ZERO | typeof PUMP_AMM_ERROR__END_TIME_BEFORE_CURRENT_DAY | typeof PUMP_AMM_ERROR__END_TIME_BEFORE_START_TIME | typeof PUMP_AMM_ERROR__END_TIME_IN_THE_PAST | typeof PUMP_AMM_ERROR__EXCEEDED_SLIPPAGE | typeof PUMP_AMM_ERROR__FEE_BASIS_POINTS_EXCEEDS_MAXIMUM | typeof PUMP_AMM_ERROR__INVALID_ADMIN | typeof PUMP_AMM_ERROR__INVALID_ADMIN_SET_COIN_CREATOR_AUTHORITY | typeof PUMP_AMM_ERROR__INVALID_BASE_MINT | typeof PUMP_AMM_ERROR__INVALID_INCENTIVE_MINT | typeof PUMP_AMM_ERROR__INVALID_LP_MINT | typeof PUMP_AMM_ERROR__INVALID_POOL_BASE_TOKEN_ACCOUNT | typeof PUMP_AMM_ERROR__INVALID_POOL_QUOTE_TOKEN_ACCOUNT | typeof PUMP_AMM_ERROR__INVALID_PROTOCOL_FEE_RECIPIENT | typeof PUMP_AMM_ERROR__INVALID_QUOTE_MINT | typeof PUMP_AMM_ERROR__INVALID_SHARING_CONFIG_BASE_MINT | typeof PUMP_AMM_ERROR__INVALID_SHARING_CONFIG_COIN_CREATOR | typeof PUMP_AMM_ERROR__MAYHEM_MODE_DISABLED | typeof PUMP_AMM_ERROR__MAYHEM_MODE_IN_DESIRED_STATE | typeof PUMP_AMM_ERROR__NEW_SIZE_LESS_THAN_CURRENT_SIZE | typeof PUMP_AMM_ERROR__NOT_ENOUGH_REMAINING_ACCOUNTS | typeof PUMP_AMM_ERROR__ONLY_CANONICAL_PUMP_POOLS_CAN_HAVE_COIN_CREATOR | typeof PUMP_AMM_ERROR__ONLY_PUMP_POOLS_CASHBACK | typeof PUMP_AMM_ERROR__ONLY_PUMP_POOLS_MAYHEM_MODE | typeof PUMP_AMM_ERROR__OVERFLOW | typeof PUMP_AMM_ERROR__SAME_MINT | typeof PUMP_AMM_ERROR__START_TIME_IN_THE_PAST | typeof PUMP_AMM_ERROR__SUPPLY_UPDATE_FOR_FINISHED_RANGE | typeof PUMP_AMM_ERROR__TIME_RANGE_TOO_LARGE | typeof PUMP_AMM_ERROR__TOO_LITTLE_POOL_TOKEN_LIQUIDITY | typeof PUMP_AMM_ERROR__TRUNCATION | typeof PUMP_AMM_ERROR__UNSORTED_NOT_UNIQUE_PROTOCOL_FEE_RECIPIENTS | typeof PUMP_AMM_ERROR__UNSUPPORTED_BASE_MINT | typeof PUMP_AMM_ERROR__UNSUPPORTED_QUOTE_MINT | typeof PUMP_AMM_ERROR__ZERO_BASE_AMOUNT | typeof PUMP_AMM_ERROR__ZERO_QUOTE_AMOUNT;
66
116
  export declare function getPumpAmmErrorMessage(code: PumpAmmError): string;
67
117
  export declare function isPumpAmmError<TProgramErrorCode extends PumpAmmError>(error: unknown, transactionMessage: {
68
118
  instructions: Record<number, {
@@ -0,0 +1,63 @@
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_AMM_PROGRAM_ADDRESS } from '../programs';
10
+ export declare const ADMIN_SET_COIN_CREATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getAdminSetCoinCreatorDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type AdminSetCoinCreatorInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountAdminSetCoinCreatorAuthority extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountPool 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
+ TAccountAdminSetCoinCreatorAuthority extends string ? ReadonlySignerAccount<TAccountAdminSetCoinCreatorAuthority> & AccountSignerMeta<TAccountAdminSetCoinCreatorAuthority> : TAccountAdminSetCoinCreatorAuthority,
14
+ TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
15
+ TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
16
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
17
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
18
+ ...TRemainingAccounts
19
+ ]>;
20
+ export type AdminSetCoinCreatorInstructionData = {
21
+ discriminator: ReadonlyUint8Array;
22
+ coinCreator: Address;
23
+ };
24
+ export type AdminSetCoinCreatorInstructionDataArgs = {
25
+ coinCreator: Address;
26
+ };
27
+ export declare function getAdminSetCoinCreatorInstructionDataEncoder(): FixedSizeEncoder<AdminSetCoinCreatorInstructionDataArgs>;
28
+ export declare function getAdminSetCoinCreatorInstructionDataDecoder(): FixedSizeDecoder<AdminSetCoinCreatorInstructionData>;
29
+ export declare function getAdminSetCoinCreatorInstructionDataCodec(): FixedSizeCodec<AdminSetCoinCreatorInstructionDataArgs, AdminSetCoinCreatorInstructionData>;
30
+ export type AdminSetCoinCreatorAsyncInput<TAccountAdminSetCoinCreatorAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountPool extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
31
+ adminSetCoinCreatorAuthority: TransactionSigner<TAccountAdminSetCoinCreatorAuthority>;
32
+ globalConfig: Address<TAccountGlobalConfig>;
33
+ pool: Address<TAccountPool>;
34
+ eventAuthority?: Address<TAccountEventAuthority>;
35
+ program: Address<TAccountProgram>;
36
+ coinCreator: AdminSetCoinCreatorInstructionDataArgs['coinCreator'];
37
+ };
38
+ export declare function getAdminSetCoinCreatorInstructionAsync<TAccountAdminSetCoinCreatorAuthority extends string, TAccountGlobalConfig extends string, TAccountPool extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: AdminSetCoinCreatorAsyncInput<TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>, config?: {
39
+ programAddress?: TProgramAddress;
40
+ }): Promise<AdminSetCoinCreatorInstruction<TProgramAddress, TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>>;
41
+ export type AdminSetCoinCreatorInput<TAccountAdminSetCoinCreatorAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountPool extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
42
+ adminSetCoinCreatorAuthority: TransactionSigner<TAccountAdminSetCoinCreatorAuthority>;
43
+ globalConfig: Address<TAccountGlobalConfig>;
44
+ pool: Address<TAccountPool>;
45
+ eventAuthority: Address<TAccountEventAuthority>;
46
+ program: Address<TAccountProgram>;
47
+ coinCreator: AdminSetCoinCreatorInstructionDataArgs['coinCreator'];
48
+ };
49
+ export declare function getAdminSetCoinCreatorInstruction<TAccountAdminSetCoinCreatorAuthority extends string, TAccountGlobalConfig extends string, TAccountPool extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: AdminSetCoinCreatorInput<TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>, config?: {
50
+ programAddress?: TProgramAddress;
51
+ }): AdminSetCoinCreatorInstruction<TProgramAddress, TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>;
52
+ export type ParsedAdminSetCoinCreatorInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
53
+ programAddress: Address<TProgram>;
54
+ accounts: {
55
+ adminSetCoinCreatorAuthority: TAccountMetas[0];
56
+ globalConfig: TAccountMetas[1];
57
+ pool: TAccountMetas[2];
58
+ eventAuthority: TAccountMetas[3];
59
+ program: TAccountMetas[4];
60
+ };
61
+ data: AdminSetCoinCreatorInstructionData;
62
+ };
63
+ export declare function parseAdminSetCoinCreatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdminSetCoinCreatorInstruction<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_AMM_PROGRAM_ADDRESS } from '../programs';
10
+ export declare const ADMIN_UPDATE_TOKEN_INCENTIVES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getAdminUpdateTokenIncentivesDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type AdminUpdateTokenIncentivesInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountAdmin extends string | AccountMeta<string> = string, TAccountGlobalConfig 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
+ TAccountAdmin extends string ? WritableSignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
14
+ TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
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
+ tokenSupplyPerDay: bigint;
32
+ };
33
+ export type AdminUpdateTokenIncentivesInstructionDataArgs = {
34
+ startTime: number | bigint;
35
+ endTime: number | bigint;
36
+ secondsInADay: number | bigint;
37
+ dayNumber: number | bigint;
38
+ tokenSupplyPerDay: 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<TAccountAdmin extends string = string, TAccountGlobalConfig 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
+ admin: TransactionSigner<TAccountAdmin>;
45
+ globalConfig?: Address<TAccountGlobalConfig>;
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
+ tokenSupplyPerDay: AdminUpdateTokenIncentivesInstructionDataArgs['tokenSupplyPerDay'];
59
+ };
60
+ export declare function getAdminUpdateTokenIncentivesInstructionAsync<TAccountAdmin extends string, TAccountGlobalConfig 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_AMM_PROGRAM_ADDRESS>(input: AdminUpdateTokenIncentivesAsyncInput<TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
61
+ programAddress?: TProgramAddress;
62
+ }): Promise<AdminUpdateTokenIncentivesInstruction<TProgramAddress, TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>>;
63
+ export type AdminUpdateTokenIncentivesInput<TAccountAdmin extends string = string, TAccountGlobalConfig 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
+ admin: TransactionSigner<TAccountAdmin>;
65
+ globalConfig: Address<TAccountGlobalConfig>;
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
+ tokenSupplyPerDay: AdminUpdateTokenIncentivesInstructionDataArgs['tokenSupplyPerDay'];
79
+ };
80
+ export declare function getAdminUpdateTokenIncentivesInstruction<TAccountAdmin extends string, TAccountGlobalConfig 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_AMM_PROGRAM_ADDRESS>(input: AdminUpdateTokenIncentivesInput<TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
81
+ programAddress?: TProgramAddress;
82
+ }): AdminUpdateTokenIncentivesInstruction<TProgramAddress, TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>;
83
+ export type ParsedAdminUpdateTokenIncentivesInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
84
+ programAddress: Address<TProgram>;
85
+ accounts: {
86
+ admin: TAccountMetas[0];
87
+ globalConfig: 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>;