https://github.com/tangle-network/protocol-solana
https://github.com/tangle-network/protocol-solana
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tangle-network/protocol-solana
- Owner: tangle-network
- Created: 2021-11-27T06:08:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-28T19:38:17.000Z (about 4 years ago)
- Last Synced: 2025-02-05T21:53:41.260Z (about 1 year ago)
- Language: Rust
- Size: 98.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# protocol-solana
## Build, Deploy and Test
Let's run the test once to see what happens.
First, install dependencies:
```
$ npm install
$ npm install -g mocha
```
Make sure you have your local solana validator running if you want to deploy the program locally:
```
$ solana-test-validator
```
> If you are on Apple Silicon M1 chip, you will have to build Solana from the source. See [this document](https://docs.solana.com/cli/install-solana-cli-tools#build-from-source) for more details
Next, we will build and deploy the program via Anchor.
First, let's build the program:
```
$ anchor build
```
Deploy the program:
```
$ anchor deploy
```
Finally, run the test:
```
$ anchor test
```
> Make sure to terminate the `solana-test-validator` before you run the `test` command