Skip to content

Commit 13e84c4

Browse files
committed
Merge branch 'main' into aaronc/schema-api-types
2 parents c1a0ccd + 7c6e038 commit 13e84c4

File tree

989 files changed

+31032
-30195
lines changed

Some content is hidden

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

989 files changed

+31032
-30195
lines changed

.github/CODEOWNERS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
/server/v2/stf/ @testinginprod @kocubinski @cosmos/sdk-core-dev
3030
/server/v2/appmanager/ @testinginprod @facundomedica @cosmos/sdk-core-dev
3131
/server/v2/cometbft/ @facundomedica @sontrinh16 @cosmos/sdk-core-dev
32+
/simsx @alpe @facundomedica @kocubinski @cosmos/sdk-core-dev
3233
/simapp/ @facundomedica @julienrbrt @cosmos/sdk-core-dev
3334
/simapp/v2/ @kocubinski @julienrbrt @cosmos/sdk-core-dev
3435
/store/ @cool-develope @kocubinski @cosmos/sdk-core-dev
@@ -37,13 +38,16 @@
3738
/tools/hubl @julienrbrt @JulianToledano @cosmos/sdk-core-dev
3839
/tools/cosmovisor @julienrbrt @facundomedica @cosmos/sdk-core-dev
3940
/tools/confix @julienrbrt @akhilkumarpilli @cosmos/sdk-core-dev
41+
/tests/integration/aminojson @kocubinski @cosmos/sdk-core-dev
4042

4143
# x modules
4244

4345
/x/accounts/ @testinginprod @sontrinh16 @cosmos/sdk-core-dev
4446
/x/auth/ @facundomedica @testinginprod @aaronc @cosmos/sdk-core-dev
47+
/x/auth/tx/config @julienrbrt @akhilkumarpilli @kocubinski @cosmos/sdk-core-dev
4548
/x/authz/ @akhilkumarpilli @raynaudoe @cosmos/sdk-core-dev
4649
/x/bank/ @julienrbrt @sontrinh16 @cosmos/sdk-core-dev
50+
/x/bank/v2 @julienrbrt @hieuvubk @akhilkumarpilli @cosmos/sdk-core-dev
4751
/x/circuit/ @kocubinski @akhilkumarpilli @raynaudoe @cosmos/sdk-core-dev
4852
/x/consensus/ @testinginprod @raynaudoe @cosmos/sdk-core-dev
4953
/x/distribution/ @alpe @JulianToledano @cosmos/sdk-core-dev
@@ -62,12 +66,21 @@
6266
/x/staking/ @facundomedica @testinginprod @JulianToledano @ziscky @cosmos/sdk-core-dev
6367
/x/tx/ @kocubinski @testinginprod @aaronc @cosmos/sdk-core-dev
6468
/x/upgrade/ @facundomedica @cool-develope @akhilkumarpilli @lucaslopezf @cosmos/sdk-core-dev
69+
/x/validate @julienrbrt @akhilkumarpilli @kocubinski @cosmos/sdk-core-dev
6570

6671
# go mods
6772

6873
**/go.mod @cosmos/sdk-core-dev
6974
**/go.sum @cosmos/sdk-core-dev
7075

76+
# ci & build
77+
78+
.github/ @auricom @julienrbrt @tac0turtle
79+
scripts/ @auricom @julienrbrt @tac0turtle
80+
contrib/ @auricom @julienrbrt @tac0turtle
81+
*.mk @auricom @julienrbrt @tac0turtle
82+
Makefile @auricom @julienrbrt @tac0turtle
83+
7184
# docs configuration
7285

7386
/docs/ @cosmos/sdk-core-dev

