Beta 7 with some repo names changed.

This commit is contained in:
Luis Fernando Molina committed 2020-11-15 13:05:19 +01:00
1 parent 0f7b40cca7
commit 963c19493a
3408 files changed
+462217 -15516

No files matched your search

+116
View File
@@ -0,0 +1,116 @@
{
"name": "goerli",
"chainId": 5,
"networkId": 5,
"comment": "Cross-client PoA test network",
"url": "https://github.com/goerli/testnet",
"genesis": {
"hash": "0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a",
"timestamp": "0x5c51a607",
"gasLimit": 10485760,
"difficulty": 1,
"nonce": "0x0000000000000000",
"extraData": "0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"stateRoot": "0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"
},
"hardforks": [
{
"name": "chainstart",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "homestead",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "dao",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "tangerineWhistle",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "spuriousDragon",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "byzantium",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "constantinople",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "petersburg",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "istanbul",
"block": 1561651,
"consensus": "poa",
"finality": null
}
],
"bootstrapNodes": [
{
"ip": "51.141.78.53",
"port": 30303,
"id": "011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a",
"location": "",
"comment": "Upstream bootnode 1"
},
{
"ip": "13.93.54.137",
"port": 30303,
"id": "176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b",
"location": "",
"comment": "Upstream bootnode 2"
},
{
"ip": "94.237.54.114",
"port": 30313,
"id": "46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291",
"location": "",
"comment": "Upstream bootnode 3"
},
{
"ip": "52.64.155.147",
"port": 30303,
"id": "c1f8b7c2ac4453271fa07d8e9ecf9a2e8285aa0bd0c07df0131f47153306b0736fd3db8924e7a9bf0bed6b1d8d4f87362a71b033dc7c64547728d953e43e59b2",
"location": "",
"comment": "Upstream bootnode 4"
},
{
"ip": "213.186.16.82",
"port": 30303,
"id": "f4a9c6ee28586009fb5a96c8af13a58ed6d8315a9eee4772212c1d4d9cebe5a8b8a78ea4434f318726317d04a3f531a1ef0420cf9752605a562cfe858c46e263",
"location": "",
"comment": "Upstream bootnode 5"
},
{
"ip": "3.11.147.67",
"port": 30303,
"id": "a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91",
"location": "",
"comment": "Ethereum Foundation bootnode"
}
]
}
+18
View File
@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.chains = void 0;
exports.chains = {
names: {
'1': 'mainnet',
'3': 'ropsten',
'4': 'rinkeby',
'42': 'kovan',
'5': 'goerli',
},
mainnet: require('./mainnet.json'),
ropsten: require('./ropsten.json'),
rinkeby: require('./rinkeby.json'),
kovan: require('./kovan.json'),
goerli: require('./goerli.json'),
};
//# sourceMappingURL=index.js.map
+102
View File
@@ -0,0 +1,102 @@
{
"name": "kovan",
"chainId": 42,
"networkId": 42,
"comment": "Parity PoA test network",
"url": "https://kovan-testnet.github.io/website/",
"genesis": {
"hash": "0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9",
"timestamp": null,
"gasLimit": 6000000,
"difficulty": 131072,
"nonce": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x",
"stateRoot": "0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"
},
"hardforks": [
{
"name": "chainstart",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "homestead",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "dao",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "tangerineWhistle",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "spuriousDragon",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "byzantium",
"block": 5067000,
"consensus": "poa",
"finality": null
},
{
"name": "constantinople",
"block": 9200000,
"consensus": "poa",
"finality": null
},
{
"name": "petersburg",
"block": 10255201,
"consensus": "poa",
"finality": null
},
{
"name": "istanbul",
"block": 14111141,
"consensus": "poa",
"finality": null
}
],
"bootstrapNodes": [
{
"ip": "116.203.116.241",
"port": 30303,
"id": "16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45",
"location": "",
"comment": "1"
},
{
"ip": "3.217.96.11",
"port": 30303,
"id": "2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0",
"location": "",
"comment": "2"
},
{
"ip": "108.61.170.124",
"port": 30303,
"id": "740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c",
"location": "",
"comment": "3"
},
{
"ip": "157.230.31.163",
"port": 30303,
"id": "2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0",
"location": "",
"comment": "4"
}
]
}
+136
View File
@@ -0,0 +1,136 @@
{
"name": "mainnet",
"chainId": 1,
"networkId": 1,
"comment": "The Ethereum main chain",
"url": "https://ethstats.net/",
"genesis": {
"hash": "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
"timestamp": null,
"gasLimit": 5000,
"difficulty": 17179869184,
"nonce": "0x0000000000000042",
"extraData": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",
"stateRoot": "0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"
},
"hardforks": [
{
"name": "chainstart",
"block": 0,
"consensus": "pow",
"finality": null
},
{
"name": "homestead",
"block": 1150000,
"consensus": "pow",
"finality": null
},
{
"name": "dao",
"block": 1920000,
"consensus": "pow",
"finality": null
},
{
"name": "tangerineWhistle",
"block": 2463000,
"consensus": "pow",
"finality": null
},
{
"name": "spuriousDragon",
"block": 2675000,
"consensus": "pow",
"finality": null
},
{
"name": "byzantium",
"block": 4370000,
"consensus": "pow",
"finality": null
},
{
"name": "constantinople",
"block": 7280000,
"consensus": "pow",
"finality": null
},
{
"name": "petersburg",
"block": 7280000,
"consensus": "pow",
"finality": null
},
{
"name": "istanbul",
"block": 9069000,
"consensus": "pow",
"finality": null
},
{
"name": "muirGlacier",
"block": 9200000,
"consensus": "pow",
"finality": null
}
],
"bootstrapNodes": [
{
"ip": "18.138.108.67",
"port": 30303,
"id": "d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666",
"location": "ap-southeast-1-001",
"comment": "bootnode-aws-ap-southeast-1-001"
},
{
"ip": "3.209.45.79",
"port": 30303,
"id": "22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de",
"location": "us-east-1-001",
"comment": "bootnode-aws-us-east-1-001"
},
{
"ip": "34.255.23.113",
"port": 30303,
"id": "ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758",
"location": "eu-west-1-001",
"comment": "bootnode-aws-eu-west-1-001"
},
{
"ip": "35.158.244.151",
"port": 30303,
"id": "279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8",
"location": "eu-central-1-001",
"comment": "bootnode-aws-eu-central-1-001"
},
{
"ip": "52.187.207.27",
"port": 30303,
"id": "8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a",
"location": "australiaeast-001",
"comment": "bootnode-azure-australiaeast-001"
},
{
"ip": "191.234.162.198",
"port": 30303,
"id": "103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1",
"location": "brazilsouth-001",
"comment": "bootnode-azure-brazilsouth-001"
},
{
"ip": "52.231.165.108",
"port": 30303,
"id": "715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8",
"location": "koreasouth-001",
"comment": "bootnode-azure-koreasouth-001"
},
{
"ip": "104.42.217.25",
"port": 30303,
"id": "5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f",
"location": "westus-001",
"comment": "bootnode-azure-westus-001"
}
]
}
+95
View File
@@ -0,0 +1,95 @@
{
"name": "rinkeby",
"chainId": 4,
"networkId": 4,
"comment": "PoA test network",
"url": "https://www.rinkeby.io",
"genesis": {
"hash": "0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177",
"timestamp": "0x58ee40ba",
"gasLimit": 4700000,
"difficulty": 1,
"nonce": "0x0000000000000000",
"extraData": "0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"stateRoot": "0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"
},
"hardforks": [
{
"name": "chainstart",
"block": 0,
"consensus": "poa",
"finality": null
},
{
"name": "homestead",
"block": 1,
"consensus": "poa",
"finality": null
},
{
"name": "dao",
"block": null,
"consensus": "poa",
"finality": null
},
{
"name": "tangerineWhistle",
"block": 2,
"consensus": "poa",
"finality": null
},
{
"name": "spuriousDragon",
"block": 3,
"consensus": "poa",
"finality": null
},
{
"name": "byzantium",
"block": 1035301,
"consensus": "poa",
"finality": null
},
{
"name": "constantinople",
"block": 3660663,
"consensus": "poa",
"finality": null
},
{
"name": "petersburg",
"block": 4321234,
"consensus": "poa",
"finality": null
},
{
"name": "istanbul",
"block": 5435345,
"consensus": "poa",
"finality": null
}
],
"bootstrapNodes": [
{
"ip": "52.169.42.101",
"port": 30303,
"id": "a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf",
"location": "",
"comment": "IE"
},
{
"ip": "52.3.158.184",
"port": 30303,
"id": "343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8",
"location": "",
"comment": "INFURA"
},
{
"ip": "159.89.28.211",
"port": 30303,
"id": "b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6",
"location": "",
"comment": "AKASHA"
}
]
}
+108
View File
@@ -0,0 +1,108 @@
{
"name": "ropsten",
"chainId": 3,
"networkId": 3,
"comment": "PoW test network",
"url": "https://github.com/ethereum/ropsten",
"genesis": {
"hash": "0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d",
"timestamp": null,
"gasLimit": 16777216,
"difficulty": 1048576,
"nonce": "0x0000000000000042",
"extraData": "0x3535353535353535353535353535353535353535353535353535353535353535",
"stateRoot": "0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"
},
"hardforks": [
{
"name": "chainstart",
"block": 0,
"consensus": "pow",
"finality": null
},
{
"name": "homestead",
"block": 0,
"consensus": "pow",
"finality": null
},
{
"name": "dao",
"block": null,
"consensus": "pow",
"finality": null
},
{
"name": "tangerineWhistle",
"block": 0,
"consensus": "pow",
"finality": null
},
{
"name": "spuriousDragon",
"block": 10,
"consensus": "pow",
"finality": null
},
{
"name": "byzantium",
"block": 1700000,
"consensus": "pow",
"finality": null
},
{
"name": "constantinople",
"block": 4230000,
"consensus": "pow",
"finality": null
},
{
"name": "petersburg",
"block": 4939394,
"consensus": "pow",
"finality": null
},
{
"name": "istanbul",
"block": 6485846,
"consensus": "pow",
"finality": null
},
{
"name": "muirGlacier",
"block": 7117117,
"consensus": "pow",
"finality": null
}
],
"bootstrapNodes": [
{
"ip": "52.176.7.10",
"port": 30303,
"id": "30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606",
"location": "",
"comment": "US-Azure geth"
},
{
"ip": "52.176.100.77",
"port": 30303,
"id": "865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c",
"location": "",
"comment": "US-Azure parity"
},
{
"ip": "52.232.243.152",
"port": 30303,
"id": "6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f",
"location": "",
"comment": "Parity"
},
{
"ip": "192.81.208.223",
"port": 30303,
"id": "94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09",
"location": "",
"comment": "@gpip"
}
]
}
+262
View File
@@ -0,0 +1,262 @@
{
"0x0000000000000000000000000000000000000000": "0x1",
"0x0000000000000000000000000000000000000001": "0x1",
"0x0000000000000000000000000000000000000002": "0x1",
"0x0000000000000000000000000000000000000003": "0x1",
"0x0000000000000000000000000000000000000004": "0x1",
"0x0000000000000000000000000000000000000005": "0x1",
"0x0000000000000000000000000000000000000006": "0x1",
"0x0000000000000000000000000000000000000007": "0x1",
"0x0000000000000000000000000000000000000008": "0x1",
"0x0000000000000000000000000000000000000009": "0x1",
"0x000000000000000000000000000000000000000a": "0x1",
"0x000000000000000000000000000000000000000b": "0x1",
"0x000000000000000000000000000000000000000c": "0x1",
"0x000000000000000000000000000000000000000d": "0x1",
"0x000000000000000000000000000000000000000e": "0x1",
"0x000000000000000000000000000000000000000f": "0x1",
"0x0000000000000000000000000000000000000010": "0x1",
"0x0000000000000000000000000000000000000011": "0x1",
"0x0000000000000000000000000000000000000012": "0x1",
"0x0000000000000000000000000000000000000013": "0x1",
"0x0000000000000000000000000000000000000014": "0x1",
"0x0000000000000000000000000000000000000015": "0x1",
"0x0000000000000000000000000000000000000016": "0x1",
"0x0000000000000000000000000000000000000017": "0x1",
"0x0000000000000000000000000000000000000018": "0x1",
"0x0000000000000000000000000000000000000019": "0x1",
"0x000000000000000000000000000000000000001a": "0x1",
"0x000000000000000000000000000000000000001b": "0x1",
"0x000000000000000000000000000000000000001c": "0x1",
"0x000000000000000000000000000000000000001d": "0x1",
"0x000000000000000000000000000000000000001e": "0x1",
"0x000000000000000000000000000000000000001f": "0x1",
"0x0000000000000000000000000000000000000020": "0x1",
"0x0000000000000000000000000000000000000021": "0x1",
"0x0000000000000000000000000000000000000022": "0x1",
"0x0000000000000000000000000000000000000023": "0x1",
"0x0000000000000000000000000000000000000024": "0x1",
"0x0000000000000000000000000000000000000025": "0x1",
"0x0000000000000000000000000000000000000026": "0x1",
"0x0000000000000000000000000000000000000027": "0x1",
"0x0000000000000000000000000000000000000028": "0x1",
"0x0000000000000000000000000000000000000029": "0x1",
"0x000000000000000000000000000000000000002a": "0x1",
"0x000000000000000000000000000000000000002b": "0x1",
"0x000000000000000000000000000000000000002c": "0x1",
"0x000000000000000000000000000000000000002d": "0x1",
"0x000000000000000000000000000000000000002e": "0x1",
"0x000000000000000000000000000000000000002f": "0x1",
"0x0000000000000000000000000000000000000030": "0x1",
"0x0000000000000000000000000000000000000031": "0x1",
"0x0000000000000000000000000000000000000032": "0x1",
"0x0000000000000000000000000000000000000033": "0x1",
"0x0000000000000000000000000000000000000034": "0x1",
"0x0000000000000000000000000000000000000035": "0x1",
"0x0000000000000000000000000000000000000036": "0x1",
"0x0000000000000000000000000000000000000037": "0x1",
"0x0000000000000000000000000000000000000038": "0x1",
"0x0000000000000000000000000000000000000039": "0x1",
"0x000000000000000000000000000000000000003a": "0x1",
"0x000000000000000000000000000000000000003b": "0x1",
"0x000000000000000000000000000000000000003c": "0x1",
"0x000000000000000000000000000000000000003d": "0x1",
"0x000000000000000000000000000000000000003e": "0x1",
"0x000000000000000000000000000000000000003f": "0x1",
"0x0000000000000000000000000000000000000040": "0x1",
"0x0000000000000000000000000000000000000041": "0x1",
"0x0000000000000000000000000000000000000042": "0x1",
"0x0000000000000000000000000000000000000043": "0x1",
"0x0000000000000000000000000000000000000044": "0x1",
"0x0000000000000000000000000000000000000045": "0x1",
"0x0000000000000000000000000000000000000046": "0x1",
"0x0000000000000000000000000000000000000047": "0x1",
"0x0000000000000000000000000000000000000048": "0x1",
"0x0000000000000000000000000000000000000049": "0x1",
"0x000000000000000000000000000000000000004a": "0x1",
"0x000000000000000000000000000000000000004b": "0x1",
"0x000000000000000000000000000000000000004c": "0x1",
"0x000000000000000000000000000000000000004d": "0x1",
"0x000000000000000000000000000000000000004e": "0x1",
"0x000000000000000000000000000000000000004f": "0x1",
"0x0000000000000000000000000000000000000050": "0x1",
"0x0000000000000000000000000000000000000051": "0x1",
"0x0000000000000000000000000000000000000052": "0x1",
"0x0000000000000000000000000000000000000053": "0x1",
"0x0000000000000000000000000000000000000054": "0x1",
"0x0000000000000000000000000000000000000055": "0x1",
"0x0000000000000000000000000000000000000056": "0x1",
"0x0000000000000000000000000000000000000057": "0x1",
"0x0000000000000000000000000000000000000058": "0x1",
"0x0000000000000000000000000000000000000059": "0x1",
"0x000000000000000000000000000000000000005a": "0x1",
"0x000000000000000000000000000000000000005b": "0x1",
"0x000000000000000000000000000000000000005c": "0x1",
"0x000000000000000000000000000000000000005d": "0x1",
"0x000000000000000000000000000000000000005e": "0x1",
"0x000000000000000000000000000000000000005f": "0x1",
"0x0000000000000000000000000000000000000060": "0x1",
"0x0000000000000000000000000000000000000061": "0x1",
"0x0000000000000000000000000000000000000062": "0x1",
"0x0000000000000000000000000000000000000063": "0x1",
"0x0000000000000000000000000000000000000064": "0x1",
"0x0000000000000000000000000000000000000065": "0x1",
"0x0000000000000000000000000000000000000066": "0x1",
"0x0000000000000000000000000000000000000067": "0x1",
"0x0000000000000000000000000000000000000068": "0x1",
"0x0000000000000000000000000000000000000069": "0x1",
"0x000000000000000000000000000000000000006a": "0x1",
"0x000000000000000000000000000000000000006b": "0x1",
"0x000000000000000000000000000000000000006c": "0x1",
"0x000000000000000000000000000000000000006d": "0x1",
"0x000000000000000000000000000000000000006e": "0x1",
"0x000000000000000000000000000000000000006f": "0x1",
"0x0000000000000000000000000000000000000070": "0x1",
"0x0000000000000000000000000000000000000071": "0x1",
"0x0000000000000000000000000000000000000072": "0x1",
"0x0000000000000000000000000000000000000073": "0x1",
"0x0000000000000000000000000000000000000074": "0x1",
"0x0000000000000000000000000000000000000075": "0x1",
"0x0000000000000000000000000000000000000076": "0x1",
"0x0000000000000000000000000000000000000077": "0x1",
"0x0000000000000000000000000000000000000078": "0x1",
"0x0000000000000000000000000000000000000079": "0x1",
"0x000000000000000000000000000000000000007a": "0x1",
"0x000000000000000000000000000000000000007b": "0x1",
"0x000000000000000000000000000000000000007c": "0x1",
"0x000000000000000000000000000000000000007d": "0x1",
"0x000000000000000000000000000000000000007e": "0x1",
"0x000000000000000000000000000000000000007f": "0x1",
"0x0000000000000000000000000000000000000080": "0x1",
"0x0000000000000000000000000000000000000081": "0x1",
"0x0000000000000000000000000000000000000082": "0x1",
"0x0000000000000000000000000000000000000083": "0x1",
"0x0000000000000000000000000000000000000084": "0x1",
"0x0000000000000000000000000000000000000085": "0x1",
"0x0000000000000000000000000000000000000086": "0x1",
"0x0000000000000000000000000000000000000087": "0x1",
"0x0000000000000000000000000000000000000088": "0x1",
"0x0000000000000000000000000000000000000089": "0x1",
"0x000000000000000000000000000000000000008a": "0x1",
"0x000000000000000000000000000000000000008b": "0x1",
"0x000000000000000000000000000000000000008c": "0x1",
"0x000000000000000000000000000000000000008d": "0x1",
"0x000000000000000000000000000000000000008e": "0x1",
"0x000000000000000000000000000000000000008f": "0x1",
"0x0000000000000000000000000000000000000090": "0x1",
"0x0000000000000000000000000000000000000091": "0x1",
"0x0000000000000000000000000000000000000092": "0x1",
"0x0000000000000000000000000000000000000093": "0x1",
"0x0000000000000000000000000000000000000094": "0x1",
"0x0000000000000000000000000000000000000095": "0x1",
"0x0000000000000000000000000000000000000096": "0x1",
"0x0000000000000000000000000000000000000097": "0x1",
"0x0000000000000000000000000000000000000098": "0x1",
"0x0000000000000000000000000000000000000099": "0x1",
"0x000000000000000000000000000000000000009a": "0x1",
"0x000000000000000000000000000000000000009b": "0x1",
"0x000000000000000000000000000000000000009c": "0x1",
"0x000000000000000000000000000000000000009d": "0x1",
"0x000000000000000000000000000000000000009e": "0x1",
"0x000000000000000000000000000000000000009f": "0x1",
"0x00000000000000000000000000000000000000a0": "0x1",
"0x00000000000000000000000000000000000000a1": "0x1",
"0x00000000000000000000000000000000000000a2": "0x1",
"0x00000000000000000000000000000000000000a3": "0x1",
"0x00000000000000000000000000000000000000a4": "0x1",
"0x00000000000000000000000000000000000000a5": "0x1",
"0x00000000000000000000000000000000000000a6": "0x1",
"0x00000000000000000000000000000000000000a7": "0x1",
"0x00000000000000000000000000000000000000a8": "0x1",
"0x00000000000000000000000000000000000000a9": "0x1",
"0x00000000000000000000000000000000000000aa": "0x1",
"0x00000000000000000000000000000000000000ab": "0x1",
"0x00000000000000000000000000000000000000ac": "0x1",
"0x00000000000000000000000000000000000000ad": "0x1",
"0x00000000000000000000000000000000000000ae": "0x1",
"0x00000000000000000000000000000000000000af": "0x1",
"0x00000000000000000000000000000000000000b0": "0x1",
"0x00000000000000000000000000000000000000b1": "0x1",
"0x00000000000000000000000000000000000000b2": "0x1",
"0x00000000000000000000000000000000000000b3": "0x1",
"0x00000000000000000000000000000000000000b4": "0x1",
"0x00000000000000000000000000000000000000b5": "0x1",
"0x00000000000000000000000000000000000000b6": "0x1",
"0x00000000000000000000000000000000000000b7": "0x1",
"0x00000000000000000000000000000000000000b8": "0x1",
"0x00000000000000000000000000000000000000b9": "0x1",
"0x00000000000000000000000000000000000000ba": "0x1",
"0x00000000000000000000000000000000000000bb": "0x1",
"0x00000000000000000000000000000000000000bc": "0x1",
"0x00000000000000000000000000000000000000bd": "0x1",
"0x00000000000000000000000000000000000000be": "0x1",
"0x00000000000000000000000000000000000000bf": "0x1",
"0x00000000000000000000000000000000000000c0": "0x1",
"0x00000000000000000000000000000000000000c1": "0x1",
"0x00000000000000000000000000000000000000c2": "0x1",
"0x00000000000000000000000000000000000000c3": "0x1",
"0x00000000000000000000000000000000000000c4": "0x1",
"0x00000000000000000000000000000000000000c5": "0x1",
"0x00000000000000000000000000000000000000c6": "0x1",
"0x00000000000000000000000000000000000000c7": "0x1",
"0x00000000000000000000000000000000000000c8": "0x1",
"0x00000000000000000000000000000000000000c9": "0x1",
"0x00000000000000000000000000000000000000ca": "0x1",
"0x00000000000000000000000000000000000000cb": "0x1",
"0x00000000000000000000000000000000000000cc": "0x1",
"0x00000000000000000000000000000000000000cd": "0x1",
"0x00000000000000000000000000000000000000ce": "0x1",
"0x00000000000000000000000000000000000000cf": "0x1",
"0x00000000000000000000000000000000000000d0": "0x1",
"0x00000000000000000000000000000000000000d1": "0x1",
"0x00000000000000000000000000000000000000d2": "0x1",
"0x00000000000000000000000000000000000000d3": "0x1",
"0x00000000000000000000000000000000000000d4": "0x1",
"0x00000000000000000000000000000000000000d5": "0x1",
"0x00000000000000000000000000000000000000d6": "0x1",
"0x00000000000000000000000000000000000000d7": "0x1",
"0x00000000000000000000000000000000000000d8": "0x1",
"0x00000000000000000000000000000000000000d9": "0x1",
"0x00000000000000000000000000000000000000da": "0x1",
"0x00000000000000000000000000000000000000db": "0x1",
"0x00000000000000000000000000000000000000dc": "0x1",
"0x00000000000000000000000000000000000000dd": "0x1",
"0x00000000000000000000000000000000000000de": "0x1",
"0x00000000000000000000000000000000000000df": "0x1",
"0x00000000000000000000000000000000000000e0": "0x1",
"0x00000000000000000000000000000000000000e1": "0x1",
"0x00000000000000000000000000000000000000e2": "0x1",
"0x00000000000000000000000000000000000000e3": "0x1",
"0x00000000000000000000000000000000000000e4": "0x1",
"0x00000000000000000000000000000000000000e5": "0x1",
"0x00000000000000000000000000000000000000e6": "0x1",
"0x00000000000000000000000000000000000000e7": "0x1",
"0x00000000000000000000000000000000000000e8": "0x1",
"0x00000000000000000000000000000000000000e9": "0x1",
"0x00000000000000000000000000000000000000ea": "0x1",
"0x00000000000000000000000000000000000000eb": "0x1",
"0x00000000000000000000000000000000000000ec": "0x1",
"0x00000000000000000000000000000000000000ed": "0x1",
"0x00000000000000000000000000000000000000ee": "0x1",
"0x00000000000000000000000000000000000000ef": "0x1",
"0x00000000000000000000000000000000000000f0": "0x1",
"0x00000000000000000000000000000000000000f1": "0x1",
"0x00000000000000000000000000000000000000f2": "0x1",
"0x00000000000000000000000000000000000000f3": "0x1",
"0x00000000000000000000000000000000000000f4": "0x1",
"0x00000000000000000000000000000000000000f5": "0x1",
"0x00000000000000000000000000000000000000f6": "0x1",
"0x00000000000000000000000000000000000000f7": "0x1",
"0x00000000000000000000000000000000000000f8": "0x1",
"0x00000000000000000000000000000000000000f9": "0x1",
"0x00000000000000000000000000000000000000fa": "0x1",
"0x00000000000000000000000000000000000000fb": "0x1",
"0x00000000000000000000000000000000000000fc": "0x1",
"0x00000000000000000000000000000000000000fd": "0x1",
"0x00000000000000000000000000000000000000fe": "0x1",
"0x00000000000000000000000000000000000000ff": "0x1",
"0x4c2ae482593505f0163cdefc073e81c63cda4107": "0x152d02c7e14af6800000",
"0xa8e8f14732658e4b51e8711931053a8a69baf2b1": "0x152d02c7e14af6800000",
"0xd9a5179f091d85051d3c982785efd1455cec8699": "0x84595161401484a000000",
"0xe0a2bd4258d2768837baa26a28fe71dc079f84c7": "0x4a47e3c12448f4ad000000"
}
+36
View File
@@ -0,0 +1,36 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.genesisStateByName = exports.genesisStateById = void 0;
var genesisStates = {
names: {
'1': 'mainnet',
'3': 'ropsten',
'4': 'rinkeby',
'42': 'kovan',
'5': 'goerli',
},
mainnet: require('./mainnet.json'),
ropsten: require('./ropsten.json'),
rinkeby: require('./rinkeby.json'),
kovan: require('./kovan.json'),
goerli: require('./goerli.json'),
};
/**
* Returns the genesis state by network ID
* @param id ID of the network (e.g. 1)
* @returns Dictionary with genesis accounts
*/
function genesisStateById(id) {
return genesisStates[genesisStates['names'][id]];
}
exports.genesisStateById = genesisStateById;
/**
* Returns the genesis state by network name
* @param name Name of the network (e.g. 'mainnet')
* @returns Dictionary with genesis accounts
*/
function genesisStateByName(name) {
return genesisStates[name];
}
exports.genesisStateByName = genesisStateByName;
//# sourceMappingURL=index.js.map
+7
View File
@@ -0,0 +1,7 @@
{
"0x0000000000000000000000000000000000000001": "0x1",
"0x0000000000000000000000000000000000000002": "0x1",
"0x0000000000000000000000000000000000000003": "0x1",
"0x0000000000000000000000000000000000000004": "0x1",
"0x00521965e7bd230323c423d96c657db5b79d099f": "0x100000000000000000000000000000000000000000000000000"
}
File diff suppressed because it is too large. Load diff
+259
View File
@@ -0,0 +1,259 @@
{
"0x0000000000000000000000000000000000000000": "0x1",
"0x0000000000000000000000000000000000000001": "0x1",
"0x0000000000000000000000000000000000000002": "0x1",
"0x0000000000000000000000000000000000000003": "0x1",
"0x0000000000000000000000000000000000000004": "0x1",
"0x0000000000000000000000000000000000000005": "0x1",
"0x0000000000000000000000000000000000000006": "0x1",
"0x0000000000000000000000000000000000000007": "0x1",
"0x0000000000000000000000000000000000000008": "0x1",
"0x0000000000000000000000000000000000000009": "0x1",
"0x000000000000000000000000000000000000000a": "0x1",
"0x000000000000000000000000000000000000000b": "0x1",
"0x000000000000000000000000000000000000000c": "0x1",
"0x000000000000000000000000000000000000000d": "0x1",
"0x000000000000000000000000000000000000000e": "0x1",
"0x000000000000000000000000000000000000000f": "0x1",
"0x0000000000000000000000000000000000000010": "0x1",
"0x0000000000000000000000000000000000000011": "0x1",
"0x0000000000000000000000000000000000000012": "0x1",
"0x0000000000000000000000000000000000000013": "0x1",
"0x0000000000000000000000000000000000000014": "0x1",
"0x0000000000000000000000000000000000000015": "0x1",
"0x0000000000000000000000000000000000000016": "0x1",
"0x0000000000000000000000000000000000000017": "0x1",
"0x0000000000000000000000000000000000000018": "0x1",
"0x0000000000000000000000000000000000000019": "0x1",
"0x000000000000000000000000000000000000001a": "0x1",
"0x000000000000000000000000000000000000001b": "0x1",
"0x000000000000000000000000000000000000001c": "0x1",
"0x000000000000000000000000000000000000001d": "0x1",
"0x000000000000000000000000000000000000001e": "0x1",
"0x000000000000000000000000000000000000001f": "0x1",
"0x0000000000000000000000000000000000000020": "0x1",
"0x0000000000000000000000000000000000000021": "0x1",
"0x0000000000000000000000000000000000000022": "0x1",
"0x0000000000000000000000000000000000000023": "0x1",
"0x0000000000000000000000000000000000000024": "0x1",
"0x0000000000000000000000000000000000000025": "0x1",
"0x0000000000000000000000000000000000000026": "0x1",
"0x0000000000000000000000000000000000000027": "0x1",
"0x0000000000000000000000000000000000000028": "0x1",
"0x0000000000000000000000000000000000000029": "0x1",
"0x000000000000000000000000000000000000002a": "0x1",
"0x000000000000000000000000000000000000002b": "0x1",
"0x000000000000000000000000000000000000002c": "0x1",
"0x000000000000000000000000000000000000002d": "0x1",
"0x000000000000000000000000000000000000002e": "0x1",
"0x000000000000000000000000000000000000002f": "0x1",
"0x0000000000000000000000000000000000000030": "0x1",
"0x0000000000000000000000000000000000000031": "0x1",
"0x0000000000000000000000000000000000000032": "0x1",
"0x0000000000000000000000000000000000000033": "0x1",
"0x0000000000000000000000000000000000000034": "0x1",
"0x0000000000000000000000000000000000000035": "0x1",
"0x0000000000000000000000000000000000000036": "0x1",
"0x0000000000000000000000000000000000000037": "0x1",
"0x0000000000000000000000000000000000000038": "0x1",
"0x0000000000000000000000000000000000000039": "0x1",
"0x000000000000000000000000000000000000003a": "0x1",
"0x000000000000000000000000000000000000003b": "0x1",
"0x000000000000000000000000000000000000003c": "0x1",
"0x000000000000000000000000000000000000003d": "0x1",
"0x000000000000000000000000000000000000003e": "0x1",
"0x000000000000000000000000000000000000003f": "0x1",
"0x0000000000000000000000000000000000000040": "0x1",
"0x0000000000000000000000000000000000000041": "0x1",
"0x0000000000000000000000000000000000000042": "0x1",
"0x0000000000000000000000000000000000000043": "0x1",
"0x0000000000000000000000000000000000000044": "0x1",
"0x0000000000000000000000000000000000000045": "0x1",
"0x0000000000000000000000000000000000000046": "0x1",
"0x0000000000000000000000000000000000000047": "0x1",
"0x0000000000000000000000000000000000000048": "0x1",
"0x0000000000000000000000000000000000000049": "0x1",
"0x000000000000000000000000000000000000004a": "0x1",
"0x000000000000000000000000000000000000004b": "0x1",
"0x000000000000000000000000000000000000004c": "0x1",
"0x000000000000000000000000000000000000004d": "0x1",
"0x000000000000000000000000000000000000004e": "0x1",
"0x000000000000000000000000000000000000004f": "0x1",
"0x0000000000000000000000000000000000000050": "0x1",
"0x0000000000000000000000000000000000000051": "0x1",
"0x0000000000000000000000000000000000000052": "0x1",
"0x0000000000000000000000000000000000000053": "0x1",
"0x0000000000000000000000000000000000000054": "0x1",
"0x0000000000000000000000000000000000000055": "0x1",
"0x0000000000000000000000000000000000000056": "0x1",
"0x0000000000000000000000000000000000000057": "0x1",
"0x0000000000000000000000000000000000000058": "0x1",
"0x0000000000000000000000000000000000000059": "0x1",
"0x000000000000000000000000000000000000005a": "0x1",
"0x000000000000000000000000000000000000005b": "0x1",
"0x000000000000000000000000000000000000005c": "0x1",
"0x000000000000000000000000000000000000005d": "0x1",
"0x000000000000000000000000000000000000005e": "0x1",
"0x000000000000000000000000000000000000005f": "0x1",
"0x0000000000000000000000000000000000000060": "0x1",
"0x0000000000000000000000000000000000000061": "0x1",
"0x0000000000000000000000000000000000000062": "0x1",
"0x0000000000000000000000000000000000000063": "0x1",
"0x0000000000000000000000000000000000000064": "0x1",
"0x0000000000000000000000000000000000000065": "0x1",
"0x0000000000000000000000000000000000000066": "0x1",
"0x0000000000000000000000000000000000000067": "0x1",
"0x0000000000000000000000000000000000000068": "0x1",
"0x0000000000000000000000000000000000000069": "0x1",
"0x000000000000000000000000000000000000006a": "0x1",
"0x000000000000000000000000000000000000006b": "0x1",
"0x000000000000000000000000000000000000006c": "0x1",
"0x000000000000000000000000000000000000006d": "0x1",
"0x000000000000000000000000000000000000006e": "0x1",
"0x000000000000000000000000000000000000006f": "0x1",
"0x0000000000000000000000000000000000000070": "0x1",
"0x0000000000000000000000000000000000000071": "0x1",
"0x0000000000000000000000000000000000000072": "0x1",
"0x0000000000000000000000000000000000000073": "0x1",
"0x0000000000000000000000000000000000000074": "0x1",
"0x0000000000000000000000000000000000000075": "0x1",
"0x0000000000000000000000000000000000000076": "0x1",
"0x0000000000000000000000000000000000000077": "0x1",
"0x0000000000000000000000000000000000000078": "0x1",
"0x0000000000000000000000000000000000000079": "0x1",
"0x000000000000000000000000000000000000007a": "0x1",
"0x000000000000000000000000000000000000007b": "0x1",
"0x000000000000000000000000000000000000007c": "0x1",
"0x000000000000000000000000000000000000007d": "0x1",
"0x000000000000000000000000000000000000007e": "0x1",
"0x000000000000000000000000000000000000007f": "0x1",
"0x0000000000000000000000000000000000000080": "0x1",
"0x0000000000000000000000000000000000000081": "0x1",
"0x0000000000000000000000000000000000000082": "0x1",
"0x0000000000000000000000000000000000000083": "0x1",
"0x0000000000000000000000000000000000000084": "0x1",
"0x0000000000000000000000000000000000000085": "0x1",
"0x0000000000000000000000000000000000000086": "0x1",
"0x0000000000000000000000000000000000000087": "0x1",
"0x0000000000000000000000000000000000000088": "0x1",
"0x0000000000000000000000000000000000000089": "0x1",
"0x000000000000000000000000000000000000008a": "0x1",
"0x000000000000000000000000000000000000008b": "0x1",
"0x000000000000000000000000000000000000008c": "0x1",
"0x000000000000000000000000000000000000008d": "0x1",
"0x000000000000000000000000000000000000008e": "0x1",
"0x000000000000000000000000000000000000008f": "0x1",
"0x0000000000000000000000000000000000000090": "0x1",
"0x0000000000000000000000000000000000000091": "0x1",
"0x0000000000000000000000000000000000000092": "0x1",
"0x0000000000000000000000000000000000000093": "0x1",
"0x0000000000000000000000000000000000000094": "0x1",
"0x0000000000000000000000000000000000000095": "0x1",
"0x0000000000000000000000000000000000000096": "0x1",
"0x0000000000000000000000000000000000000097": "0x1",
"0x0000000000000000000000000000000000000098": "0x1",
"0x0000000000000000000000000000000000000099": "0x1",
"0x000000000000000000000000000000000000009a": "0x1",
"0x000000000000000000000000000000000000009b": "0x1",
"0x000000000000000000000000000000000000009c": "0x1",
"0x000000000000000000000000000000000000009d": "0x1",
"0x000000000000000000000000000000000000009e": "0x1",
"0x000000000000000000000000000000000000009f": "0x1",
"0x00000000000000000000000000000000000000a0": "0x1",
"0x00000000000000000000000000000000000000a1": "0x1",
"0x00000000000000000000000000000000000000a2": "0x1",
"0x00000000000000000000000000000000000000a3": "0x1",
"0x00000000000000000000000000000000000000a4": "0x1",
"0x00000000000000000000000000000000000000a5": "0x1",
"0x00000000000000000000000000000000000000a6": "0x1",
"0x00000000000000000000000000000000000000a7": "0x1",
"0x00000000000000000000000000000000000000a8": "0x1",
"0x00000000000000000000000000000000000000a9": "0x1",
"0x00000000000000000000000000000000000000aa": "0x1",
"0x00000000000000000000000000000000000000ab": "0x1",
"0x00000000000000000000000000000000000000ac": "0x1",
"0x00000000000000000000000000000000000000ad": "0x1",
"0x00000000000000000000000000000000000000ae": "0x1",
"0x00000000000000000000000000000000000000af": "0x1",
"0x00000000000000000000000000000000000000b0": "0x1",
"0x00000000000000000000000000000000000000b1": "0x1",
"0x00000000000000000000000000000000000000b2": "0x1",
"0x00000000000000000000000000000000000000b3": "0x1",
"0x00000000000000000000000000000000000000b4": "0x1",
"0x00000000000000000000000000000000000000b5": "0x1",
"0x00000000000000000000000000000000000000b6": "0x1",
"0x00000000000000000000000000000000000000b7": "0x1",
"0x00000000000000000000000000000000000000b8": "0x1",
"0x00000000000000000000000000000000000000b9": "0x1",
"0x00000000000000000000000000000000000000ba": "0x1",
"0x00000000000000000000000000000000000000bb": "0x1",
"0x00000000000000000000000000000000000000bc": "0x1",
"0x00000000000000000000000000000000000000bd": "0x1",
"0x00000000000000000000000000000000000000be": "0x1",
"0x00000000000000000000000000000000000000bf": "0x1",
"0x00000000000000000000000000000000000000c0": "0x1",
"0x00000000000000000000000000000000000000c1": "0x1",
"0x00000000000000000000000000000000000000c2": "0x1",
"0x00000000000000000000000000000000000000c3": "0x1",
"0x00000000000000000000000000000000000000c4": "0x1",
"0x00000000000000000000000000000000000000c5": "0x1",
"0x00000000000000000000000000000000000000c6": "0x1",
"0x00000000000000000000000000000000000000c7": "0x1",
"0x00000000000000000000000000000000000000c8": "0x1",
"0x00000000000000000000000000000000000000c9": "0x1",
"0x00000000000000000000000000000000000000ca": "0x1",
"0x00000000000000000000000000000000000000cb": "0x1",
"0x00000000000000000000000000000000000000cc": "0x1",
"0x00000000000000000000000000000000000000cd": "0x1",
"0x00000000000000000000000000000000000000ce": "0x1",
"0x00000000000000000000000000000000000000cf": "0x1",
"0x00000000000000000000000000000000000000d0": "0x1",
"0x00000000000000000000000000000000000000d1": "0x1",
"0x00000000000000000000000000000000000000d2": "0x1",
"0x00000000000000000000000000000000000000d3": "0x1",
"0x00000000000000000000000000000000000000d4": "0x1",
"0x00000000000000000000000000000000000000d5": "0x1",
"0x00000000000000000000000000000000000000d6": "0x1",
"0x00000000000000000000000000000000000000d7": "0x1",
"0x00000000000000000000000000000000000000d8": "0x1",
"0x00000000000000000000000000000000000000d9": "0x1",
"0x00000000000000000000000000000000000000da": "0x1",
"0x00000000000000000000000000000000000000db": "0x1",
"0x00000000000000000000000000000000000000dc": "0x1",
"0x00000000000000000000000000000000000000dd": "0x1",
"0x00000000000000000000000000000000000000de": "0x1",
"0x00000000000000000000000000000000000000df": "0x1",
"0x00000000000000000000000000000000000000e0": "0x1",
"0x00000000000000000000000000000000000000e1": "0x1",
"0x00000000000000000000000000000000000000e2": "0x1",
"0x00000000000000000000000000000000000000e3": "0x1",
"0x00000000000000000000000000000000000000e4": "0x1",
"0x00000000000000000000000000000000000000e5": "0x1",
"0x00000000000000000000000000000000000000e6": "0x1",
"0x00000000000000000000000000000000000000e7": "0x1",
"0x00000000000000000000000000000000000000e8": "0x1",
"0x00000000000000000000000000000000000000e9": "0x1",
"0x00000000000000000000000000000000000000ea": "0x1",
"0x00000000000000000000000000000000000000eb": "0x1",
"0x00000000000000000000000000000000000000ec": "0x1",
"0x00000000000000000000000000000000000000ed": "0x1",
"0x00000000000000000000000000000000000000ee": "0x1",
"0x00000000000000000000000000000000000000ef": "0x1",
"0x00000000000000000000000000000000000000f0": "0x1",
"0x00000000000000000000000000000000000000f1": "0x1",
"0x00000000000000000000000000000000000000f2": "0x1",
"0x00000000000000000000000000000000000000f3": "0x1",
"0x00000000000000000000000000000000000000f4": "0x1",
"0x00000000000000000000000000000000000000f5": "0x1",
"0x00000000000000000000000000000000000000f6": "0x1",
"0x00000000000000000000000000000000000000f7": "0x1",
"0x00000000000000000000000000000000000000f8": "0x1",
"0x00000000000000000000000000000000000000f9": "0x1",
"0x00000000000000000000000000000000000000fa": "0x1",
"0x00000000000000000000000000000000000000fb": "0x1",
"0x00000000000000000000000000000000000000fc": "0x1",
"0x00000000000000000000000000000000000000fd": "0x1",
"0x00000000000000000000000000000000000000fe": "0x1",
"0x00000000000000000000000000000000000000ff": "0x1",
"0x31b98d14007bdee637298086988a0bbd31184523": "0x200000000000000000000000000000000000000000000000000000000000000"
}
+259
View File
@@ -0,0 +1,259 @@
{
"0x0000000000000000000000000000000000000000": "0x1",
"0x0000000000000000000000000000000000000001": "0x1",
"0x0000000000000000000000000000000000000002": "0x1",
"0x0000000000000000000000000000000000000003": "0x1",
"0x0000000000000000000000000000000000000004": "0x1",
"0x0000000000000000000000000000000000000005": "0x1",
"0x0000000000000000000000000000000000000006": "0x1",
"0x0000000000000000000000000000000000000007": "0x1",
"0x0000000000000000000000000000000000000008": "0x1",
"0x0000000000000000000000000000000000000009": "0x1",
"0x000000000000000000000000000000000000000a": "0x0",
"0x000000000000000000000000000000000000000b": "0x0",
"0x000000000000000000000000000000000000000c": "0x0",
"0x000000000000000000000000000000000000000d": "0x0",
"0x000000000000000000000000000000000000000e": "0x0",
"0x000000000000000000000000000000000000000f": "0x0",
"0x0000000000000000000000000000000000000010": "0x0",
"0x0000000000000000000000000000000000000011": "0x0",
"0x0000000000000000000000000000000000000012": "0x0",
"0x0000000000000000000000000000000000000013": "0x0",
"0x0000000000000000000000000000000000000014": "0x0",
"0x0000000000000000000000000000000000000015": "0x0",
"0x0000000000000000000000000000000000000016": "0x0",
"0x0000000000000000000000000000000000000017": "0x0",
"0x0000000000000000000000000000000000000018": "0x0",
"0x0000000000000000000000000000000000000019": "0x0",
"0x000000000000000000000000000000000000001a": "0x0",
"0x000000000000000000000000000000000000001b": "0x0",
"0x000000000000000000000000000000000000001c": "0x0",
"0x000000000000000000000000000000000000001d": "0x0",
"0x000000000000000000000000000000000000001e": "0x0",
"0x000000000000000000000000000000000000001f": "0x0",
"0x0000000000000000000000000000000000000020": "0x0",
"0x0000000000000000000000000000000000000021": "0x0",
"0x0000000000000000000000000000000000000022": "0x0",
"0x0000000000000000000000000000000000000023": "0x0",
"0x0000000000000000000000000000000000000024": "0x0",
"0x0000000000000000000000000000000000000025": "0x0",
"0x0000000000000000000000000000000000000026": "0x0",
"0x0000000000000000000000000000000000000027": "0x0",
"0x0000000000000000000000000000000000000028": "0x0",
"0x0000000000000000000000000000000000000029": "0x0",
"0x000000000000000000000000000000000000002a": "0x0",
"0x000000000000000000000000000000000000002b": "0x0",
"0x000000000000000000000000000000000000002c": "0x0",
"0x000000000000000000000000000000000000002d": "0x0",
"0x000000000000000000000000000000000000002e": "0x0",
"0x000000000000000000000000000000000000002f": "0x0",
"0x0000000000000000000000000000000000000030": "0x0",
"0x0000000000000000000000000000000000000031": "0x0",
"0x0000000000000000000000000000000000000032": "0x0",
"0x0000000000000000000000000000000000000033": "0x0",
"0x0000000000000000000000000000000000000034": "0x0",
"0x0000000000000000000000000000000000000035": "0x0",
"0x0000000000000000000000000000000000000036": "0x0",
"0x0000000000000000000000000000000000000037": "0x0",
"0x0000000000000000000000000000000000000038": "0x0",
"0x0000000000000000000000000000000000000039": "0x0",
"0x000000000000000000000000000000000000003a": "0x0",
"0x000000000000000000000000000000000000003b": "0x0",
"0x000000000000000000000000000000000000003c": "0x0",
"0x000000000000000000000000000000000000003d": "0x0",
"0x000000000000000000000000000000000000003e": "0x0",
"0x000000000000000000000000000000000000003f": "0x0",
"0x0000000000000000000000000000000000000040": "0x0",
"0x0000000000000000000000000000000000000041": "0x0",
"0x0000000000000000000000000000000000000042": "0x0",
"0x0000000000000000000000000000000000000043": "0x0",
"0x0000000000000000000000000000000000000044": "0x0",
"0x0000000000000000000000000000000000000045": "0x0",
"0x0000000000000000000000000000000000000046": "0x0",
"0x0000000000000000000000000000000000000047": "0x0",
"0x0000000000000000000000000000000000000048": "0x0",
"0x0000000000000000000000000000000000000049": "0x0",
"0x000000000000000000000000000000000000004a": "0x0",
"0x000000000000000000000000000000000000004b": "0x0",
"0x000000000000000000000000000000000000004c": "0x0",
"0x000000000000000000000000000000000000004d": "0x0",
"0x000000000000000000000000000000000000004e": "0x0",
"0x000000000000000000000000000000000000004f": "0x0",
"0x0000000000000000000000000000000000000050": "0x0",
"0x0000000000000000000000000000000000000051": "0x0",
"0x0000000000000000000000000000000000000052": "0x0",
"0x0000000000000000000000000000000000000053": "0x0",
"0x0000000000000000000000000000000000000054": "0x0",
"0x0000000000000000000000000000000000000055": "0x0",
"0x0000000000000000000000000000000000000056": "0x0",
"0x0000000000000000000000000000000000000057": "0x0",
"0x0000000000000000000000000000000000000058": "0x0",
"0x0000000000000000000000000000000000000059": "0x0",
"0x000000000000000000000000000000000000005a": "0x0",
"0x000000000000000000000000000000000000005b": "0x0",
"0x000000000000000000000000000000000000005c": "0x0",
"0x000000000000000000000000000000000000005d": "0x0",
"0x000000000000000000000000000000000000005e": "0x0",
"0x000000000000000000000000000000000000005f": "0x0",
"0x0000000000000000000000000000000000000060": "0x0",
"0x0000000000000000000000000000000000000061": "0x0",
"0x0000000000000000000000000000000000000062": "0x0",
"0x0000000000000000000000000000000000000063": "0x0",
"0x0000000000000000000000000000000000000064": "0x0",
"0x0000000000000000000000000000000000000065": "0x0",
"0x0000000000000000000000000000000000000066": "0x0",
"0x0000000000000000000000000000000000000067": "0x0",
"0x0000000000000000000000000000000000000068": "0x0",
"0x0000000000000000000000000000000000000069": "0x0",
"0x000000000000000000000000000000000000006a": "0x0",
"0x000000000000000000000000000000000000006b": "0x0",
"0x000000000000000000000000000000000000006c": "0x0",
"0x000000000000000000000000000000000000006d": "0x0",
"0x000000000000000000000000000000000000006e": "0x0",
"0x000000000000000000000000000000000000006f": "0x0",
"0x0000000000000000000000000000000000000070": "0x0",
"0x0000000000000000000000000000000000000071": "0x0",
"0x0000000000000000000000000000000000000072": "0x0",
"0x0000000000000000000000000000000000000073": "0x0",
"0x0000000000000000000000000000000000000074": "0x0",
"0x0000000000000000000000000000000000000075": "0x0",
"0x0000000000000000000000000000000000000076": "0x0",
"0x0000000000000000000000000000000000000077": "0x0",
"0x0000000000000000000000000000000000000078": "0x0",
"0x0000000000000000000000000000000000000079": "0x0",
"0x000000000000000000000000000000000000007a": "0x0",
"0x000000000000000000000000000000000000007b": "0x0",
"0x000000000000000000000000000000000000007c": "0x0",
"0x000000000000000000000000000000000000007d": "0x0",
"0x000000000000000000000000000000000000007e": "0x0",
"0x000000000000000000000000000000000000007f": "0x0",
"0x0000000000000000000000000000000000000080": "0x0",
"0x0000000000000000000000000000000000000081": "0x0",
"0x0000000000000000000000000000000000000082": "0x0",
"0x0000000000000000000000000000000000000083": "0x0",
"0x0000000000000000000000000000000000000084": "0x0",
"0x0000000000000000000000000000000000000085": "0x0",
"0x0000000000000000000000000000000000000086": "0x0",
"0x0000000000000000000000000000000000000087": "0x0",
"0x0000000000000000000000000000000000000088": "0x0",
"0x0000000000000000000000000000000000000089": "0x0",
"0x000000000000000000000000000000000000008a": "0x0",
"0x000000000000000000000000000000000000008b": "0x0",
"0x000000000000000000000000000000000000008c": "0x0",
"0x000000000000000000000000000000000000008d": "0x0",
"0x000000000000000000000000000000000000008e": "0x0",
"0x000000000000000000000000000000000000008f": "0x0",
"0x0000000000000000000000000000000000000090": "0x0",
"0x0000000000000000000000000000000000000091": "0x0",
"0x0000000000000000000000000000000000000092": "0x0",
"0x0000000000000000000000000000000000000093": "0x0",
"0x0000000000000000000000000000000000000094": "0x0",
"0x0000000000000000000000000000000000000095": "0x0",
"0x0000000000000000000000000000000000000096": "0x0",
"0x0000000000000000000000000000000000000097": "0x0",
"0x0000000000000000000000000000000000000098": "0x0",
"0x0000000000000000000000000000000000000099": "0x0",
"0x000000000000000000000000000000000000009a": "0x0",
"0x000000000000000000000000000000000000009b": "0x0",
"0x000000000000000000000000000000000000009c": "0x0",
"0x000000000000000000000000000000000000009d": "0x0",
"0x000000000000000000000000000000000000009e": "0x0",
"0x000000000000000000000000000000000000009f": "0x0",
"0x00000000000000000000000000000000000000a0": "0x0",
"0x00000000000000000000000000000000000000a1": "0x0",
"0x00000000000000000000000000000000000000a2": "0x0",
"0x00000000000000000000000000000000000000a3": "0x0",
"0x00000000000000000000000000000000000000a4": "0x0",
"0x00000000000000000000000000000000000000a5": "0x0",
"0x00000000000000000000000000000000000000a6": "0x0",
"0x00000000000000000000000000000000000000a7": "0x0",
"0x00000000000000000000000000000000000000a8": "0x0",
"0x00000000000000000000000000000000000000a9": "0x0",
"0x00000000000000000000000000000000000000aa": "0x0",
"0x00000000000000000000000000000000000000ab": "0x0",
"0x00000000000000000000000000000000000000ac": "0x0",
"0x00000000000000000000000000000000000000ad": "0x0",
"0x00000000000000000000000000000000000000ae": "0x0",
"0x00000000000000000000000000000000000000af": "0x0",
"0x00000000000000000000000000000000000000b0": "0x0",
"0x00000000000000000000000000000000000000b1": "0x0",
"0x00000000000000000000000000000000000000b2": "0x0",
"0x00000000000000000000000000000000000000b3": "0x0",
"0x00000000000000000000000000000000000000b4": "0x0",
"0x00000000000000000000000000000000000000b5": "0x0",
"0x00000000000000000000000000000000000000b6": "0x0",
"0x00000000000000000000000000000000000000b7": "0x0",
"0x00000000000000000000000000000000000000b8": "0x0",
"0x00000000000000000000000000000000000000b9": "0x0",
"0x00000000000000000000000000000000000000ba": "0x0",
"0x00000000000000000000000000000000000000bb": "0x0",
"0x00000000000000000000000000000000000000bc": "0x0",
"0x00000000000000000000000000000000000000bd": "0x0",
"0x00000000000000000000000000000000000000be": "0x0",
"0x00000000000000000000000000000000000000bf": "0x0",
"0x00000000000000000000000000000000000000c0": "0x0",
"0x00000000000000000000000000000000000000c1": "0x0",
"0x00000000000000000000000000000000000000c2": "0x0",
"0x00000000000000000000000000000000000000c3": "0x0",
"0x00000000000000000000000000000000000000c4": "0x0",
"0x00000000000000000000000000000000000000c5": "0x0",
"0x00000000000000000000000000000000000000c6": "0x0",
"0x00000000000000000000000000000000000000c7": "0x0",
"0x00000000000000000000000000000000000000c8": "0x0",
"0x00000000000000000000000000000000000000c9": "0x0",
"0x00000000000000000000000000000000000000ca": "0x0",
"0x00000000000000000000000000000000000000cb": "0x0",
"0x00000000000000000000000000000000000000cc": "0x0",
"0x00000000000000000000000000000000000000cd": "0x0",
"0x00000000000000000000000000000000000000ce": "0x0",
"0x00000000000000000000000000000000000000cf": "0x0",
"0x00000000000000000000000000000000000000d0": "0x0",
"0x00000000000000000000000000000000000000d1": "0x0",
"0x00000000000000000000000000000000000000d2": "0x0",
"0x00000000000000000000000000000000000000d3": "0x0",
"0x00000000000000000000000000000000000000d4": "0x0",
"0x00000000000000000000000000000000000000d5": "0x0",
"0x00000000000000000000000000000000000000d6": "0x0",
"0x00000000000000000000000000000000000000d7": "0x0",
"0x00000000000000000000000000000000000000d8": "0x0",
"0x00000000000000000000000000000000000000d9": "0x0",
"0x00000000000000000000000000000000000000da": "0x0",
"0x00000000000000000000000000000000000000db": "0x0",
"0x00000000000000000000000000000000000000dc": "0x0",
"0x00000000000000000000000000000000000000dd": "0x0",
"0x00000000000000000000000000000000000000de": "0x0",
"0x00000000000000000000000000000000000000df": "0x0",
"0x00000000000000000000000000000000000000e0": "0x0",
"0x00000000000000000000000000000000000000e1": "0x0",
"0x00000000000000000000000000000000000000e2": "0x0",
"0x00000000000000000000000000000000000000e3": "0x0",
"0x00000000000000000000000000000000000000e4": "0x0",
"0x00000000000000000000000000000000000000e5": "0x0",
"0x00000000000000000000000000000000000000e6": "0x0",
"0x00000000000000000000000000000000000000e7": "0x0",
"0x00000000000000000000000000000000000000e8": "0x0",
"0x00000000000000000000000000000000000000e9": "0x0",
"0x00000000000000000000000000000000000000ea": "0x0",
"0x00000000000000000000000000000000000000eb": "0x0",
"0x00000000000000000000000000000000000000ec": "0x0",
"0x00000000000000000000000000000000000000ed": "0x0",
"0x00000000000000000000000000000000000000ee": "0x0",
"0x00000000000000000000000000000000000000ef": "0x0",
"0x00000000000000000000000000000000000000f0": "0x0",
"0x00000000000000000000000000000000000000f1": "0x0",
"0x00000000000000000000000000000000000000f2": "0x0",
"0x00000000000000000000000000000000000000f3": "0x0",
"0x00000000000000000000000000000000000000f4": "0x0",
"0x00000000000000000000000000000000000000f5": "0x0",
"0x00000000000000000000000000000000000000f6": "0x0",
"0x00000000000000000000000000000000000000f7": "0x0",
"0x00000000000000000000000000000000000000f8": "0x0",
"0x00000000000000000000000000000000000000f9": "0x0",
"0x00000000000000000000000000000000000000fa": "0x0",
"0x00000000000000000000000000000000000000fb": "0x0",
"0x00000000000000000000000000000000000000fc": "0x0",
"0x00000000000000000000000000000000000000fd": "0x0",
"0x00000000000000000000000000000000000000fe": "0x0",
"0x00000000000000000000000000000000000000ff": "0x0",
"0x874b54a8bd152966d63f706bae1ffeb0411921e5": "0xc9f2c9cd04674edea40000000"
}
+40
View File
@@ -0,0 +1,40 @@
{
"name": "byzantium",
"comment": "Hardfork with new precompiles, instructions and other protocol changes",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-609",
"status": "Final"
},
"gasConfig": {},
"gasPrices": {
"modexpGquaddivisor": {
"v": 20,
"d": "Gquaddivisor from modexp precompile for gas calculation"
},
"ecAdd": {
"v": 500,
"d": "Gas costs for curve addition precompile"
},
"ecMul": {
"v": 40000,
"d": "Gas costs for curve multiplication precompile"
},
"ecPairing": {
"v": 100000,
"d": "Base gas costs for curve pairing precompile"
},
"ecPairingWord": {
"v": 80000,
"d": "Gas costs regarding curve pairing precompile input length"
}
},
"vm": {},
"pow": {
"minerReward": {
"v": "3000000000000000000",
"d": "the amount a miner get rewarded for mining a block"
}
},
"casper": {},
"sharding": {}
}
+203
View File
@@ -0,0 +1,203 @@
{
"name": "chainstart",
"comment": "Start of the Ethereum main chain",
"eip": {
"url": "",
"status": ""
},
"status": "",
"gasConfig": {
"minGasLimit": {
"v": 5000,
"d": "Minimum the gas limit may ever be"
},
"gasLimitBoundDivisor": {
"v": 1024,
"d": "The bound divisor of the gas limit, used in update calculations"
}
},
"gasPrices": {
"base": {
"v": 2,
"d": "Gas base cost, used e.g. for ChainID opcode (Istanbul)"
},
"tierStep": {
"v": [0, 2, 3, 5, 8, 10, 20],
"d": "Once per operation, for a selection of them"
},
"exp": {
"v": 10,
"d": "Once per EXP instuction"
},
"expByte": {
"v": 10,
"d": "Times ceil(log256(exponent)) for the EXP instruction"
},
"sha3": {
"v": 30,
"d": "Once per SHA3 operation"
},
"sha3Word": {
"v": 6,
"d": "Once per word of the SHA3 operation's data"
},
"sload": {
"v": 50,
"d": "Once per SLOAD operation"
},
"sstoreSet": {
"v": 20000,
"d": "Once per SSTORE operation if the zeroness changes from zero"
},
"sstoreReset": {
"v": 5000,
"d": "Once per SSTORE operation if the zeroness does not change from zero"
},
"sstoreRefund": {
"v": 15000,
"d": "Once per SSTORE operation if the zeroness changes to zero"
},
"jumpdest": {
"v": 1,
"d": "Refunded gas, once per SSTORE operation if the zeroness changes to zero"
},
"log": {
"v": 375,
"d": "Per LOG* operation"
},
"logData": {
"v": 8,
"d": "Per byte in a LOG* operation's data"
},
"logTopic": {
"v": 375,
"d": "Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"
},
"create": {
"v": 32000,
"d": "Once per CREATE operation & contract-creation transaction"
},
"call": {
"v": 40,
"d": "Once per CALL operation & message call transaction"
},
"callStipend": {
"v": 2300,
"d": "Free gas given at beginning of call"
},
"callValueTransfer": {
"v": 9000,
"d": "Paid for CALL when the value transfor is non-zero"
},
"callNewAccount": {
"v": 25000,
"d": "Paid for CALL when the destination address didn't exist prior"
},
"selfdestructRefund": {
"v": 24000,
"d": "Refunded following a selfdestruct operation"
},
"memory": {
"v": 3,
"d": "Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"
},
"quadCoeffDiv": {
"v": 512,
"d": "Divisor for the quadratic particle of the memory cost equation"
},
"createData": {
"v": 200,
"d": ""
},
"tx": {
"v": 21000,
"d": "Per transaction. NOTE: Not payable on data of calls between transactions"
},
"txCreation": {
"v": 32000,
"d": "The cost of creating a contract via tx"
},
"txDataZero": {
"v": 4,
"d": "Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"
},
"txDataNonZero": {
"v": 68,
"d": "Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"
},
"copy": {
"v": 3,
"d": "Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"
},
"ecRecover": {
"v": 3000,
"d": ""
},
"sha256": {
"v": 60,
"d": ""
},
"sha256Word": {
"v": 12,
"d": ""
},
"ripemd160": {
"v": 600,
"d": ""
},
"ripemd160Word": {
"v": 120,
"d": ""
},
"identity": {
"v": 15,
"d": ""
},
"identityWord": {
"v": 3,
"d": ""
}
},
"vm": {
"stackLimit": {
"v": 1024,
"d": "Maximum size of VM stack allowed"
},
"callCreateDepth": {
"v": 1024,
"d": "Maximum depth of call/create stack"
},
"maxExtraDataSize": {
"v": 32,
"d": "Maximum size extra data may be after Genesis"
}
},
"pow": {
"minimumDifficulty": {
"v": 131072,
"d": "The minimum that the difficulty may ever be"
},
"difficultyBoundDivisor": {
"v": 2048,
"d": "The bound divisor of the difficulty, used in the update calculations"
},
"durationLimit": {
"v": 13,
"d": "The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"
},
"epochDuration": {
"v": 30000,
"d": "Duration between proof-of-work epochs"
},
"timebombPeriod": {
"v": 100000,
"d": "Exponential difficulty timebomb period"
},
"minerReward": {
"v": "5000000000000000000",
"d": "the amount a miner get rewarded for mining a block"
}
},
"casper": {},
"sharding": {}
}
@@ -0,0 +1,48 @@
{
"name": "constantinople",
"comment": "Postponed hardfork including EIP-1283 (SSTORE gas metering changes)",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-1013",
"status": "Final"
},
"gasConfig": {},
"gasPrices": {
"netSstoreNoopGas": {
"v": 200,
"d": "Once per SSTORE operation if the value doesn't change"
},
"netSstoreInitGas": {
"v": 20000,
"d": "Once per SSTORE operation from clean zero"
},
"netSstoreCleanGas": {
"v": 5000,
"d": "Once per SSTORE operation from clean non-zero"
},
"netSstoreDirtyGas": {
"v": 200,
"d": "Once per SSTORE operation from dirty"
},
"netSstoreClearRefund": {
"v": 15000,
"d": "Once per SSTORE operation for clearing an originally existing storage slot"
},
"netSstoreResetRefund": {
"v": 4800,
"d": "Once per SSTORE operation for resetting to the original non-zero value"
},
"netSstoreResetClearRefund": {
"v": 19800,
"d": "Once per SSTORE operation for resetting to the original zero value"
}
},
"vm": {},
"pow": {
"minerReward": {
"v": "2000000000000000000",
"d": "The amount a miner gets rewarded for mining a block"
}
},
"casper": {},
"sharding": {}
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "dao",
"comment": "DAO rescue hardfork",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-779",
"status": "Final"
},
"gasConfig": {},
"gasPrices": {},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "homestead",
"comment": "Homestead hardfork with protocol and network changes",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-606",
"status": "Final"
},
"gasConfig": {},
"gasPrices": {},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
}
+16
View File
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hardforks = void 0;
exports.hardforks = [
['chainstart', require('./chainstart.json')],
['homestead', require('./homestead.json')],
['dao', require('./dao.json')],
['tangerineWhistle', require('./tangerineWhistle.json')],
['spuriousDragon', require('./spuriousDragon.json')],
['byzantium', require('./byzantium.json')],
['constantinople', require('./constantinople.json')],
['petersburg', require('./petersburg.json')],
['istanbul', require('./istanbul.json')],
['muirGlacier', require('./muirGlacier.json')],
];
//# sourceMappingURL=index.js.map
+71
View File
@@ -0,0 +1,71 @@
{
"name": "istanbul",
"comment": "HF targeted for December 2019 following the Constantinople/Petersburg HF",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-1679",
"status": "Draft"
},
"gasConfig": {},
"gasPrices": {
"blake2Round": {
"v": 1,
"d": "Gas cost per round for the Blake2 F precompile"
},
"ecAdd": {
"v": 150,
"d": "Gas costs for curve addition precompile"
},
"ecMul": {
"v": 6000,
"d": "Gas costs for curve multiplication precompile"
},
"ecPairing": {
"v": 45000,
"d": "Base gas costs for curve pairing precompile"
},
"ecPairingWord": {
"v": 34000,
"d": "Gas costs regarding curve pairing precompile input length"
},
"txDataNonZero": {
"v": 16,
"d": "Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"
},
"sstoreSentryGasEIP2200": {
"v": 2300,
"d": "Minimum gas required to be present for an SSTORE call, not consumed"
},
"sstoreNoopGasEIP2200": {
"v": 800,
"d": "Once per SSTORE operation if the value doesn't change"
},
"sstoreDirtyGasEIP2200": {
"v": 800,
"d": "Once per SSTORE operation if a dirty value is changed"
},
"sstoreInitGasEIP2200": {
"v": 20000,
"d": "Once per SSTORE operation from clean zero to non-zero"
},
"sstoreInitRefundEIP2200": {
"v": 19200,
"d": "Once per SSTORE operation for resetting to the original zero value"
},
"sstoreCleanGasEIP2200": {
"v": 5000,
"d": "Once per SSTORE operation from clean non-zero to something else"
},
"sstoreCleanRefundEIP2200": {
"v": 4200,
"d": "Once per SSTORE operation for resetting to the original non-zero value"
},
"sstoreClearRefundEIP2200": {
"v": 15000,
"d": "Once per SSTORE operation for clearing an originally existing storage slot"
}
},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "muirGlacier",
"comment": "HF to delay the difficulty bomb",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-2384",
"status": "Last Call"
},
"gasConfig": {},
"gasPrices": {},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
}
+43
View File
@@ -0,0 +1,43 @@
{
"name": "petersburg",
"comment": "Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-1716",
"status": "Draft"
},
"gasConfig": {},
"gasPrices": {
"netSstoreNoopGas": {
"v": null,
"d": "Removed along EIP-1283"
},
"netSstoreInitGas": {
"v": null,
"d": "Removed along EIP-1283"
},
"netSstoreCleanGas": {
"v": null,
"d": "Removed along EIP-1283"
},
"netSstoreDirtyGas": {
"v": null,
"d": "Removed along EIP-1283"
},
"netSstoreClearRefund": {
"v": null,
"d": "Removed along EIP-1283"
},
"netSstoreResetRefund": {
"v": null,
"d": "Removed along EIP-1283"
},
"netSstoreResetClearRefund": {
"v": null,
"d": "Removed along EIP-1283"
}
},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
}
@@ -0,0 +1,24 @@
{
"name": "spuriousDragon",
"comment": "HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-607",
"status": "Final"
},
"gasConfig": {},
"gasPrices": {
"expByte": {
"v": 50,
"d": "Times ceil(log256(exponent)) for the EXP instruction"
}
},
"vm": {
"maxCodeSize": {
"v": 24576,
"d": "Maximum length of contract code"
}
},
"pow": {},
"casper": {},
"sharding": {}
}
@@ -0,0 +1,23 @@
{
"name": "tangerineWhistle",
"comment": "Hardfork with gas cost changes for IO-heavy operations",
"eip": {
"url": "https://eips.ethereum.org/EIPS/eip-608",
"status": "Final"
},
"gasConfig": {},
"gasPrices": {
"sload": {
"v": 200,
"d": "Once per SLOAD operation"
},
"call": {
"v": 700,
"d": "Once per CALL operation & message call transaction"
}
},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
}
+406
View File
@@ -0,0 +1,406 @@
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
var chains_1 = require("./chains");
var hardforks_1 = require("./hardforks");
/**
* Common class to access chain and hardfork parameters
*/
var Common = /** @class */ (function () {
/**
* @constructor
* @param chain String ('mainnet') or Number (1) chain
* @param hardfork String identifier ('byzantium') for hardfork (optional)
* @param supportedHardforks Limit parameter returns to the given hardforks (optional)
*/
function Common(chain, hardfork, supportedHardforks) {
this._chainParams = this.setChain(chain);
this._hardfork = null;
this._supportedHardforks = supportedHardforks === undefined ? [] : supportedHardforks;
if (hardfork) {
this.setHardfork(hardfork);
}
}
/**
* Creates a Common object for a custom chain, based on a standard one. It uses all the [[Chain]]
* params from [[baseChain]] except the ones overridden in [[customChainParams]].
*
* @param baseChain The name (`mainnet`) or id (`1`) of a standard chain used to base the custom
* chain params on.
* @param customChainParams The custom parameters of the chain.
* @param hardfork String identifier ('byzantium') for hardfork (optional)
* @param supportedHardforks Limit parameter returns to the given hardforks (optional)
*/
Common.forCustomChain = function (baseChain, customChainParams, hardfork, supportedHardforks) {
var standardChainParams = Common._getChainParams(baseChain);
return new Common(__assign(__assign({}, standardChainParams), customChainParams), hardfork, supportedHardforks);
};
Common._getChainParams = function (chain) {
if (typeof chain === 'number') {
if (chains_1.chains['names'][chain]) {
return chains_1.chains[chains_1.chains['names'][chain]];
}
throw new Error("Chain with ID " + chain + " not supported");
}
if (chains_1.chains[chain]) {
return chains_1.chains[chain];
}
throw new Error("Chain with name " + chain + " not supported");
};
/**
* Sets the chain
* @param chain String ('mainnet') or Number (1) chain
* representation. Or, a Dictionary of chain parameters for a private network.
* @returns The dictionary with parameters set as chain
*/
Common.prototype.setChain = function (chain) {
if (typeof chain === 'number' || typeof chain === 'string') {
this._chainParams = Common._getChainParams(chain);
}
else if (typeof chain === 'object') {
var required = ['networkId', 'genesis', 'hardforks', 'bootstrapNodes'];
for (var _i = 0, required_1 = required; _i < required_1.length; _i++) {
var param = required_1[_i];
if (chain[param] === undefined) {
throw new Error("Missing required chain parameter: " + param);
}
}
this._chainParams = chain;
}
else {
throw new Error('Wrong input format');
}
return this._chainParams;
};
/**
* Sets the hardfork to get params for
* @param hardfork String identifier ('byzantium')
*/
Common.prototype.setHardfork = function (hardfork) {
if (!this._isSupportedHardfork(hardfork)) {
throw new Error("Hardfork " + hardfork + " not set as supported in supportedHardforks");
}
var changed = false;
for (var _i = 0, hardforkChanges_1 = hardforks_1.hardforks; _i < hardforkChanges_1.length; _i++) {
var hfChanges = hardforkChanges_1[_i];
if (hfChanges[0] === hardfork) {
this._hardfork = hardfork;
changed = true;
}
}
if (!changed) {
throw new Error("Hardfork with name " + hardfork + " not supported");
}
};
/**
* Internal helper function to choose between hardfork set and hardfork provided as param
* @param hardfork Hardfork given to function as a parameter
* @returns Hardfork chosen to be used
*/
Common.prototype._chooseHardfork = function (hardfork, onlySupported) {
onlySupported = onlySupported === undefined ? true : onlySupported;
if (!hardfork) {
if (!this._hardfork) {
throw new Error('Method called with neither a hardfork set nor provided by param');
}
else {
hardfork = this._hardfork;
}
}
else if (onlySupported && !this._isSupportedHardfork(hardfork)) {
throw new Error("Hardfork " + hardfork + " not set as supported in supportedHardforks");
}
return hardfork;
};
/**
* Internal helper function, returns the params for the given hardfork for the chain set
* @param hardfork Hardfork name
* @returns Dictionary with hardfork params
*/
Common.prototype._getHardfork = function (hardfork) {
var hfs = this.hardforks();
for (var _i = 0, hfs_1 = hfs; _i < hfs_1.length; _i++) {
var hf = hfs_1[_i];
if (hf['name'] === hardfork)
return hf;
}
throw new Error("Hardfork " + hardfork + " not defined for chain " + this.chainName());
};
/**
* Internal helper function to check if a hardfork is set to be supported by the library
* @param hardfork Hardfork name
* @returns True if hardfork is supported
*/
Common.prototype._isSupportedHardfork = function (hardfork) {
if (this._supportedHardforks.length > 0) {
for (var _i = 0, _a = this._supportedHardforks; _i < _a.length; _i++) {
var supportedHf = _a[_i];
if (hardfork === supportedHf)
return true;
}
}
else {
return true;
}
return false;
};
/**
* Returns the parameter corresponding to a hardfork
* @param topic Parameter topic ('gasConfig', 'gasPrices', 'vm', 'pow', 'casper', 'sharding')
* @param name Parameter name (e.g. 'minGasLimit' for 'gasConfig' topic)
* @param hardfork Hardfork name, optional if hardfork set
*/
Common.prototype.param = function (topic, name, hardfork) {
hardfork = this._chooseHardfork(hardfork);
var value;
for (var _i = 0, hardforkChanges_2 = hardforks_1.hardforks; _i < hardforkChanges_2.length; _i++) {
var hfChanges = hardforkChanges_2[_i];
if (!hfChanges[1][topic]) {
throw new Error("Topic " + topic + " not defined");
}
if (hfChanges[1][topic][name] !== undefined) {
value = hfChanges[1][topic][name].v;
}
if (hfChanges[0] === hardfork)
break;
}
if (value === undefined) {
throw new Error(topic + " value for " + name + " not found");
}
return value;
};
/**
* Returns a parameter for the hardfork active on block number
* @param topic Parameter topic
* @param name Parameter name
* @param blockNumber Block number
*/
Common.prototype.paramByBlock = function (topic, name, blockNumber) {
var activeHfs = this.activeHardforks(blockNumber);
var hardfork = activeHfs[activeHfs.length - 1]['name'];
return this.param(topic, name, hardfork);
};
/**
* Checks if set or provided hardfork is active on block number
* @param hardfork Hardfork name or null (for HF set)
* @param blockNumber
* @param opts Hardfork options (onlyActive unused)
* @returns True if HF is active on block number
*/
Common.prototype.hardforkIsActiveOnBlock = function (hardfork, blockNumber, opts) {
opts = opts !== undefined ? opts : {};
var onlySupported = opts.onlySupported === undefined ? false : opts.onlySupported;
hardfork = this._chooseHardfork(hardfork, onlySupported);
var hfBlock = this.hardforkBlock(hardfork);
if (hfBlock !== null && blockNumber >= hfBlock)
return true;
return false;
};
/**
* Alias to hardforkIsActiveOnBlock when hardfork is set
* @param blockNumber
* @param opts Hardfork options (onlyActive unused)
* @returns True if HF is active on block number
*/
Common.prototype.activeOnBlock = function (blockNumber, opts) {
return this.hardforkIsActiveOnBlock(null, blockNumber, opts);
};
/**
* Sequence based check if given or set HF1 is greater than or equal HF2
* @param hardfork1 Hardfork name or null (if set)
* @param hardfork2 Hardfork name
* @param opts Hardfork options
* @returns True if HF1 gte HF2
*/
Common.prototype.hardforkGteHardfork = function (hardfork1, hardfork2, opts) {
opts = opts !== undefined ? opts : {};
var onlyActive = opts.onlyActive === undefined ? false : opts.onlyActive;
hardfork1 = this._chooseHardfork(hardfork1, opts.onlySupported);
var hardforks;
if (onlyActive) {
hardforks = this.activeHardforks(null, opts);
}
else {
hardforks = this.hardforks();
}
var posHf1 = -1, posHf2 = -1;
var index = 0;
for (var _i = 0, hardforks_2 = hardforks; _i < hardforks_2.length; _i++) {
var hf = hardforks_2[_i];
if (hf['name'] === hardfork1)
posHf1 = index;
if (hf['name'] === hardfork2)
posHf2 = index;
index += 1;
}
return posHf1 >= posHf2;
};
/**
* Alias to hardforkGteHardfork when hardfork is set
* @param hardfork Hardfork name
* @param opts Hardfork options
* @returns True if hardfork set is greater than hardfork provided
*/
Common.prototype.gteHardfork = function (hardfork, opts) {
return this.hardforkGteHardfork(null, hardfork, opts);
};
/**
* Checks if given or set hardfork is active on the chain
* @param hardfork Hardfork name, optional if HF set
* @param opts Hardfork options (onlyActive unused)
* @returns True if hardfork is active on the chain
*/
Common.prototype.hardforkIsActiveOnChain = function (hardfork, opts) {
opts = opts !== undefined ? opts : {};
var onlySupported = opts.onlySupported === undefined ? false : opts.onlySupported;
hardfork = this._chooseHardfork(hardfork, onlySupported);
for (var _i = 0, _a = this.hardforks(); _i < _a.length; _i++) {
var hf = _a[_i];
if (hf['name'] === hardfork && hf['block'] !== null)
return true;
}
return false;
};
/**
* Returns the active hardfork switches for the current chain
* @param blockNumber up to block if provided, otherwise for the whole chain
* @param opts Hardfork options (onlyActive unused)
* @return Array with hardfork arrays
*/
Common.prototype.activeHardforks = function (blockNumber, opts) {
opts = opts !== undefined ? opts : {};
var activeHardforks = [];
var hfs = this.hardforks();
for (var _i = 0, hfs_2 = hfs; _i < hfs_2.length; _i++) {
var hf = hfs_2[_i];
if (hf['block'] === null)
continue;
if (blockNumber !== undefined && blockNumber !== null && blockNumber < hf['block'])
break;
if (opts.onlySupported && !this._isSupportedHardfork(hf['name']))
continue;
activeHardforks.push(hf);
}
return activeHardforks;
};
/**
* Returns the latest active hardfork name for chain or block or throws if unavailable
* @param blockNumber up to block if provided, otherwise for the whole chain
* @param opts Hardfork options (onlyActive unused)
* @return Hardfork name
*/
Common.prototype.activeHardfork = function (blockNumber, opts) {
opts = opts !== undefined ? opts : {};
var activeHardforks = this.activeHardforks(blockNumber, opts);
if (activeHardforks.length > 0) {
return activeHardforks[activeHardforks.length - 1]['name'];
}
else {
throw new Error("No (supported) active hardfork found");
}
};
/**
* Returns the hardfork change block for hardfork provided or set
* @param hardfork Hardfork name, optional if HF set
* @returns Block number
*/
Common.prototype.hardforkBlock = function (hardfork) {
hardfork = this._chooseHardfork(hardfork, false);
return this._getHardfork(hardfork)['block'];
};
/**
* True if block number provided is the hardfork (given or set) change block of the current chain
* @param blockNumber Number of the block to check
* @param hardfork Hardfork name, optional if HF set
* @returns True if blockNumber is HF block
*/
Common.prototype.isHardforkBlock = function (blockNumber, hardfork) {
hardfork = this._chooseHardfork(hardfork, false);
if (this.hardforkBlock(hardfork) === blockNumber) {
return true;
}
else {
return false;
}
};
/**
* Provide the consensus type for the hardfork set or provided as param
* @param hardfork Hardfork name, optional if hardfork set
* @returns Consensus type (e.g. 'pow', 'poa')
*/
Common.prototype.consensus = function (hardfork) {
hardfork = this._chooseHardfork(hardfork);
return this._getHardfork(hardfork)['consensus'];
};
/**
* Provide the finality type for the hardfork set or provided as param
* @param {String} hardfork Hardfork name, optional if hardfork set
* @returns {String} Finality type (e.g. 'pos', null of no finality)
*/
Common.prototype.finality = function (hardfork) {
hardfork = this._chooseHardfork(hardfork);
return this._getHardfork(hardfork)['finality'];
};
/**
* Returns the Genesis parameters of current chain
* @returns Genesis dictionary
*/
Common.prototype.genesis = function () {
return this._chainParams['genesis'];
};
/**
* Returns the hardforks for current chain
* @returns {Array} Array with arrays of hardforks
*/
Common.prototype.hardforks = function () {
return this._chainParams['hardforks'];
};
/**
* Returns bootstrap nodes for the current chain
* @returns {Dictionary} Dict with bootstrap nodes
*/
Common.prototype.bootstrapNodes = function () {
return this._chainParams['bootstrapNodes'];
};
/**
* Returns the hardfork set
* @returns Hardfork name
*/
Common.prototype.hardfork = function () {
return this._hardfork;
};
/**
* Returns the Id of current chain
* @returns chain Id
*/
Common.prototype.chainId = function () {
return this._chainParams['chainId'];
};
/**
* Returns the name of current chain
* @returns chain name (lower case)
*/
Common.prototype.chainName = function () {
return chains_1.chains['names'][this.chainId()] || this._chainParams['name'];
};
/**
* Returns the Id of current network
* @returns network Id
*/
Common.prototype.networkId = function () {
return this._chainParams['networkId'];
};
return Common;
}());
exports.default = Common;
//# sourceMappingURL=index.js.map
+3
View File
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=types.js.map
+75
View File
@@ -0,0 +1,75 @@
{
"name": "ethereumjs-common",
"version": "1.5.2",
"description": "Resources common to all Ethereum implementations",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "ethereumjs-config-build",
"prepublishOnly": "npm run test && npm run build",
"coverage": "ethereumjs-config-coverage",
"coveralls": "ethereumjs-config-coveralls",
"format": "ethereumjs-config-format",
"format:fix": "ethereumjs-config-format-fix",
"tslint": "ethereumjs-config-tslint",
"tslint:fix": "ethereumjs-config-tslint-fix",
"tsc": "ethereumjs-config-tsc",
"lint": "ethereumjs-config-lint",
"lint:fix": "ethereumjs-config-lint-fix",
"unitTests": "ts-node ./node_modules/tape/bin/tape ./tests/*.ts",
"test": "npm run lint && npm run unitTests",
"test:fix": "npm run lint:fix && npm run unitTests",
"docs:build": "typedoc --options typedoc.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-common.git"
},
"keywords": [
"ethereum",
"ethereumjs",
"constants",
"parameters",
"genesis",
"networks",
"bootstrap"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-common/issues"
},
"homepage": "https://github.com/ethereumjs-ethereumjs/common",
"devDependencies": {
"@ethereumjs/config-nyc": "^1.1.0",
"@ethereumjs/config-prettier": "^1.1.0",
"@ethereumjs/config-tsc": "^1.1.0",
"@ethereumjs/config-tslint": "^1.1.0",
"@types/node": "^10.12.2",
"@types/tape": "^4.2.33",
"coveralls": "^3.0.1",
"nyc": "^11.7.1",
"prettier": "^1.15.3",
"tape": "^4.9.2",
"ts-node": "^7.0.1",
"tslint": "^5.12.0",
"typedoc": "next",
"typedoc-plugin-markdown": "^2.2.17",
"typescript": "^3.2.2",
"typestrict": "^1.0.2"
},
"maintainers": [
{
"name": "Holger Drewes",
"email": "Holger.Drewes@gmail.com"
}
],
"dependencies": {}
,"_resolved": "https://registry.npmjs.org/ethereumjs-common/-/ethereumjs-common-1.5.2.tgz"
,"_integrity": "sha512-hTfZjwGX52GS2jcVO6E2sx4YuFnf0Fhp5ylo4pEPhEffNln7vS59Hr5sLnp3/QCazFLluuBZ+FZ6J5HTp0EqCA=="
,"_from": "ethereumjs-common@^1.3.2"
}