Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e2c7e34
feat: sdk-50
troian Jul 10, 2025
3963470
chore(mod): bump pkg.akt.dev modules
troian Jul 22, 2025
295fd97
refactor: cleanup and migrate akash-api to chain-sdk
troian Jul 29, 2025
11a79a7
chore(lint): suppress lint warning for upgrades.sh
troian Jul 29, 2025
815b25f
feat: switch to testutil from chain-sdk
troian Jul 30, 2025
0d2d6e4
fix(build): structure of golangci lint config
troian Jul 30, 2025
318aea4
refactor: fix lint errors
troian Jul 31, 2025
c5a26c4
chore: remove local replacement dir
troian Jul 31, 2025
4c7bfce
refactor: move events to chain-sdk
troian Aug 4, 2025
5c38995
chore: remove flags test
troian Aug 12, 2025
85c1e8a
chore(x/escrow): remove cli client
troian Aug 12, 2025
fa11f6f
fix(testutil): attach initialized genesis to fixture
troian Aug 12, 2025
f4d8bb0
fix(cmd): remove address encodr from tx cmd init
troian Aug 12, 2025
b66bf49
chore(mod): bump chain-sdk modules
troian Aug 12, 2025
4879a09
fix: remove dup function from install
troian Aug 13, 2025
2196bcc
fix(ci): install cargo action
troian Aug 13, 2025
1e1a093
chore: hardcode testnetify snapshot
troian Aug 13, 2025
14110ca
fix(ci): remove git-cliff
troian Aug 13, 2025
5cf47bf
feat: upgrade ibc to v10
troian Aug 13, 2025
0962b8f
fix: use persistentPreRun from chain-sdk
troian Aug 14, 2025
c81cab8
chore: bump deps
troian Aug 14, 2025
734b5b3
chore: bump chain-sdk
troian Aug 14, 2025
c7e5f00
chore: bump go/cli
troian Aug 15, 2025
359e5e1
feat: use keys commands from chain-sdk
troian Aug 15, 2025
2aa9091
chore: bump cli package
troian Aug 15, 2025
291ff5d
feat(AEP-75): implement multi-depositor escrow account
troian Aug 25, 2025
595df1b
chore(mod): bump go/cli version
troian Aug 25, 2025
90e8fdc
feat(cmd): use server start commands from chain-sdk
troian Aug 25, 2025
353da27
fix(app): use genesis loader from cosmos sdk
troian Aug 25, 2025
3b48240
feat(aep-75): implement authz deposit within escrow module
troian Aug 29, 2025
ac05cb5
chore: bump cosmos-sdk
troian Aug 29, 2025
0d3edd3
fix(x/escrow): use granters address as deposit owner for authz spend
troian Aug 30, 2025
ff4aa82
fix(x/escrow): use only funds that requested
troian Sep 3, 2025
a8c65a8
fix(x/authz): update deposit amount in place
troian Sep 4, 2025
65d0a37
fix(x/escrow): use auth authorization interface to reach to spend limit
troian Sep 4, 2025
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ AKASH_DEVCACHE_VERSIONS=${AKASH_DEVCACHE}/versions
AKASH_DEVCACHE_NODE_MODULES=${AKASH_DEVCACHE}
AKASH_DEVCACHE_NODE_BIN=${AKASH_DEVCACHE_NODE_MODULES}/node_modules/.bin
AKASH_RUN=${AKASH_DEVCACHE}/run
AKASH_RUN_BIN=${AKASH_RUN}/bin
84 changes: 57 additions & 27 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,102 @@ direnv_version_major=$(direnv version | cut -d "." -f1 | tr -d '\n')
direnv_version_minor=$(direnv version | cut -d "." -f2 | tr -d '\n')

if [[ $direnv_version_major -lt 2 ]] || [[ $direnv_version_major -eq 2 ]] && [[ $direnv_version_minor -lt 32 ]]; then
echo -e "\033[31munsupported direnv version $(direnv version) < 2.32.x"
exit 1
echo -e "\033[31munsupported direnv version $(direnv version) < 2.32.x"
exit 1
fi

if [[ "$SHELL" == "bash" ]]; then
if [ "${BASH_VERSINFO:-0}" -lt 4 ]; then
echo -e "\033[31mthe environment needs BASH 4 or above" >&2
exit 1
fi
if [[ "$(ps -p "$$" -o 'comm=')" =~ "bash" ]]; then
if [ "${BASH_VERSINFO:-0}" -lt 4 ]; then
echo -e "\033[31mthe environment needs BASH 4 or above" >&2
exit 1
fi
fi

if ! has make ; then
echo "make is not installed"; exit 1
if ! has make; then
echo "make is not installed"
exit 1
fi

if ! has unzip ; then
echo "unzip is not installed"; exit 1
if ! has unzip; then
echo "unzip is not installed"
exit 1
fi

if ! has wget ; then
echo "wget is not installed"; exit 1
if ! has wget; then
echo "wget is not installed"
exit 1
fi

if ! has curl ; then
echo "curl is not installed"; exit 1
if ! has curl; then
echo "curl is not installed"
exit 1
fi

