
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@openbook-dex/openbook-v2
Advanced tools
A central-limit order-book program based on Mango V4 and the previous OpenBook program (which was a fork of Serum).
See the LICENSE file.
The majority of this repo is MIT-licensed, but some parts needed for compiling the Solana program are under GPL.
All GPL code is gated behind the enable-gpl
feature. If you use the openbook-v2
crate as a dependency with the client
or cpi
features, you use only MIT
parts of it.
The intention is for you to be able to depend on the openbook-v2
crate for
building closed-source tools and integrations, including other Solana programs
that call into the Openbook program.
But deriving a Solana program with similar functionality to the Openbook program from this codebase would require the changes and improvements to stay publicly available under GPL.
tag | network | program ID |
---|---|---|
v1.7 | mainnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
v1.7 | devnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
v1.7 | testnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
Before you can build the program, you will first need to install the following:
To install the repo, run:
git clone https://github.com/openbook-dex/openbook-v2.git --recursive
The recursive flag ensures that you receive all of the submodules. If you have already cloned without passing in this flag, you can run:
git submodule init
git submodule update
To ensure that you always have the latest submodules, you can configure your git like so:
git config --global submodule.recurse true
To build, run:
just build
To generate the progam & typescript IDLs, run:
just idl
To see whether all of the tests are passing, run:
just test-all
To drill down on a specific test (e.g., test_expired_order), run:
just test test_expired_order
If you want to have tests that automatically re-run when you edit a file, install entr and run:
just test-dev
yarn build
export SOL_RPC_URL=https://a.b.c
export KEYPAIR="[1,2,3,4,...]"
yarn ts/client/src/test/market.ts
yarn ts/client/src/test/openOrders.ts
FAQs
Typescript Client for openbook-v2 program.
The npm package @openbook-dex/openbook-v2 receives a total of 0 weekly downloads. As such, @openbook-dex/openbook-v2 popularity was classified as not popular.
We found that @openbook-dex/openbook-v2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.