types

package
v1.7.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 38 Imported by: 26

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateFeed   = "create_feed"
	EventTypeStartFeed    = "start_feed"
	EventTypePauseFeed    = "pause_feed"
	EventTypeEditFeed     = "edit_feed"
	EventTypeSetFeedValue = "set_feed_value"

	AttributeValueCategory = ModuleName

	AttributeKeyFeedName    = "feed_name"
	AttributeKeyServiceName = "service_name"
	AttributeKeyFeedValue   = "feed_value"
	AttributeKeyCreator     = "creator"
)

oracle 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 (
	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
)
View Source
const (
	//MaxLatestHistory defines the the maximum number of feed values saved
	MaxLatestHistory = 100
	//MaxAggregateFuncNameLen defines the the maximum length of the aggregation function name
	MaxAggregateFuncNameLen = 10
	//MaxDescriptionLen defines the the maximum length of the description
	MaxDescriptionLen = 280
)

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")
	ErrInvalidFeedState     = sdkerrors.Register(ModuleName, 9, "invalid state feed")
	ErrInvalidServiceFeeCap = sdkerrors.Register(ModuleName, 10, "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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = 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 Max

func Max(data []ArgsType) string

func Min

func Min(data []ArgsType) string

func Modified added in v1.2.1

func Modified(target string) bool

Modified returns true if the given target string is modified False otherwise

func RegisterAggregateFunc

func RegisterAggregateFunc(methodNm string, fun Aggregate) error

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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

func RegisterMsgServer added in v1.2.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateAggregateFunc

func ValidateAggregateFunc(aggregateFunc string) error

ValidateAggregateFunc verifies if the aggregation function is legal

func ValidateCreator

func ValidateCreator(creator string) error

ValidateCreator verifies if the creator is legal

func ValidateDescription

func ValidateDescription(desc string) error

ValidateDescription verifies if the description is legal

func ValidateFeedName

func ValidateFeedName(feedName string) error

ValidateFeedName verifies if the feed name is legal

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

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

func ValidateLatestHistory

func ValidateLatestHistory(latestHistory uint64) error

ValidateLatestHistory verifies if the latest history is legal

func ValidateResponseThreshold added in v1.2.1

func ValidateResponseThreshold(responseThreshold uint32, maxCnt int) error

ValidateResponseThreshold verifies whether the given threshold is legal

func ValidateServiceFeeCap added in v1.2.1

func ValidateServiceFeeCap(serviceFeeCap sdk.Coins) error

ValidateServiceFeeCap verifies whether the given service fee cap is legal

func ValidateServiceName added in v1.2.1

func ValidateServiceName(serviceName string) error

ValidateServiceName verifies whether the service name is legal

func ValidateTimeout added in v1.2.1

func ValidateTimeout(timeout int64, frequency uint64) error

ValidateTimeout verifies whether the given timeout and frequency are legal

Types

type AccountKeeper added in v1.5.0

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

type Aggregate

type Aggregate func(args []ArgsType) string

func GetAggregateFunc

func GetAggregateFunc(methodNm string) (Aggregate, error)

type ArgsType

type ArgsType = gjson.Result

type AuthKeeper

type AuthKeeper interface {
	Authorized(ctx sdk.Context, addr sdk.AccAddress) bool
}

AuthKeeper defines the expected auth keeper (noalias)

type BankKeeper added in v1.5.0

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

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 string `` /* 137-byte string literal not displayed */
	Creator          string `protobuf:"bytes,7,opt,name=creator,proto3" 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 (m *Feed) GetCreator() string

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 (m *Feed) GetRequestContextID() string

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         []string                                 `protobuf:"bytes,3,rep,name=providers,proto3" json:"providers,omitempty"`
	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 (m *FeedContext) GetProviders() []string

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,2,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

DefaultGenesisState returns the default genesis state 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 MsgClient added in v1.2.0

type MsgClient interface {
	// CreateFeed defines a method for creating a new feed
	CreateFeed(ctx context.Context, in *MsgCreateFeed, opts ...grpc.CallOption) (*MsgCreateFeedResponse, error)
	// EditFeed defines a method for editing a feed
	EditFeed(ctx context.Context, in *MsgEditFeed, opts ...grpc.CallOption) (*MsgEditFeedResponse, error)
	// StartFeed defines a method for starting a feed
	StartFeed(ctx context.Context, in *MsgStartFeed, opts ...grpc.CallOption) (*MsgStartFeedResponse, error)
	// PauseFeed defines a method for pausing a feed
	PauseFeed(ctx context.Context, in *MsgPauseFeed, opts ...grpc.CallOption) (*MsgPauseFeedResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient added in v1.2.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

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           string                                   `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
	ServiceName       string                                   `protobuf:"bytes,5,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty" yaml:"service_name"`
	Providers         []string                                 `protobuf:"bytes,6,rep,name=providers,proto3" json:"providers,omitempty"`
	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 (m *MsgCreateFeed) GetCreator() string

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 (m *MsgCreateFeed) GetProviders() []string

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 MsgCreateFeedResponse added in v1.2.0

type MsgCreateFeedResponse struct {
}

MsgCreateFeedResponse defines the Msg/CreateFeed response type

func (*MsgCreateFeedResponse) Descriptor added in v1.2.0

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

func (*MsgCreateFeedResponse) Marshal added in v1.2.0

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

func (*MsgCreateFeedResponse) MarshalTo added in v1.2.0

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

func (*MsgCreateFeedResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgCreateFeedResponse) ProtoMessage added in v1.2.0

func (*MsgCreateFeedResponse) ProtoMessage()

func (*MsgCreateFeedResponse) Reset added in v1.2.0

func (m *MsgCreateFeedResponse) Reset()

func (*MsgCreateFeedResponse) Size added in v1.2.0

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

func (*MsgCreateFeedResponse) String added in v1.2.0

func (m *MsgCreateFeedResponse) String() string

func (*MsgCreateFeedResponse) Unmarshal added in v1.2.0

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

func (*MsgCreateFeedResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgCreateFeedResponse) XXX_DiscardUnknown()

func (*MsgCreateFeedResponse) XXX_Marshal added in v1.2.0

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

func (*MsgCreateFeedResponse) XXX_Merge added in v1.2.0

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

func (*MsgCreateFeedResponse) XXX_Size added in v1.2.0

func (m *MsgCreateFeedResponse) XXX_Size() int

func (*MsgCreateFeedResponse) XXX_Unmarshal added in v1.2.0

func (m *MsgCreateFeedResponse) 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         []string                                 `protobuf:"bytes,4,rep,name=providers,proto3" json:"providers,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 */
	Creator           string                                   `protobuf:"bytes,9,opt,name=creator,proto3" 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 (m *MsgEditFeed) GetCreator() string

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 (m *MsgEditFeed) GetProviders() []string

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 MsgEditFeedResponse added in v1.2.0

type MsgEditFeedResponse struct {
}

MsgEditFeedResponse defines the Msg/EditFeed response type

func (*MsgEditFeedResponse) Descriptor added in v1.2.0

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

func (*MsgEditFeedResponse) Marshal added in v1.2.0

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

func (*MsgEditFeedResponse) MarshalTo added in v1.2.0

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

func (*MsgEditFeedResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgEditFeedResponse) ProtoMessage added in v1.2.0

func (*MsgEditFeedResponse) ProtoMessage()

func (*MsgEditFeedResponse) Reset added in v1.2.0

func (m *MsgEditFeedResponse) Reset()

func (*MsgEditFeedResponse) Size added in v1.2.0

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

func (*MsgEditFeedResponse) String added in v1.2.0

func (m *MsgEditFeedResponse) String() string

func (*MsgEditFeedResponse) Unmarshal added in v1.2.0

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

func (*MsgEditFeedResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgEditFeedResponse) XXX_DiscardUnknown()

func (*MsgEditFeedResponse) XXX_Marshal added in v1.2.0

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

func (*MsgEditFeedResponse) XXX_Merge added in v1.2.0

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

func (*MsgEditFeedResponse) XXX_Size added in v1.2.0

func (m *MsgEditFeedResponse) XXX_Size() int

func (*MsgEditFeedResponse) XXX_Unmarshal added in v1.2.0

func (m *MsgEditFeedResponse) 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  string `protobuf:"bytes,2,opt,name=creator,proto3" 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 (m *MsgPauseFeed) GetCreator() string

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 MsgPauseFeedResponse added in v1.2.0

type MsgPauseFeedResponse struct {
}

MsgPauseFeedResponse defines the Msg/PauseFeed response type

func (*MsgPauseFeedResponse) Descriptor added in v1.2.0

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

func (*MsgPauseFeedResponse) Marshal added in v1.2.0

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

func (*MsgPauseFeedResponse) MarshalTo added in v1.2.0

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

func (*MsgPauseFeedResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgPauseFeedResponse) ProtoMessage added in v1.2.0

func (*MsgPauseFeedResponse) ProtoMessage()

func (*MsgPauseFeedResponse) Reset added in v1.2.0

func (m *MsgPauseFeedResponse) Reset()

func (*MsgPauseFeedResponse) Size added in v1.2.0

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

func (*MsgPauseFeedResponse) String added in v1.2.0

func (m *MsgPauseFeedResponse) String() string

func (*MsgPauseFeedResponse) Unmarshal added in v1.2.0

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

func (*MsgPauseFeedResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgPauseFeedResponse) XXX_DiscardUnknown()

func (*MsgPauseFeedResponse) XXX_Marshal added in v1.2.0

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

func (*MsgPauseFeedResponse) XXX_Merge added in v1.2.0

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

func (*MsgPauseFeedResponse) XXX_Size added in v1.2.0

func (m *MsgPauseFeedResponse) XXX_Size() int

func (*MsgPauseFeedResponse) XXX_Unmarshal added in v1.2.0

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

type MsgServer added in v1.2.0

type MsgServer interface {
	// CreateFeed defines a method for creating a new feed
	CreateFeed(context.Context, *MsgCreateFeed) (*MsgCreateFeedResponse, error)
	// EditFeed defines a method for editing a feed
	EditFeed(context.Context, *MsgEditFeed) (*MsgEditFeedResponse, error)
	// StartFeed defines a method for starting a feed
	StartFeed(context.Context, *MsgStartFeed) (*MsgStartFeedResponse, error)
	// PauseFeed defines a method for pausing a feed
	PauseFeed(context.Context, *MsgPauseFeed) (*MsgPauseFeedResponse, error)
}

MsgServer is the server API for Msg service.

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  string `protobuf:"bytes,2,opt,name=creator,proto3" 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 (m *MsgStartFeed) GetCreator() string

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 MsgStartFeedResponse added in v1.2.0

type MsgStartFeedResponse struct {
}

MsgStartFeedResponse defines the Msg/StartFeed response type

func (*MsgStartFeedResponse) Descriptor added in v1.2.0

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

func (*MsgStartFeedResponse) Marshal added in v1.2.0

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

func (*MsgStartFeedResponse) MarshalTo added in v1.2.0

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

func (*MsgStartFeedResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgStartFeedResponse) ProtoMessage added in v1.2.0

func (*MsgStartFeedResponse) ProtoMessage()

func (*MsgStartFeedResponse) Reset added in v1.2.0

func (m *MsgStartFeedResponse) Reset()

func (*MsgStartFeedResponse) Size added in v1.2.0

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

func (*MsgStartFeedResponse) String added in v1.2.0

func (m *MsgStartFeedResponse) String() string

func (*MsgStartFeedResponse) Unmarshal added in v1.2.0

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

func (*MsgStartFeedResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgStartFeedResponse) XXX_DiscardUnknown()

func (*MsgStartFeedResponse) XXX_Marshal added in v1.2.0

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

func (*MsgStartFeedResponse) XXX_Merge added in v1.2.0

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

func (*MsgStartFeedResponse) XXX_Size added in v1.2.0

func (m *MsgStartFeedResponse) XXX_Size() int

func (*MsgStartFeedResponse) XXX_Unmarshal added in v1.2.0

func (m *MsgStartFeedResponse) 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)
	// Feeds 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"`
	// pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryFeedsRequest is request type for the Query/Feeds RPC method

