Skip to content

Commit f8aa3c0

Browse files
committed
move concepts
1 parent f23e216 commit f8aa3c0

File tree

20 files changed

+26
-23
lines changed

20 files changed

+26
-23
lines changed

docs/2.build/2.smart-contracts/anatomy/actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ There are two scenarios in which you can use the `delete_account` action:
486486
</Tabs>
487487

488488
:::warning Token Loss
489-
If the beneficiary account does not exist the funds will be [**dispersed among validators**](../../../1.concepts/basics/token-loss.md).
489+
If the beneficiary account does not exist the funds will be [**dispersed among validators**](../../../protocol/network/token-loss.md).
490490
:::
491491

492492
:::warning Token Loss

docs/2.build/2.smart-contracts/anatomy/environment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The `timestamp` attribute represents the approximated **UNIX timestamp** in **na
130130

131131
### Current Epoch
132132

133-
The NEAR blockchain groups blocks in [Epochs](../../../1.concepts/basics/epoch.md). The `current_epoch` attribute measures how many epochs have passed so far. It is very useful to coordinate with other contracts that measure time in epochs, such as the [validators](../../../1.concepts/basics/validators.md).
133+
The NEAR blockchain groups blocks in [Epochs](../../../protocol/network/epoch.md). The `current_epoch` attribute measures how many epochs have passed so far. It is very useful to coordinate with other contracts that measure time in epochs, such as the [validators](../../../protocol/network/validators.md).
134134

135135
### Block Index
136136

docs/2.build/2.smart-contracts/testing/integration-test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ This approach is more complex to do and also cannot be performed without restart
422422

423423
## Using Testnet
424424

425-
NEAR Workspaces is set up so that you can write tests once and run them against a local Sandbox node (the default behavior) or against [NEAR TestNet](../../../1.concepts/basics/networks.md). Some reasons this might be helpful:
425+
NEAR Workspaces is set up so that you can write tests once and run them against a local Sandbox node (the default behavior) or against [NEAR TestNet](../../../protocol/network/networks.md). Some reasons this might be helpful:
426426

427427
* Gives higher confidence that your contracts work as expected
428428
* You can test against deployed testnet contracts

