types

package
v13.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeUpdateOracle    = "update_oracle"
	EventTypeUpdateOracleAck = "update_oracle_ack"

	AttributeKeyOracleChainId     = "oracle_chain_id"
	AttributeKeyMetricID          = "metric_id"
	AttributeKeyMetricKey         = "metric_key"
	AttributeKeyMetricValue       = "metric_value"
	AttributeKeyMetricType        = "metric_type"
	AttributeKeyMetricUpdateTime  = "metric_update_time"
	AttributeKeyMetricBlockHeight = "metric_block_height"
	AttributeKeyMetricAckStatus   = "metric_ack_status"
)
View Source
const (
	ModuleName = "icaoracle"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

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

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	ICAAccountType_Oracle = "ORACLE"
)

Variables

View Source
var (
	ErrInvalidLengthCallbacks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCallbacks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthContract        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContract          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContract = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCosmwasm        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCosmwasm          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCosmwasm = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrOracleNotFound            = errorsmod.Register(ModuleName, 1, "oracle not found")
	ErrClientStateNotTendermint  = errorsmod.Register(ModuleName, 2, "client state is not tendermint")
	ErrHostConnectionNotFound    = errorsmod.Register(ModuleName, 3, "host connection not found")
	ErrOracleAlreadyExists       = errorsmod.Register(ModuleName, 4, "oracle already exists")
	ErrOracleNotInstantiated     = errorsmod.Register(ModuleName, 5, "oracle not instantiated")
	ErrOracleAlreadyInstantiated = errorsmod.Register(ModuleName, 6, "oracle already instantiated")
	ErrOracleICANotRegistered    = errorsmod.Register(ModuleName, 7, "oracle ICA channel has not been registered")
	ErrOracleICAChannelClosed    = errorsmod.Register(ModuleName, 8, "oracle ICA channel is closed")
	ErrOracleInactive            = errorsmod.Register(ModuleName, 9, "oracle is inactive")
	ErrInvalidICARequest         = errorsmod.Register(ModuleName, 10, "invalid ICA request")
	ErrInvalidICAResponse        = errorsmod.Register(ModuleName, 11, "invalid ICA response")
	ErrInvalidCallback           = errorsmod.Register(ModuleName, 12, "invalid callback data")
	ErrICAAccountDoesNotExist    = errorsmod.Register(ModuleName, 13, "ICA account does not exist")
	ErrInvalidGenesisState       = errorsmod.Register(ModuleName, 14, "Invalid genesis state")
	ErrUnableToRestoreICAChannel = errorsmod.Register(ModuleName, 15, "unable to restore oracle ICA channel")
)
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 (
	ErrInvalidLengthIcaoracle        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIcaoracle          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIcaoracle = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	OracleKeyPrefix      = KeyPrefix("oracle")
	MetricKeyPrefix      = KeyPrefix("metric")
	MetricQueueKeyPrefix = KeyPrefix("queue")
)
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 MetricStatus_name = map[int32]string{
	0: "METRIC_STATUS_UNSPECIFIED",
	1: "METRIC_STATUS_QUEUED",
	2: "METRIC_STATUS_IN_PROGRESS",
}
View Source
var MetricStatus_value = map[string]int32{
	"METRIC_STATUS_UNSPECIFIED": 0,
	"METRIC_STATUS_QUEUED":      1,
	"METRIC_STATUS_IN_PROGRESS": 2,
}
View Source
var (
	MetricType_RedemptionRate = "redemption_rate"
)

Functions

func FormatICAAccountOwner

func FormatICAAccountOwner(chainId string, accountType string) string

func KeyPrefix

func KeyPrefix(p string) []byte

Generates a key byte prefix from a string

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

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)

Types

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool)
	GetChannelConnection(ctx sdk.Context, portID, channelID string) (string, exported.ConnectionI, error)
}

ChannelKeeper defines the expected IBC channel keeper

type ClientKeeper

type ClientKeeper interface {
	GetClientState(ctx sdk.Context, clientID string) (exported.ClientState, bool)
}

ClientKeeper defines the expected IBC client keeper

type ConnectionKeeper

type ConnectionKeeper interface {
	GetConnection(ctx sdk.Context, connectionID string) (connectiontypes.ConnectionEnd, bool)
}

ConnectionKeeper defines the expected IBC connection keeper

type GenesisState

type GenesisState struct {
	Params  Params   `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
	Oracles []Oracle `protobuf:"bytes,2,rep,name=oracles,proto3" json:"oracles" yaml:"oracles"`
	Metrics []Metric `protobuf:"bytes,3,rep,name=metrics,proto3" json:"metrics" yaml:"metrics"`
}

GenesisState defines the icaoracle module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetMetrics

func (m *GenesisState) GetMetrics() []Metric

func (*GenesisState) GetOracles

func (m *GenesisState) GetOracles() []Oracle

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 ICACallbacksKeeper

type ICACallbacksKeeper interface {
	SetCallbackData(ctx sdk.Context, callbackData icacallbackstypes.CallbackData)
}

ICACallbacksKeeper defines the expected ICA callback keeper

type ICAControllerKeeper

type ICAControllerKeeper interface {
	GetInterchainAccountAddress(ctx sdk.Context, connectionID, portID string) (string, bool)
	GetOpenActiveChannel(ctx sdk.Context, connectionID, portID string) (string, bool)
	RegisterInterchainAccount(ctx sdk.Context, connectionID, owner, version string) error
}

ICAControllerKeeper defines the expected ICA controller keeper

type ICATx

type ICATx struct {
	ConnectionId    string
	ChannelId       string
	PortId          string
	Owner           string
	Messages        []proto.Message
	RelativeTimeout time.Duration
	CallbackArgs    proto.Message
	CallbackId      string
}

func (ICATx) GetRelativeTimeoutNano

func (i ICATx) GetRelativeTimeoutNano() uint64

func (ICATx) ValidateICATx

func (i ICATx) ValidateICATx() error

type ICS4Wrapper

type ICS4Wrapper interface {
	WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, acknowledgement ibcexported.Acknowledgement) error
	SendPacket(
		ctx sdk.Context,
		chanCap *capabilitytypes.Capability,
		sourcePort string,
		sourceChannel string,
		timeoutHeight clienttypes.Height,
		timeoutTimestamp uint64,
		data []byte,
	) (sequence uint64, err error)
	GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool)
}

ICS4Wrapper defines the expected ICS4Wrapper for middleware

type InstantiateOracleCallback

type InstantiateOracleCallback struct {
	OracleChainId string `protobuf:"bytes,1,opt,name=oracle_chain_id,json=oracleChainId,proto3" json:"oracle_chain_id,omitempty"`
}

Callback data for instantiating an oracle

func (*InstantiateOracleCallback) Descriptor

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

func (*InstantiateOracleCallback) GetOracleChainId

func (m *InstantiateOracleCallback) GetOracleChainId() string

func (*InstantiateOracleCallback) Marshal

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

func (*InstantiateOracleCallback) MarshalTo

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

func (*InstantiateOracleCallback) MarshalToSizedBuffer

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

func (*InstantiateOracleCallback) ProtoMessage

func (*InstantiateOracleCallback) ProtoMessage()

func (*InstantiateOracleCallback) Reset

func (m *InstantiateOracleCallback) Reset()

func (*InstantiateOracleCallback) Size

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

func (*InstantiateOracleCallback) String

func (m *InstantiateOracleCallback) String() string

func (*InstantiateOracleCallback) Unmarshal

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

func (*InstantiateOracleCallback) XXX_DiscardUnknown

func (m *InstantiateOracleCallback) XXX_DiscardUnknown()

func (*InstantiateOracleCallback) XXX_Marshal

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

func (*InstantiateOracleCallback) XXX_Merge

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

func (*InstantiateOracleCallback) XXX_Size

func (m *InstantiateOracleCallback) XXX_Size() int

func (*InstantiateOracleCallback) XXX_Unmarshal

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

type Metric

type Metric struct {
	Key               string       `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value             string       `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	MetricType        string       `protobuf:"bytes,3,opt,name=metric_type,json=metricType,proto3" json:"metric_type,omitempty"`
	UpdateTime        int64        `protobuf:"varint,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	BlockHeight       int64        `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Attributes        string       `protobuf:"bytes,6,opt,name=attributes,proto3" json:"attributes,omitempty"`
	DestinationOracle string       `protobuf:"bytes,7,opt,name=destination_oracle,json=destinationOracle,proto3" json:"destination_oracle,omitempty"`
	Status            MetricStatus `protobuf:"varint,8,opt,name=status,proto3,enum=stride.icaoracle.MetricStatus" json:"status,omitempty"`
}

