Skip to content

Commit

Permalink
add more keys to the testnet05 genesis grants
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundnoble committed Sep 22, 2024
1 parent 2c34736 commit fb29925
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 20 deletions.
36 changes: 36 additions & 0 deletions pact/genesis/testnet05/grants0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Internal testnet accounts
code: |-
(coin.coinbase "anastasia" (read-keyset "anastasia") 10000000.0)
(coin.coinbase "emily" (read-keyset "emily") 10000000.0)
(coin.coinbase "heekyun" (read-keyset "heekyun") 10000000.0)
(coin.coinbase "jeff" (read-keyset "jeff") 10000000.0)
(coin.coinbase "leah" (read-keyset "leah") 10000000.0)
(coin.coinbase "linda" (read-keyset "linda") 10000000.0)
(coin.coinbase "stuart" (read-keyset "stuart") 1000000000.0)
(coin.coinbase "will" (read-keyset "will") 1000000000.0)
(coin.coinbase "Kadena" (keyset-ref-guard "Kadena") 1000000000.0)
(coin.coinbase "k:4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf" (read-keyset "4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf") 10000000.0)
(coin.coinbase "k:fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842" (read-keyset "fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842") 10000000.0)
(coin.coinbase "k:cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8" (read-keyset "cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8") 10000000.0)
(coin.coinbase "k:89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b" (read-keyset "89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b") 10000000.0)
(coin.coinbase "k:4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af" (read-keyset "4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af") 10000000.0)
(coin.coinbase "k:1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f" (read-keyset "1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f") 10000000.0)
(coin.coinbase "k:554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94" (read-keyset "554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94") 10000000.0)
data:
anastasia: ["1ec74de724b3c700737d99906aba48dbed6b90140bbc64133c558571b18883c3"]
emily: ["368059ab25bec92f19a4f8ce172030e5d672e4879aaae8d5be8b705dd3dfae7f"]
heekyun: ["dfb16b13e4032a6878fd98506b22cb0d6e5932c541e656b7ee5d69d72e6eb76e"]
jeff: ["c53217bb053b827b5fbbb322fced67a86298ec40a59aeef15b2190a05ad0a6bd"]
leah: ["216643137fb5f6a127dbb1063702cbb7c1f153451a1ad4afa9f92e77447cc330"]
linda: ["e1002db0894299bb37238bab02170180c0ae56f5932169bb2fcf756059fea175"]
stuart: ["0e3180dd4ae9d4385a21d7ca95cc7229b0f6b2ca9e0f4861dd4eed685004df66"]
will: ["830ad773510ab0f5a0d4564b7b31d2b0b1ba7fd5a116f66598a1c63cc2142fd5"]
"4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf": ["4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf"]
"fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842": ["fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842"]
"cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8": ["cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8"]
"89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b": ["89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b"]
"4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af": ["4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af"]
"1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f": ["1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f"]
"554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94": ["554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94"]
nonce: testnet-grants-0
keyPairs: []
36 changes: 36 additions & 0 deletions pact/genesis/testnet05/grantsN.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Internal testnet accounts
code: |-
(coin.coinbase "anastasia" (read-keyset "anastasia") 10000000.0)
(coin.coinbase "emily" (read-keyset "emily") 10000000.0)
(coin.coinbase "heekyun" (read-keyset "heekyun") 10000000.0)
(coin.coinbase "jeff" (read-keyset "jeff") 10000000.0)
(coin.coinbase "leah" (read-keyset "leah") 10000000.0)
(coin.coinbase "linda" (read-keyset "linda") 10000000.0)
(coin.coinbase "stuart" (read-keyset "stuart") 1000000000.0)
(coin.coinbase "will" (read-keyset "will") 1000000000.0)
(coin.coinbase "Kadena" (keyset-ref-guard "Kadena") 1000000000.0)
(coin.coinbase "k:4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf" (read-keyset "4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf") 10000000.0)
(coin.coinbase "k:fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842" (read-keyset "fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842") 10000000.0)
(coin.coinbase "k:cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8" (read-keyset "cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8") 10000000.0)
(coin.coinbase "k:89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b" (read-keyset "89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b") 10000000.0)
(coin.coinbase "k:4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af" (read-keyset "4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af") 10000000.0)
(coin.coinbase "k:1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f" (read-keyset "1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f") 10000000.0)
(coin.coinbase "k:554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94" (read-keyset "554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94") 10000000.0)
data:
anastasia: ["1ec74de724b3c700737d99906aba48dbed6b90140bbc64133c558571b18883c3"]
emily: ["368059ab25bec92f19a4f8ce172030e5d672e4879aaae8d5be8b705dd3dfae7f"]
heekyun: ["dfb16b13e4032a6878fd98506b22cb0d6e5932c541e656b7ee5d69d72e6eb76e"]
jeff: ["c53217bb053b827b5fbbb322fced67a86298ec40a59aeef15b2190a05ad0a6bd"]
leah: ["216643137fb5f6a127dbb1063702cbb7c1f153451a1ad4afa9f92e77447cc330"]
linda: ["e1002db0894299bb37238bab02170180c0ae56f5932169bb2fcf756059fea175"]
stuart: ["0e3180dd4ae9d4385a21d7ca95cc7229b0f6b2ca9e0f4861dd4eed685004df66"]
will: ["830ad773510ab0f5a0d4564b7b31d2b0b1ba7fd5a116f66598a1c63cc2142fd5"]
"4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf": ["4a7c20d087df76753e28d765eb84e1338479dd6df121ddda3e59576d0a32a5bf"]
"fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842": ["fab92c47ccb1fdd25173e2981ebb29de989acea88792e34cc87298f6a1578842"]
"cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8": ["cbb94b12f55bd540a5aa507635111938f2282c2891b78c13e462fa018c4145d8"]
"89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b": ["89f0a840e3bab4c32e07b14862f0a0f414543da036ecf339d3ed7ec93fa4a41b"]
"4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af": ["4c73566b5d8fa4cd2a2620f7b2bc57284c7fc5c48f8f0db2bf1675cad08dc4af"]
"1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f": ["1c835d4e67917fd25781b11db1c12efbc4296c5c7fe981d35bbcf4a46a53441f"]
"554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94": ["554754f48b16df24b552f6832dda090642ed9658559fef9f3ee1bb4637ea7c94"]
nonce: testnet-grants-N
keyPairs: []
4 changes: 2 additions & 2 deletions src/Chainweb/BlockHeader/Genesis/Testnet050Payload.hs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Chainweb/BlockHeader/Genesis/Testnet051to19Payload.hs

