Skip to content

Commit

Permalink
CNS-834: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Jan 25, 2024
1 parent 861fc23 commit a2aeb70
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions x/plans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ A plan consists of limitations that are associated with a subscription. A consum

```go
type Plan struct {
Index string // plan unique index
Block uint64 // the epoch that this plan was created
Price Coin // plan price (in ulava)
AllowOveruse bool // allow CU overuse flag
OveruseRate uint64 // price of CU overuse (higher price per CU)
Description string // plan description (for humans)
Type string // plan type (currently unused)
AnnualDiscountPercentage uint64 // discount for buying a yearly plan (percentage)
PlanPolicy Policy // plan's policy
ProjectsLimit uint64 // number of allowed projects
Index string // plan unique index
Block uint64 // the epoch that this plan was created
Price Coin // plan price (in ulava)
AllowOveruse bool // allow CU overuse flag
OveruseRate uint64 // price of CU overuse (higher price per CU)
Description string // plan description (for humans)
Type string // plan type (currently unused)
AnnualDiscountPercentage uint64 // discount for buying a yearly plan (percentage)
PlanPolicy Policy // plan's policy
ProjectsLimit uint64 // number of allowed projects
AllowedBuyers []string // list of addresses that are allowed to buy the plan (empty list -> everyone is allowed)
}
```
Note, the `Coin` type is from Cosmos-SDK (`cosmos.base.v1beta1.Coin`).
Expand Down

0 comments on commit a2aeb70

Please sign in to comment.