-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow the user to see and update app settings
- Loading branch information
Showing
8 changed files
with
389 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- How often to check which is the latest version of the node binary. | ||
ALTER TABLE settings ADD COLUMN node_bin_version_polling_freq_secs INTEGER; | ||
|
||
-- How often to query balances from the ledger. | ||
ALTER TABLE settings ADD COLUMN rewards_balances_retrieval_freq_secs INTEGER; | ||
|
||
-- How often to fetch metrics and node info from active/running nodes | ||
ALTER TABLE settings ADD COLUMN nodes_metrics_polling_freq_secs INTEGER; | ||
|
||
-- URL to send queries using RPC to get rewards addresses balances from L2 network. | ||
ALTER TABLE settings ADD COLUMN l2_network_rpc_url TEXT; | ||
|
||
-- ERC20 token contract address. | ||
ALTER TABLE settings ADD COLUMN token_contract_address TEXT; | ||
|
||
|
||
UPDATE settings SET | ||
-- Check latest version of node binary every couple of hours. | ||
node_bin_version_polling_freq_secs = 60 * 60 * 2, | ||
-- Check balances every 15mins. | ||
rewards_balances_retrieval_freq_secs = 60 * 15, | ||
-- Poll nodes metrics every 5 secs. | ||
nodes_metrics_polling_freq_secs = 5, | ||
-- Arbitrum Sepolia testnet. | ||
l2_network_rpc_url = "https://sepolia-rollup.arbitrum.io/rpc", | ||
-- ANT token contract on Arbitrum Sepolia testnet. | ||
token_contract_address = "0xBE1802c27C324a28aeBcd7eeC7D734246C807194"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.