https://github.com/Turbin3/poseidon
https://github.com/Turbin3/poseidon
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Turbin3/poseidon
- Owner: Turbin3
- Created: 2024-09-21T03:17:52.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-10-24T07:28:32.000Z (7 months ago)
- Last Synced: 2024-10-25T03:27:43.549Z (7 months ago)
- Language: Rust
- Homepage: https://turbin3.github.io/poseidon/
- Size: 467 KB
- Stars: 43
- Watchers: 2
- Forks: 13
- Open Issues: 13
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
- awesome - Turbin3/poseidon - A Transpiler to convert your Solana programs from Typescript to Anchor (Rust)
- solana-awesome - Link
README
# 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](https://poseidon.turbin3.com/installation.html)
- [Usage](https://poseidon.turbin3.com/usage.html)
- [Quick Start & Examples](https://poseidon.turbin3.com/tutorial.html)## Installation
Make sure you have Rust and Cargo installed, then run the following command
Clone the repository:
```sh
cargo install --git https://github.com/Turbin3/poseidon
```## Usage
```sh
poseidon compile --input "input.ts" --output "output.rs"
```## Tutorial & Examples
Go to [docs/src/tutorial.md](./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](./examples) directory. You’ll find examples of [vote](./examples/vote), [vault](./examples/vault), [escrow](./examples/escrow), and [favorites](./examples/favorites) programs in both TypeScript and the corresponding Rust programs transpiled by Poseidon.