@wireio/stake 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/stake.d.ts CHANGED
@@ -65,6 +65,7 @@ interface IStakingClient {
65
65
  minBufferLamports?: bigint;
66
66
  balanceOverrideLamports?: bigint;
67
67
  }): Promise<bigint>;
68
+ validatorDeposit(): Promise<string>;
68
69
  }
69
70
  /**
70
71
  * Cross-chain portfolio view for a single account/wallet.
@@ -349,6 +350,11 @@ interface WithdrawReceipt {
349
350
  readyAt: number;
350
351
  };
351
352
  }
353
+ interface ValidatorDepositedEvent {
354
+ sender: string;
355
+ amount: BigNumber;
356
+ shares: BigNumber;
357
+ }
352
358
 
353
359
  type types$1_AddressBook = AddressBook;
354
360
  declare const types$1_CONTRACT_NAMES: typeof CONTRACT_NAMES;
@@ -359,6 +365,7 @@ type types$1_DepositResult = DepositResult;
359
365
  type types$1_SharesBurnedEvent = SharesBurnedEvent;
360
366
  type types$1_StakedEvent = StakedEvent;
361
367
  type types$1_StakedResult = StakedResult;
368
+ type types$1_ValidatorDepositedEvent = ValidatorDepositedEvent;
362
369
  type types$1_WithdrawReceipt = WithdrawReceipt;
363
370
  type types$1_WithdrawRequestedEvent = WithdrawRequestedEvent;
364
371
  type types$1_WithdrawResult = WithdrawResult;
@@ -367,7 +374,7 @@ type types$1_WithdrawnStakeResult = WithdrawnStakeResult;
367
374
  type types$1_preLaunchReceipt = preLaunchReceipt;
368
375
  declare namespace types$1 {
369
376
  export { types$1_CONTRACT_NAMES as CONTRACT_NAMES };
370
- export type { types$1_AddressBook as AddressBook, types$1_ClaimedEvent as ClaimedEvent, types$1_ContractName as ContractName, types$1_DepositEvent as DepositEvent, types$1_DepositResult as DepositResult, types$1_SharesBurnedEvent as SharesBurnedEvent, types$1_StakedEvent as StakedEvent, types$1_StakedResult as StakedResult, types$1_WithdrawReceipt as WithdrawReceipt, types$1_WithdrawRequestedEvent as WithdrawRequestedEvent, types$1_WithdrawResult as WithdrawResult, types$1_WithdrawnStakeEvent as WithdrawnStakeEvent, types$1_WithdrawnStakeResult as WithdrawnStakeResult, types$1_preLaunchReceipt as preLaunchReceipt };
377
+ export type { types$1_AddressBook as AddressBook, types$1_ClaimedEvent as ClaimedEvent, types$1_ContractName as ContractName, types$1_DepositEvent as DepositEvent, types$1_DepositResult as DepositResult, types$1_SharesBurnedEvent as SharesBurnedEvent, types$1_StakedEvent as StakedEvent, types$1_StakedResult as StakedResult, types$1_ValidatorDepositedEvent as ValidatorDepositedEvent, types$1_WithdrawReceipt as WithdrawReceipt, types$1_WithdrawRequestedEvent as WithdrawRequestedEvent, types$1_WithdrawResult as WithdrawResult, types$1_WithdrawnStakeEvent as WithdrawnStakeEvent, types$1_WithdrawnStakeResult as WithdrawnStakeResult, types$1_preLaunchReceipt as preLaunchReceipt };
371
378
  }
372
379
 
373
380
  declare const INITIAL_TRANCHE_SUPPLY = 35000;
@@ -382,6 +389,7 @@ declare class EthereumStakingClient implements IStakingClient {
382
389
  private stakeClient;
383
390
  private oppClient;
384
391
  private receiptClient;
392
+ private validatorClient;
385
393
  get contract(): {
386
394
  LiqEthAuthority: ethers.Contract;
387
395
  BeaconState: ethers.Contract;
@@ -450,6 +458,10 @@ declare class EthereumStakingClient implements IStakingClient {
450
458
  */
451
459
  unstakePrelaunch(tokenId: bigint, recipient: string): Promise<string>;
452
460
  buy(amount: bigint): Promise<string>;
461
+ /**
462
+ * Validator functions
463
+ */
464
+ validatorDeposit(): Promise<string>;
453
465
  /**
454
466
  * Resolve the user's ETH + liqETH balances.
455
467
  *