Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: capability addition to ibc-go structure #3097

Merged
merged 51 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
4ce6c42
proposal capability addition to ibc-go
tac0turtle Feb 1, 2023
c63f833
Merge branch 'main' into marko/capability
tac0turtle Feb 13, 2023
cc6f3e4
Merge branch 'main' into marko/capability
chatton Mar 1, 2023
d5ff31a
moved cability module up one level and fixed imports for sdk types
chatton Mar 1, 2023
dc843d7
changed module import path
chatton Mar 1, 2023
9fc47f0
adding proto files and generated pb files
chatton Mar 1, 2023
8c53c91
pinning sdk version to tip of rc2 release branch
chatton Mar 1, 2023
e78b44e
Merge branch 'main' into marko/capability
chatton Mar 10, 2023
f328da0
adding capability code from sdk v0.47-rc3
chatton Mar 10, 2023
a83d5b8
comment out tests temporarily and use local pin to capability module
chatton Mar 10, 2023
682dbfa
updating go.mods
chatton Mar 10, 2023
740d999
fix docker build
chatton Mar 10, 2023
bde7265
pin iavl in e2e
chatton Mar 10, 2023
d9774d9
pinning ledger version
chatton Mar 10, 2023
8c0b780
moderate deps - downgrade iavl and cosmos-ledger-go and remove pins
damiannolan Mar 14, 2023
ae3401b
clean up go.mods
damiannolan Mar 14, 2023
91fbf42
Merge branch 'main' into marko/capability
chatton Mar 15, 2023
4071d60
make lint-fix
chatton Mar 15, 2023
9088f5a
Merge branch 'main' into marko/capability
damiannolan Mar 15, 2023
1b37341
refactor and fix failing tests
damiannolan Mar 16, 2023
81753c0
remove pins in go.mod
damiannolan Mar 16, 2023
7d7e4a6
cleanup testhelpers
damiannolan Mar 16, 2023
64774d1
cleanup test code
damiannolan Mar 17, 2023
990ba87
adding CI for capability module
chatton Mar 21, 2023
3141175
adding CI for capability module
chatton Mar 21, 2023
e1d2d29
run workflow when workflow changes
chatton Mar 21, 2023
cc5d5fc
trigger ci
chatton Mar 21, 2023
9eafa5a
always trigger workflow
chatton Mar 21, 2023
baededa
test workflow triggering
chatton Mar 21, 2023
fe2fddf
test workflow
chatton Mar 21, 2023
e8ccbed
Merge branch 'main' into marko/capability
chatton Mar 21, 2023
e0086da
trigger workflow
chatton Mar 21, 2023
7a34eda
trigger workflow
chatton Mar 21, 2023
1b7a463
using tag of alpha1
chatton Mar 21, 2023
c5ce26c
Merge branch 'main' into marko/capability
chatton Mar 21, 2023
7955031
added verbose flag to workflow
chatton Mar 21, 2023
ed26371
remove module pin from e2e go.mod
chatton Mar 21, 2023
879dc54
undid interchain test replace
chatton Mar 21, 2023
0fedb5a
Merge branch 'main' into marko/capability
damiannolan Mar 21, 2023
a82c998
organise imports
damiannolan Mar 21, 2023
1765fa7
cleanup go.mod
damiannolan Mar 22, 2023
06709e0
removing todo in errors.go
damiannolan Mar 22, 2023
f8e1cef
use aliased import in simapp for ibcmock
damiannolan Mar 22, 2023
135f2e4
Merge branch 'main' into marko/capability
damiannolan Mar 22, 2023
2ec1dea
Merge branch 'main' into marko/capability
chatton Mar 22, 2023
586d870
addressed PR feedback
chatton Mar 23, 2023
e450442
reanmed proto from v1beta1 to v1
chatton Mar 23, 2023
8efce66
Merge branch 'main' into marko/capability
chatton Mar 23, 2023
5b7c0e9
merge main
chatton Mar 30, 2023
878ea98
Merge branch 'main' into marko/capability
chatton Mar 30, 2023
ea8dabb
update capability module go.mod and go.sum
chatton Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/capability.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Capability Module
on:
push:
pull_request:
- '.github/workflows/capability.yml'
- 'modules/capability/**'
- 'proto/capability/**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-arch: ["amd64", "arm", "arm64"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Build capability-module
run: |
cd modules/capability
GOARCH=${{ matrix.go-arch }} go build ./...

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Go Test
run: |
cd modules/capability
go test -v -mod=readonly ./...
7 changes: 3 additions & 4 deletions e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
go.uber.org/zap v1.24.0
golang.org/x/mod v0.9.0
google.golang.org/grpc v1.53.0
gopkg.in/yaml.v2 v2.4.0
)

