infra-nimbus/ansible/roles/get-geth-web3-urls/defaults/main.yml

20 lines
796 B
YAML
Raw Normal View History

---
eth2_to_eth1_map:
pyrmont: 'goerli'
prater: 'goerli'
mainnet: 'mainnet'
eth2_network_name: '{{ beacon_node_network | mandatory }}'
eth1_network_name: '{{ eth2_to_eth1_map[eth2_network_name] | mandatory }}'
web3_geth_node_consul_name: 'nimbus-{{ eth1_network_name | mandatory }}-node-ws'
# The more the merrier, since we don't want to hit Infura throttling.
infura_api_tokens:
- '9e2f2cc13f70432f8b87dbe7d51b81db'
- '922cc3c4badf4789b68d895267530a4a'
- '01cde3e0c47a47ff8dcdc52259b3a71c'
- '675db4626923473591cf6418e4dae175'
- '5cae339ba3144f438e8da1db2c25cad4'
selected_infura_token: '{{ infura_api_tokens[play_hosts.index(inventory_hostname) % (infura_api_tokens|length)] }}'
selected_infura_url: 'wss://{{ eth1_network_name }}.infura.io/ws/v3/{{ selected_infura_token }}'