Skip to content

Commit

Permalink
Merge pull request #8 from blockchain-etl/update_rpc_node
Browse files Browse the repository at this point in the history
Update default public node used
  • Loading branch information
csoreff committed Sep 28, 2022
2 parents 7fe502f + ece1ff6 commit 23feea4
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -17,7 +17,7 @@ Export blocks, balance updates and operations ([Schema](docs/schema.md), [Refere

```bash
tezosetl export --start-block 1 --end-block 100 \
--provider-uri https://mainnet-tezos.giganode.io --output-dir output --output-format json
--provider-uri https://mainnet.api.tez.ie --output-dir output --output-format json
```

For the latest version, checkout the repo and call
Expand All @@ -32,7 +32,7 @@ python tezosetl.py
```bash
pip install -e .[dev]
echo "TEZOSETL_PROVIDER_URI variable is optional"
export TEZOSETL_PROVIDER_URI=https://mainnet-tezos.giganode.io
export TEZOSETL_PROVIDER_URI=https://mainnet.api.tez.ie
pytest -vv
```

Expand All @@ -55,4 +55,4 @@ tox
3. Start the export using the image:

docker run -v $HOME/output:/tezos-etl/output tezos-etl:latest export_partitioned \
-s 2018-06-30 -e 2018-07-01 -p https://mainnet-tezos.giganode.io --output-format csv
-s 2018-06-30 -e 2018-07-01 -p https://mainnet.api.tez.ie --output-format csv
14 changes: 7 additions & 7 deletions docs/commands.md
Expand Up @@ -13,7 +13,7 @@ Options:
-s, --start-block INTEGER Start block [default: 0]
-e, --end-block INTEGER End block [required]
-p, --provider-uri TEXT The URI of the remote Tezos node [default:
https://mainnet-tezos.giganode.io]
https://mainnet.api.tez.ie]
-w, --max-workers INTEGER The maximum number of workers. [default: 5]
-o, --output-dir TEXT The output directory for block data.
-h, --help Show this message and exit.
Expand All @@ -23,7 +23,7 @@ Options:

```bash
tezosetl export --start-block 0 --end-block 100 \
--provider-uri https://mainnet-tezos.giganode.io --output-dir output
--provider-uri https://mainnet.api.tez.ie --output-dir output
```

Exports blocks, balance updates, and operations to individual files in the folder specified in `--output-dir`.
Expand All @@ -33,7 +33,7 @@ Options:
-s, --start-block INTEGER Start block [default: 0]
-e, --end-block INTEGER End block [required]
-p, --provider-uri TEXT The URI of the remote Tezos node [default:
https://mainnet-tezos.giganode.io]
https://mainnet.api.tez.ie]
-w, --max-workers INTEGER The maximum number of workers. [default: 5]
-o, --output-dir TEXT The output directory for block data.
-f, --output-format [json|csv] The output format. [default: json]
Expand All @@ -46,7 +46,7 @@ Options:

```bash
tezosetl export_partitioned --start 2018-06-30 --end 2018-06-31 \
--provider-uri https://mainnet-tezos.giganode.io --output-dir output
--provider-uri https://mainnet.api.tez.ie --output-dir output
```

Exports partitioned data for a range of blocks or dates.
Expand All @@ -59,7 +59,7 @@ Options:
The number of blocks to export in partition.
[default: 100]
-p, --provider-uri TEXT The URI of the remote Tezos node [default:
https://mainnet-tezos.giganode.io]
https://mainnet.api.tez.ie]
-o, --output-dir TEXT Output directory, partitioned in Hive style.
[default: output]
-f, --output-format [json|csv] The output format. [default: json]
Expand All @@ -74,7 +74,7 @@ Options:
#### get_block_range_for_date

```bash
tezosetl get_block_range_for_date --provider-uri=https://mainnet-tezos.giganode.io --date 2020-01-01
tezosetl get_block_range_for_date --provider-uri=https://mainnet.api.tez.ie --date 2020-01-01
760512,761937
```

Expand All @@ -83,7 +83,7 @@ Outputs start and end blocks for given date.
```
Options:
-p, --provider-uri TEXT The URI of the remote Tezos node [default:
https://mainnet-tezos.giganode.io]
https://mainnet.api.tez.ie]
-d, --date <LAMBDA> The date e.g. 2018-01-01. [required]
-o, --output TEXT The output file. If not specified stdout is used.
-h, --help Show this message and exit.
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.md
Expand Up @@ -10,7 +10,7 @@ Export blocks, balance updates and operations ([Schema](schema.md), [Reference](

```bash
tezosetl export --start-block 1 --end-block 100 \
--provider-uri https://mainnet-tezos.giganode.io --output-dir output --output-format json
--provider-uri https://mainnet.api.tez.ie --output-dir output --output-format json
```

Find all commands [here](commands.md).
6 changes: 3 additions & 3 deletions docs/schema.md
Expand Up @@ -349,7 +349,7 @@ internal_operation_index: INTEGER
nonce: STRING
```

### set_deposits_limits
### set_deposits_limit_operations

```
level: INTEGER
Expand All @@ -372,7 +372,7 @@ consumed_milligas: INTEGER
consumed_gas: INTEGER
```

### increase_paid_storage
### increase_paid_storage_operations

```
level: INTEGER
Expand All @@ -395,7 +395,7 @@ consumed_milligas: INTEGER
consumed_gas: INTEGER
```

### vdf_revelation
### vdf_revelation_operations

```
solution: STRING
Expand Down
2 changes: 1 addition & 1 deletion tezosetl/cli/export.py
Expand Up @@ -36,7 +36,7 @@
@click.command(context_settings=dict(help_option_names=['-h', '--help']))
@click.option('-s', '--start-block', default=0, show_default=True, type=int, help='Start block')
@click.option('-e', '--end-block', required=True, type=int, help='End block')
@click.option('-p', '--provider-uri', default='https://mainnet-tezos.giganode.io', show_default=True, type=str,
@click.option('-p', '--provider-uri', default='https://mainnet.api.tez.ie', show_default=True, type=str,
help='The URI of the remote Tezos node')
@click.option('-w', '--max-workers', default=5, show_default=True, type=int, help='The maximum number of workers.')
@click.option('-o', '--output-dir', default=None, type=str, help='The output directory for block data.')
Expand Down
2 changes: 1 addition & 1 deletion tezosetl/cli/export_partitioned.py
Expand Up @@ -87,7 +87,7 @@ def get_partitions(start, end, partition_batch_size, provider_uri):
@click.option('-e', '--end', required=True, type=str, help='End block/ISO date')
@click.option('-b', '--partition-batch-size', default=100, show_default=True, type=int,
help='The number of blocks to export in partition.')
@click.option('-p', '--provider-uri', default='https://mainnet-tezos.giganode.io', show_default=True, type=str,
@click.option('-p', '--provider-uri', default='https://mainnet.api.tez.ie', show_default=True, type=str,
help='The URI of the remote Tezos node')
@click.option('-o', '--output-dir', default='output', show_default=True, type=str,
help='Output directory, partitioned in Hive style.')
Expand Down
2 changes: 1 addition & 1 deletion tezosetl/cli/get_block_range_for_date.py
Expand Up @@ -34,7 +34,7 @@


@click.command(context_settings=dict(help_option_names=['-h', '--help']))
@click.option('-p', '--provider-uri', default='https://mainnet-tezos.giganode.io', show_default=True, type=str,
@click.option('-p', '--provider-uri', default='https://mainnet.api.tez.ie', show_default=True, type=str,
help='The URI of the remote Tezos node')
@click.option('-d', '--date', required=True, type=lambda d: datetime.strptime(d, '%Y-%m-%d'),
help='The date e.g. 2018-01-01.')
Expand Down

0 comments on commit 23feea4

Please sign in to comment.