Skip to content

Commit

Permalink
update template.conf link
Browse files Browse the repository at this point in the history
  • Loading branch information
Cris committed Jul 9, 2019
1 parent 7ceb7f1 commit 908b66e
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions docs/go-nebulas/testnet.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# How to Join the Nebulas Testnet

## Introduction

We are glad to release the Nebulas Testnet. It simulates the Nebulas network and NVM, and allows developers to interact with Nebulas without paying the cost of gas.

> [https://github.com/nebulasio/go-nebulas/tree/testnet](https://github.com/nebulasio/go-nebulas/tree/testnet)
### Build

The Nebulas Testnet's executable file and dependant libraries need to be built first. Several important modules are highlighted below:

* **NBRE:** The Nebulas Blockchain Runtime Environment is the platform for running Nebulas Protocol Representation, such as the DIP, the NR, etcetera.
Expand All @@ -16,24 +14,21 @@ The Nebulas Testnet's executable file and dependant libraries need to be built f
Details of building the modules can be found in [tutorials](http://wiki.nebulas.io/en/latest/go-nebulas/tutorials/01-installation.html#compile-nebulas).

### Configuration

The testnet configuration files are in the folder [`testnet/conf`](https://github.com/nebulasio/go-nebulas/tree/testnet/testnet/conf) under `testnet` branch, including
The testnet configuration files are in the folder [`testnet/conf`](https://github.com/nebulasio/go-nebulas/tree/testnet/testnet/conf) under `testnet` branch, including:

#### genesis.conf
All configurable information about the genesis block is defined in genesis.conf, such as:

All configurable information about the genesis block is defined in genesis.conf, including

* **meta.chain\_id:** chain identity
* **consensus.dpos.dynasty:** the initial dynasty of validators
* **token\_distribution:** the initial allocation of tokens
* **meta.chain\_id:** chain identity.
* **consensus.dpos.dynasty:** the initial dynasty of validators.
* **token\_distribution:** the initial allocation of tokens.

> _Attention_: DO NOT change the genesis.conf.
#### config.conf
All configurable information about the runtime is defined in config.conf.

All configurable information about runtime is defined in config.conf.

Please check the [`template.conf`](https://github.com/smalloranges/wiki/tree/887270957eb99d971309610bc1fdafb6a2d9d552/resources/conf/template.conf) to find more details about the runtime configuration.
Please check the [`template.conf`](https://github.com/nebulasio/nebdocs/blob/master/docs/resources/conf/template.conf) to find more details about the runtime configuration.

> _Tips_: the official seed node info is as below,
Expand All @@ -42,14 +37,13 @@ seed:["/ip4/47.92.203.173/tcp/8680/ipfs/QmfSJ7JUnCEDP6LFyKkBUbpuDMETPbqMVZvPQy4k
```

#### API List

Test Endpoint:

| API | URL | Protocol |
| --- | :---: | :---: |
| RESTful | [https://testnet.nebulas.io/](https://testnet.nebulas.io/) | HTTP |

* [GetNebState](https://github.com/nebulasio/wiki/blob/master/rpc.md#getnebstate) : returns nebulas client info.
* [GetNebState](https://github.com/nebulasio/wiki/blob/master/rpc.md#getnebstate): returns nebulas client info.
* [GetAccountState](https://github.com/nebulasio/wiki/blob/master/rpc.md#getaccountstate): returns the account balance and nonce.
* [LatestIrreversibleBlock](https://github.com/nebulasio/wiki/blob/master/rpc.md#latestirreversibleblock): returns the latest irreversible block.
* [Call](https://github.com/nebulasio/wiki/blob/master/rpc.md#call): execute smart contract locally. The tx won't be submitted on chain.
Expand All @@ -59,13 +53,9 @@ Test Endpoint:
More Nebulas APIs at [RPC](https://github.com/nebulasio/wiki/blob/master/rpc.md).

#### Claim Tokens

Each email can claim tokens every day [here](https://testnet.nebulas.io/claim).

## Tutorials

#### English

1. [Installation](tutorials/01-installation.md) \(thanks [Victor](https://github.com/victorychain)\)
2. [Sending a Transaction](tutorials/02-transaction.md) \(thanks [Victor](https://github.com/victorychain)\)
3. [Writing Smart Contract in JavaScript](tutorials/03-smart-contracts-javascript.md) \(thanks [otto](https://github.com/ottokafka)\)
Expand All @@ -74,6 +64,5 @@ Each email can claim tokens every day [here](https://testnet.nebulas.io/claim).


## Contributing

Feel free to join Nebulas Testnet. If you did find something wrong, please [submit an issue](https://github.com/nebulasio/go-nebulas/issues/new) or [submit a pull request](https://github.com/nebulasio/go-nebulas/pulls) to let us know, we will add your name and url to this page as soon as possible.

0 comments on commit 908b66e

Please sign in to comment.