Metric structure stores a generic metric using a key value structure along with additional context

func NewMetric

func NewMetric(ctx sdk.Context, key, value, metricType, attributes string) Metric

Returns a new metric at the current block time and height

func (*Metric) Descriptor

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

func (*Metric) GetAttributes

func (m *Metric) GetAttributes() string

func (*Metric) GetBlockHeight

func (m *Metric) GetBlockHeight() int64

func (*Metric) GetDestinationOracle

func (m *Metric) GetDestinationOracle() string

func (*Metric) GetKey

func (m *Metric) GetKey() string

func (Metric) GetMetricID

func (m Metric) GetMetricID() string

Returns the ID for a metric

func (*Metric) GetMetricType

func (m *Metric) GetMetricType() string

func (*Metric) GetStatus

func (m *Metric) GetStatus() MetricStatus

func (*Metric) GetUpdateTime

func (m *Metric) GetUpdateTime() int64

func (*Metric) GetValue

func (m *Metric) GetValue() string

func (*Metric) Marshal

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

func (*Metric) MarshalTo

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

func (*Metric) MarshalToSizedBuffer

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

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) Reset

func (m *Metric) Reset()

func (*Metric) Size

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

func (*Metric) String

func (m *Metric) String() string

func (*Metric) Unmarshal

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

func (*Metric) XXX_DiscardUnknown

func (m *Metric) XXX_DiscardUnknown()

func (*Metric) XXX_Marshal

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

func (*Metric) XXX_Merge

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

func (*Metric) XXX_Size

func (m *Metric) XXX_Size() int

func (*Metric) XXX_Unmarshal

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

type MetricStatus

type MetricStatus int32

MetricStatus indicates whether the Metric update ICA has been sent

const (
	MetricStatus_UNSPECIFIED MetricStatus = 0
	MetricStatus_QUEUED      MetricStatus = 1
	MetricStatus_IN_PROGRESS MetricStatus = 2
)

func (MetricStatus) EnumDescriptor

func (MetricStatus) EnumDescriptor() ([]byte, []int)

func (MetricStatus) String

func (x MetricStatus) String() string

type MsgAddOracle

type MsgAddOracle struct {
	Creator      string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
}

Adds a new oracle

func NewMsgAddOracle

func NewMsgAddOracle(creator string, connectionId string) *MsgAddOracle

func (*MsgAddOracle) Descriptor

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

func (*MsgAddOracle) GetConnectionId

func (m *MsgAddOracle) GetConnectionId() string

func (*MsgAddOracle) GetCreator

func (m *MsgAddOracle) GetCreator() string

func (*MsgAddOracle) GetSignBytes

func (msg *MsgAddOracle) GetSignBytes() []byte

func (*MsgAddOracle) GetSigners

func (msg *MsgAddOracle) GetSigners() []sdk.AccAddress

func (*MsgAddOracle) Marshal

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

func (*MsgAddOracle) MarshalTo

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

func (*MsgAddOracle) MarshalToSizedBuffer

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

func (*MsgAddOracle) ProtoMessage

func (*MsgAddOracle) ProtoMessage()

func (*MsgAddOracle) Reset

func (m *MsgAddOracle) Reset()

func (*MsgAddOracle) Size

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

func (*MsgAddOracle) String

func (m *MsgAddOracle) String() string

func (*MsgAddOracle) Unmarshal

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

func (*MsgAddOracle) ValidateBasic

func (msg *MsgAddOracle) ValidateBasic() error

func (*MsgAddOracle) XXX_DiscardUnknown

func (m *MsgAddOracle) XXX_DiscardUnknown()

func (*MsgAddOracle) XXX_Marshal

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

func (*MsgAddOracle) XXX_Merge

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

func (*MsgAddOracle) XXX_Size

func (m *MsgAddOracle) XXX_Size() int

func (*MsgAddOracle) XXX_Unmarshal

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

type MsgAddOracleResponse

type MsgAddOracleResponse struct {
}

func (*MsgAddOracleResponse) Descriptor

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

func (*MsgAddOracleResponse) Marshal

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

func (*MsgAddOracleResponse) MarshalTo

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

func (*MsgAddOracleResponse) MarshalToSizedBuffer

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

func (*MsgAddOracleResponse) ProtoMessage

func (*MsgAddOracleResponse) ProtoMessage()

func (*MsgAddOracleResponse) Reset

func (m *MsgAddOracleResponse) Reset()

func (*MsgAddOracleResponse) Size

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

func (*MsgAddOracleResponse) String

func (m *MsgAddOracleResponse) String() string

func (*MsgAddOracleResponse) Unmarshal

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

func (*MsgAddOracleResponse) XXX_DiscardUnknown

func (m *MsgAddOracleResponse) XXX_DiscardUnknown()

func (*MsgAddOracleResponse) XXX_Marshal

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

func (*MsgAddOracleResponse) XXX_Merge

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

func (*MsgAddOracleResponse) XXX_Size

func (m *MsgAddOracleResponse) XXX_Size() int

