oraclev1

package
v0.0.0-...-891b8cb Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_nova_oracle_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_nova_oracle_v1_params_proto protoreflect.FileDescriptor
View Source
var File_nova_oracle_v1_query_proto protoreflect.FileDescriptor
View Source
var File_nova_oracle_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nova.oracle.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateChainState",
			Handler:    _Msg_UpdateChainState_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nova/oracle/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nova.oracle.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "State",
			Handler:    _Query_State_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nova/oracle/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type ChainInfo

type ChainInfo struct {

	// coin refers to the sum of owned, staked and claimable quantity of the coin
	Coin *v1beta1.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin,omitempty"`
	// decimal of the native currency in host chain.
	Decimal uint32 `protobuf:"varint,2,opt,name=decimal,proto3" json:"decimal,omitempty"`
	// operator_address is an oracle operator's address
	OperatorAddress string `protobuf:"bytes,3,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// last_block_height is the block height observed by the operator on the host chain.
	LastBlockHeight int64 `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
	// app_hash of the block fetched by oracle from host chain
	AppHash []byte `protobuf:"bytes,5,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	// chain_id of the host chain
	ChainId string `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// block_proposer of the block fetched by oracle from the host chain
	BlockProposer string `protobuf:"bytes,7,opt,name=block_proposer,json=blockProposer,proto3" json:"block_proposer,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainInfo) Descriptor deprecated

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

Deprecated: Use ChainInfo.ProtoReflect.Descriptor instead.

func (*ChainInfo) GetAppHash

func (x *ChainInfo) GetAppHash() []byte

func (*ChainInfo) GetBlockProposer

func (x *ChainInfo) GetBlockProposer() string

func (*ChainInfo) GetChainId

func (x *ChainInfo) GetChainId() string

func (*ChainInfo) GetCoin

func (x *ChainInfo) GetCoin() *v1beta1.Coin

func (*ChainInfo) GetDecimal

func (x *ChainInfo) GetDecimal() uint32

func (*ChainInfo) GetLastBlockHeight

func (x *ChainInfo) GetLastBlockHeight() int64

func (*ChainInfo) GetOperatorAddress

func (x *ChainInfo) GetOperatorAddress() string

func (*ChainInfo) ProtoMessage

func (*ChainInfo) ProtoMessage()

func (*ChainInfo) ProtoReflect

func (x *ChainInfo) ProtoReflect() protoreflect.Message

func (*ChainInfo) Reset

func (x *ChainInfo) Reset()

func (*ChainInfo) String

func (x *ChainInfo) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// states is an amount of coins on the host chain.
	States []*ChainInfo `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"`
	// contains filtered or unexported fields
}

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetStates

func (x *GenesisState) GetStates() []*ChainInfo

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

