types

package
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeSetFeed = "set_feed"

	AttributeValueCategory = ModuleName
	AttributeKeyFeedName   = "feed_name"
	AttributeKeyFeedValue  = "feed_value"
)

guardian module event types

View Source
const (
	// module name
	ModuleName = "oracle"

	// StoreKey is the default store key for oracle
	StoreKey = ModuleName

	// RouterKey is the message route for oracle
	RouterKey = ModuleName

	// QuerierRoute is the querier route for the oracle store.
	QuerierRoute = StoreKey
)

nolint

View Source
const (
	MaxLatestHistory    = 100
	MaxNameLen          = 70
	MaxAggregateFuncLen = 10
	MaxValueJsonPath    = 70
	MaxDescriptionLen   = 200

	TypeMsgCreateFeed = "create_feed" // type for MsgCreateFeed
	TypeMsgStartFeed  = "start_feed"  // type for MsgStartFeed
	TypeMsgPauseFeed  = "pause_feed"  // type for MsgPauseFeed
	TypeMsgEditFeed   = "edit_feed"   // type for MsgEditFeed

	DoNotModify = "do-not-modify"
)
View Source
const (
	QueryFeed      = "feed"      // QueryFeed
	QueryFeeds     = "feeds"     // QueryFeeds
	QueryFeedValue = "feedValue" // QueryFeedValue
)

Variables

View Source
var (
	ErrUnknownFeedName      = sdkerrors.Register(ModuleName, 2, "unknown feed")
	ErrInvalidFeedName      = sdkerrors.Register(ModuleName, 3, "invalid feed name")
	ErrExistedFeedName      = sdkerrors.Register(ModuleName, 4, "feed already exists")
	ErrUnauthorized         = sdkerrors.Register(ModuleName, 5, "unauthorized owner")
	ErrInvalidServiceName   = sdkerrors.Register(ModuleName, 6, "invalid service name")
	ErrInvalidDescription   = sdkerrors.Register(ModuleName, 7, "invalid description")
	ErrNotRegisterFunc      = sdkerrors.Register(ModuleName, 8, "method don't register")
	ErrNotProfiler          = sdkerrors.Register(ModuleName, 9, "not a profiler address")
	ErrInvalidFeedState     = sdkerrors.Register(ModuleName, 10, "invalid state feed")
	ErrInvalidServiceFeeCap = sdkerrors.Register(ModuleName, 11, "service fee cap is invalid")
)

oracle module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	PrefixFeedKey             = []byte{0x01}
	PrefixReqCtxIdKey         = []byte{0x02}
	PrefixFeedValueKey        = []byte{0x03}
	PrefixFeedRunningStateKey = []byte{0x04}
	PrefixFeedPauseStateKey   = []byte{0x05}
)
View Source
var (
	ErrInvalidLengthOracle        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOracle          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	RequestContextStateFromString = service.RequestContextStateFromString
)

Functions

func Avg

func Avg(data []ArgsType) string

func GetFeedKey

func GetFeedKey(feedName string) []byte

func GetFeedPrefixKey

func GetFeedPrefixKey() []byte

func GetFeedStateKey

func GetFeedStateKey(feedName string, state servicetypes.RequestContextState) []byte

func GetFeedStatePrefixKey

func GetFeedStatePrefixKey(state servicetypes.RequestContextState) []byte

func GetFeedValueKey

func GetFeedValueKey(feedName string, batchCounter uint64) []byte

func GetFeedValuePrefixKey

func GetFeedValuePrefixKey(feedName string) []byte

func GetReqCtxIDKey

func GetReqCtxIDKey(requestContextID []byte) []byte

func IsModified

func IsModified(target string) bool

func Max

func Max(data []ArgsType) string

func Min

func Min(data []ArgsType) string

func RegisterAggregateFunc

func RegisterAggregateFunc(methodNm string, fun Aggregate) error

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

RegisterCodec registers the necessary x/bank interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateAggregateFunc

func ValidateAggregateFunc(aggregateFunc string) error

func ValidateCreator

func ValidateCreator(creator sdk.AccAddress) error

func ValidateDescription

func ValidateDescription(desc string) error

func ValidateFeedName

func ValidateFeedName(feedName string) error

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided asset genesis state to ensure the expected invariants holds.

func ValidateLatestHistory

func ValidateLatestHistory(latestHistory uint64) error

func ValidateValueJsonPath

func ValidateValueJsonPath(valueJsonPath string) error

Types

type Aggregate

type Aggregate func(args []ArgsType) string

func GetAggregateFunc

func GetAggregateFunc(methodNm string) (Aggregate, error)

type ArgsType

type ArgsType = gjson.Result

type Feed

