|
@@ -1,6 +1,6 @@
|
|
|
# Program Examples
|
|
|
|
|
|
-## Onchain program examples for :anchor: Anchor :crab: Native Rust, and :snake: Python
|
|
|
+## Onchain program examples for :anchor: Anchor :crab: Native Rust, [TS] TypeScript and :snake: Python
|
|
|
|
|
|
This repo contains Solana onchain programs (referred to as 'Smart Contracts' in other blockchains).
|
|
|
|
|
@@ -11,6 +11,7 @@ Each folder includes examples for one or more of the following:
|
|
|
|
|
|
- `anchor` - Written using [Anchor](https://www.anchor-lang.com/), the most popular framework for Solana Development, which uses Rust. Use `anchor build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it.
|
|
|
- `native` - Written using Solana's native Rust crates and vanilla Rust. Use `cicd.sh` to build & deploy the program. Run `yarn run test` to test it.
|
|
|
+- `poseidon` - Written using [Poseidon](https://turbin3.github.io/poseidon), which converts your TypeScript code to Anchor Rust.
|
|
|
- `seahorse` - Written using the [Seahorse framework](https://seahorse-lang.org/), which converts your Python code to Anchor Rust. Use `seahorse build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it.
|
|
|
|
|
|
**If a given example is missing, please send us a PR to add it!** Our aim is to have every example available in every option. We'd also love to see more programs involving staking, wrapped tokens, oracles, compression and VRF. Follow the [contributing guidelines](./CONTRIBUTING.md) to keep things consistent.
|