Skip to content

Commit 3201ab9

Browse files
mergify[bot]chattonsrdtrkcrodriguezvega
authored
Give callbacks its own go.mod (backport #4341) (#4464)
* Give callbacks its own go.mod (#4341) (cherry picked from commit a18159f) # Conflicts: # modules/apps/callbacks/export_test.go # modules/apps/callbacks/ibc_middleware.go * fix: fixed initial backport conflicts * add changes from #4355 * style: ran gofumpt * Update callbacks.yml --------- Co-authored-by: Cian Hatton <cian@interchain.io> Co-authored-by: srdtrk <srdtrk@hotmail.com> Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
1 parent 02650e9 commit 3201ab9

15 files changed

+1858
-17
lines changed

.github/workflows/callbacks.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Callbacks Module
2+
# This workflow runs when a PR is opened that targets code that is part of the callbacks module.
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/callbacks.yml'
7+
- 'modules/apps/callbacks/**'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-arch: ['amd64', 'arm', 'arm64']
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.20'
20+
- name: Build callbacks-module
21+
run: |
22+
cd modules/apps/callbacks
23+
GOARCH=${{ matrix.go-arch }} go build ./...
24+
25+
tests:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: actions/setup-go@v4
30+
with:
31+
go-version: '1.20'
32+
- name: Go Test
33+
run: |
34+
cd modules/apps/callbacks
35+
go test -v -mod=readonly ./...

modules/apps/callbacks/callbacks_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import (
1616
dbm "github.com/cometbft/cometbft-db"
1717
"github.com/cometbft/cometbft/libs/log"
1818

19+
simapp "github.com/cosmos/ibc-go/modules/apps/callbacks/testing/simapp"
20+
"github.com/cosmos/ibc-go/modules/apps/callbacks/types"
1921
icacontrollertypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/controller/types"
2022
icatypes "github.com/cosmos/ibc-go/v7/modules/apps/27-interchain-accounts/types"
2123
feetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types"
22-
simapp "github.com/cosmos/ibc-go/v7/modules/apps/callbacks/testing/simapp"
23-
"github.com/cosmos/ibc-go/v7/modules/apps/callbacks/types"
2424
transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
2525
ibctesting "github.com/cosmos/ibc-go/v7/testing"
2626
ibcmock "github.com/cosmos/ibc-go/v7/testing/mock"

modules/apps/callbacks/export_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package ibccallbacks
77
import (
88
sdk "github.com/cosmos/cosmos-sdk/types"
99

10-
"github.com/cosmos/ibc-go/v7/modules/apps/callbacks/types"
10+
"github.com/cosmos/ibc-go/modules/apps/callbacks/types"
1111
porttypes "github.com/cosmos/ibc-go/v7/modules/core/05-port/types"
1212
)
1313

modules/apps/callbacks/fee_transfer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
sdk "github.com/cosmos/cosmos-sdk/types"
99

10+
"github.com/cosmos/ibc-go/modules/apps/callbacks/types"
1011
feetypes "github.com/cosmos/ibc-go/v7/modules/apps/29-fee/types"
11-
"github.com/cosmos/ibc-go/v7/modules/apps/callbacks/types"
1212
ibctesting "github.com/cosmos/ibc-go/v7/testing"
1313
)
1414

modules/apps/callbacks/go.mod

+175
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
module github.com/cosmos/ibc-go/modules/apps/callbacks
2+
3+
go 1.20
4+
5+
replace github.com/cosmos/ibc-go/v7 => ../../../
6+
7+
replace github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
8+
9+
require (
10+
cosmossdk.io/api v0.3.1
11+
cosmossdk.io/errors v1.0.0
12+
cosmossdk.io/math v1.0.1
13+
github.com/cometbft/cometbft v0.37.2
14+
github.com/cometbft/cometbft-db v0.8.0
15+
github.com/cosmos/cosmos-sdk v0.47.4
16+
github.com/cosmos/gogoproto v1.4.10
17+
github.com/cosmos/ibc-go/v7 v7.3.0-rc0
18+
github.com/spf13/cast v1.5.1
19+
github.com/stretchr/testify v1.8.4
20+
)
21+
22+
require (
23+
cloud.google.com/go v0.110.4 // indirect
24+
cloud.google.com/go/compute v1.20.1 // indirect
25+
cloud.google.com/go/compute/metadata v0.2.3 // indirect
26+
cloud.google.com/go/iam v1.1.0 // indirect
27+
cloud.google.com/go/storage v1.30.1 // indirect
28+
cosmossdk.io/core v0.5.1 // indirect
29+
cosmossdk.io/depinject v1.0.0-alpha.3 // indirect
30+
cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca // indirect
31+
cosmossdk.io/tools/rosetta v0.2.1 // indirect
32+
filippo.io/edwards25519 v1.0.0 // indirect
33+
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
34+
github.com/99designs/keyring v1.2.1 // indirect
35+
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
36+
github.com/armon/go-metrics v0.4.1 // indirect
37+
github.com/aws/aws-sdk-go v1.44.203 // indirect
38+
github.com/beorn7/perks v1.0.1 // indirect
39+
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
40+
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
41+
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
42+
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
43+
github.com/cespare/xxhash v1.1.0 // indirect
44+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
45+
github.com/chzyer/readline v1.5.1 // indirect
46+
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
47+
github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect
48+
github.com/confio/ics23/go v0.9.0 // indirect
49+
github.com/cosmos/btcutil v1.0.5 // indirect
50+
github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect
51+
github.com/cosmos/go-bip39 v1.0.0 // indirect
52+
github.com/cosmos/gogogateway v1.2.0 // indirect
53+
github.com/cosmos/iavl v0.20.0 // indirect
54+
github.com/cosmos/ics23/go v0.10.0 // indirect
55+
github.com/cosmos/ledger-cosmos-go v0.12.1 // indirect
56+
github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect
57+
github.com/creachadair/taskgroup v0.4.2 // indirect
58+
github.com/danieljoos/wincred v1.1.2 // indirect
59+
github.com/davecgh/go-spew v1.1.1 // indirect
60+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
61+
github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect
62+
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
63+
github.com/dgraph-io/ristretto v0.1.1 // indirect
64+
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
65+
github.com/dustin/go-humanize v1.0.1 // indirect
66+
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
67+
github.com/felixge/httpsnoop v1.0.2 // indirect
68+
github.com/fsnotify/fsnotify v1.6.0 // indirect
69+
github.com/gin-gonic/gin v1.8.1 // indirect
70+
github.com/go-kit/kit v0.12.0 // indirect
71+
github.com/go-kit/log v0.2.1 // indirect
72+
github.com/go-logfmt/logfmt v0.6.0 // indirect
73+
github.com/go-playground/validator/v10 v10.11.1 // indirect
74+
github.com/goccy/go-json v0.9.11 // indirect
75+
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
76+
github.com/gogo/googleapis v1.4.1 // indirect
77+
github.com/gogo/protobuf v1.3.2 // indirect
78+
github.com/golang/glog v1.1.0 // indirect
79+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
80+
github.com/golang/mock v1.6.0 // indirect
81+
github.com/golang/protobuf v1.5.3 // indirect
82+
github.com/golang/snappy v0.0.4 // indirect
83+
github.com/google/btree v1.1.2 // indirect
84+
github.com/google/go-cmp v0.5.9 // indirect
85+
github.com/google/orderedcode v0.0.1 // indirect
86+
github.com/google/s2a-go v0.1.4 // indirect
87+
github.com/google/uuid v1.3.0 // indirect
88+
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
89+
github.com/googleapis/gax-go/v2 v2.11.0 // indirect
90+
github.com/gorilla/handlers v1.5.1 // indirect
91+
github.com/gorilla/mux v1.8.0 // indirect
92+
github.com/gorilla/websocket v1.5.0 // indirect
93+
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
94+
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
95+
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
96+
github.com/gtank/merlin v0.1.1 // indirect
97+
github.com/gtank/ristretto255 v0.1.2 // indirect
98+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
99+
github.com/hashicorp/go-getter v1.7.1 // indirect
100+
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
101+
github.com/hashicorp/go-safetemp v1.0.0 // indirect
102+
github.com/hashicorp/go-version v1.6.0 // indirect
103+
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
104+
github.com/hashicorp/hcl v1.0.0 // indirect
105+
github.com/hdevalence/ed25519consensus v0.1.0 // indirect
106+
github.com/huandu/skiplist v1.2.0 // indirect
107+
github.com/improbable-eng/grpc-web v0.15.0 // indirect
108+
github.com/inconshreveable/mousetrap v1.1.0 // indirect
109+
github.com/jmespath/go-jmespath v0.4.0 // indirect
110+
github.com/jmhodges/levigo v1.0.0 // indirect
111+
github.com/klauspost/compress v1.16.3 // indirect
112+
github.com/lib/pq v1.10.7 // indirect
113+
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
114+
github.com/linxGnu/grocksdb v1.7.16 // indirect
115+
github.com/magiconair/properties v1.8.7 // indirect
116+
github.com/manifoldco/promptui v0.9.0 // indirect
117+
github.com/mattn/go-colorable v0.1.13 // indirect
118+
github.com/mattn/go-isatty v0.0.19 // indirect
119+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
120+
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect
121+
github.com/minio/highwayhash v1.0.2 // indirect
122+
github.com/mitchellh/go-homedir v1.1.0 // indirect
123+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
124+
github.com/mitchellh/mapstructure v1.5.0 // indirect
125+
github.com/mtibben/percent v0.2.1 // indirect
126+
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
127+
github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect
128+
github.com/pkg/errors v0.9.1 // indirect
129+
github.com/pmezard/go-difflib v1.0.0 // indirect
130+
github.com/prometheus/client_golang v1.14.0 // indirect
131+
github.com/prometheus/client_model v0.3.0 // indirect
132+
github.com/prometheus/common v0.42.0 // indirect
133+
github.com/prometheus/procfs v0.9.0 // indirect
134+
github.com/rakyll/statik v0.1.7 // indirect
135+
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
136+
github.com/rs/cors v1.8.3 // indirect
137+
github.com/rs/zerolog v1.29.1 // indirect
138+
github.com/sasha-s/go-deadlock v0.3.1 // indirect
139+
github.com/spf13/afero v1.9.5 // indirect
140+
github.com/spf13/cobra v1.7.0 // indirect
141+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
142+
github.com/spf13/pflag v1.0.5 // indirect
143+
github.com/spf13/viper v1.16.0 // indirect
144+
github.com/subosito/gotenv v1.4.2 // indirect
145+
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
146+
github.com/tendermint/go-amino v0.16.0 // indirect
147+
github.com/tidwall/btree v1.6.0 // indirect
148+
github.com/ulikunitz/xz v0.5.11 // indirect
149+
github.com/zondax/hid v0.9.1 // indirect
150+
github.com/zondax/ledger-go v0.14.1 // indirect
151+
go.etcd.io/bbolt v1.3.7 // indirect
152+
go.opencensus.io v0.24.0 // indirect
153+
golang.org/x/crypto v0.11.0 // indirect
154+
golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc // indirect
155+
golang.org/x/net v0.12.0 // indirect
156+
golang.org/x/oauth2 v0.8.0 // indirect
157+
golang.org/x/sync v0.2.0 // indirect
158+
golang.org/x/sys v0.10.0 // indirect
159+
golang.org/x/term v0.10.0 // indirect
160+
golang.org/x/text v0.11.0 // indirect
161+
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
162+
google.golang.org/api v0.126.0 // indirect
163+
google.golang.org/appengine v1.6.7 // indirect
164+
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect
165+
google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 // indirect
166+
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
167+
google.golang.org/grpc v1.57.0 // indirect
168+
google.golang.org/protobuf v1.31.0 // indirect
169+
gopkg.in/ini.v1 v1.67.0 // indirect
170+
gopkg.in/yaml.v2 v2.4.0 // indirect
171+
gopkg.in/yaml.v3 v3.0.1 // indirect
172+
nhooyr.io/websocket v1.8.6 // indirect
173+
pgregory.net/rapid v0.5.5 // indirect
174+
sigs.k8s.io/yaml v1.3.0 // indirect
175+
)

0 commit comments

Comments
 (0)