From 46930eab5b3477dc1f0888bbafd329004bff9e41 Mon Sep 17 00:00:00 2001 From: protolambda Date: Wed, 14 Aug 2024 16:33:40 -0600 Subject: [PATCH] op-chain-ops/script: ConsolePrecompile with console2 ABI (#11446) v2 --- op-chain-ops/script/console.go | 22 + op-chain-ops/script/console2.txt | 376 ++++++ op-chain-ops/script/console2_gen.go | 1514 ++++++++++++++++++++++++ op-chain-ops/script/console_test.go | 56 + op-chain-ops/script/consolegen/main.go | 129 ++ op-chain-ops/script/precompile.go | 15 +- op-chain-ops/script/precompile_test.go | 14 +- 7 files changed, 2116 insertions(+), 10 deletions(-) create mode 100644 op-chain-ops/script/console.go create mode 100644 op-chain-ops/script/console2.txt create mode 100644 op-chain-ops/script/console2_gen.go create mode 100644 op-chain-ops/script/console_test.go create mode 100644 op-chain-ops/script/consolegen/main.go diff --git a/op-chain-ops/script/console.go b/op-chain-ops/script/console.go new file mode 100644 index 000000000000..2f5cd8c4b5be --- /dev/null +++ b/op-chain-ops/script/console.go @@ -0,0 +1,22 @@ +package script + +import ( + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/log" +) + +type ConsolePrecompile struct { + logger log.Logger + sender common.Address +} + +func (c *ConsolePrecompile) log(ctx ...any) { + // frame := c.h.CurrentCall() + // sender := frame.Sender + sender := c.sender + + // Log the sender, since the self-address is always equal to the ConsoleAddr + c.logger.With("sender", sender).Info("console", ctx...) +} + +//go:generate go run ./consolegen --abi-txt=console2.txt --out=console2_gen.go diff --git a/op-chain-ops/script/console2.txt b/op-chain-ops/script/console2.txt new file mode 100644 index 000000000000..9858d56faf3b --- /dev/null +++ b/op-chain-ops/script/console2.txt @@ -0,0 +1,376 @@ +log() +log(address,address,address,address) +log(address,address,address,bool) +log(address,address,address) +log(address,address,address,string) +log(address,address,address,uint256) +log(address,address,bool,address) +log(address,address,bool,bool) +log(address,address,bool) +log(address,address,bool,string) +log(address,address,bool,uint256) +log(address,address) +log(address,address,string,address) +log(address,address,string,bool) +log(address,address,string) +log(address,address,string,string) +log(address,address,string,uint256) +log(address,address,uint256,address) +log(address,address,uint256,bool) +log(address,address,uint256) +log(address,address,uint256,string) +log(address,address,uint256,uint256) +log(address,bool,address,address) +log(address,bool,address,bool) +log(address,bool,address) +log(address,bool,address,string) +log(address,bool,address,uint256) +log(address,bool,bool,address) +log(address,bool,bool,bool) +log(address,bool,bool) +log(address,bool,bool,string) +log(address,bool,bool,uint256) +log(address,bool) +log(address,bool,string,address) +log(address,bool,string,bool) +log(address,bool,string) +log(address,bool,string,string) +log(address,bool,string,uint256) +log(address,bool,uint256,address) +log(address,bool,uint256,bool) +log(address,bool,uint256) +log(address,bool,uint256,string) +log(address,bool,uint256,uint256) +log(address) +log(address,string,address,address) +log(address,string,address,bool) +log(address,string,address) +log(address,string,address,string) +log(address,string,address,uint256) +log(address,string,bool,address) +log(address,string,bool,bool) +log(address,string,bool) +log(address,string,bool,string) +log(address,string,bool,uint256) +log(address,string) +log(address,string,string,address) +log(address,string,string,bool) +log(address,string,string) +log(address,string,string,string) +log(address,string,string,uint256) +log(address,string,uint256,address) +log(address,string,uint256,bool) +log(address,string,uint256) +log(address,string,uint256,string) +log(address,string,uint256,uint256) +log(address,uint256,address,address) +log(address,uint256,address,bool) +log(address,uint256,address) +log(address,uint256,address,string) +log(address,uint256,address,uint256) +log(address,uint256,bool,address) +log(address,uint256,bool,bool) +log(address,uint256,bool) +log(address,uint256,bool,string) +log(address,uint256,bool,uint256) +log(address,uint256) +log(address,uint256,string,address) +log(address,uint256,string,bool) +log(address,uint256,string) +log(address,uint256,string,string) +log(address,uint256,string,uint256) +log(address,uint256,uint256,address) +log(address,uint256,uint256,bool) +log(address,uint256,uint256) +log(address,uint256,uint256,string) +log(address,uint256,uint256,uint256) +log(bool,address,address,address) +log(bool,address,address,bool) +log(bool,address,address) +log(bool,address,address,string) +log(bool,address,address,uint256) +log(bool,address,bool,address) +log(bool,address,bool,bool) +log(bool,address,bool) +log(bool,address,bool,string) +log(bool,address,bool,uint256) +log(bool,address) +log(bool,address,string,address) +log(bool,address,string,bool) +log(bool,address,string) +log(bool,address,string,string) +log(bool,address,string,uint256) +log(bool,address,uint256,address) +log(bool,address,uint256,bool) +log(bool,address,uint256) +log(bool,address,uint256,string) +log(bool,address,uint256,uint256) +log(bool,bool,address,address) +log(bool,bool,address,bool) +log(bool,bool,address) +log(bool,bool,address,string) +log(bool,bool,address,uint256) +log(bool,bool,bool,address) +log(bool,bool,bool,bool) +log(bool,bool,bool) +log(bool,bool,bool,string) +log(bool,bool,bool,uint256) +log(bool,bool) +log(bool,bool,string,address) +log(bool,bool,string,bool) +log(bool,bool,string) +log(bool,bool,string,string) +log(bool,bool,string,uint256) +log(bool,bool,uint256,address) +log(bool,bool,uint256,bool) +log(bool,bool,uint256) +log(bool,bool,uint256,string) +log(bool,bool,uint256,uint256) +log(bool) +log(bool,string,address,address) +log(bool,string,address,bool) +log(bool,string,address) +log(bool,string,address,string) +log(bool,string,address,uint256) +log(bool,string,bool,address) +log(bool,string,bool,bool) +log(bool,string,bool) +log(bool,string,bool,string) +log(bool,string,bool,uint256) +log(bool,string) +log(bool,string,string,address) +log(bool,string,string,bool) +log(bool,string,string) +log(bool,string,string,string) +log(bool,string,string,uint256) +log(bool,string,uint256,address) +log(bool,string,uint256,bool) +log(bool,string,uint256) +log(bool,string,uint256,string) +log(bool,string,uint256,uint256) +log(bool,uint256,address,address) +log(bool,uint256,address,bool) +log(bool,uint256,address) +log(bool,uint256,address,string) +log(bool,uint256,address,uint256) +log(bool,uint256,bool,address) +log(bool,uint256,bool,bool) +log(bool,uint256,bool) +log(bool,uint256,bool,string) +log(bool,uint256,bool,uint256) +log(bool,uint256) +log(bool,uint256,string,address) +log(bool,uint256,string,bool) +log(bool,uint256,string) +log(bool,uint256,string,string) +log(bool,uint256,string,uint256) +log(bool,uint256,uint256,address) +log(bool,uint256,uint256,bool) +log(bool,uint256,uint256) +log(bool,uint256,uint256,string) +log(bool,uint256,uint256,uint256) +log(bytes10) +log(bytes11) +log(bytes12) +log(bytes13) +log(bytes14) +log(bytes15) +log(bytes16) +log(bytes17) +log(bytes18) +log(bytes19) +log(bytes1) +log(bytes20) +log(bytes21) +log(bytes22) +log(bytes23) +log(bytes24) +log(bytes25) +log(bytes26) +log(bytes27) +log(bytes28) +log(bytes29) +log(bytes2) +log(bytes30) +log(bytes31) +log(bytes32) +log(bytes3) +log(bytes4) +log(bytes5) +log(bytes6) +log(bytes7) +log(bytes8) +log(bytes9) +log(bytes) +log(int256) +log(string,address,address,address) +log(string,address,address,bool) +log(string,address,address) +log(string,address,address,string) +log(string,address,address,uint256) +log(string,address,bool,address) +log(string,address,bool,bool) +log(string,address,bool) +log(string,address,bool,string) +log(string,address,bool,uint256) +log(string,address) +log(string,address,string,address) +log(string,address,string,bool) +log(string,address,string) +log(string,address,string,string) +log(string,address,string,uint256) +log(string,address,uint256,address) +log(string,address,uint256,bool) +log(string,address,uint256) +log(string,address,uint256,string) +log(string,address,uint256,uint256) +log(string,bool,address,address) +log(string,bool,address,bool) +log(string,bool,address) +log(string,bool,address,string) +log(string,bool,address,uint256) +log(string,bool,bool,address) +log(string,bool,bool,bool) +log(string,bool,bool) +log(string,bool,bool,string) +log(string,bool,bool,uint256) +log(string,bool) +log(string,bool,string,address) +log(string,bool,string,bool) +log(string,bool,string) +log(string,bool,string,string) +log(string,bool,string,uint256) +log(string,bool,uint256,address) +log(string,bool,uint256,bool) +log(string,bool,uint256) +log(string,bool,uint256,string) +log(string,bool,uint256,uint256) +log(string,int256) +log(string) +log(string,string,address,address) +log(string,string,address,bool) +log(string,string,address) +log(string,string,address,string) +log(string,string,address,uint256) +log(string,string,bool,address) +log(string,string,bool,bool) +log(string,string,bool) +log(string,string,bool,string) +log(string,string,bool,uint256) +log(string,string) +log(string,string,string,address) +log(string,string,string,bool) +log(string,string,string) +log(string,string,string,string) +log(string,string,string,uint256) +log(string,string,uint256,address) +log(string,string,uint256,bool) +log(string,string,uint256) +log(string,string,uint256,string) +log(string,string,uint256,uint256) +log(string,uint256,address,address) +log(string,uint256,address,bool) +log(string,uint256,address) +log(string,uint256,address,string) +log(string,uint256,address,uint256) +log(string,uint256,bool,address) +log(string,uint256,bool,bool) +log(string,uint256,bool) +log(string,uint256,bool,string) +log(string,uint256,bool,uint256) +log(string,uint256) +log(string,uint256,string,address) +log(string,uint256,string,bool) +log(string,uint256,string) +log(string,uint256,string,string) +log(string,uint256,string,uint256) +log(string,uint256,uint256,address) +log(string,uint256,uint256,bool) +log(string,uint256,uint256) +log(string,uint256,uint256,string) +log(string,uint256,uint256,uint256) +log(uint256,address,address,address) +log(uint256,address,address,bool) +log(uint256,address,address) +log(uint256,address,address,string) +log(uint256,address,address,uint256) +log(uint256,address,bool,address) +log(uint256,address,bool,bool) +log(uint256,address,bool) +log(uint256,address,bool,string) +log(uint256,address,bool,uint256) +log(uint256,address) +log(uint256,address,string,address) +log(uint256,address,string,bool) +log(uint256,address,string) +log(uint256,address,string,string) +log(uint256,address,string,uint256) +log(uint256,address,uint256,address) +log(uint256,address,uint256,bool) +log(uint256,address,uint256) +log(uint256,address,uint256,string) +log(uint256,address,uint256,uint256) +log(uint256,bool,address,address) +log(uint256,bool,address,bool) +log(uint256,bool,address) +log(uint256,bool,address,string) +log(uint256,bool,address,uint256) +log(uint256,bool,bool,address) +log(uint256,bool,bool,bool) +log(uint256,bool,bool) +log(uint256,bool,bool,string) +log(uint256,bool,bool,uint256) +log(uint256,bool) +log(uint256,bool,string,address) +log(uint256,bool,string,bool) +log(uint256,bool,string) +log(uint256,bool,string,string) +log(uint256,bool,string,uint256) +log(uint256,bool,uint256,address) +log(uint256,bool,uint256,bool) +log(uint256,bool,uint256) +log(uint256,bool,uint256,string) +log(uint256,bool,uint256,uint256) +log(uint256) +log(uint256,string,address,address) +log(uint256,string,address,bool) +log(uint256,string,address) +log(uint256,string,address,string) +log(uint256,string,address,uint256) +log(uint256,string,bool,address) +log(uint256,string,bool,bool) +log(uint256,string,bool) +log(uint256,string,bool,string) +log(uint256,string,bool,uint256) +log(uint256,string) +log(uint256,string,string,address) +log(uint256,string,string,bool) +log(uint256,string,string) +log(uint256,string,string,string) +log(uint256,string,string,uint256) +log(uint256,string,uint256,address) +log(uint256,string,uint256,bool) +log(uint256,string,uint256) +log(uint256,string,uint256,string) +log(uint256,string,uint256,uint256) +log(uint256,uint256,address,address) +log(uint256,uint256,address,bool) +log(uint256,uint256,address) +log(uint256,uint256,address,string) +log(uint256,uint256,address,uint256) +log(uint256,uint256,bool,address) +log(uint256,uint256,bool,bool) +log(uint256,uint256,bool) +log(uint256,uint256,bool,string) +log(uint256,uint256,bool,uint256) +log(uint256,uint256) +log(uint256,uint256,string,address) +log(uint256,uint256,string,bool) +log(uint256,uint256,string) +log(uint256,uint256,string,string) +log(uint256,uint256,string,uint256) +log(uint256,uint256,uint256,address) +log(uint256,uint256,uint256,bool) +log(uint256,uint256,uint256) +log(uint256,uint256,uint256,string) +log(uint256,uint256,uint256,uint256) diff --git a/op-chain-ops/script/console2_gen.go b/op-chain-ops/script/console2_gen.go new file mode 100644 index 000000000000..9430a9441cce --- /dev/null +++ b/op-chain-ops/script/console2_gen.go @@ -0,0 +1,1514 @@ +// AUTO-GENERATED - DO NOT EDIT +package script + +import ( + "math/big" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/common/hexutil" +) + +func (c *ConsolePrecompile) Log_51973ec9() { + c.log() +} + +func (c *ConsolePrecompile) Log_665bf134(p0 common.Address, p1 common.Address, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_0e378994(p0 common.Address, p1 common.Address, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_018c84c2(p0 common.Address, p1 common.Address, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_f808da20(p0 common.Address, p1 common.Address, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_94250d77(p0 common.Address, p1 common.Address, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_9f1bc36e(p0 common.Address, p1 common.Address, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2cd4134a(p0 common.Address, p1 common.Address, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f2a66286(p0 common.Address, p1 common.Address, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_aa6540c8(p0 common.Address, p1 common.Address, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_3971e78c(p0 common.Address, p1 common.Address, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_daf0d4aa(p0 common.Address, p1 common.Address) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_8f736d16(p0 common.Address, p1 common.Address, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_6f1a594e(p0 common.Address, p1 common.Address, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_007150be(p0 common.Address, p1 common.Address, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_21bdaf25(p0 common.Address, p1 common.Address, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ef1cefe7(p0 common.Address, p1 common.Address, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8da6def5(p0 common.Address, p1 common.Address, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_9b4254e2(p0 common.Address, p1 common.Address, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_17fe6185(p0 common.Address, p1 common.Address, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_fdb4f990(p0 common.Address, p1 common.Address, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_be553481(p0 common.Address, p1 common.Address, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_660375dd(p0 common.Address, p1 bool, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a6f50b0f(p0 common.Address, p1 bool, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f11699ed(p0 common.Address, p1 bool, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_2dd778e6(p0 common.Address, p1 bool, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a75c59de(p0 common.Address, p1 bool, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_cf394485(p0 common.Address, p1 bool, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_cac43479(p0 common.Address, p1 bool, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_eb830c92(p0 common.Address, p1 bool, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_dfc4a2e8(p0 common.Address, p1 bool, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8c4e5de6(p0 common.Address, p1 bool, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_75b605d3(p0 common.Address, p1 bool) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_19fd4956(p0 common.Address, p1 bool, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_50ad461d(p0 common.Address, p1 bool, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_212255cc(p0 common.Address, p1 bool, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_475c5c33(p0 common.Address, p1 bool, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_80e6a20b(p0 common.Address, p1 bool, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ccf790a1(p0 common.Address, p1 bool, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c4643e20(p0 common.Address, p1 bool, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_9c4f99fb(p0 common.Address, p1 bool, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_0aa6cfad(p0 common.Address, p1 bool, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_386ff5f4(p0 common.Address, p1 bool, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2c2ecbc2(p0 common.Address) { + c.log("p0", p0) +} + +func (c *ConsolePrecompile) Log_0d36fa20(p0 common.Address, p1 string, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_0df12b76(p0 common.Address, p1 string, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f08744e8(p0 common.Address, p1 string, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_f7e36245(p0 common.Address, p1 string, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_457fe3cf(p0 common.Address, p1 string, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_205871c2(p0 common.Address, p1 string, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5f1d5c9f(p0 common.Address, p1 string, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_cf020fb1(p0 common.Address, p1 string, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_bc0b61fe(p0 common.Address, p1 string, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_515e38b6(p0 common.Address, p1 string, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_759f86bb(p0 common.Address, p1 string) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_a04e2f87(p0 common.Address, p1 string, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_35a5071f(p0 common.Address, p1 string, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_fb772265(p0 common.Address, p1 string, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_5d02c50b(p0 common.Address, p1 string, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_159f8927(p0 common.Address, p1 string, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_63183678(p0 common.Address, p1 string, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_0ef7e050(p0 common.Address, p1 string, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_67dd6ff1(p0 common.Address, p1 string, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_448830a8(p0 common.Address, p1 string, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1dc8e1b8(p0 common.Address, p1 string, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_478d1c62(p0 common.Address, p1 *big.Int, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a1bcc9b3(p0 common.Address, p1 *big.Int, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7bc0d848(p0 common.Address, p1 *big.Int, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_1da986ea(p0 common.Address, p1 *big.Int, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_100f650e(p0 common.Address, p1 *big.Int, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a31bfdcc(p0 common.Address, p1 *big.Int, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_3bf5e537(p0 common.Address, p1 *big.Int, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_678209a8(p0 common.Address, p1 *big.Int, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_c5ad85f9(p0 common.Address, p1 *big.Int, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_22f6b999(p0 common.Address, p1 *big.Int, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8309e8a8(p0 common.Address, p1 *big.Int) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_5c430d47(p0 common.Address, p1 *big.Int, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_cf18105c(p0 common.Address, p1 *big.Int, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a1f2e8aa(p0 common.Address, p1 *big.Int, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_88a8c406(p0 common.Address, p1 *big.Int, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_bf01f891(p0 common.Address, p1 *big.Int, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_20e3984d(p0 common.Address, p1 *big.Int, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_66f1bc67(p0 common.Address, p1 *big.Int, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b69bcaf6(p0 common.Address, p1 *big.Int, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_4a28c017(p0 common.Address, p1 *big.Int, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_34f0e636(p0 common.Address, p1 *big.Int, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1d14d001(p0 bool, p1 common.Address, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_46600be0(p0 bool, p1 common.Address, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_d2763667(p0 bool, p1 common.Address, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_d812a167(p0 bool, p1 common.Address, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_0c66d1be(p0 bool, p1 common.Address, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1c41a336(p0 bool, p1 common.Address, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_6a9c478b(p0 bool, p1 common.Address, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_18c9c746(p0 bool, p1 common.Address, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_4a66cb34(p0 bool, p1 common.Address, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_07831502(p0 bool, p1 common.Address, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_853c4849(p0 bool, p1 common.Address) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_6f7c603e(p0 bool, p1 common.Address, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e2bfd60b(p0 bool, p1 common.Address, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_de9a9270(p0 bool, p1 common.Address, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_a73c1db6(p0 bool, p1 common.Address, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c21f64c7(p0 bool, p1 common.Address, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_136b05dd(p0 bool, p1 common.Address, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_d6019f1c(p0 bool, p1 common.Address, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5f7b9afb(p0 bool, p1 common.Address, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_51f09ff8(p0 bool, p1 common.Address, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7bf181a1(p0 bool, p1 common.Address, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f4880ea4(p0 bool, p1 bool, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c0a302d8(p0 bool, p1 bool, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1078f68d(p0 bool, p1 bool, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_a0a47963(p0 bool, p1 bool, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_4c123d57(p0 bool, p1 bool, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8c329b1a(p0 bool, p1 bool, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_3b2a5ce0(p0 bool, p1 bool, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_50709698(p0 bool, p1 bool, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_2ae408d4(p0 bool, p1 bool, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_6d7045c1(p0 bool, p1 bool, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2a110e83(p0 bool, p1 bool) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_f9ad2b89(p0 bool, p1 bool, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b857163a(p0 bool, p1 bool, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2555fa46(p0 bool, p1 bool, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_6d1e8751(p0 bool, p1 bool, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e3a9ca2f(p0 bool, p1 bool, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_54a7a9a0(p0 bool, p1 bool, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_619e4d0e(p0 bool, p1 bool, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_12f21602(p0 bool, p1 bool, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_7dd4d0e0(p0 bool, p1 bool, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_0bb00eab(p0 bool, p1 bool, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_32458eed(p0 bool) { + c.log("p0", p0) +} + +func (c *ConsolePrecompile) Log_2b2b18dc(p0 bool, p1 string, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_6dd434ca(p0 bool, p1 string, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_9591b953(p0 bool, p1 string, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_12d6c788(p0 bool, p1 string, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a5cada94(p0 bool, p1 string, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_538e06ab(p0 bool, p1 string, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_dc5e935b(p0 bool, p1 string, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_dbb4c247(p0 bool, p1 string, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_483d0416(p0 bool, p1 string, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1606a393(p0 bool, p1 string, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8feac525(p0 bool, p1 string) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_97d394d8(p0 bool, p1 string, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1e4b87e5(p0 bool, p1 string, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b076847f(p0 bool, p1 string, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_1762e32a(p0 bool, p1 string, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7be0c3eb(p0 bool, p1 string, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1596a1ce(p0 bool, p1 string, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_6b0e5d53(p0 bool, p1 string, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1093ee11(p0 bool, p1 string, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_1ad96de6(p0 bool, p1 string, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_28863fcb(p0 bool, p1 string, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_26f560a8(p0 bool, p1 *big.Int, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b4c314ff(p0 bool, p1 *big.Int, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_088ef9d2(p0 bool, p1 *big.Int, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_1bb3b09a(p0 bool, p1 *big.Int, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1537dc87(p0 bool, p1 *big.Int, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_9acd3616(p0 bool, p1 *big.Int, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ceb5f4d7(p0 bool, p1 *big.Int, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e8defba9(p0 bool, p1 *big.Int, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_9143dbb1(p0 bool, p1 *big.Int, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7f9bbca2(p0 bool, p1 *big.Int, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_399174d3(p0 bool, p1 *big.Int) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_fedd1fff(p0 bool, p1 *big.Int, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e5e70b2b(p0 bool, p1 *big.Int, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c3fc3970(p0 bool, p1 *big.Int, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_f5bc2249(p0 bool, p1 *big.Int, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_6a1199e2(p0 bool, p1 *big.Int, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_00dd87b9(p0 bool, p1 *big.Int, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_be984353(p0 bool, p1 *big.Int, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_37103367(p0 bool, p1 *big.Int, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_8e69fb5d(p0 bool, p1 *big.Int, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_374bb4b2(p0 bool, p1 *big.Int, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_013d178b(p0 [10]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_04004a2e(p0 [11]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_86a06abd(p0 [12]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_94529e34(p0 [13]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_9266f07f(p0 [14]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_da9574e0(p0 [15]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_665c6104(p0 [16]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_339f673a(p0 [17]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_c4d23d9a(p0 [18]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_5e6b5a33(p0 [19]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_6e18a128(p0 [1]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_5188e3e9(p0 [20]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_e9da3560(p0 [21]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_d5fae89c(p0 [22]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_aba1cf0d(p0 [23]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_f1b35b34(p0 [24]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_0b84bc58(p0 [25]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_f8b149f1(p0 [26]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_3a3757dd(p0 [27]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_c82aeaee(p0 [28]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_4b69c3d5(p0 [29]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_e9b62296(p0 [2]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_ee12c4ed(p0 [30]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_c2854d92(p0 [31]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_27b7cf85(p0 [32]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_2d834926(p0 [3]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_e05f48d1(p0 [4]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_a684808d(p0 [5]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_ae84a591(p0 [6]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_4ed57e28(p0 [7]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_4f84252e(p0 [8]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_90bd8cd0(p0 [9]byte) { + c.log("p0", hexutil.Bytes(p0[:])) +} + +func (c *ConsolePrecompile) Log_0be77f56(p0 hexutil.Bytes) { + c.log("p0", p0) +} + +func (c *ConsolePrecompile) Log_2d5b6cb9(p0 *ABIInt256) { + c.log("p0", (*big.Int)(p0)) +} + +func (c *ConsolePrecompile) Log_ed8f28f6(p0 string, p1 common.Address, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b59dbd60(p0 string, p1 common.Address, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_fcec75e0(p0 string, p1 common.Address, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_800a1c67(p0 string, p1 common.Address, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8ef3f399(p0 string, p1 common.Address, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_223603bd(p0 string, p1 common.Address, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_79884c2b(p0 string, p1 common.Address, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c91d5ed4(p0 string, p1 common.Address, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_0454c079(p0 string, p1 common.Address, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_3e9f866a(p0 string, p1 common.Address, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_319af333(p0 string, p1 common.Address) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_aabc9a31(p0 string, p1 common.Address, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5f15d28c(p0 string, p1 common.Address, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e0e9ad4f(p0 string, p1 common.Address, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_245986f2(p0 string, p1 common.Address, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_91d1112e(p0 string, p1 common.Address, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_63fb8bc5(p0 string, p1 common.Address, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_fc4845f0(p0 string, p1 common.Address, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_0d26b925(p0 string, p1 common.Address, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_5a477632(p0 string, p1 common.Address, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f8f51b1e(p0 string, p1 common.Address, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_33e9dd1d(p0 string, p1 bool, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_958c28c6(p0 string, p1 bool, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_932bbb38(p0 string, p1 bool, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_2d8e33a4(p0 string, p1 bool, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5d08bb05(p0 string, p1 bool, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7190a529(p0 string, p1 bool, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_895af8c5(p0 string, p1 bool, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_850b7ad6(p0 string, p1 bool, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_9d22d5dd(p0 string, p1 bool, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8e3f78a9(p0 string, p1 bool, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c3b55635(p0 string, p1 bool) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_e0625b29(p0 string, p1 bool, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_3f8a701d(p0 string, p1 bool, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e298f47d(p0 string, p1 bool, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_a826caeb(p0 string, p1 bool, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_24f91465(p0 string, p1 bool, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_935e09bf(p0 string, p1 bool, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8af7cf8a(p0 string, p1 bool, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c95958d6(p0 string, p1 bool, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_742d6ee7(p0 string, p1 bool, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_64b5bb67(p0 string, p1 bool, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_3ca6268e(p0 string, p1 *ABIInt256) { + c.log("p0", p0, "p1", (*big.Int)(p1)) +} + +func (c *ConsolePrecompile) Log_41304fac(p0 string) { + c.log("p0", p0) +} + +func (c *ConsolePrecompile) Log_439c7bef(p0 string, p1 string, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5ccd4e37(p0 string, p1 string, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_95ed0195(p0 string, p1 string, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_eb1bff80(p0 string, p1 string, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7cc3c607(p0 string, p1 string, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c371c7db(p0 string, p1 string, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_40785869(p0 string, p1 string, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b0e0f9b5(p0 string, p1 string, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_5e84b0ea(p0 string, p1 string, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_d6aefad2(p0 string, p1 string, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_4b5c4277(p0 string, p1 string) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_6d572f44(p0 string, p1 string, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2c1754ed(p0 string, p1 string, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2ced7cef(p0 string, p1 string, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_de68f20a(p0 string, p1 string, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_8eafb02b(p0 string, p1 string, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1023f7b2(p0 string, p1 string, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c3a8a654(p0 string, p1 string, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5821efa1(p0 string, p1 string, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_5d1a971a(p0 string, p1 string, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f45d7d2c(p0 string, p1 string, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5ea2b7ae(p0 string, p1 *big.Int, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_82112a42(p0 string, p1 *big.Int, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1c7ec448(p0 string, p1 *big.Int, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_9ffb2f93(p0 string, p1 *big.Int, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_4f04fdc6(p0 string, p1 *big.Int, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e0e95b98(p0 string, p1 *big.Int, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_354c36d6(p0 string, p1 *big.Int, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ca7733b1(p0 string, p1 *big.Int, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_abf73a98(p0 string, p1 *big.Int, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e41b6f6f(p0 string, p1 *big.Int, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b60e72cc(p0 string, p1 *big.Int) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_7c4632a4(p0 string, p1 *big.Int, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7d24491d(p0 string, p1 *big.Int, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5970e089(p0 string, p1 *big.Int, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_5ab84e1f(p0 string, p1 *big.Int, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c67ea9d1(p0 string, p1 *big.Int, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e21de278(p0 string, p1 *big.Int, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7626db92(p0 string, p1 *big.Int, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ca47c4eb(p0 string, p1 *big.Int, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_854b3496(p0 string, p1 *big.Int, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a7a87853(p0 string, p1 *big.Int, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2488b414(p0 *big.Int, p1 common.Address, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_091ffaf5(p0 *big.Int, p1 common.Address, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_bcfd9be0(p0 *big.Int, p1 common.Address, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_031c6f73(p0 *big.Int, p1 common.Address, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_736efbb6(p0 *big.Int, p1 common.Address, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ef72c513(p0 *big.Int, p1 common.Address, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e351140f(p0 *big.Int, p1 common.Address, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_9b6ec042(p0 *big.Int, p1 common.Address, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_90fb06aa(p0 *big.Int, p1 common.Address, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5abd992a(p0 *big.Int, p1 common.Address, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_69276c86(p0 *big.Int, p1 common.Address) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_9cba8fff(p0 *big.Int, p1 common.Address, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_cc32ab07(p0 *big.Int, p1 common.Address, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_63cb41f9(p0 *big.Int, p1 common.Address, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_3e128ca3(p0 *big.Int, p1 common.Address, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_46826b5d(p0 *big.Int, p1 common.Address, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_15c127b5(p0 *big.Int, p1 common.Address, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5f743a7c(p0 *big.Int, p1 common.Address, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5a9b5ed5(p0 *big.Int, p1 common.Address, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_ddb06521(p0 *big.Int, p1 common.Address, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_0c9cd9c1(p0 *big.Int, p1 common.Address, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_a1ef4cbb(p0 *big.Int, p1 bool, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_454d54a5(p0 *big.Int, p1 bool, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_35085f7b(p0 *big.Int, p1 bool, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_ade052c7(p0 *big.Int, p1 bool, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_078287f5(p0 *big.Int, p1 bool, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_69640b59(p0 *big.Int, p1 bool, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b6f577a1(p0 *big.Int, p1 bool, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_20718650(p0 *big.Int, p1 bool, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_dddb9561(p0 *big.Int, p1 bool, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7464ce23(p0 *big.Int, p1 bool, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_1c9d7eb3(p0 *big.Int, p1 bool) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_ef529018(p0 *big.Int, p1 bool, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_eb928d7f(p0 *big.Int, p1 bool, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_85775021(p0 *big.Int, p1 bool, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_68c8b8bd(p0 *big.Int, p1 bool, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_2c1d0746(p0 *big.Int, p1 bool, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_88cb6041(p0 *big.Int, p1 bool, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_91a02e2a(p0 *big.Int, p1 bool, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_20098014(p0 *big.Int, p1 bool, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_de03e774(p0 *big.Int, p1 bool, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c6acc7a8(p0 *big.Int, p1 bool, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f82c50f1(p0 *big.Int) { + c.log("p0", p0) +} + +func (c *ConsolePrecompile) Log_6168ed61(p0 *big.Int, p1 string, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_90c30a56(p0 *big.Int, p1 string, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7afac959(p0 *big.Int, p1 string, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_9c3adfa1(p0 *big.Int, p1 string, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_e8d3018d(p0 *big.Int, p1 string, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ae2ec581(p0 *big.Int, p1 string, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ba535d9c(p0 *big.Int, p1 string, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_4ceda75a(p0 *big.Int, p1 string, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_d2d423cd(p0 *big.Int, p1 string, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_cf009880(p0 *big.Int, p1 string, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_643fd0df(p0 *big.Int, p1 string) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_d583c602(p0 *big.Int, p1 string, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b3a6b6bd(p0 *big.Int, p1 string, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b115611f(p0 *big.Int, p1 string, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_21ad0683(p0 *big.Int, p1 string, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_b028c9bd(p0 *big.Int, p1 string, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_3b2279b4(p0 *big.Int, p1 string, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_691a8f74(p0 *big.Int, p1 string, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_37aa7d4c(p0 *big.Int, p1 string, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_b7b914ca(p0 *big.Int, p1 string, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_82c25b74(p0 *big.Int, p1 string, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_56a5d1b1(p0 *big.Int, p1 *big.Int, p2 common.Address, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_15cac476(p0 *big.Int, p1 *big.Int, p2 common.Address, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5c96b331(p0 *big.Int, p1 *big.Int, p2 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_6cde40b8(p0 *big.Int, p1 *big.Int, p2 common.Address, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_88f6e4b2(p0 *big.Int, p1 *big.Int, p2 common.Address, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_9a816a83(p0 *big.Int, p1 *big.Int, p2 bool, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_ab085ae6(p0 *big.Int, p1 *big.Int, p2 bool, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_4766da72(p0 *big.Int, p1 *big.Int, p2 bool) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_a5b4fc99(p0 *big.Int, p1 *big.Int, p2 bool, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_eb7f6fd2(p0 *big.Int, p1 *big.Int, p2 bool, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_f666715a(p0 *big.Int, p1 *big.Int) { + c.log("p0", p0, "p1", p1) +} + +func (c *ConsolePrecompile) Log_42d21db7(p0 *big.Int, p1 *big.Int, p2 string, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_7af6ab25(p0 *big.Int, p1 *big.Int, p2 string, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_71d04af2(p0 *big.Int, p1 *big.Int, p2 string) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_27d8afd2(p0 *big.Int, p1 *big.Int, p2 string, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_5da297eb(p0 *big.Int, p1 *big.Int, p2 string, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_fa8185af(p0 *big.Int, p1 *big.Int, p2 *big.Int, p3 common.Address) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_c598d185(p0 *big.Int, p1 *big.Int, p2 *big.Int, p3 bool) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_d1ed7a3c(p0 *big.Int, p1 *big.Int, p2 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2) +} + +func (c *ConsolePrecompile) Log_59cfcbe3(p0 *big.Int, p1 *big.Int, p2 *big.Int, p3 string) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + +func (c *ConsolePrecompile) Log_193fb800(p0 *big.Int, p1 *big.Int, p2 *big.Int, p3 *big.Int) { + c.log("p0", p0, "p1", p1, "p2", p2, "p3", p3) +} + diff --git a/op-chain-ops/script/console_test.go b/op-chain-ops/script/console_test.go new file mode 100644 index 000000000000..1e618faf5c1e --- /dev/null +++ b/op-chain-ops/script/console_test.go @@ -0,0 +1,56 @@ +package script + +import ( + "log/slog" + "math/rand" // nosemgrep + "testing" + + "github.com/stretchr/testify/require" + + "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/ethereum/go-ethereum/log" + + "github.com/ethereum-optimism/optimism/op-service/testlog" + "github.com/ethereum-optimism/optimism/op-service/testutils" +) + +func TestConsole(t *testing.T) { + logger, captLog := testlog.CaptureLogger(t, log.LevelDebug) + + rng := rand.New(rand.NewSource(123)) + sender := testutils.RandomAddress(rng) + alice := testutils.RandomAddress(rng) + bob := testutils.RandomAddress(rng) + t.Logf("sender: %s", sender) + t.Logf("alice: %s", alice) + t.Logf("bob: %s", bob) + c := &ConsolePrecompile{ + logger: logger, + sender: sender, + } + p, err := NewPrecompile[*ConsolePrecompile](c) + require.NoError(t, err) + + // test Log_daf0d4aa + input := make([]byte, 0, 4+32+32) + input = append(input, hexutil.MustDecode("0xdaf0d4aa")...) + input = append(input, leftPad32(alice[:])...) + input = append(input, leftPad32(bob[:])...) + t.Logf("input: %x", input) + + _, err = p.Run(input) + require.NoError(t, err) + + for i, l := range *captLog.Logs { + t.Logf("log %d", i) + l.Attrs(func(attr slog.Attr) bool { + t.Logf("attr: k: %s, v: %s", attr.Key, attr.Value.String()) + return true + }) + } + + require.NotNil(t, captLog.FindLog(testlog.NewMessageFilter("console"))) + require.NotNil(t, captLog.FindLog(testlog.NewAttributesFilter("p0", alice.String()))) + require.NotNil(t, captLog.FindLog(testlog.NewAttributesFilter("p1", bob.String()))) + require.NotNil(t, captLog.FindLog(testlog.NewAttributesFilter("sender", sender.String()))) +} diff --git a/op-chain-ops/script/consolegen/main.go b/op-chain-ops/script/consolegen/main.go new file mode 100644 index 000000000000..bc20869eda13 --- /dev/null +++ b/op-chain-ops/script/consolegen/main.go @@ -0,0 +1,129 @@ +package main + +import ( + "flag" + "fmt" + "os" + "strconv" + "strings" + + "github.com/ethereum/go-ethereum/crypto" +) + +func main() { + var abiTxtPath string + flag.StringVar(&abiTxtPath, "abi-txt", "console2.txt", "Path of text file with ABI method signatures") + var outPath string + flag.StringVar(&outPath, "out", "console2_gen.go", "Path to write output to") + flag.Parse() + data, err := os.ReadFile(abiTxtPath) + if err != nil { + fmt.Printf("failed to read file: %v\n", err) + os.Exit(1) + } + lines := strings.Split(string(data), "\n") + var out strings.Builder + out.WriteString(`// AUTO-GENERATED - DO NOT EDIT +package script + +import ( + "math/big" + + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/common/hexutil" +) + +`) + for _, line := range lines { + line = strings.TrimSpace(line) + if line == "" { + continue + } + byte4ID := crypto.Keccak256([]byte(line))[:4] + if !strings.HasPrefix(line, "log(") { + fmt.Printf("unexpected line: %q\n", line) + os.Exit(1) + } + line = strings.TrimPrefix(line, "log(") + line = strings.TrimSuffix(line, ")") + params := strings.Split(line, ",") + out.WriteString("func (c *ConsolePrecompile) Log_") + out.WriteString(fmt.Sprintf("%x", byte4ID)) + out.WriteString("(") + for i, p := range params { + if p == "" { + continue + } + out.WriteString(fmt.Sprintf("p%d ", i)) + name, err := solToGo(p) + if err != nil { + fmt.Printf("unexpected param type: %q\n", p) + os.Exit(1) + } + out.WriteString(name) + if i != len(params)-1 { + out.WriteString(", ") + } + } + out.WriteString(") {\n") + out.WriteString("\tc.log(") + for i, p := range params { + if p == "" { + continue + } + out.WriteString(fmt.Sprintf(`"p%d", `, i)) + out.WriteString(prettyArg(fmt.Sprintf("p%d", i), p)) + if i != len(params)-1 { + out.WriteString(", ") + } + } + out.WriteString(")\n") + out.WriteString("}\n\n") + } + if err := os.WriteFile(outPath, []byte(out.String()), 0644); err != nil { + fmt.Printf("failed to write output: %v\n", err) + os.Exit(1) + } + fmt.Println("done!") +} + +func solToGo(name string) (string, error) { + switch name { + case "address": + return "common.Address", nil + case "uint256": + return "*big.Int", nil + case "int256": + return "*ABIInt256", nil + case "string", "bool", "int8", "int16", "int32", "int64", "uint8", "uint16", "uint32", "uint64": + return name, nil + case "bytes": + return "hexutil.Bytes", nil + default: + if strings.HasPrefix(name, "bytes") { + n, err := strconv.Atoi(strings.TrimPrefix(name, "bytes")) + if err != nil { + return "", err + } + if n > 32 { + return "", fmt.Errorf("unexpected large bytes slice type: %d", n) + } + return fmt.Sprintf("[%d]byte", n), nil + } + return "", fmt.Errorf("unrecognized solidity type name: %s", name) + } +} + +func prettyArg(arg string, typ string) string { + switch typ { + case "int256": + return fmt.Sprintf("(*big.Int)(%s)", arg) + case "bytes": + return arg + default: + if strings.HasPrefix(typ, "bytes") { + return fmt.Sprintf("hexutil.Bytes(%s[:])", arg) + } + return arg + } +} diff --git a/op-chain-ops/script/precompile.go b/op-chain-ops/script/precompile.go index 8058a5d8f068..dc53a798828d 100644 --- a/op-chain-ops/script/precompile.go +++ b/op-chain-ops/script/precompile.go @@ -33,8 +33,17 @@ func b32(v uint64) []byte { return out } -// pad to multiple of 32 bytes -func pad32(data []byte) []byte { +// leftPad32 to multiple of 32 bytes +func leftPad32(data []byte) []byte { + out := bytes.Clone(data) + if len(out)%32 == 0 { + return out + } + return append(make([]byte, 32-(len(out)%32)), out...) +} + +// rightPad32 to multiple of 32 bytes +func rightPad32(data []byte) []byte { out := bytes.Clone(data) if len(out)%32 == 0 { return out @@ -452,7 +461,7 @@ func encodeRevert(outErr error) ([]byte, error) { out = append(out, revertSelector...) // selector out = append(out, b32(0x20)...) // offset to string out = append(out, b32(uint64(len(outErrStr)))...) // length of string - out = append(out, pad32(outErrStr)...) // the error message string + out = append(out, rightPad32(outErrStr)...) // the error message string return out, vm.ErrExecutionReverted // Geth EVM will pick this up as a revert with return-data } diff --git a/op-chain-ops/script/precompile_test.go b/op-chain-ops/script/precompile_test.go index fd5b0100a3b3..ba2f02202ec3 100644 --- a/op-chain-ops/script/precompile_test.go +++ b/op-chain-ops/script/precompile_test.go @@ -67,7 +67,7 @@ func TestPrecompile(t *testing.T) { require.Equal(t, e.helloFrom, "alice") require.Equal(t, out[:32], b32(0x20)) require.Equal(t, out[32:32*2], b32(uint64(len("Hola alice!")))) - require.Equal(t, out[32*2:32*3], pad32([]byte("Hola alice!"))) + require.Equal(t, out[32*2:32*3], rightPad32([]byte("Hola alice!"))) // error handling input = crypto.Keccak256([]byte("greet(string)"))[:4] @@ -102,12 +102,12 @@ func TestPrecompile(t *testing.T) { out, err = p.Run(input) require.NoError(t, err) require.Equal(t, b32(123), out[:32]) - require.Equal(t, b32(32*3), out[32*1:32*2]) // offset of hello - require.Equal(t, b32(32*5), out[32*2:32*3]) // offset of seen - require.Equal(t, b32(uint64(len("Hola"))), out[32*3:32*4]) // length of hello - require.Equal(t, pad32([]byte("Hola")), out[32*4:32*5]) // hello content - require.Equal(t, b32(uint64(len("alice"))), out[32*5:32*6]) // length of seen - require.Equal(t, pad32([]byte("alice")), out[32*6:32*7]) // seen content + require.Equal(t, b32(32*3), out[32*1:32*2]) // offset of hello + require.Equal(t, b32(32*5), out[32*2:32*3]) // offset of seen + require.Equal(t, b32(uint64(len("Hola"))), out[32*3:32*4]) // length of hello + require.Equal(t, rightPad32([]byte("Hola")), out[32*4:32*5]) // hello content + require.Equal(t, b32(uint64(len("alice"))), out[32*5:32*6]) // length of seen + require.Equal(t, rightPad32([]byte("alice")), out[32*6:32*7]) // seen content // multi-input input = crypto.Keccak256([]byte("addAndMul(uint64,uint64,uint64,uint8)"))[:4]