func (*QueryFeedsRequest) Descriptor

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

func (*QueryFeedsRequest) GetPagination added in v1.2.0

func (m *QueryFeedsRequest) GetPagination() *query.PageRequest

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"`
	// pagination defines an optional pagination for the request
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

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) GetPagination added in v1.2.0

func (m *QueryFeedsResponse) GetPagination() *query.PageResponse

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)
	// Feeds 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

	RegisterModuleService(
		moduleName string, moduleService *service.ModuleService,
	) 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,
		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
	AddServiceBinding(
		ctx sdk.Context,
		serviceName string,
		provider sdk.AccAddress,
		deposit sdk.Coins,
		pricing string,
		qos uint64,
		options string,
		owner sdk.AccAddress,
	) error
	AddServiceDefinition(
		ctx sdk.Context,
		name,
		description string,
		tags []string,
		author sdk.AccAddress,
		authorDescription,
		schemas string,
	) error
}

ServiceKeeper defines the expected service keeper (noalias)

type UnimplementedMsgServer added in v1.2.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateFeed added in v1.2.0

func (*UnimplementedMsgServer) EditFeed added in v1.2.0

func (*UnimplementedMsgServer) PauseFeed added in v1.2.0

func (*UnimplementedMsgServer) StartFeed added in v1.2.0

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