Update assets-go-libs version (#16058)

This commit is contained in:
Daniel 2021-11-24 20:54:00 +03:00 committed by GitHub
parent 77a5f9a08c
commit b04cf2fdac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 14 deletions

View File

@ -6,17 +6,12 @@ client_urls:
validators_settings: validators_settings:
image_file: image_file:
size: 100 # file size in KB size_kb: 100
max_w: 512 max_w: 512
max_h: 512 max_h: 512
min_w: 50 min_w: 50
min_h: 50 min_h: 50
asset_folder:
allowed_files:
- "logo.png"
- "info.json"
root_folder: root_folder:
allowed_files: allowed_files:
- ".github" - ".github"
@ -50,11 +45,20 @@ validators_settings:
- "validators" - "validators"
- "info" - "info"
asset_folder:
allowed_files:
- "logo.png"
- "info.json"
chain_info_folder: chain_info_folder:
has_files: has_files:
- "logo.png" - "logo.png"
- "info.json" - "info.json"
chain_validators_asset_folder:
has_files:
- "logo.png"
dapps_folder: dapps_folder:
ext: ".png" ext: ".png"

View File

@ -26,14 +26,8 @@ func main() {
} }
fileStorage := file.NewFileService() fileStorage := file.NewFileService()
validatorsService := validator.NewService(fileStorage)
validatorsService, err := validator.NewService(fileStorage)
if err != nil {
log.WithError(err).Fatal("failed to init validator service")
}
reportService := reporter.NewReportService() reportService := reporter.NewReportService()
assetfsProcessor := processor.NewService(fileStorage, validatorsService, reportService) assetfsProcessor := processor.NewService(fileStorage, validatorsService, reportService)
switch script { switch script {

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.17
require ( require (
github.com/sirupsen/logrus v1.8.1 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 ( require (

10
go.sum
View File

@ -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-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 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.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 h1:l2zr5Ow19GTPnoWbhjExAhTbz7xLcYPXBa10EIgItjI=
github.com/trustwallet/go-libs v0.2.17/go.mod h1:gBDrDkN5wOY+8kwlU6pnv3l/seGJy2qH1OpTKe7NnXA= 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= github.com/trustwallet/go-primitives v0.0.11 h1:uVjm1IssSrur5MjnSbl+LerljnaU8pvgoBxq7krjNvI=