type Feed struct {
	FeedName         string                                               `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty" yaml:"feed_name"`
	Description      string                                               `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	AggregateFunc    string                                               `protobuf:"bytes,3,opt,name=aggregate_func,json=aggregateFunc,proto3" json:"aggregate_func,omitempty" yaml:"aggregate_func"`
	ValueJsonPath    string                                               `protobuf:"bytes,4,opt,name=value_json_path,json=valueJsonPath,proto3" json:"value_json_path,omitempty" yaml:"value_json_path"`
	LatestHistory    uint64                                               `protobuf:"varint,5,opt,name=latest_history,json=latestHistory,proto3" json:"latest_history,omitempty" yaml:"latest_history"`
	RequestContextID github_com_tendermint_tendermint_libs_bytes.HexBytes `` /* 199-byte string literal not displayed */
	Creator          github_com_cosmos_cosmos_sdk_types.AccAddress        `protobuf:"bytes,7,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"`
}

Feed defines the feed standard

func (*Feed) Descriptor

func (*Feed) Descriptor() ([]byte, []int)

func (*Feed) GetAggregateFunc

func (m *Feed) GetAggregateFunc() string

func (*Feed) GetCreator

func (*Feed) GetDescription

func (m *Feed) GetDescription() string

func (*Feed) GetFeedName

func (m *Feed) GetFeedName() string

func (*Feed) GetLatestHistory

func (m *Feed) GetLatestHistory() uint64

func (*Feed) GetRequestContextID

func (*Feed) GetValueJsonPath

func (m *Feed) GetValueJsonPath() string

func (*Feed) Marshal

func (m *Feed) Marshal() (dAtA []byte, err error)

func (*Feed) MarshalTo

func (m *Feed) MarshalTo(dAtA []byte) (int, error)

func (*Feed) MarshalToSizedBuffer

func (m *Feed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) Reset

func (m *Feed) Reset()

func (*Feed) Size

func (m *Feed) Size() (n int)

func (*Feed) String

func (m *Feed) String() string

func (*Feed) Unmarshal

func (m *Feed) Unmarshal(dAtA []byte) error

func (*Feed) XXX_DiscardUnknown

func (m *Feed) XXX_DiscardUnknown()

func (*Feed) XXX_Marshal

func (m *Feed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Feed) XXX_Merge

func (m *Feed) XXX_Merge(src proto.Message)

func (*Feed) XXX_Size

func (m *Feed) XXX_Size() int

func (*Feed) XXX_Unmarshal

func (m *Feed) XXX_Unmarshal(b []byte) error

type FeedContext

type FeedContext struct {
	Feed              *Feed                                           `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed,omitempty"`
	ServiceName       string                                          `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty" yaml:"service_name"`
	Providers         []github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 126-byte string literal not displayed */
	Input             string                                          `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"`
	Timeout           int64                                           `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	ServiceFeeCap     github_com_cosmos_cosmos_sdk_types.Coins        `` /* 169-byte string literal not displayed */
	RepeatedFrequency uint64                                          `` /* 139-byte string literal not displayed */
	ResponseThreshold uint32                                          `` /* 139-byte string literal not displayed */
	State             types1.RequestContextState                      `protobuf:"varint,9,opt,name=state,proto3,enum=irismod.service.RequestContextState" json:"state,omitempty"`
}

FeedContext defines the feed context struct

func (*FeedContext) Descriptor

func (*FeedContext) Descriptor() ([]byte, []int)

func (*FeedContext) GetFeed

func (m *FeedContext) GetFeed() *Feed

func (*FeedContext) GetInput

func (m *FeedContext) GetInput() string

func (*FeedContext) GetProviders

func (*FeedContext) GetRepeatedFrequency

func (m *FeedContext) GetRepeatedFrequency() uint64

func (*FeedContext) GetResponseThreshold

func (m *FeedContext) GetResponseThreshold() uint32

func (*FeedContext) GetServiceFeeCap

func (*FeedContext) GetServiceName

func (m *FeedContext) GetServiceName() string

func (*FeedContext) GetState

func (m *FeedContext) GetState() types1.RequestContextState

func (*FeedContext) GetTimeout

func (m *FeedContext) GetTimeout() int64

func (*FeedContext) Marshal

func (m *FeedContext) Marshal() (dAtA []byte, err error)

func (*FeedContext) MarshalTo

func (m *FeedContext) MarshalTo(dAtA []byte) (int, error)

func (*FeedContext) MarshalToSizedBuffer

func (m *FeedContext) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeedContext) ProtoMessage

func (*FeedContext) ProtoMessage()

func (*FeedContext) Reset

func (m *FeedContext) Reset()

func (*FeedContext) Size

func (m *FeedContext) Size() (n int)

func (FeedContext) String

func (f FeedContext) String() string

String implements fmt.Stringer

func (*FeedContext) Unmarshal

func (m *FeedContext) Unmarshal(dAtA []byte) error

func (*FeedContext) XXX_DiscardUnknown

func (m *FeedContext) XXX_DiscardUnknown()

func (*FeedContext) XXX_Marshal

func (m *FeedContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeedContext) XXX_Merge

func (m *FeedContext) XXX_Merge(src proto.Message)

func (*FeedContext) XXX_Size

func (m *FeedContext) XXX_Size() int

func (*FeedContext) XXX_Unmarshal

func (m *FeedContext) XXX_Unmarshal(b []byte) error

type FeedEntry

type FeedEntry struct {
	Feed   Feed                      `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed"`
	State  types.RequestContextState `protobuf:"varint,2,opt,name=state,proto3,enum=irismod.service.RequestContextState" json:"state,omitempty"`
	Values []FeedValue               `protobuf:"bytes,3,rep,name=values,proto3" json:"values"`
}

