Skip to content

Commit 71d004c

Browse files
committed
Initial Commit
1 parent dcd7ee9 commit 71d004c

File tree

684 files changed

+233446
-670
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

684 files changed

+233446
-670
lines changed

.bencher/config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Configuration docs: https://bencher.orijtech.com/configuration/
2+
suppress_failure_on_regression: false
3+
global:
4+
reg_min: 10
5+
imp_min: -10

.clang-format

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
Language: Proto
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: true
7+
AlignConsecutiveDeclarations: true
8+
AlignEscapedNewlines: Right
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: true
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: Empty
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: false
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterClass: false
25+
AfterControlStatement: false
26+
AfterEnum: false
27+
AfterFunction: false
28+
AfterNamespace: false
29+
AfterObjCDeclaration: false
30+
AfterStruct: false
31+
AfterUnion: false
32+
AfterExternBlock: false
33+
BeforeCatch: false
34+
BeforeElse: false
35+
IndentBraces: false
36+
SplitEmptyFunction: true
37+
SplitEmptyRecord: true
38+
SplitEmptyNamespace: true
39+
BreakBeforeBinaryOperators: None
40+
BreakBeforeBraces: Attach
41+
BreakBeforeInheritanceComma: false
42+
BreakBeforeTernaryOperators: true
43+
BreakConstructorInitializersBeforeComma: false
44+
BreakConstructorInitializers: BeforeColon
45+
BreakAfterJavaFieldAnnotations: false
46+
BreakStringLiterals: true
47+
ColumnLimit: 120
48+
CommentPragmas: '^ IWYU pragma:'
49+
CompactNamespaces: false
50+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
51+
ConstructorInitializerIndentWidth: 4
52+
ContinuationIndentWidth: 4
53+
Cpp11BracedListStyle: true
54+
DerivePointerAlignment: false
55+
DisableFormat: false
56+
ExperimentalAutoDetectBinPacking: false
57+
FixNamespaceComments: true
58+
ForEachMacros:
59+
- foreach
60+
- Q_FOREACH
61+
- BOOST_FOREACH
62+
IncludeBlocks: Preserve
63+
IncludeCategories:
64+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
65+
Priority: 2
66+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
67+
Priority: 3
68+
- Regex: '.*'
69+
Priority: 1
70+
IncludeIsMainRegex: '(Test)?$'
71+
IndentCaseLabels: false
72+
IndentPPDirectives: None
73+
IndentWidth: 2
74+
IndentWrappedFunctionNames: false
75+
JavaScriptQuotes: Leave
76+
JavaScriptWrapImports: true
77+
KeepEmptyLinesAtTheStartOfBlocks: true
78+
MacroBlockBegin: ''
79+
MacroBlockEnd: ''
80+
MaxEmptyLinesToKeep: 1
81+
NamespaceIndentation: None
82+
ObjCBlockIndentWidth: 2
83+
ObjCSpaceAfterProperty: false
84+
ObjCSpaceBeforeProtocolList: true
85+
PenaltyBreakAssignment: 2
86+
PenaltyBreakBeforeFirstCallParameter: 19
87+
PenaltyBreakComment: 300
88+
PenaltyBreakFirstLessLess: 120
89+
PenaltyBreakString: 1000
90+
PenaltyExcessCharacter: 1000000
91+
PenaltyReturnTypeOnItsOwnLine: 60
92+
PointerAlignment: Right
93+
RawStringFormats:
94+
- Delimiters:
95+
- pb
96+
Language: TextProto
97+
BasedOnStyle: google
98+
ReflowComments: true
99+
SortIncludes: true
100+
SortUsingDeclarations: true
101+
SpaceAfterCStyleCast: false
102+
SpaceAfterTemplateKeyword: true
103+
SpaceBeforeAssignmentOperators: true
104+
SpaceBeforeParens: ControlStatements
105+
SpaceInEmptyParentheses: false
106+
SpacesBeforeTrailingComments: 1
107+
SpacesInAngles: false
108+
SpacesInContainerLiterals: false
109+
SpacesInCStyleCastParentheses: false
110+
SpacesInParentheses: false
111+
SpacesInSquareBrackets: false
112+
Standard: Cpp11
113+
TabWidth: 8
114+
UseTab: Never
115+
...

.dockerignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# localnet-setup
2+
localnet-setup
3+
4+
# build
5+
build

.flake8

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E203
4+
exclude = .git,__pycache__,node_modules,.direnv