func (*MsgAddOracleResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Adds a new oracle given a provided connection
	AddOracle(ctx context.Context, in *MsgAddOracle, opts ...grpc.CallOption) (*MsgAddOracleResponse, error)
	// Instantiates an Oracle CW contract
	InstantiateOracle(ctx context.Context, in *MsgInstantiateOracle, opts ...grpc.CallOption) (*MsgInstantiateOracleResponse, error)
	// Restores the oracle ICA channel after a closure
	RestoreOracleICA(ctx context.Context, in *MsgRestoreOracleICA, opts ...grpc.CallOption) (*MsgRestoreOracleICAResponse, error)
	// Toggle's whether an oracle is active and should receive metric updates
	ToggleOracle(ctx context.Context, in *MsgToggleOracle, opts ...grpc.CallOption) (*MsgToggleOracleResponse, error)
	// Removes an oracle completely
	RemoveOracle(ctx context.Context, in *MsgRemoveOracle, opts ...grpc.CallOption) (*MsgRemoveOracleResponse, 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

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgExecuteContract

type MsgExecuteContract struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// Msg json encoded message to be passed to the contract
	Msg RawContractMessage `protobuf:"bytes,3,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"`
	// Funds coins that are transferred to the contract on execution
	Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
}

MsgExecuteContract submits the given message data to a smart contract

func (*MsgExecuteContract) Descriptor

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

func (*MsgExecuteContract) GetContract

func (m *MsgExecuteContract) GetContract() string

func (*MsgExecuteContract) GetFunds

func (*MsgExecuteContract) GetMsg

func (*MsgExecuteContract) GetSender

func (m *MsgExecuteContract) GetSender() string

func (MsgExecuteContract) GetSignBytes

func (msg MsgExecuteContract) GetSignBytes() []byte

func (MsgExecuteContract) GetSigners

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

func (*MsgExecuteContract) Marshal

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

func (*MsgExecuteContract) MarshalTo

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

func (*MsgExecuteContract) MarshalToSizedBuffer

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

func (*MsgExecuteContract) ProtoMessage

func (*MsgExecuteContract) ProtoMessage()

func (*MsgExecuteContract) Reset

func (m *MsgExecuteContract) Reset()

func (MsgExecuteContract) Route

func (msg MsgExecuteContract) Route() string

func (*MsgExecuteContract) Size

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

func (*MsgExecuteContract) String

func (m *MsgExecuteContract) String() string

func (MsgExecuteContract) Type

func (msg MsgExecuteContract) Type() string

func (*MsgExecuteContract) Unmarshal

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

func (MsgExecuteContract) ValidateBasic

func (msg MsgExecuteContract) ValidateBasic() error

func (*MsgExecuteContract) XXX_DiscardUnknown

func (m *MsgExecuteContract) XXX_DiscardUnknown()

func (*MsgExecuteContract) XXX_Marshal

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

func (*MsgExecuteContract) XXX_Merge

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

func (*MsgExecuteContract) XXX_Size

func (m *MsgExecuteContract) XXX_Size() int

func (*MsgExecuteContract) XXX_Unmarshal

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

type MsgExecuteContractPostMetric

type MsgExecuteContractPostMetric struct {
	PostMetric *MsgPostMetric `protobuf:"bytes,1,opt,name=post_metric,json=postMetric,proto3" json:"post_metric,omitempty"`
}

ExecuteContractPostMetric is the contract-specific metric update message

func NewMsgExecuteContractPostMetric

func NewMsgExecuteContractPostMetric(metric Metric) MsgExecuteContractPostMetric

Creates a new PostMetric contract message from a Metric

func (*MsgExecuteContractPostMetric) Descriptor

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

func (*MsgExecuteContractPostMetric) GetPostMetric

func (m *MsgExecuteContractPostMetric) GetPostMetric() *MsgPostMetric

func (*MsgExecuteContractPostMetric) Marshal

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

func (*MsgExecuteContractPostMetric) MarshalTo

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

func (*MsgExecuteContractPostMetric) MarshalToSizedBuffer

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

func (*MsgExecuteContractPostMetric) ProtoMessage

func (*MsgExecuteContractPostMetric) ProtoMessage()

func (*MsgExecuteContractPostMetric) Reset

func (m *MsgExecuteContractPostMetric) Reset()

func (*MsgExecuteContractPostMetric) Size

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

func (*MsgExecuteContractPostMetric) String

func (*MsgExecuteContractPostMetric) Unmarshal

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

func (*MsgExecuteContractPostMetric) XXX_DiscardUnknown

func (m *MsgExecuteContractPostMetric) XXX_DiscardUnknown()

func (*MsgExecuteContractPostMetric) XXX_Marshal

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

func (*MsgExecuteContractPostMetric) XXX_Merge

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

func (*MsgExecuteContractPostMetric) XXX_Size

func (m *MsgExecuteContractPostMetric) XXX_Size() int

func (*MsgExecuteContractPostMetric) XXX_Unmarshal

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

type MsgInstantiateContract

type MsgInstantiateContract struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Admin is an optional address that can execute migrations
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// CodeID is the reference to the stored WASM code
	CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// Label is optional metadata to be stored with a contract instance.
	Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// Msg json encoded message to be passed to the contract on instantiation
	Msg RawContractMessage `protobuf:"bytes,5,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"`
	// Funds coins that are transferred to the contract on instantiation
	Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
}

MsgInstantiateContract create a new smart contract instance for the given code id.

func (*MsgInstantiateContract) Descriptor

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

func (*MsgInstantiateContract) GetAdmin

func (m *MsgInstantiateContract) GetAdmin() string

func (*MsgInstantiateContract) GetCodeID

func (m *MsgInstantiateContract) GetCodeID() uint64

func (*MsgInstantiateContract) GetFunds

func (*MsgInstantiateContract) GetLabel

func (m *MsgInstantiateContract) GetLabel() string

func (*MsgInstantiateContract) GetMsg

func (*MsgInstantiateContract) GetSender

func (m *MsgInstantiateContract) GetSender() string

func (MsgInstantiateContract) GetSignBytes

func (msg MsgInstantiateContract) GetSignBytes() []byte

func (MsgInstantiateContract) GetSigners

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

func (*MsgInstantiateContract) Marshal

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

func (*MsgInstantiateContract) MarshalTo

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

func (*MsgInstantiateContract) MarshalToSizedBuffer

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

func (*MsgInstantiateContract) ProtoMessage

func (*MsgInstantiateContract) ProtoMessage()

func (*MsgInstantiateContract) Reset

func (m *MsgInstantiateContract) Reset()

func (MsgInstantiateContract) Route

func (msg MsgInstantiateContract) Route() string

func (*MsgInstantiateContract) Size

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

func (*MsgInstantiateContract) String

func (m *MsgInstantiateContract) String() string

func (MsgInstantiateContract) Type

func (msg MsgInstantiateContract) Type() string

func (*MsgInstantiateContract) Unmarshal

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

func (MsgInstantiateContract) ValidateBasic

func (msg MsgInstantiateContract) ValidateBasic() error

func (*MsgInstantiateContract) XXX_DiscardUnknown

func (m *MsgInstantiateContract) XXX_DiscardUnknown()

func (*MsgInstantiateContract) XXX_Marshal

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

func (*MsgInstantiateContract) XXX_Merge

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

func (*MsgInstantiateContract) XXX_Size

func (m *MsgInstantiateContract) XXX_Size() int

func (*MsgInstantiateContract) XXX_Unmarshal

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

type MsgInstantiateContractResponse

