Skip to content

A Transpiler to convert your Solana programs from Typescript to Anchor

Notifications You must be signed in to change notification settings

Turbin3/poseidon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poseidon

Now you can write solana programs in Typescript

poseidon is a transpiler that helps you to convert your Typescript solana programs to anchor. Which is especially convenient for people who are just getting started with solana.

Installation

Make sure you have Rust and Cargo installed, then run the following command

Clone the repository:

cargo install --git https://github.com/Turbin3/poseidon

Usage

poseidon compile --input "input.ts" --output "output.rs"

Check out examples in the repo to learn how to write Poseidon Typescript which can be transpiled to anchor programs. There are vote, vault and escrow(.ts files and their tranpiled .rs files)

Tutorial & Examples

Go to docs/src/tutorial.md to learn how to write your first Solana program in TypeScript using Poseidon and Anchor!

For more examples, check out the examples directory. You’ll find examples of vote, vault, and escrow programs in both TypeScript and the corresponding Rust programs transpiled by Poseidon.

About

A Transpiler to convert your Solana programs from Typescript to Anchor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages