Skip to content

Commit ca97d35

Browse files
authored
remove DeployProxy (#18122)
* remove DeployProxy * fixes
1 parent 7bba2b0 commit ca97d35

File tree

12 files changed

+0
-549
lines changed

12 files changed

+0
-549
lines changed

op-deployer/pkg/deployer/bootstrap/flags.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,6 @@ var Commands = []*cli.Command{
230230
Flags: cliapp.ProtectFlags(ImplementationsFlags),
231231
Action: ImplementationsCLI,
232232
},
233-
{
234-
Name: "proxy",
235-
Usage: "Bootstrap a ERC-1967 Proxy without an implementation set.",
236-
Flags: cliapp.ProtectFlags(ProxyFlags),
237-
Action: ProxyCLI,
238-
},
239233
{
240234
Name: "superchain",
241235
Usage: "Bootstrap the Superchain configuration",

op-deployer/pkg/deployer/bootstrap/proxy.go

Lines changed: 0 additions & 179 deletions
This file was deleted.

op-deployer/pkg/deployer/integration_test/cli/bootstrap_test.go

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -200,44 +200,4 @@ func TestCLIBootstrap(t *testing.T) {
200200
require.NotEqual(t, common.Address{}, implsOutput.SuperchainConfigImpl, "SuperchainConfigImpl should be set")
201201
require.NotEqual(t, common.Address{}, implsOutput.ProtocolVersionsImpl, "ProtocolVersionsImpl should be set")
202202
})
203-
204-
t.Run("bootstrap proxy", func(t *testing.T) {
205-
runner := NewCLITestRunnerWithNetwork(t)
206-
workDir := runner.GetWorkDir()
207-
208-
proxyOutputFile := filepath.Join(workDir, "bootstrap_proxy.json")
209-
210-
// Run bootstrap proxy command
211-
output := runner.ExpectSuccessWithNetwork(t, []string{
212-
"bootstrap", "proxy",
213-
"--proxy-owner", superchainProxyAdminOwner.Hex(),
214-
"--outfile", proxyOutputFile,
215-
}, nil)
216-
217-
t.Logf("Bootstrap proxy output:\n%s", output)
218-
219-
// Verify output file was created
220-
require.FileExists(t, proxyOutputFile)
221-
222-
// Parse and validate the output
223-
var proxyOutput opcm.DeployProxyOutput
224-
data, err := os.ReadFile(proxyOutputFile)
225-
require.NoError(t, err)
226-
err = json.Unmarshal(data, &proxyOutput)
227-
require.NoError(t, err)
228-
require.NoError(t, addresses.CheckNoZeroAddresses(proxyOutput))
229-
})
230-
231-
t.Run("bootstrap with stdout output", func(t *testing.T) {
232-
runner := NewCLITestRunnerWithNetwork(t)
233-
234-
// Test that stdout output works (no --outfile flag)
235-
output := runner.ExpectSuccessWithNetwork(t, []string{
236-
"bootstrap", "proxy",
237-
"--proxy-owner", superchainProxyAdminOwner.Hex(),
238-
"--outfile", "-", // stdout
239-
}, nil)
240-
241-
t.Logf("Bootstrap proxy (stdout) output:\n%s", output)
242-
})
243203
}

op-deployer/pkg/deployer/opcm/proxy.go

Lines changed: 0 additions & 26 deletions
This file was deleted.

op-deployer/pkg/deployer/opcm/proxy2.go

Lines changed: 0 additions & 21 deletions
This file was deleted.

op-deployer/pkg/deployer/opcm/proxy2_test.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

op-deployer/pkg/deployer/opcm/proxy_test.go

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)