forked from txpipe/oura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add guide on connecting to custom networks (txpipe#306)
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Connecting to custom networks | ||
|
||
This guide shows you how to configure Oura to connect to a custom (not mainnet or testnet) network. | ||
|
||
|
||
## Instructions | ||
|
||
### 1. Add Network specific configurations | ||
|
||
Add the following data on the network to config TOML file. | ||
|
||
```TOML | ||
[chain] | ||
byron_epoch_length = u32 | ||
byron_slot_length = u32 | ||
byron_known_slot = u64 | ||
byron_known_hash = String | ||
byron_known_time = u64 | ||
shelley_epoch_length = u32 | ||
shelley_slot_length = u32 | ||
shelley_known_slot = u64 | ||
shelley_known_hash = String | ||
shelley_known_time = u64 | ||
address_hrp = String | ||
adahandle_policy = String | ||
``` | ||
|
||
Some details on the cofigurataion: | ||
|
||
| Name | DataType | Description | | ||
| :--- | :--- | :--- | | ||
| byron_epoch_length | u32 | .... | | ||
| byron_slot_length | u32 | .... | | ||
| byron_known_slot | u32 | .... | | ||
| byron_known_hash | String | .... | | ||
| byron_known_time | u64 | .... | | ||
| shelley_epoch_length | u32 | .... | | ||
| shelley_slot_length | u32 | .... | | ||
| shelley_known_slot | u32 | .... | | ||
| shelley_known_hash | String | .... | | ||
| shelley_known_time | u64 | .... | | ||
| address_hrp | String | .... | | ||
| adahandle_policy | String | Minting policy of AdaHandle on the network. | |