Large diffs are not rendered by default.

41 changes: 25 additions & 16 deletions tools/ea/Ea/Genesis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ fastAllocations :: FilePath
fastAllocations = "pact/genesis/devnet/allocations.yaml"

-- ---------------------------------------------------------------------- --
-- Testnet
-- Testnet 04

testnet040 :: Genesis
testnet040 = Genesis
Expand All @@ -342,12 +342,30 @@ testnet04N = testnet040
& txChainIds .~ mkChainIdRange 1 19
& coinbase ?~ testNGrants

test0Grants :: FilePath
test0Grants = "pact/genesis/testnet04/grants0.yaml"

testNGrants :: FilePath
testNGrants = "pact/genesis/testnet04/grantsN.yaml"

testNs :: FilePath
testNs = "pact/genesis/ns-v1.yaml"

testnetAllocations :: FilePath
testnetAllocations = "pact/genesis/testnet04/allocations.yaml"

testnetKeysets :: FilePath
testnetKeysets = "pact/genesis/testnet04/keysets.yaml"

-- ---------------------------------------------------------------------- --
-- Testnet 05

testnet050 :: Genesis
testnet050 = Genesis
{ _version = Testnet05
, _tag = "Testnet05"
, _txChainIds = onlyChainId 0
, _coinbase = Just test0Grants
, _coinbase = Just testnet05Chain0Grants
, _keysets = Just testnetKeysets
, _allocations = Just testnetAllocations
, _namespaces = Just testNs
Expand All @@ -357,22 +375,13 @@ testnet050 = Genesis
testnet05N :: Genesis
testnet05N = testnet050
& txChainIds .~ mkChainIdRange 1 19
& coinbase ?~ testNGrants

test0Grants :: FilePath
test0Grants = "pact/genesis/testnet04/grants0.yaml"

testNGrants :: FilePath
testNGrants = "pact/genesis/testnet04/grantsN.yaml"

testNs :: FilePath
testNs = "pact/genesis/ns-v1.yaml"
& coinbase ?~ testnet05ChainNGrants

testnetAllocations :: FilePath
testnetAllocations = "pact/genesis/testnet04/allocations.yaml"
testnet05Chain0Grants :: FilePath
testnet05Chain0Grants = "pact/genesis/testnet05/grants0.yaml"

testnetKeysets :: FilePath
testnetKeysets = "pact/genesis/testnet04/keysets.yaml"
testnet05ChainNGrants :: FilePath
testnet05ChainNGrants = "pact/genesis/testnet05/grantsN.yaml"

-- ---------------------------------------------------------------------- --
-- Mainnet
Expand Down

0 comments on commit fb29925

Please sign in to comment.