Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: text changes to rootstock track #291

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/academy/src/pages/tracks/rootstock-101/1.mdx
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ A rootstock is a root system that is used to increase the growth and performance

Don't worry this course and lesson is not about growing fruit trees!

However, knowing this concept is helpful when learning about Rootstock, the Bitcoin side chain. As you wil
However, knowing this concept is helpful when learning about Rootstock, the Bitcoin side chain.

In this lesson, we will explore:

@@ -90,7 +90,7 @@ Each Bitcoin block include a reference to a Rootstock block. This reference is i

![Merged Mining](/assets/tracks/rootstock-101/1/merged-mining.gif)

Merged mining also enables the stored token can be transferred from the mainchain to the sidechain and back. This is where the 2-way peg comes in.
Merged mining also enables the stored token to be transferred from the mainchain to the sidechain and back. This is where the 2-way peg comes in.

### Pow Peg - The 2-Way Peg

@@ -104,7 +104,7 @@ The process of locking Bitcoin securely needs to be tamper-proof to prevent any

![Peg In](/assets/tracks/rootstock-101/1/peg-in.gif)

PowHSMs are tamper-proof that are devices that are connected to a running Rootstock node. The difference between a traditional multi-sig wallet is that PowHSMs perform the signature on transactions automatically and not done by an individual. These signatures occur after a large amount of hashing power or completed blocks are confirmed. This prevents any type of attack or collusion to occur.
PowHSMs are tamper-proof devices that are connected to a running Rootstock node. The difference between a traditional multi-sig wallet is that PowHSMs perform the signature on transactions automatically and not done by an individual. These signatures occur after a large amount of hashing power or completed blocks are confirmed. This prevents any type of attack or collusion to occur.

### Peg-Out - Unlocking RBTC

@@ -147,6 +147,6 @@ There is also a growing set of open-source tools to make building on Rootstock e

## Conclusion

Great work finishing the introduction to Rootstock! Now we will put what you have learned to practice in the next lessons. The next lesson will using The Graph to read data from the Rootstock mainnet!
Great work finishing the introduction to Rootstock! Now we will put what you have learned to practice in the next lessons. The next lesson will use The Graph to read data from the Rootstock mainnet!

</LessonLayout>
11 changes: 6 additions & 5 deletions apps/academy/src/pages/tracks/rootstock-101/3.mdx
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ This smart contract is a polling smart contract. It will:

Inside the `contracts` folder of the Hardhat Starterkit you should see 3 sample contracts (ERC20, ERC721, ERC1155).

Create a new file and call it `Poll.sol`. Here is where you will write the poll smart contract.
Create a new file in the `contracts` folder and call it `Poll.sol`. Here is where you will write the poll smart contract.

If you would like the complete Soldity code, here it is:

@@ -184,7 +184,7 @@ struct Option {
}
```

This code defines a struct for the options you will add to the poll. Each open needs an id for tracking, a name to show the user and a voteCount to collect all the votes.
This code defines a struct for the options you will add to the poll. Each option needs an id for tracking, a name to show the user and a voteCount to collect all the votes.

```solidity
Option[] public options;
@@ -213,7 +213,7 @@ function addOption(string memory _name) private {
}
```

The next step is adding options for user to vote on by using this `addOption` function.
The next step is adding options for a user to vote on by using this `addOption` function.

As we defined the `Option` struct, each option has an id, name and vote count.

@@ -258,9 +258,9 @@ They allow you to get the total count of options with `getOptionsCount` and to g

Now that the code is added, its time to get it onchain.

In the `deploy` folder of the Starterkit is where the deployment scripts are stored. These files are written in Typescript and used by Hardhat for deployment.
The `deploy` folder of the Starterkit is where the deployment scripts are stored. These files are written in Typescript and used by Hardhat for deployment.

Create a file called `DeployPoll.ts` and copy the code below:
Within the `deploy` folder, create a file called `DeployPoll.ts` and copy the code below:

```typescript
import { DeployFunction } from "hardhat-deploy/types";
@@ -300,6 +300,7 @@ After that, you can run the shorthand command to compile the contract which is:
hh compile
```

(Note: If you're on a Windows machine and having troubles using `hh`, try `npx hh compile` instead.)
You should see a confirmation in your terminal that the contract has been compiled, similar to the example below:

```txt
2 changes: 1 addition & 1 deletion apps/academy/src/pages/tracks/rootstock-101/4.mdx
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ Now you will add the ABI to the `index.tsx` file. This will allow your app to in

In this template, there is already an ABI included. Remove this ABI and replace it with the one you just copied.

The ABI in `index.ts` should now look like this, not the removal of the quotes:
The ABI in `index.tsx` should now look like this, not the removal of the quotes:

```javascript
const contractABI = [