Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
dsov-utils
Advanced tools
[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen)](https://sdx-utils.netlify.app/) [![npm version](https://badge.fury.io/js/dsov-utils.svg)](https://badge.fury.io/js/dsov-utils) ![License](https://img.shields.io/badge/License-U
To install SDX Utils, you need to have Node.js and yarn installed on your system. If you have those, you can install the package via yarn:
yarn add dsov-utils
To publish, ensure that NVM is in Node 16 and run yarn publish
.
Here is a basic example of how to use SDX Utils:
import * as anchor from "@project-serum/anchor";
import { PublicKey } from "@solana/web3.js";
import { client, programTypes } from "dsov-utils";
const sdxClient = new client.SdxClient({
clusterUrl: "https://api.devnet.solana.com",
sdxProgramId: new PublicKey(...),
euroPrimitiveProgramId: new PublicKey(...),
wallet: new anchor.Wallet(...),
idl: programTypes.IDL,
});
// Add Asset Details
const btcAssetDetails = {...};
sdxClient.addAsset(client.AssetType.BTC, btcAssetDetails);
// Deposit as Liquidity Provider
await sdxClient.depositToVault(
client.AssetType.BTC,
new BN(...),
new BN(...)
);
We use TypeDoc for generating API documentation. To generate docs, follow these steps:
yarn install
yarn build:docs
The documentation will be generated in the docs
directory in the project root.
Our docs are hosted with Netlify as Github Pages doesn't work with private repos. You can use Netlify's Command Line Interface (CLI) to deploy the documentation site. Here's how to do it:
npm install netlify-cli -g # install Netlify CLI
netlify deploy # create a draft deployment
netlify deploy --prod # create a production deployment
The netlify deploy command will prompt you to provide a publish directory. This should be the docs directory where your built documentation resides.
The first netlify deploy command creates a draft version of your site and provides a draft URL for you to check. If everything looks good on your draft URL, deploy it to your main site URL with the --prod flag using netlify deploy --prod.
yarn install
yarn pack
in dsov-utils folderyarn add /Users/harsh/dsov/packages/dsov-utils/dsov-utils-v0.0.6-rc58.tgz
To build and publish the package, run:
yarn publish
We welcome contributions! Please see our Contributing Guide for more details.
FAQs
[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen)](https://sdx-utils.netlify.app/) [![npm version](https://badge.fury.io/js/dsov-utils.svg)](https://badge.fury.io/js/dsov-utils) ![License](https://img.shields.io/badge/License-U
The npm package dsov-utils receives a total of 102 weekly downloads. As such, dsov-utils popularity was classified as not popular.
We found that dsov-utils demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.