Closed JanLewDev closed 1 month ago
Create a secondary mapping using the KVStore to avoid the following pagination query in x/subscription/keeper/query_subscription.go:
x/subscription/keeper/query_subscription.go
var subscriptions []types.Subscription pageRes, err := query.Paginate(store, req.Pagination, func(key []byte, value []byte) error { var subscription types.Subscription if err := k.cdc.Unmarshal(value, &subscription); err != nil { return err } if subscription.Provider == req.Provider { subscriptions = append(subscriptions, subscription) } return nil })
I am applying to this issue via OnlyDust platform.
I used go for many years, and shall be good to do this one
understand the code base and do what is asked
go ahead
Create a secondary mapping using the KVStore to avoid the following pagination query in
x/subscription/keeper/query_subscription.go
: