Skip to content
Merged
Changes from all commits
Commits
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
16 changes: 5 additions & 11 deletions e2e/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,22 +573,16 @@ func newDrainRelayerMonitorCmd(defCfg *app.DefinitionConfig) *cobra.Command {

cmd := &cobra.Command{
Use: "drain-relayer-monitor",
Short: "Transfers relayer and monitor ETH balances to ops wallet on all chains",
Short: "Transfers relayer and monitor ETH balances to ops wallet on hyper_evm and mantle",
RunE: func(cmd *cobra.Command, _ []string) error {
ctx := cmd.Context()

manifest, err := app.LoadManifest(defCfg.ManifestFile)
if err != nil {
return errors.Wrap(err, "load manifest")
}

networkID := manifest.Network
// All other chains have been drained, this is cleanup.
chainNames := []string{"hyper_evm", "mantle"}

// Build network and endpoints.
// Partial & inline, because old utils rely on halted infra.
endpoints := make(xchain.RPCEndpoints)
var chains []netconf.Chain
for _, name := range manifest.PublicChains {
for _, name := range chainNames {
if rpc, ok := defCfg.RPCOverrides[name]; ok {
endpoints[name] = rpc
} else {
Expand All @@ -608,7 +602,7 @@ func newDrainRelayerMonitorCmd(defCfg *app.DefinitionConfig) *cobra.Command {
}

network := netconf.Network{
ID: networkID,
ID: netconf.Mainnet,
Chains: chains,
}

Expand Down
Loading