github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/slashing/internal/types/querier.go (about) 1 package types 2 3 import ( 4 sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types" 5 ) 6 7 // DONTCOVER 8 9 // Query endpoints supported by the slashing querier 10 const ( 11 QueryParameters = "parameters" 12 QuerySigningInfo = "signingInfo" 13 QuerySigningInfos = "signingInfos" 14 ) 15 16 // QuerySigningInfoParams defines the params for the following queries: 17 // - 'custom/slashing/signingInfo' 18 type QuerySigningInfoParams struct { 19 ConsAddress sdk.ConsAddress 20 } 21 22 // NewQuerySigningInfoParams creates a new QuerySigningInfoParams instance 23 func NewQuerySigningInfoParams(consAddr sdk.ConsAddress) QuerySigningInfoParams { 24 return QuerySigningInfoParams{consAddr} 25 } 26 27 // QuerySigningInfosParams defines the params for the following queries: 28 // - 'custom/slashing/signingInfos' 29 type QuerySigningInfosParams struct { 30 Page, Limit int 31 } 32 33 // NewQuerySigningInfosParams creates a new QuerySigningInfosParams instance 34 func NewQuerySigningInfosParams(page, limit int) QuerySigningInfosParams { 35 return QuerySigningInfosParams{page, limit} 36 }