@satrush/client 0.1.0 → 0.1.1

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.d.mts CHANGED
@@ -3875,4 +3875,64 @@ type ParsedWithdrawProtocolFeesInstruction<TProgram extends string = typeof SATR
3875
3875
  };
3876
3876
  declare function parseWithdrawProtocolFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawProtocolFeesInstruction<TProgram, TAccountMetas>;
3877
3877
 
3878
- export { BOARD_DISCRIMINATOR, BUY_EPOCH_TICKETS_DISCRIMINATOR, BUY_ONE_BTC_TICKETS_DISCRIMINATOR, type Board, type BoardArgs, type BuyEpochTicketsAsyncInput, type BuyEpochTicketsInput, type BuyEpochTicketsInstruction, type BuyEpochTicketsInstructionData, type BuyEpochTicketsInstructionDataArgs, type BuyOneBtcTicketsAsyncInput, type BuyOneBtcTicketsInput, type BuyOneBtcTicketsInstruction, type BuyOneBtcTicketsInstructionData, type BuyOneBtcTicketsInstructionDataArgs, CLAIM_DISCRIMINATOR, CLAIM_EPOCH_REWARD_DISCRIMINATOR, CLAIM_ONE_BTC_REWARD_DISCRIMINATOR, CLAIM_SATS_DISCRIMINATOR, CLOSE_EPOCH_ENTRY_DISCRIMINATOR, CLOSE_EPOCH_ITERATION_DISCRIMINATOR, CLOSE_EPOCH_PAGE_DISCRIMINATOR, CLOSE_ONE_BTC_ITERATION_DISCRIMINATOR, CLOSE_ONE_BTC_TICKET_DISCRIMINATOR, CREATE_BOARD_DISCRIMINATOR, CREATE_EPOCH_VAULT_DISCRIMINATOR, CREATE_ONE_BTC_VAULT_DISCRIMINATOR, CREATE_SATRUSH_CONFIG_DISCRIMINATOR, CREATE_SATS_VAULT_DISCRIMINATOR, CREATE_TREASURY_DISCRIMINATOR, type ClaimAsyncInput, type ClaimEpochRewardAsyncInput, type ClaimEpochRewardInput, type ClaimEpochRewardInstruction, type ClaimEpochRewardInstructionData, type ClaimEpochRewardInstructionDataArgs, type ClaimInput, type ClaimInstruction, type ClaimInstructionData, type ClaimInstructionDataArgs, type ClaimOneBtcRewardAsyncInput, type ClaimOneBtcRewardInput, type ClaimOneBtcRewardInstruction, type ClaimOneBtcRewardInstructionData, type ClaimOneBtcRewardInstructionDataArgs, type ClaimSatsAsyncInput, type ClaimSatsInput, type ClaimSatsInstruction, type ClaimSatsInstructionData, type ClaimSatsInstructionDataArgs, type CloseEpochEntryAsyncInput, type CloseEpochEntryInput, type CloseEpochEntryInstruction, type CloseEpochEntryInstructionData, type CloseEpochEntryInstructionDataArgs, type CloseEpochIterationAsyncInput, type CloseEpochIterationInput, type CloseEpochIterationInstruction, type CloseEpochIterationInstructionData, type CloseEpochIterationInstructionDataArgs, type CloseEpochPageAsyncInput, type CloseEpochPageInput, type CloseEpochPageInstruction, type CloseEpochPageInstructionData, type CloseEpochPageInstructionDataArgs, type CloseOneBtcIterationAsyncInput, type CloseOneBtcIterationInput, type CloseOneBtcIterationInstruction, type CloseOneBtcIterationInstructionData, type CloseOneBtcIterationInstructionDataArgs, type CloseOneBtcTicketInput, type CloseOneBtcTicketInstruction, type CloseOneBtcTicketInstructionData, type CloseOneBtcTicketInstructionDataArgs, type CreateBoardAsyncInput, type CreateBoardInput, type CreateBoardInstruction, type CreateBoardInstructionData, type CreateBoardInstructionDataArgs, type CreateEpochVaultAsyncInput, type CreateEpochVaultInput, type CreateEpochVaultInstruction, type CreateEpochVaultInstructionData, type CreateEpochVaultInstructionDataArgs, type CreateOneBtcVaultAsyncInput, type CreateOneBtcVaultInput, type CreateOneBtcVaultInstruction, type CreateOneBtcVaultInstructionData, type CreateOneBtcVaultInstructionDataArgs, type CreateSatrushConfigAsyncInput, type CreateSatrushConfigInput, type CreateSatrushConfigInstruction, type CreateSatrushConfigInstructionData, type CreateSatrushConfigInstructionDataArgs, type CreateSatsVaultAsyncInput, type CreateSatsVaultInput, type CreateSatsVaultInstruction, type CreateSatsVaultInstructionData, type CreateSatsVaultInstructionDataArgs, type CreateTreasuryAsyncInput, type CreateTreasuryInput, type CreateTreasuryInstruction, type CreateTreasuryInstructionData, type CreateTreasuryInstructionDataArgs, DEPLOY_PUBLIC_DISCRIMINATOR, type DeployPublicAsyncInput, type DeployPublicInput, type DeployPublicInstruction, type DeployPublicInstructionData, type DeployPublicInstructionDataArgs, EPOCH_VAULT_DISCRIMINATOR, EPOCH_VAULT_ENTRY_DISCRIMINATOR, EPOCH_VAULT_ITERATION_DISCRIMINATOR, EPOCH_VAULT_PAGE_DISCRIMINATOR, EpochState, type EpochStateArgs, type EpochVault, type EpochVaultArgs, type EpochVaultEntry, type EpochVaultEntryArgs, type EpochVaultIteration, type EpochVaultIterationArgs, type EpochVaultPage, type EpochVaultPageArgs, MINER_DISCRIMINATOR, type Miner, type MinerArgs, type MinerSeeds, type NextRoundSeeds, ONE_BTC_VAULT_DISCRIMINATOR, ONE_BTC_VAULT_ENTRY_DISCRIMINATOR, ONE_BTC_VAULT_ITERATION_DISCRIMINATOR, OneBtcState, type OneBtcStateArgs, type OneBtcVault, type OneBtcVaultArgs, type OneBtcVaultEntry, type OneBtcVaultEntryArgs, type OneBtcVaultIteration, type OneBtcVaultIterationArgs, PUBLIC_DEPLOYMENT_DISCRIMINATOR, type PageEntry, type PageEntryArgs, type ParsedBuyEpochTicketsInstruction, type ParsedBuyOneBtcTicketsInstruction, type ParsedClaimEpochRewardInstruction, type ParsedClaimInstruction, type ParsedClaimOneBtcRewardInstruction, type ParsedClaimSatsInstruction, type ParsedCloseEpochEntryInstruction, type ParsedCloseEpochIterationInstruction, type ParsedCloseEpochPageInstruction, type ParsedCloseOneBtcIterationInstruction, type ParsedCloseOneBtcTicketInstruction, type ParsedCreateBoardInstruction, type ParsedCreateEpochVaultInstruction, type ParsedCreateOneBtcVaultInstruction, type ParsedCreateSatrushConfigInstruction, type ParsedCreateSatsVaultInstruction, type ParsedCreateTreasuryInstruction, type ParsedDeployPublicInstruction, type ParsedRotateRoundInstruction, type ParsedSatrushInstruction, type ParsedSealEpochPageInstruction, type ParsedSelectEpochWinnerInstruction, type ParsedSwapEpochStakeInstruction, type ParsedSwapOneBtcStakeInstruction, type ParsedSwapRoundStakeInstruction, type ParsedSwapStrikeStakeInstruction, type ParsedTriggerEpochDrawInstruction, type ParsedTriggerOneBtcDrawInstruction, type ParsedWithdrawProtocolFeesInstruction, type PublicDeployment, type PublicDeploymentArgs, ROTATE_ROUND_DISCRIMINATOR, ROUND_DISCRIMINATOR, type RotateRoundAsyncInput, type RotateRoundInput, type RotateRoundInstruction, type RotateRoundInstructionData, type RotateRoundInstructionDataArgs, type Round, type RoundArgs, RoundState, type RoundStateArgs, SATRUSH_CONFIG_DISCRIMINATOR, SATRUSH_ERROR__ALREADY_REVEALED, SATRUSH_ERROR__ALREADY_SETTLED, SATRUSH_ERROR__ALREADY_SWAPPED, SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED, SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED, SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED, SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE, SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD, SATRUSH_ERROR__EPOCH_INVALID_PAGE, SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS, SATRUSH_ERROR__EPOCH_NOT_A_WINNER, SATRUSH_ERROR__EPOCH_NOT_OPEN, SATRUSH_ERROR__EPOCH_NOT_SETTLED, SATRUSH_ERROR__EPOCH_NOT_SETTLING, SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED, SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED, SATRUSH_ERROR__EPOCH_SEAL_MISMATCH, SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED, SATRUSH_ERROR__INSUFFICIENT_HASHRATE, SATRUSH_ERROR__INSUFFICIENT_SHARES, SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT, SATRUSH_ERROR__INVALID_ENTROPY, SATRUSH_ERROR__INVALID_JUPITER_ROUTE, SATRUSH_ERROR__INVALID_ROUND_ID, SATRUSH_ERROR__INVALID_SELECTION_MASK, SATRUSH_ERROR__INVALID_SHARE_AMOUNT, SATRUSH_ERROR__INVALID_SLOT_HASH, SATRUSH_ERROR__INVALID_SWAP_PROGRAM, SATRUSH_ERROR__MATH_OVERFLOW, SATRUSH_ERROR__MATH_UNDERFLOW, SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE, SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD, SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER, SATRUSH_ERROR__ONE_BTC_NOT_OPEN, SATRUSH_ERROR__ONE_BTC_NOT_SETTLED, SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE, SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS, SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED, SATRUSH_ERROR__ROUND_IN_PROGRESS, SATRUSH_ERROR__ROUND_NOT_ACTIVE, SATRUSH_ERROR__ROUND_NOT_REVEALED, SATRUSH_ERROR__ROUND_NOT_SETTLED, SATRUSH_ERROR__ROUND_WINDOW_CLOSED, SATRUSH_ERROR__SLIPPAGE_EXCEEDED, SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED, SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD, SATRUSH_ERROR__SWAP_OVERSPENT, SATRUSH_ERROR__TREASURY_EMPTY, SATRUSH_ERROR__UNAUTHORIZED, SATRUSH_PROGRAM_ADDRESS, SATS_VAULT_DISCRIMINATOR, SEAL_EPOCH_PAGE_DISCRIMINATOR, SELECT_EPOCH_WINNER_DISCRIMINATOR, SWAP_EPOCH_STAKE_DISCRIMINATOR, SWAP_ONE_BTC_STAKE_DISCRIMINATOR, SWAP_ROUND_STAKE_DISCRIMINATOR, SWAP_STRIKE_STAKE_DISCRIMINATOR, SatrushAccount, type SatrushConfig, type SatrushConfigArgs, type SatrushError, SatrushInstruction, type SatrushPlugin, type SatrushPluginAccounts, type SatrushPluginInstructions, type SatrushPluginPdas, type SatrushPluginRequirements, type SatsVault, type SatsVaultArgs, type SealEpochPageAsyncInput, type SealEpochPageInput, type SealEpochPageInstruction, type SealEpochPageInstructionData, type SealEpochPageInstructionDataArgs, type SelectEpochWinnerAsyncInput, type SelectEpochWinnerInput, type SelectEpochWinnerInstruction, type SelectEpochWinnerInstructionData, type SelectEpochWinnerInstructionDataArgs, type SwapEpochStakeAsyncInput, type SwapEpochStakeInput, type SwapEpochStakeInstruction, type SwapEpochStakeInstructionData, type SwapEpochStakeInstructionDataArgs, type SwapOneBtcStakeAsyncInput, type SwapOneBtcStakeInput, type SwapOneBtcStakeInstruction, type SwapOneBtcStakeInstructionData, type SwapOneBtcStakeInstructionDataArgs, type SwapRoundStakeAsyncInput, type SwapRoundStakeInput, type SwapRoundStakeInstruction, type SwapRoundStakeInstructionData, type SwapRoundStakeInstructionDataArgs, type SwapStrikeStakeAsyncInput, type SwapStrikeStakeInput, type SwapStrikeStakeInstruction, type SwapStrikeStakeInstructionData, type SwapStrikeStakeInstructionDataArgs, TREASURY_DISCRIMINATOR, TRIGGER_EPOCH_DRAW_DISCRIMINATOR, TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR, type TileStake, type TileStakeArgs, type Treasury, type TreasuryArgs, type TriggerEpochDrawAsyncInput, type TriggerEpochDrawInput, type TriggerEpochDrawInstruction, type TriggerEpochDrawInstructionData, type TriggerEpochDrawInstructionDataArgs, type TriggerOneBtcDrawAsyncInput, type TriggerOneBtcDrawInput, type TriggerOneBtcDrawInstruction, type TriggerOneBtcDrawInstructionData, type TriggerOneBtcDrawInstructionDataArgs, WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR, type Winner, type WinnerArgs, type WithdrawProtocolFeesAsyncInput, type WithdrawProtocolFeesInput, type WithdrawProtocolFeesInstruction, type WithdrawProtocolFeesInstructionData, type WithdrawProtocolFeesInstructionDataArgs, decodeBoard, decodeEpochVault, decodeEpochVaultEntry, decodeEpochVaultIteration, decodeEpochVaultPage, decodeMiner, decodeOneBtcVault, decodeOneBtcVaultEntry, decodeOneBtcVaultIteration, decodePublicDeployment, decodeRound, decodeSatrushConfig, decodeSatsVault, decodeTreasury, fetchAllBoard, fetchAllEpochVault, fetchAllEpochVaultEntry, fetchAllEpochVaultIteration, fetchAllEpochVaultPage, fetchAllMaybeBoard, fetchAllMaybeEpochVault, fetchAllMaybeEpochVaultEntry, fetchAllMaybeEpochVaultIteration, fetchAllMaybeEpochVaultPage, fetchAllMaybeMiner, fetchAllMaybeOneBtcVault, fetchAllMaybeOneBtcVaultEntry, fetchAllMaybeOneBtcVaultIteration, fetchAllMaybePublicDeployment, fetchAllMaybeRound, fetchAllMaybeSatrushConfig, fetchAllMaybeSatsVault, fetchAllMaybeTreasury, fetchAllMiner, fetchAllOneBtcVault, fetchAllOneBtcVaultEntry, fetchAllOneBtcVaultIteration, fetchAllPublicDeployment, fetchAllRound, fetchAllSatrushConfig, fetchAllSatsVault, fetchAllTreasury, fetchBoard, fetchEpochVault, fetchEpochVaultEntry, fetchEpochVaultIteration, fetchEpochVaultPage, fetchMaybeBoard, fetchMaybeEpochVault, fetchMaybeEpochVaultEntry, fetchMaybeEpochVaultIteration, fetchMaybeEpochVaultPage, fetchMaybeMiner, fetchMaybeOneBtcVault, fetchMaybeOneBtcVaultEntry, fetchMaybeOneBtcVaultIteration, fetchMaybePublicDeployment, fetchMaybeRound, fetchMaybeSatrushConfig, fetchMaybeSatsVault, fetchMaybeTreasury, fetchMiner, fetchOneBtcVault, fetchOneBtcVaultEntry, fetchOneBtcVaultIteration, fetchPublicDeployment, fetchRound, fetchSatrushConfig, fetchSatsVault, fetchTreasury, findBoardPda, findEpochVaultIterationPda, findEpochVaultPda, findInitialRoundPda, findMinerPda, findNextRoundPda, findOneBtcVaultIterationPda, findOneBtcVaultPda, findSatrushConfigPda, findSatsVaultPda, findTreasuryPda, getBoardCodec, getBoardDecoder, getBoardDiscriminatorBytes, getBoardEncoder, getBoardSize, getBuyEpochTicketsDiscriminatorBytes, getBuyEpochTicketsInstruction, getBuyEpochTicketsInstructionAsync, getBuyEpochTicketsInstructionDataCodec, getBuyEpochTicketsInstructionDataDecoder, getBuyEpochTicketsInstructionDataEncoder, getBuyOneBtcTicketsDiscriminatorBytes, getBuyOneBtcTicketsInstruction, getBuyOneBtcTicketsInstructionAsync, getBuyOneBtcTicketsInstructionDataCodec, getBuyOneBtcTicketsInstructionDataDecoder, getBuyOneBtcTicketsInstructionDataEncoder, getClaimDiscriminatorBytes, getClaimEpochRewardDiscriminatorBytes, getClaimEpochRewardInstruction, getClaimEpochRewardInstructionAsync, getClaimEpochRewardInstructionDataCodec, getClaimEpochRewardInstructionDataDecoder, getClaimEpochRewardInstructionDataEncoder, getClaimInstruction, getClaimInstructionAsync, getClaimInstructionDataCodec, getClaimInstructionDataDecoder, getClaimInstructionDataEncoder, getClaimOneBtcRewardDiscriminatorBytes, getClaimOneBtcRewardInstruction, getClaimOneBtcRewardInstructionAsync, getClaimOneBtcRewardInstructionDataCodec, getClaimOneBtcRewardInstructionDataDecoder, getClaimOneBtcRewardInstructionDataEncoder, getClaimSatsDiscriminatorBytes, getClaimSatsInstruction, getClaimSatsInstructionAsync, getClaimSatsInstructionDataCodec, getClaimSatsInstructionDataDecoder, getClaimSatsInstructionDataEncoder, getCloseEpochEntryDiscriminatorBytes, getCloseEpochEntryInstruction, getCloseEpochEntryInstructionAsync, getCloseEpochEntryInstructionDataCodec, getCloseEpochEntryInstructionDataDecoder, getCloseEpochEntryInstructionDataEncoder, getCloseEpochIterationDiscriminatorBytes, getCloseEpochIterationInstruction, getCloseEpochIterationInstructionAsync, getCloseEpochIterationInstructionDataCodec, getCloseEpochIterationInstructionDataDecoder, getCloseEpochIterationInstructionDataEncoder, getCloseEpochPageDiscriminatorBytes, getCloseEpochPageInstruction, getCloseEpochPageInstructionAsync, getCloseEpochPageInstructionDataCodec, getCloseEpochPageInstructionDataDecoder, getCloseEpochPageInstructionDataEncoder, getCloseOneBtcIterationDiscriminatorBytes, getCloseOneBtcIterationInstruction, getCloseOneBtcIterationInstructionAsync, getCloseOneBtcIterationInstructionDataCodec, getCloseOneBtcIterationInstructionDataDecoder, getCloseOneBtcIterationInstructionDataEncoder, getCloseOneBtcTicketDiscriminatorBytes, getCloseOneBtcTicketInstruction, getCloseOneBtcTicketInstructionDataCodec, getCloseOneBtcTicketInstructionDataDecoder, getCloseOneBtcTicketInstructionDataEncoder, getCreateBoardDiscriminatorBytes, getCreateBoardInstruction, getCreateBoardInstructionAsync, getCreateBoardInstructionDataCodec, getCreateBoardInstructionDataDecoder, getCreateBoardInstructionDataEncoder, getCreateEpochVaultDiscriminatorBytes, getCreateEpochVaultInstruction, getCreateEpochVaultInstructionAsync, getCreateEpochVaultInstructionDataCodec, getCreateEpochVaultInstructionDataDecoder, getCreateEpochVaultInstructionDataEncoder, getCreateOneBtcVaultDiscriminatorBytes, getCreateOneBtcVaultInstruction, getCreateOneBtcVaultInstructionAsync, getCreateOneBtcVaultInstructionDataCodec, getCreateOneBtcVaultInstructionDataDecoder, getCreateOneBtcVaultInstructionDataEncoder, getCreateSatrushConfigDiscriminatorBytes, getCreateSatrushConfigInstruction, getCreateSatrushConfigInstructionAsync, getCreateSatrushConfigInstructionDataCodec, getCreateSatrushConfigInstructionDataDecoder, getCreateSatrushConfigInstructionDataEncoder, getCreateSatsVaultDiscriminatorBytes, getCreateSatsVaultInstruction, getCreateSatsVaultInstructionAsync, getCreateSatsVaultInstructionDataCodec, getCreateSatsVaultInstructionDataDecoder, getCreateSatsVaultInstructionDataEncoder, getCreateTreasuryDiscriminatorBytes, getCreateTreasuryInstruction, getCreateTreasuryInstructionAsync, getCreateTreasuryInstructionDataCodec, getCreateTreasuryInstructionDataDecoder, getCreateTreasuryInstructionDataEncoder, getDeployPublicDiscriminatorBytes, getDeployPublicInstruction, getDeployPublicInstructionAsync, getDeployPublicInstructionDataCodec, getDeployPublicInstructionDataDecoder, getDeployPublicInstructionDataEncoder, getEpochStateCodec, getEpochStateDecoder, getEpochStateEncoder, getEpochVaultCodec, getEpochVaultDecoder, getEpochVaultDiscriminatorBytes, getEpochVaultEncoder, getEpochVaultEntryCodec, getEpochVaultEntryDecoder, getEpochVaultEntryDiscriminatorBytes, getEpochVaultEntryEncoder, getEpochVaultEntrySize, getEpochVaultIterationCodec, getEpochVaultIterationDecoder, getEpochVaultIterationDiscriminatorBytes, getEpochVaultIterationEncoder, getEpochVaultIterationSize, getEpochVaultPageCodec, getEpochVaultPageDecoder, getEpochVaultPageDiscriminatorBytes, getEpochVaultPageEncoder, getEpochVaultPageSize, getEpochVaultSize, getMinerCodec, getMinerDecoder, getMinerDiscriminatorBytes, getMinerEncoder, getMinerSize, getOneBtcStateCodec, getOneBtcStateDecoder, getOneBtcStateEncoder, getOneBtcVaultCodec, getOneBtcVaultDecoder, getOneBtcVaultDiscriminatorBytes, getOneBtcVaultEncoder, getOneBtcVaultEntryCodec, getOneBtcVaultEntryDecoder, getOneBtcVaultEntryDiscriminatorBytes, getOneBtcVaultEntryEncoder, getOneBtcVaultEntrySize, getOneBtcVaultIterationCodec, getOneBtcVaultIterationDecoder, getOneBtcVaultIterationDiscriminatorBytes, getOneBtcVaultIterationEncoder, getOneBtcVaultIterationSize, getOneBtcVaultSize, getPageEntryCodec, getPageEntryDecoder, getPageEntryEncoder, getPublicDeploymentCodec, getPublicDeploymentDecoder, getPublicDeploymentDiscriminatorBytes, getPublicDeploymentEncoder, getRotateRoundDiscriminatorBytes, getRotateRoundInstruction, getRotateRoundInstructionAsync, getRotateRoundInstructionDataCodec, getRotateRoundInstructionDataDecoder, getRotateRoundInstructionDataEncoder, getRoundCodec, getRoundDecoder, getRoundDiscriminatorBytes, getRoundEncoder, getRoundStateCodec, getRoundStateDecoder, getRoundStateEncoder, getSatrushConfigCodec, getSatrushConfigDecoder, getSatrushConfigDiscriminatorBytes, getSatrushConfigEncoder, getSatrushConfigSize, getSatrushErrorMessage, getSatsVaultCodec, getSatsVaultDecoder, getSatsVaultDiscriminatorBytes, getSatsVaultEncoder, getSatsVaultSize, getSealEpochPageDiscriminatorBytes, getSealEpochPageInstruction, getSealEpochPageInstructionAsync, getSealEpochPageInstructionDataCodec, getSealEpochPageInstructionDataDecoder, getSealEpochPageInstructionDataEncoder, getSelectEpochWinnerDiscriminatorBytes, getSelectEpochWinnerInstruction, getSelectEpochWinnerInstructionAsync, getSelectEpochWinnerInstructionDataCodec, getSelectEpochWinnerInstructionDataDecoder, getSelectEpochWinnerInstructionDataEncoder, getSwapEpochStakeDiscriminatorBytes, getSwapEpochStakeInstruction, getSwapEpochStakeInstructionAsync, getSwapEpochStakeInstructionDataCodec, getSwapEpochStakeInstructionDataDecoder, getSwapEpochStakeInstructionDataEncoder, getSwapOneBtcStakeDiscriminatorBytes, getSwapOneBtcStakeInstruction, getSwapOneBtcStakeInstructionAsync, getSwapOneBtcStakeInstructionDataCodec, getSwapOneBtcStakeInstructionDataDecoder, getSwapOneBtcStakeInstructionDataEncoder, getSwapRoundStakeDiscriminatorBytes, getSwapRoundStakeInstruction, getSwapRoundStakeInstructionAsync, getSwapRoundStakeInstructionDataCodec, getSwapRoundStakeInstructionDataDecoder, getSwapRoundStakeInstructionDataEncoder, getSwapStrikeStakeDiscriminatorBytes, getSwapStrikeStakeInstruction, getSwapStrikeStakeInstructionAsync, getSwapStrikeStakeInstructionDataCodec, getSwapStrikeStakeInstructionDataDecoder, getSwapStrikeStakeInstructionDataEncoder, getTileStakeCodec, getTileStakeDecoder, getTileStakeEncoder, getTreasuryCodec, getTreasuryDecoder, getTreasuryDiscriminatorBytes, getTreasuryEncoder, getTreasurySize, getTriggerEpochDrawDiscriminatorBytes, getTriggerEpochDrawInstruction, getTriggerEpochDrawInstructionAsync, getTriggerEpochDrawInstructionDataCodec, getTriggerEpochDrawInstructionDataDecoder, getTriggerEpochDrawInstructionDataEncoder, getTriggerOneBtcDrawDiscriminatorBytes, getTriggerOneBtcDrawInstruction, getTriggerOneBtcDrawInstructionAsync, getTriggerOneBtcDrawInstructionDataCodec, getTriggerOneBtcDrawInstructionDataDecoder, getTriggerOneBtcDrawInstructionDataEncoder, getWinnerCodec, getWinnerDecoder, getWinnerEncoder, getWithdrawProtocolFeesDiscriminatorBytes, getWithdrawProtocolFeesInstruction, getWithdrawProtocolFeesInstructionAsync, getWithdrawProtocolFeesInstructionDataCodec, getWithdrawProtocolFeesInstructionDataDecoder, getWithdrawProtocolFeesInstructionDataEncoder, identifySatrushAccount, identifySatrushInstruction, isSatrushError, parseBuyEpochTicketsInstruction, parseBuyOneBtcTicketsInstruction, parseClaimEpochRewardInstruction, parseClaimInstruction, parseClaimOneBtcRewardInstruction, parseClaimSatsInstruction, parseCloseEpochEntryInstruction, parseCloseEpochIterationInstruction, parseCloseEpochPageInstruction, parseCloseOneBtcIterationInstruction, parseCloseOneBtcTicketInstruction, parseCreateBoardInstruction, parseCreateEpochVaultInstruction, parseCreateOneBtcVaultInstruction, parseCreateSatrushConfigInstruction, parseCreateSatsVaultInstruction, parseCreateTreasuryInstruction, parseDeployPublicInstruction, parseRotateRoundInstruction, parseSatrushInstruction, parseSealEpochPageInstruction, parseSelectEpochWinnerInstruction, parseSwapEpochStakeInstruction, parseSwapOneBtcStakeInstruction, parseSwapRoundStakeInstruction, parseSwapStrikeStakeInstruction, parseTriggerEpochDrawInstruction, parseTriggerOneBtcDrawInstruction, parseWithdrawProtocolFeesInstruction, satrushProgram };
3878
+ /**
3879
+ * Environment-free instruction builders.
3880
+ *
3881
+ * Thin composition helpers over the generated instruction builders: they derive
3882
+ * every PDA and associated token account from the program's fixed seeds, so a
3883
+ * caller only supplies the signing authority and the mint addresses. Shared by
3884
+ * the test-suite and the CLI.
3885
+ *
3886
+ * The authority is taken as a plain {@link Address} (not a signer) to keep these
3887
+ * builders environment-free, mirroring the Rust crate. It is wrapped in a noop
3888
+ * signer so the account is marked as a signer in the built instruction; the
3889
+ * caller provides the real signature at send time.
3890
+ */
3891
+
3892
+ /**
3893
+ * `deploy_public`: stake `amount` USD (base units, gross of fees) on the tiles
3894
+ * in `selectionMask` for round `roundId`, as the miner `authority`. The round
3895
+ * must be the board's current one and open for deploys; the miner profile and
3896
+ * deployment record PDAs are created by the instruction.
3897
+ */
3898
+ declare function buildDeployPublicInstruction(authority: Address, usdMint: Address, roundId: number, selectionMask: number, amount: number | bigint): Promise<Instruction>;
3899
+ /**
3900
+ * `claim`: settle the miner `authority`'s deployment in a Settled round —
3901
+ * credit winnings (USD + sats vault shares) and hashrate points to the miner
3902
+ * profile, then close the deployment account, returning its rent. Valid for
3903
+ * losing deployments too (they still earn hashrate points).
3904
+ */
3905
+ declare function buildClaimInstruction(authority: Address, usdMint: Address, btcMint: Address, roundId: number): Promise<Instruction>;
3906
+
3907
+ declare function getSatrushConfigAddress(): Promise<ProgramDerivedAddress>;
3908
+ declare function getBoardAddress(): Promise<ProgramDerivedAddress>;
3909
+ declare function getRoundAddress(roundId: number): Promise<ProgramDerivedAddress>;
3910
+ declare function getPublicDeploymentAddress(authority: Address, roundId: number): Promise<ProgramDerivedAddress>;
3911
+ declare function getMinerAddress(authority: Address): Promise<ProgramDerivedAddress>;
3912
+ declare function getSatsVaultAddress(): Promise<ProgramDerivedAddress>;
3913
+ declare function getEpochVaultAddress(): Promise<ProgramDerivedAddress>;
3914
+ declare function getEpochVaultIterationAddress(iterationId: number): Promise<ProgramDerivedAddress>;
3915
+ declare function getEpochVaultEntryAddress(iterationId: number, authority: Address): Promise<ProgramDerivedAddress>;
3916
+ declare function getEpochVaultPageAddress(iterationId: number, pageIndex: number): Promise<ProgramDerivedAddress>;
3917
+ declare function getOneBtcVaultAddress(): Promise<ProgramDerivedAddress>;
3918
+ declare function getOneBtcVaultIterationAddress(iterationId: number): Promise<ProgramDerivedAddress>;
3919
+ declare function getTreasuryAddress(): Promise<ProgramDerivedAddress>;
3920
+
3921
+ /** Number of selectable tiles on the board. */
3922
+ declare const TILE_COUNT = 21;
3923
+ /**
3924
+ * Convert a fixed-length array of tile selections into the packed `u32` selection
3925
+ * mask expected by `deploy_public`: bit `i` is set when `tiles[i]` is `true`.
3926
+ *
3927
+ * Because the array is exactly {@link TILE_COUNT} long, the result always fits in
3928
+ * the low {@link TILE_COUNT} bits. Note the program still rejects an all-`false`
3929
+ * selection (mask `0`), so callers should pick at least one tile.
3930
+ */
3931
+ declare function selectionMaskFromTiles(tiles: boolean[]): number;
3932
+ /**
3933
+ * Inverse of {@link selectionMaskFromTiles}: unpack a `u32` selection mask into a
3934
+ * per-tile boolean array. Bits above {@link TILE_COUNT} are ignored.
3935
+ */
3936
+ declare function tilesFromSelectionMask(mask: number): boolean[];
3937
+
3938
+ export { BOARD_DISCRIMINATOR, BUY_EPOCH_TICKETS_DISCRIMINATOR, BUY_ONE_BTC_TICKETS_DISCRIMINATOR, type Board, type BoardArgs, type BuyEpochTicketsAsyncInput, type BuyEpochTicketsInput, type BuyEpochTicketsInstruction, type BuyEpochTicketsInstructionData, type BuyEpochTicketsInstructionDataArgs, type BuyOneBtcTicketsAsyncInput, type BuyOneBtcTicketsInput, type BuyOneBtcTicketsInstruction, type BuyOneBtcTicketsInstructionData, type BuyOneBtcTicketsInstructionDataArgs, CLAIM_DISCRIMINATOR, CLAIM_EPOCH_REWARD_DISCRIMINATOR, CLAIM_ONE_BTC_REWARD_DISCRIMINATOR, CLAIM_SATS_DISCRIMINATOR, CLOSE_EPOCH_ENTRY_DISCRIMINATOR, CLOSE_EPOCH_ITERATION_DISCRIMINATOR, CLOSE_EPOCH_PAGE_DISCRIMINATOR, CLOSE_ONE_BTC_ITERATION_DISCRIMINATOR, CLOSE_ONE_BTC_TICKET_DISCRIMINATOR, CREATE_BOARD_DISCRIMINATOR, CREATE_EPOCH_VAULT_DISCRIMINATOR, CREATE_ONE_BTC_VAULT_DISCRIMINATOR, CREATE_SATRUSH_CONFIG_DISCRIMINATOR, CREATE_SATS_VAULT_DISCRIMINATOR, CREATE_TREASURY_DISCRIMINATOR, type ClaimAsyncInput, type ClaimEpochRewardAsyncInput, type ClaimEpochRewardInput, type ClaimEpochRewardInstruction, type ClaimEpochRewardInstructionData, type ClaimEpochRewardInstructionDataArgs, type ClaimInput, type ClaimInstruction, type ClaimInstructionData, type ClaimInstructionDataArgs, type ClaimOneBtcRewardAsyncInput, type ClaimOneBtcRewardInput, type ClaimOneBtcRewardInstruction, type ClaimOneBtcRewardInstructionData, type ClaimOneBtcRewardInstructionDataArgs, type ClaimSatsAsyncInput, type ClaimSatsInput, type ClaimSatsInstruction, type ClaimSatsInstructionData, type ClaimSatsInstructionDataArgs, type CloseEpochEntryAsyncInput, type CloseEpochEntryInput, type CloseEpochEntryInstruction, type CloseEpochEntryInstructionData, type CloseEpochEntryInstructionDataArgs, type CloseEpochIterationAsyncInput, type CloseEpochIterationInput, type CloseEpochIterationInstruction, type CloseEpochIterationInstructionData, type CloseEpochIterationInstructionDataArgs, type CloseEpochPageAsyncInput, type CloseEpochPageInput, type CloseEpochPageInstruction, type CloseEpochPageInstructionData, type CloseEpochPageInstructionDataArgs, type CloseOneBtcIterationAsyncInput, type CloseOneBtcIterationInput, type CloseOneBtcIterationInstruction, type CloseOneBtcIterationInstructionData, type CloseOneBtcIterationInstructionDataArgs, type CloseOneBtcTicketInput, type CloseOneBtcTicketInstruction, type CloseOneBtcTicketInstructionData, type CloseOneBtcTicketInstructionDataArgs, type CreateBoardAsyncInput, type CreateBoardInput, type CreateBoardInstruction, type CreateBoardInstructionData, type CreateBoardInstructionDataArgs, type CreateEpochVaultAsyncInput, type CreateEpochVaultInput, type CreateEpochVaultInstruction, type CreateEpochVaultInstructionData, type CreateEpochVaultInstructionDataArgs, type CreateOneBtcVaultAsyncInput, type CreateOneBtcVaultInput, type CreateOneBtcVaultInstruction, type CreateOneBtcVaultInstructionData, type CreateOneBtcVaultInstructionDataArgs, type CreateSatrushConfigAsyncInput, type CreateSatrushConfigInput, type CreateSatrushConfigInstruction, type CreateSatrushConfigInstructionData, type CreateSatrushConfigInstructionDataArgs, type CreateSatsVaultAsyncInput, type CreateSatsVaultInput, type CreateSatsVaultInstruction, type CreateSatsVaultInstructionData, type CreateSatsVaultInstructionDataArgs, type CreateTreasuryAsyncInput, type CreateTreasuryInput, type CreateTreasuryInstruction, type CreateTreasuryInstructionData, type CreateTreasuryInstructionDataArgs, DEPLOY_PUBLIC_DISCRIMINATOR, type DeployPublicAsyncInput, type DeployPublicInput, type DeployPublicInstruction, type DeployPublicInstructionData, type DeployPublicInstructionDataArgs, EPOCH_VAULT_DISCRIMINATOR, EPOCH_VAULT_ENTRY_DISCRIMINATOR, EPOCH_VAULT_ITERATION_DISCRIMINATOR, EPOCH_VAULT_PAGE_DISCRIMINATOR, EpochState, type EpochStateArgs, type EpochVault, type EpochVaultArgs, type EpochVaultEntry, type EpochVaultEntryArgs, type EpochVaultIteration, type EpochVaultIterationArgs, type EpochVaultPage, type EpochVaultPageArgs, MINER_DISCRIMINATOR, type Miner, type MinerArgs, type MinerSeeds, type NextRoundSeeds, ONE_BTC_VAULT_DISCRIMINATOR, ONE_BTC_VAULT_ENTRY_DISCRIMINATOR, ONE_BTC_VAULT_ITERATION_DISCRIMINATOR, OneBtcState, type OneBtcStateArgs, type OneBtcVault, type OneBtcVaultArgs, type OneBtcVaultEntry, type OneBtcVaultEntryArgs, type OneBtcVaultIteration, type OneBtcVaultIterationArgs, PUBLIC_DEPLOYMENT_DISCRIMINATOR, type PageEntry, type PageEntryArgs, type ParsedBuyEpochTicketsInstruction, type ParsedBuyOneBtcTicketsInstruction, type ParsedClaimEpochRewardInstruction, type ParsedClaimInstruction, type ParsedClaimOneBtcRewardInstruction, type ParsedClaimSatsInstruction, type ParsedCloseEpochEntryInstruction, type ParsedCloseEpochIterationInstruction, type ParsedCloseEpochPageInstruction, type ParsedCloseOneBtcIterationInstruction, type ParsedCloseOneBtcTicketInstruction, type ParsedCreateBoardInstruction, type ParsedCreateEpochVaultInstruction, type ParsedCreateOneBtcVaultInstruction, type ParsedCreateSatrushConfigInstruction, type ParsedCreateSatsVaultInstruction, type ParsedCreateTreasuryInstruction, type ParsedDeployPublicInstruction, type ParsedRotateRoundInstruction, type ParsedSatrushInstruction, type ParsedSealEpochPageInstruction, type ParsedSelectEpochWinnerInstruction, type ParsedSwapEpochStakeInstruction, type ParsedSwapOneBtcStakeInstruction, type ParsedSwapRoundStakeInstruction, type ParsedSwapStrikeStakeInstruction, type ParsedTriggerEpochDrawInstruction, type ParsedTriggerOneBtcDrawInstruction, type ParsedWithdrawProtocolFeesInstruction, type PublicDeployment, type PublicDeploymentArgs, ROTATE_ROUND_DISCRIMINATOR, ROUND_DISCRIMINATOR, type RotateRoundAsyncInput, type RotateRoundInput, type RotateRoundInstruction, type RotateRoundInstructionData, type RotateRoundInstructionDataArgs, type Round, type RoundArgs, RoundState, type RoundStateArgs, SATRUSH_CONFIG_DISCRIMINATOR, SATRUSH_ERROR__ALREADY_REVEALED, SATRUSH_ERROR__ALREADY_SETTLED, SATRUSH_ERROR__ALREADY_SWAPPED, SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED, SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED, SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED, SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE, SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD, SATRUSH_ERROR__EPOCH_INVALID_PAGE, SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS, SATRUSH_ERROR__EPOCH_NOT_A_WINNER, SATRUSH_ERROR__EPOCH_NOT_OPEN, SATRUSH_ERROR__EPOCH_NOT_SETTLED, SATRUSH_ERROR__EPOCH_NOT_SETTLING, SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED, SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED, SATRUSH_ERROR__EPOCH_SEAL_MISMATCH, SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED, SATRUSH_ERROR__INSUFFICIENT_HASHRATE, SATRUSH_ERROR__INSUFFICIENT_SHARES, SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT, SATRUSH_ERROR__INVALID_ENTROPY, SATRUSH_ERROR__INVALID_JUPITER_ROUTE, SATRUSH_ERROR__INVALID_ROUND_ID, SATRUSH_ERROR__INVALID_SELECTION_MASK, SATRUSH_ERROR__INVALID_SHARE_AMOUNT, SATRUSH_ERROR__INVALID_SLOT_HASH, SATRUSH_ERROR__INVALID_SWAP_PROGRAM, SATRUSH_ERROR__MATH_OVERFLOW, SATRUSH_ERROR__MATH_UNDERFLOW, SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE, SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD, SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER, SATRUSH_ERROR__ONE_BTC_NOT_OPEN, SATRUSH_ERROR__ONE_BTC_NOT_SETTLED, SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE, SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS, SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED, SATRUSH_ERROR__ROUND_IN_PROGRESS, SATRUSH_ERROR__ROUND_NOT_ACTIVE, SATRUSH_ERROR__ROUND_NOT_REVEALED, SATRUSH_ERROR__ROUND_NOT_SETTLED, SATRUSH_ERROR__ROUND_WINDOW_CLOSED, SATRUSH_ERROR__SLIPPAGE_EXCEEDED, SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED, SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD, SATRUSH_ERROR__SWAP_OVERSPENT, SATRUSH_ERROR__TREASURY_EMPTY, SATRUSH_ERROR__UNAUTHORIZED, SATRUSH_PROGRAM_ADDRESS, SATS_VAULT_DISCRIMINATOR, SEAL_EPOCH_PAGE_DISCRIMINATOR, SELECT_EPOCH_WINNER_DISCRIMINATOR, SWAP_EPOCH_STAKE_DISCRIMINATOR, SWAP_ONE_BTC_STAKE_DISCRIMINATOR, SWAP_ROUND_STAKE_DISCRIMINATOR, SWAP_STRIKE_STAKE_DISCRIMINATOR, SatrushAccount, type SatrushConfig, type SatrushConfigArgs, type SatrushError, SatrushInstruction, type SatrushPlugin, type SatrushPluginAccounts, type SatrushPluginInstructions, type SatrushPluginPdas, type SatrushPluginRequirements, type SatsVault, type SatsVaultArgs, type SealEpochPageAsyncInput, type SealEpochPageInput, type SealEpochPageInstruction, type SealEpochPageInstructionData, type SealEpochPageInstructionDataArgs, type SelectEpochWinnerAsyncInput, type SelectEpochWinnerInput, type SelectEpochWinnerInstruction, type SelectEpochWinnerInstructionData, type SelectEpochWinnerInstructionDataArgs, type SwapEpochStakeAsyncInput, type SwapEpochStakeInput, type SwapEpochStakeInstruction, type SwapEpochStakeInstructionData, type SwapEpochStakeInstructionDataArgs, type SwapOneBtcStakeAsyncInput, type SwapOneBtcStakeInput, type SwapOneBtcStakeInstruction, type SwapOneBtcStakeInstructionData, type SwapOneBtcStakeInstructionDataArgs, type SwapRoundStakeAsyncInput, type SwapRoundStakeInput, type SwapRoundStakeInstruction, type SwapRoundStakeInstructionData, type SwapRoundStakeInstructionDataArgs, type SwapStrikeStakeAsyncInput, type SwapStrikeStakeInput, type SwapStrikeStakeInstruction, type SwapStrikeStakeInstructionData, type SwapStrikeStakeInstructionDataArgs, TILE_COUNT, TREASURY_DISCRIMINATOR, TRIGGER_EPOCH_DRAW_DISCRIMINATOR, TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR, type TileStake, type TileStakeArgs, type Treasury, type TreasuryArgs, type TriggerEpochDrawAsyncInput, type TriggerEpochDrawInput, type TriggerEpochDrawInstruction, type TriggerEpochDrawInstructionData, type TriggerEpochDrawInstructionDataArgs, type TriggerOneBtcDrawAsyncInput, type TriggerOneBtcDrawInput, type TriggerOneBtcDrawInstruction, type TriggerOneBtcDrawInstructionData, type TriggerOneBtcDrawInstructionDataArgs, WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR, type Winner, type WinnerArgs, type WithdrawProtocolFeesAsyncInput, type WithdrawProtocolFeesInput, type WithdrawProtocolFeesInstruction, type WithdrawProtocolFeesInstructionData, type WithdrawProtocolFeesInstructionDataArgs, buildClaimInstruction, buildDeployPublicInstruction, decodeBoard, decodeEpochVault, decodeEpochVaultEntry, decodeEpochVaultIteration, decodeEpochVaultPage, decodeMiner, decodeOneBtcVault, decodeOneBtcVaultEntry, decodeOneBtcVaultIteration, decodePublicDeployment, decodeRound, decodeSatrushConfig, decodeSatsVault, decodeTreasury, fetchAllBoard, fetchAllEpochVault, fetchAllEpochVaultEntry, fetchAllEpochVaultIteration, fetchAllEpochVaultPage, fetchAllMaybeBoard, fetchAllMaybeEpochVault, fetchAllMaybeEpochVaultEntry, fetchAllMaybeEpochVaultIteration, fetchAllMaybeEpochVaultPage, fetchAllMaybeMiner, fetchAllMaybeOneBtcVault, fetchAllMaybeOneBtcVaultEntry, fetchAllMaybeOneBtcVaultIteration, fetchAllMaybePublicDeployment, fetchAllMaybeRound, fetchAllMaybeSatrushConfig, fetchAllMaybeSatsVault, fetchAllMaybeTreasury, fetchAllMiner, fetchAllOneBtcVault, fetchAllOneBtcVaultEntry, fetchAllOneBtcVaultIteration, fetchAllPublicDeployment, fetchAllRound, fetchAllSatrushConfig, fetchAllSatsVault, fetchAllTreasury, fetchBoard, fetchEpochVault, fetchEpochVaultEntry, fetchEpochVaultIteration, fetchEpochVaultPage, fetchMaybeBoard, fetchMaybeEpochVault, fetchMaybeEpochVaultEntry, fetchMaybeEpochVaultIteration, fetchMaybeEpochVaultPage, fetchMaybeMiner, fetchMaybeOneBtcVault, fetchMaybeOneBtcVaultEntry, fetchMaybeOneBtcVaultIteration, fetchMaybePublicDeployment, fetchMaybeRound, fetchMaybeSatrushConfig, fetchMaybeSatsVault, fetchMaybeTreasury, fetchMiner, fetchOneBtcVault, fetchOneBtcVaultEntry, fetchOneBtcVaultIteration, fetchPublicDeployment, fetchRound, fetchSatrushConfig, fetchSatsVault, fetchTreasury, findBoardPda, findEpochVaultIterationPda, findEpochVaultPda, findInitialRoundPda, findMinerPda, findNextRoundPda, findOneBtcVaultIterationPda, findOneBtcVaultPda, findSatrushConfigPda, findSatsVaultPda, findTreasuryPda, getBoardAddress, getBoardCodec, getBoardDecoder, getBoardDiscriminatorBytes, getBoardEncoder, getBoardSize, getBuyEpochTicketsDiscriminatorBytes, getBuyEpochTicketsInstruction, getBuyEpochTicketsInstructionAsync, getBuyEpochTicketsInstructionDataCodec, getBuyEpochTicketsInstructionDataDecoder, getBuyEpochTicketsInstructionDataEncoder, getBuyOneBtcTicketsDiscriminatorBytes, getBuyOneBtcTicketsInstruction, getBuyOneBtcTicketsInstructionAsync, getBuyOneBtcTicketsInstructionDataCodec, getBuyOneBtcTicketsInstructionDataDecoder, getBuyOneBtcTicketsInstructionDataEncoder, getClaimDiscriminatorBytes, getClaimEpochRewardDiscriminatorBytes, getClaimEpochRewardInstruction, getClaimEpochRewardInstructionAsync, getClaimEpochRewardInstructionDataCodec, getClaimEpochRewardInstructionDataDecoder, getClaimEpochRewardInstructionDataEncoder, getClaimInstruction, getClaimInstructionAsync, getClaimInstructionDataCodec, getClaimInstructionDataDecoder, getClaimInstructionDataEncoder, getClaimOneBtcRewardDiscriminatorBytes, getClaimOneBtcRewardInstruction, getClaimOneBtcRewardInstructionAsync, getClaimOneBtcRewardInstructionDataCodec, getClaimOneBtcRewardInstructionDataDecoder, getClaimOneBtcRewardInstructionDataEncoder, getClaimSatsDiscriminatorBytes, getClaimSatsInstruction, getClaimSatsInstructionAsync, getClaimSatsInstructionDataCodec, getClaimSatsInstructionDataDecoder, getClaimSatsInstructionDataEncoder, getCloseEpochEntryDiscriminatorBytes, getCloseEpochEntryInstruction, getCloseEpochEntryInstructionAsync, getCloseEpochEntryInstructionDataCodec, getCloseEpochEntryInstructionDataDecoder, getCloseEpochEntryInstructionDataEncoder, getCloseEpochIterationDiscriminatorBytes, getCloseEpochIterationInstruction, getCloseEpochIterationInstructionAsync, getCloseEpochIterationInstructionDataCodec, getCloseEpochIterationInstructionDataDecoder, getCloseEpochIterationInstructionDataEncoder, getCloseEpochPageDiscriminatorBytes, getCloseEpochPageInstruction, getCloseEpochPageInstructionAsync, getCloseEpochPageInstructionDataCodec, getCloseEpochPageInstructionDataDecoder, getCloseEpochPageInstructionDataEncoder, getCloseOneBtcIterationDiscriminatorBytes, getCloseOneBtcIterationInstruction, getCloseOneBtcIterationInstructionAsync, getCloseOneBtcIterationInstructionDataCodec, getCloseOneBtcIterationInstructionDataDecoder, getCloseOneBtcIterationInstructionDataEncoder, getCloseOneBtcTicketDiscriminatorBytes, getCloseOneBtcTicketInstruction, getCloseOneBtcTicketInstructionDataCodec, getCloseOneBtcTicketInstructionDataDecoder, getCloseOneBtcTicketInstructionDataEncoder, getCreateBoardDiscriminatorBytes, getCreateBoardInstruction, getCreateBoardInstructionAsync, getCreateBoardInstructionDataCodec, getCreateBoardInstructionDataDecoder, getCreateBoardInstructionDataEncoder, getCreateEpochVaultDiscriminatorBytes, getCreateEpochVaultInstruction, getCreateEpochVaultInstructionAsync, getCreateEpochVaultInstructionDataCodec, getCreateEpochVaultInstructionDataDecoder, getCreateEpochVaultInstructionDataEncoder, getCreateOneBtcVaultDiscriminatorBytes, getCreateOneBtcVaultInstruction, getCreateOneBtcVaultInstructionAsync, getCreateOneBtcVaultInstructionDataCodec, getCreateOneBtcVaultInstructionDataDecoder, getCreateOneBtcVaultInstructionDataEncoder, getCreateSatrushConfigDiscriminatorBytes, getCreateSatrushConfigInstruction, getCreateSatrushConfigInstructionAsync, getCreateSatrushConfigInstructionDataCodec, getCreateSatrushConfigInstructionDataDecoder, getCreateSatrushConfigInstructionDataEncoder, getCreateSatsVaultDiscriminatorBytes, getCreateSatsVaultInstruction, getCreateSatsVaultInstructionAsync, getCreateSatsVaultInstructionDataCodec, getCreateSatsVaultInstructionDataDecoder, getCreateSatsVaultInstructionDataEncoder, getCreateTreasuryDiscriminatorBytes, getCreateTreasuryInstruction, getCreateTreasuryInstructionAsync, getCreateTreasuryInstructionDataCodec, getCreateTreasuryInstructionDataDecoder, getCreateTreasuryInstructionDataEncoder, getDeployPublicDiscriminatorBytes, getDeployPublicInstruction, getDeployPublicInstructionAsync, getDeployPublicInstructionDataCodec, getDeployPublicInstructionDataDecoder, getDeployPublicInstructionDataEncoder, getEpochStateCodec, getEpochStateDecoder, getEpochStateEncoder, getEpochVaultAddress, getEpochVaultCodec, getEpochVaultDecoder, getEpochVaultDiscriminatorBytes, getEpochVaultEncoder, getEpochVaultEntryAddress, getEpochVaultEntryCodec, getEpochVaultEntryDecoder, getEpochVaultEntryDiscriminatorBytes, getEpochVaultEntryEncoder, getEpochVaultEntrySize, getEpochVaultIterationAddress, getEpochVaultIterationCodec, getEpochVaultIterationDecoder, getEpochVaultIterationDiscriminatorBytes, getEpochVaultIterationEncoder, getEpochVaultIterationSize, getEpochVaultPageAddress, getEpochVaultPageCodec, getEpochVaultPageDecoder, getEpochVaultPageDiscriminatorBytes, getEpochVaultPageEncoder, getEpochVaultPageSize, getEpochVaultSize, getMinerAddress, getMinerCodec, getMinerDecoder, getMinerDiscriminatorBytes, getMinerEncoder, getMinerSize, getOneBtcStateCodec, getOneBtcStateDecoder, getOneBtcStateEncoder, getOneBtcVaultAddress, getOneBtcVaultCodec, getOneBtcVaultDecoder, getOneBtcVaultDiscriminatorBytes, getOneBtcVaultEncoder, getOneBtcVaultEntryCodec, getOneBtcVaultEntryDecoder, getOneBtcVaultEntryDiscriminatorBytes, getOneBtcVaultEntryEncoder, getOneBtcVaultEntrySize, getOneBtcVaultIterationAddress, getOneBtcVaultIterationCodec, getOneBtcVaultIterationDecoder, getOneBtcVaultIterationDiscriminatorBytes, getOneBtcVaultIterationEncoder, getOneBtcVaultIterationSize, getOneBtcVaultSize, getPageEntryCodec, getPageEntryDecoder, getPageEntryEncoder, getPublicDeploymentAddress, getPublicDeploymentCodec, getPublicDeploymentDecoder, getPublicDeploymentDiscriminatorBytes, getPublicDeploymentEncoder, getRotateRoundDiscriminatorBytes, getRotateRoundInstruction, getRotateRoundInstructionAsync, getRotateRoundInstructionDataCodec, getRotateRoundInstructionDataDecoder, getRotateRoundInstructionDataEncoder, getRoundAddress, getRoundCodec, getRoundDecoder, getRoundDiscriminatorBytes, getRoundEncoder, getRoundStateCodec, getRoundStateDecoder, getRoundStateEncoder, getSatrushConfigAddress, getSatrushConfigCodec, getSatrushConfigDecoder, getSatrushConfigDiscriminatorBytes, getSatrushConfigEncoder, getSatrushConfigSize, getSatrushErrorMessage, getSatsVaultAddress, getSatsVaultCodec, getSatsVaultDecoder, getSatsVaultDiscriminatorBytes, getSatsVaultEncoder, getSatsVaultSize, getSealEpochPageDiscriminatorBytes, getSealEpochPageInstruction, getSealEpochPageInstructionAsync, getSealEpochPageInstructionDataCodec, getSealEpochPageInstructionDataDecoder, getSealEpochPageInstructionDataEncoder, getSelectEpochWinnerDiscriminatorBytes, getSelectEpochWinnerInstruction, getSelectEpochWinnerInstructionAsync, getSelectEpochWinnerInstructionDataCodec, getSelectEpochWinnerInstructionDataDecoder, getSelectEpochWinnerInstructionDataEncoder, getSwapEpochStakeDiscriminatorBytes, getSwapEpochStakeInstruction, getSwapEpochStakeInstructionAsync, getSwapEpochStakeInstructionDataCodec, getSwapEpochStakeInstructionDataDecoder, getSwapEpochStakeInstructionDataEncoder, getSwapOneBtcStakeDiscriminatorBytes, getSwapOneBtcStakeInstruction, getSwapOneBtcStakeInstructionAsync, getSwapOneBtcStakeInstructionDataCodec, getSwapOneBtcStakeInstructionDataDecoder, getSwapOneBtcStakeInstructionDataEncoder, getSwapRoundStakeDiscriminatorBytes, getSwapRoundStakeInstruction, getSwapRoundStakeInstructionAsync, getSwapRoundStakeInstructionDataCodec, getSwapRoundStakeInstructionDataDecoder, getSwapRoundStakeInstructionDataEncoder, getSwapStrikeStakeDiscriminatorBytes, getSwapStrikeStakeInstruction, getSwapStrikeStakeInstructionAsync, getSwapStrikeStakeInstructionDataCodec, getSwapStrikeStakeInstructionDataDecoder, getSwapStrikeStakeInstructionDataEncoder, getTileStakeCodec, getTileStakeDecoder, getTileStakeEncoder, getTreasuryAddress, getTreasuryCodec, getTreasuryDecoder, getTreasuryDiscriminatorBytes, getTreasuryEncoder, getTreasurySize, getTriggerEpochDrawDiscriminatorBytes, getTriggerEpochDrawInstruction, getTriggerEpochDrawInstructionAsync, getTriggerEpochDrawInstructionDataCodec, getTriggerEpochDrawInstructionDataDecoder, getTriggerEpochDrawInstructionDataEncoder, getTriggerOneBtcDrawDiscriminatorBytes, getTriggerOneBtcDrawInstruction, getTriggerOneBtcDrawInstructionAsync, getTriggerOneBtcDrawInstructionDataCodec, getTriggerOneBtcDrawInstructionDataDecoder, getTriggerOneBtcDrawInstructionDataEncoder, getWinnerCodec, getWinnerDecoder, getWinnerEncoder, getWithdrawProtocolFeesDiscriminatorBytes, getWithdrawProtocolFeesInstruction, getWithdrawProtocolFeesInstructionAsync, getWithdrawProtocolFeesInstructionDataCodec, getWithdrawProtocolFeesInstructionDataDecoder, getWithdrawProtocolFeesInstructionDataEncoder, identifySatrushAccount, identifySatrushInstruction, isSatrushError, parseBuyEpochTicketsInstruction, parseBuyOneBtcTicketsInstruction, parseClaimEpochRewardInstruction, parseClaimInstruction, parseClaimOneBtcRewardInstruction, parseClaimSatsInstruction, parseCloseEpochEntryInstruction, parseCloseEpochIterationInstruction, parseCloseEpochPageInstruction, parseCloseOneBtcIterationInstruction, parseCloseOneBtcTicketInstruction, parseCreateBoardInstruction, parseCreateEpochVaultInstruction, parseCreateOneBtcVaultInstruction, parseCreateSatrushConfigInstruction, parseCreateSatsVaultInstruction, parseCreateTreasuryInstruction, parseDeployPublicInstruction, parseRotateRoundInstruction, parseSatrushInstruction, parseSealEpochPageInstruction, parseSelectEpochWinnerInstruction, parseSwapEpochStakeInstruction, parseSwapOneBtcStakeInstruction, parseSwapRoundStakeInstruction, parseSwapStrikeStakeInstruction, parseTriggerEpochDrawInstruction, parseTriggerOneBtcDrawInstruction, parseWithdrawProtocolFeesInstruction, satrushProgram, selectionMaskFromTiles, tilesFromSelectionMask };
package/dist/index.d.ts CHANGED
@@ -3875,4 +3875,64 @@ type ParsedWithdrawProtocolFeesInstruction<TProgram extends string = typeof SATR
3875
3875
  };
