Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Add notes on devnet and mainet
Browse files Browse the repository at this point in the history
  • Loading branch information
urani-engineering-helper authored Mar 27, 2024
1 parent 18f50a1 commit 90049b7
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 13 deletions.
4 changes: 2 additions & 2 deletions chapters/01_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ Programs are special types of accounts that are marked as "executable".
### References

<br>
)

* [Solana Transactions](https://solana.com/docs/core/transactions)
* [Solana Programs](https://solana.com/docs/core/programs#native-programs)
* [Accounts and Storing State](https://solana.com/docs/core/accounts)
* [Cross-Program Invocation](https://solana.com/docs/core/cpi)
* [Terminology](https://solana.com/docs/terminology#instruction)
* [Terminology](https://solana.com/docs/terminology#instruction) and [FAQ](https://solana.com/docs/programs/faq)
60 changes: 50 additions & 10 deletions chapters/02_dev_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@

<br>

* Setup the development environment with a local blockchain cluster.
1. Setup the development environment with a local blockchain cluster.

* Create a filesystem wallet and airdrop Solana tokens to it.
2. Create a filesystem wallet and airdrop Solana tokens to it.

* Write the program.
3. Write programs.

* Compile the program (down to [Berkley Packet Filter](https://solana.com/docs/programs/faq#berkeley-packet-filter-bpf) byte-code that will then be deployed to the blockchain).
4. Compile the program (down to [Berkley Packet Filter](https://solana.com/docs/programs/faq#berkeley-packet-filter-bpf) byte-code that will then be deployed to the blockchain).

* Generate the program's public address (a new unique keypair, on which the pubkey is the `programId`).
5. Generate the program's public address (a new unique keypair, on which the pubkey is the `programId`).

* Deploy the program to the selected blockchain cluster by creating transactions containing the program's byte-code.
6. Deploy the program to the selected blockchain cluster by creating transactions containing the program's byte-code.

* Once the entire program is in the blockchain, a final transaction is sent to write all of the buffered byte-code to the program's data account.
- This either marks the new program as executable or completes upgrading an existing program.
7. Once the entire program is in the blockchain, a final transaction is sent to write all of the buffered byte-code to the program's data account.
- This either marks the new program as executable or completes upgrading an existing program.

<br>

Expand Down Expand Up @@ -140,7 +140,11 @@ solana balance

* Devnet endpoint: `https://api.devnet.solana.com`.

* From the CLI, one can connect with `solana config set --url https://api.devnet.solana.com`.
* From the CLI, one can connect with:

```shell
solana config set --url https://api.devnet.solana.com
```

<br>

Expand All @@ -149,10 +153,46 @@ solana balance

<br>

* Testnet serves as Solana's core contributors stress test.


* Gossip endpoint at `entrypoint.testnet.solana.com:8001`.

* Devnet endpoint: `https://api.testnet.solana.com`.

* From the CLI, one can connect with:

```shell
solana config set --url https://api.testnet.solana.com
```

<br>


#### Mainnet

<br>

* Solana's permissionless, persistent cluster.


* Gossip endpoint at `entrypoint.mainnet-beta.solana.com:8001`.

* Devnet endpoint: `https://api.mainnet-beta.solana.com`.

* From the CLI, one can connect with:

```shell
solana config set --url https://api.mainnet-beta.solana.com
```

<br>

#### Demo 1: Hello World


---

### Demo 1: Hello World

<br>

Expand Down
2 changes: 1 addition & 1 deletion chapters/03_anchor.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🛹 Mastering the Anchor Framework [IN CONSTRUCTION]
# 🛹 Mastering the Anchor Framework

<br>

Expand Down

0 comments on commit 90049b7

Please sign in to comment.