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

Fixes hardcoded links from pre-GB switch. #2179

Merged
merged 4 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ This site [docs.filecoin.io](https://docs.filecoin.io) will continue to be updat

## Choose your own adventure

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f4a1">💡</span> Learn the basics</h3></td><td>Want to understand the fundamental concepts of Filecoin, but aren't sure where to start? The Basics section is the perfect place to begin your journey!</td><td></td><td><a href="basics/what-is-filecoin/">what-is-filecoin</a></td></tr><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f527">🔧</span> Build with Filecoin</h3></td><td>Eager to build on top of the Filecoin network but aren't sure how to begin? Head over to the Developers section to find examples and guides to help build your project!</td><td></td><td><a href="smart-contracts/fundamentals/the-fvm.md">the-fvm.md</a></td></tr><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f3d7">🏗</span> Become a provider</h3></td><td>Starting up a provider node on the Filecoin network can be a daunting task. Head over to the Provider section to find out everything you need to know.</td><td></td><td><a href="broken-reference">Broken link</a></td></tr><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f4ca">📊</span> Store data</h3></td><td>Want to store large amount of data on the Filecoin network? There are plenty of storage options that you can choose from! Check out the Store section for more information!</td><td></td><td><a href="basics/what-is-filecoin/storage-model.md">storage-model.md</a></td></tr></tbody></table>
<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f4a1">💡</span> Learn the basics</h3></td><td>Want to understand the fundamental concepts of Filecoin, but aren't sure where to start? The Basics section is the perfect place to begin your journey!</td><td></td><td><a href="basics/what-is-filecoin/">what-is-filecoin</a></td></tr><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f527">🔧</span> Build with Filecoin</h3></td><td>Eager to build on top of the Filecoin network but aren't sure how to begin? Head over to the Developers section to find examples and guides to help build your project!</td><td></td><td><a href="smart-contracts/fundamentals/the-fvm.md">the-fvm.md</a></td></tr><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f3d7">🏗</span> Become a provider</h3></td><td>Starting up a provider node on the Filecoin network can be a daunting task. Head over to the Provider section to find out everything you need to know.</td><td></td><td><a href="./storage-providers/basics/README.md">Broken link</a></td></tr><tr><td><h3><span data-gb-custom-inline data-tag="emoji" data-code="1f4ca">📊</span> Store data</h3></td><td>Want to store large amount of data on the Filecoin network? There are plenty of storage options that you can choose from! Check out the Store section for more information!</td><td></td><td><a href="basics/what-is-filecoin/storage-model.md">storage-model.md</a></td></tr></tbody></table>
2 changes: 1 addition & 1 deletion basics/assets/metamask-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The process for configuring MetaMask to use Filecoin is fairly simple but has so
{% endtab %}
{% endtabs %}

7. Pick one block explorer from the [Networks section](broken-reference/), and enter the URL into the **Block explorer (optional)** field.
7. Pick one block explorer from the [Networks section](../../networks/mainnet/README.md), and enter the URL into the **Block explorer (optional)** field.
8. Review the values in the fields and click **Save**.
9. The Filecoin network should now be shown in your MetaMask window.
10. Done!
Expand Down
5 changes: 1 addition & 4 deletions basics/assets/transfer-fil.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Apart from that, you just need to follow the standard process using your preferr

## 0x => f address

If you want to transfer FIL tokens from an Ethereum style `0x` address to another Filecoin address type, like an `f1` or `f3` address, follow the steps in [FilForwarder](https://docs.filecoin.io/smart-contracts/filecoin-evm-runtime/filforwader/) tutorial.
If you want to transfer FIL tokens from an Ethereum style `0x` address to another Filecoin address type, like an `f1` or `f3` address, follow the steps in [FilForwarder](../../smart-contracts/filecoin-evm-runtime/filforwarder.md) tutorial.

## f => 0x address

Expand Down Expand Up @@ -100,9 +100,6 @@ If you want to transfer your FIL tokens from the `f1\f3` to the `0x` address, bu
6. From your main wallet account or exchange, transfer your FIL token to this address.
7. Connect to MetaMask and copy your `0x` address.
8. Once the funds appear in the burner wallet, click on **Send FIL**.

![Send FIL](https://docs.filecoin.io/basics/assets/transfer-fil/sendFIL\_huba2822ca70a37641c4d623de30d9d397\_315407\_1000x0\_resize\_q75\_h2\_box\_3.webp)

9. Enter the necessary information into the text fields:

* In the **Recipient** field, enter your `0x` style address. GLIF automatically converts it to an `f4` address.
Expand Down
4 changes: 2 additions & 2 deletions basics/project-and-community/social-media.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Subscribe to the [Filecoin newsletter](https://filecoin.io/build/#events) for of

Get your Filecoin news in tweet-sized bites. Follow these accounts for the latest:

* [`@Filecoin`](https://twitter.com/filecoin) for news and other updates from the Filecoin project
* [`@ProtoSchool`](https://twitter.com/protoschool) for updates on ProtoSchool workshops and tutorials
* `@Filecoin` for news and other updates from the Filecoin project
* `@ProtoSchool` for updates on ProtoSchool workshops and tutorials

### WeChat

Expand Down
2 changes: 1 addition & 1 deletion basics/project-and-community/ways-to-contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ How the Markdown syntax looks, and code formatting rules to follow.

#### Syntax

The Filecoin Docs project follows the _GitHub Flavoured Markdown_ syntax for markdown. This way, all articles display properly within GitHub itself. This gives readers the option to view articles on [the docs website](http://localhost:5000/o/NNmD4UvLc26b1TmEYgzE/s/ljEfPn4P3ow2x1OCSoi4/) or [its GitHub repo](https://github.com/filecoin-project/filecoin-docs).
The Filecoin Docs project follows the _GitHub Flavoured Markdown_ syntax for markdown. This way, all articles display properly within GitHub itself.

#### Rules

Expand Down
2 changes: 1 addition & 1 deletion basics/the-blockchain/actors.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >-

# Actors

For those familiar with the Ethereum virtual machine (EVM), _actors_ work similarly to [smart contracts](broken-reference). In the Filecoin network, there are two types of actors:
For those familiar with the Ethereum virtual machine (EVM), _actors_ work similarly to [smart contracts](../../smart-contracts/fundamentals/README.md). In the Filecoin network, there are two types of actors:

* [_Built-in actors_](actors.md#built-in-actors): Hardcoded programs written ahead of time by network engineers that manage and orchestrate key subprocesses and subsystems in the Filecoin network.
* [_User actors_](actors.md#user-actors-smart-contracts): Code implemented by **any developer** that interacts with the Filecoin Virtual Machine (FVM).
Expand Down
2 changes: 1 addition & 1 deletion networks/calibration/explorers.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: >-

## Filfox

[calibration.filfox.info](https://calibration/filfox.info)
[calibration.filfox.info](https://calibration.filfox.info)

## Filscan

Expand Down
32 changes: 16 additions & 16 deletions reference/built-in-actors/filecoin.sol.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@ description: This page covers the built-in actors Filecoin.sol API.

# Filecoin.sol

For conceptual information on built-in actors, including their purposes, how they work and more, see the [conceptual guide](https://docs.filecoin.io/reference/built-in-actors/overview/).
For conceptual information on built-in actors, including their purposes, how they work and more, see the [conceptual guide](../../reference/built-in-actors/README.md).

## Prerequisites

Before you can call a built-in actor using the API, you must [import filecoin.solidity using one of the available methods](https://docs.filecoin.io/smart-contracts/developing-contracts/call-built-in-actors/#using-filecoinsolidity).
Before you can call a built-in actor using the API, you must [import filecoin.solidity using one of the available methods](../../smart-contracts/developing-contracts#call-built-in-actors/#using-filecoinsolidity).

## Call a built-in actor

For available actors and methods see [Available actors and methods](https://docs.filecoin.io/smart-contracts/developing-contracts/call-built-in-actors/#available-actors-and-methods).
For available actors and methods see [Available actors and methods](../../smart-contracts/developing-contracts#call-built-in-actors/#available-actors-and-methods).

Once you’ve either imported particular contracts manually or simply installed `filecoin-solidity` using `npm`, create a callable method to access the built-in actor methods the way you normally would in a Solidity smart contract. Working examples of smart contracts that call built-in actor methods are available below.

* [Account](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-account-actor)
* [DataCap](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-datacap-actor)
* [Miner](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-miner-actor)
* [Storage market](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-storage-market-actor)
* [Storage power](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-storage-power-actor)
* [Verified registry](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-verified-registry-actor)
* [Account](../../reference/built-in-actors/filecoin.sol.md#call-the-account-actor)
* [DataCap](../../reference/built-in-actors/filecoin.sol.md#call-the-datacap-actor)
* [Miner](../../reference/built-in-actors/filecoin.sol.md#call-the-miner-actor)
* [Storage market](../../reference/built-in-actors/filecoin.sol.md#call-the-storage-market-actor)
* [Storage power](../../reference/built-in-actors/filecoin.sol.md#call-the-storage-power-actor)
* [Verified registry](../../reference/built-in-actors/filecoin.sol.md#call-the-verified-registry-actor)

For conceptual information on built-in actors, including their purposes, how they work and available types, see the [conceptual guide](https://docs.filecoin.io/reference/built-in-actors/overview/).
For conceptual information on built-in actors, including their purposes, how they work and available types, see the [conceptual guide](../../reference/built-in-actors/README.md/).

### Call the account actor

The following example imports the Account actor library and creates a callable method for each of the [available actor methods](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-account-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/account.test.sol).
The following example imports the Account actor library and creates a callable method for each of the [available actor methods](../../reference/built-in-actors/filecoin.sol.md#call-the-account-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/account.test.sol).

```solidity
pragma solidity ^0.8.17;
Expand All @@ -50,7 +50,7 @@ contract AccountApiTest {

### Call the DataCap actor

The following example imports the DataCap actor library and creates a callable method for each of the [available actor methods](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-datacap-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/datacap.test.sol).
The following example imports the DataCap actor library and creates a callable method for each of the [available actor methods](../../reference/built-in-actors/filecoin.sol.md#call-the-datacap-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/datacap.test.sol).

```solidity
pragma solidity ^0.8.17;
Expand Down Expand Up @@ -118,7 +118,7 @@ contract DataCapApiTest {

### Call the storage market actor

The following example imports the Storage market actor library and creates a callable method for each of the [available actor methods](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-storage-market-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/miner.test.sol).
The following example imports the Storage market actor library and creates a callable method for each of the [available actor methods](../../reference/built-in-actors/filecoin.sol.md#call-the-storage-market-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/miner.test.sol).

```solidity
pragma solidity ^0.8.17;
Expand Down Expand Up @@ -187,7 +187,7 @@ contract MarketApiTest {

### Call the miner actor

The following example imports the Account actor library and creates a callable method for each of the [available actor methods](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-miner-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/miner.test.sol).
The following example imports the Account actor library and creates a callable method for each of the [available actor methods](../../reference/built-in-actors/filecoin.sol.md#call-the-miner-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/miner.test.sol).

```solidity
pragma solidity ^0.8.17;
Expand Down Expand Up @@ -264,7 +264,7 @@ contract MinerApiTest {

### Call the storage power actor

The following example imports the Storage power actor library and creates a callable method for each of the [available actor methods](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-storage-power-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/power.test.sol).
The following example imports the Storage power actor library and creates a callable method for each of the [available actor methods](../../reference/built-in-actors/filecoin.sol.md#call-the-storage-power-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/power.test.sol).

```solidity
pragma solidity ^0.8.17;
Expand Down Expand Up @@ -298,7 +298,7 @@ contract PowerApiTest {

### Call the verified registry actor

The following example imports the verified registry actor library and creates a callable method for each of the [available actor methods](https://docs.filecoin.io/reference/built-in-actors/filecoin-sol/#call-the-verified-registry-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/verifreg.test.sol).
The following example imports the verified registry actor library and creates a callable method for each of the [available actor methods](../../reference/built-in-actors/filecoin.sol.md#call-the-verified-registry-actor). For the full code, see [the GitHub repository](https://github.com/filecoin-project/filecoin-solidity/blob/master/contracts/v0.8/tests/verifreg.test.sol).

```solidity
pragma solidity ^0.8.17;
Expand Down
2 changes: 0 additions & 2 deletions reference/general/specifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ The Filecoin specification is the technical document that outlines the details o

The Filecoin specification is a _living_ document, with frequent updates and changes as the Filecoin network grows. The specification is available to view at [specs.filecoin.io](https://spec.filecoin.io/).

<figure><img src="broken-reference" alt="" width="563"><figcaption><p>specs.filecoin.io</p></figcaption></figure>

You can suggest changes to the specification [over on GitHub](https://github.com/filecoin-project/specs).
2 changes: 1 addition & 1 deletion smart-contracts/filecoin-evm-runtime/filforwarder.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Always be careful when dealing with your private key. Double-check that you’re

#### **Invoke the contract**

The contract is deterministically deployed on all Filecoin networks at `0x2b3ef6906429b580b7b2080de5ca893bc282c225`. Any contract claiming to be a FilForwarder that does not reside at this address should not be trusted. Any dApp can connect to the wallet and use the ABI in this repository to call this method using any frontend. See the [Glif section](https://docs.filecoin.io/smart-contracts/filecoin-evm-runtime/filforwader/#glifio) above for steps on using a GUI.
The contract is deterministically deployed on all Filecoin networks at `0x2b3ef6906429b580b7b2080de5ca893bc282c225`. Any contract claiming to be a FilForwarder that does not reside at this address should not be trusted. Any dApp can connect to the wallet and use the ABI in this repository to call this method using any frontend. See the [Glif section](../../smart-contracts/filecoin-evm-runtime/filforwarder.md) above for steps on using a GUI.

Inside this repository is a Hardhat task called `forward`. This task will use the private key to send funds using the contract. This task uses the `fil-forwarder-{CHAIN_ID}.json` file to determine the deployed contract address for a given network. These addresses should always be the same, but these files prevent you from having to specify it each time.

Expand Down
Loading