├── cmd ├── mev-boost │ ├── main_test.go │ └── main.go └── test-cli │ ├── engine.go │ ├── requests.go │ ├── validator.go │ ├── beacon.go │ ├── README.md │ └── main.go ├── staticcheck.conf ├── docs ├── block-proposal.png └── mev-boost-integration-overview.png ├── .github ├── pull_request_template.md └── workflows │ └── go.yml ├── server ├── backend.go ├── utils_test.go ├── mock_relay_test.go ├── relay_entry.go ├── mock_types.go ├── utils.go ├── relay_entry_test.go ├── mock_types_test.go ├── mock_relay.go ├── service.go └── service_test.go ├── Dockerfile ├── .gitignore ├── go.mod ├── LICENSE ├── README.md ├── Makefile ├── CODE_OF_CONDUCT.md └── go.sum /cmd/mev-boost/main_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | -------------------------------------------------------------------------------- /staticcheck.conf: -------------------------------------------------------------------------------- 1 | checks = ["all", "-ST1000"] 2 | -------------------------------------------------------------------------------- /docs/block-proposal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/mevbot/HEAD/docs/block-proposal.png -------------------------------------------------------------------------------- /docs/mev-boost-integration-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/mevbot/HEAD/docs/mev-boost-integration-overview.png -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Related issue(s): 2 | 3 | 4 | Description: 5 | 6 | 7 | Problem(s) & goal(s): 8 | 9 | 10 | Additional context & references: 11 | 12 | 13 | --- 14 | 15 | I have run these commands: 16 | 17 | * [ ] `make lint` 18 | * [ ] `make test` 19 | * [ ] `make run-mergemock-integration` 20 | * [ ] `go mod tidy` 21 | -------------------------------------------------------------------------------- /server/backend.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | // Router paths 4 | var ( 5 | pathStatus = "/eth/v1/builder/status" 6 | pathRegisterValidator = "/eth/v1/builder/validators" 7 | pathGetHeader = "/eth/v1/builder/header/{slot:[0-9]+}/{parent_hash:0x[a-fA-F0-9]+}/{pubkey:0x[a-fA-F0-9]+}" 8 | pathGetPayload = "/eth/v1/builder/blinded_blocks" 9 | ) 10 | -------------------------------------------------------------------------------- /server/utils_test.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "context" 5 | "net/http" 6 | "testing" 7 | 8 | "github.com/stretchr/testify/require" 9 | ) 10 | 11 | func TestMakePostRequest(t *testing.T) { 12 | // Test errors 13 | var x chan bool 14 | err := SendHTTPRequest(context.Background(), *http.DefaultClient, http.MethodGet, "", x, nil) 15 | require.Error(t, err) 16 | } 17 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:1 2 | FROM golang:1.18 as builder 3 | WORKDIR /build 4 | ADD . /build/ 5 | RUN --mount=type=cache,target=/root/.cache/go-build make build-for-docker 6 | 7 | FROM alpine 8 | 9 | RUN apk add --no-cache libgcc libstdc++ libc6-compat 10 | WORKDIR /app 11 | COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ 12 | COPY --from=builder /build/mev-boost /app/mev-boost 13 | EXPOSE 18550 14 | ENTRYPOINT ["/app/mev-boost"] 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | 17 | # Ignore VI/Vim swapfiles 18 | .*.sw? 19 | 20 | # IntelliJ 21 | .idea 22 | .ijwb 23 | /mev-boost 24 | /test-cli 25 | /tmp 26 | .vscode/ 27 | /README.internal.md 28 | -------------------------------------------------------------------------------- /server/mock_relay_test.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "bytes" 5 | "github.com/flashbots/go-boost-utils/bls" 6 | "github.com/stretchr/testify/require" 7 | "net/http" 8 | "net/http/httptest" 9 | "testing" 10 | ) 11 | 12 | func Test_mockRelay(t *testing.T) { 13 | t.Run("bad payload", func(t *testing.T) { 14 | privateKey, _, err := bls.GenerateNewKeypair() 15 | require.NoError(t, err) 16 | 17 | relay := newMockRelay(t, privateKey) 18 | req, err := http.NewRequest("POST", pathRegisterValidator, bytes.NewReader([]byte("123"))) 19 | require.NoError(t, err) 20 | rr := httptest.NewRecorder() 21 | relay.getRouter().ServeHTTP(rr, req) 22 | require.Equal(t, http.StatusBadRequest, rr.Code) 23 | }) 24 | } 25 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/flashbots/mev-boost 2 | 3 | go 1.18 4 | 5 | require ( 6 | github.com/ethereum/go-ethereum v1.10.17 7 | github.com/flashbots/go-boost-utils v0.1.2 8 | github.com/flashbots/go-utils v0.4.5 9 | github.com/gorilla/mux v1.8.0 10 | github.com/sirupsen/logrus v1.8.1 11 | github.com/stretchr/testify v1.7.1 12 | ) 13 | 14 | require ( 15 | github.com/davecgh/go-spew v1.1.1 // indirect 16 | github.com/ferranbt/fastssz v0.1.1-0.20220303160658-88bb965b6747 // indirect 17 | github.com/go-stack/stack v1.8.0 // indirect 18 | github.com/klauspost/cpuid/v2 v2.0.12 // indirect 19 | github.com/minio/sha256-simd v1.0.0 // indirect 20 | github.com/mitchellh/mapstructure v1.4.1 // indirect 21 | github.com/pmezard/go-difflib v1.0.0 // indirect 22 | github.com/supranational/blst v0.3.7 // indirect 23 | golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 // indirect 24 | golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e // indirect 25 | gopkg.in/yaml.v2 v2.4.0 // indirect 26 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect 27 | ) 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021-2022 Flashbots 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /server/relay_entry.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "github.com/flashbots/go-boost-utils/types" 5 | "net/url" 6 | "strings" 7 | ) 8 | 9 | // RelayEntry represents a relay that mev-boost connects to. 10 | // Address will be schema://hostname:port 11 | // PublicKey holds the relay's BLS public key used to verify message signatures. 12 | type RelayEntry struct { 13 | Address string 14 | PublicKey types.PublicKey 15 | URL *url.URL 16 | } 17 | 18 | func (r *RelayEntry) String() string { 19 | return r.URL.String() 20 | } 21 | 22 | // NewRelayEntry creates a new instance based on an input string 23 | // relayURL can be IP@PORT, PUBKEY@IP:PORT, https://IP, etc. 24 | func NewRelayEntry(relayURL string) (entry RelayEntry, err error) { 25 | // Add protocol scheme prefix if it does not exist. 26 | if !strings.HasPrefix(relayURL, "http") { 27 | relayURL = "http://" + relayURL 28 | } 29 | 30 | // Parse the provided relay's URL and save the parsed URL in the RelayEntry. 31 | entry.URL, err = url.Parse(relayURL) 32 | if err != nil { 33 | return entry, err 34 | } 35 | 36 | // Build the relay's address. 37 | entry.Address = entry.URL.Scheme + "://" + entry.URL.Host 38 | 39 | // Extract the relay's public key from the parsed URL. 40 | // TODO: Remove the if condition, as it is mandatory to verify relay's message signature. 41 | if entry.URL.User.Username() != "" { 42 | err = entry.PublicKey.UnmarshalText([]byte(entry.URL.User.Username())) 43 | } 44 | 45 | return entry, err 46 | } 47 | -------------------------------------------------------------------------------- /server/mock_types.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "github.com/ethereum/go-ethereum/common/hexutil" 5 | "github.com/flashbots/go-boost-utils/types" 6 | "github.com/sirupsen/logrus" 7 | ) 8 | 9 | // testLog is used to log information in the test methods 10 | var testLog = logrus.WithField("testing", true) 11 | 12 | // _HexToBytes converts a hexadecimal string to a byte array 13 | func _HexToBytes(hex string) []byte { 14 | res, err := hexutil.Decode(hex) 15 | if err != nil { 16 | panic(err) 17 | } 18 | return res 19 | } 20 | 21 | // _HexToHash converts a hexadecimal string to an Ethereum hash 22 | func _HexToHash(s string) (ret types.Hash) { 23 | err := ret.UnmarshalText([]byte(s)) 24 | if err != nil { 25 | testLog.Error(err, " _HexToHash: ", s) 26 | panic(err) 27 | } 28 | return ret 29 | } 30 | 31 | // _HexToAddress converts a hexadecimal string to an Ethereum address 32 | func _HexToAddress(s string) (ret types.Address) { 33 | err := ret.UnmarshalText([]byte(s)) 34 | if err != nil { 35 | testLog.Error(err, " _HexToAddress: ", s) 36 | panic(err) 37 | } 38 | return ret 39 | } 40 | 41 | // _HexToPubkey converts a hexadecimal string to a BLS Public Key 42 | func _HexToPubkey(s string) (ret types.PublicKey) { 43 | err := ret.UnmarshalText([]byte(s)) 44 | if err != nil { 45 | testLog.Error(err, " _HexToPubkey: ", s) 46 | panic(err) 47 | } 48 | return 49 | } 50 | 51 | // _HexToSignature converts a hexadecimal string to a BLS Signature 52 | func _HexToSignature(s string) (ret types.Signature) { 53 | err := ret.UnmarshalText([]byte(s)) 54 | if err != nil { 55 | testLog.Error(err, " _HexToSignature: ", s) 56 | panic(err) 57 | } 58 | return 59 | } 60 | -------------------------------------------------------------------------------- /server/utils.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "bytes" 5 | "context" 6 | "encoding/json" 7 | "fmt" 8 | "io" 9 | "net/http" 10 | ) 11 | 12 | // SendHTTPRequest - prepare and send HTTP request, marshaling the payload if any, and decoding the response if dst is set 13 | func SendHTTPRequest(ctx context.Context, client http.Client, method, url string, payload any, dst any) error { 14 | var req *http.Request 15 | var err error 16 | 17 | if payload == nil { 18 | req, err = http.NewRequestWithContext(ctx, method, url, nil) 19 | } else { 20 | payloadBytes, err2 := json.Marshal(payload) 21 | if err2 != nil { 22 | return fmt.Errorf("could not marshal request: %w", err2) 23 | } 24 | req, err = http.NewRequestWithContext(ctx, method, url, bytes.NewReader(payloadBytes)) 25 | } 26 | if err != nil { 27 | return fmt.Errorf("could not prepare request: %w", err) 28 | } 29 | 30 | req.Header.Add("Content-Type", "application/json") 31 | resp, err := client.Do(req) 32 | if err != nil { 33 | return err 34 | } 35 | defer resp.Body.Close() 36 | 37 | if resp.StatusCode > 299 { 38 | bodyBytes, err := io.ReadAll(resp.Body) 39 | if err != nil { 40 | return fmt.Errorf("could not read error response body for status code %d: %w", resp.StatusCode, err) 41 | } 42 | return fmt.Errorf("HTTP error response: %d / %s", resp.StatusCode, string(bodyBytes)) 43 | } 44 | 45 | if dst != nil { 46 | bodyBytes, err := io.ReadAll(resp.Body) 47 | if err != nil { 48 | return fmt.Errorf("could not read response body: %w", err) 49 | } 50 | 51 | if err := json.Unmarshal(bodyBytes, dst); err != nil { 52 | return fmt.Errorf("could not unmarshal response %s: %w", string(bodyBytes), err) 53 | } 54 | } 55 | 56 | return nil 57 | } 58 | -------------------------------------------------------------------------------- /cmd/test-cli/engine.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/ethereum/go-ethereum/common" 5 | "github.com/ethereum/go-ethereum/common/hexutil" 6 | ) 7 | 8 | type engineBlockData struct { 9 | ParentHash common.Hash `json:"parentHash"` 10 | Hash common.Hash `json:"hash"` 11 | Timestamp hexutil.Uint64 `json:"timestamp"` 12 | } 13 | 14 | func getLatestEngineBlock(engineEndpoint string) (engineBlockData, error) { 15 | dst := engineBlockData{} 16 | payload := map[string]any{"id": 67, "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": []any{"latest", false}} 17 | err := sendJSONRequest(engineEndpoint, payload, &dst) 18 | if err != nil { 19 | log.WithError(err).Info("could not get latest block") 20 | return engineBlockData{}, err 21 | } 22 | 23 | return dst, nil 24 | } 25 | 26 | type forkchoiceState struct { 27 | HeadBlockHash common.Hash `json:"headBlockHash"` 28 | SafeBlockHash common.Hash `json:"safeBlockHash"` 29 | FinalizedBlockHash common.Hash `json:"finalizedBlockHash"` 30 | } 31 | 32 | type payloadAttributes struct { 33 | Timestamp hexutil.Uint64 `json:"timestamp"` 34 | PrevRandao common.Hash `json:"prevRandao"` 35 | SuggestedFeeRecipient common.Address `json:"suggestedFeeRecipient"` 36 | } 37 | 38 | func sendForkchoiceUpdate(engineEndpoint string, block engineBlockData) error { 39 | log.WithField("hash", block.Hash).Info("sending FCU") 40 | params := []any{ 41 | forkchoiceState{block.Hash, block.Hash, block.Hash}, 42 | payloadAttributes{hexutil.Uint64(block.Timestamp + 1), common.Hash{0x01}, common.Address{0x02}}, 43 | } 44 | payload := map[string]any{"id": 67, "jsonrpc": "2.0", "method": "engine_forkchoiceUpdatedV1", "params": params} 45 | return sendJSONRequest(engineEndpoint, payload, nil) 46 | } 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # mev-bot 2 | 3 | A service that allows Ethereum Consensus Layer (CL) clients to outsource block construction to third party block builders in addition to execution clients. 4 | 5 | ### Request sequence 6 | 7 | ```mermaid 8 | sequenceDiagram 9 | participant consensus 10 | participant mev_boost 11 | participant relays 12 | Title: Block Proposal 13 | Note over consensus: validator starts up 14 | consensus->>mev_boost: registerValidator 15 | mev_boost->>relays: registerValidator 16 | Note over consensus: wait for allocated slot 17 | consensus->>mev_boost: getHeader 18 | mev_boost->>relays: getHeader 19 | relays-->>mev_boost: getHeader response 20 | Note over mev_boost: verify response matches expected 21 | Note over mev_boost: select best payload 22 | mev_boost-->>consensus: getHeader response 23 | Note over consensus: sign the header 24 | consensus->>mev_boost: getPayload 25 | Note over mev_boost: identify payload source 26 | mev_boost->>relays: getPayload 27 | Note over relays: validate signature 28 | relays-->>mev_boost: getPayload response 29 | Note over mev_boost: verify response matches expected 30 | mev_boost-->>consensus: getPayload response 31 | ``` 32 | 33 | ## Build 34 | 35 | ``` 36 | make build 37 | ``` 38 | 39 | and then run it with: 40 | 41 | ``` 42 | ./mev-bot 43 | ``` 44 | 45 | ## Lint & Test 46 | 47 | ``` 48 | make test 49 | make lint 50 | make run-mergemock-integration 51 | ``` 52 | 53 | The path to the mergemock repo is assumed to be `../mergemock`, you can override like so: 54 | 55 | ``` 56 | make MERGEMOCK_DIR=/PATH-TO-MERGEMOCK-REPO run-mergemock-integration 57 | ``` 58 | 59 | to run mergemock in dev mode: 60 | 61 | ``` 62 | make MERGEMOCK_BIN='go run .' run-mergemock-integration 63 | ``` 64 | 65 | ## Testing with test-cli 66 | 67 | [test-cli readme](cmd/test-cli/README.md) 68 | -------------------------------------------------------------------------------- /cmd/test-cli/requests.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | "errors" 7 | "io" 8 | "net/http" 9 | ) 10 | 11 | type jsonrpcMessage struct { 12 | Version string `json:"jsonrpc,omitempty"` 13 | ID json.RawMessage `json:"id,omitempty"` 14 | Method string `json:"method,omitempty"` 15 | Params json.RawMessage `json:"params,omitempty"` 16 | Error *struct { 17 | Code int `json:"code"` 18 | Message string `json:"message"` 19 | Data interface{} `json:"data,omitempty"` 20 | } `json:"error,omitempty"` 21 | Result json.RawMessage `json:"result,omitempty"` 22 | } 23 | 24 | func sendJSONRequest(endpoint string, payload any, dst any) error { 25 | payloadBytes, err := json.Marshal(payload) 26 | if err != nil { 27 | return err 28 | } 29 | 30 | body := bytes.NewReader(payloadBytes) 31 | fetchLog := log.WithField("endpoint", endpoint).WithField("method", "POST").WithField("payload", string(payloadBytes)) 32 | fetchLog.Info("sending request") 33 | req, err := http.NewRequest("POST", endpoint, body) 34 | if err != nil { 35 | fetchLog.WithError(err).Error("could not prepare request") 36 | return err 37 | } 38 | req.Header.Set("Content-Type", "application/json") 39 | 40 | resp, err := http.DefaultClient.Do(req) 41 | if err != nil { 42 | fetchLog.WithError(err).Error("could not send request") 43 | return err 44 | } 45 | defer resp.Body.Close() 46 | 47 | bodyBytes, err := io.ReadAll(resp.Body) 48 | fetchLog.WithField("bodyBytes", string(bodyBytes)).Info("got response") 49 | if err != nil { 50 | return err 51 | } 52 | 53 | var jsonResp jsonrpcMessage 54 | if err = json.Unmarshal(bodyBytes, &jsonResp); err != nil { 55 | fetchLog.WithField("response", string(bodyBytes)).WithError(err).Error("could not unmarshal response") 56 | return err 57 | } 58 | 59 | if jsonResp.Error != nil { 60 | fetchLog.WithField("code", jsonResp.Error.Code).WithField("err", jsonResp.Error.Message).Error("error response") 61 | return errors.New(jsonResp.Error.Message) 62 | } 63 | 64 | if dst != nil { 65 | if err = json.Unmarshal(jsonResp.Result, dst); err != nil { 66 | fetchLog.WithField("result", string(jsonResp.Result)).WithError(err).Error("could not unmarshal result") 67 | return err 68 | } 69 | } 70 | return nil 71 | } 72 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | MERGEMOCK_DIR=../mergemock 2 | MERGEMOCK_BIN=./mergemock 3 | 4 | VERSION ?= $(shell git describe --tags --always --dirty="-dev") 5 | DOCKER_REPO := flashbots/mev-boost 6 | 7 | v: 8 | @echo "${VERSION}" 9 | 10 | build: 11 | go build ./cmd/mev-boost 12 | 13 | build-cli: 14 | go build ./cmd/test-cli 15 | 16 | test: 17 | go test ./... 18 | 19 | test-race: 20 | go test -race ./... 21 | 22 | lint: 23 | revive -set_exit_status ./... 24 | go vet ./... 25 | staticcheck ./... 26 | 27 | generate-ssz: 28 | rm -f types/builder_encoding.go 29 | sszgen --path types --include ../go-ethereum/common/hexutil --objs Eth1Data,BeaconBlockHeader,SignedBeaconBlockHeader,ProposerSlashing,Checkpoint,AttestationData,IndexedAttestation,AttesterSlashing,Attestation,Deposit,VoluntaryExit,SyncAggregate,ExecutionPayloadHeader,VersionedExecutionPayloadHeader,BlindedBeaconBlockBody,BlindedBeaconBlock,RegisterValidatorRequestMessage,BuilderBid,SignedBuilderBid 30 | 31 | test-coverage: 32 | go test -race -v -covermode=atomic -coverprofile=coverage.out ./... 33 | go tool cover -func coverage.out 34 | 35 | cover: 36 | go test -coverprofile=coverage.out ./... 37 | go tool cover -func coverage.out 38 | unlink coverage.out 39 | 40 | cover-html: 41 | go test -coverprofile=coverage.out ./... 42 | go tool cover -html=coverage.out 43 | unlink coverage.out 44 | 45 | run: 46 | ./mev-boost 47 | 48 | run-boost-with-relay: 49 | ./mev-boost -relays 127.0.0.1:28545 50 | 51 | run-dev: 52 | go run cmd/mev-boost/main.go 53 | 54 | run-mergemock-engine: 55 | cd $(MERGEMOCK_DIR) && $(MERGEMOCK_BIN) engine --listen-addr 127.0.0.1:8551 56 | 57 | run-mergemock-consensus: 58 | cd $(MERGEMOCK_DIR) && $(MERGEMOCK_BIN) consensus --slot-time=4s --engine http://127.0.0.1:8551 --builder http://127.0.0.1:18550 --slot-bound 10 59 | 60 | run-mergemock-relay: 61 | cd $(MERGEMOCK_DIR) && $(MERGEMOCK_BIN) relay --listen-addr 127.0.0.1:28545 62 | 63 | run-mergemock-integration: build 64 | make -j3 run-boost-with-relay run-mergemock-consensus run-mergemock-relay 65 | 66 | build-for-docker: 67 | GOOS=linux go build -ldflags "-X main.version=${VERSION}" -v -o mev-boost ./cmd/mev-boost 68 | 69 | docker-image: 70 | DOCKER_BUILDKIT=1 docker build . -t mev-boost 71 | docker tag mev-boost:latest ${DOCKER_REPO}:${VERSION} 72 | docker tag mev-boost:latest ${DOCKER_REPO}:latest 73 | 74 | docker-push: 75 | docker push ${DOCKER_REPO}:${VERSION} 76 | docker push ${DOCKER_REPO}:latest 77 | -------------------------------------------------------------------------------- /cmd/test-cli/validator.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "encoding/json" 5 | "io/ioutil" 6 | "time" 7 | 8 | "github.com/ethereum/go-ethereum/common/hexutil" 9 | "github.com/flashbots/go-boost-utils/bls" 10 | boostTypes "github.com/flashbots/go-boost-utils/types" 11 | ) 12 | 13 | type validatorPrivateData struct { 14 | Sk hexutil.Bytes 15 | Pk hexutil.Bytes 16 | GasLimit hexutil.Uint64 17 | FeeRecipientHex string 18 | } 19 | 20 | func (v *validatorPrivateData) SaveValidator(filePath string) error { 21 | validatorData, err := json.MarshalIndent(v, "", " ") 22 | if err != nil { 23 | return err 24 | } 25 | return ioutil.WriteFile(filePath, validatorData, 0644) 26 | } 27 | 28 | func mustLoadValidator(filePath string) validatorPrivateData { 29 | fileData, err := ioutil.ReadFile(filePath) 30 | if err != nil { 31 | log.WithField("filePath", filePath).WithError(err).Fatal("Could not load validator data") 32 | } 33 | var v validatorPrivateData 34 | err = json.Unmarshal(fileData, &v) 35 | if err != nil { 36 | log.WithField("filePath", filePath).WithField("fileData", fileData).WithError(err).Fatal("Could not parse validator data") 37 | } 38 | return v 39 | } 40 | 41 | func newRandomValidator(gasLimit uint64, feeRecipient string) validatorPrivateData { 42 | sk, pk, err := bls.GenerateNewKeypair() 43 | if err != nil { 44 | log.WithError(err).Fatal("unable to generate bls key pair") 45 | } 46 | return validatorPrivateData{sk.Serialize(), pk.Compress(), hexutil.Uint64(gasLimit), feeRecipient} 47 | } 48 | 49 | func (v *validatorPrivateData) PrepareRegistrationMessage(builderSigningDomain boostTypes.Domain) ([]boostTypes.SignedValidatorRegistration, error) { 50 | pk := boostTypes.PublicKey{} 51 | pk.FromSlice(v.Pk) 52 | addr, err := boostTypes.HexToAddress(v.FeeRecipientHex) 53 | if err != nil { 54 | return []boostTypes.SignedValidatorRegistration{}, err 55 | } 56 | msg := boostTypes.RegisterValidatorRequestMessage{ 57 | FeeRecipient: addr, 58 | Timestamp: uint64(time.Now().UnixMilli()), 59 | Pubkey: pk, 60 | GasLimit: uint64(v.GasLimit), 61 | } 62 | signature, err := v.Sign(&msg, builderSigningDomain) 63 | if err != nil { 64 | return []boostTypes.SignedValidatorRegistration{}, err 65 | } 66 | 67 | return []boostTypes.SignedValidatorRegistration{{ 68 | Message: &msg, 69 | Signature: signature, 70 | }}, nil 71 | } 72 | 73 | func (v *validatorPrivateData) Sign(msg boostTypes.HashTreeRoot, domain boostTypes.Domain) (boostTypes.Signature, error) { 74 | sk, err := bls.SecretKeyFromBytes(v.Sk) 75 | if err != nil { 76 | return boostTypes.Signature{}, err 77 | } 78 | return boostTypes.SignMessage(msg, domain, sk) 79 | } 80 | -------------------------------------------------------------------------------- /cmd/test-cli/beacon.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "net/http" 6 | "strconv" 7 | 8 | "github.com/ethereum/go-ethereum/common" 9 | "github.com/flashbots/mev-boost/server" 10 | ) 11 | 12 | // Beacon - beacon node interface 13 | type Beacon interface { 14 | onGetHeader() error 15 | getCurrentBeaconBlock() (beaconBlockData, error) 16 | } 17 | 18 | type beaconBlockData struct { 19 | Slot uint64 20 | BlockHash common.Hash 21 | } 22 | 23 | func createBeacon(isMergemock bool, beaconEndpoint string, engineEndpoint string) Beacon { 24 | if isMergemock { 25 | return &MergemockBeacon{engineEndpoint} 26 | } 27 | return &BeaconNode{beaconEndpoint} 28 | } 29 | 30 | // BeaconNode - beacon node wrapper 31 | type BeaconNode struct { 32 | beaconEndpoint string 33 | } 34 | 35 | func (b *BeaconNode) onGetHeader() error { return nil } 36 | 37 | func (b *BeaconNode) getCurrentBeaconBlock() (beaconBlockData, error) { 38 | return getCurrentBeaconBlock(b.beaconEndpoint) 39 | } 40 | 41 | type partialSignedBeaconBlock struct { 42 | Data struct { 43 | Message struct { 44 | Slot string `json:"slot"` 45 | Body struct { 46 | ExecutionPayload struct { 47 | BlockHash common.Hash `json:"block_hash"` 48 | } `json:"execution_payload"` 49 | } `json:"body"` 50 | } `json:"message"` 51 | } `json:"data"` 52 | } 53 | 54 | func getCurrentBeaconBlock(beaconEndpoint string) (beaconBlockData, error) { 55 | var blockResp partialSignedBeaconBlock 56 | err := server.SendHTTPRequest(context.TODO(), *http.DefaultClient, http.MethodGet, beaconEndpoint+"/eth/v2/beacon/blocks/head", nil, &blockResp) 57 | if err != nil { 58 | return beaconBlockData{}, err 59 | } 60 | 61 | slot, err := strconv.Atoi(blockResp.Data.Message.Slot) 62 | if err != nil { 63 | return beaconBlockData{}, err 64 | } 65 | 66 | return beaconBlockData{Slot: uint64(slot), BlockHash: blockResp.Data.Message.Body.ExecutionPayload.BlockHash}, err 67 | } 68 | 69 | // MergemockBeacon - fake beacon for use with mergemock relay's engine 70 | type MergemockBeacon struct { 71 | mergemockEngineEndpoint string 72 | } 73 | 74 | func (m *MergemockBeacon) onGetHeader() error { 75 | block, err := getLatestEngineBlock(m.mergemockEngineEndpoint) 76 | if err != nil { 77 | return err 78 | } 79 | err = sendForkchoiceUpdate(m.mergemockEngineEndpoint, block) 80 | if err != nil { 81 | return err 82 | } 83 | 84 | return nil 85 | } 86 | 87 | func (m *MergemockBeacon) getCurrentBeaconBlock() (beaconBlockData, error) { 88 | block, err := getLatestEngineBlock(m.mergemockEngineEndpoint) 89 | if err != nil { 90 | log.WithError(err).Info("could not get latest block") 91 | return beaconBlockData{}, err 92 | } 93 | 94 | return beaconBlockData{Slot: 50, BlockHash: block.Hash}, nil 95 | } 96 | -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- 1 | name: Go 2 | 3 | on: 4 | push: 5 | pull_request: 6 | branches: [main] 7 | 8 | jobs: 9 | test: 10 | name: Test 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Set up Go 1.x 14 | uses: actions/setup-go@v2 15 | with: 16 | go-version: ^1.18 17 | id: go 18 | 19 | - name: Check out code into the Go module directory 20 | uses: actions/checkout@v2 21 | 22 | - name: Run unit tests and generate the coverage report 23 | run: make test-coverage 24 | 25 | - name: Upload coverage to Codecov 26 | uses: codecov/codecov-action@v2 27 | with: 28 | files: ./coverage.out 29 | verbose: true 30 | flags: unittests 31 | 32 | lint: 33 | name: Lint 34 | runs-on: ubuntu-latest 35 | steps: 36 | - name: Set up Go 1.x 37 | uses: actions/setup-go@v2 38 | with: 39 | go-version: ^1.18 40 | id: go 41 | 42 | - name: Check out code into the Go module directory 43 | uses: actions/checkout@v2 44 | 45 | - name: Install revive linter 46 | run: go install github.com/mgechev/revive@v1.1.3 47 | 48 | - name: Install staticcheck 49 | run: go install honnef.co/go/tools/cmd/staticcheck@v0.3.0 50 | 51 | - name: Lint 52 | run: make lint 53 | 54 | - name: Ensure go mod tidy runs without changes 55 | run: | 56 | go mod tidy 57 | git diff-index HEAD 58 | git diff-index --quiet HEAD 59 | 60 | mergemock: 61 | name: Mergemock 62 | runs-on: ubuntu-latest 63 | steps: 64 | - name: Set up Go 1.x 65 | uses: actions/setup-go@v2 66 | with: 67 | go-version: ^1.17 68 | id: go 69 | 70 | - name: Check out code into the Go module directory 71 | uses: actions/checkout@v2 72 | 73 | - name: Build mev-boost 74 | run: make build 75 | 76 | - name: Check out the mergemock code repo 77 | uses: actions/checkout@v2 78 | with: 79 | repository: protolambda/mergemock 80 | path: mergemock 81 | ref: master 82 | 83 | - name: Download mergemock genesis.json 84 | run: cd mergemock && wget https://gist.githubusercontent.com/lightclient/799c727e826483a2804fc5013d0d3e3d/raw/2e8824fa8d9d9b040f351b86b75c66868fb9b115/genesis.json && echo -n 'a21a16ec22a940990922220e4ab5bf4c2310f55622220e4ab5bf4c2310f55656' > jwt.hex 85 | 86 | - name: Build mergemock 87 | run: cd mergemock && go build . mergemock 88 | 89 | - name: Run mergemock consensus tests 90 | run: | 91 | make MERGEMOCK_DIR=./mergemock run-mergemock-relay & 92 | make run-boost-with-relay & 93 | sleep 5 94 | make MERGEMOCK_DIR=./mergemock run-mergemock-consensus 95 | env: 96 | CGO_CFLAGS_ALLOW: "-D__BLST_PORTABLE__" 97 | CGO_CFLAGS: "-D__BLST_PORTABLE__" 98 | -------------------------------------------------------------------------------- /cmd/mev-boost/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | "os" 6 | "strconv" 7 | "strings" 8 | "time" 9 | 10 | "github.com/flashbots/mev-boost/server" 11 | "github.com/sirupsen/logrus" 12 | ) 13 | 14 | var ( 15 | version = "dev" // is set during build process 16 | 17 | // defaults 18 | defaultListenAddr = getEnv("BOOST_LISTEN_ADDR", "localhost:18550") 19 | defaultRelayURLs = getEnv("RELAY_URLS", "localhost:28545") // can be IP@PORT, PUBKEY@IP:PORT, https://IP, etc. 20 | defaultRelayTimeoutMs = getEnvInt("RELAY_TIMEOUT_MS", 2000) // timeout for all the requests to the relay 21 | defaultRelayCheck = os.Getenv("RELAY_STARTUP_CHECK") != "" 22 | 23 | // cli flags 24 | listenAddr = flag.String("addr", defaultListenAddr, "listen-address for mev-boost server") 25 | relayURLs = flag.String("relays", defaultRelayURLs, "relay urls - single entry or comma-separated list (pubkey@ip:port)") 26 | relayTimeoutMs = flag.Int("request-timeout", defaultRelayTimeoutMs, "timeout for requests to a relay [ms]") 27 | relayCheck = flag.Bool("relay-check", defaultRelayCheck, "whether to check relay status on startup") 28 | ) 29 | 30 | var log = logrus.WithField("module", "cmd/mev-boost") 31 | 32 | func main() { 33 | flag.Parse() 34 | log.Printf("mev-boost %s", version) 35 | 36 | relays := parseRelayURLs(*relayURLs) 37 | if len(relays) == 0 { 38 | log.Fatal("No relays specified") 39 | } 40 | log.WithField("relays", relays).Infof("using %d relays", len(relays)) 41 | 42 | if *relayCheck { 43 | relayStartupCheck(relays) 44 | } 45 | 46 | relayTimeout := time.Duration(*relayTimeoutMs) * time.Millisecond 47 | server, err := server.NewBoostService(*listenAddr, relays, log, relayTimeout) 48 | if err != nil { 49 | log.WithError(err).Fatal("failed creating the server") 50 | } 51 | 52 | log.Println("listening on", *listenAddr) 53 | log.Fatal(server.StartHTTPServer()) 54 | } 55 | 56 | func getEnv(key string, defaultValue string) string { 57 | if value, ok := os.LookupEnv(key); ok { 58 | return value 59 | } 60 | return defaultValue 61 | } 62 | 63 | func getEnvInt(key string, defaultValue int) int { 64 | if value, ok := os.LookupEnv(key); ok { 65 | val, err := strconv.Atoi(value) 66 | if err == nil { 67 | return val 68 | } 69 | } 70 | return defaultValue 71 | } 72 | 73 | func parseRelayURLs(relayURLs string) []server.RelayEntry { 74 | ret := []server.RelayEntry{} 75 | for _, entry := range strings.Split(relayURLs, ",") { 76 | relay, err := server.NewRelayEntry(entry) 77 | if err != nil { 78 | log.WithError(err).WithField("relayURL", entry).Fatal("Invalid relay URL") 79 | } 80 | ret = append(ret, relay) 81 | } 82 | return ret 83 | } 84 | 85 | func relayStartupCheck(relays []server.RelayEntry) error { 86 | log.Fatal("TODO: Checking relays...") 87 | for _, relay := range relays { 88 | log.WithField("relay", relay).Info("Checking relay") 89 | // err := relay.Check() 90 | // if err != nil { 91 | // log.WithError(err).WithField("relay", relay).Fatal("Relay check failed") 92 | // } 93 | } 94 | return nil 95 | } 96 | -------------------------------------------------------------------------------- /server/relay_entry_test.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "github.com/flashbots/go-boost-utils/types" 5 | "github.com/stretchr/testify/require" 6 | "testing" 7 | ) 8 | 9 | func TestParseRelaysURLs(t *testing.T) { 10 | zeroPublicKey := types.PublicKey{0x0} 11 | // Used to fake a relay's public key. 12 | publicKey := types.PublicKey{0x01} 13 | 14 | testCases := []struct { 15 | name string 16 | relayURL string 17 | 18 | expectedErr error 19 | expectedAddress string 20 | expectedPublicKey string 21 | expectedURL string 22 | }{ 23 | { 24 | name: "Relay URL with protocol scheme", 25 | relayURL: "http://foo.com", 26 | 27 | expectedErr: nil, 28 | expectedAddress: "http://foo.com", 29 | expectedPublicKey: zeroPublicKey.String(), 30 | expectedURL: "http://foo.com", 31 | }, 32 | { 33 | name: "Relay URL without protocol scheme", 34 | relayURL: "foo.com", 35 | 36 | expectedErr: nil, 37 | expectedAddress: "http://foo.com", 38 | expectedPublicKey: zeroPublicKey.String(), 39 | expectedURL: "http://foo.com", 40 | }, 41 | { 42 | name: "Relay URL without protocol scheme and with public key", 43 | relayURL: publicKey.String() + "@foo.com", 44 | 45 | expectedErr: nil, 46 | expectedAddress: "http://foo.com", 47 | expectedPublicKey: publicKey.String(), 48 | expectedURL: "http://" + publicKey.String() + "@foo.com", 49 | }, 50 | { 51 | name: "Relay URL with public key host and port", 52 | relayURL: publicKey.String() + "@foo.com:9999", 53 | 54 | expectedErr: nil, 55 | expectedAddress: "http://foo.com:9999", 56 | expectedPublicKey: publicKey.String(), 57 | expectedURL: "http://" + publicKey.String() + "@foo.com:9999", 58 | }, 59 | { 60 | name: "Relay URL with IP and port", 61 | relayURL: "12.345.678:9999", 62 | 63 | expectedErr: nil, 64 | expectedAddress: "http://12.345.678:9999", 65 | expectedPublicKey: zeroPublicKey.String(), 66 | expectedURL: "http://12.345.678:9999", 67 | }, 68 | { 69 | name: "Relay URL with https IP and port", 70 | relayURL: "https://12.345.678:9999", 71 | 72 | expectedErr: nil, 73 | expectedAddress: "https://12.345.678:9999", 74 | expectedPublicKey: zeroPublicKey.String(), 75 | expectedURL: "https://12.345.678:9999", 76 | }, 77 | { 78 | name: "Invalid relay public key", 79 | relayURL: "http://0x123456@foo.com", 80 | 81 | expectedErr: types.ErrLength, 82 | expectedAddress: "", 83 | expectedPublicKey: "", 84 | expectedURL: "", 85 | }, 86 | } 87 | 88 | for _, tt := range testCases { 89 | t.Run(tt.name, func(t *testing.T) { 90 | relayEntry, err := NewRelayEntry(tt.relayURL) 91 | 92 | // Check errors. 93 | require.Equal(t, tt.expectedErr, err) 94 | 95 | // Now perform content assertions. 96 | if tt.expectedErr == nil { 97 | require.Equal(t, tt.expectedAddress, relayEntry.Address) 98 | require.Equal(t, tt.expectedPublicKey, relayEntry.PublicKey.String()) 99 | require.Equal(t, tt.expectedURL, relayEntry.String()) 100 | } 101 | }) 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /cmd/test-cli/README.md: -------------------------------------------------------------------------------- 1 | # test-cli 2 | 3 | ## Build 4 | 5 | ``` 6 | make build-cli 7 | ``` 8 | 9 | ## Usage 10 | 11 | ``` 12 | ./test-cli [generate|register|getHeader|getPayload] [-help] 13 | 14 | generate [-vd-file] [-fee-recipient] 15 | register [-vd-file] [-mev-boost] [-genesis-fork-version] [-genesis-validators-root] 16 | getHeader [-vd-file] [-mev-boost] [-bn] [-en] [-mm] [-bellatrix-fork-version] [-genesis-validators-root] 17 | getPayload [-vd-file] [-mev-boost] [-bn] [-en] [-mm] [-bellatrix-fork-version] [-genesis-validators-root] 18 | 19 | Env & defaults: 20 | [generate] 21 | -gas-limit = 30000000 22 | -fee-recipient VALIDATOR_FEE_RECIPIENT = 0x0000000000000000000000000000000000000000 23 | 24 | [register] 25 | -vd-file VALIDATOR_DATA_FILE = ./validator_data.json 26 | -mev-boost MEV_BOOST_ENDPOINT = http://127.0.0.1:18550 27 | -genesis-fork-version GENESIS_FORK_VERSION = "0x00000000" (mainnet) - network fork version 28 | "0x70000069" (kiln) 29 | 30 | [getHeader] 31 | -vd-file VALIDATOR_DATA_FILE = ./validator_data.json 32 | -mev-boost MEV_BOOST_ENDPOINT = http://127.0.0.1:18550 33 | -bn BEACON_ENDPOINT = http://localhost:5052 34 | -en ENGINE_ENDPOINT = http://localhost:8545 - only used if -mm is passed or pre-bellatrix 35 | -mm - mergemock mode, use mergemock defaults, only call execution and use fake slot in getHeader 36 | 37 | -genesis-fork-version GENESIS_FORK_VERSION = "0x00000000" (mainnet) - network fork version 38 | "0x70000069" (kiln) 39 | [getPayload] 40 | -vd-file VALIDATOR_DATA_FILE = ./validator_data.json 41 | -mev-boost MEV_BOOST_ENDPOINT = http://127.0.0.1:18550 42 | -bn BEACON_ENDPOINT = http://localhost:5052 43 | -en ENGINE_ENDPOINT = http://localhost:8545 - only used if -mm is passed or pre-bellatrix 44 | -mm - mergemock mode, use mergemock defaults, only call execution and use fake slot in getHeader 45 | 46 | -genesis-validators-root GENESIS_VALIDATORS_ROOT = "0x0000000000000000000000000000000000000000000000000000000000000000" (mainnet) - network genesis validators root 47 | "0x99b09fcd43e5905236c370f184056bec6e6638cfc31a323b304fc4aa789cb4ad" (kiln) 48 | 49 | -genesis-fork-version GENESIS_FORK_VERSION = "0x00000000" (mainnet) - network fork version 50 | "0x70000069" (kiln) 51 | -bellatrix-fork-version BELLATRIX_FORK_VERSION = "0x02000000" (mainnet) - network bellatrix fork version 52 | "0x70000071" (kiln) 53 | ``` 54 | 55 | ### Run mev-boost 56 | 57 | ``` 58 | ./mev-boost -relays https://builder-relay-kiln.flashbots.net 59 | ``` 60 | 61 | ### Run beacon node 62 | 63 | `test-cli` needs beacon node to know current block hash (getHeader) and slot (getPayload). 64 | If running against mergemock, pass `-mm` and disregard `-bn`. 65 | 66 | ### Pre-bellatrix run execution layer 67 | 68 | Beacon node does not reply with block hash, it has to be taken from the execution. 69 | If running against mergemock, `test-cli` will take the block hash from execution and fake the slot. 70 | 71 | ### Generate validator data 72 | 73 | ``` 74 | ./test-cli generate [-gas-limit GAS_LIMIT] [-fee-recipient FEE_RECIPIENT] 75 | ``` 76 | 77 | If you wish you can substitute the randomly generated validator data in the validator data file. 78 | 79 | ### Register the validator 80 | 81 | ``` 82 | ./test-cli register [-mev-boost] 83 | ``` 84 | 85 | ### Test getHeader 86 | 87 | ``` 88 | ./test-cli getHeader [-mev-boost] [-bn beacon_endpoint] [-en execution_endpoint] [-mm] 89 | ``` 90 | 91 | The call will return relay's current header. 92 | 93 | ### Test getPayload 94 | 95 | ``` 96 | ./test-cli getPayload [-mev-boost] [-bn beacon_endpoint] [-en execution_endpoint] [-mm] 97 | ``` 98 | 99 | The call will return relay's best execution payload. 100 | Signature checks on the test relay are disabled to allow ad-hoc testing. 101 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, caste, color, religion, or sexual 10 | identity and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the overall 26 | community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or advances of 31 | any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email address, 35 | without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement writing an 63 | email to leo@flashbots.net or contacting elopio#8526 in 64 | [Discord](https://discord.com/invite/7hvTycdNcK). 65 | All complaints will be reviewed and investigated promptly and fairly. 66 | 67 | All community leaders are obligated to respect the privacy and security of the 68 | reporter of any incident. 69 | 70 | ## Enforcement Guidelines 71 | 72 | Community leaders will follow these Community Impact Guidelines in determining 73 | the consequences for any action they deem in violation of this Code of Conduct: 74 | 75 | ### 1. Correction 76 | 77 | **Community Impact**: Use of inappropriate language or other behavior deemed 78 | unprofessional or unwelcome in the community. 79 | 80 | **Consequence**: A private, written warning from community leaders, providing 81 | clarity around the nature of the violation and an explanation of why the 82 | behavior was inappropriate. A public apology may be requested. 83 | 84 | ### 2. Warning 85 | 86 | **Community Impact**: A violation through a single incident or series of 87 | actions. 88 | 89 | **Consequence**: A warning with consequences for continued behavior. No 90 | interaction with the people involved, including unsolicited interaction with 91 | those enforcing the Code of Conduct, for a specified period of time. This 92 | includes avoiding interactions in community spaces as well as external channels 93 | like social media. Violating these terms may lead to a temporary or permanent 94 | ban. 95 | 96 | ### 3. Temporary Ban 97 | 98 | **Community Impact**: A serious violation of community standards, including 99 | sustained inappropriate behavior. 100 | 101 | **Consequence**: A temporary ban from any sort of interaction or public 102 | communication with the community for a specified period of time. No public or 103 | private interaction with the people involved, including unsolicited interaction 104 | with those enforcing the Code of Conduct, is allowed during this period. 105 | Violating these terms may lead to a permanent ban. 106 | 107 | ### 4. Permanent Ban 108 | 109 | **Community Impact**: Demonstrating a pattern of violation of community 110 | standards, including sustained inappropriate behavior, harassment of an 111 | individual, or aggression toward or disparagement of classes of individuals. 112 | 113 | **Consequence**: A permanent ban from any sort of public interaction within the 114 | community. 115 | 116 | ## Attribution 117 | 118 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 119 | version 2.1, available at 120 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. 121 | 122 | Community Impact Guidelines were inspired by 123 | [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. 124 | 125 | For answers to common questions about this code of conduct, see the FAQ at 126 | [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at 127 | [https://www.contributor-covenant.org/translations][translations]. 128 | 129 | [homepage]: https://www.contributor-covenant.org 130 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html 131 | [Mozilla CoC]: https://github.com/mozilla/diversity 132 | [FAQ]: https://www.contributor-covenant.org/faq 133 | [translations]: https://www.contributor-covenant.org/translations 134 | -------------------------------------------------------------------------------- /server/mock_types_test.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "github.com/ethereum/go-ethereum/common" 5 | "github.com/ethereum/go-ethereum/common/hexutil" 6 | "github.com/flashbots/go-boost-utils/bls" 7 | "github.com/flashbots/go-boost-utils/types" 8 | "github.com/stretchr/testify/require" 9 | "testing" 10 | ) 11 | 12 | func TestHexToBytes(t *testing.T) { 13 | testCases := []struct { 14 | name string 15 | hex string 16 | 17 | expectedPanic bool 18 | expectedBytes []byte 19 | }{ 20 | { 21 | name: "Should panic because of invalid hexadecimal input", 22 | hex: "foo", 23 | expectedPanic: true, 24 | expectedBytes: nil, 25 | }, 26 | { 27 | name: "Should not panic and convert hexadecimal input to byte array", 28 | hex: "0x0102", 29 | expectedPanic: false, 30 | expectedBytes: []byte{0x01, 0x02}, 31 | }, 32 | } 33 | 34 | for _, tt := range testCases { 35 | t.Run(tt.name, func(t *testing.T) { 36 | if tt.expectedPanic { 37 | require.Panics(t, func() { 38 | _HexToBytes(tt.hex) 39 | }) 40 | } else { 41 | require.NotPanics(t, func() { 42 | actualBytes := _HexToBytes(tt.hex) 43 | require.Equal(t, tt.expectedBytes, actualBytes) 44 | }) 45 | } 46 | }) 47 | } 48 | } 49 | 50 | // Providing foo works, definitely a weird behavior. 51 | func TestHexToHash(t *testing.T) { 52 | testCases := []struct { 53 | name string 54 | hex string 55 | 56 | expectedPanic bool 57 | expectedHash *types.Hash 58 | }{ 59 | { 60 | name: "Should panic because of empty hexadecimal input", 61 | hex: "", 62 | expectedPanic: true, 63 | expectedHash: nil, 64 | }, 65 | /* 66 | { 67 | name: "Should panic because of invalid hexadecimal input", 68 | hex: "foo", 69 | expectedPanic: true, 70 | expectedHash: nil, 71 | }, 72 | */ 73 | { 74 | name: "Should not panic and convert hexadecimal input to hash", 75 | hex: common.Hash{0x01}.String(), 76 | expectedPanic: false, 77 | expectedHash: &types.Hash{0x01}, 78 | }, 79 | } 80 | 81 | for _, tt := range testCases { 82 | t.Run(tt.name, func(t *testing.T) { 83 | if tt.expectedPanic { 84 | require.Panics(t, func() { 85 | _HexToHash(tt.hex) 86 | }) 87 | } else { 88 | require.NotPanics(t, func() { 89 | actualHash := _HexToHash(tt.hex) 90 | require.Equal(t, *tt.expectedHash, actualHash) 91 | }) 92 | } 93 | }) 94 | } 95 | } 96 | 97 | // Providing foo works here too, definitely a weird behavior. 98 | func TestHexToAddress(t *testing.T) { 99 | testCases := []struct { 100 | name string 101 | hex string 102 | 103 | expectedPanic bool 104 | expectedAddress *types.Address 105 | }{ 106 | { 107 | name: "Should panic because of empty hexadecimal input", 108 | hex: "", 109 | expectedPanic: true, 110 | expectedAddress: nil, 111 | }, 112 | /* 113 | { 114 | name: "Should panic because of invalid hexadecimal input", 115 | hex: "foo", 116 | expectedPanic: true, 117 | expectedAddress: nil, 118 | }, 119 | */ 120 | { 121 | name: "Should not panic and convert hexadecimal input to address", 122 | hex: common.Address{0x01}.String(), 123 | expectedPanic: false, 124 | expectedAddress: &types.Address{0x01}, 125 | }, 126 | } 127 | 128 | for _, tt := range testCases { 129 | t.Run(tt.name, func(t *testing.T) { 130 | if tt.expectedPanic { 131 | require.Panics(t, func() { 132 | _HexToAddress(tt.hex) 133 | }) 134 | } else { 135 | require.NotPanics(t, func() { 136 | actualAddress := _HexToAddress(tt.hex) 137 | require.Equal(t, *tt.expectedAddress, actualAddress) 138 | }) 139 | } 140 | }) 141 | } 142 | } 143 | 144 | // Same as for TestHexToHash and TestHexToAddress. 145 | func TestHexToPublicKey(t *testing.T) { 146 | testCases := []struct { 147 | name string 148 | hex string 149 | 150 | expectedPanic bool 151 | expectedPublicKey *types.PublicKey 152 | }{ 153 | { 154 | name: "Should panic because of empty hexadecimal input", 155 | hex: "", 156 | expectedPanic: true, 157 | expectedPublicKey: nil, 158 | }, 159 | /* 160 | { 161 | name: "Should panic because of invalid hexadecimal input", 162 | hex: "foo", 163 | expectedPanic: true, 164 | expectedSignature: nil, 165 | }, 166 | */ 167 | { 168 | name: "Should not panic and convert hexadecimal input to public key", 169 | hex: types.PublicKey{0x01}.String(), 170 | expectedPanic: false, 171 | expectedPublicKey: &types.PublicKey{0x01}, 172 | }, 173 | } 174 | 175 | for _, tt := range testCases { 176 | t.Run(tt.name, func(t *testing.T) { 177 | if tt.expectedPanic { 178 | require.Panics(t, func() { 179 | _HexToPubkey(tt.hex) 180 | }) 181 | } else { 182 | require.NotPanics(t, func() { 183 | actualPublicKey := _HexToPubkey(tt.hex) 184 | require.Equal(t, *tt.expectedPublicKey, actualPublicKey) 185 | }) 186 | } 187 | }) 188 | } 189 | } 190 | 191 | // Same as for TestHexToHash, TestHexToAddress and TestHexToPublicKey. 192 | func TestHexToSignature(t *testing.T) { 193 | // Sign a message for further testing. 194 | privateKey, blsPublicKey, err := bls.GenerateNewKeypair() 195 | require.NoError(t, err) 196 | 197 | publicKey := hexutil.Encode(blsPublicKey.Compress()) 198 | 199 | message := &types.BuilderBid{ 200 | Header: &types.ExecutionPayloadHeader{ 201 | BlockHash: _HexToHash("0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7"), 202 | }, 203 | Value: types.IntToU256(12345), 204 | Pubkey: _HexToPubkey(publicKey), 205 | } 206 | ssz, err := message.MarshalSSZ() 207 | require.NoError(t, err) 208 | 209 | sig := bls.Sign(privateKey, ssz) 210 | sigBytes := sig.Compress() 211 | 212 | // Convert bls.Signature bytes to types.Signature 213 | signature := &types.Signature{} 214 | signature.FromSlice(sigBytes) 215 | 216 | testCases := []struct { 217 | name string 218 | hex string 219 | 220 | expectedPanic bool 221 | expectedSignature *types.Signature 222 | }{ 223 | { 224 | name: "Should panic because of empty hexadecimal input", 225 | hex: "", 226 | expectedPanic: true, 227 | expectedSignature: nil, 228 | }, 229 | /* 230 | { 231 | name: "Should panic because of invalid hexadecimal input", 232 | hex: "foo", 233 | expectedPanic: true, 234 | expectedSignature: nil, 235 | }, 236 | */ 237 | { 238 | name: "Should not panic and convert hexadecimal input to signature", 239 | hex: hexutil.Encode(sigBytes), 240 | expectedPanic: false, 241 | expectedSignature: signature, 242 | }, 243 | } 244 | 245 | for _, tt := range testCases { 246 | t.Run(tt.name, func(t *testing.T) { 247 | if tt.expectedPanic { 248 | require.Panics(t, func() { 249 | _HexToSignature(tt.hex) 250 | }) 251 | } else { 252 | require.NotPanics(t, func() { 253 | actualSignature := _HexToSignature(tt.hex) 254 | require.Equal(t, *tt.expectedSignature, actualSignature) 255 | }) 256 | } 257 | }) 258 | } 259 | } 260 | -------------------------------------------------------------------------------- /server/mock_relay.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | "github.com/flashbots/go-boost-utils/bls" 7 | "github.com/flashbots/go-boost-utils/types" 8 | "github.com/gorilla/mux" 9 | "github.com/stretchr/testify/require" 10 | "net/http" 11 | "net/http/httptest" 12 | "sync" 13 | "testing" 14 | "time" 15 | ) 16 | 17 | // mockRelay is used to fake a relay's behavior. 18 | // You can override each of its handler by setting the instance's HandlerOverride_METHOD_TO_OVERRIDE to your own 19 | // handler. 20 | type mockRelay struct { 21 | // Used to panic if impossible error happens 22 | t *testing.T 23 | 24 | // KeyPair used to sign messages 25 | secretKey *bls.SecretKey 26 | publicKey *bls.PublicKey 27 | 28 | // Used to count each Request made to the relay, either if it fails or not, for each method 29 | mu sync.Mutex 30 | requestCount map[string]int 31 | 32 | // Overriders 33 | HandlerOverrideRegisterValidator func(w http.ResponseWriter, req *http.Request) 34 | HandlerOverrideGetHeader func(w http.ResponseWriter, req *http.Request) 35 | HandlerOverrideGetPayload func(w http.ResponseWriter, req *http.Request) 36 | 37 | // Default responses placeholders, used if overrider does not exist 38 | GetHeaderResponse *types.GetHeaderResponse 39 | GetPayloadResponse *types.GetPayloadResponse 40 | 41 | // Server section 42 | Server *httptest.Server 43 | ResponseDelay time.Duration 44 | } 45 | 46 | // newMockRelay creates a mocked relay which implements the backend.BoostBackend interface 47 | // A secret key must be provided to sign default and custom response messages 48 | func newMockRelay(t *testing.T, secretKey *bls.SecretKey) *mockRelay { 49 | publicKey := bls.PublicKeyFromSecretKey(secretKey) 50 | relay := &mockRelay{t: t, secretKey: secretKey, publicKey: publicKey, requestCount: make(map[string]int)} 51 | 52 | // Initialize server 53 | relay.Server = httptest.NewServer(relay.getRouter()) 54 | 55 | return relay 56 | } 57 | 58 | // newTestMiddleware creates a middleware which increases the Request counter and creates a fake delay for the response 59 | func (m *mockRelay) newTestMiddleware(next http.Handler) http.Handler { 60 | return http.HandlerFunc( 61 | func(w http.ResponseWriter, r *http.Request) { 62 | // Request counter 63 | m.mu.Lock() 64 | url := r.URL.EscapedPath() 65 | m.requestCount[url]++ 66 | m.mu.Unlock() 67 | 68 | // Artificial Delay 69 | if m.ResponseDelay > 0 { 70 | time.Sleep(m.ResponseDelay) 71 | } 72 | 73 | next.ServeHTTP(w, r) 74 | }, 75 | ) 76 | } 77 | 78 | // getRouter registers all methods from the backend, apply the test middleware a,nd return the configured router 79 | func (m *mockRelay) getRouter() http.Handler { 80 | // Create router. 81 | r := mux.NewRouter() 82 | 83 | // Register handlers 84 | r.HandleFunc("/", m.handleRoot).Methods(http.MethodGet) 85 | r.HandleFunc(pathStatus, m.handleStatus).Methods(http.MethodGet) 86 | r.HandleFunc(pathRegisterValidator, m.handleRegisterValidator).Methods(http.MethodPost) 87 | r.HandleFunc(pathGetHeader, m.handleGetHeader).Methods(http.MethodGet) 88 | r.HandleFunc(pathGetPayload, m.handleGetPayload).Methods(http.MethodPost) 89 | 90 | return m.newTestMiddleware(r) 91 | } 92 | 93 | // GetRequestCount returns the number of Request made to a specific URL 94 | func (m *mockRelay) GetRequestCount(path string) int { 95 | m.mu.Lock() 96 | defer m.mu.Unlock() 97 | return m.requestCount[path] 98 | } 99 | 100 | // By default, handleRoot returns the relay's status 101 | func (m *mockRelay) handleRoot(w http.ResponseWriter, req *http.Request) { 102 | w.Header().Set("Content-Type", "application/json") 103 | w.WriteHeader(http.StatusOK) 104 | fmt.Fprintf(w, `{}`) 105 | } 106 | 107 | // By default, handleStatus returns the relay's status as http.StatusOK 108 | func (m *mockRelay) handleStatus(w http.ResponseWriter, req *http.Request) { 109 | w.Header().Set("Content-Type", "application/json") 110 | w.WriteHeader(http.StatusOK) 111 | fmt.Fprintf(w, `{}`) 112 | } 113 | 114 | // By default, handleRegisterValidator returns a default types.SignedValidatorRegistration 115 | func (m *mockRelay) handleRegisterValidator(w http.ResponseWriter, req *http.Request) { 116 | if m.HandlerOverrideRegisterValidator != nil { 117 | m.HandlerOverrideRegisterValidator(w, req) 118 | return 119 | } 120 | 121 | payload := []types.SignedValidatorRegistration{} 122 | if err := json.NewDecoder(req.Body).Decode(&payload); err != nil { 123 | http.Error(w, err.Error(), http.StatusBadRequest) 124 | return 125 | } 126 | 127 | w.Header().Set("Content-Type", "application/json") 128 | w.WriteHeader(http.StatusOK) 129 | } 130 | 131 | // MakeGetHeaderResponse is used to create the default or can be used to create a custom response to the getHeader 132 | // method 133 | func (m *mockRelay) MakeGetHeaderResponse(value uint64, hash, publicKey string) *types.GetHeaderResponse { 134 | // Fill the payload with custom values. 135 | message := &types.BuilderBid{ 136 | Header: &types.ExecutionPayloadHeader{ 137 | BlockHash: _HexToHash(hash), 138 | }, 139 | Value: types.IntToU256(value), 140 | Pubkey: _HexToPubkey(publicKey), 141 | } 142 | 143 | // Sign the message. 144 | signature, err := types.SignMessage(message, types.DomainBuilder, m.secretKey) 145 | require.NoError(m.t, err) 146 | 147 | return &types.GetHeaderResponse{ 148 | Version: "bellatrix", 149 | Data: &types.SignedBuilderBid{ 150 | Message: message, 151 | Signature: signature, 152 | }, 153 | } 154 | } 155 | 156 | // handleGetHeader handles incoming requests to server.pathGetHeader 157 | func (m *mockRelay) handleGetHeader(w http.ResponseWriter, req *http.Request) { 158 | // Try to override default behavior is custom handler is specified. 159 | if m.HandlerOverrideGetHeader != nil { 160 | m.HandlerOverrideGetHeader(w, req) 161 | return 162 | } 163 | 164 | // By default, everything will be ok. 165 | w.Header().Set("Content-Type", "application/json") 166 | w.WriteHeader(http.StatusOK) 167 | 168 | // Build the default response. 169 | response := m.MakeGetHeaderResponse( 170 | 12345, 171 | "0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7", 172 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249", 173 | ) 174 | if m.GetHeaderResponse != nil { 175 | response = m.GetHeaderResponse 176 | } 177 | 178 | if err := json.NewEncoder(w).Encode(response); err != nil { 179 | http.Error(w, err.Error(), http.StatusInternalServerError) 180 | return 181 | } 182 | } 183 | 184 | // MakeGetPayloadResponse is used to create the default or can be used to create a custom response to the getPayload 185 | // method 186 | func (m *mockRelay) MakeGetPayloadResponse(parentHash, blockHash, feeRecipient string, blockNumber uint64) *types.GetPayloadResponse { 187 | return &types.GetPayloadResponse{ 188 | Version: "bellatrix", 189 | Data: &types.ExecutionPayload{ 190 | ParentHash: _HexToHash(parentHash), 191 | BlockHash: _HexToHash(blockHash), 192 | BlockNumber: blockNumber, 193 | FeeRecipient: _HexToAddress(feeRecipient), 194 | }, 195 | } 196 | } 197 | 198 | // handleGetPayload handles incoming requests to server.pathGetPayload 199 | func (m *mockRelay) handleGetPayload(w http.ResponseWriter, req *http.Request) { 200 | // Try to override default behavior is custom handler is specified. 201 | if m.HandlerOverrideGetPayload != nil { 202 | m.HandlerOverrideGetPayload(w, req) 203 | return 204 | } 205 | 206 | // By default, everything will be ok. 207 | w.Header().Set("Content-Type", "application/json") 208 | w.WriteHeader(http.StatusOK) 209 | 210 | // Build the default response. 211 | response := m.MakeGetPayloadResponse( 212 | "0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7", 213 | "0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab1", 214 | "0xdb65fEd33dc262Fe09D9a2Ba8F80b329BA25f941", 215 | 12345, 216 | ) 217 | if m.GetPayloadResponse != nil { 218 | response = m.GetPayloadResponse 219 | } 220 | 221 | if err := json.NewEncoder(w).Encode(response); err != nil { 222 | http.Error(w, err.Error(), http.StatusInternalServerError) 223 | return 224 | } 225 | } 226 | -------------------------------------------------------------------------------- /cmd/test-cli/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "flag" 6 | "fmt" 7 | "net/http" 8 | "os" 9 | "strconv" 10 | 11 | "github.com/ethereum/go-ethereum/common" 12 | "github.com/ethereum/go-ethereum/common/hexutil" 13 | boostTypes "github.com/flashbots/go-boost-utils/types" 14 | "github.com/sirupsen/logrus" 15 | 16 | "github.com/flashbots/mev-boost/server" 17 | ) 18 | 19 | var log = logrus.WithField("service", "cmd/test-cli") 20 | 21 | func doGenerateValidator(filePath string, gasLimit uint64, feeRecipient string) { 22 | v := newRandomValidator(gasLimit, feeRecipient) 23 | err := v.SaveValidator(filePath) 24 | if err != nil { 25 | log.WithError(err).Fatal("Could not save validator data") 26 | } 27 | log.WithField("file", filePath).Info("Saved validator data") 28 | } 29 | 30 | func doRegisterValidator(v validatorPrivateData, boostEndpoint string, builderSigningDomain boostTypes.Domain) { 31 | message, err := v.PrepareRegistrationMessage(builderSigningDomain) 32 | if err != nil { 33 | log.WithError(err).Fatal("Could not prepare registration message") 34 | } 35 | err = server.SendHTTPRequest(context.TODO(), *http.DefaultClient, http.MethodPost, boostEndpoint+"/eth/v1/builder/validators", message, nil) 36 | 37 | if err != nil { 38 | log.WithError(err).Fatal("Validator registration not successful") 39 | } 40 | 41 | log.WithError(err).Info("Registered validator") 42 | } 43 | 44 | func doGetHeader(v validatorPrivateData, boostEndpoint string, beaconNode Beacon, engineEndpoint string, builderSigningDomain boostTypes.Domain) boostTypes.GetHeaderResponse { 45 | // Mergemock needs to call forkchoice update before getHeader, for non-mergemock beacon node this is a no-op 46 | err := beaconNode.onGetHeader() 47 | if err != nil { 48 | log.WithError(err).Fatal("onGetHeader hook failed") 49 | } 50 | 51 | currentBlock, err := beaconNode.getCurrentBeaconBlock() 52 | if err != nil { 53 | log.WithError(err).Fatal("could not retrieve current block hash from beacon endpoint") 54 | } 55 | 56 | var currentBlockHash string 57 | var emptyHash common.Hash 58 | // Beacon does not return block hash pre-bellatrix, fetch it from the engine if that's the case 59 | if currentBlock.BlockHash != emptyHash { 60 | currentBlockHash = currentBlock.BlockHash.String() 61 | } else if currentBlockHash == "" { 62 | block, err := getLatestEngineBlock(engineEndpoint) 63 | if err != nil { 64 | log.WithError(err).Fatal("could not get current block hash") 65 | } 66 | currentBlockHash = block.Hash.String() 67 | } 68 | 69 | uri := fmt.Sprintf("%s/eth/v1/builder/header/%d/%s/%s", boostEndpoint, currentBlock.Slot+1, currentBlockHash, v.Pk.String()) 70 | 71 | var getHeaderResp boostTypes.GetHeaderResponse 72 | if err := server.SendHTTPRequest(context.TODO(), *http.DefaultClient, http.MethodGet, uri, nil, &getHeaderResp); err != nil { 73 | log.WithError(err).WithField("currentBlockHash", currentBlockHash).Fatal("Could not get header") 74 | } 75 | 76 | if getHeaderResp.Data.Message == nil { 77 | log.Fatal("Did not receive correct header") 78 | } 79 | log.WithField("header", *getHeaderResp.Data.Message).Info("Got header from boost") 80 | 81 | ok, err := boostTypes.VerifySignature(getHeaderResp.Data.Message, builderSigningDomain, getHeaderResp.Data.Message.Pubkey[:], getHeaderResp.Data.Signature[:]) 82 | if err != nil { 83 | log.WithError(err).Fatal("Could not verify builder bid signature") 84 | } 85 | if !ok { 86 | log.Fatal("Incorrect builder bid signature") 87 | } 88 | 89 | return getHeaderResp 90 | } 91 | 92 | func doGetPayload(v validatorPrivateData, boostEndpoint string, beaconNode Beacon, engineEndpoint string, builderSigningDomain boostTypes.Domain, proposerSigningDomain boostTypes.Domain) { 93 | header := doGetHeader(v, boostEndpoint, beaconNode, engineEndpoint, builderSigningDomain) 94 | 95 | blindedBeaconBlock := boostTypes.BlindedBeaconBlock{ 96 | Slot: 0, 97 | ProposerIndex: 0, 98 | ParentRoot: boostTypes.Root{}, 99 | StateRoot: boostTypes.Root{}, 100 | Body: &boostTypes.BlindedBeaconBlockBody{ 101 | RandaoReveal: boostTypes.Signature{}, 102 | Eth1Data: &boostTypes.Eth1Data{}, 103 | Graffiti: boostTypes.Hash{}, 104 | ProposerSlashings: []*boostTypes.ProposerSlashing{}, 105 | AttesterSlashings: []*boostTypes.AttesterSlashing{}, 106 | Attestations: []*boostTypes.Attestation{}, 107 | Deposits: []*boostTypes.Deposit{}, 108 | VoluntaryExits: []*boostTypes.VoluntaryExit{}, 109 | SyncAggregate: &boostTypes.SyncAggregate{}, 110 | ExecutionPayloadHeader: header.Data.Message.Header, 111 | }, 112 | } 113 | 114 | signature, err := v.Sign(&blindedBeaconBlock, proposerSigningDomain) 115 | if err != nil { 116 | log.WithError(err).Fatal("could not sign blinded beacon block") 117 | } 118 | 119 | payload := boostTypes.SignedBlindedBeaconBlock{ 120 | Message: &blindedBeaconBlock, 121 | Signature: signature, 122 | } 123 | var respPayload boostTypes.GetPayloadResponse 124 | if err := server.SendHTTPRequest(context.TODO(), *http.DefaultClient, http.MethodPost, boostEndpoint+"/eth/v1/builder/blinded_blocks", payload, &respPayload); err != nil { 125 | log.WithError(err).Fatal("could not get payload") 126 | } 127 | 128 | if respPayload.Data == nil { 129 | log.Fatal("Did not receive correct payload") 130 | } 131 | log.WithField("payload", *respPayload.Data).Info("got payload from mev-boost") 132 | } 133 | 134 | func main() { 135 | generateCommand := flag.NewFlagSet("generate", flag.ExitOnError) 136 | registerCommand := flag.NewFlagSet("register", flag.ExitOnError) 137 | getHeaderCommand := flag.NewFlagSet("getHeader", flag.ExitOnError) 138 | getPayloadCommand := flag.NewFlagSet("getPayload", flag.ExitOnError) 139 | 140 | var validatorDataFile string 141 | envValidatorDataFile := getEnv("VALIDATOR_DATA_FILE", "./validator_data.json") 142 | generateCommand.StringVar(&validatorDataFile, "vd-file", envValidatorDataFile, "Path to validator data file") 143 | registerCommand.StringVar(&validatorDataFile, "vd-file", envValidatorDataFile, "Path to validator data file") 144 | getHeaderCommand.StringVar(&validatorDataFile, "vd-file", envValidatorDataFile, "Path to validator data file") 145 | getPayloadCommand.StringVar(&validatorDataFile, "vd-file", envValidatorDataFile, "Path to validator data file") 146 | 147 | var boostEndpoint string 148 | envBoostEndpoint := getEnv("MEV_BOOST_ENDPOINT", "http://127.0.0.1:18550") 149 | registerCommand.StringVar(&boostEndpoint, "mev-boost", envBoostEndpoint, "Mev boost endpoint") 150 | getHeaderCommand.StringVar(&boostEndpoint, "mev-boost", envBoostEndpoint, "Mev boost endpoint") 151 | getPayloadCommand.StringVar(&boostEndpoint, "mev-boost", envBoostEndpoint, "Mev boost endpoint") 152 | 153 | var beaconEndpoint string 154 | envBeaconEndpoint := getEnv("BEACON_ENDPOINT", "http://localhost:5052") 155 | getHeaderCommand.StringVar(&beaconEndpoint, "bn", envBeaconEndpoint, "Beacon node endpoint") 156 | getPayloadCommand.StringVar(&beaconEndpoint, "bn", envBeaconEndpoint, "Beacon node endpoint") 157 | 158 | var isMergemock bool 159 | getHeaderCommand.BoolVar(&isMergemock, "mm", false, "Use mergemock EL to fake beacon node") 160 | getPayloadCommand.BoolVar(&isMergemock, "mm", false, "Use mergemock EL to fake beacon node") 161 | 162 | var engineEndpoint string 163 | envEngineEndpoint := getEnv("ENGINE_ENDPOINT", "http://localhost:8545") 164 | getHeaderCommand.StringVar(&engineEndpoint, "en", envEngineEndpoint, "Engine endpoint") 165 | getPayloadCommand.StringVar(&engineEndpoint, "en", envEngineEndpoint, "Engine endpoint") 166 | 167 | var genesisValidatorsRootStr string 168 | envGenesisValidatorsRoot := getEnv("GENESIS_VALIDATORS_ROOT", "0x0000000000000000000000000000000000000000000000000000000000000000") 169 | getPayloadCommand.StringVar(&genesisValidatorsRootStr, "genesis-validators-root", envGenesisValidatorsRoot, "Root of genesis validators") 170 | 171 | var genesisForkVersionStr string 172 | envGenesisForkVersion := getEnv("GENESIS_FORK_VERSION", "0x00000000") 173 | registerCommand.StringVar(&genesisForkVersionStr, "genesis-fork-version", envGenesisForkVersion, "hex encoded genesis fork version") 174 | getHeaderCommand.StringVar(&genesisForkVersionStr, "genesis-fork-version", envGenesisForkVersion, "hex encoded genesis fork version") 175 | getPayloadCommand.StringVar(&genesisForkVersionStr, "genesis-fork-version", envGenesisForkVersion, "hex encoded genesis fork version") 176 | 177 | var bellatrixForkVersionStr string 178 | envBellatrixForkVersion := getEnv("BELLATRIX_FORK_VERSION", "0x02000000") 179 | getPayloadCommand.StringVar(&bellatrixForkVersionStr, "bellatrix-fork-version", envBellatrixForkVersion, "hex encoded bellatrix fork version") 180 | 181 | var gasLimit uint64 182 | envGasLimitStr := getEnv("VALIDATOR_GAS_LIMIT", "30000000") 183 | envGasLimit, err := strconv.Atoi(envGasLimitStr) 184 | if err != nil { 185 | log.WithError(err).Fatal("invalid gas limit specified") 186 | } 187 | generateCommand.Uint64Var(&gasLimit, "gas-limit", uint64(envGasLimit), "Gas limit to register the validator with") 188 | 189 | var validatorFeeRecipient string 190 | envValidatorFeeRecipient := getEnv("VALIDATOR_FEE_RECIPIENT", "0x0000000000000000000000000000000000000000") 191 | generateCommand.StringVar(&validatorFeeRecipient, "feeRecipient", envValidatorFeeRecipient, "FeeRecipient to register the validator with") 192 | 193 | flag.Usage = func() { 194 | fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s [generate|register|getHeader|getPayload]:\n", os.Args[0]) 195 | flag.PrintDefaults() 196 | } 197 | 198 | if len(os.Args) < 2 { 199 | flag.Usage() 200 | os.Exit(1) 201 | } 202 | 203 | switch os.Args[1] { 204 | case "generate": 205 | generateCommand.Parse(os.Args[2:]) 206 | doGenerateValidator(validatorDataFile, gasLimit, validatorFeeRecipient) 207 | case "register": 208 | registerCommand.Parse(os.Args[2:]) 209 | builderSigningDomain := computeDomain(boostTypes.DomainTypeAppBuilder, genesisForkVersionStr, boostTypes.Root{}.String()) 210 | doRegisterValidator(mustLoadValidator(validatorDataFile), boostEndpoint, builderSigningDomain) 211 | case "getHeader": 212 | getHeaderCommand.Parse(os.Args[2:]) 213 | builderSigningDomain := computeDomain(boostTypes.DomainTypeAppBuilder, genesisForkVersionStr, boostTypes.Root{}.String()) 214 | doGetHeader(mustLoadValidator(validatorDataFile), boostEndpoint, createBeacon(isMergemock, beaconEndpoint, engineEndpoint), engineEndpoint, builderSigningDomain) 215 | case "getPayload": 216 | getPayloadCommand.Parse(os.Args[2:]) 217 | builderSigningDomain := computeDomain(boostTypes.DomainTypeAppBuilder, genesisForkVersionStr, boostTypes.Root{}.String()) 218 | proposerSigningDomain := computeDomain(boostTypes.DomainTypeBeaconProposer, bellatrixForkVersionStr, genesisValidatorsRootStr) 219 | doGetPayload(mustLoadValidator(validatorDataFile), boostEndpoint, createBeacon(isMergemock, beaconEndpoint, engineEndpoint), engineEndpoint, builderSigningDomain, proposerSigningDomain) 220 | default: 221 | fmt.Println("Expected generate|register|getHeader|getPayload subcommand") 222 | os.Exit(1) 223 | } 224 | } 225 | 226 | func computeDomain(domainType boostTypes.DomainType, forkVersionHex string, genesisValidatorsRootHex string) boostTypes.Domain { 227 | genesisValidatorsRoot := boostTypes.Root(common.HexToHash(genesisValidatorsRootHex)) 228 | forkVersionBytes, err := hexutil.Decode(forkVersionHex) 229 | if err != nil || len(forkVersionBytes) > 4 { 230 | fmt.Println("Invalid fork version passed") 231 | os.Exit(1) 232 | } 233 | var forkVersion [4]byte 234 | copy(forkVersion[:], forkVersionBytes[:4]) 235 | return boostTypes.ComputeDomain(domainType, forkVersion, genesisValidatorsRoot) 236 | } 237 | 238 | func getEnv(key string, defaultValue string) string { 239 | if value, ok := os.LookupEnv(key); ok { 240 | return value 241 | } 242 | return defaultValue 243 | } 244 | -------------------------------------------------------------------------------- /server/service.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "errors" 7 | "fmt" 8 | "net/http" 9 | "strconv" 10 | "sync" 11 | "time" 12 | 13 | "github.com/flashbots/go-boost-utils/types" 14 | "github.com/flashbots/go-utils/httplogger" 15 | "github.com/gorilla/mux" 16 | "github.com/sirupsen/logrus" 17 | ) 18 | 19 | var ( 20 | errInvalidSlot = errors.New("invalid slot") 21 | errInvalidHash = errors.New("invalid hash") 22 | errInvalidPubkey = errors.New("invalid pubkey") 23 | errInvalidSignature = errors.New("invalid signature") 24 | 25 | errServerAlreadyRunning = errors.New("server already running") 26 | ) 27 | 28 | var nilHash = types.Hash{} 29 | 30 | // HTTPServerTimeouts are various timeouts for requests to the mev-boost HTTP server 31 | type HTTPServerTimeouts struct { 32 | Read time.Duration // Timeout for body reads. None if 0. 33 | ReadHeader time.Duration // Timeout for header reads. None if 0. 34 | Write time.Duration // Timeout for writes. None if 0. 35 | Idle time.Duration // Timeout to disconnect idle client connections. None if 0. 36 | } 37 | 38 | // NewDefaultHTTPServerTimeouts creates default server timeouts 39 | func NewDefaultHTTPServerTimeouts() HTTPServerTimeouts { 40 | return HTTPServerTimeouts{ 41 | Read: 4 * time.Second, 42 | ReadHeader: 2 * time.Second, 43 | Write: 6 * time.Second, 44 | Idle: 10 * time.Second, 45 | } 46 | } 47 | 48 | // BoostService TODO 49 | type BoostService struct { 50 | listenAddr string 51 | relays []RelayEntry 52 | log *logrus.Entry 53 | srv *http.Server 54 | 55 | serverTimeouts HTTPServerTimeouts 56 | 57 | httpClient http.Client 58 | } 59 | 60 | // NewBoostService created a new BoostService 61 | func NewBoostService(listenAddr string, relays []RelayEntry, log *logrus.Entry, relayRequestTimeout time.Duration) (*BoostService, error) { 62 | // TODO: validate relays 63 | if len(relays) == 0 { 64 | return nil, errors.New("no relays") 65 | } 66 | 67 | return &BoostService{ 68 | listenAddr: listenAddr, 69 | relays: relays, 70 | log: log.WithField("module", "service"), 71 | 72 | serverTimeouts: NewDefaultHTTPServerTimeouts(), 73 | httpClient: http.Client{Timeout: relayRequestTimeout}, 74 | }, nil 75 | } 76 | 77 | func (m *BoostService) getRouter() http.Handler { 78 | r := mux.NewRouter() 79 | r.HandleFunc("/", m.handleRoot) 80 | 81 | r.HandleFunc(pathStatus, m.handleStatus).Methods(http.MethodGet) 82 | r.HandleFunc(pathRegisterValidator, m.handleRegisterValidator).Methods(http.MethodPost) 83 | r.HandleFunc(pathGetHeader, m.handleGetHeader).Methods(http.MethodGet) 84 | r.HandleFunc(pathGetPayload, m.handleGetPayload).Methods(http.MethodPost) 85 | 86 | r.Use(mux.CORSMethodMiddleware(r)) 87 | loggedRouter := httplogger.LoggingMiddlewareLogrus(m.log, r) 88 | return loggedRouter 89 | } 90 | 91 | // StartHTTPServer starts the HTTP server for this boost service instance 92 | func (m *BoostService) StartHTTPServer() error { 93 | if m.srv != nil { 94 | return errServerAlreadyRunning 95 | } 96 | 97 | m.srv = &http.Server{ 98 | Addr: m.listenAddr, 99 | Handler: m.getRouter(), 100 | 101 | ReadTimeout: m.serverTimeouts.Read, 102 | ReadHeaderTimeout: m.serverTimeouts.ReadHeader, 103 | WriteTimeout: m.serverTimeouts.Write, 104 | IdleTimeout: m.serverTimeouts.Idle, 105 | } 106 | 107 | err := m.srv.ListenAndServe() 108 | if err == http.ErrServerClosed { 109 | return nil 110 | } 111 | return err 112 | } 113 | 114 | func (m *BoostService) handleRoot(w http.ResponseWriter, req *http.Request) { 115 | w.Header().Set("Content-Type", "application/json") 116 | w.WriteHeader(http.StatusOK) 117 | fmt.Fprintf(w, `{}`) 118 | } 119 | 120 | func (m *BoostService) handleStatus(w http.ResponseWriter, req *http.Request) { 121 | w.Header().Set("Content-Type", "application/json") 122 | w.WriteHeader(http.StatusOK) 123 | fmt.Fprintf(w, `{}`) 124 | } 125 | 126 | // RegisterValidatorV1 - returns 200 if at least one relay returns 200 127 | func (m *BoostService) handleRegisterValidator(w http.ResponseWriter, req *http.Request) { 128 | log := m.log.WithField("method", "registerValidator") 129 | log.Info("registerValidator") 130 | 131 | payload := []types.SignedValidatorRegistration{} 132 | if err := json.NewDecoder(req.Body).Decode(&payload); err != nil { 133 | http.Error(w, err.Error(), http.StatusBadRequest) 134 | return 135 | } 136 | 137 | for _, registration := range payload { 138 | if len(registration.Message.Pubkey) != 48 { 139 | http.Error(w, errInvalidPubkey.Error(), http.StatusBadRequest) 140 | return 141 | } 142 | 143 | if len(registration.Signature) != 96 { 144 | http.Error(w, errInvalidSignature.Error(), http.StatusBadRequest) 145 | return 146 | } 147 | } 148 | 149 | numSuccessRequestsToRelay := 0 150 | var mu sync.Mutex 151 | 152 | // Call the relays 153 | var wg sync.WaitGroup 154 | for _, relay := range m.relays { 155 | wg.Add(1) 156 | go func(relayAddr string) { 157 | defer wg.Done() 158 | url := relayAddr + pathRegisterValidator 159 | log := log.WithField("url", url) 160 | 161 | err := SendHTTPRequest(context.Background(), m.httpClient, http.MethodPost, url, payload, nil) 162 | if err != nil { 163 | log.WithError(err).Warn("error in registerValidator to relay") 164 | return 165 | } 166 | 167 | mu.Lock() 168 | defer mu.Unlock() 169 | numSuccessRequestsToRelay++ 170 | }(relay.Address) 171 | } 172 | 173 | // Wait for all requests to complete... 174 | wg.Wait() 175 | 176 | if numSuccessRequestsToRelay > 0 { 177 | w.Header().Set("Content-Type", "application/json") 178 | w.WriteHeader(http.StatusOK) 179 | fmt.Fprintf(w, `{}`) 180 | } else { 181 | w.WriteHeader(http.StatusBadGateway) 182 | } 183 | } 184 | 185 | // GetHeaderV1 TODO 186 | func (m *BoostService) handleGetHeader(w http.ResponseWriter, req *http.Request) { 187 | vars := mux.Vars(req) 188 | slot := vars["slot"] 189 | parentHashHex := vars["parent_hash"] 190 | pubkey := vars["pubkey"] 191 | log := m.log.WithFields(logrus.Fields{ 192 | "method": "getHeader", 193 | "slot": slot, 194 | "parentHash": parentHashHex, 195 | "pubkey": pubkey, 196 | }) 197 | log.Info("getHeader") 198 | 199 | if _, err := strconv.ParseUint(slot, 10, 64); err != nil { 200 | http.Error(w, errInvalidSlot.Error(), http.StatusBadRequest) 201 | return 202 | } 203 | 204 | if len(pubkey) != 98 { 205 | http.Error(w, errInvalidPubkey.Error(), http.StatusBadRequest) 206 | return 207 | } 208 | 209 | if len(parentHashHex) != 66 { 210 | http.Error(w, errInvalidHash.Error(), http.StatusBadRequest) 211 | return 212 | } 213 | 214 | result := new(types.GetHeaderResponse) 215 | var mu sync.Mutex 216 | 217 | // Call the relays 218 | var wg sync.WaitGroup 219 | for _, relay := range m.relays { 220 | wg.Add(1) 221 | go func(relayAddr string) { 222 | defer wg.Done() 223 | url := fmt.Sprintf("%s/eth/v1/builder/header/%s/%s/%s", relayAddr, slot, parentHashHex, pubkey) 224 | log := log.WithField("url", url) 225 | responsePayload := new(types.GetHeaderResponse) 226 | err := SendHTTPRequest(context.Background(), m.httpClient, http.MethodGet, url, nil, responsePayload) 227 | 228 | if err != nil { 229 | log.WithError(err).Warn("error making request to relay") 230 | return 231 | } 232 | 233 | // Compare value of header, skip processing this result if lower fee than current 234 | mu.Lock() 235 | defer mu.Unlock() 236 | 237 | // Skip if invalid payload 238 | if responsePayload.Data == nil || responsePayload.Data.Message == nil || responsePayload.Data.Message.Header == nil || responsePayload.Data.Message.Header.BlockHash == nilHash { 239 | return 240 | } 241 | 242 | // Skip if not a higher value 243 | if result.Data != nil && responsePayload.Data.Message.Value.Cmp(&result.Data.Message.Value) < 1 { 244 | return 245 | } 246 | 247 | // Use this relay's response as mev-boost response because it's most profitable 248 | *result = *responsePayload 249 | log.WithFields(logrus.Fields{ 250 | "blockNumber": result.Data.Message.Header.BlockNumber, 251 | "blockHash": result.Data.Message.Header.BlockHash, 252 | "txRoot": result.Data.Message.Header.TransactionsRoot.String(), 253 | "value": result.Data.Message.Value.String(), 254 | "url": relayAddr, 255 | }).Info("getHeader: successfully got more valuable payload header") 256 | }(relay.Address) 257 | } 258 | 259 | // Wait for all requests to complete... 260 | wg.Wait() 261 | 262 | if result.Data == nil || result.Data.Message == nil || result.Data.Message.Header == nil || result.Data.Message.Header.BlockHash == nilHash { 263 | log.Warn("getHeader: no successful response from relays") 264 | http.Error(w, "no valid getHeader response", http.StatusBadGateway) 265 | return 266 | } 267 | 268 | w.Header().Set("Content-Type", "application/json") 269 | w.WriteHeader(http.StatusOK) 270 | if err := json.NewEncoder(w).Encode(result); err != nil { 271 | http.Error(w, err.Error(), http.StatusInternalServerError) 272 | return 273 | } 274 | } 275 | 276 | func (m *BoostService) handleGetPayload(w http.ResponseWriter, req *http.Request) { 277 | log := m.log.WithField("method", "getPayload") 278 | log.Info("getPayload") 279 | 280 | payload := new(types.SignedBlindedBeaconBlock) 281 | if err := json.NewDecoder(req.Body).Decode(payload); err != nil { 282 | http.Error(w, err.Error(), http.StatusBadRequest) 283 | return 284 | } 285 | 286 | if len(payload.Signature) != 96 { 287 | http.Error(w, errInvalidSignature.Error(), http.StatusBadRequest) 288 | return 289 | } 290 | 291 | result := new(types.GetPayloadResponse) 292 | requestCtx, requestCtxCancel := context.WithCancel(context.Background()) 293 | defer requestCtxCancel() 294 | var wg sync.WaitGroup 295 | var mu sync.Mutex 296 | 297 | for _, relay := range m.relays { 298 | wg.Add(1) 299 | go func(relayAddr string) { 300 | defer wg.Done() 301 | url := fmt.Sprintf("%s%s", relayAddr, pathGetPayload) 302 | log := log.WithField("url", url) 303 | responsePayload := new(types.GetPayloadResponse) 304 | err := SendHTTPRequest(requestCtx, m.httpClient, http.MethodPost, url, payload, responsePayload) 305 | 306 | if err != nil { 307 | log.WithError(err).Warn("error making request to relay") 308 | return 309 | } 310 | 311 | if responsePayload.Data == nil || responsePayload.Data.BlockHash == nilHash { 312 | log.Warn("invalid response") 313 | return 314 | } 315 | 316 | // Lock before accessing the shared payload 317 | mu.Lock() 318 | defer mu.Unlock() 319 | 320 | if requestCtx.Err() != nil { // request has been cancelled (or deadline exceeded) 321 | return 322 | } 323 | 324 | // Ensure the response blockhash matches the request 325 | if payload.Message.Body.ExecutionPayloadHeader.BlockHash != responsePayload.Data.BlockHash { 326 | log.WithFields(logrus.Fields{ 327 | "payloadBlockHash": payload.Message.Body.ExecutionPayloadHeader.BlockHash, 328 | "responseBlockHash": responsePayload.Data.BlockHash, 329 | }).Warn("requestBlockHash does not equal responseBlockHash") 330 | return 331 | } 332 | 333 | // Received successful response. Now cancel other requests and return immediately 334 | requestCtxCancel() 335 | *result = *responsePayload 336 | log.WithFields(logrus.Fields{ 337 | "blockHash": responsePayload.Data.BlockHash, 338 | "blockNumber": responsePayload.Data.BlockNumber, 339 | }).Info("getPayload: received payload from relay") 340 | }(relay.Address) 341 | } 342 | 343 | // Wait for all requests to complete... 344 | wg.Wait() 345 | 346 | if result.Data == nil || result.Data.BlockHash == nilHash { 347 | log.Warn("getPayload: no valid response from relay") 348 | http.Error(w, "no valid getPayload response", http.StatusBadGateway) 349 | } 350 | 351 | w.Header().Set("Content-Type", "application/json") 352 | w.WriteHeader(http.StatusOK) 353 | if err := json.NewEncoder(w).Encode(result); err != nil { 354 | http.Error(w, err.Error(), http.StatusInternalServerError) 355 | return 356 | } 357 | } 358 | -------------------------------------------------------------------------------- /server/service_test.go: -------------------------------------------------------------------------------- 1 | package server 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | "fmt" 7 | "github.com/ethereum/go-ethereum/common/hexutil" 8 | "github.com/flashbots/go-boost-utils/bls" 9 | "net/http" 10 | "net/http/httptest" 11 | "testing" 12 | "time" 13 | 14 | "github.com/flashbots/go-boost-utils/types" 15 | "github.com/stretchr/testify/require" 16 | ) 17 | 18 | type testBackend struct { 19 | boost *BoostService 20 | relays []*mockRelay 21 | } 22 | 23 | // newTestBackend creates a new backend, initializes mock relays, registers them and return the instance 24 | func newTestBackend(t *testing.T, numRelays int, relayTimeout time.Duration) *testBackend { 25 | backend := testBackend{ 26 | relays: make([]*mockRelay, numRelays), 27 | } 28 | 29 | relayEntries := make([]RelayEntry, numRelays) 30 | for i := 0; i < numRelays; i++ { 31 | // Generate private key for relay 32 | blsPrivateKey, blsPublicKey, err := bls.GenerateNewKeypair() 33 | require.NoError(t, err) 34 | 35 | // Create a mock relay 36 | backend.relays[i] = newMockRelay(t, blsPrivateKey) 37 | 38 | // Create the relay.RelayEntry used to identify the relay 39 | relayEntries[i], err = NewRelayEntry(backend.relays[i].Server.URL) 40 | require.NoError(t, err) 41 | 42 | // Hardcode relay's public key 43 | publicKeyString := hexutil.Encode(blsPublicKey.Compress()) 44 | publicKey := _HexToPubkey(publicKeyString) 45 | relayEntries[i].PublicKey = publicKey 46 | } 47 | service, err := NewBoostService("localhost:12345", relayEntries, testLog, relayTimeout) 48 | require.NoError(t, err) 49 | 50 | backend.boost = service 51 | return &backend 52 | } 53 | 54 | func (be *testBackend) request(t *testing.T, method string, path string, payload any) *httptest.ResponseRecorder { 55 | var req *http.Request 56 | var err error 57 | 58 | if payload == nil { 59 | req, err = http.NewRequest(method, path, bytes.NewReader(nil)) 60 | } else { 61 | payloadBytes, err2 := json.Marshal(payload) 62 | require.NoError(t, err2) 63 | req, err = http.NewRequest(method, path, bytes.NewReader(payloadBytes)) 64 | } 65 | 66 | require.NoError(t, err) 67 | rr := httptest.NewRecorder() 68 | be.boost.getRouter().ServeHTTP(rr, req) 69 | return rr 70 | } 71 | 72 | func TestNewBoostServiceErrors(t *testing.T) { 73 | t.Run("errors when no relays", func(t *testing.T) { 74 | _, err := NewBoostService(":123", []RelayEntry{}, testLog, time.Second) 75 | require.Error(t, err) 76 | }) 77 | } 78 | 79 | func TestWebserver(t *testing.T) { 80 | t.Run("errors when webserver is already existing", func(t *testing.T) { 81 | backend := newTestBackend(t, 1, time.Second) 82 | backend.boost.srv = &http.Server{} 83 | err := backend.boost.StartHTTPServer() 84 | require.Error(t, err) 85 | }) 86 | 87 | t.Run("webserver error on invalid listenAddr", func(t *testing.T) { 88 | backend := newTestBackend(t, 1, time.Second) 89 | backend.boost.listenAddr = "localhost:876543" 90 | err := backend.boost.StartHTTPServer() 91 | require.Error(t, err) 92 | }) 93 | 94 | // t.Run("webserver starts normally", func(t *testing.T) { 95 | // backend := newTestBackend(t, 1, time.Second) 96 | // go func() { 97 | // err := backend.boost.StartHTTPServer() 98 | // require.NoError(t, err) 99 | // }() 100 | // time.Sleep(time.Millisecond * 100) 101 | // backend.boost.srv.Close() 102 | // }) 103 | } 104 | 105 | func TestWebserverRootHandler(t *testing.T) { 106 | backend := newTestBackend(t, 1, time.Second) 107 | 108 | // Check root handler 109 | req, _ := http.NewRequest("GET", "/", nil) 110 | rr := httptest.NewRecorder() 111 | backend.boost.getRouter().ServeHTTP(rr, req) 112 | require.Equal(t, http.StatusOK, rr.Code) 113 | require.Equal(t, "{}", rr.Body.String()) 114 | } 115 | 116 | // Example good registerValidator payload 117 | var payloadRegisterValidator = types.SignedValidatorRegistration{ 118 | Message: &types.RegisterValidatorRequestMessage{ 119 | FeeRecipient: _HexToAddress("0xdb65fEd33dc262Fe09D9a2Ba8F80b329BA25f941"), 120 | Timestamp: 1234356, 121 | GasLimit: 278234191203, 122 | Pubkey: _HexToPubkey( 123 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249"), 124 | }, 125 | // Signed by 0x4e343a647c5a5c44d76c2c58b63f02cdf3a9a0ec40f102ebc26363b4b1b95033 126 | Signature: _HexToSignature( 127 | "0x8209b5391cd69f392b1f02dbc03bab61f574bb6bb54bf87b59e2a85bdc0756f7db6a71ce1b41b727a1f46ccc77b213bf0df1426177b5b29926b39956114421eaa36ec4602969f6f6370a44de44a6bce6dae2136e5fb594cce2a476354264d1ea"), 128 | } 129 | 130 | func TestStatus(t *testing.T) { 131 | backend := newTestBackend(t, 1, time.Second) 132 | path := "/eth/v1/builder/status" 133 | rr := backend.request(t, http.MethodGet, path, payloadRegisterValidator) 134 | require.Equal(t, http.StatusOK, rr.Code) 135 | require.Equal(t, 0, backend.relays[0].GetRequestCount(path)) 136 | } 137 | 138 | func TestRegisterValidator(t *testing.T) { 139 | path := "/eth/v1/builder/validators" 140 | reg := types.SignedValidatorRegistration{ 141 | Message: &types.RegisterValidatorRequestMessage{ 142 | FeeRecipient: _HexToAddress("0xdb65fEd33dc262Fe09D9a2Ba8F80b329BA25f941"), 143 | Timestamp: 1234356, 144 | Pubkey: _HexToPubkey( 145 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249"), 146 | }, 147 | Signature: _HexToSignature( 148 | "0x81510b571e22f89d1697545aac01c9ad0c1e7a3e778b3078bef524efae14990e58a6e960a152abd49de2e18d7fd3081c15d5c25867ccfad3d47beef6b39ac24b6b9fbf2cfa91c88f67aff750438a6841ec9e4a06a94ae41410c4f97b75ab284c"), 149 | } 150 | payload := []types.SignedValidatorRegistration{reg} 151 | 152 | t.Run("Normal function", func(t *testing.T) { 153 | backend := newTestBackend(t, 1, time.Second) 154 | rr := backend.request(t, http.MethodPost, path, payload) 155 | require.Equal(t, http.StatusOK, rr.Code) 156 | require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) 157 | }) 158 | 159 | t.Run("Relay error response", func(t *testing.T) { 160 | backend := newTestBackend(t, 2, time.Second) 161 | 162 | rr := backend.request(t, http.MethodPost, path, payload) 163 | require.Equal(t, http.StatusOK, rr.Code) 164 | require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) 165 | require.Equal(t, 1, backend.relays[1].GetRequestCount(path)) 166 | 167 | // Now make one relay return an error 168 | backend.relays[0].HandlerOverrideRegisterValidator = func(w http.ResponseWriter, 169 | r *http.Request) { 170 | w.WriteHeader(http.StatusBadRequest) 171 | } 172 | rr = backend.request(t, http.MethodPost, path, payload) 173 | require.Equal(t, http.StatusOK, rr.Code) 174 | require.Equal(t, 2, backend.relays[0].GetRequestCount(path)) 175 | require.Equal(t, 2, backend.relays[1].GetRequestCount(path)) 176 | 177 | // Now make both relays return an error - which should cause the request to fail 178 | backend.relays[1].HandlerOverrideRegisterValidator = func(w http.ResponseWriter, 179 | r *http.Request) { 180 | w.WriteHeader(http.StatusBadRequest) 181 | } 182 | rr = backend.request(t, http.MethodPost, path, payload) 183 | require.Equal(t, http.StatusBadGateway, rr.Code) 184 | require.Equal(t, 3, backend.relays[0].GetRequestCount(path)) 185 | require.Equal(t, 3, backend.relays[1].GetRequestCount(path)) 186 | }) 187 | 188 | t.Run("mev-boost relay timeout works with slow relay", func(t *testing.T) { 189 | backend := newTestBackend(t, 1, 5*time.Millisecond) // 10ms max 190 | rr := backend.request(t, http.MethodPost, path, payload) 191 | require.Equal(t, http.StatusOK, rr.Code) 192 | 193 | // Now make the relay return slowly, mev-boost should return an error 194 | backend.relays[0].ResponseDelay = 10 * time.Millisecond 195 | rr = backend.request(t, http.MethodPost, path, payload) 196 | require.Equal(t, http.StatusBadGateway, rr.Code) 197 | require.Equal(t, 2, backend.relays[0].GetRequestCount(path)) 198 | }) 199 | } 200 | 201 | func TestGetHeader(t *testing.T) { 202 | getPath := func(slot uint64, parentHash types.Hash, pubkey types.PublicKey) string { 203 | return fmt.Sprintf("/eth/v1/builder/header/%d/%s/%s", slot, parentHash.String(), pubkey.String()) 204 | } 205 | 206 | hash := _HexToHash("0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7") 207 | pubkey := _HexToPubkey( 208 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249") 209 | path := getPath(1, hash, pubkey) 210 | require.Equal(t, "/eth/v1/builder/header/1/0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7/0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249", path) 211 | 212 | t.Run("Okay response from relay", func(t *testing.T) { 213 | backend := newTestBackend(t, 1, time.Second) 214 | rr := backend.request(t, http.MethodGet, path, nil) 215 | require.Equal(t, http.StatusOK, rr.Code, rr.Body.String()) 216 | require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) 217 | }) 218 | 219 | t.Run("Bad response from relays", func(t *testing.T) { 220 | backend := newTestBackend(t, 2, time.Second) 221 | resp := backend.relays[0].MakeGetHeaderResponse( 222 | 12345, 223 | "0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7", 224 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249", 225 | ) 226 | resp.Data.Message.Header.BlockHash = nilHash 227 | 228 | // 1/2 failing responses are okay 229 | backend.relays[0].GetHeaderResponse = resp 230 | rr := backend.request(t, http.MethodGet, path, nil) 231 | require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) 232 | require.Equal(t, 1, backend.relays[1].GetRequestCount(path)) 233 | require.Equal(t, http.StatusOK, rr.Code, rr.Body.String()) 234 | 235 | // 2/2 failing responses are okay 236 | backend.relays[1].GetHeaderResponse = resp 237 | rr = backend.request(t, http.MethodGet, path, nil) 238 | require.Equal(t, 2, backend.relays[0].GetRequestCount(path)) 239 | require.Equal(t, 2, backend.relays[1].GetRequestCount(path)) 240 | require.Equal(t, http.StatusBadGateway, rr.Code, rr.Body.String()) 241 | }) 242 | 243 | t.Run("Use header with highest value", func(t *testing.T) { 244 | backend := newTestBackend(t, 3, time.Second) 245 | backend.relays[0].GetHeaderResponse = backend.relays[0].MakeGetHeaderResponse( 246 | 12345, 247 | "0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7", 248 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249", 249 | ) 250 | backend.relays[1].GetHeaderResponse = backend.relays[0].MakeGetHeaderResponse( 251 | 12347, 252 | "0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7", 253 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249", 254 | ) 255 | backend.relays[2].GetHeaderResponse = backend.relays[0].MakeGetHeaderResponse( 256 | 12346, 257 | "0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7", 258 | "0x8a1d7b8dd64e0aafe7ea7b6c95065c9364cf99d38470c12ee807d55f7de1529ad29ce2c422e0b65e3d5a05c02caca249", 259 | ) 260 | 261 | rr := backend.request(t, http.MethodGet, path, nil) 262 | require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) 263 | require.Equal(t, 1, backend.relays[1].GetRequestCount(path)) 264 | require.Equal(t, 1, backend.relays[2].GetRequestCount(path)) 265 | require.Equal(t, http.StatusOK, rr.Code, rr.Body.String()) 266 | resp := new(types.GetHeaderResponse) 267 | err := json.Unmarshal(rr.Body.Bytes(), resp) 268 | require.NoError(t, err) 269 | require.Equal(t, types.IntToU256(12347), resp.Data.Message.Value) 270 | }) 271 | } 272 | 273 | func TestGetPayload(t *testing.T) { 274 | path := "/eth/v1/builder/blinded_blocks" 275 | 276 | payload := types.SignedBlindedBeaconBlock{ 277 | Signature: _HexToSignature( 278 | "0x8c795f751f812eabbabdee85100a06730a9904a4b53eedaa7f546fe0e23cd75125e293c6b0d007aa68a9da4441929d16072668abb4323bb04ac81862907357e09271fe414147b3669509d91d8ffae2ec9c789a5fcd4519629b8f2c7de8d0cce9"), 279 | Message: &types.BlindedBeaconBlock{ 280 | Slot: 1, 281 | ProposerIndex: 1, 282 | ParentRoot: types.Root{0x01}, 283 | StateRoot: types.Root{0x02}, 284 | Body: &types.BlindedBeaconBlockBody{ 285 | RandaoReveal: types.Signature{0xa1}, 286 | Eth1Data: &types.Eth1Data{}, 287 | Graffiti: types.Hash{0xa2}, 288 | SyncAggregate: &types.SyncAggregate{}, 289 | ExecutionPayloadHeader: &types.ExecutionPayloadHeader{ 290 | ParentHash: _HexToHash("0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab7"), 291 | BlockHash: _HexToHash("0xe28385e7bd68df656cd0042b74b69c3104b5356ed1f20eb69f1f925df47a3ab1"), 292 | BlockNumber: 12345, 293 | FeeRecipient: _HexToAddress("0xdb65fEd33dc262Fe09D9a2Ba8F80b329BA25f941"), 294 | }, 295 | }, 296 | }, 297 | } 298 | 299 | t.Run("Okay response from relay", func(t *testing.T) { 300 | backend := newTestBackend(t, 1, time.Second) 301 | rr := backend.request(t, http.MethodPost, path, payload) 302 | require.Equal(t, http.StatusOK, rr.Code, rr.Body.String()) 303 | require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) 304 | 305 | resp := new(types.GetPayloadResponse) 306 | err := json.Unmarshal(rr.Body.Bytes(), resp) 307 | require.NoError(t, err) 308 | require.Equal(t, payload.Message.Body.ExecutionPayloadHeader.BlockHash, resp.Data.BlockHash) 309 | }) 310 | 311 | t.Run("Bad response from relays", func(t *testing.T) { 312 | backend := newTestBackend(t, 2, time.Second) 313 | resp := new(types.GetPayloadResponse) 314 | 315 | // Delays are needed because otherwise one relay might never receive a request 316 | backend.relays[0].ResponseDelay = 10 * time.Millisecond 317 | backend.relays[1].ResponseDelay = 10 * time.Millisecond 318 | 319 | // 1/2 failing responses are okay 320 | backend.relays[0].GetPayloadResponse = resp 321 | rr := backend.request(t, http.MethodPost, path, payload) 322 | require.Equal(t, 1, backend.relays[0].GetRequestCount(path)) 323 | require.Equal(t, 1, backend.relays[1].GetRequestCount(path)) 324 | require.Equal(t, http.StatusOK, rr.Code, rr.Body.String()) 325 | 326 | // 2/2 failing responses are okay 327 | backend.relays[1].GetPayloadResponse = resp 328 | rr = backend.request(t, http.MethodPost, path, payload) 329 | require.Equal(t, 2, backend.relays[0].GetRequestCount(path)) 330 | require.Equal(t, 2, backend.relays[1].GetRequestCount(path)) 331 | require.Equal(t, http.StatusBadGateway, rr.Code, rr.Body.String()) 332 | }) 333 | } 334 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= 5 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 6 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 7 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 8 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 9 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 10 | cloud.google.com/go v0.51.0/go.mod h1:hWtGJ6gnXH+KgDv+V0zFGDvpi07n3z8ZNj3T1RW0Gcw= 11 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 12 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 13 | cloud.google.com/go/bigtable v1.2.0/go.mod h1:JcVAOl45lrTmQfLj7T6TxyMzIN/3FGGcFm+2xVAli2o= 14 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 15 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 16 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 17 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 18 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 19 | collectd.org v0.3.0/go.mod h1:A/8DzQBkF6abtvrT2j/AU/4tiBgJWYyh0y/oB/4MlWE= 20 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 21 | github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= 22 | github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= 23 | github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= 24 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 25 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 26 | github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= 27 | github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= 28 | github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= 29 | github.com/VictoriaMetrics/fastcache v1.6.0/go.mod h1:0qHz5QP0GMX4pfmMA/zt5RgfNuXJrTP0zS7DqpHGGTw= 30 | github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= 31 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= 32 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= 33 | github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= 34 | github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= 35 | github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db/go.mod h1:VTxUBvSJ3s3eHAg65PNgrsn5BtqCRPdmyXh6rAfdxN0= 36 | github.com/aws/aws-sdk-go-v2 v1.2.0/go.mod h1:zEQs02YRBw1DjK0PoJv3ygDYOFTre1ejlJWl8FwAuQo= 37 | github.com/aws/aws-sdk-go-v2/config v1.1.1/go.mod h1:0XsVy9lBI/BCXm+2Tuvt39YmdHwS5unDQmxZOYe8F5Y= 38 | github.com/aws/aws-sdk-go-v2/credentials v1.1.1/go.mod h1:mM2iIjwl7LULWtS6JCACyInboHirisUUdkBPoTHMOUo= 39 | github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.2/go.mod h1:3hGg3PpiEjHnrkrlasTfxFqUsZ2GCk/fMUn4CbKgSkM= 40 | github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.2/go.mod h1:45MfaXZ0cNbeuT0KQ1XJylq8A6+OpVV2E5kvY/Kq+u8= 41 | github.com/aws/aws-sdk-go-v2/service/route53 v1.1.1/go.mod h1:rLiOUrPLW/Er5kRcQ7NkwbjlijluLsrIbu/iyl35RO4= 42 | github.com/aws/aws-sdk-go-v2/service/sso v1.1.1/go.mod h1:SuZJxklHxLAXgLTc1iFXbEWkXs7QRTQpCLGaKIprQW0= 43 | github.com/aws/aws-sdk-go-v2/service/sts v1.1.1/go.mod h1:Wi0EBZwiz/K44YliU0EKxqTCJGUfYTWXrrBwkq736bM= 44 | github.com/aws/smithy-go v1.1.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= 45 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= 46 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= 47 | github.com/bmizerany/pat v0.0.0-20170815010413-6226ea591a40/go.mod h1:8rLXio+WjiTceGBHIoTvn60HIbs7Hm7bcHjyrSqYB9c= 48 | github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= 49 | github.com/btcsuite/btcd/btcec/v2 v2.1.2/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= 50 | github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= 51 | github.com/c-bata/go-prompt v0.2.2/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= 52 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 53 | github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s= 54 | github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= 55 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= 56 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 57 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 58 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 59 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 60 | github.com/cloudflare/cloudflare-go v0.14.0/go.mod h1:EnwdgGMaFOruiPZRFSgn+TsQ3hQ7C/YWzIGLeu5c304= 61 | github.com/consensys/bavard v0.1.8-0.20210406032232-f3452dc9b572/go.mod h1:Bpd0/3mZuaj6Sj+PqrmIquiOKy397AKGThQPaGzNXAQ= 62 | github.com/consensys/gnark-crypto v0.4.1-0.20210426202927-39ac3d4b3f1f/go.mod h1:815PAHg3wvysy0SyIqanF8gZ0Y1wjk/hrDHD/iT88+Q= 63 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 64 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 65 | github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4= 66 | github.com/dave/jennifer v1.2.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg= 67 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 68 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 69 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 70 | github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= 71 | github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= 72 | github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= 73 | github.com/deepmap/oapi-codegen v1.6.0/go.mod h1:ryDa9AgbELGeB+YEXE1dR53yAjHwFvE9iAUlWl9Al3M= 74 | github.com/deepmap/oapi-codegen v1.8.2/go.mod h1:YLgSKSDv/bZQB7N4ws6luhozi3cEdRktEqrX88CvjIw= 75 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= 76 | github.com/dgryski/go-bitstream v0.0.0-20180413035011-3522498ce2c8/go.mod h1:VMaSuZ+SZcx/wljOQKvp5srsbCiKDEb6K2wC4+PiBmQ= 77 | github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= 78 | github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91/go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc= 79 | github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= 80 | github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= 81 | github.com/docker/docker v1.4.2-0.20180625184442-8e610b2b55bf/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= 82 | github.com/dop251/goja v0.0.0-20211011172007-d99e4b8cbf48/go.mod h1:R9ET47fwRVRPZnOGvHxxhuZcbrMCuiqOz3Rlrh4KSnk= 83 | github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y= 84 | github.com/eclipse/paho.mqtt.golang v1.2.0/go.mod h1:H9keYFcgq3Qr5OUJm/JZI/i6U7joQ8SYLhZwfeOo6Ts= 85 | github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= 86 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 87 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 88 | github.com/ethereum/go-ethereum v1.10.17 h1:XEcumY+qSr1cZQaWsQs5Kck3FHB0V2RiMHPdTBJ+oT8= 89 | github.com/ethereum/go-ethereum v1.10.17/go.mod h1:Lt5WzjM07XlXc95YzrhosmR4J9Ahd6X2wyEV2SvGhk0= 90 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 91 | github.com/ferranbt/fastssz v0.1.1-0.20220303160658-88bb965b6747 h1:0w9ZW2gY6Ws640PkDsyB1CK1ndAPJJ0mJbsDojQFl5c= 92 | github.com/ferranbt/fastssz v0.1.1-0.20220303160658-88bb965b6747/go.mod h1:S8yiDeAXy8f88W4Ul+0dBMPx49S05byYbmZD6Uv94K4= 93 | github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0= 94 | github.com/flashbots/go-boost-utils v0.1.2 h1:xcwO6rhLmdbZ+ttN8PjHQynqY1pm+RCA56eGP9wPp10= 95 | github.com/flashbots/go-boost-utils v0.1.2/go.mod h1:v4f01OjPm5jFjzVhcJEKHLFZzX/yTeme9284Tbuah8s= 96 | github.com/flashbots/go-utils v0.4.5 h1:xTrVcfxQ+qpVVPyRBWUllwZAxbAijE06d9N7e7mmmlM= 97 | github.com/flashbots/go-utils v0.4.5/go.mod h1:3YKyfbtetVIXuWKbZ9WmK8bSF20hSFXk0wCWDNHYFvE= 98 | github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= 99 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= 100 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 101 | github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww= 102 | github.com/getkin/kin-openapi v0.53.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= 103 | github.com/getkin/kin-openapi v0.61.0/go.mod h1:7Yn5whZr5kJi6t+kShccXS8ae1APpYTW6yheSwk8Yi4= 104 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 105 | github.com/glycerine/go-unsnap-stream v0.0.0-20180323001048-9f0cb55181dd/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE= 106 | github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24= 107 | github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs= 108 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 109 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 110 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= 111 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= 112 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= 113 | github.com/go-ole/go-ole v1.2.1/go.mod h1:7FAglXiTm7HKlQRDeOQ6ZNUHidzCWXuZWq/1dTyBNF8= 114 | github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= 115 | github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= 116 | github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg= 117 | github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= 118 | github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= 119 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= 120 | github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= 121 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= 122 | github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= 123 | github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= 124 | github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= 125 | github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI= 126 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 127 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 128 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 129 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 130 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 131 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 132 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 133 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 134 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 135 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 136 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 137 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 138 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 139 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 140 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 141 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 142 | github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 143 | github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 144 | github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= 145 | github.com/golangci/lint-1 v0.0.0-20181222135242-d2cdd8c08219/go.mod h1:/X8TswGSh1pIozq4ZwCfxS0WA5JGXguxk94ar/4c87Y= 146 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 147 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 148 | github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= 149 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 150 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 151 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 152 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 153 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 154 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 155 | github.com/google/gofuzz v1.1.1-0.20200604201612-c04b05f3adfa/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 156 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 157 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 158 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 159 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 160 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 161 | github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 162 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 163 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 164 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 165 | github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= 166 | github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= 167 | github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= 168 | github.com/graph-gophers/graphql-go v1.3.0/go.mod h1:9CQHMSxwO4MprSdzoIEobiHpoLtHm77vfxsvsIN5Vuc= 169 | github.com/hashicorp/go-bexpr v0.1.10/go.mod h1:oxlubA2vC/gFVfX1A6JGp7ls7uCDlfJn732ehYYg+g0= 170 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 171 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 172 | github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= 173 | github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA= 174 | github.com/holiman/uint256 v1.2.0/go.mod h1:y4ga/t+u+Xwd7CpDgZESaRcWy0I7XMlTMA25ApIH5Jw= 175 | github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= 176 | github.com/huin/goupnp v1.0.3-0.20220313090229-ca81a64b4204/go.mod h1:ZxNlw5WqJj6wSsRK5+YfflQGXYfccj5VgQsMNixHM7Y= 177 | github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= 178 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 179 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 180 | github.com/influxdata/flux v0.65.1/go.mod h1:J754/zds0vvpfwuq7Gc2wRdVwEodfpCFM7mYlOw2LqY= 181 | github.com/influxdata/influxdb v1.8.3/go.mod h1:JugdFhsvvI8gadxOI6noqNeeBHvWNTbfYGtiAn+2jhI= 182 | github.com/influxdata/influxdb-client-go/v2 v2.4.0/go.mod h1:vLNHdxTJkIf2mSLvGrpj8TCcISApPoXkaxP8g9uRlW8= 183 | github.com/influxdata/influxql v1.1.1-0.20200828144457-65d3ef77d385/go.mod h1:gHp9y86a/pxhjJ+zMjNXiQAA197Xk9wLxaz+fGG+kWk= 184 | github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e/go.mod h1:4kt73NQhadE3daL3WhR5EJ/J2ocX0PZzwxQ0gXJ7oFE= 185 | github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= 186 | github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097/go.mod h1:xaLFMmpvUxqXtVkUJfg9QmT88cDaCJ3ZKgdZ78oO8Qo= 187 | github.com/influxdata/promql/v2 v2.12.0/go.mod h1:fxOPu+DY0bqCTCECchSRtWfc+0X19ybifQhZoQNF5D8= 188 | github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6/go.mod h1:bSgUQ7q5ZLSO+bKBGqJiCBGAl+9DxyW63zLTujjUlOE= 189 | github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9/go.mod h1:Js0mqiSBE6Ffsg94weZZ2c+v/ciT8QRHFOap7EKDrR0= 190 | github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368/go.mod h1:Wbbw6tYNvwa5dlB6304Sd+82Z3f7PmVZHVKU637d4po= 191 | github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= 192 | github.com/jedisct1/go-minisign v0.0.0-20190909160543-45766022959e/go.mod h1:G1CVv03EnqU1wYL2dFwXxW2An0az9JTl/ZsqXQeBlkU= 193 | github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= 194 | github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= 195 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= 196 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 197 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 198 | github.com/jsternberg/zap-logfmt v1.0.0/go.mod h1:uvPs/4X51zdkcm5jXl5SYoN+4RK21K8mysFmDaM/h+o= 199 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 200 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= 201 | github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= 202 | github.com/jwilder/encoding v0.0.0-20170811194829-b4e1701a28ef/go.mod h1:Ct9fl0F6iIOGgxJ5npU/IUOhOhqlVrGjyIZc8/MagT0= 203 | github.com/karalabe/usb v0.0.2/go.mod h1:Od972xHfMJowv7NGVDiWVxk2zxnWgjLlJzE+F4F7AGU= 204 | github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= 205 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 206 | github.com/klauspost/compress v1.4.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= 207 | github.com/klauspost/cpuid v0.0.0-20170728055534-ae7887de9fa5/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= 208 | github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= 209 | github.com/klauspost/cpuid/v2 v2.0.12 h1:p9dKCg8i4gmOxtv35DvrYoWqYzQrvEVdjQ762Y0OqZE= 210 | github.com/klauspost/cpuid/v2 v2.0.12/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c= 211 | github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg= 212 | github.com/klauspost/pgzip v1.0.2-0.20170402124221-0bf5dcad4ada/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= 213 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= 214 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= 215 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 216 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 217 | github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= 218 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 219 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 220 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 221 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 222 | github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= 223 | github.com/labstack/echo/v4 v4.2.1/go.mod h1:AA49e0DZ8kk5jTOOCKNuPR6oTnBS0dYiM4FW1e6jwpg= 224 | github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= 225 | github.com/leanovate/gopter v0.2.9/go.mod h1:U2L/78B+KVFIx2VmW6onHJQzXtFb+p5y3y2Sh+Jxxv8= 226 | github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= 227 | github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 228 | github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= 229 | github.com/matryer/moq v0.0.0-20190312154309-6cfb0558e1bd/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ= 230 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 231 | github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= 232 | github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 233 | github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 234 | github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 235 | github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= 236 | github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= 237 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 238 | github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= 239 | github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= 240 | github.com/mattn/go-sqlite3 v1.11.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= 241 | github.com/mattn/go-tty v0.0.0-20180907095812-13ff1204f104/go.mod h1:XPvLUNfbS4fJH25nqRHfWLMa1ONC8Amw+mIA639KxkE= 242 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= 243 | github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= 244 | github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= 245 | github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= 246 | github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 247 | github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= 248 | github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 249 | github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= 250 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 251 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 252 | github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= 253 | github.com/mschoch/smat v0.0.0-20160514031455-90eadee771ae/go.mod h1:qAyveg+e4CE+eKJXWVjKXM4ck2QobLqTDytGJbLLhJg= 254 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= 255 | github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0= 256 | github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E= 257 | github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= 258 | github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= 259 | github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= 260 | github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= 261 | github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= 262 | github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= 263 | github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= 264 | github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= 265 | github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= 266 | github.com/opentracing/opentracing-go v1.0.3-0.20180606204148-bd9c31933947/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= 267 | github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= 268 | github.com/paulbellamy/ratecounter v0.2.0/go.mod h1:Hfx1hDpSGoqxkVVpBi/IlYD7kChlfo5C6hzIHwPqfFE= 269 | github.com/peterh/liner v1.0.1-0.20180619022028-8c1271fcf47f/go.mod h1:xIteQHvHuaLYG9IFj6mSxM0fCKrs34IrEQUhOYuGPHc= 270 | github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7/go.mod h1:CRroGNssyjTd/qIG2FyxByd2S8JEAZXBl4qUrZf8GS0= 271 | github.com/philhofer/fwd v1.0.0/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU= 272 | github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= 273 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 274 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 275 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 276 | github.com/pkg/term v0.0.0-20180730021639-bffc007b7fd5/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= 277 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 278 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 279 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= 280 | github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= 281 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= 282 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 283 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 284 | github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= 285 | github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 286 | github.com/prometheus/common v0.6.0/go.mod h1:eBmuwkDJBwy6iBfxCBob6t6dR6ENT/y+J+Zk0j9GMYc= 287 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 288 | github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 289 | github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= 290 | github.com/retailnext/hllpp v1.0.1-0.20180308014038-101a6d2f8b52/go.mod h1:RDpi1RftBQPUCDRw6SmxeaREsAaRKnOclghuzp/WRzc= 291 | github.com/rjeczalik/notify v0.9.1/go.mod h1:rKwnCoCGeuQnwBtTSPL9Dad03Vh2n40ePRrjvIXnJho= 292 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 293 | github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8= 294 | github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= 295 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 296 | github.com/segmentio/kafka-go v0.1.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= 297 | github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfPOCvTvk+EJo= 298 | github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= 299 | github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= 300 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 301 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 302 | github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= 303 | github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= 304 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 305 | github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= 306 | github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= 307 | github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 308 | github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= 309 | github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= 310 | github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4/go.mod h1:RZLeN1LMWmRsyYjvAu+I6Dm9QmlDaIIt+Y+4Kd7Tp+Q= 311 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 312 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 313 | github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 314 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 315 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 316 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 317 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 318 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 319 | github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= 320 | github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 321 | github.com/supranational/blst v0.3.7 h1:QObqTzlW30Z947JMe0MH12mVhFOxgtDapuWvPvCEGDE= 322 | github.com/supranational/blst v0.3.7/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= 323 | github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= 324 | github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE= 325 | github.com/tklauser/go-sysconf v0.3.5/go.mod h1:MkWzOF4RMCshBAMXuhXJs64Rte09mITnppBXY/rYEFI= 326 | github.com/tklauser/numcpus v0.2.2/go.mod h1:x3qojaO3uyYt0i56EW/VUYs7uBvdl2fkfZFu0T9wgjM= 327 | github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef/go.mod h1:sJ5fKU0s6JVwZjjcUEX2zFOnvq0ASQ2K9Zr6cf67kNs= 328 | github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= 329 | github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= 330 | github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= 331 | github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= 332 | github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= 333 | github.com/xlab/treeprint v0.0.0-20180616005107-d6fb6747feb6/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= 334 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 335 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 336 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 337 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 338 | go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= 339 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= 340 | go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= 341 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 342 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 343 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 344 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 345 | golang.org/x/crypto v0.0.0-20190909091759-094676da4a83/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 346 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 347 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 348 | golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 349 | golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= 350 | golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= 351 | golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 h1:SLP7Q4Di66FONjDJbCYrCRrh97focO6sLogHO7/g8F0= 352 | golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= 353 | golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 354 | golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 355 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 356 | golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 357 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 358 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 359 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 360 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 361 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 362 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 363 | golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= 364 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 365 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 366 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 367 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 368 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 369 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 370 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 371 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 372 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 373 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 374 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 375 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 376 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 377 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 378 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 379 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 380 | golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 381 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 382 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 383 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 384 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 385 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 386 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 387 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 388 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 389 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 390 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 391 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 392 | golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 393 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 394 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 395 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 396 | golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 397 | golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 398 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 399 | golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 400 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 401 | golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 402 | golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 403 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 404 | golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 405 | golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 406 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 407 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 408 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 409 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 410 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 411 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 412 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 413 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 414 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 415 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 416 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 417 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 418 | golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 419 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 420 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 421 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 422 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 423 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 424 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 425 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 426 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 427 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 428 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 429 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 430 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 431 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 432 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 433 | golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 434 | golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 435 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 436 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 437 | golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 438 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 439 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 440 | golang.org/x/sys v0.0.0-20200107162124-548cf772de50/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 441 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 442 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 443 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 444 | golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 445 | golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 446 | golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 447 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 448 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 449 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 450 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 451 | golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 452 | golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 453 | golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 454 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 455 | golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 456 | golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e h1:w36l2Uw3dRan1K3TyXriXvY+6T56GNmlKGcqiQUJDfM= 457 | golang.org/x/sys v0.0.0-20220517195934-5e4e11fc645e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 458 | golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= 459 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 460 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 461 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 462 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 463 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 464 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 465 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 466 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 467 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 468 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 469 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 470 | golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 471 | golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 472 | golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 473 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 474 | golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 475 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 476 | golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 477 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 478 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 479 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 480 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 481 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 482 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 483 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 484 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 485 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 486 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 487 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 488 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 489 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 490 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 491 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 492 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 493 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 494 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 495 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 496 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 497 | golang.org/x/tools v0.0.0-20200108203644-89082a384178/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 498 | golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= 499 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 500 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 501 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 502 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 503 | gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= 504 | gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= 505 | gonum.org/v1/gonum v0.6.0/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= 506 | gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= 507 | gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= 508 | gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= 509 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 510 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 511 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 512 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 513 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 514 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 515 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 516 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 517 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 518 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 519 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 520 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 521 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 522 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 523 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 524 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 525 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 526 | google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 527 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 528 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 529 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 530 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 531 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 532 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 533 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 534 | google.golang.org/genproto v0.0.0-20200108215221-bd8f9a0ef82f/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 535 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 536 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 537 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 538 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 539 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 540 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 541 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 542 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 543 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 544 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 545 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 546 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= 547 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 548 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 549 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 550 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 551 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 552 | gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= 553 | gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= 554 | gopkg.in/olebedev/go-duktape.v3 v3.0.0-20200619000410-60c24ae608a6/go.mod h1:uAJfkITjFhyEEuUfm7bsmCZRbW5WRq8s9EY8HZ6hCns= 555 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= 556 | gopkg.in/urfave/cli.v1 v1.20.0/go.mod h1:vuBzUtMdQeixQj8LVd+/98pzhxNGQoyuPBlsXHOQNO0= 557 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 558 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 559 | gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 560 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 561 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 562 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 563 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 564 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 565 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 566 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= 567 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 568 | gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= 569 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 570 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 571 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 572 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 573 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 574 | honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= 575 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 576 | rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= 577 | --------------------------------------------------------------------------------