if ! has npm ; then
echo "npm is not installed"; exit 1
if ! has npm; then
echo "npm is not installed"
exit 1
fi

if ! has jq ; then
echo "jq is not installed"; exit 1
if ! has jq; then
echo "jq is not installed"
exit 1
fi

if ! has readlink ; then
echo "readlink is not installed"; exit 1
if ! has readlink; then
echo "readlink is not installed"
exit 1
fi

if ! has pv; then
echo "pv is not installed"
exit 1
fi

if ! has lz4; then
echo "lz4 is not installed"
exit 1
fi

if [ -z "$GOPATH" ]; then
GOPATH=$(go env GOPATH)
export GOPATH
GOPATH=$(go env GOPATH)
export GOPATH
fi
Comment on lines +62 to 64
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Guard GOPATH discovery with a go availability check.

go env GOPATH will fail if Go isn’t installed in a fresh local environment.

Apply this diff:

 if [ -z "$GOPATH" ]; then
-	GOPATH=$(go env GOPATH)
-	export GOPATH
+	if has go; then
+		GOPATH="$(go env GOPATH)"
+		export GOPATH
+	else
+		echo -e "\033[31mgo is not installed" >&2
+		exit 1
+	fi
 fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
GOPATH=$(go env GOPATH)
export GOPATH
fi
if [ -z "$GOPATH" ]; then
if has go; then
GOPATH="$(go env GOPATH)"
export GOPATH
else
echo -e "\033[31mgo is not installed" >&2
exit 1
fi
fi
🤖 Prompt for AI Agents
In .envrc around lines 62 to 64, the script runs `go env GOPATH` unguarded which
will error when Go is not installed; update these lines to first check that the
`go` binary is available (e.g., using a command existence check) and only then
run `go env GOPATH` and export GOPATH, otherwise skip setting GOPATH to avoid
errors in environments without Go.


AKASH_ROOT=$(pwd)
export AKASH_ROOT

dotenv
dotenv_if_exists dev.env

TOOLS=${AKASH_ROOT}/script/tools.sh
SEMVER=${AKASH_ROOT}/script/semver.sh

GOTOOLCHAIN=$(${TOOLS} gotoolchain)
GOTOOLCHAIN_SEMVER=$(echo "${GOTOOLCHAIN}" | sed 's/go*/v/' | tr -d '\n')

dotenv_if_exists dev.env

if [[ ${GOWORK} != "off" ]] && [[ -f go.work ]]; then
GOWORK=${AKASH_ROOT}/go.work
else
GOWORK=off
fi

if [[ "$OSTYPE" == "darwin"* ]]; then
# on MacOS disable deprecation warnings security framework
CGO_CFLAGS=-Wno-deprecated-declarations
# on MacOS disable deprecation warnings security framework
CGO_CFLAGS=-Wno-deprecated-declarations

export CGO_CFLAGS
fi

export CGO_CFLAGS
if [ -z "${GOARCH}" ]; then
GOARCH=$(go env GOARCH)
export GOARCH
fi

export SEMVER
export GOTOOLCHAIN
export GOTOOLCHAIN_SEMVER
export GOWORK

PATH_add "$AKASH_DEVCACHE_NODE_BIN"
PATH_add "$AKASH_DEVCACHE_BIN"
Expand Down
1 change: 1 addition & 0 deletions .github/.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github.com/akash-network/node
29 changes: 29 additions & 0 deletions .github/actions/setup-ubuntu/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: setup-ubuntu
runs:
using: 'composite'
steps:
- name: Fetch all tags
shell: bash
run: git fetch --prune --unshallow
Comment on lines +6 to +8
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Make git fetch robust for both shallow and full clones.

--unshallow fails on non-shallow repos. Guard it and fetch tags explicitly.

Apply this diff:

-    - name: Fetch all tags
-      shell: bash
-      run: git fetch --prune --unshallow
+    - name: Fetch all tags
+      shell: bash
+      run: |
+        if git rev-parse --is-shallow-repository >/dev/null 2>&1; then
+          git fetch --prune --unshallow --tags
+        else
+          git fetch --prune --tags
+        fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Fetch all tags
shell: bash
run: git fetch --prune --unshallow
- name: Fetch all tags
shell: bash
run: |
if git rev-parse --is-shallow-repository >/dev/null 2>&1; then
git fetch --prune --unshallow --tags
else
git fetch --prune --tags
fi
🤖 Prompt for AI Agents
.github/actions/setup-ubuntu/action.yaml around lines 6 to 8: the current git
fetch uses --unshallow which fails on non-shallow clones; change the step to
first detect a shallow repo and run git fetch --unshallow only when .git/shallow
exists (or git rev-parse --is-shallow-repository returns true), otherwise skip
that flag, and then run a separate git fetch --prune --tags to ensure tags are
always fetched; implement the conditional check in the shell step so both
shallow and full clones are handled robustly.

- name: Install dependencies
# Shell must explicitly specify the shell for each step. https://github.com/orgs/community/discussions/18597
shell: bash
run: sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Run apt-get update and avoid installing npm via apt to prevent conflicts with setup-node.

  • Missing apt-get update can cause “Unable to locate package.”
  • Installing npm from apt can conflict with actions/setup-node’s toolcache Node/npm.

