-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(uniond): added differedack protos
- Loading branch information
1 parent
06d6d53
commit 868f2f9
Showing
4 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |