Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func FormatICAAccountOwner(chainId string, accountType string) string
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type ChannelKeeper
- type ClientKeeper
- type ConnectionKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetMetrics() []Metric
- func (m *GenesisState) GetOracles() []Oracle
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type ICACallbacksKeeper
- type ICAControllerKeeper
- type ICATx
- type ICS4Wrapper
- type InstantiateOracleCallback
- func (*InstantiateOracleCallback) Descriptor() ([]byte, []int)
- func (m *InstantiateOracleCallback) GetOracleChainId() string
- func (m *InstantiateOracleCallback) Marshal() (dAtA []byte, err error)
- func (m *InstantiateOracleCallback) MarshalTo(dAtA []byte) (int, error)
- func (m *InstantiateOracleCallback) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InstantiateOracleCallback) ProtoMessage()
- func (m *InstantiateOracleCallback) Reset()
- func (m *InstantiateOracleCallback) Size() (n int)
- func (m *InstantiateOracleCallback) String() string
- func (m *InstantiateOracleCallback) Unmarshal(dAtA []byte) error
- func (m *InstantiateOracleCallback) XXX_DiscardUnknown()
- func (m *InstantiateOracleCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstantiateOracleCallback) XXX_Merge(src proto.Message)
- func (m *InstantiateOracleCallback) XXX_Size() int
- func (m *InstantiateOracleCallback) XXX_Unmarshal(b []byte) error
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)
- func (m *Metric) GetAttributes() string
- func (m *Metric) GetBlockHeight() int64
- func (m *Metric) GetDestinationOracle() string
- func (m *Metric) GetKey() string
- func (m Metric) GetMetricID() string
- func (m *Metric) GetMetricType() string
- func (m *Metric) GetStatus() MetricStatus
- func (m *Metric) GetUpdateTime() int64
- func (m *Metric) GetValue() string
- func (m *Metric) Marshal() (dAtA []byte, err error)
- func (m *Metric) MarshalTo(dAtA []byte) (int, error)
- func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metric) ProtoMessage()
- func (m *Metric) Reset()
- func (m *Metric) Size() (n int)
- func (m *Metric) String() string
- func (m *Metric) Unmarshal(dAtA []byte) error
- func (m *Metric) XXX_DiscardUnknown()
- func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metric) XXX_Merge(src proto.Message)
- func (m *Metric) XXX_Size() int
- func (m *Metric) XXX_Unmarshal(b []byte) error
- type MetricStatus
- type MsgAddOracle
- func (*MsgAddOracle) Descriptor() ([]byte, []int)
- func (m *MsgAddOracle) GetConnectionId() string
- func (m *MsgAddOracle) GetCreator() string
- func (msg *MsgAddOracle) GetSignBytes() []byte
- func (msg *MsgAddOracle) GetSigners() []sdk.AccAddress
- func (m *MsgAddOracle) Marshal() (dAtA []byte, err error)
- func (m *MsgAddOracle) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddOracle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddOracle) ProtoMessage()
- func (m *MsgAddOracle) Reset()
- func (m *MsgAddOracle) Size() (n int)
- func (m *MsgAddOracle) String() string
- func (m *MsgAddOracle) Unmarshal(dAtA []byte) error
- func (msg *MsgAddOracle) ValidateBasic() error
- func (m *MsgAddOracle) XXX_DiscardUnknown()
- func (m *MsgAddOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddOracle) XXX_Merge(src proto.Message)
- func (m *MsgAddOracle) XXX_Size() int
- func (m *MsgAddOracle) XXX_Unmarshal(b []byte) error
- type MsgAddOracleResponse
- func (*MsgAddOracleResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddOracleResponse) ProtoMessage()
- func (m *MsgAddOracleResponse) Reset()
- func (m *MsgAddOracleResponse) Size() (n int)
- func (m *MsgAddOracleResponse) String() string
- func (m *MsgAddOracleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddOracleResponse) XXX_DiscardUnknown()
- func (m *MsgAddOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddOracleResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddOracleResponse) XXX_Size() int
- func (m *MsgAddOracleResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgExecuteContract
- func (*MsgExecuteContract) Descriptor() ([]byte, []int)
- func (m *MsgExecuteContract) GetContract() string
- func (m *MsgExecuteContract) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgExecuteContract) GetMsg() RawContractMessage
- func (m *MsgExecuteContract) GetSender() string
- func (msg MsgExecuteContract) GetSignBytes() []byte
- func (msg MsgExecuteContract) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteContract) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContract) ProtoMessage()
- func (m *MsgExecuteContract) Reset()
- func (msg MsgExecuteContract) Route() string
- func (m *MsgExecuteContract) Size() (n int)
- func (m *MsgExecuteContract) String() string
- func (msg MsgExecuteContract) Type() string
- func (m *MsgExecuteContract) Unmarshal(dAtA []byte) error
- func (msg MsgExecuteContract) ValidateBasic() error
- func (m *MsgExecuteContract) XXX_DiscardUnknown()
- func (m *MsgExecuteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContract) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContract) XXX_Size() int
- func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error
- type MsgExecuteContractPostMetric
- func (*MsgExecuteContractPostMetric) Descriptor() ([]byte, []int)
- func (m *MsgExecuteContractPostMetric) GetPostMetric() *MsgPostMetric
- func (m *MsgExecuteContractPostMetric) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContractPostMetric) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContractPostMetric) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContractPostMetric) ProtoMessage()
- func (m *MsgExecuteContractPostMetric) Reset()
- func (m *MsgExecuteContractPostMetric) Size() (n int)
- func (m *MsgExecuteContractPostMetric) String() string
- func (m *MsgExecuteContractPostMetric) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteContractPostMetric) XXX_DiscardUnknown()
- func (m *MsgExecuteContractPostMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContractPostMetric) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContractPostMetric) XXX_Size() int
- func (m *MsgExecuteContractPostMetric) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContract
- func (*MsgInstantiateContract) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateContract) GetAdmin() string
- func (m *MsgInstantiateContract) GetCodeID() uint64
- func (m *MsgInstantiateContract) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgInstantiateContract) GetLabel() string
- func (m *MsgInstantiateContract) GetMsg() RawContractMessage
- func (m *MsgInstantiateContract) GetSender() string
- func (msg MsgInstantiateContract) GetSignBytes() []byte
- func (msg MsgInstantiateContract) GetSigners() []sdk.AccAddress
- func (m *MsgInstantiateContract) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContract) ProtoMessage()
- func (m *MsgInstantiateContract) Reset()
- func (msg MsgInstantiateContract) Route() string
- func (m *MsgInstantiateContract) Size() (n int)
- func (m *MsgInstantiateContract) String() string
- func (msg MsgInstantiateContract) Type() string
- func (m *MsgInstantiateContract) Unmarshal(dAtA []byte) error
- func (msg MsgInstantiateContract) ValidateBasic() error
- func (m *MsgInstantiateContract) XXX_DiscardUnknown()
- func (m *MsgInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContract) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContract) XXX_Size() int
- func (m *MsgInstantiateContract) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContractResponse
- func (*MsgInstantiateContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateContractResponse) GetAddress() string
- func (m *MsgInstantiateContractResponse) GetData() []byte
- func (m *MsgInstantiateContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContractResponse) ProtoMessage()
- func (m *MsgInstantiateContractResponse) Reset()
- func (m *MsgInstantiateContractResponse) Size() (n int)
- func (m *MsgInstantiateContractResponse) String() string
- func (m *MsgInstantiateContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown()
- func (m *MsgInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContractResponse) XXX_Size() int
- func (m *MsgInstantiateContractResponse) XXX_Unmarshal(b []byte) error
- type MsgInstantiateOracle
- func (*MsgInstantiateOracle) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateOracle) GetContractCodeId() uint64
- func (m *MsgInstantiateOracle) GetCreator() string
- func (m *MsgInstantiateOracle) GetOracleChainId() string
- func (msg *MsgInstantiateOracle) GetSignBytes() []byte
- func (msg *MsgInstantiateOracle) GetSigners() []sdk.AccAddress
- func (m *MsgInstantiateOracle) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateOracle) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateOracle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateOracle) ProtoMessage()
- func (m *MsgInstantiateOracle) Reset()
- func (m *MsgInstantiateOracle) Size() (n int)
- func (m *MsgInstantiateOracle) String() string
- func (m *MsgInstantiateOracle) Unmarshal(dAtA []byte) error
- func (msg *MsgInstantiateOracle) ValidateBasic() error
- func (m *MsgInstantiateOracle) XXX_DiscardUnknown()
- func (m *MsgInstantiateOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateOracle) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateOracle) XXX_Size() int
- func (m *MsgInstantiateOracle) XXX_Unmarshal(b []byte) error
- type MsgInstantiateOracleContract
- func (*MsgInstantiateOracleContract) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateOracleContract) GetAdminAddress() string
- func (m *MsgInstantiateOracleContract) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateOracleContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateOracleContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateOracleContract) ProtoMessage()
- func (m *MsgInstantiateOracleContract) Reset()
- func (m *MsgInstantiateOracleContract) Size() (n int)
- func (m *MsgInstantiateOracleContract) String() string
- func (m *MsgInstantiateOracleContract) Unmarshal(dAtA []byte) error
- func (m *MsgInstantiateOracleContract) XXX_DiscardUnknown()
- func (m *MsgInstantiateOracleContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateOracleContract) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateOracleContract) XXX_Size() int
- func (m *MsgInstantiateOracleContract) XXX_Unmarshal(b []byte) error
- type MsgInstantiateOracleResponse
- func (*MsgInstantiateOracleResponse) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateOracleResponse) ProtoMessage()
- func (m *MsgInstantiateOracleResponse) Reset()
- func (m *MsgInstantiateOracleResponse) Size() (n int)
- func (m *MsgInstantiateOracleResponse) String() string
- func (m *MsgInstantiateOracleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInstantiateOracleResponse) XXX_DiscardUnknown()
- func (m *MsgInstantiateOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateOracleResponse) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateOracleResponse) XXX_Size() int
- func (m *MsgInstantiateOracleResponse) XXX_Unmarshal(b []byte) error
- type MsgPostMetric
- func (*MsgPostMetric) Descriptor() ([]byte, []int)
- func (m *MsgPostMetric) GetAttributes() string
- func (m *MsgPostMetric) GetBlockHeight() int64
- func (m *MsgPostMetric) GetKey() string
- func (m *MsgPostMetric) GetMetricType() string
- func (m *MsgPostMetric) GetUpdateTime() int64
- func (m *MsgPostMetric) GetValue() string
- func (m *MsgPostMetric) Marshal() (dAtA []byte, err error)
- func (m *MsgPostMetric) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPostMetric) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPostMetric) ProtoMessage()
- func (m *MsgPostMetric) Reset()
- func (m *MsgPostMetric) Size() (n int)
- func (m *MsgPostMetric) String() string
- func (m *MsgPostMetric) Unmarshal(dAtA []byte) error
- func (m *MsgPostMetric) XXX_DiscardUnknown()
- func (m *MsgPostMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPostMetric) XXX_Merge(src proto.Message)
- func (m *MsgPostMetric) XXX_Size() int
- func (m *MsgPostMetric) XXX_Unmarshal(b []byte) error
- type MsgRemoveOracle
- func (*MsgRemoveOracle) Descriptor() ([]byte, []int)
- func (m *MsgRemoveOracle) GetAuthority() string
- func (m *MsgRemoveOracle) GetOracleChainId() string
- func (msg *MsgRemoveOracle) GetSignBytes() []byte
- func (msg *MsgRemoveOracle) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveOracle) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveOracle) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveOracle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveOracle) ProtoMessage()
- func (m *MsgRemoveOracle) Reset()
- func (m *MsgRemoveOracle) Size() (n int)
- func (m *MsgRemoveOracle) String() string
- func (m *MsgRemoveOracle) Unmarshal(dAtA []byte) error
- func (msg *MsgRemoveOracle) ValidateBasic() error
- func (m *MsgRemoveOracle) XXX_DiscardUnknown()
- func (m *MsgRemoveOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveOracle) XXX_Merge(src proto.Message)
- func (m *MsgRemoveOracle) XXX_Size() int
- func (m *MsgRemoveOracle) XXX_Unmarshal(b []byte) error
- type MsgRemoveOracleResponse
- func (*MsgRemoveOracleResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveOracleResponse) ProtoMessage()
- func (m *MsgRemoveOracleResponse) Reset()
- func (m *MsgRemoveOracleResponse) Size() (n int)
- func (m *MsgRemoveOracleResponse) String() string
- func (m *MsgRemoveOracleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveOracleResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveOracleResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveOracleResponse) XXX_Size() int
- func (m *MsgRemoveOracleResponse) XXX_Unmarshal(b []byte) error
- type MsgRestoreOracleICA
- func (*MsgRestoreOracleICA) Descriptor() ([]byte, []int)
- func (m *MsgRestoreOracleICA) GetCreator() string
- func (m *MsgRestoreOracleICA) GetOracleChainId() string
- func (msg *MsgRestoreOracleICA) GetSignBytes() []byte
- func (msg *MsgRestoreOracleICA) GetSigners() []sdk.AccAddress
- func (m *MsgRestoreOracleICA) Marshal() (dAtA []byte, err error)
- func (m *MsgRestoreOracleICA) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRestoreOracleICA) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRestoreOracleICA) ProtoMessage()
- func (m *MsgRestoreOracleICA) Reset()
- func (m *MsgRestoreOracleICA) Size() (n int)
- func (m *MsgRestoreOracleICA) String() string
- func (m *MsgRestoreOracleICA) Unmarshal(dAtA []byte) error
- func (msg *MsgRestoreOracleICA) ValidateBasic() error
- func (m *MsgRestoreOracleICA) XXX_DiscardUnknown()
- func (m *MsgRestoreOracleICA) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRestoreOracleICA) XXX_Merge(src proto.Message)
- func (m *MsgRestoreOracleICA) XXX_Size() int
- func (m *MsgRestoreOracleICA) XXX_Unmarshal(b []byte) error
- type MsgRestoreOracleICAResponse
- func (*MsgRestoreOracleICAResponse) Descriptor() ([]byte, []int)
- func (m *MsgRestoreOracleICAResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRestoreOracleICAResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRestoreOracleICAResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRestoreOracleICAResponse) ProtoMessage()
- func (m *MsgRestoreOracleICAResponse) Reset()
- func (m *MsgRestoreOracleICAResponse) Size() (n int)
- func (m *MsgRestoreOracleICAResponse) String() string
- func (m *MsgRestoreOracleICAResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRestoreOracleICAResponse) XXX_DiscardUnknown()
- func (m *MsgRestoreOracleICAResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRestoreOracleICAResponse) XXX_Merge(src proto.Message)
- func (m *MsgRestoreOracleICAResponse) XXX_Size() int
- func (m *MsgRestoreOracleICAResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgToggleOracle
- func (*MsgToggleOracle) Descriptor() ([]byte, []int)
- func (m *MsgToggleOracle) GetActive() bool
- func (m *MsgToggleOracle) GetAuthority() string
- func (m *MsgToggleOracle) GetOracleChainId() string
- func (msg *MsgToggleOracle) GetSignBytes() []byte
- func (msg *MsgToggleOracle) GetSigners() []sdk.AccAddress
- func (m *MsgToggleOracle) Marshal() (dAtA []byte, err error)
- func (m *MsgToggleOracle) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgToggleOracle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgToggleOracle) ProtoMessage()
- func (m *MsgToggleOracle) Reset()
- func (m *MsgToggleOracle) Size() (n int)
- func (m *MsgToggleOracle) String() string
- func (m *MsgToggleOracle) Unmarshal(dAtA []byte) error
- func (msg *MsgToggleOracle) ValidateBasic() error
- func (m *MsgToggleOracle) XXX_DiscardUnknown()
- func (m *MsgToggleOracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgToggleOracle) XXX_Merge(src proto.Message)
- func (m *MsgToggleOracle) XXX_Size() int
- func (m *MsgToggleOracle) XXX_Unmarshal(b []byte) error
- type MsgToggleOracleResponse
- func (*MsgToggleOracleResponse) Descriptor() ([]byte, []int)
- func (m *MsgToggleOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgToggleOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgToggleOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgToggleOracleResponse) ProtoMessage()
- func (m *MsgToggleOracleResponse) Reset()
- func (m *MsgToggleOracleResponse) Size() (n int)
- func (m *MsgToggleOracleResponse) String() string
- func (m *MsgToggleOracleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgToggleOracleResponse) XXX_DiscardUnknown()
- func (m *MsgToggleOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgToggleOracleResponse) XXX_Merge(src proto.Message)
- func (m *MsgToggleOracleResponse) XXX_Size() int
- func (m *MsgToggleOracleResponse) XXX_Unmarshal(b []byte) error
- type Oracle
- func (*Oracle) Descriptor() ([]byte, []int)
- func (m *Oracle) GetActive() bool
- func (m *Oracle) GetChainId() string
- func (m *Oracle) GetChannelId() string
- func (m *Oracle) GetConnectionId() string
- func (m *Oracle) GetContractAddress() string
- func (m *Oracle) GetIcaAddress() string
- func (m *Oracle) GetPortId() string
- func (m *Oracle) Marshal() (dAtA []byte, err error)
- func (m *Oracle) MarshalTo(dAtA []byte) (int, error)
- func (m *Oracle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Oracle) ProtoMessage()
- func (m *Oracle) Reset()
- func (m *Oracle) Size() (n int)
- func (m *Oracle) String() string
- func (m *Oracle) Unmarshal(dAtA []byte) error
- func (o Oracle) ValidateContractInstantiated() error
- func (o Oracle) ValidateICASetup() error
- func (m *Oracle) XXX_DiscardUnknown()
- func (m *Oracle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Oracle) XXX_Merge(src proto.Message)
- func (m *Oracle) XXX_Size() int
- func (m *Oracle) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryActiveOraclesRequest
- func (*QueryActiveOraclesRequest) Descriptor() ([]byte, []int)
- func (m *QueryActiveOraclesRequest) GetActive() bool
- func (m *QueryActiveOraclesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActiveOraclesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActiveOraclesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActiveOraclesRequest) ProtoMessage()
- func (m *QueryActiveOraclesRequest) Reset()
- func (m *QueryActiveOraclesRequest) Size() (n int)
- func (m *QueryActiveOraclesRequest) String() string
- func (m *QueryActiveOraclesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActiveOraclesRequest) XXX_DiscardUnknown()
- func (m *QueryActiveOraclesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActiveOraclesRequest) XXX_Merge(src proto.Message)
- func (m *QueryActiveOraclesRequest) XXX_Size() int
- func (m *QueryActiveOraclesRequest) XXX_Unmarshal(b []byte) error
- type QueryActiveOraclesResponse
- func (*QueryActiveOraclesResponse) Descriptor() ([]byte, []int)
- func (m *QueryActiveOraclesResponse) GetOracles() []Oracle
- func (m *QueryActiveOraclesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActiveOraclesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActiveOraclesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActiveOraclesResponse) ProtoMessage()
- func (m *QueryActiveOraclesResponse) Reset()
- func (m *QueryActiveOraclesResponse) Size() (n int)
- func (m *QueryActiveOraclesResponse) String() string
- func (m *QueryActiveOraclesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActiveOraclesResponse) XXX_DiscardUnknown()
- func (m *QueryActiveOraclesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActiveOraclesResponse) XXX_Merge(src proto.Message)
- func (m *QueryActiveOraclesResponse) XXX_Size() int
- func (m *QueryActiveOraclesResponse) XXX_Unmarshal(b []byte) error
- type QueryAllOraclesRequest
- func (*QueryAllOraclesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllOraclesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOraclesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOraclesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOraclesRequest) ProtoMessage()
- func (m *QueryAllOraclesRequest) Reset()
- func (m *QueryAllOraclesRequest) Size() (n int)
- func (m *QueryAllOraclesRequest) String() string
- func (m *QueryAllOraclesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllOraclesRequest) XXX_DiscardUnknown()
- func (m *QueryAllOraclesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOraclesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllOraclesRequest) XXX_Size() int
- func (m *QueryAllOraclesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllOraclesResponse
- func (*QueryAllOraclesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllOraclesResponse) GetOracles() []Oracle
- func (m *QueryAllOraclesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOraclesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOraclesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOraclesResponse) ProtoMessage()
- func (m *QueryAllOraclesResponse) Reset()
- func (m *QueryAllOraclesResponse) Size() (n int)
- func (m *QueryAllOraclesResponse) String() string
- func (m *QueryAllOraclesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllOraclesResponse) XXX_DiscardUnknown()
- func (m *QueryAllOraclesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOraclesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllOraclesResponse) XXX_Size() int
- func (m *QueryAllOraclesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryMetricsRequest
- func (*QueryMetricsRequest) Descriptor() ([]byte, []int)
- func (m *QueryMetricsRequest) GetMetricKey() string
- func (m *QueryMetricsRequest) GetOracleChainId() string
- func (m *QueryMetricsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMetricsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMetricsRequest) ProtoMessage()
- func (m *QueryMetricsRequest) Reset()
- func (m *QueryMetricsRequest) Size() (n int)
- func (m *QueryMetricsRequest) String() string
- func (m *QueryMetricsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMetricsRequest) XXX_DiscardUnknown()
- func (m *QueryMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMetricsRequest) XXX_Merge(src proto.Message)
- func (m *QueryMetricsRequest) XXX_Size() int
- func (m *QueryMetricsRequest) XXX_Unmarshal(b []byte) error
- type QueryMetricsResponse
- func (*QueryMetricsResponse) Descriptor() ([]byte, []int)
- func (m *QueryMetricsResponse) GetMetrics() []Metric
- func (m *QueryMetricsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMetricsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMetricsResponse) ProtoMessage()
- func (m *QueryMetricsResponse) Reset()
- func (m *QueryMetricsResponse) Size() (n int)
- func (m *QueryMetricsResponse) String() string
- func (m *QueryMetricsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMetricsResponse) XXX_DiscardUnknown()
- func (m *QueryMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMetricsResponse) XXX_Merge(src proto.Message)
- func (m *QueryMetricsResponse) XXX_Size() int
- func (m *QueryMetricsResponse) XXX_Unmarshal(b []byte) error
- type QueryOracleRequest
- func (*QueryOracleRequest) Descriptor() ([]byte, []int)
- func (m *QueryOracleRequest) GetChainId() string
- func (m *QueryOracleRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleRequest) ProtoMessage()
- func (m *QueryOracleRequest) Reset()
- func (m *QueryOracleRequest) Size() (n int)
- func (m *QueryOracleRequest) String() string
- func (m *QueryOracleRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOracleRequest) XXX_DiscardUnknown()
- func (m *QueryOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleRequest) XXX_Merge(src proto.Message)
- func (m *QueryOracleRequest) XXX_Size() int
- func (m *QueryOracleRequest) XXX_Unmarshal(b []byte) error
- type QueryOracleResponse
- func (*QueryOracleResponse) Descriptor() ([]byte, []int)
- func (m *QueryOracleResponse) GetOracle() *Oracle
- func (m *QueryOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleResponse) ProtoMessage()
- func (m *QueryOracleResponse) Reset()
- func (m *QueryOracleResponse) Size() (n int)
- func (m *QueryOracleResponse) String() string
- func (m *QueryOracleResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOracleResponse) XXX_DiscardUnknown()
- func (m *QueryOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleResponse) XXX_Merge(src proto.Message)
- func (m *QueryOracleResponse) XXX_Size() int
- func (m *QueryOracleResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RawContractMessage
- type RedemptionRateAttributes
- func (*RedemptionRateAttributes) Descriptor() ([]byte, []int)
- func (m *RedemptionRateAttributes) GetBaseDenom() string
- func (m *RedemptionRateAttributes) GetDenom() string
- func (m *RedemptionRateAttributes) Marshal() (dAtA []byte, err error)
- func (m *RedemptionRateAttributes) MarshalTo(dAtA []byte) (int, error)
- func (m *RedemptionRateAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RedemptionRateAttributes) ProtoMessage()
- func (m *RedemptionRateAttributes) Reset()
- func (m *RedemptionRateAttributes) Size() (n int)
- func (m *RedemptionRateAttributes) String() string
- func (m *RedemptionRateAttributes) Unmarshal(dAtA []byte) error
- func (m *RedemptionRateAttributes) XXX_DiscardUnknown()
- func (m *RedemptionRateAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RedemptionRateAttributes) XXX_Merge(src proto.Message)
- func (m *RedemptionRateAttributes) XXX_Size() int
- func (m *RedemptionRateAttributes) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddOracle(ctx context.Context, req *MsgAddOracle) (*MsgAddOracleResponse, error)
- func (*UnimplementedMsgServer) InstantiateOracle(ctx context.Context, req *MsgInstantiateOracle) (*MsgInstantiateOracleResponse, error)
- func (*UnimplementedMsgServer) RemoveOracle(ctx context.Context, req *MsgRemoveOracle) (*MsgRemoveOracleResponse, error)
- func (*UnimplementedMsgServer) RestoreOracleICA(ctx context.Context, req *MsgRestoreOracleICA) (*MsgRestoreOracleICAResponse, error)
- func (*UnimplementedMsgServer) ToggleOracle(ctx context.Context, req *MsgToggleOracle) (*MsgToggleOracleResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ActiveOracles(ctx context.Context, req *QueryActiveOraclesRequest) (*QueryActiveOraclesResponse, error)
- func (*UnimplementedQueryServer) AllOracles(ctx context.Context, req *QueryAllOraclesRequest) (*QueryAllOraclesResponse, error)
- func (*UnimplementedQueryServer) Metrics(ctx context.Context, req *QueryMetricsRequest) (*QueryMetricsResponse, error)
- func (*UnimplementedQueryServer) Oracle(ctx context.Context, req *QueryOracleRequest) (*QueryOracleResponse, error)
- type UpdateOracleCallback
- func (*UpdateOracleCallback) Descriptor() ([]byte, []int)
- func (m *UpdateOracleCallback) GetMetric() *Metric
- func (m *UpdateOracleCallback) GetOracleChainId() string
- func (m *UpdateOracleCallback) Marshal() (dAtA []byte, err error)
- func (m *UpdateOracleCallback) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateOracleCallback) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateOracleCallback) ProtoMessage()
- func (m *UpdateOracleCallback) Reset()
- func (m *UpdateOracleCallback) Size() (n int)
- func (m *UpdateOracleCallback) String() string
- func (m *UpdateOracleCallback) Unmarshal(dAtA []byte) error
- func (m *UpdateOracleCallback) XXX_DiscardUnknown()
- func (m *UpdateOracleCallback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateOracleCallback) XXX_Merge(src proto.Message)
- func (m *UpdateOracleCallback) XXX_Size() int
- func (m *UpdateOracleCallback) XXX_Unmarshal(b []byte) error
Constants ¶
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" )
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 )
const (
ICAAccountType_Oracle = "ORACLE"
)
Variables ¶
var ( ErrInvalidLengthCallbacks = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCallbacks = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCallbacks = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthContract = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowContract = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupContract = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthCosmwasm = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCosmwasm = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCosmwasm = fmt.Errorf("proto: unexpected end of group") )
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") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthIcaoracle = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIcaoracle = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIcaoracle = fmt.Errorf("proto: unexpected end of group") )
var ( OracleKeyPrefix = KeyPrefix("oracle") MetricKeyPrefix = KeyPrefix("metric") MetricQueueKeyPrefix = KeyPrefix("queue") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var MetricStatus_name = map[int32]string{
0: "METRIC_STATUS_UNSPECIFIED",
1: "METRIC_STATUS_QUEUED",
2: "METRIC_STATUS_IN_PROGRESS",
}
var MetricStatus_value = map[string]int32{
"METRIC_STATUS_UNSPECIFIED": 0,
"METRIC_STATUS_QUEUED": 1,
"METRIC_STATUS_IN_PROGRESS": 2,
}
var (
MetricType_RedemptionRate = "redemption_rate"
)
var (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func FormatICAAccountOwner ¶
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 RegisterQueryHandler ¶
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) 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 (ICATx) ValidateICATx ¶
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 (*Metric) Descriptor ¶
func (*Metric) GetAttributes ¶
func (*Metric) GetBlockHeight ¶
func (*Metric) GetDestinationOracle ¶
func (*Metric) GetMetricType ¶
func (*Metric) GetStatus ¶
func (m *Metric) GetStatus() MetricStatus
func (*Metric) GetUpdateTime ¶
func (*Metric) MarshalToSizedBuffer ¶
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) XXX_DiscardUnknown ¶
func (m *Metric) XXX_DiscardUnknown()
func (*Metric) XXX_Marshal ¶
func (*Metric) XXX_Unmarshal ¶
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) 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 (m *MsgExecuteContract) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgExecuteContract) GetMsg ¶
func (m *MsgExecuteContract) GetMsg() RawContractMessage
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 (m *MsgExecuteContractPostMetric) String() 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 (m *MsgInstantiateContract) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgInstantiateContract) GetLabel ¶
func (m *MsgInstantiateContract) GetLabel() string
func (*MsgInstantiateContract) GetMsg ¶
func (m *MsgInstantiateContract) GetMsg() RawContractMessage
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 (m *MsgInstantiateContractResponse) String() 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 (m *MsgInstantiateOracleContract) String() 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 (m *MsgInstantiateOracleResponse) String() 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) 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) 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) 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) GetChainId ¶
func (*Oracle) GetChannelId ¶
func (*Oracle) GetConnectionId ¶
func (*Oracle) GetContractAddress ¶
func (*Oracle) GetIcaAddress ¶
func (*Oracle) MarshalToSizedBuffer ¶
func (*Oracle) ProtoMessage ¶
func (*Oracle) ProtoMessage()
func (Oracle) ValidateContractInstantiated ¶
func (Oracle) ValidateICASetup ¶
func (*Oracle) XXX_DiscardUnknown ¶
func (m *Oracle) XXX_DiscardUnknown()
func (*Oracle) XXX_Marshal ¶
func (*Oracle) XXX_Unmarshal ¶
type Params ¶
type Params struct { }
Params defines the icaoracle module parameters.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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 ¶
func (r RawContractMessage) Equal(o RawContractMessage) bool
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) AddOracle(ctx context.Context, req *MsgAddOracle) (*MsgAddOracleResponse, error)
func (*UnimplementedMsgServer) InstantiateOracle ¶
func (*UnimplementedMsgServer) InstantiateOracle(ctx context.Context, req *MsgInstantiateOracle) (*MsgInstantiateOracleResponse, error)
func (*UnimplementedMsgServer) RemoveOracle ¶
func (*UnimplementedMsgServer) RemoveOracle(ctx context.Context, req *MsgRemoveOracle) (*MsgRemoveOracleResponse, error)
func (*UnimplementedMsgServer) RestoreOracleICA ¶
func (*UnimplementedMsgServer) RestoreOracleICA(ctx context.Context, req *MsgRestoreOracleICA) (*MsgRestoreOracleICAResponse, error)
func (*UnimplementedMsgServer) ToggleOracle ¶
func (*UnimplementedMsgServer) ToggleOracle(ctx context.Context, req *MsgToggleOracle) (*MsgToggleOracleResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ActiveOracles ¶
func (*UnimplementedQueryServer) ActiveOracles(ctx context.Context, req *QueryActiveOraclesRequest) (*QueryActiveOraclesResponse, error)
func (*UnimplementedQueryServer) AllOracles ¶
func (*UnimplementedQueryServer) AllOracles(ctx context.Context, req *QueryAllOraclesRequest) (*QueryAllOraclesResponse, error)
func (*UnimplementedQueryServer) Metrics ¶
func (*UnimplementedQueryServer) Metrics(ctx context.Context, req *QueryMetricsRequest) (*QueryMetricsResponse, error)
func (*UnimplementedQueryServer) Oracle ¶
func (*UnimplementedQueryServer) Oracle(ctx context.Context, req *QueryOracleRequest) (*QueryOracleResponse, error)
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
Source Files ¶
- callbacks.pb.go
- codec.go
- contract.go
- contract.pb.go
- cosmwasm.go
- cosmwasm.pb.go
- errors.go
- events.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- ica.go
- icaoracle.pb.go
- keys.go
- message_add_oracle.go
- message_instantiate_oracle.go
- message_remove_oracle.go
- message_restore_oracle_interchain_account.go
- message_toggle_oracle.go
- metric.go
- metrics.go
- oracle.go
- params.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go