#interface #command-line-interface #airnode #voting #agent #secondary #rrp

app airnode-rrp-log

Airnode RRP Log command-line interface

5 releases (3 breaking)

0.4.0 May 19, 2022
0.3.2 Jan 12, 2022
0.3.0 Dec 18, 2021
0.2.0 Oct 20, 2021
0.1.0 Sep 27, 2021

#14 in #secondary

MIT license

145KB
3.5K SLoC

airnode-rrp-log

Installation

cargo install airnode-rrp-log

Usage

USAGE:
    airnode-rrp-log [FLAGS] [OPTIONS] --address-contract <address-contract>

FLAGS:
    -h, --help            Prints help information
        --pretty-print    Pretty print JSON responses
    -V, --version         Prints version information

OPTIONS:
        --address-contract <address-contract>        API3 secondary voting agent address [env: ADDR_CONTRACT=]
        --by-address <by-address>                    [env: BY_ADDRESS=]
        --by-airnode <by-airnode>                    [env: BY_AIRNODE=]
        --by-endpoint-id <by-endpoint-id>            [env: BY_ENDPOINT_ID=]
        --by-provider-id <by-provider-id>            [env: BY_PROVIDER_ID=]
        --by-request-id <by-request-id>              [env: BY_REQUEST_ID=]
        --by-requester-index <by-requester-index>    [env: BY_ENDPOINTER_INDEX=]
        --by-template-id <by-template-id>            [env: BY_TEMPLATE_ID=]
    -f, --format <format>                            format of output: "jsonl" or "json" [default: jsonl]
        --max-block <max-block>                      Max block to stop contract events listening [env: RPC_MAX_BLOCK=]
        --min-block <min-block>                      Number of the first block to start watching [env: RPC_MIN_BLOCK=9780500]  [default: 1]
        --rpc-batch-size <rpc-batch-size>            Ethereum JSON+RPC batch size for reading. Light clients will require smaller size  [env:RPC_BATCH_SIZE=1000000]  [default: 1000]
        --rpc-endpoint <rpc-endpoint>                Ethereum JSON+RPC HTTP address [env:RPC_ENDPOINT=https://rinkeby.infura.io/v3/.....]  [default:http://localhost:8545/]

Testing with XDAI

export RPC_ENDPOINT=$(chainstate --endpoints -t xdai | head -n1)
export RPC_BATCH_SIZE=100000
export RPC_MIN_BLOCK=13796900
export ADDR_CONTRACT=0x32D228B5d44Fd18FefBfd68BfE5A5F3f75C873AEairnode-rrp-log
airnode-rrp-log

Testing with Rinkeby

export RPC_ENDPOINT=$(chainstate --endpoints -t rinkeby,infura | head -n1)
export RPC_BATCH_SIZE=50000
export RPC_MIN_BLOCK=7812260
export ADDR_CONTRACT=0xf9c39ec11055508bdda0bc2a0234abbbc09a3dec
airnode-rrp-log

See Also

UI with the same functionality:

License

MIT

Dependencies

~13–24MB
~317K SLoC