Apply this diff:

-      run: sudo apt install -y make direnv unzip lz4 wget curl npm jq pv coreutils
+      run: |
+        sudo apt-get update -y
+        sudo apt-get install -y make direnv unzip lz4 wget curl jq pv coreutils

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
.github/actions/setup-ubuntu/action.yaml around line 12: the workflow runs apt
install without first updating package lists and includes npm from apt (which
can conflict with actions/setup-node). Prepend an apt-get update (e.g., sudo
apt-get update) before the install command and remove npm from the list of
packages to install; manage Node/npm via actions/setup-node instead.

- name: Setup npm
uses: actions/setup-node@v4
with:
node-version: 18
- name: Detect required Go version
shell: bash
run: |
toolchain=$(./script/tools.sh gotoolchain | sed 's/go*//')
echo "GOVERSION=${toolchain}" >> $GITHUB_ENV
Comment on lines +20 to +21
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Fix sed expression and quote variables when exporting GOVERSION.

sed 's/go*//' is imprecise; use an anchored pattern to strip a leading "go". Also quote $GITHUB_ENV.

Apply this diff:

-        toolchain=$(./script/tools.sh gotoolchain | sed 's/go*//')
-        echo "GOVERSION=${toolchain}" >> $GITHUB_ENV
+        toolchain="$(./script/tools.sh gotoolchain | sed -E 's/^go//')"
+        echo "GOVERSION=${toolchain}" >> "$GITHUB_ENV"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
toolchain=$(./script/tools.sh gotoolchain | sed 's/go*//')
echo "GOVERSION=${toolchain}" >> $GITHUB_ENV
toolchain="$(./script/tools.sh gotoolchain | sed -E 's/^go//')"
echo "GOVERSION=${toolchain}" >> "$GITHUB_ENV"
🤖 Prompt for AI Agents
In .github/actions/setup-ubuntu/action.yaml around lines 20 to 21, the sed
expression and environment file write are unsafe: replace the imprecise sed
's/go*//' with an anchored pattern that only removes a leading "go" (e.g. sed
's/^go//') and quote the GitHub environment file variable when appending
GOVERSION (use >> "$GITHUB_ENV") so the extracted version is correct and the
file path is handled safely.

- uses: actions/setup-go@v5
with:
go-version: "${{ env.GOVERSION }}"
check-latest: true
- name: set environment
uses: HatsuneMiku3939/direnv-action@v1
with:
masks: ''
2 changes: 1 addition & 1 deletion .github/workflows/concommits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webiny/action-conventional-commits@v1.1.0
- uses: webiny/action-conventional-commits@v1.3.0
37 changes: 14 additions & 23 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,10 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow
- name: Detect required Go version
run: |
toolchain=$(./script/tools.sh gotoolchain | sed 's/go*//')
echo "GOVERSION=${toolchain}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "${{ env.GOVERSION }}"
- name: set environment
uses: HatsuneMiku3939/direnv-action@v1
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup-ubuntu
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -45,21 +38,18 @@ jobs:
# using PAT as homebrew is located in different repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-network-upgrade-on-release:
runs-on: upgrade-tester
runs-on: gh-runner-test
needs:
Comment on lines +41 to 42
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Unknown runner label gh-runner-test

actionlint flags this label as not belonging to any GitHub-hosted runner set.
If it refers to a self-hosted runner, add it to an actionlint.yaml allow-list; otherwise switch to ubuntu-latest.

🧰 Tools
🪛 actionlint (1.7.7)

41-41: label "gh-runner-test" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

🤖 Prompt for AI Agents
In .github/workflows/release.yaml at lines 41 to 42, the runner label
'gh-runner-test' is not recognized as a valid GitHub-hosted runner. If this is a
self-hosted runner, add 'gh-runner-test' to the allow-list in the
actionlint.yaml configuration file to prevent linting errors. Otherwise, replace
'gh-runner-test' with a valid GitHub-hosted runner label such as 'ubuntu-latest'
to ensure compatibility.

- publish
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow
- name: Detect required Go version
- name: Cleanup build folder
run: |
toolchain=$(./script/tools.sh gotoolchain | sed 's/go*//')
echo "GOVERSION=${toolchain}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "${{ env.GOVERSION }}"
- name: set environment
uses: HatsuneMiku3939/direnv-action@v1
sudo rm -rf ./* || true
sudo rm -rf ./.??* || true
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup-ubuntu
- name: detect release tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: configure variables
Expand All @@ -71,6 +61,7 @@ jobs:
env:
UPGRADE_BINARY_VERSION: ${{ env.RELEASE_TAG }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_CONFIG: test-config-gha.json
run: |
cd tests/upgrade
make test
Expand All @@ -80,7 +71,7 @@ jobs:
with:
name: logs
path: |
.cache/run/upgrade/validators/logs/*.log
.cache/run/upgrade/validators/logs/.akash*.log

notify-homebrew:
runs-on: ubuntu-latest
Expand Down
Loading
Loading