mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
f5cb04012e
* Config * Updated proto * Updated pool * Updated RPC * Updated validator client * run time works * Clean ups * Fix tests * Visibility * Merge branch 'master' of https://github.com/prysmaticlabs/prysm into aggregator * Raul's feedback * Tests for RPC server * Tests for validator client * Span * More tests * Use go routine for SubmitAggregateAndProof * Go routines * Updated comments * Use array of roles * Fixed tests * Build * Update validator/client/runner.go Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com> * Update validator/client/runner.go Co-Authored-By: Preston Van Loon <preston@prysmaticlabs.com> * If * Merge branch 'refactor-validator-roles' of https://github.com/prysmaticlabs/prysm into refactor-validator-roles * Empty * Feedback * Merge branch 'master' of https://github.com/prysmaticlabs/prysm into aggregator * Removed proto/eth/v1alpha1/shard_chain.pb.go? * Cleaned up * Revert * Comments * Lint * Comment * Merge branch 'master' into aggregator
19 lines
997 B
Bash
Executable File
19 lines
997 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to update mock files after proto/beacon/rpc/v1/services.proto changes.
|
|
# Use a space to separate mock destination from its interfaces.
|
|
|
|
mocks=(
|
|
"./beacon-chain/internal/validator_service_mock.go ValidatorServiceServer,ValidatorService_WaitForActivationServer,ValidatorService_WaitForChainStartServer"
|
|
"./validator/internal/attester_service_mock.go AttesterServiceClient"
|
|
"./validator/internal/proposer_service_mock.go ProposerServiceClient"
|
|
"./validator/internal/aggregator_service_mock.go AggregatorServiceClient"
|
|
"./validator/internal/validator_service_mock.go ValidatorServiceClient,ValidatorService_WaitForActivationClient,ValidatorService_WaitForChainStartClient")
|
|
|
|
for ((i = 0; i < ${#mocks[@]}; i++)); do
|
|
file=${mocks[i]% *};
|
|
interfaces=${mocks[i]#* };
|
|
echo "generating $file for interfaces: $interfaces";
|
|
mockgen -package=internal -destination=$file github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1 $interfaces
|
|
done
|