Skip to content

Commit

Permalink
Add launchpad testnet (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi committed Oct 22, 2020
1 parent f2dee15 commit 9077d0e
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 1 deletion.
10 changes: 10 additions & 0 deletions cardano-lib/default.nix
Expand Up @@ -141,6 +141,16 @@ let
edgePort = 3001;
explorerConfig = mkExplorerConfig "shelley_qa" nodeConfig;
};
launchpad = rec {
useByronWallet = false;
private = false;
relaysNew = "relays-new.launchpad.dev.cardano.org";
networkConfig = import ./launchpad-config.nix;
consensusProtocol = networkConfig.Protocol;
nodeConfig = defaultLogConfig // networkConfig;
edgePort = 3001;
explorerConfig = mkExplorerConfig "launchpad" nodeConfig;
};
latency-tests = {
useByronWallet = false;
relays = "relays.latency-tests.aws.iohkdev.io";
Expand Down
67 changes: 67 additions & 0 deletions cardano-lib/launchpad-byron-genesis.json
@@ -0,0 +1,67 @@
{ "bootStakeholders":
{ "327489097a3a79f5f0b3b80ce09705c7b69b24990c3c0300704d0112": 1
, "3bb9b95bc757320cc4dc62d70f6fa2689ecd6eeb0758f917baef6f5d": 1
, "df3dc8c92f6fb121135f1deada79f7bb5141a3355c44c702df52ec84": 1
}
, "heavyDelegation":
{ "327489097a3a79f5f0b3b80ce09705c7b69b24990c3c0300704d0112":
{ "omega": 0
, "issuerPk":
"TnqrnEUvmjVFENungrs2M+1QqzqVn20DGnqt5b1BGfwKaHA4xIVVJClASIpy+nHD2g9ArCSvpOID69W5RJCl1Q=="
, "delegatePk":
"XM7TBqnJNRIRUAIAWG2tqniL9BEvp21fjlPn/RwotdJYw9vctAE7Os3EBz+FoDj83fyyWFr/+HYgBXudw5elBw=="
, "cert":
"63fe2a2643d8c0a724375f702eb48ca1604c969407be702e6098c3759d30b5f604a22e6a53fe4962c5df9c62a8de05e88cd6c7dae977a47ed76a0de25a4dd804"
}
, "3bb9b95bc757320cc4dc62d70f6fa2689ecd6eeb0758f917baef6f5d":
{ "omega": 0
, "issuerPk":
"24GUf897xjxSAMeCLioQfX/xPJjqIhK1YrZ7cKehbk6ZKTPbWGFmKRep4tQlqq9JwzcsuGXCabIA6rto7y/qKw=="
, "delegatePk":
"D7mdnWwOYOvs0Mf1/U62aYpFwU/EZUta2Fr/gHx1W49nFVQWKLrdrBDftmNEhkbpnojTF6qKJkd5aXYGv/iYSg=="
, "cert":
"be8d0813576fb1d12a972ba7b88e8be5a1a8c32969306775a480ecf6f77135aacb0d4d79ff6065cc7f1bf0fbed920120bee7ea5d24880047cbfef55d3b30d50b"
}
, "df3dc8c92f6fb121135f1deada79f7bb5141a3355c44c702df52ec84":
{ "omega": 0
, "issuerPk":
"Vfm82j2qR4dgHCnTNFMXCHS/2hFBQlDD5o4RDjp88GVSCVE7Kx02PEHHB04T7WlkOHEPxPWJ1DQKQFnFpoEnMA=="
, "delegatePk":
"KthIdyJH/+Q+qyExndCBIMD6m3PNnLWXNYd2Nr033ASk+oi3WO8zEI9P2+WFERWoHgoFDU68xEPJQUh44iiByQ=="
, "cert":
"51c7fbdd9434871943e815153ffa73f11bfbc03a8af8f1d41655bcfc86d74f28bfcbd615773a0975e98b948a82e57fb6eb658f18ea131b42997ea9abb1d2060b"
}
}
, "startTime": 1603378800
, "nonAvvmBalances":
{ "FHnt4NL7yPXoRoxTcaAHN51TfiZ7i86iyB4FJNuNrfSCLETVHhh2W7K3rER2rCF":
"5000000000000000"
, "FHnt4NL7yPXv46QZZCzvu1gGGrRyZj4pbKstZqrEcFYvsJxNCcpDgbhfNZTb45W":
"5000000000000000"
, "FHnt4NL7yPXxSnHFqR3GqDL95rHGuhdwVrm8aD7ACSjJaAGRzpEDag9tUC85zSG":
"5000000000000000"
}
, "blockVersionData":
{ "scriptVersion": 0
, "slotDuration": "20000"
, "maxBlockSize": "2000000"
, "maxHeaderSize": "2000000"
, "maxTxSize": "4096"
, "maxProposalSize": "700"
, "mpcThd": "20000000000000"
, "heavyDelThd": "300000000000"
, "updateVoteThd": "1000000000000"
, "updateProposalThd": "100000000000000"
, "updateImplicit": "10000"
, "softforkRule":
{ "initThd": "900000000000000"
, "minThd": "600000000000000"
, "thdDecrement": "50000000000000"
}
, "txFeePolicy":
{ "summand": "155381000000000" , "multiplier": "43946000000" }
, "unlockStakeEpoch": "18446744073709551615"
}
, "protocolConsts": { "k": 36, "protocolMagic": 3 }
, "avvmDistr": {}
}
45 changes: 45 additions & 0 deletions cardano-lib/launchpad-config.nix
@@ -0,0 +1,45 @@
##########################################################
############### Shelley MA ###############
############### Cardano Node Configuration ###############
##########################################################

{
##### Locations #####

ByronGenesisFile = ./launchpad-byron-genesis.json;
ByronGenesisHash = "3815702729e4ba80ed3b6fc900be90a4b276daf5fcb4132c588cb038bff611f0";
ShelleyGenesisFile = ./launchpad-shelley-genesis.json;
ShelleyGenesisHash = "8587fca9128b0470dcaf928f00bb2bd99dec5047e080a2da3aa419bd17023d75";

##### Core protocol parameters #####

# This is the instance of the Ouroboros family that we are running.
# The node also supports various test and mock instances.
# "RealPBFT" is the real (ie not mock) (permissive) OBFT protocol, which
# is what we use on mainnet in Byron era.
Protocol = "Cardano";

PBftSignatureThreshold = 0.9;
# The mainnet does not include the network magic into addresses. Testnets do.
RequiresNetworkMagic = "RequiresMagic";

TestShelleyHardForkAtEpoch = 2;

MaxKnownMajorProtocolVersion = 2;
#### LOGGING Debug

minSeverity = "Debug";

##### Update system parameters #####

# This protocol version number gets used by block producing nodes as part
# part of the system for agreeing on and synchronising protocol updates.
LastKnownBlockVersion-Major = 2;
LastKnownBlockVersion-Minor = 0;
LastKnownBlockVersion-Alt = 0;

# In the Byron era some software versions are also published on the chain.
# We do this only for Byron compatibility now.
ApplicationName = "cardano-sl";
ApplicationVersion = 0;
}
56 changes: 56 additions & 0 deletions cardano-lib/launchpad-shelley-genesis.json
@@ -0,0 +1,56 @@
{
"activeSlotsCoeff": 5.0e-2,
"protocolParams": {
"poolDeposit": 500000000,
"protocolVersion": {
"minor": 0,
"major": 2
},
"minUTxOValue": 1000000,
"decentralisationParam": 1,
"maxTxSize": 16384,
"minPoolCost": 340000000,
"minFeeA": 44,
"maxBlockBodySize": 65536,
"minFeeB": 155381,
"eMax": 18,
"extraEntropy": {
"tag": "NeutralNonce"
},
"maxBlockHeaderSize": 1100,
"keyDeposit": 2000000,
"nOpt": 150,
"rho": 0.003,
"tau": 0.20,
"a0": 0.3
},
"genDelegs": {
"3e7cd2e7a46a4c1aa9727c7fb821d0274d6611ad00a15cc4827b59ca": {
"delegate": "e490a097787bc529d7d37b90ca2019e8da32e4202d183b2c642ca989",
"vrf": "d2b09e6884694221ff0e21d7f51e8e5f7d1ef39d2dd52d2595e3d804e204c70b"
},
"d25346a3b11369810c0d65a26a38ccd98aa92169b37a76ab454e271f": {
"delegate": "e97aa23114ef014ad8d85919a561c0baf57a5f3308184bb361eb518e",
"vrf": "6b282d26b93edc9a9f49073ebe07b8a2b5e3b0a4cc954f823124e4b499d11c85"
},
"ef1573b6b56f2cae3ecffff5afcdc12c6c6d73dcd3dca8fb776a1df5": {
"delegate": "3471f5c7d7a5f57859af1e4d3789b27b811d5f15cc96bcaf7cc47d20",
"vrf": "a11a98991e0fa08e3008180b5cd51d035b2b13ba2610f258c045624bafd2e19c"
}
},
"updateQuorum": 3,
"networkId": "Testnet",
"initialFunds": {},
"maxLovelaceSupply": 45000000000000000,
"networkMagic": 3,
"epochLength": 7200,
"staking": {
"pools": {},
"stake": {}
},
"systemStart": "2020-10-22T15:00:00Z",
"slotsPerKESPeriod": 129600,
"slotLength": 1,
"maxKESEvolutions": 62,
"securityParam": 36
}
2 changes: 1 addition & 1 deletion release.nix
Expand Up @@ -55,7 +55,7 @@ fix (self: mappedPkgs // {
inherit (commonLib) check-hydra;
inherit jormungandrConfigs;
jormungandr-deployment = jormungandrLib.mkConfigHtml { inherit (jormungandrLib.environments) itn_rewards_v1 beta nightly legacy; };
cardano-deployment = cardanoLib.mkConfigHtml { inherit (cardanoLib.environments) mainnet testnet staging shelley_qa; };
cardano-deployment = cardanoLib.mkConfigHtml { inherit (cardanoLib.environments) mainnet testnet staging shelley_qa launchpad; };

forceNewEval = pkgs.writeText "forceNewEval" iohk-nix.rev;
required = pkgs.lib.hydraJob (pkgs.releaseTools.aggregate {
Expand Down

0 comments on commit 9077d0e

Please sign in to comment.