You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added optional packet metadata to the packet and message types (#2305)
* added optional packet metadata to the packet and message types
* added docs
* breaking the api (backports should add a utility function for this)
* adding nil metadata on all the calls
* added metadata to the cli
* added events
* breaking api for FungibleTokenPacketData
* hex encoding metadata
* added abstraction
* fixed bad merge
* added tests with metadata
* added missing metadata to packet for recv
* cleaning up metadata on every test
* reset metadata
* added metadata flag
* lint
* Update modules/apps/transfer/client/cli/tx.go
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
* fixed bad call in tests
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
(cherry picked from commit 82397d6)
# Conflicts:
# go.mod
# go.sum
# modules/apps/29-fee/transfer_test.go
# modules/apps/transfer/keeper/mbt_relay_test.go
# modules/apps/transfer/keeper/relay_test.go
# modules/apps/transfer/types/packet.pb.go
# modules/apps/transfer/types/tx.pb.go
# proto/ibc/applications/interchain_accounts/controller/v1/tx.proto
|`receiver`|[string](#string)|| the recipient address on the destination chain |
2147
2147
|`timeout_height`|[ibc.core.client.v1.Height](#ibc.core.client.v1.Height)|| Timeout height relative to the current block height. The timeout is disabled when set to 0. |
2148
2148
|`timeout_timestamp`|[uint64](#uint64)|| Timeout timestamp in absolute nanoseconds since unix epoch. The timeout is disabled when set to 0. |
@@ -120,6 +126,7 @@ corresponding to the counterparty channel. Any timeout set to 0 is disabled.`),
120
126
cmd.Flags().String(flagPacketTimeoutHeight, types.DefaultRelativePacketTimeoutHeight, "Packet timeout block height. The timeout is disabled when set to 0-0.")
121
127
cmd.Flags().Uint64(flagPacketTimeoutTimestamp, types.DefaultRelativePacketTimeoutTimestamp, "Packet timeout timestamp in nanoseconds from now. Default is 10 minutes. The timeout is disabled when set to 0.")
122
128
cmd.Flags().Bool(flagAbsoluteTimeouts, false, "Timeout flags are used as absolute timeouts.")
129
+
cmd.Flags().String(flagMetadata, "", "Metadata to be sent along with the packet. The CLI accepts only strings here but you can construct a packet with arbitrary bytes via code.")
0 commit comments