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

feat: add authz support for ics20 (backport #3079) #3101

Merged
merged 3 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
feat: Added authz support for ics20 (#3079)
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
  • Loading branch information
crodriguezvega authored and mergify[bot] committed Feb 2, 2023
commit 02f78542de07f093c0badd332f05e8a617f82a9b
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 @@ -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