func (*FeedEntry) Descriptor

func (*FeedEntry) Descriptor() ([]byte, []int)

func (*FeedEntry) GetFeed

func (m *FeedEntry) GetFeed() Feed

func (*FeedEntry) GetState

func (m *FeedEntry) GetState() types.RequestContextState

func (*FeedEntry) GetValues

func (m *FeedEntry) GetValues() []FeedValue

func (*FeedEntry) Marshal

func (m *FeedEntry) Marshal() (dAtA []byte, err error)

func (*FeedEntry) MarshalTo

func (m *FeedEntry) MarshalTo(dAtA []byte) (int, error)

func (*FeedEntry) MarshalToSizedBuffer

func (m *FeedEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeedEntry) ProtoMessage

func (*FeedEntry) ProtoMessage()

func (*FeedEntry) Reset

func (m *FeedEntry) Reset()

func (*FeedEntry) Size

func (m *FeedEntry) Size() (n int)

func (*FeedEntry) String

func (m *FeedEntry) String() string

func (*FeedEntry) Unmarshal

func (m *FeedEntry) Unmarshal(dAtA []byte) error

func (*FeedEntry) XXX_DiscardUnknown

func (m *FeedEntry) XXX_DiscardUnknown()

func (*FeedEntry) XXX_Marshal

func (m *FeedEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeedEntry) XXX_Merge

func (m *FeedEntry) XXX_Merge(src proto.Message)

func (*FeedEntry) XXX_Size

func (m *FeedEntry) XXX_Size() int

func (*FeedEntry) XXX_Unmarshal

func (m *FeedEntry) XXX_Unmarshal(b []byte) error

type FeedValue

type FeedValue struct {
	Data      string    `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
}

FeedValue defines the feed result standard

func (*FeedValue) Descriptor

func (*FeedValue) Descriptor() ([]byte, []int)

func (*FeedValue) GetData

func (m *FeedValue) GetData() string

func (*FeedValue) GetTimestamp

func (m *FeedValue) GetTimestamp() time.Time

func (*FeedValue) Marshal

func (m *FeedValue) Marshal() (dAtA []byte, err error)

func (*FeedValue) MarshalTo

func (m *FeedValue) MarshalTo(dAtA []byte) (int, error)

func (*FeedValue) MarshalToSizedBuffer

func (m *FeedValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeedValue) ProtoMessage

func (*FeedValue) ProtoMessage()

func (*FeedValue) Reset

func (m *FeedValue) Reset()

func (*FeedValue) Size

func (m *FeedValue) Size() (n int)

func (*FeedValue) String

func (m *FeedValue) String() string

func (*FeedValue) Unmarshal

func (m *FeedValue) Unmarshal(dAtA []byte) error

func (*FeedValue) XXX_DiscardUnknown

func (m *FeedValue) XXX_DiscardUnknown()

func (*FeedValue) XXX_Marshal

func (m *FeedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeedValue) XXX_Merge

func (m *FeedValue) XXX_Merge(src proto.Message)

func (*FeedValue) XXX_Size

func (m *FeedValue) XXX_Size() int

func (*FeedValue) XXX_Unmarshal

func (m *FeedValue) XXX_Unmarshal(b []byte) error

type FeedValues

type FeedValues []FeedValue

func (FeedValues) String

func (fv FeedValues) String() string

String implements fmt.Stringer

type FeedsContext

type FeedsContext []FeedContext

func (FeedsContext) String

func (fc FeedsContext) String() string

String implements fmt.Stringer

type GenesisState

type GenesisState struct {
	Entries []FeedEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries"`
}

GenesisState defines the oracle module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

get raw genesis raw message for testing

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetEntries

func (m *GenesisState) GetEntries() []FeedEntry

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type GuardianKeeper

type GuardianKeeper interface {
	GetProfiler(ctx sdk.Context, addr sdk.AccAddress) (guardian guardiantypes.Guardian, found bool)
}

GuardianKeeper defines the expected guardian keeper (noalias)

type MsgCreateFeed

type MsgCreateFeed struct {
	FeedName          string                                          `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty" yaml:"feed_name"`
	LatestHistory     uint64                                          `protobuf:"varint,2,opt,name=latest_history,json=latestHistory,proto3" json:"latest_history,omitempty" yaml:"latest_history"`
	Description       string                                          `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Creator           github_com_cosmos_cosmos_sdk_types.AccAddress   `protobuf:"bytes,4,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"`
	ServiceName       string                                          `protobuf:"bytes,5,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty" yaml:"service_name"`
	Providers         []github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 126-byte string literal not displayed */
	Input             string                                          `protobuf:"bytes,7,opt,name=input,proto3" json:"input,omitempty"`
	Timeout           int64                                           `protobuf:"varint,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
	ServiceFeeCap     github_com_cosmos_cosmos_sdk_types.Coins        `` /* 169-byte string literal not displayed */
	RepeatedFrequency uint64                                          `` /* 140-byte string literal not displayed */
	AggregateFunc     string                                          `protobuf:"bytes,11,opt,name=aggregate_func,json=aggregateFunc,proto3" json:"aggregate_func,omitempty" yaml:"aggregate_func"`
	ValueJsonPath     string                                          `` /* 126-byte string literal not displayed */
	ResponseThreshold uint32                                          `` /* 140-byte string literal not displayed */
}

