Skip to content

Commit 9203918

Browse files
jochem-brouwerholgerd77
authored andcommitted
common: add YoloV3 network
1 parent a5f214f commit 9203918

File tree

4 files changed

+363
-0
lines changed

4 files changed

+363
-0
lines changed

packages/common/src/chains/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import ropsten from './ropsten.json'
44
import rinkeby from './rinkeby.json'
55
import kovan from './kovan.json'
66
import goerli from './goerli.json'
7+
import yolov3 from './yolov3.json'
78

89
/**
910
* @hidden
@@ -15,13 +16,15 @@ export function _getInitializedChains(customChains?: Chain[]) {
1516
'4': 'rinkeby',
1617
'42': 'kovan',
1718
'5': 'goerli',
19+
'34180983699157880': 'yolov3',
1820
}
1921
const chains: any = {
2022
mainnet,
2123
ropsten,
2224
rinkeby,
2325
kovan,
2426
goerli,
27+
yolov3,
2528
}
2629
if (customChains) {
2730
for (const chain of customChains) {
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"name": "yolov3",
3+
"chainId": 34180983699157880,
4+
"networkId": 34180983699157880,
5+
"defaultHardfork": "berlin",
6+
"consensus": {
7+
"type": "poa",
8+
"algorithm": "clique",
9+
"clique": {
10+
"period": 15,
11+
"epoch": 30000
12+
}
13+
},
14+
"comment": "The YoloV3 chain",
15+
"url": "https://yolov3.ethdevops.io",
16+
"genesis": {
17+
"hash": "0xf1f2876e8500c77afcc03228757b39477eceffccf645b734967fe3c7e16967b7",
18+
"nonce": "0x0000000000000000",
19+
"timestamp": "0x6027dd2e",
20+
"extraData": "0x00000000000000000000000000000000000000000000000000000000000000001041afbcb359d5a8dc58c15b2ff51354ff8a217d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
21+
"gasLimit": "0x47b760",
22+
"difficulty": "0x1",
23+
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
24+
"coinbase": "0x0000000000000000000000000000000000000000",
25+
"stateRoot": "0x18fe5753b162ee86c08809d8cfde565e2ca40c869c5f34b19f9e4478759e35e3",
26+
"number": "0x0",
27+
"gasUsed": "0x0",
28+
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
29+
},
30+
"hardforks": [
31+
{
32+
"name": "chainstart",
33+
"block": 0,
34+
"forkHash": "0xfc64ec04"
35+
},
36+
{
37+
"name": "homestead",
38+
"block": 0,
39+
"forkHash": "0x97c2c34c"
40+
},
41+
{
42+
"name": "tangerineWhistle",
43+
"block": 0,
44+
"forkHash": "0x7a64da13"
45+
},
46+
{
47+
"name": "spuriousDragon",
48+
"block": 0,
49+
"forkHash": "0x3edd5b10"
50+
},
51+
{
52+
"name": "byzantium",
53+
"block": 0,
54+
"forkHash": "0xa00bc324"
55+
},
56+
{
57+
"name": "constantinople",
58+
"block": 0,
59+
"forkHash": "0x668db0af"
60+
},
61+
{
62+
"name": "petersburg",
63+
"block": 0,
64+
"forkHash": "0x668db0af"
65+
},
66+
{
67+
"name": "istanbul",
68+
"block": 0,
69+
"forkHash": "0x879d6e30"
70+
},
71+
{
72+
"name": "muirGlacier",
73+
"block": 0,
74+
"forkHash": "0xe029e991"
75+
},
76+
{
77+
"name": "berlin",
78+
"block": 0,
79+
"forkHash": "0x00000000"
80+
}
81+
],
82+
"bootstrapNodes": [
83+
{
84+
"ip": "3.9.20.133",
85+
"port": 30303,
86+
"id": "9e1096aa59862a6f164994cb5cb16f5124d6c992cdbf4535ff7dea43ea1512afe5448dca9df1b7ab0726129603f1a3336b631e4d7a1a44c94daddd03241587f9",
87+
"location": "unknown",
88+
"comment": "yolov3 bootnode"
89+
}
90+
]
91+
}

packages/common/src/genesisStates/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ const genesisStates: genesisStatesType = {
77
'4': 'rinkeby',
88
'42': 'kovan',
99
'5': 'goerli',
10+
'34180983699157880': 'yolov3',
1011
},
1112
mainnet: require('./mainnet.json'),
1213
ropsten: require('./ropsten.json'),
1314
rinkeby: require('./rinkeby.json'),
1415
kovan: require('./kovan.json'),
1516
goerli: require('./goerli.json'),
17+
yolov3: require('./yolov3.json'),
1618
}
1719

1820
/**

0 commit comments

Comments
 (0)