Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.