@send-fun/sdk 1.0.0

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 (172) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -0
  3. package/dist/index.cjs +12808 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +4406 -0
  6. package/dist/index.d.cts.map +1 -0
  7. package/dist/index.d.mts +4405 -0
  8. package/dist/index.d.mts.map +1 -0
  9. package/dist/index.mjs +12749 -0
  10. package/dist/index.mjs.map +1 -0
  11. package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
  12. package/package.json +72 -0
  13. package/src/constants.ts +38 -0
  14. package/src/dex/generated/accounts/globalConfig.ts +189 -0
  15. package/src/dex/generated/accounts/index.ts +12 -0
  16. package/src/dex/generated/accounts/pool.ts +244 -0
  17. package/src/dex/generated/accounts/rewardAccrual.ts +191 -0
  18. package/src/dex/generated/accounts/sendDex.accounts.ts +47 -0
  19. package/src/dex/generated/errors/index.ts +9 -0
  20. package/src/dex/generated/errors/sendDex.ts +161 -0
  21. package/src/dex/generated/events/anchorEventCpiDiscriminator.framing.ts +28 -0
  22. package/src/dex/generated/events/creatorClaimEvent.ts +119 -0
  23. package/src/dex/generated/events/depositQuoteEvent.ts +115 -0
  24. package/src/dex/generated/events/index.ts +16 -0
  25. package/src/dex/generated/events/poolCreateEvent.ts +128 -0
  26. package/src/dex/generated/events/protocolClaimEvent.ts +111 -0
  27. package/src/dex/generated/events/sendDex.events.ts +184 -0
  28. package/src/dex/generated/events/tokenCreateEvent.ts +143 -0
  29. package/src/dex/generated/events/tradeEvent.ts +143 -0
  30. package/src/dex/generated/index.ts +16 -0
  31. package/src/dex/generated/instructions/buyExactIn.ts +815 -0
  32. package/src/dex/generated/instructions/buyExactOut.ts +815 -0
  33. package/src/dex/generated/instructions/claimCreatorFees.ts +648 -0
  34. package/src/dex/generated/instructions/claimProtocolFees.ts +640 -0
  35. package/src/dex/generated/instructions/index.ts +15 -0
  36. package/src/dex/generated/instructions/sellExactIn.ts +815 -0
  37. package/src/dex/generated/instructions/sellExactOut.ts +815 -0
  38. package/src/dex/generated/instructions/sendDex.instructions.ts +173 -0
  39. package/src/dex/generated/pdas/eventAuthority.ts +20 -0
  40. package/src/dex/generated/pdas/globalConfig.ts +20 -0
  41. package/src/dex/generated/pdas/index.ts +14 -0
  42. package/src/dex/generated/pdas/lpMint.ts +36 -0
  43. package/src/dex/generated/pdas/pool.ts +34 -0
  44. package/src/dex/generated/pdas/rewardAccrual.ts +37 -0
  45. package/src/dex/generated/pdas/wsolRewardAccrual.ts +20 -0
  46. package/src/dex/generated/plugins/index.ts +9 -0
  47. package/src/dex/generated/plugins/sendDex.ts +282 -0
  48. package/src/dex/generated/programs/index.ts +9 -0
  49. package/src/dex/generated/programs/sendDex.ts +12 -0
  50. package/src/dex/generated/types/index.ts +10 -0
  51. package/src/dex/generated/types/poolStatus.ts +38 -0
  52. package/src/dex/generated/types/tradeDirection.ts +38 -0
  53. package/src/dex/index.ts +8 -0
  54. package/src/dex/trade.ts +215 -0
  55. package/src/index.ts +8 -0
  56. package/src/launchpad/create.ts +116 -0
  57. package/src/launchpad/generated/accounts/bondingCurve.ts +273 -0
  58. package/src/launchpad/generated/accounts/globalConfig.ts +211 -0
  59. package/src/launchpad/generated/accounts/index.ts +12 -0
  60. package/src/launchpad/generated/accounts/rewardAccrual.ts +191 -0
  61. package/src/launchpad/generated/accounts/sendLaunchpad.accounts.ts +50 -0
  62. package/src/launchpad/generated/errors/index.ts +9 -0
  63. package/src/launchpad/generated/errors/sendLaunchpad.ts +175 -0
  64. package/src/launchpad/generated/events/anchorEventCpiDiscriminator.framing.ts +28 -0
  65. package/src/launchpad/generated/events/completeEvent.ts +120 -0
  66. package/src/launchpad/generated/events/creatorClaimEvent.ts +122 -0
  67. package/src/launchpad/generated/events/index.ts +17 -0
  68. package/src/launchpad/generated/events/migrateEvent.ts +121 -0
  69. package/src/launchpad/generated/events/protocolClaimEvent.ts +114 -0
  70. package/src/launchpad/generated/events/recycleEvent.ts +113 -0
  71. package/src/launchpad/generated/events/sendLaunchpad.events.ts +207 -0
  72. package/src/launchpad/generated/events/tokenCreateEvent.ts +156 -0
  73. package/src/launchpad/generated/events/tradeEvent.ts +148 -0
  74. package/src/launchpad/generated/index.ts +16 -0
  75. package/src/launchpad/generated/instructions/buyExactIn.ts +818 -0
  76. package/src/launchpad/generated/instructions/buyExactOut.ts +818 -0
  77. package/src/launchpad/generated/instructions/claimCreatorFees.ts +651 -0
  78. package/src/launchpad/generated/instructions/claimProtocolFees.ts +640 -0
  79. package/src/launchpad/generated/instructions/createToken.ts +1150 -0
  80. package/src/launchpad/generated/instructions/index.ts +17 -0
  81. package/src/launchpad/generated/instructions/migrate.ts +840 -0
  82. package/src/launchpad/generated/instructions/sellExactIn.ts +818 -0
  83. package/src/launchpad/generated/instructions/sellExactOut.ts +818 -0
  84. package/src/launchpad/generated/instructions/sendLaunchpad.instructions.ts +210 -0
  85. package/src/launchpad/generated/pdas/bondingCurve.ts +39 -0
  86. package/src/launchpad/generated/pdas/eventAuthority.ts +20 -0
  87. package/src/launchpad/generated/pdas/globalConfig.ts +20 -0
  88. package/src/launchpad/generated/pdas/index.ts +14 -0
  89. package/src/launchpad/generated/pdas/migrationAuthority.ts +20 -0
  90. package/src/launchpad/generated/pdas/rewardAccrual.ts +37 -0
  91. package/src/launchpad/generated/pdas/wsolRewardAccrual.ts +20 -0
  92. package/src/launchpad/generated/plugins/index.ts +9 -0
  93. package/src/launchpad/generated/plugins/sendLaunchpad.ts +315 -0
  94. package/src/launchpad/generated/programs/index.ts +9 -0
  95. package/src/launchpad/generated/programs/sendLaunchpad.ts +12 -0
  96. package/src/launchpad/generated/types/bondingCurveStatus.ts +43 -0
  97. package/src/launchpad/generated/types/index.ts +10 -0
  98. package/src/launchpad/generated/types/tradeDirection.ts +38 -0
  99. package/src/launchpad/index.ts +10 -0
  100. package/src/launchpad/migrate.ts +54 -0
  101. package/src/launchpad/trade.ts +247 -0
  102. package/src/math/amm.ts +511 -0
  103. package/src/math/fee-decay.ts +49 -0
  104. package/src/math/fees.ts +75 -0
  105. package/src/math/index.ts +3 -0
  106. package/src/math/internal.ts +16 -0
  107. package/src/nexus/fee-helpers.ts +49 -0
  108. package/src/nexus/generated/accounts/altRegistry.ts +177 -0
  109. package/src/nexus/generated/accounts/creatorFeeConfig.ts +200 -0
  110. package/src/nexus/generated/accounts/feePreset.ts +196 -0
  111. package/src/nexus/generated/accounts/globalConfig.ts +188 -0
  112. package/src/nexus/generated/accounts/index.ts +19 -0
  113. package/src/nexus/generated/accounts/partnerConfig.ts +209 -0
  114. package/src/nexus/generated/accounts/partnerMetadata.ts +216 -0
  115. package/src/nexus/generated/accounts/rewardState.ts +209 -0
  116. package/src/nexus/generated/accounts/sendNexus.accounts.ts +85 -0
  117. package/src/nexus/generated/accounts/stakingConfig.ts +197 -0
  118. package/src/nexus/generated/accounts/userRewardDebt.ts +221 -0
  119. package/src/nexus/generated/accounts/userStakePosition.ts +218 -0
  120. package/src/nexus/generated/constants/index.ts +9 -0
  121. package/src/nexus/generated/constants/sendNexus.ts +13 -0
  122. package/src/nexus/generated/errors/index.ts +9 -0
  123. package/src/nexus/generated/errors/sendNexus.ts +229 -0
  124. package/src/nexus/generated/events/anchorEventCpiDiscriminator.framing.ts +28 -0
  125. package/src/nexus/generated/events/claimEvent.ts +106 -0
  126. package/src/nexus/generated/events/index.ts +13 -0
  127. package/src/nexus/generated/events/sendNexus.events.ts +121 -0
  128. package/src/nexus/generated/events/stakeEvent.ts +106 -0
  129. package/src/nexus/generated/events/unstakeEvent.ts +106 -0
  130. package/src/nexus/generated/index.ts +17 -0
  131. package/src/nexus/generated/instructions/claim.ts +740 -0
  132. package/src/nexus/generated/instructions/createUserRewardDebt.ts +498 -0
  133. package/src/nexus/generated/instructions/index.ts +14 -0
  134. package/src/nexus/generated/instructions/sendNexus.instructions.ts +146 -0
  135. package/src/nexus/generated/instructions/settle.ts +517 -0
  136. package/src/nexus/generated/instructions/stake.ts +615 -0
  137. package/src/nexus/generated/instructions/unstake.ts +593 -0
  138. package/src/nexus/generated/pdas/altRegistry.ts +20 -0
  139. package/src/nexus/generated/pdas/creatorFeeConfig.ts +39 -0
  140. package/src/nexus/generated/pdas/defaultFeePreset.ts +37 -0
  141. package/src/nexus/generated/pdas/defaultPartner.ts +40 -0
  142. package/src/nexus/generated/pdas/defaultPartnerMetadata.ts +42 -0
  143. package/src/nexus/generated/pdas/eventAuthority.ts +20 -0
  144. package/src/nexus/generated/pdas/feePreset.ts +39 -0
  145. package/src/nexus/generated/pdas/globalConfig.ts +20 -0
  146. package/src/nexus/generated/pdas/index.ts +22 -0
  147. package/src/nexus/generated/pdas/partnerConfig.ts +36 -0
  148. package/src/nexus/generated/pdas/partnerMetadata.ts +38 -0
  149. package/src/nexus/generated/pdas/rewardState.ts +36 -0
  150. package/src/nexus/generated/pdas/stakingConfig.ts +20 -0
  151. package/src/nexus/generated/pdas/userRewardDebt.ts +41 -0
  152. package/src/nexus/generated/pdas/userStakePosition.ts +39 -0
  153. package/src/nexus/generated/plugins/index.ts +9 -0
  154. package/src/nexus/generated/plugins/sendNexus.ts +494 -0
  155. package/src/nexus/generated/programs/index.ts +9 -0
  156. package/src/nexus/generated/programs/sendNexus.ts +12 -0
  157. package/src/nexus/generated/types/authPlatformEntry.ts +52 -0
  158. package/src/nexus/generated/types/callerType.ts +38 -0
  159. package/src/nexus/generated/types/dexFees.ts +64 -0
  160. package/src/nexus/generated/types/feeConfig.ts +73 -0
  161. package/src/nexus/generated/types/index.ts +13 -0
  162. package/src/nexus/generated/types/launchpadFees.ts +63 -0
  163. package/src/nexus/index.ts +9 -0
  164. package/src/nexus/staking.ts +581 -0
  165. package/src/platform.ts +19 -0
  166. package/src/transfer-fee.ts +216 -0
  167. package/src/utils/chunk.ts +21 -0
  168. package/src/utils/creator-hash.ts +57 -0
  169. package/src/utils/index.ts +9 -0
  170. package/src/utils/mint-info.ts +102 -0
  171. package/src/utils/partner.ts +5 -0
  172. package/src/utils/pda.ts +24 -0
@@ -0,0 +1,4406 @@
1
+ import { Account, AccountMeta, AccountSignerMeta, Address, ClientWithPayer, ClientWithRpc, ClientWithTransactionPlanning, ClientWithTransactionSending, Codec, Commitment, Decoder, EncodedAccount, Encoder, ExtendedClient, FetchAccountConfig, FetchAccountsConfig, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, GetAccountInfoApi, GetEpochInfoApi, GetMultipleAccountsApi, GetProgramAccountsApi, Instruction, InstructionWithAccounts, InstructionWithData, MaybeAccount, MaybeEncodedAccount, ProgramDerivedAddress, ReadonlyAccount, ReadonlySignerAccount, ReadonlyUint8Array, Rpc, SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, SolanaError, TransactionSigner, WritableAccount, WritableSignerAccount, fetchEncodedAccount, fetchEncodedAccounts } from "@solana/kit";
2
+ import { SelfFetchFunctions, SelfPlanAndSendFunctions } from "@solana/program-client-core";
3
+ //#endregion
4
+ //#region src/dex/generated/programs/sendDex.d.ts
5
+ declare const SEND_DEX_PROGRAM_ADDRESS: Address<"84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">;
6
+ //#endregion
7
+ //#region src/launchpad/generated/programs/sendLaunchpad.d.ts
8
+ declare const SEND_LAUNCHPAD_PROGRAM_ADDRESS: Address<"5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
9
+ //#endregion
10
+ //#region src/nexus/generated/programs/sendNexus.d.ts
11
+ declare const SEND_NEXUS_PROGRAM_ADDRESS: Address<"7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX">;
12
+ declare namespace constants_d_exports {
13
+ export { ASSOCIATED_TOKEN_PROGRAM_ADDRESS, DEFAULT_PARTNER, PYTH_SOL_USD_PRICE_ACCOUNT, SEND_DEX_PROGRAM_ADDRESS, SEND_LAUNCHPAD_PROGRAM_ADDRESS, SEND_NEXUS_PROGRAM_ADDRESS, SYSTEM_PROGRAM_ADDRESS, TOKEN_2022_PROGRAM_ADDRESS, TOKEN_DECIMALS, TOKEN_PROGRAM_ADDRESS, USDC_MINT, WSOL_MINT };
14
+ }
15
+ declare const TOKEN_DECIMALS = 6;
16
+ declare const SYSTEM_PROGRAM_ADDRESS: Address<"11111111111111111111111111111111">;
17
+ declare const TOKEN_PROGRAM_ADDRESS: Address<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">;
18
+ declare const TOKEN_2022_PROGRAM_ADDRESS: Address<"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb">;
19
+ declare const ASSOCIATED_TOKEN_PROGRAM_ADDRESS: Address<"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL">;
20
+ declare const WSOL_MINT: Address;
21
+ declare const USDC_MINT: Address;
22
+ declare const DEFAULT_PARTNER: Address<"11111111111111111111111111111111">;
23
+ declare const PYTH_SOL_USD_PRICE_ACCOUNT: Address;
24
+ //#endregion
25
+ //#region src/dex/generated/accounts/globalConfig.d.ts
26
+ declare const GLOBAL_CONFIG_DISCRIMINATOR$2: ReadonlyUint8Array;
27
+ declare function getGlobalConfigDiscriminatorBytes$2(): ReadonlyUint8Array;
28
+ type GlobalConfig$2 = {
29
+ discriminator: ReadonlyUint8Array;
30
+ version: number;
31
+ bump: number;
32
+ authority: Address;
33
+ operator: Address;
34
+ createTokenDisabled: boolean;
35
+ reserved: ReadonlyUint8Array;
36
+ };
37
+ type GlobalConfigArgs$2 = {
38
+ version: number;
39
+ bump: number;
40
+ authority: Address;
41
+ operator: Address;
42
+ createTokenDisabled: boolean;
43
+ reserved: ReadonlyUint8Array;
44
+ };
45
+ /** Gets the encoder for {@link GlobalConfigArgs} account data. */
46
+ declare function getGlobalConfigEncoder$2(): FixedSizeEncoder<GlobalConfigArgs$2>;
47
+ /** Gets the decoder for {@link GlobalConfig} account data. */
48
+ declare function getGlobalConfigDecoder$2(): FixedSizeDecoder<GlobalConfig$2>;
49
+ /** Gets the codec for {@link GlobalConfig} account data. */
50
+ declare function getGlobalConfigCodec$2(): FixedSizeCodec<GlobalConfigArgs$2, GlobalConfig$2>;
51
+ declare function decodeGlobalConfig$2<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<GlobalConfig$2, TAddress>;
52
+ declare function decodeGlobalConfig$2<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<GlobalConfig$2, TAddress>;
53
+ declare function fetchGlobalConfig$2<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<GlobalConfig$2, TAddress>>;
54
+ declare function fetchMaybeGlobalConfig$2<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<GlobalConfig$2, TAddress>>;
55
+ declare function fetchAllGlobalConfig$2(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<GlobalConfig$2>[]>;
56
+ declare function fetchAllMaybeGlobalConfig$2(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<GlobalConfig$2>[]>;
57
+ declare function getGlobalConfigSize$1(): number;
58
+ //#endregion
59
+ //#region src/dex/generated/types/poolStatus.d.ts
60
+ declare enum PoolStatus {
61
+ Active = 0,
62
+ Paused = 1
63
+ }
64
+ type PoolStatusArgs = PoolStatus;
65
+ declare function getPoolStatusEncoder(): FixedSizeEncoder<PoolStatusArgs>;
66
+ declare function getPoolStatusDecoder(): FixedSizeDecoder<PoolStatus>;
67
+ declare function getPoolStatusCodec(): FixedSizeCodec<PoolStatusArgs, PoolStatus>;
68
+ //#endregion
69
+ //#region src/dex/generated/types/tradeDirection.d.ts
70
+ declare enum TradeDirection$1 {
71
+ Buy = 0,
72
+ Sell = 1
73
+ }
74
+ type TradeDirectionArgs$1 = TradeDirection$1;
75
+ declare function getTradeDirectionEncoder$1(): FixedSizeEncoder<TradeDirectionArgs$1>;
76
+ declare function getTradeDirectionDecoder$1(): FixedSizeDecoder<TradeDirection$1>;
77
+ declare function getTradeDirectionCodec$1(): FixedSizeCodec<TradeDirectionArgs$1, TradeDirection$1>;
78
+ declare namespace index_d_exports$25 {
79
+ export { PoolStatus, PoolStatusArgs, TradeDirection$1 as TradeDirection, TradeDirectionArgs$1 as TradeDirectionArgs, getPoolStatusCodec, getPoolStatusDecoder, getPoolStatusEncoder, getTradeDirectionCodec$1 as getTradeDirectionCodec, getTradeDirectionDecoder$1 as getTradeDirectionDecoder, getTradeDirectionEncoder$1 as getTradeDirectionEncoder };
80
+ }
81
+ //#endregion
82
+ //#region src/dex/generated/accounts/pool.d.ts
83
+ declare const POOL_DISCRIMINATOR: ReadonlyUint8Array;
84
+ declare function getPoolDiscriminatorBytes(): ReadonlyUint8Array;
85
+ type Pool = {
86
+ discriminator: ReadonlyUint8Array;
87
+ version: number;
88
+ bump: number;
89
+ status: PoolStatus;
90
+ baseMint: Address;
91
+ baseDecimals: number;
92
+ quoteMint: Address;
93
+ quoteDecimals: number;
94
+ coinCreator: Address;
95
+ creatorFeeConfig: Address;
96
+ baseVault: Address;
97
+ quoteVault: Address;
98
+ lpMint: Address;
99
+ lpSupply: bigint;
100
+ baseReserves: bigint;
101
+ quoteReserves: bigint;
102
+ quoteLedger: bigint;
103
+ createdAt: bigint;
104
+ protocolOwed: bigint;
105
+ creatorOwed: bigint;
106
+ platformConfig: Address;
107
+ reserved: ReadonlyUint8Array;
108
+ };
109
+ type PoolArgs = {
110
+ version: number;
111
+ bump: number;
112
+ status: PoolStatusArgs;
113
+ baseMint: Address;
114
+ baseDecimals: number;
115
+ quoteMint: Address;
116
+ quoteDecimals: number;
117
+ coinCreator: Address;
118
+ creatorFeeConfig: Address;
119
+ baseVault: Address;
120
+ quoteVault: Address;
121
+ lpMint: Address;
122
+ lpSupply: number | bigint;
123
+ baseReserves: number | bigint;
124
+ quoteReserves: number | bigint;
125
+ quoteLedger: number | bigint;
126
+ createdAt: number | bigint;
127
+ protocolOwed: number | bigint;
128
+ creatorOwed: number | bigint;
129
+ platformConfig: Address;
130
+ reserved: ReadonlyUint8Array;
131
+ };
132
+ /** Gets the encoder for {@link PoolArgs} account data. */
133
+ declare function getPoolEncoder(): FixedSizeEncoder<PoolArgs>;
134
+ /** Gets the decoder for {@link Pool} account data. */
135
+ declare function getPoolDecoder(): FixedSizeDecoder<Pool>;
136
+ /** Gets the codec for {@link Pool} account data. */
137
+ declare function getPoolCodec(): FixedSizeCodec<PoolArgs, Pool>;
138
+ declare function decodePool<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Pool, TAddress>;
139
+ declare function decodePool<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Pool, TAddress>;
140
+ declare function fetchPool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Pool, TAddress>>;
141
+ declare function fetchMaybePool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Pool, TAddress>>;
142
+ declare function fetchAllPool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Pool>[]>;
143
+ declare function fetchAllMaybePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Pool>[]>;
144
+ declare function getPoolSize(): number;
145
+ //#endregion
146
+ //#region src/dex/generated/accounts/rewardAccrual.d.ts
147
+ declare const REWARD_ACCRUAL_DISCRIMINATOR$1: ReadonlyUint8Array;
148
+ declare function getRewardAccrualDiscriminatorBytes$1(): ReadonlyUint8Array;
149
+ type RewardAccrual$1 = {
150
+ discriminator: ReadonlyUint8Array;
151
+ version: number;
152
+ bump: number;
153
+ quoteMint: Address;
154
+ accPerToken: bigint;
155
+ totalDeposited: bigint;
156
+ reserved: ReadonlyUint8Array;
157
+ };
158
+ type RewardAccrualArgs$1 = {
159
+ version: number;
160
+ bump: number;
161
+ quoteMint: Address;
162
+ accPerToken: number | bigint;
163
+ totalDeposited: number | bigint;
164
+ reserved: ReadonlyUint8Array;
165
+ };
166
+ /** Gets the encoder for {@link RewardAccrualArgs} account data. */
167
+ declare function getRewardAccrualEncoder$1(): FixedSizeEncoder<RewardAccrualArgs$1>;
168
+ /** Gets the decoder for {@link RewardAccrual} account data. */
169
+ declare function getRewardAccrualDecoder$1(): FixedSizeDecoder<RewardAccrual$1>;
170
+ /** Gets the codec for {@link RewardAccrual} account data. */
171
+ declare function getRewardAccrualCodec$1(): FixedSizeCodec<RewardAccrualArgs$1, RewardAccrual$1>;
172
+ declare function decodeRewardAccrual$1<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<RewardAccrual$1, TAddress>;
173
+ declare function decodeRewardAccrual$1<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<RewardAccrual$1, TAddress>;
174
+ declare function fetchRewardAccrual$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<RewardAccrual$1, TAddress>>;
175
+ declare function fetchMaybeRewardAccrual$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<RewardAccrual$1, TAddress>>;
176
+ declare function fetchAllRewardAccrual$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<RewardAccrual$1>[]>;
177
+ declare function fetchAllMaybeRewardAccrual$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<RewardAccrual$1>[]>;
178
+ declare function getRewardAccrualSize$1(): number;
179
+ //#endregion
180
+ //#region src/dex/generated/accounts/sendDex.accounts.d.ts
181
+ /** Account kinds of the sendDex program. */
182
+ type SendDexAccountType = "globalConfig" | "pool" | "rewardAccrual";
183
+ /**
184
+ * Identifies sendDex account data by its discriminators.
185
+ * Returns `null` when the account belongs to another program or the data matches no known account.
186
+ */
187
+ declare function identifySendDexAccount(account: {
188
+ data: ReadonlyUint8Array;
189
+ programAddress: Address;
190
+ } | ReadonlyUint8Array): SendDexAccountType | null;
191
+ declare namespace index_d_exports$24 {
192
+ export { GLOBAL_CONFIG_DISCRIMINATOR$2 as GLOBAL_CONFIG_DISCRIMINATOR, GlobalConfig$2 as GlobalConfig, GlobalConfigArgs$2 as GlobalConfigArgs, POOL_DISCRIMINATOR, Pool, PoolArgs, REWARD_ACCRUAL_DISCRIMINATOR$1 as REWARD_ACCRUAL_DISCRIMINATOR, RewardAccrual$1 as RewardAccrual, RewardAccrualArgs$1 as RewardAccrualArgs, SendDexAccountType, decodeGlobalConfig$2 as decodeGlobalConfig, decodePool, decodeRewardAccrual$1 as decodeRewardAccrual, fetchAllGlobalConfig$2 as fetchAllGlobalConfig, fetchAllMaybeGlobalConfig$2 as fetchAllMaybeGlobalConfig, fetchAllMaybePool, fetchAllMaybeRewardAccrual$1 as fetchAllMaybeRewardAccrual, fetchAllPool, fetchAllRewardAccrual$1 as fetchAllRewardAccrual, fetchGlobalConfig$2 as fetchGlobalConfig, fetchMaybeGlobalConfig$2 as fetchMaybeGlobalConfig, fetchMaybePool, fetchMaybeRewardAccrual$1 as fetchMaybeRewardAccrual, fetchPool, fetchRewardAccrual$1 as fetchRewardAccrual, getGlobalConfigCodec$2 as getGlobalConfigCodec, getGlobalConfigDecoder$2 as getGlobalConfigDecoder, getGlobalConfigDiscriminatorBytes$2 as getGlobalConfigDiscriminatorBytes, getGlobalConfigEncoder$2 as getGlobalConfigEncoder, getGlobalConfigSize$1 as getGlobalConfigSize, getPoolCodec, getPoolDecoder, getPoolDiscriminatorBytes, getPoolEncoder, getPoolSize, getRewardAccrualCodec$1 as getRewardAccrualCodec, getRewardAccrualDecoder$1 as getRewardAccrualDecoder, getRewardAccrualDiscriminatorBytes$1 as getRewardAccrualDiscriminatorBytes, getRewardAccrualEncoder$1 as getRewardAccrualEncoder, getRewardAccrualSize$1 as getRewardAccrualSize, identifySendDexAccount };
193
+ }
194
+ //#endregion
195
+ //#region src/dex/generated/errors/sendDex.d.ts
196
+ /** PoolPaused: Pool is paused */
197
+ declare const SEND_DEX_ERROR__POOL_PAUSED = 6e3;
198
+ /** SlippageExceeded: Slippage tolerance exceeded */
199
+ declare const SEND_DEX_ERROR__SLIPPAGE_EXCEEDED = 6001;
200
+ /** InsufficientBalance: Insufficient balance in source account */
201
+ declare const SEND_DEX_ERROR__INSUFFICIENT_BALANCE = 6002;
202
+ /** InvalidBaseMint: Invalid base mint */
203
+ declare const SEND_DEX_ERROR__INVALID_BASE_MINT = 6003;
204
+ /** InvalidQuoteMint: Invalid quote mint */
205
+ declare const SEND_DEX_ERROR__INVALID_QUOTE_MINT = 6004;
206
+ /** PoolCreationDisabled: Pool creation is disabled */
207
+ declare const SEND_DEX_ERROR__POOL_CREATION_DISABLED = 6005;
208
+ /** InvalidPoolState: Invalid pool state */
209
+ declare const SEND_DEX_ERROR__INVALID_POOL_STATE = 6006;
210
+ /** InvalidDeposit: Invalid deposit */
211
+ declare const SEND_DEX_ERROR__INVALID_DEPOSIT = 6007;
212
+ /** InvalidPoolBalance: Invalid pool balance */
213
+ declare const SEND_DEX_ERROR__INVALID_POOL_BALANCE = 6008;
214
+ /** InsufficientPoolBalance: Insufficient pool balance */
215
+ declare const SEND_DEX_ERROR__INSUFFICIENT_POOL_BALANCE = 6009;
216
+ /** InvalidAuthority: Invalid authority */
217
+ declare const SEND_DEX_ERROR__INVALID_AUTHORITY = 6010;
218
+ /** InvalidCreatorHash: creator_hash does not match (creator_platform, creator_id) */
219
+ declare const SEND_DEX_ERROR__INVALID_CREATOR_HASH = 6011;
220
+ /** InvalidPlatformConfig: Platform config cannot be the default address */
221
+ declare const SEND_DEX_ERROR__INVALID_PLATFORM_CONFIG = 6012;
222
+ /** ProgramPaused: Program is paused */
223
+ declare const SEND_DEX_ERROR__PROGRAM_PAUSED = 7e3;
224
+ /** Unauthorized: Unauthorized */
225
+ declare const SEND_DEX_ERROR__UNAUTHORIZED = 7001;
226
+ /** ArithmeticOverflow: Arithmetic overflow */
227
+ declare const SEND_DEX_ERROR__ARITHMETIC_OVERFLOW = 7002;
228
+ /** InvalidPythAccount: Invalid Pyth price account */
229
+ declare const SEND_DEX_ERROR__INVALID_PYTH_ACCOUNT = 7003;
230
+ /** InvalidPythFeed: Invalid Pyth feed ID */
231
+ declare const SEND_DEX_ERROR__INVALID_PYTH_FEED = 7004;
232
+ /** InvalidSlug: Invalid slug: must be non-empty, <= max_len bytes, lowercase alphanumeric or underscore */
233
+ declare const SEND_DEX_ERROR__INVALID_SLUG = 7005;
234
+ /** TextTooLong: Text too long */
235
+ declare const SEND_DEX_ERROR__TEXT_TOO_LONG = 7006;
236
+ /** UserTokenAccountWrongProgram: User token account owned by the wrong token program */
237
+ declare const SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM = 7007;
238
+ /** UserTokenAccountInvalid: User token account is not an initialized token account */
239
+ declare const SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_INVALID = 7008;
240
+ /** UserTokenAccountWrongMint: User token account mint does not match the trade */
241
+ declare const SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT = 7009;
242
+ /** UserTokenAccountWrongAuthority: User token account is not owned by the trading user */
243
+ declare const SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY = 7010;
244
+ /** NothingToClaim: Nothing to claim */
245
+ declare const SEND_DEX_ERROR__NOTHING_TO_CLAIM = 7011;
246
+ /** InvalidCreatorId: Creator identity is not a decodable wallet address */
247
+ declare const SEND_DEX_ERROR__INVALID_CREATOR_ID = 7012;
248
+ /** QuoteMintPriceUnset: Quote mint has no USDC price on its nexus reward state */
249
+ declare const SEND_DEX_ERROR__QUOTE_MINT_PRICE_UNSET = 7013;
250
+ /** TransferFeeNotSettleable: Token-2022 transfer fee schedule cannot settle the exact amount */
251
+ declare const SEND_DEX_ERROR__TRANSFER_FEE_NOT_SETTLEABLE = 7014;
252
+ /** InsufficientLiquidity: Insufficient liquidity */
253
+ declare const SEND_DEX_ERROR__INSUFFICIENT_LIQUIDITY = 7100;
254
+ /** InvalidAmount: Invalid amount */
255
+ declare const SEND_DEX_ERROR__INVALID_AMOUNT = 7101;
256
+ type SendDexError = typeof SEND_DEX_ERROR__ARITHMETIC_OVERFLOW | typeof SEND_DEX_ERROR__INSUFFICIENT_BALANCE | typeof SEND_DEX_ERROR__INSUFFICIENT_LIQUIDITY | typeof SEND_DEX_ERROR__INSUFFICIENT_POOL_BALANCE | typeof SEND_DEX_ERROR__INVALID_AMOUNT | typeof SEND_DEX_ERROR__INVALID_AUTHORITY | typeof SEND_DEX_ERROR__INVALID_BASE_MINT | typeof SEND_DEX_ERROR__INVALID_CREATOR_HASH | typeof SEND_DEX_ERROR__INVALID_CREATOR_ID | typeof SEND_DEX_ERROR__INVALID_DEPOSIT | typeof SEND_DEX_ERROR__INVALID_PLATFORM_CONFIG | typeof SEND_DEX_ERROR__INVALID_POOL_BALANCE | typeof SEND_DEX_ERROR__INVALID_POOL_STATE | typeof SEND_DEX_ERROR__INVALID_PYTH_ACCOUNT | typeof SEND_DEX_ERROR__INVALID_PYTH_FEED | typeof SEND_DEX_ERROR__INVALID_QUOTE_MINT | typeof SEND_DEX_ERROR__INVALID_SLUG | typeof SEND_DEX_ERROR__NOTHING_TO_CLAIM | typeof SEND_DEX_ERROR__POOL_CREATION_DISABLED | typeof SEND_DEX_ERROR__POOL_PAUSED | typeof SEND_DEX_ERROR__PROGRAM_PAUSED | typeof SEND_DEX_ERROR__QUOTE_MINT_PRICE_UNSET | typeof SEND_DEX_ERROR__SLIPPAGE_EXCEEDED | typeof SEND_DEX_ERROR__TEXT_TOO_LONG | typeof SEND_DEX_ERROR__TRANSFER_FEE_NOT_SETTLEABLE | typeof SEND_DEX_ERROR__UNAUTHORIZED | typeof SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_INVALID | typeof SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY | typeof SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT | typeof SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM;
257
+ declare const sendDexErrorMessages: Record<SendDexError, string>;
258
+ declare function getSendDexErrorMessage(code: SendDexError): string;
259
+ declare function isSendDexError<TProgramErrorCode extends SendDexError>(error: unknown, transactionMessage: {
260
+ instructions: Record<number, {
261
+ programAddress: Address;
262
+ }>;
263
+ }, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
264
+ context: Readonly<{
265
+ code: TProgramErrorCode;
266
+ }>;
267
+ }>;
268
+ declare namespace index_d_exports$23 {
269
+ export { SEND_DEX_ERROR__ARITHMETIC_OVERFLOW, SEND_DEX_ERROR__INSUFFICIENT_BALANCE, SEND_DEX_ERROR__INSUFFICIENT_LIQUIDITY, SEND_DEX_ERROR__INSUFFICIENT_POOL_BALANCE, SEND_DEX_ERROR__INVALID_AMOUNT, SEND_DEX_ERROR__INVALID_AUTHORITY, SEND_DEX_ERROR__INVALID_BASE_MINT, SEND_DEX_ERROR__INVALID_CREATOR_HASH, SEND_DEX_ERROR__INVALID_CREATOR_ID, SEND_DEX_ERROR__INVALID_DEPOSIT, SEND_DEX_ERROR__INVALID_PLATFORM_CONFIG, SEND_DEX_ERROR__INVALID_POOL_BALANCE, SEND_DEX_ERROR__INVALID_POOL_STATE, SEND_DEX_ERROR__INVALID_PYTH_ACCOUNT, SEND_DEX_ERROR__INVALID_PYTH_FEED, SEND_DEX_ERROR__INVALID_QUOTE_MINT, SEND_DEX_ERROR__INVALID_SLUG, SEND_DEX_ERROR__NOTHING_TO_CLAIM, SEND_DEX_ERROR__POOL_CREATION_DISABLED, SEND_DEX_ERROR__POOL_PAUSED, SEND_DEX_ERROR__PROGRAM_PAUSED, SEND_DEX_ERROR__QUOTE_MINT_PRICE_UNSET, SEND_DEX_ERROR__SLIPPAGE_EXCEEDED, SEND_DEX_ERROR__TEXT_TOO_LONG, SEND_DEX_ERROR__TRANSFER_FEE_NOT_SETTLEABLE, SEND_DEX_ERROR__UNAUTHORIZED, SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_INVALID, SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY, SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT, SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM, SendDexError, getSendDexErrorMessage, isSendDexError, sendDexErrorMessages };
270
+ }
271
+ //#endregion
272
+ //#region src/dex/generated/pdas/eventAuthority.d.ts
273
+ declare const EVENT_AUTHORITY_PDA_ADDRESS$2: Address<"4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t">;
274
+ declare function findEventAuthorityPda$2(): ProgramDerivedAddress;
275
+ //#endregion
276
+ //#region src/dex/generated/pdas/globalConfig.d.ts
277
+ declare const GLOBAL_CONFIG_PDA_ADDRESS$2: Address<"EzwCCwXhnp9DERXBmMw6gfZxHYBtBQYaC5FjCnuKbivA">;
278
+ declare function findGlobalConfigPda$2(): ProgramDerivedAddress;
279
+ //#endregion
280
+ //#region src/dex/generated/pdas/lpMint.d.ts
281
+ type LpMintSeeds = {
282
+ baseMint: Address;
283
+ quoteMint: Address;
284
+ };
285
+ declare function findLpMintPda(seeds: LpMintSeeds): Promise<ProgramDerivedAddress>;
286
+ //#endregion
287
+ //#region src/dex/generated/pdas/pool.d.ts
288
+ type PoolSeeds = {
289
+ baseMint: Address;
290
+ quoteMint: Address;
291
+ };
292
+ declare function findPoolPda(seeds: PoolSeeds): Promise<ProgramDerivedAddress>;
293
+ //#endregion
294
+ //#region src/dex/generated/pdas/rewardAccrual.d.ts
295
+ type RewardAccrualSeeds$1 = {
296
+ quoteMint: Address;
297
+ };
298
+ declare function findRewardAccrualPda$1(seeds: RewardAccrualSeeds$1): Promise<ProgramDerivedAddress>;
299
+ //#endregion
300
+ //#region src/dex/generated/pdas/wsolRewardAccrual.d.ts
301
+ declare const WSOL_REWARD_ACCRUAL_PDA_ADDRESS$1: Address<"3AvcBtMajsyeNufVwkxV7UNXWo6G1qkJmCpiXx1HcFg8">;
302
+ declare function findWsolRewardAccrualPda$1(): ProgramDerivedAddress;
303
+ declare namespace index_d_exports$22 {
304
+ export { EVENT_AUTHORITY_PDA_ADDRESS$2 as EVENT_AUTHORITY_PDA_ADDRESS, GLOBAL_CONFIG_PDA_ADDRESS$2 as GLOBAL_CONFIG_PDA_ADDRESS, LpMintSeeds, PoolSeeds, RewardAccrualSeeds$1 as RewardAccrualSeeds, WSOL_REWARD_ACCRUAL_PDA_ADDRESS$1 as WSOL_REWARD_ACCRUAL_PDA_ADDRESS, findEventAuthorityPda$2 as findEventAuthorityPda, findGlobalConfigPda$2 as findGlobalConfigPda, findLpMintPda, findPoolPda, findRewardAccrualPda$1 as findRewardAccrualPda, findWsolRewardAccrualPda$1 as findWsolRewardAccrualPda };
305
+ }
306
+ //#endregion
307
+ //#region src/dex/generated/events/anchorEventCpiDiscriminator.framing.d.ts
308
+ /**
309
+ * Shared event-framing tag prepended to every CPI-framed event.
310
+ *
311
+ * `containsBytes(data, ANCHOR_EVENT_CPI_DISCRIMINATOR, 0)` checks whether data is a framed event
312
+ * at all — including event kinds unknown to this program.
313
+ */
314
+ declare const ANCHOR_EVENT_CPI_DISCRIMINATOR$2: ReadonlyUint8Array;
315
+ declare function getAnchorEventCpiDiscriminatorBytes$2(): ReadonlyUint8Array;
316
+ //#endregion
317
+ //#region src/dex/generated/events/creatorClaimEvent.d.ts
318
+ declare const CREATOR_CLAIM_EVENT_DISCRIMINATOR$1: ReadonlyUint8Array;
319
+ declare function getCreatorClaimEventDiscriminatorBytes$1(): ReadonlyUint8Array;
320
+ type CreatorClaimEvent$1 = {
321
+ pool: Address;
322
+ baseMint: Address;
323
+ quoteMint: Address;
324
+ platformConfig: Address;
325
+ coinCreator: Address;
326
+ creatorFeeConfig: Address;
327
+ claimer: Address;
328
+ destinationOwner: Address;
329
+ amount: bigint;
330
+ quoteTransferFee: bigint;
331
+ timestamp: bigint;
332
+ };
333
+ declare function getCreatorClaimEventDecoder$1(): FixedSizeDecoder<CreatorClaimEvent$1>;
334
+ /**
335
+ * Checks whether the event data matches the framing and discriminator bytes of a
336
+ * {@link CreatorClaimEvent}, without decoding. Never throws.
337
+ *
338
+ * Returns `false` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
339
+ * Raw bytes carry no emitter and SKIP that check.
340
+ *
341
+ * @see parseCreatorClaimEvent to decode the matching data
342
+ */
343
+ declare function isCreatorClaimEvent$1(event: {
344
+ data: ReadonlyUint8Array;
345
+ programAddress: Address;
346
+ } | ReadonlyUint8Array): boolean;
347
+ /**
348
+ * Parses raw event data as a {@link CreatorClaimEvent}. Returns `null` on framing or discriminator
349
+ * mismatch; throws if the event matches but its body fails to decode.
350
+ *
351
+ * Returns `null` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
352
+ * Raw bytes carry no emitter and SKIP that check.
353
+ *
354
+ * @see isCreatorClaimEvent to check without decoding
355
+ * @see identifySendDexEvent to identify any program event
356
+ * @see parseSendDexEvent
357
+ */
358
+ declare function parseCreatorClaimEvent$1(event: {
359
+ data: ReadonlyUint8Array;
360
+ programAddress: Address;
361
+ } | ReadonlyUint8Array): CreatorClaimEvent$1 | null;
362
+ //#endregion
363
+ //#region src/dex/generated/events/depositQuoteEvent.d.ts
364
+ declare const DEPOSIT_QUOTE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
365
+ declare function getDepositQuoteEventDiscriminatorBytes(): ReadonlyUint8Array;
366
+ type DepositQuoteEvent = {
367
+ pool: Address;
368
+ baseMint: Address;
369
+ quoteMint: Address;
370
+ user: Address;
371
+ platformConfig: Address;
372
+ amount: bigint;
373
+ baseReserves: bigint;
374
+ quoteReserves: bigint;
375
+ timestamp: bigint;
376
+ };
377
+ declare function getDepositQuoteEventDecoder(): FixedSizeDecoder<DepositQuoteEvent>;
378
+ /**
379
+ * Checks whether the event data matches the framing and discriminator bytes of a
380
+ * {@link DepositQuoteEvent}, without decoding. Never throws.
381
+ *
382
+ * Returns `false` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
383
+ * Raw bytes carry no emitter and SKIP that check.
384
+ *
385
+ * @see parseDepositQuoteEvent to decode the matching data
386
+ */
387
+ declare function isDepositQuoteEvent(event: {
388
+ data: ReadonlyUint8Array;
389
+ programAddress: Address;
390
+ } | ReadonlyUint8Array): boolean;
391
+ /**
392
+ * Parses raw event data as a {@link DepositQuoteEvent}. Returns `null` on framing or discriminator
393
+ * mismatch; throws if the event matches but its body fails to decode.
394
+ *
395
+ * Returns `null` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
396
+ * Raw bytes carry no emitter and SKIP that check.
397
+ *
398
+ * @see isDepositQuoteEvent to check without decoding
399
+ * @see identifySendDexEvent to identify any program event
400
+ * @see parseSendDexEvent
401
+ */
402
+ declare function parseDepositQuoteEvent(event: {
403
+ data: ReadonlyUint8Array;
404
+ programAddress: Address;
405
+ } | ReadonlyUint8Array): DepositQuoteEvent | null;
406
+ //#endregion
407
+ //#region src/dex/generated/events/poolCreateEvent.d.ts
408
+ declare const POOL_CREATE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
409
+ declare function getPoolCreateEventDiscriminatorBytes(): ReadonlyUint8Array;
410
+ type PoolCreateEvent = {
411
+ pool: Address;
412
+ baseMint: Address;
413
+ baseDecimals: number;
414
+ quoteMint: Address;
415
+ quoteDecimals: number;
416
+ coinCreator: Address;
417
+ creatorFeeConfig: Address;
418
+ platformConfig: Address;
419
+ baseVault: Address;
420
+ quoteVault: Address;
421
+ lpMint: Address;
422
+ lpMinted: bigint;
423
+ baseReserves: bigint;
424
+ quoteReserves: bigint;
425
+ timestamp: bigint;
426
+ };
427
+ declare function getPoolCreateEventDecoder(): FixedSizeDecoder<PoolCreateEvent>;
428
+ /**
429
+ * Checks whether the event data matches the framing and discriminator bytes of a
430
+ * {@link PoolCreateEvent}, without decoding. Never throws.
431
+ *
432
+ * Returns `false` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
433
+ * Raw bytes carry no emitter and SKIP that check.
434
+ *
435
+ * @see parsePoolCreateEvent to decode the matching data
436
+ */
437
+ declare function isPoolCreateEvent(event: {
438
+ data: ReadonlyUint8Array;
439
+ programAddress: Address;
440
+ } | ReadonlyUint8Array): boolean;
441
+ /**
442
+ * Parses raw event data as a {@link PoolCreateEvent}. Returns `null` on framing or discriminator
443
+ * mismatch; throws if the event matches but its body fails to decode.
444
+ *
445
+ * Returns `null` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
446
+ * Raw bytes carry no emitter and SKIP that check.
447
+ *
448
+ * @see isPoolCreateEvent to check without decoding
449
+ * @see identifySendDexEvent to identify any program event
450
+ * @see parseSendDexEvent
451
+ */
452
+ declare function parsePoolCreateEvent(event: {
453
+ data: ReadonlyUint8Array;
454
+ programAddress: Address;
455
+ } | ReadonlyUint8Array): PoolCreateEvent | null;
456
+ //#endregion
457
+ //#region src/dex/generated/events/protocolClaimEvent.d.ts
458
+ declare const PROTOCOL_CLAIM_EVENT_DISCRIMINATOR$1: ReadonlyUint8Array;
459
+ declare function getProtocolClaimEventDiscriminatorBytes$1(): ReadonlyUint8Array;
460
+ type ProtocolClaimEvent$1 = {
461
+ pool: Address;
462
+ baseMint: Address;
463
+ quoteMint: Address;
464
+ platformConfig: Address;
465
+ amount: bigint;
466
+ quoteTransferFee: bigint;
467
+ timestamp: bigint;
468
+ };
469
+ declare function getProtocolClaimEventDecoder$1(): FixedSizeDecoder<ProtocolClaimEvent$1>;
470
+ /**
471
+ * Checks whether the event data matches the framing and discriminator bytes of a
472
+ * {@link ProtocolClaimEvent}, without decoding. Never throws.
473
+ *
474
+ * Returns `false` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
475
+ * Raw bytes carry no emitter and SKIP that check.
476
+ *
477
+ * @see parseProtocolClaimEvent to decode the matching data
478
+ */
479
+ declare function isProtocolClaimEvent$1(event: {
480
+ data: ReadonlyUint8Array;
481
+ programAddress: Address;
482
+ } | ReadonlyUint8Array): boolean;
483
+ /**
484
+ * Parses raw event data as a {@link ProtocolClaimEvent}. Returns `null` on framing or discriminator
485
+ * mismatch; throws if the event matches but its body fails to decode.
486
+ *
487
+ * Returns `null` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
488
+ * Raw bytes carry no emitter and SKIP that check.
489
+ *
490
+ * @see isProtocolClaimEvent to check without decoding
491
+ * @see identifySendDexEvent to identify any program event
492
+ * @see parseSendDexEvent
493
+ */
494
+ declare function parseProtocolClaimEvent$1(event: {
495
+ data: ReadonlyUint8Array;
496
+ programAddress: Address;
497
+ } | ReadonlyUint8Array): ProtocolClaimEvent$1 | null;
498
+ //#endregion
499
+ //#region src/dex/generated/events/tokenCreateEvent.d.ts
500
+ declare const TOKEN_CREATE_EVENT_DISCRIMINATOR$1: ReadonlyUint8Array;
501
+ declare function getTokenCreateEventDiscriminatorBytes$1(): ReadonlyUint8Array;
502
+ type TokenCreateEvent$1 = {
503
+ pool: Address;
504
+ baseMint: Address;
505
+ baseDecimals: number;
506
+ baseSupply: bigint;
507
+ quoteMint: Address;
508
+ quoteDecimals: number;
509
+ coinCreator: Address;
510
+ creatorPlatform: string;
511
+ creatorId: string;
512
+ creatorFeeConfig: Address;
513
+ platformConfig: Address;
514
+ name: string;
515
+ symbol: string;
516
+ uri: string;
517
+ partner: Address;
518
+ isPartner: boolean;
519
+ creationFee: bigint;
520
+ baseReserves: bigint;
521
+ quoteReserves: bigint;
522
+ timestamp: bigint;
523
+ };
524
+ declare function getTokenCreateEventDecoder$1(): Decoder<TokenCreateEvent$1>;
525
+ /**
526
+ * Checks whether the event data matches the framing and discriminator bytes of a
527
+ * {@link TokenCreateEvent}, without decoding. Never throws.
528
+ *
529
+ * Returns `false` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
530
+ * Raw bytes carry no emitter and SKIP that check.
531
+ *
532
+ * @see parseTokenCreateEvent to decode the matching data
533
+ */
534
+ declare function isTokenCreateEvent$1(event: {
535
+ data: ReadonlyUint8Array;
536
+ programAddress: Address;
537
+ } | ReadonlyUint8Array): boolean;
538
+ /**
539
+ * Parses raw event data as a {@link TokenCreateEvent}. Returns `null` on framing or discriminator
540
+ * mismatch; throws if the event matches but its body fails to decode.
541
+ *
542
+ * Returns `null` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
543
+ * Raw bytes carry no emitter and SKIP that check.
544
+ *
545
+ * @see isTokenCreateEvent to check without decoding
546
+ * @see identifySendDexEvent to identify any program event
547
+ * @see parseSendDexEvent
548
+ */
549
+ declare function parseTokenCreateEvent$1(event: {
550
+ data: ReadonlyUint8Array;
551
+ programAddress: Address;
552
+ } | ReadonlyUint8Array): TokenCreateEvent$1 | null;
553
+ //#endregion
554
+ //#region src/dex/generated/events/tradeEvent.d.ts
555
+ declare const TRADE_EVENT_DISCRIMINATOR$1: ReadonlyUint8Array;
556
+ declare function getTradeEventDiscriminatorBytes$1(): ReadonlyUint8Array;
557
+ type TradeEvent$1 = {
558
+ pool: Address;
559
+ baseMint: Address;
560
+ quoteMint: Address;
561
+ user: Address;
562
+ coinCreator: Address;
563
+ creatorFeeConfig: Address;
564
+ platformConfig: Address;
565
+ baseAmount: bigint;
566
+ quoteAmountGross: bigint;
567
+ quoteAmountNet: bigint;
568
+ tradeDirection: TradeDirection$1;
569
+ partner: Address;
570
+ isPartner: boolean;
571
+ protocolFee: bigint;
572
+ lpFee: bigint;
573
+ creatorFee: bigint;
574
+ baseTransferFee: bigint;
575
+ quoteTransferFee: bigint;
576
+ baseReserves: bigint;
577
+ quoteReserves: bigint;
578
+ timestamp: bigint;
579
+ };
580
+ declare function getTradeEventDecoder$1(): FixedSizeDecoder<TradeEvent$1>;
581
+ /**
582
+ * Checks whether the event data matches the framing and discriminator bytes of a
583
+ * {@link TradeEvent}, without decoding. Never throws.
584
+ *
585
+ * Returns `false` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
586
+ * Raw bytes carry no emitter and SKIP that check.
587
+ *
588
+ * @see parseTradeEvent to decode the matching data
589
+ */
590
+ declare function isTradeEvent$1(event: {
591
+ data: ReadonlyUint8Array;
592
+ programAddress: Address;
593
+ } | ReadonlyUint8Array): boolean;
594
+ /**
595
+ * Parses raw event data as a {@link TradeEvent}. Returns `null` on framing or discriminator
596
+ * mismatch; throws if the event matches but its body fails to decode.
597
+ *
598
+ * Returns `null` unless `event.programAddress` is SEND_DEX_PROGRAM_ADDRESS.
599
+ * Raw bytes carry no emitter and SKIP that check.
600
+ *
601
+ * @see isTradeEvent to check without decoding
602
+ * @see identifySendDexEvent to identify any program event
603
+ * @see parseSendDexEvent
604
+ */
605
+ declare function parseTradeEvent$1(event: {
606
+ data: ReadonlyUint8Array;
607
+ programAddress: Address;
608
+ } | ReadonlyUint8Array): TradeEvent$1 | null;
609
+ //#endregion
610
+ //#region src/dex/generated/events/sendDex.events.d.ts
611
+ /** Event kinds of the sendDex program. */
612
+ type SendDexEventType = "creatorClaimEvent" | "depositQuoteEvent" | "poolCreateEvent" | "protocolClaimEvent" | "tokenCreateEvent" | "tradeEvent";
613
+ /**
614
+ * Identifies sendDex event data by its discriminators, without decoding.
615
+ * Returns `null` when the event was emitted by another program or no known event matches.
616
+ * Never throws.
617
+ *
618
+ * Raw bytes carry no emitter and SKIP the program check.
619
+ */
620
+ declare function identifySendDexEvent(event: {
621
+ data: ReadonlyUint8Array;
622
+ programAddress: Address;
623
+ } | ReadonlyUint8Array): SendDexEventType | null;
624
+ /** Parsed sendDex event: the event kind tag plus its decoded payload. */
625
+ type ParsedSendDexEvent = {
626
+ eventType: "creatorClaimEvent";
627
+ data: CreatorClaimEvent$1;
628
+ } | {
629
+ eventType: "depositQuoteEvent";
630
+ data: DepositQuoteEvent;
631
+ } | {
632
+ eventType: "poolCreateEvent";
633
+ data: PoolCreateEvent;
634
+ } | {
635
+ eventType: "protocolClaimEvent";
636
+ data: ProtocolClaimEvent$1;
637
+ } | {
638
+ eventType: "tokenCreateEvent";
639
+ data: TokenCreateEvent$1;
640
+ } | {
641
+ eventType: "tradeEvent";
642
+ data: TradeEvent$1;
643
+ };
644
+ /**
645
+ * Parses sendDex event data into its event kind and decoded payload.
646
+ * Returns `null` when the event was emitted by another program or no known event matches;
647
+ * throws if a matched event fails to decode.
648
+ *
649
+ * Raw bytes carry no emitter and SKIP the program check.
650
+ */
651
+ declare function parseSendDexEvent(event: {
652
+ data: ReadonlyUint8Array;
653
+ programAddress: Address;
654
+ } | ReadonlyUint8Array): ParsedSendDexEvent | null;
655
+ declare namespace index_d_exports$21 {
656
+ export { ANCHOR_EVENT_CPI_DISCRIMINATOR$2 as ANCHOR_EVENT_CPI_DISCRIMINATOR, CREATOR_CLAIM_EVENT_DISCRIMINATOR$1 as CREATOR_CLAIM_EVENT_DISCRIMINATOR, CreatorClaimEvent$1 as CreatorClaimEvent, DEPOSIT_QUOTE_EVENT_DISCRIMINATOR, DepositQuoteEvent, POOL_CREATE_EVENT_DISCRIMINATOR, PROTOCOL_CLAIM_EVENT_DISCRIMINATOR$1 as PROTOCOL_CLAIM_EVENT_DISCRIMINATOR, ParsedSendDexEvent, PoolCreateEvent, ProtocolClaimEvent$1 as ProtocolClaimEvent, SendDexEventType, TOKEN_CREATE_EVENT_DISCRIMINATOR$1 as TOKEN_CREATE_EVENT_DISCRIMINATOR, TRADE_EVENT_DISCRIMINATOR$1 as TRADE_EVENT_DISCRIMINATOR, TokenCreateEvent$1 as TokenCreateEvent, TradeEvent$1 as TradeEvent, getAnchorEventCpiDiscriminatorBytes$2 as getAnchorEventCpiDiscriminatorBytes, getCreatorClaimEventDecoder$1 as getCreatorClaimEventDecoder, getCreatorClaimEventDiscriminatorBytes$1 as getCreatorClaimEventDiscriminatorBytes, getDepositQuoteEventDecoder, getDepositQuoteEventDiscriminatorBytes, getPoolCreateEventDecoder, getPoolCreateEventDiscriminatorBytes, getProtocolClaimEventDecoder$1 as getProtocolClaimEventDecoder, getProtocolClaimEventDiscriminatorBytes$1 as getProtocolClaimEventDiscriminatorBytes, getTokenCreateEventDecoder$1 as getTokenCreateEventDecoder, getTokenCreateEventDiscriminatorBytes$1 as getTokenCreateEventDiscriminatorBytes, getTradeEventDecoder$1 as getTradeEventDecoder, getTradeEventDiscriminatorBytes$1 as getTradeEventDiscriminatorBytes, identifySendDexEvent, isCreatorClaimEvent$1 as isCreatorClaimEvent, isDepositQuoteEvent, isPoolCreateEvent, isProtocolClaimEvent$1 as isProtocolClaimEvent, isTokenCreateEvent$1 as isTokenCreateEvent, isTradeEvent$1 as isTradeEvent, parseCreatorClaimEvent$1 as parseCreatorClaimEvent, parseDepositQuoteEvent, parsePoolCreateEvent, parseProtocolClaimEvent$1 as parseProtocolClaimEvent, parseSendDexEvent, parseTokenCreateEvent$1 as parseTokenCreateEvent, parseTradeEvent$1 as parseTradeEvent };
657
+ }
658
+ //#endregion
659
+ //#region src/dex/generated/instructions/buyExactIn.d.ts
660
+ declare const BUY_EXACT_IN_DISCRIMINATOR$1: ReadonlyUint8Array;
661
+ declare function getBuyExactInDiscriminatorBytes$1(): ReadonlyUint8Array;
662
+ type BuyExactInInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", TAccountProgram extends string | AccountMeta<string> = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
663
+ type BuyExactInInstructionData$1 = {
664
+ discriminator: ReadonlyUint8Array;
665
+ amountIn: bigint;
666
+ minAmountOut: bigint;
667
+ };
668
+ type BuyExactInInstructionDataArgs$1 = {
669
+ amountIn: number | bigint;
670
+ minAmountOut: number | bigint;
671
+ };
672
+ declare function getBuyExactInInstructionDataEncoder$1(): FixedSizeEncoder<BuyExactInInstructionDataArgs$1>;
673
+ declare function getBuyExactInInstructionDataDecoder$1(): FixedSizeDecoder<BuyExactInInstructionData$1>;
674
+ declare function getBuyExactInInstructionDataCodec$1(): FixedSizeCodec<BuyExactInInstructionDataArgs$1, BuyExactInInstructionData$1>;
675
+ type BuyExactInInstructionExtraArgs$1 = {
676
+ platformConfig: Address;
677
+ };
678
+ type BuyExactInAsyncInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
679
+ user: TransactionSigner<TAccountUser>;
680
+ payer: TransactionSigner<TAccountPayer>;
681
+ pool?: Address<TAccountPool>;
682
+ baseMint: Address<TAccountBaseMint>;
683
+ quoteMint: Address<TAccountQuoteMint>;
684
+ baseVault?: Address<TAccountBaseVault>;
685
+ quoteVault?: Address<TAccountQuoteVault>;
686
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
687
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
688
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
689
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
690
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
691
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
692
+ partnerConfig?: Address<TAccountPartnerConfig>;
693
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
694
+ amountIn: BuyExactInInstructionDataArgs$1["amountIn"];
695
+ minAmountOut: BuyExactInInstructionDataArgs$1["minAmountOut"];
696
+ platformConfig: BuyExactInInstructionExtraArgs$1["platformConfig"];
697
+ };
698
+ declare function getBuyExactInInstructionAsync$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactInAsyncInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<BuyExactInInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">>;
699
+ type BuyExactInInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
700
+ user: TransactionSigner<TAccountUser>;
701
+ payer: TransactionSigner<TAccountPayer>;
702
+ pool: Address<TAccountPool>;
703
+ baseMint: Address<TAccountBaseMint>;
704
+ quoteMint: Address<TAccountQuoteMint>;
705
+ baseVault: Address<TAccountBaseVault>;
706
+ quoteVault: Address<TAccountQuoteVault>;
707
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
708
+ userBaseAccount: Address<TAccountUserBaseAccount>;
709
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
710
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
711
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
712
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
713
+ partnerConfig: Address<TAccountPartnerConfig>;
714
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
715
+ amountIn: BuyExactInInstructionDataArgs$1["amountIn"];
716
+ minAmountOut: BuyExactInInstructionDataArgs$1["minAmountOut"];
717
+ platformConfig?: BuyExactInInstructionExtraArgs$1["platformConfig"];
718
+ };
719
+ declare function getBuyExactInInstruction$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactInInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): BuyExactInInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">;
720
+ type ParsedBuyExactInInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
721
+ programAddress: Address<TProgram>;
722
+ accounts: {
723
+ user: TAccountMetas[0];
724
+ payer: TAccountMetas[1];
725
+ pool: TAccountMetas[2];
726
+ baseMint: TAccountMetas[3];
727
+ quoteMint: TAccountMetas[4];
728
+ baseVault: TAccountMetas[5];
729
+ quoteVault: TAccountMetas[6];
730
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
731
+ userBaseAccount: TAccountMetas[7];
732
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
733
+ userQuoteAccount: TAccountMetas[8];
734
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
735
+ partner: TAccountMetas[9];
736
+ partnerConfig: TAccountMetas[10];
737
+ baseTokenProgram: TAccountMetas[11];
738
+ quoteTokenProgram: TAccountMetas[12];
739
+ associatedTokenProgram: TAccountMetas[13];
740
+ systemProgram: TAccountMetas[14];
741
+ eventAuthority: TAccountMetas[15];
742
+ program: TAccountMetas[16];
743
+ };
744
+ data: BuyExactInInstructionData$1;
745
+ };
746
+ declare function parseBuyExactInInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyExactInInstruction$1<TProgram, TAccountMetas>;
747
+ //#endregion
748
+ //#region src/dex/generated/instructions/buyExactOut.d.ts
749
+ declare const BUY_EXACT_OUT_DISCRIMINATOR$1: ReadonlyUint8Array;
750
+ declare function getBuyExactOutDiscriminatorBytes$1(): ReadonlyUint8Array;
751
+ type BuyExactOutInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", TAccountProgram extends string | AccountMeta<string> = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
752
+ type BuyExactOutInstructionData$1 = {
753
+ discriminator: ReadonlyUint8Array;
754
+ amountOut: bigint;
755
+ maxAmountIn: bigint;
756
+ };
757
+ type BuyExactOutInstructionDataArgs$1 = {
758
+ amountOut: number | bigint;
759
+ maxAmountIn: number | bigint;
760
+ };
761
+ declare function getBuyExactOutInstructionDataEncoder$1(): FixedSizeEncoder<BuyExactOutInstructionDataArgs$1>;
762
+ declare function getBuyExactOutInstructionDataDecoder$1(): FixedSizeDecoder<BuyExactOutInstructionData$1>;
763
+ declare function getBuyExactOutInstructionDataCodec$1(): FixedSizeCodec<BuyExactOutInstructionDataArgs$1, BuyExactOutInstructionData$1>;
764
+ type BuyExactOutInstructionExtraArgs$1 = {
765
+ platformConfig: Address;
766
+ };
767
+ type BuyExactOutAsyncInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
768
+ user: TransactionSigner<TAccountUser>;
769
+ payer: TransactionSigner<TAccountPayer>;
770
+ pool?: Address<TAccountPool>;
771
+ baseMint: Address<TAccountBaseMint>;
772
+ quoteMint: Address<TAccountQuoteMint>;
773
+ baseVault?: Address<TAccountBaseVault>;
774
+ quoteVault?: Address<TAccountQuoteVault>;
775
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
776
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
777
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
778
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
779
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
780
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
781
+ partnerConfig?: Address<TAccountPartnerConfig>;
782
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
783
+ amountOut: BuyExactOutInstructionDataArgs$1["amountOut"];
784
+ maxAmountIn: BuyExactOutInstructionDataArgs$1["maxAmountIn"];
785
+ platformConfig: BuyExactOutInstructionExtraArgs$1["platformConfig"];
786
+ };
787
+ declare function getBuyExactOutInstructionAsync$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactOutAsyncInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<BuyExactOutInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">>;
788
+ type BuyExactOutInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
789
+ user: TransactionSigner<TAccountUser>;
790
+ payer: TransactionSigner<TAccountPayer>;
791
+ pool: Address<TAccountPool>;
792
+ baseMint: Address<TAccountBaseMint>;
793
+ quoteMint: Address<TAccountQuoteMint>;
794
+ baseVault: Address<TAccountBaseVault>;
795
+ quoteVault: Address<TAccountQuoteVault>;
796
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
797
+ userBaseAccount: Address<TAccountUserBaseAccount>;
798
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
799
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
800
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
801
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
802
+ partnerConfig: Address<TAccountPartnerConfig>;
803
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
804
+ amountOut: BuyExactOutInstructionDataArgs$1["amountOut"];
805
+ maxAmountIn: BuyExactOutInstructionDataArgs$1["maxAmountIn"];
806
+ platformConfig?: BuyExactOutInstructionExtraArgs$1["platformConfig"];
807
+ };
808
+ declare function getBuyExactOutInstruction$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactOutInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): BuyExactOutInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">;
809
+ type ParsedBuyExactOutInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
810
+ programAddress: Address<TProgram>;
811
+ accounts: {
812
+ user: TAccountMetas[0];
813
+ payer: TAccountMetas[1];
814
+ pool: TAccountMetas[2];
815
+ baseMint: TAccountMetas[3];
816
+ quoteMint: TAccountMetas[4];
817
+ baseVault: TAccountMetas[5];
818
+ quoteVault: TAccountMetas[6];
819
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
820
+ userBaseAccount: TAccountMetas[7];
821
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
822
+ userQuoteAccount: TAccountMetas[8];
823
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
824
+ partner: TAccountMetas[9];
825
+ partnerConfig: TAccountMetas[10];
826
+ baseTokenProgram: TAccountMetas[11];
827
+ quoteTokenProgram: TAccountMetas[12];
828
+ associatedTokenProgram: TAccountMetas[13];
829
+ systemProgram: TAccountMetas[14];
830
+ eventAuthority: TAccountMetas[15];
831
+ program: TAccountMetas[16];
832
+ };
833
+ data: BuyExactOutInstructionData$1;
834
+ };
835
+ declare function parseBuyExactOutInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyExactOutInstruction$1<TProgram, TAccountMetas>;
836
+ //#endregion
837
+ //#region src/dex/generated/instructions/claimCreatorFees.d.ts
838
+ declare const CLAIM_CREATOR_FEES_DISCRIMINATOR$1: ReadonlyUint8Array;
839
+ declare function getClaimCreatorFeesDiscriminatorBytes$1(): ReadonlyUint8Array;
840
+ type ClaimCreatorFeesInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountClaimer extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountCreatorFeeConfig extends string | AccountMeta<string> = string, TAccountNexusGlobalConfig extends string | AccountMeta<string> = "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountDestinationOwner extends string | AccountMeta<string> = string, TAccountDestination extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", TAccountProgram extends string | AccountMeta<string> = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountClaimer extends string ? ReadonlySignerAccount<TAccountClaimer> & AccountSignerMeta<TAccountClaimer> : TAccountClaimer, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountCreatorFeeConfig extends string ? ReadonlyAccount<TAccountCreatorFeeConfig> : TAccountCreatorFeeConfig, TAccountNexusGlobalConfig extends string ? ReadonlyAccount<TAccountNexusGlobalConfig> : TAccountNexusGlobalConfig, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountDestinationOwner extends string ? ReadonlyAccount<TAccountDestinationOwner> : TAccountDestinationOwner, TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
841
+ type ClaimCreatorFeesInstructionData$1 = {
842
+ discriminator: ReadonlyUint8Array;
843
+ };
844
+ type ClaimCreatorFeesInstructionDataArgs$1 = {};
845
+ declare function getClaimCreatorFeesInstructionDataEncoder$1(): FixedSizeEncoder<ClaimCreatorFeesInstructionDataArgs$1>;
846
+ declare function getClaimCreatorFeesInstructionDataDecoder$1(): FixedSizeDecoder<ClaimCreatorFeesInstructionData$1>;
847
+ declare function getClaimCreatorFeesInstructionDataCodec$1(): FixedSizeCodec<ClaimCreatorFeesInstructionDataArgs$1, ClaimCreatorFeesInstructionData$1>;
848
+ type ClaimCreatorFeesAsyncInput$1<TAccountClaimer extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountDestinationOwner extends string = string, TAccountDestination extends string = string, TAccountQuoteTokenProgram extends string = string> = {
849
+ claimer: TransactionSigner<TAccountClaimer>;
850
+ payer: TransactionSigner<TAccountPayer>;
851
+ pool?: Address<TAccountPool>;
852
+ creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
853
+ baseMint: Address<TAccountBaseMint>;
854
+ quoteMint: Address<TAccountQuoteMint>;
855
+ quoteVault?: Address<TAccountQuoteVault>;
856
+ destinationOwner: Address<TAccountDestinationOwner>;
857
+ destination?: Address<TAccountDestination>;
858
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
859
+ };
860
+ declare function getClaimCreatorFeesInstructionAsync$1<TAccountClaimer extends string, TAccountPayer extends string, TAccountPool extends string, TAccountCreatorFeeConfig extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountDestinationOwner extends string, TAccountDestination extends string, TAccountQuoteTokenProgram extends string>(input: ClaimCreatorFeesAsyncInput$1<TAccountClaimer, TAccountPayer, TAccountPool, TAccountCreatorFeeConfig, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram>): Promise<ClaimCreatorFeesInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountClaimer, TAccountPayer, TAccountPool, TAccountCreatorFeeConfig, "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">>;
861
+ type ClaimCreatorFeesInput$1<TAccountClaimer extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountDestinationOwner extends string = string, TAccountDestination extends string = string, TAccountQuoteTokenProgram extends string = string> = {
862
+ claimer: TransactionSigner<TAccountClaimer>;
863
+ payer: TransactionSigner<TAccountPayer>;
864
+ pool: Address<TAccountPool>;
865
+ creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
866
+ baseMint: Address<TAccountBaseMint>;
867
+ quoteMint: Address<TAccountQuoteMint>;
868
+ quoteVault: Address<TAccountQuoteVault>;
869
+ destinationOwner: Address<TAccountDestinationOwner>;
870
+ destination: Address<TAccountDestination>;
871
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
872
+ };
873
+ declare function getClaimCreatorFeesInstruction$1<TAccountClaimer extends string, TAccountPayer extends string, TAccountPool extends string, TAccountCreatorFeeConfig extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountDestinationOwner extends string, TAccountDestination extends string, TAccountQuoteTokenProgram extends string>(input: ClaimCreatorFeesInput$1<TAccountClaimer, TAccountPayer, TAccountPool, TAccountCreatorFeeConfig, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram>): ClaimCreatorFeesInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountClaimer, TAccountPayer, TAccountPool, TAccountCreatorFeeConfig, "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">;
874
+ type ParsedClaimCreatorFeesInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
875
+ programAddress: Address<TProgram>;
876
+ accounts: {
877
+ claimer: TAccountMetas[0];
878
+ payer: TAccountMetas[1];
879
+ pool: TAccountMetas[2];
880
+ creatorFeeConfig: TAccountMetas[3];
881
+ nexusGlobalConfig: TAccountMetas[4];
882
+ baseMint: TAccountMetas[5];
883
+ quoteMint: TAccountMetas[6];
884
+ quoteVault: TAccountMetas[7];
885
+ destinationOwner: TAccountMetas[8];
886
+ destination: TAccountMetas[9];
887
+ quoteTokenProgram: TAccountMetas[10];
888
+ associatedTokenProgram: TAccountMetas[11];
889
+ systemProgram: TAccountMetas[12];
890
+ eventAuthority: TAccountMetas[13];
891
+ program: TAccountMetas[14];
892
+ };
893
+ data: ClaimCreatorFeesInstructionData$1;
894
+ };
895
+ declare function parseClaimCreatorFeesInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimCreatorFeesInstruction$1<TProgram, TAccountMetas>;
896
+ //#endregion
897
+ //#region src/dex/generated/instructions/claimProtocolFees.d.ts
898
+ declare const CLAIM_PROTOCOL_FEES_DISCRIMINATOR$1: ReadonlyUint8Array;
899
+ declare function getClaimProtocolFeesDiscriminatorBytes$1(): ReadonlyUint8Array;
900
+ type ClaimProtocolFeesInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountNexusStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountStakingRewardState extends string | AccountMeta<string> = string, TAccountRewardAccrual extends string | AccountMeta<string> = string, TAccountStakingVault extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", TAccountProgram extends string | AccountMeta<string> = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountNexusStakingConfig extends string ? ReadonlyAccount<TAccountNexusStakingConfig> : TAccountNexusStakingConfig, TAccountStakingRewardState extends string ? ReadonlyAccount<TAccountStakingRewardState> : TAccountStakingRewardState, TAccountRewardAccrual extends string ? WritableAccount<TAccountRewardAccrual> : TAccountRewardAccrual, TAccountStakingVault extends string ? WritableAccount<TAccountStakingVault> : TAccountStakingVault, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
901
+ type ClaimProtocolFeesInstructionData$1 = {
902
+ discriminator: ReadonlyUint8Array;
903
+ };
904
+ type ClaimProtocolFeesInstructionDataArgs$1 = {};
905
+ declare function getClaimProtocolFeesInstructionDataEncoder$1(): FixedSizeEncoder<ClaimProtocolFeesInstructionDataArgs$1>;
906
+ declare function getClaimProtocolFeesInstructionDataDecoder$1(): FixedSizeDecoder<ClaimProtocolFeesInstructionData$1>;
907
+ declare function getClaimProtocolFeesInstructionDataCodec$1(): FixedSizeCodec<ClaimProtocolFeesInstructionDataArgs$1, ClaimProtocolFeesInstructionData$1>;
908
+ type ClaimProtocolFeesAsyncInput$1<TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountNexusStakingConfig extends string = string, TAccountStakingRewardState extends string = string, TAccountRewardAccrual extends string = string, TAccountStakingVault extends string = string, TAccountQuoteTokenProgram extends string = string> = {
909
+ payer: TransactionSigner<TAccountPayer>;
910
+ pool?: Address<TAccountPool>;
911
+ baseMint: Address<TAccountBaseMint>;
912
+ quoteMint: Address<TAccountQuoteMint>;
913
+ quoteVault?: Address<TAccountQuoteVault>;
914
+ nexusStakingConfig?: Address<TAccountNexusStakingConfig>;
915
+ stakingRewardState?: Address<TAccountStakingRewardState>;
916
+ rewardAccrual?: Address<TAccountRewardAccrual>;
917
+ stakingVault?: Address<TAccountStakingVault>;
918
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
919
+ };
920
+ declare function getClaimProtocolFeesInstructionAsync$1<TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountNexusStakingConfig extends string, TAccountStakingRewardState extends string, TAccountRewardAccrual extends string, TAccountStakingVault extends string, TAccountQuoteTokenProgram extends string>(input: ClaimProtocolFeesAsyncInput$1<TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram>): Promise<ClaimProtocolFeesInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram, "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">>;
921
+ type ClaimProtocolFeesInput$1<TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountNexusStakingConfig extends string = string, TAccountStakingRewardState extends string = string, TAccountRewardAccrual extends string = string, TAccountStakingVault extends string = string, TAccountQuoteTokenProgram extends string = string> = {
922
+ payer: TransactionSigner<TAccountPayer>;
923
+ pool: Address<TAccountPool>;
924
+ baseMint: Address<TAccountBaseMint>;
925
+ quoteMint: Address<TAccountQuoteMint>;
926
+ quoteVault: Address<TAccountQuoteVault>;
927
+ nexusStakingConfig?: Address<TAccountNexusStakingConfig>;
928
+ stakingRewardState: Address<TAccountStakingRewardState>;
929
+ rewardAccrual: Address<TAccountRewardAccrual>;
930
+ stakingVault: Address<TAccountStakingVault>;
931
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
932
+ };
933
+ declare function getClaimProtocolFeesInstruction$1<TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountNexusStakingConfig extends string, TAccountStakingRewardState extends string, TAccountRewardAccrual extends string, TAccountStakingVault extends string, TAccountQuoteTokenProgram extends string>(input: ClaimProtocolFeesInput$1<TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram>): ClaimProtocolFeesInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram, "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">;
934
+ type ParsedClaimProtocolFeesInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
935
+ programAddress: Address<TProgram>;
936
+ accounts: {
937
+ payer: TAccountMetas[0];
938
+ pool: TAccountMetas[1];
939
+ baseMint: TAccountMetas[2];
940
+ quoteMint: TAccountMetas[3];
941
+ quoteVault: TAccountMetas[4];
942
+ nexusStakingConfig: TAccountMetas[5];
943
+ stakingRewardState: TAccountMetas[6];
944
+ rewardAccrual: TAccountMetas[7];
945
+ stakingVault: TAccountMetas[8];
946
+ quoteTokenProgram: TAccountMetas[9];
947
+ systemProgram: TAccountMetas[10];
948
+ eventAuthority: TAccountMetas[11];
949
+ program: TAccountMetas[12];
950
+ };
951
+ data: ClaimProtocolFeesInstructionData$1;
952
+ };
953
+ declare function parseClaimProtocolFeesInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimProtocolFeesInstruction$1<TProgram, TAccountMetas>;
954
+ //#endregion
955
+ //#region src/dex/generated/instructions/sellExactIn.d.ts
956
+ declare const SELL_EXACT_IN_DISCRIMINATOR$1: ReadonlyUint8Array;
957
+ declare function getSellExactInDiscriminatorBytes$1(): ReadonlyUint8Array;
958
+ type SellExactInInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", TAccountProgram extends string | AccountMeta<string> = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
959
+ type SellExactInInstructionData$1 = {
960
+ discriminator: ReadonlyUint8Array;
961
+ amountIn: bigint;
962
+ minAmountOut: bigint;
963
+ };
964
+ type SellExactInInstructionDataArgs$1 = {
965
+ amountIn: number | bigint;
966
+ minAmountOut: number | bigint;
967
+ };
968
+ declare function getSellExactInInstructionDataEncoder$1(): FixedSizeEncoder<SellExactInInstructionDataArgs$1>;
969
+ declare function getSellExactInInstructionDataDecoder$1(): FixedSizeDecoder<SellExactInInstructionData$1>;
970
+ declare function getSellExactInInstructionDataCodec$1(): FixedSizeCodec<SellExactInInstructionDataArgs$1, SellExactInInstructionData$1>;
971
+ type SellExactInInstructionExtraArgs$1 = {
972
+ platformConfig: Address;
973
+ };
974
+ type SellExactInAsyncInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
975
+ user: TransactionSigner<TAccountUser>;
976
+ payer: TransactionSigner<TAccountPayer>;
977
+ pool?: Address<TAccountPool>;
978
+ baseMint: Address<TAccountBaseMint>;
979
+ quoteMint: Address<TAccountQuoteMint>;
980
+ baseVault?: Address<TAccountBaseVault>;
981
+ quoteVault?: Address<TAccountQuoteVault>;
982
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
983
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
984
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
985
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
986
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
987
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
988
+ partnerConfig?: Address<TAccountPartnerConfig>;
989
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
990
+ amountIn: SellExactInInstructionDataArgs$1["amountIn"];
991
+ minAmountOut: SellExactInInstructionDataArgs$1["minAmountOut"];
992
+ platformConfig: SellExactInInstructionExtraArgs$1["platformConfig"];
993
+ };
994
+ declare function getSellExactInInstructionAsync$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactInAsyncInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<SellExactInInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">>;
995
+ type SellExactInInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
996
+ user: TransactionSigner<TAccountUser>;
997
+ payer: TransactionSigner<TAccountPayer>;
998
+ pool: Address<TAccountPool>;
999
+ baseMint: Address<TAccountBaseMint>;
1000
+ quoteMint: Address<TAccountQuoteMint>;
1001
+ baseVault: Address<TAccountBaseVault>;
1002
+ quoteVault: Address<TAccountQuoteVault>;
1003
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
1004
+ userBaseAccount: Address<TAccountUserBaseAccount>;
1005
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
1006
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
1007
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
1008
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
1009
+ partnerConfig: Address<TAccountPartnerConfig>;
1010
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
1011
+ amountIn: SellExactInInstructionDataArgs$1["amountIn"];
1012
+ minAmountOut: SellExactInInstructionDataArgs$1["minAmountOut"];
1013
+ platformConfig?: SellExactInInstructionExtraArgs$1["platformConfig"];
1014
+ };
1015
+ declare function getSellExactInInstruction$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactInInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): SellExactInInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">;
1016
+ type ParsedSellExactInInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1017
+ programAddress: Address<TProgram>;
1018
+ accounts: {
1019
+ user: TAccountMetas[0];
1020
+ payer: TAccountMetas[1];
1021
+ pool: TAccountMetas[2];
1022
+ baseMint: TAccountMetas[3];
1023
+ quoteMint: TAccountMetas[4];
1024
+ baseVault: TAccountMetas[5];
1025
+ quoteVault: TAccountMetas[6];
1026
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
1027
+ userBaseAccount: TAccountMetas[7];
1028
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
1029
+ userQuoteAccount: TAccountMetas[8];
1030
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
1031
+ partner: TAccountMetas[9];
1032
+ partnerConfig: TAccountMetas[10];
1033
+ baseTokenProgram: TAccountMetas[11];
1034
+ quoteTokenProgram: TAccountMetas[12];
1035
+ associatedTokenProgram: TAccountMetas[13];
1036
+ systemProgram: TAccountMetas[14];
1037
+ eventAuthority: TAccountMetas[15];
1038
+ program: TAccountMetas[16];
1039
+ };
1040
+ data: SellExactInInstructionData$1;
1041
+ };
1042
+ declare function parseSellExactInInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellExactInInstruction$1<TProgram, TAccountMetas>;
1043
+ //#endregion
1044
+ //#region src/dex/generated/instructions/sellExactOut.d.ts
1045
+ declare const SELL_EXACT_OUT_DISCRIMINATOR$1: ReadonlyUint8Array;
1046
+ declare function getSellExactOutDiscriminatorBytes$1(): ReadonlyUint8Array;
1047
+ type SellExactOutInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", TAccountProgram extends string | AccountMeta<string> = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
1048
+ type SellExactOutInstructionData$1 = {
1049
+ discriminator: ReadonlyUint8Array;
1050
+ amountOut: bigint;
1051
+ maxAmountIn: bigint;
1052
+ };
1053
+ type SellExactOutInstructionDataArgs$1 = {
1054
+ amountOut: number | bigint;
1055
+ maxAmountIn: number | bigint;
1056
+ };
1057
+ declare function getSellExactOutInstructionDataEncoder$1(): FixedSizeEncoder<SellExactOutInstructionDataArgs$1>;
1058
+ declare function getSellExactOutInstructionDataDecoder$1(): FixedSizeDecoder<SellExactOutInstructionData$1>;
1059
+ declare function getSellExactOutInstructionDataCodec$1(): FixedSizeCodec<SellExactOutInstructionDataArgs$1, SellExactOutInstructionData$1>;
1060
+ type SellExactOutInstructionExtraArgs$1 = {
1061
+ platformConfig: Address;
1062
+ };
1063
+ type SellExactOutAsyncInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
1064
+ user: TransactionSigner<TAccountUser>;
1065
+ payer: TransactionSigner<TAccountPayer>;
1066
+ pool?: Address<TAccountPool>;
1067
+ baseMint: Address<TAccountBaseMint>;
1068
+ quoteMint: Address<TAccountQuoteMint>;
1069
+ baseVault?: Address<TAccountBaseVault>;
1070
+ quoteVault?: Address<TAccountQuoteVault>;
1071
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
1072
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
1073
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
1074
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
1075
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
1076
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
1077
+ partnerConfig?: Address<TAccountPartnerConfig>;
1078
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
1079
+ amountOut: SellExactOutInstructionDataArgs$1["amountOut"];
1080
+ maxAmountIn: SellExactOutInstructionDataArgs$1["maxAmountIn"];
1081
+ platformConfig: SellExactOutInstructionExtraArgs$1["platformConfig"];
1082
+ };
1083
+ declare function getSellExactOutInstructionAsync$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactOutAsyncInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<SellExactOutInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">>;
1084
+ type SellExactOutInput$1<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountPool extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
1085
+ user: TransactionSigner<TAccountUser>;
1086
+ payer: TransactionSigner<TAccountPayer>;
1087
+ pool: Address<TAccountPool>;
1088
+ baseMint: Address<TAccountBaseMint>;
1089
+ quoteMint: Address<TAccountQuoteMint>;
1090
+ baseVault: Address<TAccountBaseVault>;
1091
+ quoteVault: Address<TAccountQuoteVault>;
1092
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
1093
+ userBaseAccount: Address<TAccountUserBaseAccount>;
1094
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
1095
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
1096
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
1097
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
1098
+ partnerConfig: Address<TAccountPartnerConfig>;
1099
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
1100
+ amountOut: SellExactOutInstructionDataArgs$1["amountOut"];
1101
+ maxAmountIn: SellExactOutInstructionDataArgs$1["maxAmountIn"];
1102
+ platformConfig?: SellExactOutInstructionExtraArgs$1["platformConfig"];
1103
+ };
1104
+ declare function getSellExactOutInstruction$1<TAccountUser extends string, TAccountPayer extends string, TAccountPool extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactOutInput$1<TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): SellExactOutInstruction$1<typeof SEND_DEX_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountPool, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX">;
1105
+ type ParsedSellExactOutInstruction$1<TProgram extends string = typeof SEND_DEX_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
1106
+ programAddress: Address<TProgram>;
1107
+ accounts: {
1108
+ user: TAccountMetas[0];
1109
+ payer: TAccountMetas[1];
1110
+ pool: TAccountMetas[2];
1111
+ baseMint: TAccountMetas[3];
1112
+ quoteMint: TAccountMetas[4];
1113
+ baseVault: TAccountMetas[5];
1114
+ quoteVault: TAccountMetas[6];
1115
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
1116
+ userBaseAccount: TAccountMetas[7];
1117
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
1118
+ userQuoteAccount: TAccountMetas[8];
1119
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
1120
+ partner: TAccountMetas[9];
1121
+ partnerConfig: TAccountMetas[10];
1122
+ baseTokenProgram: TAccountMetas[11];
1123
+ quoteTokenProgram: TAccountMetas[12];
1124
+ associatedTokenProgram: TAccountMetas[13];
1125
+ systemProgram: TAccountMetas[14];
1126
+ eventAuthority: TAccountMetas[15];
1127
+ program: TAccountMetas[16];
1128
+ };
1129
+ data: SellExactOutInstructionData$1;
1130
+ };
1131
+ declare function parseSellExactOutInstruction$1<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellExactOutInstruction$1<TProgram, TAccountMetas>;
1132
+ //#endregion
1133
+ //#region src/dex/generated/instructions/sendDex.instructions.d.ts
1134
+ /** Instruction kinds of the sendDex program. */
1135
+ type SendDexInstructionType = "buyExactIn" | "buyExactOut" | "claimCreatorFees" | "claimProtocolFees" | "sellExactIn" | "sellExactOut";
1136
+ /**
1137
+ * Identifies sendDex instruction data by its discriminators.
1138
+ * Returns `null` when the instruction is for another program or the data matches no known instruction.
1139
+ */
1140
+ declare function identifySendDexInstruction(instruction: {
1141
+ data: ReadonlyUint8Array;
1142
+ programAddress: Address;
1143
+ } | ReadonlyUint8Array): SendDexInstructionType | null;
1144
+ /** Parsed sendDex instruction: the instruction kind tag plus its parsed accounts and data. */
1145
+ type ParsedSendDexInstruction<TProgram extends string = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX"> = ({
1146
+ instructionType: "buyExactIn";
1147
+ } & ParsedBuyExactInInstruction$1<TProgram>) | ({
1148
+ instructionType: "buyExactOut";
1149
+ } & ParsedBuyExactOutInstruction$1<TProgram>) | ({
1150
+ instructionType: "claimCreatorFees";
1151
+ } & ParsedClaimCreatorFeesInstruction$1<TProgram>) | ({
1152
+ instructionType: "claimProtocolFees";
1153
+ } & ParsedClaimProtocolFeesInstruction$1<TProgram>) | ({
1154
+ instructionType: "sellExactIn";
1155
+ } & ParsedSellExactInInstruction$1<TProgram>) | ({
1156
+ instructionType: "sellExactOut";
1157
+ } & ParsedSellExactOutInstruction$1<TProgram>);
1158
+ /**
1159
+ * Parses a sendDex instruction into its kind tag plus parsed accounts and data.
1160
+ * Returns `null` when the instruction is for another program or no known instruction matches;
1161
+ * throws if a matched instruction fails to parse.
1162
+ */
1163
+ declare function parseSendDexInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSendDexInstruction<TProgram> | null;
1164
+ declare namespace index_d_exports$20 {
1165
+ export { BUY_EXACT_IN_DISCRIMINATOR$1 as BUY_EXACT_IN_DISCRIMINATOR, BUY_EXACT_OUT_DISCRIMINATOR$1 as BUY_EXACT_OUT_DISCRIMINATOR, BuyExactInAsyncInput$1 as BuyExactInAsyncInput, BuyExactInInput$1 as BuyExactInInput, BuyExactInInstruction$1 as BuyExactInInstruction, BuyExactInInstructionData$1 as BuyExactInInstructionData, BuyExactInInstructionDataArgs$1 as BuyExactInInstructionDataArgs, BuyExactInInstructionExtraArgs$1 as BuyExactInInstructionExtraArgs, BuyExactOutAsyncInput$1 as BuyExactOutAsyncInput, BuyExactOutInput$1 as BuyExactOutInput, BuyExactOutInstruction$1 as BuyExactOutInstruction, BuyExactOutInstructionData$1 as BuyExactOutInstructionData, BuyExactOutInstructionDataArgs$1 as BuyExactOutInstructionDataArgs, BuyExactOutInstructionExtraArgs$1 as BuyExactOutInstructionExtraArgs, CLAIM_CREATOR_FEES_DISCRIMINATOR$1 as CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_PROTOCOL_FEES_DISCRIMINATOR$1 as CLAIM_PROTOCOL_FEES_DISCRIMINATOR, ClaimCreatorFeesAsyncInput$1 as ClaimCreatorFeesAsyncInput, ClaimCreatorFeesInput$1 as ClaimCreatorFeesInput, ClaimCreatorFeesInstruction$1 as ClaimCreatorFeesInstruction, ClaimCreatorFeesInstructionData$1 as ClaimCreatorFeesInstructionData, ClaimCreatorFeesInstructionDataArgs$1 as ClaimCreatorFeesInstructionDataArgs, ClaimProtocolFeesAsyncInput$1 as ClaimProtocolFeesAsyncInput, ClaimProtocolFeesInput$1 as ClaimProtocolFeesInput, ClaimProtocolFeesInstruction$1 as ClaimProtocolFeesInstruction, ClaimProtocolFeesInstructionData$1 as ClaimProtocolFeesInstructionData, ClaimProtocolFeesInstructionDataArgs$1 as ClaimProtocolFeesInstructionDataArgs, ParsedBuyExactInInstruction$1 as ParsedBuyExactInInstruction, ParsedBuyExactOutInstruction$1 as ParsedBuyExactOutInstruction, ParsedClaimCreatorFeesInstruction$1 as ParsedClaimCreatorFeesInstruction, ParsedClaimProtocolFeesInstruction$1 as ParsedClaimProtocolFeesInstruction, ParsedSellExactInInstruction$1 as ParsedSellExactInInstruction, ParsedSellExactOutInstruction$1 as ParsedSellExactOutInstruction, ParsedSendDexInstruction, SELL_EXACT_IN_DISCRIMINATOR$1 as SELL_EXACT_IN_DISCRIMINATOR, SELL_EXACT_OUT_DISCRIMINATOR$1 as SELL_EXACT_OUT_DISCRIMINATOR, SellExactInAsyncInput$1 as SellExactInAsyncInput, SellExactInInput$1 as SellExactInInput, SellExactInInstruction$1 as SellExactInInstruction, SellExactInInstructionData$1 as SellExactInInstructionData, SellExactInInstructionDataArgs$1 as SellExactInInstructionDataArgs, SellExactInInstructionExtraArgs$1 as SellExactInInstructionExtraArgs, SellExactOutAsyncInput$1 as SellExactOutAsyncInput, SellExactOutInput$1 as SellExactOutInput, SellExactOutInstruction$1 as SellExactOutInstruction, SellExactOutInstructionData$1 as SellExactOutInstructionData, SellExactOutInstructionDataArgs$1 as SellExactOutInstructionDataArgs, SellExactOutInstructionExtraArgs$1 as SellExactOutInstructionExtraArgs, SendDexInstructionType, getBuyExactInDiscriminatorBytes$1 as getBuyExactInDiscriminatorBytes, getBuyExactInInstruction$1 as getBuyExactInInstruction, getBuyExactInInstructionAsync$1 as getBuyExactInInstructionAsync, getBuyExactInInstructionDataCodec$1 as getBuyExactInInstructionDataCodec, getBuyExactInInstructionDataDecoder$1 as getBuyExactInInstructionDataDecoder, getBuyExactInInstructionDataEncoder$1 as getBuyExactInInstructionDataEncoder, getBuyExactOutDiscriminatorBytes$1 as getBuyExactOutDiscriminatorBytes, getBuyExactOutInstruction$1 as getBuyExactOutInstruction, getBuyExactOutInstructionAsync$1 as getBuyExactOutInstructionAsync, getBuyExactOutInstructionDataCodec$1 as getBuyExactOutInstructionDataCodec, getBuyExactOutInstructionDataDecoder$1 as getBuyExactOutInstructionDataDecoder, getBuyExactOutInstructionDataEncoder$1 as getBuyExactOutInstructionDataEncoder, getClaimCreatorFeesDiscriminatorBytes$1 as getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction$1 as getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync$1 as getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec$1 as getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder$1 as getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder$1 as getClaimCreatorFeesInstructionDataEncoder, getClaimProtocolFeesDiscriminatorBytes$1 as getClaimProtocolFeesDiscriminatorBytes, getClaimProtocolFeesInstruction$1 as getClaimProtocolFeesInstruction, getClaimProtocolFeesInstructionAsync$1 as getClaimProtocolFeesInstructionAsync, getClaimProtocolFeesInstructionDataCodec$1 as getClaimProtocolFeesInstructionDataCodec, getClaimProtocolFeesInstructionDataDecoder$1 as getClaimProtocolFeesInstructionDataDecoder, getClaimProtocolFeesInstructionDataEncoder$1 as getClaimProtocolFeesInstructionDataEncoder, getSellExactInDiscriminatorBytes$1 as getSellExactInDiscriminatorBytes, getSellExactInInstruction$1 as getSellExactInInstruction, getSellExactInInstructionAsync$1 as getSellExactInInstructionAsync, getSellExactInInstructionDataCodec$1 as getSellExactInInstructionDataCodec, getSellExactInInstructionDataDecoder$1 as getSellExactInInstructionDataDecoder, getSellExactInInstructionDataEncoder$1 as getSellExactInInstructionDataEncoder, getSellExactOutDiscriminatorBytes$1 as getSellExactOutDiscriminatorBytes, getSellExactOutInstruction$1 as getSellExactOutInstruction, getSellExactOutInstructionAsync$1 as getSellExactOutInstructionAsync, getSellExactOutInstructionDataCodec$1 as getSellExactOutInstructionDataCodec, getSellExactOutInstructionDataDecoder$1 as getSellExactOutInstructionDataDecoder, getSellExactOutInstructionDataEncoder$1 as getSellExactOutInstructionDataEncoder, identifySendDexInstruction, parseBuyExactInInstruction$1 as parseBuyExactInInstruction, parseBuyExactOutInstruction$1 as parseBuyExactOutInstruction, parseClaimCreatorFeesInstruction$1 as parseClaimCreatorFeesInstruction, parseClaimProtocolFeesInstruction$1 as parseClaimProtocolFeesInstruction, parseSellExactInInstruction$1 as parseSellExactInInstruction, parseSellExactOutInstruction$1 as parseSellExactOutInstruction, parseSendDexInstruction };
1166
+ }
1167
+ //#endregion
1168
+ //#region src/dex/generated/plugins/sendDex.d.ts
1169
+ type SendDexPlugin = {
1170
+ accounts: SendDexPluginAccounts;
1171
+ events: SendDexPluginEvents;
1172
+ instructions: SendDexPluginInstructions;
1173
+ pdas: SendDexPluginPdas;
1174
+ identifyAccount: typeof identifySendDexAccount;
1175
+ identifyInstruction: typeof identifySendDexInstruction;
1176
+ parseInstruction: typeof parseSendDexInstruction;
1177
+ };
1178
+ type SendDexPluginAccounts = {
1179
+ globalConfig: ReturnType<typeof getGlobalConfigCodec$2> & SelfFetchFunctions<GlobalConfigArgs$2, GlobalConfig$2>;
1180
+ pool: ReturnType<typeof getPoolCodec> & SelfFetchFunctions<PoolArgs, Pool>;
1181
+ rewardAccrual: ReturnType<typeof getRewardAccrualCodec$1> & SelfFetchFunctions<RewardAccrualArgs$1, RewardAccrual$1>;
1182
+ };
1183
+ type SendDexPluginEvents = {
1184
+ creatorClaimEvent: ReturnType<typeof getCreatorClaimEventDecoder$1>;
1185
+ depositQuoteEvent: ReturnType<typeof getDepositQuoteEventDecoder>;
1186
+ poolCreateEvent: ReturnType<typeof getPoolCreateEventDecoder>;
1187
+ protocolClaimEvent: ReturnType<typeof getProtocolClaimEventDecoder$1>;
1188
+ tokenCreateEvent: ReturnType<typeof getTokenCreateEventDecoder$1>;
1189
+ tradeEvent: ReturnType<typeof getTradeEventDecoder$1>;
1190
+ };
1191
+ type SendDexPluginInstructions = {
1192
+ buyExactIn: (input: MakeOptional$2<BuyExactInAsyncInput$1, "payer">) => ReturnType<typeof getBuyExactInInstructionAsync$1> & SelfPlanAndSendFunctions;
1193
+ buyExactOut: (input: MakeOptional$2<BuyExactOutAsyncInput$1, "payer">) => ReturnType<typeof getBuyExactOutInstructionAsync$1> & SelfPlanAndSendFunctions;
1194
+ claimCreatorFees: (input: MakeOptional$2<ClaimCreatorFeesAsyncInput$1, "payer">) => ReturnType<typeof getClaimCreatorFeesInstructionAsync$1> & SelfPlanAndSendFunctions;
1195
+ claimProtocolFees: (input: MakeOptional$2<ClaimProtocolFeesAsyncInput$1, "payer">) => ReturnType<typeof getClaimProtocolFeesInstructionAsync$1> & SelfPlanAndSendFunctions;
1196
+ sellExactIn: (input: MakeOptional$2<SellExactInAsyncInput$1, "payer">) => ReturnType<typeof getSellExactInInstructionAsync$1> & SelfPlanAndSendFunctions;
1197
+ sellExactOut: (input: MakeOptional$2<SellExactOutAsyncInput$1, "payer">) => ReturnType<typeof getSellExactOutInstructionAsync$1> & SelfPlanAndSendFunctions;
1198
+ };
1199
+ type SendDexPluginPdas = {
1200
+ pool: typeof findPoolPda;
1201
+ eventAuthority: typeof findEventAuthorityPda$2;
1202
+ rewardAccrual: typeof findRewardAccrualPda$1;
1203
+ globalConfig: typeof findGlobalConfigPda$2;
1204
+ lpMint: typeof findLpMintPda;
1205
+ wsolRewardAccrual: typeof findWsolRewardAccrualPda$1;
1206
+ };
1207
+ type SendDexPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
1208
+ declare function sendDexProgram(): <T extends SendDexPluginRequirements>(client: T) => ExtendedClient<T, {
1209
+ sendDex: SendDexPlugin;
1210
+ }>;
1211
+ type MakeOptional$2<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
1212
+ declare namespace index_d_exports$19 {
1213
+ export { SendDexPlugin, SendDexPluginAccounts, SendDexPluginEvents, SendDexPluginInstructions, SendDexPluginPdas, SendDexPluginRequirements, sendDexProgram };
1214
+ }
1215
+ declare namespace amm_d_exports {
1216
+ export { BuyQuote, MintFee, SellQuote, TradeQuote, TransferFeeNotSettleableError, amountAfterFee, buyExactIn$2 as buyExactIn, buyExactOut$2 as buyExactOut, calculateInitialLp, calculateInputForOutput, calculateMarketCap, calculateOutput, calculatePrice, calculateSlippageDown, calculateSlippageUp, feeOn, grossUp, sellExactIn$2 as sellExactIn, sellExactOut$2 as sellExactOut };
1217
+ }
1218
+ /** Token-2022 `TransferFeeConfig` for the epoch the trade lands in; a stale one misprices the trade. */
1219
+ interface MintFee {
1220
+ /** 0 to 10_000. */
1221
+ bps: number;
1222
+ /** Cap on the withheld amount, in the mint's raw units. */
1223
+ maximumFee: bigint;
1224
+ }
1225
+ /** No transfer lands exactly the requested amount; approximating one hands the program a bound it rejects. */
1226
+ declare class TransferFeeNotSettleableError extends RangeError {
1227
+ readonly amount: bigint;
1228
+ readonly mintFee: MintFee;
1229
+ constructor(amount: bigint, mintFee: MintFee);
1230
+ }
1231
+ /** Rounds up, then caps (SPL's order); swapping them lets a split booking over-credit. */
1232
+ declare function feeOn(amount: bigint, fee?: MintFee): bigint;
1233
+ /** What lands when `amount` is sent; use `grossUp` to land an exact amount. */
1234
+ declare function amountAfterFee(amount: bigint, fee?: MintFee): bigint;
1235
+ /** What must be sent for exactly `amount` to land; throws {@link TransferFeeNotSettleableError} if none does. */
1236
+ declare function grossUp(amount: bigint, fee?: MintFee): bigint;
1237
+ /** `baseAmount`/`quoteAmount` are the user's transfers, as in on-chain `TradeResult`. Read the net
1238
+ * fields on {@link BuyQuote}/{@link SellQuote}; re-deriving them drifts from the program by a rounding step. */
1239
+ interface TradeQuote {
1240
+ /** Base sent: vault to user on a buy, user to vault on a sell. */
1241
+ baseAmount: bigint;
1242
+ /** Quote sent: user to vault on a buy, vault to user on a sell. */
1243
+ quoteAmount: bigint;
1244
+ /** Platform fee, in quote units. */
1245
+ fee: bigint;
1246
+ baseTransferFee: bigint;
1247
+ quoteTransferFee: bigint;
1248
+ }
1249
+ interface BuyQuote extends TradeQuote {
1250
+ /** Priced on the quote reaching the vault. */
1251
+ fee: bigint;
1252
+ /** Base credited to the buyer, after the base mint's cut. */
1253
+ baseToUser: bigint;
1254
+ /** Equals `quoteAmount`. */
1255
+ quoteFromUser: bigint;
1256
+ }
1257
+ interface SellQuote extends TradeQuote {
1258
+ /** Priced on the quote leaving the vault. */
1259
+ fee: bigint;
1260
+ /** Equals `baseAmount`. */
1261
+ baseFromUser: bigint;
1262
+ /** Quote credited to the seller, after the quote mint's cut. */
1263
+ quoteToUser: bigint;
1264
+ }
1265
+ /** Output rounds down (the new reserve rounds up), so `k` never shrinks. */
1266
+ declare function calculateOutput(reserveIn: bigint, reserveOut: bigint, amountIn: bigint): bigint;
1267
+ /** Required input rounds up so the user pays enough. */
1268
+ declare function calculateInputForOutput(reserveIn: bigint, reserveOut: bigint, amountOut: bigint): bigint;
1269
+ interface BaseQuoteParams {
1270
+ reserveQuote: bigint;
1271
+ reserveBase: bigint;
1272
+ feeBps: number;
1273
+ quoteFee?: MintFee;
1274
+ baseFee?: MintFee;
1275
+ }
1276
+ /** Launchpad only: `bondingCurve.realBaseReserves`. A DEX pool has no cap. */
1277
+ interface BaseReserveCap {
1278
+ baseReserveCap?: bigint;
1279
+ }
1280
+ /** Guard with `calculateSlippageUp(quoteAmount, bps)`; it already carries the quote mint's cut. */
1281
+ declare function buyExactOut$2(params: BaseQuoteParams & BaseReserveCap & {
1282
+ baseAmountOut: bigint;
1283
+ }): BuyQuote;
1284
+ /** Guard with `calculateSlippageDown(baseToUser, bps)`, not `baseAmount`: the program bounds what the buyer nets. */
1285
+ declare function buyExactIn$2(params: BaseQuoteParams & BaseReserveCap & {
1286
+ quoteAmountIn: bigint;
1287
+ }): BuyQuote;
1288
+ /** Guard with `calculateSlippageDown(quoteToUser, bps)`, not `quoteAmount`. */
1289
+ declare function sellExactIn$2(params: BaseQuoteParams & {
1290
+ baseAmountIn: bigint;
1291
+ }): SellQuote;
1292
+ /** Guard with `calculateSlippageUp(baseFromUser, bps)`, which already carries the base mint's cut. */
1293
+ declare function sellExactOut$2(params: BaseQuoteParams & {
1294
+ quoteAmountOut: bigint;
1295
+ }): SellQuote;
1296
+ declare function calculateSlippageUp(amount: bigint, slippageBps: number): bigint;
1297
+ declare function calculateSlippageDown(amount: bigint, slippageBps: number): bigint;
1298
+ /** Floors, as the program's `isqrt` does. */
1299
+ declare function calculateInitialLp(quoteAmount: bigint, baseAmount: bigint): bigint;
1300
+ /** Floating-point quote per base, for display only. */
1301
+ declare function calculatePrice(params: {
1302
+ quoteReserves: bigint;
1303
+ baseReserves: bigint;
1304
+ quoteDecimals: number;
1305
+ baseDecimals: number;
1306
+ }): number;
1307
+ /** Market cap in raw quote-token units. */
1308
+ declare function calculateMarketCap(params: {
1309
+ quoteReserves: bigint;
1310
+ baseReserves: bigint;
1311
+ baseSupply: bigint;
1312
+ }): bigint;
1313
+ //#endregion
1314
+ //#region src/utils/partner.d.ts
1315
+ /** Non-default partners must sign; only `DEFAULT_PARTNER` is valid as a bare address. */
1316
+ type PartnerInput = TransactionSigner | typeof DEFAULT_PARTNER;
1317
+ declare namespace trade_d_exports$1 {
1318
+ export { DexInstructionParams, DexTradeParams, buildBuyExactInInstruction$1 as buildBuyExactInInstruction, buildBuyExactOutInstruction$1 as buildBuyExactOutInstruction, buildSellExactInInstruction$1 as buildSellExactInInstruction, buildSellExactOutInstruction$1 as buildSellExactOutInstruction, buyExactIn$1 as buyExactIn, buyExactOut$1 as buyExactOut, sellExactIn$1 as sellExactIn, sellExactOut$1 as sellExactOut };
1319
+ }
1320
+ interface DexTradeParams {
1321
+ user: TransactionSigner;
1322
+ payer?: TransactionSigner;
1323
+ baseMint: Address;
1324
+ quoteMint: Address;
1325
+ baseReserves: bigint;
1326
+ quoteReserves: bigint;
1327
+ feeBps: number;
1328
+ slippageBps: number;
1329
+ partner: PartnerInput;
1330
+ platformConfig: Address;
1331
+ quoteTokenProgram: Address;
1332
+ /** Token-2022 schedule for the epoch the trade lands in; stale or missing skews the slippage bounds. */
1333
+ quoteFee?: MintFee;
1334
+ baseFee?: MintFee;
1335
+ /** {@inheritDoc DexInstructionParams.userQuoteAccount} */
1336
+ userQuoteAccount?: Address;
1337
+ /** {@inheritDoc DexInstructionParams.userBaseAccount} */
1338
+ userBaseAccount?: Address;
1339
+ }
1340
+ interface DexInstructionParams {
1341
+ user: TransactionSigner;
1342
+ payer?: TransactionSigner;
1343
+ baseMint: Address;
1344
+ quoteMint: Address;
1345
+ partner: PartnerInput;
1346
+ platformConfig: Address;
1347
+ quoteTokenProgram: Address;
1348
+ /** Any user-owned quote-mint account. Defaults to the ATA, created mid-trade
1349
+ * if missing (payer funds rent), which only rescues a sell. For WSOL,
1350
+ * a throwaway `createAccountWithSeed` account is cheaper. */
1351
+ userQuoteAccount?: Address;
1352
+ /** Any user-owned base-mint account. Defaults to the ATA, created mid-trade
1353
+ * if missing (payer funds rent), which only rescues a buy. */
1354
+ userBaseAccount?: Address;
1355
+ }
1356
+ /** `baseAmountOut` is net to the buyer: the program reads `amount` as `base_to_user`. */
1357
+ declare function buyExactOut$1(params: DexTradeParams & {
1358
+ baseAmountOut: bigint;
1359
+ }): Promise<{
1360
+ instruction: Instruction;
1361
+ quote: BuyQuote;
1362
+ }>;
1363
+ declare function buyExactIn$1(params: DexTradeParams & {
1364
+ quoteAmountIn: bigint;
1365
+ }): Promise<{
1366
+ instruction: Instruction;
1367
+ quote: BuyQuote;
1368
+ }>;
1369
+ declare function sellExactIn$1(params: DexTradeParams & {
1370
+ baseAmountIn: bigint;
1371
+ }): Promise<{
1372
+ instruction: Instruction;
1373
+ quote: SellQuote;
1374
+ }>;
1375
+ /** `quoteAmountOut` is net to the seller: the program reads `amount` as `quote_to_user`. */
1376
+ declare function sellExactOut$1(params: DexTradeParams & {
1377
+ quoteAmountOut: bigint;
1378
+ }): Promise<{
1379
+ instruction: Instruction;
1380
+ quote: SellQuote;
1381
+ }>;
1382
+ declare function buildBuyExactInInstruction$1(params: DexInstructionParams & {
1383
+ amountIn: bigint;
1384
+ minAmountOut: bigint;
1385
+ }): Promise<Instruction>;
1386
+ declare function buildBuyExactOutInstruction$1(params: DexInstructionParams & {
1387
+ amountOut: bigint;
1388
+ maxAmountIn: bigint;
1389
+ }): Promise<Instruction>;
1390
+ declare function buildSellExactInInstruction$1(params: DexInstructionParams & {
1391
+ amountIn: bigint;
1392
+ minAmountOut: bigint;
1393
+ }): Promise<Instruction>;
1394
+ declare function buildSellExactOutInstruction$1(params: DexInstructionParams & {
1395
+ amountOut: bigint;
1396
+ maxAmountIn: bigint;
1397
+ }): Promise<Instruction>;
1398
+ declare namespace index_d_exports {
1399
+ export { index_d_exports$24 as accounts, index_d_exports$23 as errors, index_d_exports$21 as events, index_d_exports$20 as instructions, index_d_exports$22 as pda, index_d_exports$19 as plugins, trade_d_exports$1 as trade, index_d_exports$25 as types };
1400
+ }
1401
+ //#endregion
1402
+ //#region src/launchpad/generated/types/bondingCurveStatus.d.ts
1403
+ declare enum BondingCurveStatus {
1404
+ Funding = 0,
1405
+ Completed = 1,
1406
+ Migrated = 2,
1407
+ Paused = 3
1408
+ }
1409
+ type BondingCurveStatusArgs = BondingCurveStatus;
1410
+ declare function getBondingCurveStatusEncoder(): FixedSizeEncoder<BondingCurveStatusArgs>;
1411
+ declare function getBondingCurveStatusDecoder(): FixedSizeDecoder<BondingCurveStatus>;
1412
+ declare function getBondingCurveStatusCodec(): FixedSizeCodec<BondingCurveStatusArgs, BondingCurveStatus>;
1413
+ //#endregion
1414
+ //#region src/launchpad/generated/types/tradeDirection.d.ts
1415
+ declare enum TradeDirection {
1416
+ Buy = 0,
1417
+ Sell = 1
1418
+ }
1419
+ type TradeDirectionArgs = TradeDirection;
1420
+ declare function getTradeDirectionEncoder(): FixedSizeEncoder<TradeDirectionArgs>;
1421
+ declare function getTradeDirectionDecoder(): FixedSizeDecoder<TradeDirection>;
1422
+ declare function getTradeDirectionCodec(): FixedSizeCodec<TradeDirectionArgs, TradeDirection>;
1423
+ declare namespace index_d_exports$18 {
1424
+ export { BondingCurveStatus, BondingCurveStatusArgs, TradeDirection, TradeDirectionArgs, getBondingCurveStatusCodec, getBondingCurveStatusDecoder, getBondingCurveStatusEncoder, getTradeDirectionCodec, getTradeDirectionDecoder, getTradeDirectionEncoder };
1425
+ }
1426
+ //#endregion
1427
+ //#region src/launchpad/generated/accounts/bondingCurve.d.ts
1428
+ declare const BONDING_CURVE_DISCRIMINATOR: ReadonlyUint8Array;
1429
+ declare function getBondingCurveDiscriminatorBytes(): ReadonlyUint8Array;
1430
+ type BondingCurve = {
1431
+ discriminator: ReadonlyUint8Array;
1432
+ version: number;
1433
+ bump: number;
1434
+ status: BondingCurveStatus;
1435
+ baseMint: Address;
1436
+ baseDecimals: number;
1437
+ baseSupply: bigint;
1438
+ initialVirtualBase: bigint;
1439
+ initialVirtualQuote: bigint;
1440
+ initialRealBase: bigint;
1441
+ quoteMint: Address;
1442
+ quoteDecimals: number;
1443
+ coinCreator: Address;
1444
+ creatorFeeConfig: Address;
1445
+ partner: Address;
1446
+ baseVault: Address;
1447
+ quoteVault: Address;
1448
+ virtualBaseReserves: bigint;
1449
+ virtualQuoteReserves: bigint;
1450
+ realBaseReserves: bigint;
1451
+ realQuoteReserves: bigint;
1452
+ createdAt: bigint;
1453
+ protocolOwed: bigint;
1454
+ creatorOwed: bigint;
1455
+ platformConfig: Address;
1456
+ reserved: ReadonlyUint8Array;
1457
+ };
1458
+ type BondingCurveArgs = {
1459
+ version: number;
1460
+ bump: number;
1461
+ status: BondingCurveStatusArgs;
1462
+ baseMint: Address;
1463
+ baseDecimals: number;
1464
+ baseSupply: number | bigint;
1465
+ initialVirtualBase: number | bigint;
1466
+ initialVirtualQuote: number | bigint;
1467
+ initialRealBase: number | bigint;
1468
+ quoteMint: Address;
1469
+ quoteDecimals: number;
1470
+ coinCreator: Address;
1471
+ creatorFeeConfig: Address;
1472
+ partner: Address;
1473
+ baseVault: Address;
1474
+ quoteVault: Address;
1475
+ virtualBaseReserves: number | bigint;
1476
+ virtualQuoteReserves: number | bigint;
1477
+ realBaseReserves: number | bigint;
1478
+ realQuoteReserves: number | bigint;
1479
+ createdAt: number | bigint;
1480
+ protocolOwed: number | bigint;
1481
+ creatorOwed: number | bigint;
1482
+ platformConfig: Address;
1483
+ reserved: ReadonlyUint8Array;
1484
+ };
1485
+ /** Gets the encoder for {@link BondingCurveArgs} account data. */
1486
+ declare function getBondingCurveEncoder(): FixedSizeEncoder<BondingCurveArgs>;
1487
+ /** Gets the decoder for {@link BondingCurve} account data. */
1488
+ declare function getBondingCurveDecoder(): FixedSizeDecoder<BondingCurve>;
1489
+ /** Gets the codec for {@link BondingCurve} account data. */
1490
+ declare function getBondingCurveCodec(): FixedSizeCodec<BondingCurveArgs, BondingCurve>;
1491
+ declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<BondingCurve, TAddress>;
1492
+ declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<BondingCurve, TAddress>;
1493
+ declare function fetchBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<BondingCurve, TAddress>>;
1494
+ declare function fetchMaybeBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<BondingCurve, TAddress>>;
1495
+ declare function fetchAllBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<BondingCurve>[]>;
1496
+ declare function fetchAllMaybeBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<BondingCurve>[]>;
1497
+ declare function getBondingCurveSize(): number;
1498
+ //#endregion
1499
+ //#region src/launchpad/generated/accounts/globalConfig.d.ts
1500
+ declare const GLOBAL_CONFIG_DISCRIMINATOR$1: ReadonlyUint8Array;
1501
+ declare function getGlobalConfigDiscriminatorBytes$1(): ReadonlyUint8Array;
1502
+ type GlobalConfig$1 = {
1503
+ discriminator: ReadonlyUint8Array;
1504
+ version: number;
1505
+ bump: number;
1506
+ authority: Address;
1507
+ operator: Address;
1508
+ createTokenDisabled: boolean;
1509
+ normalizedSolPriceCents: bigint;
1510
+ initialBaseSupply: bigint;
1511
+ initialVirtualBaseReserves: bigint;
1512
+ initialRealBaseReserves: bigint;
1513
+ initialVirtualQuoteReserves: bigint;
1514
+ reserved: ReadonlyUint8Array;
1515
+ };
1516
+ type GlobalConfigArgs$1 = {
1517
+ version: number;
1518
+ bump: number;
1519
+ authority: Address;
1520
+ operator: Address;
1521
+ createTokenDisabled: boolean;
1522
+ normalizedSolPriceCents: number | bigint;
1523
+ initialBaseSupply: number | bigint;
1524
+ initialVirtualBaseReserves: number | bigint;
1525
+ initialRealBaseReserves: number | bigint;
1526
+ initialVirtualQuoteReserves: number | bigint;
1527
+ reserved: ReadonlyUint8Array;
1528
+ };
1529
+ /** Gets the encoder for {@link GlobalConfigArgs} account data. */
1530
+ declare function getGlobalConfigEncoder$1(): FixedSizeEncoder<GlobalConfigArgs$1>;
1531
+ /** Gets the decoder for {@link GlobalConfig} account data. */
1532
+ declare function getGlobalConfigDecoder$1(): FixedSizeDecoder<GlobalConfig$1>;
1533
+ /** Gets the codec for {@link GlobalConfig} account data. */
1534
+ declare function getGlobalConfigCodec$1(): FixedSizeCodec<GlobalConfigArgs$1, GlobalConfig$1>;
1535
+ declare function decodeGlobalConfig$1<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<GlobalConfig$1, TAddress>;
1536
+ declare function decodeGlobalConfig$1<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<GlobalConfig$1, TAddress>;
1537
+ declare function fetchGlobalConfig$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<GlobalConfig$1, TAddress>>;
1538
+ declare function fetchMaybeGlobalConfig$1<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<GlobalConfig$1, TAddress>>;
1539
+ declare function fetchAllGlobalConfig$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<GlobalConfig$1>[]>;
1540
+ declare function fetchAllMaybeGlobalConfig$1(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<GlobalConfig$1>[]>;
1541
+ declare function getGlobalConfigSize(): number;
1542
+ //#endregion
1543
+ //#region src/launchpad/generated/accounts/rewardAccrual.d.ts
1544
+ declare const REWARD_ACCRUAL_DISCRIMINATOR: ReadonlyUint8Array;
1545
+ declare function getRewardAccrualDiscriminatorBytes(): ReadonlyUint8Array;
1546
+ type RewardAccrual = {
1547
+ discriminator: ReadonlyUint8Array;
1548
+ version: number;
1549
+ bump: number;
1550
+ quoteMint: Address;
1551
+ accPerToken: bigint;
1552
+ totalDeposited: bigint;
1553
+ reserved: ReadonlyUint8Array;
1554
+ };
1555
+ type RewardAccrualArgs = {
1556
+ version: number;
1557
+ bump: number;
1558
+ quoteMint: Address;
1559
+ accPerToken: number | bigint;
1560
+ totalDeposited: number | bigint;
1561
+ reserved: ReadonlyUint8Array;
1562
+ };
1563
+ /** Gets the encoder for {@link RewardAccrualArgs} account data. */
1564
+ declare function getRewardAccrualEncoder(): FixedSizeEncoder<RewardAccrualArgs>;
1565
+ /** Gets the decoder for {@link RewardAccrual} account data. */
1566
+ declare function getRewardAccrualDecoder(): FixedSizeDecoder<RewardAccrual>;
1567
+ /** Gets the codec for {@link RewardAccrual} account data. */
1568
+ declare function getRewardAccrualCodec(): FixedSizeCodec<RewardAccrualArgs, RewardAccrual>;
1569
+ declare function decodeRewardAccrual<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<RewardAccrual, TAddress>;
1570
+ declare function decodeRewardAccrual<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<RewardAccrual, TAddress>;
1571
+ declare function fetchRewardAccrual<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<RewardAccrual, TAddress>>;
1572
+ declare function fetchMaybeRewardAccrual<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<RewardAccrual, TAddress>>;
1573
+ declare function fetchAllRewardAccrual(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<RewardAccrual>[]>;
1574
+ declare function fetchAllMaybeRewardAccrual(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<RewardAccrual>[]>;
1575
+ declare function getRewardAccrualSize(): number;
1576
+ //#endregion
1577
+ //#region src/launchpad/generated/accounts/sendLaunchpad.accounts.d.ts
1578
+ /** Account kinds of the sendLaunchpad program. */
1579
+ type SendLaunchpadAccountType = "bondingCurve" | "globalConfig" | "rewardAccrual";
1580
+ /**
1581
+ * Identifies sendLaunchpad account data by its discriminators.
1582
+ * Returns `null` when the account belongs to another program or the data matches no known account.
1583
+ */
1584
+ declare function identifySendLaunchpadAccount(account: {
1585
+ data: ReadonlyUint8Array;
1586
+ programAddress: Address;
1587
+ } | ReadonlyUint8Array): SendLaunchpadAccountType | null;
1588
+ declare namespace index_d_exports$17 {
1589
+ export { BONDING_CURVE_DISCRIMINATOR, BondingCurve, BondingCurveArgs, GLOBAL_CONFIG_DISCRIMINATOR$1 as GLOBAL_CONFIG_DISCRIMINATOR, GlobalConfig$1 as GlobalConfig, GlobalConfigArgs$1 as GlobalConfigArgs, REWARD_ACCRUAL_DISCRIMINATOR, RewardAccrual, RewardAccrualArgs, SendLaunchpadAccountType, decodeBondingCurve, decodeGlobalConfig$1 as decodeGlobalConfig, decodeRewardAccrual, fetchAllBondingCurve, fetchAllGlobalConfig$1 as fetchAllGlobalConfig, fetchAllMaybeBondingCurve, fetchAllMaybeGlobalConfig$1 as fetchAllMaybeGlobalConfig, fetchAllMaybeRewardAccrual, fetchAllRewardAccrual, fetchBondingCurve, fetchGlobalConfig$1 as fetchGlobalConfig, fetchMaybeBondingCurve, fetchMaybeGlobalConfig$1 as fetchMaybeGlobalConfig, fetchMaybeRewardAccrual, fetchRewardAccrual, getBondingCurveCodec, getBondingCurveDecoder, getBondingCurveDiscriminatorBytes, getBondingCurveEncoder, getBondingCurveSize, getGlobalConfigCodec$1 as getGlobalConfigCodec, getGlobalConfigDecoder$1 as getGlobalConfigDecoder, getGlobalConfigDiscriminatorBytes$1 as getGlobalConfigDiscriminatorBytes, getGlobalConfigEncoder$1 as getGlobalConfigEncoder, getGlobalConfigSize, getRewardAccrualCodec, getRewardAccrualDecoder, getRewardAccrualDiscriminatorBytes, getRewardAccrualEncoder, getRewardAccrualSize, identifySendLaunchpadAccount };
1590
+ }
1591
+ //#endregion
1592
+ //#region src/launchpad/generated/errors/sendLaunchpad.d.ts
1593
+ /** TokenCreationDisabled: Token creation is disabled */
1594
+ declare const SEND_LAUNCHPAD_ERROR__TOKEN_CREATION_DISABLED = 6e3;
1595
+ /** SlippageExceeded: Slippage tolerance exceeded */
1596
+ declare const SEND_LAUNCHPAD_ERROR__SLIPPAGE_EXCEEDED = 6001;
1597
+ /** AlreadyMigrated: Already migrated */
1598
+ declare const SEND_LAUNCHPAD_ERROR__ALREADY_MIGRATED = 6002;
1599
+ /** ThresholdNotReached: Migration threshold not reached */
1600
+ declare const SEND_LAUNCHPAD_ERROR__THRESHOLD_NOT_REACHED = 6003;
1601
+ /** ThresholdReached: Migration threshold reached - trading disabled until migration completes */
1602
+ declare const SEND_LAUNCHPAD_ERROR__THRESHOLD_REACHED = 6004;
1603
+ /** InvalidBaseMint: Invalid base mint */
1604
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_BASE_MINT = 6005;
1605
+ /** InvalidQuoteMint: Invalid quote mint */
1606
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_QUOTE_MINT = 6006;
1607
+ /** NotTradeable: Bonding curve is not tradeable */
1608
+ declare const SEND_LAUNCHPAD_ERROR__NOT_TRADEABLE = 6007;
1609
+ /** InvalidStatusTransition: Invalid status transition */
1610
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_STATUS_TRANSITION = 6008;
1611
+ /** CurveIsLive: Curve is live */
1612
+ declare const SEND_LAUNCHPAD_ERROR__CURVE_IS_LIVE = 6009;
1613
+ /** BaseMintNotFound: Base mint not found */
1614
+ declare const SEND_LAUNCHPAD_ERROR__BASE_MINT_NOT_FOUND = 6010;
1615
+ /** BlockedByHeldSupply: Blocked by held supply */
1616
+ declare const SEND_LAUNCHPAD_ERROR__BLOCKED_BY_HELD_SUPPLY = 6011;
1617
+ /** InvalidCoinCreator: Invalid coin creator */
1618
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_COIN_CREATOR = 6012;
1619
+ /** InvalidAuthority: Invalid authority */
1620
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_AUTHORITY = 6013;
1621
+ /** InsufficientBalance: Insufficient balance in source account */
1622
+ declare const SEND_LAUNCHPAD_ERROR__INSUFFICIENT_BALANCE = 6014;
1623
+ /** PoolFeesOutstanding: Pool has unclaimed protocol or creator fees */
1624
+ declare const SEND_LAUNCHPAD_ERROR__POOL_FEES_OUTSTANDING = 6015;
1625
+ /** ProgramPaused: Program is paused */
1626
+ declare const SEND_LAUNCHPAD_ERROR__PROGRAM_PAUSED = 7e3;
1627
+ /** Unauthorized: Unauthorized */
1628
+ declare const SEND_LAUNCHPAD_ERROR__UNAUTHORIZED = 7001;
1629
+ /** ArithmeticOverflow: Arithmetic overflow */
1630
+ declare const SEND_LAUNCHPAD_ERROR__ARITHMETIC_OVERFLOW = 7002;
1631
+ /** InvalidPythAccount: Invalid Pyth price account */
1632
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_PYTH_ACCOUNT = 7003;
1633
+ /** InvalidPythFeed: Invalid Pyth feed ID */
1634
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_PYTH_FEED = 7004;
1635
+ /** InvalidSlug: Invalid slug: must be non-empty, <= max_len bytes, lowercase alphanumeric or underscore */
1636
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_SLUG = 7005;
1637
+ /** TextTooLong: Text too long */
1638
+ declare const SEND_LAUNCHPAD_ERROR__TEXT_TOO_LONG = 7006;
1639
+ /** UserTokenAccountWrongProgram: User token account owned by the wrong token program */
1640
+ declare const SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM = 7007;
1641
+ /** UserTokenAccountInvalid: User token account is not an initialized token account */
1642
+ declare const SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_INVALID = 7008;
1643
+ /** UserTokenAccountWrongMint: User token account mint does not match the trade */
1644
+ declare const SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT = 7009;
1645
+ /** UserTokenAccountWrongAuthority: User token account is not owned by the trading user */
1646
+ declare const SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY = 7010;
1647
+ /** NothingToClaim: Nothing to claim */
1648
+ declare const SEND_LAUNCHPAD_ERROR__NOTHING_TO_CLAIM = 7011;
1649
+ /** InvalidCreatorId: Creator identity is not a decodable wallet address */
1650
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_CREATOR_ID = 7012;
1651
+ /** QuoteMintPriceUnset: Quote mint has no USDC price on its nexus reward state */
1652
+ declare const SEND_LAUNCHPAD_ERROR__QUOTE_MINT_PRICE_UNSET = 7013;
1653
+ /** TransferFeeNotSettleable: Token-2022 transfer fee schedule cannot settle the exact amount */
1654
+ declare const SEND_LAUNCHPAD_ERROR__TRANSFER_FEE_NOT_SETTLEABLE = 7014;
1655
+ /** InsufficientLiquidity: Insufficient liquidity */
1656
+ declare const SEND_LAUNCHPAD_ERROR__INSUFFICIENT_LIQUIDITY = 7100;
1657
+ /** InvalidAmount: Invalid amount */
1658
+ declare const SEND_LAUNCHPAD_ERROR__INVALID_AMOUNT = 7101;
1659
+ type SendLaunchpadError = typeof SEND_LAUNCHPAD_ERROR__ALREADY_MIGRATED | typeof SEND_LAUNCHPAD_ERROR__ARITHMETIC_OVERFLOW | typeof SEND_LAUNCHPAD_ERROR__BASE_MINT_NOT_FOUND | typeof SEND_LAUNCHPAD_ERROR__BLOCKED_BY_HELD_SUPPLY | typeof SEND_LAUNCHPAD_ERROR__CURVE_IS_LIVE | typeof SEND_LAUNCHPAD_ERROR__INSUFFICIENT_BALANCE | typeof SEND_LAUNCHPAD_ERROR__INSUFFICIENT_LIQUIDITY | typeof SEND_LAUNCHPAD_ERROR__INVALID_AMOUNT | typeof SEND_LAUNCHPAD_ERROR__INVALID_AUTHORITY | typeof SEND_LAUNCHPAD_ERROR__INVALID_BASE_MINT | typeof SEND_LAUNCHPAD_ERROR__INVALID_COIN_CREATOR | typeof SEND_LAUNCHPAD_ERROR__INVALID_CREATOR_ID | typeof SEND_LAUNCHPAD_ERROR__INVALID_PYTH_ACCOUNT | typeof SEND_LAUNCHPAD_ERROR__INVALID_PYTH_FEED | typeof SEND_LAUNCHPAD_ERROR__INVALID_QUOTE_MINT | typeof SEND_LAUNCHPAD_ERROR__INVALID_SLUG | typeof SEND_LAUNCHPAD_ERROR__INVALID_STATUS_TRANSITION | typeof SEND_LAUNCHPAD_ERROR__NOTHING_TO_CLAIM | typeof SEND_LAUNCHPAD_ERROR__NOT_TRADEABLE | typeof SEND_LAUNCHPAD_ERROR__POOL_FEES_OUTSTANDING | typeof SEND_LAUNCHPAD_ERROR__PROGRAM_PAUSED | typeof SEND_LAUNCHPAD_ERROR__QUOTE_MINT_PRICE_UNSET | typeof SEND_LAUNCHPAD_ERROR__SLIPPAGE_EXCEEDED | typeof SEND_LAUNCHPAD_ERROR__TEXT_TOO_LONG | typeof SEND_LAUNCHPAD_ERROR__THRESHOLD_NOT_REACHED | typeof SEND_LAUNCHPAD_ERROR__THRESHOLD_REACHED | typeof SEND_LAUNCHPAD_ERROR__TOKEN_CREATION_DISABLED | typeof SEND_LAUNCHPAD_ERROR__TRANSFER_FEE_NOT_SETTLEABLE | typeof SEND_LAUNCHPAD_ERROR__UNAUTHORIZED | typeof SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_INVALID | typeof SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY | typeof SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT | typeof SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM;
1660
+ declare const sendLaunchpadErrorMessages: Record<SendLaunchpadError, string>;
1661
+ declare function getSendLaunchpadErrorMessage(code: SendLaunchpadError): string;
1662
+ declare function isSendLaunchpadError<TProgramErrorCode extends SendLaunchpadError>(error: unknown, transactionMessage: {
1663
+ instructions: Record<number, {
1664
+ programAddress: Address;
1665
+ }>;
1666
+ }, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
1667
+ context: Readonly<{
1668
+ code: TProgramErrorCode;
1669
+ }>;
1670
+ }>;
1671
+ declare namespace index_d_exports$16 {
1672
+ export { SEND_LAUNCHPAD_ERROR__ALREADY_MIGRATED, SEND_LAUNCHPAD_ERROR__ARITHMETIC_OVERFLOW, SEND_LAUNCHPAD_ERROR__BASE_MINT_NOT_FOUND, SEND_LAUNCHPAD_ERROR__BLOCKED_BY_HELD_SUPPLY, SEND_LAUNCHPAD_ERROR__CURVE_IS_LIVE, SEND_LAUNCHPAD_ERROR__INSUFFICIENT_BALANCE, SEND_LAUNCHPAD_ERROR__INSUFFICIENT_LIQUIDITY, SEND_LAUNCHPAD_ERROR__INVALID_AMOUNT, SEND_LAUNCHPAD_ERROR__INVALID_AUTHORITY, SEND_LAUNCHPAD_ERROR__INVALID_BASE_MINT, SEND_LAUNCHPAD_ERROR__INVALID_COIN_CREATOR, SEND_LAUNCHPAD_ERROR__INVALID_CREATOR_ID, SEND_LAUNCHPAD_ERROR__INVALID_PYTH_ACCOUNT, SEND_LAUNCHPAD_ERROR__INVALID_PYTH_FEED, SEND_LAUNCHPAD_ERROR__INVALID_QUOTE_MINT, SEND_LAUNCHPAD_ERROR__INVALID_SLUG, SEND_LAUNCHPAD_ERROR__INVALID_STATUS_TRANSITION, SEND_LAUNCHPAD_ERROR__NOTHING_TO_CLAIM, SEND_LAUNCHPAD_ERROR__NOT_TRADEABLE, SEND_LAUNCHPAD_ERROR__POOL_FEES_OUTSTANDING, SEND_LAUNCHPAD_ERROR__PROGRAM_PAUSED, SEND_LAUNCHPAD_ERROR__QUOTE_MINT_PRICE_UNSET, SEND_LAUNCHPAD_ERROR__SLIPPAGE_EXCEEDED, SEND_LAUNCHPAD_ERROR__TEXT_TOO_LONG, SEND_LAUNCHPAD_ERROR__THRESHOLD_NOT_REACHED, SEND_LAUNCHPAD_ERROR__THRESHOLD_REACHED, SEND_LAUNCHPAD_ERROR__TOKEN_CREATION_DISABLED, SEND_LAUNCHPAD_ERROR__TRANSFER_FEE_NOT_SETTLEABLE, SEND_LAUNCHPAD_ERROR__UNAUTHORIZED, SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_INVALID, SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY, SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT, SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM, SendLaunchpadError, getSendLaunchpadErrorMessage, isSendLaunchpadError, sendLaunchpadErrorMessages };
1673
+ }
1674
+ //#endregion
1675
+ //#region src/launchpad/generated/pdas/bondingCurve.d.ts
1676
+ type BondingCurveSeeds = {
1677
+ baseMint: Address;
1678
+ quoteMint: Address;
1679
+ };
1680
+ declare function findBondingCurvePda(seeds: BondingCurveSeeds): Promise<ProgramDerivedAddress>;
1681
+ //#endregion
1682
+ //#region src/launchpad/generated/pdas/eventAuthority.d.ts
1683
+ declare const EVENT_AUTHORITY_PDA_ADDRESS$1: Address<"FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T">;
1684
+ declare function findEventAuthorityPda$1(): ProgramDerivedAddress;
1685
+ //#endregion
1686
+ //#region src/launchpad/generated/pdas/globalConfig.d.ts
1687
+ declare const GLOBAL_CONFIG_PDA_ADDRESS$1: Address<"H3csa1cgR7zPJdxCzNbS5chYymHMKS3XivDA5nRx4Bdq">;
1688
+ declare function findGlobalConfigPda$1(): ProgramDerivedAddress;
1689
+ //#endregion
1690
+ //#region src/launchpad/generated/pdas/migrationAuthority.d.ts
1691
+ declare const MIGRATION_AUTHORITY_PDA_ADDRESS: Address<"932vp5VTARoqoAKNgLSawfCsAx43jUJ5YURggmXBX6V">;
1692
+ declare function findMigrationAuthorityPda(): ProgramDerivedAddress;
1693
+ //#endregion
1694
+ //#region src/launchpad/generated/pdas/rewardAccrual.d.ts
1695
+ type RewardAccrualSeeds = {
1696
+ quoteMint: Address;
1697
+ };
1698
+ declare function findRewardAccrualPda(seeds: RewardAccrualSeeds): Promise<ProgramDerivedAddress>;
1699
+ //#endregion
1700
+ //#region src/launchpad/generated/pdas/wsolRewardAccrual.d.ts
1701
+ declare const WSOL_REWARD_ACCRUAL_PDA_ADDRESS: Address<"91AVurtPdUC2yG3joLoujzC216KAfH5HEKnZEELFMmVH">;
1702
+ declare function findWsolRewardAccrualPda(): ProgramDerivedAddress;
1703
+ declare namespace index_d_exports$15 {
1704
+ export { BondingCurveSeeds, EVENT_AUTHORITY_PDA_ADDRESS$1 as EVENT_AUTHORITY_PDA_ADDRESS, GLOBAL_CONFIG_PDA_ADDRESS$1 as GLOBAL_CONFIG_PDA_ADDRESS, MIGRATION_AUTHORITY_PDA_ADDRESS, RewardAccrualSeeds, WSOL_REWARD_ACCRUAL_PDA_ADDRESS, findBondingCurvePda, findEventAuthorityPda$1 as findEventAuthorityPda, findGlobalConfigPda$1 as findGlobalConfigPda, findMigrationAuthorityPda, findRewardAccrualPda, findWsolRewardAccrualPda };
1705
+ }
1706
+ declare namespace create_d_exports {
1707
+ export { CreateAndBuyParams, CreateTokenParams, buildCreateAndBuyInstructions, buildCreateTokenInstruction };
1708
+ }
1709
+ interface CreateTokenParams {
1710
+ user: TransactionSigner;
1711
+ payer?: TransactionSigner;
1712
+ coinCreator: Address;
1713
+ baseMint: TransactionSigner;
1714
+ quoteMint: Address;
1715
+ name: string;
1716
+ symbol: string;
1717
+ uri: string;
1718
+ /** An enabled nexus auth platform (e.g. "wallet"), max 32 bytes; hashed with
1719
+ * `creatorId` into the creator fee identity. Unrelated to `platformConfig`. */
1720
+ creatorPlatform: string;
1721
+ creatorId: string;
1722
+ partner: PartnerInput;
1723
+ platformConfig: Address;
1724
+ quoteTokenProgram: Address;
1725
+ }
1726
+ interface CreateAndBuyParams extends CreateTokenParams {
1727
+ buyQuoteAmount: bigint;
1728
+ feeBps: number;
1729
+ slippageBps: number;
1730
+ initialVirtualQuoteReserves: bigint;
1731
+ initialVirtualBaseReserves: bigint;
1732
+ /** `globalConfig.initialRealBaseReserves`: caps the appended buy. */
1733
+ initialRealBaseReserves: bigint;
1734
+ /** Quote mint's Token-2022 schedule for the launch epoch; without it `minAmountOut`
1735
+ * ignores the mint's cut, and a cut above `slippageBps` can revert the buy. No
1736
+ * `baseFee`: this transaction creates the base mint without the extension. */
1737
+ quoteFee?: MintFee;
1738
+ }
1739
+ declare function buildCreateTokenInstruction(params: CreateTokenParams): Promise<Instruction>;
1740
+ declare function buildCreateAndBuyInstructions(params: CreateAndBuyParams): Promise<{
1741
+ instructions: Instruction[];
1742
+ quote?: TradeQuote;
1743
+ }>;
1744
+ //#endregion
1745
+ //#region src/launchpad/generated/events/anchorEventCpiDiscriminator.framing.d.ts
1746
+ /**
1747
+ * Shared event-framing tag prepended to every CPI-framed event.
1748
+ *
1749
+ * `containsBytes(data, ANCHOR_EVENT_CPI_DISCRIMINATOR, 0)` checks whether data is a framed event
1750
+ * at all — including event kinds unknown to this program.
1751
+ */
1752
+ declare const ANCHOR_EVENT_CPI_DISCRIMINATOR$1: ReadonlyUint8Array;
1753
+ declare function getAnchorEventCpiDiscriminatorBytes$1(): ReadonlyUint8Array;
1754
+ //#endregion
1755
+ //#region src/launchpad/generated/events/completeEvent.d.ts
1756
+ declare const COMPLETE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
1757
+ declare function getCompleteEventDiscriminatorBytes(): ReadonlyUint8Array;
1758
+ type CompleteEvent = {
1759
+ bondingCurve: Address;
1760
+ baseMint: Address;
1761
+ quoteMint: Address;
1762
+ coinCreator: Address;
1763
+ creatorFeeConfig: Address;
1764
+ platformConfig: Address;
1765
+ curvePartner: Address;
1766
+ isPartner: boolean;
1767
+ realQuoteReserves: bigint;
1768
+ timestamp: bigint;
1769
+ };
1770
+ declare function getCompleteEventDecoder(): FixedSizeDecoder<CompleteEvent>;
1771
+ /**
1772
+ * Checks whether the event data matches the framing and discriminator bytes of a
1773
+ * {@link CompleteEvent}, without decoding. Never throws.
1774
+ *
1775
+ * Returns `false` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1776
+ * Raw bytes carry no emitter and SKIP that check.
1777
+ *
1778
+ * @see parseCompleteEvent to decode the matching data
1779
+ */
1780
+ declare function isCompleteEvent(event: {
1781
+ data: ReadonlyUint8Array;
1782
+ programAddress: Address;
1783
+ } | ReadonlyUint8Array): boolean;
1784
+ /**
1785
+ * Parses raw event data as a {@link CompleteEvent}. Returns `null` on framing or discriminator
1786
+ * mismatch; throws if the event matches but its body fails to decode.
1787
+ *
1788
+ * Returns `null` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1789
+ * Raw bytes carry no emitter and SKIP that check.
1790
+ *
1791
+ * @see isCompleteEvent to check without decoding
1792
+ * @see identifySendLaunchpadEvent to identify any program event
1793
+ * @see parseSendLaunchpadEvent
1794
+ */
1795
+ declare function parseCompleteEvent(event: {
1796
+ data: ReadonlyUint8Array;
1797
+ programAddress: Address;
1798
+ } | ReadonlyUint8Array): CompleteEvent | null;
1799
+ //#endregion
1800
+ //#region src/launchpad/generated/events/creatorClaimEvent.d.ts
1801
+ declare const CREATOR_CLAIM_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
1802
+ declare function getCreatorClaimEventDiscriminatorBytes(): ReadonlyUint8Array;
1803
+ type CreatorClaimEvent = {
1804
+ bondingCurve: Address;
1805
+ baseMint: Address;
1806
+ quoteMint: Address;
1807
+ platformConfig: Address;
1808
+ coinCreator: Address;
1809
+ creatorFeeConfig: Address;
1810
+ claimer: Address;
1811
+ destinationOwner: Address;
1812
+ amount: bigint;
1813
+ quoteTransferFee: bigint;
1814
+ timestamp: bigint;
1815
+ };
1816
+ declare function getCreatorClaimEventDecoder(): FixedSizeDecoder<CreatorClaimEvent>;
1817
+ /**
1818
+ * Checks whether the event data matches the framing and discriminator bytes of a
1819
+ * {@link CreatorClaimEvent}, without decoding. Never throws.
1820
+ *
1821
+ * Returns `false` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1822
+ * Raw bytes carry no emitter and SKIP that check.
1823
+ *
1824
+ * @see parseCreatorClaimEvent to decode the matching data
1825
+ */
1826
+ declare function isCreatorClaimEvent(event: {
1827
+ data: ReadonlyUint8Array;
1828
+ programAddress: Address;
1829
+ } | ReadonlyUint8Array): boolean;
1830
+ /**
1831
+ * Parses raw event data as a {@link CreatorClaimEvent}. Returns `null` on framing or discriminator
1832
+ * mismatch; throws if the event matches but its body fails to decode.
1833
+ *
1834
+ * Returns `null` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1835
+ * Raw bytes carry no emitter and SKIP that check.
1836
+ *
1837
+ * @see isCreatorClaimEvent to check without decoding
1838
+ * @see identifySendLaunchpadEvent to identify any program event
1839
+ * @see parseSendLaunchpadEvent
1840
+ */
1841
+ declare function parseCreatorClaimEvent(event: {
1842
+ data: ReadonlyUint8Array;
1843
+ programAddress: Address;
1844
+ } | ReadonlyUint8Array): CreatorClaimEvent | null;
1845
+ //#endregion
1846
+ //#region src/launchpad/generated/events/migrateEvent.d.ts
1847
+ declare const MIGRATE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
1848
+ declare function getMigrateEventDiscriminatorBytes(): ReadonlyUint8Array;
1849
+ type MigrateEvent = {
1850
+ bondingCurve: Address;
1851
+ baseMint: Address;
1852
+ quoteMint: Address;
1853
+ pool: Address;
1854
+ coinCreator: Address;
1855
+ creatorFeeConfig: Address;
1856
+ platformConfig: Address;
1857
+ baseAmount: bigint;
1858
+ quoteAmount: bigint;
1859
+ realQuoteReserves: bigint;
1860
+ timestamp: bigint;
1861
+ };
1862
+ declare function getMigrateEventDecoder(): FixedSizeDecoder<MigrateEvent>;
1863
+ /**
1864
+ * Checks whether the event data matches the framing and discriminator bytes of a
1865
+ * {@link MigrateEvent}, without decoding. Never throws.
1866
+ *
1867
+ * Returns `false` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1868
+ * Raw bytes carry no emitter and SKIP that check.
1869
+ *
1870
+ * @see parseMigrateEvent to decode the matching data
1871
+ */
1872
+ declare function isMigrateEvent(event: {
1873
+ data: ReadonlyUint8Array;
1874
+ programAddress: Address;
1875
+ } | ReadonlyUint8Array): boolean;
1876
+ /**
1877
+ * Parses raw event data as a {@link MigrateEvent}. Returns `null` on framing or discriminator
1878
+ * mismatch; throws if the event matches but its body fails to decode.
1879
+ *
1880
+ * Returns `null` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1881
+ * Raw bytes carry no emitter and SKIP that check.
1882
+ *
1883
+ * @see isMigrateEvent to check without decoding
1884
+ * @see identifySendLaunchpadEvent to identify any program event
1885
+ * @see parseSendLaunchpadEvent
1886
+ */
1887
+ declare function parseMigrateEvent(event: {
1888
+ data: ReadonlyUint8Array;
1889
+ programAddress: Address;
1890
+ } | ReadonlyUint8Array): MigrateEvent | null;
1891
+ //#endregion
1892
+ //#region src/launchpad/generated/events/protocolClaimEvent.d.ts
1893
+ declare const PROTOCOL_CLAIM_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
1894
+ declare function getProtocolClaimEventDiscriminatorBytes(): ReadonlyUint8Array;
1895
+ type ProtocolClaimEvent = {
1896
+ bondingCurve: Address;
1897
+ baseMint: Address;
1898
+ quoteMint: Address;
1899
+ platformConfig: Address;
1900
+ amount: bigint;
1901
+ quoteTransferFee: bigint;
1902
+ timestamp: bigint;
1903
+ };
1904
+ declare function getProtocolClaimEventDecoder(): FixedSizeDecoder<ProtocolClaimEvent>;
1905
+ /**
1906
+ * Checks whether the event data matches the framing and discriminator bytes of a
1907
+ * {@link ProtocolClaimEvent}, without decoding. Never throws.
1908
+ *
1909
+ * Returns `false` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1910
+ * Raw bytes carry no emitter and SKIP that check.
1911
+ *
1912
+ * @see parseProtocolClaimEvent to decode the matching data
1913
+ */
1914
+ declare function isProtocolClaimEvent(event: {
1915
+ data: ReadonlyUint8Array;
1916
+ programAddress: Address;
1917
+ } | ReadonlyUint8Array): boolean;
1918
+ /**
1919
+ * Parses raw event data as a {@link ProtocolClaimEvent}. Returns `null` on framing or discriminator
1920
+ * mismatch; throws if the event matches but its body fails to decode.
1921
+ *
1922
+ * Returns `null` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1923
+ * Raw bytes carry no emitter and SKIP that check.
1924
+ *
1925
+ * @see isProtocolClaimEvent to check without decoding
1926
+ * @see identifySendLaunchpadEvent to identify any program event
1927
+ * @see parseSendLaunchpadEvent
1928
+ */
1929
+ declare function parseProtocolClaimEvent(event: {
1930
+ data: ReadonlyUint8Array;
1931
+ programAddress: Address;
1932
+ } | ReadonlyUint8Array): ProtocolClaimEvent | null;
1933
+ //#endregion
1934
+ //#region src/launchpad/generated/events/recycleEvent.d.ts
1935
+ declare const RECYCLE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
1936
+ declare function getRecycleEventDiscriminatorBytes(): ReadonlyUint8Array;
1937
+ type RecycleEvent = {
1938
+ bondingCurve: Address;
1939
+ baseMint: Address;
1940
+ quoteMint: Address;
1941
+ platformConfig: Address;
1942
+ quoteRecycled: bigint;
1943
+ rentRecycled: bigint;
1944
+ timestamp: bigint;
1945
+ };
1946
+ declare function getRecycleEventDecoder(): FixedSizeDecoder<RecycleEvent>;
1947
+ /**
1948
+ * Checks whether the event data matches the framing and discriminator bytes of a
1949
+ * {@link RecycleEvent}, without decoding. Never throws.
1950
+ *
1951
+ * Returns `false` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1952
+ * Raw bytes carry no emitter and SKIP that check.
1953
+ *
1954
+ * @see parseRecycleEvent to decode the matching data
1955
+ */
1956
+ declare function isRecycleEvent(event: {
1957
+ data: ReadonlyUint8Array;
1958
+ programAddress: Address;
1959
+ } | ReadonlyUint8Array): boolean;
1960
+ /**
1961
+ * Parses raw event data as a {@link RecycleEvent}. Returns `null` on framing or discriminator
1962
+ * mismatch; throws if the event matches but its body fails to decode.
1963
+ *
1964
+ * Returns `null` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
1965
+ * Raw bytes carry no emitter and SKIP that check.
1966
+ *
1967
+ * @see isRecycleEvent to check without decoding
1968
+ * @see identifySendLaunchpadEvent to identify any program event
1969
+ * @see parseSendLaunchpadEvent
1970
+ */
1971
+ declare function parseRecycleEvent(event: {
1972
+ data: ReadonlyUint8Array;
1973
+ programAddress: Address;
1974
+ } | ReadonlyUint8Array): RecycleEvent | null;
1975
+ //#endregion
1976
+ //#region src/launchpad/generated/events/tokenCreateEvent.d.ts
1977
+ declare const TOKEN_CREATE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
1978
+ declare function getTokenCreateEventDiscriminatorBytes(): ReadonlyUint8Array;
1979
+ type TokenCreateEvent = {
1980
+ bondingCurve: Address;
1981
+ baseMint: Address;
1982
+ baseDecimals: number;
1983
+ baseSupply: bigint;
1984
+ initialVirtualBase: bigint;
1985
+ initialVirtualQuote: bigint;
1986
+ initialRealBase: bigint;
1987
+ quoteMint: Address;
1988
+ quoteDecimals: number;
1989
+ coinCreator: Address;
1990
+ creatorPlatform: string;
1991
+ creatorId: string;
1992
+ creatorFeeConfig: Address;
1993
+ platformConfig: Address;
1994
+ name: string;
1995
+ symbol: string;
1996
+ uri: string;
1997
+ partner: Address;
1998
+ isPartner: boolean;
1999
+ creationFee: bigint;
2000
+ virtualBaseReserves: bigint;
2001
+ virtualQuoteReserves: bigint;
2002
+ realBaseReserves: bigint;
2003
+ realQuoteReserves: bigint;
2004
+ timestamp: bigint;
2005
+ };
2006
+ declare function getTokenCreateEventDecoder(): Decoder<TokenCreateEvent>;
2007
+ /**
2008
+ * Checks whether the event data matches the framing and discriminator bytes of a
2009
+ * {@link TokenCreateEvent}, without decoding. Never throws.
2010
+ *
2011
+ * Returns `false` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
2012
+ * Raw bytes carry no emitter and SKIP that check.
2013
+ *
2014
+ * @see parseTokenCreateEvent to decode the matching data
2015
+ */
2016
+ declare function isTokenCreateEvent(event: {
2017
+ data: ReadonlyUint8Array;
2018
+ programAddress: Address;
2019
+ } | ReadonlyUint8Array): boolean;
2020
+ /**
2021
+ * Parses raw event data as a {@link TokenCreateEvent}. Returns `null` on framing or discriminator
2022
+ * mismatch; throws if the event matches but its body fails to decode.
2023
+ *
2024
+ * Returns `null` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
2025
+ * Raw bytes carry no emitter and SKIP that check.
2026
+ *
2027
+ * @see isTokenCreateEvent to check without decoding
2028
+ * @see identifySendLaunchpadEvent to identify any program event
2029
+ * @see parseSendLaunchpadEvent
2030
+ */
2031
+ declare function parseTokenCreateEvent(event: {
2032
+ data: ReadonlyUint8Array;
2033
+ programAddress: Address;
2034
+ } | ReadonlyUint8Array): TokenCreateEvent | null;
2035
+ //#endregion
2036
+ //#region src/launchpad/generated/events/tradeEvent.d.ts
2037
+ declare const TRADE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
2038
+ declare function getTradeEventDiscriminatorBytes(): ReadonlyUint8Array;
2039
+ type TradeEvent = {
2040
+ bondingCurve: Address;
2041
+ baseMint: Address;
2042
+ quoteMint: Address;
2043
+ user: Address;
2044
+ coinCreator: Address;
2045
+ creatorFeeConfig: Address;
2046
+ platformConfig: Address;
2047
+ baseAmount: bigint;
2048
+ quoteAmountGross: bigint;
2049
+ quoteAmountNet: bigint;
2050
+ tradeDirection: TradeDirection;
2051
+ partner: Address;
2052
+ isPartner: boolean;
2053
+ protocolFee: bigint;
2054
+ creatorFee: bigint;
2055
+ baseTransferFee: bigint;
2056
+ quoteTransferFee: bigint;
2057
+ virtualBaseReserves: bigint;
2058
+ virtualQuoteReserves: bigint;
2059
+ realBaseReserves: bigint;
2060
+ realQuoteReserves: bigint;
2061
+ timestamp: bigint;
2062
+ };
2063
+ declare function getTradeEventDecoder(): FixedSizeDecoder<TradeEvent>;
2064
+ /**
2065
+ * Checks whether the event data matches the framing and discriminator bytes of a
2066
+ * {@link TradeEvent}, without decoding. Never throws.
2067
+ *
2068
+ * Returns `false` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
2069
+ * Raw bytes carry no emitter and SKIP that check.
2070
+ *
2071
+ * @see parseTradeEvent to decode the matching data
2072
+ */
2073
+ declare function isTradeEvent(event: {
2074
+ data: ReadonlyUint8Array;
2075
+ programAddress: Address;
2076
+ } | ReadonlyUint8Array): boolean;
2077
+ /**
2078
+ * Parses raw event data as a {@link TradeEvent}. Returns `null` on framing or discriminator
2079
+ * mismatch; throws if the event matches but its body fails to decode.
2080
+ *
2081
+ * Returns `null` unless `event.programAddress` is SEND_LAUNCHPAD_PROGRAM_ADDRESS.
2082
+ * Raw bytes carry no emitter and SKIP that check.
2083
+ *
2084
+ * @see isTradeEvent to check without decoding
2085
+ * @see identifySendLaunchpadEvent to identify any program event
2086
+ * @see parseSendLaunchpadEvent
2087
+ */
2088
+ declare function parseTradeEvent(event: {
2089
+ data: ReadonlyUint8Array;
2090
+ programAddress: Address;
2091
+ } | ReadonlyUint8Array): TradeEvent | null;
2092
+ //#endregion
2093
+ //#region src/launchpad/generated/events/sendLaunchpad.events.d.ts
2094
+ /** Event kinds of the sendLaunchpad program. */
2095
+ type SendLaunchpadEventType = "completeEvent" | "creatorClaimEvent" | "migrateEvent" | "protocolClaimEvent" | "recycleEvent" | "tokenCreateEvent" | "tradeEvent";
2096
+ /**
2097
+ * Identifies sendLaunchpad event data by its discriminators, without decoding.
2098
+ * Returns `null` when the event was emitted by another program or no known event matches.
2099
+ * Never throws.
2100
+ *
2101
+ * Raw bytes carry no emitter and SKIP the program check.
2102
+ */
2103
+ declare function identifySendLaunchpadEvent(event: {
2104
+ data: ReadonlyUint8Array;
2105
+ programAddress: Address;
2106
+ } | ReadonlyUint8Array): SendLaunchpadEventType | null;
2107
+ /** Parsed sendLaunchpad event: the event kind tag plus its decoded payload. */
2108
+ type ParsedSendLaunchpadEvent = {
2109
+ eventType: "completeEvent";
2110
+ data: CompleteEvent;
2111
+ } | {
2112
+ eventType: "creatorClaimEvent";
2113
+ data: CreatorClaimEvent;
2114
+ } | {
2115
+ eventType: "migrateEvent";
2116
+ data: MigrateEvent;
2117
+ } | {
2118
+ eventType: "protocolClaimEvent";
2119
+ data: ProtocolClaimEvent;
2120
+ } | {
2121
+ eventType: "recycleEvent";
2122
+ data: RecycleEvent;
2123
+ } | {
2124
+ eventType: "tokenCreateEvent";
2125
+ data: TokenCreateEvent;
2126
+ } | {
2127
+ eventType: "tradeEvent";
2128
+ data: TradeEvent;
2129
+ };
2130
+ /**
2131
+ * Parses sendLaunchpad event data into its event kind and decoded payload.
2132
+ * Returns `null` when the event was emitted by another program or no known event matches;
2133
+ * throws if a matched event fails to decode.
2134
+ *
2135
+ * Raw bytes carry no emitter and SKIP the program check.
2136
+ */
2137
+ declare function parseSendLaunchpadEvent(event: {
2138
+ data: ReadonlyUint8Array;
2139
+ programAddress: Address;
2140
+ } | ReadonlyUint8Array): ParsedSendLaunchpadEvent | null;
2141
+ declare namespace index_d_exports$14 {
2142
+ export { ANCHOR_EVENT_CPI_DISCRIMINATOR$1 as ANCHOR_EVENT_CPI_DISCRIMINATOR, COMPLETE_EVENT_DISCRIMINATOR, CREATOR_CLAIM_EVENT_DISCRIMINATOR, CompleteEvent, CreatorClaimEvent, MIGRATE_EVENT_DISCRIMINATOR, MigrateEvent, PROTOCOL_CLAIM_EVENT_DISCRIMINATOR, ParsedSendLaunchpadEvent, ProtocolClaimEvent, RECYCLE_EVENT_DISCRIMINATOR, RecycleEvent, SendLaunchpadEventType, TOKEN_CREATE_EVENT_DISCRIMINATOR, TRADE_EVENT_DISCRIMINATOR, TokenCreateEvent, TradeEvent, getAnchorEventCpiDiscriminatorBytes$1 as getAnchorEventCpiDiscriminatorBytes, getCompleteEventDecoder, getCompleteEventDiscriminatorBytes, getCreatorClaimEventDecoder, getCreatorClaimEventDiscriminatorBytes, getMigrateEventDecoder, getMigrateEventDiscriminatorBytes, getProtocolClaimEventDecoder, getProtocolClaimEventDiscriminatorBytes, getRecycleEventDecoder, getRecycleEventDiscriminatorBytes, getTokenCreateEventDecoder, getTokenCreateEventDiscriminatorBytes, getTradeEventDecoder, getTradeEventDiscriminatorBytes, identifySendLaunchpadEvent, isCompleteEvent, isCreatorClaimEvent, isMigrateEvent, isProtocolClaimEvent, isRecycleEvent, isTokenCreateEvent, isTradeEvent, parseCompleteEvent, parseCreatorClaimEvent, parseMigrateEvent, parseProtocolClaimEvent, parseRecycleEvent, parseSendLaunchpadEvent, parseTokenCreateEvent, parseTradeEvent };
2143
+ }
2144
+ //#endregion
2145
+ //#region src/launchpad/generated/instructions/buyExactIn.d.ts
2146
+ declare const BUY_EXACT_IN_DISCRIMINATOR: ReadonlyUint8Array;
2147
+ declare function getBuyExactInDiscriminatorBytes(): ReadonlyUint8Array;
2148
+ type BuyExactInInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2149
+ type BuyExactInInstructionData = {
2150
+ discriminator: ReadonlyUint8Array;
2151
+ amountIn: bigint;
2152
+ minAmountOut: bigint;
2153
+ };
2154
+ type BuyExactInInstructionDataArgs = {
2155
+ amountIn: number | bigint;
2156
+ minAmountOut: number | bigint;
2157
+ };
2158
+ declare function getBuyExactInInstructionDataEncoder(): FixedSizeEncoder<BuyExactInInstructionDataArgs>;
2159
+ declare function getBuyExactInInstructionDataDecoder(): FixedSizeDecoder<BuyExactInInstructionData>;
2160
+ declare function getBuyExactInInstructionDataCodec(): FixedSizeCodec<BuyExactInInstructionDataArgs, BuyExactInInstructionData>;
2161
+ type BuyExactInInstructionExtraArgs = {
2162
+ platformConfig: Address;
2163
+ };
2164
+ type BuyExactInAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2165
+ user: TransactionSigner<TAccountUser>;
2166
+ payer: TransactionSigner<TAccountPayer>;
2167
+ bondingCurve?: Address<TAccountBondingCurve>;
2168
+ baseMint: Address<TAccountBaseMint>;
2169
+ quoteMint: Address<TAccountQuoteMint>;
2170
+ baseVault?: Address<TAccountBaseVault>;
2171
+ quoteVault?: Address<TAccountQuoteVault>;
2172
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2173
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
2174
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2175
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
2176
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2177
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2178
+ partnerConfig?: Address<TAccountPartnerConfig>;
2179
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2180
+ amountIn: BuyExactInInstructionDataArgs["amountIn"];
2181
+ minAmountOut: BuyExactInInstructionDataArgs["minAmountOut"];
2182
+ platformConfig: BuyExactInInstructionExtraArgs["platformConfig"];
2183
+ };
2184
+ declare function getBuyExactInInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactInAsyncInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<BuyExactInInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2185
+ type BuyExactInInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2186
+ user: TransactionSigner<TAccountUser>;
2187
+ payer: TransactionSigner<TAccountPayer>;
2188
+ bondingCurve: Address<TAccountBondingCurve>;
2189
+ baseMint: Address<TAccountBaseMint>;
2190
+ quoteMint: Address<TAccountQuoteMint>;
2191
+ baseVault: Address<TAccountBaseVault>;
2192
+ quoteVault: Address<TAccountQuoteVault>;
2193
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2194
+ userBaseAccount: Address<TAccountUserBaseAccount>;
2195
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2196
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
2197
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2198
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2199
+ partnerConfig: Address<TAccountPartnerConfig>;
2200
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2201
+ amountIn: BuyExactInInstructionDataArgs["amountIn"];
2202
+ minAmountOut: BuyExactInInstructionDataArgs["minAmountOut"];
2203
+ platformConfig?: BuyExactInInstructionExtraArgs["platformConfig"];
2204
+ };
2205
+ declare function getBuyExactInInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactInInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): BuyExactInInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2206
+ type ParsedBuyExactInInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2207
+ programAddress: Address<TProgram>;
2208
+ accounts: {
2209
+ user: TAccountMetas[0];
2210
+ payer: TAccountMetas[1];
2211
+ bondingCurve: TAccountMetas[2];
2212
+ baseMint: TAccountMetas[3];
2213
+ quoteMint: TAccountMetas[4];
2214
+ baseVault: TAccountMetas[5];
2215
+ quoteVault: TAccountMetas[6];
2216
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2217
+ userBaseAccount: TAccountMetas[7];
2218
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2219
+ userQuoteAccount: TAccountMetas[8];
2220
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2221
+ partner: TAccountMetas[9];
2222
+ partnerConfig: TAccountMetas[10];
2223
+ baseTokenProgram: TAccountMetas[11];
2224
+ quoteTokenProgram: TAccountMetas[12];
2225
+ associatedTokenProgram: TAccountMetas[13];
2226
+ systemProgram: TAccountMetas[14];
2227
+ eventAuthority: TAccountMetas[15];
2228
+ program: TAccountMetas[16];
2229
+ };
2230
+ data: BuyExactInInstructionData;
2231
+ };
2232
+ declare function parseBuyExactInInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyExactInInstruction<TProgram, TAccountMetas>;
2233
+ //#endregion
2234
+ //#region src/launchpad/generated/instructions/buyExactOut.d.ts
2235
+ declare const BUY_EXACT_OUT_DISCRIMINATOR: ReadonlyUint8Array;
2236
+ declare function getBuyExactOutDiscriminatorBytes(): ReadonlyUint8Array;
2237
+ type BuyExactOutInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2238
+ type BuyExactOutInstructionData = {
2239
+ discriminator: ReadonlyUint8Array;
2240
+ amountOut: bigint;
2241
+ maxAmountIn: bigint;
2242
+ };
2243
+ type BuyExactOutInstructionDataArgs = {
2244
+ amountOut: number | bigint;
2245
+ maxAmountIn: number | bigint;
2246
+ };
2247
+ declare function getBuyExactOutInstructionDataEncoder(): FixedSizeEncoder<BuyExactOutInstructionDataArgs>;
2248
+ declare function getBuyExactOutInstructionDataDecoder(): FixedSizeDecoder<BuyExactOutInstructionData>;
2249
+ declare function getBuyExactOutInstructionDataCodec(): FixedSizeCodec<BuyExactOutInstructionDataArgs, BuyExactOutInstructionData>;
2250
+ type BuyExactOutInstructionExtraArgs = {
2251
+ platformConfig: Address;
2252
+ };
2253
+ type BuyExactOutAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2254
+ user: TransactionSigner<TAccountUser>;
2255
+ payer: TransactionSigner<TAccountPayer>;
2256
+ bondingCurve?: Address<TAccountBondingCurve>;
2257
+ baseMint: Address<TAccountBaseMint>;
2258
+ quoteMint: Address<TAccountQuoteMint>;
2259
+ baseVault?: Address<TAccountBaseVault>;
2260
+ quoteVault?: Address<TAccountQuoteVault>;
2261
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2262
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
2263
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2264
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
2265
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2266
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2267
+ partnerConfig?: Address<TAccountPartnerConfig>;
2268
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2269
+ amountOut: BuyExactOutInstructionDataArgs["amountOut"];
2270
+ maxAmountIn: BuyExactOutInstructionDataArgs["maxAmountIn"];
2271
+ platformConfig: BuyExactOutInstructionExtraArgs["platformConfig"];
2272
+ };
2273
+ declare function getBuyExactOutInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactOutAsyncInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<BuyExactOutInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2274
+ type BuyExactOutInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2275
+ user: TransactionSigner<TAccountUser>;
2276
+ payer: TransactionSigner<TAccountPayer>;
2277
+ bondingCurve: Address<TAccountBondingCurve>;
2278
+ baseMint: Address<TAccountBaseMint>;
2279
+ quoteMint: Address<TAccountQuoteMint>;
2280
+ baseVault: Address<TAccountBaseVault>;
2281
+ quoteVault: Address<TAccountQuoteVault>;
2282
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2283
+ userBaseAccount: Address<TAccountUserBaseAccount>;
2284
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2285
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
2286
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2287
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2288
+ partnerConfig: Address<TAccountPartnerConfig>;
2289
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2290
+ amountOut: BuyExactOutInstructionDataArgs["amountOut"];
2291
+ maxAmountIn: BuyExactOutInstructionDataArgs["maxAmountIn"];
2292
+ platformConfig?: BuyExactOutInstructionExtraArgs["platformConfig"];
2293
+ };
2294
+ declare function getBuyExactOutInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: BuyExactOutInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): BuyExactOutInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2295
+ type ParsedBuyExactOutInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2296
+ programAddress: Address<TProgram>;
2297
+ accounts: {
2298
+ user: TAccountMetas[0];
2299
+ payer: TAccountMetas[1];
2300
+ bondingCurve: TAccountMetas[2];
2301
+ baseMint: TAccountMetas[3];
2302
+ quoteMint: TAccountMetas[4];
2303
+ baseVault: TAccountMetas[5];
2304
+ quoteVault: TAccountMetas[6];
2305
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2306
+ userBaseAccount: TAccountMetas[7];
2307
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2308
+ userQuoteAccount: TAccountMetas[8];
2309
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2310
+ partner: TAccountMetas[9];
2311
+ partnerConfig: TAccountMetas[10];
2312
+ baseTokenProgram: TAccountMetas[11];
2313
+ quoteTokenProgram: TAccountMetas[12];
2314
+ associatedTokenProgram: TAccountMetas[13];
2315
+ systemProgram: TAccountMetas[14];
2316
+ eventAuthority: TAccountMetas[15];
2317
+ program: TAccountMetas[16];
2318
+ };
2319
+ data: BuyExactOutInstructionData;
2320
+ };
2321
+ declare function parseBuyExactOutInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyExactOutInstruction<TProgram, TAccountMetas>;
2322
+ //#endregion
2323
+ //#region src/launchpad/generated/instructions/claimCreatorFees.d.ts
2324
+ declare const CLAIM_CREATOR_FEES_DISCRIMINATOR: ReadonlyUint8Array;
2325
+ declare function getClaimCreatorFeesDiscriminatorBytes(): ReadonlyUint8Array;
2326
+ type ClaimCreatorFeesInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountClaimer extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountCreatorFeeConfig extends string | AccountMeta<string> = string, TAccountNexusGlobalConfig extends string | AccountMeta<string> = "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountDestinationOwner extends string | AccountMeta<string> = string, TAccountDestination extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountClaimer extends string ? ReadonlySignerAccount<TAccountClaimer> & AccountSignerMeta<TAccountClaimer> : TAccountClaimer, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountCreatorFeeConfig extends string ? ReadonlyAccount<TAccountCreatorFeeConfig> : TAccountCreatorFeeConfig, TAccountNexusGlobalConfig extends string ? ReadonlyAccount<TAccountNexusGlobalConfig> : TAccountNexusGlobalConfig, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountDestinationOwner extends string ? ReadonlyAccount<TAccountDestinationOwner> : TAccountDestinationOwner, TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2327
+ type ClaimCreatorFeesInstructionData = {
2328
+ discriminator: ReadonlyUint8Array;
2329
+ };
2330
+ type ClaimCreatorFeesInstructionDataArgs = {};
2331
+ declare function getClaimCreatorFeesInstructionDataEncoder(): FixedSizeEncoder<ClaimCreatorFeesInstructionDataArgs>;
2332
+ declare function getClaimCreatorFeesInstructionDataDecoder(): FixedSizeDecoder<ClaimCreatorFeesInstructionData>;
2333
+ declare function getClaimCreatorFeesInstructionDataCodec(): FixedSizeCodec<ClaimCreatorFeesInstructionDataArgs, ClaimCreatorFeesInstructionData>;
2334
+ type ClaimCreatorFeesAsyncInput<TAccountClaimer extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountDestinationOwner extends string = string, TAccountDestination extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2335
+ claimer: TransactionSigner<TAccountClaimer>;
2336
+ payer: TransactionSigner<TAccountPayer>;
2337
+ bondingCurve?: Address<TAccountBondingCurve>;
2338
+ creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
2339
+ baseMint: Address<TAccountBaseMint>;
2340
+ quoteMint: Address<TAccountQuoteMint>;
2341
+ quoteVault?: Address<TAccountQuoteVault>;
2342
+ destinationOwner: Address<TAccountDestinationOwner>;
2343
+ destination?: Address<TAccountDestination>;
2344
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2345
+ };
2346
+ declare function getClaimCreatorFeesInstructionAsync<TAccountClaimer extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountCreatorFeeConfig extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountDestinationOwner extends string, TAccountDestination extends string, TAccountQuoteTokenProgram extends string>(input: ClaimCreatorFeesAsyncInput<TAccountClaimer, TAccountPayer, TAccountBondingCurve, TAccountCreatorFeeConfig, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram>): Promise<ClaimCreatorFeesInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountClaimer, TAccountPayer, TAccountBondingCurve, TAccountCreatorFeeConfig, "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2347
+ type ClaimCreatorFeesInput<TAccountClaimer extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountDestinationOwner extends string = string, TAccountDestination extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2348
+ claimer: TransactionSigner<TAccountClaimer>;
2349
+ payer: TransactionSigner<TAccountPayer>;
2350
+ bondingCurve: Address<TAccountBondingCurve>;
2351
+ creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
2352
+ baseMint: Address<TAccountBaseMint>;
2353
+ quoteMint: Address<TAccountQuoteMint>;
2354
+ quoteVault: Address<TAccountQuoteVault>;
2355
+ destinationOwner: Address<TAccountDestinationOwner>;
2356
+ destination: Address<TAccountDestination>;
2357
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2358
+ };
2359
+ declare function getClaimCreatorFeesInstruction<TAccountClaimer extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountCreatorFeeConfig extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountDestinationOwner extends string, TAccountDestination extends string, TAccountQuoteTokenProgram extends string>(input: ClaimCreatorFeesInput<TAccountClaimer, TAccountPayer, TAccountBondingCurve, TAccountCreatorFeeConfig, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram>): ClaimCreatorFeesInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountClaimer, TAccountPayer, TAccountBondingCurve, TAccountCreatorFeeConfig, "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountDestinationOwner, TAccountDestination, TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2360
+ type ParsedClaimCreatorFeesInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2361
+ programAddress: Address<TProgram>;
2362
+ accounts: {
2363
+ claimer: TAccountMetas[0];
2364
+ payer: TAccountMetas[1];
2365
+ bondingCurve: TAccountMetas[2];
2366
+ creatorFeeConfig: TAccountMetas[3];
2367
+ nexusGlobalConfig: TAccountMetas[4];
2368
+ baseMint: TAccountMetas[5];
2369
+ quoteMint: TAccountMetas[6];
2370
+ quoteVault: TAccountMetas[7];
2371
+ destinationOwner: TAccountMetas[8];
2372
+ destination: TAccountMetas[9];
2373
+ quoteTokenProgram: TAccountMetas[10];
2374
+ associatedTokenProgram: TAccountMetas[11];
2375
+ systemProgram: TAccountMetas[12];
2376
+ eventAuthority: TAccountMetas[13];
2377
+ program: TAccountMetas[14];
2378
+ };
2379
+ data: ClaimCreatorFeesInstructionData;
2380
+ };
2381
+ declare function parseClaimCreatorFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimCreatorFeesInstruction<TProgram, TAccountMetas>;
2382
+ //#endregion
2383
+ //#region src/launchpad/generated/instructions/claimProtocolFees.d.ts
2384
+ declare const CLAIM_PROTOCOL_FEES_DISCRIMINATOR: ReadonlyUint8Array;
2385
+ declare function getClaimProtocolFeesDiscriminatorBytes(): ReadonlyUint8Array;
2386
+ type ClaimProtocolFeesInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountNexusStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountStakingRewardState extends string | AccountMeta<string> = string, TAccountRewardAccrual extends string | AccountMeta<string> = string, TAccountStakingVault extends string | AccountMeta<string> = string, TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountNexusStakingConfig extends string ? ReadonlyAccount<TAccountNexusStakingConfig> : TAccountNexusStakingConfig, TAccountStakingRewardState extends string ? ReadonlyAccount<TAccountStakingRewardState> : TAccountStakingRewardState, TAccountRewardAccrual extends string ? WritableAccount<TAccountRewardAccrual> : TAccountRewardAccrual, TAccountStakingVault extends string ? WritableAccount<TAccountStakingVault> : TAccountStakingVault, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2387
+ type ClaimProtocolFeesInstructionData = {
2388
+ discriminator: ReadonlyUint8Array;
2389
+ };
2390
+ type ClaimProtocolFeesInstructionDataArgs = {};
2391
+ declare function getClaimProtocolFeesInstructionDataEncoder(): FixedSizeEncoder<ClaimProtocolFeesInstructionDataArgs>;
2392
+ declare function getClaimProtocolFeesInstructionDataDecoder(): FixedSizeDecoder<ClaimProtocolFeesInstructionData>;
2393
+ declare function getClaimProtocolFeesInstructionDataCodec(): FixedSizeCodec<ClaimProtocolFeesInstructionDataArgs, ClaimProtocolFeesInstructionData>;
2394
+ type ClaimProtocolFeesAsyncInput<TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountNexusStakingConfig extends string = string, TAccountStakingRewardState extends string = string, TAccountRewardAccrual extends string = string, TAccountStakingVault extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2395
+ payer: TransactionSigner<TAccountPayer>;
2396
+ bondingCurve?: Address<TAccountBondingCurve>;
2397
+ baseMint: Address<TAccountBaseMint>;
2398
+ quoteMint: Address<TAccountQuoteMint>;
2399
+ quoteVault?: Address<TAccountQuoteVault>;
2400
+ nexusStakingConfig?: Address<TAccountNexusStakingConfig>;
2401
+ stakingRewardState?: Address<TAccountStakingRewardState>;
2402
+ rewardAccrual?: Address<TAccountRewardAccrual>;
2403
+ stakingVault?: Address<TAccountStakingVault>;
2404
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2405
+ };
2406
+ declare function getClaimProtocolFeesInstructionAsync<TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountNexusStakingConfig extends string, TAccountStakingRewardState extends string, TAccountRewardAccrual extends string, TAccountStakingVault extends string, TAccountQuoteTokenProgram extends string>(input: ClaimProtocolFeesAsyncInput<TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram>): Promise<ClaimProtocolFeesInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram, "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2407
+ type ClaimProtocolFeesInput<TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountQuoteVault extends string = string, TAccountNexusStakingConfig extends string = string, TAccountStakingRewardState extends string = string, TAccountRewardAccrual extends string = string, TAccountStakingVault extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2408
+ payer: TransactionSigner<TAccountPayer>;
2409
+ bondingCurve: Address<TAccountBondingCurve>;
2410
+ baseMint: Address<TAccountBaseMint>;
2411
+ quoteMint: Address<TAccountQuoteMint>;
2412
+ quoteVault: Address<TAccountQuoteVault>;
2413
+ nexusStakingConfig?: Address<TAccountNexusStakingConfig>;
2414
+ stakingRewardState: Address<TAccountStakingRewardState>;
2415
+ rewardAccrual: Address<TAccountRewardAccrual>;
2416
+ stakingVault: Address<TAccountStakingVault>;
2417
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2418
+ };
2419
+ declare function getClaimProtocolFeesInstruction<TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountQuoteVault extends string, TAccountNexusStakingConfig extends string, TAccountStakingRewardState extends string, TAccountRewardAccrual extends string, TAccountStakingVault extends string, TAccountQuoteTokenProgram extends string>(input: ClaimProtocolFeesInput<TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram>): ClaimProtocolFeesInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountQuoteVault, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram, "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2420
+ type ParsedClaimProtocolFeesInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2421
+ programAddress: Address<TProgram>;
2422
+ accounts: {
2423
+ payer: TAccountMetas[0];
2424
+ bondingCurve: TAccountMetas[1];
2425
+ baseMint: TAccountMetas[2];
2426
+ quoteMint: TAccountMetas[3];
2427
+ quoteVault: TAccountMetas[4];
2428
+ nexusStakingConfig: TAccountMetas[5];
2429
+ stakingRewardState: TAccountMetas[6];
2430
+ rewardAccrual: TAccountMetas[7];
2431
+ stakingVault: TAccountMetas[8];
2432
+ quoteTokenProgram: TAccountMetas[9];
2433
+ systemProgram: TAccountMetas[10];
2434
+ eventAuthority: TAccountMetas[11];
2435
+ program: TAccountMetas[12];
2436
+ };
2437
+ data: ClaimProtocolFeesInstructionData;
2438
+ };
2439
+ declare function parseClaimProtocolFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimProtocolFeesInstruction<TProgram, TAccountMetas>;
2440
+ //#endregion
2441
+ //#region src/launchpad/generated/instructions/createToken.d.ts
2442
+ declare const CREATE_TOKEN_DISCRIMINATOR: ReadonlyUint8Array;
2443
+ declare function getCreateTokenDiscriminatorBytes(): ReadonlyUint8Array;
2444
+ type CreateTokenInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountCoinCreator extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = "H3csa1cgR7zPJdxCzNbS5chYymHMKS3XivDA5nRx4Bdq", TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountCreatorFeeConfig extends string | AccountMeta<string> = string, TAccountNexusProgram extends string | AccountMeta<string> = "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", TAccountNexusGlobalConfig extends string | AccountMeta<string> = "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountNexusStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountStakingRewardState extends string | AccountMeta<string> = string, TAccountRewardAccrual extends string | AccountMeta<string> = string, TAccountStakingVault extends string | AccountMeta<string> = string, TAccountStakingWsolVault extends string | AccountMeta<string> = "AyisZJxXz9ywXhMwR3sb3oePxBB6UBvixXycAQCdSgrz", TAccountWsolRewardAccrual extends string | AccountMeta<string> = "91AVurtPdUC2yG3joLoujzC216KAfH5HEKnZEELFMmVH", TAccountPythPriceFeed extends string | AccountMeta<string> = "7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE", TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountWsolTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountCoinCreator extends string ? ReadonlyAccount<TAccountCoinCreator> : TAccountCoinCreator, TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig, TAccountBaseMint extends string ? WritableSignerAccount<TAccountBaseMint> & AccountSignerMeta<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountCreatorFeeConfig extends string ? WritableAccount<TAccountCreatorFeeConfig> : TAccountCreatorFeeConfig, TAccountNexusProgram extends string ? ReadonlyAccount<TAccountNexusProgram> : TAccountNexusProgram, TAccountNexusGlobalConfig extends string ? ReadonlyAccount<TAccountNexusGlobalConfig> : TAccountNexusGlobalConfig, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountNexusStakingConfig extends string ? ReadonlyAccount<TAccountNexusStakingConfig> : TAccountNexusStakingConfig, TAccountStakingRewardState extends string ? WritableAccount<TAccountStakingRewardState> : TAccountStakingRewardState, TAccountRewardAccrual extends string ? WritableAccount<TAccountRewardAccrual> : TAccountRewardAccrual, TAccountStakingVault extends string ? WritableAccount<TAccountStakingVault> : TAccountStakingVault, TAccountStakingWsolVault extends string ? WritableAccount<TAccountStakingWsolVault> : TAccountStakingWsolVault, TAccountWsolRewardAccrual extends string ? WritableAccount<TAccountWsolRewardAccrual> : TAccountWsolRewardAccrual, TAccountPythPriceFeed extends string ? ReadonlyAccount<TAccountPythPriceFeed> : TAccountPythPriceFeed, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountWsolTokenProgram extends string ? ReadonlyAccount<TAccountWsolTokenProgram> : TAccountWsolTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2445
+ type CreateTokenInstructionData = {
2446
+ discriminator: ReadonlyUint8Array;
2447
+ platformConfig: Address;
2448
+ creatorPlatform: string;
2449
+ creatorId: string;
2450
+ creatorHash: Address;
2451
+ name: string;
2452
+ symbol: string;
2453
+ uri: string;
2454
+ };
2455
+ type CreateTokenInstructionDataArgs = {
2456
+ platformConfig: Address;
2457
+ creatorPlatform: string;
2458
+ creatorId: string;
2459
+ creatorHash: Address;
2460
+ name: string;
2461
+ symbol: string;
2462
+ uri: string;
2463
+ };
2464
+ declare function getCreateTokenInstructionDataEncoder(): Encoder<CreateTokenInstructionDataArgs>;
2465
+ declare function getCreateTokenInstructionDataDecoder(): Decoder<CreateTokenInstructionData>;
2466
+ declare function getCreateTokenInstructionDataCodec(): Codec<CreateTokenInstructionDataArgs, CreateTokenInstructionData>;
2467
+ type CreateTokenAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountCoinCreator extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBondingCurve extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountNexusStakingConfig extends string = string, TAccountStakingRewardState extends string = string, TAccountRewardAccrual extends string = string, TAccountStakingVault extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2468
+ user: TransactionSigner<TAccountUser>;
2469
+ payer: TransactionSigner<TAccountPayer>;
2470
+ coinCreator: Address<TAccountCoinCreator>;
2471
+ baseMint: TransactionSigner<TAccountBaseMint>;
2472
+ quoteMint: Address<TAccountQuoteMint>;
2473
+ bondingCurve?: Address<TAccountBondingCurve>;
2474
+ baseVault?: Address<TAccountBaseVault>;
2475
+ quoteVault?: Address<TAccountQuoteVault>;
2476
+ creatorFeeConfig?: Address<TAccountCreatorFeeConfig>;
2477
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2478
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2479
+ partnerConfig?: Address<TAccountPartnerConfig>;
2480
+ nexusStakingConfig?: Address<TAccountNexusStakingConfig>;
2481
+ stakingRewardState?: Address<TAccountStakingRewardState>;
2482
+ rewardAccrual?: Address<TAccountRewardAccrual>;
2483
+ stakingVault?: Address<TAccountStakingVault>;
2484
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2485
+ platformConfig: CreateTokenInstructionDataArgs["platformConfig"];
2486
+ creatorPlatform: CreateTokenInstructionDataArgs["creatorPlatform"];
2487
+ creatorId: CreateTokenInstructionDataArgs["creatorId"];
2488
+ creatorHash: CreateTokenInstructionDataArgs["creatorHash"];
2489
+ name: CreateTokenInstructionDataArgs["name"];
2490
+ symbol: CreateTokenInstructionDataArgs["symbol"];
2491
+ uri: CreateTokenInstructionDataArgs["uri"];
2492
+ };
2493
+ declare function getCreateTokenInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountCoinCreator extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBondingCurve extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountCreatorFeeConfig extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountNexusStakingConfig extends string, TAccountStakingRewardState extends string, TAccountRewardAccrual extends string, TAccountStakingVault extends string, TAccountQuoteTokenProgram extends string>(input: CreateTokenAsyncInput<TAccountUser, TAccountPayer, TAccountCoinCreator, TAccountBaseMint, TAccountQuoteMint, TAccountBondingCurve, TAccountBaseVault, TAccountQuoteVault, TAccountCreatorFeeConfig, TAccountPartner, TAccountPartnerConfig, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram>): Promise<CreateTokenInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountCoinCreator, "H3csa1cgR7zPJdxCzNbS5chYymHMKS3XivDA5nRx4Bdq", TAccountBaseMint, TAccountQuoteMint, TAccountBondingCurve, TAccountBaseVault, TAccountQuoteVault, TAccountCreatorFeeConfig, "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, "AyisZJxXz9ywXhMwR3sb3oePxBB6UBvixXycAQCdSgrz", "91AVurtPdUC2yG3joLoujzC216KAfH5HEKnZEELFMmVH", "7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE", "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2494
+ type CreateTokenInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountCoinCreator extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBondingCurve extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountNexusStakingConfig extends string = string, TAccountStakingRewardState extends string = string, TAccountRewardAccrual extends string = string, TAccountStakingVault extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2495
+ user: TransactionSigner<TAccountUser>;
2496
+ payer: TransactionSigner<TAccountPayer>;
2497
+ coinCreator: Address<TAccountCoinCreator>;
2498
+ baseMint: TransactionSigner<TAccountBaseMint>;
2499
+ quoteMint: Address<TAccountQuoteMint>;
2500
+ bondingCurve: Address<TAccountBondingCurve>;
2501
+ baseVault: Address<TAccountBaseVault>;
2502
+ quoteVault: Address<TAccountQuoteVault>;
2503
+ creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
2504
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2505
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2506
+ partnerConfig: Address<TAccountPartnerConfig>;
2507
+ nexusStakingConfig?: Address<TAccountNexusStakingConfig>;
2508
+ stakingRewardState: Address<TAccountStakingRewardState>;
2509
+ rewardAccrual: Address<TAccountRewardAccrual>;
2510
+ stakingVault: Address<TAccountStakingVault>;
2511
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2512
+ platformConfig: CreateTokenInstructionDataArgs["platformConfig"];
2513
+ creatorPlatform: CreateTokenInstructionDataArgs["creatorPlatform"];
2514
+ creatorId: CreateTokenInstructionDataArgs["creatorId"];
2515
+ creatorHash: CreateTokenInstructionDataArgs["creatorHash"];
2516
+ name: CreateTokenInstructionDataArgs["name"];
2517
+ symbol: CreateTokenInstructionDataArgs["symbol"];
2518
+ uri: CreateTokenInstructionDataArgs["uri"];
2519
+ };
2520
+ declare function getCreateTokenInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountCoinCreator extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBondingCurve extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountCreatorFeeConfig extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountNexusStakingConfig extends string, TAccountStakingRewardState extends string, TAccountRewardAccrual extends string, TAccountStakingVault extends string, TAccountQuoteTokenProgram extends string>(input: CreateTokenInput<TAccountUser, TAccountPayer, TAccountCoinCreator, TAccountBaseMint, TAccountQuoteMint, TAccountBondingCurve, TAccountBaseVault, TAccountQuoteVault, TAccountCreatorFeeConfig, TAccountPartner, TAccountPartnerConfig, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, TAccountQuoteTokenProgram>): CreateTokenInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountCoinCreator, "H3csa1cgR7zPJdxCzNbS5chYymHMKS3XivDA5nRx4Bdq", TAccountBaseMint, TAccountQuoteMint, TAccountBondingCurve, TAccountBaseVault, TAccountQuoteVault, TAccountCreatorFeeConfig, "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, TAccountNexusStakingConfig, TAccountStakingRewardState, TAccountRewardAccrual, TAccountStakingVault, "AyisZJxXz9ywXhMwR3sb3oePxBB6UBvixXycAQCdSgrz", "91AVurtPdUC2yG3joLoujzC216KAfH5HEKnZEELFMmVH", "7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE", "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2521
+ type ParsedCreateTokenInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2522
+ programAddress: Address<TProgram>;
2523
+ accounts: {
2524
+ user: TAccountMetas[0];
2525
+ payer: TAccountMetas[1];
2526
+ coinCreator: TAccountMetas[2];
2527
+ globalConfig: TAccountMetas[3];
2528
+ baseMint: TAccountMetas[4];
2529
+ quoteMint: TAccountMetas[5];
2530
+ bondingCurve: TAccountMetas[6];
2531
+ baseVault: TAccountMetas[7];
2532
+ quoteVault: TAccountMetas[8];
2533
+ creatorFeeConfig: TAccountMetas[9];
2534
+ nexusProgram: TAccountMetas[10];
2535
+ nexusGlobalConfig: TAccountMetas[11];
2536
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2537
+ partner: TAccountMetas[12];
2538
+ partnerConfig: TAccountMetas[13];
2539
+ nexusStakingConfig: TAccountMetas[14];
2540
+ stakingRewardState: TAccountMetas[15];
2541
+ rewardAccrual: TAccountMetas[16];
2542
+ stakingVault: TAccountMetas[17];
2543
+ stakingWsolVault: TAccountMetas[18];
2544
+ wsolRewardAccrual: TAccountMetas[19];
2545
+ pythPriceFeed: TAccountMetas[20];
2546
+ baseTokenProgram: TAccountMetas[21];
2547
+ quoteTokenProgram: TAccountMetas[22];
2548
+ wsolTokenProgram: TAccountMetas[23];
2549
+ associatedTokenProgram: TAccountMetas[24];
2550
+ systemProgram: TAccountMetas[25];
2551
+ eventAuthority: TAccountMetas[26];
2552
+ program: TAccountMetas[27];
2553
+ };
2554
+ data: CreateTokenInstructionData;
2555
+ };
2556
+ declare function parseCreateTokenInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateTokenInstruction<TProgram, TAccountMetas>;
2557
+ //#endregion
2558
+ //#region src/launchpad/generated/instructions/migrate.d.ts
2559
+ declare const MIGRATE_DISCRIMINATOR: ReadonlyUint8Array;
2560
+ declare function getMigrateDiscriminatorBytes(): ReadonlyUint8Array;
2561
+ type MigrateInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountCaller extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountDexProgram extends string | AccountMeta<string> = "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", TAccountMigrationAuthority extends string | AccountMeta<string> = "932vp5VTARoqoAKNgLSawfCsAx43jUJ5YURggmXBX6V", TAccountPool extends string | AccountMeta<string> = string, TAccountLpMint extends string | AccountMeta<string> = string, TAccountPoolBaseVault extends string | AccountMeta<string> = string, TAccountPoolQuoteVault extends string | AccountMeta<string> = string, TAccountPoolLpAccount extends string | AccountMeta<string> = string, TAccountDexEventAuthority extends string | AccountMeta<string> = "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", TAccountNexusProgram extends string | AccountMeta<string> = "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", TAccountCreatorFeeConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountCaller extends string ? WritableSignerAccount<TAccountCaller> & AccountSignerMeta<TAccountCaller> : TAccountCaller, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountBaseMint extends string ? WritableAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountDexProgram extends string ? ReadonlyAccount<TAccountDexProgram> : TAccountDexProgram, TAccountMigrationAuthority extends string ? ReadonlyAccount<TAccountMigrationAuthority> : TAccountMigrationAuthority, TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool, TAccountLpMint extends string ? WritableAccount<TAccountLpMint> : TAccountLpMint, TAccountPoolBaseVault extends string ? WritableAccount<TAccountPoolBaseVault> : TAccountPoolBaseVault, TAccountPoolQuoteVault extends string ? WritableAccount<TAccountPoolQuoteVault> : TAccountPoolQuoteVault, TAccountPoolLpAccount extends string ? WritableAccount<TAccountPoolLpAccount> : TAccountPoolLpAccount, TAccountDexEventAuthority extends string ? ReadonlyAccount<TAccountDexEventAuthority> : TAccountDexEventAuthority, TAccountNexusProgram extends string ? ReadonlyAccount<TAccountNexusProgram> : TAccountNexusProgram, TAccountCreatorFeeConfig extends string ? ReadonlyAccount<TAccountCreatorFeeConfig> : TAccountCreatorFeeConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2562
+ type MigrateInstructionData = {
2563
+ discriminator: ReadonlyUint8Array;
2564
+ };
2565
+ type MigrateInstructionDataArgs = {};
2566
+ declare function getMigrateInstructionDataEncoder(): FixedSizeEncoder<MigrateInstructionDataArgs>;
2567
+ declare function getMigrateInstructionDataDecoder(): FixedSizeDecoder<MigrateInstructionData>;
2568
+ declare function getMigrateInstructionDataCodec(): FixedSizeCodec<MigrateInstructionDataArgs, MigrateInstructionData>;
2569
+ type MigrateAsyncInput<TAccountCaller extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPool extends string = string, TAccountLpMint extends string = string, TAccountPoolBaseVault extends string = string, TAccountPoolQuoteVault extends string = string, TAccountPoolLpAccount extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2570
+ caller: TransactionSigner<TAccountCaller>;
2571
+ bondingCurve?: Address<TAccountBondingCurve>;
2572
+ baseMint: Address<TAccountBaseMint>;
2573
+ quoteMint: Address<TAccountQuoteMint>;
2574
+ baseVault?: Address<TAccountBaseVault>;
2575
+ quoteVault?: Address<TAccountQuoteVault>;
2576
+ pool?: Address<TAccountPool>;
2577
+ lpMint?: Address<TAccountLpMint>;
2578
+ poolBaseVault: Address<TAccountPoolBaseVault>;
2579
+ poolQuoteVault: Address<TAccountPoolQuoteVault>;
2580
+ poolLpAccount: Address<TAccountPoolLpAccount>;
2581
+ creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
2582
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2583
+ };
2584
+ declare function getMigrateInstructionAsync<TAccountCaller extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPool extends string, TAccountLpMint extends string, TAccountPoolBaseVault extends string, TAccountPoolQuoteVault extends string, TAccountPoolLpAccount extends string, TAccountCreatorFeeConfig extends string, TAccountQuoteTokenProgram extends string>(input: MigrateAsyncInput<TAccountCaller, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLpMint, TAccountPoolBaseVault, TAccountPoolQuoteVault, TAccountPoolLpAccount, TAccountCreatorFeeConfig, TAccountQuoteTokenProgram>): Promise<MigrateInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountCaller, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", "932vp5VTARoqoAKNgLSawfCsAx43jUJ5YURggmXBX6V", TAccountPool, TAccountLpMint, TAccountPoolBaseVault, TAccountPoolQuoteVault, TAccountPoolLpAccount, "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", TAccountCreatorFeeConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2585
+ type MigrateInput<TAccountCaller extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountPool extends string = string, TAccountLpMint extends string = string, TAccountPoolBaseVault extends string = string, TAccountPoolQuoteVault extends string = string, TAccountPoolLpAccount extends string = string, TAccountCreatorFeeConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2586
+ caller: TransactionSigner<TAccountCaller>;
2587
+ bondingCurve: Address<TAccountBondingCurve>;
2588
+ baseMint: Address<TAccountBaseMint>;
2589
+ quoteMint: Address<TAccountQuoteMint>;
2590
+ baseVault: Address<TAccountBaseVault>;
2591
+ quoteVault: Address<TAccountQuoteVault>;
2592
+ pool: Address<TAccountPool>;
2593
+ lpMint: Address<TAccountLpMint>;
2594
+ poolBaseVault: Address<TAccountPoolBaseVault>;
2595
+ poolQuoteVault: Address<TAccountPoolQuoteVault>;
2596
+ poolLpAccount: Address<TAccountPoolLpAccount>;
2597
+ creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
2598
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2599
+ };
2600
+ declare function getMigrateInstruction<TAccountCaller extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountPool extends string, TAccountLpMint extends string, TAccountPoolBaseVault extends string, TAccountPoolQuoteVault extends string, TAccountPoolLpAccount extends string, TAccountCreatorFeeConfig extends string, TAccountQuoteTokenProgram extends string>(input: MigrateInput<TAccountCaller, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLpMint, TAccountPoolBaseVault, TAccountPoolQuoteVault, TAccountPoolLpAccount, TAccountCreatorFeeConfig, TAccountQuoteTokenProgram>): MigrateInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountCaller, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, "84qj5FPZZdXkQy8mfowyg6RBZ3XKuTds6XS4ZYT1sfDX", "932vp5VTARoqoAKNgLSawfCsAx43jUJ5YURggmXBX6V", TAccountPool, TAccountLpMint, TAccountPoolBaseVault, TAccountPoolQuoteVault, TAccountPoolLpAccount, "4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", TAccountCreatorFeeConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2601
+ type ParsedMigrateInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2602
+ programAddress: Address<TProgram>;
2603
+ accounts: {
2604
+ caller: TAccountMetas[0];
2605
+ bondingCurve: TAccountMetas[1];
2606
+ baseMint: TAccountMetas[2];
2607
+ quoteMint: TAccountMetas[3];
2608
+ baseVault: TAccountMetas[4];
2609
+ quoteVault: TAccountMetas[5];
2610
+ dexProgram: TAccountMetas[6];
2611
+ migrationAuthority: TAccountMetas[7];
2612
+ pool: TAccountMetas[8];
2613
+ lpMint: TAccountMetas[9];
2614
+ poolBaseVault: TAccountMetas[10];
2615
+ poolQuoteVault: TAccountMetas[11];
2616
+ poolLpAccount: TAccountMetas[12];
2617
+ dexEventAuthority: TAccountMetas[13];
2618
+ nexusProgram: TAccountMetas[14];
2619
+ creatorFeeConfig: TAccountMetas[15];
2620
+ baseTokenProgram: TAccountMetas[16];
2621
+ quoteTokenProgram: TAccountMetas[17];
2622
+ associatedTokenProgram: TAccountMetas[18];
2623
+ systemProgram: TAccountMetas[19];
2624
+ eventAuthority: TAccountMetas[20];
2625
+ program: TAccountMetas[21];
2626
+ };
2627
+ data: MigrateInstructionData;
2628
+ };
2629
+ declare function parseMigrateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMigrateInstruction<TProgram, TAccountMetas>;
2630
+ //#endregion
2631
+ //#region src/launchpad/generated/instructions/sellExactIn.d.ts
2632
+ declare const SELL_EXACT_IN_DISCRIMINATOR: ReadonlyUint8Array;
2633
+ declare function getSellExactInDiscriminatorBytes(): ReadonlyUint8Array;
2634
+ type SellExactInInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2635
+ type SellExactInInstructionData = {
2636
+ discriminator: ReadonlyUint8Array;
2637
+ amountIn: bigint;
2638
+ minAmountOut: bigint;
2639
+ };
2640
+ type SellExactInInstructionDataArgs = {
2641
+ amountIn: number | bigint;
2642
+ minAmountOut: number | bigint;
2643
+ };
2644
+ declare function getSellExactInInstructionDataEncoder(): FixedSizeEncoder<SellExactInInstructionDataArgs>;
2645
+ declare function getSellExactInInstructionDataDecoder(): FixedSizeDecoder<SellExactInInstructionData>;
2646
+ declare function getSellExactInInstructionDataCodec(): FixedSizeCodec<SellExactInInstructionDataArgs, SellExactInInstructionData>;
2647
+ type SellExactInInstructionExtraArgs = {
2648
+ platformConfig: Address;
2649
+ };
2650
+ type SellExactInAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2651
+ user: TransactionSigner<TAccountUser>;
2652
+ payer: TransactionSigner<TAccountPayer>;
2653
+ bondingCurve?: Address<TAccountBondingCurve>;
2654
+ baseMint: Address<TAccountBaseMint>;
2655
+ quoteMint: Address<TAccountQuoteMint>;
2656
+ baseVault?: Address<TAccountBaseVault>;
2657
+ quoteVault?: Address<TAccountQuoteVault>;
2658
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2659
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
2660
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2661
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
2662
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2663
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2664
+ partnerConfig?: Address<TAccountPartnerConfig>;
2665
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2666
+ amountIn: SellExactInInstructionDataArgs["amountIn"];
2667
+ minAmountOut: SellExactInInstructionDataArgs["minAmountOut"];
2668
+ platformConfig: SellExactInInstructionExtraArgs["platformConfig"];
2669
+ };
2670
+ declare function getSellExactInInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactInAsyncInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<SellExactInInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2671
+ type SellExactInInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2672
+ user: TransactionSigner<TAccountUser>;
2673
+ payer: TransactionSigner<TAccountPayer>;
2674
+ bondingCurve: Address<TAccountBondingCurve>;
2675
+ baseMint: Address<TAccountBaseMint>;
2676
+ quoteMint: Address<TAccountQuoteMint>;
2677
+ baseVault: Address<TAccountBaseVault>;
2678
+ quoteVault: Address<TAccountQuoteVault>;
2679
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2680
+ userBaseAccount: Address<TAccountUserBaseAccount>;
2681
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2682
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
2683
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2684
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2685
+ partnerConfig: Address<TAccountPartnerConfig>;
2686
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2687
+ amountIn: SellExactInInstructionDataArgs["amountIn"];
2688
+ minAmountOut: SellExactInInstructionDataArgs["minAmountOut"];
2689
+ platformConfig?: SellExactInInstructionExtraArgs["platformConfig"];
2690
+ };
2691
+ declare function getSellExactInInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactInInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): SellExactInInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2692
+ type ParsedSellExactInInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2693
+ programAddress: Address<TProgram>;
2694
+ accounts: {
2695
+ user: TAccountMetas[0];
2696
+ payer: TAccountMetas[1];
2697
+ bondingCurve: TAccountMetas[2];
2698
+ baseMint: TAccountMetas[3];
2699
+ quoteMint: TAccountMetas[4];
2700
+ baseVault: TAccountMetas[5];
2701
+ quoteVault: TAccountMetas[6];
2702
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2703
+ userBaseAccount: TAccountMetas[7];
2704
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2705
+ userQuoteAccount: TAccountMetas[8];
2706
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2707
+ partner: TAccountMetas[9];
2708
+ partnerConfig: TAccountMetas[10];
2709
+ baseTokenProgram: TAccountMetas[11];
2710
+ quoteTokenProgram: TAccountMetas[12];
2711
+ associatedTokenProgram: TAccountMetas[13];
2712
+ systemProgram: TAccountMetas[14];
2713
+ eventAuthority: TAccountMetas[15];
2714
+ program: TAccountMetas[16];
2715
+ };
2716
+ data: SellExactInInstructionData;
2717
+ };
2718
+ declare function parseSellExactInInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellExactInInstruction<TProgram, TAccountMetas>;
2719
+ //#endregion
2720
+ //#region src/launchpad/generated/instructions/sellExactOut.d.ts
2721
+ declare const SELL_EXACT_OUT_DISCRIMINATOR: ReadonlyUint8Array;
2722
+ declare function getSellExactOutDiscriminatorBytes(): ReadonlyUint8Array;
2723
+ type SellExactOutInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountBaseMint extends string | AccountMeta<string> = string, TAccountQuoteMint extends string | AccountMeta<string> = string, TAccountBaseVault extends string | AccountMeta<string> = string, TAccountQuoteVault extends string | AccountMeta<string> = string, TAccountUserBaseAccount extends string | AccountMeta<string> = string, TAccountUserQuoteAccount extends string | AccountMeta<string> = string, TAccountPartner extends string | AccountMeta<string> = string, TAccountPartnerConfig extends string | AccountMeta<string> = string, TAccountBaseTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", TAccountProgram extends string | AccountMeta<string> = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve, TAccountBaseMint extends string ? ReadonlyAccount<TAccountBaseMint> : TAccountBaseMint, TAccountQuoteMint extends string ? ReadonlyAccount<TAccountQuoteMint> : TAccountQuoteMint, TAccountBaseVault extends string ? WritableAccount<TAccountBaseVault> : TAccountBaseVault, TAccountQuoteVault extends string ? WritableAccount<TAccountQuoteVault> : TAccountQuoteVault, TAccountUserBaseAccount extends string ? WritableAccount<TAccountUserBaseAccount> : TAccountUserBaseAccount, TAccountUserQuoteAccount extends string ? WritableAccount<TAccountUserQuoteAccount> : TAccountUserQuoteAccount, TAccountPartner extends string ? ReadonlyAccount<TAccountPartner> : TAccountPartner, TAccountPartnerConfig extends string ? ReadonlyAccount<TAccountPartnerConfig> : TAccountPartnerConfig, TAccountBaseTokenProgram extends string ? ReadonlyAccount<TAccountBaseTokenProgram> : TAccountBaseTokenProgram, TAccountQuoteTokenProgram extends string ? ReadonlyAccount<TAccountQuoteTokenProgram> : TAccountQuoteTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
2724
+ type SellExactOutInstructionData = {
2725
+ discriminator: ReadonlyUint8Array;
2726
+ amountOut: bigint;
2727
+ maxAmountIn: bigint;
2728
+ };
2729
+ type SellExactOutInstructionDataArgs = {
2730
+ amountOut: number | bigint;
2731
+ maxAmountIn: number | bigint;
2732
+ };
2733
+ declare function getSellExactOutInstructionDataEncoder(): FixedSizeEncoder<SellExactOutInstructionDataArgs>;
2734
+ declare function getSellExactOutInstructionDataDecoder(): FixedSizeDecoder<SellExactOutInstructionData>;
2735
+ declare function getSellExactOutInstructionDataCodec(): FixedSizeCodec<SellExactOutInstructionDataArgs, SellExactOutInstructionData>;
2736
+ type SellExactOutInstructionExtraArgs = {
2737
+ platformConfig: Address;
2738
+ };
2739
+ type SellExactOutAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2740
+ user: TransactionSigner<TAccountUser>;
2741
+ payer: TransactionSigner<TAccountPayer>;
2742
+ bondingCurve?: Address<TAccountBondingCurve>;
2743
+ baseMint: Address<TAccountBaseMint>;
2744
+ quoteMint: Address<TAccountQuoteMint>;
2745
+ baseVault?: Address<TAccountBaseVault>;
2746
+ quoteVault?: Address<TAccountQuoteVault>;
2747
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2748
+ userBaseAccount?: Address<TAccountUserBaseAccount>;
2749
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2750
+ userQuoteAccount?: Address<TAccountUserQuoteAccount>;
2751
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2752
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2753
+ partnerConfig?: Address<TAccountPartnerConfig>;
2754
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2755
+ amountOut: SellExactOutInstructionDataArgs["amountOut"];
2756
+ maxAmountIn: SellExactOutInstructionDataArgs["maxAmountIn"];
2757
+ platformConfig: SellExactOutInstructionExtraArgs["platformConfig"];
2758
+ };
2759
+ declare function getSellExactOutInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactOutAsyncInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): Promise<SellExactOutInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">>;
2760
+ type SellExactOutInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountBondingCurve extends string = string, TAccountBaseMint extends string = string, TAccountQuoteMint extends string = string, TAccountBaseVault extends string = string, TAccountQuoteVault extends string = string, TAccountUserBaseAccount extends string = string, TAccountUserQuoteAccount extends string = string, TAccountPartner extends string = string, TAccountPartnerConfig extends string = string, TAccountQuoteTokenProgram extends string = string> = {
2761
+ user: TransactionSigner<TAccountUser>;
2762
+ payer: TransactionSigner<TAccountPayer>;
2763
+ bondingCurve: Address<TAccountBondingCurve>;
2764
+ baseMint: Address<TAccountBaseMint>;
2765
+ quoteMint: Address<TAccountQuoteMint>;
2766
+ baseVault: Address<TAccountBaseVault>;
2767
+ quoteVault: Address<TAccountQuoteVault>;
2768
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2769
+ userBaseAccount: Address<TAccountUserBaseAccount>;
2770
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2771
+ userQuoteAccount: Address<TAccountUserQuoteAccount>;
2772
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2773
+ partner: Address<TAccountPartner> | TransactionSigner<TAccountPartner>;
2774
+ partnerConfig: Address<TAccountPartnerConfig>;
2775
+ quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
2776
+ amountOut: SellExactOutInstructionDataArgs["amountOut"];
2777
+ maxAmountIn: SellExactOutInstructionDataArgs["maxAmountIn"];
2778
+ platformConfig?: SellExactOutInstructionExtraArgs["platformConfig"];
2779
+ };
2780
+ declare function getSellExactOutInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountBondingCurve extends string, TAccountBaseMint extends string, TAccountQuoteMint extends string, TAccountBaseVault extends string, TAccountQuoteVault extends string, TAccountUserBaseAccount extends string, TAccountUserQuoteAccount extends string, TAccountPartner extends string, TAccountPartnerConfig extends string, TAccountQuoteTokenProgram extends string>(input: SellExactOutInput<TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, TAccountPartner, TAccountPartnerConfig, TAccountQuoteTokenProgram>): SellExactOutInstruction<typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountUserBaseAccount, TAccountUserQuoteAccount, (typeof input)["partner"] extends TransactionSigner<TAccountPartner> ? ReadonlySignerAccount<TAccountPartner> & AccountSignerMeta<TAccountPartner> : TAccountPartner, TAccountPartnerConfig, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountQuoteTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T", "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP">;
2781
+ type ParsedSellExactOutInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
2782
+ programAddress: Address<TProgram>;
2783
+ accounts: {
2784
+ user: TAccountMetas[0];
2785
+ payer: TAccountMetas[1];
2786
+ bondingCurve: TAccountMetas[2];
2787
+ baseMint: TAccountMetas[3];
2788
+ quoteMint: TAccountMetas[4];
2789
+ baseVault: TAccountMetas[5];
2790
+ quoteVault: TAccountMetas[6];
2791
+ /** Optional: any base-mint account `user` owns; defaults to this ATA. */
2792
+ userBaseAccount: TAccountMetas[7];
2793
+ /** Optional: any quote-mint account `user` owns; defaults to this ATA. */
2794
+ userQuoteAccount: TAccountMetas[8];
2795
+ /** The partner must sign. `DEFAULT_PARTNER`, the system program, does not sign. */
2796
+ partner: TAccountMetas[9];
2797
+ partnerConfig: TAccountMetas[10];
2798
+ baseTokenProgram: TAccountMetas[11];
2799
+ quoteTokenProgram: TAccountMetas[12];
2800
+ associatedTokenProgram: TAccountMetas[13];
2801
+ systemProgram: TAccountMetas[14];
2802
+ eventAuthority: TAccountMetas[15];
2803
+ program: TAccountMetas[16];
2804
+ };
2805
+ data: SellExactOutInstructionData;
2806
+ };
2807
+ declare function parseSellExactOutInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellExactOutInstruction<TProgram, TAccountMetas>;
2808
+ //#endregion
2809
+ //#region src/launchpad/generated/instructions/sendLaunchpad.instructions.d.ts
2810
+ /** Instruction kinds of the sendLaunchpad program. */
2811
+ type SendLaunchpadInstructionType = "buyExactIn" | "buyExactOut" | "claimCreatorFees" | "claimProtocolFees" | "createToken" | "migrate" | "sellExactIn" | "sellExactOut";
2812
+ /**
2813
+ * Identifies sendLaunchpad instruction data by its discriminators.
2814
+ * Returns `null` when the instruction is for another program or the data matches no known instruction.
2815
+ */
2816
+ declare function identifySendLaunchpadInstruction(instruction: {
2817
+ data: ReadonlyUint8Array;
2818
+ programAddress: Address;
2819
+ } | ReadonlyUint8Array): SendLaunchpadInstructionType | null;
2820
+ /** Parsed sendLaunchpad instruction: the instruction kind tag plus its parsed accounts and data. */
2821
+ type ParsedSendLaunchpadInstruction<TProgram extends string = "5R1uFyEE4oxqkm7hJDqHq6gXaLVF9dxeF3LF4yz1sfLP"> = ({
2822
+ instructionType: "buyExactIn";
2823
+ } & ParsedBuyExactInInstruction<TProgram>) | ({
2824
+ instructionType: "buyExactOut";
2825
+ } & ParsedBuyExactOutInstruction<TProgram>) | ({
2826
+ instructionType: "claimCreatorFees";
2827
+ } & ParsedClaimCreatorFeesInstruction<TProgram>) | ({
2828
+ instructionType: "claimProtocolFees";
2829
+ } & ParsedClaimProtocolFeesInstruction<TProgram>) | ({
2830
+ instructionType: "createToken";
2831
+ } & ParsedCreateTokenInstruction<TProgram>) | ({
2832
+ instructionType: "migrate";
2833
+ } & ParsedMigrateInstruction<TProgram>) | ({
2834
+ instructionType: "sellExactIn";
2835
+ } & ParsedSellExactInInstruction<TProgram>) | ({
2836
+ instructionType: "sellExactOut";
2837
+ } & ParsedSellExactOutInstruction<TProgram>);
2838
+ /**
2839
+ * Parses a sendLaunchpad instruction into its kind tag plus parsed accounts and data.
2840
+ * Returns `null` when the instruction is for another program or no known instruction matches;
2841
+ * throws if a matched instruction fails to parse.
2842
+ */
2843
+ declare function parseSendLaunchpadInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSendLaunchpadInstruction<TProgram> | null;
2844
+ declare namespace index_d_exports$13 {
2845
+ export { BUY_EXACT_IN_DISCRIMINATOR, BUY_EXACT_OUT_DISCRIMINATOR, BuyExactInAsyncInput, BuyExactInInput, BuyExactInInstruction, BuyExactInInstructionData, BuyExactInInstructionDataArgs, BuyExactInInstructionExtraArgs, BuyExactOutAsyncInput, BuyExactOutInput, BuyExactOutInstruction, BuyExactOutInstructionData, BuyExactOutInstructionDataArgs, BuyExactOutInstructionExtraArgs, CLAIM_CREATOR_FEES_DISCRIMINATOR, CLAIM_PROTOCOL_FEES_DISCRIMINATOR, CREATE_TOKEN_DISCRIMINATOR, ClaimCreatorFeesAsyncInput, ClaimCreatorFeesInput, ClaimCreatorFeesInstruction, ClaimCreatorFeesInstructionData, ClaimCreatorFeesInstructionDataArgs, ClaimProtocolFeesAsyncInput, ClaimProtocolFeesInput, ClaimProtocolFeesInstruction, ClaimProtocolFeesInstructionData, ClaimProtocolFeesInstructionDataArgs, CreateTokenAsyncInput, CreateTokenInput, CreateTokenInstruction, CreateTokenInstructionData, CreateTokenInstructionDataArgs, MIGRATE_DISCRIMINATOR, MigrateAsyncInput, MigrateInput, MigrateInstruction, MigrateInstructionData, MigrateInstructionDataArgs, ParsedBuyExactInInstruction, ParsedBuyExactOutInstruction, ParsedClaimCreatorFeesInstruction, ParsedClaimProtocolFeesInstruction, ParsedCreateTokenInstruction, ParsedMigrateInstruction, ParsedSellExactInInstruction, ParsedSellExactOutInstruction, ParsedSendLaunchpadInstruction, SELL_EXACT_IN_DISCRIMINATOR, SELL_EXACT_OUT_DISCRIMINATOR, SellExactInAsyncInput, SellExactInInput, SellExactInInstruction, SellExactInInstructionData, SellExactInInstructionDataArgs, SellExactInInstructionExtraArgs, SellExactOutAsyncInput, SellExactOutInput, SellExactOutInstruction, SellExactOutInstructionData, SellExactOutInstructionDataArgs, SellExactOutInstructionExtraArgs, SendLaunchpadInstructionType, getBuyExactInDiscriminatorBytes, getBuyExactInInstruction, getBuyExactInInstructionAsync, getBuyExactInInstructionDataCodec, getBuyExactInInstructionDataDecoder, getBuyExactInInstructionDataEncoder, getBuyExactOutDiscriminatorBytes, getBuyExactOutInstruction, getBuyExactOutInstructionAsync, getBuyExactOutInstructionDataCodec, getBuyExactOutInstructionDataDecoder, getBuyExactOutInstructionDataEncoder, getClaimCreatorFeesDiscriminatorBytes, getClaimCreatorFeesInstruction, getClaimCreatorFeesInstructionAsync, getClaimCreatorFeesInstructionDataCodec, getClaimCreatorFeesInstructionDataDecoder, getClaimCreatorFeesInstructionDataEncoder, getClaimProtocolFeesDiscriminatorBytes, getClaimProtocolFeesInstruction, getClaimProtocolFeesInstructionAsync, getClaimProtocolFeesInstructionDataCodec, getClaimProtocolFeesInstructionDataDecoder, getClaimProtocolFeesInstructionDataEncoder, getCreateTokenDiscriminatorBytes, getCreateTokenInstruction, getCreateTokenInstructionAsync, getCreateTokenInstructionDataCodec, getCreateTokenInstructionDataDecoder, getCreateTokenInstructionDataEncoder, getMigrateDiscriminatorBytes, getMigrateInstruction, getMigrateInstructionAsync, getMigrateInstructionDataCodec, getMigrateInstructionDataDecoder, getMigrateInstructionDataEncoder, getSellExactInDiscriminatorBytes, getSellExactInInstruction, getSellExactInInstructionAsync, getSellExactInInstructionDataCodec, getSellExactInInstructionDataDecoder, getSellExactInInstructionDataEncoder, getSellExactOutDiscriminatorBytes, getSellExactOutInstruction, getSellExactOutInstructionAsync, getSellExactOutInstructionDataCodec, getSellExactOutInstructionDataDecoder, getSellExactOutInstructionDataEncoder, identifySendLaunchpadInstruction, parseBuyExactInInstruction, parseBuyExactOutInstruction, parseClaimCreatorFeesInstruction, parseClaimProtocolFeesInstruction, parseCreateTokenInstruction, parseMigrateInstruction, parseSellExactInInstruction, parseSellExactOutInstruction, parseSendLaunchpadInstruction };
2846
+ }
2847
+ //#endregion
2848
+ //#region src/launchpad/generated/plugins/sendLaunchpad.d.ts
2849
+ type SendLaunchpadPlugin = {
2850
+ accounts: SendLaunchpadPluginAccounts;
2851
+ events: SendLaunchpadPluginEvents;
2852
+ instructions: SendLaunchpadPluginInstructions;
2853
+ pdas: SendLaunchpadPluginPdas;
2854
+ identifyAccount: typeof identifySendLaunchpadAccount;
2855
+ identifyInstruction: typeof identifySendLaunchpadInstruction;
2856
+ parseInstruction: typeof parseSendLaunchpadInstruction;
2857
+ };
2858
+ type SendLaunchpadPluginAccounts = {
2859
+ bondingCurve: ReturnType<typeof getBondingCurveCodec> & SelfFetchFunctions<BondingCurveArgs, BondingCurve>;
2860
+ globalConfig: ReturnType<typeof getGlobalConfigCodec$1> & SelfFetchFunctions<GlobalConfigArgs$1, GlobalConfig$1>;
2861
+ rewardAccrual: ReturnType<typeof getRewardAccrualCodec> & SelfFetchFunctions<RewardAccrualArgs, RewardAccrual>;
2862
+ };
2863
+ type SendLaunchpadPluginEvents = {
2864
+ completeEvent: ReturnType<typeof getCompleteEventDecoder>;
2865
+ creatorClaimEvent: ReturnType<typeof getCreatorClaimEventDecoder>;
2866
+ migrateEvent: ReturnType<typeof getMigrateEventDecoder>;
2867
+ protocolClaimEvent: ReturnType<typeof getProtocolClaimEventDecoder>;
2868
+ recycleEvent: ReturnType<typeof getRecycleEventDecoder>;
2869
+ tokenCreateEvent: ReturnType<typeof getTokenCreateEventDecoder>;
2870
+ tradeEvent: ReturnType<typeof getTradeEventDecoder>;
2871
+ };
2872
+ type SendLaunchpadPluginInstructions = {
2873
+ buyExactIn: (input: MakeOptional$1<BuyExactInAsyncInput, "payer">) => ReturnType<typeof getBuyExactInInstructionAsync> & SelfPlanAndSendFunctions;
2874
+ buyExactOut: (input: MakeOptional$1<BuyExactOutAsyncInput, "payer">) => ReturnType<typeof getBuyExactOutInstructionAsync> & SelfPlanAndSendFunctions;
2875
+ claimCreatorFees: (input: MakeOptional$1<ClaimCreatorFeesAsyncInput, "payer">) => ReturnType<typeof getClaimCreatorFeesInstructionAsync> & SelfPlanAndSendFunctions;
2876
+ claimProtocolFees: (input: MakeOptional$1<ClaimProtocolFeesAsyncInput, "payer">) => ReturnType<typeof getClaimProtocolFeesInstructionAsync> & SelfPlanAndSendFunctions;
2877
+ createToken: (input: MakeOptional$1<CreateTokenAsyncInput, "payer">) => ReturnType<typeof getCreateTokenInstructionAsync> & SelfPlanAndSendFunctions;
2878
+ migrate: (input: MigrateAsyncInput) => ReturnType<typeof getMigrateInstructionAsync> & SelfPlanAndSendFunctions;
2879
+ sellExactIn: (input: MakeOptional$1<SellExactInAsyncInput, "payer">) => ReturnType<typeof getSellExactInInstructionAsync> & SelfPlanAndSendFunctions;
2880
+ sellExactOut: (input: MakeOptional$1<SellExactOutAsyncInput, "payer">) => ReturnType<typeof getSellExactOutInstructionAsync> & SelfPlanAndSendFunctions;
2881
+ };
2882
+ type SendLaunchpadPluginPdas = {
2883
+ bondingCurve: typeof findBondingCurvePda;
2884
+ eventAuthority: typeof findEventAuthorityPda$1;
2885
+ rewardAccrual: typeof findRewardAccrualPda;
2886
+ globalConfig: typeof findGlobalConfigPda$1;
2887
+ wsolRewardAccrual: typeof findWsolRewardAccrualPda;
2888
+ migrationAuthority: typeof findMigrationAuthorityPda;
2889
+ };
2890
+ type SendLaunchpadPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
2891
+ declare function sendLaunchpadProgram(): <T extends SendLaunchpadPluginRequirements>(client: T) => ExtendedClient<T, {
2892
+ sendLaunchpad: SendLaunchpadPlugin;
2893
+ }>;
2894
+ type MakeOptional$1<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
2895
+ declare namespace index_d_exports$12 {
2896
+ export { SendLaunchpadPlugin, SendLaunchpadPluginAccounts, SendLaunchpadPluginEvents, SendLaunchpadPluginInstructions, SendLaunchpadPluginPdas, SendLaunchpadPluginRequirements, sendLaunchpadProgram };
2897
+ }
2898
+ declare namespace migrate_d_exports {
2899
+ export { MigrateParams, buildMigrateInstruction };
2900
+ }
2901
+ interface MigrateParams {
2902
+ caller: TransactionSigner;
2903
+ baseMint: Address;
2904
+ quoteMint: Address;
2905
+ /** `bondingCurve.creatorFeeConfig`; `migrate` rejects any other address. */
2906
+ creatorFeeConfig: Address;
2907
+ quoteTokenProgram: Address;
2908
+ }
2909
+ declare function buildMigrateInstruction(params: MigrateParams): Promise<Instruction>;
2910
+ declare namespace trade_d_exports {
2911
+ export { LaunchpadBuyParams, LaunchpadInstructionParams, LaunchpadTradeParams, buildBuyExactInInstruction, buildBuyExactOutInstruction, buildSellExactInInstruction, buildSellExactOutInstruction, buyExactIn, buyExactOut, calculateBondingCurveProgress, sellExactIn, sellExactOut };
2912
+ }
2913
+ interface LaunchpadTradeParams {
2914
+ user: TransactionSigner;
2915
+ payer?: TransactionSigner;
2916
+ baseMint: Address;
2917
+ quoteMint: Address;
2918
+ virtualBaseReserves: bigint;
2919
+ virtualQuoteReserves: bigint;
2920
+ feeBps: number;
2921
+ slippageBps: number;
2922
+ partner: PartnerInput;
2923
+ platformConfig: Address;
2924
+ quoteTokenProgram: Address;
2925
+ /** Token-2022 schedule for the epoch the trade lands in; stale or missing skews the slippage bounds. */
2926
+ quoteFee?: MintFee;
2927
+ baseFee?: MintFee;
2928
+ /** {@inheritDoc LaunchpadInstructionParams.userQuoteAccount} */
2929
+ userQuoteAccount?: Address;
2930
+ /** {@inheritDoc LaunchpadInstructionParams.userBaseAccount} */
2931
+ userBaseAccount?: Address;
2932
+ }
2933
+ interface LaunchpadBuyParams extends LaunchpadTradeParams {
2934
+ realBaseReserves: bigint;
2935
+ }
2936
+ interface LaunchpadInstructionParams {
2937
+ user: TransactionSigner;
2938
+ payer?: TransactionSigner;
2939
+ baseMint: Address;
2940
+ quoteMint: Address;
2941
+ partner: PartnerInput;
2942
+ platformConfig: Address;
2943
+ quoteTokenProgram: Address;
2944
+ /** Any user-owned quote-mint account. Defaults to the ATA, created mid-trade
2945
+ * if missing (payer funds rent), which only rescues a sell. For WSOL,
2946
+ * a throwaway `createAccountWithSeed` account is cheaper. */
2947
+ userQuoteAccount?: Address;
2948
+ /** Any user-owned base-mint account. Defaults to the ATA, created mid-trade
2949
+ * if missing (payer funds rent), which only rescues a buy. */
2950
+ userBaseAccount?: Address;
2951
+ }
2952
+ /** `baseAmountOut` is net to the buyer: the program reads `amount` as `base_to_user`. */
2953
+ declare function buyExactOut(params: LaunchpadBuyParams & {
2954
+ baseAmountOut: bigint;
2955
+ }): Promise<{
2956
+ instruction: Instruction;
2957
+ quote: BuyQuote;
2958
+ }>;
2959
+ declare function buyExactIn(params: LaunchpadBuyParams & {
2960
+ quoteAmountIn: bigint;
2961
+ }): Promise<{
2962
+ instruction: Instruction;
2963
+ quote: BuyQuote;
2964
+ }>;
2965
+ declare function sellExactIn(params: LaunchpadTradeParams & {
2966
+ baseAmountIn: bigint;
2967
+ }): Promise<{
2968
+ instruction: Instruction;
2969
+ quote: SellQuote;
2970
+ }>;
2971
+ /** `quoteAmountOut` is net to the seller: the program reads `amount` as `quote_to_user`. */
2972
+ declare function sellExactOut(params: LaunchpadTradeParams & {
2973
+ quoteAmountOut: bigint;
2974
+ }): Promise<{
2975
+ instruction: Instruction;
2976
+ quote: SellQuote;
2977
+ }>;
2978
+ declare function buildBuyExactInInstruction(params: LaunchpadInstructionParams & {
2979
+ amountIn: bigint;
2980
+ minAmountOut: bigint;
2981
+ }): Promise<Instruction>;
2982
+ declare function buildBuyExactOutInstruction(params: LaunchpadInstructionParams & {
2983
+ amountOut: bigint;
2984
+ maxAmountIn: bigint;
2985
+ }): Promise<Instruction>;
2986
+ declare function buildSellExactInInstruction(params: LaunchpadInstructionParams & {
2987
+ amountIn: bigint;
2988
+ minAmountOut: bigint;
2989
+ }): Promise<Instruction>;
2990
+ declare function buildSellExactOutInstruction(params: LaunchpadInstructionParams & {
2991
+ amountOut: bigint;
2992
+ maxAmountIn: bigint;
2993
+ }): Promise<Instruction>;
2994
+ /** Percent of the curve's real base sold (0-100); 100 is the migration threshold. */
2995
+ declare function calculateBondingCurveProgress(params: {
2996
+ realBaseReserves: bigint;
2997
+ initialRealBase: bigint;
2998
+ }): number;
2999
+ declare namespace index_d_exports$1 {
3000
+ export { index_d_exports$17 as accounts, create_d_exports as create, index_d_exports$16 as errors, index_d_exports$14 as events, index_d_exports$13 as instructions, migrate_d_exports as migrate, index_d_exports$15 as pda, index_d_exports$12 as plugins, trade_d_exports as trade, index_d_exports$18 as types };
3001
+ }
3002
+ declare namespace fee_decay_d_exports {
3003
+ export { calculateFeeDecayPremium };
3004
+ }
3005
+ /** Premium in bps, rounded up. */
3006
+ declare function calculateFeeDecayPremium(params: {
3007
+ currentTimestamp: bigint;
3008
+ createdAtTimestamp: bigint;
3009
+ decaySeconds: number;
3010
+ decayStartBps: number;
3011
+ standardFeeBps: number;
3012
+ }): bigint;
3013
+ declare namespace fees_d_exports {
3014
+ export { FeeSplit, FeeSplitArgs, splitFeeAmount };
3015
+ }
3016
+ interface FeeSplitArgs {
3017
+ feeAmount: bigint;
3018
+ protocolBps: number;
3019
+ lpBps: number;
3020
+ baseTotalBps: number;
3021
+ decayPremiumBps: number;
3022
+ }
3023
+ interface FeeSplit {
3024
+ protocol: bigint;
3025
+ lp: bigint;
3026
+ creator: bigint;
3027
+ /** Decay share already included in `protocol`, not a separate payout. */
3028
+ sniper: bigint;
3029
+ }
3030
+ /** LP/creator round down; protocol absorbs the decay premium and all remainders. */
3031
+ declare function splitFeeAmount(args: FeeSplitArgs): FeeSplit;
3032
+ declare namespace index_d_exports$2 {
3033
+ export { amm_d_exports as amm, fee_decay_d_exports as feeDecay, fees_d_exports as fees };
3034
+ }
3035
+ //#endregion
3036
+ //#region src/nexus/generated/accounts/altRegistry.d.ts
3037
+ declare const ALT_REGISTRY_DISCRIMINATOR: ReadonlyUint8Array;
3038
+ declare function getAltRegistryDiscriminatorBytes(): ReadonlyUint8Array;
3039
+ type AltRegistry = {
3040
+ discriminator: ReadonlyUint8Array;
3041
+ version: number;
3042
+ bump: number;
3043
+ altAddress: Address;
3044
+ reserved: ReadonlyUint8Array;
3045
+ };
3046
+ type AltRegistryArgs = {
3047
+ version: number;
3048
+ bump: number;
3049
+ altAddress: Address;
3050
+ reserved: ReadonlyUint8Array;
3051
+ };
3052
+ /** Gets the encoder for {@link AltRegistryArgs} account data. */
3053
+ declare function getAltRegistryEncoder(): FixedSizeEncoder<AltRegistryArgs>;
3054
+ /** Gets the decoder for {@link AltRegistry} account data. */
3055
+ declare function getAltRegistryDecoder(): FixedSizeDecoder<AltRegistry>;
3056
+ /** Gets the codec for {@link AltRegistry} account data. */
3057
+ declare function getAltRegistryCodec(): FixedSizeCodec<AltRegistryArgs, AltRegistry>;
3058
+ declare function decodeAltRegistry<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<AltRegistry, TAddress>;
3059
+ declare function decodeAltRegistry<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<AltRegistry, TAddress>;
3060
+ declare function fetchAltRegistry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<AltRegistry, TAddress>>;
3061
+ declare function fetchMaybeAltRegistry<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<AltRegistry, TAddress>>;
3062
+ declare function fetchAllAltRegistry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<AltRegistry>[]>;
3063
+ declare function fetchAllMaybeAltRegistry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<AltRegistry>[]>;
3064
+ declare function getAltRegistrySize(): number;
3065
+ //#endregion
3066
+ //#region src/nexus/generated/accounts/creatorFeeConfig.d.ts
3067
+ declare const CREATOR_FEE_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
3068
+ declare function getCreatorFeeConfigDiscriminatorBytes(): ReadonlyUint8Array;
3069
+ type CreatorFeeConfig = {
3070
+ discriminator: ReadonlyUint8Array;
3071
+ version: number;
3072
+ bump: number;
3073
+ platformIndex: number;
3074
+ platformId: ReadonlyUint8Array;
3075
+ quoteMint: Address;
3076
+ reserved: ReadonlyUint8Array;
3077
+ };
3078
+ type CreatorFeeConfigArgs = {
3079
+ version: number;
3080
+ bump: number;
3081
+ platformIndex: number;
3082
+ platformId: ReadonlyUint8Array;
3083
+ quoteMint: Address;
3084
+ reserved: ReadonlyUint8Array;
3085
+ };
3086
+ /** Gets the encoder for {@link CreatorFeeConfigArgs} account data. */
3087
+ declare function getCreatorFeeConfigEncoder(): FixedSizeEncoder<CreatorFeeConfigArgs>;
3088
+ /** Gets the decoder for {@link CreatorFeeConfig} account data. */
3089
+ declare function getCreatorFeeConfigDecoder(): FixedSizeDecoder<CreatorFeeConfig>;
3090
+ /** Gets the codec for {@link CreatorFeeConfig} account data. */
3091
+ declare function getCreatorFeeConfigCodec(): FixedSizeCodec<CreatorFeeConfigArgs, CreatorFeeConfig>;
3092
+ declare function decodeCreatorFeeConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CreatorFeeConfig, TAddress>;
3093
+ declare function decodeCreatorFeeConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CreatorFeeConfig, TAddress>;
3094
+ declare function fetchCreatorFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CreatorFeeConfig, TAddress>>;
3095
+ declare function fetchMaybeCreatorFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CreatorFeeConfig, TAddress>>;
3096
+ declare function fetchAllCreatorFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CreatorFeeConfig>[]>;
3097
+ declare function fetchAllMaybeCreatorFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CreatorFeeConfig>[]>;
3098
+ declare function getCreatorFeeConfigSize(): number;
3099
+ //#endregion
3100
+ //#region src/nexus/generated/types/authPlatformEntry.d.ts
3101
+ type AuthPlatformEntry = {
3102
+ name: string;
3103
+ enabled: boolean;
3104
+ };
3105
+ type AuthPlatformEntryArgs = AuthPlatformEntry;
3106
+ declare function getAuthPlatformEntryEncoder(): Encoder<AuthPlatformEntryArgs>;
3107
+ declare function getAuthPlatformEntryDecoder(): Decoder<AuthPlatformEntry>;
3108
+ declare function getAuthPlatformEntryCodec(): Codec<AuthPlatformEntryArgs, AuthPlatformEntry>;
3109
+ //#endregion
3110
+ //#region src/nexus/generated/types/callerType.d.ts
3111
+ declare enum CallerType {
3112
+ PlatformBondingCurve = 0,
3113
+ PlatformPool = 1
3114
+ }
3115
+ type CallerTypeArgs = CallerType;
3116
+ declare function getCallerTypeEncoder(): FixedSizeEncoder<CallerTypeArgs>;
3117
+ declare function getCallerTypeDecoder(): FixedSizeDecoder<CallerType>;
3118
+ declare function getCallerTypeCodec(): FixedSizeCodec<CallerTypeArgs, CallerType>;
3119
+ //#endregion
3120
+ //#region src/nexus/generated/types/dexFees.d.ts
3121
+ type DexFees = {
3122
+ creationFeeCents: bigint;
3123
+ protocolFeeBps: number;
3124
+ lpFeeBps: number;
3125
+ creatorFeeBps: number;
3126
+ feeDecaySeconds: number;
3127
+ feeDecayStartBps: number;
3128
+ };
3129
+ type DexFeesArgs = {
3130
+ creationFeeCents: number | bigint;
3131
+ protocolFeeBps: number;
3132
+ lpFeeBps: number;
3133
+ creatorFeeBps: number;
3134
+ feeDecaySeconds: number;
3135
+ feeDecayStartBps: number;
3136
+ };
3137
+ declare function getDexFeesEncoder(): FixedSizeEncoder<DexFeesArgs>;
3138
+ declare function getDexFeesDecoder(): FixedSizeDecoder<DexFees>;
3139
+ declare function getDexFeesCodec(): FixedSizeCodec<DexFeesArgs, DexFees>;
3140
+ //#endregion
3141
+ //#region src/nexus/generated/types/feeConfig.d.ts
3142
+ type FeeConfig = {
3143
+ name: string;
3144
+ launchpad: LaunchpadFees;
3145
+ dex: DexFees;
3146
+ reserved: ReadonlyUint8Array;
3147
+ };
3148
+ type FeeConfigArgs = {
3149
+ name: string;
3150
+ launchpad: LaunchpadFeesArgs;
3151
+ dex: DexFeesArgs;
3152
+ reserved: ReadonlyUint8Array;
3153
+ };
3154
+ declare function getFeeConfigEncoder(): Encoder<FeeConfigArgs>;
3155
+ declare function getFeeConfigDecoder(): Decoder<FeeConfig>;
3156
+ declare function getFeeConfigCodec(): Codec<FeeConfigArgs, FeeConfig>;
3157
+ //#endregion
3158
+ //#region src/nexus/generated/types/launchpadFees.d.ts
3159
+ type LaunchpadFees = {
3160
+ creationFeeCents: bigint;
3161
+ protocolFeeBps: number;
3162
+ creatorFeeBps: number;
3163
+ feeDecaySeconds: number;
3164
+ feeDecayStartBps: number;
3165
+ };
3166
+ type LaunchpadFeesArgs = {
3167
+ creationFeeCents: number | bigint;
3168
+ protocolFeeBps: number;
3169
+ creatorFeeBps: number;
3170
+ feeDecaySeconds: number;
3171
+ feeDecayStartBps: number;
3172
+ };
3173
+ declare function getLaunchpadFeesEncoder(): FixedSizeEncoder<LaunchpadFeesArgs>;
3174
+ declare function getLaunchpadFeesDecoder(): FixedSizeDecoder<LaunchpadFees>;
3175
+ declare function getLaunchpadFeesCodec(): FixedSizeCodec<LaunchpadFeesArgs, LaunchpadFees>;
3176
+ declare namespace index_d_exports$11 {
3177
+ export { AuthPlatformEntry, AuthPlatformEntryArgs, CallerType, CallerTypeArgs, DexFees, DexFeesArgs, FeeConfig, FeeConfigArgs, LaunchpadFees, LaunchpadFeesArgs, getAuthPlatformEntryCodec, getAuthPlatformEntryDecoder, getAuthPlatformEntryEncoder, getCallerTypeCodec, getCallerTypeDecoder, getCallerTypeEncoder, getDexFeesCodec, getDexFeesDecoder, getDexFeesEncoder, getFeeConfigCodec, getFeeConfigDecoder, getFeeConfigEncoder, getLaunchpadFeesCodec, getLaunchpadFeesDecoder, getLaunchpadFeesEncoder };
3178
+ }
3179
+ //#endregion
3180
+ //#region src/nexus/generated/accounts/feePreset.d.ts
3181
+ declare const FEE_PRESET_DISCRIMINATOR: ReadonlyUint8Array;
3182
+ declare function getFeePresetDiscriminatorBytes(): ReadonlyUint8Array;
3183
+ type FeePreset = {
3184
+ discriminator: ReadonlyUint8Array;
3185
+ version: number;
3186
+ bump: number;
3187
+ index: number;
3188
+ name: string;
3189
+ launchpad: LaunchpadFees;
3190
+ dex: DexFees;
3191
+ platformConfig: Address;
3192
+ reserved: ReadonlyUint8Array;
3193
+ };
3194
+ type FeePresetArgs = {
3195
+ version: number;
3196
+ bump: number;
3197
+ index: number;
3198
+ name: string;
3199
+ launchpad: LaunchpadFeesArgs;
3200
+ dex: DexFeesArgs;
3201
+ platformConfig: Address;
3202
+ reserved: ReadonlyUint8Array;
3203
+ };
3204
+ /** Gets the encoder for {@link FeePresetArgs} account data. */
3205
+ declare function getFeePresetEncoder(): Encoder<FeePresetArgs>;
3206
+ /** Gets the decoder for {@link FeePreset} account data. */
3207
+ declare function getFeePresetDecoder(): Decoder<FeePreset>;
3208
+ /** Gets the codec for {@link FeePreset} account data. */
3209
+ declare function getFeePresetCodec(): Codec<FeePresetArgs, FeePreset>;
3210
+ declare function decodeFeePreset<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<FeePreset, TAddress>;
3211
+ declare function decodeFeePreset<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<FeePreset, TAddress>;
3212
+ declare function fetchFeePreset<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<FeePreset, TAddress>>;
3213
+ declare function fetchMaybeFeePreset<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FeePreset, TAddress>>;
3214
+ declare function fetchAllFeePreset(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<FeePreset>[]>;
3215
+ declare function fetchAllMaybeFeePreset(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<FeePreset>[]>;
3216
+ //#endregion
3217
+ //#region src/nexus/generated/accounts/globalConfig.d.ts
3218
+ declare const GLOBAL_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
3219
+ declare function getGlobalConfigDiscriminatorBytes(): ReadonlyUint8Array;
3220
+ type GlobalConfig = {
3221
+ discriminator: ReadonlyUint8Array;
3222
+ version: number;
3223
+ bump: number;
3224
+ authority: Address;
3225
+ operator: Address;
3226
+ authPlatforms: Array<AuthPlatformEntry>;
3227
+ reserved: ReadonlyUint8Array;
3228
+ };
3229
+ type GlobalConfigArgs = {
3230
+ version: number;
3231
+ bump: number;
3232
+ authority: Address;
3233
+ operator: Address;
3234
+ authPlatforms: Array<AuthPlatformEntryArgs>;
3235
+ reserved: ReadonlyUint8Array;
3236
+ };
3237
+ /** Gets the encoder for {@link GlobalConfigArgs} account data. */
3238
+ declare function getGlobalConfigEncoder(): Encoder<GlobalConfigArgs>;
3239
+ /** Gets the decoder for {@link GlobalConfig} account data. */
3240
+ declare function getGlobalConfigDecoder(): Decoder<GlobalConfig>;
3241
+ /** Gets the codec for {@link GlobalConfig} account data. */
3242
+ declare function getGlobalConfigCodec(): Codec<GlobalConfigArgs, GlobalConfig>;
3243
+ declare function decodeGlobalConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<GlobalConfig, TAddress>;
3244
+ declare function decodeGlobalConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<GlobalConfig, TAddress>;
3245
+ declare function fetchGlobalConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<GlobalConfig, TAddress>>;
3246
+ declare function fetchMaybeGlobalConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<GlobalConfig, TAddress>>;
3247
+ declare function fetchAllGlobalConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<GlobalConfig>[]>;
3248
+ declare function fetchAllMaybeGlobalConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<GlobalConfig>[]>;
3249
+ //#endregion
3250
+ //#region src/nexus/generated/accounts/partnerConfig.d.ts
3251
+ declare const PARTNER_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
3252
+ declare function getPartnerConfigDiscriminatorBytes(): ReadonlyUint8Array;
3253
+ type PartnerConfig = {
3254
+ discriminator: ReadonlyUint8Array;
3255
+ version: number;
3256
+ bump: number;
3257
+ authority: Address;
3258
+ partner: Address;
3259
+ feePreset: number;
3260
+ launchpad: LaunchpadFees;
3261
+ dex: DexFees;
3262
+ platformConfig: Address;
3263
+ reserved: ReadonlyUint8Array;
3264
+ };
3265
+ type PartnerConfigArgs = {
3266
+ version: number;
3267
+ bump: number;
3268
+ authority: Address;
3269
+ partner: Address;
3270
+ feePreset: number;
3271
+ launchpad: LaunchpadFeesArgs;
3272
+ dex: DexFeesArgs;
3273
+ platformConfig: Address;
3274
+ reserved: ReadonlyUint8Array;
3275
+ };
3276
+ /** Gets the encoder for {@link PartnerConfigArgs} account data. */
3277
+ declare function getPartnerConfigEncoder(): FixedSizeEncoder<PartnerConfigArgs>;
3278
+ /** Gets the decoder for {@link PartnerConfig} account data. */
3279
+ declare function getPartnerConfigDecoder(): FixedSizeDecoder<PartnerConfig>;
3280
+ /** Gets the codec for {@link PartnerConfig} account data. */
3281
+ declare function getPartnerConfigCodec(): FixedSizeCodec<PartnerConfigArgs, PartnerConfig>;
3282
+ declare function decodePartnerConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PartnerConfig, TAddress>;
3283
+ declare function decodePartnerConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PartnerConfig, TAddress>;
3284
+ declare function fetchPartnerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PartnerConfig, TAddress>>;
3285
+ declare function fetchMaybePartnerConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PartnerConfig, TAddress>>;
3286
+ declare function fetchAllPartnerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PartnerConfig>[]>;
3287
+ declare function fetchAllMaybePartnerConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PartnerConfig>[]>;
3288
+ declare function getPartnerConfigSize(): number;
3289
+ //#endregion
3290
+ //#region src/nexus/generated/accounts/partnerMetadata.d.ts
3291
+ declare const PARTNER_METADATA_DISCRIMINATOR: ReadonlyUint8Array;
3292
+ declare function getPartnerMetadataDiscriminatorBytes(): ReadonlyUint8Array;
3293
+ type PartnerMetadata = {
3294
+ discriminator: ReadonlyUint8Array;
3295
+ version: number;
3296
+ bump: number;
3297
+ partner: Address;
3298
+ name: string;
3299
+ note: string;
3300
+ addedAt: bigint;
3301
+ updatedAt: bigint;
3302
+ platformConfig: Address;
3303
+ reserved: ReadonlyUint8Array;
3304
+ };
3305
+ type PartnerMetadataArgs = {
3306
+ version: number;
3307
+ bump: number;
3308
+ partner: Address;
3309
+ name: string;
3310
+ note: string;
3311
+ addedAt: number | bigint;
3312
+ updatedAt: number | bigint;
3313
+ platformConfig: Address;
3314
+ reserved: ReadonlyUint8Array;
3315
+ };
3316
+ /** Gets the encoder for {@link PartnerMetadataArgs} account data. */
3317
+ declare function getPartnerMetadataEncoder(): Encoder<PartnerMetadataArgs>;
3318
+ /** Gets the decoder for {@link PartnerMetadata} account data. */
3319
+ declare function getPartnerMetadataDecoder(): Decoder<PartnerMetadata>;
3320
+ /** Gets the codec for {@link PartnerMetadata} account data. */
3321
+ declare function getPartnerMetadataCodec(): Codec<PartnerMetadataArgs, PartnerMetadata>;
3322
+ declare function decodePartnerMetadata<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PartnerMetadata, TAddress>;
3323
+ declare function decodePartnerMetadata<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PartnerMetadata, TAddress>;
3324
+ declare function fetchPartnerMetadata<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PartnerMetadata, TAddress>>;
3325
+ declare function fetchMaybePartnerMetadata<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PartnerMetadata, TAddress>>;
3326
+ declare function fetchAllPartnerMetadata(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PartnerMetadata>[]>;
3327
+ declare function fetchAllMaybePartnerMetadata(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PartnerMetadata>[]>;
3328
+ //#endregion
3329
+ //#region src/nexus/generated/accounts/rewardState.d.ts
3330
+ declare const REWARD_STATE_DISCRIMINATOR: ReadonlyUint8Array;
3331
+ declare function getRewardStateDiscriminatorBytes(): ReadonlyUint8Array;
3332
+ type RewardState = {
3333
+ discriminator: ReadonlyUint8Array;
3334
+ version: number;
3335
+ bump: number;
3336
+ stakingConfig: Address;
3337
+ rewardMint: Address;
3338
+ vault: Address;
3339
+ totalClaimed: bigint;
3340
+ usdcPrice: bigint;
3341
+ usdcPriceUpdatedAt: bigint;
3342
+ isStablecoin: number;
3343
+ disabled: number;
3344
+ reserved: ReadonlyUint8Array;
3345
+ };
3346
+ type RewardStateArgs = {
3347
+ version: number;
3348
+ bump: number;
3349
+ stakingConfig: Address;
3350
+ rewardMint: Address;
3351
+ vault: Address;
3352
+ totalClaimed: number | bigint;
3353
+ usdcPrice: number | bigint;
3354
+ usdcPriceUpdatedAt: number | bigint;
3355
+ isStablecoin: number;
3356
+ disabled: number;
3357
+ reserved: ReadonlyUint8Array;
3358
+ };
3359
+ /** Gets the encoder for {@link RewardStateArgs} account data. */
3360
+ declare function getRewardStateEncoder(): FixedSizeEncoder<RewardStateArgs>;
3361
+ /** Gets the decoder for {@link RewardState} account data. */
3362
+ declare function getRewardStateDecoder(): FixedSizeDecoder<RewardState>;
3363
+ /** Gets the codec for {@link RewardState} account data. */
3364
+ declare function getRewardStateCodec(): FixedSizeCodec<RewardStateArgs, RewardState>;
3365
+ declare function decodeRewardState<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<RewardState, TAddress>;
3366
+ declare function decodeRewardState<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<RewardState, TAddress>;
3367
+ declare function fetchRewardState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<RewardState, TAddress>>;
3368
+ declare function fetchMaybeRewardState<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<RewardState, TAddress>>;
3369
+ declare function fetchAllRewardState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<RewardState>[]>;
3370
+ declare function fetchAllMaybeRewardState(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<RewardState>[]>;
3371
+ declare function getRewardStateSize(): number;
3372
+ //#endregion
3373
+ //#region src/nexus/generated/accounts/sendNexus.accounts.d.ts
3374
+ /** Account kinds of the sendNexus program. */
3375
+ type SendNexusAccountType = "altRegistry" | "creatorFeeConfig" | "feePreset" | "globalConfig" | "partnerConfig" | "partnerMetadata" | "rewardState" | "stakingConfig" | "userRewardDebt" | "userStakePosition";
3376
+ /**
3377
+ * Identifies sendNexus account data by its discriminators.
3378
+ * Returns `null` when the account belongs to another program or the data matches no known account.
3379
+ */
3380
+ declare function identifySendNexusAccount(account: {
3381
+ data: ReadonlyUint8Array;
3382
+ programAddress: Address;
3383
+ } | ReadonlyUint8Array): SendNexusAccountType | null;
3384
+ //#endregion
3385
+ //#region src/nexus/generated/accounts/stakingConfig.d.ts
3386
+ declare const STAKING_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
3387
+ declare function getStakingConfigDiscriminatorBytes(): ReadonlyUint8Array;
3388
+ type StakingConfig = {
3389
+ discriminator: ReadonlyUint8Array;
3390
+ version: number;
3391
+ bump: number;
3392
+ stakingMint: Address;
3393
+ totalStaked: bigint;
3394
+ stakingEnabled: boolean;
3395
+ rewardCount: number;
3396
+ reserved: ReadonlyUint8Array;
3397
+ };
3398
+ type StakingConfigArgs = {
3399
+ version: number;
3400
+ bump: number;
3401
+ stakingMint: Address;
3402
+ totalStaked: number | bigint;
3403
+ stakingEnabled: boolean;
3404
+ rewardCount: number;
3405
+ reserved: ReadonlyUint8Array;
3406
+ };
3407
+ /** Gets the encoder for {@link StakingConfigArgs} account data. */
3408
+ declare function getStakingConfigEncoder(): FixedSizeEncoder<StakingConfigArgs>;
3409
+ /** Gets the decoder for {@link StakingConfig} account data. */
3410
+ declare function getStakingConfigDecoder(): FixedSizeDecoder<StakingConfig>;
3411
+ /** Gets the codec for {@link StakingConfig} account data. */
3412
+ declare function getStakingConfigCodec(): FixedSizeCodec<StakingConfigArgs, StakingConfig>;
3413
+ declare function decodeStakingConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<StakingConfig, TAddress>;
3414
+ declare function decodeStakingConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<StakingConfig, TAddress>;
3415
+ declare function fetchStakingConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<StakingConfig, TAddress>>;
3416
+ declare function fetchMaybeStakingConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<StakingConfig, TAddress>>;
3417
+ declare function fetchAllStakingConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<StakingConfig>[]>;
3418
+ declare function fetchAllMaybeStakingConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<StakingConfig>[]>;
3419
+ declare function getStakingConfigSize(): number;
3420
+ //#endregion
3421
+ //#region src/nexus/generated/accounts/userRewardDebt.d.ts
3422
+ declare const USER_REWARD_DEBT_DISCRIMINATOR: ReadonlyUint8Array;
3423
+ declare function getUserRewardDebtDiscriminatorBytes(): ReadonlyUint8Array;
3424
+ type UserRewardDebt = {
3425
+ discriminator: ReadonlyUint8Array;
3426
+ version: number;
3427
+ bump: number;
3428
+ user: Address;
3429
+ stakingMint: Address;
3430
+ rewardMint: Address;
3431
+ accSnapshot: bigint;
3432
+ claimed: bigint;
3433
+ amountSnapshot: bigint;
3434
+ settledVersion: number;
3435
+ owed: bigint;
3436
+ reserved: ReadonlyUint8Array;
3437
+ };
3438
+ type UserRewardDebtArgs = {
3439
+ version: number;
3440
+ bump: number;
3441
+ user: Address;
3442
+ stakingMint: Address;
3443
+ rewardMint: Address;
3444
+ accSnapshot: number | bigint;
3445
+ claimed: number | bigint;
3446
+ amountSnapshot: number | bigint;
3447
+ settledVersion: number;
3448
+ owed: number | bigint;
3449
+ reserved: ReadonlyUint8Array;
3450
+ };
3451
+ /** Gets the encoder for {@link UserRewardDebtArgs} account data. */
3452
+ declare function getUserRewardDebtEncoder(): FixedSizeEncoder<UserRewardDebtArgs>;
3453
+ /** Gets the decoder for {@link UserRewardDebt} account data. */
3454
+ declare function getUserRewardDebtDecoder(): FixedSizeDecoder<UserRewardDebt>;
3455
+ /** Gets the codec for {@link UserRewardDebt} account data. */
3456
+ declare function getUserRewardDebtCodec(): FixedSizeCodec<UserRewardDebtArgs, UserRewardDebt>;
3457
+ declare function decodeUserRewardDebt<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<UserRewardDebt, TAddress>;
3458
+ declare function decodeUserRewardDebt<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<UserRewardDebt, TAddress>;
3459
+ declare function fetchUserRewardDebt<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<UserRewardDebt, TAddress>>;
3460
+ declare function fetchMaybeUserRewardDebt<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<UserRewardDebt, TAddress>>;
3461
+ declare function fetchAllUserRewardDebt(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<UserRewardDebt>[]>;
3462
+ declare function fetchAllMaybeUserRewardDebt(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<UserRewardDebt>[]>;
3463
+ declare function getUserRewardDebtSize(): number;
3464
+ //#endregion
3465
+ //#region src/nexus/generated/accounts/userStakePosition.d.ts
3466
+ declare const USER_STAKE_POSITION_DISCRIMINATOR: ReadonlyUint8Array;
3467
+ declare function getUserStakePositionDiscriminatorBytes(): ReadonlyUint8Array;
3468
+ type UserStakePosition = {
3469
+ discriminator: ReadonlyUint8Array;
3470
+ version: number;
3471
+ bump: number;
3472
+ user: Address;
3473
+ stakingMint: Address;
3474
+ amount: bigint;
3475
+ stakeVersion: number;
3476
+ settledCount: number;
3477
+ reserved: ReadonlyUint8Array;
3478
+ };
3479
+ type UserStakePositionArgs = {
3480
+ version: number;
3481
+ bump: number;
3482
+ user: Address;
3483
+ stakingMint: Address;
3484
+ amount: number | bigint;
3485
+ stakeVersion: number;
3486
+ settledCount: number;
3487
+ reserved: ReadonlyUint8Array;
3488
+ };
3489
+ /** Gets the encoder for {@link UserStakePositionArgs} account data. */
3490
+ declare function getUserStakePositionEncoder(): FixedSizeEncoder<UserStakePositionArgs>;
3491
+ /** Gets the decoder for {@link UserStakePosition} account data. */
3492
+ declare function getUserStakePositionDecoder(): FixedSizeDecoder<UserStakePosition>;
3493
+ /** Gets the codec for {@link UserStakePosition} account data. */
3494
+ declare function getUserStakePositionCodec(): FixedSizeCodec<UserStakePositionArgs, UserStakePosition>;
3495
+ declare function decodeUserStakePosition<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<UserStakePosition, TAddress>;
3496
+ declare function decodeUserStakePosition<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<UserStakePosition, TAddress>;
3497
+ declare function fetchUserStakePosition<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<UserStakePosition, TAddress>>;
3498
+ declare function fetchMaybeUserStakePosition<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<UserStakePosition, TAddress>>;
3499
+ declare function fetchAllUserStakePosition(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<UserStakePosition>[]>;
3500
+ declare function fetchAllMaybeUserStakePosition(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<UserStakePosition>[]>;
3501
+ declare function getUserStakePositionSize(): number;
3502
+ declare namespace index_d_exports$10 {
3503
+ export { ALT_REGISTRY_DISCRIMINATOR, AltRegistry, AltRegistryArgs, CREATOR_FEE_CONFIG_DISCRIMINATOR, CreatorFeeConfig, CreatorFeeConfigArgs, FEE_PRESET_DISCRIMINATOR, FeePreset, FeePresetArgs, GLOBAL_CONFIG_DISCRIMINATOR, GlobalConfig, GlobalConfigArgs, PARTNER_CONFIG_DISCRIMINATOR, PARTNER_METADATA_DISCRIMINATOR, PartnerConfig, PartnerConfigArgs, PartnerMetadata, PartnerMetadataArgs, REWARD_STATE_DISCRIMINATOR, RewardState, RewardStateArgs, STAKING_CONFIG_DISCRIMINATOR, SendNexusAccountType, StakingConfig, StakingConfigArgs, USER_REWARD_DEBT_DISCRIMINATOR, USER_STAKE_POSITION_DISCRIMINATOR, UserRewardDebt, UserRewardDebtArgs, UserStakePosition, UserStakePositionArgs, decodeAltRegistry, decodeCreatorFeeConfig, decodeFeePreset, decodeGlobalConfig, decodePartnerConfig, decodePartnerMetadata, decodeRewardState, decodeStakingConfig, decodeUserRewardDebt, decodeUserStakePosition, fetchAllAltRegistry, fetchAllCreatorFeeConfig, fetchAllFeePreset, fetchAllGlobalConfig, fetchAllMaybeAltRegistry, fetchAllMaybeCreatorFeeConfig, fetchAllMaybeFeePreset, fetchAllMaybeGlobalConfig, fetchAllMaybePartnerConfig, fetchAllMaybePartnerMetadata, fetchAllMaybeRewardState, fetchAllMaybeStakingConfig, fetchAllMaybeUserRewardDebt, fetchAllMaybeUserStakePosition, fetchAllPartnerConfig, fetchAllPartnerMetadata, fetchAllRewardState, fetchAllStakingConfig, fetchAllUserRewardDebt, fetchAllUserStakePosition, fetchAltRegistry, fetchCreatorFeeConfig, fetchFeePreset, fetchGlobalConfig, fetchMaybeAltRegistry, fetchMaybeCreatorFeeConfig, fetchMaybeFeePreset, fetchMaybeGlobalConfig, fetchMaybePartnerConfig, fetchMaybePartnerMetadata, fetchMaybeRewardState, fetchMaybeStakingConfig, fetchMaybeUserRewardDebt, fetchMaybeUserStakePosition, fetchPartnerConfig, fetchPartnerMetadata, fetchRewardState, fetchStakingConfig, fetchUserRewardDebt, fetchUserStakePosition, getAltRegistryCodec, getAltRegistryDecoder, getAltRegistryDiscriminatorBytes, getAltRegistryEncoder, getAltRegistrySize, getCreatorFeeConfigCodec, getCreatorFeeConfigDecoder, getCreatorFeeConfigDiscriminatorBytes, getCreatorFeeConfigEncoder, getCreatorFeeConfigSize, getFeePresetCodec, getFeePresetDecoder, getFeePresetDiscriminatorBytes, getFeePresetEncoder, getGlobalConfigCodec, getGlobalConfigDecoder, getGlobalConfigDiscriminatorBytes, getGlobalConfigEncoder, getPartnerConfigCodec, getPartnerConfigDecoder, getPartnerConfigDiscriminatorBytes, getPartnerConfigEncoder, getPartnerConfigSize, getPartnerMetadataCodec, getPartnerMetadataDecoder, getPartnerMetadataDiscriminatorBytes, getPartnerMetadataEncoder, getRewardStateCodec, getRewardStateDecoder, getRewardStateDiscriminatorBytes, getRewardStateEncoder, getRewardStateSize, getStakingConfigCodec, getStakingConfigDecoder, getStakingConfigDiscriminatorBytes, getStakingConfigEncoder, getStakingConfigSize, getUserRewardDebtCodec, getUserRewardDebtDecoder, getUserRewardDebtDiscriminatorBytes, getUserRewardDebtEncoder, getUserRewardDebtSize, getUserStakePositionCodec, getUserStakePositionDecoder, getUserStakePositionDiscriminatorBytes, getUserStakePositionEncoder, getUserStakePositionSize, identifySendNexusAccount };
3504
+ }
3505
+ //#endregion
3506
+ //#region src/nexus/generated/events/anchorEventCpiDiscriminator.framing.d.ts
3507
+ /**
3508
+ * Shared event-framing tag prepended to every CPI-framed event.
3509
+ *
3510
+ * `containsBytes(data, ANCHOR_EVENT_CPI_DISCRIMINATOR, 0)` checks whether data is a framed event
3511
+ * at all — including event kinds unknown to this program.
3512
+ */
3513
+ declare const ANCHOR_EVENT_CPI_DISCRIMINATOR: ReadonlyUint8Array;
3514
+ declare function getAnchorEventCpiDiscriminatorBytes(): ReadonlyUint8Array;
3515
+ //#endregion
3516
+ //#region src/nexus/generated/events/claimEvent.d.ts
3517
+ declare const CLAIM_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
3518
+ declare function getClaimEventDiscriminatorBytes(): ReadonlyUint8Array;
3519
+ type ClaimEvent = {
3520
+ user: Address;
3521
+ stakingConfig: Address;
3522
+ rewardMint: Address;
3523
+ amount: bigint;
3524
+ timestamp: bigint;
3525
+ };
3526
+ declare function getClaimEventDecoder(): FixedSizeDecoder<ClaimEvent>;
3527
+ /**
3528
+ * Checks whether the event data matches the framing and discriminator bytes of a
3529
+ * {@link ClaimEvent}, without decoding. Never throws.
3530
+ *
3531
+ * Returns `false` unless `event.programAddress` is SEND_NEXUS_PROGRAM_ADDRESS.
3532
+ * Raw bytes carry no emitter and SKIP that check.
3533
+ *
3534
+ * @see parseClaimEvent to decode the matching data
3535
+ */
3536
+ declare function isClaimEvent(event: {
3537
+ data: ReadonlyUint8Array;
3538
+ programAddress: Address;
3539
+ } | ReadonlyUint8Array): boolean;
3540
+ /**
3541
+ * Parses raw event data as a {@link ClaimEvent}. Returns `null` on framing or discriminator
3542
+ * mismatch; throws if the event matches but its body fails to decode.
3543
+ *
3544
+ * Returns `null` unless `event.programAddress` is SEND_NEXUS_PROGRAM_ADDRESS.
3545
+ * Raw bytes carry no emitter and SKIP that check.
3546
+ *
3547
+ * @see isClaimEvent to check without decoding
3548
+ * @see identifySendNexusEvent to identify any program event
3549
+ * @see parseSendNexusEvent
3550
+ */
3551
+ declare function parseClaimEvent(event: {
3552
+ data: ReadonlyUint8Array;
3553
+ programAddress: Address;
3554
+ } | ReadonlyUint8Array): ClaimEvent | null;
3555
+ //#endregion
3556
+ //#region src/nexus/generated/events/stakeEvent.d.ts
3557
+ declare const STAKE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
3558
+ declare function getStakeEventDiscriminatorBytes(): ReadonlyUint8Array;
3559
+ type StakeEvent = {
3560
+ user: Address;
3561
+ stakingConfig: Address;
3562
+ amount: bigint;
3563
+ totalStaked: bigint;
3564
+ timestamp: bigint;
3565
+ };
3566
+ declare function getStakeEventDecoder(): FixedSizeDecoder<StakeEvent>;
3567
+ /**
3568
+ * Checks whether the event data matches the framing and discriminator bytes of a
3569
+ * {@link StakeEvent}, without decoding. Never throws.
3570
+ *
3571
+ * Returns `false` unless `event.programAddress` is SEND_NEXUS_PROGRAM_ADDRESS.
3572
+ * Raw bytes carry no emitter and SKIP that check.
3573
+ *
3574
+ * @see parseStakeEvent to decode the matching data
3575
+ */
3576
+ declare function isStakeEvent(event: {
3577
+ data: ReadonlyUint8Array;
3578
+ programAddress: Address;
3579
+ } | ReadonlyUint8Array): boolean;
3580
+ /**
3581
+ * Parses raw event data as a {@link StakeEvent}. Returns `null` on framing or discriminator
3582
+ * mismatch; throws if the event matches but its body fails to decode.
3583
+ *
3584
+ * Returns `null` unless `event.programAddress` is SEND_NEXUS_PROGRAM_ADDRESS.
3585
+ * Raw bytes carry no emitter and SKIP that check.
3586
+ *
3587
+ * @see isStakeEvent to check without decoding
3588
+ * @see identifySendNexusEvent to identify any program event
3589
+ * @see parseSendNexusEvent
3590
+ */
3591
+ declare function parseStakeEvent(event: {
3592
+ data: ReadonlyUint8Array;
3593
+ programAddress: Address;
3594
+ } | ReadonlyUint8Array): StakeEvent | null;
3595
+ //#endregion
3596
+ //#region src/nexus/generated/events/unstakeEvent.d.ts
3597
+ declare const UNSTAKE_EVENT_DISCRIMINATOR: ReadonlyUint8Array;
3598
+ declare function getUnstakeEventDiscriminatorBytes(): ReadonlyUint8Array;
3599
+ type UnstakeEvent = {
3600
+ user: Address;
3601
+ stakingConfig: Address;
3602
+ amount: bigint;
3603
+ totalStaked: bigint;
3604
+ timestamp: bigint;
3605
+ };
3606
+ declare function getUnstakeEventDecoder(): FixedSizeDecoder<UnstakeEvent>;
3607
+ /**
3608
+ * Checks whether the event data matches the framing and discriminator bytes of a
3609
+ * {@link UnstakeEvent}, without decoding. Never throws.
3610
+ *
3611
+ * Returns `false` unless `event.programAddress` is SEND_NEXUS_PROGRAM_ADDRESS.
3612
+ * Raw bytes carry no emitter and SKIP that check.
3613
+ *
3614
+ * @see parseUnstakeEvent to decode the matching data
3615
+ */
3616
+ declare function isUnstakeEvent(event: {
3617
+ data: ReadonlyUint8Array;
3618
+ programAddress: Address;
3619
+ } | ReadonlyUint8Array): boolean;
3620
+ /**
3621
+ * Parses raw event data as a {@link UnstakeEvent}. Returns `null` on framing or discriminator
3622
+ * mismatch; throws if the event matches but its body fails to decode.
3623
+ *
3624
+ * Returns `null` unless `event.programAddress` is SEND_NEXUS_PROGRAM_ADDRESS.
3625
+ * Raw bytes carry no emitter and SKIP that check.
3626
+ *
3627
+ * @see isUnstakeEvent to check without decoding
3628
+ * @see identifySendNexusEvent to identify any program event
3629
+ * @see parseSendNexusEvent
3630
+ */
3631
+ declare function parseUnstakeEvent(event: {
3632
+ data: ReadonlyUint8Array;
3633
+ programAddress: Address;
3634
+ } | ReadonlyUint8Array): UnstakeEvent | null;
3635
+ //#endregion
3636
+ //#region src/nexus/generated/events/sendNexus.events.d.ts
3637
+ /** Event kinds of the sendNexus program. */
3638
+ type SendNexusEventType = "claimEvent" | "stakeEvent" | "unstakeEvent";
3639
+ /**
3640
+ * Identifies sendNexus event data by its discriminators, without decoding.
3641
+ * Returns `null` when the event was emitted by another program or no known event matches.
3642
+ * Never throws.
3643
+ *
3644
+ * Raw bytes carry no emitter and SKIP the program check.
3645
+ */
3646
+ declare function identifySendNexusEvent(event: {
3647
+ data: ReadonlyUint8Array;
3648
+ programAddress: Address;
3649
+ } | ReadonlyUint8Array): SendNexusEventType | null;
3650
+ /** Parsed sendNexus event: the event kind tag plus its decoded payload. */
3651
+ type ParsedSendNexusEvent = {
3652
+ eventType: "claimEvent";
3653
+ data: ClaimEvent;
3654
+ } | {
3655
+ eventType: "stakeEvent";
3656
+ data: StakeEvent;
3657
+ } | {
3658
+ eventType: "unstakeEvent";
3659
+ data: UnstakeEvent;
3660
+ };
3661
+ /**
3662
+ * Parses sendNexus event data into its event kind and decoded payload.
3663
+ * Returns `null` when the event was emitted by another program or no known event matches;
3664
+ * throws if a matched event fails to decode.
3665
+ *
3666
+ * Raw bytes carry no emitter and SKIP the program check.
3667
+ */
3668
+ declare function parseSendNexusEvent(event: {
3669
+ data: ReadonlyUint8Array;
3670
+ programAddress: Address;
3671
+ } | ReadonlyUint8Array): ParsedSendNexusEvent | null;
3672
+ declare namespace index_d_exports$9 {
3673
+ export { ANCHOR_EVENT_CPI_DISCRIMINATOR, CLAIM_EVENT_DISCRIMINATOR, ClaimEvent, ParsedSendNexusEvent, STAKE_EVENT_DISCRIMINATOR, SendNexusEventType, StakeEvent, UNSTAKE_EVENT_DISCRIMINATOR, UnstakeEvent, getAnchorEventCpiDiscriminatorBytes, getClaimEventDecoder, getClaimEventDiscriminatorBytes, getStakeEventDecoder, getStakeEventDiscriminatorBytes, getUnstakeEventDecoder, getUnstakeEventDiscriminatorBytes, identifySendNexusEvent, isClaimEvent, isStakeEvent, isUnstakeEvent, parseClaimEvent, parseSendNexusEvent, parseStakeEvent, parseUnstakeEvent };
3674
+ }
3675
+ //#endregion
3676
+ //#region src/nexus/generated/errors/sendNexus.d.ts
3677
+ /** InsufficientStake: Insufficient stake balance */
3678
+ declare const SEND_NEXUS_ERROR__INSUFFICIENT_STAKE = 6e3;
3679
+ /** InvalidRewardMint: Invalid reward mint */
3680
+ declare const SEND_NEXUS_ERROR__INVALID_REWARD_MINT = 6001;
3681
+ /** InvalidVault: Invalid vault */
3682
+ declare const SEND_NEXUS_ERROR__INVALID_VAULT = 6002;
3683
+ /** StakingAlreadyEnabled: Staking already enabled */
3684
+ declare const SEND_NEXUS_ERROR__STAKING_ALREADY_ENABLED = 6005;
3685
+ /** StakingNotEnabled: Staking not enabled */
3686
+ declare const SEND_NEXUS_ERROR__STAKING_NOT_ENABLED = 6006;
3687
+ /** InvalidStakingMint: Invalid staking mint */
3688
+ declare const SEND_NEXUS_ERROR__INVALID_STAKING_MINT = 6007;
3689
+ /** InvalidRewardState: Invalid reward state */
3690
+ declare const SEND_NEXUS_ERROR__INVALID_REWARD_STATE = 6008;
3691
+ /** InvalidMint: Invalid mint */
3692
+ declare const SEND_NEXUS_ERROR__INVALID_MINT = 6009;
3693
+ /** InvalidDestination: Invalid destination account */
3694
+ declare const SEND_NEXUS_ERROR__INVALID_DESTINATION = 6010;
3695
+ /** StakingMintAlreadyBound: Staking mint already bound */
3696
+ declare const SEND_NEXUS_ERROR__STAKING_MINT_ALREADY_BOUND = 6011;
3697
+ /** InvalidFeePreset: Invalid fee configuration */
3698
+ declare const SEND_NEXUS_ERROR__INVALID_FEE_PRESET = 6012;
3699
+ /** InvalidPresetIndex: Invalid preset index */
3700
+ declare const SEND_NEXUS_ERROR__INVALID_PRESET_INDEX = 6013;
3701
+ /** MissingFeeSource: Must provide either fee_preset or custom fees */
3702
+ declare const SEND_NEXUS_ERROR__MISSING_FEE_SOURCE = 6014;
3703
+ /** AmbiguousFeeSource: Cannot specify both fee_preset and custom_fees */
3704
+ declare const SEND_NEXUS_ERROR__AMBIGUOUS_FEE_SOURCE = 6015;
3705
+ /** InvalidPartnerName: Partner name cannot be empty */
3706
+ declare const SEND_NEXUS_ERROR__INVALID_PARTNER_NAME = 6016;
3707
+ /** PartnerNotOnPreset: Partner account does not use this preset */
3708
+ declare const SEND_NEXUS_ERROR__PARTNER_NOT_ON_PRESET = 6017;
3709
+ /** InvalidPartnerNote: Invalid partner note */
3710
+ declare const SEND_NEXUS_ERROR__INVALID_PARTNER_NOTE = 6018;
3711
+ /** InvalidPresetName: Invalid preset name */
3712
+ declare const SEND_NEXUS_ERROR__INVALID_PRESET_NAME = 6019;
3713
+ /** TooManyAuthPlatforms: Too many auth platforms (max 255) */
3714
+ declare const SEND_NEXUS_ERROR__TOO_MANY_AUTH_PLATFORMS = 6020;
3715
+ /** InvalidAuthPlatformIndex: Invalid auth platform index */
3716
+ declare const SEND_NEXUS_ERROR__INVALID_AUTH_PLATFORM_INDEX = 6021;
3717
+ /** InvalidAuthPlatformName: Invalid auth platform name */
3718
+ declare const SEND_NEXUS_ERROR__INVALID_AUTH_PLATFORM_NAME = 6022;
3719
+ /** DuplicateAuthPlatformName: Duplicate auth platform name */
3720
+ declare const SEND_NEXUS_ERROR__DUPLICATE_AUTH_PLATFORM_NAME = 6023;
3721
+ /** InvalidAuthority: Invalid authority */
3722
+ declare const SEND_NEXUS_ERROR__INVALID_AUTHORITY = 6024;
3723
+ /** ReservedPartner: Cannot add the default partner */
3724
+ declare const SEND_NEXUS_ERROR__RESERVED_PARTNER = 6025;
3725
+ /** InvalidRewardAccrual: Invalid reward accrual */
3726
+ declare const SEND_NEXUS_ERROR__INVALID_REWARD_ACCRUAL = 6026;
3727
+ /** RewardsNotSettled: Settle every reward mint before staking or unstaking - call settle for each registered mint */
3728
+ declare const SEND_NEXUS_ERROR__REWARDS_NOT_SETTLED = 6027;
3729
+ /** InvalidUsdcPrice: USDC price must be non-zero - 0 means no price */
3730
+ declare const SEND_NEXUS_ERROR__INVALID_USDC_PRICE = 6028;
3731
+ /** InvalidPlatformConfig: Platform config cannot be the default address */
3732
+ declare const SEND_NEXUS_ERROR__INVALID_PLATFORM_CONFIG = 6029;
3733
+ /** InvalidPartnerConfig: Partner config address does not match its stored seeds */
3734
+ declare const SEND_NEXUS_ERROR__INVALID_PARTNER_CONFIG = 6030;
3735
+ /** PresetPlatformMismatch: Fee preset belongs to a different platform */
3736
+ declare const SEND_NEXUS_ERROR__PRESET_PLATFORM_MISMATCH = 6031;
3737
+ /** ProgramPaused: Program is paused */
3738
+ declare const SEND_NEXUS_ERROR__PROGRAM_PAUSED = 7e3;
3739
+ /** Unauthorized: Unauthorized */
3740
+ declare const SEND_NEXUS_ERROR__UNAUTHORIZED = 7001;
3741
+ /** ArithmeticOverflow: Arithmetic overflow */
3742
+ declare const SEND_NEXUS_ERROR__ARITHMETIC_OVERFLOW = 7002;
3743
+ /** InvalidPythAccount: Invalid Pyth price account */
3744
+ declare const SEND_NEXUS_ERROR__INVALID_PYTH_ACCOUNT = 7003;
3745
+ /** InvalidPythFeed: Invalid Pyth feed ID */
3746
+ declare const SEND_NEXUS_ERROR__INVALID_PYTH_FEED = 7004;
3747
+ /** InvalidSlug: Invalid slug: must be non-empty, <= max_len bytes, lowercase alphanumeric or underscore */
3748
+ declare const SEND_NEXUS_ERROR__INVALID_SLUG = 7005;
3749
+ /** TextTooLong: Text too long */
3750
+ declare const SEND_NEXUS_ERROR__TEXT_TOO_LONG = 7006;
3751
+ /** UserTokenAccountWrongProgram: User token account owned by the wrong token program */
3752
+ declare const SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM = 7007;
3753
+ /** UserTokenAccountInvalid: User token account is not an initialized token account */
3754
+ declare const SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_INVALID = 7008;
3755
+ /** UserTokenAccountWrongMint: User token account mint does not match the trade */
3756
+ declare const SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT = 7009;
3757
+ /** UserTokenAccountWrongAuthority: User token account is not owned by the trading user */
3758
+ declare const SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY = 7010;
3759
+ /** NothingToClaim: Nothing to claim */
3760
+ declare const SEND_NEXUS_ERROR__NOTHING_TO_CLAIM = 7011;
3761
+ /** InvalidCreatorId: Creator identity is not a decodable wallet address */
3762
+ declare const SEND_NEXUS_ERROR__INVALID_CREATOR_ID = 7012;
3763
+ /** QuoteMintPriceUnset: Quote mint has no USDC price on its nexus reward state */
3764
+ declare const SEND_NEXUS_ERROR__QUOTE_MINT_PRICE_UNSET = 7013;
3765
+ /** TransferFeeNotSettleable: Token-2022 transfer fee schedule cannot settle the exact amount */
3766
+ declare const SEND_NEXUS_ERROR__TRANSFER_FEE_NOT_SETTLEABLE = 7014;
3767
+ /** InsufficientLiquidity: Insufficient liquidity */
3768
+ declare const SEND_NEXUS_ERROR__INSUFFICIENT_LIQUIDITY = 7100;
3769
+ /** InvalidAmount: Invalid amount */
3770
+ declare const SEND_NEXUS_ERROR__INVALID_AMOUNT = 7101;
3771
+ type SendNexusError = typeof SEND_NEXUS_ERROR__AMBIGUOUS_FEE_SOURCE | typeof SEND_NEXUS_ERROR__ARITHMETIC_OVERFLOW | typeof SEND_NEXUS_ERROR__DUPLICATE_AUTH_PLATFORM_NAME | typeof SEND_NEXUS_ERROR__INSUFFICIENT_LIQUIDITY | typeof SEND_NEXUS_ERROR__INSUFFICIENT_STAKE | typeof SEND_NEXUS_ERROR__INVALID_AMOUNT | typeof SEND_NEXUS_ERROR__INVALID_AUTHORITY | typeof SEND_NEXUS_ERROR__INVALID_AUTH_PLATFORM_INDEX | typeof SEND_NEXUS_ERROR__INVALID_AUTH_PLATFORM_NAME | typeof SEND_NEXUS_ERROR__INVALID_CREATOR_ID | typeof SEND_NEXUS_ERROR__INVALID_DESTINATION | typeof SEND_NEXUS_ERROR__INVALID_FEE_PRESET | typeof SEND_NEXUS_ERROR__INVALID_MINT | typeof SEND_NEXUS_ERROR__INVALID_PARTNER_CONFIG | typeof SEND_NEXUS_ERROR__INVALID_PARTNER_NAME | typeof SEND_NEXUS_ERROR__INVALID_PARTNER_NOTE | typeof SEND_NEXUS_ERROR__INVALID_PLATFORM_CONFIG | typeof SEND_NEXUS_ERROR__INVALID_PRESET_INDEX | typeof SEND_NEXUS_ERROR__INVALID_PRESET_NAME | typeof SEND_NEXUS_ERROR__INVALID_PYTH_ACCOUNT | typeof SEND_NEXUS_ERROR__INVALID_PYTH_FEED | typeof SEND_NEXUS_ERROR__INVALID_REWARD_ACCRUAL | typeof SEND_NEXUS_ERROR__INVALID_REWARD_MINT | typeof SEND_NEXUS_ERROR__INVALID_REWARD_STATE | typeof SEND_NEXUS_ERROR__INVALID_SLUG | typeof SEND_NEXUS_ERROR__INVALID_STAKING_MINT | typeof SEND_NEXUS_ERROR__INVALID_USDC_PRICE | typeof SEND_NEXUS_ERROR__INVALID_VAULT | typeof SEND_NEXUS_ERROR__MISSING_FEE_SOURCE | typeof SEND_NEXUS_ERROR__NOTHING_TO_CLAIM | typeof SEND_NEXUS_ERROR__PARTNER_NOT_ON_PRESET | typeof SEND_NEXUS_ERROR__PRESET_PLATFORM_MISMATCH | typeof SEND_NEXUS_ERROR__PROGRAM_PAUSED | typeof SEND_NEXUS_ERROR__QUOTE_MINT_PRICE_UNSET | typeof SEND_NEXUS_ERROR__RESERVED_PARTNER | typeof SEND_NEXUS_ERROR__REWARDS_NOT_SETTLED | typeof SEND_NEXUS_ERROR__STAKING_ALREADY_ENABLED | typeof SEND_NEXUS_ERROR__STAKING_MINT_ALREADY_BOUND | typeof SEND_NEXUS_ERROR__STAKING_NOT_ENABLED | typeof SEND_NEXUS_ERROR__TEXT_TOO_LONG | typeof SEND_NEXUS_ERROR__TOO_MANY_AUTH_PLATFORMS | typeof SEND_NEXUS_ERROR__TRANSFER_FEE_NOT_SETTLEABLE | typeof SEND_NEXUS_ERROR__UNAUTHORIZED | typeof SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_INVALID | typeof SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY | typeof SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT | typeof SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM;
3772
+ declare const sendNexusErrorMessages: Record<SendNexusError, string>;
3773
+ declare function getSendNexusErrorMessage(code: SendNexusError): string;
3774
+ declare function isSendNexusError<TProgramErrorCode extends SendNexusError>(error: unknown, transactionMessage: {
3775
+ instructions: Record<number, {
3776
+ programAddress: Address;
3777
+ }>;
3778
+ }, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
3779
+ context: Readonly<{
3780
+ code: TProgramErrorCode;
3781
+ }>;
3782
+ }>;
3783
+ declare namespace index_d_exports$8 {
3784
+ export { SEND_NEXUS_ERROR__AMBIGUOUS_FEE_SOURCE, SEND_NEXUS_ERROR__ARITHMETIC_OVERFLOW, SEND_NEXUS_ERROR__DUPLICATE_AUTH_PLATFORM_NAME, SEND_NEXUS_ERROR__INSUFFICIENT_LIQUIDITY, SEND_NEXUS_ERROR__INSUFFICIENT_STAKE, SEND_NEXUS_ERROR__INVALID_AMOUNT, SEND_NEXUS_ERROR__INVALID_AUTHORITY, SEND_NEXUS_ERROR__INVALID_AUTH_PLATFORM_INDEX, SEND_NEXUS_ERROR__INVALID_AUTH_PLATFORM_NAME, SEND_NEXUS_ERROR__INVALID_CREATOR_ID, SEND_NEXUS_ERROR__INVALID_DESTINATION, SEND_NEXUS_ERROR__INVALID_FEE_PRESET, SEND_NEXUS_ERROR__INVALID_MINT, SEND_NEXUS_ERROR__INVALID_PARTNER_CONFIG, SEND_NEXUS_ERROR__INVALID_PARTNER_NAME, SEND_NEXUS_ERROR__INVALID_PARTNER_NOTE, SEND_NEXUS_ERROR__INVALID_PLATFORM_CONFIG, SEND_NEXUS_ERROR__INVALID_PRESET_INDEX, SEND_NEXUS_ERROR__INVALID_PRESET_NAME, SEND_NEXUS_ERROR__INVALID_PYTH_ACCOUNT, SEND_NEXUS_ERROR__INVALID_PYTH_FEED, SEND_NEXUS_ERROR__INVALID_REWARD_ACCRUAL, SEND_NEXUS_ERROR__INVALID_REWARD_MINT, SEND_NEXUS_ERROR__INVALID_REWARD_STATE, SEND_NEXUS_ERROR__INVALID_SLUG, SEND_NEXUS_ERROR__INVALID_STAKING_MINT, SEND_NEXUS_ERROR__INVALID_USDC_PRICE, SEND_NEXUS_ERROR__INVALID_VAULT, SEND_NEXUS_ERROR__MISSING_FEE_SOURCE, SEND_NEXUS_ERROR__NOTHING_TO_CLAIM, SEND_NEXUS_ERROR__PARTNER_NOT_ON_PRESET, SEND_NEXUS_ERROR__PRESET_PLATFORM_MISMATCH, SEND_NEXUS_ERROR__PROGRAM_PAUSED, SEND_NEXUS_ERROR__QUOTE_MINT_PRICE_UNSET, SEND_NEXUS_ERROR__RESERVED_PARTNER, SEND_NEXUS_ERROR__REWARDS_NOT_SETTLED, SEND_NEXUS_ERROR__STAKING_ALREADY_ENABLED, SEND_NEXUS_ERROR__STAKING_MINT_ALREADY_BOUND, SEND_NEXUS_ERROR__STAKING_NOT_ENABLED, SEND_NEXUS_ERROR__TEXT_TOO_LONG, SEND_NEXUS_ERROR__TOO_MANY_AUTH_PLATFORMS, SEND_NEXUS_ERROR__TRANSFER_FEE_NOT_SETTLEABLE, SEND_NEXUS_ERROR__UNAUTHORIZED, SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_INVALID, SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY, SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT, SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_PROGRAM, SendNexusError, getSendNexusErrorMessage, isSendNexusError, sendNexusErrorMessages };
3785
+ }
3786
+ //#endregion
3787
+ //#region src/nexus/generated/instructions/claim.d.ts
3788
+ declare const CLAIM_DISCRIMINATOR: ReadonlyUint8Array;
3789
+ declare function getClaimDiscriminatorBytes(): ReadonlyUint8Array;
3790
+ type ClaimInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountStakingMint extends string | AccountMeta<string> = string, TAccountRewardMint extends string | AccountMeta<string> = string, TAccountStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountUserStakePosition extends string | AccountMeta<string> = string, TAccountRewardState extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountLaunchpadRewardAccrual extends string | AccountMeta<string> = string, TAccountDexRewardAccrual extends string | AccountMeta<string> = string, TAccountUserRewardDebt extends string | AccountMeta<string> = string, TAccountDestination extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", TAccountProgram extends string | AccountMeta<string> = "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountStakingMint extends string ? ReadonlyAccount<TAccountStakingMint> : TAccountStakingMint, TAccountRewardMint extends string ? ReadonlyAccount<TAccountRewardMint> : TAccountRewardMint, TAccountStakingConfig extends string ? ReadonlyAccount<TAccountStakingConfig> : TAccountStakingConfig, TAccountUserStakePosition extends string ? WritableAccount<TAccountUserStakePosition> : TAccountUserStakePosition, TAccountRewardState extends string ? WritableAccount<TAccountRewardState> : TAccountRewardState, TAccountVault extends string ? WritableAccount<TAccountVault> : TAccountVault, TAccountLaunchpadRewardAccrual extends string ? ReadonlyAccount<TAccountLaunchpadRewardAccrual> : TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual extends string ? ReadonlyAccount<TAccountDexRewardAccrual> : TAccountDexRewardAccrual, TAccountUserRewardDebt extends string ? WritableAccount<TAccountUserRewardDebt> : TAccountUserRewardDebt, TAccountDestination extends string ? WritableAccount<TAccountDestination> : TAccountDestination, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
3791
+ type ClaimInstructionData = {
3792
+ discriminator: ReadonlyUint8Array;
3793
+ };
3794
+ type ClaimInstructionDataArgs = {};
3795
+ declare function getClaimInstructionDataEncoder(): FixedSizeEncoder<ClaimInstructionDataArgs>;
3796
+ declare function getClaimInstructionDataDecoder(): FixedSizeDecoder<ClaimInstructionData>;
3797
+ declare function getClaimInstructionDataCodec(): FixedSizeCodec<ClaimInstructionDataArgs, ClaimInstructionData>;
3798
+ type ClaimAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountRewardMint extends string = string, TAccountStakingConfig extends string = string, TAccountUserStakePosition extends string = string, TAccountRewardState extends string = string, TAccountVault extends string = string, TAccountLaunchpadRewardAccrual extends string = string, TAccountDexRewardAccrual extends string = string, TAccountUserRewardDebt extends string = string, TAccountDestination extends string = string, TAccountTokenProgram extends string = string> = {
3799
+ user: TransactionSigner<TAccountUser>;
3800
+ payer: TransactionSigner<TAccountPayer>;
3801
+ stakingMint: Address<TAccountStakingMint>;
3802
+ rewardMint: Address<TAccountRewardMint>;
3803
+ stakingConfig?: Address<TAccountStakingConfig>;
3804
+ userStakePosition?: Address<TAccountUserStakePosition>;
3805
+ rewardState?: Address<TAccountRewardState>;
3806
+ vault: Address<TAccountVault>;
3807
+ launchpadRewardAccrual?: Address<TAccountLaunchpadRewardAccrual>;
3808
+ dexRewardAccrual?: Address<TAccountDexRewardAccrual>;
3809
+ userRewardDebt?: Address<TAccountUserRewardDebt>;
3810
+ destination: Address<TAccountDestination>;
3811
+ tokenProgram?: Address<TAccountTokenProgram>;
3812
+ };
3813
+ declare function getClaimInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountRewardMint extends string, TAccountStakingConfig extends string, TAccountUserStakePosition extends string, TAccountRewardState extends string, TAccountVault extends string, TAccountLaunchpadRewardAccrual extends string, TAccountDexRewardAccrual extends string, TAccountUserRewardDebt extends string, TAccountDestination extends string, TAccountTokenProgram extends string>(input: ClaimAsyncInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountRewardState, TAccountVault, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt, TAccountDestination, TAccountTokenProgram>): Promise<ClaimInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountRewardState, TAccountVault, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt, TAccountDestination, TAccountTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX">>;
3814
+ type ClaimInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountRewardMint extends string = string, TAccountStakingConfig extends string = string, TAccountUserStakePosition extends string = string, TAccountRewardState extends string = string, TAccountVault extends string = string, TAccountLaunchpadRewardAccrual extends string = string, TAccountDexRewardAccrual extends string = string, TAccountUserRewardDebt extends string = string, TAccountDestination extends string = string, TAccountTokenProgram extends string = string> = {
3815
+ user: TransactionSigner<TAccountUser>;
3816
+ payer: TransactionSigner<TAccountPayer>;
3817
+ stakingMint: Address<TAccountStakingMint>;
3818
+ rewardMint: Address<TAccountRewardMint>;
3819
+ stakingConfig?: Address<TAccountStakingConfig>;
3820
+ userStakePosition: Address<TAccountUserStakePosition>;
3821
+ rewardState: Address<TAccountRewardState>;
3822
+ vault: Address<TAccountVault>;
3823
+ launchpadRewardAccrual: Address<TAccountLaunchpadRewardAccrual>;
3824
+ dexRewardAccrual: Address<TAccountDexRewardAccrual>;
3825
+ userRewardDebt: Address<TAccountUserRewardDebt>;
3826
+ destination: Address<TAccountDestination>;
3827
+ tokenProgram?: Address<TAccountTokenProgram>;
3828
+ };
3829
+ declare function getClaimInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountRewardMint extends string, TAccountStakingConfig extends string, TAccountUserStakePosition extends string, TAccountRewardState extends string, TAccountVault extends string, TAccountLaunchpadRewardAccrual extends string, TAccountDexRewardAccrual extends string, TAccountUserRewardDebt extends string, TAccountDestination extends string, TAccountTokenProgram extends string>(input: ClaimInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountRewardState, TAccountVault, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt, TAccountDestination, TAccountTokenProgram>): ClaimInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountRewardState, TAccountVault, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt, TAccountDestination, TAccountTokenProgram, "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX">;
3830
+ type ParsedClaimInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3831
+ programAddress: Address<TProgram>;
3832
+ accounts: {
3833
+ user: TAccountMetas[0];
3834
+ payer: TAccountMetas[1];
3835
+ stakingMint: TAccountMetas[2];
3836
+ rewardMint: TAccountMetas[3];
3837
+ stakingConfig: TAccountMetas[4];
3838
+ userStakePosition: TAccountMetas[5];
3839
+ rewardState: TAccountMetas[6];
3840
+ vault: TAccountMetas[7];
3841
+ launchpadRewardAccrual: TAccountMetas[8];
3842
+ dexRewardAccrual: TAccountMetas[9];
3843
+ userRewardDebt: TAccountMetas[10];
3844
+ destination: TAccountMetas[11];
3845
+ tokenProgram: TAccountMetas[12];
3846
+ associatedTokenProgram: TAccountMetas[13];
3847
+ systemProgram: TAccountMetas[14];
3848
+ eventAuthority: TAccountMetas[15];
3849
+ program: TAccountMetas[16];
3850
+ };
3851
+ data: ClaimInstructionData;
3852
+ };
3853
+ declare function parseClaimInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimInstruction<TProgram, TAccountMetas>;
3854
+ //#endregion
3855
+ //#region src/nexus/generated/instructions/createUserRewardDebt.d.ts
3856
+ declare const CREATE_USER_REWARD_DEBT_DISCRIMINATOR: ReadonlyUint8Array;
3857
+ declare function getCreateUserRewardDebtDiscriminatorBytes(): ReadonlyUint8Array;
3858
+ type CreateUserRewardDebtInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountStakingMint extends string | AccountMeta<string> = string, TAccountRewardMint extends string | AccountMeta<string> = string, TAccountStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountRewardState extends string | AccountMeta<string> = string, TAccountUserStakePosition extends string | AccountMeta<string> = string, TAccountUserRewardDebt extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlyAccount<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountStakingMint extends string ? ReadonlyAccount<TAccountStakingMint> : TAccountStakingMint, TAccountRewardMint extends string ? ReadonlyAccount<TAccountRewardMint> : TAccountRewardMint, TAccountStakingConfig extends string ? ReadonlyAccount<TAccountStakingConfig> : TAccountStakingConfig, TAccountRewardState extends string ? ReadonlyAccount<TAccountRewardState> : TAccountRewardState, TAccountUserStakePosition extends string ? WritableAccount<TAccountUserStakePosition> : TAccountUserStakePosition, TAccountUserRewardDebt extends string ? WritableAccount<TAccountUserRewardDebt> : TAccountUserRewardDebt, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, ...TRemainingAccounts]>;
3859
+ type CreateUserRewardDebtInstructionData = {
3860
+ discriminator: ReadonlyUint8Array;
3861
+ };
3862
+ type CreateUserRewardDebtInstructionDataArgs = {};
3863
+ declare function getCreateUserRewardDebtInstructionDataEncoder(): FixedSizeEncoder<CreateUserRewardDebtInstructionDataArgs>;
3864
+ declare function getCreateUserRewardDebtInstructionDataDecoder(): FixedSizeDecoder<CreateUserRewardDebtInstructionData>;
3865
+ declare function getCreateUserRewardDebtInstructionDataCodec(): FixedSizeCodec<CreateUserRewardDebtInstructionDataArgs, CreateUserRewardDebtInstructionData>;
3866
+ type CreateUserRewardDebtAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountRewardMint extends string = string, TAccountStakingConfig extends string = string, TAccountRewardState extends string = string, TAccountUserStakePosition extends string = string, TAccountUserRewardDebt extends string = string> = {
3867
+ user: Address<TAccountUser>;
3868
+ payer: TransactionSigner<TAccountPayer>;
3869
+ stakingMint: Address<TAccountStakingMint>;
3870
+ rewardMint: Address<TAccountRewardMint>;
3871
+ stakingConfig?: Address<TAccountStakingConfig>;
3872
+ rewardState?: Address<TAccountRewardState>;
3873
+ userStakePosition?: Address<TAccountUserStakePosition>;
3874
+ userRewardDebt?: Address<TAccountUserRewardDebt>;
3875
+ };
3876
+ declare function getCreateUserRewardDebtInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountRewardMint extends string, TAccountStakingConfig extends string, TAccountRewardState extends string, TAccountUserStakePosition extends string, TAccountUserRewardDebt extends string>(input: CreateUserRewardDebtAsyncInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountRewardState, TAccountUserStakePosition, TAccountUserRewardDebt>): Promise<CreateUserRewardDebtInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountRewardState, TAccountUserStakePosition, TAccountUserRewardDebt, "11111111111111111111111111111111">>;
3877
+ type CreateUserRewardDebtInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountRewardMint extends string = string, TAccountStakingConfig extends string = string, TAccountRewardState extends string = string, TAccountUserStakePosition extends string = string, TAccountUserRewardDebt extends string = string> = {
3878
+ user: Address<TAccountUser>;
3879
+ payer: TransactionSigner<TAccountPayer>;
3880
+ stakingMint: Address<TAccountStakingMint>;
3881
+ rewardMint: Address<TAccountRewardMint>;
3882
+ stakingConfig?: Address<TAccountStakingConfig>;
3883
+ rewardState: Address<TAccountRewardState>;
3884
+ userStakePosition: Address<TAccountUserStakePosition>;
3885
+ userRewardDebt: Address<TAccountUserRewardDebt>;
3886
+ };
3887
+ declare function getCreateUserRewardDebtInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountRewardMint extends string, TAccountStakingConfig extends string, TAccountRewardState extends string, TAccountUserStakePosition extends string, TAccountUserRewardDebt extends string>(input: CreateUserRewardDebtInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountRewardState, TAccountUserStakePosition, TAccountUserRewardDebt>): CreateUserRewardDebtInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountStakingConfig, TAccountRewardState, TAccountUserStakePosition, TAccountUserRewardDebt, "11111111111111111111111111111111">;
3888
+ type ParsedCreateUserRewardDebtInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3889
+ programAddress: Address<TProgram>;
3890
+ accounts: {
3891
+ user: TAccountMetas[0];
3892
+ payer: TAccountMetas[1];
3893
+ stakingMint: TAccountMetas[2];
3894
+ rewardMint: TAccountMetas[3];
3895
+ stakingConfig: TAccountMetas[4];
3896
+ rewardState: TAccountMetas[5];
3897
+ userStakePosition: TAccountMetas[6];
3898
+ userRewardDebt: TAccountMetas[7];
3899
+ systemProgram: TAccountMetas[8];
3900
+ };
3901
+ data: CreateUserRewardDebtInstructionData;
3902
+ };
3903
+ declare function parseCreateUserRewardDebtInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateUserRewardDebtInstruction<TProgram, TAccountMetas>;
3904
+ //#endregion
3905
+ //#region src/nexus/generated/instructions/settle.d.ts
3906
+ declare const SETTLE_DISCRIMINATOR: ReadonlyUint8Array;
3907
+ declare function getSettleDiscriminatorBytes(): ReadonlyUint8Array;
3908
+ type SettleInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountStakingMint extends string | AccountMeta<string> = string, TAccountRewardMint extends string | AccountMeta<string> = string, TAccountStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountUserStakePosition extends string | AccountMeta<string> = string, TAccountLaunchpadRewardAccrual extends string | AccountMeta<string> = string, TAccountDexRewardAccrual extends string | AccountMeta<string> = string, TAccountUserRewardDebt extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlyAccount<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountStakingMint extends string ? ReadonlyAccount<TAccountStakingMint> : TAccountStakingMint, TAccountRewardMint extends string ? ReadonlyAccount<TAccountRewardMint> : TAccountRewardMint, TAccountStakingConfig extends string ? ReadonlyAccount<TAccountStakingConfig> : TAccountStakingConfig, TAccountUserStakePosition extends string ? WritableAccount<TAccountUserStakePosition> : TAccountUserStakePosition, TAccountLaunchpadRewardAccrual extends string ? ReadonlyAccount<TAccountLaunchpadRewardAccrual> : TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual extends string ? ReadonlyAccount<TAccountDexRewardAccrual> : TAccountDexRewardAccrual, TAccountUserRewardDebt extends string ? WritableAccount<TAccountUserRewardDebt> : TAccountUserRewardDebt, ...TRemainingAccounts]>;
3909
+ type SettleInstructionData = {
3910
+ discriminator: ReadonlyUint8Array;
3911
+ };
3912
+ type SettleInstructionDataArgs = {};
3913
+ declare function getSettleInstructionDataEncoder(): FixedSizeEncoder<SettleInstructionDataArgs>;
3914
+ declare function getSettleInstructionDataDecoder(): FixedSizeDecoder<SettleInstructionData>;
3915
+ declare function getSettleInstructionDataCodec(): FixedSizeCodec<SettleInstructionDataArgs, SettleInstructionData>;
3916
+ type SettleAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountRewardMint extends string = string, TAccountUserStakePosition extends string = string, TAccountLaunchpadRewardAccrual extends string = string, TAccountDexRewardAccrual extends string = string, TAccountUserRewardDebt extends string = string> = {
3917
+ user: Address<TAccountUser>;
3918
+ payer: TransactionSigner<TAccountPayer>;
3919
+ stakingMint: Address<TAccountStakingMint>;
3920
+ rewardMint: Address<TAccountRewardMint>;
3921
+ userStakePosition?: Address<TAccountUserStakePosition>;
3922
+ launchpadRewardAccrual?: Address<TAccountLaunchpadRewardAccrual>;
3923
+ dexRewardAccrual?: Address<TAccountDexRewardAccrual>;
3924
+ userRewardDebt?: Address<TAccountUserRewardDebt>;
3925
+ };
3926
+ declare function getSettleInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountRewardMint extends string, TAccountUserStakePosition extends string, TAccountLaunchpadRewardAccrual extends string, TAccountDexRewardAccrual extends string, TAccountUserRewardDebt extends string>(input: SettleAsyncInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountUserStakePosition, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt>): Promise<SettleInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountUserStakePosition, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt>>;
3927
+ type SettleInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountRewardMint extends string = string, TAccountUserStakePosition extends string = string, TAccountLaunchpadRewardAccrual extends string = string, TAccountDexRewardAccrual extends string = string, TAccountUserRewardDebt extends string = string> = {
3928
+ user: Address<TAccountUser>;
3929
+ payer: TransactionSigner<TAccountPayer>;
3930
+ stakingMint: Address<TAccountStakingMint>;
3931
+ rewardMint: Address<TAccountRewardMint>;
3932
+ userStakePosition: Address<TAccountUserStakePosition>;
3933
+ launchpadRewardAccrual: Address<TAccountLaunchpadRewardAccrual>;
3934
+ dexRewardAccrual: Address<TAccountDexRewardAccrual>;
3935
+ userRewardDebt: Address<TAccountUserRewardDebt>;
3936
+ };
3937
+ declare function getSettleInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountRewardMint extends string, TAccountUserStakePosition extends string, TAccountLaunchpadRewardAccrual extends string, TAccountDexRewardAccrual extends string, TAccountUserRewardDebt extends string>(input: SettleInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, TAccountUserStakePosition, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt>): SettleInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountRewardMint, "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountUserStakePosition, TAccountLaunchpadRewardAccrual, TAccountDexRewardAccrual, TAccountUserRewardDebt>;
3938
+ type ParsedSettleInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3939
+ programAddress: Address<TProgram>;
3940
+ accounts: {
3941
+ user: TAccountMetas[0];
3942
+ payer: TAccountMetas[1];
3943
+ stakingMint: TAccountMetas[2];
3944
+ rewardMint: TAccountMetas[3];
3945
+ stakingConfig: TAccountMetas[4];
3946
+ userStakePosition: TAccountMetas[5];
3947
+ launchpadRewardAccrual: TAccountMetas[6];
3948
+ dexRewardAccrual: TAccountMetas[7];
3949
+ userRewardDebt: TAccountMetas[8];
3950
+ };
3951
+ data: SettleInstructionData;
3952
+ };
3953
+ declare function parseSettleInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSettleInstruction<TProgram, TAccountMetas>;
3954
+ //#endregion
3955
+ //#region src/nexus/generated/instructions/stake.d.ts
3956
+ declare const STAKE_DISCRIMINATOR: ReadonlyUint8Array;
3957
+ declare function getStakeDiscriminatorBytes(): ReadonlyUint8Array;
3958
+ type StakeInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountStakingMint extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountUserStakePosition extends string | AccountMeta<string> = string, TAccountUserTokenAccount extends string | AccountMeta<string> = string, TAccountPoolVault extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", TAccountProgram extends string | AccountMeta<string> = "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountStakingMint extends string ? ReadonlyAccount<TAccountStakingMint> : TAccountStakingMint, TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig, TAccountStakingConfig extends string ? WritableAccount<TAccountStakingConfig> : TAccountStakingConfig, TAccountUserStakePosition extends string ? WritableAccount<TAccountUserStakePosition> : TAccountUserStakePosition, TAccountUserTokenAccount extends string ? WritableAccount<TAccountUserTokenAccount> : TAccountUserTokenAccount, TAccountPoolVault extends string ? WritableAccount<TAccountPoolVault> : TAccountPoolVault, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
3959
+ type StakeInstructionData = {
3960
+ discriminator: ReadonlyUint8Array;
3961
+ amount: bigint;
3962
+ };
3963
+ type StakeInstructionDataArgs = {
3964
+ amount: number | bigint;
3965
+ };
3966
+ declare function getStakeInstructionDataEncoder(): FixedSizeEncoder<StakeInstructionDataArgs>;
3967
+ declare function getStakeInstructionDataDecoder(): FixedSizeDecoder<StakeInstructionData>;
3968
+ declare function getStakeInstructionDataCodec(): FixedSizeCodec<StakeInstructionDataArgs, StakeInstructionData>;
3969
+ type StakeAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountStakingConfig extends string = string, TAccountUserStakePosition extends string = string, TAccountUserTokenAccount extends string = string, TAccountPoolVault extends string = string> = {
3970
+ user: TransactionSigner<TAccountUser>;
3971
+ payer: TransactionSigner<TAccountPayer>;
3972
+ stakingMint: Address<TAccountStakingMint>;
3973
+ stakingConfig?: Address<TAccountStakingConfig>;
3974
+ userStakePosition?: Address<TAccountUserStakePosition>;
3975
+ userTokenAccount?: Address<TAccountUserTokenAccount>;
3976
+ poolVault?: Address<TAccountPoolVault>;
3977
+ amount: StakeInstructionDataArgs["amount"];
3978
+ };
3979
+ declare function getStakeInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountStakingConfig extends string, TAccountUserStakePosition extends string, TAccountUserTokenAccount extends string, TAccountPoolVault extends string>(input: StakeAsyncInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault>): Promise<StakeInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX">>;
3980
+ type StakeInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountStakingConfig extends string = string, TAccountUserStakePosition extends string = string, TAccountUserTokenAccount extends string = string, TAccountPoolVault extends string = string> = {
3981
+ user: TransactionSigner<TAccountUser>;
3982
+ payer: TransactionSigner<TAccountPayer>;
3983
+ stakingMint: Address<TAccountStakingMint>;
3984
+ stakingConfig?: Address<TAccountStakingConfig>;
3985
+ userStakePosition: Address<TAccountUserStakePosition>;
3986
+ userTokenAccount: Address<TAccountUserTokenAccount>;
3987
+ poolVault: Address<TAccountPoolVault>;
3988
+ amount: StakeInstructionDataArgs["amount"];
3989
+ };
3990
+ declare function getStakeInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountStakingConfig extends string, TAccountUserStakePosition extends string, TAccountUserTokenAccount extends string, TAccountPoolVault extends string>(input: StakeInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault>): StakeInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, "3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr", TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX">;
3991
+ type ParsedStakeInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
3992
+ programAddress: Address<TProgram>;
3993
+ accounts: {
3994
+ user: TAccountMetas[0];
3995
+ payer: TAccountMetas[1];
3996
+ stakingMint: TAccountMetas[2];
3997
+ globalConfig: TAccountMetas[3];
3998
+ stakingConfig: TAccountMetas[4];
3999
+ userStakePosition: TAccountMetas[5];
4000
+ userTokenAccount: TAccountMetas[6];
4001
+ poolVault: TAccountMetas[7];
4002
+ tokenProgram: TAccountMetas[8];
4003
+ associatedTokenProgram: TAccountMetas[9];
4004
+ systemProgram: TAccountMetas[10];
4005
+ eventAuthority: TAccountMetas[11];
4006
+ program: TAccountMetas[12];
4007
+ };
4008
+ data: StakeInstructionData;
4009
+ };
4010
+ declare function parseStakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedStakeInstruction<TProgram, TAccountMetas>;
4011
+ //#endregion
4012
+ //#region src/nexus/generated/instructions/unstake.d.ts
4013
+ declare const UNSTAKE_DISCRIMINATOR: ReadonlyUint8Array;
4014
+ declare function getUnstakeDiscriminatorBytes(): ReadonlyUint8Array;
4015
+ type UnstakeInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountPayer extends string | AccountMeta<string> = string, TAccountStakingMint extends string | AccountMeta<string> = string, TAccountStakingConfig extends string | AccountMeta<string> = "9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF", TAccountUserStakePosition extends string | AccountMeta<string> = string, TAccountUserTokenAccount extends string | AccountMeta<string> = string, TAccountPoolVault extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", TAccountAssociatedTokenProgram extends string | AccountMeta<string> = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TAccountEventAuthority extends string | AccountMeta<string> = "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", TAccountProgram extends string | AccountMeta<string> = "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser, TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer, TAccountStakingMint extends string ? ReadonlyAccount<TAccountStakingMint> : TAccountStakingMint, TAccountStakingConfig extends string ? WritableAccount<TAccountStakingConfig> : TAccountStakingConfig, TAccountUserStakePosition extends string ? WritableAccount<TAccountUserStakePosition> : TAccountUserStakePosition, TAccountUserTokenAccount extends string ? WritableAccount<TAccountUserTokenAccount> : TAccountUserTokenAccount, TAccountPoolVault extends string ? WritableAccount<TAccountPoolVault> : TAccountPoolVault, TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram, TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram, TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram, ...TRemainingAccounts]>;
4016
+ type UnstakeInstructionData = {
4017
+ discriminator: ReadonlyUint8Array;
4018
+ amount: bigint;
4019
+ };
4020
+ type UnstakeInstructionDataArgs = {
4021
+ amount: number | bigint;
4022
+ };
4023
+ declare function getUnstakeInstructionDataEncoder(): FixedSizeEncoder<UnstakeInstructionDataArgs>;
4024
+ declare function getUnstakeInstructionDataDecoder(): FixedSizeDecoder<UnstakeInstructionData>;
4025
+ declare function getUnstakeInstructionDataCodec(): FixedSizeCodec<UnstakeInstructionDataArgs, UnstakeInstructionData>;
4026
+ type UnstakeAsyncInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountStakingConfig extends string = string, TAccountUserStakePosition extends string = string, TAccountUserTokenAccount extends string = string, TAccountPoolVault extends string = string> = {
4027
+ user: TransactionSigner<TAccountUser>;
4028
+ payer: TransactionSigner<TAccountPayer>;
4029
+ stakingMint: Address<TAccountStakingMint>;
4030
+ stakingConfig?: Address<TAccountStakingConfig>;
4031
+ userStakePosition?: Address<TAccountUserStakePosition>;
4032
+ userTokenAccount?: Address<TAccountUserTokenAccount>;
4033
+ poolVault?: Address<TAccountPoolVault>;
4034
+ amount: UnstakeInstructionDataArgs["amount"];
4035
+ };
4036
+ declare function getUnstakeInstructionAsync<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountStakingConfig extends string, TAccountUserStakePosition extends string, TAccountUserTokenAccount extends string, TAccountPoolVault extends string>(input: UnstakeAsyncInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault>): Promise<UnstakeInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX">>;
4037
+ type UnstakeInput<TAccountUser extends string = string, TAccountPayer extends string = string, TAccountStakingMint extends string = string, TAccountStakingConfig extends string = string, TAccountUserStakePosition extends string = string, TAccountUserTokenAccount extends string = string, TAccountPoolVault extends string = string> = {
4038
+ user: TransactionSigner<TAccountUser>;
4039
+ payer: TransactionSigner<TAccountPayer>;
4040
+ stakingMint: Address<TAccountStakingMint>;
4041
+ stakingConfig?: Address<TAccountStakingConfig>;
4042
+ userStakePosition: Address<TAccountUserStakePosition>;
4043
+ userTokenAccount: Address<TAccountUserTokenAccount>;
4044
+ poolVault: Address<TAccountPoolVault>;
4045
+ amount: UnstakeInstructionDataArgs["amount"];
4046
+ };
4047
+ declare function getUnstakeInstruction<TAccountUser extends string, TAccountPayer extends string, TAccountStakingMint extends string, TAccountStakingConfig extends string, TAccountUserStakePosition extends string, TAccountUserTokenAccount extends string, TAccountPoolVault extends string>(input: UnstakeInput<TAccountUser, TAccountPayer, TAccountStakingMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault>): UnstakeInstruction<typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountUser, TAccountPayer, TAccountStakingMint, TAccountStakingConfig, TAccountUserStakePosition, TAccountUserTokenAccount, TAccountPoolVault, "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", "11111111111111111111111111111111", "BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr", "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX">;
4048
+ type ParsedUnstakeInstruction<TProgram extends string = typeof SEND_NEXUS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
4049
+ programAddress: Address<TProgram>;
4050
+ accounts: {
4051
+ user: TAccountMetas[0];
4052
+ payer: TAccountMetas[1];
4053
+ stakingMint: TAccountMetas[2];
4054
+ stakingConfig: TAccountMetas[3];
4055
+ userStakePosition: TAccountMetas[4];
4056
+ userTokenAccount: TAccountMetas[5];
4057
+ poolVault: TAccountMetas[6];
4058
+ tokenProgram: TAccountMetas[7];
4059
+ associatedTokenProgram: TAccountMetas[8];
4060
+ systemProgram: TAccountMetas[9];
4061
+ eventAuthority: TAccountMetas[10];
4062
+ program: TAccountMetas[11];
4063
+ };
4064
+ data: UnstakeInstructionData;
4065
+ };
4066
+ declare function parseUnstakeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUnstakeInstruction<TProgram, TAccountMetas>;
4067
+ //#endregion
4068
+ //#region src/nexus/generated/instructions/sendNexus.instructions.d.ts
4069
+ /** Instruction kinds of the sendNexus program. */
4070
+ type SendNexusInstructionType = "claim" | "createUserRewardDebt" | "settle" | "stake" | "unstake";
4071
+ /**
4072
+ * Identifies sendNexus instruction data by its discriminators.
4073
+ * Returns `null` when the instruction is for another program or the data matches no known instruction.
4074
+ */
4075
+ declare function identifySendNexusInstruction(instruction: {
4076
+ data: ReadonlyUint8Array;
4077
+ programAddress: Address;
4078
+ } | ReadonlyUint8Array): SendNexusInstructionType | null;
4079
+ /** Parsed sendNexus instruction: the instruction kind tag plus its parsed accounts and data. */
4080
+ type ParsedSendNexusInstruction<TProgram extends string = "7rrCurqdWFesbzwtYPo95fM8waTtVXgXwCom45x1sfNX"> = ({
4081
+ instructionType: "claim";
4082
+ } & ParsedClaimInstruction<TProgram>) | ({
4083
+ instructionType: "createUserRewardDebt";
4084
+ } & ParsedCreateUserRewardDebtInstruction<TProgram>) | ({
4085
+ instructionType: "settle";
4086
+ } & ParsedSettleInstruction<TProgram>) | ({
4087
+ instructionType: "stake";
4088
+ } & ParsedStakeInstruction<TProgram>) | ({
4089
+ instructionType: "unstake";
4090
+ } & ParsedUnstakeInstruction<TProgram>);
4091
+ /**
4092
+ * Parses a sendNexus instruction into its kind tag plus parsed accounts and data.
4093
+ * Returns `null` when the instruction is for another program or no known instruction matches;
4094
+ * throws if a matched instruction fails to parse.
4095
+ */
4096
+ declare function parseSendNexusInstruction<TProgram extends string>(instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>): ParsedSendNexusInstruction<TProgram> | null;
4097
+ declare namespace index_d_exports$7 {
4098
+ export { CLAIM_DISCRIMINATOR, CREATE_USER_REWARD_DEBT_DISCRIMINATOR, ClaimAsyncInput, ClaimInput, ClaimInstruction, ClaimInstructionData, ClaimInstructionDataArgs, CreateUserRewardDebtAsyncInput, CreateUserRewardDebtInput, CreateUserRewardDebtInstruction, CreateUserRewardDebtInstructionData, CreateUserRewardDebtInstructionDataArgs, ParsedClaimInstruction, ParsedCreateUserRewardDebtInstruction, ParsedSendNexusInstruction, ParsedSettleInstruction, ParsedStakeInstruction, ParsedUnstakeInstruction, SETTLE_DISCRIMINATOR, STAKE_DISCRIMINATOR, SendNexusInstructionType, SettleAsyncInput, SettleInput, SettleInstruction, SettleInstructionData, SettleInstructionDataArgs, StakeAsyncInput, StakeInput, StakeInstruction, StakeInstructionData, StakeInstructionDataArgs, UNSTAKE_DISCRIMINATOR, UnstakeAsyncInput, UnstakeInput, UnstakeInstruction, UnstakeInstructionData, UnstakeInstructionDataArgs, getClaimDiscriminatorBytes, getClaimInstruction, getClaimInstructionAsync, getClaimInstructionDataCodec, getClaimInstructionDataDecoder, getClaimInstructionDataEncoder, getCreateUserRewardDebtDiscriminatorBytes, getCreateUserRewardDebtInstruction, getCreateUserRewardDebtInstructionAsync, getCreateUserRewardDebtInstructionDataCodec, getCreateUserRewardDebtInstructionDataDecoder, getCreateUserRewardDebtInstructionDataEncoder, getSettleDiscriminatorBytes, getSettleInstruction, getSettleInstructionAsync, getSettleInstructionDataCodec, getSettleInstructionDataDecoder, getSettleInstructionDataEncoder, getStakeDiscriminatorBytes, getStakeInstruction, getStakeInstructionAsync, getStakeInstructionDataCodec, getStakeInstructionDataDecoder, getStakeInstructionDataEncoder, getUnstakeDiscriminatorBytes, getUnstakeInstruction, getUnstakeInstructionAsync, getUnstakeInstructionDataCodec, getUnstakeInstructionDataDecoder, getUnstakeInstructionDataEncoder, identifySendNexusInstruction, parseClaimInstruction, parseCreateUserRewardDebtInstruction, parseSendNexusInstruction, parseSettleInstruction, parseStakeInstruction, parseUnstakeInstruction };
4099
+ }
4100
+ //#endregion
4101
+ //#region src/nexus/generated/pdas/altRegistry.d.ts
4102
+ declare const ALT_REGISTRY_PDA_ADDRESS: Address<"8QbgorUFZXo6Nv6CTn3Xgf1bYiu8yy5NsJNvxr19JA9H">;
4103
+ declare function findAltRegistryPda(): ProgramDerivedAddress;
4104
+ //#endregion
4105
+ //#region src/nexus/generated/pdas/creatorFeeConfig.d.ts
4106
+ type CreatorFeeConfigSeeds = {
4107
+ creatorHash: Address;
4108
+ quoteMint: Address;
4109
+ };
4110
+ declare function findCreatorFeeConfigPda(seeds: CreatorFeeConfigSeeds): Promise<ProgramDerivedAddress>;
4111
+ //#endregion
4112
+ //#region src/nexus/generated/pdas/defaultFeePreset.d.ts
4113
+ type DefaultFeePresetSeeds = {
4114
+ platformConfig: Address;
4115
+ };
4116
+ declare function findDefaultFeePresetPda(seeds: DefaultFeePresetSeeds): Promise<ProgramDerivedAddress>;
4117
+ //#endregion
4118
+ //#region src/nexus/generated/pdas/defaultPartner.d.ts
4119
+ type DefaultPartnerSeeds = {
4120
+ platformConfig: Address;
4121
+ };
4122
+ declare function findDefaultPartnerPda(seeds: DefaultPartnerSeeds): Promise<ProgramDerivedAddress>;
4123
+ //#endregion
4124
+ //#region src/nexus/generated/pdas/defaultPartnerMetadata.d.ts
4125
+ type DefaultPartnerMetadataSeeds = {
4126
+ platformConfig: Address;
4127
+ };
4128
+ declare function findDefaultPartnerMetadataPda(seeds: DefaultPartnerMetadataSeeds): Promise<ProgramDerivedAddress>;
4129
+ //#endregion
4130
+ //#region src/nexus/generated/pdas/eventAuthority.d.ts
4131
+ declare const EVENT_AUTHORITY_PDA_ADDRESS: Address<"BxA56yuUugqREwSEFVr117VKJ6JmVdPA7jm7MCXzDNJr">;
4132
+ declare function findEventAuthorityPda(): ProgramDerivedAddress;
4133
+ //#endregion
4134
+ //#region src/nexus/generated/pdas/feePreset.d.ts
4135
+ type FeePresetSeeds = {
4136
+ platformConfig: Address;
4137
+ index: number;
4138
+ };
4139
+ declare function findFeePresetPda(seeds: FeePresetSeeds): Promise<ProgramDerivedAddress>;
4140
+ //#endregion
4141
+ //#region src/nexus/generated/pdas/globalConfig.d.ts
4142
+ declare const GLOBAL_CONFIG_PDA_ADDRESS: Address<"3bycfBeRULfXYqcg3DmiYFBjv6mMVidMuqKdFZJTGdNr">;
4143
+ declare function findGlobalConfigPda(): ProgramDerivedAddress;
4144
+ //#endregion
4145
+ //#region src/nexus/generated/pdas/partnerConfig.d.ts
4146
+ type PartnerConfigSeeds = {
4147
+ platformConfig: Address;
4148
+ partner: Address;
4149
+ };
4150
+ declare function findPartnerConfigPda(seeds: PartnerConfigSeeds): Promise<ProgramDerivedAddress>;
4151
+ //#endregion
4152
+ //#region src/nexus/generated/pdas/partnerMetadata.d.ts
4153
+ type PartnerMetadataSeeds = {
4154
+ platformConfig: Address;
4155
+ partner: Address;
4156
+ };
4157
+ declare function findPartnerMetadataPda(seeds: PartnerMetadataSeeds): Promise<ProgramDerivedAddress>;
4158
+ //#endregion
4159
+ //#region src/nexus/generated/pdas/rewardState.d.ts
4160
+ type RewardStateSeeds = {
4161
+ stakingConfig: Address;
4162
+ rewardMint: Address;
4163
+ };
4164
+ declare function findRewardStatePda(seeds: RewardStateSeeds): Promise<ProgramDerivedAddress>;
4165
+ //#endregion
4166
+ //#region src/nexus/generated/pdas/stakingConfig.d.ts
4167
+ declare const STAKING_CONFIG_PDA_ADDRESS: Address<"9WUowYRb6KAWjWVB5KMmTngBidZXEXgQcQRTXbhxeGbF">;
4168
+ declare function findStakingConfigPda(): ProgramDerivedAddress;
4169
+ //#endregion
4170
+ //#region src/nexus/generated/pdas/userRewardDebt.d.ts
4171
+ type UserRewardDebtSeeds = {
4172
+ user: Address;
4173
+ stakingMint: Address;
4174
+ rewardMint: Address;
4175
+ };
4176
+ declare function findUserRewardDebtPda(seeds: UserRewardDebtSeeds): Promise<ProgramDerivedAddress>;
4177
+ //#endregion
4178
+ //#region src/nexus/generated/pdas/userStakePosition.d.ts
4179
+ type UserStakePositionSeeds = {
4180
+ user: Address;
4181
+ stakingMint: Address;
4182
+ };
4183
+ declare function findUserStakePositionPda(seeds: UserStakePositionSeeds): Promise<ProgramDerivedAddress>;
4184
+ declare namespace index_d_exports$6 {
4185
+ export { ALT_REGISTRY_PDA_ADDRESS, CreatorFeeConfigSeeds, DefaultFeePresetSeeds, DefaultPartnerMetadataSeeds, DefaultPartnerSeeds, EVENT_AUTHORITY_PDA_ADDRESS, FeePresetSeeds, GLOBAL_CONFIG_PDA_ADDRESS, PartnerConfigSeeds, PartnerMetadataSeeds, RewardStateSeeds, STAKING_CONFIG_PDA_ADDRESS, UserRewardDebtSeeds, UserStakePositionSeeds, findAltRegistryPda, findCreatorFeeConfigPda, findDefaultFeePresetPda, findDefaultPartnerMetadataPda, findDefaultPartnerPda, findEventAuthorityPda, findFeePresetPda, findGlobalConfigPda, findPartnerConfigPda, findPartnerMetadataPda, findRewardStatePda, findStakingConfigPda, findUserRewardDebtPda, findUserStakePositionPda };
4186
+ }
4187
+ //#endregion
4188
+ //#region src/nexus/generated/plugins/sendNexus.d.ts
4189
+ type SendNexusPlugin = {
4190
+ accounts: SendNexusPluginAccounts;
4191
+ events: SendNexusPluginEvents;
4192
+ instructions: SendNexusPluginInstructions;
4193
+ pdas: SendNexusPluginPdas;
4194
+ identifyAccount: typeof identifySendNexusAccount;
4195
+ identifyInstruction: typeof identifySendNexusInstruction;
4196
+ parseInstruction: typeof parseSendNexusInstruction;
4197
+ };
4198
+ type SendNexusPluginAccounts = {
4199
+ altRegistry: ReturnType<typeof getAltRegistryCodec> & SelfFetchFunctions<AltRegistryArgs, AltRegistry>;
4200
+ creatorFeeConfig: ReturnType<typeof getCreatorFeeConfigCodec> & SelfFetchFunctions<CreatorFeeConfigArgs, CreatorFeeConfig>;
4201
+ feePreset: ReturnType<typeof getFeePresetCodec> & SelfFetchFunctions<FeePresetArgs, FeePreset>;
4202
+ globalConfig: ReturnType<typeof getGlobalConfigCodec> & SelfFetchFunctions<GlobalConfigArgs, GlobalConfig>;
4203
+ partnerConfig: ReturnType<typeof getPartnerConfigCodec> & SelfFetchFunctions<PartnerConfigArgs, PartnerConfig>;
4204
+ partnerMetadata: ReturnType<typeof getPartnerMetadataCodec> & SelfFetchFunctions<PartnerMetadataArgs, PartnerMetadata>;
4205
+ rewardState: ReturnType<typeof getRewardStateCodec> & SelfFetchFunctions<RewardStateArgs, RewardState>;
4206
+ stakingConfig: ReturnType<typeof getStakingConfigCodec> & SelfFetchFunctions<StakingConfigArgs, StakingConfig>;
4207
+ userRewardDebt: ReturnType<typeof getUserRewardDebtCodec> & SelfFetchFunctions<UserRewardDebtArgs, UserRewardDebt>;
4208
+ userStakePosition: ReturnType<typeof getUserStakePositionCodec> & SelfFetchFunctions<UserStakePositionArgs, UserStakePosition>;
4209
+ };
4210
+ type SendNexusPluginEvents = {
4211
+ claimEvent: ReturnType<typeof getClaimEventDecoder>;
4212
+ stakeEvent: ReturnType<typeof getStakeEventDecoder>;
4213
+ unstakeEvent: ReturnType<typeof getUnstakeEventDecoder>;
4214
+ };
4215
+ type SendNexusPluginInstructions = {
4216
+ claim: (input: MakeOptional<ClaimAsyncInput, "payer">) => ReturnType<typeof getClaimInstructionAsync> & SelfPlanAndSendFunctions;
4217
+ createUserRewardDebt: (input: MakeOptional<CreateUserRewardDebtAsyncInput, "payer">) => ReturnType<typeof getCreateUserRewardDebtInstructionAsync> & SelfPlanAndSendFunctions;
4218
+ settle: (input: MakeOptional<SettleAsyncInput, "payer">) => ReturnType<typeof getSettleInstructionAsync> & SelfPlanAndSendFunctions;
4219
+ stake: (input: MakeOptional<StakeAsyncInput, "payer">) => ReturnType<typeof getStakeInstructionAsync> & SelfPlanAndSendFunctions;
4220
+ unstake: (input: MakeOptional<UnstakeAsyncInput, "payer">) => ReturnType<typeof getUnstakeInstructionAsync> & SelfPlanAndSendFunctions;
4221
+ };
4222
+ type SendNexusPluginPdas = {
4223
+ globalConfig: typeof findGlobalConfigPda;
4224
+ feePreset: typeof findFeePresetPda;
4225
+ partnerConfig: typeof findPartnerConfigPda;
4226
+ partnerMetadata: typeof findPartnerMetadataPda;
4227
+ defaultFeePreset: typeof findDefaultFeePresetPda;
4228
+ defaultPartner: typeof findDefaultPartnerPda;
4229
+ defaultPartnerMetadata: typeof findDefaultPartnerMetadataPda;
4230
+ stakingConfig: typeof findStakingConfigPda;
4231
+ rewardState: typeof findRewardStatePda;
4232
+ userStakePosition: typeof findUserStakePositionPda;
4233
+ userRewardDebt: typeof findUserRewardDebtPda;
4234
+ eventAuthority: typeof findEventAuthorityPda;
4235
+ creatorFeeConfig: typeof findCreatorFeeConfigPda;
4236
+ altRegistry: typeof findAltRegistryPda;
4237
+ };
4238
+ type SendNexusPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
4239
+ declare function sendNexusProgram(): <T extends SendNexusPluginRequirements>(client: T) => ExtendedClient<T, {
4240
+ sendNexus: SendNexusPlugin;
4241
+ }>;
4242
+ type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
4243
+ declare namespace index_d_exports$5 {
4244
+ export { SendNexusPlugin, SendNexusPluginAccounts, SendNexusPluginEvents, SendNexusPluginInstructions, SendNexusPluginPdas, SendNexusPluginRequirements, sendNexusProgram };
4245
+ }
4246
+ declare namespace fee_helpers_d_exports {
4247
+ export { effectiveFeeBps, fetchPartnerFees };
4248
+ }
4249
+ /** Throws if the pair is unregistered. Take `platformConfig` from the market being priced: a partner's fees differ per platform. */
4250
+ declare function fetchPartnerFees(rpc: Rpc<GetAccountInfoApi>, partner: Address, platformConfig: Address): Promise<PartnerConfig>;
4251
+ /** The `feeBps` a trade pays: the standard rate plus the decay premium from the market's
4252
+ * `createdAt`. Pass `fees.launchpad` for a curve, `fees.dex` for a pool; times in unix seconds. */
4253
+ declare function effectiveFeeBps(schedule: LaunchpadFees | DexFees, createdAt: bigint, now: bigint): number;
4254
+ declare namespace staking_d_exports {
4255
+ export { ClaimRewardsParams, PendingReward, PrepareStakingParams, RewardMintRpc, RewardMintSource, SettleParams, StakeParams, UnstakeParams, WithdrawFeesAccounts, buildClaimRewardsInstructions, buildSettleInstructions, buildStakeInstruction, buildStakingPreflightInstructions, buildUnstakeInstruction, buildWithdrawFeesAccounts, fetchMissingUserRewardDebts, fetchPendingRewards, fetchSendMint, fetchStakingConfigData, fetchUserStakePositionData, getRewardMints, isFullySettled, isStakingMintBound };
4256
+ }
4257
+ /** `getProgramAccounts` is optional: many providers restrict it and LiteSVM lacks it, so pass `rewardMints` there. */
4258
+ type RewardMintRpc = Rpc<GetAccountInfoApi> & Partial<Rpc<GetProgramAccountsApi>>;
4259
+ /** Registered reward mints, sorted by address. Includes disabled mints: their accrued balance is
4260
+ * still owed and the settle gate still counts them. Throws when the sweep disagrees with
4261
+ * `StakingConfig.rewardCount` rather than settle a short list. */
4262
+ declare function getRewardMints(rpc: Rpc<GetAccountInfoApi> & Rpc<GetProgramAccountsApi>): Promise<readonly Address[]>;
4263
+ type RewardMintSource = readonly Address[] | RewardMintRpc;
4264
+ interface SettleParams {
4265
+ /** `settle` is permissionless: the user does not sign. */
4266
+ user: Address;
4267
+ payer: TransactionSigner;
4268
+ stakingMint: Address;
4269
+ }
4270
+ /** One idempotent `settle` per mint; a partial mint list leaves `stake` and `unstake` failing `RewardsNotSettled`. */
4271
+ declare function buildSettleInstructions(source: RewardMintSource, params: SettleParams): Promise<Instruction[]>;
4272
+ declare function fetchMissingUserRewardDebts(rpc: RewardMintRpc & Rpc<GetMultipleAccountsApi>, user: Address, stakingMint: Address, knownRewardMints?: readonly Address[]): Promise<Address[]>;
4273
+ interface PrepareStakingParams {
4274
+ user: Address;
4275
+ payer: TransactionSigner;
4276
+ stakingMint: Address;
4277
+ /** Must be the full registry when supplied; a subset leaves `stake` and `unstake` blocked. */
4278
+ rewardMints?: readonly Address[];
4279
+ }
4280
+ /** Opens missing `UserRewardDebt`s, then settles every mint; the user never signs, so the stake or unstake after is one wallet prompt. */
4281
+ declare function buildStakingPreflightInstructions(rpc: RewardMintRpc & Rpc<GetMultipleAccountsApi>, params: PrepareStakingParams): Promise<Instruction[]>;
4282
+ /** True once `stake` and `unstake` will pass the `settledCount == rewardCount` gate. */
4283
+ declare function isFullySettled(rpc: Rpc<GetAccountInfoApi>, user: Address, stakingMint: Address): Promise<boolean>;
4284
+ interface StakeParams {
4285
+ user: TransactionSigner;
4286
+ payer?: TransactionSigner;
4287
+ stakingMint: Address;
4288
+ amount: bigint;
4289
+ }
4290
+ /** Fails `RewardsNotSettled` until every mint is settled at the current `stakeVersion`; run `buildStakingPreflightInstructions` first. */
4291
+ declare function buildStakeInstruction(params: StakeParams): Promise<Instruction>;
4292
+ interface UnstakeParams {
4293
+ user: TransactionSigner;
4294
+ payer?: TransactionSigner;
4295
+ stakingMint: Address;
4296
+ amount: bigint;
4297
+ }
4298
+ /** Settle immediately before via `buildStakingPreflightInstructions`: the gate passes on a stale settle,
4299
+ * and the window since it is then paid at the post-unstake amount, forfeiting accrual. */
4300
+ declare function buildUnstakeInstruction(params: UnstakeParams): Promise<Instruction>;
4301
+ interface ClaimRewardsParams {
4302
+ user: TransactionSigner;
4303
+ payer?: TransactionSigner;
4304
+ stakingMint: Address;
4305
+ /** Defaults to every registered mint; each claim settles its own mint, so a subset needs no preflight. */
4306
+ rewardMints?: readonly Address[];
4307
+ }
4308
+ /** One `claim` per mint, preceded by `create_user_reward_debt` where the debt is missing:
4309
+ * `Claim` requires the account to exist, so one missing debt fails the whole transaction. */
4310
+ declare function buildClaimRewardsInstructions(rpc: RewardMintRpc & Rpc<GetMultipleAccountsApi>, params: ClaimRewardsParams): Promise<Instruction[]>;
4311
+ interface WithdrawFeesAccounts {
4312
+ rewardState: Address;
4313
+ vault: Address;
4314
+ rewardMint: Address;
4315
+ destinationTokenAccount: Address;
4316
+ tokenProgram: Address;
4317
+ }
4318
+ /** Accounts for one mint's `withdraw_fees`; call once per mint. */
4319
+ declare function buildWithdrawFeesAccounts(rpc: Rpc<GetAccountInfoApi>, params: {
4320
+ rewardMint: Address;
4321
+ /** Wallet, not token account: its ATA is derived. */
4322
+ destination: Address;
4323
+ tokenProgram?: Address;
4324
+ }): Promise<WithdrawFeesAccounts>;
4325
+ declare function fetchStakingConfigData(rpc: Rpc<GetAccountInfoApi>): Promise<StakingConfig>;
4326
+ declare function fetchUserStakePositionData(rpc: Rpc<GetAccountInfoApi>, user: Address, stakingMint: Address): Promise<UserStakePosition | null>;
4327
+ /** Unbound reads as `Pubkey::default()` (the system program address), which `bind_staking_mint`
4328
+ * can never store: it requires a token mint. */
4329
+ declare function isStakingMintBound(stakingMint: Address): boolean;
4330
+ /** The staking mint is immutable once bound, so this result is safe to cache. */
4331
+ declare function fetchSendMint(rpc: Rpc<GetAccountInfoApi>): Promise<Address>;
4332
+ interface PendingReward {
4333
+ rewardMint: Address;
4334
+ /** Base units of `rewardMint`. */
4335
+ pending: bigint;
4336
+ }
4337
+ /** One entry per reward mint, in `knownRewardMints` order, else sorted by address. Each amount is in
4338
+ * its own mint's base units, so never sum them. */
4339
+ declare function fetchPendingRewards(rpc: RewardMintRpc & Rpc<GetMultipleAccountsApi>, user: Address, stakingMint: Address, knownRewardMints?: readonly Address[]): Promise<PendingReward[]>;
4340
+ declare namespace index_d_exports$3 {
4341
+ export { index_d_exports$10 as accounts, index_d_exports$8 as errors, index_d_exports$9 as events, fee_helpers_d_exports as feeHelpers, index_d_exports$7 as instructions, index_d_exports$6 as pda, index_d_exports$5 as plugins, staking_d_exports as staking, index_d_exports$11 as types };
4342
+ }
4343
+ declare namespace platform_d_exports {
4344
+ export { PLATFORM_SEED, findPlatformAddress };
4345
+ }
4346
+ /** A platform is only a key, with no on-chain account; it is a PDA so a platform account can later `init` at it. */
4347
+ declare const PLATFORM_SEED = "platform";
4348
+ /** The name is the platform's identity: renaming one orphans every market and partner config under the old key. */
4349
+ declare function findPlatformAddress(name: string): Promise<ProgramDerivedAddress>;
4350
+ declare namespace transfer_fee_d_exports {
4351
+ export { TransferFeeConfig, TransferFeeEntry, decodeTransferFeeConfig, fetchMintFees, mintFeeAtEpoch, transferFeeAtEpoch };
4352
+ }
4353
+ interface TransferFeeEntry {
4354
+ readonly epoch: bigint;
4355
+ readonly maximumFee: bigint;
4356
+ readonly basisPoints: number;
4357
+ }
4358
+ interface TransferFeeConfig {
4359
+ /** `undefined` when the authority is unset: the schedule is frozen forever. */
4360
+ readonly authority: Address | undefined;
4361
+ readonly older: TransferFeeEntry;
4362
+ readonly newer: TransferFeeEntry;
4363
+ }
4364
+ /** `owner` is the account's program. `undefined` means no fee extension; anything
4365
+ * unparseable throws `RangeError` rather than pricing a charging mint free. */
4366
+ declare function decodeTransferFeeConfig(data: Uint8Array, owner: Address): TransferFeeConfig | undefined;
4367
+ /** Mirrors SPL `get_epoch_fee`: the newer entry is live from its own epoch on. */
4368
+ declare function transferFeeAtEpoch(config: TransferFeeConfig, epoch: bigint): MintFee;
4369
+ declare function mintFeeAtEpoch(data: Uint8Array, owner: Address, epoch: bigint): MintFee | undefined;
4370
+ /** A missing account throws, never reads as fee-free. Valid only for `epoch`, which defaults to
4371
+ * the cluster's (a second call). */
4372
+ declare function fetchMintFees(rpc: Rpc<GetMultipleAccountsApi & GetEpochInfoApi>, mints: readonly Address[], options?: {
4373
+ epoch?: bigint;
4374
+ commitment?: Commitment;
4375
+ }): Promise<Map<Address, MintFee | undefined>>;
4376
+ //#endregion
4377
+ //#region src/utils/creator-hash.d.ts
4378
+ /** SHA-256 of the LE-u32-length-prefixed platform and id. Frozen: it seeds live PDAs. */
4379
+ declare function creatorHashFromId(creatorPlatform: string, creatorId: string): Promise<Address>;
4380
+ /** NUL-pads `text` to `length` bytes, the on-chain `CreatorFeeConfig.platformId` form; throws RangeError if longer. */
4381
+ declare function encodeCreatorId(text: string, length: number): Uint8Array;
4382
+ /** Strips NUL padding. Pass this, never the padded array, to {@link creatorHashFromId}: the hash is length-prefixed. */
4383
+ declare function decodeCreatorId(bytes: ReadonlyUint8Array): string;
4384
+ //#endregion
4385
+ //#region src/utils/mint-info.d.ts
4386
+ interface QuoteMintInfo {
4387
+ mint: Address;
4388
+ /** Immutable: safe to cache. */
4389
+ decimals: number;
4390
+ /** The account's owner: `TOKEN_PROGRAM_ADDRESS` or `TOKEN_2022_PROGRAM_ADDRESS`. */
4391
+ tokenProgram: Address;
4392
+ }
4393
+ /** Throws when the mint does not exist or is not owned by a token program. */
4394
+ declare function fetchQuoteMintInfo(rpc: Rpc<GetAccountInfoApi>, mint: Address, commitment?: Commitment): Promise<QuoteMintInfo>;
4395
+ /** One round trip per 100 mints; results follow `mints` order. */
4396
+ declare function fetchQuoteMintInfos(rpc: Rpc<GetMultipleAccountsApi>, mints: readonly Address[], commitment?: Commitment): Promise<QuoteMintInfo[]>;
4397
+ //#endregion
4398
+ //#region src/utils/pda.d.ts
4399
+ /** Seed order is [wallet, tokenProgram, mint], not the parameter order. */
4400
+ declare function findAssociatedTokenPda(wallet: Address, mint: Address, tokenProgram?: Address): Promise<ProgramDerivedAddress>;
4401
+ declare namespace index_d_exports$4 {
4402
+ export { PartnerInput, QuoteMintInfo, creatorHashFromId, decodeCreatorId, encodeCreatorId, fetchQuoteMintInfo, fetchQuoteMintInfos, findAssociatedTokenPda };
4403
+ }
4404
+ //#endregion
4405
+ export { constants_d_exports as constants, index_d_exports as dex, index_d_exports$1 as launchpad, index_d_exports$2 as math, index_d_exports$3 as nexus, platform_d_exports as platform, transfer_fee_d_exports as transferFee, index_d_exports$4 as utils };
4406
+ //# sourceMappingURL=index.d.cts.map