From b04cf2fdacf86c07e039def7ca079845220bdbea Mon Sep 17 00:00:00 2001 From: Daniel <24758309+leedaniil@users.noreply.github.com> Date: Wed, 24 Nov 2021 20:54:00 +0300 Subject: [PATCH] Update assets-go-libs version (#16058) --- .github/assets.config.yaml | 16 ++++++++++------ cmd/main.go | 8 +------- go.mod | 2 +- go.sum | 10 ++++++++++ 4 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/assets.config.yaml b/.github/assets.config.yaml index 4fcaaca39..30ea9fd07 100644 --- a/.github/assets.config.yaml +++ b/.github/assets.config.yaml @@ -6,17 +6,12 @@ client_urls: validators_settings: image_file: - size: 100 # file size in KB + size_kb: 100 max_w: 512 max_h: 512 min_w: 50 min_h: 50 - asset_folder: - allowed_files: - - "logo.png" - - "info.json" - root_folder: allowed_files: - ".github" @@ -50,11 +45,20 @@ validators_settings: - "validators" - "info" + asset_folder: + allowed_files: + - "logo.png" + - "info.json" + chain_info_folder: has_files: - "logo.png" - "info.json" + chain_validators_asset_folder: + has_files: + - "logo.png" + dapps_folder: ext: ".png" diff --git a/cmd/main.go b/cmd/main.go index ed4450412..716f300fc 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -26,14 +26,8 @@ func main() { } fileStorage := file.NewFileService() - - validatorsService, err := validator.NewService(fileStorage) - if err != nil { - log.WithError(err).Fatal("failed to init validator service") - } - + validatorsService := validator.NewService(fileStorage) reportService := reporter.NewReportService() - assetfsProcessor := processor.NewService(fileStorage, validatorsService, reportService) switch script { diff --git a/go.mod b/go.mod index 1eade60ec..a385fa95f 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/sirupsen/logrus v1.8.1 - github.com/trustwallet/assets-go-libs v0.0.6 + github.com/trustwallet/assets-go-libs v0.0.7 ) require ( diff --git a/go.sum b/go.sum index fc5b73bde..b8e5e0f33 100644 --- a/go.sum +++ b/go.sum @@ -278,6 +278,16 @@ github.com/trustwallet/assets-go-libs v0.0.6-0.20211124104413-520938a5b242 h1:7i github.com/trustwallet/assets-go-libs v0.0.6-0.20211124104413-520938a5b242/go.mod h1:0nQmM5unJu0GuWSFJrWgSyOi2uUGnYmjQ53SkKe7/qI= github.com/trustwallet/assets-go-libs v0.0.6 h1:a0hJXemtyya4do32CTGHHJZDVHSR9ql+P7HpLilo0A0= github.com/trustwallet/assets-go-libs v0.0.6/go.mod h1:0nQmM5unJu0GuWSFJrWgSyOi2uUGnYmjQ53SkKe7/qI= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124164500-003dab6b2916 h1:TXr+Tk9Y4SxPEVn/CYNu4nFpOsvDecRFEfiZJDzVnDU= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124164500-003dab6b2916/go.mod h1:0nQmM5unJu0GuWSFJrWgSyOi2uUGnYmjQ53SkKe7/qI= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124170118-ab37fc3e5b48 h1:0B7BitT7BHBfa+vXKM8y9NLJ/RZ5cBhAvB052esXItQ= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124170118-ab37fc3e5b48/go.mod h1:0nQmM5unJu0GuWSFJrWgSyOi2uUGnYmjQ53SkKe7/qI= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124170607-cfb99cf6f96c h1:abu6Ek0/grRcyZt7PtnKTgP5hRZ707bF+uKy8c3r+2U= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124170607-cfb99cf6f96c/go.mod h1:0nQmM5unJu0GuWSFJrWgSyOi2uUGnYmjQ53SkKe7/qI= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124173428-88b8c903a73b h1:Nhf5a6xsgmGboYVyJBNFaXVNmgy7UDPd5TP4upss/v8= +github.com/trustwallet/assets-go-libs v0.0.7-0.20211124173428-88b8c903a73b/go.mod h1:0nQmM5unJu0GuWSFJrWgSyOi2uUGnYmjQ53SkKe7/qI= +github.com/trustwallet/assets-go-libs v0.0.7 h1:3OwNTBdKjVB3V3PcPbKqhP6SepcnDqEmb3RPfE7e1ZQ= +github.com/trustwallet/assets-go-libs v0.0.7/go.mod h1:0nQmM5unJu0GuWSFJrWgSyOi2uUGnYmjQ53SkKe7/qI= github.com/trustwallet/go-libs v0.2.17 h1:l2zr5Ow19GTPnoWbhjExAhTbz7xLcYPXBa10EIgItjI= github.com/trustwallet/go-libs v0.2.17/go.mod h1:gBDrDkN5wOY+8kwlU6pnv3l/seGJy2qH1OpTKe7NnXA= github.com/trustwallet/go-primitives v0.0.11 h1:uVjm1IssSrur5MjnSbl+LerljnaU8pvgoBxq7krjNvI=