parent
cf221eb06e
commit
efd6412266
|
@ -109,6 +109,74 @@ let DEFAULT_NETWORKS* = %* [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
let NETWORKS* = %* [
|
||||||
|
{
|
||||||
|
"chainId": 1,
|
||||||
|
"chainName": "Ethereum Mainnet",
|
||||||
|
"rpcUrl": "https://mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
||||||
|
"blockExplorerUrl": "https://etherscan.io/",
|
||||||
|
"iconUrl": "",
|
||||||
|
"nativeCurrencyName": "Ether",
|
||||||
|
"nativeCurrencySymbol": "ETH",
|
||||||
|
"nativeCurrencyDecimals": 18,
|
||||||
|
"isTest": false,
|
||||||
|
"layer": 1,
|
||||||
|
"enabled": true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"chainId": 3,
|
||||||
|
"chainName": "Ethereum Ropsten",
|
||||||
|
"rpcUrl": "https://ropsten.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
||||||
|
"blockExplorerUrl": "https://ropsten.etherscan.io/",
|
||||||
|
"iconUrl": "",
|
||||||
|
"nativeCurrencyName": "Ether",
|
||||||
|
"nativeCurrencySymbol": "ETH",
|
||||||
|
"nativeCurrencyDecimals": 18,
|
||||||
|
"isTest": true,
|
||||||
|
"layer": 1,
|
||||||
|
"enabled": false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"chainId": 4,
|
||||||
|
"chainName": "Ethereum Rinkeby",
|
||||||
|
"rpcUrl": "https://rinkeby.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
||||||
|
"blockExplorerUrl": "https://rinkeby.etherscan.io/",
|
||||||
|
"iconUrl": "",
|
||||||
|
"nativeCurrencyName": "Ether",
|
||||||
|
"nativeCurrencySymbol": "ETH",
|
||||||
|
"nativeCurrencyDecimals": 18,
|
||||||
|
"isTest": true,
|
||||||
|
"layer": 1,
|
||||||
|
"enabled": false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"chainId": 5,
|
||||||
|
"chainName": "Ethereum Goerli",
|
||||||
|
"rpcUrl": "http://goerli.blockscout.com/",
|
||||||
|
"blockExplorerUrl": "https://goerli.etherscan.io/",
|
||||||
|
"iconUrl": "",
|
||||||
|
"nativeCurrencyName": "Ether",
|
||||||
|
"nativeCurrencySymbol": "ETH",
|
||||||
|
"nativeCurrencyDecimals": 18,
|
||||||
|
"isTest": true,
|
||||||
|
"layer": 1,
|
||||||
|
"enabled": false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"chainId": 10,
|
||||||
|
"chainName": "Optimistic Ethereum",
|
||||||
|
"rpcUrl": "https://optimism-mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
||||||
|
"blockExplorerUrl": "https://optimistic.etherscan.io",
|
||||||
|
"iconUrl": "",
|
||||||
|
"nativeCurrencyName": "Ether",
|
||||||
|
"nativeCurrencySymbol": "ETH",
|
||||||
|
"nativeCurrencyDecimals": 18,
|
||||||
|
"isTest": false,
|
||||||
|
"layer": 2,
|
||||||
|
"enabled": true,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
var NODE_CONFIG* = %* {
|
var NODE_CONFIG* = %* {
|
||||||
"BrowsersConfig": {
|
"BrowsersConfig": {
|
||||||
"Enabled": true
|
"Enabled": true
|
||||||
|
@ -191,73 +259,7 @@ var NODE_CONFIG* = %* {
|
||||||
"EnsConfig": {
|
"EnsConfig": {
|
||||||
"Enabled": true
|
"Enabled": true
|
||||||
},
|
},
|
||||||
"Networks": [
|
"Networks": Networks,
|
||||||
{
|
|
||||||
"chainId": 1,
|
|
||||||
"chainName": "Ethereum Mainnet",
|
|
||||||
"rpcUrl": "https://mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
|
||||||
"blockExplorerUrl": "https://etherscan.io/",
|
|
||||||
"iconUrl": "",
|
|
||||||
"nativeCurrencyName": "Ether",
|
|
||||||
"nativeCurrencySymbol": "ETH",
|
|
||||||
"nativeCurrencyDecimals": 18,
|
|
||||||
"isTest": false,
|
|
||||||
"layer": 1,
|
|
||||||
"enabled": true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"chainId": 3,
|
|
||||||
"chainName": "Ethereum Ropsten",
|
|
||||||
"rpcUrl": "https://ropsten.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
|
||||||
"blockExplorerUrl": "https://ropsten.etherscan.io/",
|
|
||||||
"iconUrl": "",
|
|
||||||
"nativeCurrencyName": "Ether",
|
|
||||||
"nativeCurrencySymbol": "ETH",
|
|
||||||
"nativeCurrencyDecimals": 18,
|
|
||||||
"isTest": true,
|
|
||||||
"layer": 1,
|
|
||||||
"enabled": false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"chainId": 4,
|
|
||||||
"chainName": "Ethereum Rinkeby",
|
|
||||||
"rpcUrl": "https://rinkeby.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
|
||||||
"blockExplorerUrl": "https://rinkeby.etherscan.io/",
|
|
||||||
"iconUrl": "",
|
|
||||||
"nativeCurrencyName": "Ether",
|
|
||||||
"nativeCurrencySymbol": "ETH",
|
|
||||||
"nativeCurrencyDecimals": 18,
|
|
||||||
"isTest": true,
|
|
||||||
"layer": 1,
|
|
||||||
"enabled": false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"chainId": 5,
|
|
||||||
"chainName": "Ethereum Goerli",
|
|
||||||
"rpcUrl": "http://goerli.blockscout.com/",
|
|
||||||
"blockExplorerUrl": "https://goerli.etherscan.io/",
|
|
||||||
"iconUrl": "",
|
|
||||||
"nativeCurrencyName": "Ether",
|
|
||||||
"nativeCurrencySymbol": "ETH",
|
|
||||||
"nativeCurrencyDecimals": 18,
|
|
||||||
"isTest": true,
|
|
||||||
"layer": 1,
|
|
||||||
"enabled": false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"chainId": 10,
|
|
||||||
"chainName": "Optimistic Ethereum",
|
|
||||||
"rpcUrl": "https://optimism-mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
|
||||||
"blockExplorerUrl": "https://optimistic.etherscan.io",
|
|
||||||
"iconUrl": "",
|
|
||||||
"nativeCurrencyName": "Ether",
|
|
||||||
"nativeCurrencySymbol": "ETH",
|
|
||||||
"nativeCurrencyDecimals": 18,
|
|
||||||
"isTest": false,
|
|
||||||
"layer": 2,
|
|
||||||
"enabled": true,
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TorrentConfig": {
|
"TorrentConfig": {
|
||||||
"Enabled": false,
|
"Enabled": false,
|
||||||
"Port": DEFAULT_TORRENT_CONFIG_PORT,
|
"Port": DEFAULT_TORRENT_CONFIG_PORT,
|
||||||
|
|
|
@ -350,7 +350,8 @@ proc login*(self: Service, account: AccountDto, password: string): string =
|
||||||
"DataDir": DEFAULT_TORRENT_CONFIG_DATADIR,
|
"DataDir": DEFAULT_TORRENT_CONFIG_DATADIR,
|
||||||
"TorrentDir": DEFAULT_TORRENT_CONFIG_TORRENTDIR,
|
"TorrentDir": DEFAULT_TORRENT_CONFIG_TORRENTDIR,
|
||||||
"Port": DEFAULT_TORRENT_CONFIG_PORT
|
"Port": DEFAULT_TORRENT_CONFIG_PORT
|
||||||
}
|
},
|
||||||
|
"Networks": NETWORKS,
|
||||||
}
|
}
|
||||||
|
|
||||||
let response = status_account.login(account.name, account.keyUid, hashedPassword, thumbnailImage,
|
let response = status_account.login(account.name, account.keyUid, hashedPassword, thumbnailImage,
|
||||||
|
|
Loading…
Reference in New Issue