Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L1-chain #13

Merged
merged 44 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
edf2af9
apply patch
dusannosovic-ethernal Nov 7, 2023
fe90985
Fix for unit tests
dusannosovic-ethernal Nov 8, 2023
5e73a5a
Merge branch 'develop' into l1-chain
Stefan-Ethernal Nov 8, 2023
6557a97
lint fix
dusannosovic-ethernal Nov 8, 2023
50a9701
lint fix
dusannosovic-ethernal Nov 8, 2023
216b016
contracts fix
dusannosovic-ethernal Nov 9, 2023
0337494
makefile fix
dusannosovic-ethernal Nov 9, 2023
3953944
build fix
dusannosovic-ethernal Nov 9, 2023
146ed7e
Merge remote-tracking branch 'origin/develop' into l1-chain
dusannosovic-ethernal Nov 9, 2023
a1e4ae0
fix some imports
dusannosovic-ethernal Nov 9, 2023
2f5afee
Lint fix
Stefan-Ethernal Nov 10, 2023
d4cadd6
comment fixs
dusannosovic-ethernal Nov 10, 2023
10c9d94
fix imports
dusannosovic-ethernal Nov 10, 2023
24c62cd
Update command/genesis/genesis.go
dusannosovic-ethernal Nov 10, 2023
6a6ff8f
Update command/genesis/params.go
dusannosovic-ethernal Nov 10, 2023
2bf24ea
fix comments
dusannosovic-ethernal Nov 13, 2023
a985763
Linter fixes
Stefan-Ethernal Nov 21, 2023
6b6d3c3
deleted supernet package
dusannosovic-ethernal Nov 21, 2023
942d113
stake fix
goran-ethernal Nov 21, 2023
d14ba8e
stake fix 2
goran-ethernal Nov 21, 2023
02c3d80
comments fix
dusannosovic-ethernal Nov 21, 2023
6e93e25
Use new version of contracts
goran-ethernal Nov 24, 2023
4ad391b
Remove RewardPool address and rename ValidatorSet address to EpochMan…
goran-ethernal Nov 24, 2023
99d9895
Remove burn contract flag
goran-ethernal Nov 24, 2023
4b480b4
Remove non-mintable configuration in genesis
goran-ethernal Nov 24, 2023
fee96c0
Lint fixes
Stefan-Ethernal Nov 27, 2023
f2a7d87
Minor rename
Stefan-Ethernal Nov 27, 2023
66b6aac
Update e2e-polybft/e2e/consensus_test.go
dusannosovic-ethernal Nov 28, 2023
7b67f7f
Fix comment
Stefan-Ethernal Nov 28, 2023
6b95bb1
bridge commands relocation (#19)
dusannosovic-ethernal Nov 28, 2023
013b5f2
Remove IsMintable native token flag (#22)
Stefan-Ethernal Nov 28, 2023
daa678a
UT fix (#25)
goran-ethernal Nov 28, 2023
c6ae2d7
Add default premine for validators (#26)
goran-ethernal Nov 28, 2023
c702e13
Fix consensus `e2e` tests (#28)
goran-ethernal Nov 29, 2023
65cbf8f
Small fixes for e2e tests
goran-ethernal Nov 29, 2023
b6910d8
Move and modify `ChangeVotingPower` `e2e` test (#34)
goran-ethernal Nov 30, 2023
a1be56a
Fix bridge e2e tests (#33)
Stefan-Ethernal Dec 1, 2023
fa34b49
Fix local deployment scripts (#40)
goran-ethernal Dec 4, 2023
159ef96
test fix
goran-ethernal Dec 4, 2023
b1e5567
Remove unnecessary forks (#42)
goran-ethernal Dec 4, 2023
125e425
Remove leftover
Stefan-Ethernal Dec 4, 2023
b51aa9a
Use in-house built event tracker (#41)
goran-ethernal Dec 5, 2023
88b480f
Merge branch 'develop' into l1-chain
Stefan-Ethernal Dec 6, 2023
5c5d529
baseFeeConfig as condition for london fork (#43)
dusannosovic-ethernal Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
path = tests/tests
url = https://github.com/ethereum/tests.git
shallow = true
[submodule "core-contracts"]
path = core-contracts
url = https://github.com/0xPolygon/core-contracts
[submodule "blade-contracts"]
path = blade-contracts
url = https://github.com/Ethernal-Tech/blade-contracts
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ test-property-polybft: check-go
env EDGE_BINARY=${PWD}/artifacts/blade E2E_TESTS=true E2E_LOGS=true go test -v -timeout=30m ./e2e-polybft/property/... \
-rapid.checks=10

.PHONY: compile-core-contracts
compile-core-contracts: check-npm
cd core-contracts && npm install && npm run compile
.PHONY: compile-blade-contracts
compile-blade-contracts: check-npm
cd blade-contracts && npm install && npm run compile
$(MAKE) generate-smart-contract-bindings

.PHONY: generate-smart-contract-bindings
Expand Down Expand Up @@ -117,7 +117,7 @@ help:
@printf " %-35s - %s\n" "test-e2e" "Run end-to-end tests"
@printf " %-35s - %s\n" "test-e2e-polybft" "Run end-to-end tests for PolyBFT"
@printf " %-35s - %s\n" "test-property-polybft" "Run property tests for PolyBFT"
@printf " %-35s - %s\n" "compile-core-contracts" "Compile core contracts"
@printf " %-35s - %s\n" "compile-blade-contracts" "Compile blade contracts"
@printf " %-35s - %s\n" "generate-smart-contract-bindings" "Generate smart contract bindings"
@printf " %-35s - %s\n" "run-docker" "Run Docker cluster for PolyBFT"
@printf " %-35s - %s\n" "stop-docker" "Stop Docker cluster for PolyBFT"
Expand Down
1 change: 1 addition & 0 deletions blade-contracts
Submodule blade-contracts added at de420a
68 changes: 28 additions & 40 deletions chain/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,15 @@ func (p *Params) GetEngine() string {

// predefined forks
const (
Homestead = "homestead"
Byzantium = "byzantium"
Constantinople = "constantinople"
Petersburg = "petersburg"
Istanbul = "istanbul"
London = "london"
EIP150 = "EIP150"
EIP158 = "EIP158"
EIP155 = "EIP155"
QuorumCalcAlignment = "quorumcalcalignment"
TxHashWithType = "txHashWithType"
LondonFix = "londonfix"
Homestead = "homestead"
Byzantium = "byzantium"
Constantinople = "constantinople"
Petersburg = "petersburg"
Istanbul = "istanbul"
London = "london"
EIP150 = "EIP150"
EIP158 = "EIP158"
EIP155 = "EIP155"
)

// Forks is map which contains all forks and their starting blocks from genesis
Expand All @@ -116,18 +113,15 @@ func (f *Forks) RemoveFork(name string) *Forks {
// At returns ForksInTime instance that shows which supported forks are enabled for the block
func (f *Forks) At(block uint64) ForksInTime {
return ForksInTime{
Homestead: f.IsActive(Homestead, block),
Byzantium: f.IsActive(Byzantium, block),
Constantinople: f.IsActive(Constantinople, block),
Petersburg: f.IsActive(Petersburg, block),
Istanbul: f.IsActive(Istanbul, block),
London: f.IsActive(London, block),
EIP150: f.IsActive(EIP150, block),
EIP158: f.IsActive(EIP158, block),
EIP155: f.IsActive(EIP155, block),
QuorumCalcAlignment: f.IsActive(QuorumCalcAlignment, block),
TxHashWithType: f.IsActive(TxHashWithType, block),
LondonFix: f.IsActive(LondonFix, block),
Homestead: f.IsActive(Homestead, block),
Byzantium: f.IsActive(Byzantium, block),
Constantinople: f.IsActive(Constantinople, block),
Petersburg: f.IsActive(Petersburg, block),
Istanbul: f.IsActive(Istanbul, block),
London: f.IsActive(London, block),
EIP150: f.IsActive(EIP150, block),
EIP158: f.IsActive(EIP158, block),
EIP155: f.IsActive(EIP155, block),
}
}

Expand Down Expand Up @@ -177,24 +171,18 @@ type ForksInTime struct {
London,
EIP150,
EIP158,
EIP155,
QuorumCalcAlignment,
TxHashWithType,
LondonFix bool
EIP155 bool
}

// AllForksEnabled should contain all supported forks by current edge version
var AllForksEnabled = &Forks{
Homestead: NewFork(0),
EIP150: NewFork(0),
EIP155: NewFork(0),
EIP158: NewFork(0),
Byzantium: NewFork(0),
Constantinople: NewFork(0),
Petersburg: NewFork(0),
Istanbul: NewFork(0),
London: NewFork(0),
QuorumCalcAlignment: NewFork(0),
TxHashWithType: NewFork(0),
LondonFix: NewFork(0),
Homestead: NewFork(0),
EIP150: NewFork(0),
EIP155: NewFork(0),
EIP158: NewFork(0),
Byzantium: NewFork(0),
Constantinople: NewFork(0),
Petersburg: NewFork(0),
Istanbul: NewFork(0),
London: NewFork(0),
}
12 changes: 9 additions & 3 deletions command/bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ package bridge
import (
"github.com/spf13/cobra"

deploy "github.com/0xPolygon/polygon-edge/command/bridge/deploy"
depositERC1155 "github.com/0xPolygon/polygon-edge/command/bridge/deposit/erc1155"
depositERC20 "github.com/0xPolygon/polygon-edge/command/bridge/deposit/erc20"
depositERC721 "github.com/0xPolygon/polygon-edge/command/bridge/deposit/erc721"
"github.com/0xPolygon/polygon-edge/command/bridge/exit"
"github.com/0xPolygon/polygon-edge/command/bridge/mint"
"github.com/0xPolygon/polygon-edge/command/bridge/fund"
"github.com/0xPolygon/polygon-edge/command/bridge/server"
withdrawERC1155 "github.com/0xPolygon/polygon-edge/command/bridge/withdraw/erc1155"
withdrawERC20 "github.com/0xPolygon/polygon-edge/command/bridge/withdraw/erc20"
withdrawERC721 "github.com/0xPolygon/polygon-edge/command/bridge/withdraw/erc721"
Expand Down Expand Up @@ -41,7 +43,11 @@ func registerSubcommands(baseCmd *cobra.Command) {
withdrawERC1155.GetCommand(),
// bridge exit
exit.GetCommand(),
// bridge mint erc-20
mint.GetCommand(),
// bridge deploy
deploy.GetCommand(),
// bridge server
server.GetCommand(),
// bridge fund
fund.GetCommand(),
)
}
Loading