.github/ISSUE_TEMPLATE/qa.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,20 @@ v without deliberation
2525
* [ ] Audit x/auth
2626
* [ ] Audit x/authz
2727
* [ ] Audit x/bank
28+
* [ ] Audit x/bank/v2
2829
* [ ] Audit x/circuit
2930
* [ ] Audit x/consensus
3031
* [ ] Audit x/crisis
3132
* [ ] Audit x/distribution
3233
* [ ] Audit x/evidence
34+
* [ ] Audit x/epochs
3335
* [ ] Audit x/feegrant
3436
* [ ] Audit x/genutil
3537
* [ ] Audit x/gov
3638
* [ ] Audit x/group
3739
* [ ] Audit x/mint
3840
* [ ] Audit x/nft
39-
* [ ] Audit x/simulation
41+
* [ ] Audit x/protocolpool
4042
* [ ] Audit x/slashing
4143
* [ ] Audit x/staking
4244
* [ ] Audit x/tx

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,15 @@ updates:
187187
labels:
188188
- "A:automerge"
189189
- dependencies
190+
- package-ecosystem: gomod
191+
directory: "x/accounts/defaults/base"
192+
schedule:
193+
interval: weekly
194+
day: wednesday
195+
time: "02:45"
196+
labels:
197+
- "A:automerge"
198+
- dependencies
190199
- package-ecosystem: gomod
191200
directory: "x/accounts/defaults/multisig"
192201
schedule:
@@ -305,6 +314,15 @@ updates:
305314
labels:
306315
- "A:automerge"
307316
- dependencies
317+
- package-ecosystem: gomod
318+
directory: "/x/bank"
319+
schedule:
320+
interval: weekly
321+
day: wednesday
322+
time: "03:20"
323+
labels:
324+
- "A:automerge"
325+
- dependencies
308326

309327
# Dependencies should be up to date on release branch
310328
- package-ecosystem: gomod

.github/pr_labeler.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
"C:Keys":
1111
- client/keys/**/*
1212
"C:Simulations":
13+
- types/simulation/**/*
1314
- x/simulation/**/*
1415
- x/*/simulation/**/*
16+
- simsx/**/*
1517
"C:Store":
1618
- store/**/*
1719
"C:collections":
@@ -28,6 +30,8 @@
2830
- indexer/postgres/**/*
2931
"C:x/accounts":
3032
- x/accounts/**/*
33+
"C:x/accounts/base":
34+
- x/accounts/defaults/base/**/*
3135
"C:x/accounts/multisig":
3236
- x/accounts/defaults/multisig/**/*
3337
"C:x/accounts/lockup":
@@ -38,6 +42,8 @@
3842
- x/authz/**/*
3943
"C:x/bank":
4044
- x/bank/**/*
45+
"C:x/bank/v2":
46+
- x/bank/v2/**/*
4147
"C:x/circuit":
4248
- x/circuit/**/*
4349
"C:x/consensus":
@@ -74,6 +80,8 @@
7480
- x/upgrade/**/*
7581
"C:x/epochs":
7682
- x/epochs/**/*
83+
"C:x/validate":
84+
- x/validate/**/*
7785
"C:server/v2":
7886
- server/v2/**/*
7987
"C:server/v2 stf":
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
4+
# Search for rocksdb_version in makefile
5+
rocksdb_version=$(grep "rocksdb_version" ./scripts/build/build.mk | cut -d'=' -f2)
6+
7+
if [[ -z "${rocksdb_version}" ]]; then
8+
echo "Error: rocksdb_version not found in ./scripts/build/build.mk" >&2
9+
exit 1
10+
else
11+
echo "ROCKSDB_VERSION=${rocksdb_version}" >> "${GITHUB_ENV}"
12+
fi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
4+
sudo apt update && sudo apt-get install -y libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev build-essential

.github/scripts/install-rocksdb.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
4+
if [ -z "$ROCKSDB_VERSION" ]; then
5+
echo "ROCKSDB_VERSION is not set."
6+
exit 1
7+
fi
8+
9+
# Clone RocksDB repository
10+
git clone https://github.com/facebook/rocksdb.git /home/runner/rocksdb
11+
cd /home/runner/rocksdb || exit 1
12+
git checkout "${ROCKSDB_VERSION}"
13+
14+
# Build shared library
15+
sudo make -j "$(nproc --all)" shared_lib
16+
sudo cp --preserve=links ./librocksdb.* /usr/local/lib/
17+
sudo cp -r ./include/rocksdb/ /usr/local/include/
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Auto Assign Reviewers
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, review_requested]
6+
7+
jobs:
8+
assign-reviewers:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out the repository
13+
uses: actions/checkout@v4
14+
15+
- name: Assign reviewers as assignees
16+
uses: actions/github-script@v7
17+
with:
18+
github-token: ${{ secrets.PRBOT_PAT }}
19+
script: |
20+
const { owner, repo } = context.repo;
21+
22+
async function getCurrentPR() {
23+
if (context.payload.pull_request) {
24+
return context.payload.pull_request;
25+
}
26+
27+
const allPRs = await github.rest.pulls.list({
28+
owner,
29+
repo,
30+
state: 'open',
31+
});
32+
33+
return allPRs.data.find(pr => pr.head.sha === context.sha);
34+
}
35+
36+
const pr = await getCurrentPR();
37+
if (!pr) {
38+
console.log('No matching PR found.');
39+
return;
40+
}
41+
42+
console.log(`Processing PR #${pr.number}`);
43+
44+
const reviewers = pr.requested_reviewers.map(reviewer => reviewer.login);
45+
46+
if (reviewers.length === 0) {
47+
console.log('No reviewers found for this PR.');
48+
return;
49+
}
50+
51+
console.log(`Current reviewers: ${reviewers.join(', ')}`);
52+
53+
await github.rest.issues.addAssignees({
54+
owner,
55+
repo,
56+
issue_number: pr.number,
57+
assignees: reviewers,
58+
});
59+
60+
console.log(`Assigned ${reviewers.join(', ')} as assignees to PR #${pr.number}`);

