@wireio/stake 1.5.69 → 1.7.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/lib/stake.browser.js +320 -46
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +44 -2
- package/lib/stake.js +531 -205
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +320 -46
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/ethereum/hoodi/common/Base58.sol/Base58.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/OpenZepArtifacts.sol/__Dummy_OZ_UUPS__.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/RestrictedCallers.sol/RestrictedCallers.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/iodata.sol/iodata.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/iodata_util.sol/iodata_util.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_data.sol/sysio_data.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_errors.sol/sysio_errors.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_merkle.sol/sysio_merkle.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_name.sol/sysio_name.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_pubkey.sol/sysio_pubkey.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_read.sol/sysio_read.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_tester.sol/SysioTester.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_verify.sol/sysio_verify.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/common/sysio_write.sol/sysio_write.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/BeaconState.sol/BeaconState.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/DepositManager.sol/DepositManagerV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthAuthority.sol/LiqEthAuthority.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthDeepFreeze.sol/LiqEthDeepFreeze.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/LiqEthManaged.sol/LiqEthManaged.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20.sol/RewardsERC20UpgradeableV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeableV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/Yield.sol/YieldOracle.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/accounting.sol/AccountingV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/liqEth.sol/LiqEthTokenV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/stakingModule.sol/StakingModuleV2.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/DepositManager.sol/DepositManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/ILiqEthUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IRewardsERC20Pausable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20.sol/RewardsERC20Upgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/RewardsERC20Pausable.sol/RewardsERC20PausableUpgradeable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/accounting.sol/Accounting.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/liqEth.sol/LiqEthToken.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/v1/stakingModule.sol/StakingModule.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/BAR.sol/BAR.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/Depositor.sol/Depositor.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/IDepositorBridgeHooks.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/LiqEthBridge.sol/LiqEthBridge.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPP.sol/OPP.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPP.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPInbound.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/IOPPSender.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPCommon.sol/OPPCommon.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPErrors.sol/OPPErrors.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPInbound.sol/OPPInbound.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OPPSender.sol/OPPSender.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OperatorRegistry.sol/OperatorRegistry.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManager.sol/OutpostManager.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/OutpostReserve.sol/OutpostReserve.json +2 -2
- package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/outpost/Pretoken.sol/Pretoken.json +2 -2
- package/src/assets/ethereum/hoodi/token/ERC1155Token.sol/ERC1155Token.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/token/ERC20Token.sol/ERC20Token.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/token/ERC721Token.sol/ERC721Token.dbg.json +1 -1
- package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/Eman1155.sol/Eman1155.json +560 -0
- package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/Eman20.sol/Eman20.json +460 -0
- package/src/assets/ethereum/hoodi/token/Eman721.sol/Eman721.dbg.json +4 -0
- package/src/assets/ethereum/hoodi/token/Eman721.sol/Eman721.json +624 -0
- package/src/index.ts +1 -0
- package/src/networks/ethereum/contract.ts +61 -25
- package/src/networks/solana/clients/outpost.client.ts +20 -2
- package/src/networks/solana/constants.ts +1 -1
- package/src/networks/solana/solana.ts +96 -6
- package/src/status.ts +301 -0
package/lib/stake.d.ts
CHANGED
|
@@ -19243,6 +19243,7 @@ declare class OutpostClient {
|
|
|
19243
19243
|
* Internal helper: get raw token balance (BN) for a given ATA.
|
|
19244
19244
|
*/
|
|
19245
19245
|
private getTokenBalance;
|
|
19246
|
+
private isMissingTokenAccountError;
|
|
19246
19247
|
/**
|
|
19247
19248
|
* Fetch an OutpostAccount, handling legacy accounts that pre-date the
|
|
19248
19249
|
* three trailing Option<u64> fields. If the normal decode throws a
|
|
@@ -19411,6 +19412,17 @@ declare class SolanaStakingClient implements IStakingClient {
|
|
|
19411
19412
|
* Claim a withdrawal receipt (burn NFT + receive SOL) via claim_withdraw.
|
|
19412
19413
|
*/
|
|
19413
19414
|
claimWithdraw(tokenId: bigint): Promise<string>;
|
|
19415
|
+
getLiqsolDestinationOwner(owner?: PublicKey$1): PublicKey$1;
|
|
19416
|
+
getLiqsolDestinationAta(owner?: PublicKey$1): PublicKey$1;
|
|
19417
|
+
getLiqsolDestinationAtaState(owner?: PublicKey$1): Promise<{
|
|
19418
|
+
owner: PublicKey$1;
|
|
19419
|
+
mint: PublicKey$1;
|
|
19420
|
+
ata: PublicKey$1;
|
|
19421
|
+
exists: boolean;
|
|
19422
|
+
}>;
|
|
19423
|
+
maybeBuildCreateLiqsolDestinationAtaIx(owner?: PublicKey$1): Promise<TransactionInstruction | null>;
|
|
19424
|
+
ensureLiqsolDestinationAta(owner?: PublicKey$1): Promise<string | null>;
|
|
19425
|
+
private prependLiqsolDestinationAtaIx;
|
|
19414
19426
|
/**
|
|
19415
19427
|
* Claim accrued liqSOL distribution rewards (liqsol_core::claim_rewards).
|
|
19416
19428
|
*/
|
|
@@ -19490,6 +19502,7 @@ declare class SolanaStakingClient implements IStakingClient {
|
|
|
19490
19502
|
*/
|
|
19491
19503
|
ensureUser(): void;
|
|
19492
19504
|
private isLegacyUserRecordMigrationRequired;
|
|
19505
|
+
private isAtaAlreadyCreatedError;
|
|
19493
19506
|
/**
|
|
19494
19507
|
* Unified, chain-agnostic tranche snapshot for Solana.
|
|
19495
19508
|
*
|
|
@@ -19558,5 +19571,34 @@ declare class SolanaStakingClient implements IStakingClient {
|
|
|
19558
19571
|
private getSingleTxFeeLamports;
|
|
19559
19572
|
}
|
|
19560
19573
|
|
|
19561
|
-
|
|
19562
|
-
|
|
19574
|
+
type StakingTxChain = 'eth' | 'sol';
|
|
19575
|
+
type StakingTxState = 'pending' | 'confirmed' | 'failed' | 'not_found';
|
|
19576
|
+
interface StakingTransactionStatus {
|
|
19577
|
+
chain: StakingTxChain;
|
|
19578
|
+
txId: string;
|
|
19579
|
+
state: StakingTxState;
|
|
19580
|
+
timestampMs: number | null;
|
|
19581
|
+
blockNumber?: number;
|
|
19582
|
+
slot?: number;
|
|
19583
|
+
confirmations?: number | null;
|
|
19584
|
+
errorMessage?: string;
|
|
19585
|
+
}
|
|
19586
|
+
interface EthereumSubmitStepResult {
|
|
19587
|
+
stepId: 'deposit' | 'approve' | 'source';
|
|
19588
|
+
label: string;
|
|
19589
|
+
txId: string;
|
|
19590
|
+
timestampMs: number | null;
|
|
19591
|
+
}
|
|
19592
|
+
interface EthereumStakeSubmission {
|
|
19593
|
+
finalTxId: string;
|
|
19594
|
+
steps: EthereumSubmitStepResult[];
|
|
19595
|
+
}
|
|
19596
|
+
type EthereumLikeProvider = ethers.providers.Web3Provider | ethers.providers.JsonRpcProvider;
|
|
19597
|
+
declare function getEthereumTransactionStatus(source: EthereumStakingClient | EthereumLikeProvider, txId: string): Promise<StakingTransactionStatus>;
|
|
19598
|
+
declare function getSolanaTransactionStatus(source: SolanaStakingClient | Connection, txId: string): Promise<StakingTransactionStatus>;
|
|
19599
|
+
declare function getStakingClientTransactionStatus(client: EthereumStakingClient | SolanaStakingClient, txId: string): Promise<StakingTransactionStatus>;
|
|
19600
|
+
declare function submitEthereumStakeToWireFlow(client: EthereumStakingClient, amount: bigint | string | number | BigNumber, wireAccount: string): Promise<EthereumStakeSubmission>;
|
|
19601
|
+
declare function submitEthereumDepositAndStakeToWireFlow(client: EthereumStakingClient, amount: bigint | string | number | BigNumber, wireAccount: string): Promise<EthereumStakeSubmission>;
|
|
19602
|
+
|
|
19603
|
+
export { ADDRESSES, ADDRESS_BOOK_BY_CHAIN, CHAINLINK_FEED, CHAINLINK_PROGRAM, CONTRACTS_BY_CHAIN, ConvertClient, DEFAULT_AVERAGE_PAY_RATE, DEFAULT_PAY_RATE_LOOKBACK, DistributionClient, EPHEMERAL_RENT_EXEMPTION, ERC1155Abi, ERC20Abi, ERC721Abi, types$1 as ETH, EthereumContractService, EthereumInstaswapClient, EthereumStakingClient, HOODI_ADDRESSES, INDEX_SCALE, INITIAL_TRANCHE_SUPPLY, LAMPORTS_PER_SOL, LeaderboardClient, MAINNET_ADDRESSES, OutpostClient, PAY_RATE_SCALE_FACTOR, PDA_SEEDS, PROGRAM_IDS_BY_CHAIN, PurchaseAsset, ReceiptNFTKind, SCALE, types as SOL, SolanaInstaswapClient, SolanaStakingClient, Staker, SupportedEvmChainID, SupportedSolChainID, TokenClient, airdropSol, buildOutpostAccounts, buildSolanaInstaswapCrossChainAccounts, buildSolanaSyndicateAccounts, buildSolanaTrancheLadder, buildSolanaTrancheSnapshot, ceilDiv, deriveEphemeralStakeAddress, generateRandomDepositAmount, generateTestKeypair, getEpochSnapshot, getErrorMessage, getEthereumTransactionStatus, getProgramIds, getSolanaTransactionStatus, getStakingClientTransactionStatus, lamportsToSol, msToEpochEnd, normalizeToBigInt, safeFetch, scheduledInstruction, sleep, solToLamports, submitEthereumDepositAndStakeToWireFlow, submitEthereumStakeToWireFlow, toBigint, tokensToShares, waitForConfirmation, waitUntilSafeToExecuteFunction };
|
|
19604
|
+
export type { BalanceView, ChainSymbol, ContractConfig, ContractOptions, Contracts, EpochSnapshot, EthereumDepositToWireParams, EthereumEnsureLiqEthBalanceParams, EthereumInstaswapConnectedBalances, EthereumInstaswapOutpostAddresses, EthereumInstaswapSubmitHooks, EthereumInstaswapSubmitParams, EthereumStakeSubmission, EthereumSubmitStepResult, IStakingClient, OPPAssertion, OutpostAccounts, Portfolio, PurchaseQuote, ScheduleConfig, SolanaDepositToWireParams, SolanaInstaswapConnectedBalances, SolanaInstaswapSubmitHooks, SolanaInstaswapSubmitParams, SolanaProgramIds, SquadsXConfig, StakerConfig, StakingTransactionStatus, StakingTxChain, StakingTxState, TrancheLadderItem, TrancheSnapshot, WithdrawReceipt$1 as WithdrawReceipt, WithdrawStatus, YieldView };
|