test-npm-den
Advanced tools
Comparing version 1.0.32 to 1.0.33
{ | ||
"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 @@ } |
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
105106
2004