docs/3.tutorials/crosswords/01-basics/02-add-functions-call.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Before moving on, let's talk about these changes and how to think about them, be
3333
const PUZZLE_NUMBER: u8 = 1;
3434
```
3535

36-
This is an in-memory value, meaning that when the smart contract is spun up and executed in the virtual machine, the value `1` is contained in the contract code. This differs from the next change, where a field is added to the struct containing the `#[near]` macro. The field `crossword_solution` has the type of `String` and, like any other fields added to this struct, the value will live in **persistent storage**. With NEAR, storage is "paid for" via the native NEAR token (Ⓝ). It is not "state rent" but storage staking, paid once, and returned when storage is deleted. This helps incentivize users to keep their state clean, allowing for a more healthy chain. Read more about [storage staking here](https://docs.near.org/concepts/storage/storage-staking).
36+
This is an in-memory value, meaning that when the smart contract is spun up and executed in the virtual machine, the value `1` is contained in the contract code. This differs from the next change, where a field is added to the struct containing the `#[near]` macro. The field `crossword_solution` has the type of `String` and, like any other fields added to this struct, the value will live in **persistent storage**. With NEAR, storage is "paid for" via the native NEAR token (Ⓝ). It is not "state rent" but storage staking, paid once, and returned when storage is deleted. This helps incentivize users to keep their state clean, allowing for a more healthy chain. Read more about [storage staking here](https://docs.near.org/protocol/storage/storage-staking).
3737

3838
Let's now look at the three new functions:
3939

docs/3.tutorials/crosswords/02-beginner/00-overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In this chapter we'll:
3636
As we implement the list above, we'll learn key concepts about NEAR:
3737

3838
- [Actions](https://nomicon.io/RuntimeSpec/Actions.html)
39-
- Full and function-call [access keys](https://docs.near.org/concepts/basics/account#access-keys)
39+
- Full and function-call [access keys](https://docs.near.org/protocol/network/account#access-keys)
4040
- NEAR's specialized [Collections](../../../2.build/2.smart-contracts/anatomy/collections.md) that are generally preferable to, say, Rust's standard HashMap
4141
- The flow of logging in to a decentralized app (dApp)
4242
- more…

docs/3.tutorials/nfts/minting-nfts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The [InterPlanetary File System](https://ipfs.io/) (IPFS) is a protocol and peer
4343

4444
### Uploading the image {#uploading-the-image}
4545

46-
To upload the NFT image, you should use a [decentralized storage](/concepts/storage/storage-solutions) provider such as IPFS.
46+
To upload the NFT image, you should use a [decentralized storage](/protocol/storage/storage-solutions) provider such as IPFS.
4747

4848
:::note
4949
This example uses IPFS, but you could use a different solution like Filecoin, Arweave, or a regular centralized Web2 hosting.

docs/5.api/rpc/setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In order to use the RPC API you will need to setup the correct RPC endpoints.
2323
<hr className="subsection" />
2424

2525
## Querying Historical Data
26-
Querying historical data (older than 5 [epochs](../../1.concepts/basics/epoch.md) or ~2.5 days), you may get responses that the data is not available anymore. In that case, archival RPC nodes will come to your rescue:
26+
Querying historical data (older than 5 [epochs](../../protocol/network/epoch.md) or ~2.5 days), you may get responses that the data is not available anymore. In that case, archival RPC nodes will come to your rescue:
2727

2828
- mainnet `https://archival-rpc.mainnet.near.org`
2929
- testnet `https://archival-rpc.testnet.near.org`

docs/6.integrations/tokens.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Decoded result in this case is:
150150

151151
To follow this guide, please check the [step by step instructions](/integrations/create-transactions#low-level----create-a-transaction) on how to create a transaction first.
152152

153-
In order to send a fungible token to an account, the receiver must have a storage deposit. This is because each smart contract on NEAR must account for storage used, and each account on a fungible token contract is a key-value pair, taking up a small amount of storage. For more information, please see [how storage works in NEAR](/concepts/storage/storage-staking). To check if account has deposited the storage for this FT do the following:
153+
In order to send a fungible token to an account, the receiver must have a storage deposit. This is because each smart contract on NEAR must account for storage used, and each account on a fungible token contract is a key-value pair, taking up a small amount of storage. For more information, please see [how storage works in NEAR](/protocol/storage/storage-staking). To check if account has deposited the storage for this FT do the following:
154154

155155
Get storage balance of the account. `storage_balance_of` function returns the amount of deposited storage or `null` if there is no deposit.
156156
- using NEAR CLI:

docs/data-infrastructure/lake-framework/running-near-lake/run-near-lake.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ $ aws s3 --no-sign-request cp --no-sign-request --recursive s3://near-protocol-p
132132

133133
It's not necessary but in order to index everything in the network it is better to do it from the genesis.
134134
`nearcore` node is running in non-archival mode by default. That means that the node keeps data only
135-
for [5 last epochs](https://docs.near.org/concepts/basics/epoch). In order to index data from the genesis
135+
for [5 last epochs](https://docs.near.org/protocol/network/epoch). In order to index data from the genesis
136136
you need to turn the node in archival mode.
137137

138138
To do it you need to update `config.json` located in `--home-dir` (by default it is `~/.near`).
File renamed without changes.

docs/1.concepts/basics/networks.md docs/protocol/network/networks.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ sidebar_label: Networks
66

77
NEAR Protocol operates on several networks each operating with their own independent validators and unique state. These networks are as follows:
88

9-
- [`mainnet`](/concepts/basics/networks#mainnet)
10-
- [`testnet`](/concepts/basics/networks#testnet)
11-
- [`localnet`](/concepts/basics/networks#localnet)
9+
- [`mainnet`](/protocol/network/networks#mainnet)
10+
- [`testnet`](/protocol/network/networks#testnet)
11+
- [`localnet`](/protocol/network/networks#localnet)
1212

1313
## Mainnet {#mainnet}
1414

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/1.concepts/storage/decentralized-storage.md docs/protocol/storage/decentralized-storage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For storing data on-chain it's important to keep in mind the following:
2020
- There is a 4 MB limit on how much you can upload at once
2121

2222

23-
For example, if you want to store an NFT purely on-chain (rather than using IPFS or some other decentralized storage solution as mentioned below) you'll have almost an unlimited amount of storage but will have to pay 1 $NEAR per 100 KB of storage used (see [Storage Staking](https://docs.near.org/concepts/storage/storage-staking))
23+
For example, if you want to store an NFT purely on-chain (rather than using IPFS or some other decentralized storage solution as mentioned below) you'll have almost an unlimited amount of storage but will have to pay 1 $NEAR per 100 KB of storage used (see [Storage Staking](https://docs.near.org/protocol/storage/storage-staking))
2424

2525
Users will be limited to 4MB per contract call upload due to `MAX_GAS` constraints. The maximum amount of gas one can attach to a given `functionCall` is 300TGas.
2626

docs/1.concepts/storage/storage-staking.md docs/protocol/storage/storage-staking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Take care, then, when designing your smart contracts to ensure that such attacks
3030

3131
## btw, you can remove data to unstake some tokens
3232

33-
People familiar with the "immutable data" narrative about blockchains find this surprising. While it's true that an _indexing node_ will keep all data forever, _validating nodes_ (that is, the nodes run by most validators in the network) do not. Smart contracts can provide ways to delete data, and this data will be purged from most nodes in the network within a few [epochs](../basics/epoch.md).
33+
People familiar with the "immutable data" narrative about blockchains find this surprising. While it's true that an _indexing node_ will keep all data forever, _validating nodes_ (that is, the nodes run by most validators in the network) do not. Smart contracts can provide ways to delete data, and this data will be purged from most nodes in the network within a few [epochs](../network/epoch.md).
3434

3535
Note that a call to your smart contract to remove data has an associated gas fee. Given NEAR's gas limit, this creates an upper limit on how much data can be deleted in a single transaction.
3636

docs/welcome.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Imagine a place where you can build Web3 apps with the simplicity of Web2. Imagi
1515
title="NEAR Protocol"
1616
text="Learn what NEAR is and how it works"
1717
links={{
18-
"What is NEAR?": "/concepts/basics/protocol",
18+
"What is NEAR?": "/protocol/network/protocol",
1919
"Named Accounts": "/protocol/account-id",
2020
"Access Keys": "/protocol/access-keys",
2121
"Transactions": "/protocol/transactions"

website/sidebars.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,23 @@ const sidebar = {
3838
]
3939
},
4040
{
41-
"Tokens": ["concepts/basics/tokens", "concepts/basics/token-loss"]
41+
"Tokens": [
42+
"protocol/network/tokens",
43+
"protocol/network/token-loss"
44+
]
4245
},
4346
{
4447
"Storage": [
45-
"concepts/storage/storage-staking",
46-
"concepts/storage/storage-solutions"
48+
"protocol/storage/storage-staking",
49+
"protocol/storage/storage-solutions"
4750
]
4851
},
4952
{
5053
"Network": [
51-
"concepts/basics/validators",
52-
"concepts/basics/networks",
53-
"concepts/basics/epoch",
54-
"concepts/basics/runtime",
54+
"protocol/network/validators",
55+
"protocol/network/networks",
56+
"protocol/network/epoch",
57+
"protocol/network/runtime",
5558
]
5659
},
5760
]
@@ -259,7 +262,7 @@ const sidebar = {
259262
},
260263
]
261264
},
262-
"concepts/basics/staking",
265+
"protocol/network/staking",
263266
"build/primitives/linkdrop",
264267
"build/primitives/oracles",
265268
"build/primitives/dao",

0 commit comments

Comments
 (0)