diff --git a/.github/workflows/housekeeping.yml b/.github/workflows/housekeeping.yml index a0d984c..a3a3486 100644 --- a/.github/workflows/housekeeping.yml +++ b/.github/workflows/housekeeping.yml @@ -64,14 +64,3 @@ jobs: run: gh pr edit ${{ env.PR }} --add-assignee ${{ env.CREATOR }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - required-labels: - # ignore dependabot PRs - if: ${{ github.actor != 'dependabot[bot]' }} - runs-on: ubuntu-latest - steps: - - uses: mheap/github-action-required-labels@v5 - with: - mode: minimum - count: 1 - labels: "T:enhancement, T:documentation, T:code-hygiene, T:bug, T:adr, T:sdk, T:testing, T:question, T:dependencies, T:spec-and-docs, T:da-integration, T:dev-usability-and-ux" # yamllint disable-line rule:line-length diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f722853 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +mock-da diff --git a/Makefile b/Makefile index 9c668cc..7869310 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +LDFLAGS=-ldflags="-X '$(versioningPath).buildTime=$(shell date)' -X '$(versioningPath).lastCommit=$(shell git rev-parse HEAD)' -X '$(versioningPath).semanticVersion=$(shell git describe --tags --dirty=-dev 2>/dev/null || git rev-parse --abbrev-ref HEAD)'" DOCKER := $(shell which docker) DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf @@ -7,6 +8,12 @@ pkgs := $(shell go list ./...) run := . count := 1 +## build: Build mock-da binary. +build: + @echo "--> Building mock-da" + @go build -o build/ ${LDFLAGS} ./... +.PHONY: build + ## help: Show this help message help: Makefile @echo " Choose a command run in "$(PROJECTNAME)":" @@ -54,7 +61,7 @@ fmt: .PHONY: fmt ## vet: Run go vet -vet: +vet: @echo "--> Running go vet" @go vet $(pkgs) .PHONY: vet diff --git a/README.md b/README.md new file mode 100644 index 0000000..e1189d7 --- /dev/null +++ b/README.md @@ -0,0 +1,81 @@ +# Mock DA + +Mock DA implements the [go-da][go-da] interface over a mock Data Availability service. + +It is intended to be used for testing DA layers without having to set up the actual services. + +## Usage + +```sh +make build +./mock-da +``` + +should output + +```sh +2024/04/11 12:23:34 Listening on: localhost:7980 +``` + +Which exposes the [go-da] interface over JSONRPC and can be accessed with an HTTP client like [xh][xh]: + +### MaxBlobSize + +```sh +xh http://127.0.0.1:7980 id=1 method=da.MaxBlobSize | jq +``` + +output: + +```sh +{ + "jsonrpc": "2.0", + "result": 1974272, + "id": "1" +} +``` + +#### Submit + +```sh +xh http://127.0.0.1:7980 id=1 method=da.Submit 'params[][]=SGVsbG8gd28ybGQh' 'params[]:=-2' 'params[]=AAAAAAAAAAAAAAAAAAAAAAAAAAECAwQFBgcICRA=' | jq +``` + +output: + +```sh +{ + "jsonrpc": "2.0", + "result": [ + "AQAAAAAAAADfgz5/IP20UeF81iRRzDBu/qC8eXr9DUyplrfXod3VOA==" + ], + "id": "1" +} +``` + +#### Get + +```sh +xh http://127.0.0.1:7980 id=1 method=da.Get 'params[][]=AQAAAAAAAADfgz5/IP20UeF81iRRzDBu/qC8eXr9DUyplrfXod3VOA==' 'params[]=AAAAAAAAAAAAAAAAAAAAAAAAAAECAwQFBgcICRA=' +``` + +output: + +```sh +{ + "jsonrpc": "2.0", + "result": [ + "SGVsbG8gd28ybGQh" + ], + "id": "1" +} +``` + +## References + +[1] [go-da][go-da] + +[2] [xh][xh] + +[go-da]: https://github.com/rollkit/go-da +[xh]: https://github.com/ducaale/xh diff --git a/cmd/mock-da/main.go b/cmd/mock-da/main.go new file mode 100644 index 0000000..3517fa9 --- /dev/null +++ b/cmd/mock-da/main.go @@ -0,0 +1,43 @@ +package main + +import ( + "context" + "flag" + "fmt" + "log" + "net/url" + "os" + "os/signal" + "syscall" + + proxy "github.com/rollkit/go-da/proxy/jsonrpc" + goDATest "github.com/rollkit/go-da/test" +) + +const ( + // MockDAAddress is the mock address for the gRPC server + MockDAAddress = "grpc://localhost:7980" +) + +func main() { + var ( + host string + port string + ) + addr, _ := url.Parse(MockDAAddress) + flag.StringVar(&port, "port", addr.Port(), "listening port") + flag.StringVar(&host, "host", addr.Hostname(), "listening address") + flag.Parse() + + srv := proxy.NewServer(host, port, goDATest.NewDummyDA()) + log.Printf("Listening on: %s:%s", host, port) + if err := srv.Start(context.Background()); err != nil { + log.Fatal("error while serving:", err) + } + + interrupt := make(chan os.Signal, 1) + signal.Notify(interrupt, os.Interrupt, syscall.SIGINT) + <-interrupt + fmt.Println("\nCtrl+C pressed. Exiting...") + os.Exit(0) +} diff --git a/docs/celestia/errors.md b/docs/celestia/errors.md new file mode 100644 index 0000000..044d1a8 --- /dev/null +++ b/docs/celestia/errors.md @@ -0,0 +1,112 @@ +# Celestia Node/Core/App Errors + +Exhaustive list of errors returned by celestia node/core/app when trying to submit a PFB transaction. There might be a few duplicates because some errors like `sdkerrors` are wrapped in celestia-app. + +## celestia-node + +- `SubmitPayForBlob` - `state: no blobs provided` +- `SubmitPayForBlob` - `parsing insufficient min gas price error` +- `SubmitPayForBlob` - `sdkErrors.ABCIError` +- `SubmitPayForBlob` - `failed to submit blobs after %d attempts: %w` + +## celestia-app + +- `ErrReservedNamespace` - `cannot use reserved namespace IDs` +- `ErrInvalidNamespaceLen` - `invalid namespace length` +- `ErrInvalidDataSize` - `data must be multiple of shareSize` +- `ErrBlobSizeMismatch` - `actual blob size differs from that specified in the MsgPayForBlob` +- `ErrCommittedSquareSizeNotPowOf2` - `committed to invalid square size: must be power of two` +- `ErrCalculateCommitment` - `unexpected error calculating commitment for share` +- `ErrInvalidShareCommitment` - `invalid commitment for share` +- `ErrParitySharesNamespace` - `cannot use parity shares namespace ID` +- `ErrTailPaddingNamespace` - `cannot use tail padding namespace ID` +- `ErrTxNamespace` - `cannot use transaction namespace ID` +- `ErrInvalidShareCommitments` - `invalid share commitments: all relevant square sizes must be committed to` +- `ErrUnsupportedShareVersion` - `unsupported share version` +- `ErrZeroBlobSize` - `cannot use zero blob size` +- `ErrMismatchedNumberOfPFBorBlob` - `mismatched number of blobs per MsgPayForBlob` +- `ErrNoPFB` - `no MsgPayForBlobs found in blob transaction` +- `ErrNamespaceMismatch` - `namespace of blob and its respective MsgPayForBlobs differ` +- `ErrProtoParsing` - `failure to parse a transaction from its protobuf representation` +- `ErrMultipleMsgsInBlobTx` - `not yet supported: multiple sdk.Msgs found in BlobTx` +- `ErrMismatchedNumberOfPFBComponent` - `number of each component in a MsgPayForBlobs must be identical` +- `ErrNoBlobs` - `no blobs provided` +- `ErrNoNamespaces` - `no namespaces provided` +- `ErrNoShareVersions` - `no share versions provided` +- `ErrNoBlobSizes` - `no blob sizes provided` +- `ErrNoShareCommitments` - `no share commitments provided` +- `ErrInvalidNamespace` - `invalid namespace` +- `ErrInvalidNamespaceVersion` - `invalid namespace version` +- `ErrTotalBlobSizeTooLarge` - `total blob size too large` +- `AnteHandle` - `errors.Wrap(sdkerrors.ErrInsufficientFee, "not enough gas to pay for blobs")` +- `checkTxFeeWithValidatorMinGasPrices` - `errors.Wrap(sdkerror.ErrTxDecode, "Tx must be a FeeTx")` +- `ValidateBlobs` - `namespace version %d is too large` +- `ParseInsufficientMinGasPrice` - `parsing insufficient min gas price error` +- `ParseInsufficientMinGasPrice` - `unexpected case: required gas price is zero` + +## celestia-core + +- `BroadcastTxCommit` - `ErrTimedOutWaitingForTx` - `timed out waiting for tx to be included in a block` +- `BroadcastTxCommit` - `max_subscription_clients %d reached` +- `BroadcastTxCommit` - `max_subscriptions_per_client %d reached` +- `BroadcastTxCommit` - `failed to subscribe to tx: %w` +- `BroadcastTxCommit` - `error on broadcastTxCommit: %v` +- `BroadcastTxCommit` - `deliverTxSub was cancelled (reason: %s)` +- `PreCheck` - `tx size is too big` +- `CheckTx` - `ErrTxTooLarge` - `Tx too large. Max size is %d, but got %d` +- `CheckTx` - `ErrPreCheck` - cosmos-sdk errors, see below +- `CheckTx` - `ErrTxInCache` - `tx already exists in cache` +- `CheckTx` - `ErrMempoolIsFull` - `mempool is full: number of txs %d (max: %d), total txs bytes %d (max: %d)` +- `CheckTx` - `mem.proxyAppConn.Error()` - `proxyAppConn may error if tx buffer is full` +- `PostCheck` - `gas wanted %d is negative` +- `PostCheck` - `gas wanted %d is greater than max gas` +- `TryAddNewTx` - `ErrTxInMempool` - `tx already exists in mempool` +- `TryAddNewTx` - `ErrTxAlreadyRejected` - `tx was previously rejected` +- `TryAddNewTx` - `ErrPreCheck` +- `TryAddNewTx` - `mem.proxyAppConn.Error()` +- `TryAddNewTx` - `application rejected transaction with code %d (Log: %s)` +- `TryAddNewTx` - `rejected bad transaction after post check: %w` + +## cosmos-sdk + +- `ErrTxDecode` - `tx parse error` +- `ErrInvalidSequence` - `invalid sequence` +- `ErrUnauthorized` - `unauthorized` +- `ErrInsufficientFunds` - `insufficient funds` +- `ErrUnknownRequest` - `unknown request` +- `ErrInvalidAddress` - `invalid address` +- `ErrInvalidPubKey` - `invalid pubkey` +- `ErrUnknownAddress` - `unknown address` +- `ErrInvalidCoins` - `invalid coins` +- `ErrOutOfGas` - `out of gas` +- `ErrMemoTooLarge` - `memo too large` +- `ErrInsufficientFee` - `insufficient fee` +- `ErrTooManySignatures` - `maximum number of signatures exceeded` +- `ErrNoSignatures` - `no signatures supplied` +- `ErrJSONMarshal` - `failed to marshal JSON bytes` +- `ErrJSONUnmarshal` - `failed to unmarshal JSON bytes` +- `ErrInvalidRequest` - `invalid request` +- `ErrTxInMempoolCache` - `tx already in mempool` +- `ErrMempoolIsFull` - `mempool is full` +- `ErrTxTooLarge` - `tx too large` +- `ErrKeyNotFound` - `key not found` +- `ErrWrongPassword` - `invalid account password` +- `ErrorInvalidSigner` - `tx intended signer does not match the given signer` +- `ErrorInvalidGasAdjustment` - `invalid gas adjustment` +- `ErrInvalidHeight` - `invalid height` +- `ErrInvalidVersion` - `invalid version` +- `ErrInvalidChainID` - `invalid chain-id` +- `ErrInvalidType` - `invalid type` +- `ErrTxTimeoutHeight` - `tx timeout height` +- `ErrUnknownExtensionOptions` - `unknown extension options` +- `ErrWrongSequence` - `incorrect account sequence` +- `ErrPackAny` - `failed packing protobuf message to Any` +- `ErrUnpackAny` - `failed unpacking protobuf message from Any` +- `ErrLogic` - `internal logic error` +- `ErrConflict` - `conflict` +- `ErrNotSupported` - `feature not supported` +- `ErrNotFound` - `not found` +- `ErrIO` - `Internal IO error` +- `ErrAppConfig` - `error in app.toml` +- `ErrInvalidGasLimit` - `invalid gas limit` +- `ErrPanic` - errorsmod.ErrPanic diff --git a/go.mod b/go.mod index 77d492d..83bf9e9 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,22 @@ module github.com/rollkit/template-da-repo -go 1.21.0 +go 1.21.1 + +require github.com/rollkit/go-da v0.5.0 + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/filecoin-project/go-jsonrpc v0.3.1 // indirect + github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect + github.com/google/uuid v1.3.1 // indirect + github.com/gorilla/websocket v1.4.2 // indirect + github.com/ipfs/go-log/v2 v2.0.8 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/stretchr/testify v1.9.0 // indirect + go.opencensus.io v0.22.3 // indirect + go.uber.org/atomic v1.7.0 // indirect + go.uber.org/multierr v1.6.0 // indirect + go.uber.org/zap v1.19.1 // indirect + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..6305c1e --- /dev/null +++ b/go.sum @@ -0,0 +1,125 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/filecoin-project/go-jsonrpc v0.3.1 h1:qwvAUc5VwAkooquKJmfz9R2+F8znhiqcNHYjEp/NM10= +github.com/filecoin-project/go-jsonrpc v0.3.1/go.mod h1:jBSvPTl8V1N7gSTuCR4bis8wnQnIjHbRPpROol6iQKM= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 h1:ZgQEtGgCBiWRM39fZuwSd1LwSqqSW0hOdXCYYDX0R3I= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= +github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/ipfs/go-log/v2 v2.0.8 h1:3b3YNopMHlj4AvyhWAx0pDxqSQWYi4/WuWO7yRV6/Qg= +github.com/ipfs/go-log/v2 v2.0.8/go.mod h1:eZs4Xt4ZUJQFM3DlanGhy7TkwwawCZcSByscwkWG+dw= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rollkit/go-da v0.5.0 h1:sQpZricNS+2TLx3HMjNWhtRfqtvVC/U4pWHpfUz3eN4= +github.com/rollkit/go-da v0.5.0/go.mod h1:VsUeAoPvKl4Y8wWguu/VibscYiFFePkkrvZWyTjZHww= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +go.opencensus.io v0.22.3 h1:8sGtKOrtQqkN1bp2AtX+misvLIlOmsEsNd+9NIcPEm8= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.11-0.20210813005559-691160354723 h1:sHOAIxRGBp443oHZIPB+HsUGaksVCXVQENPxwTfQdH4= +go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= +go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= +go.uber.org/zap v1.19.1 h1:ue41HOKd1vGURxrmeKIgELGb3jPW9DMUDGtsinblHwI= +go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=