type MsgInstantiateContractResponse struct {
	// Address is the bech32 address of the new contract instance.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Data contains bytes to returned from the contract
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

MsgInstantiateContractResponse return instantiation result data

func (*MsgInstantiateContractResponse) Descriptor

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

func (*MsgInstantiateContractResponse) GetAddress

func (m *MsgInstantiateContractResponse) GetAddress() string

func (*MsgInstantiateContractResponse) GetData

func (m *MsgInstantiateContractResponse) GetData() []byte

func (*MsgInstantiateContractResponse) Marshal

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

func (*MsgInstantiateContractResponse) MarshalTo

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

func (*MsgInstantiateContractResponse) MarshalToSizedBuffer

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

func (*MsgInstantiateContractResponse) ProtoMessage

func (*MsgInstantiateContractResponse) ProtoMessage()

func (*MsgInstantiateContractResponse) Reset

func (m *MsgInstantiateContractResponse) Reset()

func (*MsgInstantiateContractResponse) Size

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

func (*MsgInstantiateContractResponse) String

func (*MsgInstantiateContractResponse) Unmarshal

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

func (*MsgInstantiateContractResponse) XXX_DiscardUnknown

func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown()

func (*MsgInstantiateContractResponse) XXX_Marshal

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

func (*MsgInstantiateContractResponse) XXX_Merge

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

func (*MsgInstantiateContractResponse) XXX_Size

func (m *MsgInstantiateContractResponse) XXX_Size() int

func (*MsgInstantiateContractResponse) XXX_Unmarshal

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

type MsgInstantiateOracle

type MsgInstantiateOracle struct {
	Creator        string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	OracleChainId  string `protobuf:"bytes,2,opt,name=oracle_chain_id,json=oracleChainId,proto3" json:"oracle_chain_id,omitempty"`
	ContractCodeId uint64 `protobuf:"varint,3,opt,name=contract_code_id,json=contractCodeId,proto3" json:"contract_code_id,omitempty"`
}

Instantiates the oracle's CW contract

func NewMsgInstantiateOracle

func NewMsgInstantiateOracle(creator string, chainId string, contractCodeId uint64) *MsgInstantiateOracle

func (*MsgInstantiateOracle) Descriptor

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

func (*MsgInstantiateOracle) GetContractCodeId

func (m *MsgInstantiateOracle) GetContractCodeId() uint64

func (*MsgInstantiateOracle) GetCreator

func (m *MsgInstantiateOracle) GetCreator() string

func (*MsgInstantiateOracle) GetOracleChainId

func (m *MsgInstantiateOracle) GetOracleChainId() string

func (*MsgInstantiateOracle) GetSignBytes

func (msg *MsgInstantiateOracle) GetSignBytes() []byte

func (*MsgInstantiateOracle) GetSigners

func (msg *MsgInstantiateOracle) GetSigners() []sdk.AccAddress

func (*MsgInstantiateOracle) Marshal

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

func (*MsgInstantiateOracle) MarshalTo

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

func (*MsgInstantiateOracle) MarshalToSizedBuffer

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

func (*MsgInstantiateOracle) ProtoMessage

func (*MsgInstantiateOracle) ProtoMessage()

func (*MsgInstantiateOracle) Reset

func (m *MsgInstantiateOracle) Reset()

func (*MsgInstantiateOracle) Size

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

func (*MsgInstantiateOracle) String

func (m *MsgInstantiateOracle) String() string

func (*MsgInstantiateOracle) Unmarshal

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

func (*MsgInstantiateOracle) ValidateBasic

func (msg *MsgInstantiateOracle) ValidateBasic() error

func (*MsgInstantiateOracle) XXX_DiscardUnknown

func (m *MsgInstantiateOracle) XXX_DiscardUnknown()

func (*MsgInstantiateOracle) XXX_Marshal

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

func (*MsgInstantiateOracle) XXX_Merge

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

func (*MsgInstantiateOracle) XXX_Size

func (m *MsgInstantiateOracle) XXX_Size() int

func (*MsgInstantiateOracle) XXX_Unmarshal

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

type MsgInstantiateOracleContract

type MsgInstantiateOracleContract struct {
	AdminAddress string `protobuf:"bytes,1,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
}

InstanitateOracleContract is the contract-specific instantiate message

func (*MsgInstantiateOracleContract) Descriptor

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

func (*MsgInstantiateOracleContract) GetAdminAddress

func (m *MsgInstantiateOracleContract) GetAdminAddress() string

func (*MsgInstantiateOracleContract) Marshal

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

func (*MsgInstantiateOracleContract) MarshalTo

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

func (*MsgInstantiateOracleContract) MarshalToSizedBuffer

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

func (*MsgInstantiateOracleContract) ProtoMessage

func (*MsgInstantiateOracleContract) ProtoMessage()

func (*MsgInstantiateOracleContract) Reset

func (m *MsgInstantiateOracleContract) Reset()

func (*MsgInstantiateOracleContract) Size

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

func (*MsgInstantiateOracleContract) String

func (*MsgInstantiateOracleContract) Unmarshal

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

func (*MsgInstantiateOracleContract) XXX_DiscardUnknown

func (m *MsgInstantiateOracleContract) XXX_DiscardUnknown()

func (*MsgInstantiateOracleContract) XXX_Marshal

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

func (*MsgInstantiateOracleContract) XXX_Merge

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

func (*MsgInstantiateOracleContract) XXX_Size

func (m *MsgInstantiateOracleContract) XXX_Size() int

func (*MsgInstantiateOracleContract) XXX_Unmarshal

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

type MsgInstantiateOracleResponse

type MsgInstantiateOracleResponse struct {
}

func (*MsgInstantiateOracleResponse) Descriptor

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

func (*MsgInstantiateOracleResponse) Marshal

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

func (*MsgInstantiateOracleResponse) MarshalTo

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

func (*MsgInstantiateOracleResponse) MarshalToSizedBuffer

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

func (*MsgInstantiateOracleResponse) ProtoMessage

func (*MsgInstantiateOracleResponse) ProtoMessage()

func (*MsgInstantiateOracleResponse) Reset

func (m *MsgInstantiateOracleResponse) Reset()

func (*MsgInstantiateOracleResponse) Size

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

func (*MsgInstantiateOracleResponse) String

func (*MsgInstantiateOracleResponse) Unmarshal

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

func (*MsgInstantiateOracleResponse) XXX_DiscardUnknown

func (m *MsgInstantiateOracleResponse) XXX_DiscardUnknown()

func (*MsgInstantiateOracleResponse) XXX_Marshal

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

func (*MsgInstantiateOracleResponse) XXX_Merge

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

func (*MsgInstantiateOracleResponse) XXX_Size

func (m *MsgInstantiateOracleResponse) XXX_Size() int

func (*MsgInstantiateOracleResponse) XXX_Unmarshal

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

type MsgPostMetric

type MsgPostMetric struct {
	Key         string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value       string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	MetricType  string `protobuf:"bytes,3,opt,name=metric_type,json=metricType,proto3" json:"metric_type,omitempty"`
	UpdateTime  int64  `protobuf:"varint,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	BlockHeight int64  `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Attributes  string `protobuf:"bytes,6,opt,name=attributes,proto3" json:"attributes,omitempty"`
}

Body of PostMetric contract message

func (*MsgPostMetric) Descriptor

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

func (*MsgPostMetric) GetAttributes

func (m *MsgPostMetric) GetAttributes() string

func (*MsgPostMetric) GetBlockHeight

func (m *MsgPostMetric) GetBlockHeight() int64

func (*MsgPostMetric) GetKey

func (m *MsgPostMetric) GetKey() string

func (*MsgPostMetric) GetMetricType

func (m *MsgPostMetric) GetMetricType() string

func (*MsgPostMetric) GetUpdateTime

func (m *MsgPostMetric) GetUpdateTime() int64

func (*MsgPostMetric) GetValue

func (m *MsgPostMetric) GetValue() string

func (*MsgPostMetric) Marshal

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

func (*MsgPostMetric) MarshalTo

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

func (*MsgPostMetric) MarshalToSizedBuffer

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

func (*MsgPostMetric) ProtoMessage

func (*MsgPostMetric) ProtoMessage()

func (*MsgPostMetric) Reset

func (m *MsgPostMetric) Reset()

func (*MsgPostMetric) Size

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

func (*MsgPostMetric) String

func (m *MsgPostMetric) String() string

func (*MsgPostMetric) Unmarshal

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

func (*MsgPostMetric) XXX_DiscardUnknown

func (m *MsgPostMetric) XXX_DiscardUnknown()

func (*MsgPostMetric) XXX_Marshal

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

func (*MsgPostMetric) XXX_Merge

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

func (*MsgPostMetric) XXX_Size

func (m *MsgPostMetric) XXX_Size() int

func (*MsgPostMetric) XXX_Unmarshal

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

type MsgRemoveOracle

type MsgRemoveOracle struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority     string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	OracleChainId string `protobuf:"bytes,2,opt,name=oracle_chain_id,json=oracleChainId,proto3" json:"oracle_chain_id,omitempty"`
}

