@send-fun/sdk 1.2.0 → 2.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.
- package/dist/index.cjs +281 -365
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +125 -166
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +125 -166
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +281 -365
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/dex/generated/accounts/pool.ts +19 -7
- package/src/dex/generated/errors/sendDex.ts +16 -8
- package/src/dex/generated/events/creatorClaimEvent.ts +3 -2
- package/src/dex/generated/events/poolCreateEvent.ts +8 -2
- package/src/dex/generated/events/tokenCreateEvent.ts +8 -9
- package/src/dex/generated/events/tradeEvent.ts +9 -2
- package/src/dex/generated/instructions/claimCreatorFees.ts +21 -5
- package/src/{nexus → dex}/generated/pdas/creatorFeeConfig.ts +6 -6
- package/src/dex/generated/pdas/index.ts +1 -0
- package/src/dex/generated/plugins/sendDex.ts +3 -0
- package/src/launchpad/create.ts +9 -34
- package/src/launchpad/generated/accounts/bondingCurve.ts +23 -7
- package/src/launchpad/generated/errors/sendLaunchpad.ts +12 -4
- package/src/launchpad/generated/events/completeEvent.ts +3 -2
- package/src/launchpad/generated/events/creatorClaimEvent.ts +3 -2
- package/src/launchpad/generated/events/migrateEvent.ts +3 -2
- package/src/launchpad/generated/events/tokenCreateEvent.ts +10 -9
- package/src/launchpad/generated/events/tradeEvent.ts +9 -2
- package/src/launchpad/generated/instructions/claimCreatorFees.ts +17 -4
- package/src/launchpad/generated/instructions/createToken.ts +32 -50
- package/src/launchpad/generated/instructions/migrate.ts +79 -12
- package/src/launchpad/generated/pdas/creatorFeeConfig.ts +39 -0
- package/src/launchpad/generated/pdas/index.ts +1 -0
- package/src/launchpad/generated/plugins/sendLaunchpad.ts +3 -0
- package/src/launchpad/migrate.ts +7 -4
- package/src/nexus/fee-helpers.ts +8 -5
- package/src/nexus/generated/accounts/feePreset.ts +2 -2
- package/src/nexus/generated/accounts/index.ts +0 -1
- package/src/nexus/generated/accounts/partnerConfig.ts +9 -3
- package/src/nexus/generated/accounts/sendNexus.accounts.ts +0 -5
- package/src/nexus/generated/accounts/userRewardDebt.ts +3 -3
- package/src/nexus/generated/accounts/userStakePosition.ts +3 -3
- package/src/nexus/generated/errors/sendNexus.ts +12 -4
- package/src/nexus/generated/pdas/index.ts +0 -1
- package/src/nexus/generated/plugins/sendNexus.ts +0 -35
- package/src/nexus/generated/types/dexFees.ts +4 -4
- package/src/nexus/generated/types/index.ts +0 -1
- package/src/nexus/generated/types/launchpadFees.ts +4 -4
- package/src/utils/index.ts +0 -5
- package/src/nexus/generated/accounts/creatorFeeConfig.ts +0 -237
- package/src/nexus/generated/types/callerType.ts +0 -38
- package/src/utils/creator-hash.ts +0 -60
package/dist/index.d.cts
CHANGED
|
@@ -120,7 +120,7 @@ type Pool = {
|
|
|
120
120
|
quoteMint: Address;
|
|
121
121
|
quoteDecimals: number;
|
|
122
122
|
coinCreator: Address;
|
|
123
|
-
|
|
123
|
+
padding0: Array<bigint>;
|
|
124
124
|
baseVault: Address;
|
|
125
125
|
quoteVault: Address;
|
|
126
126
|
lpMint: Address;
|
|
@@ -132,6 +132,8 @@ type Pool = {
|
|
|
132
132
|
protocolOwed: bigint;
|
|
133
133
|
creatorOwed: bigint;
|
|
134
134
|
platformConfig: Address;
|
|
135
|
+
creatorFeeMode: number;
|
|
136
|
+
creatorFeeBps: number;
|
|
135
137
|
reserved: ReadonlyUint8Array;
|
|
136
138
|
};
|
|
137
139
|
type PoolArgs = {
|
|
@@ -143,7 +145,7 @@ type PoolArgs = {
|
|
|
143
145
|
quoteMint: Address;
|
|
144
146
|
quoteDecimals: number;
|
|
145
147
|
coinCreator: Address;
|
|
146
|
-
|
|
148
|
+
padding0: Array<number | bigint>;
|
|
147
149
|
baseVault: Address;
|
|
148
150
|
quoteVault: Address;
|
|
149
151
|
lpMint: Address;
|
|
@@ -155,6 +157,8 @@ type PoolArgs = {
|
|
|
155
157
|
protocolOwed: number | bigint;
|
|
156
158
|
creatorOwed: number | bigint;
|
|
157
159
|
platformConfig: Address;
|
|
160
|
+
creatorFeeMode: number;
|
|
161
|
+
creatorFeeBps: number;
|
|
158
162
|
reserved: ReadonlyUint8Array;
|
|
159
163
|
};
|
|
160
164
|
/** Gets the encoder for {@link PoolArgs} account data. */
|
|
@@ -299,8 +303,8 @@ declare const SEND_DEX_ERROR__INVALID_POOL_BALANCE = 6008;
|
|
|
299
303
|
declare const SEND_DEX_ERROR__INSUFFICIENT_POOL_BALANCE = 6009;
|
|
300
304
|
/** InvalidAuthority: Invalid authority */
|
|
301
305
|
declare const SEND_DEX_ERROR__INVALID_AUTHORITY = 6010;
|
|
302
|
-
/**
|
|
303
|
-
declare const
|
|
306
|
+
/** InvalidCoinCreator: Invalid coin creator */
|
|
307
|
+
declare const SEND_DEX_ERROR__INVALID_COIN_CREATOR = 6011;
|
|
304
308
|
/** InvalidPlatformConfig: Platform config cannot be the default address */
|
|
305
309
|
declare const SEND_DEX_ERROR__INVALID_PLATFORM_CONFIG = 6012;
|
|
306
310
|
/** ProgramPaused: Program is paused */
|
|
@@ -327,17 +331,21 @@ declare const SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT = 7009;
|
|
|
327
331
|
declare const SEND_DEX_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY = 7010;
|
|
328
332
|
/** NothingToClaim: Nothing to claim */
|
|
329
333
|
declare const SEND_DEX_ERROR__NOTHING_TO_CLAIM = 7011;
|
|
330
|
-
/**
|
|
331
|
-
declare const
|
|
334
|
+
/** Unused7012: Unused */
|
|
335
|
+
declare const SEND_DEX_ERROR__UNUSED7012 = 7012;
|
|
332
336
|
/** QuoteMintPriceUnset: Quote mint has no USDC price on its nexus reward state */
|
|
333
337
|
declare const SEND_DEX_ERROR__QUOTE_MINT_PRICE_UNSET = 7013;
|
|
334
338
|
/** TransferFeeNotSettleable: Token-2022 transfer fee schedule cannot settle the exact amount */
|
|
335
339
|
declare const SEND_DEX_ERROR__TRANSFER_FEE_NOT_SETTLEABLE = 7014;
|
|
340
|
+
/** CreatorFeeTooHigh: Creator fee exceeds the partner's maximum */
|
|
341
|
+
declare const SEND_DEX_ERROR__CREATOR_FEE_TOO_HIGH = 7015;
|
|
342
|
+
/** CreatorFeeModeNotAllowed: Creator fee mode is not allowed by the partner config */
|
|
343
|
+
declare const SEND_DEX_ERROR__CREATOR_FEE_MODE_NOT_ALLOWED = 7016;
|
|
336
344
|
/** InsufficientLiquidity: Insufficient liquidity */
|
|
337
345
|
declare const SEND_DEX_ERROR__INSUFFICIENT_LIQUIDITY = 7100;
|
|
338
346
|
/** InvalidAmount: Invalid amount */
|
|
339
347
|
declare const SEND_DEX_ERROR__INVALID_AMOUNT = 7101;
|
|
340
|
-
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
|
|
348
|
+
type SendDexError = typeof SEND_DEX_ERROR__ARITHMETIC_OVERFLOW | typeof SEND_DEX_ERROR__CREATOR_FEE_MODE_NOT_ALLOWED | typeof SEND_DEX_ERROR__CREATOR_FEE_TOO_HIGH | 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_COIN_CREATOR | 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__UNUSED7012 | 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;
|
|
341
349
|
declare const sendDexErrorMessages: Record<SendDexError, string>;
|
|
342
350
|
declare function getSendDexErrorMessage(code: SendDexError): string;
|
|
343
351
|
declare function isSendDexError<TProgramErrorCode extends SendDexError>(error: unknown, transactionMessage: {
|
|
@@ -350,9 +358,16 @@ declare function isSendDexError<TProgramErrorCode extends SendDexError>(error: u
|
|
|
350
358
|
}>;
|
|
351
359
|
}>;
|
|
352
360
|
declare namespace index_d_exports$23 {
|
|
353
|
-
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,
|
|
361
|
+
export { SEND_DEX_ERROR__ARITHMETIC_OVERFLOW, SEND_DEX_ERROR__CREATOR_FEE_MODE_NOT_ALLOWED, SEND_DEX_ERROR__CREATOR_FEE_TOO_HIGH, 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_COIN_CREATOR, 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__UNUSED7012, 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 };
|
|
354
362
|
}
|
|
355
363
|
//#endregion
|
|
364
|
+
//#region src/dex/generated/pdas/creatorFeeConfig.d.ts
|
|
365
|
+
type CreatorFeeConfigSeeds$1 = {
|
|
366
|
+
baseMint: Address;
|
|
367
|
+
quoteMint: Address;
|
|
368
|
+
};
|
|
369
|
+
declare function findCreatorFeeConfigPda$1(seeds: CreatorFeeConfigSeeds$1): Promise<ProgramDerivedAddress>;
|
|
370
|
+
//#endregion
|
|
356
371
|
//#region src/dex/generated/pdas/eventAuthority.d.ts
|
|
357
372
|
declare const EVENT_AUTHORITY_PDA_ADDRESS$2: Address<"4pTDYKRFdmxTQYFceGZkzPGd3kb8ShMA9n6XKRaPZn8t">;
|
|
358
373
|
declare function findEventAuthorityPda$2(): ProgramDerivedAddress;
|
|
@@ -385,7 +400,7 @@ declare function findRewardAccrualPda$1(seeds: RewardAccrualSeeds$1): Promise<Pr
|
|
|
385
400
|
declare const WSOL_REWARD_ACCRUAL_PDA_ADDRESS$1: Address<"3AvcBtMajsyeNufVwkxV7UNXWo6G1qkJmCpiXx1HcFg8">;
|
|
386
401
|
declare function findWsolRewardAccrualPda$1(): ProgramDerivedAddress;
|
|
387
402
|
declare namespace index_d_exports$22 {
|
|
388
|
-
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 };
|
|
403
|
+
export { CreatorFeeConfigSeeds$1 as CreatorFeeConfigSeeds, 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, findCreatorFeeConfigPda$1 as findCreatorFeeConfigPda, findEventAuthorityPda$2 as findEventAuthorityPda, findGlobalConfigPda$2 as findGlobalConfigPda, findLpMintPda, findPoolPda, findRewardAccrualPda$1 as findRewardAccrualPda, findWsolRewardAccrualPda$1 as findWsolRewardAccrualPda };
|
|
389
404
|
}
|
|
390
405
|
//#endregion
|
|
391
406
|
//#region src/dex/generated/events/anchorEventCpiDiscriminator.framing.d.ts
|
|
@@ -407,7 +422,7 @@ type CreatorClaimEvent$1 = {
|
|
|
407
422
|
quoteMint: Address;
|
|
408
423
|
platformConfig: Address;
|
|
409
424
|
coinCreator: Address;
|
|
410
|
-
|
|
425
|
+
padding0: Array<bigint>;
|
|
411
426
|
claimer: Address;
|
|
412
427
|
destinationOwner: Address;
|
|
413
428
|
amount: bigint;
|
|
@@ -498,7 +513,7 @@ type PoolCreateEvent = {
|
|
|
498
513
|
quoteMint: Address;
|
|
499
514
|
quoteDecimals: number;
|
|
500
515
|
coinCreator: Address;
|
|
501
|
-
|
|
516
|
+
padding0: Array<bigint>;
|
|
502
517
|
platformConfig: Address;
|
|
503
518
|
baseVault: Address;
|
|
504
519
|
quoteVault: Address;
|
|
@@ -507,6 +522,8 @@ type PoolCreateEvent = {
|
|
|
507
522
|
baseReserves: bigint;
|
|
508
523
|
quoteReserves: bigint;
|
|
509
524
|
timestamp: bigint;
|
|
525
|
+
creatorFeeMode: number;
|
|
526
|
+
creatorFeeBps: number;
|
|
510
527
|
};
|
|
511
528
|
declare function getPoolCreateEventDecoder(): FixedSizeDecoder<PoolCreateEvent>;
|
|
512
529
|
/**
|
|
@@ -591,9 +608,7 @@ type TokenCreateEvent$1 = {
|
|
|
591
608
|
quoteMint: Address;
|
|
592
609
|
quoteDecimals: number;
|
|
593
610
|
coinCreator: Address;
|
|
594
|
-
|
|
595
|
-
creatorId: string;
|
|
596
|
-
creatorFeeConfig: Address;
|
|
611
|
+
padding0: Array<bigint>;
|
|
597
612
|
platformConfig: Address;
|
|
598
613
|
name: string;
|
|
599
614
|
symbol: string;
|
|
@@ -604,6 +619,8 @@ type TokenCreateEvent$1 = {
|
|
|
604
619
|
baseReserves: bigint;
|
|
605
620
|
quoteReserves: bigint;
|
|
606
621
|
timestamp: bigint;
|
|
622
|
+
creatorFeeMode: number;
|
|
623
|
+
creatorFeeBps: number;
|
|
607
624
|
};
|
|
608
625
|
declare function getTokenCreateEventDecoder$1(): Decoder<TokenCreateEvent$1>;
|
|
609
626
|
/**
|
|
@@ -644,7 +661,7 @@ type TradeEvent$1 = {
|
|
|
644
661
|
quoteMint: Address;
|
|
645
662
|
user: Address;
|
|
646
663
|
coinCreator: Address;
|
|
647
|
-
|
|
664
|
+
padding0: Array<bigint>;
|
|
648
665
|
platformConfig: Address;
|
|
649
666
|
baseAmount: bigint;
|
|
650
667
|
quoteAmountGross: bigint;
|
|
@@ -660,6 +677,8 @@ type TradeEvent$1 = {
|
|
|
660
677
|
baseReserves: bigint;
|
|
661
678
|
quoteReserves: bigint;
|
|
662
679
|
timestamp: bigint;
|
|
680
|
+
creatorFeeMode: number;
|
|
681
|
+
creatorFeeBps: number;
|
|
663
682
|
};
|
|
664
683
|
declare function getTradeEventDecoder$1(): FixedSizeDecoder<TradeEvent$1>;
|
|
665
684
|
/**
|
|
@@ -921,7 +940,7 @@ declare function parseBuyExactOutInstruction$1<TProgram extends string, TAccount
|
|
|
921
940
|
//#region src/dex/generated/instructions/claimCreatorFees.d.ts
|
|
922
941
|
declare const CLAIM_CREATOR_FEES_DISCRIMINATOR$1: ReadonlyUint8Array;
|
|
923
942
|
declare function getClaimCreatorFeesDiscriminatorBytes$1(): ReadonlyUint8Array;
|
|
924
|
-
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 ?
|
|
943
|
+
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 ? WritableAccount<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]>;
|
|
925
944
|
type ClaimCreatorFeesInstructionData$1 = {
|
|
926
945
|
discriminator: ReadonlyUint8Array;
|
|
927
946
|
};
|
|
@@ -933,7 +952,7 @@ type ClaimCreatorFeesAsyncInput$1<TAccountClaimer extends string = string, TAcco
|
|
|
933
952
|
claimer: TransactionSigner<TAccountClaimer>;
|
|
934
953
|
payer: TransactionSigner<TAccountPayer>;
|
|
935
954
|
pool?: Address<TAccountPool>;
|
|
936
|
-
creatorFeeConfig
|
|
955
|
+
creatorFeeConfig?: Address<TAccountCreatorFeeConfig>;
|
|
937
956
|
baseMint: Address<TAccountBaseMint>;
|
|
938
957
|
quoteMint: Address<TAccountQuoteMint>;
|
|
939
958
|
quoteVault?: Address<TAccountQuoteVault>;
|
|
@@ -1283,6 +1302,7 @@ type SendDexPluginInstructions = {
|
|
|
1283
1302
|
type SendDexPluginPdas = {
|
|
1284
1303
|
pool: typeof findPoolPda;
|
|
1285
1304
|
eventAuthority: typeof findEventAuthorityPda$2;
|
|
1305
|
+
creatorFeeConfig: typeof findCreatorFeeConfigPda$1;
|
|
1286
1306
|
rewardAccrual: typeof findRewardAccrualPda$1;
|
|
1287
1307
|
globalConfig: typeof findGlobalConfigPda$2;
|
|
1288
1308
|
lpMint: typeof findLpMintPda;
|
|
@@ -1532,7 +1552,7 @@ type BondingCurve = {
|
|
|
1532
1552
|
quoteMint: Address;
|
|
1533
1553
|
quoteDecimals: number;
|
|
1534
1554
|
coinCreator: Address;
|
|
1535
|
-
|
|
1555
|
+
padding0: Array<bigint>;
|
|
1536
1556
|
partner: Address;
|
|
1537
1557
|
baseVault: Address;
|
|
1538
1558
|
quoteVault: Address;
|
|
@@ -1544,6 +1564,9 @@ type BondingCurve = {
|
|
|
1544
1564
|
protocolOwed: bigint;
|
|
1545
1565
|
creatorOwed: bigint;
|
|
1546
1566
|
platformConfig: Address;
|
|
1567
|
+
creatorFeeMode: number;
|
|
1568
|
+
creatorFeeBps: number;
|
|
1569
|
+
dexCreatorFeeBps: number;
|
|
1547
1570
|
reserved: ReadonlyUint8Array;
|
|
1548
1571
|
};
|
|
1549
1572
|
type BondingCurveArgs = {
|
|
@@ -1559,7 +1582,7 @@ type BondingCurveArgs = {
|
|
|
1559
1582
|
quoteMint: Address;
|
|
1560
1583
|
quoteDecimals: number;
|
|
1561
1584
|
coinCreator: Address;
|
|
1562
|
-
|
|
1585
|
+
padding0: Array<number | bigint>;
|
|
1563
1586
|
partner: Address;
|
|
1564
1587
|
baseVault: Address;
|
|
1565
1588
|
quoteVault: Address;
|
|
@@ -1571,6 +1594,9 @@ type BondingCurveArgs = {
|
|
|
1571
1594
|
protocolOwed: number | bigint;
|
|
1572
1595
|
creatorOwed: number | bigint;
|
|
1573
1596
|
platformConfig: Address;
|
|
1597
|
+
creatorFeeMode: number;
|
|
1598
|
+
creatorFeeBps: number;
|
|
1599
|
+
dexCreatorFeeBps: number;
|
|
1574
1600
|
reserved: ReadonlyUint8Array;
|
|
1575
1601
|
};
|
|
1576
1602
|
/** Gets the encoder for {@link BondingCurveArgs} account data. */
|
|
@@ -1821,17 +1847,21 @@ declare const SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT = 7009;
|
|
|
1821
1847
|
declare const SEND_LAUNCHPAD_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY = 7010;
|
|
1822
1848
|
/** NothingToClaim: Nothing to claim */
|
|
1823
1849
|
declare const SEND_LAUNCHPAD_ERROR__NOTHING_TO_CLAIM = 7011;
|
|
1824
|
-
/**
|
|
1825
|
-
declare const
|
|
1850
|
+
/** Unused7012: Unused */
|
|
1851
|
+
declare const SEND_LAUNCHPAD_ERROR__UNUSED7012 = 7012;
|
|
1826
1852
|
/** QuoteMintPriceUnset: Quote mint has no USDC price on its nexus reward state */
|
|
1827
1853
|
declare const SEND_LAUNCHPAD_ERROR__QUOTE_MINT_PRICE_UNSET = 7013;
|
|
1828
1854
|
/** TransferFeeNotSettleable: Token-2022 transfer fee schedule cannot settle the exact amount */
|
|
1829
1855
|
declare const SEND_LAUNCHPAD_ERROR__TRANSFER_FEE_NOT_SETTLEABLE = 7014;
|
|
1856
|
+
/** CreatorFeeTooHigh: Creator fee exceeds the partner's maximum */
|
|
1857
|
+
declare const SEND_LAUNCHPAD_ERROR__CREATOR_FEE_TOO_HIGH = 7015;
|
|
1858
|
+
/** CreatorFeeModeNotAllowed: Creator fee mode is not allowed by the partner config */
|
|
1859
|
+
declare const SEND_LAUNCHPAD_ERROR__CREATOR_FEE_MODE_NOT_ALLOWED = 7016;
|
|
1830
1860
|
/** InsufficientLiquidity: Insufficient liquidity */
|
|
1831
1861
|
declare const SEND_LAUNCHPAD_ERROR__INSUFFICIENT_LIQUIDITY = 7100;
|
|
1832
1862
|
/** InvalidAmount: Invalid amount */
|
|
1833
1863
|
declare const SEND_LAUNCHPAD_ERROR__INVALID_AMOUNT = 7101;
|
|
1834
|
-
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
|
|
1864
|
+
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__CREATOR_FEE_MODE_NOT_ALLOWED | typeof SEND_LAUNCHPAD_ERROR__CREATOR_FEE_TOO_HIGH | 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_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__UNUSED7012 | 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;
|
|
1835
1865
|
declare const sendLaunchpadErrorMessages: Record<SendLaunchpadError, string>;
|
|
1836
1866
|
declare function getSendLaunchpadErrorMessage(code: SendLaunchpadError): string;
|
|
1837
1867
|
declare function isSendLaunchpadError<TProgramErrorCode extends SendLaunchpadError>(error: unknown, transactionMessage: {
|
|
@@ -1844,7 +1874,7 @@ declare function isSendLaunchpadError<TProgramErrorCode extends SendLaunchpadErr
|
|
|
1844
1874
|
}>;
|
|
1845
1875
|
}>;
|
|
1846
1876
|
declare namespace index_d_exports$16 {
|
|
1847
|
-
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,
|
|
1877
|
+
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__CREATOR_FEE_MODE_NOT_ALLOWED, SEND_LAUNCHPAD_ERROR__CREATOR_FEE_TOO_HIGH, 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_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__UNUSED7012, 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 };
|
|
1848
1878
|
}
|
|
1849
1879
|
//#endregion
|
|
1850
1880
|
//#region src/launchpad/generated/pdas/bondingCurve.d.ts
|
|
@@ -1854,6 +1884,13 @@ type BondingCurveSeeds = {
|
|
|
1854
1884
|
};
|
|
1855
1885
|
declare function findBondingCurvePda(seeds: BondingCurveSeeds): Promise<ProgramDerivedAddress>;
|
|
1856
1886
|
//#endregion
|
|
1887
|
+
//#region src/launchpad/generated/pdas/creatorFeeConfig.d.ts
|
|
1888
|
+
type CreatorFeeConfigSeeds = {
|
|
1889
|
+
baseMint: Address;
|
|
1890
|
+
quoteMint: Address;
|
|
1891
|
+
};
|
|
1892
|
+
declare function findCreatorFeeConfigPda(seeds: CreatorFeeConfigSeeds): Promise<ProgramDerivedAddress>;
|
|
1893
|
+
//#endregion
|
|
1857
1894
|
//#region src/launchpad/generated/pdas/eventAuthority.d.ts
|
|
1858
1895
|
declare const EVENT_AUTHORITY_PDA_ADDRESS$1: Address<"FJVebqCthxH6JM8vvkJb7yRYA7Emsib1C1vu4ZePSP3T">;
|
|
1859
1896
|
declare function findEventAuthorityPda$1(): ProgramDerivedAddress;
|
|
@@ -1876,7 +1913,7 @@ declare function findRewardAccrualPda(seeds: RewardAccrualSeeds): Promise<Progra
|
|
|
1876
1913
|
declare const WSOL_REWARD_ACCRUAL_PDA_ADDRESS: Address<"91AVurtPdUC2yG3joLoujzC216KAfH5HEKnZEELFMmVH">;
|
|
1877
1914
|
declare function findWsolRewardAccrualPda(): ProgramDerivedAddress;
|
|
1878
1915
|
declare namespace index_d_exports$15 {
|
|
1879
|
-
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 };
|
|
1916
|
+
export { BondingCurveSeeds, CreatorFeeConfigSeeds, 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, findCreatorFeeConfigPda, findEventAuthorityPda$1 as findEventAuthorityPda, findGlobalConfigPda$1 as findGlobalConfigPda, findMigrationAuthorityPda, findRewardAccrualPda, findWsolRewardAccrualPda };
|
|
1880
1917
|
}
|
|
1881
1918
|
declare namespace create_d_exports {
|
|
1882
1919
|
export { CreateAndBuyParams, CreateTokenParams, buildCreateAndBuyInstructions, buildCreateTokenInstruction };
|
|
@@ -1884,19 +1921,20 @@ declare namespace create_d_exports {
|
|
|
1884
1921
|
interface CreateTokenParams {
|
|
1885
1922
|
user: TransactionSigner;
|
|
1886
1923
|
payer?: TransactionSigner;
|
|
1924
|
+
/** The wallet that claims the creator fees. */
|
|
1887
1925
|
coinCreator: Address;
|
|
1888
1926
|
baseMint: TransactionSigner;
|
|
1889
1927
|
quoteMint: Address;
|
|
1890
1928
|
name: string;
|
|
1891
1929
|
symbol: string;
|
|
1892
1930
|
uri: string;
|
|
1893
|
-
/** An enabled nexus auth platform, for example "wallet", of at most 32 bytes. It is hashed
|
|
1894
|
-
* with `creatorId` into the creator fee identity. It is not `platformConfig`. */
|
|
1895
|
-
creatorPlatform: string;
|
|
1896
|
-
creatorId: string;
|
|
1897
1931
|
partner: PartnerInput;
|
|
1898
1932
|
platformConfig: Address;
|
|
1899
1933
|
quoteTokenProgram: Address;
|
|
1934
|
+
creatorFeeMode: number;
|
|
1935
|
+
creatorFeeBps: number;
|
|
1936
|
+
/** The creator fee of the pool after migration, in bps. */
|
|
1937
|
+
dexCreatorFeeBps: number;
|
|
1900
1938
|
}
|
|
1901
1939
|
interface CreateAndBuyParams extends CreateTokenParams {
|
|
1902
1940
|
buyQuoteAmount: bigint;
|
|
@@ -1935,7 +1973,7 @@ type CompleteEvent = {
|
|
|
1935
1973
|
baseMint: Address;
|
|
1936
1974
|
quoteMint: Address;
|
|
1937
1975
|
coinCreator: Address;
|
|
1938
|
-
|
|
1976
|
+
padding0: Array<bigint>;
|
|
1939
1977
|
platformConfig: Address;
|
|
1940
1978
|
curvePartner: Address;
|
|
1941
1979
|
isPartner: boolean;
|
|
@@ -1981,7 +2019,7 @@ type CreatorClaimEvent = {
|
|
|
1981
2019
|
quoteMint: Address;
|
|
1982
2020
|
platformConfig: Address;
|
|
1983
2021
|
coinCreator: Address;
|
|
1984
|
-
|
|
2022
|
+
padding0: Array<bigint>;
|
|
1985
2023
|
claimer: Address;
|
|
1986
2024
|
destinationOwner: Address;
|
|
1987
2025
|
amount: bigint;
|
|
@@ -2027,7 +2065,7 @@ type MigrateEvent = {
|
|
|
2027
2065
|
quoteMint: Address;
|
|
2028
2066
|
pool: Address;
|
|
2029
2067
|
coinCreator: Address;
|
|
2030
|
-
|
|
2068
|
+
padding0: Array<bigint>;
|
|
2031
2069
|
platformConfig: Address;
|
|
2032
2070
|
baseAmount: bigint;
|
|
2033
2071
|
quoteAmount: bigint;
|
|
@@ -2162,9 +2200,7 @@ type TokenCreateEvent = {
|
|
|
2162
2200
|
quoteMint: Address;
|
|
2163
2201
|
quoteDecimals: number;
|
|
2164
2202
|
coinCreator: Address;
|
|
2165
|
-
|
|
2166
|
-
creatorId: string;
|
|
2167
|
-
creatorFeeConfig: Address;
|
|
2203
|
+
padding0: Array<bigint>;
|
|
2168
2204
|
platformConfig: Address;
|
|
2169
2205
|
name: string;
|
|
2170
2206
|
symbol: string;
|
|
@@ -2177,6 +2213,9 @@ type TokenCreateEvent = {
|
|
|
2177
2213
|
realBaseReserves: bigint;
|
|
2178
2214
|
realQuoteReserves: bigint;
|
|
2179
2215
|
timestamp: bigint;
|
|
2216
|
+
creatorFeeMode: number;
|
|
2217
|
+
creatorFeeBps: number;
|
|
2218
|
+
dexCreatorFeeBps: number;
|
|
2180
2219
|
};
|
|
2181
2220
|
declare function getTokenCreateEventDecoder(): Decoder<TokenCreateEvent>;
|
|
2182
2221
|
/**
|
|
@@ -2217,7 +2256,7 @@ type TradeEvent = {
|
|
|
2217
2256
|
quoteMint: Address;
|
|
2218
2257
|
user: Address;
|
|
2219
2258
|
coinCreator: Address;
|
|
2220
|
-
|
|
2259
|
+
padding0: Array<bigint>;
|
|
2221
2260
|
platformConfig: Address;
|
|
2222
2261
|
baseAmount: bigint;
|
|
2223
2262
|
quoteAmountGross: bigint;
|
|
@@ -2234,6 +2273,8 @@ type TradeEvent = {
|
|
|
2234
2273
|
realBaseReserves: bigint;
|
|
2235
2274
|
realQuoteReserves: bigint;
|
|
2236
2275
|
timestamp: bigint;
|
|
2276
|
+
creatorFeeMode: number;
|
|
2277
|
+
creatorFeeBps: number;
|
|
2237
2278
|
};
|
|
2238
2279
|
declare function getTradeEventDecoder(): FixedSizeDecoder<TradeEvent>;
|
|
2239
2280
|
/**
|
|
@@ -2498,7 +2539,7 @@ declare function parseBuyExactOutInstruction<TProgram extends string, TAccountMe
|
|
|
2498
2539
|
//#region src/launchpad/generated/instructions/claimCreatorFees.d.ts
|
|
2499
2540
|
declare const CLAIM_CREATOR_FEES_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2500
2541
|
declare function getClaimCreatorFeesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2501
|
-
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 ?
|
|
2542
|
+
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 ? WritableAccount<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]>;
|
|
2502
2543
|
type ClaimCreatorFeesInstructionData = {
|
|
2503
2544
|
discriminator: ReadonlyUint8Array;
|
|
2504
2545
|
};
|
|
@@ -2510,7 +2551,7 @@ type ClaimCreatorFeesAsyncInput<TAccountClaimer extends string = string, TAccoun
|
|
|
2510
2551
|
claimer: TransactionSigner<TAccountClaimer>;
|
|
2511
2552
|
payer: TransactionSigner<TAccountPayer>;
|
|
2512
2553
|
bondingCurve?: Address<TAccountBondingCurve>;
|
|
2513
|
-
creatorFeeConfig
|
|
2554
|
+
creatorFeeConfig?: Address<TAccountCreatorFeeConfig>;
|
|
2514
2555
|
baseMint: Address<TAccountBaseMint>;
|
|
2515
2556
|
quoteMint: Address<TAccountQuoteMint>;
|
|
2516
2557
|
quoteVault?: Address<TAccountQuoteVault>;
|
|
@@ -2620,21 +2661,21 @@ type CreateTokenInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROG
|
|
|
2620
2661
|
type CreateTokenInstructionData = {
|
|
2621
2662
|
discriminator: ReadonlyUint8Array;
|
|
2622
2663
|
platformConfig: Address;
|
|
2623
|
-
creatorPlatform: string;
|
|
2624
|
-
creatorId: string;
|
|
2625
|
-
creatorHash: Address;
|
|
2626
2664
|
name: string;
|
|
2627
2665
|
symbol: string;
|
|
2628
2666
|
uri: string;
|
|
2667
|
+
creatorFeeMode: number;
|
|
2668
|
+
creatorFeeBps: number;
|
|
2669
|
+
dexCreatorFeeBps: number;
|
|
2629
2670
|
};
|
|
2630
2671
|
type CreateTokenInstructionDataArgs = {
|
|
2631
2672
|
platformConfig: Address;
|
|
2632
|
-
creatorPlatform: string;
|
|
2633
|
-
creatorId: string;
|
|
2634
|
-
creatorHash: Address;
|
|
2635
2673
|
name: string;
|
|
2636
2674
|
symbol: string;
|
|
2637
2675
|
uri: string;
|
|
2676
|
+
creatorFeeMode: number;
|
|
2677
|
+
creatorFeeBps: number;
|
|
2678
|
+
dexCreatorFeeBps: number;
|
|
2638
2679
|
};
|
|
2639
2680
|
declare function getCreateTokenInstructionDataEncoder(): Encoder<CreateTokenInstructionDataArgs>;
|
|
2640
2681
|
declare function getCreateTokenInstructionDataDecoder(): Decoder<CreateTokenInstructionData>;
|
|
@@ -2658,12 +2699,12 @@ type CreateTokenAsyncInput<TAccountUser extends string = string, TAccountPayer e
|
|
|
2658
2699
|
stakingVault?: Address<TAccountStakingVault>;
|
|
2659
2700
|
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
2660
2701
|
platformConfig: CreateTokenInstructionDataArgs["platformConfig"];
|
|
2661
|
-
creatorPlatform: CreateTokenInstructionDataArgs["creatorPlatform"];
|
|
2662
|
-
creatorId: CreateTokenInstructionDataArgs["creatorId"];
|
|
2663
|
-
creatorHash: CreateTokenInstructionDataArgs["creatorHash"];
|
|
2664
2702
|
name: CreateTokenInstructionDataArgs["name"];
|
|
2665
2703
|
symbol: CreateTokenInstructionDataArgs["symbol"];
|
|
2666
2704
|
uri: CreateTokenInstructionDataArgs["uri"];
|
|
2705
|
+
creatorFeeMode: CreateTokenInstructionDataArgs["creatorFeeMode"];
|
|
2706
|
+
creatorFeeBps: CreateTokenInstructionDataArgs["creatorFeeBps"];
|
|
2707
|
+
dexCreatorFeeBps: CreateTokenInstructionDataArgs["dexCreatorFeeBps"];
|
|
2667
2708
|
};
|
|
2668
2709
|
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">>;
|
|
2669
2710
|
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> = {
|
|
@@ -2685,12 +2726,12 @@ type CreateTokenInput<TAccountUser extends string = string, TAccountPayer extend
|
|
|
2685
2726
|
stakingVault: Address<TAccountStakingVault>;
|
|
2686
2727
|
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
2687
2728
|
platformConfig: CreateTokenInstructionDataArgs["platformConfig"];
|
|
2688
|
-
creatorPlatform: CreateTokenInstructionDataArgs["creatorPlatform"];
|
|
2689
|
-
creatorId: CreateTokenInstructionDataArgs["creatorId"];
|
|
2690
|
-
creatorHash: CreateTokenInstructionDataArgs["creatorHash"];
|
|
2691
2729
|
name: CreateTokenInstructionDataArgs["name"];
|
|
2692
2730
|
symbol: CreateTokenInstructionDataArgs["symbol"];
|
|
2693
2731
|
uri: CreateTokenInstructionDataArgs["uri"];
|
|
2732
|
+
creatorFeeMode: CreateTokenInstructionDataArgs["creatorFeeMode"];
|
|
2733
|
+
creatorFeeBps: CreateTokenInstructionDataArgs["creatorFeeBps"];
|
|
2734
|
+
dexCreatorFeeBps: CreateTokenInstructionDataArgs["dexCreatorFeeBps"];
|
|
2694
2735
|
};
|
|
2695
2736
|
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">;
|
|
2696
2737
|
type ParsedCreateTokenInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
@@ -2733,7 +2774,7 @@ declare function parseCreateTokenInstruction<TProgram extends string, TAccountMe
|
|
|
2733
2774
|
//#region src/launchpad/generated/instructions/migrate.d.ts
|
|
2734
2775
|
declare const MIGRATE_DISCRIMINATOR: ReadonlyUint8Array;
|
|
2735
2776
|
declare function getMigrateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
2736
|
-
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 ?
|
|
2777
|
+
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", TAccountDexCreatorFeeConfig extends string | AccountMeta<string> = string, 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 ? WritableAccount<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, TAccountDexCreatorFeeConfig extends string ? WritableAccount<TAccountDexCreatorFeeConfig> : TAccountDexCreatorFeeConfig, ...TRemainingAccounts]>;
|
|
2737
2778
|
type MigrateInstructionData = {
|
|
2738
2779
|
discriminator: ReadonlyUint8Array;
|
|
2739
2780
|
};
|
|
@@ -2741,7 +2782,7 @@ type MigrateInstructionDataArgs = {};
|
|
|
2741
2782
|
declare function getMigrateInstructionDataEncoder(): FixedSizeEncoder<MigrateInstructionDataArgs>;
|
|
2742
2783
|
declare function getMigrateInstructionDataDecoder(): FixedSizeDecoder<MigrateInstructionData>;
|
|
2743
2784
|
declare function getMigrateInstructionDataCodec(): FixedSizeCodec<MigrateInstructionDataArgs, MigrateInstructionData>;
|
|
2744
|
-
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> = {
|
|
2785
|
+
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, TAccountDexCreatorFeeConfig extends string = string> = {
|
|
2745
2786
|
caller: TransactionSigner<TAccountCaller>;
|
|
2746
2787
|
bondingCurve?: Address<TAccountBondingCurve>;
|
|
2747
2788
|
baseMint: Address<TAccountBaseMint>;
|
|
@@ -2753,11 +2794,12 @@ type MigrateAsyncInput<TAccountCaller extends string = string, TAccountBondingCu
|
|
|
2753
2794
|
poolBaseVault: Address<TAccountPoolBaseVault>;
|
|
2754
2795
|
poolQuoteVault: Address<TAccountPoolQuoteVault>;
|
|
2755
2796
|
poolLpAccount: Address<TAccountPoolLpAccount>;
|
|
2756
|
-
creatorFeeConfig
|
|
2797
|
+
creatorFeeConfig?: Address<TAccountCreatorFeeConfig>;
|
|
2757
2798
|
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
2799
|
+
dexCreatorFeeConfig?: Address<TAccountDexCreatorFeeConfig>;
|
|
2758
2800
|
};
|
|
2759
|
-
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">>;
|
|
2760
|
-
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> = {
|
|
2801
|
+
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, TAccountDexCreatorFeeConfig extends string>(input: MigrateAsyncInput<TAccountCaller, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLpMint, TAccountPoolBaseVault, TAccountPoolQuoteVault, TAccountPoolLpAccount, TAccountCreatorFeeConfig, TAccountQuoteTokenProgram, TAccountDexCreatorFeeConfig>): 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", TAccountDexCreatorFeeConfig>>;
|
|
2802
|
+
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, TAccountDexCreatorFeeConfig extends string = string> = {
|
|
2761
2803
|
caller: TransactionSigner<TAccountCaller>;
|
|
2762
2804
|
bondingCurve: Address<TAccountBondingCurve>;
|
|
2763
2805
|
baseMint: Address<TAccountBaseMint>;
|
|
@@ -2771,8 +2813,9 @@ type MigrateInput<TAccountCaller extends string = string, TAccountBondingCurve e
|
|
|
2771
2813
|
poolLpAccount: Address<TAccountPoolLpAccount>;
|
|
2772
2814
|
creatorFeeConfig: Address<TAccountCreatorFeeConfig>;
|
|
2773
2815
|
quoteTokenProgram: Address<TAccountQuoteTokenProgram>;
|
|
2816
|
+
dexCreatorFeeConfig: Address<TAccountDexCreatorFeeConfig>;
|
|
2774
2817
|
};
|
|
2775
|
-
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">;
|
|
2818
|
+
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, TAccountDexCreatorFeeConfig extends string>(input: MigrateInput<TAccountCaller, TAccountBondingCurve, TAccountBaseMint, TAccountQuoteMint, TAccountBaseVault, TAccountQuoteVault, TAccountPool, TAccountLpMint, TAccountPoolBaseVault, TAccountPoolQuoteVault, TAccountPoolLpAccount, TAccountCreatorFeeConfig, TAccountQuoteTokenProgram, TAccountDexCreatorFeeConfig>): 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", TAccountDexCreatorFeeConfig>;
|
|
2776
2819
|
type ParsedMigrateInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
2777
2820
|
programAddress: Address<TProgram>;
|
|
2778
2821
|
accounts: {
|
|
@@ -2798,6 +2841,7 @@ type ParsedMigrateInstruction<TProgram extends string = typeof SEND_LAUNCHPAD_PR
|
|
|
2798
2841
|
systemProgram: TAccountMetas[19];
|
|
2799
2842
|
eventAuthority: TAccountMetas[20];
|
|
2800
2843
|
program: TAccountMetas[21];
|
|
2844
|
+
dexCreatorFeeConfig: TAccountMetas[22];
|
|
2801
2845
|
};
|
|
2802
2846
|
data: MigrateInstructionData;
|
|
2803
2847
|
};
|
|
@@ -3057,6 +3101,7 @@ type SendLaunchpadPluginInstructions = {
|
|
|
3057
3101
|
type SendLaunchpadPluginPdas = {
|
|
3058
3102
|
bondingCurve: typeof findBondingCurvePda;
|
|
3059
3103
|
eventAuthority: typeof findEventAuthorityPda$1;
|
|
3104
|
+
creatorFeeConfig: typeof findCreatorFeeConfigPda;
|
|
3060
3105
|
rewardAccrual: typeof findRewardAccrualPda;
|
|
3061
3106
|
globalConfig: typeof findGlobalConfigPda$1;
|
|
3062
3107
|
wsolRewardAccrual: typeof findWsolRewardAccrualPda;
|
|
@@ -3077,8 +3122,6 @@ interface MigrateParams {
|
|
|
3077
3122
|
caller: TransactionSigner;
|
|
3078
3123
|
baseMint: Address;
|
|
3079
3124
|
quoteMint: Address;
|
|
3080
|
-
/** `bondingCurve.creatorFeeConfig`. `migrate` rejects any other address. */
|
|
3081
|
-
creatorFeeConfig: Address;
|
|
3082
3125
|
quoteTokenProgram: Address;
|
|
3083
3126
|
}
|
|
3084
3127
|
declare function buildMigrateInstruction(params: MigrateParams): Promise<Instruction>;
|
|
@@ -3269,68 +3312,6 @@ declare function fetchAllAltRegistry(rpc: Parameters<typeof fetchEncodedAccounts
|
|
|
3269
3312
|
declare function fetchAllMaybeAltRegistry(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<AltRegistry>[]>;
|
|
3270
3313
|
declare function getAltRegistrySize(): number;
|
|
3271
3314
|
//#endregion
|
|
3272
|
-
//#region src/nexus/generated/accounts/creatorFeeConfig.d.ts
|
|
3273
|
-
declare const CREATOR_FEE_CONFIG_DISCRIMINATOR: ReadonlyUint8Array;
|
|
3274
|
-
declare function getCreatorFeeConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
3275
|
-
type CreatorFeeConfig = {
|
|
3276
|
-
discriminator: ReadonlyUint8Array;
|
|
3277
|
-
version: number;
|
|
3278
|
-
bump: number;
|
|
3279
|
-
platformIndex: number;
|
|
3280
|
-
platformId: ReadonlyUint8Array;
|
|
3281
|
-
quoteMint: Address;
|
|
3282
|
-
reserved: ReadonlyUint8Array;
|
|
3283
|
-
};
|
|
3284
|
-
type CreatorFeeConfigArgs = {
|
|
3285
|
-
version: number;
|
|
3286
|
-
bump: number;
|
|
3287
|
-
platformIndex: number;
|
|
3288
|
-
platformId: ReadonlyUint8Array;
|
|
3289
|
-
quoteMint: Address;
|
|
3290
|
-
reserved: ReadonlyUint8Array;
|
|
3291
|
-
};
|
|
3292
|
-
/** Gets the encoder for {@link CreatorFeeConfigArgs} account data. */
|
|
3293
|
-
declare function getCreatorFeeConfigEncoder(): FixedSizeEncoder<CreatorFeeConfigArgs>;
|
|
3294
|
-
/** Gets the decoder for {@link CreatorFeeConfig} account data. */
|
|
3295
|
-
declare function getCreatorFeeConfigDecoder(): FixedSizeDecoder<CreatorFeeConfig>;
|
|
3296
|
-
/** Gets the codec for {@link CreatorFeeConfig} account data. */
|
|
3297
|
-
declare function getCreatorFeeConfigCodec(): FixedSizeCodec<CreatorFeeConfigArgs, CreatorFeeConfig>;
|
|
3298
|
-
/**
|
|
3299
|
-
* Decodes a `CreatorFeeConfig` account, throwing when another program owns it or its discriminator
|
|
3300
|
-
* does not match.
|
|
3301
|
-
*
|
|
3302
|
-
* Unlike {@link fetchMaybeCreatorFeeConfig}, this throws for an address that only holds lamports rather
|
|
3303
|
-
* than returning the non-existing variant: an account passed as existing must never come back as that
|
|
3304
|
-
* variant typed as an `Account`. Apply {@link accountIsCreated} first to accounts fetched another way.
|
|
3305
|
-
*/
|
|
3306
|
-
declare function decodeCreatorFeeConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<CreatorFeeConfig, TAddress>;
|
|
3307
|
-
/**
|
|
3308
|
-
* Decodes a `CreatorFeeConfig` account, throwing when another program owns it or its discriminator
|
|
3309
|
-
* does not match.
|
|
3310
|
-
*
|
|
3311
|
-
* Unlike {@link fetchMaybeCreatorFeeConfig}, this throws for an address that only holds lamports rather
|
|
3312
|
-
* than returning the non-existing variant: an account passed as existing must never come back as that
|
|
3313
|
-
* variant typed as an `Account`. Apply {@link accountIsCreated} first to accounts fetched another way.
|
|
3314
|
-
*/
|
|
3315
|
-
declare function decodeCreatorFeeConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<CreatorFeeConfig, TAddress>;
|
|
3316
|
-
/** Fetches a `CreatorFeeConfig` account, throwing when it does not exist or only holds lamports. */
|
|
3317
|
-
declare function fetchCreatorFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<CreatorFeeConfig, TAddress>>;
|
|
3318
|
-
/**
|
|
3319
|
-
* Fetches a `CreatorFeeConfig` account, or the non-existing variant when the address holds no
|
|
3320
|
-
* account or only lamports (see {@link accountIsCreated}).
|
|
3321
|
-
* {@link decodeCreatorFeeConfig} throws for a lamports-only account instead.
|
|
3322
|
-
*/
|
|
3323
|
-
declare function fetchMaybeCreatorFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<CreatorFeeConfig, TAddress>>;
|
|
3324
|
-
/** Fetches `CreatorFeeConfig` accounts, throwing when any does not exist or only holds lamports. */
|
|
3325
|
-
declare function fetchAllCreatorFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<CreatorFeeConfig>[]>;
|
|
3326
|
-
/**
|
|
3327
|
-
* Fetches `CreatorFeeConfig` accounts, with the non-existing variant for each address that holds
|
|
3328
|
-
* no account or only lamports (see {@link accountIsCreated}).
|
|
3329
|
-
* {@link decodeCreatorFeeConfig} throws for a lamports-only account instead.
|
|
3330
|
-
*/
|
|
3331
|
-
declare function fetchAllMaybeCreatorFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<CreatorFeeConfig>[]>;
|
|
3332
|
-
declare function getCreatorFeeConfigSize(): number;
|
|
3333
|
-
//#endregion
|
|
3334
3315
|
//#region src/nexus/generated/types/authPlatformEntry.d.ts
|
|
3335
3316
|
type AuthPlatformEntry = {
|
|
3336
3317
|
name: string;
|
|
@@ -3341,22 +3322,12 @@ declare function getAuthPlatformEntryEncoder(): Encoder<AuthPlatformEntryArgs>;
|
|
|
3341
3322
|
declare function getAuthPlatformEntryDecoder(): Decoder<AuthPlatformEntry>;
|
|
3342
3323
|
declare function getAuthPlatformEntryCodec(): Codec<AuthPlatformEntryArgs, AuthPlatformEntry>;
|
|
3343
3324
|
//#endregion
|
|
3344
|
-
//#region src/nexus/generated/types/callerType.d.ts
|
|
3345
|
-
declare enum CallerType {
|
|
3346
|
-
PlatformBondingCurve = 0,
|
|
3347
|
-
PlatformPool = 1
|
|
3348
|
-
}
|
|
3349
|
-
type CallerTypeArgs = CallerType;
|
|
3350
|
-
declare function getCallerTypeEncoder(): FixedSizeEncoder<CallerTypeArgs>;
|
|
3351
|
-
declare function getCallerTypeDecoder(): FixedSizeDecoder<CallerType>;
|
|
3352
|
-
declare function getCallerTypeCodec(): FixedSizeCodec<CallerTypeArgs, CallerType>;
|
|
3353
|
-
//#endregion
|
|
3354
3325
|
//#region src/nexus/generated/types/dexFees.d.ts
|
|
3355
3326
|
type DexFees = {
|
|
3356
3327
|
creationFeeCents: bigint;
|
|
3357
3328
|
protocolFeeBps: number;
|
|
3358
3329
|
lpFeeBps: number;
|
|
3359
|
-
|
|
3330
|
+
maxCreatorFeeBps: number;
|
|
3360
3331
|
feeDecaySeconds: number;
|
|
3361
3332
|
feeDecayStartBps: number;
|
|
3362
3333
|
};
|
|
@@ -3364,7 +3335,7 @@ type DexFeesArgs = {
|
|
|
3364
3335
|
creationFeeCents: number | bigint;
|
|
3365
3336
|
protocolFeeBps: number;
|
|
3366
3337
|
lpFeeBps: number;
|
|
3367
|
-
|
|
3338
|
+
maxCreatorFeeBps: number;
|
|
3368
3339
|
feeDecaySeconds: number;
|
|
3369
3340
|
feeDecayStartBps: number;
|
|
3370
3341
|
};
|
|
@@ -3393,14 +3364,14 @@ declare function getFeeConfigCodec(): Codec<FeeConfigArgs, FeeConfig>;
|
|
|
3393
3364
|
type LaunchpadFees = {
|
|
3394
3365
|
creationFeeCents: bigint;
|
|
3395
3366
|
protocolFeeBps: number;
|
|
3396
|
-
|
|
3367
|
+
maxCreatorFeeBps: number;
|
|
3397
3368
|
feeDecaySeconds: number;
|
|
3398
3369
|
feeDecayStartBps: number;
|
|
3399
3370
|
};
|
|
3400
3371
|
type LaunchpadFeesArgs = {
|
|
3401
3372
|
creationFeeCents: number | bigint;
|
|
3402
3373
|
protocolFeeBps: number;
|
|
3403
|
-
|
|
3374
|
+
maxCreatorFeeBps: number;
|
|
3404
3375
|
feeDecaySeconds: number;
|
|
3405
3376
|
feeDecayStartBps: number;
|
|
3406
3377
|
};
|
|
@@ -3408,7 +3379,7 @@ declare function getLaunchpadFeesEncoder(): FixedSizeEncoder<LaunchpadFeesArgs>;
|
|
|
3408
3379
|
declare function getLaunchpadFeesDecoder(): FixedSizeDecoder<LaunchpadFees>;
|
|
3409
3380
|
declare function getLaunchpadFeesCodec(): FixedSizeCodec<LaunchpadFeesArgs, LaunchpadFees>;
|
|
3410
3381
|
declare namespace index_d_exports$11 {
|
|
3411
|
-
export { AuthPlatformEntry, AuthPlatformEntryArgs,
|
|
3382
|
+
export { AuthPlatformEntry, AuthPlatformEntryArgs, DexFees, DexFeesArgs, FeeConfig, FeeConfigArgs, LaunchpadFees, LaunchpadFeesArgs, getAuthPlatformEntryCodec, getAuthPlatformEntryDecoder, getAuthPlatformEntryEncoder, getDexFeesCodec, getDexFeesDecoder, getDexFeesEncoder, getFeeConfigCodec, getFeeConfigDecoder, getFeeConfigEncoder, getLaunchpadFeesCodec, getLaunchpadFeesDecoder, getLaunchpadFeesEncoder };
|
|
3412
3383
|
}
|
|
3413
3384
|
//#endregion
|
|
3414
3385
|
//#region src/nexus/generated/accounts/feePreset.d.ts
|
|
@@ -3550,6 +3521,7 @@ type PartnerConfig = {
|
|
|
3550
3521
|
launchpad: LaunchpadFees;
|
|
3551
3522
|
dex: DexFees;
|
|
3552
3523
|
platformConfig: Address;
|
|
3524
|
+
allowedCreatorFeeModes: number;
|
|
3553
3525
|
reserved: ReadonlyUint8Array;
|
|
3554
3526
|
};
|
|
3555
3527
|
type PartnerConfigArgs = {
|
|
@@ -3561,6 +3533,7 @@ type PartnerConfigArgs = {
|
|
|
3561
3533
|
launchpad: LaunchpadFeesArgs;
|
|
3562
3534
|
dex: DexFeesArgs;
|
|
3563
3535
|
platformConfig: Address;
|
|
3536
|
+
allowedCreatorFeeModes: number;
|
|
3564
3537
|
reserved: ReadonlyUint8Array;
|
|
3565
3538
|
};
|
|
3566
3539
|
/** Gets the encoder for {@link PartnerConfigArgs} account data. */
|
|
@@ -3746,7 +3719,7 @@ declare function getRewardStateSize(): number;
|
|
|
3746
3719
|
//#endregion
|
|
3747
3720
|
//#region src/nexus/generated/accounts/sendNexus.accounts.d.ts
|
|
3748
3721
|
/** Account kinds of the sendNexus program. */
|
|
3749
|
-
type SendNexusAccountType = "altRegistry" | "
|
|
3722
|
+
type SendNexusAccountType = "altRegistry" | "feePreset" | "globalConfig" | "partnerConfig" | "partnerMetadata" | "rewardState" | "stakingConfig" | "userRewardDebt" | "userStakePosition";
|
|
3750
3723
|
/**
|
|
3751
3724
|
* Identifies sendNexus account data by its discriminators.
|
|
3752
3725
|
* Returns `null` when the account belongs to another program or the data matches no known account.
|
|
@@ -3958,7 +3931,7 @@ declare function fetchAllUserStakePosition(rpc: Parameters<typeof fetchEncodedAc
|
|
|
3958
3931
|
declare function fetchAllMaybeUserStakePosition(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<UserStakePosition>[]>;
|
|
3959
3932
|
declare function getUserStakePositionSize(): number;
|
|
3960
3933
|
declare namespace index_d_exports$10 {
|
|
3961
|
-
export { ALT_REGISTRY_DISCRIMINATOR, AltRegistry, AltRegistryArgs,
|
|
3934
|
+
export { ALT_REGISTRY_DISCRIMINATOR, AltRegistry, AltRegistryArgs, 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, decodeFeePreset, decodeGlobalConfig, decodePartnerConfig, decodePartnerMetadata, decodeRewardState, decodeStakingConfig, decodeUserRewardDebt, decodeUserStakePosition, fetchAllAltRegistry, fetchAllFeePreset, fetchAllGlobalConfig, fetchAllMaybeAltRegistry, fetchAllMaybeFeePreset, fetchAllMaybeGlobalConfig, fetchAllMaybePartnerConfig, fetchAllMaybePartnerMetadata, fetchAllMaybeRewardState, fetchAllMaybeStakingConfig, fetchAllMaybeUserRewardDebt, fetchAllMaybeUserStakePosition, fetchAllPartnerConfig, fetchAllPartnerMetadata, fetchAllRewardState, fetchAllStakingConfig, fetchAllUserRewardDebt, fetchAllUserStakePosition, fetchAltRegistry, fetchFeePreset, fetchGlobalConfig, fetchMaybeAltRegistry, fetchMaybeFeePreset, fetchMaybeGlobalConfig, fetchMaybePartnerConfig, fetchMaybePartnerMetadata, fetchMaybeRewardState, fetchMaybeStakingConfig, fetchMaybeUserRewardDebt, fetchMaybeUserStakePosition, fetchPartnerConfig, fetchPartnerMetadata, fetchRewardState, fetchStakingConfig, fetchUserRewardDebt, fetchUserStakePosition, getAltRegistryCodec, getAltRegistryDecoder, getAltRegistryDiscriminatorBytes, getAltRegistryEncoder, getAltRegistrySize, 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 };
|
|
3962
3935
|
}
|
|
3963
3936
|
//#endregion
|
|
3964
3937
|
//#region src/nexus/generated/events/anchorEventCpiDiscriminator.framing.d.ts
|
|
@@ -4216,17 +4189,21 @@ declare const SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_MINT = 7009;
|
|
|
4216
4189
|
declare const SEND_NEXUS_ERROR__USER_TOKEN_ACCOUNT_WRONG_AUTHORITY = 7010;
|
|
4217
4190
|
/** NothingToClaim: Nothing to claim */
|
|
4218
4191
|
declare const SEND_NEXUS_ERROR__NOTHING_TO_CLAIM = 7011;
|
|
4219
|
-
/**
|
|
4220
|
-
declare const
|
|
4192
|
+
/** Unused7012: Unused */
|
|
4193
|
+
declare const SEND_NEXUS_ERROR__UNUSED7012 = 7012;
|
|
4221
4194
|
/** QuoteMintPriceUnset: Quote mint has no USDC price on its nexus reward state */
|
|
4222
4195
|
declare const SEND_NEXUS_ERROR__QUOTE_MINT_PRICE_UNSET = 7013;
|
|
4223
4196
|
/** TransferFeeNotSettleable: Token-2022 transfer fee schedule cannot settle the exact amount */
|
|
4224
4197
|
declare const SEND_NEXUS_ERROR__TRANSFER_FEE_NOT_SETTLEABLE = 7014;
|
|
4198
|
+
/** CreatorFeeTooHigh: Creator fee exceeds the partner's maximum */
|
|
4199
|
+
declare const SEND_NEXUS_ERROR__CREATOR_FEE_TOO_HIGH = 7015;
|
|
4200
|
+
/** CreatorFeeModeNotAllowed: Creator fee mode is not allowed by the partner config */
|
|
4201
|
+
declare const SEND_NEXUS_ERROR__CREATOR_FEE_MODE_NOT_ALLOWED = 7016;
|
|
4225
4202
|
/** InsufficientLiquidity: Insufficient liquidity */
|
|
4226
4203
|
declare const SEND_NEXUS_ERROR__INSUFFICIENT_LIQUIDITY = 7100;
|
|
4227
4204
|
/** InvalidAmount: Invalid amount */
|
|
4228
4205
|
declare const SEND_NEXUS_ERROR__INVALID_AMOUNT = 7101;
|
|
4229
|
-
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
|
|
4206
|
+
type SendNexusError = typeof SEND_NEXUS_ERROR__AMBIGUOUS_FEE_SOURCE | typeof SEND_NEXUS_ERROR__ARITHMETIC_OVERFLOW | typeof SEND_NEXUS_ERROR__CREATOR_FEE_MODE_NOT_ALLOWED | typeof SEND_NEXUS_ERROR__CREATOR_FEE_TOO_HIGH | 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_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__UNUSED7012 | 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;
|
|
4230
4207
|
declare const sendNexusErrorMessages: Record<SendNexusError, string>;
|
|
4231
4208
|
declare function getSendNexusErrorMessage(code: SendNexusError): string;
|
|
4232
4209
|
declare function isSendNexusError<TProgramErrorCode extends SendNexusError>(error: unknown, transactionMessage: {
|
|
@@ -4239,7 +4216,7 @@ declare function isSendNexusError<TProgramErrorCode extends SendNexusError>(erro
|
|
|
4239
4216
|
}>;
|
|
4240
4217
|
}>;
|
|
4241
4218
|
declare namespace index_d_exports$8 {
|
|
4242
|
-
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,
|
|
4219
|
+
export { SEND_NEXUS_ERROR__AMBIGUOUS_FEE_SOURCE, SEND_NEXUS_ERROR__ARITHMETIC_OVERFLOW, SEND_NEXUS_ERROR__CREATOR_FEE_MODE_NOT_ALLOWED, SEND_NEXUS_ERROR__CREATOR_FEE_TOO_HIGH, 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_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__UNUSED7012, 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 };
|
|
4243
4220
|
}
|
|
4244
4221
|
//#endregion
|
|
4245
4222
|
//#region src/nexus/generated/instructions/claim.d.ts
|
|
@@ -4560,13 +4537,6 @@ declare namespace index_d_exports$7 {
|
|
|
4560
4537
|
declare const ALT_REGISTRY_PDA_ADDRESS: Address<"8QbgorUFZXo6Nv6CTn3Xgf1bYiu8yy5NsJNvxr19JA9H">;
|
|
4561
4538
|
declare function findAltRegistryPda(): ProgramDerivedAddress;
|
|
4562
4539
|
//#endregion
|
|
4563
|
-
//#region src/nexus/generated/pdas/creatorFeeConfig.d.ts
|
|
4564
|
-
type CreatorFeeConfigSeeds = {
|
|
4565
|
-
creatorHash: Address;
|
|
4566
|
-
quoteMint: Address;
|
|
4567
|
-
};
|
|
4568
|
-
declare function findCreatorFeeConfigPda(seeds: CreatorFeeConfigSeeds): Promise<ProgramDerivedAddress>;
|
|
4569
|
-
//#endregion
|
|
4570
4540
|
//#region src/nexus/generated/pdas/defaultFeePreset.d.ts
|
|
4571
4541
|
type DefaultFeePresetSeeds = {
|
|
4572
4542
|
platformConfig: Address;
|
|
@@ -4640,7 +4610,7 @@ type UserStakePositionSeeds = {
|
|
|
4640
4610
|
};
|
|
4641
4611
|
declare function findUserStakePositionPda(seeds: UserStakePositionSeeds): Promise<ProgramDerivedAddress>;
|
|
4642
4612
|
declare namespace index_d_exports$6 {
|
|
4643
|
-
export { ALT_REGISTRY_PDA_ADDRESS,
|
|
4613
|
+
export { ALT_REGISTRY_PDA_ADDRESS, DefaultFeePresetSeeds, DefaultPartnerMetadataSeeds, DefaultPartnerSeeds, EVENT_AUTHORITY_PDA_ADDRESS, FeePresetSeeds, GLOBAL_CONFIG_PDA_ADDRESS, PartnerConfigSeeds, PartnerMetadataSeeds, RewardStateSeeds, STAKING_CONFIG_PDA_ADDRESS, UserRewardDebtSeeds, UserStakePositionSeeds, findAltRegistryPda, findDefaultFeePresetPda, findDefaultPartnerMetadataPda, findDefaultPartnerPda, findEventAuthorityPda, findFeePresetPda, findGlobalConfigPda, findPartnerConfigPda, findPartnerMetadataPda, findRewardStatePda, findStakingConfigPda, findUserRewardDebtPda, findUserStakePositionPda };
|
|
4644
4614
|
}
|
|
4645
4615
|
//#endregion
|
|
4646
4616
|
//#region src/nexus/generated/plugins/sendNexus.d.ts
|
|
@@ -4655,7 +4625,6 @@ type SendNexusPlugin = {
|
|
|
4655
4625
|
};
|
|
4656
4626
|
type SendNexusPluginAccounts = {
|
|
4657
4627
|
altRegistry: ReturnType<typeof getAltRegistryCodec> & SelfFetchFunctions<AltRegistryArgs, AltRegistry>;
|
|
4658
|
-
creatorFeeConfig: ReturnType<typeof getCreatorFeeConfigCodec> & SelfFetchFunctions<CreatorFeeConfigArgs, CreatorFeeConfig>;
|
|
4659
4628
|
feePreset: ReturnType<typeof getFeePresetCodec> & SelfFetchFunctions<FeePresetArgs, FeePreset>;
|
|
4660
4629
|
globalConfig: ReturnType<typeof getGlobalConfigCodec> & SelfFetchFunctions<GlobalConfigArgs, GlobalConfig>;
|
|
4661
4630
|
partnerConfig: ReturnType<typeof getPartnerConfigCodec> & SelfFetchFunctions<PartnerConfigArgs, PartnerConfig>;
|
|
@@ -4690,7 +4659,6 @@ type SendNexusPluginPdas = {
|
|
|
4690
4659
|
userStakePosition: typeof findUserStakePositionPda;
|
|
4691
4660
|
userRewardDebt: typeof findUserRewardDebtPda;
|
|
4692
4661
|
eventAuthority: typeof findEventAuthorityPda;
|
|
4693
|
-
creatorFeeConfig: typeof findCreatorFeeConfigPda;
|
|
4694
4662
|
altRegistry: typeof findAltRegistryPda;
|
|
4695
4663
|
};
|
|
4696
4664
|
type SendNexusPluginRequirements = ClientWithRpc<GetAccountInfoApi & GetMultipleAccountsApi> & ClientWithPayer & ClientWithTransactionPlanning & ClientWithTransactionSending;
|
|
@@ -4707,10 +4675,12 @@ declare namespace fee_helpers_d_exports {
|
|
|
4707
4675
|
/** Fetches the `PartnerConfig` of `partner` on `platformConfig`. Throws if it does not exist.
|
|
4708
4676
|
* Use the `platformConfig` of the market you price. A partner's fees differ per platform. */
|
|
4709
4677
|
declare function fetchPartnerFees(rpc: Rpc<GetAccountInfoApi>, partner: Address, platformConfig: Address): Promise<PartnerConfig>;
|
|
4710
|
-
/** Returns the `feeBps` a trade pays: the standard rate plus the decay premium.
|
|
4711
|
-
*
|
|
4712
|
-
*
|
|
4713
|
-
|
|
4678
|
+
/** Returns the `feeBps` a trade pays: the standard rate plus the decay premium. The standard rate
|
|
4679
|
+
* is the protocol and LP rates of `schedule` plus `creatorFeeBps`. `schedule` is the
|
|
4680
|
+
* `PartnerConfig`'s `launchpad` for a curve or `dex` for a pool. `creatorFeeBps` and `createdAt`
|
|
4681
|
+
* are the curve's or pool's. `schedule.maxCreatorFeeBps` has no effect. `createdAt` and `now`
|
|
4682
|
+
* are in unix seconds. */
|
|
4683
|
+
declare function effectiveFeeBps(schedule: LaunchpadFees | DexFees, createdAt: bigint, now: bigint, creatorFeeBps: number): number;
|
|
4714
4684
|
declare namespace staking_d_exports {
|
|
4715
4685
|
export { ClaimRewardsParams, PendingReward, PrepareStakingParams, RewardMintRpc, RewardMintSource, SettleParams, StakeParams, UnstakeParams, WithdrawFeesAccounts, buildClaimRewardsInstructions, buildSettleInstructions, buildStakeInstruction, buildStakingPreflightInstructions, buildUnstakeInstruction, buildWithdrawFeesAccounts, fetchMissingUserRewardDebts, fetchPendingRewards, fetchSendMint, fetchStakingConfigData, fetchUserStakePositionData, getRewardMints, isFullySettled, isStakingMintBound };
|
|
4716
4686
|
}
|
|
@@ -4872,17 +4842,6 @@ declare function accountIsCreated<TAccount extends EncodedAccount | MaybeEncoded
|
|
|
4872
4842
|
readonly uncreated?: never;
|
|
4873
4843
|
};
|
|
4874
4844
|
//#endregion
|
|
4875
|
-
//#region src/utils/creator-hash.d.ts
|
|
4876
|
-
/** Returns the SHA-256 of `creatorPlatform` and `creatorId`, each prefixed with its byte length as a
|
|
4877
|
-
* little-endian u32. Throws `RangeError` if `creatorPlatform` is more than 32 bytes. */
|
|
4878
|
-
declare function creatorHashFromId(creatorPlatform: string, creatorId: string): Promise<Address>;
|
|
4879
|
-
/** Pads `text` with NUL bytes to `length` bytes, the form of `CreatorFeeConfig.platformId`.
|
|
4880
|
-
* Throws `RangeError` if `text` is longer. */
|
|
4881
|
-
declare function encodeCreatorId(text: string, length: number): Uint8Array;
|
|
4882
|
-
/** Removes the trailing NUL bytes and decodes the rest as UTF-8. Pass the result, not the padded
|
|
4883
|
-
* bytes, to {@link creatorHashFromId}. */
|
|
4884
|
-
declare function decodeCreatorId(bytes: ReadonlyUint8Array): string;
|
|
4885
|
-
//#endregion
|
|
4886
4845
|
//#region src/utils/mint-info.d.ts
|
|
4887
4846
|
interface QuoteMintInfo {
|
|
4888
4847
|
mint: Address;
|
|
@@ -4902,7 +4861,7 @@ declare function fetchQuoteMintInfos(rpc: Rpc<GetMultipleAccountsApi>, mints: re
|
|
|
4902
4861
|
/** Derives the associated token account of `wallet` for `mint` under `tokenProgram`. */
|
|
4903
4862
|
declare function findAssociatedTokenPda(wallet: Address, mint: Address, tokenProgram?: Address): Promise<ProgramDerivedAddress>;
|
|
4904
4863
|
declare namespace index_d_exports$4 {
|
|
4905
|
-
export { PartnerInput, QuoteMintInfo, accountIsCreated,
|
|
4864
|
+
export { PartnerInput, QuoteMintInfo, accountIsCreated, fetchQuoteMintInfo, fetchQuoteMintInfos, findAssociatedTokenPda };
|
|
4906
4865
|
}
|
|
4907
4866
|
//#endregion
|
|
4908
4867
|
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 };
|