diff --git a/.github/workflows/_shared-build.yaml b/.github/workflows/_shared-build.yaml index b027ecca..d8bd1504 100644 --- a/.github/workflows/_shared-build.yaml +++ b/.github/workflows/_shared-build.yaml @@ -46,18 +46,18 @@ jobs: name: Build UI package runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} # setup node & npm - name: Set up node - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: 20.x - name: Cache node-modules for UI package id: cache-npm - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ./ui-package/node_modules key: uipackage-npm-${{ runner.os }}-${{ hashFiles('./ui-package/package-lock.json') }} @@ -82,13 +82,13 @@ jobs: needs: [build_ui_package] runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} # setup global dependencies - name: Set up go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 1.24.x @@ -99,7 +99,7 @@ jobs: # download UI build artifacts - name: Download UI build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: ui-package path: ./ui-package/dist @@ -123,13 +123,13 @@ jobs: needs: [build_ui_package] runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} # setup global dependencies - name: Set up go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 1.24.x @@ -146,7 +146,7 @@ jobs: # download UI build artifacts - name: Download UI build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: ui-package path: ./ui-package/dist @@ -170,13 +170,13 @@ jobs: needs: [build_ui_package] runs-on: windows-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} # setup global dependencies - name: Set up go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 1.24.x @@ -187,7 +187,7 @@ jobs: # download UI build artifacts - name: Download UI build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: ui-package path: ./ui-package/dist @@ -211,13 +211,13 @@ jobs: needs: [build_ui_package] runs-on: macos-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} # setup global dependencies - name: Set up go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 1.24.x @@ -228,7 +228,7 @@ jobs: # download UI build artifacts - name: Download UI build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: ui-package path: ./ui-package/dist @@ -252,13 +252,13 @@ jobs: needs: [build_ui_package] runs-on: macos-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} # setup global dependencies - name: Set up go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 1.24.x @@ -269,7 +269,7 @@ jobs: # download UI build artifacts - name: Download UI build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: ui-package path: ./ui-package/dist @@ -294,7 +294,7 @@ jobs: if: ${{ inputs.docker }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} @@ -306,19 +306,19 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 - name: Login to Docker Hub - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} # download build artifacts - name: Download UI build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: ui-package path: ./ui-package/dist - name: Download build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: explorer_linux_amd64 path: ./bin @@ -347,7 +347,7 @@ jobs: if: ${{ inputs.docker }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} - name: Get build version @@ -360,19 +360,19 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 - name: Login to Docker Hub - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} # download build artifacts - name: Download UI build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: ui-package path: ./ui-package/dist - name: Download build artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: explorer_linux_arm64 path: ./bin @@ -401,7 +401,7 @@ jobs: if: ${{ inputs.docker }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} - name: Get build version @@ -412,7 +412,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 - name: Login to Docker Hub - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -436,7 +436,7 @@ jobs: matrix: tag: ${{ fromJSON(inputs.additional_tags) }} steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ inputs.ref }} - name: Get build version @@ -447,7 +447,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 - name: Login to Docker Hub - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/_shared-check.yaml b/.github/workflows/_shared-check.yaml index 02e7401b..2a9544cc 100644 --- a/.github/workflows/_shared-check.yaml +++ b/.github/workflows/_shared-check.yaml @@ -9,20 +9,20 @@ jobs: name: Run code checks runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 # setup global dependencies - name: Set up go - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 + uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version: 1.24.x - name: Set up node - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: 20.x - name: Cache node-modules for UI package id: cache-npm - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ./ui-package/node_modules key: uipackage-npm-${{ runner.os }}-${{ hashFiles('./ui-package/package-lock.json') }} diff --git a/.github/workflows/_shared-docker-clone.yaml b/.github/workflows/_shared-docker-clone.yaml index cdde6731..bdf4ae47 100644 --- a/.github/workflows/_shared-docker-clone.yaml +++ b/.github/workflows/_shared-docker-clone.yaml @@ -41,7 +41,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 - name: Login to Docker Hub - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/build-master.yml b/.github/workflows/build-master.yml index 75071545..8e0d68e2 100644 --- a/.github/workflows/build-master.yml +++ b/.github/workflows/build-master.yml @@ -54,11 +54,11 @@ jobs: steps: # download build artifacts - name: "Download build artifacts" - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 # (re)create snapshot binary release - name: Update snapshot tag & remove previous snapshot release - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 33e0dd6d..3c6829d9 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -43,7 +43,7 @@ jobs: needs: [build_binaries] runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-depth: 100 ref: ${{ github.sha }} @@ -75,7 +75,7 @@ jobs: # download build artifacts - name: "Download build artifacts" - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 # create draft release - name: Create latest release diff --git a/.github/workflows/check-typos.yaml b/.github/workflows/check-typos.yaml index a2955966..532692c8 100644 --- a/.github/workflows/check-typos.yaml +++ b/.github/workflows/check-typos.yaml @@ -10,8 +10,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Check for typos - uses: crate-ci/typos@392b78fe18a52790c53f42456e46124f77346842 # v1.34.0 + uses: crate-ci/typos@6d35b835f6f431bbe715c4c1ccd2c7d3264e11fb # v1.37.0 \ No newline at end of file diff --git a/indexer/beacon/epochstats_ssz.go b/indexer/beacon/epochstats_ssz.go index c633886e..74ba86c9 100644 --- a/indexer/beacon/epochstats_ssz.go +++ b/indexer/beacon/epochstats_ssz.go @@ -271,11 +271,11 @@ func (e *EpochStatsPacked) HashTreeRoot() ([32]byte, error) { // HashTreeRootWith ssz hashes the EpochStatsPacked object with a hasher func (e *EpochStatsPacked) HashTreeRootWith(hh ssz.HashWalker) (err error) { - indx := hh.Index() + index := hh.Index() // Field (0) 'ActiveValidators' { - subIndx := hh.Index() + subIndex := hh.Index() num := uint64(len(e.ActiveValidators)) if num > 10000000 { err = ssz.ErrIncorrectListSize @@ -286,7 +286,7 @@ func (e *EpochStatsPacked) HashTreeRootWith(hh ssz.HashWalker) (err error) { return } } - hh.MerkleizeWithMixin(subIndx, num, 10000000) + hh.MerkleizeWithMixin(subIndex, num, 10000000) } // Field (1) 'ProposerDuties' @@ -295,13 +295,13 @@ func (e *EpochStatsPacked) HashTreeRootWith(hh ssz.HashWalker) (err error) { err = ssz.ErrListTooBigFn("EpochStatsPacked.ProposerDuties", size, 100) return } - subIndx := hh.Index() + subIndex := hh.Index() for _, i := range e.ProposerDuties { hh.AppendUint64(uint64(i)) } hh.FillUpTo32() numItems := uint64(len(e.ProposerDuties)) - hh.MerkleizeWithMixin(subIndx, numItems, ssz.CalculateLimit(100, numItems, 8)) + hh.MerkleizeWithMixin(subIndex, numItems, ssz.CalculateLimit(100, numItems, 8)) } // Field (2) 'SyncCommitteeDuties' @@ -310,13 +310,13 @@ func (e *EpochStatsPacked) HashTreeRootWith(hh ssz.HashWalker) (err error) { err = ssz.ErrListTooBigFn("EpochStatsPacked.SyncCommitteeDuties", size, 10000) return } - subIndx := hh.Index() + subIndex := hh.Index() for _, i := range e.SyncCommitteeDuties { hh.AppendUint64(uint64(i)) } hh.FillUpTo32() numItems := uint64(len(e.SyncCommitteeDuties)) - hh.MerkleizeWithMixin(subIndx, numItems, ssz.CalculateLimit(10000, numItems, 8)) + hh.MerkleizeWithMixin(subIndex, numItems, ssz.CalculateLimit(10000, numItems, 8)) } // Field (3) 'RandaoMix' @@ -336,7 +336,7 @@ func (e *EpochStatsPacked) HashTreeRootWith(hh ssz.HashWalker) (err error) { // Field (8) 'PendingWithdrawals' { - subIndx := hh.Index() + subIndex := hh.Index() num := uint64(len(e.PendingWithdrawals)) if num > 10000000 { err = ssz.ErrIncorrectListSize @@ -347,12 +347,12 @@ func (e *EpochStatsPacked) HashTreeRootWith(hh ssz.HashWalker) (err error) { return } } - hh.MerkleizeWithMixin(subIndx, num, 10000000) + hh.MerkleizeWithMixin(subIndex, num, 10000000) } // Field (9) 'PendingConsolidations' { - subIndx := hh.Index() + subIndex := hh.Index() num := uint64(len(e.PendingConsolidations)) if num > 10000000 { err = ssz.ErrIncorrectListSize @@ -363,13 +363,13 @@ func (e *EpochStatsPacked) HashTreeRootWith(hh ssz.HashWalker) (err error) { return } } - hh.MerkleizeWithMixin(subIndx, num, 10000000) + hh.MerkleizeWithMixin(subIndex, num, 10000000) } // Field (10) 'ConsolidatingBalance' hh.PutUint64(uint64(e.ConsolidatingBalance)) - hh.Merkleize(indx) + hh.Merkleize(index) return } @@ -426,7 +426,7 @@ func (e *EpochStatsPackedValidator) HashTreeRoot() ([32]byte, error) { // HashTreeRootWith ssz hashes the EpochStatsPackedValidator object with a hasher func (e *EpochStatsPackedValidator) HashTreeRootWith(hh ssz.HashWalker) (err error) { - indx := hh.Index() + index := hh.Index() // Field (0) 'ValidatorIndexOffset' hh.PutUint32(e.ValidatorIndexOffset) @@ -434,7 +434,7 @@ func (e *EpochStatsPackedValidator) HashTreeRootWith(hh ssz.HashWalker) (err err // Field (1) 'EffectiveBalanceEth' hh.PutUint32(e.EffectiveBalanceEth) - hh.Merkleize(indx) + hh.Merkleize(index) return } diff --git a/services/chainservice.go b/services/chainservice.go index 517be740..6c7f10b1 100644 --- a/services/chainservice.go +++ b/services/chainservice.go @@ -477,7 +477,7 @@ func (bs *ChainService) GetConsensusClientForks() []*ConsensusClientFork { for _, fork := range headForks { if cHeadSlot < chainState.GetFinalizedSlot() && bytes.Equal(fork.Root[:], cHeadRoot[:]) { - // TODO: find a more elgant way to group forks for finalized blocks + // TODO: find a more elegant way to group forks for finalized blocks matchingFork = fork break }