-
Notifications
You must be signed in to change notification settings - Fork 13
/
athena.toml
71 lines (66 loc) · 3.49 KB
/
athena.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Block which represents properties for a network
[evm.athena]
# The name that the chain is indexed on, for linkable anchors
name = "athena"
# Http(s) Endpoint for quick Req/Res. Input can be single http-endpoint or array of multiple http-endpoints.
http-endpoint = "http://localhost:5002"
# Websocket Endpoint for long living connections
ws-endpoint = "ws://localhost:5002"
# chain specific id from evm opcode
chain-id = 5002
# The Private Key of this account on this network
# the format is more dynamic here:
# 1. if it starts with '0x' then this would be raw (64 bytes) hex encoded
# private key.
# Example: 0x8917174396171783496173419137618235192359106130478137647163400318
#
# 2. if it starts with '$' then it would be considered as an Enviroment variable
# of a hex-encoded private key.
# Example: $RINKEBY_PRIVATE_KEY
#
# 3. if it starts with '> ' then it would be considered as a command that
# the relayer would execute and the output of this command would be the
# hex encoded private key.
# Example: > ./getKey.sh rinkeby-privatekey
#
# 4. if it doesn't contains special characters and has 12 or 24 words in it
# then we should process it as a mnemonic string: 'word two three four ...'
private-key = "$ATHENA_PRIVATE_KEY"
tx-queue = { max-sleep-interval = 1500, polling-interval = 12000 }
# The relayer fee configuration for this chain.
# relayer-profit-percentis percentage of profit relayer will get from the transaction fee.
# max-refund-amount is the maximum amount of native token that relayer will refund to the user( in usd)
relayer-fee-config = { relayer-profit-percent= 5, max-refund-amount = 5 }
# Value to indicate that the relayer should enable services for this chain
enabled = true
# Block which represents the configuration for a supported contract on the network
[[evm.athena.contracts]]
# The contract can be one of these values
# - VAnchor (Variable Anchor)
# - SignatureBridge
contract = "VAnchor"
# The address of the contract
address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3"
# The deployed block number of the contract. When a relayer does not have information for
# this contract in its store, it will start to sync and query for relevant historical data
# starting at this block number
deployed-at = 1
# Configuration for the events watcher of this contract. The events-watcher can be switched on/off
# and the polling interval specifies the period of time (in ms) that the events-watcher thread
# will wait before issuing another query for new events.
events-watcher = { enabled = true, polling-interval = 1000, print-progress-interval = 60000 }
# Entries for this anchor contract's connected edges.
# These fields are used to determine the generation of AnchorUpdate proposals
linked-anchors = [
{ type = "Evm", chain = "hermes", chain-id = 5001, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
{ type = "Evm", chain = "demeter", chain-id = 5003, address = "0x91eB86019FD8D7c5a9E31143D422850A13F670A3" },
]
# Proposal signing backend can have a value of "Mocked" or the name of the DKG configuration.
# When the type is "Mocked", the supplied private-key will sign any proposed updates and submit
# the signed proposals to the configured SignatureBridge of the relevant chains.
proposal-signing-backend = { type = "Mocked", private-key = "$GOVERNOR_PRIVATE_KEY" }
[[evm.athena.contracts]]
contract = "SignatureBridge"
address = "0x2946259E0334f33A064106302415aD3391BeD384"
deployed-at = 1
events-watcher = { enabled = true, polling-interval = 1000, print-progress-interval = 60000 }