Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INFURA_WS_URL='ws://157.90.35.22:8545'
INFURA_WS_URL='ws://138.201.251.168:8546'
GETH_IPC_PATH='/home/bot/.ethereum/geth.ipc'

# Postgres variables
Expand Down
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/chainrunner-og.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed cmd/db/main.go
Empty file.
3 changes: 0 additions & 3 deletions cmd/liquidation/main.go

This file was deleted.

23 changes: 4 additions & 19 deletions cmd/stats/main.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package main

import (
"log"
log "github.com/sirupsen/logrus"

"os"

"github.com/ethereum/go-ethereum/ethclient"
"github.com/joho/godotenv"
)





func main() {
// init .env into program context
godotenv.Load(".env")
Expand All @@ -21,20 +18,8 @@ func main() {
_, err := ethclient.Dial(os.Getenv("INFURA_WS_URL"))

if err != nil {
log.Fatalf("Failed to connect to the Ethereum client: %v", err)
log.Info("Failed to connect to the Ethereum client: %v", err)
}

// address where multicall contract is located
// uniqueryAddr := common.HexToAddress("0x5EF1009b9FCD4fec3094a5564047e190D72Bd511")
// uniswap factory address
// uniFactoryAddr := "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f"

// query the contract
// uniquery, err := uniquery.NewFlashBotsUniswapQuery(uniqueryAddr, conn)

// if err != nil {
// fmt.Println("error initiating contract to query mass")
// }

// getUniswapPairs(uniquery)
log.Info("Working..")
}
Empty file removed cpu.prof
Empty file.
Empty file removed estimate_gas_fail.json
Empty file.
Empty file removed found_arbs.json
Empty file.
30 changes: 15 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@ module chainrunner
go 1.15

require (
github.com/ALTree/bigfloat v0.0.0-20201218142103-4a33235224ec
github.com/ALTree/bigfloat v0.0.0-20220102081255-38c8b72a9924
github.com/btcsuite/btcd v0.22.0-beta // indirect
github.com/ethereum/go-ethereum v0.0.0-local
github.com/btcsuite/btcd/btcec/v2 v2.2.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
github.com/ethereum/go-ethereum v1.10.23
github.com/go-kit/kit v0.10.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac
github.com/jmoiron/sqlx v1.3.4 // indirect
github.com/joho/godotenv v1.4.0
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-sqlite3 v1.14.11 // indirect
github.com/pkg/errors v0.9.1
github.com/rjeczalik/notify v0.9.2 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/sirupsen/logrus v1.8.1
github.com/sirupsen/logrus v1.9.0
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
github.com/tklauser/go-sysconf v0.3.9 // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
github.com/tklauser/numcpus v0.5.0 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90 // indirect
golang.org/x/sync v0.0.0-20220907140024-f12130a52804
golang.org/x/sys v0.0.0-20220908164124-27713097b956 // indirect
golang.org/x/text v0.3.7 // indirect
gonum.org/v1/gonum v0.8.2
gonum.org/v1/plot v0.9.0 // indirect
)

replace (
github.com/ethereum/go-ethereum v0.0.0-local => /home/bot/bor-fork-simulate/
gonum.org/v1/gonum v0.0.0-local => /home/bot/gonum-fork/
gonum.org/v1/gonum v0.8.2 => /home/bot/gonum-fork/
gonum.org/v1/gonum v0.12.0
gopkg.in/yaml.v2 v2.4.0
)
97 changes: 97 additions & 0 deletions go.sum

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions internal/bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
)

const (
ESTIMATE_GAS_FAIL = "estimate_gas_fail.json"
FOUND_ARBS = "found_arbs.json"
REASONS_NOT_WORTH_IT = "not_worth.json"
ESTIMATE_GAS_FAIL = "./data/estimate_gas_fail.json"
FOUND_ARBS = "./data/found_arbs.json"
REASONS_NOT_WORTH_IT = "./data/not_worth.json"
)

// Multiple clients held inside the Bot struct
Expand Down
Empty file removed not_worth.json
Empty file.