Skip to content

Commit

Permalink
Remove legacy contract deployment whitelisting mechanism (#1556)
Browse files Browse the repository at this point in the history
* Remove legacy contract deployment whitelisting mechanism

* Lint fix

* Rename unit test

* Additional EIP-1559 transaction unit tests
  • Loading branch information
Stefan-Ethernal committed May 29, 2023
1 parent 363931b commit 6ff53be
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 566 deletions.
6 changes: 0 additions & 6 deletions chain/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type Params struct {
Forks *Forks `json:"forks"`
ChainID int64 `json:"chainID"`
Engine map[string]interface{} `json:"engine"`
Whitelists *Whitelists `json:"whitelists,omitempty"`
BlockGasTarget uint64 `json:"blockGasTarget"`

// Access control configuration
Expand Down Expand Up @@ -75,11 +74,6 @@ func (p *Params) GetEngine() string {
return ""
}

// Whitelists specifies supported whitelists
type Whitelists struct {
Deployment []types.Address `json:"deployment,omitempty"`
}

// Forks specifies when each fork is activated
type Forks struct {
Homestead *Fork `json:"homestead,omitempty"`
Expand Down
2 changes: 0 additions & 2 deletions command/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/0xPolygon/polygon-edge/command/status"
"github.com/0xPolygon/polygon-edge/command/txpool"
"github.com/0xPolygon/polygon-edge/command/version"
"github.com/0xPolygon/polygon-edge/command/whitelist"
)

type RootCommand struct {
Expand Down Expand Up @@ -57,7 +56,6 @@ func (rc *RootCommand) registerSubCommands() {
backup.GetCommand(),
genesis.GetCommand(),
server.GetCommand(),
whitelist.GetCommand(),
license.GetCommand(),
polybftsecrets.GetCommand(),
polybft.GetCommand(),
Expand Down
66 changes: 0 additions & 66 deletions command/whitelist/deployment/deployment.go

This file was deleted.

162 changes: 0 additions & 162 deletions command/whitelist/deployment/params.go

This file was deleted.

32 changes: 0 additions & 32 deletions command/whitelist/deployment/result.go

This file was deleted.

72 changes: 0 additions & 72 deletions command/whitelist/show/params.go

This file was deleted.

20 changes: 0 additions & 20 deletions command/whitelist/show/result.go

This file was deleted.

Loading

0 comments on commit 6ff53be

Please sign in to comment.