Removes an oracle completely

func (*MsgRemoveOracle) Descriptor

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

func (*MsgRemoveOracle) GetAuthority

func (m *MsgRemoveOracle) GetAuthority() string

func (*MsgRemoveOracle) GetOracleChainId

func (m *MsgRemoveOracle) GetOracleChainId() string

func (*MsgRemoveOracle) GetSignBytes

func (msg *MsgRemoveOracle) GetSignBytes() []byte

func (*MsgRemoveOracle) GetSigners

func (msg *MsgRemoveOracle) GetSigners() []sdk.AccAddress

func (*MsgRemoveOracle) Marshal

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

func (*MsgRemoveOracle) MarshalTo

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

func (*MsgRemoveOracle) MarshalToSizedBuffer

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

func (*MsgRemoveOracle) ProtoMessage

func (*MsgRemoveOracle) ProtoMessage()

func (*MsgRemoveOracle) Reset

func (m *MsgRemoveOracle) Reset()

func (*MsgRemoveOracle) Size

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

func (*MsgRemoveOracle) String

func (m *MsgRemoveOracle) String() string

func (*MsgRemoveOracle) Unmarshal

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

func (*MsgRemoveOracle) ValidateBasic

func (msg *MsgRemoveOracle) ValidateBasic() error

func (*MsgRemoveOracle) XXX_DiscardUnknown

func (m *MsgRemoveOracle) XXX_DiscardUnknown()

func (*MsgRemoveOracle) XXX_Marshal

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

func (*MsgRemoveOracle) XXX_Merge

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

func (*MsgRemoveOracle) XXX_Size

func (m *MsgRemoveOracle) XXX_Size() int

func (*MsgRemoveOracle) XXX_Unmarshal

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

type MsgRemoveOracleResponse

type MsgRemoveOracleResponse struct {
}

func (*MsgRemoveOracleResponse) Descriptor

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

func (*MsgRemoveOracleResponse) Marshal

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

func (*MsgRemoveOracleResponse) MarshalTo

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

func (*MsgRemoveOracleResponse) MarshalToSizedBuffer

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

func (*MsgRemoveOracleResponse) ProtoMessage

func (*MsgRemoveOracleResponse) ProtoMessage()

func (*MsgRemoveOracleResponse) Reset

func (m *MsgRemoveOracleResponse) Reset()

func (*MsgRemoveOracleResponse) Size

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

func (*MsgRemoveOracleResponse) String

func (m *MsgRemoveOracleResponse) String() string

func (*MsgRemoveOracleResponse) Unmarshal

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

func (*MsgRemoveOracleResponse) XXX_DiscardUnknown

func (m *MsgRemoveOracleResponse) XXX_DiscardUnknown()

func (*MsgRemoveOracleResponse) XXX_Marshal

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

func (*MsgRemoveOracleResponse) XXX_Merge

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

func (*MsgRemoveOracleResponse) XXX_Size

func (m *MsgRemoveOracleResponse) XXX_Size() int

func (*MsgRemoveOracleResponse) XXX_Unmarshal

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

type MsgRestoreOracleICA

type MsgRestoreOracleICA struct {
	Creator       string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	OracleChainId string `protobuf:"bytes,2,opt,name=oracle_chain_id,json=oracleChainId,proto3" json:"oracle_chain_id,omitempty"`
}

Restore's a closed ICA channel for a given oracle

func NewMsgRestoreOracleICA

func NewMsgRestoreOracleICA(creator string, oracleChainId string) *MsgRestoreOracleICA

func (*MsgRestoreOracleICA) Descriptor

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

func (*MsgRestoreOracleICA) GetCreator

func (m *MsgRestoreOracleICA) GetCreator() string

func (*MsgRestoreOracleICA) GetOracleChainId

func (m *MsgRestoreOracleICA) GetOracleChainId() string

func (*MsgRestoreOracleICA) GetSignBytes

func (msg *MsgRestoreOracleICA) GetSignBytes() []byte

func (*MsgRestoreOracleICA) GetSigners

func (msg *MsgRestoreOracleICA) GetSigners() []sdk.AccAddress

func (*MsgRestoreOracleICA) Marshal

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

func (*MsgRestoreOracleICA) MarshalTo

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

func (*MsgRestoreOracleICA) MarshalToSizedBuffer

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

func (*MsgRestoreOracleICA) ProtoMessage

func (*MsgRestoreOracleICA) ProtoMessage()

func (*MsgRestoreOracleICA) Reset

func (m *MsgRestoreOracleICA) Reset()

func (*MsgRestoreOracleICA) Size

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

func (*MsgRestoreOracleICA) String

func (m *MsgRestoreOracleICA) String() string

func (*MsgRestoreOracleICA) Unmarshal

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

func (*MsgRestoreOracleICA) ValidateBasic

func (msg *MsgRestoreOracleICA) ValidateBasic() error

func (*MsgRestoreOracleICA) XXX_DiscardUnknown

func (m *MsgRestoreOracleICA) XXX_DiscardUnknown()

func (*MsgRestoreOracleICA) XXX_Marshal

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

func (*MsgRestoreOracleICA) XXX_Merge

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

func (*MsgRestoreOracleICA) XXX_Size

func (m *MsgRestoreOracleICA) XXX_Size() int

func (*MsgRestoreOracleICA) XXX_Unmarshal

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

type MsgRestoreOracleICAResponse

type MsgRestoreOracleICAResponse struct {
}

func (*MsgRestoreOracleICAResponse) Descriptor

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

func (*MsgRestoreOracleICAResponse) Marshal

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

func (*MsgRestoreOracleICAResponse) MarshalTo

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

func (*MsgRestoreOracleICAResponse) MarshalToSizedBuffer

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

func (*MsgRestoreOracleICAResponse) ProtoMessage

func (*MsgRestoreOracleICAResponse) ProtoMessage()

func (*MsgRestoreOracleICAResponse) Reset

func (m *MsgRestoreOracleICAResponse) Reset()

func (*MsgRestoreOracleICAResponse) Size

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

func (*MsgRestoreOracleICAResponse) String

func (m *MsgRestoreOracleICAResponse) String() string

func (*MsgRestoreOracleICAResponse) Unmarshal

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

func (*MsgRestoreOracleICAResponse) XXX_DiscardUnknown

func (m *MsgRestoreOracleICAResponse) XXX_DiscardUnknown()

func (*MsgRestoreOracleICAResponse) XXX_Marshal

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

func (*MsgRestoreOracleICAResponse) XXX_Merge

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

func (*MsgRestoreOracleICAResponse) XXX_Size

func (m *MsgRestoreOracleICAResponse) XXX_Size() int

func (*MsgRestoreOracleICAResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Adds a new oracle given a provided connection
	AddOracle(context.Context, *MsgAddOracle) (*MsgAddOracleResponse, error)
	// Instantiates an Oracle CW contract
	InstantiateOracle(context.Context, *MsgInstantiateOracle) (*MsgInstantiateOracleResponse, error)
	// Restores the oracle ICA channel after a closure
	RestoreOracleICA(context.Context, *MsgRestoreOracleICA) (*MsgRestoreOracleICAResponse, error)
	// Toggle's whether an oracle is active and should receive metric updates
	ToggleOracle(context.Context, *MsgToggleOracle) (*MsgToggleOracleResponse, error)
	// Removes an oracle completely
	RemoveOracle(context.Context, *MsgRemoveOracle) (*MsgRemoveOracleResponse, error)
}

MsgServer is the server API for Msg service.

type MsgToggleOracle