require (
Expand Down Expand Up @@ -58,6 +59,7 @@ require (
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/iavl v0.20.0 // indirect
github.com/cosmos/ibc-go/modules/capability v1.0.0-alpha1 // indirect
github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab // indirect
github.com/cosmos/ledger-cosmos-go v0.13.0 // indirect
github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect
Expand All @@ -84,7 +86,7 @@ require (
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-playground/universal-translator v0.18.0 // indirect
github.com/go-playground/locales v0.14.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
Expand Down Expand Up @@ -126,7 +128,6 @@ require (
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.4 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-libp2p v0.26.2 // indirect
Expand Down Expand Up @@ -180,7 +181,6 @@ require (
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/ugorji/go/codec v1.2.7 // indirect
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/vedhavyas/go-subkey v1.0.4 // indirect
github.com/zondax/hid v0.9.1 // indirect
Expand All @@ -205,7 +205,6 @@ require (
google.golang.org/protobuf v1.29.1 // 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
lukechampine.com/uint128 v1.2.0 // indirect
Expand Down
7 changes: 3 additions & 4 deletions e2e/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ github.com/cosmos/gogoproto v1.4.6 h1:Ee7z15dWJaGlgM2rWrK8N2IX7PQcuccu8oG68jp5RL
github.com/cosmos/gogoproto v1.4.6/go.mod h1:VS/ASYmPgv6zkPKLjR9EB91lwbLHOzaGCirmKKhncfI=
github.com/cosmos/iavl v0.20.0 h1:fTVznVlepH0KK8NyKq8w+U7c2L6jofa27aFX6YGlm38=
github.com/cosmos/iavl v0.20.0/go.mod h1:WO7FyvaZJoH65+HFOsDir7xU9FWk2w9cHXNW1XHcl7A=
github.com/cosmos/ibc-go/modules/capability v1.0.0-alpha1 h1:jbMVwwYESTFObe2LDAT1BbUBrvgg0TH42r5QA7Tl0pw=
github.com/cosmos/ibc-go/modules/capability v1.0.0-alpha1/go.mod h1:SQDhk4WTGixPVzWt2czMInwNrFXBBHpKv4JrPqxGBaA=
github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab h1:I9ialKTQo7248V827Bba4OuKPmk+FPzmTVHsLXaIJWw=
github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab/go.mod h1:2CwqasX5dSD7Hbp/9b6lhK6BwoBDCBldx7gPKRukR60=
github.com/cosmos/interchain-accounts v0.5.0 h1:bD4U5PzaRbgsGCTwKEShPjKXFxSIp9D+kAqFutYKl1E=
Expand Down Expand Up @@ -464,7 +466,6 @@ github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb
github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs=
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho=
github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA=
github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI=
github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ=
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
Expand Down Expand Up @@ -731,7 +732,6 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w=
github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY=
github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw=
github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8=
Expand Down Expand Up @@ -1011,12 +1011,11 @@ github.com/tklauser/go-sysconf v0.3.5 h1:uu3Xl4nkLzQfXNsWn15rPc/HQCJKObbt1dKJeWp
github.com/tklauser/numcpus v0.2.2 h1:oyhllyrScuYI6g+h/zUvNXNp1wy7x8qQy3t/piefldA=
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
github.com/ugorji/go v1.2.7/go.mod h1:nF9osbDWLy6bDVv/Rtoh6QgnvNDpmCalQV5urGCCS6M=
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0=
github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY=
github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8=
github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
Expand Down
9 changes: 5 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ require (
cosmossdk.io/api v0.3.1
cosmossdk.io/errors v1.0.0-beta.7
cosmossdk.io/math v1.0.0-rc.0
cosmossdk.io/simapp v0.0.0-20230224204036-a6adb0821462
cosmossdk.io/simapp v0.0.0-20230314133540-9acdbb94da5a
cosmossdk.io/tools/rosetta v0.2.1
github.com/armon/go-metrics v0.4.1
github.com/cometbft/cometbft v0.37.0
github.com/cometbft/cometbft-db v0.7.0
github.com/cosmos/cosmos-proto v1.0.0-beta.2
github.com/cosmos/cosmos-sdk v0.47.0
github.com/cosmos/gogoproto v1.4.6
github.com/cosmos/ibc-go/modules/capability v1.0.0-alpha1
github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab
github.com/golang/protobuf v1.5.3
github.com/gorilla/mux v1.8.0
Expand Down Expand Up @@ -71,12 +72,10 @@ require (
github.com/dvsekhvalnov/jose2go v1.5.0 // indirect
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/gin-gonic/gin v1.8.1 // 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-playground/validator/v10 v10.11.1 // indirect
github.com/goccy/go-json v0.9.11 // indirect
github.com/go-playground/universal-translator v0.18.0 // 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.2 // indirect
Expand Down Expand Up @@ -111,6 +110,7 @@ require (
github.com/jmhodges/levigo v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.16.3 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
Expand Down Expand Up @@ -144,6 +144,7 @@ require (
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/ugorji/go/codec v1.2.7 // 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
Expand Down
Loading