Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Rollkit #1274

Closed
wants to merge 132 commits into from
Closed

Rollkit #1274

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
5ff9868
fix(mempool): Re-add locks (#1082)
itsdevbear Sep 7, 2023
7d16e3f
fix(txpool): get state from disk from nonce (#1080)
calbera Sep 7, 2023
1928f4a
fix(pc): handle gas edge case (#1071)
itsdevbear Sep 7, 2023
acb4f0e
revert(pc): Enforce read-only at the container level" (#1089)
ocnc Sep 8, 2023
d71d79b
feat(infra): Support `sync_progress` and reduce spammy tx logs. (#1096)
itsdevbear Sep 13, 2023
2e5d3d3
chore(docs): Berachain Official Discord (#1098)
pucedoteth Sep 14, 2023
f6f9ca1
chore(deps): move to official `cometbft v0.38.0` release (#1099)
itsdevbear Sep 14, 2023
2fbdc19
fix(pc): negative gas consumed. (#1072)
itsdevbear Sep 17, 2023
2b8760c
refactor(node): Deprecate `graphql` (#1101)
itsdevbear Sep 18, 2023
faec924
feat(docs): Add more documentation for the precompiled contracts (#1100)
calbera Sep 18, 2023
c636ad6
fix(statedb): Logs `clone` was not correct. (#1103)
itsdevbear Sep 18, 2023
c5030bd
chore(deps): bump go (#1104)
itsdevbear Sep 18, 2023
7ef4bb8
test: config preblock (#1097)
mmsqe Sep 19, 2023
4927ca8
chore(deps): bump `x/upgrade` (#1106)
itsdevbear Sep 19, 2023
7ad9c84
fix(hive): Improve stability (#1109)
itsdevbear Sep 19, 2023
0c53dfe
fix(hive): hmmm (#1110)
itsdevbear Sep 19, 2023
66b7e38
perf(deps): Improve `go mod tidy` speed and reliability (#1112)
itsdevbear Sep 19, 2023
8e3f783
fix(deps): remove `localnet` as dependency from `cosmos` (#1111)
itsdevbear Sep 19, 2023
ae59de3
perf(node): Reduce size of `WrappedEthereumResponse` to reduce memory…
itsdevbear Sep 19, 2023
5d31fe2
refactor(eth): `txpool` breakout (#1105)
itsdevbear Sep 19, 2023
8ccc9f5
refactor(eth): `miner` breakout (phase 1) (#1107)
itsdevbear Sep 19, 2023
e9c1512
chore(deps): Upgrade `geth` to `v1.13.1` (#1102)
itsdevbear Sep 19, 2023
a6b99f6
refactor(gas): Restructure gas consumption (#1117)
itsdevbear Sep 20, 2023
ef65301
refactor(config): remove `polaris.toml` to simplify infra for brick …
itsdevbear Sep 20, 2023
ae7eb65
fix(cfg): Handle empty DataDir in cfg. (#1133)
itsdevbear Sep 21, 2023
cef9b28
refactor(repo): Remove dead code and minor cleanup (#1134)
itsdevbear Sep 22, 2023
d5824bc
fix(journal): Restructure journals (#1135)
itsdevbear Sep 22, 2023
6a92c39
fix(tstore): journal size
itsdevbear Sep 22, 2023
15c1356
fix(precompile): Fix regression where `eth_call` can cause non-determ…
itsdevbear Sep 24, 2023
326426f
fix(evm): missing things when init or export genesis (#1129)
taeguk Sep 25, 2023
bc36040
Revert "fix(evm): missing things when init or export genesis (#1129)"
itsdevbear Sep 25, 2023
11c5794
fix(evm): revive #1129 (missing things when init or export genesis) (…
calbera Sep 25, 2023
705d983
chore(cleanup): General cleanup (#1137)
itsdevbear Sep 25, 2023
e92222c
chore(deps): Bump cosmos-sdk to `v0.50-rc.1` (#1139)
itsdevbear Sep 25, 2023
042d5e3
feat(actions): daily doc generation, tested and verified with act (#1…
corduroybera Sep 27, 2023
a79fa49
fix(actions): Adding token for docs repo access (#1158)
corduroybera Sep 28, 2023
23cc5f1
fix(cosmos): Deterministically load genesis accounts into StateDB (#1…
calbera Sep 28, 2023
4387ed8
feat(txpool): Handler + Mockery (#1159)
itsdevbear Sep 29, 2023
6ac3465
chore(repo): `x/evm/store -> store`
itsdevbear Sep 29, 2023
b6f379d
feat(txpool): `sdkmempool.Mempool` wrapper. (#1160)
itsdevbear Sep 29, 2023
ccea443
chore(repo): typos
itsdevbear Sep 29, 2023
d08c282
feat(sdb): Return `[]byte{0x01}` for `GetCode(..)` of precompile con…
itsdevbear Sep 29, 2023
b5d1044
chore(txpool): Use updated serializer type (#1162)
itsdevbear Sep 29, 2023
46d455f
feat(txpool): add constructor
itsdevbear Oct 1, 2023
47524ad
refactor(build): Replace `mage` with Makefile (#1163)
itsdevbear Oct 2, 2023
1441a77
fix(make): tidy -> sync on build
itsdevbear Oct 3, 2023
64aed50
fix(distr): filter empty rewards (#1167)
ocnc Oct 4, 2023
06b9163
chore(gov): Minor control flow correction (#1169)
calbera Oct 4, 2023
f8a43fd
feat(txpool): Dev/geth txpool (#1140)
itsdevbear Oct 4, 2023
dc73e16
chore(deps): bump github.com/consensys/gnark-crypto from 0.11.2 to 0.…
dependabot[bot] Oct 4, 2023
6d4aa28
chore(deps): bump github.com/consensys/gnark-crypto from 0.11.2 to 0.…
dependabot[bot] Oct 4, 2023
fbf9de9
chore(deps): bump github.com/consensys/gnark-crypto from 0.11.2 to 0.…
dependabot[bot] Oct 4, 2023
c337c9d
chore(deps): bump github.com/consensys/gnark-crypto from 0.11.2 to 0.…
dependabot[bot] Oct 4, 2023
36e6300
chore(deps): bump github.com/consensys/gnark-crypto from 0.11.2 to 0.…
dependabot[bot] Oct 4, 2023
c1231fa
chore(deps): bump github.com/consensys/gnark-crypto from 0.11.2 to 0.…
dependabot[bot] Oct 4, 2023
2a69ddd
chore(deps): bump zod from 3.20.6 to 3.22.3 in /docs/web (#1180)
dependabot[bot] Oct 4, 2023
acc5528
chore(deps): bump github.com/consensys/gnark-crypto from 0.11.2 to 0.…
dependabot[bot] Oct 4, 2023
d9335a5
fix(linter): golangci-lint `lll` wasn't active (#1170)
itsdevbear Oct 4, 2023
b545063
chore(deps): remove unused `paramskeeper` from testapp (#1171)
itsdevbear Oct 4, 2023
13af722
chore(deps): Remove unused `authz` keeper (#1173)
itsdevbear Oct 4, 2023
d975586
fix(gov): Correctly handle governance messages in proposals (#1182)
calbera Oct 4, 2023
08a86a4
chore(gov): Update the SubmitProposal message to accept a proposer ad…
calbera Oct 5, 2023
8c461b4
refactor(config): Cleanup config (#1185)
itsdevbear Oct 5, 2023
727f004
fix(statedb): `logs` index was lowkey wrong (#1183)
itsdevbear Oct 5, 2023
b363e13
refactor(evm): Modify Precompile Manager Interface (#1188)
itsdevbear Oct 6, 2023
910618d
fix(linter): ran on generated files
itsdevbear Oct 6, 2023
7edaa19
chore(mocks): regenerate and clean mocks
itsdevbear Oct 6, 2023
a64844c
chore(app): Remove`deadcode` (#1189)
itsdevbear Oct 6, 2023
5dcdec1
fix(4node): Fix 4 node testnet (#1190)
itsdevbear Oct 6, 2023
5a93af9
feat(abci): Utilize geth `miner` to build blocks (#1165)
itsdevbear Oct 6, 2023
8af2321
refactor(signing): remove `polar` and `eth_secp256k1` (#1191)
itsdevbear Oct 7, 2023
92ace99
chore(deps): go mod tidy sync
itsdevbear Oct 7, 2023
4a587ed
chore(fmt): formatting
itsdevbear Oct 7, 2023
374db5a
refactor(hive): Remove hardcoded config files. (#1192)
itsdevbear Oct 8, 2023
b462104
chore(deps): bump geth to `v1.13.2` (#1193)
itsdevbear Oct 8, 2023
348b172
chore(testing): remove unused code
itsdevbear Oct 8, 2023
cc9e8f7
refactor(testing): Multi and KVStore testing improvements (#1194)
itsdevbear Oct 8, 2023
7b31a36
chore(testing): more general cleanup
itsdevbear Oct 9, 2023
4175276
chore(testing): additional cleanup
itsdevbear Oct 9, 2023
96e1b88
chore(repo): cleanup
itsdevbear Oct 9, 2023
63876cd
chore(gov): Convert `uint8[]` to `bytes` for Message value bz (#1211)
calbera Oct 10, 2023
14bbbbd
feat(miner): 1 Block == 1 Txn (#1166)
itsdevbear Oct 10, 2023
a5ed999
fix(script): fix scripts in docker (#1213)
BrickBera Oct 10, 2023
63d98bc
refactor(ante): Remove ante handler as it is not needed (#1214)
itsdevbear Oct 11, 2023
05b91e4
chore(deps): bump `golang.org/x/net`
itsdevbear Oct 12, 2023
c1edabd
feat(runtime): Polaris Runtime Module (#1215)
itsdevbear Oct 12, 2023
24fa5d1
fix(rpc): fix estimate gas
itsdevbear Oct 12, 2023
85b7adc
refactor(chain): improve log string
itsdevbear Oct 12, 2023
f7e455f
chore(app): Setup app better. (#1224)
itsdevbear Oct 13, 2023
7390bc7
refactor(x/evm): improve genesis tests slightly
itsdevbear Oct 13, 2023
6b80065
fix(test): genesis naming
itsdevbear Oct 13, 2023
6e20f9a
chore(deps-dev): bump undici from 5.22.1 to 5.26.3 in /contracts (#1229)
dependabot[bot] Oct 16, 2023
1aa969f
chore(deps): bump @babel/traverse from 7.21.2 to 7.23.2 in /docs/web …
dependabot[bot] Oct 16, 2023
dcc8270
refactor(evm): Deprecate engine plugin + allow custom `consensus.Engi…
itsdevbear Oct 16, 2023
a7d688f
refactor(docs): move to `docs-monorepo` (#1232)
itsdevbear Oct 17, 2023
2a687a2
chore(docs): finish migration to `docs-monorepo`
itsdevbear Oct 17, 2023
d49ee37
perf(comet): Eject the comet mempool on `ReCheckTx` to keep it clean …
itsdevbear Oct 19, 2023
96105b7
state plugin bug
itsdevbear Oct 20, 2023
4791ffd
fix(mempool): Remove from mempool after a while (#1239)
itsdevbear Oct 20, 2023
63e653f
fix(statedb): fix query regression
itsdevbear Oct 20, 2023
7d6dcdc
fix(statedb): fix query regression
itsdevbear Oct 20, 2023
b049e08
fix(statedb): fix query regression
itsdevbear Oct 20, 2023
4066dfb
fix(gossip): setup context in ante handler
itsdevbear Oct 20, 2023
8a2aff3
fix(localnet): Fix race condition in test (#1241)
itsdevbear Oct 21, 2023
216cf48
fix(sdb): CreateAccount should check for existence before creating. (…
itsdevbear Oct 22, 2023
12f300b
perf(handler): add retry logic to broadcasting to cometbft mempool (#…
itsdevbear Oct 23, 2023
ccc21f7
feat(handler): improve logging
itsdevbear Oct 23, 2023
bf146d5
fix(sdb): only set account keeper if nil
itsdevbear Oct 23, 2023
9c4e32c
fix(miner): Fix non-deterministic gas consumption. (#1247)
itsdevbear Oct 24, 2023
febc5a6
fix: typos (#1250)
shuoer86 Oct 25, 2023
0cebf87
feat: upgrade Rollkit x Polaris "rollkit" branch (#1083)
jcstein Sep 7, 2023
2a9e87a
chore: remove unused init.sh script
jcstein Sep 12, 2023
1283c84
chore: upgrade rollkit/cosmos-sdk in cosmos/go.mod
jcstein Oct 2, 2023
af6c2a1
upgrade to rollkit/cosmos-sdk latest release with upstream changes
Oct 26, 2023
f166913
Merge remote-tracking branch 'upstream/rollkit' into rollkit
Oct 26, 2023
e0dc7de
chore(config): reduce default miner gas-price default
itsdevbear Oct 26, 2023
d34a732
Revert "chore(config): reduce default miner gas-price default"
itsdevbear Oct 26, 2023
7dd6df9
chore(test): fix typo in contracts/src/testing/DistributionWrapper.so…
xiaolou86 Oct 27, 2023
9c25a75
fix(miner): Do not use pending block for now (#1255)
itsdevbear Oct 30, 2023
9e9c64f
chore(deps): bump github.com/docker/docker from 24.0.5+incompatible t…
dependabot[bot] Oct 31, 2023
e2202a1
chore(deps): bump github.com/docker/docker from 24.0.5+incompatible t…
dependabot[bot] Oct 31, 2023
4742e24
fix(miner): Use pending block and add nil check. (#1262)
itsdevbear Oct 31, 2023
f3bf0d0
chore(actions): bump setup-go (#1263)
itsdevbear Oct 31, 2023
f659c51
chore(deps): bump internal deps
itsdevbear Oct 31, 2023
e29bc32
feat(keys): return of the `eth_secp256k1` (#1264)
itsdevbear Nov 1, 2023
b5236fe
chore(deps): bump github.com/btcsuite/btcd from 0.23.0 to 0.23.2 in /…
dependabot[bot] Nov 1, 2023
949a826
refactor(blockchain): Minor cleanup and add safety checks. (#1266)
itsdevbear Nov 1, 2023
bcbdd0d
fix(miner): Reset gas meter in prepare proposal. (#1270)
itsdevbear Nov 2, 2023
06b11bf
refactor(x/evm): move precommit to end block (#1271)
itsdevbear Nov 2, 2023
a097397
fix(x/evm): return error properly
itsdevbear Nov 2, 2023
3f15a11
fix(chain): Fake FinalizeBlock in PrepareProposal (#1272)
itsdevbear Nov 2, 2023
062859a
Merge remote-tracking branch 'origin/main' into rollkit
Nov 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 1 addition & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# fail-fast: false
# matrix:
# language: ["go"]
# versions: [1.21.0]
# versions: [1.21.3]
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# # Use only 'java' to analyze code written in Java, Kotlin or both
# # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
Expand Down Expand Up @@ -79,9 +79,6 @@
# key: ${{ runner.os }}-golang-codeql-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-golang-codeql-
# - name: Install Go Tools
# run: |
# go run magefiles/setup/setup.go ci

# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v2
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: daily

on:
schedule:
- cron: '0 0 * * *' # This schedule runs the workflow daily at midnight UTC

jobs:
docs:
strategy:
matrix:
go-version: [1.21.3]
python-version: [3.11.5]
runs-on: ubuntu-latest
steps:
- name: Checkout polaris
uses: actions/checkout@v3
with:
path: polaris
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Forge doc
run: |
cd polaris
forge doc
- name: Checkout docs-monorepo
uses: actions/checkout@v3
with:
repository: berachain/docs-monorepo
token: ${{ secrets.DOCS_TOKEN }}
path: docs-monorepo
ref: main
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Generate docs
run: |
cd docs-monorepo
pip install -r apps/digest/requirements.txt
python apps/digest/main.py polaris
git status
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update docs with Polaris changes
repository: docs-monorepo
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

114 changes: 43 additions & 71 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,35 @@ jobs:
build-base:
strategy:
matrix:
namespace: [cosmos]
docker-version: [base]
docker-type: [base] # Changed docker-version to docker-type for consistency with the Makefile
os: [polaris-linux-latest]
go-version: [1.21.0]
go-arch: [amd64]
go-version: [1.21.3]
arch: [amd64] # Changed go-arch to arch for consistency with the Makefile
image-name: ["polard/base:v0.0.0"]
export-name: [base-image]
runs-on: polaris-linux-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Run ${{ matrix.namespace }}:docker ${{ matrix.docker-version }} ${{ matrix.go-arch }}
uses: magefile/mage-action@v2
with:
version: latest
args: ${{ matrix.namespace }}:docker ${{ matrix.docker-version }} ${{ matrix.go-arch }}

- name: Build Docker Image using Makefile
run: make docker-build DOCKER_TYPE=${{ matrix.docker-type }} ARCH=${{ matrix.arch }} GO_VERSION=${{ matrix.go-version }}
env:
GOPATH: /home/runner/go

- name: Save base image
run: docker save ${{ matrix.image-name }} -o ${{ matrix.export-name }}.tar

- name: Upload image artifact
uses: actions/upload-artifact@v2
with:
Expand All @@ -67,38 +70,44 @@ jobs:
strategy:
matrix:
namespace: [cosmos]
docker-version: [localnet]
docker-type: [localnet] # Changed docker-version to docker-type for consistency with the Makefile
os: [polaris-linux-latest]
go-version: [1.21.0]
go-arch: [amd64]
go-version: [1.21.3]
arch: [amd64] # Changed go-arch to arch for consistency with the Makefile
base-image: [base-image]
image-name: ["polard/localnet:v0.0.0"]
export-name: [localnet]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Download image artifact
uses: actions/download-artifact@v2
with:
name: ${{ matrix.base-image }}

- name: Load image
run: docker load -i ${{ matrix.base-image }}.tar
- name: Run ${{ matrix.namespace }}:docker ${{ matrix.docker-version }} ${{ matrix.go-arch }}
uses: magefile/mage-action@v2
with:
version: latest
args: ${{ matrix.namespace }}:docker ${{ matrix.docker-version }} ${{ matrix.go-arch }}

- name: Build Docker Image using Makefile
run: make docker-build DOCKER_TYPE=${{ matrix.docker-type }} ARCH=${{ matrix.arch }} GO_VERSION=${{ matrix.go-version }}
env:
GOPATH: /home/runner/go

- name: Save base image
run: docker save ${{ matrix.image-name }} -o ${{ matrix.export-name }}.tar

- name: Upload image artifact
uses: actions/upload-artifact@v2
with:
Expand All @@ -109,93 +118,56 @@ jobs:
needs: build-base
strategy:
matrix:
simulator: [polaris/rpc, polaris/graphql]
namespace: [cosmos]
os: [polaris-linux-latest]
go-version: [1.21.0]
go-version: [1.21.3]
base-image: [base-image]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Download image artifact
uses: actions/download-artifact@v2
with:
name: ${{ matrix.base-image }}
- name: Load image
run: docker load -i ${{ matrix.base-image }}.tar
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run ${{ matrix.namespace }}:testhive ${{ matrix.simulator }}
uses: magefile/mage-action@v2
with:
version: latest
args: ${{ matrix.namespace }}:testhive ${{ matrix.simulator }}
- name: Run `make test-hive`
run: make hive-setup test-hive
env:
GOPATH: /home/runner/go

ci:
needs: build-localnet
strategy:
matrix:
namespace: ["", "localnet"]
namespace: ["e2e", "localnet"]
os: [polaris-linux-latest]
go-version: [1.21.0]
go-version: [1.21.3]
base-image: [localnet]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
check-latest: true
cache-dependency-path: "**/*.sum"
- name: Download image artifact
uses: actions/download-artifact@v2
with:
name: ${{ matrix.base-image }}
- name: Load image
run: docker load -i ${{ matrix.base-image }}.tar
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Install Go Tools
run: |
go run magefiles/setup/setup.go ci
- name: Run ${{ matrix.namespace }}:test
uses: magefile/mage-action@v2
with:
version: latest
args: ${{ matrix.namespace }}:test
env:
GOPATH: /home/runner/go
if: ${{ matrix.namespace == 'localnet' }}
- name: Run teste2e
uses: magefile/mage-action@v2
with:
version: latest
args: teste2e
- name: Run ${{ matrix.namespace }}
run: make test-${{ matrix.namespace }}
env:
GOPATH: /home/runner/go
if: ${{ matrix.namespace == '' }}
29 changes: 9 additions & 20 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,25 @@ jobs:
ci:
strategy:
matrix:
args: ["build", "lint", "testunitrace", "testunitcover"]
args: ["build", "lint", "test-unit-race", "test-unit-cover"]
os: [polaris-linux-latest]
go-version: [1.21.0]
go-version: [1.21.3]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Install Go Tools
run: |
go run magefiles/setup/setup.go ci
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Run ${{ matrix.args }}
uses: magefile/mage-action@v2
with:
version: latest
args: ${{ matrix.args }}
run: |
make ${{ matrix.args }}
env:
GOPATH: /home/runner/go
- name: Archive code coverage results
Expand All @@ -68,7 +57,7 @@ jobs:
name: code-coverage-report
path: coverage-${{ matrix.args }}.txt
retention-days: 1
if: ${{ matrix.args == 'testunitcover' }}
if: ${{ matrix.args == 'test-unit-cover' }}

codecov:
name: codecov(uploader, polaris-linux-latest)
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,4 @@ artifacts
**/cache/

# integration testing coverage
coverage-testunitcover.txt
coverage-teste2ecover.txt
coverage-test-unit-cover.txt
15 changes: 9 additions & 6 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,14 @@ linters-settings:
# Default: false
strict: true

# max line length, lines longer will be reported. Default is 120.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option
line-length: 99
# tab width in spaces. Default to 1.
tab-width: 1
lll:
# Max line length, lines longer will be reported.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option.
# Default: 120.
line-length: 99
# Tab width in spaces.
# Default: 1
tab-width: 1

nakedret:
# Make an issue if func has more lines of code than this setting, and it has naked returns.
Expand Down Expand Up @@ -320,7 +323,7 @@ issues:
max-same-issues: 50

exclude-rules:
- path: "magefiles/.*\\.go"
- path: "tools/.*\\.go"
linters: [forbidigo]
- path: "mock/.*\\.go"
linters: [funlen]
Expand Down
21 changes: 21 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dir: "{{.InterfaceDir}}/mocks"
mockname: "{{.InterfaceNameCamel}}"
filename: "{{.InterfaceNameSnake}}.go"
outpkg: "mocks"
packages:
pkg.berachain.dev/polaris/cosmos/config:
config:
recursive: True
with-expecter: true
all: True
pkg.berachain.dev/polaris/cosmos/txpool:
config:
recursive: True
with-expecter: true
all: True
pkg.berachain.dev/polaris/eth/core/state:
config:
recursive: True
with-expecter: true
all: True

Loading
Loading