Skip to content

Commit

Permalink
push some old code
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Sep 14, 2024
1 parent 93043cd commit 2fa8e10
Show file tree
Hide file tree
Showing 11 changed files with 656 additions and 525 deletions.
68 changes: 68 additions & 0 deletions indexer/genesis/mainnet-shelley-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"activeSlotsCoeff": 0.05,
"protocolParams": {
"protocolVersion": {
"minor": 0,
"major": 2
},
"decentralisationParam": 1,
"eMax": 18,
"extraEntropy": {
"tag": "NeutralNonce"
},
"maxTxSize": 16384,
"maxBlockBodySize": 65536,
"maxBlockHeaderSize": 1100,
"minFeeA": 44,
"minFeeB": 155381,
"minUTxOValue": 1000000,
"poolDeposit": 500000000,
"minPoolCost": 340000000,
"keyDeposit": 2000000,
"nOpt": 150,
"rho": 0.003,
"tau": 0.20,
"a0": 0.3
},
"genDelegs": {
"ad5463153dc3d24b9ff133e46136028bdc1edbb897f5a7cf1b37950c": {
"delegate": "d9e5c76ad5ee778960804094a389f0b546b5c2b140a62f8ec43ea54d",
"vrf": "64fa87e8b29a5b7bfbd6795677e3e878c505bc4a3649485d366b50abadec92d7"
},
"b9547b8a57656539a8d9bc42c008e38d9c8bd9c8adbb1e73ad529497": {
"delegate": "855d6fc1e54274e331e34478eeac8d060b0b90c1f9e8a2b01167c048",
"vrf": "66d5167a1f426bd1adcc8bbf4b88c280d38c148d135cb41e3f5a39f948ad7fcc"
},
"60baee25cbc90047e83fd01e1e57dc0b06d3d0cb150d0ab40bbfead1": {
"delegate": "7f72a1826ae3b279782ab2bc582d0d2958de65bd86b2c4f82d8ba956",
"vrf": "c0546d9aa5740afd569d3c2d9c412595cd60822bb6d9a4e8ce6c43d12bd0f674"
},
"f7b341c14cd58fca4195a9b278cce1ef402dc0e06deb77e543cd1757": {
"delegate": "69ae12f9e45c0c9122356c8e624b1fbbed6c22a2e3b4358cf0cb5011",
"vrf": "6394a632af51a32768a6f12dac3485d9c0712d0b54e3f389f355385762a478f2"
},
"162f94554ac8c225383a2248c245659eda870eaa82d0ef25fc7dcd82": {
"delegate": "4485708022839a7b9b8b639a939c85ec0ed6999b5b6dc651b03c43f6",
"vrf": "aba81e764b71006c515986bf7b37a72fbb5554f78e6775f08e384dbd572a4b32"
},
"2075a095b3c844a29c24317a94a643ab8e22d54a3a3a72a420260af6": {
"delegate": "6535db26347283990a252313a7903a45e3526ec25ddba381c071b25b",
"vrf": "fcaca997b8105bd860876348fc2c6e68b13607f9bbd23515cd2193b555d267af"
},
"268cfc0b89e910ead22e0ade91493d8212f53f3e2164b2e4bef0819b": {
"delegate": "1d4f2e1fda43070d71bb22a5522f86943c7c18aeb4fa47a362c27e23",
"vrf": "63ef48bc5355f3e7973100c371d6a095251c80ceb40559f4750aa7014a6fb6db"
}
},
"updateQuorum": 5,
"networkId": "Mainnet",
"initialFunds": {},
"maxLovelaceSupply": 45000000000000000,
"networkMagic": 764824073,
"epochLength": 432000,
"systemStart": "2017-09-23T21:44:51Z",
"slotsPerKESPeriod": 129600,
"slotLength": 1,
"maxKESEvolutions": 62,
"securityParam": 2160
}
72 changes: 72 additions & 0 deletions indexer/genesis/preprod-shelley-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"activeSlotsCoeff": 0.05,
"epochLength": 432000,
"genDelegs": {
"637f2e950b0fd8f8e3e811c5fbeb19e411e7a2bf37272b84b29c1a0b": {
"delegate": "aae9293510344ddd636364c2673e34e03e79e3eefa8dbaa70e326f7d",
"vrf": "227116365af2ed943f1a8b5e6557bfaa34996f1578eec667a5e2b361c51e4ce7"
},
"8a4b77c4f534f8b8cc6f269e5ebb7ba77fa63a476e50e05e66d7051c": {
"delegate": "d15422b2e8b60e500a82a8f4ceaa98b04e55a0171d1125f6c58f8758",
"vrf": "0ada6c25d62db5e1e35d3df727635afa943b9e8a123ab83785e2281605b09ce2"
},
"b00470cd193d67aac47c373602fccd4195aad3002c169b5570de1126": {
"delegate": "b3b539e9e7ed1b32fbf778bf2ebf0a6b9f980eac90ac86623d11881a",
"vrf": "0ff0ce9b820376e51c03b27877cd08f8ba40318f1a9f85a3db0b60dd03f71a7a"
},
"b260ffdb6eba541fcf18601923457307647dce807851b9d19da133ab": {
"delegate": "7c64eb868b4ef566391a321c85323f41d2b95480d7ce56ad2abcb022",
"vrf": "7fb22abd39d550c9a022ec8104648a26240a9ff9c88b8b89a6e20d393c03098e"
},
"ced1599fd821a39593e00592e5292bdc1437ae0f7af388ef5257344a": {
"delegate": "de7ca985023cf892f4de7f5f1d0a7181668884752d9ebb9e96c95059",
"vrf": "c301b7fc4d1b57fb60841bcec5e3d2db89602e5285801e522fce3790987b1124"
},
"dd2a7d71a05bed11db61555ba4c658cb1ce06c8024193d064f2a66ae": {
"delegate": "1e113c218899ee7807f4028071d0e108fc790dade9fd1a0d0b0701ee",
"vrf": "faf2702aa4893c877c622ab22dfeaf1d0c8aab98b837fe2bf667314f0d043822"
},
"f3b9e74f7d0f24d2314ea5dfbca94b65b2059d1ff94d97436b82d5b4": {
"delegate": "fd637b08cc379ef7b99c83b416458fcda8a01a606041779331008fb9",
"vrf": "37f2ea7c843a688159ddc2c38a2f997ab465150164a9136dca69564714b73268"
}
},
"initialFunds": {},
"maxKESEvolutions": 62,
"maxLovelaceSupply": 45000000000000000,
"networkId": "Testnet",
"networkMagic": 1,
"protocolParams": {
"protocolVersion": {
"minor": 0,
"major": 2
},
"decentralisationParam": 1,
"eMax": 18,
"extraEntropy": {
"tag": "NeutralNonce"
},
"maxTxSize": 16384,
"maxBlockBodySize": 65536,
"maxBlockHeaderSize": 1100,
"minFeeA": 44,
"minFeeB": 155381,
"minUTxOValue": 1000000,
"poolDeposit": 500000000,
"minPoolCost": 340000000,
"keyDeposit": 2000000,
"nOpt": 150,
"rho": 0.003,
"tau": 0.20,
"a0": 0.3
},
"securityParam": 2160,
"slotLength": 1,
"slotsPerKESPeriod": 129600,
"staking": {
"pools": {},
"stake": {}
},
"systemStart": "2022-06-01T00:00:00Z",
"updateQuorum": 5
}
68 changes: 68 additions & 0 deletions indexer/genesis/preview-shelley-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"activeSlotsCoeff": 0.05,
"epochLength": 86400,
"genDelegs": {
"12b0f443d02861948a0fce9541916b014e8402984c7b83ad70a834ce": {
"delegate": "7c54a168c731f2f44ced620f3cca7c2bd90731cab223d5167aa994e6",
"vrf": "62d546a35e1be66a2b06e29558ef33f4222f1c466adbb59b52d800964d4e60ec"
},
"3df542796a64e399b60c74acfbdb5afa1e114532fa36b46d6368ef3a": {
"delegate": "c44bc2f3cc7e98c0f227aa399e4035c33c0d775a0985875fff488e20",
"vrf": "4f9d334decadff6eba258b2df8ae1f02580a2628bce47ae7d957e1acd3f42a3c"
},
"93fd5083ff20e7ab5570948831730073143bea5a5d5539852ed45889": {
"delegate": "82a02922f10105566b70366b07c758c8134fa91b3d8ae697dfa5e8e0",
"vrf": "8a57e94a9b4c65ec575f35d41edb1df399fa30fdf10775389f5d1ef670ca3f9f"
},
"a86cab3ea72eabb2e8aafbbf4abbd2ba5bdfd04eea26a39b126a78e4": {
"delegate": "10257f6d3bae913514bdc96c9170b3166bf6838cca95736b0e418426",
"vrf": "1b54aad6b013145a0fc74bb5c2aa368ebaf3999e88637d78e09706d0cc29874a"
},
"b799804a28885bd49c0e1b99d8b3b26de0fac17a5cf651ecf0c872f0": {
"delegate": "ebe606e22d932d51be2c1ce87e7d7e4c9a7d1f7df4a5535c29e23d22",
"vrf": "b3fc06a1f8ee69ff23185d9af453503be8b15b2652e1f9fb7c3ded6797a2d6f9"
},
"d125812d6ab973a2c152a0525b7fd32d36ff13555a427966a9cac9b1": {
"delegate": "e302198135fb5b00bfe0b9b5623426f7cf03179ab7ba75f945d5b79b",
"vrf": "b45ca2ed95f92248fa0322ce1fc9f815a5a5aa2f21f1adc2c42c4dccfc7ba631"
},
"ef27651990a26449a40767d5e06cdef1670a3f3ff4b951d385b51787": {
"delegate": "0e0b11e80d958732e587585d30978d683a061831d1b753878f549d05",
"vrf": "b860ec844f6cd476c4fabb4aa1ca72d5c74d82f3835aed3c9515a35b6e048719"
}
},
"initialFunds": {},
"maxKESEvolutions": 62,
"maxLovelaceSupply": 45000000000000000,
"networkId": "Testnet",
"networkMagic": 2,
"protocolParams": {
"protocolVersion": {
"minor": 0,
"major": 6
},
"decentralisationParam": 1,
"eMax": 18,
"extraEntropy": {
"tag": "NeutralNonce"
},
"maxTxSize": 16384,
"maxBlockBodySize": 65536,
"maxBlockHeaderSize": 1100,
"minFeeA": 44,
"minFeeB": 155381,
"minUTxOValue": 1000000,
"poolDeposit": 500000000,
"minPoolCost": 340000000,
"keyDeposit": 2000000,
"nOpt": 150,
"rho": 0.003,
"tau": 0.20,
"a0": 0.3
},
"securityParam": 432,
"slotLength": 1,
"slotsPerKESPeriod": 129600,
"systemStart": "2022-10-25T00:00:00Z",
"updateQuorum": 5
}
56 changes: 56 additions & 0 deletions indexer/genesis/sanchonet-shelley-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"activeSlotsCoeff": 5.0e-2,
"epochLength": 86400,
"genDelegs": {
"c1ad22cabb342cbb83ce3859708232f4945ccb669e9b5f932cffc0ed": {
"delegate": "405357b552c397e81f73dcb5a0da0828fe29610bd25197d86130df34",
"vrf": "458215df6c07abc66e80082caa7a189dc2f4995ad4b4b5f09481a55d8d0692d2"
},
"c264bca994a3a5deee5a1d9b92a3d7e9d6cbdb81f2f6989bb7f7b437": {
"delegate": "d9d9d0f0e1f25c4af4d80cb2d62878b611d8b3a8e1ef548d01f246d7",
"vrf": "624f1bf3b2f978e0c95644f26228b307d7acca7fc7eb3d88fb6f107e0aa1198c"
},
"d4bf7eb45b72dffa5ac33d5c902fe409e4e611f2e9a52fb0d09784c3": {
"delegate": "806eb0c17d9b0fe6d99acbabe7be76ef72bf9de96c5b58435e50837f",
"vrf": "57e52289207a7128c29e0b7e96a02c731a961a5944329b363bed751ad8f377ee"
}
},
"initialFunds": {},
"maxKESEvolutions": 62,
"maxLovelaceSupply": 45000000000000000,
"networkId": "Testnet",
"networkMagic": 4,
"protocolParams": {
"a0": 0.3,
"decentralisationParam": 1.0,
"eMax": 18,
"extraEntropy": {
"tag": "NeutralNonce"
},
"keyDeposit": 2000000,
"maxBlockBodySize": 65536,
"maxBlockHeaderSize": 1100,
"maxTxSize": 16384,
"minFeeA": 44,
"minFeeB": 155381,
"minPoolCost": 340000000,
"minUTxOValue": 1000000,
"nOpt": 150,
"poolDeposit": 500000000,
"protocolVersion": {
"major": 6,
"minor": 0
},
"rho": 3.0e-3,
"tau": 0.2
},
"securityParam": 432,
"slotLength": 1,
"slotsPerKESPeriod": 129600,
"staking": {
"pools": {},
"stake": {}
},
"systemStart": "2023-06-15T00:30:00Z",
"updateQuorum": 3
}
94 changes: 94 additions & 0 deletions indexer/genesis/test-byron-genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"bootStakeholders": {
"05d1c10e4bf3cdd4de54712531c53be75a1609b25f396ffbbe5becf1": 1,
"3bf1193b19be416283b8c0516d2f8b80939ffccb1c9b05946f54c83a": 1,
"7bdd769bd872e8e6336c23f1e566c19a96e72137174b891fad9f4b99": 1,
"9ddc1e29c59df0ddd9347fe8b8a736d247f286414684eddc02885348": 1,
"a118c0d2737c8a77c0d982a0d299bc42614cea4e0c23614ba24a05ca": 1,
"b0b2df3c9cf4dfe2ae04409913b3c3125509acbbfa0722449570aaeb": 1,
"e0a65f21229e44c2bf6eec5b14e2775003b674ae53de18d22814346a": 1
},
"heavyDelegation": {
"05d1c10e4bf3cdd4de54712531c53be75a1609b25f396ffbbe5becf1": {
"omega": 0,
"issuerPk": "UFsjehyxQAIMxEL25RxqD0itM0RCdzWprVt1W+zopM5b7U9ru9AMr/zf9lAjWaFlNOpRgrrbz7r5tRbt8wUmSg==",
"delegatePk": "iwlg0jS9pn1SQyxdGiasor+1uaCflm2Vkqe/DHKKHs2EDqxcP+in7doCSnQDttN3BZkIKLNUgzKj+FAiHCCYvw==",
"cert": "633fc347138ee155d038b9d1040ee1e45cea5b1e8627046c95f7fe4ba949b0569437962568eadef9d49e22becbf30192425c008d10e03004612633dbc307340b"
},
"3bf1193b19be416283b8c0516d2f8b80939ffccb1c9b05946f54c83a": {
"omega": 0,
"issuerPk": "pAIACMG6WCa4mz0tVoeekLXYuWkdxk/rgDuZ/x7ugh3CvEuhpGf2LRRRWilaGdraH1sCbnuMCmAHrBTbPDFmxA==",
"delegatePk": "0ajebKqP2bF1xZhi7N1avNBHe4S4Kg5S+uzGs8hRAKR1IW/7ZOp0U3AhQFuzKLD3BuSq1xV3leMWeBzKEg2slg==",
"cert": "eb5c4d76c7bfca2ab790a76f7dc4c6d9f7d0956d4af3b8c649804ef98beeb138d8916982c9142747b7a07e69f52b2c3776d64a7d74494e0f72eefaebf6bf5d07"
},
"7bdd769bd872e8e6336c23f1e566c19a96e72137174b891fad9f4b99": {
"omega": 0,
"issuerPk": "P7JjeSPHjexNW5MsCaySrURaqV2gCgXttEe0CgfFnVZFGHaS9A4xEUrQ83VTLPjk+HV0Di19DjQ+DhS1M6Mf7A==",
"delegatePk": "jvMgwt9mVKYYjEXpxjnApoa/WoZSlVh9OZ3+sF/nSrZ5YaaWsmjIvOyTcrxzqpsTZewAez36BTnqwA0VSjFRjA==",
"cert": "9ef9f0e5ca23cd9365ec7a23f1b2d159da0d58e0242cb817c3bc946ba1c9e3629f1976f09a88370247bbc458c810d21a889e3ff6dd189ceea784bc9ab6dc9b0a"
},
"9ddc1e29c59df0ddd9347fe8b8a736d247f286414684eddc02885348": {
"omega": 0,
"issuerPk": "Xro6BbV6hMh3RTZnst4ABhtQ2vr83YPXoLfQ8JWeunvvcuudGBQvLeqwVfGXrBWoMOOKroFV48ygfSEq2xhREA==",
"delegatePk": "mq5iXU0VvLNzPUIOBk8c0zjzhuCvBJ/NQrRVpp0orTZkg9F3uiuAG0E24NZmLl6eCiTyyAoOeNTCNbTAjyAfTA==",
"cert": "939dcfe5555ee661b9db5d817a70d5c3fa9d1d97c2ae5849696d915606b530f7e9edda5d02a01e61524a766f9c356084616ba058a3de70ea51bf29cd187a5f07"
},
"a118c0d2737c8a77c0d982a0d299bc42614cea4e0c23614ba24a05ca": {
"omega": 0,
"issuerPk": "eqAAtu1X79MxCSa/i/RSApLGsnhDYqLJLu93f3wSzR5/M7calZS8DHFrAtJgzYbkg9nwKF1HQQ8bO/1LOJ9O4w==",
"delegatePk": "lCuzqqsPZEK5BrZbpt2/eWnKpmLZCWiSYhGj1WUy8R2OjLStw/UDT7xiV/pbEIZoncfQJN9yJqpQH8KOui0fYw==",
"cert": "b96ad354a6989df5de8d0888414843736d0a4a6626a1e595e8785a70b10a38eb4632159aabf84959983e8852fd4d390eba6c423fac8ea117913cec46353bd90e"
},
"b0b2df3c9cf4dfe2ae04409913b3c3125509acbbfa0722449570aaeb": {
"omega": 0,
"issuerPk": "Y+Vaj0IaMeq0+oWjQr5hiEl4Ek+cWsKq7mufTO4wue2R6A6AMlqEDIV7vYsd3NZWomG5DGcwSAw2Ev1Mz26LIA==",
"delegatePk": "YYtiXfMN5TiV/ynno3cNylbC/wZtSqBaaXGQXe7O9tu33RDqH5F15Sk+reyXvxaxZ683mns+1K8DLNB7mezB6g==",
"cert": "ca38e688e759183b57d08ca6568248b91c8ddd81e56d0d31c3f3a26eca35754387c5f301ef017dafae453a93757d39a0e2d326ebe59cf31d5c1b22fc8616ac00"
},
"e0a65f21229e44c2bf6eec5b14e2775003b674ae53de18d22814346a": {
"omega": 0,
"issuerPk": "vynbl3q/BFvwehgMzpp3NoWOuN5RwDUYCbNop0RR0jlEXomgPOrlXCwMTrwrI8Dcfzq5q1fK/1hOfv9IwDMPAA==",
"delegatePk": "1N1ppBBxvC3I5kqX9L1jeVJM4MK2ZXKAQ6Bn400+IYr4mh4zTYciCsTJTyvY8IKIBBEcT3GYW6ZlaYy7XbY5kg==",
"cert": "82b10bbea2dd80441315230354e3e4af0ac87d02c9e6424fc9432be21a6183c81555d3a1b373566aef7a8065a126d57c42629be780becc61bc1b8f3ce5b5170d"
}
},
"startTime": 1654041600,
"nonAvvmBalances": {
"FHnt4NL7yPXhCzCHVywZLqVsvwuG3HvwmjKXQJBrXh3h2aigv6uxkePbpzRNV8q": "0",
"FHnt4NL7yPXuJGViM3KwSPwrwECD9q5vNetX3QJDYRWgiX3RHi5i5VV32dnETDK": "0",
"FHnt4NL7yPXuYUxBF33VX5dZMBDAab2kvSNLRzCskvuKNCSDknzrQvKeQhGUw5a": "30000000000000000",
"FHnt4NL7yPY8exfnuJ8ACyoU7xCN93tKXSv357UrTp1nddGbkWxJpQfrt62xYFX": "0",
"FHnt4NL7yPYFpVcAXZADrKdsqCAFvcRFYkTcqkn2guGmj8akQMiMVjhSUECvD1F": "0",
"FHnt4NL7yPYH2vP2FLEfH2pt3K6meM7fgtjRiLBidaqpP5ogPzxLNsZy68e1KdW": "0",
"FHnt4NL7yPYHrcxPtPufYYFWLhqvHGnZ5NFSz2KZpWQgSq4VLsUgWnkEmfUtd1E": "0",
"FHnt4NL7yPYJiN5Y8VsQr6LP6YgN51BHBPegNjVwKkq6AooCkbTpfZ2bqkVkfXU": "0"
},
"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": 2160,
"protocolMagic": 1
},
"avvmDistr": {}
}
Loading

0 comments on commit 2fa8e10

Please sign in to comment.