0.0.13 • Published 25 days ago

@synofinance/solana-sdk v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

Solana TypeScript SDK

It contains IDL types generated from Solana spoke program.

Install and quick check

Install

yarn install

Build and quick check

Build:

yarn run clean
yarn run build

Quick check:

This will execute a set of transactions against the program with the ID set in the IDL.

These are essentially smoke tests; they will do nothing significant and fail only within the handler body.

This means that the entire Anchor instruction accounts validation has passed, which is the purpose of these tests.

yarn run start-test

Howto import to project:

Import as github dependency:

Main repo:

"solana-sdk": "git+https://github.com/SynonymFinance/solana-sdk"

If specific commit hash is required:

"solana-sdk": "git+https://github.com/SynonymFinance/solana-sdk#0e01163c0e046c9253c3a976bf6f28e338010091"

Releasing a New Version of the Package. NOTE : ONLY FOR ETHERS-V6

Prerequisites

  1. You must have an NPM account. (https://www.npmjs.com/)
  2. You must have the necessary permissions to publish the package.
  3. You must have the latest version of the package.

Step 1: Update the Version

  1. Open the package.json file.
  2. Update the "version" field according to Semantic Versioning:
    • MAJOR.MINOR.PATCH (e.g., change from 1.0.0 to 1.1.0 or 1.0.1).

**Step 2: Login to npm repository

yarn login --scope synofinance 

You will be asked to provide username and email used during registration.

Later when running yarn publish --access public you will be asked for password.

Step 2: Build the Package

Run the following command to build the package:

yarn run build

Step 3: Create a Package Archive File

Generate the .tgz package file by running the following command:

yarn pack

Step 4: Publish the Package

Release the package to the public registry:

yarn publish --access public

Step 5: Verify the Release

1.Go to the package's NPM page to confirm the version update. 2.Verify that the package is available and that everything was published successfully.

0.0.10

1 month ago

0.0.11

1 month ago

0.0.13

25 days ago

0.0.13-v5

25 days ago

0.0.12-v5

25 days ago

0.0.11-v5

1 month ago

0.0.9

1 month ago

0.0.8

2 months ago

0.0.5

2 months ago

0.0.7

2 months ago

0.0.6

2 months ago

0.0.3

4 months ago

0.0.4

3 months ago

0.0.2

4 months ago

0.0.1

4 months ago