type MsgClient interface {
	UpdateChainState(ctx context.Context, in *MsgUpdateChainState, opts ...grpc.CallOption) (*MsgUpdateChainStateResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	UpdateChainState(context.Context, *MsgUpdateChainState) (*MsgUpdateChainStateResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgUpdateChainState

type MsgUpdateChainState struct {

	// coin refers to the sum of owned, staked and claimable quantity of the coin
	Coin *v1beta1.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin,omitempty"`
	// decimal of the native currency in host chain.
	Decimal uint32 `protobuf:"varint,2,opt,name=decimal,proto3" json:"decimal,omitempty"`
	// address of the oracle
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// block_height of the block fetched by oracle from host_chain
	BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// app_hash of the block fetched by oracle from host chain
	AppHash []byte `protobuf:"bytes,5,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	// chain_id of the host chain
	ChainId string `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUpdateChainState) Descriptor deprecated

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

Deprecated: Use MsgUpdateChainState.ProtoReflect.Descriptor instead.

func (*MsgUpdateChainState) GetAppHash

func (x *MsgUpdateChainState) GetAppHash() []byte

func (*MsgUpdateChainState) GetBlockHeight

func (x *MsgUpdateChainState) GetBlockHeight() int64

func (*MsgUpdateChainState) GetChainId

func (x *MsgUpdateChainState) GetChainId() string

func (*MsgUpdateChainState) GetCoin

func (x *MsgUpdateChainState) GetCoin() *v1beta1.Coin

func (*MsgUpdateChainState) GetDecimal

func (x *MsgUpdateChainState) GetDecimal() uint32

func (*MsgUpdateChainState) GetOperator

func (x *MsgUpdateChainState) GetOperator() string

func (*MsgUpdateChainState) ProtoMessage

func (*MsgUpdateChainState) ProtoMessage()

func (*MsgUpdateChainState) ProtoReflect

func (x *MsgUpdateChainState) ProtoReflect() protoreflect.Message

func (*MsgUpdateChainState) Reset

func (x *MsgUpdateChainState) Reset()

func (*MsgUpdateChainState) String

func (x *MsgUpdateChainState) String() string

type MsgUpdateChainStateResponse

type MsgUpdateChainStateResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUpdateChainStateResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateChainStateResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateChainStateResponse) GetSuccess

func (x *MsgUpdateChainStateResponse) GetSuccess() bool

func (*MsgUpdateChainStateResponse) ProtoMessage

func (*MsgUpdateChainStateResponse) ProtoMessage()

func (*MsgUpdateChainStateResponse) ProtoReflect

func (*MsgUpdateChainStateResponse) Reset

func (x *MsgUpdateChainStateResponse) Reset()

func (*MsgUpdateChainStateResponse) String

func (x *MsgUpdateChainStateResponse) String() string

type Params

type Params struct {

	// oracle operator's address.
	OracleOperators []string `protobuf:"bytes,1,rep,name=oracle_operators,json=oracleOperators,proto3" json:"oracle_operators,omitempty"`
	// contains filtered or unexported fields
}

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetOracleOperators

func (x *Params) GetOracleOperators() []string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryClient

type QueryClient interface {
	// Params returns the total set of minting parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	State(ctx context.Context, in *QueryStateRequest, opts ...grpc.CallOption) (*QueryStateResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer

type QueryServer interface {
	// Params returns the total set of minting parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	State(context.Context, *QueryStateRequest) (*QueryStateResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryStateRequest

type QueryStateRequest struct {
	ChainDenom string `protobuf:"bytes,1,opt,name=chain_denom,json=chainDenom,proto3" json:"chain_denom,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStateRequest) Descriptor deprecated

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

Deprecated: Use QueryStateRequest.ProtoReflect.Descriptor instead.

func (*QueryStateRequest) GetChainDenom

func (x *QueryStateRequest) GetChainDenom() string

func (*QueryStateRequest) ProtoMessage

func (*QueryStateRequest) ProtoMessage()

func (*QueryStateRequest) ProtoReflect

func (x *QueryStateRequest) ProtoReflect() protoreflect.Message

func (*QueryStateRequest) Reset

func (x *QueryStateRequest) Reset()

func (*QueryStateRequest) String

func (x *QueryStateRequest) String() string

type QueryStateResponse

type QueryStateResponse struct {
	Coin            *v1beta1.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin,omitempty"`
	Operator        string        `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	Decimal         uint32        `protobuf:"varint,3,opt,name=decimal,proto3" json:"decimal,omitempty"`
	LastBlockHeight int64         `protobuf:"varint,4,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"`
	AppHash         []byte        `protobuf:"bytes,5,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	ChainId         string        `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryStateResponse) Descriptor deprecated

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

Deprecated: Use QueryStateResponse.ProtoReflect.Descriptor instead.

func (*QueryStateResponse) GetAppHash

func (x *QueryStateResponse) GetAppHash() []byte

func (*QueryStateResponse) GetChainId

func (x *QueryStateResponse) GetChainId() string

func (*QueryStateResponse) GetCoin

func (x *QueryStateResponse) GetCoin() *v1beta1.Coin

func (*QueryStateResponse) GetDecimal

func (x *QueryStateResponse) GetDecimal() uint32

func (*QueryStateResponse) GetLastBlockHeight

func (x *QueryStateResponse) GetLastBlockHeight() int64

func (*QueryStateResponse) GetOperator

func (x *QueryStateResponse) GetOperator() string

func (*QueryStateResponse) ProtoMessage

func (*QueryStateResponse) ProtoMessage()

func (*QueryStateResponse) ProtoReflect

func (x *QueryStateResponse) ProtoReflect() protoreflect.Message

func (*QueryStateResponse) Reset

func (x *QueryStateResponse) Reset()

func (*QueryStateResponse) String

func (x *QueryStateResponse) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) UpdateChainState

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) State

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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