Skip to content

Commit

Permalink
Merge pull request #762 from ethereumjs/common/remove-old-fields-pt2
Browse files Browse the repository at this point in the history
common: remove old fields `casper` and `sharding`
  • Loading branch information
holgerd77 authored Jun 4, 2020
2 parents 61c3dca + 11644b2 commit 6ac21f6
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 37 deletions.
2 changes: 0 additions & 2 deletions packages/common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ you can use the following `topics`:
- `gasPrices`
- `vm`
- `pow`
- `casper`
- `sharding`

See one of the hardfork files like `byzantium.json` in the `hardforks` directory
for an overview. For consistency, the chain start (`chainstart`) is considered an own
Expand Down
2 changes: 1 addition & 1 deletion packages/common/docs/classes/_index_.common.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ Returns the parameter corresponding to a hardfork

Name | Type | Description |
------ | ------ | ------ |
`topic` | string | Parameter topic ('gasConfig', 'gasPrices', 'vm', 'pow', 'casper', 'sharding') |
`topic` | string | Parameter topic ('gasConfig', 'gasPrices', 'vm', 'pow') |
`name` | string | Parameter name (e.g. 'minGasLimit' for 'gasConfig' topic) |
`hardfork?` | undefined | string | Hardfork name, optional if hardfork set |

Expand Down
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/berlin.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
"gasConfig": {},
"gasPrices": {},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/byzantium.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@
"v": "3000000000000000000",
"d": "the amount a miner get rewarded for mining a block"
}
},
"casper": {},
"sharding": {}
}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/chainstart.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,5 @@
"v": "5000000000000000000",
"d": "the amount a miner get rewarded for mining a block"
}
},
"casper": {},
"sharding": {}
}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/constantinople.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,5 @@
"v": "2000000000000000000",
"d": "The amount a miner gets rewarded for mining a block"
}
},
"casper": {},
"sharding": {}
}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/dao.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
"gasConfig": {},
"gasPrices": {},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/homestead.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
"gasConfig": {},
"gasPrices": {},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/istanbul.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,5 @@
}
},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/muirGlacier.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
"gasConfig": {},
"gasPrices": {},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/petersburg.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,5 @@
}
},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/spuriousDragon.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,5 @@
"d": "Maximum length of contract code"
}
},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
4 changes: 1 addition & 3 deletions packages/common/src/hardforks/tangerineWhistle.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,5 @@
}
},
"vm": {},
"pow": {},
"casper": {},
"sharding": {}
"pow": {}
}
2 changes: 1 addition & 1 deletion packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default class Common {

/**
* Returns the parameter corresponding to a hardfork
* @param topic Parameter topic ('gasConfig', 'gasPrices', 'vm', 'pow', 'casper', 'sharding')
* @param topic Parameter topic ('gasConfig', 'gasPrices', 'vm', 'pow')
* @param name Parameter name (e.g. 'minGasLimit' for 'gasConfig' topic)
* @param hardfork Hardfork name, optional if hardfork set
*/
Expand Down

0 comments on commit 6ac21f6

Please sign in to comment.