Documentation ¶
Index ¶
- Constants
- Variables
- func Avg(data []ArgsType) string
- func GetFeedKey(feedName string) []byte
- func GetFeedPrefixKey() []byte
- func GetFeedStateKey(feedName string, state servicetypes.RequestContextState) []byte
- func GetFeedStatePrefixKey(state servicetypes.RequestContextState) []byte
- func GetFeedValueKey(feedName string, batchCounter uint64) []byte
- func GetFeedValuePrefixKey(feedName string) []byte
- func GetReqCtxIDKey(requestContextID []byte) []byte
- func IsModified(target string) bool
- func Max(data []ArgsType) string
- func Min(data []ArgsType) string
- func RegisterAggregateFunc(methodNm string, fun Aggregate) error
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateAggregateFunc(aggregateFunc string) error
- func ValidateCreator(creator sdk.AccAddress) error
- func ValidateDescription(desc string) error
- func ValidateFeedName(feedName string) error
- func ValidateGenesis(data GenesisState) error
- func ValidateLatestHistory(latestHistory uint64) error
- func ValidateValueJsonPath(valueJsonPath string) error
- type Aggregate
- type ArgsType
- type Feed
- func (*Feed) Descriptor() ([]byte, []int)
- func (m *Feed) GetAggregateFunc() string
- func (m *Feed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Feed) GetDescription() string
- func (m *Feed) GetFeedName() string
- func (m *Feed) GetLatestHistory() uint64
- func (m *Feed) GetRequestContextID() github_com_tendermint_tendermint_libs_bytes.HexBytes
- func (m *Feed) GetValueJsonPath() string
- func (m *Feed) Marshal() (dAtA []byte, err error)
- func (m *Feed) MarshalTo(dAtA []byte) (int, error)
- func (m *Feed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Feed) ProtoMessage()
- func (m *Feed) Reset()
- func (m *Feed) Size() (n int)
- func (m *Feed) String() string
- func (m *Feed) Unmarshal(dAtA []byte) error
- func (m *Feed) XXX_DiscardUnknown()
- func (m *Feed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Feed) XXX_Merge(src proto.Message)
- func (m *Feed) XXX_Size() int
- func (m *Feed) XXX_Unmarshal(b []byte) error
- type FeedContext
- func (*FeedContext) Descriptor() ([]byte, []int)
- func (m *FeedContext) GetFeed() *Feed
- func (m *FeedContext) GetInput() string
- func (m *FeedContext) GetProviders() []github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *FeedContext) GetRepeatedFrequency() uint64
- func (m *FeedContext) GetResponseThreshold() uint32
- func (m *FeedContext) GetServiceFeeCap() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *FeedContext) GetServiceName() string
- func (m *FeedContext) GetState() types1.RequestContextState
- func (m *FeedContext) GetTimeout() int64
- func (m *FeedContext) Marshal() (dAtA []byte, err error)
- func (m *FeedContext) MarshalTo(dAtA []byte) (int, error)
- func (m *FeedContext) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeedContext) ProtoMessage()
- func (m *FeedContext) Reset()
- func (m *FeedContext) Size() (n int)
- func (f FeedContext) String() string
- func (m *FeedContext) Unmarshal(dAtA []byte) error
- func (m *FeedContext) XXX_DiscardUnknown()
- func (m *FeedContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeedContext) XXX_Merge(src proto.Message)
- func (m *FeedContext) XXX_Size() int
- func (m *FeedContext) XXX_Unmarshal(b []byte) error
- type FeedEntry
- func (*FeedEntry) Descriptor() ([]byte, []int)
- func (m *FeedEntry) GetFeed() Feed
- func (m *FeedEntry) GetState() types.RequestContextState
- func (m *FeedEntry) GetValues() []FeedValue
- func (m *FeedEntry) Marshal() (dAtA []byte, err error)
- func (m *FeedEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *FeedEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeedEntry) ProtoMessage()
- func (m *FeedEntry) Reset()
- func (m *FeedEntry) Size() (n int)
- func (m *FeedEntry) String() string
- func (m *FeedEntry) Unmarshal(dAtA []byte) error
- func (m *FeedEntry) XXX_DiscardUnknown()
- func (m *FeedEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeedEntry) XXX_Merge(src proto.Message)
- func (m *FeedEntry) XXX_Size() int
- func (m *FeedEntry) XXX_Unmarshal(b []byte) error
- type FeedValue
- func (*FeedValue) Descriptor() ([]byte, []int)
- func (m *FeedValue) GetData() string
- func (m *FeedValue) GetTimestamp() time.Time
- func (m *FeedValue) Marshal() (dAtA []byte, err error)
- func (m *FeedValue) MarshalTo(dAtA []byte) (int, error)
- func (m *FeedValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeedValue) ProtoMessage()
- func (m *FeedValue) Reset()
- func (m *FeedValue) Size() (n int)
- func (m *FeedValue) String() string
- func (m *FeedValue) Unmarshal(dAtA []byte) error
- func (m *FeedValue) XXX_DiscardUnknown()
- func (m *FeedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeedValue) XXX_Merge(src proto.Message)
- func (m *FeedValue) XXX_Size() int
- func (m *FeedValue) XXX_Unmarshal(b []byte) error
- type FeedValues
- type FeedsContext
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetEntries() []FeedEntry
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GuardianKeeper
- type MsgCreateFeed
- func (*MsgCreateFeed) Descriptor() ([]byte, []int)
- func (m *MsgCreateFeed) GetAggregateFunc() string
- func (m *MsgCreateFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgCreateFeed) GetDescription() string
- func (m *MsgCreateFeed) GetFeedName() string
- func (m *MsgCreateFeed) GetInput() string
- func (m *MsgCreateFeed) GetLatestHistory() uint64
- func (m *MsgCreateFeed) GetProviders() []github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgCreateFeed) GetRepeatedFrequency() uint64
- func (m *MsgCreateFeed) GetResponseThreshold() uint32
- func (m *MsgCreateFeed) GetServiceFeeCap() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCreateFeed) GetServiceName() string
- func (msg MsgCreateFeed) GetSignBytes() []byte
- func (msg MsgCreateFeed) GetSigners() []sdk.AccAddress
- func (m *MsgCreateFeed) GetTimeout() int64
- func (m *MsgCreateFeed) GetValueJsonPath() string
- func (m *MsgCreateFeed) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateFeed) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateFeed) ProtoMessage()
- func (m *MsgCreateFeed) Reset()
- func (msg MsgCreateFeed) Route() string
- func (m *MsgCreateFeed) Size() (n int)
- func (m *MsgCreateFeed) String() string
- func (msg MsgCreateFeed) Type() string
- func (m *MsgCreateFeed) Unmarshal(dAtA []byte) error
- func (msg MsgCreateFeed) ValidateBasic() error
- func (m *MsgCreateFeed) XXX_DiscardUnknown()
- func (m *MsgCreateFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateFeed) XXX_Merge(src proto.Message)
- func (m *MsgCreateFeed) XXX_Size() int
- func (m *MsgCreateFeed) XXX_Unmarshal(b []byte) error
- type MsgEditFeed
- func (*MsgEditFeed) Descriptor() ([]byte, []int)
- func (m *MsgEditFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgEditFeed) GetDescription() string
- func (m *MsgEditFeed) GetFeedName() string
- func (m *MsgEditFeed) GetLatestHistory() uint64
- func (m *MsgEditFeed) GetProviders() []github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgEditFeed) GetRepeatedFrequency() uint64
- func (m *MsgEditFeed) GetResponseThreshold() uint32
- func (m *MsgEditFeed) GetServiceFeeCap() github_com_cosmos_cosmos_sdk_types.Coins
- func (msg MsgEditFeed) GetSignBytes() []byte
- func (msg MsgEditFeed) GetSigners() []sdk.AccAddress
- func (m *MsgEditFeed) GetTimeout() int64
- func (m *MsgEditFeed) Marshal() (dAtA []byte, err error)
- func (m *MsgEditFeed) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditFeed) ProtoMessage()
- func (m *MsgEditFeed) Reset()
- func (msg MsgEditFeed) Route() string
- func (m *MsgEditFeed) Size() (n int)
- func (m *MsgEditFeed) String() string
- func (msg MsgEditFeed) Type() string
- func (m *MsgEditFeed) Unmarshal(dAtA []byte) error
- func (msg MsgEditFeed) ValidateBasic() error
- func (m *MsgEditFeed) XXX_DiscardUnknown()
- func (m *MsgEditFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditFeed) XXX_Merge(src proto.Message)
- func (m *MsgEditFeed) XXX_Size() int
- func (m *MsgEditFeed) XXX_Unmarshal(b []byte) error
- type MsgPauseFeed
- func (*MsgPauseFeed) Descriptor() ([]byte, []int)
- func (m *MsgPauseFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgPauseFeed) GetFeedName() string
- func (msg MsgPauseFeed) GetSignBytes() []byte
- func (msg MsgPauseFeed) GetSigners() []sdk.AccAddress
- func (m *MsgPauseFeed) Marshal() (dAtA []byte, err error)
- func (m *MsgPauseFeed) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPauseFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPauseFeed) ProtoMessage()
- func (m *MsgPauseFeed) Reset()
- func (msg MsgPauseFeed) Route() string
- func (m *MsgPauseFeed) Size() (n int)
- func (m *MsgPauseFeed) String() string
- func (msg MsgPauseFeed) Type() string
- func (m *MsgPauseFeed) Unmarshal(dAtA []byte) error
- func (msg MsgPauseFeed) ValidateBasic() error
- func (m *MsgPauseFeed) XXX_DiscardUnknown()
- func (m *MsgPauseFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPauseFeed) XXX_Merge(src proto.Message)
- func (m *MsgPauseFeed) XXX_Size() int
- func (m *MsgPauseFeed) XXX_Unmarshal(b []byte) error
- type MsgStartFeed
- func (*MsgStartFeed) Descriptor() ([]byte, []int)
- func (m *MsgStartFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgStartFeed) GetFeedName() string
- func (msg MsgStartFeed) GetSignBytes() []byte
- func (msg MsgStartFeed) GetSigners() []sdk.AccAddress
- func (m *MsgStartFeed) Marshal() (dAtA []byte, err error)
- func (m *MsgStartFeed) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStartFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStartFeed) ProtoMessage()
- func (m *MsgStartFeed) Reset()
- func (msg MsgStartFeed) Route() string
- func (m *MsgStartFeed) Size() (n int)
- func (m *MsgStartFeed) String() string
- func (msg MsgStartFeed) Type() string
- func (m *MsgStartFeed) Unmarshal(dAtA []byte) error
- func (msg MsgStartFeed) ValidateBasic() error
- func (m *MsgStartFeed) XXX_DiscardUnknown()
- func (m *MsgStartFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStartFeed) XXX_Merge(src proto.Message)
- func (m *MsgStartFeed) XXX_Size() int
- func (m *MsgStartFeed) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryFeedParams
- type QueryFeedRequest
- func (*QueryFeedRequest) Descriptor() ([]byte, []int)
- func (m *QueryFeedRequest) GetFeedName() string
- func (m *QueryFeedRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFeedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeedRequest) ProtoMessage()
- func (m *QueryFeedRequest) Reset()
- func (m *QueryFeedRequest) Size() (n int)
- func (m *QueryFeedRequest) String() string
- func (m *QueryFeedRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFeedRequest) XXX_DiscardUnknown()
- func (m *QueryFeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeedRequest) XXX_Merge(src proto.Message)
- func (m *QueryFeedRequest) XXX_Size() int
- func (m *QueryFeedRequest) XXX_Unmarshal(b []byte) error
- type QueryFeedResponse
- func (*QueryFeedResponse) Descriptor() ([]byte, []int)
- func (m *QueryFeedResponse) GetFeed() FeedContext
- func (m *QueryFeedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFeedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeedResponse) ProtoMessage()
- func (m *QueryFeedResponse) Reset()
- func (m *QueryFeedResponse) Size() (n int)
- func (m *QueryFeedResponse) String() string
- func (m *QueryFeedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFeedResponse) XXX_DiscardUnknown()
- func (m *QueryFeedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeedResponse) XXX_Merge(src proto.Message)
- func (m *QueryFeedResponse) XXX_Size() int
- func (m *QueryFeedResponse) XXX_Unmarshal(b []byte) error
- type QueryFeedValueParams
- type QueryFeedValueRequest
- func (*QueryFeedValueRequest) Descriptor() ([]byte, []int)
- func (m *QueryFeedValueRequest) GetFeedName() string
- func (m *QueryFeedValueRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFeedValueRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeedValueRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeedValueRequest) ProtoMessage()
- func (m *QueryFeedValueRequest) Reset()
- func (m *QueryFeedValueRequest) Size() (n int)
- func (m *QueryFeedValueRequest) String() string
- func (m *QueryFeedValueRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFeedValueRequest) XXX_DiscardUnknown()
- func (m *QueryFeedValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeedValueRequest) XXX_Merge(src proto.Message)
- func (m *QueryFeedValueRequest) XXX_Size() int
- func (m *QueryFeedValueRequest) XXX_Unmarshal(b []byte) error
- type QueryFeedValueResponse
- func (*QueryFeedValueResponse) Descriptor() ([]byte, []int)
- func (m *QueryFeedValueResponse) GetFeedValues() []FeedValue
- func (m *QueryFeedValueResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFeedValueResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeedValueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeedValueResponse) ProtoMessage()
- func (m *QueryFeedValueResponse) Reset()
- func (m *QueryFeedValueResponse) Size() (n int)
- func (m *QueryFeedValueResponse) String() string
- func (m *QueryFeedValueResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFeedValueResponse) XXX_DiscardUnknown()
- func (m *QueryFeedValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeedValueResponse) XXX_Merge(src proto.Message)
- func (m *QueryFeedValueResponse) XXX_Size() int
- func (m *QueryFeedValueResponse) XXX_Unmarshal(b []byte) error
- type QueryFeedsParams
- type QueryFeedsRequest
- func (*QueryFeedsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFeedsRequest) GetState() string
- func (m *QueryFeedsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFeedsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeedsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeedsRequest) ProtoMessage()
- func (m *QueryFeedsRequest) Reset()
- func (m *QueryFeedsRequest) Size() (n int)
- func (m *QueryFeedsRequest) String() string
- func (m *QueryFeedsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFeedsRequest) XXX_DiscardUnknown()
- func (m *QueryFeedsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeedsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFeedsRequest) XXX_Size() int
- func (m *QueryFeedsRequest) XXX_Unmarshal(b []byte) error
- type QueryFeedsResponse
- func (*QueryFeedsResponse) Descriptor() ([]byte, []int)
- func (m *QueryFeedsResponse) GetFeeds() []FeedContext
- func (m *QueryFeedsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFeedsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeedsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeedsResponse) ProtoMessage()
- func (m *QueryFeedsResponse) Reset()
- func (m *QueryFeedsResponse) Size() (n int)
- func (m *QueryFeedsResponse) String() string
- func (m *QueryFeedsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFeedsResponse) XXX_DiscardUnknown()
- func (m *QueryFeedsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeedsResponse) XXX_Merge(src proto.Message)
- func (m *QueryFeedsResponse) XXX_Size() int
- func (m *QueryFeedsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type ServiceKeeper
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Feed(ctx context.Context, req *QueryFeedRequest) (*QueryFeedResponse, error)
- func (*UnimplementedQueryServer) FeedValue(ctx context.Context, req *QueryFeedValueRequest) (*QueryFeedValueResponse, error)
- func (*UnimplementedQueryServer) Feeds(ctx context.Context, req *QueryFeedsRequest) (*QueryFeedsResponse, error)
Constants ¶
const ( EventTypeSetFeed = "set_feed" AttributeValueCategory = ModuleName AttributeKeyFeedName = "feed_name" AttributeKeyFeedValue = "feed_value" )
guardian module event types
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
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" )
const ( QueryFeed = "feed" // QueryFeed QueryFeeds = "feeds" // QueryFeeds QueryFeedValue = "feedValue" // QueryFeedValue )
Variables ¶
var ( ErrUnknownFeedName = sdkerrors.Register(ModuleName, 2, "unknown feed") ErrInvalidFeedName = sdkerrors.Register(ModuleName, 3, "invalid feed name") ErrExistedFeedName = sdkerrors.Register(ModuleName, 4, "feed already exists") 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
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( PrefixFeedKey = []byte{0x01} PrefixReqCtxIdKey = []byte{0x02} PrefixFeedValueKey = []byte{0x03} PrefixFeedRunningStateKey = []byte{0x04} PrefixFeedPauseStateKey = []byte{0x05} )
var ( ErrInvalidLengthOracle = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOracle = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var (
RequestContextStateFromString = service.RequestContextStateFromString
)
Functions ¶
func GetFeedKey ¶
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 GetFeedValuePrefixKey ¶
func GetReqCtxIDKey ¶
func IsModified ¶
func RegisterAggregateFunc ¶
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 ValidateCreator ¶
func ValidateCreator(creator sdk.AccAddress) error
func ValidateDescription ¶
func ValidateFeedName ¶
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the provided asset genesis state to ensure the expected invariants holds.
func ValidateLatestHistory ¶
func ValidateValueJsonPath ¶
Types ¶
type Aggregate ¶
func GetAggregateFunc ¶
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) GetAggregateFunc ¶
func (*Feed) GetCreator ¶
func (m *Feed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Feed) GetDescription ¶
func (*Feed) GetFeedName ¶
func (*Feed) GetLatestHistory ¶
func (*Feed) GetRequestContextID ¶
func (m *Feed) GetRequestContextID() github_com_tendermint_tendermint_libs_bytes.HexBytes
func (*Feed) GetValueJsonPath ¶
func (*Feed) ProtoMessage ¶
func (*Feed) ProtoMessage()
func (*Feed) XXX_DiscardUnknown ¶
func (m *Feed) XXX_DiscardUnknown()
func (*Feed) XXX_Unmarshal ¶
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 (m *FeedContext) GetProviders() []github_com_cosmos_cosmos_sdk_types.AccAddress
func (*FeedContext) GetRepeatedFrequency ¶
func (m *FeedContext) GetRepeatedFrequency() uint64
func (*FeedContext) GetResponseThreshold ¶
func (m *FeedContext) GetResponseThreshold() uint32
func (*FeedContext) GetServiceFeeCap ¶
func (m *FeedContext) GetServiceFeeCap() github_com_cosmos_cosmos_sdk_types.Coins
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) 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) 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) GetState ¶
func (m *FeedEntry) GetState() types.RequestContextState
func (*FeedEntry) MarshalToSizedBuffer ¶
func (*FeedEntry) ProtoMessage ¶
func (*FeedEntry) ProtoMessage()
func (*FeedEntry) XXX_DiscardUnknown ¶
func (m *FeedEntry) XXX_DiscardUnknown()
func (*FeedEntry) XXX_Marshal ¶
func (*FeedEntry) XXX_Unmarshal ¶
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) GetTimestamp ¶
func (*FeedValue) MarshalToSizedBuffer ¶
func (*FeedValue) ProtoMessage ¶
func (*FeedValue) ProtoMessage()
func (*FeedValue) XXX_DiscardUnknown ¶
func (m *FeedValue) XXX_DiscardUnknown()
func (*FeedValue) XXX_Marshal ¶
func (*FeedValue) XXX_Unmarshal ¶
type FeedValues ¶
type FeedValues []FeedValue
type FeedsContext ¶
type FeedsContext []FeedContext
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) 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 (m *MsgCreateFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
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() []github_com_cosmos_cosmos_sdk_types.AccAddress
func (*MsgCreateFeed) GetRepeatedFrequency ¶
func (m *MsgCreateFeed) GetRepeatedFrequency() uint64
func (*MsgCreateFeed) GetResponseThreshold ¶
func (m *MsgCreateFeed) GetResponseThreshold() uint32
func (*MsgCreateFeed) GetServiceFeeCap ¶
func (m *MsgCreateFeed) GetServiceFeeCap() github_com_cosmos_cosmos_sdk_types.Coins
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) MarshalToSizedBuffer ¶
func (m *MsgCreateFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateFeed) ProtoMessage ¶
func (*MsgCreateFeed) ProtoMessage()
func (*MsgCreateFeed) Reset ¶
func (m *MsgCreateFeed) Reset()
func (*MsgCreateFeed) Size ¶
func (m *MsgCreateFeed) Size() (n int)
func (*MsgCreateFeed) String ¶
func (m *MsgCreateFeed) String() string
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 (m *MsgEditFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
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() []github_com_cosmos_cosmos_sdk_types.AccAddress
func (*MsgEditFeed) GetRepeatedFrequency ¶
func (m *MsgEditFeed) GetRepeatedFrequency() uint64
func (*MsgEditFeed) GetResponseThreshold ¶
func (m *MsgEditFeed) GetResponseThreshold() uint32
func (*MsgEditFeed) GetServiceFeeCap ¶
func (m *MsgEditFeed) GetServiceFeeCap() github_com_cosmos_cosmos_sdk_types.Coins
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) MarshalToSizedBuffer ¶
func (m *MsgEditFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditFeed) ProtoMessage ¶
func (*MsgEditFeed) ProtoMessage()
func (*MsgEditFeed) Reset ¶
func (m *MsgEditFeed) Reset()
func (*MsgEditFeed) Size ¶
func (m *MsgEditFeed) Size() (n int)
func (*MsgEditFeed) String ¶
func (m *MsgEditFeed) String() string
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 (m *MsgPauseFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
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) MarshalToSizedBuffer ¶
func (m *MsgPauseFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPauseFeed) ProtoMessage ¶
func (*MsgPauseFeed) ProtoMessage()
func (*MsgPauseFeed) Reset ¶
func (m *MsgPauseFeed) Reset()
func (*MsgPauseFeed) Size ¶
func (m *MsgPauseFeed) Size() (n int)
func (*MsgPauseFeed) String ¶
func (m *MsgPauseFeed) String() string
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 (m *MsgStartFeed) GetCreator() github_com_cosmos_cosmos_sdk_types.AccAddress
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) MarshalToSizedBuffer ¶
func (m *MsgStartFeed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStartFeed) ProtoMessage ¶
func (*MsgStartFeed) ProtoMessage()
func (*MsgStartFeed) Reset ¶
func (m *MsgStartFeed) Reset()
func (*MsgStartFeed) Size ¶
func (m *MsgStartFeed) Size() (n int)
func (*MsgStartFeed) String ¶
func (m *MsgStartFeed) String() string
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) 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) Feed(ctx context.Context, req *QueryFeedRequest) (*QueryFeedResponse, error)
func (*UnimplementedQueryServer) FeedValue ¶
func (*UnimplementedQueryServer) FeedValue(ctx context.Context, req *QueryFeedValueRequest) (*QueryFeedValueResponse, error)
func (*UnimplementedQueryServer) Feeds ¶
func (*UnimplementedQueryServer) Feeds(ctx context.Context, req *QueryFeedsRequest) (*QueryFeedsResponse, error)