-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(api): websocket bytes encode * fix: fixed transaction & receipt retrieve issue for customized verification transactions when state pruned * fix: gov minum deposite demon * feat: added support for evm transient storage * feat: convert hardfork block number to time * fix: added journal entry for transient storage operation * fix: add some comments * fix: replace iavl & artela-cosmos-sdk with local repo (#119) * feat: add gas measurement for aspect core contract * fix: optimize logs * fix: fix deploy aspect gas cost too high issue * fix: fix deployment join point decode issue * fix: optimized gas cost and fixed unbinding issue * fix: jit call can be only triggered at pre-/post-contract call * fix: replace aspect-core for new apis (#123) * fix: add a debug tool converting cosmos tx to ethereum tx (#124) * fix: call db compaction (#128) * fix: fix trace api determinism issue (#135) * feat: update bytecode validation method (#136) * fix: fix code validation panic issue * feat: change module validation method * feat: load compressed bytecode with brotli (#137) * fix: fix gas estimation inaccuracy (#140) * fix: fix gas estimation in-accuracy issue * fix: fix verifier tx estimation gas issue * feat: add constructor (#141) * merge: rebase main * feat: add trace for aspect (#144) * feat: init evm native tracers * feat: added aspect call trace * fix: trigger post tx execute when tx not reverted * fix: fix execution context json marshal format issue * add upgrade handler to v1 (#145) * migrate evm from 6 to 7 (#147) * fix: incorrect use of errorsmod (#148) * add cache for aspect verifier (#149) * fix: fix staging test issues (#150) * fix: fix panic issue when query empty aspect bound contracts * fix: fixed some corner cases in binding * fix: fix change version fail * fix: fixed some minor issues * fix: fixed aspect core issues * fix: change version to no-joinpoint aspect issue * add upgrade handler to v.4.8-rc8 (#152) * fix: handle error of json-rpc calls (#153) * fix: lint issues (#154) * fix: fix most of the linting issues * fix: fix most of the linting issues * fix: format imports (#155) --------- Co-authored-by: Luke <[email protected]> * feat: return aspect id in receipt (#156) * chroe/bump: bump to v0.4.8-rc8 --------- Co-authored-by: zhanjun <[email protected]> Co-authored-by: dumbeng <[email protected]> Co-authored-by: Luke <[email protected]> Co-authored-by: No-Brainer <[email protected]> Co-authored-by: Gene <[email protected]>
- Loading branch information
1 parent
2857a2b
commit 5d73109
Showing
168 changed files
with
3,384 additions
and
2,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,80 @@ | ||
# Refer to golangci-lint's example config file for more options and information: | ||
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml | ||
|
||
run: | ||
timeout: 20m | ||
tests: true | ||
# default is true. Enables skipping of directories: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs-use-default: true | ||
skip-files: | ||
- core/genesis_alloc.go | ||
modules-download-mode: readonly | ||
|
||
tests: false | ||
timeout: 5m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- depguard | ||
- dogsled | ||
- exportloopref | ||
- goconst | ||
- gocritic | ||
- gofumpt | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- nolintlint | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unused | ||
linters: | ||
enable: | ||
- bodyclose | ||
- dogsled | ||
- dupl | ||
- errcheck | ||
- goconst | ||
- gocritic | ||
- revive | ||
- gosec | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- prealloc | ||
- exportloopref | ||
- staticcheck | ||
- stylecheck | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- nolintlint | ||
- asciicheck | ||
- exportloopref | ||
- whitespace | ||
# - gomodguard # TODO: disable for now, too many false positives | ||
# - gofumpt # TODO: rules too strict fix all the errors later | ||
# - depguard # TODO: enable depguard later, it reports too many false positives | ||
# - lll # TODO: enable lll linter later, long text sometimes is not avoidable | ||
|
||
issues: | ||
exclude-rules: | ||
- text: "Use of weak random number generator" | ||
linters: | ||
- gosec | ||
- text: "ST1003:" | ||
linters: | ||
- stylecheck | ||
# FIXME: Disabled until golangci-lint updates stylecheck with this fix: | ||
# https://github.com/dominikh/go-tools/issues/389 | ||
- text: "ST1016:" | ||
linters: | ||
- stylecheck | ||
- path: "migrations" | ||
text: "SA1019:" | ||
linters: | ||
- staticcheck | ||
- path: crypto/bn256/cloudflare/optate.go | ||
linters: | ||
- deadcode | ||
- staticcheck | ||
- path: internal/build/pgp.go | ||
text: 'SA1019: "golang.org/x/crypto/openpgp" is deprecated: this package is unmaintained except for security fixes.' | ||
- path: core/vm/contracts.go | ||
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.' | ||
- path: accounts/usbwallet/trezor.go | ||
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.' | ||
- path: accounts/usbwallet/trezor/ | ||
text: 'SA1019: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead.' | ||
exclude: | ||
- 'SA1019: event.TypeMux is deprecated: use Feed' | ||
- 'SA1019: strings.Title is deprecated' | ||
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.' | ||
- 'SA1029: should not use built-in type string as key for value' | ||
max-issues-per-linter: 10000 | ||
max-same-issues: 10000 | ||
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
linters: | ||
- gosec | ||
- path: x/evm/artela/contract/handlers.go | ||
linters: | ||
- nakedret | ||
- path: _pb\.go | ||
linters: | ||
- gosec | ||
- linters: | ||
- lll | ||
source: "https://" | ||
max-same-issues: 50 | ||
|
||
linters-settings: | ||
dogsled: | ||
max-blank-identifiers: 3 | ||
maligned: | ||
# print struct with more effective memory layout or not, false by default | ||
suggest-new: true | ||
nolintlint: | ||
allow-unused: false | ||
allow-leading-space: true | ||
require-explanation: false | ||
require-specific: false | ||
linters-settings: | ||
lll: | ||
line-length: 150 | ||
dogsled: | ||
max-blank-identifiers: 3 | ||
golint: | ||
min-confidence: 0 | ||
maligned: | ||
suggest-new: true | ||
gocritic: | ||
disabled-checks: | ||
- ifElseChain | ||
misspell: | ||
locale: US | ||
nolintlint: | ||
allow-unused: false | ||
allow-leading-space: true | ||
require-explanation: false | ||
require-specific: false | ||
# gomodguard: | ||
# blocked: | ||
# versions: # List of blocked module version constraints | ||
# - https://github.com/etcd-io/etcd: # Blocked module with version constraint | ||
# version: ">= 3.4.10 || ~3.3.23" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons | ||
# reason: "CVE-2020-15114; CVE-2020-15136; CVE-2020-15115" # Reason why the version constraint exists. (Optional) | ||
# - https://github.com/dgrijalva/jwt-go: # Blocked module with version constraint | ||
# version: ">= 4.0.0-preview1" # Version constraint, see https://github.com/Masterminds/semver#basic-comparisons | ||
# reason: "CVE-2020-26160" # Reason why the version constraint exists. (Optional) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.