-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit af10e56
Showing
9 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Learn Blockchain Dev as | ||
|
||
- frontend | ||
- backend | ||
- smartcontract (solidity) | ||
|
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Apa saja yang perlu dipelajari dalam pengembangan aplikasi blockchain untuk FE | ||
|
||
Berikut beberapa hal yang bisa dipelajari | ||
1. web3 | ||
- [apa itu web3](https://web3js.readthedocs.io/en/v1.4.0/) | ||
2. contract | ||
- apa itu ABI | ||
- bagimana cara penggunaan ABI | ||
- hal hal yang perlu diperhatikan dalam menggunakan ABI file | ||
- ketika melakukan transaksi off chain ABI yang digunakan BE dan FE harus sama | ||
3. bagaimana cara handling transaksi web3 | ||
- onTransactionHash -> ketika transaksi di eksekusi, client akan mendapatkan transaction hash, tapi transaction masih dalam status belum selesai | ||
- onReceipt -> transaction sudah selesai / sudah dieksekusi oleh miner | ||
- onError -> terdapat error dalam eksekusi transaksi | ||
- terdepat event lain, selengkapnya ada di dokumentasi web3 | ||
4. bagimana integrasi proses `off-chain` di FE | ||
- pengertian off-chain transaction | ||
- request RSV ke BE | ||
- apa itu RSV | ||
- splitSignature menggunakan ether.js | ||
5. transaksi on-chain | ||
- penggunaan soliditySha3 untuk transaksi onchain | ||
6. common UX ketika transaksi | ||
- terdapat loading modal yang tidak bisa diclose/disable interaction untuk menghindari transaksi yang sedang berlangsung gagal. karena untuk transaksi off chain memerlukan callback dari wallet sehingga perlu memastikan transaksi selesai. jika transaksi selesai tapi callback tidak dieksekusi akan terjadi loss transaction, pada kasus ini perlu dilakukan proses recovery | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## React | ||
di react package yang bisa dipakai `@web3-react`. | ||
sudah terdapat mekanisme untuk connect ke beberapa wallet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Apa itu ABI | ||
ABI (Aplication Binary) didapat dari hasil compile smart contract. ABI digunakan client untuk berinteraksi dengan smart contract.<br> | ||
|
||
Disaat akan melakukan transaksi dengan suatu contract, terlebih dahulu web3 melakukan proses load terhadap ABI file, seperti : | ||
``` | ||
new web3.eth.Contract(config.partyContractABI); | ||
``` |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- https://www.youtube.com/channel/UCY0xL8V6NzzFcwzHCgB8orQ |
Empty file.