MsgCreateFeed defines an sdk.Msg type that supports creating a feed

func (*MsgCreateFeed) Descriptor

func (*MsgCreateFeed) Descriptor() ([]byte, []int)

func (*MsgCreateFeed) GetAggregateFunc

func (m *MsgCreateFeed) GetAggregateFunc() string

func (*MsgCreateFeed) GetCreator

func (*MsgCreateFeed) GetDescription

func (m *MsgCreateFeed) GetDescription() string

func (*MsgCreateFeed) GetFeedName

func (m *MsgCreateFeed) GetFeedName() string

func (*MsgCreateFeed) GetInput

func (m *MsgCreateFeed) GetInput() string

func (*MsgCreateFeed) GetLatestHistory

func (m *MsgCreateFeed) GetLatestHistory() uint64

func (*MsgCreateFeed) GetProviders

func (*MsgCreateFeed) GetRepeatedFrequency

func (m *MsgCreateFeed) GetRepeatedFrequency() uint64

func (*MsgCreateFeed) GetResponseThreshold

func (m *MsgCreateFeed) GetResponseThreshold() uint32

func (*MsgCreateFeed) GetServiceFeeCap

func (*MsgCreateFeed) GetServiceName

func (m *MsgCreateFeed) GetServiceName() string

func (MsgCreateFeed) GetSignBytes

func (msg MsgCreateFeed) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgCreateFeed) GetSigners

func (msg MsgCreateFeed) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgCreateFeed) GetTimeout

func (m *MsgCreateFeed) GetTimeout() int64

func (*MsgCreateFeed) GetValueJsonPath

func (m *MsgCreateFeed) GetValueJsonPath() string

func (*MsgCreateFeed) Marshal

func (m *MsgCreateFeed) Marshal() (dAtA []byte, err error)

func (*MsgCreateFeed) MarshalTo

func (m *MsgCreateFeed) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateFeed) MarshalToSizedBuffer

func (m *MsgCreateFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateFeed) ProtoMessage

func (*MsgCreateFeed) ProtoMessage()

func (*MsgCreateFeed) Reset

func (m *MsgCreateFeed) Reset()

func (MsgCreateFeed) Route

func (msg MsgCreateFeed) Route() string

Route implements Msg.

func (*MsgCreateFeed) Size

func (m *MsgCreateFeed) Size() (n int)

func (*MsgCreateFeed) String

func (m *MsgCreateFeed) String() string

func (MsgCreateFeed) Type

func (msg MsgCreateFeed) Type() string

Type implements Msg.

func (*MsgCreateFeed) Unmarshal

func (m *MsgCreateFeed) Unmarshal(dAtA []byte) error

func (MsgCreateFeed) ValidateBasic

func (msg MsgCreateFeed) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgCreateFeed) XXX_DiscardUnknown

func (m *MsgCreateFeed) XXX_DiscardUnknown()

func (*MsgCreateFeed) XXX_Marshal

func (m *MsgCreateFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateFeed) XXX_Merge

func (m *MsgCreateFeed) XXX_Merge(src proto.Message)

func (*MsgCreateFeed) XXX_Size

func (m *MsgCreateFeed) XXX_Size() int

func (*MsgCreateFeed) XXX_Unmarshal

func (m *MsgCreateFeed) XXX_Unmarshal(b []byte) error

type MsgEditFeed

type MsgEditFeed struct {
	FeedName          string                                          `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty" yaml:"feed_name"`
	Description       string                                          `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	LatestHistory     uint64                                          `protobuf:"varint,3,opt,name=latest_history,json=latestHistory,proto3" json:"latest_history,omitempty" yaml:"latest_history"`
	Providers         []github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 126-byte string literal not displayed */
	Timeout           int64                                           `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	ServiceFeeCap     github_com_cosmos_cosmos_sdk_types.Coins        `` /* 169-byte string literal not displayed */
	RepeatedFrequency uint64                                          `` /* 139-byte string literal not displayed */
	ResponseThreshold uint32                                          `` /* 139-byte string literal not displayed */
	Creator           github_com_cosmos_cosmos_sdk_types.AccAddress   `protobuf:"bytes,9,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"`
}

MsgEditFeed defines an sdk.Msg type that supports editing a feed

func (*MsgEditFeed) Descriptor

func (*MsgEditFeed) Descriptor() ([]byte, []int)

func (*MsgEditFeed) GetCreator

func (*MsgEditFeed) GetDescription

func (m *MsgEditFeed) GetDescription() string

func (*MsgEditFeed) GetFeedName

func (m *MsgEditFeed) GetFeedName() string

func (*MsgEditFeed) GetLatestHistory

func (m *MsgEditFeed) GetLatestHistory() uint64

func (*MsgEditFeed) GetProviders

func (*MsgEditFeed) GetRepeatedFrequency

func (m *MsgEditFeed) GetRepeatedFrequency() uint64

func (*MsgEditFeed) GetResponseThreshold

