Skip to content

Commit d33e6de

Browse files
authored
Merge branch 'main' into improve-error-handling
2 parents a11221d + ca257c6 commit d33e6de

File tree

5 files changed

+140
-499
lines changed

5 files changed

+140
-499
lines changed

config/config.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"github.com/bonedaddy/go-defi/utils"
1414
"github.com/ethereum/go-ethereum/crypto"
1515
"github.com/ethereum/go-ethereum/ethclient"
16-
config "github.com/ipfs/go-ipfs-config"
1716
"github.com/pkg/errors"
1817
"github.com/vrischmann/envconfig"
1918
"go.bobheadxi.dev/zapx/zapx"
@@ -233,7 +232,7 @@ func (c *Config) EthClient(ctx context.Context) (utils.Blockchain, error) {
233232
// Authorizer parses the Account configuration struct to return a transaction signer
234233
// from https://github.com/indexed-finance/circuit-breaker/blob/master/cmd/services_run.go
235234
// copyright for this code can be found in the LICENSE file of indexed-finance/circuit-breaker
236-
func (c *Config) Authorizer(cfg *config.Config) (*utils.Authorizer, error) {
235+
func (c *Config) Authorizer() (*utils.Authorizer, error) {
237236
switch c.Blockchain.Account.Mode {
238237
case "keyfile":
239238
return utils.NewAuthorizer(c.Blockchain.Account.KeyFilePath, c.Blockchain.Account.KeyFilePassword)

go.mod

+4-15
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,18 @@ module github.com/bonedaddy/go-defi
33
go 1.15
44

55
require (
6-
github.com/consensys/gurvy v0.3.8 // indirect
7-
github.com/edsrzf/mmap-go v1.0.0 // indirect
8-
github.com/ethereum/go-ethereum v1.10.0
9-
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 // indirect
10-
github.com/golang/protobuf v1.4.3 // indirect
11-
github.com/google/uuid v1.1.5 // indirect
12-
github.com/graph-gophers/graphql-go v0.0.0-20201113091052-beb923fada29 // indirect
13-
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
14-
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
15-
github.com/huin/goupnp v1.0.1-0.20200620063722-49508fba0031 // indirect
16-
github.com/influxdata/influxdb v1.8.3 // indirect
17-
github.com/ipfs/go-ipfs-config v0.12.0
186
github.com/pkg/errors v0.8.1 // indirect
197
github.com/rs/cors v1.7.0 // indirect
8+
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
9+
github.com/ethereum/go-ethereum v1.10.16
2010
github.com/shopspring/decimal v1.2.0
2111
github.com/stretchr/testify v1.7.0
2212
github.com/urfave/cli/v2 v2.3.0
2313
github.com/vrischmann/envconfig v1.3.1-0.20201228145200-1b7b4cd0c1d5
2414
go.bobheadxi.dev/zapx/zapx v0.6.8
2515
go.uber.org/zap v1.16.0
26-
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
27-
golang.org/x/net v0.0.0-20201224014010-6772e930b67b // indirect
28-
gopkg.in/yaml.v2 v2.3.0
16+
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
17+
gopkg.in/yaml.v2 v2.4.0
2918
gorm.io/driver/postgres v1.0.8
3019
gorm.io/driver/sqlite v1.1.4
3120
gorm.io/gorm v1.21.4

0 commit comments

Comments
 (0)