diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22753d2..c59b8d2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,4 +64,4 @@ jobs: - name: Test E2E if: env.GIT_DIFF run: | - make test-e2e + make test-integration diff --git a/Makefile b/Makefile index f293ae6..5413e1e 100644 --- a/Makefile +++ b/Makefile @@ -85,29 +85,46 @@ build-and-start-app: build-test-app .PHONY: build-test-app build-and-start-app +############################################################################### +## Workspaces ## +############################################################################### + +use-main: + go work edit -use . + go work edit -dropuse ./tests/integration + +use-integration: + go work edit -dropuse . + go work edit -use ./tests/integration + +.PHONY: docker-build docker-build-integration ############################################################################### ## Docker ## ############################################################################### -docker-build: +docker-build: use-main @echo "Building E2E Docker image..." @DOCKER_BUILDKIT=1 docker build -t skip-mev/pob-e2e -f contrib/images/pob.e2e.Dockerfile . +docker-build-integration: use-main + @echo "Building integration-test Docker image..." + @DOCKER_BUILDKIT=1 docker build -t pob-integration -f contrib/images/pob.integration.Dockerfile . + ############################################################################### ### Tests ### ############################################################################### -TEST_E2E_TAGS = e2e -TEST_E2E_DEPS = docker-build +TEST_INTEGRATION_DEPS = docker-build-integration use-integration +TEST_INTEGRATION_TAGS = integration -test-e2e: $(TEST_E2E_DEPS) - @echo "Running E2E tests..." - @go test ./tests/e2e/... -mod=readonly -timeout 30m -race -v -tags='$(TEST_E2E_TAGS)' +test-integration: $(TEST_INTEGRATION_DEPS) + @ echo "Running integration tests..." + @go test ./tests/integration/pob_integration_test.go -timeout 30m -race -v -tags='$(TEST_INTEGRATION_TAGS)' -test: +test: use-main @go test -v -race $(shell go list ./... | grep -v tests/) -.PHONY: test test-e2e +.PHONY: test test-integration ############################################################################### ### Protobuf ### @@ -149,12 +166,12 @@ proto-update-deps: golangci_lint_cmd=golangci-lint golangci_version=v1.51.2 -lint: +lint: use-main @echo "--> Running linter" @go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version) @golangci-lint run -lint-fix: +lint-fix: use-main @echo "--> Running linter" @go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version) @golangci-lint run --fix diff --git a/abci/abci_test.go b/abci/abci_test.go deleted file mode 100644 index 9048e45..0000000 --- a/abci/abci_test.go +++ /dev/null @@ -1,317 +0,0 @@ -package abci_test - -import ( - "math/rand" - "testing" - "time" - - "cosmossdk.io/log" - "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" - comettypes "github.com/cometbft/cometbft/abci/types" - cmtproto "github.com/cometbft/cometbft/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/golang/mock/gomock" - "github.com/skip-mev/pob/abci" - "github.com/skip-mev/pob/blockbuster" - "github.com/skip-mev/pob/blockbuster/lanes/auction" - "github.com/skip-mev/pob/blockbuster/lanes/base" - testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/builder/ante" - "github.com/skip-mev/pob/x/builder/keeper" - buildertypes "github.com/skip-mev/pob/x/builder/types" - "github.com/stretchr/testify/suite" -) - -type ABCITestSuite struct { - suite.Suite - ctx sdk.Context - - // mempool and lane set up - mempool blockbuster.Mempool - tobLane *auction.TOBLane - baseLane *base.DefaultLane - - logger log.Logger - encodingConfig testutils.EncodingConfig - proposalHandler *abci.ProposalHandler - voteExtensionHandler *abci.VoteExtensionHandler - - // builder setup - builderKeeper keeper.Keeper - bankKeeper *testutils.MockBankKeeper - accountKeeper *testutils.MockAccountKeeper - distrKeeper *testutils.MockDistributionKeeper - stakingKeeper *testutils.MockStakingKeeper - builderDecorator ante.BuilderDecorator - key *storetypes.KVStoreKey - authorityAccount sdk.AccAddress - - // account set up - accounts []testutils.Account - balance sdk.Coin - random *rand.Rand - nonces map[string]uint64 -} - -func TestABCISuite(t *testing.T) { - suite.Run(t, new(ABCITestSuite)) -} - -func (suite *ABCITestSuite) SetupTest() { - // General config - suite.encodingConfig = testutils.CreateTestEncodingConfig() - suite.random = rand.New(rand.NewSource(time.Now().Unix())) - suite.key = storetypes.NewKVStoreKey(buildertypes.StoreKey) - testCtx := testutil.DefaultContextWithDB(suite.T(), suite.key, storetypes.NewTransientStoreKey("transient_test")) - suite.ctx = testCtx.Ctx.WithBlockHeight(10) - suite.logger = log.NewTestLogger(suite.T()) - - suite.ctx = suite.ctx.WithConsensusParams(cmtproto.ConsensusParams{ - Abci: &cmtproto.ABCIParams{ - VoteExtensionsEnableHeight: 1, - }, - }) - - // Lanes configuration - // - // TOB lane set up - tobConfig := blockbuster.BaseLaneConfig{ - Logger: suite.logger, - TxEncoder: suite.encodingConfig.TxConfig.TxEncoder(), - TxDecoder: suite.encodingConfig.TxConfig.TxDecoder(), - AnteHandler: suite.anteHandler, - MaxBlockSpace: math.LegacyZeroDec(), - } - suite.tobLane = auction.NewTOBLane( - tobConfig, - 0, // No bound on the number of transactions in the lane - auction.NewDefaultAuctionFactory(suite.encodingConfig.TxConfig.TxDecoder()), - ) - - // Base lane set up - baseConfig := blockbuster.BaseLaneConfig{ - Logger: suite.logger, - TxEncoder: suite.encodingConfig.TxConfig.TxEncoder(), - TxDecoder: suite.encodingConfig.TxConfig.TxDecoder(), - AnteHandler: suite.anteHandler, - MaxBlockSpace: math.LegacyZeroDec(), - IgnoreList: []blockbuster.Lane{suite.tobLane}, - } - suite.baseLane = base.NewDefaultLane( - baseConfig, - ) - - // Mempool set up - suite.mempool = blockbuster.NewMempool( - suite.logger, - suite.tobLane, - suite.baseLane, - ) - - // Mock keepers set up - ctrl := gomock.NewController(suite.T()) - suite.accountKeeper = testutils.NewMockAccountKeeper(ctrl) - suite.accountKeeper.EXPECT().GetModuleAddress(buildertypes.ModuleName).Return(sdk.AccAddress{}).AnyTimes() - suite.bankKeeper = testutils.NewMockBankKeeper(ctrl) - suite.distrKeeper = testutils.NewMockDistributionKeeper(ctrl) - suite.stakingKeeper = testutils.NewMockStakingKeeper(ctrl) - suite.authorityAccount = sdk.AccAddress([]byte("authority")) - - // Builder keeper / decorator set up - suite.builderKeeper = keeper.NewKeeper( - suite.encodingConfig.Codec, - suite.key, - suite.accountKeeper, - suite.bankKeeper, - suite.distrKeeper, - suite.stakingKeeper, - suite.authorityAccount.String(), - ) - err := suite.builderKeeper.SetParams(suite.ctx, buildertypes.DefaultParams()) - suite.Require().NoError(err) - suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxEncoder(), suite.tobLane, suite.mempool) - - // Accounts set up - suite.accounts = testutils.RandomAccounts(suite.random, 10) - suite.balance = sdk.NewCoin("stake", math.NewInt(1000000000000000000)) - suite.nonces = make(map[string]uint64) - for _, acc := range suite.accounts { - suite.nonces[acc.Address.String()] = 0 - } - - // Proposal handler set up - suite.proposalHandler = abci.NewProposalHandler( - []blockbuster.Lane{ - suite.tobLane, - suite.baseLane, - }, - suite.tobLane, - suite.logger, - suite.encodingConfig.TxConfig.TxEncoder(), - suite.encodingConfig.TxConfig.TxDecoder(), - abci.NoOpValidateVoteExtensionsFn(), - ) - suite.voteExtensionHandler = abci.NewVoteExtensionHandler( - log.NewTestLogger(suite.T()), - suite.tobLane, - suite.encodingConfig.TxConfig.TxDecoder(), - suite.encodingConfig.TxConfig.TxEncoder(), - ) -} - -func (suite *ABCITestSuite) anteHandler(ctx sdk.Context, tx sdk.Tx, _ bool) (sdk.Context, error) { - suite.bankKeeper.EXPECT().GetBalance(ctx, gomock.Any(), suite.balance.Denom).AnyTimes().Return(suite.balance) - - next := func(ctx sdk.Context, _ sdk.Tx, _ bool) (sdk.Context, error) { - return ctx, nil - } - - return suite.builderDecorator.AnteHandle(ctx, tx, false, next) -} - -// fillBaseLane fills the base lane with numTxs transactions that are randomly created. -func (suite *ABCITestSuite) fillBaseLane(numTxs int) { - for i := 0; i < numTxs; i++ { - // randomly select an account to create the tx - randomIndex := suite.random.Intn(len(suite.accounts)) - acc := suite.accounts[randomIndex] - - // create a few random msgs and construct the tx - nonce := suite.nonces[acc.Address.String()] - randomMsgs := testutils.CreateRandomMsgs(acc.Address, 3) - tx, err := testutils.CreateTx(suite.encodingConfig.TxConfig, acc, nonce, 1000, randomMsgs) - suite.Require().NoError(err) - - // insert the tx into the lane and update the account - suite.nonces[acc.Address.String()]++ - priority := suite.random.Int63n(100) + 1 - suite.Require().NoError(suite.mempool.Insert(suite.ctx.WithPriority(priority), tx)) - } -} - -// fillTOBLane fills the TOB lane with numTxs transactions that are randomly created. -func (suite *ABCITestSuite) fillTOBLane(numTxs int, numBundledTxs int) { - // Insert a bunch of auction transactions into the global mempool and auction mempool - for i := 0; i < numTxs; i++ { - // randomly select a bidder to create the tx - randomIndex := suite.random.Intn(len(suite.accounts)) - acc := suite.accounts[randomIndex] - - // create a randomized auction transaction - nonce := suite.nonces[acc.Address.String()] - bidAmount := math.NewInt(int64(suite.random.Intn(1000) + 1)) - bid := sdk.NewCoin("stake", bidAmount) - - signers := []testutils.Account{} - for j := 0; j < numBundledTxs; j++ { - signers = append(signers, suite.accounts[0]) - } - - tx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, acc, bid, nonce, 1000, signers) - suite.Require().NoError(err) - - // insert the auction tx into the global mempool - suite.Require().NoError(suite.mempool.Insert(suite.ctx, tx)) - suite.nonces[acc.Address.String()]++ - } -} - -func (suite *ABCITestSuite) createPrepareProposalRequest(maxBytes int64) comettypes.RequestPrepareProposal { - voteExtensions := make([]comettypes.ExtendedVoteInfo, 0) - - auctionIterator := suite.tobLane.Select(suite.ctx, nil) - for ; auctionIterator != nil; auctionIterator = auctionIterator.Next() { - tx := auctionIterator.Tx() - - txBz, err := suite.encodingConfig.TxConfig.TxEncoder()(tx) - suite.Require().NoError(err) - - voteExtensions = append(voteExtensions, comettypes.ExtendedVoteInfo{ - VoteExtension: txBz, - }) - } - - return comettypes.RequestPrepareProposal{ - MaxTxBytes: maxBytes, - LocalLastCommit: comettypes.ExtendedCommitInfo{ - Votes: voteExtensions, - }, - } -} - -func (suite *ABCITestSuite) createExtendedCommitInfoFromTxs(txs []sdk.Tx) comettypes.ExtendedCommitInfo { - voteExtensions := make([][]byte, 0) - for _, tx := range txs { - bz, err := suite.encodingConfig.TxConfig.TxEncoder()(tx) - suite.Require().NoError(err) - - voteExtensions = append(voteExtensions, bz) - } - - return suite.createExtendedCommitInfo(voteExtensions) -} - -func (suite *ABCITestSuite) createExtendedVoteInfo(voteExtensions [][]byte) []comettypes.ExtendedVoteInfo { - commitInfo := make([]comettypes.ExtendedVoteInfo, 0) - for _, voteExtension := range voteExtensions { - info := comettypes.ExtendedVoteInfo{ - VoteExtension: voteExtension, - } - - commitInfo = append(commitInfo, info) - } - - return commitInfo -} - -func (suite *ABCITestSuite) createExtendedCommitInfo(voteExtensions [][]byte) comettypes.ExtendedCommitInfo { - commitInfo := comettypes.ExtendedCommitInfo{ - Votes: suite.createExtendedVoteInfo(voteExtensions), - } - - return commitInfo -} - -func (suite *ABCITestSuite) createExtendedCommitInfoFromTxBzs(txs [][]byte) []byte { - voteExtensions := make([]comettypes.ExtendedVoteInfo, 0) - - for _, txBz := range txs { - voteExtensions = append(voteExtensions, comettypes.ExtendedVoteInfo{ - VoteExtension: txBz, - }) - } - - commitInfo := comettypes.ExtendedCommitInfo{ - Votes: voteExtensions, - } - - commitInfoBz, err := commitInfo.Marshal() - suite.Require().NoError(err) - - return commitInfoBz -} - -func (suite *ABCITestSuite) createAuctionInfoFromTxBzs(txs [][]byte, numTxs uint64, maxTxBytes int64) []byte { - auctionInfo := abci.AuctionInfo{ - ExtendedCommitInfo: suite.createExtendedCommitInfoFromTxBzs(txs), - NumTxs: numTxs, - MaxTxBytes: maxTxBytes, - } - - auctionInfoBz, err := auctionInfo.Marshal() - suite.Require().NoError(err) - - return auctionInfoBz -} - -func (suite *ABCITestSuite) getAuctionBidInfoFromTxBz(txBz []byte) *buildertypes.BidInfo { - tx, err := suite.encodingConfig.TxConfig.TxDecoder()(txBz) - suite.Require().NoError(err) - - bidInfo, err := suite.tobLane.GetAuctionBidInfo(tx) - suite.Require().NoError(err) - - return bidInfo -} diff --git a/abci/auction.pb.go b/abci/auction.pb.go deleted file mode 100644 index 3115410..0000000 --- a/abci/auction.pb.go +++ /dev/null @@ -1,395 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: pob/abci/v1/auction.proto - -package abci - -import ( - fmt "fmt" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -// AuctionInfo contains information about the top of block auction -// that was run in PrepareProposal using vote extensions. -type AuctionInfo struct { - // extended_commit_info contains the vote extensions that were used to run the auction. - ExtendedCommitInfo []byte `protobuf:"bytes,1,opt,name=extended_commit_info,json=extendedCommitInfo,proto3" json:"extended_commit_info,omitempty"` - // max_tx_bytes is the maximum number of bytes that were allowed for the proposal. - MaxTxBytes int64 `protobuf:"varint,2,opt,name=max_tx_bytes,json=maxTxBytes,proto3" json:"max_tx_bytes,omitempty"` - // num_txs is the number of transactions that were included in the proposal. - NumTxs uint64 `protobuf:"varint,3,opt,name=num_txs,json=numTxs,proto3" json:"num_txs,omitempty"` -} - -func (m *AuctionInfo) Reset() { *m = AuctionInfo{} } -func (m *AuctionInfo) String() string { return proto.CompactTextString(m) } -func (*AuctionInfo) ProtoMessage() {} -func (*AuctionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_ea32f9b647554bf5, []int{0} -} -func (m *AuctionInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AuctionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AuctionInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AuctionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuctionInfo.Merge(m, src) -} -func (m *AuctionInfo) XXX_Size() int { - return m.Size() -} -func (m *AuctionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_AuctionInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_AuctionInfo proto.InternalMessageInfo - -func (m *AuctionInfo) GetExtendedCommitInfo() []byte { - if m != nil { - return m.ExtendedCommitInfo - } - return nil -} - -func (m *AuctionInfo) GetMaxTxBytes() int64 { - if m != nil { - return m.MaxTxBytes - } - return 0 -} - -func (m *AuctionInfo) GetNumTxs() uint64 { - if m != nil { - return m.NumTxs - } - return 0 -} - -func init() { - proto.RegisterType((*AuctionInfo)(nil), "pob.abci.v1.AuctionInfo") -} - -func init() { proto.RegisterFile("pob/abci/v1/auction.proto", fileDescriptor_ea32f9b647554bf5) } - -var fileDescriptor_ea32f9b647554bf5 = []byte{ - // 224 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2c, 0xc8, 0x4f, 0xd2, - 0x4f, 0x4c, 0x4a, 0xce, 0xd4, 0x2f, 0x33, 0xd4, 0x4f, 0x2c, 0x4d, 0x2e, 0xc9, 0xcc, 0xcf, 0xd3, - 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2e, 0xc8, 0x4f, 0xd2, 0x03, 0x49, 0xe9, 0x95, 0x19, - 0x2a, 0x55, 0x71, 0x71, 0x3b, 0x42, 0x64, 0x3d, 0xf3, 0xd2, 0xf2, 0x85, 0x0c, 0xb8, 0x44, 0x52, - 0x2b, 0x4a, 0x52, 0xf3, 0x52, 0x52, 0x53, 0xe2, 0x93, 0xf3, 0x73, 0x73, 0x33, 0x4b, 0xe2, 0x33, - 0xf3, 0xd2, 0xf2, 0x25, 0x18, 0x15, 0x18, 0x35, 0x78, 0x82, 0x84, 0x60, 0x72, 0xce, 0x60, 0x29, - 0xb0, 0x0e, 0x05, 0x2e, 0x9e, 0xdc, 0xc4, 0x8a, 0xf8, 0x92, 0x8a, 0xf8, 0xa4, 0xca, 0x92, 0xd4, - 0x62, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0xae, 0xdc, 0xc4, 0x8a, 0x90, 0x0a, 0x27, 0x90, - 0x88, 0x90, 0x38, 0x17, 0x7b, 0x5e, 0x69, 0x6e, 0x7c, 0x49, 0x45, 0xb1, 0x04, 0xb3, 0x02, 0xa3, - 0x06, 0x4b, 0x10, 0x5b, 0x5e, 0x69, 0x6e, 0x48, 0x45, 0xb1, 0x93, 0xd9, 0x89, 0x47, 0x72, 0x8c, - 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, - 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xc9, 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, - 0xe7, 0xea, 0x17, 0x67, 0x67, 0x16, 0xe8, 0xe6, 0xa6, 0x96, 0xe9, 0xc3, 0x7c, 0x94, 0xc4, 0x06, - 0xf6, 0x87, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xce, 0x6f, 0x84, 0x78, 0xe4, 0x00, 0x00, 0x00, -} - -func (m *AuctionInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AuctionInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AuctionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NumTxs != 0 { - i = encodeVarintAuction(dAtA, i, uint64(m.NumTxs)) - i-- - dAtA[i] = 0x18 - } - if m.MaxTxBytes != 0 { - i = encodeVarintAuction(dAtA, i, uint64(m.MaxTxBytes)) - i-- - dAtA[i] = 0x10 - } - if len(m.ExtendedCommitInfo) > 0 { - i -= len(m.ExtendedCommitInfo) - copy(dAtA[i:], m.ExtendedCommitInfo) - i = encodeVarintAuction(dAtA, i, uint64(len(m.ExtendedCommitInfo))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintAuction(dAtA []byte, offset int, v uint64) int { - offset -= sovAuction(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *AuctionInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ExtendedCommitInfo) - if l > 0 { - n += 1 + l + sovAuction(uint64(l)) - } - if m.MaxTxBytes != 0 { - n += 1 + sovAuction(uint64(m.MaxTxBytes)) - } - if m.NumTxs != 0 { - n += 1 + sovAuction(uint64(m.NumTxs)) - } - return n -} - -func sovAuction(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozAuction(x uint64) (n int) { - return sovAuction(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *AuctionInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAuction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AuctionInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AuctionInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExtendedCommitInfo", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAuction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthAuction - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthAuction - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExtendedCommitInfo = append(m.ExtendedCommitInfo[:0], dAtA[iNdEx:postIndex]...) - if m.ExtendedCommitInfo == nil { - m.ExtendedCommitInfo = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxTxBytes", wireType) - } - m.MaxTxBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAuction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxTxBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumTxs", wireType) - } - m.NumTxs = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowAuction - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumTxs |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipAuction(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAuction - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipAuction(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAuction - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAuction - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowAuction - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthAuction - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAuction - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthAuction - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthAuction = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAuction = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAuction = fmt.Errorf("proto: unexpected end of group") -) diff --git a/abci/auction_test.go b/abci/auction_test.go deleted file mode 100644 index 9db0270..0000000 --- a/abci/auction_test.go +++ /dev/null @@ -1,512 +0,0 @@ -package abci_test - -import ( - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - testutils "github.com/skip-mev/pob/testutils" - buildertypes "github.com/skip-mev/pob/x/builder/types" -) - -func (suite *ABCITestSuite) TestGetBidsFromVoteExtensions() { - testCases := []struct { - name string - createVoteExtensions func() ([][]byte, [][]byte) // returns (vote extensions, expected bids) - }{ - { - "no vote extensions", - func() ([][]byte, [][]byte) { - return nil, [][]byte{} - }, - }, - { - "no vote extensions", - func() ([][]byte, [][]byte) { - return [][]byte{}, [][]byte{} - }, - }, - { - "single vote extension", - func() ([][]byte, [][]byte) { - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(100)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - voteExtensions := [][]byte{ - bidTxBz, - } - - expectedBids := [][]byte{ - bidTxBz, - } - - return voteExtensions, expectedBids - }, - }, - { - "multiple vote extensions", - func() ([][]byte, [][]byte) { - bidTxBz1, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - bidTxBz2, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(100)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - voteExtensions := [][]byte{ - bidTxBz1, - bidTxBz2, - } - - expectedBids := [][]byte{ - bidTxBz1, - bidTxBz2, - } - - return voteExtensions, expectedBids - }, - }, - { - "multiple vote extensions with some noise", - func() ([][]byte, [][]byte) { - bidTxBz1, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - bidTxBz2, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(100)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - voteExtensions := [][]byte{ - bidTxBz1, - nil, - bidTxBz2, - []byte("noise"), - []byte("noise p2"), - } - - expectedBids := [][]byte{ - bidTxBz1, - bidTxBz2, - } - - return voteExtensions, expectedBids - }, - }, - { - "multiple vote extensions with some normal txs", - func() ([][]byte, [][]byte) { - bidTxBz1, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - bidTxBz2, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(100)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - randomBz, err := testutils.CreateRandomTxBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - 0, - 1, - 0, - ) - suite.Require().NoError(err) - - voteExtensions := [][]byte{ - bidTxBz1, - bidTxBz2, - nil, - randomBz, - []byte("noise p2"), - } - - expectedBids := [][]byte{ - bidTxBz1, - bidTxBz2, - } - - return voteExtensions, expectedBids - }, - }, - { - "multiple vote extensions with some normal txs in unsorted order", - func() ([][]byte, [][]byte) { - bidTxBz1, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(1001)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - bidTxBz2, err := testutils.CreateAuctionTxWithSignerBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(100)), - 0, - 1, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - randomBz, err := testutils.CreateRandomTxBz( - suite.encodingConfig.TxConfig, - suite.accounts[0], - 0, - 1, - 0, - ) - suite.Require().NoError(err) - - voteExtensions := [][]byte{ - bidTxBz2, - bidTxBz1, - nil, - randomBz, - []byte("noise p2"), - } - - expectedBids := [][]byte{ - bidTxBz1, - bidTxBz2, - } - - return voteExtensions, expectedBids - }, - }, - } - - for _, tc := range testCases { - suite.Run(tc.name, func() { - voteExtensions, expectedBids := tc.createVoteExtensions() - - commitInfo := suite.createExtendedVoteInfo(voteExtensions) - - // get the bids from the vote extensions - bids := suite.proposalHandler.GetBidsFromVoteExtensions(commitInfo) - - // Check invarients - suite.Require().Equal(len(expectedBids), len(bids)) - for i, bid := range expectedBids { - actualBz, err := suite.encodingConfig.TxConfig.TxEncoder()(bids[i]) - suite.Require().NoError(err) - - suite.Require().Equal(bid, actualBz) - } - }) - } -} - -func (suite *ABCITestSuite) TestBuildTOB() { - params := buildertypes.Params{ - MaxBundleSize: 4, - ReserveFee: sdk.NewCoin("stake", math.NewInt(100)), - MinBidIncrement: sdk.NewCoin("stake", math.NewInt(100)), - FrontRunningProtection: true, - } - suite.builderKeeper.SetParams(suite.ctx, params) - - testCases := []struct { - name string - getBidTxs func() ([]sdk.Tx, sdk.Tx) // returns the bids and the winning bid - maxBytes int64 - }{ - { - "no bids", - func() ([]sdk.Tx, sdk.Tx) { - return []sdk.Tx{}, nil - }, - 1000000000, - }, - { - "single bid", - func() ([]sdk.Tx, sdk.Tx) { - bidTx, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx}, bidTx - }, - 1000000000, - }, - { - "single invalid bid (bid is too small)", - func() ([]sdk.Tx, sdk.Tx) { - bidTx, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(1)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx}, nil - }, - 1000000000, - }, - { - "single invalid bid with front-running", - func() ([]sdk.Tx, sdk.Tx) { - bidTx, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(1000)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[0], suite.accounts[1]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx}, nil - }, - 1000000000, - }, - { - "single invalid bid with too many transactions in the bundle", - func() ([]sdk.Tx, sdk.Tx) { - bidTx, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{ - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - }, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx}, nil - }, - 1000000000, - }, - { - "single bid but max bytes is too small", - func() ([]sdk.Tx, sdk.Tx) { - bidTx, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx}, nil - }, - 1, - }, - { - "multiple bids", - func() ([]sdk.Tx, sdk.Tx) { - bidTx1, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - bidTx2, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[1], - sdk.NewCoin("stake", math.NewInt(102)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[1]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx2, bidTx1}, bidTx2 - }, - 1000000000, - }, - { - "multiple bids with front-running", - func() ([]sdk.Tx, sdk.Tx) { - bidTx1, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(1000)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[0], suite.accounts[1]}, - ) - suite.Require().NoError(err) - - bidTx2, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[1], - sdk.NewCoin("stake", math.NewInt(200)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[1]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx1, bidTx2}, bidTx2 - }, - 1000000000, - }, - { - "multiple bids with too many transactions in the bundle", - func() ([]sdk.Tx, sdk.Tx) { - bidTx1, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{ - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - suite.accounts[0], - }, - ) - suite.Require().NoError(err) - - bidTx2, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[1], - sdk.NewCoin("stake", math.NewInt(102)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[1]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx1, bidTx2}, bidTx2 - }, - 1000000000, - }, - { - "multiple bids unsorted", - func() ([]sdk.Tx, sdk.Tx) { - bidTx1, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[0], - sdk.NewCoin("stake", math.NewInt(101)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[0]}, - ) - suite.Require().NoError(err) - - bidTx2, err := testutils.CreateAuctionTxWithSigners( - suite.encodingConfig.TxConfig, - suite.accounts[1], - sdk.NewCoin("stake", math.NewInt(102)), - 0, - uint64(suite.ctx.BlockHeight())+2, - []testutils.Account{suite.accounts[1]}, - ) - suite.Require().NoError(err) - - return []sdk.Tx{bidTx1, bidTx2}, bidTx2 - }, - 1000000000, - }, - } - - for _, tc := range testCases { - suite.Run(tc.name, func() { - bidTxs, winningBid := tc.getBidTxs() - - commitInfo := suite.createExtendedCommitInfoFromTxs(bidTxs) - - // Host the auction - proposal := suite.proposalHandler.BuildTOB(suite.ctx, commitInfo, tc.maxBytes) - - // Size of the proposal should be less than or equal to the max bytes - suite.Require().LessOrEqual(proposal.GetTotalTxBytes(), tc.maxBytes) - - if winningBid == nil { - suite.Require().Len(proposal.GetTxs(), 0) - suite.Require().Equal(proposal.GetTotalTxBytes(), int64(0)) - } else { - // Get info about the winning bid - winningBidBz, err := suite.encodingConfig.TxConfig.TxEncoder()(winningBid) - suite.Require().NoError(err) - - auctionBidInfo, err := suite.tobLane.GetAuctionBidInfo(winningBid) - suite.Require().NoError(err) - - // Verify that the size of the proposal is the size of the winning bid - // plus the size of the bundle - suite.Require().Equal(len(proposal.GetTxs()), len(auctionBidInfo.Transactions)+1) - - // Verify that the winning bid is the first transaction in the proposal - suite.Require().Equal(proposal.GetTxs()[0], winningBidBz) - - // Verify the ordering of transactions in the proposal - for index, tx := range proposal.GetTxs()[1:] { - suite.Equal(tx, auctionBidInfo.Transactions[index]) - } - } - }) - } -} diff --git a/abci/proposal_auction.go b/abci/proposal_auction.go deleted file mode 100644 index f807116..0000000 --- a/abci/proposal_auction.go +++ /dev/null @@ -1,212 +0,0 @@ -package abci - -import ( - "fmt" - "reflect" - "sort" - - abci "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/blockbuster" - "github.com/skip-mev/pob/blockbuster/utils" -) - -// BuildTOB inputs all of the vote extensions and outputs a top of block proposal -// that includes the highest bidding valid transaction along with all the bundled -// transactions. -func (h *ProposalHandler) BuildTOB(ctx sdk.Context, voteExtensionInfo abci.ExtendedCommitInfo, maxBytes int64) *blockbuster.Proposal { - // Get the bid transactions from the vote extensions. - sortedBidTxs := h.GetBidsFromVoteExtensions(voteExtensionInfo.Votes) - - // Track the transactions we can remove from the mempool - txsToRemove := make(map[sdk.Tx]struct{}) - - // Attempt to select the highest bid transaction that is valid and whose - // bundled transactions are valid. - topOfBlock := blockbuster.NewProposal(maxBytes) - for _, bidTx := range sortedBidTxs { - // Cache the context so that we can write it back to the original context - // when we know we have a valid top of block bundle. - cacheCtx, write := ctx.CacheContext() - - // Attempt to build the top of block using the bid transaction. - proposal, err := h.buildTOB(cacheCtx, bidTx, maxBytes) - if err != nil { - h.logger.Info( - "vote extension auction failed to verify auction tx", - "err", err, - ) - txsToRemove[bidTx] = struct{}{} - continue - } - - // At this point, both the bid transaction itself and all the bundled - // transactions are valid. So we select the bid transaction along with - // all the bundled transactions and apply the state changes to the cache - // context. - topOfBlock = proposal - write() - - break - } - - // Remove all of the transactions that were not valid. - if err := utils.RemoveTxsFromLane(txsToRemove, h.tobLane); err != nil { - h.logger.Error( - "failed to remove transactions from lane", - "err", err, - ) - } - - return topOfBlock -} - -// VerifyTOB verifies that the set of vote extensions used in prepare proposal deterministically -// produce the same top of block proposal. -func (h *ProposalHandler) VerifyTOB(ctx sdk.Context, proposalTxs [][]byte) (*AuctionInfo, error) { - // Proposal must include at least the auction info. - if len(proposalTxs) < NumInjectedTxs { - return nil, fmt.Errorf("proposal is too small; expected at least %d slots", NumInjectedTxs) - } - - // Extract the auction info from the proposal. - auctionInfo := &AuctionInfo{} - if err := auctionInfo.Unmarshal(proposalTxs[AuctionInfoIndex]); err != nil { - return nil, fmt.Errorf("failed to unmarshal auction info: %w", err) - } - - // Verify that the proposal contains the expected number of top of block transactions. - if len(proposalTxs) < int(auctionInfo.NumTxs)+NumInjectedTxs { - return nil, fmt.Errorf("number of txs in proposal do not match expected in auction info; expected at least %d slots", auctionInfo.NumTxs+NumInjectedTxs) - } - - // unmarshal the vote extension information from the auction info - lastCommitInfo := abci.ExtendedCommitInfo{} - if err := lastCommitInfo.Unmarshal(auctionInfo.ExtendedCommitInfo); err != nil { - return nil, fmt.Errorf("failed to unmarshal last commit info from auction info: %w", err) - } - - // verify that the included vote extensions are valid in accordance with the - // the preferences of the application - cacheCtx, _ := ctx.CacheContext() - if err := h.validateVoteExtensionsFn(cacheCtx, cacheCtx.BlockHeight(), lastCommitInfo); err != nil { - return nil, fmt.Errorf("failed to validate vote extensions: %w", err) - } - - // Build the top of block proposal from the auction info. - expectedTOB := h.BuildTOB(cacheCtx, lastCommitInfo, auctionInfo.MaxTxBytes) - - // Verify that the top of block txs matches the top of block proposal txs. - actualTOBTxs := proposalTxs[NumInjectedTxs : auctionInfo.NumTxs+NumInjectedTxs] - if !reflect.DeepEqual(actualTOBTxs, expectedTOB.GetTxs()) { - return nil, fmt.Errorf("expected top of block txs does not match top of block proposal") - } - - return auctionInfo, nil -} - -// GetBidsFromVoteExtensions returns all of the auction bid transactions from -// the vote extensions in sorted descending order. -func (h *ProposalHandler) GetBidsFromVoteExtensions(voteExtensions []abci.ExtendedVoteInfo) []sdk.Tx { - bidTxs := make([]sdk.Tx, 0) - - // Iterate through all vote extensions and extract the auction transactions. - for _, voteInfo := range voteExtensions { - voteExtension := voteInfo.VoteExtension - - // Check if the vote extension contains an auction transaction. - if bidTx, err := h.getAuctionTxFromVoteExtension(voteExtension); err == nil { - bidTxs = append(bidTxs, bidTx) - } - } - - // Sort the auction transactions by their bid amount in descending order. - sort.Slice(bidTxs, func(i, j int) bool { - // In the case of an error, we want to sort the transaction to the end of the list. - bidInfoI, err := h.tobLane.GetAuctionBidInfo(bidTxs[i]) - if err != nil { - return false - } - - bidInfoJ, err := h.tobLane.GetAuctionBidInfo(bidTxs[j]) - if err != nil { - return true - } - - return bidInfoI.Bid.IsGTE(bidInfoJ.Bid) - }) - - return bidTxs -} - -// buildTOB verifies that the auction and bundled transactions are valid and -// returns the transactions that should be included in the top of block, size -// of the auction transaction and bundle, and a cache of all transactions that -// should be ignored. -func (h *ProposalHandler) buildTOB(ctx sdk.Context, bidTx sdk.Tx, maxBytes int64) (*blockbuster.Proposal, error) { - proposal := blockbuster.NewProposal(maxBytes) - - // cache the bytes of the bid transaction - txBz, _, err := utils.GetTxHashStr(h.txEncoder, bidTx) - if err != nil { - return proposal, err - } - - // Ensure that the bid transaction is valid - if err := h.tobLane.VerifyTx(ctx, bidTx); err != nil { - return proposal, err - } - - bidInfo, err := h.tobLane.GetAuctionBidInfo(bidTx) - if err != nil { - return proposal, err - } - - // store the bytes of each ref tx as sdk.Tx bytes in order to build a valid proposal - txs := [][]byte{txBz} - - // Ensure that the bundled transactions are valid - for _, rawRefTx := range bidInfo.Transactions { - // convert the bundled raw transaction to a sdk.Tx - refTx, err := h.tobLane.WrapBundleTransaction(rawRefTx) - if err != nil { - return proposal, err - } - - // convert the sdk.Tx to a hash and bytes - txBz, _, err := utils.GetTxHashStr(h.txEncoder, refTx) - if err != nil { - return proposal, err - } - - txs = append(txs, txBz) - } - - // Add the bundled transactions to the proposal. - if err := proposal.UpdateProposal(h.tobLane, txs); err != nil { - return proposal, err - } - - return proposal, nil -} - -// getAuctionTxFromVoteExtension extracts the auction transaction from the vote -// extension. -func (h *ProposalHandler) getAuctionTxFromVoteExtension(voteExtension []byte) (sdk.Tx, error) { - if len(voteExtension) == 0 { - return nil, fmt.Errorf("vote extension is empty") - } - - // Attempt to unmarshal the auction transaction. - bidTx, err := h.txDecoder(voteExtension) - if err != nil { - return nil, err - } - - // Verify the auction transaction has bid information. - if bidInfo, err := h.tobLane.GetAuctionBidInfo(bidTx); err != nil || bidInfo == nil { - return nil, fmt.Errorf("vote extension does not contain an auction transaction") - } - - return bidTx, nil -} diff --git a/abci/proposals.go b/abci/proposals.go deleted file mode 100644 index 88bc09e..0000000 --- a/abci/proposals.go +++ /dev/null @@ -1,231 +0,0 @@ -package abci - -import ( - "cosmossdk.io/log" - "cosmossdk.io/math" - cometabci "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkmempool "github.com/cosmos/cosmos-sdk/types/mempool" - "github.com/skip-mev/pob/blockbuster" - "github.com/skip-mev/pob/blockbuster/abci" - "github.com/skip-mev/pob/blockbuster/lanes/auction" - "github.com/skip-mev/pob/blockbuster/utils" -) - -const ( - // NumInjectedTxs is the minimum number of transactions that were injected into - // the proposal but are not actual transactions. In this case, the auction - // info is injected into the proposal but should be ignored by the application.ß - NumInjectedTxs = 1 - - // AuctionInfoIndex is the index of the auction info in the proposal. - AuctionInfoIndex = 0 -) - -type ( - // TOBLaneProposal is the interface that defines all of the dependencies that - // are required to interact with the top of block lane. - TOBLaneProposal interface { - sdkmempool.Mempool - - // Factory defines the API/functionality which is responsible for determining - // if a transaction is a bid transaction and how to extract relevant - // information from the transaction (bid, timeout, bidder, etc.). - auction.Factory - - // VerifyTx is utilized to verify a bid transaction according to the preferences - // of the top of block lane. - VerifyTx(ctx sdk.Context, tx sdk.Tx) error - - // GetMaxBlockSpace returns the maximum block space that can be used by the top of - // block lane as a percentage of the total block space. - GetMaxBlockSpace() math.LegacyDec - - // Logger returns the logger for the top of block lane. - Logger() log.Logger - - // Name returns the name of the top of block lane. - Name() string - } - - // ProposalHandler contains the functionality and handlers required to\ - // process, validate and build blocks. - ProposalHandler struct { - logger log.Logger - txEncoder sdk.TxEncoder - txDecoder sdk.TxDecoder - - // prepareLanesHandler is responsible for preparing the proposal by selecting - // transactions from each lane according to each lane's selection logic. - prepareLanesHandler blockbuster.PrepareLanesHandler - - // processLanesHandler is responsible for verifying that the proposal is valid - // according to each lane's verification logic. - processLanesHandler blockbuster.ProcessLanesHandler - - // tobLane is the top of block lane which is utilized to verify transactions that - // should be included in the top of block. - tobLane TOBLaneProposal - - // validateVoteExtensionsFn is the function responsible for validating vote extensions. - validateVoteExtensionsFn ValidateVoteExtensionsFn - } -) - -// NewProposalHandler returns a ProposalHandler that contains the functionality and handlers -// required to process, validate and build blocks. -func NewProposalHandler( - lanes []blockbuster.Lane, - tobLane TOBLaneProposal, - logger log.Logger, - txEncoder sdk.TxEncoder, - - txDecoder sdk.TxDecoder, - validateVeFN ValidateVoteExtensionsFn, -) *ProposalHandler { - return &ProposalHandler{ - // We prepare lanes skipping the first lane because the first lane is the top of block lane. - prepareLanesHandler: abci.ChainPrepareLanes(lanes[1:]...), - processLanesHandler: abci.ChainProcessLanes(lanes...), - tobLane: tobLane, - logger: logger, - txEncoder: txEncoder, - txDecoder: txDecoder, - validateVoteExtensionsFn: validateVeFN, - } -} - -// PrepareProposalHandler returns the PrepareProposal ABCI handler that performs -// top-of-block auctioning and general block proposal construction. This handler -// will first attempt to construct the top of the block by utilizing the vote -// extensions from the previous height. If the vote extensions are not available, -// then no top of block auction is performed. After this, the rest of the proposal -// will be constructed by selecting transactions from each lane according to each -// lane's selection logic. -func (h *ProposalHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { - return func(ctx sdk.Context, req *cometabci.RequestPrepareProposal) (*cometabci.ResponsePrepareProposal, error) { - partialProposal := blockbuster.NewProposal(req.MaxTxBytes) - voteExtensionsEnabled := h.VoteExtensionsEnabled(ctx) - - h.logger.Info( - "preparing proposal", - "height", req.Height, - "vote_extensions_enabled", voteExtensionsEnabled, - ) - - if voteExtensionsEnabled { - // Build the top of block portion of the proposal given the vote extensions - // from the previous height. - partialProposal = h.BuildTOB(ctx, req.LocalLastCommit, req.MaxTxBytes) - - h.logger.Info( - "built top of block", - "num_txs", partialProposal.GetNumTxs(), - "size", partialProposal.GetTotalTxBytes(), - ) - - // If information is unable to be marshaled, we return an empty proposal. This will - // cause another proposal to be generated after it is rejected in ProcessProposal. - lastCommitInfo, err := req.LocalLastCommit.Marshal() - if err != nil { - h.logger.Error("failed to marshal last commit info", "err", err) - return &cometabci.ResponsePrepareProposal{Txs: nil}, err - } - - auctionInfo := &AuctionInfo{ - ExtendedCommitInfo: lastCommitInfo, - MaxTxBytes: req.MaxTxBytes, - NumTxs: uint64(partialProposal.GetNumTxs()), - } - - // Add the auction info and top of block transactions into the proposal. - auctionInfoBz, err := auctionInfo.Marshal() - if err != nil { - h.logger.Error("failed to marshal auction info", "err", err) - return &cometabci.ResponsePrepareProposal{Txs: nil}, err - } - - partialProposal.AddVoteExtension(auctionInfoBz) - } - - // Prepare the proposal by selecting transactions from each lane according to - // each lane's selection logic. - finalProposal, err := h.prepareLanesHandler(ctx, partialProposal) - if err != nil { - h.logger.Error("failed to prepare proposal", "err", err) - return &cometabci.ResponsePrepareProposal{Txs: nil}, err - } - - h.logger.Info( - "prepared proposal", - "num_txs", finalProposal.GetNumTxs(), - "size", finalProposal.GetTotalTxBytes(), - ) - - return &cometabci.ResponsePrepareProposal{Txs: finalProposal.GetProposal()}, err - } -} - -// ProcessProposalHandler returns the ProcessProposal ABCI handler that performs -// block proposal verification. This handler will first attempt to verify the top -// of block transactions by utilizing the vote extensions from the previous height. -// If the vote extensions are not available, then no top of block verification is done. -// After this, the rest of the proposal will be verified according to each lane's -// verification logic. -func (h *ProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHandler { - return func(ctx sdk.Context, req *cometabci.RequestProcessProposal) (*cometabci.ResponseProcessProposal, error) { - txs := req.Txs - voteExtensionsEnabled := h.VoteExtensionsEnabled(ctx) - - h.logger.Info( - "processing proposal", - "height", req.Height, - "vote_extensions_enabled", voteExtensionsEnabled, - "num_txs", len(req.Txs), - ) - - // If vote extensions have been enabled, verify that the same top of block transactions can be - // built from the vote extensions included in the proposal. Otherwise verify that the proposal - // is valid according to each lane's verification logic. - if voteExtensionsEnabled { - auctionInfo, err := h.VerifyTOB(ctx, txs) - if err != nil { - h.logger.Error("failed to verify top of block transactions", "err", err) - return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err - } - - h.logger.Info( - "verified top of block", - "num_txs", auctionInfo.NumTxs, - ) - - txs = req.Txs[NumInjectedTxs:] - } - - decodedTxs, err := utils.GetDecodedTxs(h.txDecoder, txs) - if err != nil { - h.logger.Error("failed to decode transactions", "err", err) - return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err - } - - // Verify that the rest of the proposal is valid according to each lane's verification logic. - if _, err = h.processLanesHandler(ctx, decodedTxs); err != nil { - h.logger.Error("failed to process proposal", "err", err) - return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_REJECT}, err - } - - return &cometabci.ResponseProcessProposal{Status: cometabci.ResponseProcessProposal_ACCEPT}, nil - } -} - -// VoteExtensionsEnabled determines if vote extensions are enabled for the current block. -func (h *ProposalHandler) VoteExtensionsEnabled(ctx sdk.Context) bool { - cp := ctx.ConsensusParams() - if cp.Abci == nil || cp.Abci.VoteExtensionsEnableHeight == 0 { - return false - } - - // We do a > here because the vote extensions are enabled at block height H - // but will only be used at block height H+1. - return ctx.BlockHeight() > cp.Abci.VoteExtensionsEnableHeight -} diff --git a/abci/proposals_test.go b/abci/proposals_test.go deleted file mode 100644 index 8f10d86..0000000 --- a/abci/proposals_test.go +++ /dev/null @@ -1,816 +0,0 @@ -package abci_test - -import ( - "cosmossdk.io/log" - "cosmossdk.io/math" - comettypes "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/abci" - "github.com/skip-mev/pob/blockbuster" - "github.com/skip-mev/pob/blockbuster/lanes/auction" - "github.com/skip-mev/pob/blockbuster/lanes/base" - testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/builder/ante" - buildertypes "github.com/skip-mev/pob/x/builder/types" -) - -func (suite *ABCITestSuite) TestPrepareProposal() { - var ( - // the modified transactions cannot exceed this size - maxTxBytes int64 = 1000000000000000000 - - // mempool configuration - normalTxs []sdk.Tx - auctionTxs []sdk.Tx - winningBidTx sdk.Tx - insertBundledTxs = false - - // auction configuration - maxBundleSize uint32 = 10 - reserveFee = sdk.NewCoin("stake", math.NewInt(1000)) - frontRunningProtection = true - ) - - cases := []struct { - name string - malleate func() - expectedNumberProposalTxs int - expectedMempoolDistribution map[string]int - }{ - { - "single valid tob transaction in the mempool", - func() { - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{} - auctionTxs = []sdk.Tx{bidTx} - winningBidTx = bidTx - insertBundledTxs = false - }, - 2, - map[string]int{ - base.LaneName: 0, - auction.LaneName: 1, - }, - }, - { - "single invalid tob transaction in the mempool", - func() { - bidder := suite.accounts[0] - bid := reserveFee.Sub(sdk.NewCoin("stake", math.NewInt(1))) // bid is less than the reserve fee - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{} - auctionTxs = []sdk.Tx{bidTx} - winningBidTx = nil - insertBundledTxs = false - }, - 0, - map[string]int{ - base.LaneName: 0, - auction.LaneName: 0, - }, - }, - { - "normal transactions in the mempool", - func() { - account := suite.accounts[0] - nonce := suite.nonces[account.Address.String()] - timeout := uint64(100) - numberMsgs := uint64(3) - normalTx, err := testutils.CreateRandomTx(suite.encodingConfig.TxConfig, account, nonce, numberMsgs, timeout) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{normalTx} - auctionTxs = []sdk.Tx{} - winningBidTx = nil - insertBundledTxs = false - }, - 1, - map[string]int{ - base.LaneName: 1, - auction.LaneName: 0, - }, - }, - { - "normal transactions and tob transactions in the mempool", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create a valid default transaction - account := suite.accounts[1] - nonce = suite.nonces[account.Address.String()] + 1 - numberMsgs := uint64(3) - normalTx, err := testutils.CreateRandomTx(suite.encodingConfig.TxConfig, account, nonce, numberMsgs, timeout) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{normalTx} - auctionTxs = []sdk.Tx{bidTx} - winningBidTx = bidTx - insertBundledTxs = false - }, - 3, - map[string]int{ - base.LaneName: 1, - auction.LaneName: 1, - }, - }, - { - "multiple tob transactions where the first is invalid", - func() { - // Create an invalid tob transaction (frontrunning) - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000000000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder, bidder, suite.accounts[1]} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create a valid tob transaction - bidder = suite.accounts[1] - bid = sdk.NewCoin("stake", math.NewInt(1000)) - nonce = suite.nonces[bidder.Address.String()] - timeout = uint64(100) - signers = []testutils.Account{bidder} - bidTx2, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{} - auctionTxs = []sdk.Tx{bidTx, bidTx2} - winningBidTx = bidTx2 - insertBundledTxs = false - }, - 2, - map[string]int{ - base.LaneName: 0, - auction.LaneName: 1, - }, - }, - { - "multiple tob transactions where the first is valid", - func() { - // Create an valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(10000000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{suite.accounts[2], bidder} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create a valid tob transaction - bidder = suite.accounts[1] - bid = sdk.NewCoin("stake", math.NewInt(1000)) - nonce = suite.nonces[bidder.Address.String()] - timeout = uint64(100) - signers = []testutils.Account{bidder} - bidTx2, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{} - auctionTxs = []sdk.Tx{bidTx, bidTx2} - winningBidTx = bidTx - insertBundledTxs = false - frontRunningProtection = false - }, - 3, - map[string]int{ - base.LaneName: 0, - auction.LaneName: 2, - }, - }, - { - "single tob transactions where the first is valid and bundle is inserted into mempool", - func() { - frontRunningProtection = false - - // Create an valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(10000000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{suite.accounts[2], suite.accounts[1], bidder, suite.accounts[3], suite.accounts[4]} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{} - auctionTxs = []sdk.Tx{bidTx} - winningBidTx = bidTx - insertBundledTxs = true - }, - 6, - map[string]int{ - base.LaneName: 5, - auction.LaneName: 1, - }, - }, - { - "single tob transaction with other normal transactions in the mempool", - func() { - // Create an valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(10000000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{suite.accounts[2], suite.accounts[1], bidder, suite.accounts[3], suite.accounts[4]} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - account := suite.accounts[5] - nonce = suite.nonces[account.Address.String()] - timeout = uint64(100) - numberMsgs := uint64(3) - normalTx, err := testutils.CreateRandomTx(suite.encodingConfig.TxConfig, account, nonce, numberMsgs, timeout) - suite.Require().NoError(err) - - normalTxs = []sdk.Tx{normalTx} - auctionTxs = []sdk.Tx{bidTx} - winningBidTx = bidTx - insertBundledTxs = true - }, - 7, - map[string]int{ - base.LaneName: 6, - auction.LaneName: 1, - }, - }, - } - - for _, tc := range cases { - suite.Run(tc.name, func() { - suite.SetupTest() // reset - tc.malleate() - - // Insert all of the normal transactions into the default lane - for _, tx := range normalTxs { - suite.Require().NoError(suite.mempool.Insert(suite.ctx, tx)) - } - - // Insert all of the auction transactions into the TOB lane - for _, tx := range auctionTxs { - suite.Require().NoError(suite.mempool.Insert(suite.ctx, tx)) - } - - // Insert all of the bundled transactions into the mempool if desired - if insertBundledTxs { - for _, tx := range auctionTxs { - bidInfo, err := suite.tobLane.GetAuctionBidInfo(tx) - suite.Require().NoError(err) - - for _, txBz := range bidInfo.Transactions { - tx, err := suite.encodingConfig.TxConfig.TxDecoder()(txBz) - suite.Require().NoError(err) - - suite.Require().NoError(suite.mempool.Insert(suite.ctx, tx)) - } - } - } - - // create a new auction - params := buildertypes.Params{ - MaxBundleSize: maxBundleSize, - ReserveFee: reserveFee, - FrontRunningProtection: frontRunningProtection, - } - suite.builderKeeper.SetParams(suite.ctx, params) - suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxEncoder(), suite.tobLane, suite.mempool) - - suite.proposalHandler = abci.NewProposalHandler( - []blockbuster.Lane{ - suite.tobLane, - suite.baseLane, - }, - suite.tobLane, - suite.logger, - suite.encodingConfig.TxConfig.TxEncoder(), - suite.encodingConfig.TxConfig.TxDecoder(), - abci.NoOpValidateVoteExtensionsFn(), - ) - handler := suite.proposalHandler.PrepareProposalHandler() - req := suite.createPrepareProposalRequest(maxTxBytes) - res, _ := handler(suite.ctx, &req) - - // -------------------- Check Invariants -------------------- // - // The first slot in the proposal must be the auction info (if vote extensions are enabled) - auctionInfo := abci.AuctionInfo{} - err := auctionInfo.Unmarshal(res.Txs[abci.AuctionInfoIndex]) - suite.Require().NoError(err) - - // Total bytes must be less than or equal to maxTxBytes - totalBytes := int64(0) - for _, tx := range res.Txs[abci.NumInjectedTxs:] { - totalBytes += int64(len(tx)) - } - suite.Require().LessOrEqual(totalBytes, maxTxBytes) - - // 2. the number of transactions in the response must be equal to the number of expected transactions - // NOTE: We add 1 to the expected number of transactions because the first transaction in the response - // is the auction transaction - suite.Require().Equal(tc.expectedNumberProposalTxs+1, len(res.Txs)) - - // 3. if there are auction transactions, the first transaction must be the top bid - // and the rest of the bundle must be in the response - if winningBidTx != nil { - auctionTx, err := suite.encodingConfig.TxConfig.TxDecoder()(res.Txs[1]) - suite.Require().NoError(err) - - bidInfo, err := suite.tobLane.GetAuctionBidInfo(auctionTx) - suite.Require().NoError(err) - - for index, tx := range bidInfo.Transactions { - suite.Require().Equal(tx, res.Txs[index+1+abci.NumInjectedTxs]) - } - } else if len(res.Txs) > 1 { - tx, err := suite.encodingConfig.TxConfig.TxDecoder()(res.Txs[1]) - suite.Require().NoError(err) - - bidInfo, err := suite.tobLane.GetAuctionBidInfo(tx) - suite.Require().NoError(err) - suite.Require().Nil(bidInfo) - } - - // 4. All of the transactions must be unique - uniqueTxs := make(map[string]bool) - for _, tx := range res.Txs { - suite.Require().False(uniqueTxs[string(tx)]) - uniqueTxs[string(tx)] = true - } - - // 5. The number of transactions in the mempool must be correct - suite.Require().Equal(tc.expectedMempoolDistribution, suite.mempool.GetTxDistribution()) - }) - } -} - -func (suite *ABCITestSuite) TestPrepareProposalPreVoteExtensions() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Insert the bid transaction into the mempool - suite.Require().NoError(suite.mempool.Insert(suite.ctx, bidTx)) - - account := suite.accounts[5] - nonce = suite.nonces[account.Address.String()] - timeout = uint64(100) - numberMsgs := uint64(3) - normalTx, err := testutils.CreateRandomTx(suite.encodingConfig.TxConfig, account, nonce, numberMsgs, timeout) - suite.Require().NoError(err) - - // Insert the normal transaction into the mempool - suite.Require().NoError(suite.mempool.Insert(suite.ctx, normalTx)) - - handler := suite.proposalHandler.PrepareProposalHandler() - req := suite.createPrepareProposalRequest(1000000000000) - suite.ctx = suite.ctx.WithBlockHeight(0) - res, _ := handler(suite.ctx, &req) - suite.Require().Equal(1, len(res.Txs)) -} - -func (suite *ABCITestSuite) TestProcessProposal() { - var ( - // auction configuration - maxBundleSize uint32 = 10 - reserveFee = sdk.NewCoin("stake", math.NewInt(1000)) - frontRunningProtection = true - maxTxBytes int64 = 1000000000000000000 - - // mempool configuration - proposal [][]byte - ) - - params := buildertypes.Params{ - MaxBundleSize: maxBundleSize, - ReserveFee: reserveFee, - FrontRunningProtection: frontRunningProtection, - } - suite.builderKeeper.SetParams(suite.ctx, params) - - cases := []struct { - name string - createTxs func() - response comettypes.ResponseProcessProposal_ProposalStatus - }{ - { - "no transactions in mempool with no vote extension info", - func() { - proposal = nil - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "no transactions in mempool with empty vote extension info", - func() { - proposal = [][]byte{} - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "single normal tx, no vote extension info", - func() { - account := suite.accounts[0] - nonce := suite.nonces[account.Address.String()] - timeout := uint64(100) - numberMsgs := uint64(3) - normalTxBz, err := testutils.CreateRandomTxBz(suite.encodingConfig.TxConfig, account, nonce, numberMsgs, timeout) - suite.Require().NoError(err) - - proposal = [][]byte{normalTxBz} - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "single auction tx, single auction tx, no vote extension info", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTx, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create a valid default transaction - account := suite.accounts[1] - nonce = suite.nonces[account.Address.String()] + 1 - numberMsgs := uint64(3) - normalTx, err := testutils.CreateRandomTxBz(suite.encodingConfig.TxConfig, account, nonce, numberMsgs, timeout) - suite.Require().NoError(err) - - proposal = [][]byte{bidTx, normalTx} - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "single auction tx with ref txs (no unwrapping)", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTx, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create a valid default transaction - account := suite.accounts[1] - nonce = suite.nonces[account.Address.String()] + 1 - numberMsgs := uint64(3) - normalTx, err := testutils.CreateRandomTxBz(suite.encodingConfig.TxConfig, account, nonce, numberMsgs, timeout) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTx}, 2, maxTxBytes) - - proposal = [][]byte{ - auctionInfo, - bidTx, - normalTx, - } - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "single auction tx with ref txs (with unwrapping)", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz}, 2, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz) - - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz, - }, - bidInfo.Transactions..., - ) - }, - comettypes.ResponseProcessProposal_ACCEPT, - }, - { - "single auction tx with ref txs but misplaced in proposal", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{suite.accounts[1], bidder} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz}, 3, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz) - - proposal = [][]byte{ - auctionInfo, - bidTxBz, - bidInfo.Transactions[1], - bidInfo.Transactions[0], - } - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "single auction tx, but auction tx is not valid", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder, suite.accounts[1]} // front-running - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz}, 3, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz) - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz, - }, - bidInfo.Transactions..., - ) - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "multiple auction txs but wrong auction tx is at top of block", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder, bidder} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create another valid tob transaction - bidder = suite.accounts[1] - bid = sdk.NewCoin("stake", math.NewInt(1000000)) - nonce = suite.nonces[bidder.Address.String()] - timeout = uint64(100) - signers = []testutils.Account{bidder} - bidTxBz2, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz, bidTxBz2}, 3, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz) - - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz, - }, - bidInfo.Transactions..., - ) - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "multiple auction txs and correct auction tx is selected", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder, bidder} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create another valid tob transaction - bidder = suite.accounts[1] - bid = sdk.NewCoin("stake", math.NewInt(1000000)) - nonce = suite.nonces[bidder.Address.String()] - timeout = uint64(100) - signers = []testutils.Account{bidder} - bidTxBz2, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz, bidTxBz2}, 2, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz2) - - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz2, - }, - bidInfo.Transactions..., - ) - }, - comettypes.ResponseProcessProposal_ACCEPT, - }, - { - "multiple auction txs included in block", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder, bidder} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - // Create another valid tob transaction - bidder = suite.accounts[1] - bid = sdk.NewCoin("stake", math.NewInt(1000000)) - nonce = suite.nonces[bidder.Address.String()] - timeout = uint64(100) - signers = []testutils.Account{bidder} - bidTxBz2, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz, bidTxBz2}, 2, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz2) - bidInfo2 := suite.getAuctionBidInfoFromTxBz(bidTxBz) - - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz2, - }, - bidInfo.Transactions..., - ) - - proposal = append(proposal, bidTxBz) - proposal = append(proposal, bidInfo2.Transactions...) - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "single auction tx, but rest of the mempool is invalid", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz}, 2, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz) - - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz, - }, - bidInfo.Transactions..., - ) - - proposal = append(proposal, []byte("invalid tx")) - }, - comettypes.ResponseProcessProposal_REJECT, - }, - { - "multiple auction txs with ref txs + normal transactions", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(1000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{bidder} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz}, 2, maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz) - - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz, - }, - bidInfo.Transactions..., - ) - - normalTxBz, err := testutils.CreateRandomTxBz(suite.encodingConfig.TxConfig, suite.accounts[1], nonce, 3, timeout) - suite.Require().NoError(err) - proposal = append(proposal, normalTxBz) - - normalTxBz, err = testutils.CreateRandomTxBz(suite.encodingConfig.TxConfig, suite.accounts[2], nonce, 3, timeout) - suite.Require().NoError(err) - proposal = append(proposal, normalTxBz) - }, - comettypes.ResponseProcessProposal_ACCEPT, - }, - { - "front-running protection disabled", - func() { - // Create a valid tob transaction - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(10000000)) - nonce := suite.nonces[bidder.Address.String()] - timeout := uint64(100) - signers := []testutils.Account{suite.accounts[2], suite.accounts[1], bidder, suite.accounts[3], suite.accounts[4]} - bidTxBz, err := testutils.CreateAuctionTxWithSignerBz(suite.encodingConfig.TxConfig, bidder, bid, nonce, timeout, signers) - suite.Require().NoError(err) - - auctionInfo := suite.createAuctionInfoFromTxBzs([][]byte{bidTxBz}, uint64(len(signers)+1), maxTxBytes) - - bidInfo := suite.getAuctionBidInfoFromTxBz(bidTxBz) - - proposal = append( - [][]byte{ - auctionInfo, - bidTxBz, - }, - bidInfo.Transactions..., - ) - - normalTxBz, err := testutils.CreateRandomTxBz(suite.encodingConfig.TxConfig, suite.accounts[5], nonce, 3, timeout) - suite.Require().NoError(err) - proposal = append(proposal, normalTxBz) - - normalTxBz, err = testutils.CreateRandomTxBz(suite.encodingConfig.TxConfig, suite.accounts[6], nonce, 3, timeout) - suite.Require().NoError(err) - proposal = append(proposal, normalTxBz) - - // disable frontrunning protection - params := buildertypes.Params{ - MaxBundleSize: maxBundleSize, - ReserveFee: reserveFee, - FrontRunningProtection: false, - } - suite.builderKeeper.SetParams(suite.ctx, params) - }, - comettypes.ResponseProcessProposal_ACCEPT, - }, - } - - for _, tc := range cases { - suite.Run(tc.name, func() { - // suite.SetupTest() // reset - suite.builderDecorator = ante.NewBuilderDecorator(suite.builderKeeper, suite.encodingConfig.TxConfig.TxEncoder(), suite.tobLane, suite.mempool) - - // reset the proposal handler with the new mempool - suite.proposalHandler = abci.NewProposalHandler( - []blockbuster.Lane{ - suite.tobLane, - suite.baseLane, - }, - suite.tobLane, log.NewTestLogger(suite.T()), - suite.encodingConfig.TxConfig.TxEncoder(), - suite.encodingConfig.TxConfig.TxDecoder(), - abci.NoOpValidateVoteExtensionsFn(), - ) - - tc.createTxs() - - handler := suite.proposalHandler.ProcessProposalHandler() - res, _ := handler(suite.ctx, &comettypes.RequestProcessProposal{ - Txs: proposal, - }) - - // Check if the response is valid - suite.Require().Equal(tc.response, res.Status) - }) - } -} diff --git a/abci/types.go b/abci/types.go deleted file mode 100644 index f8137b1..0000000 --- a/abci/types.go +++ /dev/null @@ -1,21 +0,0 @@ -package abci - -import ( - cometabci "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// ValidateVoteExtensionsFn defines the function for validating vote extensions. This -// function is not explicitly used to validate the oracle data but rather that -// the signed vote extensions included in the proposal are valid and provide -// a supermajority of vote extensions for the current block. This method is -// expected to be used in ProcessProposal, the expected ctx is the ProcessProposalState's ctx. -type ValidateVoteExtensionsFn func(ctx sdk.Context, currentHeight int64, extendedCommitInfo cometabci.ExtendedCommitInfo) error - -// NoOpValidateVoteExtensionsFn returns a ValidateVoteExtensionsFn that does nothing. This should NOT -// be used in production. -func NoOpValidateVoteExtensionsFn() ValidateVoteExtensionsFn { - return func(_ sdk.Context, _ int64, _ cometabci.ExtendedCommitInfo) error { - return nil - } -} diff --git a/abci/vote_extensions.go b/abci/vote_extensions.go deleted file mode 100644 index 273830e..0000000 --- a/abci/vote_extensions.go +++ /dev/null @@ -1,225 +0,0 @@ -package abci - -import ( - "crypto/sha256" - "encoding/hex" - - "cosmossdk.io/log" - cometabci "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkmempool "github.com/cosmos/cosmos-sdk/types/mempool" - "github.com/skip-mev/pob/blockbuster/lanes/auction" - "github.com/skip-mev/pob/blockbuster/utils" -) - -type ( - // TOBLaneVE contains the methods required by the VoteExtensionHandler - // to interact with the local mempool i.e. the top of block lane. - TOBLaneVE interface { - sdkmempool.Mempool - - // Factory defines the API/functionality which is responsible for determining - // if a transaction is a bid transaction and how to extract relevant - // information from the transaction (bid, timeout, bidder, etc.). - auction.Factory - - // VerifyTx is utilized to verify a bid transaction according to the preferences - // of the top of block lane. - VerifyTx(ctx sdk.Context, tx sdk.Tx) error - } - - // VoteExtensionHandler contains the functionality and handlers required to - // process, validate and build vote extensions. - VoteExtensionHandler struct { - logger log.Logger - - // tobLane is the top of block lane which is used to extract the top bidding - // auction transaction from the local mempool. - tobLane TOBLaneVE - - // txDecoder is used to decode the top bidding auction transaction - txDecoder sdk.TxDecoder - - // txEncoder is used to encode the top bidding auction transaction - txEncoder sdk.TxEncoder - - // cache is used to store the results of the vote extension verification - // for a given block height. - cache map[string]error - - // currentHeight is the block height the cache is valid for. - currentHeight int64 - } -) - -// NewVoteExtensionHandler returns an VoteExtensionHandler that contains the functionality and handlers -// required to inject, process, and validate vote extensions. -func NewVoteExtensionHandler(logger log.Logger, lane TOBLaneVE, txDecoder sdk.TxDecoder, txEncoder sdk.TxEncoder) *VoteExtensionHandler { - return &VoteExtensionHandler{ - logger: logger, - tobLane: lane, - txDecoder: txDecoder, - txEncoder: txEncoder, - cache: make(map[string]error), - currentHeight: 0, - } -} - -// ExtendVoteHandler returns the ExtendVoteHandler ABCI handler that extracts -// the top bidding valid auction transaction from a validator's local mempool and -// returns it in its vote extension. -func (h *VoteExtensionHandler) ExtendVoteHandler() sdk.ExtendVoteHandler { - return func(ctx sdk.Context, req *cometabci.RequestExtendVote) (*cometabci.ResponseExtendVote, error) { - // Iterate through auction bids until we find a valid one - auctionIterator := h.tobLane.Select(ctx, nil) - txsToRemove := make(map[sdk.Tx]struct{}, 0) - - defer func() { - if err := utils.RemoveTxsFromLane(txsToRemove, h.tobLane); err != nil { - h.logger.Info( - "failed to remove transactions from lane", - "err", err, - ) - } - }() - - for ; auctionIterator != nil; auctionIterator = auctionIterator.Next() { - bidTx := auctionIterator.Tx() - - // Verify the bid tx can be encoded and included in vote extension - bidTxBz, hash, err := utils.GetTxHashStr(h.txEncoder, bidTx) - if err != nil { - h.logger.Info( - "failed to get hash of auction bid tx", - "err", err, - ) - txsToRemove[bidTx] = struct{}{} - - continue - } - - // Validate the auction transaction against a cache state - cacheCtx, _ := ctx.CacheContext() - if err := h.tobLane.VerifyTx(cacheCtx, bidTx); err != nil { - h.logger.Info( - "failed to verify auction bid tx", - "tx_hash", hash, - "err", err, - ) - txsToRemove[bidTx] = struct{}{} - - continue - } - - h.logger.Info("extending vote with auction transaction", "tx_hash", hash) - return &cometabci.ResponseExtendVote{VoteExtension: bidTxBz}, nil - } - - h.logger.Info( - "extending vote with no auction transaction", - "height", ctx.BlockHeight(), - ) - - return &cometabci.ResponseExtendVote{VoteExtension: []byte{}}, nil - } -} - -// VerifyVoteExtensionHandler returns the VerifyVoteExtensionHandler ABCI handler -// that verifies the vote extension included in RequestVerifyVoteExtension. -// In particular, it verifies that the vote extension is a valid auction transaction. -func (h *VoteExtensionHandler) VerifyVoteExtensionHandler() sdk.VerifyVoteExtensionHandler { - return func(ctx sdk.Context, req *cometabci.RequestVerifyVoteExtension) (*cometabci.ResponseVerifyVoteExtension, error) { - txBz := req.VoteExtension - if len(txBz) == 0 { - h.logger.Info( - "verified vote extension with no auction transaction", - "height", ctx.BlockHeight(), - ) - - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_ACCEPT}, nil - } - - // Reset the cache if necessary - h.resetCache(ctx.BlockHeight()) - - hashBz := sha256.Sum256(txBz) - hash := hex.EncodeToString(hashBz[:]) - - // Short circuit if we have already verified this vote extension - if err, ok := h.cache[hash]; ok { - if err != nil { - h.logger.Info( - "rejected vote extension", - "tx_hash", hash, - "height", ctx.BlockHeight(), - ) - - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_REJECT}, err - } - - h.logger.Info( - "verified vote extension", - "tx_hash", hash, - "height", ctx.BlockHeight(), - ) - - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_ACCEPT}, nil - } - - // Decode the vote extension which should be a valid auction transaction - bidTx, err := h.txDecoder(txBz) - if err != nil { - h.logger.Info( - "rejected vote extension", - "tx_hash", hash, - "height", ctx.BlockHeight(), - "err", err, - ) - - h.cache[hash] = err - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_REJECT}, err - } - - // Verify the auction transaction and cache the result - if err = h.tobLane.VerifyTx(ctx, bidTx); err != nil { - h.logger.Info( - "rejected vote extension", - "tx_hash", hash, - "height", ctx.BlockHeight(), - "err", err, - ) - - if err := h.tobLane.Remove(bidTx); err != nil { - h.logger.Info( - "failed to remove auction transaction from lane", - "tx_hash", hash, - "height", ctx.BlockHeight(), - "err", err, - ) - } - - h.cache[hash] = err - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_REJECT}, err - } - - h.cache[hash] = nil - - h.logger.Info( - "verified vote extension", - "tx_hash", hash, - "height", ctx.BlockHeight(), - ) - - return &cometabci.ResponseVerifyVoteExtension{Status: cometabci.ResponseVerifyVoteExtension_ACCEPT}, nil - } -} - -// checkStaleCache checks if the current height differs than the previous height at which -// the vote extensions were verified in. If so, it resets the cache to allow transactions to be -// reverified. -func (h *VoteExtensionHandler) resetCache(blockHeight int64) { - if h.currentHeight != blockHeight { - h.cache = make(map[string]error) - h.currentHeight = blockHeight - } -} diff --git a/abci/vote_extensions_test.go b/abci/vote_extensions_test.go deleted file mode 100644 index 0eebe0d..0000000 --- a/abci/vote_extensions_test.go +++ /dev/null @@ -1,346 +0,0 @@ -package abci_test - -import ( - "cosmossdk.io/log" - "cosmossdk.io/math" - cometabci "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/abci" - testutils "github.com/skip-mev/pob/testutils" - "github.com/skip-mev/pob/x/builder/types" -) - -func (suite *ABCITestSuite) TestExtendVoteExtensionHandler() { - params := types.Params{ - MaxBundleSize: 5, - ReserveFee: sdk.NewCoin("stake", math.NewInt(10)), - FrontRunningProtection: true, - } - - testCases := []struct { - name string - getExpectedVE func() []byte - }{ - { - "empty mempool", - func() []byte { - return []byte{} - }, - }, - { - "filled mempool with no auction transactions", - func() []byte { - suite.fillBaseLane(10) - return []byte{} - }, - }, - { - "mempool with invalid auction transaction (too many bundled transactions)", - func() []byte { - suite.fillTOBLane(3, int(params.MaxBundleSize)+1) - return []byte{} - }, - }, - { - "mempool with invalid auction transaction (invalid bid)", - func() []byte { - bidder := suite.accounts[0] - bid := params.ReserveFee.Sub(sdk.NewCoin("stake", math.NewInt(1))) - signers := []testutils.Account{bidder} - timeout := 1 - - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, 0, uint64(timeout), signers) - suite.Require().NoError(err) - - suite.Require().NoError(suite.mempool.Insert(suite.ctx, bidTx)) - - // this should return nothing since the top bid is not valid - return []byte{} - }, - }, - { - "mempool contains only invalid auction bids (bid is too low)", - func() []byte { - params.ReserveFee = sdk.NewCoin("stake", math.NewInt(10000000000000000)) - err := suite.builderKeeper.SetParams(suite.ctx, params) - suite.Require().NoError(err) - - // this way all of the bids will be too small - suite.fillTOBLane(4, 1) - - return []byte{} - }, - }, - { - "mempool contains bid that has an invalid timeout", - func() []byte { - bidder := suite.accounts[0] - bid := params.ReserveFee - signers := []testutils.Account{bidder} - timeout := 0 - - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, 0, uint64(timeout), signers) - suite.Require().NoError(err) - suite.Require().NoError(suite.tobLane.Insert(suite.ctx, bidTx)) - - // this should return nothing since the top bid is not valid - return []byte{} - }, - }, - { - "top bid is invalid but next best is valid", - func() []byte { - params.ReserveFee = sdk.NewCoin("stake", math.NewInt(10)) - - bidder := suite.accounts[0] - bid := params.ReserveFee.Add(params.ReserveFee) - signers := []testutils.Account{bidder} - timeout := 0 - - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, 0, uint64(timeout), signers) - suite.Require().NoError(err) - suite.Require().NoError(suite.mempool.Insert(suite.ctx, bidTx)) - - bidder = suite.accounts[1] - bid = params.ReserveFee - signers = []testutils.Account{bidder} - timeout = 100 - bidTx2, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, 0, uint64(timeout), signers) - suite.Require().NoError(err) - suite.Require().NoError(suite.mempool.Insert(suite.ctx, bidTx2)) - - bz, err := suite.encodingConfig.TxConfig.TxEncoder()(bidTx2) - suite.Require().NoError(err) - - return bz - }, - }, - } - - for _, tc := range testCases { - suite.Run(tc.name, func() { - suite.SetupTest() // reset - expectedVE := tc.getExpectedVE() - - err := suite.builderKeeper.SetParams(suite.ctx, params) - suite.Require().NoError(err) - - // Reset the handler with the new mempool - suite.voteExtensionHandler = abci.NewVoteExtensionHandler( - log.NewTestLogger(suite.T()), - suite.tobLane, - suite.encodingConfig.TxConfig.TxDecoder(), - suite.encodingConfig.TxConfig.TxEncoder(), - ) - - handler := suite.voteExtensionHandler.ExtendVoteHandler() - resp, err := handler(suite.ctx, nil) - - suite.Require().NoError(err) - suite.Require().Equal(expectedVE, resp.VoteExtension) - }) - } -} - -func (suite *ABCITestSuite) TestVerifyVoteExtensionHandler() { - params := types.Params{ - MaxBundleSize: 5, - ReserveFee: sdk.NewCoin("stake", math.NewInt(100)), - FrontRunningProtection: true, - } - - err := suite.builderKeeper.SetParams(suite.ctx, params) - suite.Require().NoError(err) - - testCases := []struct { - name string - req func() *cometabci.RequestVerifyVoteExtension - expectedErr bool - }{ - { - "invalid vote extension bytes", - func() *cometabci.RequestVerifyVoteExtension { - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: []byte("invalid vote extension"), - } - }, - true, - }, - { - "empty vote extension bytes", - func() *cometabci.RequestVerifyVoteExtension { - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: []byte{}, - } - }, - false, - }, - { - "nil vote extension bytes", - func() *cometabci.RequestVerifyVoteExtension { - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: nil, - } - }, - false, - }, - { - "invalid extension with bid tx with bad timeout", - func() *cometabci.RequestVerifyVoteExtension { - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(10)) - signers := []testutils.Account{bidder} - timeout := 0 - - bz := suite.createAuctionTxBz(bidder, bid, signers, timeout) - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: bz, - } - }, - true, - }, - { - "invalid vote extension with bid tx with bad bid", - func() *cometabci.RequestVerifyVoteExtension { - bidder := suite.accounts[0] - bid := sdk.NewCoin("stake", math.NewInt(0)) - signers := []testutils.Account{bidder} - timeout := 10 - - bz := suite.createAuctionTxBz(bidder, bid, signers, timeout) - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: bz, - } - }, - true, - }, - { - "valid vote extension", - func() *cometabci.RequestVerifyVoteExtension { - bidder := suite.accounts[0] - bid := params.ReserveFee - signers := []testutils.Account{bidder} - timeout := 10 - - bz := suite.createAuctionTxBz(bidder, bid, signers, timeout) - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: bz, - } - }, - false, - }, - { - "invalid vote extension with front running bid tx", - func() *cometabci.RequestVerifyVoteExtension { - bidder := suite.accounts[0] - bid := params.ReserveFee - timeout := 10 - - bundlee := testutils.RandomAccounts(suite.random, 1)[0] - signers := []testutils.Account{bidder, bundlee} - - bz := suite.createAuctionTxBz(bidder, bid, signers, timeout) - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: bz, - } - }, - true, - }, - { - "invalid vote extension with too many bundle txs", - func() *cometabci.RequestVerifyVoteExtension { - // disable front running protection - params.FrontRunningProtection = false - err := suite.builderKeeper.SetParams(suite.ctx, params) - suite.Require().NoError(err) - - bidder := suite.accounts[0] - bid := params.ReserveFee - signers := testutils.RandomAccounts(suite.random, int(params.MaxBundleSize)+1) - timeout := 10 - - bz := suite.createAuctionTxBz(bidder, bid, signers, timeout) - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: bz, - } - }, - true, - }, - { - "invalid vote extension with a failing bundle tx", - func() *cometabci.RequestVerifyVoteExtension { - bidder := suite.accounts[0] - bid := params.ReserveFee - - msgAuctionBid, err := testutils.CreateMsgAuctionBid(suite.encodingConfig.TxConfig, bidder, bid, 0, 0) - suite.Require().NoError(err) - - // Create a failing tx - msgAuctionBid.Transactions = [][]byte{{0x01}} - - bidTx, err := testutils.CreateTx(suite.encodingConfig.TxConfig, suite.accounts[0], 0, 1, []sdk.Msg{msgAuctionBid}) - suite.Require().NoError(err) - - bz, err := suite.encodingConfig.TxConfig.TxEncoder()(bidTx) - suite.Require().NoError(err) - - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: bz, - } - }, - true, - }, - { - "valid vote extension + no comparison to local mempool", - func() *cometabci.RequestVerifyVoteExtension { - bidder := suite.accounts[0] - bid := params.ReserveFee - signers := []testutils.Account{bidder} - timeout := 10 - - bz := suite.createAuctionTxBz(bidder, bid, signers, timeout) - - // Add a bid to the mempool that is greater than the one in the vote extension - bid = bid.Add(params.ReserveFee) - bidTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, 10, 1, signers) - suite.Require().NoError(err) - - err = suite.mempool.Insert(suite.ctx, bidTx) - suite.Require().NoError(err) - - tx := suite.tobLane.GetTopAuctionTx(suite.ctx) - suite.Require().NotNil(tx) - - return &cometabci.RequestVerifyVoteExtension{ - VoteExtension: bz, - } - }, - false, - }, - } - - for _, tc := range testCases { - suite.Run(tc.name, func() { - req := tc.req() - - handler := suite.voteExtensionHandler.VerifyVoteExtensionHandler() - _, err := handler(suite.ctx, req) - - if tc.expectedErr { - suite.Require().Error(err) - } else { - suite.Require().NoError(err) - } - }) - } -} - -func (suite *ABCITestSuite) createAuctionTxBz(bidder testutils.Account, bid sdk.Coin, signers []testutils.Account, timeout int) []byte { - auctionTx, err := testutils.CreateAuctionTxWithSigners(suite.encodingConfig.TxConfig, bidder, bid, 0, uint64(timeout), signers) - suite.Require().NoError(err) - - txBz, err := suite.encodingConfig.TxConfig.TxEncoder()(auctionTx) - suite.Require().NoError(err) - - return txBz -} diff --git a/contrib/images/pob.e2e.Dockerfile b/contrib/images/pob.integration.Dockerfile similarity index 75% rename from contrib/images/pob.e2e.Dockerfile rename to contrib/images/pob.integration.Dockerfile index 3fd485f..4ac8bf5 100644 --- a/contrib/images/pob.e2e.Dockerfile +++ b/contrib/images/pob.integration.Dockerfile @@ -1,17 +1,14 @@ FROM golang:1.20-bullseye AS builder -WORKDIR /src/pob -COPY go.mod go.sum ./ -RUN go mod download - WORKDIR /src/pob COPY . . + +RUN go mod tidy RUN make build-test-app ## Prepare the final clear binary FROM ubuntu:rolling EXPOSE 26656 26657 1317 9090 7171 -ENTRYPOINT ["testappd", "start"] COPY --from=builder /src/pob/build/* /usr/local/bin/ RUN apt-get update && apt-get install ca-certificates -y diff --git a/go.work b/go.work new file mode 100644 index 0000000..90743a3 --- /dev/null +++ b/go.work @@ -0,0 +1,3 @@ +go 1.20 + +use . diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 0000000..8109fb3 --- /dev/null +++ b/go.work.sum @@ -0,0 +1,14 @@ +github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= +github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= +github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= +github.com/cockroachdb/errors v1.9.1 h1:yFVvsI0VxmRShfawbt/laCIDy/mtTqqnvoNgiy5bEV8= +github.com/cockroachdb/redact v1.1.3 h1:AKZds10rFSIj7qADf0g46UixK8NNLwWTNdCIGS5wfSQ= +github.com/cosmos/cosmos-db v0.0.0-20221226095112-f3c38ecb5e32 h1:zlCp9n3uwQieELltZWHRmwPmPaZ8+XoL2Sj+A2YJlr8= +github.com/getsentry/sentry-go v0.17.0 h1:UustVWnOoDFHBS7IJUB2QK/nB5pap748ZEp0swnQJak= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc= +go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= +go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +golang.org/x/time v0.3.0 h1:rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4= +gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= diff --git a/proto/pob/abci/v1/auction.proto b/proto/pob/abci/v1/auction.proto deleted file mode 100644 index 0c9af8d..0000000 --- a/proto/pob/abci/v1/auction.proto +++ /dev/null @@ -1,17 +0,0 @@ -syntax = "proto3"; -package pob.abci.v1; - -option go_package = "github.com/skip-mev/pob/abci"; - -// AuctionInfo contains information about the top of block auction -// that was run in PrepareProposal using vote extensions. -message AuctionInfo { - // extended_commit_info contains the vote extensions that were used to run the auction. - bytes extended_commit_info = 1; - - // max_tx_bytes is the maximum number of bytes that were allowed for the proposal. - int64 max_tx_bytes = 2; - - // num_txs is the number of transactions that were included in the proposal. - uint64 num_txs = 3; -} \ No newline at end of file diff --git a/tests/app/app.go b/tests/app/app.go index 3742d8a..ab52db1 100644 --- a/tests/app/app.go +++ b/tests/app/app.go @@ -18,7 +18,6 @@ import ( feegrantkeeper "cosmossdk.io/x/feegrant/keeper" feegrantmodule "cosmossdk.io/x/feegrant/module" cometabci "github.com/cometbft/cometbft/abci/types" - tmtypes "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -62,7 +61,6 @@ import ( "github.com/cosmos/cosmos-sdk/x/staking" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - veabci "github.com/skip-mev/pob/abci" "github.com/skip-mev/pob/blockbuster" "github.com/skip-mev/pob/blockbuster/abci" "github.com/skip-mev/pob/blockbuster/lanes/auction" @@ -340,27 +338,14 @@ func New( app.App.SetAnteHandler(anteHandler) // Set the proposal handlers on base app - proposalHandler := veabci.NewProposalHandler( - lanes, - tobLane, + proposalHandler := abci.NewProposalHandler( app.Logger(), - app.txConfig.TxEncoder(), - app.txConfig.TxDecoder(), - veabci.NoOpValidateVoteExtensionsFn(), + app.TxConfig().TxDecoder(), + mempool, ) app.App.SetPrepareProposal(proposalHandler.PrepareProposalHandler()) app.App.SetProcessProposal(proposalHandler.ProcessProposalHandler()) - // Set the vote extension handler on the app. - voteExtensionHandler := veabci.NewVoteExtensionHandler( - app.Logger(), - tobLane, - app.txConfig.TxDecoder(), - app.txConfig.TxEncoder(), - ) - app.App.SetExtendVoteHandler(voteExtensionHandler.ExtendVoteHandler()) - app.App.SetVerifyVoteExtensionHandler(voteExtensionHandler.VerifyVoteExtensionHandler()) - // Set the custom CheckTx handler on BaseApp. checkTxHandler := abci.NewCheckTxHandler( app.App, @@ -415,31 +400,6 @@ func (app *TestApp) SetCheckTx(handler abci.CheckTx) { app.checkTxHandler = handler } -// TODO: remove this once we have a proper config file -func (app *TestApp) InitChain(req *cometabci.RequestInitChain) (*cometabci.ResponseInitChain, error) { - req.ConsensusParams.Abci.VoteExtensionsEnableHeight = 2 - resp, err := app.App.InitChain(req) - if resp == nil { - resp = &cometabci.ResponseInitChain{} - } - resp.ConsensusParams = &tmtypes.ConsensusParams{ - Abci: &tmtypes.ABCIParams{ - VoteExtensionsEnableHeight: 2, - }, - } - - return resp, err -} - -// TODO: remove this once we have a proper config file -func (app *TestApp) FinalizeBlock(req *cometabci.RequestFinalizeBlock) (*cometabci.ResponseFinalizeBlock, error) { - resp, err := app.App.FinalizeBlock(req) - if resp != nil { - resp.ConsensusParamUpdates = nil - } - return resp, err -} - // Name returns the name of the App func (app *TestApp) Name() string { return app.BaseApp.Name() } diff --git a/tests/e2e/chain.go b/tests/e2e/chain.go deleted file mode 100644 index 0ac39a5..0000000 --- a/tests/e2e/chain.go +++ /dev/null @@ -1,94 +0,0 @@ -package e2e - -import ( - "fmt" - "os" - - "cosmossdk.io/log" - dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/codec" - simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" - "github.com/skip-mev/pob/tests/app" - "github.com/skip-mev/pob/tests/app/params" -) - -const ( - keyringPassphrase = "testpassphrase" - keyringAppName = "testnet" -) - -var ( - encodingConfig params.EncodingConfig - cdc codec.Codec -) - -func init() { - testApp := app.New(log.NewNopLogger(), dbm.NewMemDB(), nil, true, simtestutil.NewAppOptionsWithFlagHome(app.DefaultNodeHome)) - encodingConfig = params.EncodingConfig{ - InterfaceRegistry: testApp.InterfaceRegistry(), - Codec: testApp.AppCodec(), - TxConfig: testApp.TxConfig(), - Amino: testApp.LegacyAmino(), - } - cdc = encodingConfig.Codec -} - -type chain struct { - dataDir string - id string - validators []*validator -} - -func newChain() (*chain, error) { - pwd, err := os.Getwd() - if err != nil { - return nil, err - } - tmpDir, err := os.MkdirTemp(pwd, ".pob-e2e-testnet-") - if err != nil { - return nil, err - } - - return &chain{ - id: app.ChainID, - dataDir: tmpDir, - }, nil -} - -func (c *chain) configDir() string { - return fmt.Sprintf("%s/%s", c.dataDir, c.id) -} - -func (c *chain) createAndInitValidators(count int) error { - for i := 0; i < count; i++ { - node := c.createValidator(i) - - // generate genesis files - if err := node.init(); err != nil { - return err - } - - c.validators = append(c.validators, node) - - // create keys - if err := node.createKey("val"); err != nil { - return err - } - if err := node.createNodeKey(); err != nil { - return err - } - if err := node.createConsensusKey(); err != nil { - return err - } - } - - return nil -} - -func (c *chain) createValidator(index int) *validator { - return &validator{ - chain: c, - index: index, - moniker: "testapp", - } -} diff --git a/tests/e2e/e2e_setup_test.go b/tests/e2e/e2e_setup_test.go deleted file mode 100644 index 79159f6..0000000 --- a/tests/e2e/e2e_setup_test.go +++ /dev/null @@ -1,323 +0,0 @@ -package e2e - -import ( - "context" - "encoding/json" - "fmt" - "os" - "path/filepath" - "strconv" - "strings" - "testing" - "time" - - "cosmossdk.io/math" - cometcfg "github.com/cometbft/cometbft/config" - cometjson "github.com/cometbft/cometbft/libs/json" - rpchttp "github.com/cometbft/cometbft/rpc/client/http" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/server" - srvconfig "github.com/cosmos/cosmos-sdk/server/config" - sdk "github.com/cosmos/cosmos-sdk/types" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - "github.com/ory/dockertest/v3" - "github.com/ory/dockertest/v3/docker" - "github.com/skip-mev/pob/tests/app" - "github.com/skip-mev/pob/x/builder/types" - "github.com/spf13/viper" - "github.com/stretchr/testify/suite" -) - -var ( - numValidators = 4 - minGasPrice = sdk.NewDecCoinFromDec(app.BondDenom, math.LegacyMustNewDecFromStr("0.02")).String() - initBalanceStr = sdk.NewInt64Coin(app.BondDenom, 1000000000000000000).String() - stakeAmount = math.NewInt(100000000000) - stakeAmountCoin = sdk.NewCoin(app.BondDenom, stakeAmount) -) - -type ( - TestAccount struct { - PrivateKey *secp256k1.PrivKey - Address sdk.AccAddress - } - - IntegrationTestSuite struct { - suite.Suite - - tmpDirs []string - chain *chain - dkrPool *dockertest.Pool - dkrNet *dockertest.Network - valResources []*dockertest.Resource - } -) - -func TestIntegrationTestSuite(t *testing.T) { - suite.Run(t, new(IntegrationTestSuite)) -} - -func (s *IntegrationTestSuite) SetupSuite() { - s.T().Log("setting up e2e integration test suite...") - - var err error - s.chain, err = newChain() - s.Require().NoError(err) - - s.T().Logf("starting e2e infrastructure; chain-id: %s; datadir: %s", s.chain.id, s.chain.dataDir) - - s.dkrPool, err = dockertest.NewPool("") - s.Require().NoError(err) - - s.dkrNet, err = s.dkrPool.CreateNetwork(fmt.Sprintf("%s-testnet", s.chain.id)) - s.Require().NoError(err) - - // The bootstrapping phase is as follows: - // - // 1. Initialize TestApp validator nodes. - // 2. Create and initialize TestApp validator genesis files, i.e. setting - // delegate keys for validators. - // 3. Start TestApp network. - s.initNodes() - s.initGenesis() - s.initValidatorConfigs() - s.runValidators() -} - -func (s *IntegrationTestSuite) TearDownSuite() { - if str := os.Getenv("POB_E2E_SKIP_CLEANUP"); len(str) > 0 { - skipCleanup, err := strconv.ParseBool(str) - s.Require().NoError(err) - - if skipCleanup { - return - } - } - - s.T().Log("tearing down e2e integration test suite...") - - for _, vc := range s.valResources { - s.Require().NoError(s.dkrPool.Purge(vc)) - } - - s.Require().NoError(s.dkrPool.RemoveNetwork(s.dkrNet)) - - os.RemoveAll(s.chain.dataDir) - for _, td := range s.tmpDirs { - os.RemoveAll(td) - } -} - -func (s *IntegrationTestSuite) initNodes() { - s.Require().NoError(s.chain.createAndInitValidators(numValidators)) - - // initialize a genesis file for the first validator - val0ConfigDir := s.chain.validators[0].configDir() - - // Define the builder module parameters - params := types.Params{ - MaxBundleSize: 5, - EscrowAccountAddress: sdk.MustAccAddressFromBech32("cosmos14j5j2lsx7629590jvpk3vj0xe9w8203jf4yknk").Bytes(), - ReserveFee: sdk.NewCoin(app.BondDenom, math.NewInt(1000000)), - MinBidIncrement: sdk.NewCoin(app.BondDenom, math.NewInt(1000000)), - ProposerFee: math.LegacyMustNewDecFromStr("0.1"), - FrontRunningProtection: true, - } - - for _, val := range s.chain.validators { - valAddr, err := val.keyInfo.GetAddress() - s.Require().NoError(err) - s.Require().NoError(initGenesisFile(val0ConfigDir, "", initBalanceStr, valAddr, params)) - } - - // copy the genesis file to the remaining validators - for _, val := range s.chain.validators[1:] { - _, err := copyFile( - filepath.Join(val0ConfigDir, "config", "genesis.json"), - filepath.Join(val.configDir(), "config", "genesis.json"), - ) - s.Require().NoError(err) - } -} - -func (s *IntegrationTestSuite) initGenesis() { - serverCtx := server.NewDefaultContext() - config := serverCtx.Config - - config.SetRoot(s.chain.validators[0].configDir()) - config.Moniker = s.chain.validators[0].moniker - - genFilePath := config.GenesisFile() - appGenState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFilePath) - s.T().Log("starting e2e infrastructure; validator_0 config:", genFilePath) - s.Require().NoError(err) - - // x/gov - var govGenState govtypesv1.GenesisState - s.Require().NoError(cdc.UnmarshalJSON(appGenState[govtypes.ModuleName], &govGenState)) - - votingPeriod := 5 * time.Second - govGenState.Params.VotingPeriod = &votingPeriod - govGenState.Params.MinDeposit = sdk.NewCoins(sdk.NewCoin(app.BondDenom, math.NewInt(100))) - - bz, err := cdc.MarshalJSON(&govGenState) - s.Require().NoError(err) - appGenState[govtypes.ModuleName] = bz - - var genUtilGenState genutiltypes.GenesisState - s.Require().NoError(cdc.UnmarshalJSON(appGenState[genutiltypes.ModuleName], &genUtilGenState)) - - // x/genutil genesis txs - genTxs := make([]json.RawMessage, len(s.chain.validators)) - for i, val := range s.chain.validators { - createValMsg, err := val.buildCreateValidatorMsg(stakeAmountCoin) - s.Require().NoError(err) - - signedTx, err := val.signMsg(createValMsg) - s.Require().NoError(err) - - txRaw, err := cdc.MarshalJSON(signedTx) - s.Require().NoError(err) - - genTxs[i] = txRaw - } - - genUtilGenState.GenTxs = genTxs - - bz, err = cdc.MarshalJSON(&genUtilGenState) - s.Require().NoError(err) - appGenState[genutiltypes.ModuleName] = bz - - bz, err = json.MarshalIndent(appGenState, "", " ") - s.Require().NoError(err) - - genDoc.AppState = bz - - bz, err = cometjson.MarshalIndent(genDoc, "", " ") - s.Require().NoError(err) - - // write the updated genesis file to each validator - for _, val := range s.chain.validators { - writeFile(filepath.Join(val.configDir(), "config", "genesis.json"), bz) - } -} - -func (s *IntegrationTestSuite) initValidatorConfigs() { - for i, val := range s.chain.validators { - tmCfgPath := filepath.Join(val.configDir(), "config", "config.toml") - - vpr := viper.New() - vpr.SetConfigFile(tmCfgPath) - s.Require().NoError(vpr.ReadInConfig()) - - valConfig := cometcfg.DefaultConfig() - s.Require().NoError(vpr.Unmarshal(valConfig)) - - valConfig.P2P.ListenAddress = "tcp://0.0.0.0:26656" - valConfig.P2P.AddrBookStrict = false - valConfig.P2P.ExternalAddress = fmt.Sprintf("%s:%d", val.instanceName(), 26656) - valConfig.RPC.ListenAddress = "tcp://0.0.0.0:26657" - valConfig.StateSync.Enable = false - valConfig.LogLevel = "info" - valConfig.BaseConfig.Genesis = filepath.Join("config", "genesis.json") - valConfig.RootDir = filepath.Join("root", ".simapp") - valConfig.Consensus.TimeoutCommit = 2 * time.Second - - var peers []string - - for j := 0; j < len(s.chain.validators); j++ { - if i == j { - continue - } - - peer := s.chain.validators[j] - peerID := fmt.Sprintf("%s@%s%d:26656", peer.nodeKey.ID(), peer.moniker, j) - peers = append(peers, peerID) - } - - valConfig.P2P.PersistentPeers = strings.Join(peers, ",") - cometcfg.WriteConfigFile(tmCfgPath, valConfig) - - // set application configuration - appCfgPath := filepath.Join(val.configDir(), "config", "app.toml") - appConfig := srvconfig.DefaultConfig() - appConfig.API.Enable = true - appConfig.MinGasPrices = minGasPrice - appConfig.API.Address = "tcp://0.0.0.0:1317" - appConfig.GRPC.Address = "0.0.0.0:9090" - - srvconfig.WriteConfigFile(appCfgPath, appConfig) - } -} - -func (s *IntegrationTestSuite) runValidators() { - s.T().Log("starting POB TestApp validator containers...") - - s.valResources = make([]*dockertest.Resource, len(s.chain.validators)) - for i, val := range s.chain.validators { - runOpts := &dockertest.RunOptions{ - Name: val.instanceName(), - NetworkID: s.dkrNet.Network.ID, - Mounts: []string{ - fmt.Sprintf("%s/:/root/.testapp", val.configDir()), - }, - Repository: "docker.io/skip-mev/pob-e2e", - } - - // expose the first validator for debugging and communication - if val.index == 0 { - runOpts.PortBindings = map[docker.Port][]docker.PortBinding{ - "1317/tcp": {{HostIP: "", HostPort: "1317"}}, - "6060/tcp": {{HostIP: "", HostPort: "6060"}}, - "6061/tcp": {{HostIP: "", HostPort: "6061"}}, - "6062/tcp": {{HostIP: "", HostPort: "6062"}}, - "6063/tcp": {{HostIP: "", HostPort: "6063"}}, - "6064/tcp": {{HostIP: "", HostPort: "6064"}}, - "6065/tcp": {{HostIP: "", HostPort: "6065"}}, - "9090/tcp": {{HostIP: "", HostPort: "9090"}}, - "26656/tcp": {{HostIP: "", HostPort: "26656"}}, - "26657/tcp": {{HostIP: "", HostPort: "26657"}}, - } - } - - resource, err := s.dkrPool.RunWithOptions(runOpts, noRestart) - s.Require().NoError(err) - - s.valResources[i] = resource - s.T().Logf("started POB TestApp validator container: %s", resource.Container.ID) - } - - rpcClient, err := rpchttp.New("tcp://localhost:26657", "/websocket") - s.Require().NoError(err) - - s.Require().Eventually( - func() bool { - ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) - defer cancel() - - status, err := rpcClient.Status(ctx) - if err != nil { - return false - } - - // let the node produce a few blocks - if status.SyncInfo.CatchingUp || status.SyncInfo.LatestBlockHeight < 3 { - return false - } - - return true - }, - 2*time.Minute, - time.Second, - "POB TestApp node failed to produce blocks", - ) -} - -func noRestart(config *docker.HostConfig) { - // in this case we don't want the nodes to restart on failure - config.RestartPolicy = docker.RestartPolicy{ - Name: "no", - } -} diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go deleted file mode 100644 index c819832..0000000 --- a/tests/e2e/e2e_test.go +++ /dev/null @@ -1,1418 +0,0 @@ -//go:build e2e - -package e2e - -import ( - "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/skip-mev/pob/tests/app" -) - -// TestGetBuilderParams tests the query for the builder parameters. -func (s *IntegrationTestSuite) TestGetBuilderParams() { - params := s.queryBuilderParams() - s.Require().NotNil(params) -} - -// TestValidBids tests the execution of various valid auction bids. There are a few -// invariants that are tested: -// -// 1. The order of transactions in a bundle is preserved when bids are valid. -// 2. All transactions execute as expected. -// 3. The balance of the escrow account should be updated correctly. -// 4. Top of block bids will be included in block proposals before other transactions -// that are included in the same block. -func (s *IntegrationTestSuite) TestValidBids() { - // Create the accounts that will create transactions to be included in bundles - initBalance := sdk.NewInt64Coin(app.BondDenom, 10000000000) - numAccounts := 4 - accounts := s.createTestAccounts(numAccounts, initBalance) - - // basic send amount - defaultSendAmount := sdk.NewCoins(sdk.NewCoin(app.BondDenom, math.NewInt(10))) - - // auction parameters - params := s.queryBuilderParams() - reserveFee := params.ReserveFee - minBidIncrement := params.MinBidIncrement - maxBundleSize := params.MaxBundleSize - escrowAddress := params.EscrowAccountAddress - - // standard tx params - gasLimit := uint64(5000000) - fees := sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(150000))) - - testCases := []struct { - name string - test func() - }{ - { - name: "Valid auction bid", - test: func() { - // Get escrow account balance to ensure that it is updated correctly - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a single transaction - bundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 1, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[0], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("Valid auction bid", bidTx, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure that the block was correctly created and executed in the order expected - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: true, - bundleHashes[1]: true, - } - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid) - s.Require().Equal(escrowBalance.Add(expectedEscrowFee), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - }, - }, - { - name: "Valid bid with multiple other transactions", - test: func() { - // Get escrow account balance to ensure that it is updated correctly - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a multiple transaction that is valid - bundle := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle[i] = s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.displayExpectedBundle("gud auction bid", bidTx, bundle) - s.broadcastTx(bidTx, 0) - - // broadcast the bid so that it can be included in a vote extension of a coming block - s.waitForABlock() - - // Execute a few other messages to be included in the block after the bid and bundle - normalTxs := make([][]byte, 3) - normalTxs[0] = s.createMsgSendTx(accounts[2], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees) - normalTxs[1] = s.createMsgSendTx(accounts[2], accounts[1].Address.String(), defaultSendAmount, 1, 1000, gasLimit, fees) - normalTxs[2] = s.createMsgSendTx(accounts[2], accounts[1].Address.String(), defaultSendAmount, 2, 1000, gasLimit, fees) - - for _, tx := range normalTxs { - s.broadcastTx(tx, 0) - } - - // Wait for a block to be created - s.waitForABlock() - - // Ensure that the block was correctly created and executed in the order expected - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: true, - } - - for _, hash := range bundleHashes[1:] { - expectedExecution[hash] = true - } - - for _, hash := range s.normalTxsToTxHashes(normalTxs) { - expectedExecution[hash] = true - } - - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid) - s.Require().Equal(escrowBalance.Add(expectedEscrowFee), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - }, - }, - { - name: "iterative bidding from the same account", - test: func() { - // Get escrow account balance to ensure that it is updated correctly - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a multiple transaction that is valid - bundle := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle[i] = s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.displayExpectedBundle("gud auction bid 1", bidTx, bundle) - - // Create another bid transaction that includes the bundle and is valid from the same account - // to verify that user can bid with the same account multiple times in the same block - bid2 := bid.Add(minBidIncrement) - bidTx2 := s.createAuctionBidTx(accounts[1], bid2, bundle, 0, height+3, gasLimit, fees) - s.displayExpectedBundle("gud auction bid 2", bidTx2, bundle) - - // Create a third bid - bid3 := bid2.Add(minBidIncrement) - bidTx3 := s.createAuctionBidTx(accounts[1], bid3, bundle, 0, height+3, gasLimit, fees) - s.displayExpectedBundle("gud auction bid 3", bidTx3, bundle) - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - s.broadcastTx(bidTx, 0) - s.broadcastTx(bidTx2, 0) - s.broadcastTx(bidTx3, 0) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure that the block was correctly created and executed in the order expected - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - bundleHashes2 := s.bundleToTxHashes(bidTx2, bundle) - bundleHashes3 := s.bundleToTxHashes(bidTx3, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes2[0]: false, - } - - for _, hash := range bundleHashes3 { - expectedExecution[hash] = true - } - - s.verifyTopOfBlockAuction(height+3, bundleHashes3, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid3) - s.Require().Equal(escrowBalance.Add(expectedEscrowFee), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - }, - }, - { - name: "bid with a bundle with transactions that are already in the mempool", - test: func() { - // Get escrow account balance to ensure that it is updated correctly - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a multiple transaction that is valid - bundle := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle[i] = s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[2], bid, bundle, 0, height+3, gasLimit, fees) - s.displayExpectedBundle("gud auction bid", bidTx, bundle) - - // Broadcast the bid transaction - s.broadcastTx(bidTx, 0) - - // Wait for a block to broadcast other transactions so that the normal txs can be included in the - // mempool before they are included in a proposal with the vote extensions - s.waitForABlock() - - // Broadcast all of the transactions in the bundle to the mempool - for _, tx := range bundle { - s.broadcastTx(tx, 0) - } - - // Broadcast some other transactions to the mempool - normalTxs := make([][]byte, 10) - for i := 0; i < 10; i++ { - normalTxs[i] = s.createMsgSendTx(accounts[1], accounts[3].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - s.broadcastTx(normalTxs[i], 0) - } - - // Wait for a block to be created - s.waitForABlock() - - // Ensure that the block was correctly created and executed in the order expected - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: true, - } - - for _, hash := range bundleHashes[1:] { - expectedExecution[hash] = true - } - - for _, hash := range s.normalTxsToTxHashes(normalTxs) { - expectedExecution[hash] = true - } - - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid) - s.Require().Equal(escrowBalance.Add(expectedEscrowFee), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - }, - }, - { - name: "searcher attempts to include several txs in the same block to invalidate auction (we extract bid regardless)", - test: func() { - // Get escrow account balance to ensure that it is updated correctly - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a multiple transaction that is valid - bundle := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle[i] = s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - - // Wait for a block to broadcast other transactions so that the normal txs can be included in the - // mempool before they are included in a proposal with the vote extensions - s.waitForABlock() - - // Execute a few other messages to be included in the block after the bid and bundle - normalTxs := make([][]byte, 3) - normalTxs[0] = s.createMsgSendTx(accounts[1], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees) - normalTxs[1] = s.createMsgSendTx(accounts[1], accounts[1].Address.String(), defaultSendAmount, 1, 1000, gasLimit, fees) - normalTxs[2] = s.createMsgSendTx(accounts[1], accounts[1].Address.String(), defaultSendAmount, 2, 1000, gasLimit, fees) - - for _, tx := range normalTxs { - s.broadcastTx(tx, 0) - } - - // Wait for a block to be created - s.waitForABlock() - - // Ensure that the block was correctly created and executed in the order expected - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: true, - } - - // The entire bundle should land irrespective of the transactions submitted by the searcher - for _, hash := range bundleHashes[1:] { - expectedExecution[hash] = true - } - - // We expect only the first normal transaction to not be executed (due to a sequence number mismatch) - normalHashes := s.normalTxsToTxHashes(normalTxs) - expectedExecution[normalHashes[0]] = false - for _, hash := range normalHashes[1:] { - expectedExecution[hash] = true - } - - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid) - s.Require().Equal(escrowBalance.Add(expectedEscrowFee), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - }, - }, - } - - for _, tc := range testCases { - s.waitForABlock() - s.Run(tc.name, tc.test) - } -} - -// TestMultipleBids tests the execution of various valid auction bids in the same block. There are a few -// invariants that are tested: -// -// 1. The order of transactions in a bundle is preserved when bids are valid. -// 2. All transactions execute as expected. -// 3. The balance of the escrow account should be updated correctly. -// 4. Top of block bids will be included in block proposals before other transactions -// that are included in the same block. -// 5. If there is a block that has multiple valid bids with timeouts that are sufficiently far apart, -// the bids should be executed respecting the highest bids until the timeout is reached. -func (s *IntegrationTestSuite) TestMultipleBids() { - // Create the accounts that will create transactions to be included in bundles - initBalance := sdk.NewInt64Coin(app.BondDenom, 10000000000) - numAccounts := 4 - accounts := s.createTestAccounts(numAccounts, initBalance) - - // basic send amount - defaultSendAmount := sdk.NewCoins(sdk.NewCoin(app.BondDenom, math.NewInt(10))) - - // auction parameters - params := s.queryBuilderParams() - reserveFee := params.ReserveFee - minBidIncrement := params.MinBidIncrement - maxBundleSize := params.MaxBundleSize - escrowAddress := params.EscrowAccountAddress - - // standard tx params - gasLimit := uint64(5000000) - fees := sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(150000))) - - testCases := []struct { - name string - test func() - }{ - { - name: "broadcasting bids to two different validators (both should execute over several blocks) with same bid", - test: func() { - // Get escrow account balance to ensure that it is updated correctly - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a multiple transaction that is valid - bundle := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle[i] = s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - bundle2 := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle2[i] = s.createMsgSendTx(accounts[1], accounts[0].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[2], bid, bundle, 0, height+5, gasLimit, fees) - - // Createa a second bid transaction that includes the bundle and is valid - bid2 := reserveFee.Add(sdk.NewCoin(app.BondDenom, math.NewInt(10))) - bidTx2 := s.createAuctionBidTx(accounts[3], bid2, bundle2, 0, height+5, gasLimit, fees) - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - // Broadcast the transactions to different validators - s.broadcastTx(bidTx, 0) - s.broadcastTx(bidTx2, 1) - - s.displayExpectedBundle("gud auction bid 1", bidTx, bundle) - s.displayExpectedBundle("gud auction bid 2", bidTx2, bundle2) - - // Wait for both blocks to be created to verify that both bids were executed - s.waitForABlock() - s.waitForABlock() - s.waitForABlock() - - // Ensure that the block was correctly created and executed in the order expected - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - bundleHashes2 := s.bundleToTxHashes(bidTx2, bundle2) - expectedExecution := map[string]bool{ - bundleHashes[0]: true, - bundleHashes2[0]: true, - } - - for _, hash := range bundleHashes[1:] { - expectedExecution[hash] = true - } - - for _, hash := range bundleHashes2[1:] { - expectedExecution[hash] = true - } - - // Pass in nil since we don't know the order of transactions that ill be executed - s.verifyTopOfBlockAuction(height+3, nil, expectedExecution) - - // Ensure that the escrow account has the correct balance (both bids should have been extracted by this point) - expectedEscrowFee := s.calculateProposerEscrowSplit(bid).Add(s.calculateProposerEscrowSplit(bid2)) - s.Require().Equal(escrowBalance.Add(expectedEscrowFee), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - }, - }, - { - name: "multi-block auction bids with different bids", - test: func() { - // Get escrow account balance to ensure that it is updated correctly - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a multiple transaction that is valid - bundle := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle[i] = s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - bundle2 := make([][]byte, maxBundleSize) - for i := 0; i < int(maxBundleSize); i++ { - bundle2[i] = s.createMsgSendTx(accounts[1], accounts[0].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[2], bid, bundle, 0, height+5, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("gud auction bid 1", bidTx, bundle) - - // Create another bid transaction that includes the bundle and is valid from a different account - bid2 := bid.Add(minBidIncrement) - bidTx2 := s.createAuctionBidTx(accounts[3], bid2, bundle2, 0, height+5, gasLimit, fees) - s.broadcastTx(bidTx2, 1) - s.displayExpectedBundle("gud auction bid 2", bidTx2, bundle2) - - // Wait for a block to be created - s.waitForNBlocks(3) - - // Ensure that the block was correctly created and executed in the order expected - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - bundleHashes2 := s.bundleToTxHashes(bidTx2, bundle2) - expectedExecution := map[string]bool{ - bundleHashes2[0]: true, - } - - for _, hash := range bundleHashes2[1:] { - expectedExecution[hash] = true - } - - s.verifyTopOfBlockAuction(height+2, bundleHashes2, expectedExecution) - - // Wait for a block to be created - s.waitForNBlocks(3) - - // Ensure that the block was correctly created and executed in the order expected - expectedExecution = map[string]bool{ - bundleHashes[0]: true, - } - - for _, hash := range bundleHashes[1:] { - expectedExecution[hash] = true - } - - s.verifyTopOfBlockAuction(height+4, bundleHashes, expectedExecution) - - // Ensure that the escrow account has the correct balance (both bids should have been extracted by this point) - expectedEscrowFee := s.calculateProposerEscrowSplit(bid).Add(s.calculateProposerEscrowSplit(bid2)) - s.Require().Equal(escrowBalance.Add(expectedEscrowFee), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - }, - }, - { - name: "Multiple bid transactions with second bid being smaller than min bid increment (same account)", - test: func() { - // Get escrow account balance - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a single transaction - bundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 1, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[0], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("bid 1", bidTx, bundle) - - // Create a second bid transaction that includes the bundle and is valid (but smaller than the min bid increment) - badBid := reserveFee.Add(sdk.NewInt64Coin(app.BondDenom, 10)) - bidTx2 := s.createAuctionBidTx(accounts[0], badBid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx2, 0) - s.displayExpectedBundle("bid 2", bidTx2, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure only the first bid was executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - bundleHashes2 := s.bundleToTxHashes(bidTx2, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: true, - bundleHashes[1]: true, - bundleHashes2[0]: false, - } - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid) - s.Require().Equal(expectedEscrowFee.Add(escrowBalance), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - - // Wait another block to make sure the second bid is not executed - s.waitForABlock() - s.verifyTopOfBlockAuction(height+4, bundleHashes2, expectedExecution) - }, - }, - { - name: "Multiple transactions with second bid being smaller than min bid increment (different account)", - test: func() { - // Get escrow account balance - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a single transaction - bundle := [][]byte{ - s.createMsgSendTx(accounts[2], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[0], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("bid 1", bidTx, bundle) - - // Create a second bid transaction that includes the bundle and is valid (but smaller than the min bid increment) - badBid := reserveFee.Add(sdk.NewInt64Coin(app.BondDenom, 10)) - bidTx2 := s.createAuctionBidTx(accounts[1], badBid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx2, 0) - s.displayExpectedBundle("bid 2", bidTx2, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure only the first bid was executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - bundleHashes2 := s.bundleToTxHashes(bidTx2, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: true, - bundleHashes[1]: true, - bundleHashes2[0]: false, - } - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid) - s.Require().Equal(expectedEscrowFee.Add(escrowBalance), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - - // Wait another block to make sure the second bid is not executed - s.waitForABlock() - s.verifyTopOfBlockAuction(height+4, bundleHashes2, expectedExecution) - }, - }, - { - name: "Multiple transactions with increasing bids but first bid has same bundle so it should fail in later block (different accounts)", - test: func() { - // Get escrow account balance - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a single transaction - bundle := [][]byte{ - s.createMsgSendTx(accounts[2], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("bid 1", bidTx, bundle) - - // Create a second bid transaction that includes the bundle and is valid - bid2 := reserveFee.Add(minBidIncrement) - bidTx2 := s.createAuctionBidTx(accounts[0], bid2, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx2, 1) - s.displayExpectedBundle("bid 2", bidTx2, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure only the second bid was executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - bundleHashes2 := s.bundleToTxHashes(bidTx2, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes2[0]: true, - bundleHashes2[1]: true, - } - s.verifyTopOfBlockAuction(height+2, bundleHashes2, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid2) - s.Require().Equal(expectedEscrowFee.Add(escrowBalance), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - - // Wait for a block to be created and ensure that the first bid was not executed - s.waitForNBlocks(2) - s.verifyTopOfBlockAuction(height+4, bundleHashes, expectedExecution) - }, - }, - { - name: "Multiple transactions with increasing bids and different bundles (one should execute)", - test: func() { - // Get escrow account balance - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Create a bundle with a single transaction - firstBundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - } - - // Create a bundle with a single transaction - secondBundle := [][]byte{ - s.createMsgSendTx(accounts[1], accounts[0].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle and is valid - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[2], bid, firstBundle, 0, height+2, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("bid 1", bidTx, firstBundle) - - // Create a second bid transaction that includes the bundle and is valid - bid2 := reserveFee.Add(minBidIncrement) - bidTx2 := s.createAuctionBidTx(accounts[3], bid2, secondBundle, 0, height+2, gasLimit, fees) - s.broadcastTx(bidTx2, 0) - s.displayExpectedBundle("bid 2", bidTx2, secondBundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure only the second bid was executed - bundleHashes := s.bundleToTxHashes(bidTx, firstBundle) - bundleHashes2 := s.bundleToTxHashes(bidTx2, secondBundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes[1]: false, - bundleHashes2[0]: true, - bundleHashes2[1]: true, - } - s.verifyTopOfBlockAuction(height+2, bundleHashes2, expectedExecution) - - // Ensure that the escrow account has the correct balance - expectedEscrowFee := s.calculateProposerEscrowSplit(bid2) - s.Require().Equal(expectedEscrowFee.Add(escrowBalance), s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - - // Wait for a block to be created and ensure that the second bid is not executed - s.waitForABlock() - s.verifyTopOfBlockAuction(height+4, bundleHashes, expectedExecution) - }, - }, - } - - for _, tc := range testCases { - s.waitForABlock() - s.Run(tc.name, tc.test) - } -} - -// TestInvalidBundles tests that the application correctly rejects invalid bundles. The balance of the escrow -// account should not be updated and bid + transactions in the bundle should not be executed unless if the transactions -// in the bundle were already in the mempool. -func (s *IntegrationTestSuite) TestInvalidBids() { - // Create the accounts that will create transactions to be included in bundles - initBalance := sdk.NewInt64Coin(app.BondDenom, 10000000000) - numAccounts := 4 - accounts := s.createTestAccounts(numAccounts, initBalance) - - // basic send amount - defaultSendAmount := sdk.NewCoins(sdk.NewCoin(app.BondDenom, math.NewInt(10))) - - // auction parameters - params := s.queryBuilderParams() - reserveFee := params.ReserveFee - maxBundleSize := params.MaxBundleSize - escrowAddress := params.EscrowAccountAddress - - // standard tx params - gasLimit := uint64(5000000) - fees := sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(150000))) - - testCases := []struct { - name string - test func() - }{ - { - name: "searcher is attempting to submit a bundle that includes another bid tx", - test: func() { - // Create a bundle with a multiple transaction that is valid - bundle := [][]byte{ - s.createAuctionBidTx(accounts[0], reserveFee, nil, 0, 1000, gasLimit, fees), - } - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - // Create a bid transaction that includes the bundle - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("bad auction bid", bidTx, bundle) - - s.waitForNBlocks(2) - - // Ensure that the block was built correctly and that the bid was not executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes[1]: false, - } - - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - }, - }, - { - name: "Invalid bid that is attempting to bid more than their balance", - test: func() { - // Create a bundle with a single transaction that is valid - bundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - } - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - // Create a bid transaction that includes the bundle that is attempting to bid more than their balance - bid := sdk.NewCoin(app.BondDenom, math.NewInt(999999999999999999)) - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("bad auction bid", bidTx, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes[1]: false, - } - - // Ensure that the block was built correctly and that the bid was not executed - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - }, - }, - { - name: "Invalid bid that is attempting to front-run/sandwich", - test: func() { - // Create a front-running bundle - bundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - s.createMsgSendTx(accounts[1], accounts[0].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - s.createMsgSendTx(accounts[2], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("front-running auction bid", bidTx, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes[1]: false, - bundleHashes[2]: false, - bundleHashes[3]: false, - } - - // Ensure that the block was built correctly and that the bid was not executed - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - }, - }, - { - name: "Invalid bid that includes an invalid bundle tx", - test: func() { - // Create a bundle with a single transaction that is invalid (sequence number is wrong) - bundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 1000, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("invalid auction bid", bidTx, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes[1]: false, - } - - // Ensure that the block was built correctly and that the bid was not executed - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - }, - }, - { - name: "invalid auction bid with a bid smaller than the reserve fee", - test: func() { - // Create a bundle with a single transaction (this should not be included in the block proposal) - bundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 1, 1000, gasLimit, fees), - } - - s.waitForABlock() - - // Create a bid transaction that includes a bid that is smaller than the reserve fee - bid := reserveFee.Sub(sdk.NewInt64Coin(app.BondDenom, 1)) - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[0], bid, bundle, 0, height+3, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("invalid auction bid", bidTx, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure that no transactions were executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes[1]: false, - } - - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - }, - }, - { - name: "invalid auction bid with too many transactions in the bundle", - test: func() { - // Create a bundle with too many transactions - bundle := [][]byte{} - for i := 0; i < int(maxBundleSize)+1; i++ { - bundle = append(bundle, s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i+1), 1000, gasLimit, fees)) - } - - s.waitForABlock() - - // Create a bid transaction that includes the bundle - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[0], bid, bundle, 0, height+2, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("invalid auction bid", bidTx, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure that no transactions were executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := make(map[string]bool) - - for _, hash := range bundleHashes { - expectedExecution[hash] = false - } - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - }, - }, - { - name: "invalid auction bid that has an invalid timeout", - test: func() { - // Create a bundle with a single transaction - bundle := [][]byte{ - s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, 0, 1000, gasLimit, fees), - } - - // Create a bid transaction that includes the bundle and has a bad timeout - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[0], bid, bundle, 0, height, gasLimit, fees) - s.broadcastTx(bidTx, 0) - s.displayExpectedBundle("invalid auction bid", bidTx, bundle) - - // Wait for a block to be created - s.waitForNBlocks(2) - - // Ensure that no transactions were executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := map[string]bool{ - bundleHashes[0]: false, - bundleHashes[1]: false, - } - - s.verifyTopOfBlockAuction(height+2, bundleHashes, expectedExecution) - }, - }, - { - name: "invalid bid that includes valid transactions that are in the mempool (only bundled txs should execute)", - test: func() { - // Create a bundle with multiple transactions - bundle := make([][]byte, 3) - for i := 0; i < 3; i++ { - bundle[i] = s.createMsgSendTx(accounts[0], accounts[1].Address.String(), defaultSendAmount, uint64(i), 1000, gasLimit, fees) - } - - // Create a bid transaction that includes the bundle and is invalid - bid := reserveFee.Sub(sdk.NewInt64Coin(app.BondDenom, 1)) - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+1, gasLimit, fees) - s.displayExpectedBundle("invalid auction bid", bidTx, bundle) - - // Wait for a block to ensure all transactions are included in the same block - s.waitForABlock() - - // Broadcast the bid transaction - s.broadcastTx(bidTx, 0) - - s.waitForABlock() - - // Broadcast all of the transactions in the bundle - for _, tx := range bundle { - s.broadcastTx(tx, 0) - } - - // Wait for a block to be created - s.waitForABlock() - - // Ensure that only the transactions in the bundle were executed - bundleHashes := s.bundleToTxHashes(bidTx, bundle) - expectedExecution := make(map[string]bool) - - for _, hash := range bundleHashes { - expectedExecution[hash] = true - } - - expectedExecution[bundleHashes[0]] = false - - s.verifyTopOfBlockAuction(height+3, bundleHashes, expectedExecution) - }, - }, - } - - for _, tc := range testCases { - escrowBalance := s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom) - - // Wait for a block to be created and run the test - s.waitForABlock() - s.Run(tc.name, tc.test) - - // Get escrow account balance to ensure that it is not changed - s.Require().Equal(escrowBalance, s.queryBalanceOf(sdk.AccAddress(escrowAddress).String(), app.BondDenom)) - } -} - -// TestFreeLane tests that the application correctly handles free lanes. There are a few invariants that are tested: -// -// 1. Transactions that qualify as free should not be deducted any fees. -// 2. Transactions that do not qualify as free should be deducted the correct fees. -func (s *IntegrationTestSuite) TestFreeLane() { - // Create the accounts that will create transactions to be included in bundles - initBalance := sdk.NewInt64Coin(app.BondDenom, 10000000000) - numAccounts := 4 - accounts := s.createTestAccounts(numAccounts, initBalance) - - defaultSendAmount := sdk.NewCoin(app.BondDenom, math.NewInt(10)) - defaultStakeAmount := sdk.NewCoin(app.BondDenom, math.NewInt(10)) - defaultSendAmountCoins := sdk.NewCoins(defaultSendAmount) - - // standard tx params - gasLimit := uint64(5000000) - fees := sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(150000))) - - testCases := []struct { - name string - test func() - }{ - { - name: "valid free lane transaction", - test: func() { - balanceBeforeFreeTx := s.queryBalanceOf(accounts[0].Address.String(), app.BondDenom) - - // basic stake amount - validators := s.queryValidators() - validator := validators[0] - tx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, fees) - - // Broadcast the transaction - s.waitForABlock() - s.broadcastTx(tx, 0) - - // Wait for a block to be created - s.waitForABlock() - - // Ensure that the transaction was executed correctly - balanceAfterFreeTx := s.queryBalanceOf(accounts[0].Address.String(), app.BondDenom) - s.Require().True(balanceAfterFreeTx.Add(defaultStakeAmount).IsGTE(balanceBeforeFreeTx)) - }, - }, - { - name: "normal tx with free tx in same block", - test: func() { - balanceBeforeFreeTx := s.queryBalanceOf(accounts[0].Address.String(), app.BondDenom) - balanceBeforeNormalTx := s.queryBalanceOf(accounts[1].Address.String(), app.BondDenom) - - // basic free transaction - validators := s.queryValidators() - validator := validators[0] - freeTx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, fees) - - // other normal transaction - normalTx := s.createMsgSendTx(accounts[1], accounts[2].Address.String(), defaultSendAmountCoins, 0, 1000, gasLimit, fees) - - // Broadcast the transactions - s.waitForABlock() - s.broadcastTx(freeTx, 0) - s.broadcastTx(normalTx, 0) - - // Wait for a block to be created - s.waitForABlock() - height := s.queryCurrentHeight() - - hashes := s.normalTxsToTxHashes([][]byte{freeTx, normalTx}) - expectedExecution := map[string]bool{ - hashes[0]: true, - hashes[1]: true, - } - - // Ensure that the block was built correctly - s.verifyBlock(height, hashes, expectedExecution) - - // Ensure that the transaction was executed - balanceAfterFreeTx := s.queryBalanceOf(accounts[0].Address.String(), app.BondDenom) - s.Require().True(balanceAfterFreeTx.Add(defaultStakeAmount).IsGTE(balanceBeforeFreeTx)) - - // The balance must be strictly less than to account for fees - balanceAfterNormalTx := s.queryBalanceOf(accounts[1].Address.String(), app.BondDenom) - s.Require().True(balanceAfterNormalTx.IsLT((balanceBeforeNormalTx.Sub(defaultSendAmount)))) - }, - }, - { - name: "multiple free transactions in same block", - test: func() { - balanceBeforeFreeTx := s.queryBalanceOf(accounts[0].Address.String(), app.BondDenom) - balanceBeforeFreeTx2 := s.queryBalanceOf(accounts[1].Address.String(), app.BondDenom) - - // basic free transaction - validators := s.queryValidators() - validator := validators[0] - freeTx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, fees) - - // other normal transaction - freeTx2 := s.createMsgDelegateTx(accounts[1], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, fees) - - // Broadcast the transactions - s.waitForABlock() - s.broadcastTx(freeTx, 0) - s.broadcastTx(freeTx2, 0) - - // Wait for a block to be created - s.waitForABlock() - - // Ensure that the transaction was executed - balanceAfterFreeTx := s.queryBalanceOf(accounts[0].Address.String(), app.BondDenom) - s.Require().True(balanceAfterFreeTx.Add(defaultStakeAmount).IsGTE(balanceBeforeFreeTx)) - - balanceAfterFreeTx2 := s.queryBalanceOf(accounts[1].Address.String(), app.BondDenom) - s.Require().True(balanceAfterFreeTx2.Add(defaultStakeAmount).IsGTE(balanceBeforeFreeTx2)) - }, - }, - } - - for _, tc := range testCases { - s.waitForABlock() - s.Run(tc.name, tc.test) - } -} - -// TestLanes tests that the application correctly handles lanes. The biggest invarient that is -// test here is making sure that transactions are ordered in blocks respecting the lane order. -func (s *IntegrationTestSuite) TestLanes() { - // Create the accounts that will create transactions to be included in bundles - initBalance := sdk.NewInt64Coin(app.BondDenom, 10000000000) - numAccounts := 4 - accounts := s.createTestAccounts(numAccounts, initBalance) - - defaultSendAmount := sdk.NewCoin(app.BondDenom, math.NewInt(10)) - defaultStakeAmount := sdk.NewCoin(app.BondDenom, math.NewInt(10)) - defaultSendAmountCoins := sdk.NewCoins(defaultSendAmount) - - // auction parameters - params := s.queryBuilderParams() - reserveFee := params.ReserveFee - - // standard tx params - gasLimit := uint64(5000000) - fees := sdk.NewCoins(sdk.NewCoin("stake", math.NewInt(150000))) - - testCases := []struct { - name string - test func() - }{ - { - "block with tob, free, and normal tx (free tx delegates entire balances)", - func() { - // basic free transaction - validators := s.queryValidators() - validator := validators[0] - freeTx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, initBalance, 0, 1000, gasLimit, sdk.NewCoins()) - - // other normal transaction - normalTx := s.createMsgSendTx(accounts[1], accounts[2].Address.String(), defaultSendAmountCoins, 0, 1000, gasLimit, fees) - - // Create a bid transaction that includes the bundle and is valid - bundle := [][]byte{ - s.createMsgSendTx(accounts[3], accounts[1].Address.String(), defaultSendAmountCoins, 0, 1000, gasLimit, fees), - } - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[2], bid, bundle, 0, height+5, gasLimit, fees) - s.displayExpectedBundle("Valid auction bid", bidTx, bundle) - - s.waitForABlock() - s.broadcastTx(bidTx, 0) - - // Broadcast the transactions - s.waitForABlock() - s.broadcastTx(freeTx, 0) - s.broadcastTx(normalTx, 0) - - // Wait for a block to be created - s.waitForABlock() - - // Ensure that the transaction was executed - height = s.queryCurrentHeight() - hashes := s.normalTxsToTxHashes([][]byte{ - bidTx, - bundle[0], - freeTx, - normalTx, - }) - - expectedExecution := map[string]bool{ - hashes[0]: true, - hashes[1]: true, - hashes[2]: true, - hashes[3]: true, - } - - // Ensure that the block was built correctly - s.verifyBlock(height, hashes, expectedExecution) - - // Reset the balances - accounts = s.createTestAccounts(numAccounts, initBalance) - }, - }, - { - name: "block with tob, free, and normal tx", - test: func() { - // basic free transaction - validators := s.queryValidators() - validator := validators[0] - freeTx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, fees) - - // other normal transaction - normalTx := s.createMsgSendTx(accounts[1], accounts[2].Address.String(), defaultSendAmountCoins, 0, 1000, gasLimit, fees) - - // Create a bid transaction that includes the bundle and is valid - bundle := [][]byte{ - s.createMsgSendTx(accounts[3], accounts[1].Address.String(), defaultSendAmountCoins, 0, 1000, gasLimit, fees), - } - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[2], bid, bundle, 0, height+5, gasLimit, fees) - s.displayExpectedBundle("Valid auction bid", bidTx, bundle) - - s.waitForABlock() - s.broadcastTx(bidTx, 0) - - // Broadcast the transactions - s.waitForABlock() - - s.broadcastTx(freeTx, 0) - s.broadcastTx(normalTx, 0) - - // Wait for a block to be created - s.waitForABlock() - height = s.queryCurrentHeight() - - // Ensure that the transaction was executed - hashes := s.normalTxsToTxHashes([][]byte{ - bidTx, - bundle[0], - freeTx, - normalTx, - }) - expectedExecution := map[string]bool{ - hashes[0]: true, - hashes[1]: true, - hashes[2]: true, - hashes[3]: true, - } - - // Ensure that the block was built correctly - s.verifyBlock(height, hashes, expectedExecution) - }, - }, - { - "failing top of block transaction, free, and normal tx", - func() { - // basic free transaction - validators := s.queryValidators() - validator := validators[0] - freeTx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, fees) - - // other normal transaction - normalTx := s.createMsgSendTx(accounts[1], accounts[2].Address.String(), defaultSendAmountCoins, 0, 1000, gasLimit, fees) - - // Create a bid transaction that includes the bundle and is invalid (out of sequence number) - bundle := [][]byte{ - s.createMsgSendTx(accounts[3], accounts[1].Address.String(), defaultSendAmountCoins, 3, 1000, gasLimit, fees), - } - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[2], bid, bundle, 0, height+5, gasLimit, fees) - s.displayExpectedBundle("Valid auction bid", bidTx, bundle) - - s.waitForABlock() - s.broadcastTx(bidTx, 0) - - // Broadcast the transactions - s.waitForABlock() - s.broadcastTx(freeTx, 0) - s.broadcastTx(normalTx, 0) - - // Wait for a block to be created - s.waitForABlock() - height = s.queryCurrentHeight() - - // Ensure that the transaction was executed - hashes := s.normalTxsToTxHashes([][]byte{ - bidTx, - bundle[0], - freeTx, - normalTx, - }) - expectedExecution := map[string]bool{ - hashes[0]: false, - hashes[1]: false, - hashes[2]: true, - hashes[3]: true, - } - - // Ensure that the block was built correctly - s.verifyBlock(height, hashes[2:], expectedExecution) - }, - }, - { - "top of block transaction that includes transactions from the free lane (no fees paid)", - func() { - // basic free transaction - validators := s.queryValidators() - validator := validators[0] - freeTx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, sdk.NewCoins(sdk.NewCoin(app.BondDenom, math.NewInt(0)))) // Free transaction with no fees - - // Create a bid transaction that includes the bundle and is invalid (out of sequence number) - bundle := [][]byte{ - freeTx, - s.createMsgSendTx(accounts[1], accounts[2].Address.String(), defaultSendAmountCoins, 1, 1000, gasLimit, fees), - } - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+5, gasLimit, fees) - s.displayExpectedBundle("Valid auction bid", bidTx, bundle) - - s.waitForABlock() - s.broadcastTx(bidTx, 0) - - // Broadcast the transactions - s.waitForABlock() - s.broadcastTx(freeTx, 0) - - // Wait for a block to be created - s.waitForABlock() - height = s.queryCurrentHeight() - - // Ensure that the transaction was executed - hashes := s.normalTxsToTxHashes([][]byte{ - bidTx, - freeTx, - bundle[1], - }) - expectedExecution := map[string]bool{ - hashes[0]: true, - hashes[1]: true, - hashes[2]: true, - } - - // Ensure that the block was built correctly - s.verifyBlock(height, hashes, expectedExecution) - }, - }, - { - "top of block transaction that includes transaction from free lane + other free lane txs + normal txs", - func() { - // basic free transaction - validators := s.queryValidators() - validator := validators[0] - freeTx := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 0, 1000, gasLimit, sdk.NewCoins(sdk.NewCoin(app.BondDenom, math.NewInt(0)))) // Free transaction with no fees - - // Another free transaction that should be included in the block - freeTx2 := s.createMsgDelegateTx(accounts[0], validator.OperatorAddress, defaultStakeAmount, 1, 1000, gasLimit, sdk.NewCoins(sdk.NewCoin(app.BondDenom, math.NewInt(0)))) // Free transaction with no fees - - // Create a bid transaction that includes the bundle and is invalid (out of sequence number) - bundle := [][]byte{ - freeTx, - s.createMsgSendTx(accounts[1], accounts[2].Address.String(), defaultSendAmountCoins, 1, 1000, gasLimit, fees), - } - bid := reserveFee - height := s.queryCurrentHeight() - bidTx := s.createAuctionBidTx(accounts[1], bid, bundle, 0, height+5, gasLimit, fees) - s.displayExpectedBundle("Valid auction bid", bidTx, bundle) - - normalTx := s.createMsgSendTx(accounts[3], accounts[2].Address.String(), defaultSendAmountCoins, 0, 1000, gasLimit, fees) - - s.waitForABlock() - s.broadcastTx(bidTx, 0) - - // Broadcast the transactions (including the ones in the bundle) - s.waitForABlock() - s.broadcastTx(freeTx, 0) - s.broadcastTx(bundle[1], 0) - s.broadcastTx(freeTx2, 0) - s.broadcastTx(normalTx, 0) - - // Wait for a block to be created - s.waitForABlock() - height = s.queryCurrentHeight() - - // Ensure that the transaction was executed - hashes := s.normalTxsToTxHashes([][]byte{ - bidTx, - freeTx, - bundle[1], - freeTx2, - normalTx, - }) - expectedExecution := map[string]bool{ - hashes[0]: true, - hashes[1]: true, - hashes[2]: true, - hashes[3]: true, - hashes[4]: true, - } - - // Ensure that the block was built correctly - s.verifyBlock(height, hashes, expectedExecution) - }, - }, - } - - for _, tc := range testCases { - s.waitForABlock() - s.Run(tc.name, tc.test) - } -} diff --git a/tests/e2e/e2e_tx_test.go b/tests/e2e/e2e_tx_test.go deleted file mode 100644 index 8bcb475..0000000 --- a/tests/e2e/e2e_tx_test.go +++ /dev/null @@ -1,180 +0,0 @@ -package e2e - -import ( - "bytes" - "context" - "fmt" - "strings" - "time" - - "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/ory/dockertest/v3/docker" - "github.com/skip-mev/pob/tests/app" - buildertypes "github.com/skip-mev/pob/x/builder/types" -) - -// execMsgSendTx executes a send transaction on the given validator given the provided -// recipient and amount. This function returns the transaction hash. It does not wait for the -// transaction to be committed. -func (s *IntegrationTestSuite) execMsgSendTx(valIdx int, to sdk.AccAddress, amount sdk.Coin) string { - address, err := s.chain.validators[valIdx].keyInfo.GetAddress() - s.Require().NoError(err) - - s.T().Logf( - "sending %s from %s to %s", - amount, address, to, - ) - ctx, cancel := context.WithTimeout(context.Background(), time.Minute) - defer cancel() - - exec, err := s.dkrPool.Client.CreateExec(docker.CreateExecOptions{ - Context: ctx, - AttachStdout: true, - AttachStderr: true, - Container: s.valResources[valIdx].Container.ID, - User: "root", - Cmd: []string{ - "testappd", - "tx", - "bank", - "send", - address.String(), // sender - to.String(), // receiver - amount.String(), // amount - fmt.Sprintf("--%s=%s", flags.FlagFrom, s.chain.validators[valIdx].keyInfo.Name), - fmt.Sprintf("--%s=%s", flags.FlagChainID, s.chain.id), - fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoin(app.BondDenom, math.NewInt(1000000000)).String()), - "--keyring-backend=test", - "--broadcast-mode=sync", - "-y", - }, - }) - s.Require().NoError(err) - - var ( - outBuf bytes.Buffer - errBuf bytes.Buffer - ) - - err = s.dkrPool.Client.StartExec(exec.ID, docker.StartExecOptions{ - Context: ctx, - Detach: false, - OutputStream: &outBuf, - ErrorStream: &errBuf, - }) - s.Require().NoErrorf(err, "stdout: %s, stderr: %s", outBuf.String(), errBuf.String()) - - output := outBuf.String() - resp := strings.Split(output, ":") - txHash := strings.TrimSpace(resp[len(resp)-1]) - - return txHash -} - -// createAuctionBidTx creates a transaction that bids on an auction given the provided bidder, bid, and transactions. -func (s *IntegrationTestSuite) createAuctionBidTx(account TestAccount, bid sdk.Coin, transactions [][]byte, sequenceOffset, height, gasLimit uint64, fees sdk.Coins) []byte { - msgs := []sdk.Msg{ - &buildertypes.MsgAuctionBid{ - Bidder: account.Address.String(), - Bid: bid, - Transactions: transactions, - }, - } - - return s.createTx(account, msgs, sequenceOffset, height, gasLimit, fees) -} - -// createMsgSendTx creates a send transaction given the provided signer, recipient, amount, sequence number offset, and block height timeout. -// This function is primarily used to create bundles of transactions. -func (s *IntegrationTestSuite) createMsgSendTx(account TestAccount, toAddress string, amount sdk.Coins, sequenceOffset, height, gasLimit uint64, fees sdk.Coins) []byte { - msgs := []sdk.Msg{ - &banktypes.MsgSend{ - FromAddress: account.Address.String(), - ToAddress: toAddress, - Amount: amount, - }, - } - - return s.createTx(account, msgs, sequenceOffset, height, gasLimit, fees) -} - -// createMsgDelegateTx creates a delegate transaction given the provided signer, validator, amount, sequence number offset -// and block height timeout. -func (s *IntegrationTestSuite) createMsgDelegateTx(account TestAccount, validator string, amount sdk.Coin, sequenceOffset, height, gasLimit uint64, fees sdk.Coins) []byte { - msgs := []sdk.Msg{ - &stakingtypes.MsgDelegate{ - DelegatorAddress: account.Address.String(), - ValidatorAddress: validator, - Amount: amount, - }, - } - - return s.createTx(account, msgs, sequenceOffset, height, gasLimit, fees) -} - -// createTx creates a transaction given the provided messages, sequence number offset, and block height timeout. -func (s *IntegrationTestSuite) createTx(account TestAccount, msgs []sdk.Msg, sequenceOffset, height, gasLimit uint64, fees sdk.Coins) []byte { - txConfig := encodingConfig.TxConfig - txBuilder := txConfig.NewTxBuilder() - - // Get account info of the sender to set the account number and sequence number - baseAccount := s.queryAccount(account.Address) - sequenceNumber := baseAccount.Sequence + sequenceOffset - - s.Require().NoError(txBuilder.SetMsgs(msgs...)) - txBuilder.SetFeeAmount(fees) - txBuilder.SetGasLimit(gasLimit) - txBuilder.SetTimeoutHeight(height) - - signerData := authsigning.SignerData{ - ChainID: app.ChainID, - AccountNumber: baseAccount.AccountNumber, - Sequence: sequenceNumber, - PubKey: account.PrivateKey.PubKey(), - } - - sig := signing.SignatureV2{ - PubKey: account.PrivateKey.PubKey(), - Data: &signing.SingleSignatureData{ - SignMode: signing.SignMode_SIGN_MODE_DIRECT, - Signature: nil, - }, - Sequence: sequenceNumber, - } - - s.Require().NoError(txBuilder.SetSignatures(sig)) - - bytesToSign, err := authsigning.GetSignBytesAdapter( - context.Background(), - encodingConfig.TxConfig.SignModeHandler(), - signing.SignMode_SIGN_MODE_DIRECT, - signerData, - txBuilder.GetTx(), - ) - s.Require().NoError(err) - - sigBytes, err := account.PrivateKey.Sign(bytesToSign) - s.Require().NoError(err) - - sig = signing.SignatureV2{ - PubKey: account.PrivateKey.PubKey(), - Data: &signing.SingleSignatureData{ - SignMode: signing.SignMode_SIGN_MODE_DIRECT, - Signature: sigBytes, - }, - Sequence: sequenceNumber, - } - s.Require().NoError(txBuilder.SetSignatures(sig)) - - signedTx := txBuilder.GetTx() - bz, err := encodingConfig.TxConfig.TxEncoder()(signedTx) - s.Require().NoError(err) - - return bz -} diff --git a/tests/e2e/e2e_utils_test.go b/tests/e2e/e2e_utils_test.go deleted file mode 100644 index f0a627c..0000000 --- a/tests/e2e/e2e_utils_test.go +++ /dev/null @@ -1,401 +0,0 @@ -package e2e - -import ( - "context" - "crypto/sha256" - "encoding/hex" - "fmt" - "strings" - "time" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - cmtclient "github.com/cosmos/cosmos-sdk/client/grpc/cmtservice" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - sdk "github.com/cosmos/cosmos-sdk/types" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - buildertypes "github.com/skip-mev/pob/x/builder/types" - "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" -) - -// createClientContext creates a client.Context for use in integration tests. -// Note, it assumes all queries and broadcasts go to the first node. -func (s *IntegrationTestSuite) createClientContext() client.Context { - node := s.valResources[0] - - rpcURI := node.GetHostPort("26657/tcp") - gRPCURI := node.GetHostPort("9090/tcp") - - rpcClient, err := client.NewClientFromNode(rpcURI) - s.Require().NoError(err) - - grpcClient, err := grpc.Dial(gRPCURI, []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())}...) - s.Require().NoError(err) - - return client.Context{}. - WithNodeURI(rpcURI). - WithClient(rpcClient). - WithGRPCClient(grpcClient). - WithInterfaceRegistry(encodingConfig.InterfaceRegistry). - WithCodec(encodingConfig.Codec). - WithChainID(s.chain.id). - WithBroadcastMode(flags.BroadcastSync) -} - -// createTestAccounts creates and funds test accounts with a balance. -func (s *IntegrationTestSuite) createTestAccounts(numAccounts int, balance sdk.Coin) []TestAccount { - accounts := make([]TestAccount, numAccounts) - - for i := 0; i < numAccounts; i++ { - // Generate a new account with private key that will be used to sign transactions. - privKey := secp256k1.GenPrivKey() - pubKey := privKey.PubKey() - addr := sdk.AccAddress(pubKey.Address()) - - account := TestAccount{ - PrivateKey: privKey, - Address: addr, - } - - // Fund the account. - s.execMsgSendTx(0, account.Address, balance) - - // Wait for the balance to be updated. - s.Require().Eventually(func() bool { - return !s.queryBalancesOf(addr.String()).IsZero() - }, - 10*time.Second, - 1*time.Second, - ) - - accounts[i] = account - } - - return accounts -} - -// calculateProposerEscrowSplit calculates the amount of a bid that should go to the escrow account -// and the amount that should go to the proposer. The simulation e2e environment does not support -// checking the proposer's balance, it only validates that the escrow address has the correct balance. -func (s *IntegrationTestSuite) calculateProposerEscrowSplit(bid sdk.Coin) sdk.Coin { - // Get the params to determine the proposer fee. - params := s.queryBuilderParams() - proposerFee := params.ProposerFee - - var proposerReward sdk.Coins - if proposerFee.IsZero() { - // send the entire bid to the escrow account when no proposer fee is set - return bid - } - - // determine the amount of the bid that goes to the (previous) proposer - bidDec := sdk.NewDecCoinsFromCoins(bid) - proposerReward, _ = bidDec.MulDecTruncate(proposerFee).TruncateDecimal() - - // Determine the amount of the remaining bid that goes to the escrow account. - // If a decimal remainder exists, it'll stay with the bidding account. - escrowTotal := bidDec.Sub(sdk.NewDecCoinsFromCoins(proposerReward...)) - escrowReward, _ := escrowTotal.TruncateDecimal() - - return sdk.NewCoin(bid.Denom, escrowReward.AmountOf(bid.Denom)) -} - -// waitForABlock will wait until the current block height has increased by a single block. -func (s *IntegrationTestSuite) waitForABlock() { - height := s.queryCurrentHeight() - s.Require().Eventually( - func() bool { - return s.queryCurrentHeight() >= height+1 - }, - 10*time.Second, - 50*time.Millisecond, - ) -} - -// waitForNBlocks will wait until the current block height has increased by n blocks. -func (s *IntegrationTestSuite) waitForNBlocks(n int) { - height := s.queryCurrentHeight() - s.Require().Eventually( - func() bool { - return s.queryCurrentHeight() >= height+uint64(n) - }, - 10*time.Second, - 50*time.Millisecond, - ) -} - -// bundleToTxHashes converts a bundle to a slice of transaction hashes. -func (s *IntegrationTestSuite) bundleToTxHashes(bidTx []byte, bundle [][]byte) []string { - hashes := make([]string, len(bundle)+1) - - // encode the bid transaction into a hash - hashBz := sha256.Sum256(bidTx) - hash := hex.EncodeToString(hashBz[:]) - hashes[0] = hash - - for i, hash := range s.normalTxsToTxHashes(bundle) { - hashes[i+1] = hash - } - - return hashes -} - -// normalTxsToTxHashes converts a slice of normal transactions to a slice of transaction hashes. -func (s *IntegrationTestSuite) normalTxsToTxHashes(txs [][]byte) []string { - hashes := make([]string, len(txs)) - - for i, tx := range txs { - hashBz := sha256.Sum256(tx) - hash := hex.EncodeToString(hashBz[:]) - hashes[i] = hash - } - - return hashes -} - -// verifyTopOfBlockAuction verifies that blocks that include a bid transaction execute as expected. -func (s *IntegrationTestSuite) verifyTopOfBlockAuction(height uint64, bundle []string, expectedExecution map[string]bool) { - s.waitForABlock() - s.T().Logf("Verifying block %d", height) - - // Get the block's transactions and display the expected and actual block for debugging. - txs := s.queryBlockTxs(height) - s.displayBlock(txs, bundle) - - // Ensure that all transactions executed as expected (i.e. landed or failed to land). - for tx, landed := range expectedExecution { - s.T().Logf("Verifying tx %s executed as %t", tx, landed) - s.Require().Equal(landed, s.queryTxPassed(tx) == nil) - } - s.T().Logf("All txs executed as expected") - - // Check that the block contains the expected transactions in the expected order - // iff the bid transaction was expected to execute. - if len(bundle) > 0 && len(expectedExecution) > 0 && expectedExecution[bundle[0]] && len(txs) > 0 { - if expectedExecution[bundle[0]] { - hashBz := sha256.Sum256(txs[0]) - hash := hex.EncodeToString(hashBz[:]) - s.Require().Equal(strings.ToUpper(bundle[0]), strings.ToUpper(hash)) - - for index, bundleTx := range bundle[1:] { - hashBz := sha256.Sum256(txs[index+1]) - txHash := hex.EncodeToString(hashBz[:]) - - s.Require().Equal(strings.ToUpper(bundleTx), strings.ToUpper(txHash)) - } - } - } -} - -// verifyBlock verifies that the transactions in the block at the given height were seen -// and executed in the order they were submitted. -func (s *IntegrationTestSuite) verifyBlock(height uint64, txs []string, expectedExecution map[string]bool) { - s.waitForABlock() - s.T().Logf("Verifying block %d", height) - - // Get the block's transactions and display the expected and actual block for debugging. - blockTxs := s.queryBlockTxs(height) - s.displayBlock(blockTxs, txs) - - // Ensure that all transactions executed as expected (i.e. landed or failed to land). - for tx, landed := range expectedExecution { - s.T().Logf("Verifying tx %s executed as %t", tx, landed) - s.Require().Equal(landed, s.queryTxPassed(tx) == nil) - } - s.T().Logf("All txs executed as expected") - - // Check that the block contains the expected transactions in the expected order. - s.Require().Equal(len(txs), len(blockTxs)) - - hashBlockTxs := s.normalTxsToTxHashes(blockTxs) - for index, tx := range txs { - s.Require().Equal(strings.ToUpper(tx), strings.ToUpper(hashBlockTxs[index])) - } - - s.T().Logf("Block %d contains the expected transactions in the expected order", height) -} - -// displayExpectedBlock displays the expected and actual blocks. -func (s *IntegrationTestSuite) displayBlock(txs [][]byte, expectedTxs []string) { - if len(expectedTxs) != 0 { - expectedBlock := fmt.Sprintf("Expected block:\n\t(%d, %s)\n", 0, expectedTxs[0]) - for index, expectedTx := range expectedTxs[1:] { - expectedBlock += fmt.Sprintf("\t(%d, %s)\n", index+1, expectedTx) - } - - s.T().Logf(expectedBlock) - } - - // Display the actual block. - if len(txs) == 0 { - s.T().Logf("Actual block is empty") - return - } - - hashBz := sha256.Sum256(txs[0]) - hash := hex.EncodeToString(hashBz[:]) - actualBlock := fmt.Sprintf("Actual block:\n\t(%d, %s)\n", 0, hash) - for index, tx := range txs[1:] { - hashBz := sha256.Sum256(tx) - txHash := hex.EncodeToString(hashBz[:]) - - actualBlock += fmt.Sprintf("\t(%d, %s)\n", index+1, txHash) - } - - s.T().Logf(actualBlock) -} - -// displayExpectedBundle displays the expected order of the bid and bundled transactions. -func (s *IntegrationTestSuite) displayExpectedBundle(prefix string, bidTx []byte, bundle [][]byte) { - // encode the bid transaction into a hash - hashes := s.bundleToTxHashes(bidTx, bundle) - - expectedBundle := fmt.Sprintf("%s expected bundle:\n\t(%d, %s)\n", prefix, 0, hashes[0]) - for index, bundleTx := range hashes[1:] { - expectedBundle += fmt.Sprintf("\t(%d, %s)\n", index+1, bundleTx) - } - - s.T().Logf(expectedBundle) -} - -// broadcastTx broadcasts a transaction to the network using the given validator. -func (s *IntegrationTestSuite) broadcastTx(tx []byte, valIdx int) { - node := s.valResources[valIdx] - gRPCURI := node.GetHostPort("9090/tcp") - - grpcConn, err := grpc.Dial( - gRPCURI, - grpc.WithTransportCredentials(insecure.NewCredentials()), - ) - s.Require().NoError(err) - - client := txtypes.NewServiceClient(grpcConn) - - req := &txtypes.BroadcastTxRequest{TxBytes: tx, Mode: txtypes.BroadcastMode_BROADCAST_MODE_SYNC} - client.BroadcastTx(context.Background(), req) -} - -// queryTx queries a transaction by its hash and returns whether there was an -// error in including the transaction in a block. -func (s *IntegrationTestSuite) queryTxPassed(txHash string) error { - queryClient := txtypes.NewServiceClient(s.createClientContext()) - - req := &txtypes.GetTxRequest{Hash: txHash} - resp, err := queryClient.GetTx(context.Background(), req) - if err != nil { - return err - } - - if resp.TxResponse.Code != 0 { - return fmt.Errorf("tx failed: %s", resp.TxResponse.RawLog) - } - - return nil -} - -// queryBuilderParams returns the params of the builder module. -func (s *IntegrationTestSuite) queryBuilderParams() buildertypes.Params { - queryClient := buildertypes.NewQueryClient(s.createClientContext()) - - req := &buildertypes.QueryParamsRequest{} - resp, err := queryClient.Params(context.Background(), req) - s.Require().NoError(err) - - return resp.Params -} - -// queryBalancesOf returns the balances of an account. -func (s *IntegrationTestSuite) queryBalancesOf(address string) sdk.Coins { - queryClient := banktypes.NewQueryClient(s.createClientContext()) - - req := &banktypes.QueryAllBalancesRequest{Address: address} - resp, err := queryClient.AllBalances(context.Background(), req) - s.Require().NoError(err) - - return resp.Balances -} - -// queryBalanceOf returns the balance of an account for a specific denom. -func (s *IntegrationTestSuite) queryBalanceOf(address string, denom string) sdk.Coin { - queryClient := banktypes.NewQueryClient(s.createClientContext()) - - req := &banktypes.QueryBalanceRequest{Address: address, Denom: denom} - resp, err := queryClient.Balance(context.Background(), req) - s.Require().NoError(err) - - return *resp.Balance -} - -// queryAccount returns the account of an address. -func (s *IntegrationTestSuite) queryAccount(address sdk.AccAddress) *authtypes.BaseAccount { - queryClient := authtypes.NewQueryClient(s.createClientContext()) - - req := &authtypes.QueryAccountRequest{Address: address.String()} - resp, err := queryClient.Account(context.Background(), req) - s.Require().NoError(err) - - account := &authtypes.BaseAccount{} - err = account.Unmarshal(resp.Account.Value) - s.Require().NoError(err) - - return account -} - -// queryCurrentHeight returns the current block height. -func (s *IntegrationTestSuite) queryCurrentHeight() uint64 { - queryClient := cmtclient.NewServiceClient(s.createClientContext()) - - req := &cmtclient.GetLatestBlockRequest{} - resp, err := queryClient.GetLatestBlock(context.Background(), req) - s.Require().NoError(err) - - return uint64(resp.SdkBlock.Header.Height) -} - -// queryBlockTxs returns the txs of the block at the given height. -func (s *IntegrationTestSuite) queryBlockTxs(height uint64) [][]byte { - queryClient := cmtclient.NewServiceClient(s.createClientContext()) - - req := &cmtclient.GetBlockByHeightRequest{Height: int64(height)} - resp, err := queryClient.GetBlockByHeight(context.Background(), req) - s.Require().NoError(err) - - txs := resp.GetSdkBlock().Data.Txs - - // The first transaction is the vote extension. - s.Require().Greater(len(txs), 0) - - return txs[1:] -} - -// queryTx returns information about a transaction. -func (s *IntegrationTestSuite) queryTx(txHash string) *txtypes.GetTxResponse { - queryClient := txtypes.NewServiceClient(s.createClientContext()) - - req := &txtypes.GetTxRequest{Hash: txHash} - resp, err := queryClient.GetTx(context.Background(), req) - s.Require().NoError(err) - - return resp -} - -// queryTxExecutionHeight returns the block height at which a transaction was executed. -func (s *IntegrationTestSuite) queryTxExecutionHeight(txHash string) uint64 { - txResp := s.queryTx(txHash) - return uint64(txResp.TxResponse.Height) -} - -// queryValidators returns the validators of the network. -func (s *IntegrationTestSuite) queryValidators() []stakingtypes.Validator { - queryClient := stakingtypes.NewQueryClient(s.createClientContext()) - - req := &stakingtypes.QueryValidatorsRequest{} - resp, err := queryClient.Validators(context.Background(), req) - s.Require().NoError(err) - - return resp.Validators -} diff --git a/tests/e2e/genesis.go b/tests/e2e/genesis.go deleted file mode 100644 index e7dc963..0000000 --- a/tests/e2e/genesis.go +++ /dev/null @@ -1,121 +0,0 @@ -package e2e - -import ( - "encoding/json" - "fmt" - "os" - - comettypes "github.com/cometbft/cometbft/types" - "github.com/cosmos/cosmos-sdk/server" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - "github.com/skip-mev/pob/x/builder/types" -) - -func getGenDoc(path string) (*comettypes.GenesisDoc, error) { - serverCtx := server.NewDefaultContext() - config := serverCtx.Config - config.SetRoot(path) - - genFile := config.GenesisFile() - doc := &comettypes.GenesisDoc{} - - if _, err := os.Stat(genFile); err != nil { - if !os.IsNotExist(err) { - return nil, err - } - } else { - var err error - - doc, err = comettypes.GenesisDocFromFile(genFile) - if err != nil { - return nil, fmt.Errorf("failed to read genesis doc from file: %w", err) - } - } - - return doc, nil -} - -func initGenesisFile(path, moniker, amountStr string, accAddr sdk.AccAddress, params types.Params) error { - serverCtx := server.NewDefaultContext() - config := serverCtx.Config - - config.SetRoot(path) - config.Moniker = moniker - - coins, err := sdk.ParseCoinsNormalized(amountStr) - if err != nil { - return fmt.Errorf("failed to parse coins: %w", err) - } - - balances := banktypes.Balance{Address: accAddr.String(), Coins: coins.Sort()} - genAccount := authtypes.NewBaseAccount(accAddr, nil, 0, 0) - - genFile := config.GenesisFile() - appState, genDoc, err := genutiltypes.GenesisStateFromGenFile(genFile) - if err != nil { - return fmt.Errorf("failed to unmarshal genesis state: %w", err) - } - - authGenState := authtypes.GetGenesisStateFromAppState(cdc, appState) - - accs, err := authtypes.UnpackAccounts(authGenState.Accounts) - if err != nil { - return fmt.Errorf("failed to get accounts from any: %w", err) - } - - if accs.Contains(accAddr) { - return fmt.Errorf("failed to add account to genesis state; account already exists: %s", accAddr) - } - - // Add the new account to the set of genesis accounts and sanitize the - // accounts afterwards. - accs = append(accs, genAccount) - accs = authtypes.SanitizeGenesisAccounts(accs) - - genAccs, err := authtypes.PackAccounts(accs) - if err != nil { - return fmt.Errorf("failed to convert accounts into any's: %w", err) - } - - authGenState.Accounts = genAccs - - authGenStateBz, err := cdc.MarshalJSON(&authGenState) - if err != nil { - return fmt.Errorf("failed to marshal auth genesis state: %w", err) - } - - appState[authtypes.ModuleName] = authGenStateBz - - bankGenState := banktypes.GetGenesisStateFromAppState(cdc, appState) - bankGenState.Balances = append(bankGenState.Balances, balances) - bankGenState.Balances = banktypes.SanitizeGenesisBalances(bankGenState.Balances) - - bankGenStateBz, err := cdc.MarshalJSON(bankGenState) - if err != nil { - return fmt.Errorf("failed to marshal bank genesis state: %w", err) - } - - appState[banktypes.ModuleName] = bankGenStateBz - - builderGenState := types.GetGenesisStateFromAppState(cdc, appState) - builderGenState.Params = params - - builderGenStateBz, err := cdc.MarshalJSON(&builderGenState) - if err != nil { - return fmt.Errorf("failed to marshal builder genesis state: %w", err) - } - - appState[types.ModuleName] = builderGenStateBz - - appStateJSON, err := json.Marshal(appState) - if err != nil { - return fmt.Errorf("failed to marshal application genesis state: %w", err) - } - - genDoc.AppState = appStateJSON - return genutil.ExportGenesisFile(genDoc, genFile) -} diff --git a/tests/e2e/io.go b/tests/e2e/io.go deleted file mode 100644 index 837f29a..0000000 --- a/tests/e2e/io.go +++ /dev/null @@ -1,42 +0,0 @@ -package e2e - -import ( - "fmt" - "io" - "os" -) - -func copyFile(src, dst string) (int64, error) { - sourceFileStat, err := os.Stat(src) - if err != nil { - return 0, err - } - - if !sourceFileStat.Mode().IsRegular() { - return 0, fmt.Errorf("%s is not a regular file", src) - } - - source, err := os.Open(src) - if err != nil { - return 0, err - } - defer source.Close() - - destination, err := os.Create(dst) - if err != nil { - return 0, err - } - defer destination.Close() - - nBytes, err := io.Copy(destination, source) - return nBytes, err -} - -func writeFile(path string, body []byte) error { - _, err := os.Create(path) - if err != nil { - return err - } - - return os.WriteFile(path, body, 0o600) -} diff --git a/tests/e2e/keys.go b/tests/e2e/keys.go deleted file mode 100644 index 0d7f500..0000000 --- a/tests/e2e/keys.go +++ /dev/null @@ -1,19 +0,0 @@ -package e2e - -import ( - "github.com/cosmos/go-bip39" -) - -func createMnemonic() (string, error) { - entropySeed, err := bip39.NewEntropy(256) - if err != nil { - return "", err - } - - mnemonic, err := bip39.NewMnemonic(entropySeed) - if err != nil { - return "", err - } - - return mnemonic, nil -} diff --git a/tests/e2e/util.go b/tests/e2e/util.go deleted file mode 100644 index 5ee776d..0000000 --- a/tests/e2e/util.go +++ /dev/null @@ -1,45 +0,0 @@ -package e2e - -import ( - "fmt" - - "github.com/cosmos/cosmos-sdk/codec/unknownproto" - sdktx "github.com/cosmos/cosmos-sdk/types/tx" -) - -func decodeTx(txBytes []byte) (*sdktx.Tx, error) { - var raw sdktx.TxRaw - - // reject all unknown proto fields in the root TxRaw - err := unknownproto.RejectUnknownFieldsStrict(txBytes, &raw, encodingConfig.InterfaceRegistry) - if err != nil { - return nil, fmt.Errorf("failed to reject unknown fields: %w", err) - } - - if err := cdc.Unmarshal(txBytes, &raw); err != nil { - return nil, err - } - - var body sdktx.TxBody - if err := cdc.Unmarshal(raw.BodyBytes, &body); err != nil { - return nil, fmt.Errorf("failed to decode tx: %w", err) - } - - var authInfo sdktx.AuthInfo - - // reject all unknown proto fields in AuthInfo - err = unknownproto.RejectUnknownFieldsStrict(raw.AuthInfoBytes, &authInfo, encodingConfig.InterfaceRegistry) - if err != nil { - return nil, fmt.Errorf("failed to reject unknown fields: %w", err) - } - - if err := cdc.Unmarshal(raw.AuthInfoBytes, &authInfo); err != nil { - return nil, fmt.Errorf("failed to decode auth info: %w", err) - } - - return &sdktx.Tx{ - Body: &body, - AuthInfo: &authInfo, - Signatures: raw.Signatures, - }, nil -} diff --git a/tests/e2e/validator.go b/tests/e2e/validator.go deleted file mode 100644 index 00e5e7e..0000000 --- a/tests/e2e/validator.go +++ /dev/null @@ -1,292 +0,0 @@ -package e2e - -import ( - "context" - "encoding/json" - "fmt" - "os" - "path" - "path/filepath" - - "cosmossdk.io/math" - cometcfg "github.com/cometbft/cometbft/config" - "github.com/cometbft/cometbft/p2p" - "github.com/cometbft/cometbft/privval" - sdkcrypto "github.com/cosmos/cosmos-sdk/crypto" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/server" - sdk "github.com/cosmos/cosmos-sdk/types" - sdktx "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutilstypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/skip-mev/pob/tests/app" -) - -type validator struct { - chain *chain - index int - moniker string - mnemonic string - keyInfo keyring.Record - privateKey cryptotypes.PrivKey - consensusKey privval.FilePVKey - nodeKey p2p.NodeKey -} - -func (v *validator) instanceName() string { - return fmt.Sprintf("%s%d", v.moniker, v.index) -} - -func (v *validator) configDir() string { - return fmt.Sprintf("%s/%s", v.chain.configDir(), v.instanceName()) -} - -func (v *validator) createConfig() error { - p := path.Join(v.configDir(), "config") - return os.MkdirAll(p, 0o755) -} - -func (v *validator) init() error { - if err := v.createConfig(); err != nil { - return err - } - - serverCtx := server.NewDefaultContext() - config := serverCtx.Config - - config.SetRoot(v.configDir()) - config.Moniker = v.moniker - - genDoc, err := getGenDoc(v.configDir()) - if err != nil { - return err - } - - appState, err := json.MarshalIndent(app.ModuleBasics.DefaultGenesis(cdc), "", " ") - if err != nil { - return fmt.Errorf("failed to JSON encode app genesis state: %w", err) - } - - genDoc.ChainID = v.chain.id - genDoc.Validators = nil - genDoc.AppState = appState - - if err := genDoc.SaveAs(config.GenesisFile()); err != nil { - return err - } - - genAppState, err := genutilstypes.AppGenesisFromFile(config.GenesisFile()) - if err != nil { - return fmt.Errorf("failed to unmarshal genesis state: %w", err) - } - - if err = genutil.ExportGenesisFile(genAppState, config.GenesisFile()); err != nil { - return fmt.Errorf("failed to export app genesis state: %w", err) - } - - cometcfg.WriteConfigFile(filepath.Join(config.RootDir, "config", "config.toml"), config) - return nil -} - -func (v *validator) createNodeKey() error { - serverCtx := server.NewDefaultContext() - config := serverCtx.Config - - config.SetRoot(v.configDir()) - config.Moniker = v.moniker - - nodeKey, err := p2p.LoadOrGenNodeKey(config.NodeKeyFile()) - if err != nil { - return err - } - - v.nodeKey = *nodeKey - return nil -} - -func (v *validator) createConsensusKey() error { - serverCtx := server.NewDefaultContext() - config := serverCtx.Config - - config.SetRoot(v.configDir()) - config.Moniker = v.moniker - - pvKeyFile := config.PrivValidatorKeyFile() - if err := os.MkdirAll(filepath.Dir(pvKeyFile), 0o777); err != nil { - return fmt.Errorf("could not create directory %q: %w", filepath.Dir(pvKeyFile), err) - } - - pvStateFile := config.PrivValidatorStateFile() - if err := os.MkdirAll(filepath.Dir(pvStateFile), 0o777); err != nil { - return fmt.Errorf("could not create directory %q: %w", filepath.Dir(pvStateFile), err) - } - - filePV := privval.LoadOrGenFilePV(pvKeyFile, pvStateFile) - v.consensusKey = filePV.Key - - return nil -} - -func (v *validator) createKeyFromMnemonic(name, mnemonic string) error { - kb, err := keyring.New(keyringAppName, keyring.BackendTest, v.configDir(), nil, cdc) - if err != nil { - return err - } - - keyringAlgos, _ := kb.SupportedAlgorithms() - algo, err := keyring.NewSigningAlgoFromString(string(hd.Secp256k1Type), keyringAlgos) - if err != nil { - return err - } - - info, err := kb.NewAccount(name, mnemonic, "", sdk.FullFundraiserPath, algo) - if err != nil { - return err - } - - privKeyArmor, err := kb.ExportPrivKeyArmor(name, keyringPassphrase) - if err != nil { - return err - } - - privKey, _, err := sdkcrypto.UnarmorDecryptPrivKey(privKeyArmor, keyringPassphrase) - if err != nil { - return err - } - - v.keyInfo = *info - v.mnemonic = mnemonic - v.privateKey = privKey - - return nil -} - -func (v *validator) createKey(name string) error { - mnemonic, err := createMnemonic() - if err != nil { - return err - } - - return v.createKeyFromMnemonic(name, mnemonic) -} - -func (v *validator) buildCreateValidatorMsg(amount sdk.Coin) (sdk.Msg, error) { - description := stakingtypes.NewDescription(v.moniker, "", "", "", "") - commissionRates := stakingtypes.CommissionRates{ - Rate: math.LegacyMustNewDecFromStr("0.1"), - MaxRate: math.LegacyMustNewDecFromStr("0.2"), - MaxChangeRate: math.LegacyMustNewDecFromStr("0.01"), - } - - // get the initial validator min self delegation - minSelfDelegation := math.NewInt(1) - - valPubKey, err := cryptocodec.FromCmtPubKeyInterface(v.consensusKey.PubKey) - if err != nil { - return nil, err - } - valAddr, err := v.keyInfo.GetAddress() - if err != nil { - return nil, err - } - - return stakingtypes.NewMsgCreateValidator( - sdk.ValAddress(valAddr), - valPubKey, - amount, - description, - commissionRates, - minSelfDelegation, - ) -} - -func (v *validator) signMsg(msgs ...sdk.Msg) (*sdktx.Tx, error) { - txBuilder := encodingConfig.TxConfig.NewTxBuilder() - - if err := txBuilder.SetMsgs(msgs...); err != nil { - return nil, err - } - - txBuilder.SetMemo(fmt.Sprintf("%s@%s:26656", v.nodeKey.ID(), v.instanceName())) - txBuilder.SetFeeAmount(sdk.NewCoins()) - txBuilder.SetGasLimit(200_000) - - pubKey, err := v.keyInfo.GetPubKey() - if err != nil { - return nil, err - } - - signerData := authsigning.SignerData{ - ChainID: v.chain.id, - AccountNumber: 0, - Sequence: 0, - PubKey: pubKey, - } - - // For SIGN_MODE_DIRECT, calling SetSignatures calls setSignerInfos on - // TxBuilder under the hood, and SignerInfos is needed to generate the sign - // bytes. This is the reason for setting SetSignatures here, with a nil - // signature. - // - // Note: This line is not needed for SIGN_MODE_LEGACY_AMINO, but putting it - // also doesn't affect its generated sign bytes, so for code's simplicity - // sake, we put it here. - if err != nil { - return nil, err - } - - sig := signing.SignatureV2{ - PubKey: pubKey, - Data: &signing.SingleSignatureData{ - SignMode: signing.SignMode_SIGN_MODE_DIRECT, - Signature: nil, - }, - Sequence: 0, - } - - if err := txBuilder.SetSignatures(sig); err != nil { - return nil, err - } - - bytesToSign, err := authsigning.GetSignBytesAdapter( - context.Background(), - encodingConfig.TxConfig.SignModeHandler(), - signing.SignMode_SIGN_MODE_DIRECT, - signerData, - txBuilder.GetTx(), - ) - if err != nil { - return nil, err - } - - sigBytes, err := v.privateKey.Sign(bytesToSign) - if err != nil { - return nil, err - } - - sig = signing.SignatureV2{ - PubKey: pubKey, - Data: &signing.SingleSignatureData{ - SignMode: signing.SignMode_SIGN_MODE_DIRECT, - Signature: sigBytes, - }, - Sequence: 0, - } - if err := txBuilder.SetSignatures(sig); err != nil { - return nil, err - } - - signedTx := txBuilder.GetTx() - bz, err := encodingConfig.TxConfig.TxEncoder()(signedTx) - if err != nil { - return nil, err - } - - return decodeTx(bz) -} diff --git a/tests/integration/chain_setup.go b/tests/integration/chain_setup.go new file mode 100644 index 0000000..5c94024 --- /dev/null +++ b/tests/integration/chain_setup.go @@ -0,0 +1,341 @@ +package integration + +import ( + "context" + "encoding/hex" + "encoding/json" + "strings" + "testing" + "time" + + rpctypes "github.com/cometbft/cometbft/rpc/core/types" + comettypes "github.com/cometbft/cometbft/types" + "github.com/cosmos/cosmos-sdk/client/tx" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + buildertypes "github.com/skip-mev/pob/x/builder/types" + interchaintest "github.com/strangelove-ventures/interchaintest/v7" + "github.com/strangelove-ventures/interchaintest/v7/chain/cosmos" + "github.com/strangelove-ventures/interchaintest/v7/ibc" + "github.com/strangelove-ventures/interchaintest/v7/testutil" + "github.com/stretchr/testify/require" + "go.uber.org/zap/zaptest" + "golang.org/x/sync/errgroup" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" +) + +// ChainBuilderFromChainSpec creates an interchaintest chain builder factory given a ChainSpec +// and returns the associated chain +func ChainBuilderFromChainSpec(t *testing.T, spec *interchaintest.ChainSpec) ibc.Chain { + // require that NumFullNodes == NumValidators == 4 + require.Equal(t, *spec.NumValidators, 4) + + cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{spec}) + + chains, err := cf.Chains(t.Name()) + require.NoError(t, err) + + require.Len(t, chains, 1) + chain := chains[0] + + _, ok := chain.(*cosmos.CosmosChain) + require.True(t, ok) + + return chain +} + +// BuildPOBInterchain creates a new Interchain testing env with the configured POB CosmosChain +func BuildPOBInterchain(t *testing.T, ctx context.Context, chain ibc.Chain) *interchaintest.Interchain { + ic := interchaintest.NewInterchain() + ic.AddChain(chain) + + // create docker network + client, networkID := interchaintest.DockerSetup(t) + + ctx, cancel := context.WithTimeout(ctx, 2*time.Minute) + defer cancel() + + // build the interchain + err := ic.Build(ctx, nil, interchaintest.InterchainBuildOptions{ + SkipPathCreation: true, + Client: client, + NetworkID: networkID, + TestName: t.Name(), + }) + require.NoError(t, err) + + return ic +} + +// CreateTx creates a new transaction to be signed by the given user, including a provided set of messages +func CreateTx(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user cosmos.User, seqIncrement, height uint64, GasPrice int64, msgs ...sdk.Msg) []byte { + // create a broadcaster + broadcaster := cosmos.NewBroadcaster(t, chain) + + // create tx factory + Client Context + txf, err := broadcaster.GetFactory(ctx, user) + require.NoError(t, err) + + cc, err := broadcaster.GetClientContext(ctx, user) + require.NoError(t, err) + + txf, err = txf.Prepare(cc) + require.NoError(t, err) + + // set timeout height + if height != 0 { + txf = txf.WithTimeoutHeight(height) + } + + // get gas for tx + _, gas, err := tx.CalculateGas(cc, txf, msgs...) + require.NoError(t, err) + txf.WithGas(gas) + + // update sequence number + txf = txf.WithSequence(txf.Sequence() + seqIncrement) + txf = txf.WithGasPrices(sdk.NewDecCoins(sdk.NewDecCoin(chain.Config().Denom, sdk.NewInt(GasPrice))).String()) + + // sign the tx + txBuilder, err := txf.BuildUnsignedTx(msgs...) + require.NoError(t, err) + + require.NoError(t, tx.Sign(txf, cc.GetFromName(), txBuilder, true)) + + // encode and return + bz, err := cc.TxConfig.TxEncoder()(txBuilder.GetTx()) + require.NoError(t, err) + return bz +} + +// SimulateTx simulates the provided messages, and checks whether the provided failure condition is met +func SimulateTx(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user cosmos.User, height uint64, expectFail bool, msgs ...sdk.Msg) { + // create a broadcaster + broadcaster := cosmos.NewBroadcaster(t, chain) + + // create tx factory + Client Context + txf, err := broadcaster.GetFactory(ctx, user) + require.NoError(t, err) + + cc, err := broadcaster.GetClientContext(ctx, user) + require.NoError(t, err) + + txf, err = txf.Prepare(cc) + require.NoError(t, err) + + // set timeout height + if height != 0 { + txf = txf.WithTimeoutHeight(height) + } + + // get gas for tx + _, _, err = tx.CalculateGas(cc, txf, msgs...) + require.Equal(t, err != nil, expectFail) +} + +type Tx struct { + User cosmos.User + Msgs []sdk.Msg + GasPrice int64 + SequenceIncrement uint64 + Height uint64 + SkipInclusionCheck bool + ExpectFail bool +} + +// CreateAuctionBidMsg creates a new AuctionBid tx signed by the given user, the order of txs in the MsgAuctionBid will be determined by the contents + order of the MessageForUsers +func CreateAuctionBidMsg(t *testing.T, ctx context.Context, searcher cosmos.User, chain *cosmos.CosmosChain, bid sdk.Coin, txsPerUser []Tx) (*buildertypes.MsgAuctionBid, [][]byte) { + // for each MessagesForUser get the signed bytes + txs := make([][]byte, len(txsPerUser)) + for i, tx := range txsPerUser { + txs[i] = CreateTx(t, ctx, chain, tx.User, tx.SequenceIncrement, tx.Height, tx.GasPrice, tx.Msgs...) + } + + bech32SearcherAddress := searcher.FormattedAddress() + accAddr, err := sdk.AccAddressFromBech32(bech32SearcherAddress) + require.NoError(t, err) + + // create a message auction bid + return buildertypes.NewMsgAuctionBid( + accAddr, + bid, + txs, + ), txs +} + +// BroadcastTxs broadcasts the given messages for each user. This function returns the broadcasted txs. If a message +// is not expected to be included in a block, set SkipInclusionCheck to true and the method +// will not block on the tx's inclusion in a block, otherwise this method will block on the tx's inclusion +func BroadcastTxs(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, msgsPerUser []Tx) [][]byte { + txs := make([][]byte, len(msgsPerUser)) + + for i, msg := range msgsPerUser { + txs[i] = CreateTx(t, ctx, chain, msg.User, msg.SequenceIncrement, msg.Height, msg.GasPrice, msg.Msgs...) + } + + // broadcast each tx + require.True(t, len(chain.Nodes()) > 0) + client := chain.Nodes()[0].Client + + for i, tx := range txs { + // broadcast tx + _, err := client.BroadcastTxSync(ctx, tx) + + // check execution was successful + if !msgsPerUser[i].ExpectFail { + require.NoError(t, err) + } else { + require.Error(t, err) + + } + + } + + // block on all txs being included in block + eg := errgroup.Group{} + for i, tx := range txs { + // if we don't expect this tx to be included.. skip it + if msgsPerUser[i].SkipInclusionCheck || msgsPerUser[i].ExpectFail { + continue + } + + tx := tx // pin + eg.Go(func() error { + return testutil.WaitForCondition(4*time.Second, 500*time.Millisecond, func() (bool, error) { + res, err := client.Tx(context.Background(), comettypes.Tx(tx).Hash(), false) + + if err != nil || res.TxResult.Code != uint32(0) { + return false, nil + } + return true, nil + }) + }) + } + + require.NoError(t, eg.Wait()) + + return txs +} + +// QueryBuilderParams queries the x/builder module's params +func QueryBuilderParams(t *testing.T, chain ibc.Chain) buildertypes.Params { + // cast chain to cosmos-chain + cosmosChain, ok := chain.(*cosmos.CosmosChain) + require.True(t, ok) + // get nodes + nodes := cosmosChain.Nodes() + require.True(t, len(nodes) > 0) + // make params query to first node + resp, _, err := nodes[0].ExecQuery(context.Background(), "builder", "params") + require.NoError(t, err) + + // unmarshal params + var params buildertypes.Params + err = json.Unmarshal(resp, ¶ms) + require.NoError(t, err) + return params +} + +// QueryValidators queries for all of the network's validators +func QueryValidators(t *testing.T, chain *cosmos.CosmosChain) []sdk.ValAddress { + // get grpc client of the node + grpcAddr := chain.GetHostGRPCAddress() + cc, err := grpc.Dial(grpcAddr, grpc.WithTransportCredentials(insecure.NewCredentials())) + + require.NoError(t, err) + + client := stakingtypes.NewQueryClient(cc) + + // query validators + resp, err := client.Validators(context.Background(), &stakingtypes.QueryValidatorsRequest{}) + require.NoError(t, err) + + addrs := make([]sdk.ValAddress, len(resp.Validators)) + + // unmarshal validators + for i, val := range resp.Validators { + addrBz, err := sdk.GetFromBech32(val.OperatorAddress, chain.Config().Bech32Prefix+sdk.PrefixValidator+sdk.PrefixOperator) + require.NoError(t, err) + + addrs[i] = sdk.ValAddress(addrBz) + } + return addrs +} + +// QueryAccountBalance queries a given account's balance on the chain +func QueryAccountBalance(t *testing.T, chain ibc.Chain, address, denom string) int64 { + // cast the chain to a cosmos-chain + cosmosChain, ok := chain.(*cosmos.CosmosChain) + require.True(t, ok) + // get nodes + balance, err := cosmosChain.GetBalance(context.Background(), address, denom) + require.NoError(t, err) + return balance +} + +// QueryAccountSequence +func QueryAccountSequence(t *testing.T, chain *cosmos.CosmosChain, address string) uint64 { + // get nodes + nodes := chain.Nodes() + require.True(t, len(nodes) > 0) + + resp, _, err := nodes[0].ExecQuery(context.Background(), "auth", "account", address) + require.NoError(t, err) + // unmarshal json response + var accResp codectypes.Any + require.NoError(t, json.Unmarshal(resp, &accResp)) + + // unmarshal into baseAccount + var acc authtypes.BaseAccount + require.NoError(t, acc.Unmarshal(accResp.Value)) + + return acc.GetSequence() +} + +// Block returns the block at the given height +func Block(t *testing.T, chain *cosmos.CosmosChain, height int64) *rpctypes.ResultBlock { + // get nodes + nodes := chain.Nodes() + require.True(t, len(nodes) > 0) + + client := nodes[0].Client + + resp, err := client.Block(context.Background(), &height) + require.NoError(t, err) + + return resp +} + +// WaitForHeight waits for the chain to reach the given height +func WaitForHeight(t *testing.T, chain *cosmos.CosmosChain, height uint64) { + // wait for next height + err := testutil.WaitForCondition(30*time.Second, time.Second, func() (bool, error) { + pollHeight, err := chain.Height(context.Background()) + if err != nil { + return false, err + } + return pollHeight == height, nil + }) + require.NoError(t, err) +} + +// VerifyBlock takes a Block and verifies that it contains the given bid at the 0-th index, and the bundled txs immediately after +func VerifyBlock(t *testing.T, block *rpctypes.ResultBlock, offset int, bidTxHash string, txs [][]byte) { + // verify the block + if bidTxHash != "" { + require.Equal(t, bidTxHash, TxHash(block.Block.Data.Txs[offset])) + offset += 1 + } + + // verify the txs in sequence + for i, tx := range txs { + require.Equal(t, TxHash(tx), TxHash(block.Block.Data.Txs[i+offset])) + } +} + +func TxHash(tx []byte) string { + return strings.ToUpper(hex.EncodeToString(comettypes.Tx(tx).Hash())) +} diff --git a/tests/integration/go.mod b/tests/integration/go.mod new file mode 100644 index 0000000..b6f9227 --- /dev/null +++ b/tests/integration/go.mod @@ -0,0 +1,246 @@ +module github.com/skip-mev/pob/tests/integration + +go 1.20 + +replace ( + // interchaintest supports ICS features so we need this for now + // github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.45.13-ics + github.com/ChainSafe/go-schnorrkel => github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d + github.com/ChainSafe/go-schnorrkel/1 => github.com/ChainSafe/go-schnorrkel v1.0.0 + github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.22.2 //indirect + github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 + + github.com/vedhavyas/go-subkey => github.com/strangelove-ventures/go-subkey v1.0.7 + +) + +require ( + cosmossdk.io/api v0.3.1 // indirect + cosmossdk.io/core v0.5.1 // indirect + cosmossdk.io/depinject v1.0.0-alpha.3 // indirect + cosmossdk.io/errors v1.0.0 // indirect + cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca // indirect + cosmossdk.io/math v1.0.1 // indirect + cosmossdk.io/tools/rosetta v0.2.1 // indirect + github.com/cosmos/cosmos-sdk v0.47.4 + github.com/skip-mev/pob v1.0.3 // reference local + github.com/strangelove-ventures/interchaintest/v7 v7.0.0-20230721183422-fb937bb0e165 + github.com/stretchr/testify v1.8.4 + go.uber.org/zap v1.24.0 + golang.org/x/sync v0.3.0 +) + +require ( + github.com/cometbft/cometbft v0.37.2 + google.golang.org/grpc v1.56.2 +) + +require ( + cloud.google.com/go v0.110.4 // indirect + cloud.google.com/go/compute v1.20.1 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v1.1.0 // indirect + cloud.google.com/go/storage v1.30.1 // indirect + filippo.io/edwards25519 v1.0.0 // indirect + github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect + github.com/99designs/keyring v1.2.2 // indirect + github.com/BurntSushi/toml v1.3.2 // indirect + github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect + github.com/ChainSafe/go-schnorrkel/1 v0.0.0-00010101000000-000000000000 // indirect + github.com/ComposableFi/go-subkey/v2 v2.0.0-tm03420 // indirect + github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e // indirect + github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec // indirect + github.com/Microsoft/go-winio v0.6.0 // indirect + github.com/StirlingMarketingGroup/go-namecase v1.0.0 // indirect + github.com/armon/go-metrics v0.4.1 // indirect + github.com/avast/retry-go/v4 v4.3.4 // indirect + github.com/aws/aws-sdk-go v1.44.203 // indirect + github.com/benbjohnson/clock v1.3.0 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect + github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/chzyer/readline v1.5.1 // indirect + github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect + github.com/cometbft/cometbft-db v0.8.0 // indirect + github.com/confio/ics23/go v0.9.0 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/gogoproto v1.4.10 // indirect + github.com/cosmos/iavl v0.20.0 // indirect + github.com/cosmos/ibc-go/v7 v7.2.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.12.1 // indirect + github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect + github.com/creachadair/taskgroup v0.4.2 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/deckarep/golang-set v1.8.0 // indirect + github.com/decred/base58 v1.0.4 // indirect + github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect + github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect + github.com/dgraph-io/badger/v2 v2.2007.4 // indirect + github.com/dgraph-io/ristretto v0.1.1 // indirect + github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect + github.com/docker/distribution v2.8.2+incompatible // indirect + github.com/docker/docker v24.0.4+incompatible // indirect + github.com/docker/go-connections v0.4.0 // indirect + github.com/docker/go-units v0.5.0 // indirect + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/dvsekhvalnov/jose2go v1.5.0 // indirect + github.com/ethereum/go-ethereum v1.10.20 // indirect + github.com/felixge/httpsnoop v1.0.2 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/go-stack/stack v1.8.1 // indirect + github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect + github.com/gogo/googleapis v1.4.1 // indirect + github.com/gogo/protobuf v1.3.3 // indirect + github.com/golang/glog v1.1.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/mock v1.6.0 // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/snappy v0.0.4 // indirect + github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.5.9 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/google/s2a-go v0.1.4 // indirect + github.com/google/uuid v1.3.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect + github.com/googleapis/gax-go/v2 v2.11.0 // indirect + github.com/gorilla/handlers v1.5.1 // indirect + github.com/gorilla/mux v1.8.0 // indirect + github.com/gorilla/websocket v1.5.0 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect + github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect + github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect + github.com/gtank/merlin v0.1.1 // indirect + github.com/gtank/ristretto255 v0.1.2 // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-getter v1.7.1 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-safetemp v1.0.0 // indirect + github.com/hashicorp/go-version v1.6.0 // indirect + github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hdevalence/ed25519consensus v0.1.0 // indirect + github.com/huandu/skiplist v1.2.0 // indirect + github.com/icza/dyno v0.0.0-20220812133438-f0b6f8a18845 // indirect + github.com/improbable-eng/grpc-web v0.15.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/ipfs/go-cid v0.2.0 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/jmhodges/levigo v1.0.0 // indirect + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect + github.com/klauspost/compress v1.16.3 // indirect + github.com/klauspost/cpuid/v2 v2.2.3 // indirect + github.com/lib/pq v1.10.7 // indirect + github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/libp2p/go-libp2p v0.22.0 // indirect + github.com/libp2p/go-openssl v0.1.0 // indirect + github.com/linxGnu/grocksdb v1.7.16 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/manifoldco/promptui v0.9.0 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-pointer v0.0.1 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect + github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/minio/sha256-simd v1.0.0 // indirect + github.com/misko9/go-substrate-rpc-client/v4 v4.0.0-20230413215336-5bd2aea337ae // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/mr-tron/base58 v1.2.0 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/multiformats/go-base32 v0.0.4 // indirect + github.com/multiformats/go-base36 v0.1.0 // indirect + github.com/multiformats/go-multiaddr v0.6.0 // indirect + github.com/multiformats/go-multibase v0.1.1 // indirect + github.com/multiformats/go-multicodec v0.5.0 // indirect + github.com/multiformats/go-multihash v0.2.1 // indirect + github.com/multiformats/go-varint v0.0.6 // indirect + github.com/opencontainers/go-digest v1.0.0 // indirect + github.com/opencontainers/image-spec v1.1.0-rc2 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.9 // indirect + github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect + github.com/pierrec/xxHash v0.1.5 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_golang v1.15.0 // indirect + github.com/prometheus/client_model v0.3.0 // indirect + github.com/prometheus/common v0.42.0 // indirect + github.com/prometheus/procfs v0.9.0 // indirect + github.com/rakyll/statik v0.1.7 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/rs/zerolog v1.29.1 // indirect + github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect + github.com/spaolacci/murmur3 v1.1.0 // indirect + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/cast v1.5.1 // indirect + github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.16.0 // indirect + github.com/subosito/gotenv v1.4.2 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/btree v1.6.0 // indirect + github.com/tyler-smith/go-bip32 v1.0.0 // indirect + github.com/tyler-smith/go-bip39 v1.1.0 // indirect + github.com/ulikunitz/xz v0.5.11 // indirect + github.com/zondax/hid v0.9.1 // indirect + github.com/zondax/ledger-go v0.14.1 // indirect + go.etcd.io/bbolt v1.3.7 // indirect + go.opencensus.io v0.24.0 // indirect + go.uber.org/atomic v1.10.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/crypto v0.11.0 // indirect + golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect + golang.org/x/mod v0.12.0 // indirect + golang.org/x/net v0.12.0 // indirect + golang.org/x/oauth2 v0.8.0 // indirect + golang.org/x/sys v0.10.0 // indirect + golang.org/x/term v0.10.0 // indirect + golang.org/x/text v0.11.0 // indirect + golang.org/x/tools v0.11.0 // indirect + golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect + google.golang.org/api v0.126.0 // indirect + google.golang.org/appengine v1.6.7 // indirect + google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect + google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + lukechampine.com/blake3 v1.1.7 // indirect + lukechampine.com/uint128 v1.2.0 // indirect + modernc.org/cc/v3 v3.40.0 // indirect + modernc.org/ccgo/v3 v3.16.13 // indirect + modernc.org/libc v1.22.5 // indirect + modernc.org/mathutil v1.5.0 // indirect + modernc.org/memory v1.5.0 // indirect + modernc.org/opt v0.1.3 // indirect + modernc.org/sqlite v1.24.0 // indirect + modernc.org/strutil v1.1.3 // indirect + modernc.org/token v1.0.1 // indirect + nhooyr.io/websocket v1.8.6 // indirect + pgregory.net/rapid v0.5.5 // indirect + sigs.k8s.io/yaml v1.3.0 // indirect +) diff --git a/tests/integration/go.sum b/tests/integration/go.sum new file mode 100644 index 0000000..5432293 --- /dev/null +++ b/tests/integration/go.sum @@ -0,0 +1,1764 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.110.4 h1:1JYyxKMN9hd5dR2MYTPWkGUgcoxVVhg0LKNKEo0qvmk= +cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI= +cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= +cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= +cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/compute v1.20.1 h1:6aKEtlUiwEpJzM001l0yFkpXmUVXaN8W+fbkb2AZNbg= +cloud.google.com/go/compute v1.20.1/go.mod h1:4tCnrn48xsqlwSAiLf1HXMQk8CONslYbdiEZc9FEIbM= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= +cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= +cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= +cloud.google.com/go/iam v1.1.0 h1:67gSqaPukx7O8WLLHMa0PNs3EBGd2eE4d+psbO/CO94= +cloud.google.com/go/iam v1.1.0/go.mod h1:nxdHjaKfCr7fNYx/HJMM8LgiMugmveWlkatear5gVyk= +cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= +cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= +cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= +cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= +cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= +cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= +cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cosmossdk.io/api v0.3.1 h1:NNiOclKRR0AOlO4KIqeaG6PS6kswOMhHD0ir0SscNXE= +cosmossdk.io/api v0.3.1/go.mod h1:DfHfMkiNA2Uhy8fj0JJlOCYOBp4eWUUJ1te5zBGNyIw= +cosmossdk.io/core v0.5.1 h1:vQVtFrIYOQJDV3f7rw4pjjVqc1id4+mE0L9hHP66pyI= +cosmossdk.io/core v0.5.1/go.mod h1:KZtwHCLjcFuo0nmDc24Xy6CRNEL9Vl/MeimQ2aC7NLE= +cosmossdk.io/depinject v1.0.0-alpha.3 h1:6evFIgj//Y3w09bqOUOzEpFj5tsxBqdc5CfkO7z+zfw= +cosmossdk.io/depinject v1.0.0-alpha.3/go.mod h1:eRbcdQ7MRpIPEM5YUJh8k97nxHpYbc3sMUnEtt8HPWU= +cosmossdk.io/errors v1.0.0 h1:nxF07lmlBbB8NKQhtJ+sJm6ef5uV1XkvPXG2bUntb04= +cosmossdk.io/errors v1.0.0/go.mod h1:+hJZLuhdDE0pYN8HkOrVNwrIOYvUGnn6+4fjnJs/oV0= +cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca h1:msenprh2BLLRwNT7zN56TbBHOGk/7ARQckXHxXyvjoQ= +cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca/go.mod h1:PkIAKXZvaxrTRc++z53XMRvFk8AcGGWYHcMIPzVYX9c= +cosmossdk.io/math v1.0.1 h1:Qx3ifyOPaMLNH/89WeZFH268yCvU4xEcnPLu3sJqPPg= +cosmossdk.io/math v1.0.1/go.mod h1:Ygz4wBHrgc7g0N+8+MrnTfS9LLn9aaTGa9hKopuym5k= +cosmossdk.io/tools/rosetta v0.2.1 h1:ddOMatOH+pbxWbrGJKRAawdBkPYLfKXutK9IETnjYxw= +cosmossdk.io/tools/rosetta v0.2.1/go.mod h1:Pqdc1FdvkNV3LcNIkYWt2RQY6IP1ge6YWZk8MhhO9Hw= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= +github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= +github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= +github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= +github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg= +github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4= +github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRrLeDnvGIM= +github.com/ChainSafe/go-schnorrkel v1.0.0/go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z7vcchBSbMBEhCw4= +github.com/ComposableFi/go-subkey/v2 v2.0.0-tm03420 h1:oknQF/iIhf5lVjbwjsVDzDByupRhga8nhA3NAmwyHDA= +github.com/ComposableFi/go-subkey/v2 v2.0.0-tm03420/go.mod h1:KYkiMX5AbOlXXYfxkrYPrRPV6EbVUALTQh5ptUOJzu8= +github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e h1:ahyvB3q25YnZWly5Gq1ekg6jcmWaGj/vG/MhF4aisoc= +github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e/go.mod h1:kGUqhHd//musdITWjFvNTHn90WG9bMLBEPQZ17Cmlpw= +github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec h1:1Qb69mGp/UtRPn422BH4/Y4Q3SLUrD9KHuDkm8iodFc= +github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec/go.mod h1:CD8UlnlLDiqb36L110uqiP2iSflVjx9g/3U9hCI4q2U= +github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/Microsoft/go-winio v0.6.0 h1:slsWYD/zyx7lCXoZVlvQrj0hPTM1HI4+v1sIda2yDvg= +github.com/Microsoft/go-winio v0.6.0/go.mod h1:cTAf44im0RAYeL23bpB+fzCyDH2MJiz2BO69KH/soAE= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8= +github.com/StirlingMarketingGroup/go-namecase v1.0.0 h1:2CzaNtCzc4iNHirR+5ru9OzGg8rQp860gqLBFqRI02Y= +github.com/StirlingMarketingGroup/go-namecase v1.0.0/go.mod h1:ZsoSKcafcAzuBx+sndbxHu/RjDcDTrEdT4UvhniHfio= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= +github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= +github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= +github.com/alecthomas/participle/v2 v2.0.0-alpha7 h1:cK4vjj0VSgb3lN1nuKA5F7dw+1s1pWBe5bx7nNCnN+c= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-metrics v0.4.1 h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA= +github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= +github.com/avast/retry-go/v4 v4.3.4 h1:pHLkL7jvCvP317I8Ge+Km2Yhntv3SdkJm7uekkqbKhM= +github.com/avast/retry-go/v4 v4.3.4/go.mod h1:rv+Nla6Vk3/ilU0H51VHddWHiwimzX66yZ0JT6T+UvE= +github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/aws-sdk-go v1.44.203 h1:pcsP805b9acL3wUqa4JR2vg1k2wnItkDYNvfmcy6F+U= +github.com/aws/aws-sdk-go v1.44.203/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= +github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas= +github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= +github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.1.2 h1:XLMbX8JQEiwMcYft2EGi8zPUkoa0abKIU6/BJSRsjzQ= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= +github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= +github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= +github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= +github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= +github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cmars/basen v0.0.0-20150613233007-fe3947df716e h1:0XBUw73chJ1VYSsfvcPvVT7auykAJce9FpRr10L6Qhw= +github.com/cmars/basen v0.0.0-20150613233007-fe3947df716e/go.mod h1:P13beTBKr5Q18lJe1rIoLUqjM+CB1zYrRg44ZqGuQSA= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= +github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONNbHU7MuEHboiFuA= +github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= +github.com/cometbft/cometbft v0.37.2 h1:XB0yyHGT0lwmJlFmM4+rsRnczPlHoAKFX6K8Zgc2/Jc= +github.com/cometbft/cometbft v0.37.2/go.mod h1:Y2MMMN//O5K4YKd8ze4r9jmk4Y7h0ajqILXbH5JQFVs= +github.com/cometbft/cometbft-db v0.8.0 h1:vUMDaH3ApkX8m0KZvOFFy9b5DZHBAjsnEuo9AKVZpjo= +github.com/cometbft/cometbft-db v0.8.0/go.mod h1:6ASCP4pfhmrCBpfk01/9E1SI29nD3HfVHrY4PG8x5c0= +github.com/confio/ics23/go v0.9.0 h1:cWs+wdbS2KRPZezoaaj+qBleXgUk5WOQFMP3CQFGTr4= +github.com/confio/ics23/go v0.9.0/go.mod h1:4LPZ2NYqnYIVRklaozjNR1FScgDJ2s5Xrp+e/mYVRak= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= +github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= +github.com/cosmos/cosmos-proto v1.0.0-beta.2 h1:X3OKvWgK9Gsejo0F1qs5l8Qn6xJV/AzgIWR2wZ8Nua8= +github.com/cosmos/cosmos-proto v1.0.0-beta.2/go.mod h1:+XRCLJ14pr5HFEHIUcn51IKXD1Fy3rkEQqt4WqmN4V0= +github.com/cosmos/cosmos-sdk v0.47.4 h1:FVUpEprm58nMmBX4xkRdMDaIG5Nr4yy92HZAfGAw9bg= +github.com/cosmos/cosmos-sdk v0.47.4/go.mod h1:R5n+uM7vguVPFap4pgkdvQCT1nVo/OtPwrlAU40rvok= +github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= +github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= +github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= +github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= +github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= +github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= +github.com/cosmos/gogoproto v1.4.10 h1:QH/yT8X+c0F4ZDacDv3z+xE3WU1P1Z3wQoLMBRJoKuI= +github.com/cosmos/gogoproto v1.4.10/go.mod h1:3aAZzeRWpAwr+SS/LLkICX2/kDFyaYVzckBDzygIxek= +github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38= +github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A= +github.com/cosmos/ibc-go/v7 v7.2.0 h1:dx0DLUl7rxdyZ8NiT6UsrbzKOJx/w7s+BOaewFRH6cg= +github.com/cosmos/ibc-go/v7 v7.2.0/go.mod h1:OOcjKIRku/j1Xs1RgKK0yvKRrJ5iFuZYMetR1n3yMlc= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/ledger-cosmos-go v0.12.1 h1:sMBxza5p/rNK/06nBSNmsI/WDqI0pVJFVNihy1Y984w= +github.com/cosmos/ledger-cosmos-go v0.12.1/go.mod h1:dhO6kj+Y+AHIOgAe4L9HL/6NDdyyth4q238I9yFpD2g= +github.com/cosmos/rosetta-sdk-go v0.10.0 h1:E5RhTruuoA7KTIXUcMicL76cffyeoyvNybzUGSKFTcM= +github.com/cosmos/rosetta-sdk-go v0.10.0/go.mod h1:SImAZkb96YbwvoRkzSMQB6noNJXFgWl/ENIznEoYQI4= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creachadair/taskgroup v0.4.2 h1:jsBLdAJE42asreGss2xZGZ8fJra7WtwnHWeJFxv2Li8= +github.com/creachadair/taskgroup v0.4.2/go.mod h1:qiXUOSrbwAY3u0JPGTzObbE3yf9hcXHDKBZ2ZjpCbgM= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0= +github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts= +github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= +github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +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/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4= +github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo= +github.com/decred/base58 v1.0.4 h1:QJC6B0E0rXOPA8U/kw2rP+qiRJsUaE2Er+pYb3siUeA= +github.com/decred/base58 v1.0.4/go.mod h1:jJswKPEdvpFpvf7dsDvFZyLT22xZ9lWqEByX38oGd9E= +github.com/decred/dcrd/chaincfg/chainhash v1.0.2 h1:rt5Vlq/jM3ZawwiacWjPa+smINyLRN07EO0cNBV6DGU= +github.com/decred/dcrd/chaincfg/chainhash v1.0.2/go.mod h1:BpbrGgrPTr3YJYRN3Bm+D9NuaFd+zGyNeIKgrhCXK60= +github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= +github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.1 h1:18HurQ6DfHeNvwIjvOmrgr44bPdtVaQAe/WWwHg9goM= +github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.1/go.mod h1:XmyzkaXBy7ZvHdrTAlXAjpog8qKSAWa3ze7yqzWmgmc= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= +github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= +github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= +github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= +github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8= +github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= +github.com/docker/docker v24.0.4+incompatible h1:s/LVDftw9hjblvqIeTiGYXBCD95nOEEl7qRsRrIOuQI= +github.com/docker/docker v24.0.4+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/dvsekhvalnov/jose2go v1.5.0 h1:3j8ya4Z4kMCwT5nXIKFSV84YS+HdqSSO0VsTQxaLAeM= +github.com/dvsekhvalnov/jose2go v1.5.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/ethereum/go-ethereum v1.10.20 h1:75IW830ClSS40yrQC1ZCMZCt5I+zU16oqId2SiQwdQ4= +github.com/ethereum/go-ethereum v1.10.20/go.mod h1:LWUN82TCHGpxB3En5HVmLLzPD7YSrEUFmFfN1nKkVN0= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o= +github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= +github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= +github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= +github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= +github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= +github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw= +github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= +github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= +github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= +github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gofrs/uuid v4.3.0+incompatible h1:CaSVZxm5B+7o45rtab4jC2G37WGYX1zQfuU2i6DSvnc= +github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= +github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= +github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= +github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= +github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= +github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= +github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= +github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4= +github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= +github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= +github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= +github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= +github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= +github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= +github.com/gtank/merlin v0.1.1-0.20191105220539-8318aed1a79f/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= +github.com/gtank/merlin v0.1.1 h1:eQ90iG7K9pOhtereWsmyRJ6RAwcP4tHTDBHXNg+u5is= +github.com/gtank/merlin v0.1.1/go.mod h1:T86dnYJhcGOh5BjZFCJWTDeTK7XW8uE+E21Cy/bIQ+s= +github.com/gtank/ristretto255 v0.1.2 h1:JEqUCPA1NvLq5DwYtuzigd7ss8fwbYay9fi4/5uMzcc= +github.com/gtank/ristretto255 v0.1.2/go.mod h1:Ph5OpO6c7xKUGROZfWVLiJf9icMDwUeIvY4OmlYW69o= +github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= +github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +github.com/hashicorp/go-getter v1.7.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= +github.com/hashicorp/go-getter v1.7.1/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= +github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1 h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d h1:dg1dEPuWpEqDnvIw251EVy4zlP8gWbsGj4BsUKCRpYs= +github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= +github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= +github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= +github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= +github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/icza/dyno v0.0.0-20220812133438-f0b6f8a18845 h1:H+uM0Bv88eur3ZSsd2NGKg3YIiuXxwxtlN7HjE66UTU= +github.com/icza/dyno v0.0.0-20220812133438-f0b6f8a18845/go.mod h1:c1tRKs5Tx7E2+uHGSyyncziFjvGpgv4H2HrqXeUQ/Uk= +github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= +github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/ipfs/go-cid v0.2.0 h1:01JTiihFq9en9Vz0lc0VDWvZe/uBonGpzo4THP0vcQ0= +github.com/ipfs/go-cid v0.2.0/go.mod h1:P+HXFDF4CVhaVayiEb4wkAy7zBHxBwsJyt0Y5U6MLro= +github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= +github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= +github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= +github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.16.3 h1:XuJt9zzcnaz6a16/OU53ZjWp/v7/42WcR5t2a0PcNQY= +github.com/klauspost/compress v1.16.3/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.2.3 h1:sxCkb+qR91z4vsqw4vGGZlDgPz3G7gjaLyK3V8y70BU= +github.com/klauspost/cpuid/v2 v2.2.3/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +github.com/libp2p/go-libp2p v0.22.0 h1:2Tce0kHOp5zASFKJbNzRElvh0iZwdtG5uZheNW8chIw= +github.com/libp2p/go-libp2p v0.22.0/go.mod h1:UDolmweypBSjQb2f7xutPnwZ/fxioLbMBxSjRksxxU4= +github.com/libp2p/go-openssl v0.1.0 h1:LBkKEcUv6vtZIQLVTegAil8jbNpJErQ9AnT+bWV+Ooo= +github.com/libp2p/go-openssl v0.1.0/go.mod h1:OiOxwPpL3n4xlenjx2h7AwSGaFSC/KZvf6gNdOBQMtc= +github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= +github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/linxGnu/grocksdb v1.7.16 h1:Q2co1xrpdkr5Hx3Fp+f+f7fRGhQFQhvi/+226dtLmA8= +github.com/linxGnu/grocksdb v1.7.16/go.mod h1:JkS7pl5qWpGpuVb3bPqTz8nC12X3YtPZT+Xq7+QfQo4= +github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= +github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-pointer v0.0.1 h1:n+XhsuGeVO6MEAp7xyEukFINEa+Quek5psIR/ylA6o0= +github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643/go.mod h1:43+3pMjjKimDBf5Kr4ZFNGbLql1zKkbImw+fZbw3geM= +github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b h1:QrHweqAtyJ9EwCaGHBu1fghwxIPiopAHV06JlXrMHjk= +github.com/mimoo/StrobeGo v0.0.0-20220103164710-9a04d6ca976b/go.mod h1:xxLb2ip6sSUts3g1irPVHyk/DGslwQsNOo9I7smJfNU= +github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= +github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= +github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= +github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= +github.com/misko9/go-substrate-rpc-client/v4 v4.0.0-20230413215336-5bd2aea337ae h1:ZYbJh4TLwfSuSQe6DT/1982SfNNBcmvzrX5FycfSrmo= +github.com/misko9/go-substrate-rpc-client/v4 v4.0.0-20230413215336-5bd2aea337ae/go.mod h1:XexEkZgpnQ3sqUYz84DFoVUcDake6G/tYHrwdbdERhM= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae h1:O4SWKdcHVCvYqyDV+9CJA1fcDN2L11Bule0iFy3YlAI= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= +github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= +github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= +github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= +github.com/multiformats/go-base32 v0.0.4 h1:+qMh4a2f37b4xTNs6mqitDinryCI+tfO2dRVMN9mjSE= +github.com/multiformats/go-base32 v0.0.4/go.mod h1:jNLFzjPZtp3aIARHbJRZIaPuspdH0J6q39uUM5pnABM= +github.com/multiformats/go-base36 v0.1.0 h1:JR6TyF7JjGd3m6FbLU2cOxhC0Li8z8dLNGQ89tUg4F4= +github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM= +github.com/multiformats/go-multiaddr v0.6.0 h1:qMnoOPj2s8xxPU5kZ57Cqdr0hHhARz7mFsPMIiYNqzg= +github.com/multiformats/go-multiaddr v0.6.0/go.mod h1:F4IpaKZuPP360tOMn2Tpyu0At8w23aRyVqeK0DbFeGM= +github.com/multiformats/go-multibase v0.1.1 h1:3ASCDsuLX8+j4kx58qnJ4YFq/JWTJpCyDW27ztsVTOI= +github.com/multiformats/go-multibase v0.1.1/go.mod h1:ZEjHE+IsUrgp5mhlEAYjMtZwK1k4haNkcaPg9aoe1a8= +github.com/multiformats/go-multicodec v0.5.0 h1:EgU6cBe/D7WRwQb1KmnBvU7lrcFGMggZVTPtOW9dDHs= +github.com/multiformats/go-multicodec v0.5.0/go.mod h1:DiY2HFaEp5EhEXb/iYzVAunmyX/aSFMxq2KMKfWEues= +github.com/multiformats/go-multihash v0.2.1 h1:aem8ZT0VA2nCHHk7bPJ1BjUbHNciqZC/d16Vve9l108= +github.com/multiformats/go-multihash v0.2.1/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc= +github.com/multiformats/go-varint v0.0.6 h1:gk85QWKxh3TazbLxED/NlDVv8+q+ReFJk7Y2W/KhfNY= +github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= +github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= +github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= +github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= +github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= +github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.20.0 h1:8W0cWlwFkflGPLltQvLRB7ZVD5HuP6ng320w2IS245Q= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.5 h1:L44KXEpKmfWDcS02aeGm8QNTFXTo2D+8MYGDIJ/GDEs= +github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= +github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= +github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= +github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.9 h1:uH2qQXheeefCCkuBBSLi7jCiSmj3VRh2+Goq2N7Xxu0= +github.com/pelletier/go-toml/v2 v2.0.9/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 h1:hDSdbBuw3Lefr6R18ax0tZ2BJeNB3NehB3trOwYBsdU= +github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/xxHash v0.1.5 h1:n/jBpwTHiER4xYvK3/CdPVnLDPchj8eTJFFLUb4QHBo= +github.com/pierrec/xxHash v0.1.5/go.mod h1:w2waW5Zoa/Wc4Yqe0wgrIYAGKqRMf7czn2HNKXmuL+I= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= +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/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= +github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.15.0 h1:5fCgGYogn0hFdhyhLbw7hEsWxufKtY9klyvdNfFlFhM= +github.com/prometheus/client_golang v1.15.0/go.mod h1:e9yaBhRPU2pPNsZwE+JdQl0KEt1N9XgF6zxWmaC0xOk= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= +github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= +github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= +github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= +github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= +github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= +github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= +github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= +github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/regen-network/gocuke v0.6.2 h1:pHviZ0kKAq2U2hN2q3smKNxct6hS0mGByFMHGnWA97M= +github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= +github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= +github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= +github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE= +github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.4.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.29.1 h1:cO+d60CHkknCbvzEWxP0S9K6KqyTjrCNUy1LdQLCGPc= +github.com/rs/zerolog v1.29.1/go.mod h1:Le6ESbR7hc+DP6Lt1THiV8CQSdkkNrd3R0XbEgp3ZBU= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= +github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= +github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible h1:Bn1aCHHRnjv4Bl16T8rcaFjYSrGrIZvpiGO6P3Q4GpU= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/skip-mev/pob v1.0.3 h1:cipN/WUU+xfYbcfUQ4EefSvl3ItocsKgRn3tOtRF2OE= +github.com/skip-mev/pob v1.0.3/go.mod h1:PMs/dqcWOQruSN6zLExU0TzlBfBmGA8iTy+FJhxn0T8= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 h1:RC6RW7j+1+HkWaX/Yh71Ee5ZHaHYt7ZP4sQgUrm6cDU= +github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= +github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= +github.com/spf13/viper v1.16.0 h1:rGGH0XDZhdUOryiDWjmIvUSWpbNqisK8Wk0Vyefw8hc= +github.com/spf13/viper v1.16.0/go.mod h1:yg78JgCJcbrQOvV9YLXgkLaZqUidkY9K+Dd1FofRzQg= +github.com/strangelove-ventures/interchaintest/v7 v7.0.0-20230721183422-fb937bb0e165 h1:uVCHoklBlbAy77RT6iQBaK7oo8rTn5uI0hrRn1LL5Sw= +github.com/strangelove-ventures/interchaintest/v7 v7.0.0-20230721183422-fb937bb0e165/go.mod h1:WUglvTs5dOXiI7z+VRiVibkFcd2pvTfoDEcXnjYONrw= +github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.1.5-0.20170601210322-f6abca593680/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +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.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= +github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= +github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg= +github.com/tidwall/btree v1.6.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tklauser/go-sysconf v0.3.10 h1:IJ1AZGZRWbY8T5Vfk04D9WOA5WSejdflXxP03OUqALw= +github.com/tklauser/numcpus v0.4.0 h1:E53Dm1HjH1/R2/aoCtXtPgzmElmn51aOkhCFSuZq//o= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= +github.com/tyler-smith/go-bip32 v1.0.0 h1:sDR9juArbUgX+bO/iblgZnMPeWY1KZMUC2AFUJdv5KE= +github.com/tyler-smith/go-bip32 v1.0.0/go.mod h1:onot+eHknzV4BVPwrzqY5OoVpyCvnwD7lMawL5aQupE= +github.com/tyler-smith/go-bip39 v1.1.0 h1:5eUemwrMargf3BSLRRCalXT93Ns6pQJIjYQN2nyfOP8= +github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3CWg+kkNaLt55U= +github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= +github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= +github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0= +github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8= +github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zondax/hid v0.9.1 h1:gQe66rtmyZ8VeGFcOpbuH3r7erYtNEAezCAYu8LdkJo= +github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c= +github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ= +go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= +go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +golang.org/x/crypto v0.0.0-20170613210332-850760c427c5/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +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-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= +golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU= +golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +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-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= +golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/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-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= +golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= +golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= +golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +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-20181221193216-37e7f081c4d4/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-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= +golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190130150945-aca44879d564/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-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= +golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.10.0 h1:3R7pNqamzBraeqj/Tj8qt1aQ2HpmlC+Cx/qL/7hn4/c= +golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/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/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= +golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.1.0 h1:xYY+Bajn2a7VBmTM5GikTmnK8ZuX8YgnQCqZpbBNtmA= +golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +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-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +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-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/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.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.11.0 h1:EMCa6U9S2LtZXLAMoWiR/R8dAQFRqbAitmbJ2UKhoi8= +golang.org/x/tools v0.11.0/go.mod h1:anzJrxPjNtfgiYQYirP2CPGzGLxrH2u2QBhn6Bf3qY8= +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-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/api v0.126.0 h1:q4GJq+cAdMAC7XP7njvQ4tvohGLiSlytuL4BQxbIZ+o= +google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200324203455-a04cca1dde73/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= +google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 h1:Au6te5hbKUV8pIYWHqOUZ1pva5qK/rwbIhoXEUB9Lu8= +google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y= +google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 h1:s5YSX+ZH5b5vS9rnpGymvIyMpLRJizowqDlOuyjXnTk= +google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM= +google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.56.2 h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI= +google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU= +gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +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= +gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= +gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY= +honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +launchpad.net/gocheck v0.0.0-20140225173054-000000000087 h1:Izowp2XBH6Ya6rv+hqbceQyw/gSGoXfH/UPoTGduL54= +launchpad.net/gocheck v0.0.0-20140225173054-000000000087/go.mod h1:hj7XX3B/0A+80Vse0e+BUHsHMTEhd0O4cpUHr/e/BUM= +lukechampine.com/blake3 v1.1.7 h1:GgRMhmdsuK8+ii6UZFDL8Nb+VyMwadAgcJyfYHxG6n0= +lukechampine.com/blake3 v1.1.7/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= +lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI= +lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk= +modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw= +modernc.org/cc/v3 v3.40.0/go.mod h1:/bTg4dnWkSXowUO6ssQKnOV0yMVxDYNIsIrzqTFDGH0= +modernc.org/ccgo/v3 v3.16.13 h1:Mkgdzl46i5F/CNR/Kj80Ri59hC8TKAhZrYSaqvkwzUw= +modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY= +modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk= +modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM= +modernc.org/libc v1.22.5 h1:91BNch/e5B0uPbJFgqbxXuOnxBQjlS//icfQEGmvyjE= +modernc.org/libc v1.22.5/go.mod h1:jj+Z7dTNX8fBScMVNRAYZ/jF91K8fdT2hYMThc3YjBY= +modernc.org/mathutil v1.5.0 h1:rV0Ko/6SfM+8G+yKiyI830l3Wuz1zRutdslNoQ0kfiQ= +modernc.org/mathutil v1.5.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E= +modernc.org/memory v1.5.0 h1:N+/8c5rE6EqugZwHii4IFsaJ7MUhoWX07J5tC/iI5Ds= +modernc.org/memory v1.5.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU= +modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4= +modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0= +modernc.org/sqlite v1.24.0 h1:EsClRIWHGhLTCX44p+Ri/JLD+vFGo0QGjasg2/F9TlI= +modernc.org/sqlite v1.24.0/go.mod h1:OrDj17Mggn6MhE+iPbBNf7RGKODDE9NFT0f3EwDzJqk= +modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY= +modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw= +modernc.org/tcl v1.15.2 h1:C4ybAYCGJw968e+Me18oW55kD/FexcHbqH2xak1ROSY= +modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg= +modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= +modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY= +nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= +nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= +pgregory.net/rapid v0.5.5 h1:jkgx1TjbQPD/feRoK+S/mXw9e1uj6WilpHrXJowi6oA= +pgregory.net/rapid v0.5.5/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= +sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/tests/integration/pob_integration_test.go b/tests/integration/pob_integration_test.go new file mode 100644 index 0000000..4766666 --- /dev/null +++ b/tests/integration/pob_integration_test.go @@ -0,0 +1,80 @@ +package integration_test + +import ( + "fmt" + "testing" + + testutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + buildertypes "github.com/skip-mev/pob/x/builder/types" + "github.com/strangelove-ventures/interchaintest/v7" + "github.com/skip-mev/pob/tests/integration" + "github.com/strangelove-ventures/interchaintest/v7/chain/cosmos" + "github.com/strangelove-ventures/interchaintest/v7/ibc" + "github.com/stretchr/testify/suite" +) + +var ( + // config params + numValidators = 4 + numFullNodes = 0 + denom = "stake" + + image = ibc.DockerImage{ + Repository: "pob-integration", + Version: "latest", + UidGid: "1000:1000", + } + encodingConfig = MakeEncodingConfig() + noHostMount = false + gasAdjustment = float64(2.0) + + genesisKV = []cosmos.GenesisKV{ + { + Key: "app_state.builder.params.max_bundle_size", + Value: 3, + }, + } + + // interchain specification + spec = &interchaintest.ChainSpec{ + ChainName: "pob", + Name: "pob", + NumValidators: &numValidators, + NumFullNodes: &numFullNodes, + Version: "latest", + NoHostMount: &noHostMount, + GasAdjustment: &gasAdjustment, + ChainConfig: ibc.ChainConfig{ + EncodingConfig: encodingConfig, + Images: []ibc.DockerImage{ + image, + }, + Type: "cosmos", + Name: "pob", + Denom: denom, + ChainID: "chain-id-0", + Bin: "testappd", + Bech32Prefix: "cosmos", + CoinType: "118", + GasAdjustment: gasAdjustment, + GasPrices: fmt.Sprintf("0%s", denom), + TrustingPeriod: "48h", + NoHostMount: noHostMount, + UsingNewGenesisCommand: true, + ModifyGenesis: cosmos.ModifyGenesis(genesisKV), + }, + } +) + +func MakeEncodingConfig() *testutil.TestEncodingConfig { + cfg := cosmos.DefaultEncoding() + + // register builder types + buildertypes.RegisterInterfaces(cfg.InterfaceRegistry) + + return &cfg +} + +func TestIntegrationTestSuite(t *testing.T) { + suite.Run(t, integration.NewPOBIntegrationTestSuiteFromSpec(spec)) +} diff --git a/tests/integration/pob_suite.go b/tests/integration/pob_suite.go new file mode 100644 index 0000000..4f406c0 --- /dev/null +++ b/tests/integration/pob_suite.go @@ -0,0 +1,1290 @@ +package integration + +import ( + "context" + + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + interchaintest "github.com/strangelove-ventures/interchaintest/v7" + "github.com/strangelove-ventures/interchaintest/v7/chain/cosmos" + "github.com/strangelove-ventures/interchaintest/v7/ibc" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/suite" +) + +const ( + initBalance = 1000000000000 +) + +// POBIntegrationTestSuite runs the POB integration test-suite against a given interchaintest specification +type POBIntegrationTestSuite struct { + suite.Suite + // spec + spec *interchaintest.ChainSpec + // chain + chain ibc.Chain + // interchain + ic *interchaintest.Interchain + // users + user1, user2, user3 ibc.Wallet + // denom + denom string +} + +func NewPOBIntegrationTestSuiteFromSpec(spec *interchaintest.ChainSpec) *POBIntegrationTestSuite { + return &POBIntegrationTestSuite{ + spec: spec, + denom: "stake", + } +} + +func (s *POBIntegrationTestSuite) WithDenom(denom string) *POBIntegrationTestSuite { + s.denom = denom + return s +} + +func (s *POBIntegrationTestSuite) SetupSuite() { + // build the chain + s.T().Log("building chain with spec", s.spec) + s.chain = ChainBuilderFromChainSpec(s.T(), s.spec) + + // build the interchain + s.T().Log("building interchain") + ctx := context.Background() + s.ic = BuildPOBInterchain(s.T(), ctx, s.chain) + + // get the users + s.user1 = interchaintest.GetAndFundTestUsers(s.T(), ctx, s.T().Name(), initBalance, s.chain)[0] + s.user2 = interchaintest.GetAndFundTestUsers(s.T(), ctx, s.T().Name(), initBalance, s.chain)[0] + s.user3 = interchaintest.GetAndFundTestUsers(s.T(), ctx, s.T().Name(), initBalance, s.chain)[0] +} + +func (s *POBIntegrationTestSuite) TearDownSuite() { + // close the interchain + s.ic.Close() +} + +func (s *POBIntegrationTestSuite) SetupSubTest() { + // wait for 1 block height + // query height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) +} + +func (s *POBIntegrationTestSuite) TestQueryParams() { + // query params + params := QueryBuilderParams(s.T(), s.chain) + + // expect validate to pass + require.NoError(s.T(), params.Validate()) +} + +// TestValidBids tests the execution of various valid auction bids. There are a few +// invariants that are tested: +// +// 1. The order of transactions in a bundle is preserved when bids are valid. +// 2. All transactions execute as expected. +// 3. The balance of the escrow account should be updated correctly. +// 4. Top of block bids will be included in block proposals before other transactions +func (s *POBIntegrationTestSuite) TestValidBids() { + params := QueryBuilderParams(s.T(), s.chain) + escrowAddr := sdk.AccAddress(params.EscrowAccountAddress).String() + + s.Run("Valid Auction Bid", func() { + // get escrow account balance before bid + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bundle w/ a single tx + // create message send tx + tx := banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100)))) + + // create the MsgAuctioBid + bidAmt := params.ReserveFee + bid, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{ + tx, + }, + SequenceIncrement: 1, + }, + }) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast + wait for the tx to be included in a block + res := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + }, + }) + height = height + 1 + + // wait for next height + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height) + + // query + verify the block + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height)) + VerifyBlock(s.T(), block, 0, TxHash(res[0]), bundledTxs) + + // ensure that the escrow account has the correct balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("Valid bid with multiple other transactions", func() { + // get escrow account balance before bid + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create the bundle w/ a single tx + // bank-send msg + msgs := make([]sdk.Msg, 2) + msgs[0] = banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100)))) + msgs[1] = banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100)))) + + // create the MsgAuctionBid + bidAmt := params.ReserveFee + bid, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{ + { + User: s.user1, + Msgs: msgs[0:1], + SequenceIncrement: 1, + }, + }) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // create the messages to be broadcast + msgsToBcast := make([]Tx, 0) + msgsToBcast = append(msgsToBcast, Tx{ + User: s.user1, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + }) + + msgsToBcast = append(msgsToBcast, Tx{ + User: s.user2, + Msgs: msgs[1:2], + Height: height + 1, + }) + + regular_txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), msgsToBcast) + + // get the block at the next height + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // verify the block + bidTxHash := TxHash(regular_txs[0]) + VerifyBlock(s.T(), block, 0, bidTxHash, append(bundledTxs, regular_txs[1:]...)) + + // ensure that escrow account has the correct balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("iterative bidding from the same account", func() { + // get escrow account balance before bid + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create multi-tx valid bundle + // bank-send msg + txs := make([]Tx, 2) + txs[0] = Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + txs[1] = Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 2, + } + // create bundle + bidAmt := params.ReserveFee + bid, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, txs) + // create 2 more bundle w same txs from same user + bid2, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt.Add(params.MinBidIncrement), txs) + bid3, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt.Add(params.MinBidIncrement).Add(params.MinBidIncrement), txs) + + // query height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // wait for the next height to broadcast + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + height++ + + // broadcast all bids + broadcastedTxs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + SkipInclusionCheck: true, + }, + { + User: s.user1, + Msgs: []sdk.Msg{bid2}, + Height: height + 1, + SkipInclusionCheck: true, + }, + { + User: s.user1, + Msgs: []sdk.Msg{bid3}, + Height: height + 1, + }, + }) + + // Verify the block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + VerifyBlock(s.T(), Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)), 0, TxHash(broadcastedTxs[2]), bundledTxs) + + // check escrow account balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Add(params.MinBidIncrement.Add(params.MinBidIncrement)).Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("bid with a bundle with transactions that are already in the mempool", func() { + // reset + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // wait for the next height + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + + // escrow account balance + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create valid bundle + // bank-send msg + txs := make([]Tx, 2) + txs[0] = Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + } + txs[1] = Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + + // create bundle + bidAmt := params.ReserveFee + bid, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user2, s.chain.(*cosmos.CosmosChain), bidAmt, txs) + + // get chain height + height, err = s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast txs in the bundle to network + bundle + extra + broadcastedTxs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{txs[0], txs[1], { + User: s.user2, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + }, { + User: s.user3, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user3.Address(), s.user1.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + }}) + + // query next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // check block + VerifyBlock(s.T(), block, 0, TxHash(broadcastedTxs[2]), append(bundledTxs, broadcastedTxs[3])) + + // check escrow account balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) +} + +// TestMultipleBids tests the execution of various valid auction bids in the same block. There are a few +// invariants that are tested: +// +// 1. The order of transactions in a bundle is preserved when bids are valid. +// 2. All transactions execute as expected. +// 3. The balance of the escrow account should be updated correctly. +// 4. Top of block bids will be included in block proposals before other transactions +// that are included in the same block. +// 5. If there is a block that has multiple valid bids with timeouts that are sufficiently far apart, +// the bids should be executed respecting the highest bids until the timeout is reached. +func (s *POBIntegrationTestSuite) TestMultipleBids() { + params := QueryBuilderParams(s.T(), s.chain) + escrowAddr := sdk.AccAddress(params.EscrowAccountAddress).String() + + s.Run("broadcasting bids to two different validators (both should execute over several blocks) with same bid", func() { + // escrow account balance + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bid 1 + // bank-send msg + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid1 + bidAmt := params.ReserveFee + bid1, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + // create bid 2 + msg2 := Tx{ + User: s.user2, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid2 w/ higher bid than bid1 + bid2, bundledTxs2 := CreateAuctionBidMsg(s.T(), context.Background(), s.user2, s.chain.(*cosmos.CosmosChain), bidAmt.Add(params.MinBidIncrement), []Tx{msg2}) + // get chain height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast both bids + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid1}, + Height: height + 2, + SkipInclusionCheck: true, + }, + { + User: s.user2, + Msgs: []sdk.Msg{bid2}, + Height: height + 1, + }, + }) + + // query next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // check bid2 was included first + VerifyBlock(s.T(), block, 0, TxHash(txs[1]), bundledTxs2) + + // check next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+2) + block = Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+2)) + + // check bid1 was included second + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), bundledTxs) + + // check escrow balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Add(params.MinBidIncrement.Add(bidAmt)).Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("Multiple bid transactions with second bid being smaller than min bid increment", func() { + // escrow account balance + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bid 1 + // bank-send msg + tx := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid1 + bidAmt := params.ReserveFee + bid1, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{tx}) + + // create bid 2 + tx2 := Tx{ + User: s.user2, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid2 w/ higher bid than bid1 + bid2, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user2, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{tx2}) + + // get chain height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast both bids + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid1}, + Height: height + 1, + }, + { + User: s.user2, + Msgs: []sdk.Msg{bid2}, + Height: height + 1, + ExpectFail: true, + }, + }) + + // query next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // check bid2 was included first + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), bundledTxs) + + // check escrow balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("Multiple bid transactions from diff accounts with second bid being smaller than min bid increment", func() { + // escrow account balance + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bid 1 + // bank-send msg + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid1 + bidAmt := params.ReserveFee + bid1, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + // create bid 2 + msg2 := Tx{ + User: s.user2, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid2 w/ higher bid than bid1 + bid2, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg2}) + // get chain height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast both bids + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid1}, + Height: height + 1, + }, + { + User: s.user1, + Msgs: []sdk.Msg{bid2}, + SequenceIncrement: 1, + Height: height + 1, + ExpectFail: true, + }, + }) + + // query next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // check bid2 was included first + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), bundledTxs) + + // check escrow balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("Multiple transactions with increasing bids but first bid has same bundle so it should fail in later block", func() { + // escrow account balance + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bid 1 + // bank-send msg + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid1 + bidAmt := params.ReserveFee + bid1, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + // create bid2 w/ higher bid than bid1 + bid2, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt.Add(params.MinBidIncrement), []Tx{msg}) + // get chain height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast both bids + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid2}, + Height: height + 1, + }, + { + User: s.user1, + Msgs: []sdk.Msg{bid1}, + Height: height + 2, + SequenceIncrement: 1, + ExpectFail: true, + }, + }) + + // query next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // check bid2 was included first + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), bundledTxs) + + // check escrow balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Add(params.MinBidIncrement).Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("Multiple transactions from diff. account with increasing bids but first bid has same bundle so it should fail in later block", func() { + // escrow account balance + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bid 1 + // bank-send msg + msg := Tx{ + User: s.user3, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user3.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + } + + // create bid1 + bidAmt := params.ReserveFee + bid1, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + // create bid2 w/ higher bid than bid1 + bid2, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user2, s.chain.(*cosmos.CosmosChain), bidAmt.Add(params.MinBidIncrement), []Tx{msg}) + // get chain height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast both bids + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user2, + Msgs: []sdk.Msg{bid2}, + Height: height + 1, + }, + { + User: s.user1, + Msgs: []sdk.Msg{bid1}, + Height: height + 1, + ExpectFail: true, + }, + }) + + // query next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // check bid2 was included first + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), bundledTxs) + + // check escrow balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Add(params.MinBidIncrement).Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) + + s.Run("Multiple transactions with increasing bids and different bundles", func() { + // escrow account balance + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bid 1 + // bank-send msg + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + // create bid1 + bidAmt := params.ReserveFee + bid1, bundledTxs := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + // create bid2 + // create a second message + msg2 := Tx{ + User: s.user2, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + + // create bid2 w/ higher bid than bid1 + bid2, bundledTxs2 := CreateAuctionBidMsg(s.T(), context.Background(), s.user2, s.chain.(*cosmos.CosmosChain), bidAmt.Add(params.MinBidIncrement), []Tx{msg2}) + // get chain height + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast both bids + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid1}, + Height: height + 2, + SkipInclusionCheck: true, + }, + { + User: s.user2, + Msgs: []sdk.Msg{bid2}, + Height: height + 1, + }, + }) + + // query next block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // check bid2 was included first + VerifyBlock(s.T(), block, 0, TxHash(txs[1]), bundledTxs2) + + // query next block and check tx inclusion + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+2) + block = Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+2)) + + // check bid1 was included second + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), bundledTxs) + + // check escrow balance + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + expectedIncrement := escrowAddressIncrement(bidAmt.Add(params.MinBidIncrement.Add(bidAmt)).Amount, params.ProposerFee) + require.Equal(s.T(), escrowAcctBalanceBeforeBid+expectedIncrement, escrowAcctBalanceAfterBid) + }) +} + +func (s *POBIntegrationTestSuite) TestInvalidBids() { + params := QueryBuilderParams(s.T(), s.chain) + escrowAddr := sdk.AccAddress(params.EscrowAccountAddress).String() + + s.Run("searcher is attempting to submit a bundle that includes another bid tx", func() { + // create bid tx + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 2, + } + bidAmt := params.ReserveFee + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + // wrap bidTx in another tx + wrappedBid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid}, + SequenceIncrement: 1, + Height: height + 1, + }, + }) + + require.NoError(s.T(), err) + + // broadcast wrapped bid, and expect a failure + BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{wrappedBid}, + Height: height + 1, + ExpectFail: true, + }, + }) + }) + + s.Run("Invalid bid that is attempting to bid more than their balance", func() { + // create bid tx + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 2, + } + bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(1000000000000000000)) + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast wrapped bid, and expect a failure + SimulateTx(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), s.user1, height+1, true, []sdk.Msg{bid}...) + }) + + s.Run("Invalid bid that is attempting to front-run/sandwich", func() { + // create bid tx + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + msg2 := Tx{ + User: s.user2, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + } + msg3 := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 2, + } + + bidAmt := params.ReserveFee + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg, msg2, msg3}) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast wrapped bid, and expect a failure + SimulateTx(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), s.user1, height+1, true, []sdk.Msg{bid}...) + }) + + s.Run("Invalid bid that includes an invalid bundle tx", func() { + // create bid tx + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 2, + } + bidAmt := params.ReserveFee + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast wrapped bid, and expect a failure + BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid}, + ExpectFail: true, + Height: height + 1, + }, + }) + }) + + s.Run("Invalid auction bid with a bid smaller than the reserve fee", func() { + // create bid tx + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + + // create bid smaller than reserve + bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(0)) + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast wrapped bid, and expect a failure + SimulateTx(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), s.user1, height+1, true, []sdk.Msg{bid}...) + }) + + s.Run("Invalid auction bid with too many transactions in the bundle", func() { + // create bid tx + msgs := make([]Tx, 4) + + for i := range msgs { + msgs[i] = Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: uint64(i + 1), + } + } + + // create bid smaller than reserve + bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(0)) + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, msgs) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast wrapped bid, and expect a failure + SimulateTx(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), s.user1, height+1, true, []sdk.Msg{bid}...) + }) + + s.Run("invalid auction bid that has an invalid timeout", func() { + // create bid tx + msg := Tx{ + User: s.user1, + Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))))}, + SequenceIncrement: 1, + } + + // create bid smaller than reserve + bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(0)) + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg}) + + // broadcast wrapped bid, and expect a failure + SimulateTx(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), s.user1, 0, true, []sdk.Msg{bid}...) + }) + + s.Run("Invalid bid that includes valid transactions that are in the mempool", func() { + // get escrow account balance before bid + escrowAcctBalanceBeforeBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + + // create bundle w/ a single tx + // create message send tx + tx := banktypes.NewMsgSend(s.user2.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100)))) + + // create the MsgAuctioBid (this should fail b.c same tx is repeated twice) + bidAmt := params.ReserveFee + bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{ + { + User: s.user2, + Msgs: []sdk.Msg{ + tx, + }, + }, + { + User: s.user2, + Msgs: []sdk.Msg{tx}, + }, + }) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + // broadcast + wait for the tx to be included in a block + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + ExpectFail: true, + }, + { + User: s.user2, + Msgs: []sdk.Msg{tx}, + Height: height + 1, + }, + }) + + // wait for next height + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + + // query + verify the block expect no bid + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + VerifyBlock(s.T(), block, 0, "", txs[1:]) + + // ensure that the escrow account has the correct balance (same as before) + escrowAcctBalanceAfterBid := QueryAccountBalance(s.T(), s.chain, escrowAddr, params.ReserveFee.Denom) + require.Equal(s.T(), escrowAcctBalanceAfterBid, escrowAcctBalanceBeforeBid) + }) +} + +func escrowAddressIncrement(bid math.Int, proposerFee sdk.Dec) int64 { + return int64(bid.Sub(sdk.NewDecFromInt(bid).Mul(proposerFee).RoundInt()).Int64()) +} + +// TestFreeLane tests that the application correctly handles free lanes. There are a few invariants that are tested: +// +// 1. Transactions that qualify as free should not be deducted any fees. +// 2. Transactions that do not qualify as free should be deducted the correct fees. +func (s *POBIntegrationTestSuite) TestFreeLane() { + validators := QueryValidators(s.T(), s.chain.(*cosmos.CosmosChain)) + require.True(s.T(), len(validators) > 0) + + delegation := sdk.NewCoin(s.denom, sdk.NewInt(100)) + + s.Run("valid free lane transaction", func() { + // query balance of account before tx submission + balanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user1.FormattedAddress(), s.denom) + + // create a free tx (MsgDelegate), broadcast and wait for commit + BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{ + stakingtypes.NewMsgDelegate( + sdk.AccAddress(s.user1.Address()), + sdk.ValAddress(validators[0]), + delegation, + ), + }, + GasPrice: 10, + }, + }) + + // check balance of account + balanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user1.FormattedAddress(), s.denom) + require.Equal(s.T(), balanceBefore, balanceAfter+delegation.Amount.Int64()) + }) + + s.Run("normal tx with free tx in same block", func() { + user1BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user1.FormattedAddress(), s.denom) + user2BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + + // user1 submits a free-tx, user2 submits a normal tx + BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{ + stakingtypes.NewMsgDelegate( + sdk.AccAddress(s.user1.Address()), + sdk.ValAddress(validators[0]), + delegation, + ), + }, + GasPrice: 10, + }, + { + User: s.user2, + Msgs: []sdk.Msg{ + banktypes.NewMsgSend( + sdk.AccAddress(s.user2.Address()), + sdk.AccAddress(s.user3.Address()), + sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))), + ), + }, + GasPrice: 10, + }, + }) + + // check balance after, user1 balance only diff by delegation + user1BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user1.FormattedAddress(), s.denom) + user2BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + + require.Equal(s.T(), user1BalanceBefore, user1BalanceAfter+delegation.Amount.Int64()) + + require.Less(s.T(), user2BalanceAfter+100, user2BalanceBefore) + }) + + s.Run("multiple free transactions in same block", func() { + user1BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user1.FormattedAddress(), s.denom) + user2BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + + // user1 submits a free-tx, user2 submits a free tx + BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{ + stakingtypes.NewMsgDelegate( + sdk.AccAddress(s.user1.Address()), + sdk.ValAddress(validators[0]), + delegation, + ), + }, + }, + { + User: s.user2, + Msgs: []sdk.Msg{ + stakingtypes.NewMsgDelegate( + sdk.AccAddress(s.user2.Address()), + sdk.ValAddress(validators[0]), + delegation, + ), + }, + }, + }) + + // check balance after, user1 balance only diff by delegation + user1BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user1.FormattedAddress(), s.denom) + user2BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + + require.Equal(s.T(), user1BalanceBefore, user1BalanceAfter+delegation.Amount.Int64()) + require.Equal(s.T(), user2BalanceBefore, user2BalanceAfter+delegation.Amount.Int64()) + }) +} + +func (s *POBIntegrationTestSuite) TestLanes() { + validators := QueryValidators(s.T(), s.chain.(*cosmos.CosmosChain)) + require.True(s.T(), len(validators) > 0) + + delegation := sdk.NewCoin(s.denom, sdk.NewInt(100)) + + params := QueryBuilderParams(s.T(), s.chain) + + s.Run("block with tob, free, and normal tx", func() { + user2BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + + // create free-tx, bid-tx, and normal-tx\ + bid, bundledTx := CreateAuctionBidMsg( + s.T(), + context.Background(), + s.user1, + s.chain.(*cosmos.CosmosChain), + params.ReserveFee, + []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{ + &banktypes.MsgSend{ + FromAddress: s.user1.FormattedAddress(), + ToAddress: s.user1.FormattedAddress(), + Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))), + }, + }, + SequenceIncrement: 1, + }, + }, + ) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + }, + { + User: s.user2, + Msgs: []sdk.Msg{ + stakingtypes.NewMsgDelegate( + sdk.AccAddress(s.user2.Address()), + sdk.ValAddress(validators[0]), + delegation, + ), + }, + GasPrice: 10, + }, + { + User: s.user3, + Msgs: []sdk.Msg{ + &banktypes.MsgSend{ + FromAddress: s.user3.FormattedAddress(), + ToAddress: s.user3.FormattedAddress(), + Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))), + }, + }, + }, + }) + + // check block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), append(bundledTx, txs[1:]...)) + + // check user2 balance expect no fee deduction + user2BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + require.Equal(s.T(), user2BalanceBefore, user2BalanceAfter+delegation.Amount.Int64()) + }) + + s.Run("failing top of block transaction, free, and normal tx", func() { + user2BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + user1Balance := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user1.FormattedAddress(), s.denom) + // create free-tx, bid-tx, and normal-tx\ + bid, _ := CreateAuctionBidMsg( + s.T(), + context.Background(), + s.user1, + s.chain.(*cosmos.CosmosChain), + params.ReserveFee, + []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{ + &banktypes.MsgSend{ + FromAddress: s.user1.FormattedAddress(), + ToAddress: s.user1.FormattedAddress(), + Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(user1Balance))), + }, + }, + SequenceIncrement: 2, + }, + { + User: s.user1, + Msgs: []sdk.Msg{ + &banktypes.MsgSend{ + FromAddress: s.user1.FormattedAddress(), + ToAddress: s.user1.FormattedAddress(), + Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(user1Balance))), + }, + }, + SequenceIncrement: 2, + }, + }, + ) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user1, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + ExpectFail: true, + }, + { + User: s.user2, + Msgs: []sdk.Msg{ + stakingtypes.NewMsgDelegate( + sdk.AccAddress(s.user2.Address()), + sdk.ValAddress(validators[0]), + delegation, + ), + }, + GasPrice: 10, + }, + { + User: s.user3, + Msgs: []sdk.Msg{ + &banktypes.MsgSend{ + FromAddress: s.user3.FormattedAddress(), + ToAddress: s.user3.FormattedAddress(), + Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))), + }, + }, + }, + }) + + // check block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + VerifyBlock(s.T(), block, 0, "", txs[1:]) + + // check user2 balance expect no fee deduction + user2BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + require.Equal(s.T(), user2BalanceBefore, user2BalanceAfter+delegation.Amount.Int64()) + }) + + s.Run("top of block transaction that includes transactions from the free lane", func() { + user2BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + + delegateTx := Tx{ + User: s.user2, + Msgs: []sdk.Msg{ + &stakingtypes.MsgDelegate{ + DelegatorAddress: s.user2.FormattedAddress(), + ValidatorAddress: sdk.ValAddress(validators[0]).String(), + Amount: delegation, + }, + }, + GasPrice: 10, + } + + bid, bundledTx := CreateAuctionBidMsg( + s.T(), + context.Background(), + s.user3, + s.chain.(*cosmos.CosmosChain), + params.ReserveFee, + []Tx{ + delegateTx, + { + User: s.user3, + Msgs: []sdk.Msg{ + &banktypes.MsgSend{ + FromAddress: s.user3.FormattedAddress(), + ToAddress: s.user3.FormattedAddress(), + Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))), + }, + }, + SequenceIncrement: 1, + }, + }, + ) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user3, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + }, + delegateTx, + }) + + // query balance after, expect no fees paid + user2BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + s.Require().Equal(user2BalanceBefore, user2BalanceAfter+delegation.Amount.Int64()) + + // check block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + + // verify + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), bundledTx) + }) + + s.Run("top of block transaction that includes transaction from free lane + other free lane txs + normal txs", func() { + user2BalanceBefore := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + + // create free-txs signed by user2 / 3 + user2DelegateTx := Tx{ + User: s.user2, + Msgs: []sdk.Msg{ + &stakingtypes.MsgDelegate{ + DelegatorAddress: s.user2.FormattedAddress(), + ValidatorAddress: sdk.ValAddress(validators[0]).String(), + Amount: delegation, + }, + }, + GasPrice: 10, + } + + user3DelegateTx := Tx{ + User: s.user3, + Msgs: []sdk.Msg{ + &stakingtypes.MsgDelegate{ + DelegatorAddress: s.user3.FormattedAddress(), + ValidatorAddress: sdk.ValAddress(validators[0]).String(), + Amount: delegation, + }, + }, + GasPrice: 10, + SequenceIncrement: 1, + } + + // create bid-tx w/ user3 DelegateTx + + bid, bundledTx := CreateAuctionBidMsg( + s.T(), + context.Background(), + s.user3, + s.chain.(*cosmos.CosmosChain), + params.ReserveFee, + []Tx{ + user3DelegateTx, + { + User: s.user3, + Msgs: []sdk.Msg{ + &banktypes.MsgSend{ + FromAddress: s.user3.FormattedAddress(), + ToAddress: s.user3.FormattedAddress(), + Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))), + }, + }, + SequenceIncrement: 2, + }, + }, + ) + + height, err := s.chain.(*cosmos.CosmosChain).Height(context.Background()) + require.NoError(s.T(), err) + + txs := BroadcastTxs(s.T(), context.Background(), s.chain.(*cosmos.CosmosChain), []Tx{ + { + User: s.user3, + Msgs: []sdk.Msg{bid}, + Height: height + 1, + }, + // already included above + user2DelegateTx, + }) + + // verify block + WaitForHeight(s.T(), s.chain.(*cosmos.CosmosChain), height+1) + block := Block(s.T(), s.chain.(*cosmos.CosmosChain), int64(height+1)) + VerifyBlock(s.T(), block, 0, TxHash(txs[0]), append(bundledTx, txs[1:]...)) + + // check user2 balance expect no fee deduction + user2BalanceAfter := QueryAccountBalance(s.T(), s.chain.(*cosmos.CosmosChain), s.user2.FormattedAddress(), s.denom) + require.Equal(s.T(), user2BalanceBefore, user2BalanceAfter+delegation.Amount.Int64()) + }) +}