Skip to content

Commit a25e44c

Browse files
committed
fix links
1 parent 2895e43 commit a25e44c

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

docs/1.concepts/1.basics/epoch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import TabItem from '@theme/TabItem';
1010
An **epoch** is a unit of time when validators of the network remain constant. It is measured in blocks:
1111

1212
- Both `testnet` and `mainnet` have an epoch duration of 43,200 blocks. Ideally epochs last about 12 hours, since blocks are created every second (in reality, they take slightly longer to be created).
13-
- You can view this setting by querying the **[`protocol_config`](/docs/api/rpc#protocol-config)** RPC endpoint and searching for `epoch_length`.
13+
- You can view this setting by querying the **[`protocol_config`](/api/rpc/setup#protocol-config)** RPC endpoint and searching for `epoch_length`.
1414

1515
**Note:** Nodes garbage collect blocks after 5 epochs (~2.5 days) unless they are [archival nodes](https://near-nodes.io/intro/node-types#archival-node).
1616

docs/1.concepts/web3/near.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ To support more complex data retrieval scenarios, smart contract data should be
139139

140140

141141

142-
In order to simplify creation of indexers, [NEAR Indexer Framework](../2.tools/near-indexer-framework.md) has been created. However, even with a framework available, extracting data from a transaction may not be an easy task, since each smart contract has its unique structure and data storage model. To simplify this process, smart contracts can write structured information about outcome into the logs (e.g. in the JSON format). Each smart contract can use its own format for such logs, but the general format has been standardized as [Events](https://nomicon.io/Standards/EventsFormat).
142+
In order to simplify creation of indexers, [NEAR Indexer Framework](https://near-indexers.io/docs/projects/near-indexer-framework) has been created. However, even with a framework available, extracting data from a transaction may not be an easy task, since each smart contract has its unique structure and data storage model. To simplify this process, smart contracts can write structured information about outcome into the logs (e.g. in the JSON format). Each smart contract can use its own format for such logs, but the general format has been standardized as [Events](https://nomicon.io/Standards/EventsFormat).
143143

144144
Such architecture is very similar to Event Sourcing, where blockchain stores events (transactions), and they are materialized to a relational database using an indexer. This means the same drawbacks also apply. For instance, a client should be designed to accommodate indexing delay, which may take a few seconds.
145145

@@ -151,12 +151,12 @@ By now, we should be familiar with necessary concepts to start developing WEB 3.
151151

152152
First of all, we need a development and testing environment. Of course, we could theoraticaly perform development and testing on the main blockchain network, but this would not be cheap. For this reason, NEAR provides [several networks](https://docs.near.org/concepts/basics/networks) that can be used during development:
153153
- testnet - public NEAR network which is identical to mainnet and can be used for free.
154-
- localnet - you can deploy your personal NEAR network on your own environment. Because it’s owned by you, data and code can be kept private during development. More info on how you can run your own node can be [found here](https://docs.near.org/docs/develop/node/validator/running-a-node). Alternatively, you can bootstrap an entire testing infrastructure in Docker on your local machine using Kurtosis - [guide is here](../2.tools/kurtosis-localnet.md).
154+
- localnet - you can deploy your personal NEAR network on your own environment. Because it’s owned by you, data and code can be kept private during development. More info on how you can run your own node can be [found here](https://docs.near.org/docs/develop/node/validator/running-a-node). Alternatively, you can bootstrap an entire testing infrastructure in Docker on your local machine using Kurtosis - [guide is here](/develop/testing/kurtosis-localnet).
155155
- workspaces - you can start your own local network to perform e2e testing. More info [here](../../2.develop/testing/integration.md).
156156

157157
Once we’ve chosen a network to use, we need a way to interact with it. Of course, transactions can be constructed manually and posted into [node’s API](https://docs.near.org/api/rpc/setup). But [this is tedious](https://github.com/near-examples/transaction-examples) and isn’t fun at all. That’s why, NEAR [provides a CLI](../../4.tools/cli.md) which automates all of the necessary actions. It can be used locally for development purposes or on build machines for CI/CD scenarios.
158158

159-
In order to manage accounts on the NEAR network, [Wallet](../2.tools/2.near-wallet.md) can be used. It can show an effective account balance and active keys.
159+
In order to manage accounts on the NEAR network, [Wallet](https://wiki.near.org/getting-started/creating-a-near-wallet) can be used. It can show an effective account balance and active keys.
160160

161161
![image](/docs/assets/web3/web3-16.png)
162162

docs/1.concepts/web3/nfts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,5 +625,5 @@ When building a Web 3 application, it’s important to remember that cost calcul
625625
1. Smart Contracts deployment costs. While deploying on NEAR testnet or local environment, it’s essentially free of charge. However, when deploying into the mainnet, developers will be charged for storage and gas cost. Gas cost for a contract deployment transaction is relatively small (around 0.04$ at the time of writing). On the other hand, storage costs can be quite substantial, e.g. a 150KB contract (compiled) will cost around 20$.
626626
2. Smart Contracts usage cost. In Web 3, users pay for smart contract calls, so in order to make sure users aren’t discouraged to interact with a contract due to a high cost, it should be optimized to incur the lowest cost possible. This is especially important for storage costs, since gas is relatively cheap.
627627
3. If we want to use a privately hosted RPC node for better availability, its operational costs should be taken into account as well. Cost breakdown can be found [here](https://near-nodes.io/rpc/hardware-rpc), a rough estimation is about 290$ per node per month (and remember that we need at least 2 nodes for redundancy).
628-
4. Cost of a privately hosted indexer (if it’s used). More information can be found [here](../2.tools/near-indexer-framework.md), a rough estimation for the costs is about 100$ per month.
628+
4. Cost of a privately hosted indexer (if it’s used). More information can be found [here](https://near-indexers.io/docs/projects/near-indexer-framework), a rough estimation for the costs is about 100$ per month.
629629
5. Third party services costs.

docs/2.develop/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cannot change anymore.
1515
Thanks to the `NEAR CLI` deploying a contract is as simple as:
1616

1717
1. Compiling the contract to wasm (done automatically through `yarn build` in our templates).
18-
2. Deploy it into the desired account using the [NEAR Command Line Interface (CLI)](/concepts/tools/near-cli):
18+
2. Deploy it into the desired account using the [NEAR Command Line Interface (CLI)](/develop/integrate/cli):
1919

2020
```bash
2121
# Login to NEAR

docs/4.tools/near-api-js/cookbook.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ solve common case scenarios.
1919
| [Access Key Rotation](#access-key-rotation) | Create and delete [access keys](/concepts/basics/account#access-keys) for added security. |
2020
| **TRANSACTIONS** | |
2121
| [Get Transaction Status](#get-transaction-status) | Gets transaction status using a tx hash and associated account/contract ID. |
22-
| [Recent Transaction Details](#recent-transaction-details) | Get recent transaction details without using an [indexing](/concepts/tools/near-indexer-framework) service. |
22+
| [Recent Transaction Details](#recent-transaction-details) | Get recent transaction details without using an [indexing](https://near-indexers.io/docs/projects/near-indexer-framework) service. |
2323
| [Batch Transactions](#batch-transactions) | Sign and send multiple [transactions](/concepts/basics/transactions/overview). |
2424
| **UTILS** | |
2525
| [Deploy Contract](#deploy-contract) | Deploys a smart contract using a pre-compiled WASM file. |
@@ -290,7 +290,7 @@ async function getState(txHash, accountId) {
290290

291291
### Recent Transaction Details {#recent-transaction-details}
292292

293-
> Allows you to inspect chunks and transaction details for recent blocks without having to use an [indexer](/concepts/tools/near-indexer-framework).
293+
> Allows you to inspect chunks and transaction details for recent blocks without having to use an [indexer](https://near-indexers.io/docs/projects/near-indexer-framework).
294294
295295
```js
296296
const { connect, keyStores } = require("near-api-js");

docs/6.integrator/accounts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_label: Accounts
99
Please see the [documentation for accounts](/concepts/basics/account) for basic information.
1010

1111
- For exchanges, NEAR supports [implicit account](https://nomicon.io/DataStructures/Account.html#implicit-account-ids) creation which allows the creation of accounts without paying for transactions.
12-
- You can create an implicit account by following the steps in [this guide](/docs/roles/integrator/implicit-accounts).
12+
- You can create an implicit account by following the steps in [this guide](/integrator/implicit-accounts).
1313
- Accounts must have enough tokens to cover its storage which currently costs 0.0001 NEAR per byte. This equates to a minimum balance of 0.0182 NEAR for an account with one access key. You can query the live storage price using the [`protocol-config`](https://docs.near.org/api/rpc/setup#protocol-config) RPC endpoint. For more details on storage fees see [this section of the economics paper](https://near.org/papers/economics-in-sharded-blockchain/#transaction-and-storage-fees).
1414

1515
## Transfer from Function Call {#transfer-from-function-call}

docs/6.integrator/errors/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_label: Introduction
77
<blockquote class="info">
88
<strong>did you know?</strong><br /><br />
99

10-
The [NEAR Platform overview](/docs/concepts/overview) clarifies much of the language in this section.
10+
The [NEAR Platform overview](/concepts/welcome) clarifies much of the language in this section.
1111

1212
</blockquote>
1313

@@ -17,7 +17,7 @@ The [NEAR Platform overview](/docs/concepts/overview) clarifies much of the lang
1717
- The RPC interface receives the transaction and routes it to the correct physical node using `signer_id`. Since the `signer_id` must be a NEAR Account ID which lives on a single shard, the account is mapped to a shard which is followed by at least one validator running at least one machine with an IP address.
1818
- When a node receives a new signed transaction, it validates the transaction for signer, receiver, account balance, cost overflow, signature, etc. ([see here](https://nomicon.io/RuntimeSpec/Scenarios/FinancialTransaction.html#transaction-to-receipt)) and gossips it to all peers following the same shard. If a transaction has an invalid signature or would be invalid on the latest state, it is rejected quickly and returns an error to the original RPC call.
1919
- Valid transactions are added to the transaction pool (every validating node has its own independent copy of a transaction pool). The transaction pool maintains transactions that are not yet discarded and not yet included into the chain.
20-
- A pool iterator is used to pick transactions from the pool one at a time, ordered from the smallest nonce to largest, until the pool is drained or some chunk limit is reached (max number of transactions per chunk or max gas burnt per chunk to process transactions). Please refer to articles on the [pool iterator](https://nomicon.io/ChainSpec/Transactions.html?highlight=pool#pool-iterator) and [gas](/docs/concepts/gas) for more details.
20+
- A pool iterator is used to pick transactions from the pool one at a time, ordered from the smallest nonce to largest, until the pool is drained or some chunk limit is reached (max number of transactions per chunk or max gas burnt per chunk to process transactions). Please refer to articles on the [pool iterator](https://nomicon.io/ChainSpec/Transactions.html?highlight=pool#pool-iterator) and [gas](/concepts/basics/transactions/gas) for more details.
2121
- To accommodate the distributed nature of a sharded blockchain, all transactions are subsequently returned to a segmented transaction pool having 3 distinct layers: accepted transactions (which will be processed on the next chunk), pending transactions (which exceeded the limits of the current chunk and will be included in a later round of processing) and invalid transactions (which will be rejected at the next available opportunity).
2222
- Before producing a chunk, transactions are ordered and validated again. This is done to produce chunks with only valid transactions across a distributed system.
2323
- While a transaction is being processed on to a chunk, any errors raised by the application of its actions are also returned via RPC.

docs/6.integrator/exchange-integration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ sidebar_label: Exchange Integration
66

77
## Integration Reference {#integration-reference}
88

9-
- [Balance Changes](/docs/roles/integrator/balance-changes)
10-
- [Accounts](/docs/roles/integrator/accounts)
11-
- [Fungible Tokens](/docs/roles/integrator/fungible-tokens)
12-
- [Implicit Accounts](/docs/roles/integrator/implicit-accounts)
9+
- [Balance Changes](/integrator/balance-changes)
10+
- [Accounts](/integrator/accounts)
11+
- [Fungible Tokens](/integrator/fungible-tokens)
12+
- [Implicit Accounts](/integrator/implicit-accounts)
1313

1414
### Transaction Reference Links {#transaction-reference-links}
1515

16-
- [Basics](/docs/concepts/transaction)
17-
- [Specifications](https://nomicon.io/RuntimeSpec/Transactions.html)
16+
- [Basics](/concepts/basics/transactions/overview)
17+
- [Specifications](https://nomicon.io/RuntimeSpec/Transactions)
1818
- [Constructing Transactions](/docs/tutorials/create-transactions)
1919

2020
## Blocks and Finality {#blocks-and-finality}

docs/6.integrator/faq.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Transactions are a collection of related data that is composed and cryptographic
260260

261261
Transactions can be constructed and signed offline. Nodes are not required for signing. We are planning to add optional recent block hash to help prevent various replay attacks.
262262

263-
See [transactions](/docs/concepts/transaction) in the concepts section of our documentation.
263+
See [transactions](/concepts/basics/transactions/overview) in the concepts section of our documentation.
264264

265265
### How is the hash preimage generated? Which fields does the raw transaction consist of? {#how-is-the-hash-preimage-generated-which-fields-does-the-raw-transaction-consist-of}
266266

@@ -275,11 +275,11 @@ Transactions are received via our JSON-RPC endpoint and routed to the shared whe
275275

276276
Once received by the network, signed transactions are verified (using the embedded public key of the signer) and transformed into a collection of `Receipt`s, one per action. Receipts are of two types: `Action Receipt` is the most common and represents almost all actions on the network while `Data Receipt` handles the very special case of "a `FunctionCallAction` which includes a Promise". These receipts are then propagated and applied across the network according to the "home shard" rule for all affected receiver accounts.
277277

278-
These receipts are then propagated around the network using the receiver account's "home shard" since each account lives on one and only one shard. Once located on the correct shard, receipts are pulled from a nonce-based [queue](https://nomicon.io/ChainSpec/Transactions.html#pool-iterator).
278+
These receipts are then propagated around the network using the receiver account's "home shard" since each account lives on one and only one shard. Once located on the correct shard, receipts are pulled from a nonce-based [queue](https://nomicon.io/ChainSpec/Transactions#pool-iterator).
279279

280280
Receipts may generate other, new receipts which in turn are propagated around the network until all receipts have been applied. If any action within a transaction fails, the entire transaction is rolled back and any unburnt fees are refunded to the proper accounts.
281281

282-
For more detail, see specs on [`Transactions`](https://nomicon.io/RuntimeSpec/Transactions.html), [`Actions`](https://nomicon.io/RuntimeSpec/Actions.html), [`Receipts`](https://nomicon.io/RuntimeSpec/Receipts.html)
282+
For more detail, see specs on [`Transactions`](https://nomicon.io/RuntimeSpec/Transactions), [`Actions`](https://nomicon.io/RuntimeSpec/Actions.html), [`Receipts`](https://nomicon.io/RuntimeSpec/Receipts)
283283

284284
### How does NEAR serialize transactions? {#how-does-near-serialize-transactions}
285285

docs/6.integrator/tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ You can get `name`, `decimals`, `icon` and other parameters by calling the next
143143

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

146-
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](/docs/concepts/storage-staking). To check if account has deposited the storage for this FT do the following:
146+
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:
147147

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

0 commit comments

Comments
 (0)