type MsgToggleOracle struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority     string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	OracleChainId string `protobuf:"bytes,2,opt,name=oracle_chain_id,json=oracleChainId,proto3" json:"oracle_chain_id,omitempty"`
	Active        bool   `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
}

Toggle's whether an oracle is active and should receive metric updates

func (*MsgToggleOracle) Descriptor

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

func (*MsgToggleOracle) GetActive

func (m *MsgToggleOracle) GetActive() bool

func (*MsgToggleOracle) GetAuthority

func (m *MsgToggleOracle) GetAuthority() string

func (*MsgToggleOracle) GetOracleChainId

func (m *MsgToggleOracle) GetOracleChainId() string

func (*MsgToggleOracle) GetSignBytes

func (msg *MsgToggleOracle) GetSignBytes() []byte

func (*MsgToggleOracle) GetSigners

func (msg *MsgToggleOracle) GetSigners() []sdk.AccAddress

func (*MsgToggleOracle) Marshal

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

func (*MsgToggleOracle) MarshalTo

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

func (*MsgToggleOracle) MarshalToSizedBuffer

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

func (*MsgToggleOracle) ProtoMessage

func (*MsgToggleOracle) ProtoMessage()

func (*MsgToggleOracle) Reset

func (m *MsgToggleOracle) Reset()

func (*MsgToggleOracle) Size

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

func (*MsgToggleOracle) String

func (m *MsgToggleOracle) String() string

func (*MsgToggleOracle) Unmarshal

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

func (*MsgToggleOracle) ValidateBasic

func (msg *MsgToggleOracle) ValidateBasic() error

func (*MsgToggleOracle) XXX_DiscardUnknown

func (m *MsgToggleOracle) XXX_DiscardUnknown()

func (*MsgToggleOracle) XXX_Marshal

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

func (*MsgToggleOracle) XXX_Merge

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

func (*MsgToggleOracle) XXX_Size

func (m *MsgToggleOracle) XXX_Size() int

func (*MsgToggleOracle) XXX_Unmarshal

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

type MsgToggleOracleResponse

type MsgToggleOracleResponse struct {
}

func (*MsgToggleOracleResponse) Descriptor

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

func (*MsgToggleOracleResponse) Marshal

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

func (*MsgToggleOracleResponse) MarshalTo

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

func (*MsgToggleOracleResponse) MarshalToSizedBuffer

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

func (*MsgToggleOracleResponse) ProtoMessage

func (*MsgToggleOracleResponse) ProtoMessage()

func (*MsgToggleOracleResponse) Reset

func (m *MsgToggleOracleResponse) Reset()

func (*MsgToggleOracleResponse) Size

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

func (*MsgToggleOracleResponse) String

func (m *MsgToggleOracleResponse) String() string

func (*MsgToggleOracleResponse) Unmarshal

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

func (*MsgToggleOracleResponse) XXX_DiscardUnknown

func (m *MsgToggleOracleResponse) XXX_DiscardUnknown()

func (*MsgToggleOracleResponse) XXX_Marshal

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

func (*MsgToggleOracleResponse) XXX_Merge

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

func (*MsgToggleOracleResponse) XXX_Size

func (m *MsgToggleOracleResponse) XXX_Size() int

func (*MsgToggleOracleResponse) XXX_Unmarshal

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

type Oracle

type Oracle struct {
	ChainId         string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ConnectionId    string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
	ChannelId       string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	PortId          string `protobuf:"bytes,4,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	IcaAddress      string `protobuf:"bytes,5,opt,name=ica_address,json=icaAddress,proto3" json:"ica_address,omitempty"`
	ContractAddress string `protobuf:"bytes,6,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Active          bool   `protobuf:"varint,7,opt,name=active,proto3" json:"active,omitempty"`
}

Oracle structure stores context about the CW oracle sitting a different chain

func (*Oracle) Descriptor

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

func (*Oracle) GetActive

func (m *Oracle) GetActive() bool

func (*Oracle) GetChainId

func (m *Oracle) GetChainId() string

func (*Oracle) GetChannelId

func (m *Oracle) GetChannelId() string

func (*Oracle) GetConnectionId

func (m *Oracle) GetConnectionId() string

func (*Oracle) GetContractAddress

func (m *Oracle) GetContractAddress() string

func (*Oracle) GetIcaAddress

func (m *Oracle) GetIcaAddress() string

func (*Oracle) GetPortId

func (m *Oracle) GetPortId() string

func (*Oracle) Marshal

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

func (*Oracle) MarshalTo

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

func (*Oracle) MarshalToSizedBuffer

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

func (*Oracle) ProtoMessage

func (*Oracle) ProtoMessage()

func (*Oracle) Reset

func (m *Oracle) Reset()

func (*Oracle) Size

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

func (*Oracle) String

func (m *Oracle) String() string

func (*Oracle) Unmarshal

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

func (Oracle) ValidateContractInstantiated

func (o Oracle) ValidateContractInstantiated() error

func (Oracle) ValidateICASetup

func (o Oracle) ValidateICASetup() error

func (*Oracle) XXX_DiscardUnknown

func (m *Oracle) XXX_DiscardUnknown()

func (*Oracle) XXX_Marshal

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

func (*Oracle) XXX_Merge

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

func (*Oracle) XXX_Size

func (m *Oracle) XXX_Size() int

func (*Oracle) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the icaoracle module parameters.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryActiveOraclesRequest

type QueryActiveOraclesRequest struct {
	Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
}

Query's all oracle with a filter for whether they're active

func (*QueryActiveOraclesRequest) Descriptor

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

func (*QueryActiveOraclesRequest) GetActive

func (m *QueryActiveOraclesRequest) GetActive() bool

func (*QueryActiveOraclesRequest) Marshal

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

func (*QueryActiveOraclesRequest) MarshalTo

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

func (*QueryActiveOraclesRequest) MarshalToSizedBuffer

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

func (*QueryActiveOraclesRequest) ProtoMessage

func (*QueryActiveOraclesRequest) ProtoMessage()

func (*QueryActiveOraclesRequest) Reset

func (m *QueryActiveOraclesRequest) Reset()

func (*QueryActiveOraclesRequest) Size

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

func (*QueryActiveOraclesRequest) String

func (m *QueryActiveOraclesRequest) String() string

func (*QueryActiveOraclesRequest) Unmarshal

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

func (*QueryActiveOraclesRequest) XXX_DiscardUnknown

func (m *QueryActiveOraclesRequest) XXX_DiscardUnknown()

func (*QueryActiveOraclesRequest) XXX_Marshal

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

func (*QueryActiveOraclesRequest) XXX_Merge

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

func (*QueryActiveOraclesRequest) XXX_Size

func (m *QueryActiveOraclesRequest) XXX_Size() int

func (*QueryActiveOraclesRequest) XXX_Unmarshal

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

type QueryActiveOraclesResponse

type QueryActiveOraclesResponse struct {
	Oracles []Oracle `protobuf:"bytes,1,rep,name=oracles,proto3" json:"oracles"`
}

func (*QueryActiveOraclesResponse) Descriptor

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

func (*QueryActiveOraclesResponse) GetOracles

func (m *QueryActiveOraclesResponse) GetOracles() []Oracle

func (*QueryActiveOraclesResponse) Marshal

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

func (*QueryActiveOraclesResponse) MarshalTo

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

func (*QueryActiveOraclesResponse) MarshalToSizedBuffer

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

func (*QueryActiveOraclesResponse) ProtoMessage

func (*QueryActiveOraclesResponse) ProtoMessage()

func (*QueryActiveOraclesResponse) Reset

func (m *QueryActiveOraclesResponse) Reset()

func (*QueryActiveOraclesResponse) Size

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

func (*QueryActiveOraclesResponse) String

func (m *QueryActiveOraclesResponse) String() string

func (*QueryActiveOraclesResponse) Unmarshal

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

func (*QueryActiveOraclesResponse) XXX_DiscardUnknown

func (m *QueryActiveOraclesResponse) XXX_DiscardUnknown()

func (*QueryActiveOraclesResponse) XXX_Marshal

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

func (*QueryActiveOraclesResponse) XXX_Merge

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

func (*QueryActiveOraclesResponse) XXX_Size

func (m *QueryActiveOraclesResponse) XXX_Size() int

func (*QueryActiveOraclesResponse) XXX_Unmarshal

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

type QueryAllOraclesRequest

type QueryAllOraclesRequest struct {
}

Query's all oracle's

func (*QueryAllOraclesRequest) Descriptor

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

func (*QueryAllOraclesRequest) Marshal

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

func (*QueryAllOraclesRequest) MarshalTo

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

func (*QueryAllOraclesRequest) MarshalToSizedBuffer

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

func (*QueryAllOraclesRequest) ProtoMessage

func (*QueryAllOraclesRequest) ProtoMessage()

func (*QueryAllOraclesRequest) Reset

func (m *QueryAllOraclesRequest) Reset()

func (*QueryAllOraclesRequest) Size

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

func (*QueryAllOraclesRequest) String

func (m *QueryAllOraclesRequest) String() string

func (*QueryAllOraclesRequest) Unmarshal

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

func (*QueryAllOraclesRequest) XXX_DiscardUnknown

func (m *QueryAllOraclesRequest) XXX_DiscardUnknown()

func (*QueryAllOraclesRequest) XXX_Marshal

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

func (*QueryAllOraclesRequest) XXX_Merge

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

func (*QueryAllOraclesRequest) XXX_Size

func (m *QueryAllOraclesRequest) XXX_Size() int

func (*QueryAllOraclesRequest) XXX_Unmarshal

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

type QueryAllOraclesResponse

type QueryAllOraclesResponse struct {
	Oracles []Oracle `protobuf:"bytes,1,rep,name=oracles,proto3" json:"oracles"`
}

func (*QueryAllOraclesResponse) Descriptor

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

func (*QueryAllOraclesResponse) GetOracles

func (m *QueryAllOraclesResponse) GetOracles() []Oracle

func (*QueryAllOraclesResponse) Marshal

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

func (*QueryAllOraclesResponse) MarshalTo

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

func (*QueryAllOraclesResponse) MarshalToSizedBuffer

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

func (*QueryAllOraclesResponse) ProtoMessage

func (*QueryAllOraclesResponse) ProtoMessage()

func (*QueryAllOraclesResponse) Reset

func (m *QueryAllOraclesResponse) Reset()

func (*QueryAllOraclesResponse) Size

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

func (*QueryAllOraclesResponse) String

func (m *QueryAllOraclesResponse) String() string

func (*QueryAllOraclesResponse) Unmarshal

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

func (*QueryAllOraclesResponse) XXX_DiscardUnknown

func (m *QueryAllOraclesResponse) XXX_DiscardUnknown()

func (*QueryAllOraclesResponse) XXX_Marshal

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

func (*QueryAllOraclesResponse) XXX_Merge

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

func (*QueryAllOraclesResponse) XXX_Size

func (m *QueryAllOraclesResponse) XXX_Size() int

func (*QueryAllOraclesResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Query a specific oracle
	Oracle(ctx context.Context, in *QueryOracleRequest, opts ...grpc.CallOption) (*QueryOracleResponse, error)
	// Query all oracles
	AllOracles(ctx context.Context, in *QueryAllOraclesRequest, opts ...grpc.CallOption) (*QueryAllOraclesResponse, error)
	// Query oracles with active ffilter:
	// - /oracles/by_active?active=true
	// - /oracles/by_active?active=false
	ActiveOracles(ctx context.Context, in *QueryActiveOraclesRequest, opts ...grpc.CallOption) (*QueryActiveOraclesResponse, error)
	// Query metrics with optional filters
	//
	// Ex:
	// - /metrics
	// - /metrics?metric_key=X
	// - /metrics?oracle_chain_id=Y
	Metrics(ctx context.Context, in *QueryMetricsRequest, opts ...grpc.CallOption) (*QueryMetricsResponse, 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 QueryMetricsRequest

type QueryMetricsRequest struct {
	MetricKey     string `protobuf:"bytes,1,opt,name=metric_key,json=metricKey,proto3" json:"metric_key,omitempty"`
	OracleChainId string `protobuf:"bytes,2,opt,name=oracle_chain_id,json=oracleChainId,proto3" json:"oracle_chain_id,omitempty"`
}

Query's metric's with optional filters

func (*QueryMetricsRequest) Descriptor

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

func (*QueryMetricsRequest) GetMetricKey

func (m *QueryMetricsRequest) GetMetricKey() string

func (*QueryMetricsRequest) GetOracleChainId

func (m *QueryMetricsRequest) GetOracleChainId() string

func (*QueryMetricsRequest) Marshal

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

func (*QueryMetricsRequest) MarshalTo

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

func (*QueryMetricsRequest) MarshalToSizedBuffer

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

func (*QueryMetricsRequest) ProtoMessage

func (*QueryMetricsRequest) ProtoMessage()

func (*QueryMetricsRequest) Reset

func (m *QueryMetricsRequest) Reset()

func (*QueryMetricsRequest) Size

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

func (*QueryMetricsRequest) String

func (m *QueryMetricsRequest) String() string

func (*QueryMetricsRequest) Unmarshal

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

func (*QueryMetricsRequest) XXX_DiscardUnknown

func (m *QueryMetricsRequest) XXX_DiscardUnknown()

func (*QueryMetricsRequest) XXX_Marshal

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

func (*QueryMetricsRequest) XXX_Merge

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

func (*QueryMetricsRequest) XXX_Size

func (m *QueryMetricsRequest) XXX_Size() int

func (*QueryMetricsRequest) XXX_Unmarshal

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

type QueryMetricsResponse

type QueryMetricsResponse struct {
	Metrics []Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics"`
}

