feat(e2e): add integration tests (#100)
* add integration tests * add workflow --------- Co-authored-by: David Terpay <35130517+davidterpay@users.noreply.github.com>
This commit is contained in:
parent
25ab05444c
commit
454d2e5f3d
61
.github/workflows/test.yml
vendored
61
.github/workflows/test.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20.2
|
||||
go-version: 1.21
|
||||
cache: true
|
||||
cache-dependency-path: go.sum
|
||||
- uses: technote-space/get-diff-action@v6.1.2
|
||||
@ -33,36 +33,37 @@ jobs:
|
||||
- name: Unit Tests
|
||||
if: env.GIT_DIFF
|
||||
run: |
|
||||
go work init
|
||||
make test
|
||||
|
||||
# TODO: Add this back once we have a working version of v0.50.0 with ITS and v0.47.x
|
||||
# test-integration:
|
||||
# runs-on: ubuntu-latest
|
||||
# timeout-minutes: 25
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - uses: technote-space/get-diff-action@v6.1.2
|
||||
# with:
|
||||
# PATTERNS: |
|
||||
# **/**.go
|
||||
# go.mod
|
||||
# go.sum
|
||||
# - uses: actions/setup-go@v4
|
||||
# if: env.GIT_DIFF
|
||||
# with:
|
||||
# go-version: "1.20"
|
||||
# cache: true
|
||||
test-integration:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: technote-space/get-diff-action@v6.1.2
|
||||
with:
|
||||
PATTERNS: |
|
||||
**/**.go
|
||||
go.mod
|
||||
go.sum
|
||||
- uses: actions/setup-go@v4
|
||||
if: env.GIT_DIFF
|
||||
with:
|
||||
go-version: "1.21"
|
||||
cache: true
|
||||
|
||||
# # In this step, this action saves a list of existing images, the cache is
|
||||
# # created without them in the post run. It also restores the cache if it
|
||||
# # exists.
|
||||
# - name: cache docker layer
|
||||
# uses: satackey/action-docker-layer-caching@v0.0.11
|
||||
# if: env.GIT_DIFF
|
||||
# # Ignore the failure of a step and avoid terminating the job.
|
||||
# continue-on-error: true
|
||||
# In this step, this action saves a list of existing images, the cache is
|
||||
# created without them in the post run. It also restores the cache if it
|
||||
# exists.
|
||||
- name: cache docker layer
|
||||
uses: satackey/action-docker-layer-caching@v0.0.11
|
||||
if: env.GIT_DIFF
|
||||
# Ignore the failure of a step and avoid terminating the job.
|
||||
continue-on-error: true
|
||||
|
||||
# - name: Integration Tests
|
||||
# if: env.GIT_DIFF
|
||||
# run: |
|
||||
# make test-integration
|
||||
- name: Integration Tests
|
||||
if: env.GIT_DIFF
|
||||
run: |
|
||||
go work init
|
||||
make test-integration
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -17,5 +17,8 @@ build/
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
|
||||
# Workspace state
|
||||
go.work*
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
|
||||
6
Makefile
6
Makefile
@ -104,11 +104,11 @@ use-integration:
|
||||
|
||||
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_BUILDKIT=1 docker build -t skip-mev/block-sdk-e2e -f contrib/images/block-sdk.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 .
|
||||
@DOCKER_BUILDKIT=1 docker build -t block-sdk-integration -f contrib/images/block-sdk.integration.Dockerfile .
|
||||
|
||||
###############################################################################
|
||||
### Tests ###
|
||||
@ -119,7 +119,7 @@ TEST_INTEGRATION_TAGS = integration
|
||||
|
||||
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)'
|
||||
@go test ./tests/integration/block_sdk_integration_test.go -timeout 30m -race -v -tags='$(TEST_INTEGRATION_TAGS)'
|
||||
|
||||
test: use-main
|
||||
@go test -v -race $(shell go list ./... | grep -v tests/)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM golang:1.20-bullseye AS builder
|
||||
FROM golang:1.21-bullseye AS builder
|
||||
|
||||
WORKDIR /src/pob
|
||||
COPY . .
|
||||
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
||||
module github.com/skip-mev/block-sdk
|
||||
|
||||
go 1.20
|
||||
go 1.21
|
||||
|
||||
require (
|
||||
cosmossdk.io/api v0.7.1
|
||||
|
||||
1268
go.work.sum
1268
go.work.sum
File diff suppressed because it is too large
Load Diff
@ -42,6 +42,11 @@ func NewIntegrationTestSuiteFromSpec(spec *interchaintest.ChainSpec) *Integratio
|
||||
|
||||
func (s *IntegrationTestSuite) WithDenom(denom string) *IntegrationTestSuite {
|
||||
s.denom = denom
|
||||
|
||||
// update the bech32 prefixes
|
||||
sdk.GetConfig().SetBech32PrefixForAccount(s.denom, s.denom+ sdk.PrefixPublic)
|
||||
sdk.GetConfig().SetBech32PrefixForValidator(s.denom+sdk.PrefixValidator, s.denom+sdk.PrefixValidator+sdk.PrefixPublic)
|
||||
sdk.GetConfig().Seal()
|
||||
return s
|
||||
}
|
||||
|
||||
@ -99,7 +104,7 @@ func (s *IntegrationTestSuite) TestValidBids() {
|
||||
|
||||
// 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))))
|
||||
tx := banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))
|
||||
|
||||
// create the MsgAuctioBid
|
||||
bidAmt := params.ReserveFee
|
||||
@ -146,8 +151,8 @@ func (s *IntegrationTestSuite) TestValidBids() {
|
||||
// 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))))
|
||||
msgs[0] = banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))
|
||||
msgs[1] = banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))
|
||||
|
||||
// create the MsgAuctionBid
|
||||
bidAmt := params.ReserveFee
|
||||
@ -201,12 +206,12 @@ func (s *IntegrationTestSuite) TestValidBids() {
|
||||
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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 2,
|
||||
}
|
||||
// create bundle
|
||||
@ -271,11 +276,11 @@ func (s *IntegrationTestSuite) TestValidBids() {
|
||||
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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
|
||||
@ -294,7 +299,7 @@ func (s *IntegrationTestSuite) TestValidBids() {
|
||||
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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user3.Address(), s.user1.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
}})
|
||||
|
||||
// query next block
|
||||
@ -333,7 +338,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid1
|
||||
@ -343,7 +348,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid2 w/ higher bid than bid1
|
||||
@ -395,7 +400,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid1
|
||||
@ -405,7 +410,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid2 w/ higher bid than bid1
|
||||
@ -451,7 +456,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid1
|
||||
@ -461,7 +466,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid2 w/ higher bid than bid1
|
||||
@ -507,7 +512,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid1
|
||||
@ -557,7 +562,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user3.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
}
|
||||
|
||||
// create bid1
|
||||
@ -606,7 +611,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
// create bid1
|
||||
@ -617,7 +622,7 @@ func (s *IntegrationTestSuite) TestMultipleBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
|
||||
@ -671,7 +676,7 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 2,
|
||||
}
|
||||
bidAmt := params.ReserveFee
|
||||
@ -705,10 +710,10 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 2,
|
||||
}
|
||||
bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(1000000000000000000))
|
||||
bidAmt := sdk.NewCoin(s.denom, math.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())
|
||||
@ -722,16 +727,16 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user2.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user3.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 2,
|
||||
}
|
||||
|
||||
@ -749,7 +754,7 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 2,
|
||||
}
|
||||
bidAmt := params.ReserveFee
|
||||
@ -773,12 +778,12 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
|
||||
// create bid smaller than reserve
|
||||
bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(0))
|
||||
bidAmt := sdk.NewCoin(s.denom, math.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())
|
||||
@ -795,13 +800,13 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: uint64(i + 1),
|
||||
}
|
||||
}
|
||||
|
||||
// create bid smaller than reserve
|
||||
bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(0))
|
||||
bidAmt := sdk.NewCoin(s.denom, math.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())
|
||||
@ -815,12 +820,12 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
// 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))))},
|
||||
Msgs: []sdk.Msg{banktypes.NewMsgSend(s.user1.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))},
|
||||
SequenceIncrement: 1,
|
||||
}
|
||||
|
||||
// create bid smaller than reserve
|
||||
bidAmt := sdk.NewCoin(s.denom, sdk.NewInt(0))
|
||||
bidAmt := sdk.NewCoin(s.denom, math.NewInt(0))
|
||||
bid, _ := CreateAuctionBidMsg(s.T(), context.Background(), s.user1, s.chain.(*cosmos.CosmosChain), bidAmt, []Tx{msg})
|
||||
|
||||
// broadcast wrapped bid, and expect a failure
|
||||
@ -833,7 +838,7 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
|
||||
// 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))))
|
||||
tx := banktypes.NewMsgSend(s.user2.Address(), s.user2.Address(), sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))))
|
||||
|
||||
// create the MsgAuctioBid (this should fail b.c same tx is repeated twice)
|
||||
bidAmt := params.ReserveFee
|
||||
@ -881,8 +886,8 @@ func (s *IntegrationTestSuite) TestInvalidBids() {
|
||||
})
|
||||
}
|
||||
|
||||
func escrowAddressIncrement(bid math.Int, proposerFee sdk.Dec) int64 {
|
||||
return int64(bid.Sub(sdk.NewDecFromInt(bid).Mul(proposerFee).RoundInt()).Int64())
|
||||
func escrowAddressIncrement(bid math.Int, proposerFee math.LegacyDec) int64 {
|
||||
return int64(bid.Sub(math.Int(math.LegacyNewDecFromInt(bid).Mul(proposerFee).RoundInt())).Int64())
|
||||
}
|
||||
|
||||
// TestFreeLane tests that the application correctly handles free lanes. There are a few invariants that are tested:
|
||||
@ -893,7 +898,7 @@ func (s *IntegrationTestSuite) TestFreeLane() {
|
||||
validators := QueryValidators(s.T(), s.chain.(*cosmos.CosmosChain))
|
||||
require.True(s.T(), len(validators) > 0)
|
||||
|
||||
delegation := sdk.NewCoin(s.denom, sdk.NewInt(100))
|
||||
delegation := sdk.NewCoin(s.denom, math.NewInt(100))
|
||||
|
||||
s.Run("valid free lane transaction", func() {
|
||||
// query balance of account before tx submission
|
||||
@ -905,8 +910,8 @@ func (s *IntegrationTestSuite) TestFreeLane() {
|
||||
User: s.user1,
|
||||
Msgs: []sdk.Msg{
|
||||
stakingtypes.NewMsgDelegate(
|
||||
sdk.AccAddress(s.user1.Address()),
|
||||
sdk.ValAddress(validators[0]),
|
||||
sdk.AccAddress(s.user1.Address()).String(),
|
||||
sdk.ValAddress(validators[0]).String(),
|
||||
delegation,
|
||||
),
|
||||
},
|
||||
@ -929,8 +934,8 @@ func (s *IntegrationTestSuite) TestFreeLane() {
|
||||
User: s.user1,
|
||||
Msgs: []sdk.Msg{
|
||||
stakingtypes.NewMsgDelegate(
|
||||
sdk.AccAddress(s.user1.Address()),
|
||||
sdk.ValAddress(validators[0]),
|
||||
sdk.AccAddress(s.user1.Address()).String(),
|
||||
sdk.ValAddress(validators[0]).String(),
|
||||
delegation,
|
||||
),
|
||||
},
|
||||
@ -942,7 +947,7 @@ func (s *IntegrationTestSuite) TestFreeLane() {
|
||||
banktypes.NewMsgSend(
|
||||
sdk.AccAddress(s.user2.Address()),
|
||||
sdk.AccAddress(s.user3.Address()),
|
||||
sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))),
|
||||
sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))),
|
||||
),
|
||||
},
|
||||
GasPrice: 10,
|
||||
@ -968,8 +973,8 @@ func (s *IntegrationTestSuite) TestFreeLane() {
|
||||
User: s.user1,
|
||||
Msgs: []sdk.Msg{
|
||||
stakingtypes.NewMsgDelegate(
|
||||
sdk.AccAddress(s.user1.Address()),
|
||||
sdk.ValAddress(validators[0]),
|
||||
sdk.AccAddress(s.user1.Address()).String(),
|
||||
sdk.ValAddress(validators[0]).String(),
|
||||
delegation,
|
||||
),
|
||||
},
|
||||
@ -978,8 +983,8 @@ func (s *IntegrationTestSuite) TestFreeLane() {
|
||||
User: s.user2,
|
||||
Msgs: []sdk.Msg{
|
||||
stakingtypes.NewMsgDelegate(
|
||||
sdk.AccAddress(s.user2.Address()),
|
||||
sdk.ValAddress(validators[0]),
|
||||
sdk.AccAddress(s.user2.Address()).String(),
|
||||
sdk.ValAddress(validators[0]).String(),
|
||||
delegation,
|
||||
),
|
||||
},
|
||||
@ -999,7 +1004,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
validators := QueryValidators(s.T(), s.chain.(*cosmos.CosmosChain))
|
||||
require.True(s.T(), len(validators) > 0)
|
||||
|
||||
delegation := sdk.NewCoin(s.denom, sdk.NewInt(100))
|
||||
delegation := sdk.NewCoin(s.denom, math.NewInt(100))
|
||||
|
||||
params := QueryAuctionParams(s.T(), s.chain)
|
||||
|
||||
@ -1020,7 +1025,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
&banktypes.MsgSend{
|
||||
FromAddress: s.user1.FormattedAddress(),
|
||||
ToAddress: s.user1.FormattedAddress(),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))),
|
||||
},
|
||||
},
|
||||
SequenceIncrement: 1,
|
||||
@ -1041,8 +1046,8 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
User: s.user2,
|
||||
Msgs: []sdk.Msg{
|
||||
stakingtypes.NewMsgDelegate(
|
||||
sdk.AccAddress(s.user2.Address()),
|
||||
sdk.ValAddress(validators[0]),
|
||||
sdk.AccAddress(s.user2.Address()).String(),
|
||||
sdk.ValAddress(validators[0]).String(),
|
||||
delegation,
|
||||
),
|
||||
},
|
||||
@ -1054,7 +1059,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
&banktypes.MsgSend{
|
||||
FromAddress: s.user3.FormattedAddress(),
|
||||
ToAddress: s.user3.FormattedAddress(),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))),
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -1088,7 +1093,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
&banktypes.MsgSend{
|
||||
FromAddress: s.user1.FormattedAddress(),
|
||||
ToAddress: s.user1.FormattedAddress(),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(user1Balance))),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(user1Balance))),
|
||||
},
|
||||
},
|
||||
SequenceIncrement: 2,
|
||||
@ -1099,7 +1104,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
&banktypes.MsgSend{
|
||||
FromAddress: s.user1.FormattedAddress(),
|
||||
ToAddress: s.user1.FormattedAddress(),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(user1Balance))),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(user1Balance))),
|
||||
},
|
||||
},
|
||||
SequenceIncrement: 2,
|
||||
@ -1121,8 +1126,8 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
User: s.user2,
|
||||
Msgs: []sdk.Msg{
|
||||
stakingtypes.NewMsgDelegate(
|
||||
sdk.AccAddress(s.user2.Address()),
|
||||
sdk.ValAddress(validators[0]),
|
||||
sdk.AccAddress(s.user2.Address()).String(),
|
||||
sdk.ValAddress(validators[0]).String(),
|
||||
delegation,
|
||||
),
|
||||
},
|
||||
@ -1134,7 +1139,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
&banktypes.MsgSend{
|
||||
FromAddress: s.user3.FormattedAddress(),
|
||||
ToAddress: s.user3.FormattedAddress(),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))),
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -1180,7 +1185,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
&banktypes.MsgSend{
|
||||
FromAddress: s.user3.FormattedAddress(),
|
||||
ToAddress: s.user3.FormattedAddress(),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))),
|
||||
},
|
||||
},
|
||||
SequenceIncrement: 1,
|
||||
@ -1257,7 +1262,7 @@ func (s *IntegrationTestSuite) TestLanes() {
|
||||
&banktypes.MsgSend{
|
||||
FromAddress: s.user3.FormattedAddress(),
|
||||
ToAddress: s.user3.FormattedAddress(),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, sdk.NewInt(100))),
|
||||
Amount: sdk.NewCoins(sdk.NewCoin(s.denom, math.NewInt(100))),
|
||||
},
|
||||
},
|
||||
SequenceIncrement: 2,
|
||||
@ -105,7 +105,7 @@ func CreateTx(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, user
|
||||
txBuilder, err := txf.BuildUnsignedTx(msgs...)
|
||||
require.NoError(t, err)
|
||||
|
||||
require.NoError(t, tx.Sign(txf, cc.GetFromName(), txBuilder, true))
|
||||
require.NoError(t, tx.Sign(ctx, txf, cc.GetFromName(), txBuilder, true))
|
||||
|
||||
// encode and return
|
||||
bz, err := cc.TxConfig.TxEncoder()(txBuilder.GetTx())
|
||||
@ -274,7 +274,7 @@ func QueryAccountBalance(t *testing.T, chain ibc.Chain, address, denom string) i
|
||||
// get nodes
|
||||
balance, err := cosmosChain.GetBalance(context.Background(), address, denom)
|
||||
require.NoError(t, err)
|
||||
return balance
|
||||
return balance.Int64()
|
||||
}
|
||||
|
||||
// QueryAccountSequence
|
||||
|
||||
@ -1,110 +1,102 @@
|
||||
module github.com/skip-mev/block-sdk/tests/integration
|
||||
|
||||
go 1.20
|
||||
go 1.21
|
||||
|
||||
toolchain go1.21.0
|
||||
|
||||
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
|
||||
github.com/skip-mev/block-sdk => ../../
|
||||
|
||||
github.com/strangelove-ventures/interchaintest/v7 => github.com/skip-mev/interchaintest/v7 v7.0.1 // TODO(nikhil): move away from skip fork
|
||||
)
|
||||
|
||||
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
|
||||
cosmossdk.io/math v1.1.2
|
||||
github.com/cometbft/cometbft v0.38.0
|
||||
github.com/cosmos/cosmos-sdk v0.50.0-rc.0
|
||||
github.com/skip-mev/block-sdk v1.0.0 // 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
|
||||
google.golang.org/grpc v1.58.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 v0.110.6 // indirect
|
||||
cloud.google.com/go/compute v1.23.0 // indirect
|
||||
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
||||
cloud.google.com/go/iam v1.1.0 // indirect
|
||||
cloud.google.com/go/iam v1.1.1 // indirect
|
||||
cloud.google.com/go/storage v1.30.1 // indirect
|
||||
cosmossdk.io/api v0.7.0 // indirect
|
||||
cosmossdk.io/collections v0.4.0 // indirect
|
||||
cosmossdk.io/core v0.11.0 // indirect
|
||||
cosmossdk.io/depinject v1.0.0-alpha.4 // indirect
|
||||
cosmossdk.io/errors v1.0.0 // indirect
|
||||
cosmossdk.io/log v1.2.1 // indirect
|
||||
cosmossdk.io/store v1.0.0-rc.0 // indirect
|
||||
cosmossdk.io/x/tx v0.10.0 // indirect
|
||||
cosmossdk.io/x/upgrade v0.0.0-20230724130706-5442197d6bcd // 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/99designs/keyring v1.2.1 // 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/DataDog/zstd v1.5.5 // 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/avast/retry-go/v4 v4.5.0 // indirect
|
||||
github.com/aws/aws-sdk-go v1.44.224 // indirect
|
||||
github.com/benbjohnson/clock v1.1.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/bits-and-blooms/bitset v1.8.0 // 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/cockroachdb/errors v1.11.1 // indirect
|
||||
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
|
||||
github.com/cockroachdb/pebble v0.0.0-20230817233644-564b068800e0 // indirect
|
||||
github.com/cockroachdb/redact v1.1.5 // indirect
|
||||
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // 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/cosmos-db v1.0.0 // indirect
|
||||
github.com/cosmos/cosmos-proto v1.0.0-beta.3 // 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/gogoproto v1.4.11 // indirect
|
||||
github.com/cosmos/iavl v1.0.0-rc.1 // indirect
|
||||
github.com/cosmos/ibc-go/modules/capability v1.0.0-rc3 // indirect
|
||||
github.com/cosmos/ibc-go/v7 v7.0.0-20230807102724-4e1d13ebaa91 // 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/cosmos/ledger-cosmos-go v0.13.0 // 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/decred/dcrd/dcrec/secp256k1/v4 v4.2.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/distribution v2.8.1+incompatible // indirect
|
||||
github.com/docker/docker v23.0.1+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/emicklei/dot v1.5.0 // indirect
|
||||
github.com/fatih/color v1.15.0 // indirect
|
||||
github.com/felixge/httpsnoop v1.0.2 // indirect
|
||||
github.com/fsnotify/fsnotify v1.6.0 // indirect
|
||||
github.com/getsentry/sentry-go v0.23.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/gogo/protobuf v1.3.2 // 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
|
||||
@ -120,76 +112,64 @@ require (
|
||||
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/go-grpc-middleware v1.4.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-hclog v1.5.0 // indirect
|
||||
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
||||
github.com/hashicorp/go-metrics v0.5.1 // indirect
|
||||
github.com/hashicorp/go-plugin v1.4.10 // 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/golang-lru v1.0.2 // indirect
|
||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
||||
github.com/hashicorp/yamux v0.1.1 // 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/iancoleman/strcase v0.3.0 // indirect
|
||||
github.com/icza/dyno v0.0.0-20230330125955-09f820a8d9c0 // 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/klauspost/compress v1.16.7 // indirect
|
||||
github.com/kr/pretty v0.3.1 // indirect
|
||||
github.com/kr/text v0.2.0 // indirect
|
||||
github.com/lib/pq v1.10.9 // 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/linxGnu/grocksdb v1.8.0 // 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/oasisprotocol/curve25519-voi v0.0.0-20230110094441-db37f07504ce // indirect
|
||||
github.com/oklog/run v1.1.0 // 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 v1.2.0 // 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/petermattis/goid v0.0.0-20230518223814-80aa455d8761 // 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/prometheus/client_golang v1.16.0 // indirect
|
||||
github.com/prometheus/client_model v0.4.0 // indirect
|
||||
github.com/prometheus/common v0.44.0 // indirect
|
||||
github.com/prometheus/procfs v0.11.1 // indirect
|
||||
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
||||
github.com/rs/cors v1.8.3 // indirect
|
||||
github.com/rs/zerolog v1.29.1 // indirect
|
||||
github.com/rs/zerolog v1.30.0 // 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
|
||||
@ -200,47 +180,44 @@ require (
|
||||
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
|
||||
go.uber.org/multierr v1.10.0 // indirect
|
||||
golang.org/x/crypto v0.13.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // 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/net v0.15.0 // indirect
|
||||
golang.org/x/oauth2 v0.10.0 // indirect
|
||||
golang.org/x/sys v0.12.0 // indirect
|
||||
golang.org/x/term v0.12.0 // indirect
|
||||
golang.org/x/text v0.13.0 // indirect
|
||||
golang.org/x/tools v0.13.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/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // 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
|
||||
gotest.tools/v3 v3.5.0 // 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/libc v1.24.1 // indirect
|
||||
modernc.org/mathutil v1.5.0 // indirect
|
||||
modernc.org/memory v1.5.0 // indirect
|
||||
modernc.org/memory v1.6.0 // indirect
|
||||
modernc.org/opt v0.1.3 // indirect
|
||||
modernc.org/sqlite v1.24.0 // indirect
|
||||
modernc.org/sqlite v1.25.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
|
||||
pgregory.net/rapid v1.1.0 // indirect
|
||||
sigs.k8s.io/yaml v1.3.0 // indirect
|
||||
)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -165,7 +165,7 @@ type Inputs struct {
|
||||
type Outputs struct {
|
||||
depinject.Out
|
||||
|
||||
auctionkeeper keeper.Keeper
|
||||
Auctionkeeper keeper.Keeper
|
||||
Module appmodule.AppModule
|
||||
}
|
||||
|
||||
@ -188,5 +188,5 @@ func ProvideModule(in Inputs) Outputs {
|
||||
|
||||
m := NewAppModule(in.Cdc, auctionkeeper)
|
||||
|
||||
return Outputs{auctionkeeper: auctionkeeper, Module: m}
|
||||
return Outputs{Auctionkeeper: auctionkeeper, Module: m}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user