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

Commit

Permalink
Serialize + PDA II (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
urani-engineering-helper authored Mar 28, 2024
1 parent 031e3c3 commit 07d6c5e
Show file tree
Hide file tree
Showing 26 changed files with 7,657 additions and 362 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ Compared to older platforms like Bitcoin and EVM-based protocols, Solana is:
* **[Demo 3: Interacting with Wallets](demos/frontend/03_wallets_ping)**
* **[Demo 4: Sending Transactions with Wallets](demos/frontend/04_wallets_tx)**
* **[Demo 5: Serializing Custom Data with PDA](demos/frontend/05_serialize_custom_data)**
* **[Demo 6: Serializing Custom Data with PDA II](demos/frontend/06_serialize_custom_data_II)**


4 changes: 3 additions & 1 deletion chapters/04_pda.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ pub struct UserStats {

* Learn how PDA and CPI work on Anchor through [backend's demo 4](https://github.com/urani-labs/solana-dev-onboarding-rs/tree/main/demos/backend/04_pda_and_cpi).

* Build a frontend dApp that leverages PDA through [frontend's demo 5](https://github.com/urani-labs/solana-dev-onboarding-rs/tree/main/demos/frontend/05_serialize_custom_data).
* Build a frontend dApp that leverages PDA through [frontend's demo 5](https://github.com/urani-labs/solana-dev-onboarding-rs/tree/main/demos/frontend/05_serialize_custom_data) and
[frontend's demo 6](https://github.com/urani-labs/solana-dev-onboarding-rs/tree/main/demos/frontend/06_serialize_custom_data_II).


<br>

Expand Down
6 changes: 4 additions & 2 deletions chapters/06_frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
- The library builds the array of accounts based on that information and handles the logic for including a recent blockhash.


* To facilitate this process of serialization, we can use [Binary Object Representation Serializer for Hashin (Borsh)]() and the library [@coral-xyz/borsh](https://github.com/coral-xyz).
* To facilitate this process of serialization, we can use [Binary Object Representation Serializer for Hashin (Borsh)](https://borsh.io/) and the library [@coral-xyz/borsh](https://github.com/coral-xyz).
- Borsh can be used in security-critical projects as it prioritizes consistency, safety, speed; and comes with a strict specification.


Expand All @@ -97,8 +97,10 @@

---

### Demos
### Frontend demos

<br>

* [Demo 5: Serializing Custom Data with PDA](https://github.com/urani-labs/solana-dev-onboarding-rs/tree/main/demos/frontend/05_serialize_custom_data)

* [Demo 6: Serializing Custom Data with PDA II](https://github.com/urani-labs/solana-dev-onboarding-rs/tree/main/demos/frontend/06_serialize_custom_data_II)
Loading

0 comments on commit 07d6c5e

Please sign in to comment.