@everstake/eversol-ts-sdk
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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'); |
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2129
112665
68