upgrade v6 to v7 (#15989)

* upgrade v6 to v7

* changelog

* update-go-ssz
This commit is contained in:
Bastin
2025-11-06 17:16:23 +01:00
committed by GitHub
parent d6005026e0
commit 92bd211e4d
3030 changed files with 15365 additions and 15362 deletions

View File

@@ -12,7 +12,7 @@ while IFS= read -d $'\0' -r file; do
done < <($findutil -L "$(bazel info bazel-bin)"/proto -type f -regextype sed -regex ".*pb\.go$" -print0)
arraylength=${#file_list[@]}
searchstring="OffchainLabs/prysm/v6/"
searchstring="OffchainLabs/prysm/v7/"
# Copy pb.go files from bazel-bin to original folder where .proto is.
for ((i = 0; i < arraylength; i++)); do

View File

@@ -7,7 +7,7 @@
mock_path="testing/mock"
iface_mock_path="testing/validator-mock"
# github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1
# github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1
# ------------------------------------------------------
proto_mocks_v1alpha1=(
"$mock_path/beacon_service_mock.go BeaconChainClient"
@@ -21,10 +21,10 @@ for ((i = 0; i < ${#proto_mocks_v1alpha1[@]}; i++)); do
interfaces=${proto_mocks_v1alpha1[i]#* };
echo "generating $file for interfaces: $interfaces";
echo
GO11MODULE=on mockgen -package=mock -destination="$file" github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1 "$interfaces"
GO11MODULE=on mockgen -package=mock -destination="$file" github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1 "$interfaces"
done
# github.com/OffchainLabs/prysm/v6/validator/client/iface
# github.com/OffchainLabs/prysm/v7/validator/client/iface
# --------------------------------------------------------
iface_mocks=(
"$iface_mock_path/chain_client_mock.go ChainClient"
@@ -37,13 +37,13 @@ for ((i = 0; i < ${#iface_mocks[@]}; i++)); do
file=${iface_mocks[i]% *};
interfaces=${iface_mocks[i]#* };
echo "generating $file for interfaces: $interfaces";
GO11MODULE=on mockgen -package=validator_mock -destination="$file" github.com/OffchainLabs/prysm/v6/validator/client/iface "$interfaces"
GO11MODULE=on mockgen -package=validator_mock -destination="$file" github.com/OffchainLabs/prysm/v7/validator/client/iface "$interfaces"
done
goimports -w "$mock_path/."
gofmt -s -w "$mock_path/."
# github.com/OffchainLabs/prysm/v6/validator/client/beacon-api
# github.com/OffchainLabs/prysm/v7/validator/client/beacon-api
# -------------------------------------------------------------
beacon_api_mock_path="validator/client/beacon-api/mock"
beacon_api_mocks=(
@@ -64,7 +64,7 @@ done
goimports -w "$beacon_api_mock_path/."
gofmt -s -w "$beacon_api_mock_path/."
# github.com/OffchainLabs/prysm/v6/crypto/bls
# github.com/OffchainLabs/prysm/v7/crypto/bls
# --------------------------------------------
crypto_bls_common_mock_path="crypto/bls/common/mock"
crypto_bls_common_mocks=(