Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@everstake/eversol-ts-sdk

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@everstake/eversol-ts-sdk - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

3

eversol-ts-sdk/eSol.js

@@ -14,2 +14,5 @@ import { ESolConfig } from './config';

async depositSolTransaction(userAddress, lamports, referrerAccount, poolTokenReceiverAccount, daoCommunityTokenReceiverAccount, referrerTokenAccount) {
if (userAddress.toString() === referrerAccount.toString()) {
throw new Error(`Referrer address can't be the same as user address`);
}
const CONNECTION = this.config.connection;

@@ -16,0 +19,0 @@ const userSolBalance = await CONNECTION.getBalance(userAddress, 'confirmed');

2

package.json
{
"name": "@everstake/eversol-ts-sdk",
"version": "1.0.5",
"version": "1.0.6",
"description": "Eversol ts sdk",

@@ -5,0 +5,0 @@ "main": "eversol-ts-sdk/index.js",

@@ -68,41 +68,1 @@ <div align="center">

- [Eversol docs](https://docs.eversol.one/overview/welcome-to-eversol)
export const STAKE_POOL_LAYOUT = struct<StakePool>([
// rustEnum(AccountTypeKind, 'accountType'),
u8("accountType"),
publicKey("manager"),
publicKey("staker"),
publicKey("stakeDepositAuthority"),
u8("stakeWithdrawBumpSeed"),
publicKey("validatorList"),
publicKey("reserveStake"),
publicKey("poolMint"),
publicKey("managerFeeAccount"),
publicKey("tokenProgramId"),
u64("totalLamports"),
u64("poolTokenSupply"),
u64("lastUpdateEpoch"),
struct([u64("unixTimestamp"), u64("epoch"), publicKey("custodian")], "lockup"),
struct(feeFields, "epochFee"),
option(struct(feeFields), "nextEpochFee"),
option(publicKey(), "preferredDepositValidatorVoteAddress"),
option(publicKey(), "preferredWithdrawValidatorVoteAddress"),
struct(feeFields, "stakeDepositFee"),
struct(feeFields, "stakeWithdrawalFee"),
option(struct(feeFields), "nextWithdrawalFee"),
u8("stakeReferralFee"),
option(publicKey(), "solDepositAuthority"),
struct(feeFields, "solDepositFee"),
u8("solReferralFee"),
option(publicKey(), "solWithdrawAuthority"),
struct(feeFields, "solWithdrawalFee"),
option(struct(feeFields), "nextSolWithdrawalFee"),
u64("lastEpochPoolTokenSupply"),
u64("lastEpochTotalLamports"),
option(struct(rateOfExchangeFields), "rateOfExchange"),
publicKey("treasuryFeeAccount"),
struct(feeFields, "treasuryFee"),
u64("totalLamportsLiquidity"),
]);
maxValidatorYieldPerEpochNumerator: BN;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc