Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zale144 committed Sep 13, 2024
1 parent c49b108 commit b366330
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions relayer/chains/cosmos/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/gogoproto/proto"
commitmenttypes "github.com/cosmos/ibc-go/v8/modules/core/23-commitment/types"
"github.com/strangelove-ventures/cometbft-client/client"

cwrapper "github.com/cosmos/relayer/v2/client"
"github.com/cosmos/relayer/v2/relayer/codecs/ethermint"
"github.com/cosmos/relayer/v2/relayer/processor"
"github.com/cosmos/relayer/v2/relayer/provider"
"github.com/strangelove-ventures/cometbft-client/client"
"go.uber.org/zap"
)

var (
Expand Down
19 changes: 10 additions & 9 deletions relayer/chains/cosmos/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
sdkerrors "cosmossdk.io/errors"
sdkmath "cosmossdk.io/math"
"cosmossdk.io/store/rootmulti"
"github.com/avast/retry-go/v4"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/bytes"
"github.com/cometbft/cometbft/light"
Expand Down Expand Up @@ -43,13 +44,13 @@ import (
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
tmclient "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"
localhost "github.com/cosmos/ibc-go/v8/modules/light-clients/09-localhost"
"github.com/danwt/gerr/gerr"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

strideicqtypes "github.com/cosmos/relayer/v2/relayer/chains/cosmos/stride"
"github.com/cosmos/relayer/v2/relayer/ethermint"
"github.com/cosmos/relayer/v2/relayer/provider"
"github.com/danwt/gerr/gerr"
"go.uber.org/zap"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

// Variables used for retries
Expand Down Expand Up @@ -360,13 +361,13 @@ func (cc *CosmosProvider) sdkError(codespace string, code uint32) error {
// The wait will end after either the asyncTimeout has run out or the asyncCtx exits.
// If there is no error broadcasting, the asyncCallback will be called with success/failure of the wait for block inclusion.
func (cc *CosmosProvider) broadcastTx(
ctx context.Context, // context for tx broadcast
tx []byte, // raw tx to be broadcasted
ctx context.Context, // context for tx broadcast
tx []byte, // raw tx to be broadcasted
msgs []provider.RelayerMessage, // used for logging only
fees sdk.Coins, // used for metrics
fees sdk.Coins, // used for metrics

asyncCtx context.Context, // context for async wait for block inclusion after successful tx broadcast
asyncTimeout time.Duration, // timeout for waiting for block inclusion
asyncCtx context.Context, // context for async wait for block inclusion after successful tx broadcast
asyncTimeout time.Duration, // timeout for waiting for block inclusion
asyncCallbacks []func(*provider.RelayerTxResponse, error), // callback for success/fail of the wait for block inclusion
) error {
res, err := cc.RPCClient.BroadcastTxSync(ctx, tx)
Expand Down

0 comments on commit b366330

Please sign in to comment.