Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@deriverse/sdk
Advanced tools
work in progress
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 mango-v4
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 mango-v4
crate for
building closed-source tools and integrations, including other solana programs
that call into the mango program.
But deriving a solana program with similar functionality to the mango program from this codebase would require the changes and improvements to stay publicly available under GPL.
See DEVELOPING.md and FAQ-DEV.md
MacOS M1 note - in rust-toolchain.toml
file replace channel to 1.70.0-x86_64-apple-darwin
.
For Mac with M1: In
rust-toolchain.toml
file replace channel to1.70.0-x86_64-apple-darwin
anchor build -- --features "enable-gpl"
anchor keys list
# it should return mango_v4: <you program id>
# in programs/mango-v4/src/lib.rs replace declare_id with your one
# find file release-to-devnet.sh and change RPC_URL and PROGRAM_ID for your need
# also look at WALLET_WITH_FUNDS file, it should point to file with private key to wallet with funds on devnet
# then run:
./release-to-devnet.sh
# you deployed dex program properly
spl-token create-token
# it will return some token address, copy it
spl-token mint <token address> 10000000000 # or how many you want
Go to devnet-admin.ts
file.
const DEVNET_MINTS = new Map([
['USDC', '<replace with your token id>'], // use devnet usdc
['SOL', 'So11111111111111111111111111111111111111112'],
]);
// adjust those constants
const RCP_ENDPOINT = process.env.RCP_ENDPOINT || 'https://api.devnet.solana.com';
const ADMIN_KEYPAIR = process.env.ADMIN_KEYPAIR || '<path>/.config/solana/id.json';
const CLUSTER = process.env.CLUSTER || 'devnet';
Run this script. From log read group id and make sure that market is created.
Now using Mango cli we will create new account. To run to, go into ./bin/cli
. Build project using cargo build. After that:
cargo run create-account --group <your group id> --owner ~/.config/solana/id.json --url d
You can also use .env file.
After those steps your devnet env should be ready to use.
FAQs
Typescript Client for deriverse program.
We found that @deriverse/sdk 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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.