@zcomb/programs-sdk 1.5.1 → 1.7.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.
@@ -689,22 +689,37 @@ export declare class FutarchyClient {
689
689
  * @param creator - The user redeeming
690
690
  * @param proposalPda - The proposal PDA
691
691
  * @param altAddress - Optional ALT address (will be created if not provided for 3+ options)
692
- * @returns Unsigned versioned transaction, ALT address, and number of options
692
+ * @returns Unsigned versioned transaction, ALT address, number of options, and blockhash info for confirmation
693
693
  */
694
694
  redeemLiquidityVersioned(creator: PublicKey, proposalPda: PublicKey, altAddress?: PublicKey): Promise<{
695
695
  versionedTx: VersionedTransaction;
696
696
  altAddress: PublicKey;
697
697
  numOptions: number;
698
+ blockhash: string;
699
+ lastValidBlockHeight: number;
698
700
  }>;
699
701
  /**
700
- * Helper to send a signed versioned transaction.
702
+ * Helper to send a signed versioned transaction with robust confirmation handling.
703
+ * Uses blockhash-based confirmation to properly detect transaction expiration
704
+ * instead of relying on a fixed timeout.
705
+ *
706
+ * @param signedTx - The signed versioned transaction to send
707
+ * @param confirmationInfo - Optional blockhash info from when the transaction was built.
708
+ * If not provided, a fresh blockhash will be fetched (less accurate).
701
709
  */
702
- sendVersionedTransaction(signedTx: VersionedTransaction): Promise<string>;
710
+ sendVersionedTransaction(signedTx: VersionedTransaction, confirmationInfo?: {
711
+ blockhash: string;
712
+ lastValidBlockHeight: number;
713
+ }): Promise<string>;
703
714
  createProposalALT(creator: PublicKey, moderatorPda: PublicKey, numOptions?: number): Promise<{
704
715
  altAddress: PublicKey;
705
716
  }>;
706
717
  fetchALT(altAddress: PublicKey): Promise<AddressLookupTableAccount>;
707
- buildVersionedTx(payer: PublicKey, instructions: TransactionInstruction[], altAddress: PublicKey): Promise<VersionedTransaction>;
718
+ buildVersionedTx(payer: PublicKey, instructions: TransactionInstruction[], altAddress: PublicKey): Promise<{
719
+ versionedTx: VersionedTransaction;
720
+ blockhash: string;
721
+ lastValidBlockHeight: number;
722
+ }>;
708
723
  buildVersionedTxWithALT(payer: PublicKey, instructions: TransactionInstruction[], alt: AddressLookupTableAccount, blockhash: string): VersionedTransaction;
709
724
  deriveMintCreateKeyPDA(daoPda: PublicKey, name: string): [PublicKey, number];
710
725
  private fetchSquadsProgramConfig;