-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert multi-fork for etherman and remove wrappers for contracts
- Loading branch information
1 parent
187efc6
commit 9925aa8
Showing
26 changed files
with
271 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package config | ||
|
||
import ( | ||
"github.com/0xPolygonHermez/zkevm-ethtx-manager/etherman" | ||
"github.com/ethereum/go-ethereum/common" | ||
) | ||
|
||
// Config represents the configuration of the etherman | ||
type Config struct { | ||
// URL is the URL of the Ethereum node for L1 | ||
URL string `mapstructure:"URL"` | ||
|
||
EthermanConfig etherman.Config | ||
|
||
// ForkIDChunkSize is the max interval for each call to L1 provider to get the forkIDs | ||
ForkIDChunkSize uint64 `mapstructure:"ForkIDChunkSize"` | ||
} | ||
|
||
// L1Config represents the configuration of the network used in L1 | ||
type L1Config struct { | ||
// Chain ID of the L1 network | ||
L1ChainID uint64 `json:"chainId"` | ||
// ZkEVMAddr Address of the L1 contract polygonZkEVMAddress | ||
ZkEVMAddr common.Address `json:"polygonZkEVMAddress"` | ||
// RollupManagerAddr Address of the L1 contract | ||
RollupManagerAddr common.Address `json:"polygonRollupManagerAddress"` | ||
// PolAddr Address of the L1 Pol token Contract | ||
PolAddr common.Address `json:"polTokenAddress"` | ||
// GlobalExitRootManagerAddr Address of the L1 GlobalExitRootManager contract | ||
GlobalExitRootManagerAddr common.Address `json:"polygonZkEVMGlobalExitRootAddress"` | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.