Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@orbs-network/pos-analytics-lib
Advanced tools
PoS analytics library. For web based queries of aggregated data.
Library to use to extract PoS data of the Orbs Network (for V2).
npm i @orbs-network/pos-analytics-lib
Used to query information about delegator's stake, previous actions and rewards. Funciton's input is the requested delegator's address and an Ethereum endpoint (for example infura link with apikey).
const delegatorInfo = await getDelegator(
'0xB4D4f0E476Afe791B26B39985A65B1bC1BBAcdcA',
ethereumEndpoint
);
Used to query the list of all current Guardians and their names and weights. Function's input is a list of ORBS node management status URLs.
const guardians = await getGuardians(nodeEndpoints);
Used to query a guardian's staking and delegator history, rewards history and list all current delegators. Function's input is the requested guardian's address and an Ethereum endpoint (for example infura link with apikey).
const guardianInfo = await getGuardian(
'0xf7ae622c77d0580f02bcb2f92380d61e3f6e466c',
ethereumEndpoint
);
Used to get an overview of the ORBS network nodes (guardians) stakes and weight history. Function's input is a list of ORBS node management status URLs and an Ethereum endpoint.
const overview = await getOverview(nodeEndpoints, ethereumEndpoint);
Please have a look at the model.ts for the full output definisions.
git clone https://github.com/orbs-network/pos-analytics-lib
cd pos-analytics-lib
npm run build
npm run clean
There is only an "E2E" like test that calls all functions of the library, to run it you must setup an Ethereum-Endpoint for web3 http provider. This can be done by setting an enviroment variable in your running IDEA named ETHEREUM_ENDPOINT
, or adding a file named .env
at the root of the directory and in that file have one line ETHEREUM_ENDPOINT=https://mainnet.infura.io/v3/<YOUR-INFURA-KEY>
Then you can run the test
npm run test
The results will be in a direcotry data
under root direcotry of the project. You will see 4 json files, one for each function call.
FAQs
PoS analytics library. For web based queries of aggregated data.
The npm package @orbs-network/pos-analytics-lib receives a total of 2 weekly downloads. As such, @orbs-network/pos-analytics-lib popularity was classified as not popular.
We found that @orbs-network/pos-analytics-lib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.