@@ -11,7 +11,6 @@ import (
1111 "math/rand"
1212 "os"
1313 "path"
14- "path/filepath"
1514 "strconv"
1615 "strings"
1716 "sync"
@@ -22,13 +21,11 @@ import (
2221 "github.com/docker/go-connections/nat"
2322 dockerclient "github.com/moby/moby/client"
2423 "go.uber.org/zap"
25- "golang.org/x/mod/semver"
2624 "golang.org/x/sync/errgroup"
2725 "google.golang.org/grpc"
2826 "google.golang.org/grpc/credentials/insecure"
2927
3028 icatypes "github.com/cosmos/ibc-go/v10/modules/apps/27-interchain-accounts/types"
31- ccvclient "github.com/cosmos/interchain-security/v7/x/ccv/provider/client"
3229
3330 "github.com/cosmos/cosmos-sdk/client"
3431 "github.com/cosmos/cosmos-sdk/codec"
@@ -755,24 +752,6 @@ func (tn *ChainNode) IsAboveSDK47(ctx context.Context) bool {
755752 return tn .HasCommand (ctx , "genesis" )
756753}
757754
758- // ICSVersion returns the version of interchain-security the binary was built with.
759- // If it doesn't depend on interchain-security, it returns an empty string.
760- func (tn * ChainNode ) ICSVersion (ctx context.Context ) string {
761- if strings .HasPrefix (tn .Chain .Config ().Bin , "interchain-security" ) {
762- // This isn't super pretty, but it's the best we can do for an interchain-security binary.
763- // It doesn't depend on itself, and the version command doesn't actually output a version.
764- // Ideally if you have a binary called something like "v3.3.0-my-fix" you can use it as a version, since the v3.3.0 part is in it.
765- return semver .Canonical (tn .Image .Version )
766- }
767- info := tn .GetBuildInformation (ctx )
768- for _ , dep := range info .BuildDeps {
769- if strings .HasPrefix (dep .Parent , "github.com/cosmos/interchain-security" ) {
770- return semver .Canonical (dep .Version )
771- }
772- }
773- return ""
774- }
775-
776755// AddGenesisAccount adds a genesis account for each key.
777756func (tn * ChainNode ) AddGenesisAccount (ctx context.Context , address string , genesisAmount []sdk.Coin ) error {
778757 amount := ""
@@ -887,27 +866,6 @@ func (tn *ChainNode) SendIBCTransfer(
887866 return tn .ExecTx (ctx , keyName , command ... )
888867}
889868
890- func (tn * ChainNode ) ConsumerAdditionProposal (ctx context.Context , keyName string , prop ccvclient.ConsumerAdditionProposalJSON ) (string , error ) {
891- propBz , err := json .Marshal (prop )
892- if err != nil {
893- return "" , err
894- }
895-
896- fileName := "proposal_" + dockerutil .RandLowerCaseLetterString (4 ) + ".json"
897-
898- fw := dockerutil .NewFileWriter (tn .logger (), tn .DockerClient , tn .TestName )
899- if err := fw .WriteFile (ctx , tn .VolumeName , fileName , propBz ); err != nil {
900- return "" , fmt .Errorf ("failure writing proposal json: %w" , err )
901- }
902-
903- filePath := filepath .Join (tn .HomeDir (), fileName )
904-
905- return tn .ExecTx (ctx , keyName ,
906- "gov" , "submit-legacy-proposal" , "consumer-addition" , filePath ,
907- "--gas" , "auto" ,
908- )
909- }
910-
911869func (tn * ChainNode ) GetTransaction (clientCtx client.Context , txHash string ) (* sdk.TxResponse , error ) {
912870 // Retry because sometimes the tx is not committed to state yet.
913871 var txResp * sdk.TxResponse
0 commit comments