Documentation ¶
Overview ¶
Package uibc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- 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 BankKeeper
- type EventBadRevert
- func (*EventBadRevert) Descriptor() ([]byte, []int)
- func (m *EventBadRevert) Marshal() (dAtA []byte, err error)
- func (m *EventBadRevert) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBadRevert) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBadRevert) ProtoMessage()
- func (m *EventBadRevert) Reset()
- func (m *EventBadRevert) Size() (n int)
- func (m *EventBadRevert) String() string
- func (m *EventBadRevert) Unmarshal(dAtA []byte) error
- func (m *EventBadRevert) XXX_DiscardUnknown()
- func (m *EventBadRevert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBadRevert) XXX_Merge(src proto.Message)
- func (m *EventBadRevert) XXX_Size() int
- func (m *EventBadRevert) XXX_Unmarshal(b []byte) error
- type EventIBCTransferStatus
- func (*EventIBCTransferStatus) Descriptor() ([]byte, []int)
- func (m *EventIBCTransferStatus) Marshal() (dAtA []byte, err error)
- func (m *EventIBCTransferStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *EventIBCTransferStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventIBCTransferStatus) ProtoMessage()
- func (m *EventIBCTransferStatus) Reset()
- func (m *EventIBCTransferStatus) Size() (n int)
- func (m *EventIBCTransferStatus) String() string
- func (m *EventIBCTransferStatus) Unmarshal(dAtA []byte) error
- func (m *EventIBCTransferStatus) XXX_DiscardUnknown()
- func (m *EventIBCTransferStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventIBCTransferStatus) XXX_Merge(src proto.Message)
- func (m *EventIBCTransferStatus) XXX_Size() int
- func (m *EventIBCTransferStatus) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 IBCTransferStatus
- type Leverage
- type MsgClient
- type MsgGovSetIBCStatus
- func (*MsgGovSetIBCStatus) Descriptor() ([]byte, []int)
- func (msg *MsgGovSetIBCStatus) GetSignBytes() []byte
- func (msg *MsgGovSetIBCStatus) GetSigners() []sdk.AccAddress
- func (m *MsgGovSetIBCStatus) Marshal() (dAtA []byte, err error)
- func (m *MsgGovSetIBCStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovSetIBCStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovSetIBCStatus) ProtoMessage()
- func (m *MsgGovSetIBCStatus) Reset()
- func (msg MsgGovSetIBCStatus) Route() string
- func (m *MsgGovSetIBCStatus) Size() (n int)
- func (msg *MsgGovSetIBCStatus) String() string
- func (msg MsgGovSetIBCStatus) Type() string
- func (m *MsgGovSetIBCStatus) Unmarshal(dAtA []byte) error
- func (msg *MsgGovSetIBCStatus) ValidateBasic() error
- func (m *MsgGovSetIBCStatus) XXX_DiscardUnknown()
- func (m *MsgGovSetIBCStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovSetIBCStatus) XXX_Merge(src proto.Message)
- func (*MsgGovSetIBCStatus) XXX_MessageName() string
- func (m *MsgGovSetIBCStatus) XXX_Size() int
- func (m *MsgGovSetIBCStatus) XXX_Unmarshal(b []byte) error
- type MsgGovSetIBCStatusResponse
- func (*MsgGovSetIBCStatusResponse) Descriptor() ([]byte, []int)
- func (m *MsgGovSetIBCStatusResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGovSetIBCStatusResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovSetIBCStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovSetIBCStatusResponse) ProtoMessage()
- func (m *MsgGovSetIBCStatusResponse) Reset()
- func (m *MsgGovSetIBCStatusResponse) Size() (n int)
- func (m *MsgGovSetIBCStatusResponse) String() string
- func (m *MsgGovSetIBCStatusResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGovSetIBCStatusResponse) XXX_DiscardUnknown()
- func (m *MsgGovSetIBCStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovSetIBCStatusResponse) XXX_Merge(src proto.Message)
- func (*MsgGovSetIBCStatusResponse) XXX_MessageName() string
- func (m *MsgGovSetIBCStatusResponse) XXX_Size() int
- func (m *MsgGovSetIBCStatusResponse) XXX_Unmarshal(b []byte) error
- type MsgGovUpdateQuota
- func (*MsgGovUpdateQuota) Descriptor() ([]byte, []int)
- func (msg *MsgGovUpdateQuota) GetSignBytes() []byte
- func (msg *MsgGovUpdateQuota) GetSigners() []sdk.AccAddress
- func (m *MsgGovUpdateQuota) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateQuota) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateQuota) ProtoMessage()
- func (m *MsgGovUpdateQuota) Reset()
- func (msg MsgGovUpdateQuota) Route() string
- func (m *MsgGovUpdateQuota) Size() (n int)
- func (msg *MsgGovUpdateQuota) String() string
- func (msg MsgGovUpdateQuota) Type() string
- func (m *MsgGovUpdateQuota) Unmarshal(dAtA []byte) error
- func (msg *MsgGovUpdateQuota) ValidateBasic() error
- func (m *MsgGovUpdateQuota) XXX_DiscardUnknown()
- func (m *MsgGovUpdateQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateQuota) XXX_Merge(src proto.Message)
- func (*MsgGovUpdateQuota) XXX_MessageName() string
- func (m *MsgGovUpdateQuota) XXX_Size() int
- func (m *MsgGovUpdateQuota) XXX_Unmarshal(b []byte) error
- type MsgGovUpdateQuotaResponse
- func (*MsgGovUpdateQuotaResponse) Descriptor() ([]byte, []int)
- func (m *MsgGovUpdateQuotaResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgGovUpdateQuotaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgGovUpdateQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgGovUpdateQuotaResponse) ProtoMessage()
- func (m *MsgGovUpdateQuotaResponse) Reset()
- func (m *MsgGovUpdateQuotaResponse) Size() (n int)
- func (m *MsgGovUpdateQuotaResponse) String() string
- func (m *MsgGovUpdateQuotaResponse) Unmarshal(dAtA []byte) error
- func (m *MsgGovUpdateQuotaResponse) XXX_DiscardUnknown()
- func (m *MsgGovUpdateQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgGovUpdateQuotaResponse) XXX_Merge(src proto.Message)
- func (*MsgGovUpdateQuotaResponse) XXX_MessageName() string
- func (m *MsgGovUpdateQuotaResponse) XXX_Size() int
- func (m *MsgGovUpdateQuotaResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Oracle
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetIbcStatus() IBCTransferStatus
- func (m *Params) GetQuotaDuration() time.Duration
- 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 (*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 QueryAllOutflows
- func (*QueryAllOutflows) Descriptor() ([]byte, []int)
- func (m *QueryAllOutflows) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOutflows) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOutflows) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOutflows) ProtoMessage()
- func (m *QueryAllOutflows) Reset()
- func (m *QueryAllOutflows) Size() (n int)
- func (m *QueryAllOutflows) String() string
- func (m *QueryAllOutflows) Unmarshal(dAtA []byte) error
- func (m *QueryAllOutflows) XXX_DiscardUnknown()
- func (m *QueryAllOutflows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOutflows) XXX_Merge(src proto.Message)
- func (m *QueryAllOutflows) XXX_Size() int
- func (m *QueryAllOutflows) XXX_Unmarshal(b []byte) error
- type QueryAllOutflowsResponse
- func (*QueryAllOutflowsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllOutflowsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOutflowsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOutflowsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOutflowsResponse) ProtoMessage()
- func (m *QueryAllOutflowsResponse) Reset()
- func (m *QueryAllOutflowsResponse) Size() (n int)
- func (m *QueryAllOutflowsResponse) String() string
- func (m *QueryAllOutflowsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllOutflowsResponse) XXX_DiscardUnknown()
- func (m *QueryAllOutflowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOutflowsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllOutflowsResponse) XXX_Size() int
- func (m *QueryAllOutflowsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryOutflows
- func (*QueryOutflows) Descriptor() ([]byte, []int)
- func (m *QueryOutflows) Marshal() (dAtA []byte, err error)
- func (m *QueryOutflows) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOutflows) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOutflows) ProtoMessage()
- func (m *QueryOutflows) Reset()
- func (m *QueryOutflows) Size() (n int)
- func (m *QueryOutflows) String() string
- func (m *QueryOutflows) Unmarshal(dAtA []byte) error
- func (m *QueryOutflows) XXX_DiscardUnknown()
- func (m *QueryOutflows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOutflows) XXX_Merge(src proto.Message)
- func (m *QueryOutflows) XXX_Size() int
- func (m *QueryOutflows) XXX_Unmarshal(b []byte) error
- type QueryOutflowsResponse
- func (*QueryOutflowsResponse) Descriptor() ([]byte, []int)
- func (m *QueryOutflowsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOutflowsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOutflowsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOutflowsResponse) ProtoMessage()
- func (m *QueryOutflowsResponse) Reset()
- func (m *QueryOutflowsResponse) Size() (n int)
- func (m *QueryOutflowsResponse) String() string
- func (m *QueryOutflowsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOutflowsResponse) XXX_DiscardUnknown()
- func (m *QueryOutflowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOutflowsResponse) XXX_Merge(src proto.Message)
- func (m *QueryOutflowsResponse) XXX_Size() int
- func (m *QueryOutflowsResponse) XXX_Unmarshal(b []byte) error
- type QueryParams
- func (*QueryParams) Descriptor() ([]byte, []int)
- func (m *QueryParams) Marshal() (dAtA []byte, err error)
- func (m *QueryParams) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParams) ProtoMessage()
- func (m *QueryParams) Reset()
- func (m *QueryParams) Size() (n int)
- func (m *QueryParams) String() string
- func (m *QueryParams) Unmarshal(dAtA []byte) error
- func (m *QueryParams) XXX_DiscardUnknown()
- func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParams) XXX_Merge(src proto.Message)
- func (m *QueryParams) XXX_Size() int
- func (m *QueryParams) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllOutflows(ctx context.Context, req *QueryAllOutflows) (*QueryAllOutflowsResponse, error)
- func (*UnimplementedQueryServer) Outflows(ctx context.Context, req *QueryOutflows) (*QueryOutflowsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "uibc" // StoreKey defines the primary module store key StoreKey = ModuleName )
Variables ¶
var ( ErrQuotaExceeded = errors.Register(ModuleName, 1, "quota transfer exceeded") ErrNoQuotaForIBCDenom = errors.Register(ModuleName, 2, "no quota for ibc denom") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuota = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuota = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuota = 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 IBCTransferStatus_name = map[int32]string{
0: "IBC_TRANSFER_STATUS_UNSPECIFIED",
1: "IBC_TRANSFER_STATUS_QUOTA_DISABLED",
2: "IBC_TRANSFER_STATUS_QUOTA_ENABLED",
3: "IBC_TRANSFER_STATUS_QUOTA_OUT_DISABLED",
4: "IBC_TRANSFER_STATUS_QUOTA_IN_DISABLED",
5: "IBC_TRANSFER_STATUS_TRANSFERS_PAUSED",
}
var IBCTransferStatus_value = map[string]int32{
"IBC_TRANSFER_STATUS_UNSPECIFIED": 0,
"IBC_TRANSFER_STATUS_QUOTA_DISABLED": 1,
"IBC_TRANSFER_STATUS_QUOTA_ENABLED": 2,
"IBC_TRANSFER_STATUS_QUOTA_OUT_DISABLED": 3,
"IBC_TRANSFER_STATUS_QUOTA_IN_DISABLED": 4,
"IBC_TRANSFER_STATUS_TRANSFERS_PAUSED": 5,
}
var ( // ModuleCdc references the global x/uibc module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding as // Amino is still used for that purpose. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/uibc interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
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 BankKeeper ¶
type BankKeeper interface { GetDenomMetaData(ctx sdk.Context, denom string) (types.Metadata, bool) SetDenomMetaData(ctx sdk.Context, denomMetaData types.Metadata) IterateAllDenomMetaData(ctx sdk.Context, cb func(types.Metadata) bool) }
BankKeeper defines the expected x/bank keeper interface.
type EventBadRevert ¶
type EventBadRevert struct { // failure event type FailureType string `protobuf:"bytes,1,opt,name=failure_type,json=failureType,proto3" json:"failure_type,omitempty"` // ibc packet data Packet string `protobuf:"bytes,2,opt,name=packet,proto3" json:"packet,omitempty"` }
EventBadRevert is emitted on failure of ibc-transfer quota.
func (*EventBadRevert) Descriptor ¶
func (*EventBadRevert) Descriptor() ([]byte, []int)
func (*EventBadRevert) Marshal ¶
func (m *EventBadRevert) Marshal() (dAtA []byte, err error)
func (*EventBadRevert) MarshalToSizedBuffer ¶
func (m *EventBadRevert) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventBadRevert) ProtoMessage ¶
func (*EventBadRevert) ProtoMessage()
func (*EventBadRevert) Reset ¶
func (m *EventBadRevert) Reset()
func (*EventBadRevert) Size ¶
func (m *EventBadRevert) Size() (n int)
func (*EventBadRevert) String ¶
func (m *EventBadRevert) String() string
func (*EventBadRevert) Unmarshal ¶
func (m *EventBadRevert) Unmarshal(dAtA []byte) error
func (*EventBadRevert) XXX_DiscardUnknown ¶
func (m *EventBadRevert) XXX_DiscardUnknown()
func (*EventBadRevert) XXX_Marshal ¶
func (m *EventBadRevert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventBadRevert) XXX_Merge ¶
func (m *EventBadRevert) XXX_Merge(src proto.Message)
func (*EventBadRevert) XXX_Size ¶
func (m *EventBadRevert) XXX_Size() int
func (*EventBadRevert) XXX_Unmarshal ¶
func (m *EventBadRevert) XXX_Unmarshal(b []byte) error
type EventIBCTransferStatus ¶
type EventIBCTransferStatus struct {
Status IBCTransferStatus `protobuf:"varint,1,opt,name=status,proto3,enum=umee.uibc.v1.IBCTransferStatus" json:"status,omitempty"`
}
EventIBCTransferStatus is emitted on quota tracking pause status change.
func (*EventIBCTransferStatus) Descriptor ¶
func (*EventIBCTransferStatus) Descriptor() ([]byte, []int)
func (*EventIBCTransferStatus) Marshal ¶
func (m *EventIBCTransferStatus) Marshal() (dAtA []byte, err error)
func (*EventIBCTransferStatus) MarshalTo ¶
func (m *EventIBCTransferStatus) MarshalTo(dAtA []byte) (int, error)
func (*EventIBCTransferStatus) MarshalToSizedBuffer ¶
func (m *EventIBCTransferStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventIBCTransferStatus) ProtoMessage ¶
func (*EventIBCTransferStatus) ProtoMessage()
func (*EventIBCTransferStatus) Reset ¶
func (m *EventIBCTransferStatus) Reset()
func (*EventIBCTransferStatus) Size ¶
func (m *EventIBCTransferStatus) Size() (n int)
func (*EventIBCTransferStatus) String ¶
func (m *EventIBCTransferStatus) String() string
func (*EventIBCTransferStatus) Unmarshal ¶
func (m *EventIBCTransferStatus) Unmarshal(dAtA []byte) error
func (*EventIBCTransferStatus) XXX_DiscardUnknown ¶
func (m *EventIBCTransferStatus) XXX_DiscardUnknown()
func (*EventIBCTransferStatus) XXX_Marshal ¶
func (m *EventIBCTransferStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventIBCTransferStatus) XXX_Merge ¶
func (m *EventIBCTransferStatus) XXX_Merge(src proto.Message)
func (*EventIBCTransferStatus) XXX_Size ¶
func (m *EventIBCTransferStatus) XXX_Size() int
func (*EventIBCTransferStatus) XXX_Unmarshal ¶
func (m *EventIBCTransferStatus) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Outflows github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outflows,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outflows"` // outflow_sum defines the total outflow sum of ibc-transfer in USD. OutflowSum github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ // quota_expires defines quota expire time (as unix timestamp) for ibc-transfer denom. QuotaExpires time.Time `` /* 127-byte string literal not displayed */ // inflows tracks IBC inflow transfers (in USD) for each denom during quota period. Inflows github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,5,rep,name=inflows,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"inflows"` // inflow_sum defines tracks total sum of IBC inflow transfers (in USD) during quota period. InflowSum github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */ }
GenesisState defines the uibc module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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 valida`tion of the interchain accounts GenesisState
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 IBCTransferStatus ¶
type IBCTransferStatus int32
IBCTransferStatus status of ibc-transfer quota check for inflow and outflow
const ( // UNSPECIFIED defines a no-op status. IBCTransferStatus_IBC_TRANSFER_STATUS_UNSPECIFIED IBCTransferStatus = 0 // DISABLED: all inflow and outflow quota checks are disabled. IBCTransferStatus_IBC_TRANSFER_STATUS_QUOTA_DISABLED IBCTransferStatus = 1 // ENABLED: all inflow and outflow quota checks are enabled. IBCTransferStatus_IBC_TRANSFER_STATUS_QUOTA_ENABLED IBCTransferStatus = 2 // DISABLED OUT: outflow quota check is disabled, while the inflow quota check is enabled. IBCTransferStatus_IBC_TRANSFER_STATUS_QUOTA_OUT_DISABLED IBCTransferStatus = 3 // DISABLED IN: inflow quota check is disabled, while the outflow quota check is enabled. IBCTransferStatus_IBC_TRANSFER_STATUS_QUOTA_IN_DISABLED IBCTransferStatus = 4 // PAUSED: all IBC transfers are paused. IBCTransferStatus_IBC_TRANSFER_STATUS_TRANSFERS_PAUSED IBCTransferStatus = 5 )
func (IBCTransferStatus) EnumDescriptor ¶
func (IBCTransferStatus) EnumDescriptor() ([]byte, []int)
func (IBCTransferStatus) IBCTransferEnabled ¶
func (status IBCTransferStatus) IBCTransferEnabled() bool
IBCTransferEnabled returns true if the ibc-transfer is enabled for both inflow and outflow."
func (IBCTransferStatus) InflowQuotaEnabled ¶
func (status IBCTransferStatus) InflowQuotaEnabled() bool
InflowQuotaEnabled returns true if inflow quota check is enabled.
func (IBCTransferStatus) OutflowQuotaEnabled ¶
func (status IBCTransferStatus) OutflowQuotaEnabled() bool
OutflowQuotaEnabled returns true if outflow quota check is enabled.
func (IBCTransferStatus) String ¶
func (x IBCTransferStatus) String() string
type MsgClient ¶
type MsgClient interface { // GovUpdateQuota adds new quota for ibc denoms or // updates the quota for existed ibc denoms. GovUpdateQuota(ctx context.Context, in *MsgGovUpdateQuota, opts ...grpc.CallOption) (*MsgGovUpdateQuotaResponse, error) // GovSetIBCStatus sets IBC ICS20 status. Must be called by x/gov. GovSetIBCStatus(ctx context.Context, in *MsgGovSetIBCStatus, opts ...grpc.CallOption) (*MsgGovSetIBCStatusResponse, 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 MsgGovSetIBCStatus ¶
type MsgGovSetIBCStatus struct { // authority is the address of the governance account or the Emergency Group. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // description motivating the change. Should be used only when executing by the // Emergency Group. Otherwise the x/gov Proposal metadata should be used. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // ibc_status defines status for ibc transfers IbcStatus IBCTransferStatus `protobuf:"varint,4,opt,name=ibc_status,json=ibcStatus,proto3,enum=umee.uibc.v1.IBCTransferStatus" json:"ibc_status,omitempty"` }
MsgGovSetIBCStatus defines the request type for setting the IBC quota status.
func (*MsgGovSetIBCStatus) Descriptor ¶
func (*MsgGovSetIBCStatus) Descriptor() ([]byte, []int)
func (*MsgGovSetIBCStatus) GetSignBytes ¶
func (msg *MsgGovSetIBCStatus) GetSignBytes() []byte
func (*MsgGovSetIBCStatus) GetSigners ¶
func (msg *MsgGovSetIBCStatus) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgGovSetIBCStatus) Marshal ¶
func (m *MsgGovSetIBCStatus) Marshal() (dAtA []byte, err error)
func (*MsgGovSetIBCStatus) MarshalTo ¶
func (m *MsgGovSetIBCStatus) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovSetIBCStatus) MarshalToSizedBuffer ¶
func (m *MsgGovSetIBCStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovSetIBCStatus) ProtoMessage ¶
func (*MsgGovSetIBCStatus) ProtoMessage()
func (*MsgGovSetIBCStatus) Reset ¶
func (m *MsgGovSetIBCStatus) Reset()
func (MsgGovSetIBCStatus) Route ¶
func (msg MsgGovSetIBCStatus) Route() string
LegacyMsg.Type implementations
func (*MsgGovSetIBCStatus) Size ¶
func (m *MsgGovSetIBCStatus) Size() (n int)
func (*MsgGovSetIBCStatus) String ¶
func (msg *MsgGovSetIBCStatus) String() string
String implements the Stringer interface.
func (MsgGovSetIBCStatus) Type ¶
func (msg MsgGovSetIBCStatus) Type() string
func (*MsgGovSetIBCStatus) Unmarshal ¶
func (m *MsgGovSetIBCStatus) Unmarshal(dAtA []byte) error
func (*MsgGovSetIBCStatus) ValidateBasic ¶
func (msg *MsgGovSetIBCStatus) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgGovSetIBCStatus) XXX_DiscardUnknown ¶
func (m *MsgGovSetIBCStatus) XXX_DiscardUnknown()
func (*MsgGovSetIBCStatus) XXX_Marshal ¶
func (m *MsgGovSetIBCStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovSetIBCStatus) XXX_Merge ¶
func (m *MsgGovSetIBCStatus) XXX_Merge(src proto.Message)
func (*MsgGovSetIBCStatus) XXX_MessageName ¶
func (*MsgGovSetIBCStatus) XXX_MessageName() string
func (*MsgGovSetIBCStatus) XXX_Size ¶
func (m *MsgGovSetIBCStatus) XXX_Size() int
func (*MsgGovSetIBCStatus) XXX_Unmarshal ¶
func (m *MsgGovSetIBCStatus) XXX_Unmarshal(b []byte) error
type MsgGovSetIBCStatusResponse ¶
type MsgGovSetIBCStatusResponse struct { }
MsgGovSetIBCStatusResponse define the response type for Msg/MsgGovSetIBCStatus with x/gov proposals.
func (*MsgGovSetIBCStatusResponse) Descriptor ¶
func (*MsgGovSetIBCStatusResponse) Descriptor() ([]byte, []int)
func (*MsgGovSetIBCStatusResponse) Marshal ¶
func (m *MsgGovSetIBCStatusResponse) Marshal() (dAtA []byte, err error)
func (*MsgGovSetIBCStatusResponse) MarshalTo ¶
func (m *MsgGovSetIBCStatusResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovSetIBCStatusResponse) MarshalToSizedBuffer ¶
func (m *MsgGovSetIBCStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovSetIBCStatusResponse) ProtoMessage ¶
func (*MsgGovSetIBCStatusResponse) ProtoMessage()
func (*MsgGovSetIBCStatusResponse) Reset ¶
func (m *MsgGovSetIBCStatusResponse) Reset()
func (*MsgGovSetIBCStatusResponse) Size ¶
func (m *MsgGovSetIBCStatusResponse) Size() (n int)
func (*MsgGovSetIBCStatusResponse) String ¶
func (m *MsgGovSetIBCStatusResponse) String() string
func (*MsgGovSetIBCStatusResponse) Unmarshal ¶
func (m *MsgGovSetIBCStatusResponse) Unmarshal(dAtA []byte) error
func (*MsgGovSetIBCStatusResponse) XXX_DiscardUnknown ¶
func (m *MsgGovSetIBCStatusResponse) XXX_DiscardUnknown()
func (*MsgGovSetIBCStatusResponse) XXX_Marshal ¶
func (m *MsgGovSetIBCStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovSetIBCStatusResponse) XXX_Merge ¶
func (m *MsgGovSetIBCStatusResponse) XXX_Merge(src proto.Message)
func (*MsgGovSetIBCStatusResponse) XXX_MessageName ¶
func (*MsgGovSetIBCStatusResponse) XXX_MessageName() string
func (*MsgGovSetIBCStatusResponse) XXX_Size ¶
func (m *MsgGovSetIBCStatusResponse) XXX_Size() int
func (*MsgGovSetIBCStatusResponse) XXX_Unmarshal ¶
func (m *MsgGovSetIBCStatusResponse) XXX_Unmarshal(b []byte) error
type MsgGovUpdateQuota ¶
type MsgGovUpdateQuota struct { // authority is the address of the governance account or the Emergency Group. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // description motivating the change. Should be used only when executing by the // Emergency Group. Otherwise the x/gov Proposal metadata should be used. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // total quota defines the total outflow of ibc-transfer in USD Total github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=total,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"total"` // per_denom quota for outflows per denom. All denoms have the same quota size. PerDenom github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=per_denom,json=perDenom,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"per_denom"` // quota_duration defines quota expires per denom, All denoms have the same expire time. QuotaDuration time.Duration `` /* 134-byte string literal not displayed */ }
MsgGovUpdateQuota defines the Msg/GovUpdateQuota request type.
func (*MsgGovUpdateQuota) Descriptor ¶
func (*MsgGovUpdateQuota) Descriptor() ([]byte, []int)
func (*MsgGovUpdateQuota) GetSignBytes ¶
func (msg *MsgGovUpdateQuota) GetSignBytes() []byte
func (*MsgGovUpdateQuota) GetSigners ¶
func (msg *MsgGovUpdateQuota) GetSigners() []sdk.AccAddress
func (*MsgGovUpdateQuota) Marshal ¶
func (m *MsgGovUpdateQuota) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateQuota) MarshalTo ¶
func (m *MsgGovUpdateQuota) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateQuota) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateQuota) ProtoMessage ¶
func (*MsgGovUpdateQuota) ProtoMessage()
func (*MsgGovUpdateQuota) Reset ¶
func (m *MsgGovUpdateQuota) Reset()
func (MsgGovUpdateQuota) Route ¶
func (msg MsgGovUpdateQuota) Route() string
LegacyMsg.Type implementations
func (*MsgGovUpdateQuota) Size ¶
func (m *MsgGovUpdateQuota) Size() (n int)
func (*MsgGovUpdateQuota) String ¶
func (msg *MsgGovUpdateQuota) String() string
String implements the Stringer interface.
func (MsgGovUpdateQuota) Type ¶
func (msg MsgGovUpdateQuota) Type() string
func (*MsgGovUpdateQuota) Unmarshal ¶
func (m *MsgGovUpdateQuota) Unmarshal(dAtA []byte) error
func (*MsgGovUpdateQuota) ValidateBasic ¶
func (msg *MsgGovUpdateQuota) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgGovUpdateQuota) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateQuota) XXX_DiscardUnknown()
func (*MsgGovUpdateQuota) XXX_Marshal ¶
func (m *MsgGovUpdateQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateQuota) XXX_Merge ¶
func (m *MsgGovUpdateQuota) XXX_Merge(src proto.Message)
func (*MsgGovUpdateQuota) XXX_MessageName ¶
func (*MsgGovUpdateQuota) XXX_MessageName() string
func (*MsgGovUpdateQuota) XXX_Size ¶
func (m *MsgGovUpdateQuota) XXX_Size() int
func (*MsgGovUpdateQuota) XXX_Unmarshal ¶
func (m *MsgGovUpdateQuota) XXX_Unmarshal(b []byte) error
type MsgGovUpdateQuotaResponse ¶
type MsgGovUpdateQuotaResponse struct { }
MsgGovUpdateQuotaResponse defines response type for the Msg/GovUpdateQuota for with x/gov proposals.
func (*MsgGovUpdateQuotaResponse) Descriptor ¶
func (*MsgGovUpdateQuotaResponse) Descriptor() ([]byte, []int)
func (*MsgGovUpdateQuotaResponse) Marshal ¶
func (m *MsgGovUpdateQuotaResponse) Marshal() (dAtA []byte, err error)
func (*MsgGovUpdateQuotaResponse) MarshalTo ¶
func (m *MsgGovUpdateQuotaResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgGovUpdateQuotaResponse) MarshalToSizedBuffer ¶
func (m *MsgGovUpdateQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgGovUpdateQuotaResponse) ProtoMessage ¶
func (*MsgGovUpdateQuotaResponse) ProtoMessage()
func (*MsgGovUpdateQuotaResponse) Reset ¶
func (m *MsgGovUpdateQuotaResponse) Reset()
func (*MsgGovUpdateQuotaResponse) Size ¶
func (m *MsgGovUpdateQuotaResponse) Size() (n int)
func (*MsgGovUpdateQuotaResponse) String ¶
func (m *MsgGovUpdateQuotaResponse) String() string
func (*MsgGovUpdateQuotaResponse) Unmarshal ¶
func (m *MsgGovUpdateQuotaResponse) Unmarshal(dAtA []byte) error
func (*MsgGovUpdateQuotaResponse) XXX_DiscardUnknown ¶
func (m *MsgGovUpdateQuotaResponse) XXX_DiscardUnknown()
func (*MsgGovUpdateQuotaResponse) XXX_Marshal ¶
func (m *MsgGovUpdateQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgGovUpdateQuotaResponse) XXX_Merge ¶
func (m *MsgGovUpdateQuotaResponse) XXX_Merge(src proto.Message)
func (*MsgGovUpdateQuotaResponse) XXX_MessageName ¶
func (*MsgGovUpdateQuotaResponse) XXX_MessageName() string
func (*MsgGovUpdateQuotaResponse) XXX_Size ¶
func (m *MsgGovUpdateQuotaResponse) XXX_Size() int
func (*MsgGovUpdateQuotaResponse) XXX_Unmarshal ¶
func (m *MsgGovUpdateQuotaResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // GovUpdateQuota adds new quota for ibc denoms or // updates the quota for existed ibc denoms. GovUpdateQuota(context.Context, *MsgGovUpdateQuota) (*MsgGovUpdateQuotaResponse, error) // GovSetIBCStatus sets IBC ICS20 status. Must be called by x/gov. GovSetIBCStatus(context.Context, *MsgGovSetIBCStatus) (*MsgGovSetIBCStatusResponse, error) }
MsgServer is the server API for Msg service.
type Oracle ¶
Oracle interface for price feed. The uibc design doesn't depend on any particular price metric (spot price, avg ...), so it's up to the integration which price should be used.
type Params ¶
type Params struct { // ibc_status defines the IBC ICS20 status (transfer quota or transfers disabled). IbcStatus IBCTransferStatus `protobuf:"varint,1,opt,name=ibc_status,json=ibcStatus,proto3,enum=umee.uibc.v1.IBCTransferStatus" json:"ibc_status,omitempty"` // total_quota defines the total outflow limit of ibc-transfer in USD TotalQuota github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ // token_quota defines the outflow limit per token in USD TokenQuota github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ // quota_duration defines quota expires for each ibc-transfer denom in seconds QuotaDuration time.Duration `` /* 134-byte string literal not displayed */ // inflow_outflow_quota_base defines the inflow outflow quota base of ibc-transfer in USD InflowOutflowQuotaBase github_com_cosmos_cosmos_sdk_types.Dec `` /* 171-byte string literal not displayed */ // inflow_outflow_quota_rate defines the rate of total inflows InflowOutflowQuotaRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 171-byte string literal not displayed */ // inflow_outflow_token_quota_base defines the inflow outflow quota base for token InflowOutflowTokenQuotaBase github_com_cosmos_cosmos_sdk_types.Dec `` /* 188-byte string literal not displayed */ }
Params of x/uibc module
func (*Params) Descriptor ¶
func (*Params) GetIbcStatus ¶
func (m *Params) GetIbcStatus() IBCTransferStatus
func (*Params) GetQuotaDuration ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllOutflows ¶
type QueryAllOutflows struct { }
QueryOutflow defines request type for query the quota of denoms
func (*QueryAllOutflows) Descriptor ¶
func (*QueryAllOutflows) Descriptor() ([]byte, []int)
func (*QueryAllOutflows) Marshal ¶
func (m *QueryAllOutflows) Marshal() (dAtA []byte, err error)
func (*QueryAllOutflows) MarshalToSizedBuffer ¶
func (m *QueryAllOutflows) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOutflows) ProtoMessage ¶
func (*QueryAllOutflows) ProtoMessage()
func (*QueryAllOutflows) Reset ¶
func (m *QueryAllOutflows) Reset()
func (*QueryAllOutflows) Size ¶
func (m *QueryAllOutflows) Size() (n int)
func (*QueryAllOutflows) String ¶
func (m *QueryAllOutflows) String() string
func (*QueryAllOutflows) Unmarshal ¶
func (m *QueryAllOutflows) Unmarshal(dAtA []byte) error
func (*QueryAllOutflows) XXX_DiscardUnknown ¶
func (m *QueryAllOutflows) XXX_DiscardUnknown()
func (*QueryAllOutflows) XXX_Marshal ¶
func (m *QueryAllOutflows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOutflows) XXX_Merge ¶
func (m *QueryAllOutflows) XXX_Merge(src proto.Message)
func (*QueryAllOutflows) XXX_Size ¶
func (m *QueryAllOutflows) XXX_Size() int
func (*QueryAllOutflows) XXX_Unmarshal ¶
func (m *QueryAllOutflows) XXX_Unmarshal(b []byte) error
type QueryAllOutflowsResponse ¶
type QueryAllOutflowsResponse struct {
Outflows github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=outflows,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outflows"`
}
QueryOutflowResponse defines response type of Query/Outflow
func (*QueryAllOutflowsResponse) Descriptor ¶
func (*QueryAllOutflowsResponse) Descriptor() ([]byte, []int)
func (*QueryAllOutflowsResponse) Marshal ¶
func (m *QueryAllOutflowsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllOutflowsResponse) MarshalTo ¶
func (m *QueryAllOutflowsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllOutflowsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllOutflowsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOutflowsResponse) ProtoMessage ¶
func (*QueryAllOutflowsResponse) ProtoMessage()
func (*QueryAllOutflowsResponse) Reset ¶
func (m *QueryAllOutflowsResponse) Reset()
func (*QueryAllOutflowsResponse) Size ¶
func (m *QueryAllOutflowsResponse) Size() (n int)
func (*QueryAllOutflowsResponse) String ¶
func (m *QueryAllOutflowsResponse) String() string
func (*QueryAllOutflowsResponse) Unmarshal ¶
func (m *QueryAllOutflowsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllOutflowsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllOutflowsResponse) XXX_DiscardUnknown()
func (*QueryAllOutflowsResponse) XXX_Marshal ¶
func (m *QueryAllOutflowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOutflowsResponse) XXX_Merge ¶
func (m *QueryAllOutflowsResponse) XXX_Merge(src proto.Message)
func (*QueryAllOutflowsResponse) XXX_Size ¶
func (m *QueryAllOutflowsResponse) XXX_Size() int
func (*QueryAllOutflowsResponse) XXX_Unmarshal ¶
func (m *QueryAllOutflowsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the x/uibc module. Params(ctx context.Context, in *QueryParams, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Outflow returns IBC denom outflows in the current quota period. // If denom is not specified, returns sum of all registered outflows. Outflows(ctx context.Context, in *QueryOutflows, opts ...grpc.CallOption) (*QueryOutflowsResponse, error) // AllOutflow returns outflows for each denom in the current quota period. AllOutflows(ctx context.Context, in *QueryAllOutflows, opts ...grpc.CallOption) (*QueryAllOutflowsResponse, 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 QueryOutflows ¶
type QueryOutflows struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryOutflow defines request type for query the quota of denoms
func (*QueryOutflows) Descriptor ¶
func (*QueryOutflows) Descriptor() ([]byte, []int)
func (*QueryOutflows) Marshal ¶
func (m *QueryOutflows) Marshal() (dAtA []byte, err error)
func (*QueryOutflows) MarshalToSizedBuffer ¶
func (m *QueryOutflows) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOutflows) ProtoMessage ¶
func (*QueryOutflows) ProtoMessage()
func (*QueryOutflows) Reset ¶
func (m *QueryOutflows) Reset()
func (*QueryOutflows) Size ¶
func (m *QueryOutflows) Size() (n int)
func (*QueryOutflows) String ¶
func (m *QueryOutflows) String() string
func (*QueryOutflows) Unmarshal ¶
func (m *QueryOutflows) Unmarshal(dAtA []byte) error
func (*QueryOutflows) XXX_DiscardUnknown ¶
func (m *QueryOutflows) XXX_DiscardUnknown()
func (*QueryOutflows) XXX_Marshal ¶
func (m *QueryOutflows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOutflows) XXX_Merge ¶
func (m *QueryOutflows) XXX_Merge(src proto.Message)
func (*QueryOutflows) XXX_Size ¶
func (m *QueryOutflows) XXX_Size() int
func (*QueryOutflows) XXX_Unmarshal ¶
func (m *QueryOutflows) XXX_Unmarshal(b []byte) error
type QueryOutflowsResponse ¶
type QueryOutflowsResponse struct {
Amount github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"amount"`
}
QueryOutflowResponse defines response type of Query/Outflow
func (*QueryOutflowsResponse) Descriptor ¶
func (*QueryOutflowsResponse) Descriptor() ([]byte, []int)
func (*QueryOutflowsResponse) Marshal ¶
func (m *QueryOutflowsResponse) Marshal() (dAtA []byte, err error)
func (*QueryOutflowsResponse) MarshalTo ¶
func (m *QueryOutflowsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOutflowsResponse) MarshalToSizedBuffer ¶
func (m *QueryOutflowsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOutflowsResponse) ProtoMessage ¶
func (*QueryOutflowsResponse) ProtoMessage()
func (*QueryOutflowsResponse) Reset ¶
func (m *QueryOutflowsResponse) Reset()
func (*QueryOutflowsResponse) Size ¶
func (m *QueryOutflowsResponse) Size() (n int)
func (*QueryOutflowsResponse) String ¶
func (m *QueryOutflowsResponse) String() string
func (*QueryOutflowsResponse) Unmarshal ¶
func (m *QueryOutflowsResponse) Unmarshal(dAtA []byte) error
func (*QueryOutflowsResponse) XXX_DiscardUnknown ¶
func (m *QueryOutflowsResponse) XXX_DiscardUnknown()
func (*QueryOutflowsResponse) XXX_Marshal ¶
func (m *QueryOutflowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOutflowsResponse) XXX_Merge ¶
func (m *QueryOutflowsResponse) XXX_Merge(src proto.Message)
func (*QueryOutflowsResponse) XXX_Size ¶
func (m *QueryOutflowsResponse) XXX_Size() int
func (*QueryOutflowsResponse) XXX_Unmarshal ¶
func (m *QueryOutflowsResponse) XXX_Unmarshal(b []byte) error
type QueryParams ¶
type QueryParams struct { }
QueryParams defines the request structure for the Params gRPC service handler.
func (*QueryParams) Descriptor ¶
func (*QueryParams) Descriptor() ([]byte, []int)
func (*QueryParams) Marshal ¶
func (m *QueryParams) Marshal() (dAtA []byte, err error)
func (*QueryParams) MarshalToSizedBuffer ¶
func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParams) ProtoMessage ¶
func (*QueryParams) ProtoMessage()
func (*QueryParams) Reset ¶
func (m *QueryParams) Reset()
func (*QueryParams) Size ¶
func (m *QueryParams) Size() (n int)
func (*QueryParams) String ¶
func (m *QueryParams) String() string
func (*QueryParams) Unmarshal ¶
func (m *QueryParams) Unmarshal(dAtA []byte) error
func (*QueryParams) XXX_DiscardUnknown ¶
func (m *QueryParams) XXX_DiscardUnknown()
func (*QueryParams) XXX_Marshal ¶
func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParams) XXX_Merge ¶
func (m *QueryParams) XXX_Merge(src proto.Message)
func (*QueryParams) XXX_Size ¶
func (m *QueryParams) XXX_Size() int
func (*QueryParams) XXX_Unmarshal ¶
func (m *QueryParams) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response structure for the Params gRPC service handler.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the x/uibc module. Params(context.Context, *QueryParams) (*QueryParamsResponse, error) // Outflow returns IBC denom outflows in the current quota period. // If denom is not specified, returns sum of all registered outflows. Outflows(context.Context, *QueryOutflows) (*QueryOutflowsResponse, error) // AllOutflow returns outflows for each denom in the current quota period. AllOutflows(context.Context, *QueryAllOutflows) (*QueryAllOutflowsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) GovSetIBCStatus ¶
func (*UnimplementedMsgServer) GovSetIBCStatus(ctx context.Context, req *MsgGovSetIBCStatus) (*MsgGovSetIBCStatusResponse, error)
func (*UnimplementedMsgServer) GovUpdateQuota ¶
func (*UnimplementedMsgServer) GovUpdateQuota(ctx context.Context, req *MsgGovUpdateQuota) (*MsgGovUpdateQuotaResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllOutflows ¶
func (*UnimplementedQueryServer) AllOutflows(ctx context.Context, req *QueryAllOutflows) (*QueryAllOutflowsResponse, error)
func (*UnimplementedQueryServer) Outflows ¶
func (*UnimplementedQueryServer) Outflows(ctx context.Context, req *QueryOutflows) (*QueryOutflowsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)