-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:txpipe/oura
- Loading branch information
Showing
9 changed files
with
387 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,31 @@ | ||
# UtxoRPC with Dolos | ||
|
||
The UtxoRPC with Dolos (UtxoRPC) source uses gRPC to fetch blocks and receive blocks from a no Dolos. | ||
|
||
## Configuration | ||
|
||
The following snippet shows an example of how to set up a typical UtxoRPC source: | ||
|
||
```toml | ||
[source] | ||
type = "UtxoRPC" | ||
url = ["https://<hostname>"] | ||
max_items_per_page = 20 | ||
``` | ||
|
||
### Section `source`: | ||
|
||
- `type`: this field must be set to the literal value `UtxoRPC` | ||
- `url`: A string contains Dolos gRPC url | ||
- `max_items_per_page`: Number of blocks that will be requested from Dolos when using a chain distance point. Default value is `20` | ||
|
||
## Examples | ||
|
||
Connecting to a remote Dolos node in preprod through gRPC: | ||
|
||
```toml | ||
[source] | ||
type = "UtxoRPC" | ||
url = ["https://50051-romantic-calmness-b55bqg.us1.demeter.run"] | ||
max_items_per_page = 20 | ||
``` |
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,9 @@ | ||
[source] | ||
type = "UtxoRPC" | ||
url = "https://50051-romantic-calmness-b55bqg.us1.demeter.run" | ||
|
||
[intersect] | ||
type = "Tip" | ||
|
||
[sink] | ||
type = "Stdout" |
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 @@ | ||
node |
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,9 @@ | ||
[source] | ||
type = "N2C" | ||
socket_path = "examples/n2c_source/node/node.socket" | ||
|
||
[intersect] | ||
type = "Tip" | ||
|
||
[sink] | ||
type = "Stdout" |
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,20 @@ | ||
version: "3" | ||
services: | ||
node: | ||
image: inputoutput/cardano-node | ||
container_name: node | ||
ports: | ||
- 3001:3001 | ||
volumes: | ||
- ./node:/data:rw | ||
- ./node:/ipc:rw | ||
environment: | ||
- NETWORK=preprod | ||
- CARDANO_BIND_ADDR=0.0.0.0 | ||
- CARDANO_PORT=3001 | ||
networks: | ||
- dolos-network | ||
|
||
networks: | ||
dolos-network: | ||
driver: bridge |
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
Oops, something went wrong.