Skip to content

Commit

Permalink
feat(uniond): added differedack protos
Browse files Browse the repository at this point in the history
  • Loading branch information
PoisonPhang committed Jun 3, 2024
1 parent 06d6d53 commit 868f2f9
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
14 changes: 14 additions & 0 deletions uniond/proto/differedack/v1beta1/genesis.proto
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 ];
}
16 changes: 16 additions & 0 deletions uniond/proto/differedack/v1beta1/params.proto
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
];
}
26 changes: 26 additions & 0 deletions uniond/proto/differedack/v1beta1/query.proto
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 ];
}
41 changes: 41 additions & 0 deletions uniond/proto/differedack/v1beta1/tx.proto
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;
}

0 comments on commit 868f2f9

Please sign in to comment.