@wireio/stake 1.5.69 → 1.6.69

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/lib/stake.d.ts CHANGED
@@ -19243,6 +19243,7 @@ declare class OutpostClient {
19243
19243
  * Internal helper: get raw token balance (BN) for a given ATA.
19244
19244
  */
19245
19245
  private getTokenBalance;
19246
+ private isMissingTokenAccountError;
19246
19247
  /**
19247
19248
  * Fetch an OutpostAccount, handling legacy accounts that pre-date the
19248
19249
  * three trailing Option<u64> fields. If the normal decode throws a
@@ -19411,6 +19412,17 @@ declare class SolanaStakingClient implements IStakingClient {
19411
19412
  * Claim a withdrawal receipt (burn NFT + receive SOL) via claim_withdraw.
19412
19413
  */
19413
19414
  claimWithdraw(tokenId: bigint): Promise<string>;
19415
+ getLiqsolDestinationOwner(owner?: PublicKey$1): PublicKey$1;
19416
+ getLiqsolDestinationAta(owner?: PublicKey$1): PublicKey$1;
19417
+ getLiqsolDestinationAtaState(owner?: PublicKey$1): Promise<{
19418
+ owner: PublicKey$1;
19419
+ mint: PublicKey$1;
19420
+ ata: PublicKey$1;
19421
+ exists: boolean;
19422
+ }>;
19423
+ maybeBuildCreateLiqsolDestinationAtaIx(owner?: PublicKey$1): Promise<TransactionInstruction | null>;
19424
+ ensureLiqsolDestinationAta(owner?: PublicKey$1): Promise<string | null>;
19425
+ private prependLiqsolDestinationAtaIx;
19414
19426
  /**
19415
19427
  * Claim accrued liqSOL distribution rewards (liqsol_core::claim_rewards).
19416
19428
  */
@@ -19490,6 +19502,7 @@ declare class SolanaStakingClient implements IStakingClient {
19490
19502
  */
19491
19503
  ensureUser(): void;
19492
19504
  private isLegacyUserRecordMigrationRequired;
19505
+ private isAtaAlreadyCreatedError;
19493
19506
  /**
19494
19507
  * Unified, chain-agnostic tranche snapshot for Solana.
19495
19508
  *
@@ -19558,5 +19571,34 @@ declare class SolanaStakingClient implements IStakingClient {
19558
19571
  private getSingleTxFeeLamports;
19559
19572
  }
19560
19573
 
19561
- export { ADDRESSES, ADDRESS_BOOK_BY_CHAIN, CHAINLINK_FEED, CHAINLINK_PROGRAM, CONTRACTS_BY_CHAIN, ConvertClient, DEFAULT_AVERAGE_PAY_RATE, DEFAULT_PAY_RATE_LOOKBACK, DistributionClient, EPHEMERAL_RENT_EXEMPTION, ERC1155Abi, ERC20Abi, ERC721Abi, types$1 as ETH, EthereumContractService, EthereumInstaswapClient, EthereumStakingClient, HOODI_ADDRESSES, INDEX_SCALE, INITIAL_TRANCHE_SUPPLY, LAMPORTS_PER_SOL, LeaderboardClient, MAINNET_ADDRESSES, OutpostClient, PAY_RATE_SCALE_FACTOR, PDA_SEEDS, PROGRAM_IDS_BY_CHAIN, PurchaseAsset, ReceiptNFTKind, SCALE, types as SOL, SolanaInstaswapClient, SolanaStakingClient, Staker, SupportedEvmChainID, SupportedSolChainID, TokenClient, airdropSol, buildOutpostAccounts, buildSolanaInstaswapCrossChainAccounts, buildSolanaSyndicateAccounts, buildSolanaTrancheLadder, buildSolanaTrancheSnapshot, ceilDiv, deriveEphemeralStakeAddress, generateRandomDepositAmount, generateTestKeypair, getEpochSnapshot, getErrorMessage, getProgramIds, lamportsToSol, msToEpochEnd, normalizeToBigInt, safeFetch, scheduledInstruction, sleep, solToLamports, toBigint, tokensToShares, waitForConfirmation, waitUntilSafeToExecuteFunction };
19562
- export type { BalanceView, ChainSymbol, ContractConfig, ContractOptions, Contracts, EpochSnapshot, EthereumDepositToWireParams, EthereumEnsureLiqEthBalanceParams, EthereumInstaswapConnectedBalances, EthereumInstaswapOutpostAddresses, EthereumInstaswapSubmitHooks, EthereumInstaswapSubmitParams, IStakingClient, OPPAssertion, OutpostAccounts, Portfolio, PurchaseQuote, ScheduleConfig, SolanaDepositToWireParams, SolanaInstaswapConnectedBalances, SolanaInstaswapSubmitHooks, SolanaInstaswapSubmitParams, SolanaProgramIds, SquadsXConfig, StakerConfig, TrancheLadderItem, TrancheSnapshot, WithdrawReceipt$1 as WithdrawReceipt, WithdrawStatus, YieldView };
19574
+ type StakingTxChain = 'eth' | 'sol';
19575
+ type StakingTxState = 'pending' | 'confirmed' | 'failed' | 'not_found';
19576
+ interface StakingTransactionStatus {
19577
+ chain: StakingTxChain;
19578
+ txId: string;
19579
+ state: StakingTxState;
19580
+ timestampMs: number | null;
19581
+ blockNumber?: number;
19582
+ slot?: number;
19583
+ confirmations?: number | null;
19584
+ errorMessage?: string;
19585
+ }
19586
+ interface EthereumSubmitStepResult {
19587
+ stepId: 'deposit' | 'approve' | 'source';
19588
+ label: string;
19589
+ txId: string;
19590
+ timestampMs: number | null;
19591
+ }
19592
+ interface EthereumStakeSubmission {
19593
+ finalTxId: string;
19594
+ steps: EthereumSubmitStepResult[];
19595
+ }
19596
+ type EthereumLikeProvider = ethers.providers.Web3Provider | ethers.providers.JsonRpcProvider;
19597
+ declare function getEthereumTransactionStatus(source: EthereumStakingClient | EthereumLikeProvider, txId: string): Promise<StakingTransactionStatus>;
19598
+ declare function getSolanaTransactionStatus(source: SolanaStakingClient | Connection, txId: string): Promise<StakingTransactionStatus>;
19599
+ declare function getStakingClientTransactionStatus(client: EthereumStakingClient | SolanaStakingClient, txId: string): Promise<StakingTransactionStatus>;
19600
+ declare function submitEthereumStakeToWireFlow(client: EthereumStakingClient, amount: bigint | string | number | BigNumber, wireAccount: string): Promise<EthereumStakeSubmission>;
19601
+ declare function submitEthereumDepositAndStakeToWireFlow(client: EthereumStakingClient, amount: bigint | string | number | BigNumber, wireAccount: string): Promise<EthereumStakeSubmission>;
19602
+
19603
+ export { ADDRESSES, ADDRESS_BOOK_BY_CHAIN, CHAINLINK_FEED, CHAINLINK_PROGRAM, CONTRACTS_BY_CHAIN, ConvertClient, DEFAULT_AVERAGE_PAY_RATE, DEFAULT_PAY_RATE_LOOKBACK, DistributionClient, EPHEMERAL_RENT_EXEMPTION, ERC1155Abi, ERC20Abi, ERC721Abi, types$1 as ETH, EthereumContractService, EthereumInstaswapClient, EthereumStakingClient, HOODI_ADDRESSES, INDEX_SCALE, INITIAL_TRANCHE_SUPPLY, LAMPORTS_PER_SOL, LeaderboardClient, MAINNET_ADDRESSES, OutpostClient, PAY_RATE_SCALE_FACTOR, PDA_SEEDS, PROGRAM_IDS_BY_CHAIN, PurchaseAsset, ReceiptNFTKind, SCALE, types as SOL, SolanaInstaswapClient, SolanaStakingClient, Staker, SupportedEvmChainID, SupportedSolChainID, TokenClient, airdropSol, buildOutpostAccounts, buildSolanaInstaswapCrossChainAccounts, buildSolanaSyndicateAccounts, buildSolanaTrancheLadder, buildSolanaTrancheSnapshot, ceilDiv, deriveEphemeralStakeAddress, generateRandomDepositAmount, generateTestKeypair, getEpochSnapshot, getErrorMessage, getEthereumTransactionStatus, getProgramIds, getSolanaTransactionStatus, getStakingClientTransactionStatus, lamportsToSol, msToEpochEnd, normalizeToBigInt, safeFetch, scheduledInstruction, sleep, solToLamports, submitEthereumDepositAndStakeToWireFlow, submitEthereumStakeToWireFlow, toBigint, tokensToShares, waitForConfirmation, waitUntilSafeToExecuteFunction };
19604
+ export type { BalanceView, ChainSymbol, ContractConfig, ContractOptions, Contracts, EpochSnapshot, EthereumDepositToWireParams, EthereumEnsureLiqEthBalanceParams, EthereumInstaswapConnectedBalances, EthereumInstaswapOutpostAddresses, EthereumInstaswapSubmitHooks, EthereumInstaswapSubmitParams, EthereumStakeSubmission, EthereumSubmitStepResult, IStakingClient, OPPAssertion, OutpostAccounts, Portfolio, PurchaseQuote, ScheduleConfig, SolanaDepositToWireParams, SolanaInstaswapConnectedBalances, SolanaInstaswapSubmitHooks, SolanaInstaswapSubmitParams, SolanaProgramIds, SquadsXConfig, StakerConfig, StakingTransactionStatus, StakingTxChain, StakingTxState, TrancheLadderItem, TrancheSnapshot, WithdrawReceipt$1 as WithdrawReceipt, WithdrawStatus, YieldView };