Skip to content

Commit

Permalink
feat: adding authz support for ICS-20 MsgTransfer (#2795)
Browse files Browse the repository at this point in the history
* ibc transfer authz work

* add allowed address restriction for ibc transfer authz

* expect error when transferring to not allowed address

* feat: authz grants for ics-20 transfers

Create an authz grant that resricts to transfers to specific addresses and channels.

* convert IsAllPositive to Validate

* add gas cost per interation

* duplicated entry check

* chore: scaffold custom IBC light client development guide (#2860)

* chore: changing ibcprotocol.org to ibcprotocol.dev (#2884)

* chore: update README to include link to IDA (#2887)

* update README to reflect new website

* pr comment

* feat: Add genesis migrations for v6 to v7. The migration migrates the solo machine client state definition, removes all solo machine consensus states and removes the localhost client. (#2824)

* refactor: simplify automatic migration code by using client keeper functions (#2864)

* imp(api)!: remove legacy migrations required for upgrading from Stargate release line to ibc-go >= v1.x.x. (#2897)

* chore: remove unnecessary file (#2898)

* Update release-tracker.md

* docs: v6 ICA migration docs improvements

* e2e: changing default relayer tag to be v2.1.2 instead of main. (#2903)

* refactor: simplify optional tendermint pruning migrations (#2862)

* chore: add tmsdkeys to CODEOWNER for docs (#2904)

* docs: add legacy docs for ICA

* docs: added documentation for client state methods. (#2886)

* docs: improvements to ICA docs

* docs: move solomachine docs into the docs directory. (#2908)

* deps: bump technote-space/get-diff-action from 6.1.1 to 6.1.2 (#2899)

* deps: bump github.com/cosmos/cosmos-proto from 1.0.0-alpha8 to 1.0.0-beta.1 (#2870)

* update README (#2910)

* Update CHANGELOG.md

* chore: update ibctest to latest commit (#2909)

* update chainconfig

* update to commit fixing broadcastTx

* update to use SDK default cointype 118

* update so relayer tag isn't required

* Fixing markdown link (#2924)

* post v6.0.0 release chores (#2919)

* docs: update integration docs to include light client registration. (#2905)

* imp: Add `AssertEvents` which asserts events against expected event map. (#2829)

* e2e: adding e2e upgrade test for ibc-go v7 (#2902)

* add test for automatic migration of solomachine clientstate version

* add clientID generation functions

* update godoc

* update sprintf message

* e2e: update tags in e2e upgrade test

* chore: use diffs to make registration more clear (#2927)

* nit: fix typo in a comment

* refactor: require light clients to set the initial client state and consensus state via the client state `Initialize` method (#2936)

* set the initial client and consensus state via the client state Initialize method. update godocs

* updating godocs

* updating migration doc

* updating light client guide docs for Initialize method

* updating migration doc

* Apply suggestions from code review

Co-authored-by: Charly <charly@interchain.io>

* Update docs/ibc/light-clients/client-state.md

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>

* adding tests to lightclients

* updating 02-client tests

Co-authored-by: Charly <charly@interchain.io>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>

* chore: add backports for v4.3.x and v6.1.x

* update compatibility tests with new release branches (#2946)

* update compatibility tests

* compatibility tests for v4.3.x

* adding tags to tests

* Skip e2e if test matrix does not exist (#2949)

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: Cian Hatton <cian@interchain.io>

* fix(statemachine)!: check x/bank send enabled before escrowing fees

* chore(deps): bump goreleaser/goreleaser-action from 3 to 4 (#2932)

Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 4.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](goreleaser/goreleaser-action@v3...v4)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>

* chore(api)!: removing solomachine header sequence (#2941)

* removing solomachine header sequence

* removing commented out code in validate basic

* chore(deps): bump bufbuild/buf-setup-action from 1.9.0 to 1.10.0 (#2933)

* Resolve some code review comments

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: jgo121 <junkai121@outlook.com>
Co-authored-by: junkai121 <39806640+junkai121@users.noreply.github.com>
Co-authored-by: Charly <charly@interchain.berlin>
Co-authored-by: Cian Hatton <cian@interchain.io>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anmol <anmol1696@gmail.com>
Co-authored-by: Charly <charly@interchain.io>
Co-authored-by: Auridas F <francas@users.noreply.github.com>
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
  • Loading branch information
12 people authored Dec 19, 2022
1 parent c676bc6 commit d1b8a69
Show file tree
Hide file tree
Showing 16 changed files with 1,060 additions and 140 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/proto-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.9.0
- uses: bufbuild/buf-setup-action@v1.10.0
- uses: bufbuild/buf-push-action@v1
with:
input: "proto"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
go-version: '1.18'

- name: Release
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
Expand Down
54 changes: 54 additions & 0 deletions docs/ibc/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@

- [Msg](#ibc.applications.transfer.v1.Msg)

- [ibc/applications/transfer/v2/authz.proto](#ibc/applications/transfer/v2/authz.proto)
- [PortChannelAmount](#ibc.applications.transfer.v2.PortChannelAmount)
- [TransferAuthorization](#ibc.applications.transfer.v2.TransferAuthorization)

- [ibc/applications/transfer/v2/packet.proto](#ibc/applications/transfer/v2/packet.proto)
- [FungibleTokenPacketData](#ibc.applications.transfer.v2.FungibleTokenPacketData)

Expand Down Expand Up @@ -2296,6 +2300,56 @@ Msg defines the ibc/transfer Msg service.



<a name="ibc/applications/transfer/v2/authz.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## ibc/applications/transfer/v2/authz.proto



<a name="ibc.applications.transfer.v2.PortChannelAmount"></a>

### PortChannelAmount



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `source_port` | [string](#string) | | the port on which the packet will be sent |
| `source_channel` | [string](#string) | | the channel by which the packet will be sent |
| `spend_limit` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | spend limitation on the channel |
| `allowed_addresses` | [string](#string) | repeated | |






<a name="ibc.applications.transfer.v2.TransferAuthorization"></a>

### TransferAuthorization
TransferAuthorization allows the grantee to spend up to spend_limit coins from
the granter's account for ibc transfer on a specific channel


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `allocations` | [PortChannelAmount](#ibc.applications.transfer.v2.PortChannelAmount) | repeated | port and channel amounts |





<!-- end messages -->

<!-- end enums -->

<!-- end HasExtensions -->

<!-- end services -->



<a name="ibc/applications/transfer/v2/packet.proto"></a>
<p align="right"><a href="#top">Top</a></p>

Expand Down
Loading

0 comments on commit d1b8a69

Please sign in to comment.