func (m *MsgEditFeed) GetResponseThreshold() uint32

func (*MsgEditFeed) GetServiceFeeCap

func (MsgEditFeed) GetSignBytes

func (msg MsgEditFeed) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgEditFeed) GetSigners

func (msg MsgEditFeed) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgEditFeed) GetTimeout

func (m *MsgEditFeed) GetTimeout() int64

func (*MsgEditFeed) Marshal

func (m *MsgEditFeed) Marshal() (dAtA []byte, err error)

func (*MsgEditFeed) MarshalTo

func (m *MsgEditFeed) MarshalTo(dAtA []byte) (int, error)

func (*MsgEditFeed) MarshalToSizedBuffer

func (m *MsgEditFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEditFeed) ProtoMessage

func (*MsgEditFeed) ProtoMessage()

func (*MsgEditFeed) Reset

func (m *MsgEditFeed) Reset()

func (MsgEditFeed) Route

func (msg MsgEditFeed) Route() string

Route implements Msg.

func (*MsgEditFeed) Size

func (m *MsgEditFeed) Size() (n int)

func (*MsgEditFeed) String

func (m *MsgEditFeed) String() string

func (MsgEditFeed) Type

func (msg MsgEditFeed) Type() string

Type implements Msg.

func (*MsgEditFeed) Unmarshal

func (m *MsgEditFeed) Unmarshal(dAtA []byte) error

func (MsgEditFeed) ValidateBasic

func (msg MsgEditFeed) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgEditFeed) XXX_DiscardUnknown

func (m *MsgEditFeed) XXX_DiscardUnknown()

func (*MsgEditFeed) XXX_Marshal

func (m *MsgEditFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEditFeed) XXX_Merge

func (m *MsgEditFeed) XXX_Merge(src proto.Message)

func (*MsgEditFeed) XXX_Size

func (m *MsgEditFeed) XXX_Size() int

func (*MsgEditFeed) XXX_Unmarshal

func (m *MsgEditFeed) XXX_Unmarshal(b []byte) error

type MsgPauseFeed

type MsgPauseFeed struct {
	FeedName string                                        `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty" yaml:"feed_name"`
	Creator  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,4,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"`
}

MsgPauseFeed defines an sdk.Msg type that supports pausing a feed

func (*MsgPauseFeed) Descriptor

func (*MsgPauseFeed) Descriptor() ([]byte, []int)

func (*MsgPauseFeed) GetCreator

func (*MsgPauseFeed) GetFeedName

func (m *MsgPauseFeed) GetFeedName() string

func (MsgPauseFeed) GetSignBytes

func (msg MsgPauseFeed) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgPauseFeed) GetSigners

func (msg MsgPauseFeed) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgPauseFeed) Marshal

func (m *MsgPauseFeed) Marshal() (dAtA []byte, err error)

func (*MsgPauseFeed) MarshalTo

func (m *MsgPauseFeed) MarshalTo(dAtA []byte) (int, error)

func (*MsgPauseFeed) MarshalToSizedBuffer

func (m *MsgPauseFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgPauseFeed) ProtoMessage

func (*MsgPauseFeed) ProtoMessage()

func (*MsgPauseFeed) Reset

func (m *MsgPauseFeed) Reset()

func (MsgPauseFeed) Route

func (msg MsgPauseFeed) Route() string

Route implements Msg.

func (*MsgPauseFeed) Size

func (m *MsgPauseFeed) Size() (n int)

func (*MsgPauseFeed) String

func (m *MsgPauseFeed) String() string

func (MsgPauseFeed) Type

func (msg MsgPauseFeed) Type() string

Type implements Msg.

func (*MsgPauseFeed) Unmarshal

func (m *MsgPauseFeed) Unmarshal(dAtA []byte) error

func (MsgPauseFeed) ValidateBasic

func (msg MsgPauseFeed) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgPauseFeed) XXX_DiscardUnknown

func (m *MsgPauseFeed) XXX_DiscardUnknown()

func (*MsgPauseFeed) XXX_Marshal

func (m *MsgPauseFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgPauseFeed) XXX_Merge

func (m *MsgPauseFeed) XXX_Merge(src proto.Message)

func (*MsgPauseFeed) XXX_Size

func (m *MsgPauseFeed) XXX_Size() int

func (*MsgPauseFeed) XXX_Unmarshal

func (m *MsgPauseFeed) XXX_Unmarshal(b []byte) error

type MsgStartFeed

type MsgStartFeed struct {
	FeedName string                                        `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty" yaml:"feed_name"`
	Creator  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,4,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"`
}

MsgPauseFeed defines an sdk.Msg type that supports stating a feed

func (*MsgStartFeed) Descriptor

func (*MsgStartFeed) Descriptor() ([]byte, []int)

func (*MsgStartFeed) GetCreator

func (*MsgStartFeed) GetFeedName

func (m *MsgStartFeed) GetFeedName() string

func (MsgStartFeed) GetSignBytes

func (msg MsgStartFeed) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgStartFeed) GetSigners

func (msg MsgStartFeed) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgStartFeed) Marshal

func (m *MsgStartFeed) Marshal() (dAtA []byte, err error)

