github.com/lino-network/lino@v0.6.11/x/price/model/dumper.go (about)

     1  package model
     2  
     3  import (
     4  	// sdk "github.com/cosmos/cosmos-sdk/types"
     5  
     6  	"github.com/lino-network/lino/testutils"
     7  	linotypes "github.com/lino-network/lino/types"
     8  )
     9  
    10  func NewPriceDumper(store PriceStorage) *testutils.Dumper {
    11  	dumper := testutils.NewDumper(store.key, store.cdc)
    12  	dumper.RegisterType(&FedPrice{}, "lino/price/fedprice", fedPriceSubStore)
    13  	dumper.RegisterType(&[]TimePrice{}, "lino/price/history", priceHistorySubStore)
    14  	dumper.RegisterType(&TimePrice{}, "lino/price/current", currentPriceSubStore)
    15  	dumper.RegisterType(&[]linotypes.AccountKey{}, "lino/price/lastvals", lastValidatorsSubStore)
    16  	dumper.RegisterType(&[]FeedHistory{}, "lino/price/feedhistory", feedHistorySubStore)
    17  	return dumper
    18  }