Skip to content

Commit b6cff03

Browse files
authored
Merge pull request #321 from bandprotocol/extra-rest-47
[Extra/rest] Merge from master (bump to cosmos 0.47)
2 parents 05234a8 + 6e8adee commit b6cff03

File tree

284 files changed

+21303
-8585
lines changed

Some content is hidden

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

284 files changed

+21303
-8585
lines changed

.clang-format

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
---
2+
Language: Proto
3+
BasedOnStyle: Google
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+
---
116+

.github/dependabot.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Please see the documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: "/"
8+
schedule:
9+
interval: daily
10+
time: "03:00"
11+
reviewers:
12+
- "RogerKSI"
13+
- "taobun"
14+
15+
- package-ecosystem: gomod
16+
directory: "/"
17+
schedule:
18+
interval: daily
19+
time: "03:05"
20+
ignore:
21+
- dependency-name: "cosmossdk.io/*"
22+
update-types:
23+
["version-update:semver-major", "version-update:semver-minor"]
24+
- dependency-name: "github.com/cosmos/cosmos-sdk"
25+
update-types:
26+
["version-update:semver-major", "version-update:semver-minor"]
27+
- dependency-name: "github.com/cometbft/*"
28+
update-types:
29+
["version-update:semver-major", "version-update:semver-minor"]
30+
reviewers:
31+
- "RogerKSI"
32+
- "taobun"

.github/workflows/ci.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
name: Tests
2-
on: push
2+
on: pull_request
33

44
jobs:
55
chain-test:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Code checkout
9-
uses: actions/checkout@v2
9+
uses: actions/checkout@v4
1010

1111
- name: Install Go
12-
uses: actions/setup-go@v2
12+
uses: actions/setup-go@v5
1313
with:
14-
go-version: '1.19.1'
15-
16-
- name: Install Wabt (wat2wasm)
17-
run: |
18-
wget https://github.com/WebAssembly/wabt/releases/download/1.0.17/wabt-1.0.17-ubuntu.tar.gz
19-
tar -zxf wabt-1.0.17-ubuntu.tar.gz
20-
sudo cp wabt-1.0.17/bin/wat2wasm /usr/local/bin
14+
go-version: '1.21.7'
2115

2216
- name: Check go mod cache
23-
uses: actions/cache@v1
17+
uses: actions/cache@v4
2418
with:
2519
path: ~/go/pkg/mod
2620
key: ${{ runner.os }}-chain-${{ hashFiles('**/go.sum') }}

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ jobs:
55
lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/setup-go@v3
8+
- uses: actions/setup-go@v5
99
with:
10-
go-version: 1.19.1
11-
- uses: actions/checkout@v3
10+
go-version: 1.21.7
11+
- uses: actions/checkout@v4
1212
- name: golangci-lint
13-
uses: golangci/golangci-lint-action@v3
13+
uses: golangci/golangci-lint-action@v5
1414
with:
15-
version: v1.49
15+
version: v1.55.2
1616
args: --timeout=5m0s

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Build statically linked binaries
1616
run: |
@@ -25,7 +25,7 @@ jobs:
2525
run: sha256sum * > checksums.txt && cat checksums.txt
2626

2727
- name: Release
28-
uses: softprops/action-gh-release@v1
28+
uses: softprops/action-gh-release@v2
2929
with:
3030
files: |
3131
artifacts/**

.github/workflows/simulation.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Simulation
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-go@v5
11+
with:
12+
go-version: "1.21.7"
13+
check-latest: true
14+
- name: Install runsim
15+
run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0
16+
- uses: actions/cache@v4
17+
with:
18+
path: ~/go/bin
19+
key: ${{ runner.os }}-go-binary
20+
21+
test-sim-import-export:
22+
runs-on: ubuntu-latest
23+
needs: [build]
24+
timeout-minutes: 45
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-go@v5
28+
with:
29+
go-version: "1.21.7"
30+
check-latest: true
31+
- uses: actions/cache@v4
32+
with:
33+
path: ~/go/bin
34+
key: ${{ runner.os }}-go-binary
35+
- name: test-sim-import-export
36+
run: |
37+
make test-sim-import-export
38+
39+
test-sim-after-import:
40+
runs-on: ubuntu-latest
41+
needs: [build]
42+
timeout-minutes: 45
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-go@v5
46+
with:
47+
go-version: "1.21.7"
48+
check-latest: true
49+
- uses: actions/cache@v4
50+
with:
51+
path: ~/go/bin
52+
key: ${{ runner.os }}-go-binary
53+
- name: test-sim-after-import
54+
run: |
55+
make test-sim-after-import
56+
57+
test-sim-multi-seed-short:
58+
runs-on: ubuntu-latest
59+
needs: [build]
60+
timeout-minutes: 45
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: actions/setup-go@v5
64+
with:
65+
go-version: "1.21.7"
66+
check-latest: true
67+
- uses: actions/cache@v4
68+
with:
69+
path: ~/go/bin
70+
key: ${{ runner.os }}-go-binary
71+
- name: test-sim-multi-seed-short
72+
run: |
73+
make test-sim-multi-seed-short
74+
75+
test-sim-deterministic:
76+
runs-on: ubuntu-latest
77+
needs: [build]
78+
timeout-minutes: 45
79+
steps:
80+
- uses: actions/checkout@v4
81+
- uses: actions/setup-go@v5
82+
with:
83+
go-version: "1.21.7"
84+
check-latest: true
85+
- uses: actions/cache@v4
86+
with:
87+
path: ~/go/bin
88+
key: ${{ runner.os }}-go-binary
89+
- name: test-sim-deterministic
90+
run: |
91+
make test-sim-deterministic

.github/workflows/update-extra-rest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# Steps represent a sequence of tasks that will be executed as part of the job
2222
steps:
2323
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525
with:
2626
ref: extra/rest
2727
fetch-depth: 0

0 commit comments

Comments
 (0)