Skip to content

Commit f08fa66

Browse files
authored
feat: Added authz support for ics20 (backport #3079) (#3101)
1 parent 22dd4a5 commit f08fa66

File tree

8 files changed

+1207
-0
lines changed

8 files changed

+1207
-0
lines changed

docs/ibc/proto-docs.md

+54
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@
154154

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

157+
- [ibc/applications/transfer/v2/authz.proto](#ibc/applications/transfer/v2/authz.proto)
158+
- [PortChannelAmount](#ibc.applications.transfer.v2.PortChannelAmount)
159+
- [TransferAuthorization](#ibc.applications.transfer.v2.TransferAuthorization)
160+
157161
- [ibc/applications/transfer/v2/packet.proto](#ibc/applications/transfer/v2/packet.proto)
158162
- [FungibleTokenPacketData](#ibc.applications.transfer.v2.FungibleTokenPacketData)
159163

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

22972301

22982302

2303+
<a name="ibc/applications/transfer/v2/authz.proto"></a>
2304+
<p align="right"><a href="#top">Top</a></p>
2305+
2306+
## ibc/applications/transfer/v2/authz.proto
2307+
2308+
2309+
2310+
<a name="ibc.applications.transfer.v2.PortChannelAmount"></a>
2311+
2312+
### PortChannelAmount
2313+
2314+
2315+
2316+
| Field | Type | Label | Description |
2317+
| ----- | ---- | ----- | ----------- |
2318+
| `source_port` | [string](#string) | | the port on which the packet will be sent |
2319+
| `source_channel` | [string](#string) | | the channel by which the packet will be sent |
2320+
| `spend_limit` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | spend limitation on the channel |
2321+
| `allowed_addresses` | [string](#string) | repeated | |
2322+
2323+
2324+
2325+
2326+
2327+
2328+
<a name="ibc.applications.transfer.v2.TransferAuthorization"></a>
2329+
2330+
### TransferAuthorization
2331+
TransferAuthorization allows the grantee to spend up to spend_limit coins from
2332+
the granter's account for ibc transfer on a specific channel
2333+
2334+
2335+
| Field | Type | Label | Description |
2336+
| ----- | ---- | ----- | ----------- |
2337+
| `allocations` | [PortChannelAmount](#ibc.applications.transfer.v2.PortChannelAmount) | repeated | port and channel amounts |
2338+
2339+
2340+
2341+
2342+
2343+
<!-- end messages -->
2344+
2345+
<!-- end enums -->
2346+
2347+
<!-- end HasExtensions -->
2348+
2349+
<!-- end services -->
2350+
2351+
2352+
22992353
<a name="ibc/applications/transfer/v2/packet.proto"></a>
23002354
<p align="right"><a href="#top">Top</a></p>
23012355

0 commit comments

Comments
 (0)