-
Notifications
You must be signed in to change notification settings - Fork 618
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
Allow authz granters to specify forwarding information for token transfers #6589
Comments
@bznein gonna assign this one to you, I think it will be a nice one we can hop on a call to discuss and/or pair on it 💪 |
We decided to not use any wildcard to allow all. |
+ repeated Hops allowed_forwarding_hops = 6;
+}
+
+message Hops {
+ repeated Hop hops = 1 [(gogoproto.nullable) = false]; What's the meaning of having both as repeated fields? Does it mean each "allowed_forwarding_hops" is a list of allowed Hops that can be specified in a Let's say we have two entries in "allowed_forwarding_hops":
Does this mean that the following
But this one is invalid?
|
I might have missed part of the conversation here. |
Sorry for the late replies, @bznein. The validation should check for exact equality, therefore
No, it's not mandatory. If it's not set, then no forwarding should be allowed. |
With the addition of
forwarding
toMsgTransfer
, we should allow authz granters to specify if all or a subset of forwarding routes are allowed when grantees send IBC transfers on their behalf.As discussed, we can add a new field to the
Allocation
type:So this field is a slice of
Hops
, which is itself a slice ofHop
, which is a port ID/channel ID pair.The granter can specify different combinations of hops that the grantee can use in their
MsgTransfer
. It's bit more problematic how to specify that all routes are allowed, though, since it's not straightforward to use a wildcard*
character in theallowed_forwarding_hops
field. I am open to suggestions from the rest of the team.Then in
Accept
we need to validate the hops inMsgTransfer
against theallowed_forwarding_hops
slices in theAllocation
.Let's discuss her in the issue is people agree with this proposal and in the naming of things. If we end up reusing
Trace
instead ofHop
, that should be reflected here as well.The text was updated successfully, but these errors were encountered: