Skip to content

Commit

Permalink
Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruteri committed Nov 7, 2023
1 parent 7b62dbd commit 76adc0c
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 55 deletions.
14 changes: 7 additions & 7 deletions suave/cmd/suavecli/buildGoerliBlocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func cmdBuildGoerliBlocks() {
flagset := flag.NewFlagSet("deployBlockSenderContract", flag.ExitOnError)

var (
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
goerliBeaconRpc = flagset.String("goerli_beacon_rpc", "http://127.0.0.1:5052", "address of goerli beacon rpc")
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
goerliBeaconRpc = flagset.String("goerli_beacon_rpc", "http://127.0.0.1:5052", "address of goerli beacon rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
boostRelayUrl = flagset.String("relay_url", "http://127.0.0.1:8091", "address of boost relay that the contract will send blocks to")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
boostRelayUrl = flagset.String("relay_url", "http://127.0.0.1:8091", "address of boost relay that the contract will send blocks to")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
)

flagset.Parse(os.Args[2:])
Expand Down
18 changes: 9 additions & 9 deletions suave/cmd/suavecli/sendBuildShareBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ func cmdSendBuildShareBlock() {
flagset := flag.NewFlagSet("sendBuildShareBlock", flag.ExitOnError)

var (
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
goerliBeaconRpc = flagset.String("goerli_beacon_rpc", "http://127.0.0.1:5052", "address of goerli beacon rpc")
boostRelayUrl = flagset.String("relay_url", "http://127.0.0.1:8091", "address of boost relay that the contract will send blocks to")
blockSenderAddressHex = flagset.String("block_sender_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of block sender contract")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
goerliBeaconRpc = flagset.String("goerli_beacon_rpc", "http://127.0.0.1:5052", "address of goerli beacon rpc")
boostRelayUrl = flagset.String("relay_url", "http://127.0.0.1:8091", "address of boost relay that the contract will send blocks to")
blockSenderAddressHex = flagset.String("block_sender_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of block sender contract")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
)

flagset.Parse(os.Args[2:])
Expand Down
10 changes: 5 additions & 5 deletions suave/cmd/suavecli/sendBundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ func cmdSendBundle() {
flagset := flag.NewFlagSet("sendBundle", flag.ExitOnError)

var (
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
)

flagset.Parse(os.Args[2:])
Expand Down
14 changes: 7 additions & 7 deletions suave/cmd/suavecli/sendBundleToBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ func cmdSendBundleToBuilder() {
goerliBuilderUrl := "https://relay-goerli.flashbots.net/"

var (
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8555", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
contractAddressFlag = flagset.String("contract", "", "contract address to use (default: deploy new one)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8555", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
contractAddressFlag = flagset.String("contract", "", "contract address to use (default: deploy new one)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
)

flagset.Parse(os.Args[2:])
Expand Down
14 changes: 7 additions & 7 deletions suave/cmd/suavecli/sendMevShareBundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ func cmdSendMevShareBundle() {
flagset := flag.NewFlagSet("sendBundle", flag.ExitOnError)

var (
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
mevshareAddressHex = flagset.String("mev_share_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of mev share contract")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
mevshareAddressHex = flagset.String("mev_share_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of mev share contract")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
)

flagset.Parse(os.Args[2:])
Expand Down
18 changes: 9 additions & 9 deletions suave/cmd/suavecli/sendMevShareMatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ func cmdSendMevShareMatch() {
flagset := flag.NewFlagSet("sendBundle", flag.ExitOnError)

var (
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
mevshareAddressHex = flagset.String("mev_share_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of mev share contract")
blockSenderHex = flagset.String("block_sender_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of mev share contract")
matchBidId = flagset.String("match_bid_id", "123-123-123", "ID of mev share bundle bid to back run")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
mevshareAddressHex = flagset.String("mev_share_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of mev share contract")
blockSenderHex = flagset.String("block_sender_addr", "0x42042042028AE1CDE26d5BcF17Ba83f447068E5B", "address of mev share contract")
matchBidId = flagset.String("match_bid_id", "123-123-123", "ID of mev share bundle bid to back run")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
)

flagset.Parse(os.Args[2:])
Expand Down
14 changes: 7 additions & 7 deletions suave/cmd/suavecli/testDeployAndShare.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func cmdTestDeployAndShare() {
flagset := flag.NewFlagSet("deployBlockSenderContract", flag.ExitOnError)

var (
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
goerliBeaconRpc = flagset.String("goerli_beacon_rpc", "http://127.0.0.1:5052", "address of goerli beacon rpc")
suaveRpc = flagset.String("suave_rpc", "http://127.0.0.1:8545", "address of suave rpc")
goerliRpc = flagset.String("goerli_rpc", "http://127.0.0.1:8545", "address of goerli rpc")
goerliBeaconRpc = flagset.String("goerli_beacon_rpc", "http://127.0.0.1:5052", "address of goerli beacon rpc")
kettleAddressHex = flagset.String("kettleAddress", "0x4E2B0c0e428AE1CDE26d5BcF17Ba83f447068E5B", "wallet address of execution node")
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
boostRelayUrl = flagset.String("relay_url", "http://127.0.0.1:8091", "address of boost relay that the contract will send blocks to")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
privKeyHex = flagset.String("privkey", "", "private key as hex (for testing)")
boostRelayUrl = flagset.String("relay_url", "http://127.0.0.1:8091", "address of boost relay that the contract will send blocks to")
verbosity = flagset.Int("verbosity", int(log.LvlInfo), "log verbosity (0-5)")
privKey *ecdsa.PrivateKey
)

flagset.Parse(os.Args[2:])
Expand Down
8 changes: 4 additions & 4 deletions suave/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ func (t *TransactionResult) Hash() common.Hash {
}

type Client struct {
rpc *ethclient.Client
key *ecdsa.PrivateKey
rpc *ethclient.Client
key *ecdsa.PrivateKey
kettleAddress common.Address
}

func NewClient(rpc *rpc.Client, key *ecdsa.PrivateKey, kettleAddress common.Address) *Client {
c := &Client{
rpc: ethclient.NewClient(rpc),
key: key,
rpc: ethclient.NewClient(rpc),
key: key,
kettleAddress: kettleAddress,
}
return c
Expand Down

0 comments on commit 76adc0c

Please sign in to comment.