
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
plugin-pricing-index-pair
Advanced tools
package which brings pricing index pair using Plugin Decentralized Oracle
Package which brings pricing index pair using Plugin Decentralized Oracle
Install plugin-pricing-index-pair with npm
npm install plugin-pricing-index-pair
var { custom_pair,default_pair,show } = require("plugin-pricing-index-pair");
var ProviderOptions={
CONTRACT_ADDR:"0xB5B54e202ae923381DBc3859196d88004d85f361",
RPC_URL:"https://erpc.xinfin.network",
FSymbol:"PLI",
TSymbol:"USDT"
}
async function main() {
//to Apply custom index-pairs
<!-- const returnCodeA = await custom_pair(ProviderOptions);
if(returnCodeA){
const result = await show(ProviderOptions);
console.log("log::::result::::",result/10000)
} -->
// //to get default index-pair for the provided contract_address
const returncodeB = await default_pair(ProviderOptions);
if(returncodeB){
const result = await show(ProviderOptions);
console.log("log::::result::::",result/10000)
}
}
main()
| Functions | Descriptions |
|---|---|
| custom_pair | it enables you to override index-pairs and retrieve price pair |
| default_pair | It gets you the default index-pair that contract is configured for |
| show | will get you the latestAnswer for the given index-pair |
| CONTRACT_ADDR | 0xB5B54e202ae923381DBc3859196d88004d85f361 (Default contract address if you want to override custom symbols) |
| RPC_URL | https://erpc.xinfin.network |
| FSymbol | PLI |
| TSymbol | USDT |
FAQs
package which brings pricing index pair using Plugin Decentralized Oracle
We found that plugin-pricing-index-pair demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.