3876
3876
  declare function parseWithdrawProtocolFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawProtocolFeesInstruction<TProgram, TAccountMetas>;
3877
3877
 
3878
- export { BOARD_DISCRIMINATOR, BUY_EPOCH_TICKETS_DISCRIMINATOR, BUY_ONE_BTC_TICKETS_DISCRIMINATOR, type Board, type BoardArgs, type BuyEpochTicketsAsyncInput, type BuyEpochTicketsInput, type BuyEpochTicketsInstruction, type BuyEpochTicketsInstructionData, type BuyEpochTicketsInstructionDataArgs, type BuyOneBtcTicketsAsyncInput, type BuyOneBtcTicketsInput, type BuyOneBtcTicketsInstruction, type BuyOneBtcTicketsInstructionData, type BuyOneBtcTicketsInstructionDataArgs, CLAIM_DISCRIMINATOR, CLAIM_EPOCH_REWARD_DISCRIMINATOR, CLAIM_ONE_BTC_REWARD_DISCRIMINATOR, CLAIM_SATS_DISCRIMINATOR, CLOSE_EPOCH_ENTRY_DISCRIMINATOR, CLOSE_EPOCH_ITERATION_DISCRIMINATOR, CLOSE_EPOCH_PAGE_DISCRIMINATOR, CLOSE_ONE_BTC_ITERATION_DISCRIMINATOR, CLOSE_ONE_BTC_TICKET_DISCRIMINATOR, CREATE_BOARD_DISCRIMINATOR, CREATE_EPOCH_VAULT_DISCRIMINATOR, CREATE_ONE_BTC_VAULT_DISCRIMINATOR, CREATE_SATRUSH_CONFIG_DISCRIMINATOR, CREATE_SATS_VAULT_DISCRIMINATOR, CREATE_TREASURY_DISCRIMINATOR, type ClaimAsyncInput, type ClaimEpochRewardAsyncInput, type ClaimEpochRewardInput, type ClaimEpochRewardInstruction, type ClaimEpochRewardInstructionData, type ClaimEpochRewardInstructionDataArgs, type ClaimInput, type ClaimInstruction, type ClaimInstructionData, type ClaimInstructionDataArgs, type ClaimOneBtcRewardAsyncInput, type ClaimOneBtcRewardInput, type ClaimOneBtcRewardInstruction, type ClaimOneBtcRewardInstructionData, type ClaimOneBtcRewardInstructionDataArgs, type ClaimSatsAsyncInput, type ClaimSatsInput, type ClaimSatsInstruction, type ClaimSatsInstructionData, type ClaimSatsInstructionDataArgs, type CloseEpochEntryAsyncInput, type CloseEpochEntryInput, type CloseEpochEntryInstruction, type CloseEpochEntryInstructionData, type CloseEpochEntryInstructionDataArgs, type CloseEpochIterationAsyncInput, type CloseEpochIterationInput, type CloseEpochIterationInstruction, type CloseEpochIterationInstructionData, type CloseEpochIterationInstructionDataArgs, type CloseEpochPageAsyncInput, type CloseEpochPageInput, type CloseEpochPageInstruction, type CloseEpochPageInstructionData, type CloseEpochPageInstructionDataArgs, type CloseOneBtcIterationAsyncInput, type CloseOneBtcIterationInput, type CloseOneBtcIterationInstruction, type CloseOneBtcIterationInstructionData, type CloseOneBtcIterationInstructionDataArgs, type CloseOneBtcTicketInput, type CloseOneBtcTicketInstruction, type CloseOneBtcTicketInstructionData, type CloseOneBtcTicketInstructionDataArgs, type CreateBoardAsyncInput, type CreateBoardInput, type CreateBoardInstruction, type CreateBoardInstructionData, type CreateBoardInstructionDataArgs, type CreateEpochVaultAsyncInput, type CreateEpochVaultInput, type CreateEpochVaultInstruction, type CreateEpochVaultInstructionData, type CreateEpochVaultInstructionDataArgs, type CreateOneBtcVaultAsyncInput, type CreateOneBtcVaultInput, type CreateOneBtcVaultInstruction, type CreateOneBtcVaultInstructionData, type CreateOneBtcVaultInstructionDataArgs, type CreateSatrushConfigAsyncInput, type CreateSatrushConfigInput, type CreateSatrushConfigInstruction, type CreateSatrushConfigInstructionData, type CreateSatrushConfigInstructionDataArgs, type CreateSatsVaultAsyncInput, type CreateSatsVaultInput, type CreateSatsVaultInstruction, type CreateSatsVaultInstructionData, type CreateSatsVaultInstructionDataArgs, type CreateTreasuryAsyncInput, type CreateTreasuryInput, type CreateTreasuryInstruction, type CreateTreasuryInstructionData, type CreateTreasuryInstructionDataArgs, DEPLOY_PUBLIC_DISCRIMINATOR, type DeployPublicAsyncInput, type DeployPublicInput, type DeployPublicInstruction, type DeployPublicInstructionData, type DeployPublicInstructionDataArgs, EPOCH_VAULT_DISCRIMINATOR, EPOCH_VAULT_ENTRY_DISCRIMINATOR, EPOCH_VAULT_ITERATION_DISCRIMINATOR, EPOCH_VAULT_PAGE_DISCRIMINATOR, EpochState, type EpochStateArgs, type EpochVault, type EpochVaultArgs, type EpochVaultEntry, type EpochVaultEntryArgs, type EpochVaultIteration, type EpochVaultIterationArgs, type EpochVaultPage, type EpochVaultPageArgs, MINER_DISCRIMINATOR, type Miner, type MinerArgs, type MinerSeeds, type NextRoundSeeds, ONE_BTC_VAULT_DISCRIMINATOR, ONE_BTC_VAULT_ENTRY_DISCRIMINATOR, ONE_BTC_VAULT_ITERATION_DISCRIMINATOR, OneBtcState, type OneBtcStateArgs, type OneBtcVault, type OneBtcVaultArgs, type OneBtcVaultEntry, type OneBtcVaultEntryArgs, type OneBtcVaultIteration, type OneBtcVaultIterationArgs, PUBLIC_DEPLOYMENT_DISCRIMINATOR, type PageEntry, type PageEntryArgs, type ParsedBuyEpochTicketsInstruction, type ParsedBuyOneBtcTicketsInstruction, type ParsedClaimEpochRewardInstruction, type ParsedClaimInstruction, type ParsedClaimOneBtcRewardInstruction, type ParsedClaimSatsInstruction, type ParsedCloseEpochEntryInstruction, type ParsedCloseEpochIterationInstruction, type ParsedCloseEpochPageInstruction, type ParsedCloseOneBtcIterationInstruction, type ParsedCloseOneBtcTicketInstruction, type ParsedCreateBoardInstruction, type ParsedCreateEpochVaultInstruction, type ParsedCreateOneBtcVaultInstruction, type ParsedCreateSatrushConfigInstruction, type ParsedCreateSatsVaultInstruction, type ParsedCreateTreasuryInstruction, type ParsedDeployPublicInstruction, type ParsedRotateRoundInstruction, type ParsedSatrushInstruction, type ParsedSealEpochPageInstruction, type ParsedSelectEpochWinnerInstruction, type ParsedSwapEpochStakeInstruction, type ParsedSwapOneBtcStakeInstruction, type ParsedSwapRoundStakeInstruction, type ParsedSwapStrikeStakeInstruction, type ParsedTriggerEpochDrawInstruction, type ParsedTriggerOneBtcDrawInstruction, type ParsedWithdrawProtocolFeesInstruction, type PublicDeployment, type PublicDeploymentArgs, ROTATE_ROUND_DISCRIMINATOR, ROUND_DISCRIMINATOR, type RotateRoundAsyncInput, type RotateRoundInput, type RotateRoundInstruction, type RotateRoundInstructionData, type RotateRoundInstructionDataArgs, type Round, type RoundArgs, RoundState, type RoundStateArgs, SATRUSH_CONFIG_DISCRIMINATOR, SATRUSH_ERROR__ALREADY_REVEALED, SATRUSH_ERROR__ALREADY_SETTLED, SATRUSH_ERROR__ALREADY_SWAPPED, SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED, SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED, SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED, SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE, SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD, SATRUSH_ERROR__EPOCH_INVALID_PAGE, SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS, SATRUSH_ERROR__EPOCH_NOT_A_WINNER, SATRUSH_ERROR__EPOCH_NOT_OPEN, SATRUSH_ERROR__EPOCH_NOT_SETTLED, SATRUSH_ERROR__EPOCH_NOT_SETTLING, SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED, SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED, SATRUSH_ERROR__EPOCH_SEAL_MISMATCH, SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED, SATRUSH_ERROR__INSUFFICIENT_HASHRATE, SATRUSH_ERROR__INSUFFICIENT_SHARES, SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT, SATRUSH_ERROR__INVALID_ENTROPY, SATRUSH_ERROR__INVALID_JUPITER_ROUTE, SATRUSH_ERROR__INVALID_ROUND_ID, SATRUSH_ERROR__INVALID_SELECTION_MASK, SATRUSH_ERROR__INVALID_SHARE_AMOUNT, SATRUSH_ERROR__INVALID_SLOT_HASH, SATRUSH_ERROR__INVALID_SWAP_PROGRAM, SATRUSH_ERROR__MATH_OVERFLOW, SATRUSH_ERROR__MATH_UNDERFLOW, SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE, SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD, SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER, SATRUSH_ERROR__ONE_BTC_NOT_OPEN, SATRUSH_ERROR__ONE_BTC_NOT_SETTLED, SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE, SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS, SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED, SATRUSH_ERROR__ROUND_IN_PROGRESS, SATRUSH_ERROR__ROUND_NOT_ACTIVE, SATRUSH_ERROR__ROUND_NOT_REVEALED, SATRUSH_ERROR__ROUND_NOT_SETTLED, SATRUSH_ERROR__ROUND_WINDOW_CLOSED, SATRUSH_ERROR__SLIPPAGE_EXCEEDED, SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED, SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD, SATRUSH_ERROR__SWAP_OVERSPENT, SATRUSH_ERROR__TREASURY_EMPTY, SATRUSH_ERROR__UNAUTHORIZED, SATRUSH_PROGRAM_ADDRESS, SATS_VAULT_DISCRIMINATOR, SEAL_EPOCH_PAGE_DISCRIMINATOR, SELECT_EPOCH_WINNER_DISCRIMINATOR, SWAP_EPOCH_STAKE_DISCRIMINATOR, SWAP_ONE_BTC_STAKE_DISCRIMINATOR, SWAP_ROUND_STAKE_DISCRIMINATOR, SWAP_STRIKE_STAKE_DISCRIMINATOR, SatrushAccount, type SatrushConfig, type SatrushConfigArgs, type SatrushError, SatrushInstruction, type SatrushPlugin, type SatrushPluginAccounts, type SatrushPluginInstructions, type SatrushPluginPdas, type SatrushPluginRequirements, type SatsVault, type SatsVaultArgs, type SealEpochPageAsyncInput, type SealEpochPageInput, type SealEpochPageInstruction, type SealEpochPageInstructionData, type SealEpochPageInstructionDataArgs, type SelectEpochWinnerAsyncInput, type SelectEpochWinnerInput, type SelectEpochWinnerInstruction, type SelectEpochWinnerInstructionData, type SelectEpochWinnerInstructionDataArgs, type SwapEpochStakeAsyncInput, type SwapEpochStakeInput, type SwapEpochStakeInstruction, type SwapEpochStakeInstructionData, type SwapEpochStakeInstructionDataArgs, type SwapOneBtcStakeAsyncInput, type SwapOneBtcStakeInput, type SwapOneBtcStakeInstruction, type SwapOneBtcStakeInstructionData, type SwapOneBtcStakeInstructionDataArgs, type SwapRoundStakeAsyncInput, type SwapRoundStakeInput, type SwapRoundStakeInstruction, type SwapRoundStakeInstructionData, type SwapRoundStakeInstructionDataArgs, type SwapStrikeStakeAsyncInput, type SwapStrikeStakeInput, type SwapStrikeStakeInstruction, type SwapStrikeStakeInstructionData, type SwapStrikeStakeInstructionDataArgs, TREASURY_DISCRIMINATOR, TRIGGER_EPOCH_DRAW_DISCRIMINATOR, TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR, type TileStake, type TileStakeArgs, type Treasury, type TreasuryArgs, type TriggerEpochDrawAsyncInput, type TriggerEpochDrawInput, type TriggerEpochDrawInstruction, type TriggerEpochDrawInstructionData, type TriggerEpochDrawInstructionDataArgs, type TriggerOneBtcDrawAsyncInput, type TriggerOneBtcDrawInput, type TriggerOneBtcDrawInstruction, type TriggerOneBtcDrawInstructionData, type TriggerOneBtcDrawInstructionDataArgs, WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR, type Winner, type WinnerArgs, type WithdrawProtocolFeesAsyncInput, type WithdrawProtocolFeesInput, type WithdrawProtocolFeesInstruction, type WithdrawProtocolFeesInstructionData, type WithdrawProtocolFeesInstructionDataArgs, decodeBoard, decodeEpochVault, decodeEpochVaultEntry, decodeEpochVaultIteration, decodeEpochVaultPage, decodeMiner, decodeOneBtcVault, decodeOneBtcVaultEntry, decodeOneBtcVaultIteration, decodePublicDeployment, decodeRound, decodeSatrushConfig, decodeSatsVault, decodeTreasury, fetchAllBoard, fetchAllEpochVault, fetchAllEpochVaultEntry, fetchAllEpochVaultIteration, fetchAllEpochVaultPage, fetchAllMaybeBoard, fetchAllMaybeEpochVault, fetchAllMaybeEpochVaultEntry, fetchAllMaybeEpochVaultIteration, fetchAllMaybeEpochVaultPage, fetchAllMaybeMiner, fetchAllMaybeOneBtcVault, fetchAllMaybeOneBtcVaultEntry, fetchAllMaybeOneBtcVaultIteration, fetchAllMaybePublicDeployment, fetchAllMaybeRound, fetchAllMaybeSatrushConfig, fetchAllMaybeSatsVault, fetchAllMaybeTreasury, fetchAllMiner, fetchAllOneBtcVault, fetchAllOneBtcVaultEntry, fetchAllOneBtcVaultIteration, fetchAllPublicDeployment, fetchAllRound, fetchAllSatrushConfig, fetchAllSatsVault, fetchAllTreasury, fetchBoard, fetchEpochVault, fetchEpochVaultEntry, fetchEpochVaultIteration, fetchEpochVaultPage, fetchMaybeBoard, fetchMaybeEpochVault, fetchMaybeEpochVaultEntry, fetchMaybeEpochVaultIteration, fetchMaybeEpochVaultPage, fetchMaybeMiner, fetchMaybeOneBtcVault, fetchMaybeOneBtcVaultEntry, fetchMaybeOneBtcVaultIteration, fetchMaybePublicDeployment, fetchMaybeRound, fetchMaybeSatrushConfig, fetchMaybeSatsVault, fetchMaybeTreasury, fetchMiner, fetchOneBtcVault, fetchOneBtcVaultEntry, fetchOneBtcVaultIteration, fetchPublicDeployment, fetchRound, fetchSatrushConfig, fetchSatsVault, fetchTreasury, findBoardPda, findEpochVaultIterationPda, findEpochVaultPda, findInitialRoundPda, findMinerPda, findNextRoundPda, findOneBtcVaultIterationPda, findOneBtcVaultPda, findSatrushConfigPda, findSatsVaultPda, findTreasuryPda, getBoardCodec, getBoardDecoder, getBoardDiscriminatorBytes, getBoardEncoder, getBoardSize, getBuyEpochTicketsDiscriminatorBytes, getBuyEpochTicketsInstruction, getBuyEpochTicketsInstructionAsync, getBuyEpochTicketsInstructionDataCodec, getBuyEpochTicketsInstructionDataDecoder, getBuyEpochTicketsInstructionDataEncoder, getBuyOneBtcTicketsDiscriminatorBytes, getBuyOneBtcTicketsInstruction, getBuyOneBtcTicketsInstructionAsync, getBuyOneBtcTicketsInstructionDataCodec, getBuyOneBtcTicketsInstructionDataDecoder, getBuyOneBtcTicketsInstructionDataEncoder, getClaimDiscriminatorBytes, getClaimEpochRewardDiscriminatorBytes, getClaimEpochRewardInstruction, getClaimEpochRewardInstructionAsync, getClaimEpochRewardInstructionDataCodec, getClaimEpochRewardInstructionDataDecoder, getClaimEpochRewardInstructionDataEncoder, getClaimInstruction, getClaimInstructionAsync, getClaimInstructionDataCodec, getClaimInstructionDataDecoder, getClaimInstructionDataEncoder, getClaimOneBtcRewardDiscriminatorBytes, getClaimOneBtcRewardInstruction, getClaimOneBtcRewardInstructionAsync, getClaimOneBtcRewardInstructionDataCodec, getClaimOneBtcRewardInstructionDataDecoder, getClaimOneBtcRewardInstructionDataEncoder, getClaimSatsDiscriminatorBytes, getClaimSatsInstruction, getClaimSatsInstructionAsync, getClaimSatsInstructionDataCodec, getClaimSatsInstructionDataDecoder, getClaimSatsInstructionDataEncoder, getCloseEpochEntryDiscriminatorBytes, getCloseEpochEntryInstruction, getCloseEpochEntryInstructionAsync, getCloseEpochEntryInstructionDataCodec, getCloseEpochEntryInstructionDataDecoder, getCloseEpochEntryInstructionDataEncoder, getCloseEpochIterationDiscriminatorBytes, getCloseEpochIterationInstruction, getCloseEpochIterationInstructionAsync, getCloseEpochIterationInstructionDataCodec, getCloseEpochIterationInstructionDataDecoder, getCloseEpochIterationInstructionDataEncoder, getCloseEpochPageDiscriminatorBytes, getCloseEpochPageInstruction, getCloseEpochPageInstructionAsync, getCloseEpochPageInstructionDataCodec, getCloseEpochPageInstructionDataDecoder, getCloseEpochPageInstructionDataEncoder, getCloseOneBtcIterationDiscriminatorBytes, getCloseOneBtcIterationInstruction, getCloseOneBtcIterationInstructionAsync, getCloseOneBtcIterationInstructionDataCodec, getCloseOneBtcIterationInstructionDataDecoder, getCloseOneBtcIterationInstructionDataEncoder, getCloseOneBtcTicketDiscriminatorBytes, getCloseOneBtcTicketInstruction, getCloseOneBtcTicketInstructionDataCodec, getCloseOneBtcTicketInstructionDataDecoder, getCloseOneBtcTicketInstructionDataEncoder, getCreateBoardDiscriminatorBytes, getCreateBoardInstruction, getCreateBoardInstructionAsync, getCreateBoardInstructionDataCodec, getCreateBoardInstructionDataDecoder, getCreateBoardInstructionDataEncoder, getCreateEpochVaultDiscriminatorBytes, getCreateEpochVaultInstruction, getCreateEpochVaultInstructionAsync, getCreateEpochVaultInstructionDataCodec, getCreateEpochVaultInstructionDataDecoder, getCreateEpochVaultInstructionDataEncoder, getCreateOneBtcVaultDiscriminatorBytes, getCreateOneBtcVaultInstruction, getCreateOneBtcVaultInstructionAsync, getCreateOneBtcVaultInstructionDataCodec, getCreateOneBtcVaultInstructionDataDecoder, getCreateOneBtcVaultInstructionDataEncoder, getCreateSatrushConfigDiscriminatorBytes, getCreateSatrushConfigInstruction, getCreateSatrushConfigInstructionAsync, getCreateSatrushConfigInstructionDataCodec, getCreateSatrushConfigInstructionDataDecoder, getCreateSatrushConfigInstructionDataEncoder, getCreateSatsVaultDiscriminatorBytes, getCreateSatsVaultInstruction, getCreateSatsVaultInstructionAsync, getCreateSatsVaultInstructionDataCodec, getCreateSatsVaultInstructionDataDecoder, getCreateSatsVaultInstructionDataEncoder, getCreateTreasuryDiscriminatorBytes, getCreateTreasuryInstruction, getCreateTreasuryInstructionAsync, getCreateTreasuryInstructionDataCodec, getCreateTreasuryInstructionDataDecoder, getCreateTreasuryInstructionDataEncoder, getDeployPublicDiscriminatorBytes, getDeployPublicInstruction, getDeployPublicInstructionAsync, getDeployPublicInstructionDataCodec, getDeployPublicInstructionDataDecoder, getDeployPublicInstructionDataEncoder, getEpochStateCodec, getEpochStateDecoder, getEpochStateEncoder, getEpochVaultCodec, getEpochVaultDecoder, getEpochVaultDiscriminatorBytes, getEpochVaultEncoder, getEpochVaultEntryCodec, getEpochVaultEntryDecoder, getEpochVaultEntryDiscriminatorBytes, getEpochVaultEntryEncoder, getEpochVaultEntrySize, getEpochVaultIterationCodec, getEpochVaultIterationDecoder, getEpochVaultIterationDiscriminatorBytes, getEpochVaultIterationEncoder, getEpochVaultIterationSize, getEpochVaultPageCodec, getEpochVaultPageDecoder, getEpochVaultPageDiscriminatorBytes, getEpochVaultPageEncoder, getEpochVaultPageSize, getEpochVaultSize, getMinerCodec, getMinerDecoder, getMinerDiscriminatorBytes, getMinerEncoder, getMinerSize, getOneBtcStateCodec, getOneBtcStateDecoder, getOneBtcStateEncoder, getOneBtcVaultCodec, getOneBtcVaultDecoder, getOneBtcVaultDiscriminatorBytes, getOneBtcVaultEncoder, getOneBtcVaultEntryCodec, getOneBtcVaultEntryDecoder, getOneBtcVaultEntryDiscriminatorBytes, getOneBtcVaultEntryEncoder, getOneBtcVaultEntrySize, getOneBtcVaultIterationCodec, getOneBtcVaultIterationDecoder, getOneBtcVaultIterationDiscriminatorBytes, getOneBtcVaultIterationEncoder, getOneBtcVaultIterationSize, getOneBtcVaultSize, getPageEntryCodec, getPageEntryDecoder, getPageEntryEncoder, getPublicDeploymentCodec, getPublicDeploymentDecoder, getPublicDeploymentDiscriminatorBytes, getPublicDeploymentEncoder, getRotateRoundDiscriminatorBytes, getRotateRoundInstruction, getRotateRoundInstructionAsync, getRotateRoundInstructionDataCodec, getRotateRoundInstructionDataDecoder, getRotateRoundInstructionDataEncoder, getRoundCodec, getRoundDecoder, getRoundDiscriminatorBytes, getRoundEncoder, getRoundStateCodec, getRoundStateDecoder, getRoundStateEncoder, getSatrushConfigCodec, getSatrushConfigDecoder, getSatrushConfigDiscriminatorBytes, getSatrushConfigEncoder, getSatrushConfigSize, getSatrushErrorMessage, getSatsVaultCodec, getSatsVaultDecoder, getSatsVaultDiscriminatorBytes, getSatsVaultEncoder, getSatsVaultSize, getSealEpochPageDiscriminatorBytes, getSealEpochPageInstruction, getSealEpochPageInstructionAsync, getSealEpochPageInstructionDataCodec, getSealEpochPageInstructionDataDecoder, getSealEpochPageInstructionDataEncoder, getSelectEpochWinnerDiscriminatorBytes, getSelectEpochWinnerInstruction, getSelectEpochWinnerInstructionAsync, getSelectEpochWinnerInstructionDataCodec, getSelectEpochWinnerInstructionDataDecoder, getSelectEpochWinnerInstructionDataEncoder, getSwapEpochStakeDiscriminatorBytes, getSwapEpochStakeInstruction, getSwapEpochStakeInstructionAsync, getSwapEpochStakeInstructionDataCodec, getSwapEpochStakeInstructionDataDecoder, getSwapEpochStakeInstructionDataEncoder, getSwapOneBtcStakeDiscriminatorBytes, getSwapOneBtcStakeInstruction, getSwapOneBtcStakeInstructionAsync, getSwapOneBtcStakeInstructionDataCodec, getSwapOneBtcStakeInstructionDataDecoder, getSwapOneBtcStakeInstructionDataEncoder, getSwapRoundStakeDiscriminatorBytes, getSwapRoundStakeInstruction, getSwapRoundStakeInstructionAsync, getSwapRoundStakeInstructionDataCodec, getSwapRoundStakeInstructionDataDecoder, getSwapRoundStakeInstructionDataEncoder, getSwapStrikeStakeDiscriminatorBytes, getSwapStrikeStakeInstruction, getSwapStrikeStakeInstructionAsync, getSwapStrikeStakeInstructionDataCodec, getSwapStrikeStakeInstructionDataDecoder, getSwapStrikeStakeInstructionDataEncoder, getTileStakeCodec, getTileStakeDecoder, getTileStakeEncoder, getTreasuryCodec, getTreasuryDecoder, getTreasuryDiscriminatorBytes, getTreasuryEncoder, getTreasurySize, getTriggerEpochDrawDiscriminatorBytes, getTriggerEpochDrawInstruction, getTriggerEpochDrawInstructionAsync, getTriggerEpochDrawInstructionDataCodec, getTriggerEpochDrawInstructionDataDecoder, getTriggerEpochDrawInstructionDataEncoder, getTriggerOneBtcDrawDiscriminatorBytes, getTriggerOneBtcDrawInstruction, getTriggerOneBtcDrawInstructionAsync, getTriggerOneBtcDrawInstructionDataCodec, getTriggerOneBtcDrawInstructionDataDecoder, getTriggerOneBtcDrawInstructionDataEncoder, getWinnerCodec, getWinnerDecoder, getWinnerEncoder, getWithdrawProtocolFeesDiscriminatorBytes, getWithdrawProtocolFeesInstruction, getWithdrawProtocolFeesInstructionAsync, getWithdrawProtocolFeesInstructionDataCodec, getWithdrawProtocolFeesInstructionDataDecoder, getWithdrawProtocolFeesInstructionDataEncoder, identifySatrushAccount, identifySatrushInstruction, isSatrushError, parseBuyEpochTicketsInstruction, parseBuyOneBtcTicketsInstruction, parseClaimEpochRewardInstruction, parseClaimInstruction, parseClaimOneBtcRewardInstruction, parseClaimSatsInstruction, parseCloseEpochEntryInstruction, parseCloseEpochIterationInstruction, parseCloseEpochPageInstruction, parseCloseOneBtcIterationInstruction, parseCloseOneBtcTicketInstruction, parseCreateBoardInstruction, parseCreateEpochVaultInstruction, parseCreateOneBtcVaultInstruction, parseCreateSatrushConfigInstruction, parseCreateSatsVaultInstruction, parseCreateTreasuryInstruction, parseDeployPublicInstruction, parseRotateRoundInstruction, parseSatrushInstruction, parseSealEpochPageInstruction, parseSelectEpochWinnerInstruction, parseSwapEpochStakeInstruction, parseSwapOneBtcStakeInstruction, parseSwapRoundStakeInstruction, parseSwapStrikeStakeInstruction, parseTriggerEpochDrawInstruction, parseTriggerOneBtcDrawInstruction, parseWithdrawProtocolFeesInstruction, satrushProgram };
3878
+ /**
3879
+ * Environment-free instruction builders.
3880
+ *
3881
+ * Thin composition helpers over the generated instruction builders: they derive
3882
+ * every PDA and associated token account from the program's fixed seeds, so a
3883
+ * caller only supplies the signing authority and the mint addresses. Shared by
3884
+ * the test-suite and the CLI.
3885
+ *
3886
+ * The authority is taken as a plain {@link Address} (not a signer) to keep these
3887
+ * builders environment-free, mirroring the Rust crate. It is wrapped in a noop
3888
+ * signer so the account is marked as a signer in the built instruction; the
3889
+ * caller provides the real signature at send time.
3890
+ */
3891
+
3892
+ /**
3893
+ * `deploy_public`: stake `amount` USD (base units, gross of fees) on the tiles
3894
+ * in `selectionMask` for round `roundId`, as the miner `authority`. The round
3895
+ * must be the board's current one and open for deploys; the miner profile and
3896
+ * deployment record PDAs are created by the instruction.
3897
+ */
3898
+ declare function buildDeployPublicInstruction(authority: Address, usdMint: Address, roundId: number, selectionMask: number, amount: number | bigint): Promise<Instruction>;
3899
+ /**
3900
+ * `claim`: settle the miner `authority`'s deployment in a Settled round —
3901
+ * credit winnings (USD + sats vault shares) and hashrate points to the miner
3902
+ * profile, then close the deployment account, returning its rent. Valid for
3903
+ * losing deployments too (they still earn hashrate points).
3904
+ */
3905
+ declare function buildClaimInstruction(authority: Address, usdMint: Address, btcMint: Address, roundId: number): Promise<Instruction>;
3906
+
3907
+ declare function getSatrushConfigAddress(): Promise<ProgramDerivedAddress>;
3908
+ declare function getBoardAddress(): Promise<ProgramDerivedAddress>;
3909
+ declare function getRoundAddress(roundId: number): Promise<ProgramDerivedAddress>;
3910
+ declare function getPublicDeploymentAddress(authority: Address, roundId: number): Promise<ProgramDerivedAddress>;
3911
+ declare function getMinerAddress(authority: Address): Promise<ProgramDerivedAddress>;
3912
+ declare function getSatsVaultAddress(): Promise<ProgramDerivedAddress>;
3913
+ declare function getEpochVaultAddress(): Promise<ProgramDerivedAddress>;
3914
+ declare function getEpochVaultIterationAddress(iterationId: number): Promise<ProgramDerivedAddress>;
3915
+ declare function getEpochVaultEntryAddress(iterationId: number, authority: Address): Promise<ProgramDerivedAddress>;
3916
+ declare function getEpochVaultPageAddress(iterationId: number, pageIndex: number): Promise<ProgramDerivedAddress>;
3917
+ declare function getOneBtcVaultAddress(): Promise<ProgramDerivedAddress>;
3918
+ declare function getOneBtcVaultIterationAddress(iterationId: number): Promise<ProgramDerivedAddress>;
3919
+ declare function getTreasuryAddress(): Promise<ProgramDerivedAddress>;
3920
+
3921
+ /** Number of selectable tiles on the board. */
3922
+ declare const TILE_COUNT = 21;
3923
+ /**
3924
+ * Convert a fixed-length array of tile selections into the packed `u32` selection
3925
+ * mask expected by `deploy_public`: bit `i` is set when `tiles[i]` is `true`.
3926
+ *
3927
+ * Because the array is exactly {@link TILE_COUNT} long, the result always fits in
3928
+ * the low {@link TILE_COUNT} bits. Note the program still rejects an all-`false`
3929
+ * selection (mask `0`), so callers should pick at least one tile.
3930
+ */
3931
+ declare function selectionMaskFromTiles(tiles: boolean[]): number;
3932
+ /**
3933
+ * Inverse of {@link selectionMaskFromTiles}: unpack a `u32` selection mask into a
3934
+ * per-tile boolean array. Bits above {@link TILE_COUNT} are ignored.
3935
+ */
3936
+ declare function tilesFromSelectionMask(mask: number): boolean[];
3937
+
3938
+ export { BOARD_DISCRIMINATOR, BUY_EPOCH_TICKETS_DISCRIMINATOR, BUY_ONE_BTC_TICKETS_DISCRIMINATOR, type Board, type BoardArgs, type BuyEpochTicketsAsyncInput, type BuyEpochTicketsInput, type BuyEpochTicketsInstruction, type BuyEpochTicketsInstructionData, type BuyEpochTicketsInstructionDataArgs, type BuyOneBtcTicketsAsyncInput, type BuyOneBtcTicketsInput, type BuyOneBtcTicketsInstruction, type BuyOneBtcTicketsInstructionData, type BuyOneBtcTicketsInstructionDataArgs, CLAIM_DISCRIMINATOR, CLAIM_EPOCH_REWARD_DISCRIMINATOR, CLAIM_ONE_BTC_REWARD_DISCRIMINATOR, CLAIM_SATS_DISCRIMINATOR, CLOSE_EPOCH_ENTRY_DISCRIMINATOR, CLOSE_EPOCH_ITERATION_DISCRIMINATOR, CLOSE_EPOCH_PAGE_DISCRIMINATOR, CLOSE_ONE_BTC_ITERATION_DISCRIMINATOR, CLOSE_ONE_BTC_TICKET_DISCRIMINATOR, CREATE_BOARD_DISCRIMINATOR, CREATE_EPOCH_VAULT_DISCRIMINATOR, CREATE_ONE_BTC_VAULT_DISCRIMINATOR, CREATE_SATRUSH_CONFIG_DISCRIMINATOR, CREATE_SATS_VAULT_DISCRIMINATOR, CREATE_TREASURY_DISCRIMINATOR, type ClaimAsyncInput, type ClaimEpochRewardAsyncInput, type ClaimEpochRewardInput, type ClaimEpochRewardInstruction, type ClaimEpochRewardInstructionData, type ClaimEpochRewardInstructionDataArgs, type ClaimInput, type ClaimInstruction, type ClaimInstructionData, type ClaimInstructionDataArgs, type ClaimOneBtcRewardAsyncInput, type ClaimOneBtcRewardInput, type ClaimOneBtcRewardInstruction, type ClaimOneBtcRewardInstructionData, type ClaimOneBtcRewardInstructionDataArgs, type ClaimSatsAsyncInput, type ClaimSatsInput, type ClaimSatsInstruction, type ClaimSatsInstructionData, type ClaimSatsInstructionDataArgs, type CloseEpochEntryAsyncInput, type CloseEpochEntryInput, type CloseEpochEntryInstruction, type CloseEpochEntryInstructionData, type CloseEpochEntryInstructionDataArgs, type CloseEpochIterationAsyncInput, type CloseEpochIterationInput, type CloseEpochIterationInstruction, type CloseEpochIterationInstructionData, type CloseEpochIterationInstructionDataArgs, type CloseEpochPageAsyncInput, type CloseEpochPageInput, type CloseEpochPageInstruction, type CloseEpochPageInstructionData, type CloseEpochPageInstructionDataArgs, type CloseOneBtcIterationAsyncInput, type CloseOneBtcIterationInput, type CloseOneBtcIterationInstruction, type CloseOneBtcIterationInstructionData, type CloseOneBtcIterationInstructionDataArgs, type CloseOneBtcTicketInput, type CloseOneBtcTicketInstruction, type CloseOneBtcTicketInstructionData, type CloseOneBtcTicketInstructionDataArgs, type CreateBoardAsyncInput, type CreateBoardInput, type CreateBoardInstruction, type CreateBoardInstructionData, type CreateBoardInstructionDataArgs, type CreateEpochVaultAsyncInput, type CreateEpochVaultInput, type CreateEpochVaultInstruction, type CreateEpochVaultInstructionData, type CreateEpochVaultInstructionDataArgs, type CreateOneBtcVaultAsyncInput, type CreateOneBtcVaultInput, type CreateOneBtcVaultInstruction, type CreateOneBtcVaultInstructionData, type CreateOneBtcVaultInstructionDataArgs, type CreateSatrushConfigAsyncInput, type CreateSatrushConfigInput, type CreateSatrushConfigInstruction, type CreateSatrushConfigInstructionData, type CreateSatrushConfigInstructionDataArgs, type CreateSatsVaultAsyncInput, type CreateSatsVaultInput, type CreateSatsVaultInstruction, type CreateSatsVaultInstructionData, type CreateSatsVaultInstructionDataArgs, type CreateTreasuryAsyncInput, type CreateTreasuryInput, type CreateTreasuryInstruction, type CreateTreasuryInstructionData, type CreateTreasuryInstructionDataArgs, DEPLOY_PUBLIC_DISCRIMINATOR, type DeployPublicAsyncInput, type DeployPublicInput, type DeployPublicInstruction, type DeployPublicInstructionData, type DeployPublicInstructionDataArgs, EPOCH_VAULT_DISCRIMINATOR, EPOCH_VAULT_ENTRY_DISCRIMINATOR, EPOCH_VAULT_ITERATION_DISCRIMINATOR, EPOCH_VAULT_PAGE_DISCRIMINATOR, EpochState, type EpochStateArgs, type EpochVault, type EpochVaultArgs, type EpochVaultEntry, type EpochVaultEntryArgs, type EpochVaultIteration, type EpochVaultIterationArgs, type EpochVaultPage, type EpochVaultPageArgs, MINER_DISCRIMINATOR, type Miner, type MinerArgs, type MinerSeeds, type NextRoundSeeds, ONE_BTC_VAULT_DISCRIMINATOR, ONE_BTC_VAULT_ENTRY_DISCRIMINATOR, ONE_BTC_VAULT_ITERATION_DISCRIMINATOR, OneBtcState, type OneBtcStateArgs, type OneBtcVault, type OneBtcVaultArgs, type OneBtcVaultEntry, type OneBtcVaultEntryArgs, type OneBtcVaultIteration, type OneBtcVaultIterationArgs, PUBLIC_DEPLOYMENT_DISCRIMINATOR, type PageEntry, type PageEntryArgs, type ParsedBuyEpochTicketsInstruction, type ParsedBuyOneBtcTicketsInstruction, type ParsedClaimEpochRewardInstruction, type ParsedClaimInstruction, type ParsedClaimOneBtcRewardInstruction, type ParsedClaimSatsInstruction, type ParsedCloseEpochEntryInstruction, type ParsedCloseEpochIterationInstruction, type ParsedCloseEpochPageInstruction, type ParsedCloseOneBtcIterationInstruction, type ParsedCloseOneBtcTicketInstruction, type ParsedCreateBoardInstruction, type ParsedCreateEpochVaultInstruction, type ParsedCreateOneBtcVaultInstruction, type ParsedCreateSatrushConfigInstruction, type ParsedCreateSatsVaultInstruction, type ParsedCreateTreasuryInstruction, type ParsedDeployPublicInstruction, type ParsedRotateRoundInstruction, type ParsedSatrushInstruction, type ParsedSealEpochPageInstruction, type ParsedSelectEpochWinnerInstruction, type ParsedSwapEpochStakeInstruction, type ParsedSwapOneBtcStakeInstruction, type ParsedSwapRoundStakeInstruction, type ParsedSwapStrikeStakeInstruction, type ParsedTriggerEpochDrawInstruction, type ParsedTriggerOneBtcDrawInstruction, type ParsedWithdrawProtocolFeesInstruction, type PublicDeployment, type PublicDeploymentArgs, ROTATE_ROUND_DISCRIMINATOR, ROUND_DISCRIMINATOR, type RotateRoundAsyncInput, type RotateRoundInput, type RotateRoundInstruction, type RotateRoundInstructionData, type RotateRoundInstructionDataArgs, type Round, type RoundArgs, RoundState, type RoundStateArgs, SATRUSH_CONFIG_DISCRIMINATOR, SATRUSH_ERROR__ALREADY_REVEALED, SATRUSH_ERROR__ALREADY_SETTLED, SATRUSH_ERROR__ALREADY_SWAPPED, SATRUSH_ERROR__BOARD_ALREADY_BOOTSTRAPPED, SATRUSH_ERROR__DEPLOYMENT_NOT_SETTLED, SATRUSH_ERROR__EPOCH_ALREADY_CLAIMED, SATRUSH_ERROR__EPOCH_BELOW_MIN_HASHRATE, SATRUSH_ERROR__EPOCH_BELOW_THRESHOLD, SATRUSH_ERROR__EPOCH_INVALID_PAGE, SATRUSH_ERROR__EPOCH_MAX_PARTICIPANTS, SATRUSH_ERROR__EPOCH_NOT_A_WINNER, SATRUSH_ERROR__EPOCH_NOT_OPEN, SATRUSH_ERROR__EPOCH_NOT_SETTLED, SATRUSH_ERROR__EPOCH_NOT_SETTLING, SATRUSH_ERROR__EPOCH_PAGE_ALREADY_SEALED, SATRUSH_ERROR__EPOCH_PAGE_NOT_SEALED, SATRUSH_ERROR__EPOCH_SEAL_MISMATCH, SATRUSH_ERROR__EPOCH_WINDOW_NOT_ELAPSED, SATRUSH_ERROR__INSUFFICIENT_HASHRATE, SATRUSH_ERROR__INSUFFICIENT_SHARES, SATRUSH_ERROR__INVALID_DEPLOYMENT_AMOUNT, SATRUSH_ERROR__INVALID_ENTROPY, SATRUSH_ERROR__INVALID_JUPITER_ROUTE, SATRUSH_ERROR__INVALID_ROUND_ID, SATRUSH_ERROR__INVALID_SELECTION_MASK, SATRUSH_ERROR__INVALID_SHARE_AMOUNT, SATRUSH_ERROR__INVALID_SLOT_HASH, SATRUSH_ERROR__INVALID_SWAP_PROGRAM, SATRUSH_ERROR__MATH_OVERFLOW, SATRUSH_ERROR__MATH_UNDERFLOW, SATRUSH_ERROR__ONE_BTC_BELOW_MIN_HASHRATE, SATRUSH_ERROR__ONE_BTC_BELOW_THRESHOLD, SATRUSH_ERROR__ONE_BTC_NOT_A_WINNER, SATRUSH_ERROR__ONE_BTC_NOT_OPEN, SATRUSH_ERROR__ONE_BTC_NOT_SETTLED, SATRUSH_ERROR__ONE_BTC_NOT_TRIGGERABLE, SATRUSH_ERROR__ONE_BTC_NO_PARTICIPANTS, SATRUSH_ERROR__ONE_BTC_WINNING_TICKET_LOCKED, SATRUSH_ERROR__ROUND_IN_PROGRESS, SATRUSH_ERROR__ROUND_NOT_ACTIVE, SATRUSH_ERROR__ROUND_NOT_REVEALED, SATRUSH_ERROR__ROUND_NOT_SETTLED, SATRUSH_ERROR__ROUND_WINDOW_CLOSED, SATRUSH_ERROR__SLIPPAGE_EXCEEDED, SATRUSH_ERROR__STRIKE_ALREADY_TRIGGERED, SATRUSH_ERROR__STRIKE_BELOW_THRESHOLD, SATRUSH_ERROR__SWAP_OVERSPENT, SATRUSH_ERROR__TREASURY_EMPTY, SATRUSH_ERROR__UNAUTHORIZED, SATRUSH_PROGRAM_ADDRESS, SATS_VAULT_DISCRIMINATOR, SEAL_EPOCH_PAGE_DISCRIMINATOR, SELECT_EPOCH_WINNER_DISCRIMINATOR, SWAP_EPOCH_STAKE_DISCRIMINATOR, SWAP_ONE_BTC_STAKE_DISCRIMINATOR, SWAP_ROUND_STAKE_DISCRIMINATOR, SWAP_STRIKE_STAKE_DISCRIMINATOR, SatrushAccount, type SatrushConfig, type SatrushConfigArgs, type SatrushError, SatrushInstruction, type SatrushPlugin, type SatrushPluginAccounts, type SatrushPluginInstructions, type SatrushPluginPdas, type SatrushPluginRequirements, type SatsVault, type SatsVaultArgs, type SealEpochPageAsyncInput, type SealEpochPageInput, type SealEpochPageInstruction, type SealEpochPageInstructionData, type SealEpochPageInstructionDataArgs, type SelectEpochWinnerAsyncInput, type SelectEpochWinnerInput, type SelectEpochWinnerInstruction, type SelectEpochWinnerInstructionData, type SelectEpochWinnerInstructionDataArgs, type SwapEpochStakeAsyncInput, type SwapEpochStakeInput, type SwapEpochStakeInstruction, type SwapEpochStakeInstructionData, type SwapEpochStakeInstructionDataArgs, type SwapOneBtcStakeAsyncInput, type SwapOneBtcStakeInput, type SwapOneBtcStakeInstruction, type SwapOneBtcStakeInstructionData, type SwapOneBtcStakeInstructionDataArgs, type SwapRoundStakeAsyncInput, type SwapRoundStakeInput, type SwapRoundStakeInstruction, type SwapRoundStakeInstructionData, type SwapRoundStakeInstructionDataArgs, type SwapStrikeStakeAsyncInput, type SwapStrikeStakeInput, type SwapStrikeStakeInstruction, type SwapStrikeStakeInstructionData, type SwapStrikeStakeInstructionDataArgs, TILE_COUNT, TREASURY_DISCRIMINATOR, TRIGGER_EPOCH_DRAW_DISCRIMINATOR, TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR, type TileStake, type TileStakeArgs, type Treasury, type TreasuryArgs, type TriggerEpochDrawAsyncInput, type TriggerEpochDrawInput, type TriggerEpochDrawInstruction, type TriggerEpochDrawInstructionData, type TriggerEpochDrawInstructionDataArgs, type TriggerOneBtcDrawAsyncInput, type TriggerOneBtcDrawInput, type TriggerOneBtcDrawInstruction, type TriggerOneBtcDrawInstructionData, type TriggerOneBtcDrawInstructionDataArgs, WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR, type Winner, type WinnerArgs, type WithdrawProtocolFeesAsyncInput, type WithdrawProtocolFeesInput, type WithdrawProtocolFeesInstruction, type WithdrawProtocolFeesInstructionData, type WithdrawProtocolFeesInstructionDataArgs, buildClaimInstruction, buildDeployPublicInstruction, decodeBoard, decodeEpochVault, decodeEpochVaultEntry, decodeEpochVaultIteration, decodeEpochVaultPage, decodeMiner, decodeOneBtcVault, decodeOneBtcVaultEntry, decodeOneBtcVaultIteration, decodePublicDeployment, decodeRound, decodeSatrushConfig, decodeSatsVault, decodeTreasury, fetchAllBoard, fetchAllEpochVault, fetchAllEpochVaultEntry, fetchAllEpochVaultIteration, fetchAllEpochVaultPage, fetchAllMaybeBoard, fetchAllMaybeEpochVault, fetchAllMaybeEpochVaultEntry, fetchAllMaybeEpochVaultIteration, fetchAllMaybeEpochVaultPage, fetchAllMaybeMiner, fetchAllMaybeOneBtcVault, fetchAllMaybeOneBtcVaultEntry, fetchAllMaybeOneBtcVaultIteration, fetchAllMaybePublicDeployment, fetchAllMaybeRound, fetchAllMaybeSatrushConfig, fetchAllMaybeSatsVault, fetchAllMaybeTreasury, fetchAllMiner, fetchAllOneBtcVault, fetchAllOneBtcVaultEntry, fetchAllOneBtcVaultIteration, fetchAllPublicDeployment, fetchAllRound, fetchAllSatrushConfig, fetchAllSatsVault, fetchAllTreasury, fetchBoard, fetchEpochVault, fetchEpochVaultEntry, fetchEpochVaultIteration, fetchEpochVaultPage, fetchMaybeBoard, fetchMaybeEpochVault, fetchMaybeEpochVaultEntry, fetchMaybeEpochVaultIteration, fetchMaybeEpochVaultPage, fetchMaybeMiner, fetchMaybeOneBtcVault, fetchMaybeOneBtcVaultEntry, fetchMaybeOneBtcVaultIteration, fetchMaybePublicDeployment, fetchMaybeRound, fetchMaybeSatrushConfig, fetchMaybeSatsVault, fetchMaybeTreasury, fetchMiner, fetchOneBtcVault, fetchOneBtcVaultEntry, fetchOneBtcVaultIteration, fetchPublicDeployment, fetchRound, fetchSatrushConfig, fetchSatsVault, fetchTreasury, findBoardPda, findEpochVaultIterationPda, findEpochVaultPda, findInitialRoundPda, findMinerPda, findNextRoundPda, findOneBtcVaultIterationPda, findOneBtcVaultPda, findSatrushConfigPda, findSatsVaultPda, findTreasuryPda, getBoardAddress, getBoardCodec, getBoardDecoder, getBoardDiscriminatorBytes, getBoardEncoder, getBoardSize, getBuyEpochTicketsDiscriminatorBytes, getBuyEpochTicketsInstruction, getBuyEpochTicketsInstructionAsync, getBuyEpochTicketsInstructionDataCodec, getBuyEpochTicketsInstructionDataDecoder, getBuyEpochTicketsInstructionDataEncoder, getBuyOneBtcTicketsDiscriminatorBytes, getBuyOneBtcTicketsInstruction, getBuyOneBtcTicketsInstructionAsync, getBuyOneBtcTicketsInstructionDataCodec, getBuyOneBtcTicketsInstructionDataDecoder, getBuyOneBtcTicketsInstructionDataEncoder, getClaimDiscriminatorBytes, getClaimEpochRewardDiscriminatorBytes, getClaimEpochRewardInstruction, getClaimEpochRewardInstructionAsync, getClaimEpochRewardInstructionDataCodec, getClaimEpochRewardInstructionDataDecoder, getClaimEpochRewardInstructionDataEncoder, getClaimInstruction, getClaimInstructionAsync, getClaimInstructionDataCodec, getClaimInstructionDataDecoder, getClaimInstructionDataEncoder, getClaimOneBtcRewardDiscriminatorBytes, getClaimOneBtcRewardInstruction, getClaimOneBtcRewardInstructionAsync, getClaimOneBtcRewardInstructionDataCodec, getClaimOneBtcRewardInstructionDataDecoder, getClaimOneBtcRewardInstructionDataEncoder, getClaimSatsDiscriminatorBytes, getClaimSatsInstruction, getClaimSatsInstructionAsync, getClaimSatsInstructionDataCodec, getClaimSatsInstructionDataDecoder, getClaimSatsInstructionDataEncoder, getCloseEpochEntryDiscriminatorBytes, getCloseEpochEntryInstruction, getCloseEpochEntryInstructionAsync, getCloseEpochEntryInstructionDataCodec, getCloseEpochEntryInstructionDataDecoder, getCloseEpochEntryInstructionDataEncoder, getCloseEpochIterationDiscriminatorBytes, getCloseEpochIterationInstruction, getCloseEpochIterationInstructionAsync, getCloseEpochIterationInstructionDataCodec, getCloseEpochIterationInstructionDataDecoder, getCloseEpochIterationInstructionDataEncoder, getCloseEpochPageDiscriminatorBytes, getCloseEpochPageInstruction, getCloseEpochPageInstructionAsync, getCloseEpochPageInstructionDataCodec, getCloseEpochPageInstructionDataDecoder, getCloseEpochPageInstructionDataEncoder, getCloseOneBtcIterationDiscriminatorBytes, getCloseOneBtcIterationInstruction, getCloseOneBtcIterationInstructionAsync, getCloseOneBtcIterationInstructionDataCodec, getCloseOneBtcIterationInstructionDataDecoder, getCloseOneBtcIterationInstructionDataEncoder, getCloseOneBtcTicketDiscriminatorBytes, getCloseOneBtcTicketInstruction, getCloseOneBtcTicketInstructionDataCodec, getCloseOneBtcTicketInstructionDataDecoder, getCloseOneBtcTicketInstructionDataEncoder, getCreateBoardDiscriminatorBytes, getCreateBoardInstruction, getCreateBoardInstructionAsync, getCreateBoardInstructionDataCodec, getCreateBoardInstructionDataDecoder, getCreateBoardInstructionDataEncoder, getCreateEpochVaultDiscriminatorBytes, getCreateEpochVaultInstruction, getCreateEpochVaultInstructionAsync, getCreateEpochVaultInstructionDataCodec, getCreateEpochVaultInstructionDataDecoder, getCreateEpochVaultInstructionDataEncoder, getCreateOneBtcVaultDiscriminatorBytes, getCreateOneBtcVaultInstruction, getCreateOneBtcVaultInstructionAsync, getCreateOneBtcVaultInstructionDataCodec, getCreateOneBtcVaultInstructionDataDecoder, getCreateOneBtcVaultInstructionDataEncoder, getCreateSatrushConfigDiscriminatorBytes, getCreateSatrushConfigInstruction, getCreateSatrushConfigInstructionAsync, getCreateSatrushConfigInstructionDataCodec, getCreateSatrushConfigInstructionDataDecoder, getCreateSatrushConfigInstructionDataEncoder, getCreateSatsVaultDiscriminatorBytes, getCreateSatsVaultInstruction, getCreateSatsVaultInstructionAsync, getCreateSatsVaultInstructionDataCodec, getCreateSatsVaultInstructionDataDecoder, getCreateSatsVaultInstructionDataEncoder, getCreateTreasuryDiscriminatorBytes, getCreateTreasuryInstruction, getCreateTreasuryInstructionAsync, getCreateTreasuryInstructionDataCodec, getCreateTreasuryInstructionDataDecoder, getCreateTreasuryInstructionDataEncoder, getDeployPublicDiscriminatorBytes, getDeployPublicInstruction, getDeployPublicInstructionAsync, getDeployPublicInstructionDataCodec, getDeployPublicInstructionDataDecoder, getDeployPublicInstructionDataEncoder, getEpochStateCodec, getEpochStateDecoder, getEpochStateEncoder, getEpochVaultAddress, getEpochVaultCodec, getEpochVaultDecoder, getEpochVaultDiscriminatorBytes, getEpochVaultEncoder, getEpochVaultEntryAddress, getEpochVaultEntryCodec, getEpochVaultEntryDecoder, getEpochVaultEntryDiscriminatorBytes, getEpochVaultEntryEncoder, getEpochVaultEntrySize, getEpochVaultIterationAddress, getEpochVaultIterationCodec, getEpochVaultIterationDecoder, getEpochVaultIterationDiscriminatorBytes, getEpochVaultIterationEncoder, getEpochVaultIterationSize, getEpochVaultPageAddress, getEpochVaultPageCodec, getEpochVaultPageDecoder, getEpochVaultPageDiscriminatorBytes, getEpochVaultPageEncoder, getEpochVaultPageSize, getEpochVaultSize, getMinerAddress, getMinerCodec, getMinerDecoder, getMinerDiscriminatorBytes, getMinerEncoder, getMinerSize, getOneBtcStateCodec, getOneBtcStateDecoder, getOneBtcStateEncoder, getOneBtcVaultAddress, getOneBtcVaultCodec, getOneBtcVaultDecoder, getOneBtcVaultDiscriminatorBytes, getOneBtcVaultEncoder, getOneBtcVaultEntryCodec, getOneBtcVaultEntryDecoder, getOneBtcVaultEntryDiscriminatorBytes, getOneBtcVaultEntryEncoder, getOneBtcVaultEntrySize, getOneBtcVaultIterationAddress, getOneBtcVaultIterationCodec, getOneBtcVaultIterationDecoder, getOneBtcVaultIterationDiscriminatorBytes, getOneBtcVaultIterationEncoder, getOneBtcVaultIterationSize, getOneBtcVaultSize, getPageEntryCodec, getPageEntryDecoder, getPageEntryEncoder, getPublicDeploymentAddress, getPublicDeploymentCodec, getPublicDeploymentDecoder, getPublicDeploymentDiscriminatorBytes, getPublicDeploymentEncoder, getRotateRoundDiscriminatorBytes, getRotateRoundInstruction, getRotateRoundInstructionAsync, getRotateRoundInstructionDataCodec, getRotateRoundInstructionDataDecoder, getRotateRoundInstructionDataEncoder, getRoundAddress, getRoundCodec, getRoundDecoder, getRoundDiscriminatorBytes, getRoundEncoder, getRoundStateCodec, getRoundStateDecoder, getRoundStateEncoder, getSatrushConfigAddress, getSatrushConfigCodec, getSatrushConfigDecoder, getSatrushConfigDiscriminatorBytes, getSatrushConfigEncoder, getSatrushConfigSize, getSatrushErrorMessage, getSatsVaultAddress, getSatsVaultCodec, getSatsVaultDecoder, getSatsVaultDiscriminatorBytes, getSatsVaultEncoder, getSatsVaultSize, getSealEpochPageDiscriminatorBytes, getSealEpochPageInstruction, getSealEpochPageInstructionAsync, getSealEpochPageInstructionDataCodec, getSealEpochPageInstructionDataDecoder, getSealEpochPageInstructionDataEncoder, getSelectEpochWinnerDiscriminatorBytes, getSelectEpochWinnerInstruction, getSelectEpochWinnerInstructionAsync, getSelectEpochWinnerInstructionDataCodec, getSelectEpochWinnerInstructionDataDecoder, getSelectEpochWinnerInstructionDataEncoder, getSwapEpochStakeDiscriminatorBytes, getSwapEpochStakeInstruction, getSwapEpochStakeInstructionAsync, getSwapEpochStakeInstructionDataCodec, getSwapEpochStakeInstructionDataDecoder, getSwapEpochStakeInstructionDataEncoder, getSwapOneBtcStakeDiscriminatorBytes, getSwapOneBtcStakeInstruction, getSwapOneBtcStakeInstructionAsync, getSwapOneBtcStakeInstructionDataCodec, getSwapOneBtcStakeInstructionDataDecoder, getSwapOneBtcStakeInstructionDataEncoder, getSwapRoundStakeDiscriminatorBytes, getSwapRoundStakeInstruction, getSwapRoundStakeInstructionAsync, getSwapRoundStakeInstructionDataCodec, getSwapRoundStakeInstructionDataDecoder, getSwapRoundStakeInstructionDataEncoder, getSwapStrikeStakeDiscriminatorBytes, getSwapStrikeStakeInstruction, getSwapStrikeStakeInstructionAsync, getSwapStrikeStakeInstructionDataCodec, getSwapStrikeStakeInstructionDataDecoder, getSwapStrikeStakeInstructionDataEncoder, getTileStakeCodec, getTileStakeDecoder, getTileStakeEncoder, getTreasuryAddress, getTreasuryCodec, getTreasuryDecoder, getTreasuryDiscriminatorBytes, getTreasuryEncoder, getTreasurySize, getTriggerEpochDrawDiscriminatorBytes, getTriggerEpochDrawInstruction, getTriggerEpochDrawInstructionAsync, getTriggerEpochDrawInstructionDataCodec, getTriggerEpochDrawInstructionDataDecoder, getTriggerEpochDrawInstructionDataEncoder, getTriggerOneBtcDrawDiscriminatorBytes, getTriggerOneBtcDrawInstruction, getTriggerOneBtcDrawInstructionAsync, getTriggerOneBtcDrawInstructionDataCodec, getTriggerOneBtcDrawInstructionDataDecoder, getTriggerOneBtcDrawInstructionDataEncoder, getWinnerCodec, getWinnerDecoder, getWinnerEncoder, getWithdrawProtocolFeesDiscriminatorBytes, getWithdrawProtocolFeesInstruction, getWithdrawProtocolFeesInstructionAsync, getWithdrawProtocolFeesInstructionDataCodec, getWithdrawProtocolFeesInstructionDataDecoder, getWithdrawProtocolFeesInstructionDataEncoder, identifySatrushAccount, identifySatrushInstruction, isSatrushError, parseBuyEpochTicketsInstruction, parseBuyOneBtcTicketsInstruction, parseClaimEpochRewardInstruction, parseClaimInstruction, parseClaimOneBtcRewardInstruction, parseClaimSatsInstruction, parseCloseEpochEntryInstruction, parseCloseEpochIterationInstruction, parseCloseEpochPageInstruction, parseCloseOneBtcIterationInstruction, parseCloseOneBtcTicketInstruction, parseCreateBoardInstruction, parseCreateEpochVaultInstruction, parseCreateOneBtcVaultInstruction, parseCreateSatrushConfigInstruction, parseCreateSatsVaultInstruction, parseCreateTreasuryInstruction, parseDeployPublicInstruction, parseRotateRoundInstruction, parseSatrushInstruction, parseSealEpochPageInstruction, parseSelectEpochWinnerInstruction, parseSwapEpochStakeInstruction, parseSwapOneBtcStakeInstruction, parseSwapRoundStakeInstruction, parseSwapStrikeStakeInstruction, parseTriggerEpochDrawInstruction, parseTriggerOneBtcDrawInstruction, parseWithdrawProtocolFeesInstruction, satrushProgram, selectionMaskFromTiles, tilesFromSelectionMask };
package/dist/index.js CHANGED
@@ -112,10 +112,13 @@ __export(index_exports, {
112
112
  SWAP_STRIKE_STAKE_DISCRIMINATOR: () => SWAP_STRIKE_STAKE_DISCRIMINATOR,
113
113
  SatrushAccount: () => SatrushAccount,
114
114
  SatrushInstruction: () => SatrushInstruction,
115
+ TILE_COUNT: () => TILE_COUNT,
115
116
  TREASURY_DISCRIMINATOR: () => TREASURY_DISCRIMINATOR,
116
117
  TRIGGER_EPOCH_DRAW_DISCRIMINATOR: () => TRIGGER_EPOCH_DRAW_DISCRIMINATOR,
117
118
  TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR: () => TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR,
118
119
  WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR: () => WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR,
120
+ buildClaimInstruction: () => buildClaimInstruction,
121
+ buildDeployPublicInstruction: () => buildDeployPublicInstruction,
119
122
  decodeBoard: () => decodeBoard,
120
123
  decodeEpochVault: () => decodeEpochVault,
121
124
  decodeEpochVaultEntry: () => decodeEpochVaultEntry,
@@ -197,6 +200,7 @@ __export(index_exports, {
197
200
  findSatrushConfigPda: () => findSatrushConfigPda,
198
201
  findSatsVaultPda: () => findSatsVaultPda,
199
202
  findTreasuryPda: () => findTreasuryPda,
203
+ getBoardAddress: () => getBoardAddress,
200
204
  getBoardCodec: () => getBoardCodec,
201
205
  getBoardDecoder: () => getBoardDecoder,
202
206
  getBoardDiscriminatorBytes: () => getBoardDiscriminatorBytes,
@@ -312,26 +316,31 @@ __export(index_exports, {
312
316
  getEpochStateCodec: () => getEpochStateCodec,
313
317
  getEpochStateDecoder: () => getEpochStateDecoder,
314
318
  getEpochStateEncoder: () => getEpochStateEncoder,
319
+ getEpochVaultAddress: () => getEpochVaultAddress,
315
320
  getEpochVaultCodec: () => getEpochVaultCodec,
316
321
  getEpochVaultDecoder: () => getEpochVaultDecoder,
317
322
  getEpochVaultDiscriminatorBytes: () => getEpochVaultDiscriminatorBytes,
318
323
  getEpochVaultEncoder: () => getEpochVaultEncoder,
324
+ getEpochVaultEntryAddress: () => getEpochVaultEntryAddress,
319
325
  getEpochVaultEntryCodec: () => getEpochVaultEntryCodec,
320
326
  getEpochVaultEntryDecoder: () => getEpochVaultEntryDecoder,
321
327
  getEpochVaultEntryDiscriminatorBytes: () => getEpochVaultEntryDiscriminatorBytes,
322
328
  getEpochVaultEntryEncoder: () => getEpochVaultEntryEncoder,
323
329
  getEpochVaultEntrySize: () => getEpochVaultEntrySize,
330
+ getEpochVaultIterationAddress: () => getEpochVaultIterationAddress,
324
331
  getEpochVaultIterationCodec: () => getEpochVaultIterationCodec,
325
332
  getEpochVaultIterationDecoder: () => getEpochVaultIterationDecoder,
326
333
  getEpochVaultIterationDiscriminatorBytes: () => getEpochVaultIterationDiscriminatorBytes,
327
334
  getEpochVaultIterationEncoder: () => getEpochVaultIterationEncoder,
328
335
  getEpochVaultIterationSize: () => getEpochVaultIterationSize,
336
+ getEpochVaultPageAddress: () => getEpochVaultPageAddress,
329
337
  getEpochVaultPageCodec: () => getEpochVaultPageCodec,
330
338
  getEpochVaultPageDecoder: () => getEpochVaultPageDecoder,
331
339
  getEpochVaultPageDiscriminatorBytes: () => getEpochVaultPageDiscriminatorBytes,
332
340
  getEpochVaultPageEncoder: () => getEpochVaultPageEncoder,
333
341
  getEpochVaultPageSize: () => getEpochVaultPageSize,
334
342
  getEpochVaultSize: () => getEpochVaultSize,
343
+ getMinerAddress: () => getMinerAddress,
335
344
  getMinerCodec: () => getMinerCodec,
336
345
  getMinerDecoder: () => getMinerDecoder,
337
346
  getMinerDiscriminatorBytes: () => getMinerDiscriminatorBytes,
@@ -340,6 +349,7 @@ __export(index_exports, {
340
349
  getOneBtcStateCodec: () => getOneBtcStateCodec,
341
350
  getOneBtcStateDecoder: () => getOneBtcStateDecoder,
342
351
  getOneBtcStateEncoder: () => getOneBtcStateEncoder,
352
+ getOneBtcVaultAddress: () => getOneBtcVaultAddress,
343
353
  getOneBtcVaultCodec: () => getOneBtcVaultCodec,
344
354
  getOneBtcVaultDecoder: () => getOneBtcVaultDecoder,
345
355
  getOneBtcVaultDiscriminatorBytes: () => getOneBtcVaultDiscriminatorBytes,
@@ -349,6 +359,7 @@ __export(index_exports, {
349
359
  getOneBtcVaultEntryDiscriminatorBytes: () => getOneBtcVaultEntryDiscriminatorBytes,
350
360
  getOneBtcVaultEntryEncoder: () => getOneBtcVaultEntryEncoder,
351
361
  getOneBtcVaultEntrySize: () => getOneBtcVaultEntrySize,
362
+ getOneBtcVaultIterationAddress: () => getOneBtcVaultIterationAddress,
352
363
  getOneBtcVaultIterationCodec: () => getOneBtcVaultIterationCodec,
353
364
  getOneBtcVaultIterationDecoder: () => getOneBtcVaultIterationDecoder,
354
365
  getOneBtcVaultIterationDiscriminatorBytes: () => getOneBtcVaultIterationDiscriminatorBytes,
@@ -358,6 +369,7 @@ __export(index_exports, {
358
369
  getPageEntryCodec: () => getPageEntryCodec,
359
370
  getPageEntryDecoder: () => getPageEntryDecoder,
360
371
  getPageEntryEncoder: () => getPageEntryEncoder,
372
+ getPublicDeploymentAddress: () => getPublicDeploymentAddress,
361
373
  getPublicDeploymentCodec: () => getPublicDeploymentCodec,
362
374
  getPublicDeploymentDecoder: () => getPublicDeploymentDecoder,
363
375
  getPublicDeploymentDiscriminatorBytes: () => getPublicDeploymentDiscriminatorBytes,
@@ -368,6 +380,7 @@ __export(index_exports, {
368
380
  getRotateRoundInstructionDataCodec: () => getRotateRoundInstructionDataCodec,
369
381
  getRotateRoundInstructionDataDecoder: () => getRotateRoundInstructionDataDecoder,
370
382
  getRotateRoundInstructionDataEncoder: () => getRotateRoundInstructionDataEncoder,
383
+ getRoundAddress: () => getRoundAddress,
371
384
  getRoundCodec: () => getRoundCodec,
372
385
  getRoundDecoder: () => getRoundDecoder,
373
386
  getRoundDiscriminatorBytes: () => getRoundDiscriminatorBytes,
@@ -375,12 +388,14 @@ __export(index_exports, {
375
388
  getRoundStateCodec: () => getRoundStateCodec,
376
389
  getRoundStateDecoder: () => getRoundStateDecoder,
377
390
  getRoundStateEncoder: () => getRoundStateEncoder,
391
+ getSatrushConfigAddress: () => getSatrushConfigAddress,
378
392
  getSatrushConfigCodec: () => getSatrushConfigCodec,
379
393
  getSatrushConfigDecoder: () => getSatrushConfigDecoder,
380
394
  getSatrushConfigDiscriminatorBytes: () => getSatrushConfigDiscriminatorBytes,
381
395
  getSatrushConfigEncoder: () => getSatrushConfigEncoder,
382
396
  getSatrushConfigSize: () => getSatrushConfigSize,
383
397
  getSatrushErrorMessage: () => getSatrushErrorMessage,
398
+ getSatsVaultAddress: () => getSatsVaultAddress,
384
399
  getSatsVaultCodec: () => getSatsVaultCodec,
385
400
  getSatsVaultDecoder: () => getSatsVaultDecoder,
386
401
  getSatsVaultDiscriminatorBytes: () => getSatsVaultDiscriminatorBytes,
@@ -425,6 +440,7 @@ __export(index_exports, {
425
440
  getTileStakeCodec: () => getTileStakeCodec,
426
441
  getTileStakeDecoder: () => getTileStakeDecoder,
427
442
  getTileStakeEncoder: () => getTileStakeEncoder,
443
+ getTreasuryAddress: () => getTreasuryAddress,
428
444
  getTreasuryCodec: () => getTreasuryCodec,
429
445
  getTreasuryDecoder: () => getTreasuryDecoder,
430
446
  getTreasuryDiscriminatorBytes: () => getTreasuryDiscriminatorBytes,
@@ -483,7 +499,9 @@ __export(index_exports, {
483
499
  parseTriggerEpochDrawInstruction: () => parseTriggerEpochDrawInstruction,
484
500
  parseTriggerOneBtcDrawInstruction: () => parseTriggerOneBtcDrawInstruction,
485
501
  parseWithdrawProtocolFeesInstruction: () => parseWithdrawProtocolFeesInstruction,
486
- satrushProgram: () => satrushProgram
502
+ satrushProgram: () => satrushProgram,
503
+ selectionMaskFromTiles: () => selectionMaskFromTiles,
504
+ tilesFromSelectionMask: () => tilesFromSelectionMask
487
505
  });
488
506
  module.exports = __toCommonJS(index_exports);
489
507
 
@@ -8797,6 +8815,174 @@ function isSatrushError(error, transactionMessage, code) {
8797
8815
  code
8798
8816
  );
8799
8817
  }
8818
+
8819
+ // src/builders.ts
8820
+ var import_kit63 = require("@solana/kit");
8821
+ var import_token = require("@solana-program/token");
8822
+
8823
+ // src/pda.ts
8824
+ var import_kit62 = require("@solana/kit");
8825
+ async function getSatrushConfigAddress() {
8826
+ return await (0, import_kit62.getProgramDerivedAddress)({
8827
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8828
+ seeds: ["satrush_config"]
8829
+ });
8830
+ }
8831
+ async function getBoardAddress() {
8832
+ return await (0, import_kit62.getProgramDerivedAddress)({
8833
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8834
+ seeds: ["board"]
8835
+ });
8836
+ }
8837
+ async function getRoundAddress(roundId) {
8838
+ return await (0, import_kit62.getProgramDerivedAddress)({
8839
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8840
+ seeds: ["round", (0, import_kit62.getU32Encoder)().encode(roundId)]
8841
+ });
8842
+ }
8843
+ async function getPublicDeploymentAddress(authority, roundId) {
8844
+ return await (0, import_kit62.getProgramDerivedAddress)({
8845
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8846
+ seeds: [
8847
+ "public_deployment",
8848
+ (0, import_kit62.getAddressEncoder)().encode(authority),
8849
+ (0, import_kit62.getU32Encoder)().encode(roundId)
8850
+ ]
8851
+ });
8852
+ }
8853
+ async function getMinerAddress(authority) {
8854
+ return await (0, import_kit62.getProgramDerivedAddress)({
8855
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8856
+ seeds: ["miner", (0, import_kit62.getAddressEncoder)().encode(authority)]
8857
+ });
8858
+ }
8859
+ async function getSatsVaultAddress() {
8860
+ return await (0, import_kit62.getProgramDerivedAddress)({
8861
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8862
+ seeds: ["sats_vault"]
8863
+ });
8864
+ }
8865
+ async function getEpochVaultAddress() {
8866
+ return await (0, import_kit62.getProgramDerivedAddress)({
8867
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8868
+ seeds: ["epoch_vault"]
8869
+ });
8870
+ }
8871
+ async function getEpochVaultIterationAddress(iterationId) {
8872
+ return await (0, import_kit62.getProgramDerivedAddress)({
8873
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8874
+ seeds: ["epoch_vault_iteration", (0, import_kit62.getU32Encoder)().encode(iterationId)]
8875
+ });
8876
+ }
8877
+ async function getEpochVaultEntryAddress(iterationId, authority) {
8878
+ return await (0, import_kit62.getProgramDerivedAddress)({
8879
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8880
+ seeds: [
8881
+ "epoch_vault_entry",
8882
+ (0, import_kit62.getU32Encoder)().encode(iterationId),
8883
+ (0, import_kit62.getAddressEncoder)().encode(authority)
8884
+ ]
8885
+ });
8886
+ }
8887
+ async function getEpochVaultPageAddress(iterationId, pageIndex) {
8888
+ return await (0, import_kit62.getProgramDerivedAddress)({
8889
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8890
+ seeds: [
8891
+ "epoch_vault_page",
8892
+ (0, import_kit62.getU32Encoder)().encode(iterationId),
8893
+ (0, import_kit62.getU16Encoder)().encode(pageIndex)
8894
+ ]
8895
+ });
8896
+ }
8897
+ async function getOneBtcVaultAddress() {
8898
+ return await (0, import_kit62.getProgramDerivedAddress)({
8899
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8900
+ seeds: ["one_btc_vault"]
8901
+ });
8902
+ }
8903
+ async function getOneBtcVaultIterationAddress(iterationId) {
8904
+ return await (0, import_kit62.getProgramDerivedAddress)({
8905
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8906
+ seeds: ["one_btc_vault_iteration", (0, import_kit62.getU32Encoder)().encode(iterationId)]
8907
+ });
8908
+ }
8909
+ async function getTreasuryAddress() {
8910
+ return await (0, import_kit62.getProgramDerivedAddress)({
8911
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
8912
+ seeds: ["treasury"]
8913
+ });
8914
+ }
8915
+
8916
+ // src/builders.ts
8917
+ async function buildDeployPublicInstruction(authority, usdMint, roundId, selectionMask, amount) {
8918
+ const [round] = await getRoundAddress(roundId);
8919
+ const [publicDeployment] = await getPublicDeploymentAddress(
8920
+ authority,
8921
+ roundId
8922
+ );
8923
+ const [treasury] = await getTreasuryAddress();
8924
+ const [[authorityUsdAta], [treasuryUsdAta]] = await Promise.all([
8925
+ (0, import_token.findAssociatedTokenPda)({
8926
+ owner: authority,
8927
+ tokenProgram: import_token.TOKEN_PROGRAM_ADDRESS,
8928
+ mint: usdMint
8929
+ }),
8930
+ (0, import_token.findAssociatedTokenPda)({
8931
+ owner: treasury,
8932
+ tokenProgram: import_token.TOKEN_PROGRAM_ADDRESS,
8933
+ mint: usdMint
8934
+ })
8935
+ ]);
8936
+ return await getDeployPublicInstructionAsync({
8937
+ authority: (0, import_kit63.createNoopSigner)(authority),
8938
+ usdMint,
8939
+ round,
8940
+ authorityUsdAta,
8941
+ publicDeployment,
8942
+ treasury,
8943
+ treasuryUsdAta,
8944
+ selectionMask,
8945
+ amount
8946
+ });
8947
+ }
8948
+ async function buildClaimInstruction(authority, usdMint, btcMint, roundId) {
8949
+ const [round] = await getRoundAddress(roundId);
8950
+ const [publicDeployment] = await getPublicDeploymentAddress(
8951
+ authority,
8952
+ roundId
8953
+ );
8954
+ return await getClaimInstructionAsync({
8955
+ authority: (0, import_kit63.createNoopSigner)(authority),
8956
+ round,
8957
+ publicDeployment,
8958
+ btcMint,
8959
+ usdMint
8960
+ });
8961
+ }
8962
+
8963
+ // src/selection.ts
8964
+ var TILE_COUNT = 21;
8965
+ function selectionMaskFromTiles(tiles) {
8966
+ if (tiles.length !== TILE_COUNT) {
8967
+ throw new Error(
8968
+ `Expected exactly ${TILE_COUNT} tiles, received ${tiles.length}.`
8969
+ );
8970
+ }
8971
+ let mask = 0;
8972
+ for (let i = 0; i < TILE_COUNT; i++) {
8973
+ if (tiles[i]) {
8974
+ mask |= 1 << i;
8975
+ }
8976
+ }
8977
+ return mask >>> 0;
8978
+ }
8979
+ function tilesFromSelectionMask(mask) {
8980
+ const tiles = new Array(TILE_COUNT).fill(false);
8981
+ for (let i = 0; i < TILE_COUNT; i++) {
8982
+ tiles[i] = (mask & 1 << i) !== 0;
8983
+ }
8984
+ return tiles;
8985
+ }
8800
8986
  // Annotate the CommonJS export names for ESM import in node:
8801
8987
  0 && (module.exports = {
8802
8988
  BOARD_DISCRIMINATOR,
@@ -8892,10 +9078,13 @@ function isSatrushError(error, transactionMessage, code) {
8892
9078
  SWAP_STRIKE_STAKE_DISCRIMINATOR,
8893
9079
  SatrushAccount,
8894
9080
  SatrushInstruction,
9081
+ TILE_COUNT,
8895
9082
  TREASURY_DISCRIMINATOR,
8896
9083
  TRIGGER_EPOCH_DRAW_DISCRIMINATOR,
8897
9084
  TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR,
8898
9085
  WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR,
9086
+ buildClaimInstruction,
9087
+ buildDeployPublicInstruction,
8899
9088
  decodeBoard,
8900
9089
  decodeEpochVault,
8901
9090
  decodeEpochVaultEntry,
@@ -8977,6 +9166,7 @@ function isSatrushError(error, transactionMessage, code) {
8977
9166
  findSatrushConfigPda,
8978
9167
  findSatsVaultPda,
8979
9168
  findTreasuryPda,
9169
+ getBoardAddress,
8980
9170
  getBoardCodec,
8981
9171
  getBoardDecoder,
8982
9172
  getBoardDiscriminatorBytes,
@@ -9092,26 +9282,31 @@ function isSatrushError(error, transactionMessage, code) {
9092
9282
  getEpochStateCodec,
9093
9283
  getEpochStateDecoder,
9094
9284
  getEpochStateEncoder,
9285
+ getEpochVaultAddress,
9095
9286
  getEpochVaultCodec,
9096
9287
  getEpochVaultDecoder,
9097
9288
  getEpochVaultDiscriminatorBytes,
9098
9289
  getEpochVaultEncoder,
9290
+ getEpochVaultEntryAddress,
9099
9291
  getEpochVaultEntryCodec,
9100
9292
  getEpochVaultEntryDecoder,
9101
9293
  getEpochVaultEntryDiscriminatorBytes,
9102
9294
  getEpochVaultEntryEncoder,
9103
9295
  getEpochVaultEntrySize,
9296
+ getEpochVaultIterationAddress,
9104
9297
  getEpochVaultIterationCodec,
9105
9298
  getEpochVaultIterationDecoder,
9106
9299
  getEpochVaultIterationDiscriminatorBytes,
9107
9300
  getEpochVaultIterationEncoder,
9108
9301
  getEpochVaultIterationSize,
9302
+ getEpochVaultPageAddress,
9109
9303
  getEpochVaultPageCodec,
9110
9304
  getEpochVaultPageDecoder,
9111
9305
  getEpochVaultPageDiscriminatorBytes,
9112
9306
  getEpochVaultPageEncoder,
9113
9307
  getEpochVaultPageSize,
9114
9308
  getEpochVaultSize,
9309
+ getMinerAddress,
9115
9310
  getMinerCodec,
9116
9311
  getMinerDecoder,
9117
9312
  getMinerDiscriminatorBytes,
@@ -9120,6 +9315,7 @@ function isSatrushError(error, transactionMessage, code) {
9120
9315
  getOneBtcStateCodec,
9121
9316
  getOneBtcStateDecoder,
9122
9317
  getOneBtcStateEncoder,
9318
+ getOneBtcVaultAddress,
9123
9319
  getOneBtcVaultCodec,
9124
9320
  getOneBtcVaultDecoder,
9125
9321
  getOneBtcVaultDiscriminatorBytes,
@@ -9129,6 +9325,7 @@ function isSatrushError(error, transactionMessage, code) {
9129
9325
  getOneBtcVaultEntryDiscriminatorBytes,
9130
9326
  getOneBtcVaultEntryEncoder,
9131
9327
  getOneBtcVaultEntrySize,
9328
+ getOneBtcVaultIterationAddress,
9132
9329
  getOneBtcVaultIterationCodec,
9133
9330
  getOneBtcVaultIterationDecoder,
9134
9331
  getOneBtcVaultIterationDiscriminatorBytes,
@@ -9138,6 +9335,7 @@ function isSatrushError(error, transactionMessage, code) {
9138
9335
  getPageEntryCodec,
9139
9336
  getPageEntryDecoder,
9140
9337
  getPageEntryEncoder,
9338
+ getPublicDeploymentAddress,
9141
9339
  getPublicDeploymentCodec,
9142
9340
  getPublicDeploymentDecoder,
9143
9341
  getPublicDeploymentDiscriminatorBytes,
@@ -9148,6 +9346,7 @@ function isSatrushError(error, transactionMessage, code) {
9148
9346
  getRotateRoundInstructionDataCodec,
9149
9347
  getRotateRoundInstructionDataDecoder,
9150
9348
  getRotateRoundInstructionDataEncoder,
9349
+ getRoundAddress,
9151
9350
  getRoundCodec,
9152
9351
  getRoundDecoder,
9153
9352
  getRoundDiscriminatorBytes,
@@ -9155,12 +9354,14 @@ function isSatrushError(error, transactionMessage, code) {
9155
9354
  getRoundStateCodec,
9156
9355
  getRoundStateDecoder,
9157
9356
  getRoundStateEncoder,
9357
+ getSatrushConfigAddress,
9158
9358
  getSatrushConfigCodec,
9159
9359
  getSatrushConfigDecoder,
9160
9360
  getSatrushConfigDiscriminatorBytes,
9161
9361
  getSatrushConfigEncoder,
9162
9362
  getSatrushConfigSize,
9163
9363
  getSatrushErrorMessage,
9364
+ getSatsVaultAddress,
9164
9365
  getSatsVaultCodec,
9165
9366
  getSatsVaultDecoder,
9166
9367
  getSatsVaultDiscriminatorBytes,
@@ -9205,6 +9406,7 @@ function isSatrushError(error, transactionMessage, code) {
9205
9406
  getTileStakeCodec,
9206
9407
  getTileStakeDecoder,
9207
9408
  getTileStakeEncoder,
9409
+ getTreasuryAddress,
9208
9410
  getTreasuryCodec,
9209
9411
  getTreasuryDecoder,
9210
9412
  getTreasuryDiscriminatorBytes,
@@ -9263,5 +9465,7 @@ function isSatrushError(error, transactionMessage, code) {
9263
9465
  parseTriggerEpochDrawInstruction,
9264
9466
  parseTriggerOneBtcDrawInstruction,
9265
9467
  parseWithdrawProtocolFeesInstruction,
9266
- satrushProgram
9468
+ satrushProgram,
9469
+ selectionMaskFromTiles,
9470
+ tilesFromSelectionMask
9267
9471
  });
package/dist/index.mjs CHANGED
@@ -9172,6 +9172,182 @@ function isSatrushError(error, transactionMessage, code) {
9172
9172
  code
9173
9173
  );
9174
9174
  }
9175
+
9176
+ // src/builders.ts
9177
+ import { createNoopSigner } from "@solana/kit";
9178
+ import {
9179
+ findAssociatedTokenPda,
9180
+ TOKEN_PROGRAM_ADDRESS
9181
+ } from "@solana-program/token";
9182
+
9183
+ // src/pda.ts
9184
+ import {
9185
+ getAddressEncoder as getAddressEncoder26,
9186
+ getProgramDerivedAddress as getProgramDerivedAddress27,
9187
+ getU16Encoder as getU16Encoder18,
9188
+ getU32Encoder as getU32Encoder19
9189
+ } from "@solana/kit";
9190
+ async function getSatrushConfigAddress() {
9191
+ return await getProgramDerivedAddress27({
9192
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9193
+ seeds: ["satrush_config"]
9194
+ });
9195
+ }
9196
+ async function getBoardAddress() {
9197
+ return await getProgramDerivedAddress27({
9198
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9199
+ seeds: ["board"]
9200
+ });
9201
+ }
9202
+ async function getRoundAddress(roundId) {
9203
+ return await getProgramDerivedAddress27({
9204
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9205
+ seeds: ["round", getU32Encoder19().encode(roundId)]
9206
+ });
9207
+ }
9208
+ async function getPublicDeploymentAddress(authority, roundId) {
9209
+ return await getProgramDerivedAddress27({
9210
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9211
+ seeds: [
9212
+ "public_deployment",
9213
+ getAddressEncoder26().encode(authority),
9214
+ getU32Encoder19().encode(roundId)
9215
+ ]
9216
+ });
9217
+ }
9218
+ async function getMinerAddress(authority) {
9219
+ return await getProgramDerivedAddress27({
9220
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9221
+ seeds: ["miner", getAddressEncoder26().encode(authority)]
9222
+ });
9223
+ }
9224
+ async function getSatsVaultAddress() {
9225
+ return await getProgramDerivedAddress27({
9226
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9227
+ seeds: ["sats_vault"]
9228
+ });
9229
+ }
9230
+ async function getEpochVaultAddress() {
9231
+ return await getProgramDerivedAddress27({
9232
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9233
+ seeds: ["epoch_vault"]
9234
+ });
9235
+ }
9236
+ async function getEpochVaultIterationAddress(iterationId) {
9237
+ return await getProgramDerivedAddress27({
9238
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9239
+ seeds: ["epoch_vault_iteration", getU32Encoder19().encode(iterationId)]
9240
+ });
9241
+ }
9242
+ async function getEpochVaultEntryAddress(iterationId, authority) {
9243
+ return await getProgramDerivedAddress27({
9244
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9245
+ seeds: [
9246
+ "epoch_vault_entry",
9247
+ getU32Encoder19().encode(iterationId),
9248
+ getAddressEncoder26().encode(authority)
9249
+ ]
9250
+ });
9251
+ }
9252
+ async function getEpochVaultPageAddress(iterationId, pageIndex) {
9253
+ return await getProgramDerivedAddress27({
9254
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9255
+ seeds: [
9256
+ "epoch_vault_page",
9257
+ getU32Encoder19().encode(iterationId),
9258
+ getU16Encoder18().encode(pageIndex)
9259
+ ]
9260
+ });
9261
+ }
9262
+ async function getOneBtcVaultAddress() {
9263
+ return await getProgramDerivedAddress27({
9264
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9265
+ seeds: ["one_btc_vault"]
9266
+ });
9267
+ }
9268
+ async function getOneBtcVaultIterationAddress(iterationId) {
9269
+ return await getProgramDerivedAddress27({
9270
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9271
+ seeds: ["one_btc_vault_iteration", getU32Encoder19().encode(iterationId)]
9272
+ });
9273
+ }
9274
+ async function getTreasuryAddress() {
9275
+ return await getProgramDerivedAddress27({
9276
+ programAddress: SATRUSH_PROGRAM_ADDRESS,
9277
+ seeds: ["treasury"]
9278
+ });
9279
+ }
9280
+
9281
+ // src/builders.ts
9282
+ async function buildDeployPublicInstruction(authority, usdMint, roundId, selectionMask, amount) {
9283
+ const [round] = await getRoundAddress(roundId);
9284
+ const [publicDeployment] = await getPublicDeploymentAddress(
9285
+ authority,
9286
+ roundId
9287
+ );
9288
+ const [treasury] = await getTreasuryAddress();
9289
+ const [[authorityUsdAta], [treasuryUsdAta]] = await Promise.all([
9290
+ findAssociatedTokenPda({
9291
+ owner: authority,
9292
+ tokenProgram: TOKEN_PROGRAM_ADDRESS,
9293
+ mint: usdMint
9294
+ }),
9295
+ findAssociatedTokenPda({
9296
+ owner: treasury,
9297
+ tokenProgram: TOKEN_PROGRAM_ADDRESS,
9298
+ mint: usdMint
9299
+ })
9300
+ ]);
9301
+ return await getDeployPublicInstructionAsync({
9302
+ authority: createNoopSigner(authority),
9303
+ usdMint,
9304
+ round,
9305
+ authorityUsdAta,
9306
+ publicDeployment,
9307
+ treasury,
9308
+ treasuryUsdAta,
9309
+ selectionMask,
9310
+ amount
9311
+ });
9312
+ }
9313
+ async function buildClaimInstruction(authority, usdMint, btcMint, roundId) {
9314
+ const [round] = await getRoundAddress(roundId);
9315
+ const [publicDeployment] = await getPublicDeploymentAddress(
9316
+ authority,
9317
+ roundId
9318
+ );
9319
+ return await getClaimInstructionAsync({
9320
+ authority: createNoopSigner(authority),
9321
+ round,
9322
+ publicDeployment,
9323
+ btcMint,
9324
+ usdMint
9325
+ });
9326
+ }
9327
+
9328
+ // src/selection.ts
9329
+ var TILE_COUNT = 21;
9330
+ function selectionMaskFromTiles(tiles) {
9331
+ if (tiles.length !== TILE_COUNT) {
9332
+ throw new Error(
9333
+ `Expected exactly ${TILE_COUNT} tiles, received ${tiles.length}.`
9334
+ );
9335
+ }
9336
+ let mask = 0;
9337
+ for (let i = 0; i < TILE_COUNT; i++) {
9338
+ if (tiles[i]) {
9339
+ mask |= 1 << i;
9340
+ }
9341
+ }
9342
+ return mask >>> 0;
9343
+ }
9344
+ function tilesFromSelectionMask(mask) {
9345
+ const tiles = new Array(TILE_COUNT).fill(false);
9346
+ for (let i = 0; i < TILE_COUNT; i++) {
9347
+ tiles[i] = (mask & 1 << i) !== 0;
9348
+ }
9349
+ return tiles;
9350
+ }
9175
9351
  export {
9176
9352
  BOARD_DISCRIMINATOR,
9177
9353
  BUY_EPOCH_TICKETS_DISCRIMINATOR,
@@ -9266,10 +9442,13 @@ export {
9266
9442
  SWAP_STRIKE_STAKE_DISCRIMINATOR,
9267
9443
  SatrushAccount,
9268
9444
  SatrushInstruction,
9445
+ TILE_COUNT,
9269
9446
  TREASURY_DISCRIMINATOR,
9270
9447
  TRIGGER_EPOCH_DRAW_DISCRIMINATOR,
9271
9448
  TRIGGER_ONE_BTC_DRAW_DISCRIMINATOR,
9272
9449
  WITHDRAW_PROTOCOL_FEES_DISCRIMINATOR,
9450
+ buildClaimInstruction,
9451
+ buildDeployPublicInstruction,
9273
9452
  decodeBoard,
9274
9453
  decodeEpochVault,
9275
9454
  decodeEpochVaultEntry,
@@ -9351,6 +9530,7 @@ export {
9351
9530
  findSatrushConfigPda,
9352
9531
  findSatsVaultPda,
9353
9532
  findTreasuryPda,
9533
+ getBoardAddress,
9354
9534
  getBoardCodec,
9355
9535
  getBoardDecoder,
9356
9536
  getBoardDiscriminatorBytes,
@@ -9466,26 +9646,31 @@ export {
9466
9646
  getEpochStateCodec,
9467
9647
  getEpochStateDecoder,
9468
9648
  getEpochStateEncoder,
9649
+ getEpochVaultAddress,
9469
9650
  getEpochVaultCodec,
9470
9651
  getEpochVaultDecoder,
9471
9652
  getEpochVaultDiscriminatorBytes,
9472
9653
  getEpochVaultEncoder,
9654
+ getEpochVaultEntryAddress,
9473
9655
  getEpochVaultEntryCodec,
9474
9656
  getEpochVaultEntryDecoder,
9475
9657
  getEpochVaultEntryDiscriminatorBytes,
9476
9658
  getEpochVaultEntryEncoder,
9477
9659
  getEpochVaultEntrySize,
9660
+ getEpochVaultIterationAddress,
9478
9661
  getEpochVaultIterationCodec,
9479
9662
  getEpochVaultIterationDecoder,
9480
9663
  getEpochVaultIterationDiscriminatorBytes,
9481
9664
  getEpochVaultIterationEncoder,
9482
9665
  getEpochVaultIterationSize,
9666
+ getEpochVaultPageAddress,
9483
9667
  getEpochVaultPageCodec,
9484
9668
  getEpochVaultPageDecoder,
9485
9669
  getEpochVaultPageDiscriminatorBytes,
9486
9670
  getEpochVaultPageEncoder,
9487
9671
  getEpochVaultPageSize,
9488
9672
  getEpochVaultSize,
9673
+ getMinerAddress,
9489
9674
  getMinerCodec,
9490
9675
  getMinerDecoder,
9491
9676
  getMinerDiscriminatorBytes,
@@ -9494,6 +9679,7 @@ export {
9494
9679
  getOneBtcStateCodec,
9495
9680
  getOneBtcStateDecoder,
9496
9681
  getOneBtcStateEncoder,
9682
+ getOneBtcVaultAddress,
9497
9683
  getOneBtcVaultCodec,
9498
9684
  getOneBtcVaultDecoder,
9499
9685
  getOneBtcVaultDiscriminatorBytes,
@@ -9503,6 +9689,7 @@ export {
9503
9689
  getOneBtcVaultEntryDiscriminatorBytes,
9504
9690
  getOneBtcVaultEntryEncoder,
9505
9691
  getOneBtcVaultEntrySize,
9692
+ getOneBtcVaultIterationAddress,
9506
9693
  getOneBtcVaultIterationCodec,
9507
9694
  getOneBtcVaultIterationDecoder,
9508
9695
  getOneBtcVaultIterationDiscriminatorBytes,
@@ -9512,6 +9699,7 @@ export {
9512
9699
  getPageEntryCodec,
9513
9700
  getPageEntryDecoder,
9514
9701
  getPageEntryEncoder,
9702
+ getPublicDeploymentAddress,
9515
9703
  getPublicDeploymentCodec,
9516
9704
  getPublicDeploymentDecoder,
9517
9705
  getPublicDeploymentDiscriminatorBytes,
@@ -9522,6 +9710,7 @@ export {
9522
9710
  getRotateRoundInstructionDataCodec,
9523
9711
  getRotateRoundInstructionDataDecoder,
9524
9712
  getRotateRoundInstructionDataEncoder,
9713
+ getRoundAddress,
9525
9714
  getRoundCodec,
9526
9715
  getRoundDecoder,
9527
9716
  getRoundDiscriminatorBytes,
@@ -9529,12 +9718,14 @@ export {
9529
9718
  getRoundStateCodec,
9530
9719
  getRoundStateDecoder,
9531
9720
  getRoundStateEncoder,
9721
+ getSatrushConfigAddress,
9532
9722
  getSatrushConfigCodec,
9533
9723
  getSatrushConfigDecoder,
9534
9724
  getSatrushConfigDiscriminatorBytes,
9535
9725
  getSatrushConfigEncoder,
9536
9726
  getSatrushConfigSize,
9537
9727
  getSatrushErrorMessage,
9728
+ getSatsVaultAddress,
9538
9729
  getSatsVaultCodec,
9539
9730
  getSatsVaultDecoder,
9540
9731
  getSatsVaultDiscriminatorBytes,
@@ -9579,6 +9770,7 @@ export {
9579
9770
  getTileStakeCodec,
9580
9771
  getTileStakeDecoder,
9581
9772
  getTileStakeEncoder,
9773
+ getTreasuryAddress,
9582
9774
  getTreasuryCodec,
9583
9775
  getTreasuryDecoder,
9584
9776
  getTreasuryDiscriminatorBytes,
@@ -9637,5 +9829,7 @@ export {
9637
9829
  parseTriggerEpochDrawInstruction,
9638
9830
  parseTriggerOneBtcDrawInstruction,
9639
9831
  parseWithdrawProtocolFeesInstruction,
9640
- satrushProgram
9832
+ satrushProgram,
9833
+ selectionMaskFromTiles,
9834
+ tilesFromSelectionMask
9641
9835
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@satrush/client",
3
3
  "description": "Typescript client to interact with SatRush's on-chain program.",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "main": "./dist/index.js",
@@ -16,6 +16,7 @@
16
16
  "access": "public"
17
17
  },
18
18
  "dependencies": {
19
+ "@solana-program/token": "^0.14.0",
19
20
  "@solana/kit": "^6.10.0",
20
21
  "@solana/program-client-core": "^6.10.0"
21
22
  },
@@ -24,8 +25,8 @@
24
25
  "@codama/nodes-from-anchor": "^1.1.14",
25
26
  "@codama/renderers-js": "^2.3.0",
26
27
  "@codama/visitors-core": "^1.2.13 ",
27
- "@satrush/prettier-config": "1.0.0",
28
28
  "@satrush/eslint-config": "1.0.0",
29
+ "@satrush/prettier-config": "1.0.0",
29
30
  "@satrush/typescript-config": "1.0.0",
30
31
  "@types/node": "26.0.1",
31
32
  "codama": "^1.2.14",
@@ -47,6 +48,8 @@
47
48
  "eslint:fix": "eslint \"src/**/*.ts\" --fix",
48
49
  "type-check": "tsc -p .",
49
50
  "lint": "pnpm eslint && pnpm type-check",
51
+ "test": "vitest run --disable-console-intercept",
52
+ "test:watch": "vitest watch",
50
53
  "clean": "rimraf dist src/generated"
51
54
  }
52
55
  }