-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdefault.json5
103 lines (99 loc) · 4.84 KB
/
default.json5
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// TODO: add descriptions in comments
// This file should not be aimed at any specific environment, but rather contain configuration defaults that are not likely to cause issues if left undefined in an override
{
/*
Server
*/
app: {
url: "http://127.0.0.1", // URL where the relay server will be deployed, it could be localhost or the IP of the host machine.
port: 8090, // port where the relay server will be hosted.
devMode: false, // indicates to the server if we are in development mode or not.
customReplenish: false, // set if the server uses a custom replenish function or not.
logLevel: 4 /* The log level for the relay server. Available levels:
{
TRACE: 0;
DEBUG: 1;
INFO: 2;
WARN: 3;
ERROR: 4;
SILENT: 5;
}
*/,
workdir: ".", // path to the folder where the server will store the database and all its data.
readyTimeout: 30000,
checkInterval: 10000,
disableSponsoredTx: false,
/* It's the fee that the fee collector will take from the execution of
transfer() or transferFrom() functions.
- This value should be expressed as a fraction, i.e. 0.1 means 10% of the value being transfered
and 0.01 means 1% of the value being transfered.
- This value has priority over gasFeePercentage. If transferFeePercentage is properly configured and the execution
is a tranfer or transferFrom, gasFeePercentage will be ignored even if transferFeePercentage = 0.
- Negative values disable this fee.
*/
transferFeePercentage: -1,
/* Sets the fee value (%) that the worker will take from all transactions
based on the total amount of gas used.
- Under certain conditions, this value will be ignored. See transferFeePercentage above to know more about it.
- the fee will be added to the estimated gas and required in the transaction amount.
- the percentage is represented as a fraction (1 = 100%) string to allow for very low or high percentages
- fractions exceeding the number of decimals of that of the native currency will be rounded up
*/
gasFeePercentage: 0,
/* It's a fixed fee that the feeCollector takes from all the operations regardless of their
nature (deploy, relay, transfer, transferFrom, etc.). For example, if fixedUsdFee = 1.5, every transaction
will pay an additional fee of 1.5USD.
- This fee is not exclusive. If gasFeePercentage or transferFeePercentage is configured, fixedUsdFee will be
an additional fee, so the total amount will be initialGasEstimation + gasFee (or transferFee) + fixedFee.
*/
fixedUsdFee: 0,
sponsoredDestinations: [],
requestMinValidSeconds: 43200,
},
/*
Blockchain node
*/
blockchain: {
rskNodeUrl: "http://127.0.0.1:4444", // RSK node endpoint URL, where the RSK node is located.
gasPriceFactor: 1,
alertedBlockDelay: 0,
minAlertedDelayMS: 0,
maxAlertedDelayMS: 0,
registrationBlockRate: 0,
workerMinBalance: 0.001e18, // 0.001 RBTC
workerTargetBalance: 0.003e18, // 0.003 RBTC
managerMinBalance: 0.001e18, // 0.001 RBTC
managerMinStake: 1, // 1 wei
managerTargetBalance: 0.003e18, // 0.003 RBTC
minHubWithdrawalBalance: 0.001e18, // 0.001 RBTC
refreshStateTimeoutBlocks: 5,
pendingTransactionTimeoutBlocks: 30, // around 5 minutes with 10 seconds block times.
successfulRoundsForReady: 3, // successful mined blocks to become ready after exception.
confirmationsNeeded: 12,
retryGasPriceFactor: 1.2, // gas price factor used to calculate the gas on the server, you can leave it as 1
defaultGasLimit: 500000,
maxGasPrice: 100000000000,
estimateGasFactor: 1.2,
initialBlockToScan: 1, // the first block to scan to look for events
maxBlockRange: 1000 // the maximum amount of blocks to include while requesting events
},
/*
Relay contracts addresses
*/
contracts: {
relayHubAddress: "0x0000000000000000000000000000000000000000", // relay hub contract address, you can retrieve this from the contract summary.
relayVerifierAddress: "0x0000000000000000000000000000000000000000", // relay verifier contract address, you can retrieve this from the contract summary.
deployVerifierAddress: "0x0000000000000000000000000000000000000000", // deploy verifier contract address, you can retrieve this from the contract summary.
feesReceiver: "0x0000000000000000000000000000000000000000",
trustedVerifiers: [],
},
register: {
stake: "0.01", // amount of stake to set up
funds: "0.02", // amount of funds to set up
mnemonic: "", // mnemonic to use for unlocking the account parameter; DO NOT STORE IT HERE, use REGISTER_MNEMONIC as env variable.
privateKey: "", // private key to retrieve the account address from; DO NOT STORE IT HERE, use REGISTER_PRIVATE_KEY as env variable.
relayHub: "",
gasPrice: 60000000,
unstakeDelay: 1000,
},
}