.github/workflows/build.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,29 @@ jobs:
2121
go-arch: ["amd64", "arm", "arm64"]
2222
steps:
2323
- uses: actions/checkout@v4
24-
- uses: DeterminateSystems/nix-installer-action@main
25-
- uses: DeterminateSystems/magic-nix-cache-action@main
2624
- uses: actions/setup-go@v5
2725
with:
2826
go-version: "1.23"
2927
check-latest: true
28+
- name: Get rocksdb version
29+
run: ./.github/scripts/get-rocksdb-version.sh
30+
- name: Fix permissions for cache
31+
run: sudo chown $(whoami) /usr/local/lib /usr/local/include
32+
- name: Restore rocksdb libraries cache
33+
id: cache-rocksdb
34+
if: matrix.go-arch == 'amd64'
35+
uses: actions/cache/restore@v4
36+
with:
37+
path: |
38+
/usr/local/lib/librocksdb.*
39+
/usr/local/include/rocksdb
40+
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-${{ matrix.go-arch }}
41+
- name: Install rocksdb deps
42+
if: matrix.go-arch == 'amd64'
43+
run: ./.github/scripts/install-rocksdb-deps.sh
44+
- name: Install rocksdb
45+
if: matrix.go-arch == 'amd64' && steps.cache-rocksdb.outputs.cache-hit != 'true'
46+
run: ./.github/scripts/install-rocksdb.sh
3047
###################
3148
#### Build App ####
3249
###################
@@ -35,10 +52,8 @@ jobs:
3552
- name: Build Legacy
3653
run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS=legacy make build
3754
- name: Build with rocksdb backend
38-
if: |
39-
env.GIT_DIFF &&
40-
matrix.go-arch == 'amd64'
41-
run: nix run . -- version --long
55+
if: matrix.go-arch == 'amd64'
56+
run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS="rocksdb" make build
4257
###################
4358
## Build Tooling ##
4459
###################
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Cache rocksdb libraries
2+
on:
3+
push:
4+
paths:
5+
- build.mk
6+
schedule:
7+
- cron: "*/15 * * * *" # Every 15 minutes
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
15+
check-cache-rocksdb:
16+
name: Check existing cache
17+
runs-on: ubuntu-latest
18+
outputs:
19+
cache-hit: ${{ steps.cache-rocksdb.outputs.cache-hit }}
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Get rocksdb version
25+
run: ./.github/scripts/get-rocksdb-version.sh
26+
27+
- name: Fix permissions for cache
28+
run: sudo chown $(whoami) /usr/local/lib /usr/local/include
29+
30+
- name: Restore rocksdb libraries cache
31+
id: cache-rocksdb
32+
uses: actions/cache/restore@v4
33+
with:
34+
path: |
35+
/usr/local/lib/librocksdb.*
36+
/usr/local/include/rocksdb
37+
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-amd64
38+
39+
40+
save-cache-rocksdb:
41+
name: Build rocksdb libraries and save cache
42+
runs-on: ubuntu-latest
43+
needs: check-cache-rocksdb
44+
if: needs.check-cache-rocksdb.outputs.cache-hit != 'true'
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- name: Get rocksdb version
49+
run: ./.github/scripts/get-rocksdb-version.sh
50+
51+
- name: Install rocksdb deps
52+
run: ./.github/scripts/install-rocksdb-deps.sh
53+
- name: Install rocksdb
54+
run: ./.github/scripts/install-rocksdb.sh
55+
56+
- name: Saves rocksdb libraries cache
57+
uses: actions/cache/save@v4
58+
with:
59+
path: |
60+
/usr/local/lib/librocksdb.*
61+
/usr/local/include/rocksdb
62+
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-amd64

0 commit comments

Comments
 (0)