|
1 | 1 | { pkgs, network }:
|
2 | 2 | let
|
3 | 3 | fetch-src = ref: builtins.fetchTarball "https://github.com/crypto-org-chain/chain-main/archive/${ref}.tar.gz";
|
4 |
| - chain-maind-testnet = (import (fetch-src "v0.8.0-croeseid") { }).chain-maind-testnet; |
| 4 | + chain-maind-testnet = (import (fetch-src "v0.9.1-croeseid") { }).chain-maind-testnet; |
| 5 | + chain-maind-mainnet = (import (fetch-src "v1.2.0") { }).chain-maind; |
5 | 6 |
|
6 | 7 | cfg =
|
7 | 8 | if network == "testnet" then {
|
8 | 9 | chaind = chain-maind-testnet;
|
9 | 10 | chain-id = "testnet-croeseid-2";
|
10 | 11 | genesis = pkgs.fetchurl {
|
11 |
| - url = "https://raw.githubusercontent.com/crypto-com/testnets/main/testnet-croeseid-2/genesis.json"; |
| 12 | + url = "https://raw.githubusercontent.com/crypto-org-chain/testnets/main/testnet-croeseid-2/genesis.json"; |
12 | 13 | sha256 = sha256:af7c9828806da4945b1b41d434711ca233c89aedb5030cf8d9ce2d7cd46a948e;
|
13 | 14 | };
|
14 | 15 | seeds =
|
15 | 16 |
|
16 | 17 | rpc_server = "https://testnet-croeseid.crypto.com:26657";
|
17 | 18 | minimum-gas-prices = "0.025basetcro";
|
| 19 | + } else if network == "mainnet" then { |
| 20 | + chaind = chain-maind-mainnet; |
| 21 | + chain-id = "crypto-org-chain-mainnet-1"; |
| 22 | + genesis = pkgs.fetchurl { |
| 23 | + url = "https://raw.githubusercontent.com/crypto-org-chain/mainnet/main/crypto-org-chain-mainnet-1/genesis.json"; |
| 24 | + sha256 = sha256:d299dcfee6ae29ca280006eaa065799552b88b978e423f9ec3d8ab531873d882; |
| 25 | + }; |
| 26 | + seeds = |
| 27 | + "8dc1863d1d23cf9ad7cbea215c19bcbe8bf39702@p2p.baaa7e56-cc71-4ae4-b4b3-c6a9d4a9596a.cryptodotorg.bison.run:26656,dc2540dabadb8302da988c95a3c872191061aed2@p2p.7d1b53c0-b86b-44c8-8c02-e3b0e88a4bf7.cryptodotorg.herd.run:26656,d2862ef8f86f9976daa0c6f59455b2b1452dc53b@p2p.a088961f-5dfd-4007-a15c-3a706d4be2c0.cryptodotorg.herd.run:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"; |
| 28 | + rpc_server = "https://mainnet.crypto.org:26657"; |
| 29 | + minimum-gas-prices = "0.025basecro"; |
18 | 30 | } else { };
|
19 | 31 |
|
20 | 32 | init-node = pkgs.writeShellScriptBin "init-node" ''
|
|
0 commit comments