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.32 to 1.0.33

2

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

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

@@ -1,2 +0,2 @@

import { PublicKey, Connection } from '@solana/web3.js';
import { PublicKey, Connection, clusterApiUrl } from '@solana/web3.js';
import { StakePoolProgram } from '../service/stakepool-program';

@@ -16,2 +16,5 @@ const TESTNET_PROVIDER_URL = 'https://api.testnet.solana.com';

this.publicKey = null;
console.log(clusterType, "clusterType");
const API_ENDPOINT = clusterApiUrl(clusterType);
this.connection = new Connection(API_ENDPOINT);
switch (clusterType) {

@@ -21,3 +24,2 @@ case 'testnet':

this.eSOLProgramId = new PublicKey(TESTNET_STAKEPOOL_PROGRAM_ID);
this.connection = new Connection(TESTNET_PROVIDER_URL);
break;

@@ -27,3 +29,2 @@ case 'mainnet-beta':

this.eSOLProgramId = new PublicKey(MAINNET_STAKEPOOL_PROGRAM_ID);
this.connection = new Connection(MAINNET_PROVIDER_URL);
StakePoolProgram.changeProgramId('EverSFw9uN5t1V8kS3ficHUcKffSjwpGzUSGd7mgmSks');

@@ -30,0 +31,0 @@ break;

@@ -37,2 +37,6 @@ 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

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

@@ -256,2 +256,3 @@ 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);

@@ -258,0 +259,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