Skip to content

Commit

Permalink
feat: Added authz support for ics20 (#3079)
Browse files Browse the repository at this point in the history
Co-authored-by: Damian Nolan <[email protected]>
Co-authored-by: Cian Hatton <[email protected]>
Co-authored-by: Charleen Fei <[email protected]>
Co-authored-by: Zaki Manian <[email protected]>
(cherry picked from commit 6c008ea)

# Conflicts:
#	.github/workflows/e2e-manual-simd.yaml
#	e2e/testconfig/testconfig.go
#	e2e/testsuite/codec.go
#	e2e/testsuite/testsuite.go
#	e2e/testvalues/values.go
#	go.mod
#	modules/apps/transfer/types/codec.go
#	modules/apps/transfer/types/types_test.go
  • Loading branch information
Carlos Rodriguez authored and mergify[bot] committed Apr 25, 2023
1 parent 2d8f1e0 commit d83bbbb
Show file tree
Hide file tree
Showing 16 changed files with 2,636 additions and 29 deletions.
85 changes: 85 additions & 0 deletions .github/workflows/e2e-manual-simd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Manual E2E (Simd)
on:
# when https://github.com/community/community/discussions/11795 is resolved
# we will be able to dynamically build up the list of valid inputs.
# for now this needs to be manual.
workflow_dispatch:
inputs:
test-entry-point:
description: 'Test entry point'
required: true
type: choice
options:
- TestTransferTestSuite
- TestIncentivizedTransferTestSuite
- TestConnectionTestSuite
- TestInterchainAccountsTestSuite
- TestInterchainAccountsGroupsTestSuite
- TestInterchainAccountsGovTestSuite
- TestIncentivizedInterchainAccountsTestSuite
- TestAuthzTransferTestSuite
chain-image:
description: 'The image to use for chain A'
required: true
type: string
default: "ghcr.io/cosmos/ibc-go-simd"
chain-binary:
description: 'Specify the chain binary to be used'
required: true
type: string
default: "simd"
chain-a-tag:
description: 'The tag to use for chain A'
required: true
type: choice
default: main
options:
- main
- v6.1.0
- v5.2.0
- v4.2.0
- v4.1.1
- v3.4.0
- v3.3.1
- v2.5.0
- v2.4.2
chain-a-tag-override:
description: 'Specify an arbitrary tag for chain A'
required: false
type: string
chain-b-tag:
default: v6.0.0
description: 'The tag to use for chain B'
required: true
type: choice
options:
- main
- v6.1.0
- v5.2.0
- v4.2.0
- v4.1.1
- v3.4.0
- v3.3.1
- v2.5.0
- v2.4.2
chain-b-tag-override:
description: 'Specify an arbitrary tag for chain B'
required: false
type: string
relayer-tag:
description: 'The tag to use for the relayer'
required: true
default: "v2.1.2"
type: string


jobs:
e2e-manual:
uses: ./.github/workflows/e2e-test-workflow-call.yml
with:
chain-image: "${{ github.event.inputs.chain-image }}"
chain-a-tag: "${{ github.event.inputs.chain-a-tag-override || github.event.inputs.chain-a-tag }}"
chain-b-tag: "${{ github.event.inputs.chain-b-tag-override || github.event.inputs.chain-b-tag }}"
relayer-tag: "${{ github.event.inputs.relayer-tag }}"
test-entry-point: "${{ github.event.inputs.test-entry-point }}"
chain-binary: "${{ github.event.inputs.chain-binary }}"
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 @@ -2291,6 +2295,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 d83bbbb

Please sign in to comment.