fixed rosetta-sdk origin

This commit is contained in:
Jürgen Eckel 2025-05-02 12:39:20 +02:00
parent 1dce252617
commit fbf665a9b9
No known key found for this signature in database
3 changed files with 93 additions and 80 deletions

View File

@ -1,6 +1,4 @@
--- version: "2"
run:
timeout: 5m
linters: linters:
enable: enable:
- asasalint - asasalint
@ -15,7 +13,6 @@ linters:
- dupl - dupl
- dupword - dupword
- durationcheck - durationcheck
- errcheck
- errchkjson - errchkjson
- errname - errname
- errorlint - errorlint
@ -29,16 +26,12 @@ linters:
- goconst - goconst
- gocritic - gocritic
- gocyclo - gocyclo
- gofmt
- goheader - goheader
- gomodguard - gomodguard
- goprintffuncname - goprintffuncname
- gosimple
- gosmopolitan - gosmopolitan
- govet
- grouper - grouper
- importas - importas
- ineffassign
- interfacebloat - interfacebloat
- loggercheck - loggercheck
- makezero - makezero
@ -63,83 +56,99 @@ linters:
- sloglint - sloglint
- sqlclosecheck - sqlclosecheck
- staticcheck - staticcheck
- stylecheck
- tagalign - tagalign
- tagliatelle - tagliatelle
- tenv
- testableexamples - testableexamples
- tparallel - tparallel
- unconvert - unconvert
- unparam - unparam
- unused
- usestdlibvars - usestdlibvars
- wastedassign - wastedassign
- whitespace - whitespace
- zerologlint - zerologlint
linters-settings: settings:
nakedret: nakedret:
max-func-lines: 100 max-func-lines: 100
tagalign: tagalign:
strict: true strict: true
tagliatelle: tagliatelle:
case: case:
use-field-name: true rules:
rules: json: kebab
json: kebab use-field-name: true
issues: exclusions:
exclude-rules: generated: lax
- path: x/.*/types/message.*\.go presets:
linters: - comments
- dupl - common-false-positives
- path: x/dao/client/cli/query_.*\.go - legacy
linters: - std-error-handling
- dupl rules:
- path: x/dao/client/cli/tx_reissue_rddl.*\.go - linters:
linters: - dupl
- dupl path: x/.*/types/message.*\.go
- path: x/dao/client/cli/*\.go - linters:
linters: - dupl
- revive path: x/dao/client/cli/query_.*\.go
- path: testutil/nullify/nullify\.go - linters:
linters: - dupl
- exhaustive path: x/dao/client/cli/tx_reissue_rddl.*\.go
- path: x/.*/keeper/query.*\.go - linters:
linters: - revive
- dupl path: x/dao/client/cli/*\.go
- paralleltest - linters:
- path: tests/.*/*\.go - exhaustive
linters: path: testutil/nullify/nullify\.go
- paralleltest - linters:
- path: util/machine_nft_test\.go - dupl
linters: - paralleltest
- paralleltest path: x/.*/keeper/query.*\.go
- path: testutil/network/network.go - linters:
linters: - paralleltest
- gocognit path: tests/.*/*\.go
- gocyclo - linters:
- wastedassign - paralleltest
- nestif path: util/machine_nft_test\.go
- path: x/.*/simulation/.*\.go - linters:
linters: - gocognit
- revive - gocyclo
- path: x/.*/module_simulation\.go - nestif
linters: - wastedassign
- revive path: testutil/network/network.go
- path: x/.*/client/cli/query_params\.go - linters:
linters: - revive
- revive path: x/.*/simulation/.*\.go
- path: x/.*/.*/cli/query_.*\.go - linters:
linters: - revive
- revive path: x/.*/module_simulation\.go
- path: docs/docs\.go - linters:
linters: - revive
- revive path: x/.*/client/cli/query_params\.go
- path: util/elementsd_connector_test\.go - linters:
linters: - revive
- paralleltest path: x/.*/.*/cli/query_.*\.go
- path: monitor/mqtt_monitor_test\.go - linters:
linters: - revive
- paralleltest path: docs/docs\.go
- path: monitor/.*\.go - linters:
linters: - paralleltest
- durationcheck path: util/elementsd_connector_test\.go
- linters:
- paralleltest
path: monitor/mqtt_monitor_test\.go
- linters:
- durationcheck
path: monitor/.*\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$

4
go.mod
View File

@ -205,3 +205,7 @@ require (
replace github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 replace github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
replace github.com/planetmint/planetmint-go/lib => ./lib replace github.com/planetmint/planetmint-go/lib => ./lib
replace github.com/coinbase/rosetta-sdk-go => github.com/tkachoff/rosetta-sdk-go v0.0.0-20200409123456-b90b71783ca14a994cb092b2429be4b9fcdfdddf
replace github.com/coinbase/rosetta-sdk-go/types => github.com/coinbase/mesh-sdk-go/types v1.0.0

4
go.sum
View File

@ -338,8 +338,8 @@ github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9D
github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA= github.com/coinbase/mesh-sdk-go/types v1.0.0 h1:CQjX3SnIZvRClvSgjgNDLq342Wn9WNnGnpSfkmMu8nE=
github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= github.com/coinbase/mesh-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c=
github.com/cometbft/cometbft v0.37.5 h1:/U/TlgMh4NdnXNo+YU9T2NMCWyhXNDF34Mx582jlvq0= github.com/cometbft/cometbft v0.37.5 h1:/U/TlgMh4NdnXNo+YU9T2NMCWyhXNDF34Mx582jlvq0=
github.com/cometbft/cometbft v0.37.5/go.mod h1:QC+mU0lBhKn8r9qvmnq53Dmf3DWBt4VtkcKw2C81wxY= github.com/cometbft/cometbft v0.37.5/go.mod h1:QC+mU0lBhKn8r9qvmnq53Dmf3DWBt4VtkcKw2C81wxY=
github.com/cometbft/cometbft-db v0.8.0 h1:vUMDaH3ApkX8m0KZvOFFy9b5DZHBAjsnEuo9AKVZpjo= github.com/cometbft/cometbft-db v0.8.0 h1:vUMDaH3ApkX8m0KZvOFFy9b5DZHBAjsnEuo9AKVZpjo=