
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@demox-labs/solreq
Advanced tools
An Oracle on Solana based on the Demox Protocol.
This repository implements the Solana program and provides some utilities to make interacting with it easier.
This repository creates the:
yarn installsolana-test-validator in a separate shell;solana-keygen new -o ~/.config/solana/id.jsonAnchor.example.toml to Anchor.toml and update the wallet = to your solana pubkey;solana airdrop --url localhost 1001anchor buildanchor deploy --provider.wallet ~/.config/solana/id.json --provider.cluster localnet6DeKhrczNofy2fhDhJXnyZpMnRnS4oA4q3NicngF7fzT in all files
at your clone of this repository with your new Program Id.anchor test --provider.wallet ~/.config/solana/id.json --provider.cluster localnetAdd solreq = { version = "0.1.5", features = ["cpi"] } to your Cargo.toml
npm i @demox-labs/solreq --save
If you're writing a Solana program to interact with this one, we recommend:
solana-test-validatoranchor buildanchor deploy --provider.wallet <wallet_pathname.json> or anchor test --skip-local-validator
to deploy the program to test validator. You'll need to redo this if you ever reset the
solana-test-validator for example by running it with -r.Now you can run your program using for example:
anchor build && anchor deploy && node my-script.jsanchor test --skip-test-validatorYou could alternatively copy the state of devnet and load it locally but full installation is recommended as described. Any CPI call should test all error states & full installation makes development much easier if you can update the program to force them.
The best resource for understanding how to interact with solreq is through the P2P Coin Flip is the example here: https://github.com/evanmarshall/cross-pile
The tests, tests/solreq.ts, provide examples in how to use our client library.
nvm install 16.11.1
nvm use 16.11.1
cargo install --git https://github.com/project-serum/anchor avm --locked --forceWe use the GNU Affero General Public License v3.0 or later license to ensure the community will always have access to all original
and derivations of this program. Full text here: https://spdx.org/licenses/AGPL-3.0-or-later.html
FAQs
A js client to interact with the solreq program
We found that @demox-labs/solreq demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.