func (*MsgStartFeed) MarshalTo

func (m *MsgStartFeed) MarshalTo(dAtA []byte) (int, error)

func (*MsgStartFeed) MarshalToSizedBuffer

func (m *MsgStartFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgStartFeed) ProtoMessage

func (*MsgStartFeed) ProtoMessage()

func (*MsgStartFeed) Reset

func (m *MsgStartFeed) Reset()

func (MsgStartFeed) Route

func (msg MsgStartFeed) Route() string

Route implements Msg.

func (*MsgStartFeed) Size

func (m *MsgStartFeed) Size() (n int)

func (*MsgStartFeed) String

func (m *MsgStartFeed) String() string

func (MsgStartFeed) Type

func (msg MsgStartFeed) Type() string

Type implements Msg.

func (*MsgStartFeed) Unmarshal

func (m *MsgStartFeed) Unmarshal(dAtA []byte) error

func (MsgStartFeed) ValidateBasic

func (msg MsgStartFeed) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgStartFeed) XXX_DiscardUnknown

func (m *MsgStartFeed) XXX_DiscardUnknown()

func (*MsgStartFeed) XXX_Marshal

func (m *MsgStartFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgStartFeed) XXX_Merge

func (m *MsgStartFeed) XXX_Merge(src proto.Message)

func (*MsgStartFeed) XXX_Size

func (m *MsgStartFeed) XXX_Size() int

func (*MsgStartFeed) XXX_Unmarshal

