Skip to content

Commit

Permalink
deprecate goerli
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Apr 11, 2024
1 parent 21d976a commit 5fbcb3d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 17 deletions.
4 changes: 0 additions & 4 deletions pkg/operator/config/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,16 +172,12 @@ func promptOperatorInfo(config *types.OperatorConfigNew, p utils.Prompter) (type
case "mainnet":
config.ChainId = *big.NewInt(utils.MainnetChainId)
config.ELDelegationManagerAddress = utils.ChainMetadataMap[utils.MainnetChainId].ELDelegationManagerAddress
case "goerli":
config.ChainId = *big.NewInt(utils.GoerliChainId)
config.ELDelegationManagerAddress = utils.ChainMetadataMap[utils.GoerliChainId].ELDelegationManagerAddress
case "holesky":
config.ChainId = *big.NewInt(utils.HoleskyChainId)
config.ELDelegationManagerAddress = utils.ChainMetadataMap[utils.HoleskyChainId].ELDelegationManagerAddress
case "local":
config.ChainId = *big.NewInt(utils.LocalChainId)
config.ELDelegationManagerAddress = utils.ChainMetadataMap[utils.LocalChainId].ELDelegationManagerAddress

}

config.SignerType = types.LocalKeystoreSigner
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/config/operator-config-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ signer_type: local_keystore
# Full path to local ecdsa private key store file
private_key_store_path: <path-to>/test.ecdsa.key.json

# Chain ID: 1 for mainnet, 5 for Goerli, 17000 for holesky, 31337 for local
# Chain ID: 1 for mainnet, 17000 for holesky, 31337 for local
chain_id: 5
6 changes: 0 additions & 6 deletions pkg/operator/register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ func TestGetTransactionLink(t *testing.T) {
txHash string
expectedTxLink string
}{
{
name: "Valid goerli tx hash",
chainID: big.NewInt(5),
txHash: "0x123",
expectedTxLink: fmt.Sprintf("%s/%s", "https://goerli.etherscan.io/tx", "0x123"),
},
{
name: "valid mainnet tx hash",
chainID: big.NewInt(1),
Expand Down
1 change: 0 additions & 1 deletion pkg/utils/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const (
EmojiInfo = "ℹ️"
EmojiWait = "⏳"

GoerliChainId = 5
MainnetChainId = 1
HoleskyChainId = 17000
LocalChainId = 31337
Expand Down
5 changes: 0 additions & 5 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ var ChainMetadataMap = map[int64]types.ChainMetadata{
ELDelegationManagerAddress: "0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A",
ELAVSDirectoryAddress: "0x135dda560e946695d6f155dacafc6f1f25c1f5af",
},
GoerliChainId: {
BlockExplorerUrl: "https://goerli.etherscan.io/tx",
ELDelegationManagerAddress: "0x1b7b8F6b258f95Cf9596EabB9aa18B62940Eb0a8",
ELAVSDirectoryAddress: "0x0AC9694c271eFbA6059e9783769e515E8731f935",
},
HoleskyChainId: {
BlockExplorerUrl: "https://holesky.etherscan.io/tx",
ELDelegationManagerAddress: "0xA44151489861Fe9e3055d95adC98FbD462B948e7",
Expand Down

0 comments on commit 5fbcb3d

Please sign in to comment.