Skip to content

Commit

Permalink
Update quickstart.md
Browse files Browse the repository at this point in the history
fixes crowdin
  • Loading branch information
bucanero committed Dec 22, 2023
1 parent b134cfe commit 76fc332
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 17 deletions.
43 changes: 26 additions & 17 deletions docs/2.develop/contracts/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ Create a smart contract by running our `create-near-app` scaffolding tool and fo
The resulting folder structure will change slightly depending on the chosen language. Here is the general structure you can expect to see:

<Tabs>
<TabItem value="🌐 JavaScript">

<TabItem value="🌐 JavaScript">

```bash
├── README.md
Expand All @@ -68,8 +69,9 @@ The resulting folder structure will change slightly depending on the chosen lang
└── tsconfig.json
```

</TabItem>
<TabItem value="🦀 Rust">
</TabItem>

<TabItem value="🦀 Rust">

```bash
├── README.md
Expand All @@ -87,7 +89,8 @@ The resulting folder structure will change slightly depending on the chosen lang
└── Cargo.toml # package manager
```

</TabItem>
</TabItem>

</Tabs>

---
Expand Down Expand Up @@ -120,7 +123,8 @@ There are 3 important things to notice:
Building and testing the contract is as simple as running two commands.

<Tabs>
<TabItem value="🌐 JavaScript">

<TabItem value="🌐 JavaScript">

```bash
npm run build
Expand All @@ -131,9 +135,9 @@ Building and testing the contract is as simple as running two commands.
# changes the greeting ✅
```

</TabItem>
</TabItem>

<TabItem value="🦀 Rust">
<TabItem value="🦀 Rust">

```bash
./build.sh
Expand All @@ -144,7 +148,8 @@ Building and testing the contract is as simple as running two commands.
# Passed ✅ changes the greeting
```

</TabItem>
</TabItem>


</Tabs>

Expand Down Expand Up @@ -173,23 +178,24 @@ Now that we know the contract is passing the tests, let's create a testnet accou
While there are different ways to [create accounts](/concepts/basics/accounts/creating-accounts) in NEAR, in this quickstart we will use the `cargo-near` tool to create a new random [`named account`](/concepts/basics/accounts/account-id).

<Tabs>
<TabItem value="🌐 JavaScript">

<TabItem value="🌐 JavaScript">

```bash
# install cargo-near
npm i -g cargo-near
```

</TabItem>
</TabItem>

<TabItem value="🦀 Rust">
<TabItem value="🦀 Rust">

```bash
# install cargo-near
cargo install cargo-near
```

</TabItem>
</TabItem>

</Tabs>

Expand Down Expand Up @@ -217,21 +223,24 @@ Here we are creating a random account since we do not care about the account's n
Having our account created, we can now deploy the contract into it:

<Tabs>
<TabItem value="🌐 JavaScript">

<TabItem value="🌐 JavaScript">

```bash
near deploy --wasmFile build/release/hello.wasm --accountId <created-account>
```

</TabItem>
</TabItem>

<TabItem value="🦀 Rust">
<TabItem value="🦀 Rust">

```bash
near deploy --wasmFile ./target/wasm32-unknown-unknown/release/hello_near.wasm --accountId <created-account>
```


</TabItem>
</TabItem>


</Tabs>

Expand Down Expand Up @@ -273,4 +282,4 @@ Go ahead and check other [examples](/tutorials/examples/guest-book) or proceed s

If you have any questions, do not hesitate in joining us on [Discord](https://near.chat). We regularly host Office Hours, in which you can join our voice channel and ask questions.

Happy coding! 🚀
Happy coding! 🚀
2 changes: 2 additions & 0 deletions docs/7.primitives/dao/interacting/bos.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const result = Near.view("sputnik-dao.near", "get_dao_list");
```

</p>

</details>

---
Expand Down Expand Up @@ -92,6 +93,7 @@ const result = Near.view(
```

</p>

</details>

---
Expand Down
2 changes: 2 additions & 0 deletions docs/7.primitives/dao/interacting/near-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ near view sputnik-dao.near get_dao_list '{}'
```

</p>

</details>

---
Expand Down Expand Up @@ -88,6 +89,7 @@ near view nearweek-news-contribution.sputnik-dao.near get_proposals '{"from_inde
```
</p>
</details>
---
Expand Down
1 change: 1 addition & 0 deletions docs/7.primitives/linkdrop/interacting/bos.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ const getLinks = () => {
```
</p>
</details>
:::note
Expand Down
1 change: 1 addition & 0 deletions docs/7.primitives/linkdrop/interacting/web-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,4 +333,5 @@ const getLinks = () => {
```

</p>

</details>

0 comments on commit 76fc332

Please sign in to comment.