Skip to content

Commit

Permalink
refactor: updating IdentifiedPacketFee
Browse files Browse the repository at this point in the history
  • Loading branch information
seantking committed Jul 22, 2021
1 parent 0cedbe5 commit 42cd7d1
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 61 deletions.
5 changes: 4 additions & 1 deletion docs/ibc/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,10 @@ Fee associated with a packet_id
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `packet_id` | [ibc.core.channel.v1.PacketId](#ibc.core.channel.v1.PacketId) | | |
| `fee` | [Fee](#ibc.applications.middleware.fee.v1.Fee) | | |
| `receive_fee` | [Fee](#ibc.applications.middleware.fee.v1.Fee) | | |
| `ack_fee` | [Fee](#ibc.applications.middleware.fee.v1.Fee) | | |
| `timeout_fee` | [Fee](#ibc.applications.middleware.fee.v1.Fee) | | |
| `relayers` | [string](#string) | repeated | |



Expand Down
254 changes: 217 additions & 37 deletions modules/apps/29-fee/types/fee.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 19 additions & 21 deletions modules/apps/29-fee/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions proto/ibc/applications/middleware/fee/v1/fee.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ message Fee {

// Fee associated with a packet_id
message IdentifiedPacketFee {
ibc.core.channel.v1.PacketId packet_id = 1 [(gogoproto.moretags) = "yaml:\"packet_id\""];
Fee fee = 2;
ibc.core.channel.v1.PacketId packet_id = 1 [(gogoproto.moretags) = "yaml:\"packet_id\""];
Fee receive_fee = 2 [(gogoproto.moretags) = "yaml:\"receive_fee\""];
Fee ack_fee = 3 [(gogoproto.moretags) = "yaml:\"ack_fee\""];
Fee timeout_fee = 4 [(gogoproto.moretags) = "yaml:\"timeout_fee\""];
repeated string relayers = 5;
}
1 change: 1 addition & 0 deletions proto/ibc/applications/middleware/fee/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
syntax = "proto3";

package ibc.applications.middleware.fee.v1;
import "gogoproto/gogo.proto";
import "ibc/applications/middleware/fee/v1/fee.proto";
option go_package = "github.com/cosmos/ibc-go/modules/apps/29-fee/types";
Expand Down

0 comments on commit 42cd7d1

Please sign in to comment.