diff --git a/uniond/proto/differedack/v1beta1/genesis.proto b/uniond/proto/differedack/v1beta1/genesis.proto new file mode 100644 index 0000000000..0b00ad3162 --- /dev/null +++ b/uniond/proto/differedack/v1beta1/genesis.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; +package differedack.v1beta1; + +import "gogoproto/gogo.proto"; +import "differedack/v1beta1/params.proto"; + + +option go_package = "union/x/differedack/types"; + +// GenesisState defines the differedack module's genesis state. +message GenesisState { + // params defines the paramaters of the module. + Params params = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/uniond/proto/differedack/v1beta1/params.proto b/uniond/proto/differedack/v1beta1/params.proto new file mode 100644 index 0000000000..dbe8a76aea --- /dev/null +++ b/uniond/proto/differedack/v1beta1/params.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package differedack.v1beta1; + +import "gogoproto/gogo.proto"; +import "amino/amino.proto"; + +option go_package = "union/x/differedack/types"; + +// Params defines the parameters for the differedack module. +message Params { + string fee_percentage = 1 [ + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} diff --git a/uniond/proto/differedack/v1beta1/query.proto b/uniond/proto/differedack/v1beta1/query.proto new file mode 100644 index 0000000000..29afe119b3 --- /dev/null +++ b/uniond/proto/differedack/v1beta1/query.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package differedack.v1beta1; + +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "differedack/v1beta1/params.proto"; + +option go_package = "union/x/differedack/types"; + +// Query defines the gRPC querier service. +service Query { + // Params defines a gRPC query method that returns the differedack module's + // parameters. + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/differedack.v1beta1/params"; + } +} + +// QueryParamsRequest is the request type for the Query/Params RPC method. +message QueryParamsRequest {} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +message QueryParamsResponse { + // params defines the parameters of the module. + Params params = 1 [ (gogoproto.nullable) = false ]; +} diff --git a/uniond/proto/differedack/v1beta1/tx.proto b/uniond/proto/differedack/v1beta1/tx.proto new file mode 100644 index 0000000000..9118718853 --- /dev/null +++ b/uniond/proto/differedack/v1beta1/tx.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; +package differedack.v1beta1; + +import "gogoproto/gogo.proto"; +import "cosmos/msg/v1/msg.proto"; +import "ibc/core/channel/v1/channel.proto"; +import "ibc/applications/transfer/v2/packet.proto"; + +option go_package = "union/x/differedack/types"; + +// Msg defines the differedack module's gRPC message service. +service Msg { + option (cosmos.msg.v1.service) = true; + + rpc WriteDifferedAck(MsgWriteDifferedAck) returns (MsgWriteDifferedAckResponse); +} + +message MsgWriteDifferedAck { + ibc.core.channel.v1.Packet packet = 1; + ibc.applications.transfer.v2.FungibleTokenPacketData data = 2; + DifferedPacketInfo differedPacketInfo = 3; + ibc.core.channel.v1.Acknowledgement ack = 4; +} + +message MsgWriteDifferedAckResponse { + +} + +message DifferedPacketInfo { + string original_sender_address = 1; + string refund_channel_id = 2; + string refund_port_id = 3; + string packet_src_channel_id = 4; + string packet_src_port_id = 5; + uint64 packet_timeout_timestamp = 6; + string packet_timeout_height = 7; + bytes packet_data = 8; + uint64 refund_sequence = 9; + uint64 timeout = 10; + bool nonrefundable = 11; +}