Skip to content

Commit

Permalink
CNS-434: drop unused fields from subscription proto
Browse files Browse the repository at this point in the history
  • Loading branch information
orenl-lava committed Jun 19, 2023
1 parent 741050d commit eedbf11
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 142 deletions.
8 changes: 4 additions & 4 deletions proto/subscription/subscription.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ option go_package = "github.com/lavanet/lava/x/subscription/types";
message Subscription {
string creator = 1; // creator pays for the subscription
string consumer = 2; // consumer uses the subscription
uint64 block = 3; // when the subscription was created
uint64 block = 3; // when the subscription was last recharged
string plan_index = 4; // index (name) of plan
uint64 plan_block = 5; // when the plan was created
uint64 duration_total = 6; // total requested duration in months
uint64 duration_left = 7; // remaining duration in months
uint64 month_expiry_time = 8; // expiry time of current month
uint64 prev_expiry_block = 9; // when previous month expired
reserved 8;
reserved 9;
uint64 month_cu_total = 10; // CU allowance during current month
uint64 month_cu_left = 11; // CU remaining during current month
uint64 prev_cu_left = 12; // CU remaining for previous month
reserved 12;
}
168 changes: 30 additions & 138 deletions x/subscription/types/subscription.pb.go

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

0 comments on commit eedbf11

Please sign in to comment.