.gitattributes

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
client/docs/swagger-ui/* linguist-vendored
2+
client/docs/statik/* linguist-vendored
3+
third-party/* linguist-vendored
4+
client/docs/* linguist-documentation
5+
docs/* linguist-documentation
6+
x/**/spec/* linguist-documentation
7+
**/*.pb.go linguist-generated
8+
**/*.pb.gw.go linguist-generated

.github/CODEOWNERS

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
2+
3+
# Primary (global) repo maintainers
4+
* @RAMPAGEXP

.github/ISSUE_TEMPLATE/bug-report.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Bug Report
3+
about: create a bug report
4+
---
5+
6+
__System info:__ [Include Ethermint commit, operating system name, and other relevant details]
7+
8+
__Steps to reproduce:__
9+
10+
1. [First Step]
11+
2. [Second Step]
12+
3. [and so on...]
13+
14+
__Expected behavior:__ [What you expected to happen]
15+
16+
__Actual behavior:__ [What actually happened]
17+
18+
__Additional info:__ [Include gist of relevant config, logs, etc.]
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Feature request
3+
about: Opening a feature request kicks off a discussion
4+
5+
---
6+
7+
__Proposal:__ [Description of the feature]
8+
9+
__Current behavior:__ [What currently happens]
10+
11+
__Desired behavior:__ [What you would like to happen]
12+
13+
__Use case:__ [Why is this important (helps with prioritizing requests)]
14+
15+
Requests may be closed if we're not actively planning to work on them.

.github/PULL_REQUEST_TEMPLATE.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
2+
v ✰ Thanks for creating a PR! ✰
3+
v Before smashing the submit button please review the checkboxes.
4+
v If a checkbox is n/a - please still include it but + a little note why
5+
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->
6+
7+
Closes: #XXX
8+
9+
## Description
10+
11+
<!-- Add a description of the changes that this PR introduces and the files that
12+
are the most critical to review.
13+
-->
14+
15+
______
16+
17+
For contributor use:
18+
19+
- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
20+
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
21+
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
22+
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
23+
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
24+
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
25+
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
26+
- [ ] Re-reviewed `Files changed` in the Github PR explorer
27+
28+
______
29+
30+
For admin use:
31+
32+
- [ ] Added appropriate labels to PR (ex. `WIP`, `R4R`, `docs`, etc)
33+
- [ ] Reviewers assigned
34+
- [ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr))

.github/dependabot.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "10:00"
8+
open-pull-requests-limit: 10
9+
reviewers:
10+
- fedekunze
11+
- khoslaventures
12+
labels:
13+
- dependencies
14+
- package-ecosystem: docker
15+
directory: "/"
16+
schedule:
17+
interval: daily
18+
time: "10:00"
19+
open-pull-requests-limit: 10
20+
reviewers:
21+
- fedekunze
22+
- khoslaventures
23+
- package-ecosystem: gomod
24+
directory: "/"
25+
schedule:
26+
interval: daily
27+
time: "10:00"
28+
open-pull-requests-limit: 10

.github/labeler.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
"C:Crypto":
2+
- crypto/**/*
3+
"C:Encoding":
4+
- encoding/**/*
5+
"C:JSON-RPC":
6+
- ethereum/rpc/**/*
7+
"C:Proto":
8+
- proto/**/*
9+
- third_party/**/*
10+
- /**/*.pb.go
11+
- /**/*.pb.gw.go
12+
"C:Types":
13+
- types/**/*
14+
"C:x/evm":
15+
- x/evm/**/*/
16+
"Type: Build":
17+
- Makefile
18+
- Dockerfile
19+
- docker-compose.yml
20+
- scripts/*
21+
- config.yml
22+
"Type: CI":
23+
- .github/**/*.yml
24+
- buf.yaml
25+
- .mergify.yml
26+
- .golangci.yml
27+
"C:CLI":
28+
- client/**/*
29+
- x/*/client/**/*
30+
"Type: Tests":
31+
- tests/**/*
32+
- /**/*/*_test.go
33+
"Type: Docs":
34+
- docs/**/*
35+
- x/*/spec/**/*
36+
"Type: ADR":
37+
- docs/architecture/**/*

.github/workflows/build.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
cleanup-runs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: rokroskar/workflow-run-cleanup-action@master
12+
env:
13+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
14+
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
15+
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-go@v3
21+
with:
22+
go-version: 1.18
23+
check-latest: true
24+
- uses: technote-space/[email protected]
25+
id: git_diff
26+
with:
27+
PATTERNS: |
28+
**/**.go
29+
go.mod
30+
go.sum
31+
- run: |
32+
make build
33+
if: env.GIT_DIFF

.github/workflows/codeql-analysis.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '37 21 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'go' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v3
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v2
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v2
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)