|
1 | 1 | # Program Examples
|
2 | 2 |
|
3 |
| -### :crab: Rust. :snake: Python. :link: All on-chain. |
| 3 | +### :crab: Rust. :snake: Python. :ice_cube: Solidity. :link: All on-chain. |
4 | 4 |
|
5 |
| -> **New:** Python examples using Seahorse and Anchor Py! |
| 5 | +> **New:** Solidity examples from Solang! |
6 | 6 |
|
7 | 7 | ## Navigating this Repo
|
8 | 8 |
|
9 |
| -:file_folder: Each example contains two folders: |
| 9 | +:file_folder: Each example contains four folders: |
10 | 10 | - `native` - Written using Solana's native Rust crates and vanilla Rust.
|
11 | 11 | - `anchor` - Written using Anchor's `anchor_lang` Rust crate and the associated Anchor framework to build & deploy.
|
12 | 12 | - `seahorse` - Written using the Python framework Seahorse, which converts your Python code to Anchor Rust.
|
| 13 | +- `solang` - Written using the Solang compiler, which allows developers to run Solidity natively on Solana. |
13 | 14 |
|
14 | 15 | :wrench: How to build & run:
|
15 | 16 | - Before running anything in any folder make sure you pull in the dependencies with `yarn install`.
|
16 | 17 | - `native` - Use `cicd.sh` to build & deploy the program. Run `yarn run test` to test it.
|
17 | 18 | - `anchor` - Use `anchor build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it.
|
18 | 19 | - `seahorse` - Use `seahorse build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it.
|
| 20 | +- `solang` - Use `anchor build && anchor deploy` to build & deploy the program. Run `anchor run test` to test it. |
19 | 21 |
|
20 | 22 | ## Examples We'd Love to See!
|
21 | 23 |
|
|
25 | 27 | * Additional Accounts & Resolving Accounts
|
26 | 28 | * Examples needed for Seahorse
|
27 | 29 | * Any existing example missing a `seahorse` folder
|
28 |
| -* New examples needed for Anchor, Native & Seahorse: |
| 30 | +* Examples needed for Solidity |
| 31 | + * Any existing example missing a `solang` folder |
| 32 | +* New examples needed for Solidity, Anchor, Native & Seahorse: |
29 | 33 | * Token lending
|
30 | 34 | * Token swapping
|
31 | 35 | * Escrow
|
|
0 commit comments