func (*QueryMetricsResponse) Descriptor

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

func (*QueryMetricsResponse) GetMetrics

func (m *QueryMetricsResponse) GetMetrics() []Metric

func (*QueryMetricsResponse) Marshal

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

func (*QueryMetricsResponse) MarshalTo

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

func (*QueryMetricsResponse) MarshalToSizedBuffer

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

func (*QueryMetricsResponse) ProtoMessage

func (*QueryMetricsResponse) ProtoMessage()

func (*QueryMetricsResponse) Reset

func (m *QueryMetricsResponse) Reset()

func (*QueryMetricsResponse) Size

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

func (*QueryMetricsResponse) String

func (m *QueryMetricsResponse) String() string

func (*QueryMetricsResponse) Unmarshal

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

func (*QueryMetricsResponse) XXX_DiscardUnknown

func (m *QueryMetricsResponse) XXX_DiscardUnknown()

func (*QueryMetricsResponse) XXX_Marshal

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

func (*QueryMetricsResponse) XXX_Merge

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

func (*QueryMetricsResponse) XXX_Size

func (m *QueryMetricsResponse) XXX_Size() int

func (*QueryMetricsResponse) XXX_Unmarshal

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

type QueryOracleRequest

type QueryOracleRequest struct {
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

Query's a specific oracle

func (*QueryOracleRequest) Descriptor

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

func (*QueryOracleRequest) GetChainId

func (m *QueryOracleRequest) GetChainId() string

func (*QueryOracleRequest) Marshal

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

func (*QueryOracleRequest) MarshalTo

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

func (*QueryOracleRequest) MarshalToSizedBuffer

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

func (*QueryOracleRequest) ProtoMessage

func (*QueryOracleRequest) ProtoMessage()

func (*QueryOracleRequest) Reset

func (m *QueryOracleRequest) Reset()

func (*QueryOracleRequest) Size

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

func (*QueryOracleRequest) String

func (m *QueryOracleRequest) String() string

func (*QueryOracleRequest) Unmarshal

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

func (*QueryOracleRequest) XXX_DiscardUnknown

func (m *QueryOracleRequest) XXX_DiscardUnknown()

func (*QueryOracleRequest) XXX_Marshal

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

func (*QueryOracleRequest) XXX_Merge

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

func (*QueryOracleRequest) XXX_Size

func (m *QueryOracleRequest) XXX_Size() int

func (*QueryOracleRequest) XXX_Unmarshal

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

type QueryOracleResponse

type QueryOracleResponse struct {
	Oracle *Oracle `protobuf:"bytes,1,opt,name=oracle,proto3" json:"oracle,omitempty"`
}

func (*QueryOracleResponse) Descriptor

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

func (*QueryOracleResponse) GetOracle

func (m *QueryOracleResponse) GetOracle() *Oracle

func (*QueryOracleResponse) Marshal

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

func (*QueryOracleResponse) MarshalTo

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

func (*QueryOracleResponse) MarshalToSizedBuffer

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

func (*QueryOracleResponse) ProtoMessage

func (*QueryOracleResponse) ProtoMessage()

func (*QueryOracleResponse) Reset

func (m *QueryOracleResponse) Reset()

func (*QueryOracleResponse) Size

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

func (*QueryOracleResponse) String

func (m *QueryOracleResponse) String() string

func (*QueryOracleResponse) Unmarshal

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

func (*QueryOracleResponse) XXX_DiscardUnknown

func (m *QueryOracleResponse) XXX_DiscardUnknown()

func (*QueryOracleResponse) XXX_Marshal

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

func (*QueryOracleResponse) XXX_Merge

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

func (*QueryOracleResponse) XXX_Size

func (m *QueryOracleResponse) XXX_Size() int

func (*QueryOracleResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Query a specific oracle
	Oracle(context.Context, *QueryOracleRequest) (*QueryOracleResponse, error)
	// Query all oracles
	AllOracles(context.Context, *QueryAllOraclesRequest) (*QueryAllOraclesResponse, error)
	// Query oracles with active ffilter:
	// - /oracles/by_active?active=true
	// - /oracles/by_active?active=false
	ActiveOracles(context.Context, *QueryActiveOraclesRequest) (*QueryActiveOraclesResponse, error)
	// Query metrics with optional filters
	//
	// Ex:
	// - /metrics
	// - /metrics?metric_key=X
	// - /metrics?oracle_chain_id=Y
	Metrics(context.Context, *QueryMetricsRequest) (*QueryMetricsResponse, error)
}

QueryServer is the server API for Query service.

type RawContractMessage

type RawContractMessage []byte

RawContractMessage defines a json message that is sent or returned by a wasm contract. This type can hold any type of bytes. Until validateBasic is called there should not be any assumptions made that the data is valid syntax or semantic.

func (RawContractMessage) Bytes

func (r RawContractMessage) Bytes() []byte

Bytes returns raw bytes type

func (RawContractMessage) Equal

Equal content is equal json. Byte equal but this can change in the future.

func (RawContractMessage) MarshalJSON

func (r RawContractMessage) MarshalJSON() ([]byte, error)

func (*RawContractMessage) UnmarshalJSON

func (r *RawContractMessage) UnmarshalJSON(b []byte) error

func (*RawContractMessage) ValidateBasic

func (r *RawContractMessage) ValidateBasic() error

type RedemptionRateAttributes

type RedemptionRateAttributes struct {
	Denom     string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
}

Attributes associated with a RedemptionRate metric update

func (*RedemptionRateAttributes) Descriptor

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

func (*RedemptionRateAttributes) GetBaseDenom

func (m *RedemptionRateAttributes) GetBaseDenom() string

func (*RedemptionRateAttributes) GetDenom

func (m *RedemptionRateAttributes) GetDenom() string

func (*RedemptionRateAttributes) Marshal

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

func (*RedemptionRateAttributes) MarshalTo

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

func (*RedemptionRateAttributes) MarshalToSizedBuffer

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

func (*RedemptionRateAttributes) ProtoMessage

func (*RedemptionRateAttributes) ProtoMessage()

func (*RedemptionRateAttributes) Reset

func (m *RedemptionRateAttributes) Reset()

func (*RedemptionRateAttributes) Size

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

func (*RedemptionRateAttributes) String

func (m *RedemptionRateAttributes) String() string

func (*RedemptionRateAttributes) Unmarshal

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

func (*RedemptionRateAttributes) XXX_DiscardUnknown

func (m *RedemptionRateAttributes) XXX_DiscardUnknown()

func (*RedemptionRateAttributes) XXX_Marshal

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

func (*RedemptionRateAttributes) XXX_Merge

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

func (*RedemptionRateAttributes) XXX_Size

func (m *RedemptionRateAttributes) XXX_Size() int

func (*RedemptionRateAttributes) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddOracle

func (*UnimplementedMsgServer) InstantiateOracle

func (*UnimplementedMsgServer) RemoveOracle

func (*UnimplementedMsgServer) RestoreOracleICA

func (*UnimplementedMsgServer) ToggleOracle

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ActiveOracles

func (*UnimplementedQueryServer) AllOracles

func (*UnimplementedQueryServer) Metrics

func (*UnimplementedQueryServer) Oracle

type UpdateOracleCallback

type UpdateOracleCallback struct {
	OracleChainId string  `protobuf:"bytes,1,opt,name=oracle_chain_id,json=oracleChainId,proto3" json:"oracle_chain_id,omitempty"`
	Metric        *Metric `protobuf:"bytes,2,opt,name=metric,proto3" json:"metric,omitempty"`
}

Callback data for updating a value in the oracle

func (*UpdateOracleCallback) Descriptor

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

func (*UpdateOracleCallback) GetMetric

func (m *UpdateOracleCallback) GetMetric() *Metric

func (*UpdateOracleCallback) GetOracleChainId

func (m *UpdateOracleCallback) GetOracleChainId() string

func (*UpdateOracleCallback) Marshal

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

func (*UpdateOracleCallback) MarshalTo

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

func (*UpdateOracleCallback) MarshalToSizedBuffer

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

func (*UpdateOracleCallback) ProtoMessage

func (*UpdateOracleCallback) ProtoMessage()

func (*UpdateOracleCallback) Reset

func (m *UpdateOracleCallback) Reset()

func (*UpdateOracleCallback) Size

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

func (*UpdateOracleCallback) String

func (m *UpdateOracleCallback) String() string

func (*UpdateOracleCallback) Unmarshal

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

func (*UpdateOracleCallback) XXX_DiscardUnknown

func (m *UpdateOracleCallback) XXX_DiscardUnknown()

func (*UpdateOracleCallback) XXX_Marshal

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

func (*UpdateOracleCallback) XXX_Merge

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

func (*UpdateOracleCallback) XXX_Size

func (m *UpdateOracleCallback) XXX_Size() int

func (*UpdateOracleCallback) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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