Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

formfunction-hq/formfunction-program-shared

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Formfunction Program Shared

Overview Β Β β€’Β Β  Repo Structure Β Β β€’Β Β  Initial Environment Setup Β Β β€’Β Β  Development

Overview

Shared TypeScript library for Formfunction Solana program repos. This repo contains shared TS code which is used in our various program SDKs.

Repo Structure

β”œβ”€β”€ src                      # Source folder
β”‚   β”œβ”€β”€ constants            # Constants
β”‚   β”œβ”€β”€ instructions         # Instruction helper functions
β”‚   β”œβ”€β”€ pdas                 # PDA helper functions
β”‚   β”œβ”€β”€ tests                # Unit tests for helper functions
β”‚   β”œβ”€β”€ types                # Shared types
β”‚   β”œβ”€β”€ utils                # General helper functions
β”‚   └── index.ts             # Library exports
β”œβ”€β”€ ...                      # Other misc. project config
└── README.md

Initial Environment Setup

Complete the following to setup your environment:

  1. Install Node.js (and nvm if you want).

Development

Once you have your environment setup you can run the following:

# Install dependencies
$ yarn

# Run prettier checks
$ yarn prettier

# Run eslint checks
$ yarn eslint

# Run prettier and eslint with auto-fix flag
$ yarn lint

# Compile TypeScript code
$ yarn tsc

# Build the library
$ yarn build

# Run unit tests
$ yarn test

Publishing the Library

Releases are based on git tags. There is a GitHub Action which is responsible for running releases.

Follow these steps to publish a new version of the library:

  1. Run yarn version and enter a new appropriate semver version for the npm package. That will create a new tag and commit.
  2. Run git push origin NEW_TAG.
  3. git push the new commit as well.
  4. Wait for the GitHub action to build and publish the library.
  5. Update client SDKs by running yarn add @formfunction-hq/formfunction-program-shared@latest.

About

Shared NPM library for Formfunction Solana program TypeScript SDKs 🀝

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.