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

test-npm-den

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-npm-den - npm Package Compare versions

Comparing version 1.0.33 to 1.0.34

2

package.json
{
"name": "test-npm-den",
"version": "1.0.33",
"version": "1.0.34",
"description": "Test",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,4 +29,4 @@ <div align="center">

// or for testnet
const eSol = new ESol(); // or give 'testnet' as the argument
// initializes for testnet
const eSol = new ESol('testnet');
```

@@ -56,7 +56,7 @@

Skip the basic Solana cool-down period and undelegate stake instantly. If the feature is not available (meaning there is not enough liquidity/reserve in the pool to cover instant unstaking), please use the standard Unstake:
Your stake will be deactivated with the beginning of a new epoch. Once the stake is inactive, feel free to withdraw the tokens within your wallet, in compliance with regular Solana staking terms.
```ts
...
const instantUnstakeTransaction = await eSol.unDelegateSolTransaction(userAddress, amountLamports)
const delayedUnstakeTransaction = await eSol.withdrawSolTransaction(userAddress, amountLamports)
// than sign and send the `transaction`

@@ -63,0 +63,0 @@ ```

@@ -16,3 +16,2 @@ import { PublicKey, Connection, clusterApiUrl } from '@solana/web3.js';

this.publicKey = null;
console.log(clusterType, "clusterType");
const API_ENDPOINT = clusterApiUrl(clusterType);

@@ -31,5 +30,5 @@ this.connection = new Connection(API_ENDPOINT);

default:
throw new Error('clusterType must be specified');
throw new Error('clusterType must be testnet or mainnet-beta');
}
}
}

@@ -37,6 +37,2 @@ import { ESolConfig } from './config';

}
console.log(this.config.eSOLStakePoolAddress, "eSOLStakePoolAddress");
console.log(this.config.eSOLProgramId, "eSOLProgramId");
console.log(stakePoolAddress, "stakePoolAddress");
console.log(StakePoolProgram.programId, "StakePoolProgram.programId");
// Check dao stake accounts

@@ -43,0 +39,0 @@ const seedPrefixDaoState = this.config.seedPrefixDaoState;

@@ -32,43 +32,2 @@ import { PublicKey } from "@solana/web3.js";

export declare const ACCOUNT_LAYOUT: any;
export declare enum AccountType {
Uninitialized = 0,
StakePool = 1,
ValidatorList = 2
}
export interface StakePool {
accountType: AccountType;
manager: PublicKey;
staker: PublicKey;
stakeDepositAuthority: PublicKey;
stakeWithdrawBumpSeed: number;
validatorList: PublicKey;
reserveStake: PublicKey;
poolMint: PublicKey;
managerFeeAccount: PublicKey;
tokenProgramId: PublicKey;
totalLamports: BN;
poolTokenSupply: BN;
lastUpdateEpoch: BN;
lockup: Lockup;
epochFee: Fee;
nextEpochFee?: Fee | undefined;
preferredDepositValidatorVoteAddress?: PublicKey | undefined;
preferredWithdrawValidatorVoteAddress?: PublicKey | undefined;
stakeDepositFee: Fee;
stakeWithdrawalFee: Fee;
nextWithdrawalFee?: Fee | undefined;
stakeReferralFee: number;
solDepositAuthority?: PublicKey | undefined;
solDepositFee: Fee;
solReferralFee: number;
solWithdrawAuthority?: PublicKey | undefined;
solWithdrawalFee: Fee;
nextSolWithdrawalFee?: Fee | undefined;
lastEpochPoolTokenSupply: BN;
lastEpochTotalLamports: BN;
rateOfExchange?: RateOfExchange | undefined;
treasuryFeeAccount: PublicKey;
treasuryFee: Fee;
totalLamportsLiquidity: BN;
}
export declare const DAO_STATE_LAYOUT: any;

@@ -75,0 +34,0 @@ export declare const COMMUNITY_TOKEN_LAYOUT: any;

@@ -17,8 +17,2 @@ import { publicKey, struct, u32, u64, u8, option, vec, bool } from "@project-serum/borsh";

]);
export var AccountType;
(function (AccountType) {
AccountType[AccountType["Uninitialized"] = 0] = "Uninitialized";
AccountType[AccountType["StakePool"] = 1] = "StakePool";
AccountType[AccountType["ValidatorList"] = 2] = "ValidatorList";
})(AccountType || (AccountType = {}));
export const DAO_STATE_LAYOUT = struct([bool("isEnabled")]);

@@ -25,0 +19,0 @@ export const COMMUNITY_TOKEN_LAYOUT = struct([publicKey("tokenMint")]);

import { PublicKey, Connection, AccountInfo, TransactionInstruction } from '@solana/web3.js';
import { StakePool } from '../layouts/index';
import { StakePool } from "./layouts";
export interface StakePoolAccount {

@@ -4,0 +4,0 @@ pubkey: PublicKey;

@@ -256,3 +256,2 @@ import { PublicKey, Transaction, TransactionInstruction, StakeProgram, StakeAuthorizationLayout, SYSVAR_CLOCK_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, SystemProgram, SYSVAR_RENT_PUBKEY, } from '@solana/web3.js';

static changeProgramId(id) {
console.log(id, "change id");
this.programId = new PublicKey(id);

@@ -259,0 +258,0 @@ }

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