Skip to content

Commit

Permalink
remove unrelated IBC features
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 18, 2023
1 parent d462ad1 commit 4bd5999
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 179 deletions.
13 changes: 12 additions & 1 deletion modules/ibc-hooks/e2e/ibchooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ func TestIBCHooks(t *testing.T) {
EncodingConfig: WasmEncodingConfig(),
}

cosmos.SetSDKConfig(cfg.Bech32Prefix)

cfg2 := cfg.Clone()
cfg2.Name = "osmosis-counterparty"
cfg2.Name = "counterparty"
cfg2.ChainID = "counterparty-2"

chains := interchaintest.CreateChainsWithChainSpecs(t, []*interchaintest.ChainSpec{
Expand Down Expand Up @@ -122,6 +124,7 @@ func TestIBCHooks(t *testing.T) {
// Initial transfer. Account is created by the wasm execute is not so we must do this twice to properly set up
transferTx, err := osmosis.SendIBCTransfer(ctx, channel.ChannelID, osmosisUser.KeyName(), transfer, memo)
require.NoError(t, err)

osmosisHeight, err := osmosis.Height(ctx)
require.NoError(t, err)

Expand All @@ -141,6 +144,14 @@ func TestIBCHooks(t *testing.T) {
addr := GetIBCHooksUserAddress(t, ctx, osmosis, channel.ChannelID, osmosisUserAddr)
require.NotEmpty(t, addr)

fmt.Println(transferTx)
fmt.Println("Waiting for blocks...", osmosis.GetNode().Chain.GetHostRPCAddress(), osmosis2.GetNode().Chain.GetHostRPCAddress())
fmt.Println("userAddr", osmosisUserAddr, "uAddr", addr)
fmt.Println("contractAddr", contractAddr)
// simd query ibchooks wasm-sender channel-0 cosmos1d6689gwhh52ld4aysh2qw7ms7j6umw6gpynnv2 --node=http://127.0.0.1:40027
// simd q wasm contract-state smart cosmos14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9s4hmalr '{"get_total_funds":{"addr":"cosmos12ufqv9hkh07kznkzal4l0mg86zjzduk0ddxkx68fkkszz9djglnsa0a2vc"}}' --node=http://127.0.0.1:41655
// TODO: testutil.WaitForBlocks(ctx, 50000, osmosis)

// Get funds on the receiving chain
funds := GetIBCHookTotalFunds(t, ctx, osmosis2, contractAddr, addr)
require.Equal(t, int(1), len(funds.Data.TotalFunds))
Expand Down
28 changes: 14 additions & 14 deletions modules/ibc-hooks/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ require (
cosmossdk.io/log v1.2.1
cosmossdk.io/math v1.1.2
cosmossdk.io/tools/rosetta v0.2.1
github.com/CosmWasm/wasmd v0.40.0-rc.1
github.com/CosmWasm/wasmd v0.43.0
github.com/cometbft/cometbft v0.37.2
github.com/cometbft/cometbft-db v0.7.0
github.com/cometbft/cometbft-db v0.8.0
github.com/cosmos/cosmos-sdk v0.47.5
github.com/cosmos/ibc-go/v7 v7.0.0
github.com/cosmos/ibc-go/v7 v7.3.0
github.com/gorilla/mux v1.8.0
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/prometheus/client_golang v1.15.0
github.com/spf13/cast v1.5.0
github.com/prometheus/client_golang v1.16.0
github.com/spf13/cast v1.5.1
github.com/spf13/cobra v1.7.0
github.com/stretchr/testify v1.8.4
)
Expand All @@ -53,7 +53,7 @@ require (
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.2 // indirect
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
github.com/CosmWasm/wasmvm v1.2.3 // indirect
github.com/CosmWasm/wasmvm v1.4.1 // indirect
github.com/armon/go-metrics v0.4.1 // indirect
github.com/aws/aws-sdk-go v1.44.203 // indirect
github.com/beorn7/perks v1.0.1 // indirect
Expand All @@ -75,8 +75,8 @@ require (
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/ics23/go v0.9.1-0.20221207100636-b1abd8678aab // indirect
github.com/cosmos/iavl v0.20.1 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect
github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect
github.com/creachadair/taskgroup v0.4.2 // indirect
Expand All @@ -87,7 +87,7 @@ require (
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.1+incompatible // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/felixge/httpsnoop v1.0.2 // indirect
Expand Down Expand Up @@ -136,6 +136,7 @@ require (
github.com/kr/text v0.2.0 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/libp2p/go-buffer-pool 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
Expand All @@ -148,26 +149,25 @@ require (
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mtibben/percent v0.2.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.7 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.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/prometheus/procfs v0.10.1 // indirect
github.com/rakyll/statik v0.1.7 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/rs/cors v1.8.3 // indirect
github.com/rs/zerolog v1.30.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.15.0 // 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/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
github.com/tendermint/go-amino v0.16.0 // indirect
github.com/tidwall/btree v1.6.0 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
Expand Down
Loading

0 comments on commit 4bd5999

Please sign in to comment.