@cega-fi/cega-sdk-sol-v2
v1.0.3
Published
an sdk to communicate with Cega's Solana programs v2
Downloads
32
Readme
Cega SDK for Solana Smart Contract Vaults
This is the official SDK V2 for interacting with Cega’s Solana-based smart contract (SC) vaults. It provides an interface to communicate with Cega’s vaults on the Solana blockchain, allowing developers to integrate these functionalities into their projects with ease.
Features
- Communicate with Cega’s Solana smart contract vaults.
- Supports Solana’s web3.js and SPL token interactions.
- Easily integrated into Solana-based decentralized applications (dApps).
Installation
You can install the SDK via npm or yarn:
# Using yarn
yarn add @cega-fi/cega-sdk-sol-v2
# Using npm
npm install @cega-fi/cega-sdk-sol-v2
Available Scripts
The SDK includes several scripts for development and formatting:
Important: This project has been developed using Yarn from the beginning, so you must continue using Yarn to manage dependencies and scripts. Using npm may create a conflicting
package-lock.json
file, which can cause issues with dependency resolution.
build
yarn build
This script compiles the TypeScript code into JavaScript using the TypeScript compiler (tsc). The compiled files will be available in the dist/ directory.
prepublishOnly
yarn prepublishOnly
This script ensures that the SDK is built before being published. It runs automatically during the npm publish process to avoid any missing build artifacts.
format-fix
yarn format-fix
This script formats all the files in the project using Prettier, ensuring that your code follows the project’s style guidelines.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Resources
- Cega dApp - app.cega.fi
- Cega Docs - docs.cega.fi