Skip to content

Commit

Permalink
add infrastructure folder for espace (#303)
Browse files Browse the repository at this point in the history
* add infrastructure folder for espace



---------

Co-authored-by: darwintree <17946284+darwintree@users.noreply.github.com>
  • Loading branch information
Pana and darwintree authored Dec 7, 2023
1 parent a0afbd8 commit a209572
Show file tree
Hide file tree
Showing 15 changed files with 96 additions and 65 deletions.
2 changes: 2 additions & 0 deletions docs/espace/DeveloperQuickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ With Conflux eSpace, your favorite tools for building and testing smart contract

Since eSpace is EVM-Compatible, you’ll just need to point your favorite builder tools at a Conflux eSpace RPC Provider.

If you are not familiar with Ethereum development, you can start by learning the basics and understanding its stack through [Ethereum's official documentation](https://ethereum.org/en/developers/)

## Acquiring CFX

eSpace also uses CFX as its native currency, which will be needed to pay transaction fees for deploying and interacting with the network.
Expand Down
5 changes: 5 additions & 0 deletions docs/espace/FAQs.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@ It's about 300 TPS.
## Is it easy to migrate an Ethereum DApp to eSpace?

Yes, it is very easy, normally you only need to change the RPC endpoint url to the eSpace RPC endpoint url, and the DApp can run on eSpace.

## What's the eSpace hardfork block number?

* Mainnet: EpochNumber 36935000, BlockNumber 92060600
* Testnet: EpochNumber 61465000, BlockNumber 77340000
2 changes: 1 addition & 1 deletion docs/espace/build/cip90.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 11
title: CIP-90
displayed_sidebar: eSpaceSidebar
---
Expand Down
30 changes: 30 additions & 0 deletions docs/espace/build/infrastructure/RPC-Provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
sidebar_position: 1
title: RPC Providers
displayed_sidebar: eSpaceSidebar
---

Conflux eSpace also offers its own RPC Providers, similar to those like Infura, Alchemy, and QuickNode. These can be utilized to connect to the Conflux eSpace network.

## [Unifra](https://unifra.io/)

[Unifra](https://unifra.io/) offers an open infrastructure accessible to everyone, providing reliable infrastructure services to all Web3 developers. Their node service already includes support for the Conflux eSpace network.
They offer a stable and user-friendly RPC service, which can be utilized to connect to the Conflux eSpace network.

Unifra also provides a free-to-use RPC endpoint:

Network | Chain ID | RPC Endpoint URL | Explorer
-------- | ----------------------- | ------------ |------------
[Mainnet](#mainnet) | 1030 (0x406) | <https://conflux-espace-public.unifra.io> | <https://evm.confluxscan.net>

You can also buy **a higher tier RPC service** from Unifra at it [console dashboard](https://console.unifra.io/).

## Confura

[Confura](../../network-endpoints) is an RPC service offered by the Conflux Foundation. This public RPC service is available at no cost. However, if the rate limit does not meet your development needs, you can apply for a higher-tier RPC service by contacting the Conflux Foundation via email at [bd@confluxnetwork.org](mailto:bd@confluxnetwork.org).

## FAQs

### Does Infura, Alchemy, Quick, etc. support Conflux eSpace network?

Currently, they don't support Conflux eSpace network. But we are working with them to support Conflux eSpace network.
9 changes: 9 additions & 0 deletions docs/espace/build/infrastructure/graph/graph.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 2
title: The Graph
displayed_sidebar: eSpaceSidebar
---

[The Graph](https://thegraph.com/) serves as a premier blockchain data indexing and querying solution for EVM (Ethereum Virtual Machine) compatible chains. While Conflux eSpace is not directly supported by The Graph, its full EVM compatibility enables the use of The Graph on Conflux eSpace.

To utilize The Graph within Conflux eSpace, it's necessary to establish a The Graph node and subsequently create subgraphs. Comprehensive guides are available for [how to set up a The Graph node](./setup-graph-node.md) and [create subgraphs on Conflux eSpace](./create-subgraphs.md).
11 changes: 11 additions & 0 deletions docs/espace/build/infrastructure/infrastructure.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 1
title: Infrastructures
displayed_sidebar: eSpaceSidebar
---

Developing Web3 dApps is a multifaceted process, necessitating a variety of tools and services. Presently, numerous solutions are available on eSpace for constructing a dApp:

- [RPC Service Providers](./RPC-Provider): These are enterprise-grade providers offering access to the blockchain network.
- [TheGraph](./graph): TheGraph is a decentralized protocol designed for indexing and querying blockchain data.
- [Oracles](./oracles): Oracles provide a bridge for off-chain data sources to be accessible within the blockchain, essential for smart contracts.
25 changes: 25 additions & 0 deletions docs/espace/build/infrastructure/oracles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
sidebar_position: 3
title: Oracles
displayed_sidebar: eSpaceSidebar
---

Oracles are data feeds that enable smart contracts on the blockchain to access off-chain data sources. This functionality is crucial, as Ethereum-based smart contracts are inherently unable to access information stored outside the blockchain network by default. For further information, you can explore [Ethereum's Oracle documentation](https://ethereum.org/en/developers/docs/oracles/).

There are already oracle services available on Conflux eSpace.

## [Pyth](https://pyth.network/)

Pyth is a renowned oracle service in the industry, offering **Smarter Data for Smarter Contracts**. It ensures the security of your smart contracts by providing reliable, low-latency market data sourced from institutional-grade providers. Developers can build applications utilizing high-fidelity oracle feeds, specifically designed for mission-critical systems.

Pyth is already integrated in Conflux eSpace, you can use it directly. Check it's [documentation](https://docs.pyth.network/documentation/pythnet-price-feeds/evm#mainnets) for how to use it in your smart contracts.

## [Witnet](https://witnet.io/)

Witnet is a permissionless, decentralized, and censorship-resistant oracle helping smart contracts to react to real world events with strong crypto-economic guarantees.

## FAQs

### Does chainlink support Conflux?

Currently Chainlink **is not integrated** in Conflux eSpace, we are working on it.
8 changes: 0 additions & 8 deletions docs/espace/build/resources/_category_.json

This file was deleted.

17 changes: 0 additions & 17 deletions docs/espace/build/resources/additional-documentation.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/espace/build/resources/graph/_category_.json

This file was deleted.

17 changes: 0 additions & 17 deletions docs/espace/build/resources/infrastructure.md

This file was deleted.

18 changes: 9 additions & 9 deletions docs/espace/network-endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ description: Conflux eSpace RPC endpoints
displayed_sidebar: eSpaceSidebar
---

## 1. Confura
## Confura

Confura, a public RPC service offered by the Conflux Foundation, is available for free use. However, to maintain the service's usability, there are rate limits in place for the free tier. For access to a higher tier of RPC service, you can make a purchase through the [Web3 Paywall](./general/build/tools/web3paywall.md), or you can apply directly to the Conflux Foundation by emailing [bd@confluxnetwork.org](mailto:bd@confluxnetwork.org).

### Hong Kong

Expand Down Expand Up @@ -34,7 +36,7 @@ Reference for various fee tiers and their rate limits.
**Notes**
- Maximum result-set size is 10,000 for `getLogs` call;
- Old archived event logs may be inaccessible due to data prune;
- Append your api key to the endpoint for privileged access (eg., `https://evm.confluxrpc.com/<api-key>`);
- Append your api key(get from [Web3 Paywall](./general/build/tools/web3paywall.md) or Conflux Foundation) to the endpoint for privileged access (eg., `https://evm.confluxrpc.com/<api-key>`);
- Rate limits are also imposed per RPC method, please check the following specification for more details.

<details>
Expand All @@ -53,14 +55,12 @@ Reference for various fee tiers and their rate limits.

</details>

## 2. Unifra
## FAQs

Network | Chain ID | RPC Endpoint URL | Explorer
-------- | ----------------------- | ------------ |------------
[Mainnet](#mainnet) | 1030 (0x406) | <https://conflux-espace-public.unifra.io> | <https://evm.confluxscan.net>
### How to get a Confura advanced API key?

Confura is a public RPC service provided by Conflux Foundation, it is free to use. For using the free tier, you don't need an API key. To get a higher tier RPC service, you can buy it at [Web3 Paywall](../general/build/tools/web3paywall.md) or apply from Conflux foundation by sending email to [bd@confluxnetwork.org](bd@confluxnetwork.org)

## Hardfork number
### Does eSpace have any other RPC service or Provider?

* Mainnet: EpochNumber 36935000, BlockNumber 92060600
* Testnet: EpochNumber 61465000, BlockNumber 77340000
Yes, you can check them [here](./build/infrastructure/RPC-Provider.md)
9 changes: 4 additions & 5 deletions docs/espace/tutorials/deployContract/brownie.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---

sidebar_position: 4
title: Deploying an ERC-20 Token Using Brownie
description: Learn how to deploy an ERC-20 Token using Brownie.
keywords:
- Brownie
- Smart Contracts
- Python

- Brownie
- Smart Contracts
- Python
displayed_sidebar: eSpaceSidebar
---

[Brownie](https://eth-brownie.readthedocs.io/en/stable/) is a Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine. In this tutorial, we will guide you through configuring Brownie (or eth-brownie) for Conflux eSpace and demonstrate how to use Brownie scripts to deploy contracts on Conflux eSpace.
Expand Down

0 comments on commit a209572

Please sign in to comment.