func (m *MsgStartFeed) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Feed queries the feed
	Feed(ctx context.Context, in *QueryFeedRequest, opts ...grpc.CallOption) (*QueryFeedResponse, error)
	// QueryFeedsRequest queries the feed list
	Feeds(ctx context.Context, in *QueryFeedsRequest, opts ...grpc.CallOption) (*QueryFeedsResponse, error)
	// FeedValue queries the feed value
	FeedValue(ctx context.Context, in *QueryFeedValueRequest, opts ...grpc.CallOption) (*QueryFeedValueResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryFeedParams

type QueryFeedParams struct {
	FeedName string
}

QueryFeedParams defines the params to query a feed definition

type QueryFeedRequest

type QueryFeedRequest struct {
	FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"`
}

QueryFeedRequest is request type for the Query/Feed RPC method

func (*QueryFeedRequest) Descriptor

func (*QueryFeedRequest) Descriptor() ([]byte, []int)

func (*QueryFeedRequest) GetFeedName

func (m *QueryFeedRequest) GetFeedName() string

func (*QueryFeedRequest) Marshal

func (m *QueryFeedRequest) Marshal() (dAtA []byte, err error)

func (*QueryFeedRequest) MarshalTo

func (m *QueryFeedRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeedRequest) MarshalToSizedBuffer

func (m *QueryFeedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeedRequest) ProtoMessage

func (*QueryFeedRequest) ProtoMessage()

func (*QueryFeedRequest) Reset

func (m *QueryFeedRequest) Reset()

func (*QueryFeedRequest) Size

func (m *QueryFeedRequest) Size() (n int)

func (*QueryFeedRequest) String

func (m *QueryFeedRequest) String() string

func (*QueryFeedRequest) Unmarshal

func (m *QueryFeedRequest) Unmarshal(dAtA []byte) error

func (*QueryFeedRequest) XXX_DiscardUnknown

func (m *QueryFeedRequest) XXX_DiscardUnknown()

func (*QueryFeedRequest) XXX_Marshal

func (m *QueryFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeedRequest) XXX_Merge

func (m *QueryFeedRequest) XXX_Merge(src proto.Message)

func (*QueryFeedRequest) XXX_Size

func (m *QueryFeedRequest) XXX_Size() int

func (*QueryFeedRequest) XXX_Unmarshal

func (m *QueryFeedRequest) XXX_Unmarshal(b []byte) error

type QueryFeedResponse

type QueryFeedResponse struct {
	Feed FeedContext `protobuf:"bytes,1,opt,name=feed,proto3" json:"feed"`
}

QueryFeedResponse is response type for the Query/Feed RPC method

func (*QueryFeedResponse) Descriptor

func (*QueryFeedResponse) Descriptor() ([]byte, []int)

func (*QueryFeedResponse) GetFeed

func (m *QueryFeedResponse) GetFeed() FeedContext

func (*QueryFeedResponse) Marshal

func (m *QueryFeedResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeedResponse) MarshalTo

func (m *QueryFeedResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeedResponse) MarshalToSizedBuffer

func (m *QueryFeedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeedResponse) ProtoMessage

func (*QueryFeedResponse) ProtoMessage()

func (*QueryFeedResponse) Reset

func (m *QueryFeedResponse) Reset()

func (*QueryFeedResponse) Size

func (m *QueryFeedResponse) Size() (n int)

func (*QueryFeedResponse) String

func (m *QueryFeedResponse) String() string

func (*QueryFeedResponse) Unmarshal

func (m *QueryFeedResponse) Unmarshal(dAtA []byte) error

func (*QueryFeedResponse) XXX_DiscardUnknown

func (m *QueryFeedResponse) XXX_DiscardUnknown()

func (*QueryFeedResponse) XXX_Marshal

func (m *QueryFeedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeedResponse) XXX_Merge

func (m *QueryFeedResponse) XXX_Merge(src proto.Message)

func (*QueryFeedResponse) XXX_Size

func (m *QueryFeedResponse) XXX_Size() int

func (*QueryFeedResponse) XXX_Unmarshal

func (m *QueryFeedResponse) XXX_Unmarshal(b []byte) error

type QueryFeedValueParams

type QueryFeedValueParams struct {
	FeedName string
}

QueryFeedValueParams defines the params to query a feed result

type QueryFeedValueRequest

type QueryFeedValueRequest struct {
	FeedName string `protobuf:"bytes,1,opt,name=feed_name,json=feedName,proto3" json:"feed_name,omitempty"`
}

QueryFeedValueRequest is request type for the Query/FeedValue RPC method

func (*QueryFeedValueRequest) Descriptor

func (*QueryFeedValueRequest) Descriptor() ([]byte, []int)

func (*QueryFeedValueRequest) GetFeedName

func (m *QueryFeedValueRequest) GetFeedName() string

func (*QueryFeedValueRequest) Marshal

func (m *QueryFeedValueRequest) Marshal() (dAtA []byte, err error)

func (*QueryFeedValueRequest) MarshalTo

func (m *QueryFeedValueRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeedValueRequest) MarshalToSizedBuffer

func (m *QueryFeedValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeedValueRequest) ProtoMessage

func (*QueryFeedValueRequest) ProtoMessage()

func (*QueryFeedValueRequest) Reset

func (m *QueryFeedValueRequest) Reset()

func (*QueryFeedValueRequest) Size

func (m *QueryFeedValueRequest) Size() (n int)

func (*QueryFeedValueRequest) String

func (m *QueryFeedValueRequest) String() string

func (*QueryFeedValueRequest) Unmarshal

func (m *QueryFeedValueRequest) Unmarshal(dAtA []byte) error

func (*QueryFeedValueRequest) XXX_DiscardUnknown

func (m *QueryFeedValueRequest) XXX_DiscardUnknown()

func (*QueryFeedValueRequest) XXX_Marshal

func (m *QueryFeedValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeedValueRequest) XXX_Merge

func (m *QueryFeedValueRequest) XXX_Merge(src proto.Message)

func (*QueryFeedValueRequest) XXX_Size

func (m *QueryFeedValueRequest) XXX_Size() int

func (*QueryFeedValueRequest) XXX_Unmarshal

func (m *QueryFeedValueRequest) XXX_Unmarshal(b []byte) error

type QueryFeedValueResponse

type QueryFeedValueResponse struct {
	FeedValues []FeedValue `protobuf:"bytes,1,rep,name=feed_values,json=feedValues,proto3" json:"feed_values"`
}

QueryFeedValueResponse is response type for the Query/FeedValue RPC method

func (*QueryFeedValueResponse) Descriptor

func (*QueryFeedValueResponse) Descriptor() ([]byte, []int)

func (*QueryFeedValueResponse) GetFeedValues

func (m *QueryFeedValueResponse) GetFeedValues() []FeedValue

func (*QueryFeedValueResponse) Marshal

func (m *QueryFeedValueResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeedValueResponse) MarshalTo

func (m *QueryFeedValueResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeedValueResponse) MarshalToSizedBuffer

func (m *QueryFeedValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeedValueResponse) ProtoMessage

func (*QueryFeedValueResponse) ProtoMessage()

func (*QueryFeedValueResponse) Reset

func (m *QueryFeedValueResponse) Reset()

func (*QueryFeedValueResponse) Size

func (m *QueryFeedValueResponse) Size() (n int)

func (*QueryFeedValueResponse) String

func (m *QueryFeedValueResponse) String() string

func (*QueryFeedValueResponse) Unmarshal

func (m *QueryFeedValueResponse) Unmarshal(dAtA []byte) error

func (*QueryFeedValueResponse) XXX_DiscardUnknown

func (m *QueryFeedValueResponse) XXX_DiscardUnknown()

func (*QueryFeedValueResponse) XXX_Marshal

func (m *QueryFeedValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeedValueResponse) XXX_Merge

func (m *QueryFeedValueResponse) XXX_Merge(src proto.Message)

func (*QueryFeedValueResponse) XXX_Size

func (m *QueryFeedValueResponse) XXX_Size() int

func (*QueryFeedValueResponse) XXX_Unmarshal

func (m *QueryFeedValueResponse) XXX_Unmarshal(b []byte) error

type QueryFeedsParams

type QueryFeedsParams struct {
	State string
}

QueryFeedsParams defines the params to query a feed list by state

type QueryFeedsRequest

type QueryFeedsRequest struct {
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}

QueryFeedsRequest is request type for the Query/Feeds RPC method

func (*QueryFeedsRequest) Descriptor

func (*QueryFeedsRequest) Descriptor() ([]byte, []int)

func (*QueryFeedsRequest) GetState

func (m *QueryFeedsRequest) GetState() string

func (*QueryFeedsRequest) Marshal

func (m *QueryFeedsRequest) Marshal() (dAtA []byte, err error)

func (*QueryFeedsRequest) MarshalTo

func (m *QueryFeedsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeedsRequest) MarshalToSizedBuffer

func (m *QueryFeedsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeedsRequest) ProtoMessage

func (*QueryFeedsRequest) ProtoMessage()

func (*QueryFeedsRequest) Reset

func (m *QueryFeedsRequest) Reset()

func (*QueryFeedsRequest) Size

func (m *QueryFeedsRequest) Size() (n int)

func (*QueryFeedsRequest) String

func (m *QueryFeedsRequest) String() string

func (*QueryFeedsRequest) Unmarshal

func (m *QueryFeedsRequest) Unmarshal(dAtA []byte) error

func (*QueryFeedsRequest) XXX_DiscardUnknown

func (m *QueryFeedsRequest) XXX_DiscardUnknown()

func (*QueryFeedsRequest) XXX_Marshal

func (m *QueryFeedsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeedsRequest) XXX_Merge

func (m *QueryFeedsRequest) XXX_Merge(src proto.Message)

func (*QueryFeedsRequest) XXX_Size

func (m *QueryFeedsRequest) XXX_Size() int

func (*QueryFeedsRequest) XXX_Unmarshal

func (m *QueryFeedsRequest) XXX_Unmarshal(b []byte) error

type QueryFeedsResponse

type QueryFeedsResponse struct {
	Feeds []FeedContext `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds"`
}

QueryFeedsResponse is response type for the Query/Feeds RPC method

func (*QueryFeedsResponse) Descriptor

func (*QueryFeedsResponse) Descriptor() ([]byte, []int)

func (*QueryFeedsResponse) GetFeeds

func (m *QueryFeedsResponse) GetFeeds() []FeedContext

func (*QueryFeedsResponse) Marshal

func (m *QueryFeedsResponse) Marshal() (dAtA []byte, err error)

func (*QueryFeedsResponse) MarshalTo

func (m *QueryFeedsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryFeedsResponse) MarshalToSizedBuffer

func (m *QueryFeedsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryFeedsResponse) ProtoMessage

func (*QueryFeedsResponse) ProtoMessage()

func (*QueryFeedsResponse) Reset

func (m *QueryFeedsResponse) Reset()

func (*QueryFeedsResponse) Size

func (m *QueryFeedsResponse) Size() (n int)

func (*QueryFeedsResponse) String

func (m *QueryFeedsResponse) String() string

func (*QueryFeedsResponse) Unmarshal

func (m *QueryFeedsResponse) Unmarshal(dAtA []byte) error

func (*QueryFeedsResponse) XXX_DiscardUnknown

func (m *QueryFeedsResponse) XXX_DiscardUnknown()

func (*QueryFeedsResponse) XXX_Marshal

func (m *QueryFeedsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryFeedsResponse) XXX_Merge

func (m *QueryFeedsResponse) XXX_Merge(src proto.Message)

func (*QueryFeedsResponse) XXX_Size

func (m *QueryFeedsResponse) XXX_Size() int

func (*QueryFeedsResponse) XXX_Unmarshal

func (m *QueryFeedsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Feed queries the feed
	Feed(context.Context, *QueryFeedRequest) (*QueryFeedResponse, error)
	// QueryFeedsRequest queries the feed list
	Feeds(context.Context, *QueryFeedsRequest) (*QueryFeedsResponse, error)
	// FeedValue queries the feed value
	FeedValue(context.Context, *QueryFeedValueRequest) (*QueryFeedValueResponse, error)
}

QueryServer is the server API for Query service.

type ServiceKeeper

type ServiceKeeper interface {
	RegisterResponseCallback(
		moduleName string, respCallback service.ResponseCallback,
	) error

	RegisterStateCallback(
		moduleName string, stateCallback service.StateCallback,
	) error

	GetRequestContext(
		ctx sdk.Context, requestContextID tmbytes.HexBytes,
	) (service.RequestContext, bool)

	CreateRequestContext(
		ctx sdk.Context,
		serviceName string,
		providers []sdk.AccAddress,
		consumer sdk.AccAddress,
		input string,
		serviceFeeCap sdk.Coins,
		timeout int64,
		superMode bool,
		repeated bool,
		repeatedFrequency uint64,
		repeatedTotal int64,
		state service.RequestContextState,
		responseThreshold uint32,
		moduleName string,
	) (tmbytes.HexBytes, error)

	UpdateRequestContext(
		ctx sdk.Context,
		requestContextID tmbytes.HexBytes,
		providers []sdk.AccAddress,
		respThreshold uint32,
		serviceFeeCap sdk.Coins,
		timeout int64,
		repeatedFreq uint64,
		repeatedTotal int64,
		consumer sdk.AccAddress,
	) error

	StartRequestContext(
		ctx sdk.Context,
		requestContextID tmbytes.HexBytes,
		consumer sdk.AccAddress,
	) error

	PauseRequestContext(
		ctx sdk.Context,
		requestContextID tmbytes.HexBytes,
		consumer sdk.AccAddress,
	) error
}

expected Service keeper

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Feed

func (*UnimplementedQueryServer) FeedValue

func (*UnimplementedQueryServer) Feeds

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL