Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCodec(_ *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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)
- func ValidateGenesis(data GenesisState) error
- type DataProxyConfig
- func (*DataProxyConfig) Descriptor() ([]byte, []int)
- func (m *DataProxyConfig) GetConfig() *ProxyConfig
- func (m *DataProxyConfig) GetDataProxyPubkey() []byte
- func (m *DataProxyConfig) Marshal() (dAtA []byte, err error)
- func (m *DataProxyConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *DataProxyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DataProxyConfig) ProtoMessage()
- func (m *DataProxyConfig) Reset()
- func (m *DataProxyConfig) Size() (n int)
- func (m *DataProxyConfig) String() string
- func (m *DataProxyConfig) Unmarshal(dAtA []byte) error
- func (m *DataProxyConfig) XXX_DiscardUnknown()
- func (m *DataProxyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataProxyConfig) XXX_Merge(src proto.Message)
- func (m *DataProxyConfig) XXX_Size() int
- func (m *DataProxyConfig) XXX_Unmarshal(b []byte) error
- type FeeUpdate
- func (*FeeUpdate) Descriptor() ([]byte, []int)
- func (m *FeeUpdate) GetNewFee() *types.Coin
- func (m *FeeUpdate) GetUpdateHeight() int64
- func (m *FeeUpdate) Marshal() (dAtA []byte, err error)
- func (m *FeeUpdate) MarshalTo(dAtA []byte) (int, error)
- func (m *FeeUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeeUpdate) ProtoMessage()
- func (m *FeeUpdate) Reset()
- func (m *FeeUpdate) Size() (n int)
- func (m *FeeUpdate) String() string
- func (m *FeeUpdate) Unmarshal(dAtA []byte) error
- func (m *FeeUpdate) XXX_DiscardUnknown()
- func (m *FeeUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeeUpdate) XXX_Merge(src proto.Message)
- func (m *FeeUpdate) XXX_Size() int
- func (m *FeeUpdate) XXX_Unmarshal(b []byte) error
- type FeeUpdateQueueRecord
- func (*FeeUpdateQueueRecord) Descriptor() ([]byte, []int)
- func (m *FeeUpdateQueueRecord) GetDataProxyPubkey() []byte
- func (m *FeeUpdateQueueRecord) GetUpdateHeight() int64
- func (m *FeeUpdateQueueRecord) Marshal() (dAtA []byte, err error)
- func (m *FeeUpdateQueueRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *FeeUpdateQueueRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeeUpdateQueueRecord) ProtoMessage()
- func (m *FeeUpdateQueueRecord) Reset()
- func (m *FeeUpdateQueueRecord) Size() (n int)
- func (m *FeeUpdateQueueRecord) String() string
- func (m *FeeUpdateQueueRecord) Unmarshal(dAtA []byte) error
- func (m *FeeUpdateQueueRecord) XXX_DiscardUnknown()
- func (m *FeeUpdateQueueRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeeUpdateQueueRecord) XXX_Merge(src proto.Message)
- func (m *FeeUpdateQueueRecord) XXX_Size() int
- func (m *FeeUpdateQueueRecord) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDataProxyConfigs() []DataProxyConfig
- func (m *GenesisState) GetFeeUpdateQueue() []FeeUpdateQueueRecord
- 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 (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 MsgClient
- type MsgEditDataProxy
- func (*MsgEditDataProxy) Descriptor() ([]byte, []int)
- func (m *MsgEditDataProxy) GetFeeUpdateDelay() uint32
- func (m *MsgEditDataProxy) GetNewFee() *types.Coin
- func (m *MsgEditDataProxy) GetNewMemo() string
- func (m *MsgEditDataProxy) GetNewPayoutAddress() string
- func (m *MsgEditDataProxy) GetPubKey() string
- func (m *MsgEditDataProxy) GetSender() string
- func (m *MsgEditDataProxy) Marshal() (dAtA []byte, err error)
- func (m *MsgEditDataProxy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditDataProxy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditDataProxy) ProtoMessage()
- func (m *MsgEditDataProxy) Reset()
- func (m *MsgEditDataProxy) Size() (n int)
- func (m *MsgEditDataProxy) String() string
- func (m *MsgEditDataProxy) Unmarshal(dAtA []byte) error
- func (m *MsgEditDataProxy) Validate() error
- func (m *MsgEditDataProxy) XXX_DiscardUnknown()
- func (m *MsgEditDataProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditDataProxy) XXX_Merge(src proto.Message)
- func (m *MsgEditDataProxy) XXX_Size() int
- func (m *MsgEditDataProxy) XXX_Unmarshal(b []byte) error
- type MsgEditDataProxyResponse
- func (*MsgEditDataProxyResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditDataProxyResponse) GetFeeUpdateHeight() int64
- func (m *MsgEditDataProxyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditDataProxyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditDataProxyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditDataProxyResponse) ProtoMessage()
- func (m *MsgEditDataProxyResponse) Reset()
- func (m *MsgEditDataProxyResponse) Size() (n int)
- func (m *MsgEditDataProxyResponse) String() string
- func (m *MsgEditDataProxyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditDataProxyResponse) XXX_DiscardUnknown()
- func (m *MsgEditDataProxyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditDataProxyResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditDataProxyResponse) XXX_Size() int
- func (m *MsgEditDataProxyResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterDataProxy
- func (*MsgRegisterDataProxy) Descriptor() ([]byte, []int)
- func (m *MsgRegisterDataProxy) GetAdminAddress() string
- func (m *MsgRegisterDataProxy) GetFee() *types.Coin
- func (m *MsgRegisterDataProxy) GetMemo() string
- func (m *MsgRegisterDataProxy) GetPayoutAddress() string
- func (m *MsgRegisterDataProxy) GetPubKey() string
- func (m *MsgRegisterDataProxy) GetSignature() string
- func (m *MsgRegisterDataProxy) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterDataProxy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterDataProxy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterDataProxy) ProtoMessage()
- func (m *MsgRegisterDataProxy) Reset()
- func (m *MsgRegisterDataProxy) Size() (n int)
- func (m *MsgRegisterDataProxy) String() string
- func (m *MsgRegisterDataProxy) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterDataProxy) Validate() error
- func (m *MsgRegisterDataProxy) XXX_DiscardUnknown()
- func (m *MsgRegisterDataProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterDataProxy) XXX_Merge(src proto.Message)
- func (m *MsgRegisterDataProxy) XXX_Size() int
- func (m *MsgRegisterDataProxy) XXX_Unmarshal(b []byte) error
- type MsgRegisterDataProxyResponse
- func (*MsgRegisterDataProxyResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterDataProxyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterDataProxyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterDataProxyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterDataProxyResponse) ProtoMessage()
- func (m *MsgRegisterDataProxyResponse) Reset()
- func (m *MsgRegisterDataProxyResponse) Size() (n int)
- func (m *MsgRegisterDataProxyResponse) String() string
- func (m *MsgRegisterDataProxyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterDataProxyResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterDataProxyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterDataProxyResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterDataProxyResponse) XXX_Size() int
- func (m *MsgRegisterDataProxyResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTransferAdmin
- func (*MsgTransferAdmin) Descriptor() ([]byte, []int)
- func (m *MsgTransferAdmin) GetNewAdminAddress() string
- func (m *MsgTransferAdmin) GetPubKey() string
- func (m *MsgTransferAdmin) GetSender() string
- func (m *MsgTransferAdmin) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferAdmin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferAdmin) ProtoMessage()
- func (m *MsgTransferAdmin) Reset()
- func (m *MsgTransferAdmin) Size() (n int)
- func (m *MsgTransferAdmin) String() string
- func (m *MsgTransferAdmin) Unmarshal(dAtA []byte) error
- func (m *MsgTransferAdmin) Validate() error
- func (m *MsgTransferAdmin) XXX_DiscardUnknown()
- func (m *MsgTransferAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferAdmin) XXX_Merge(src proto.Message)
- func (m *MsgTransferAdmin) XXX_Size() int
- func (m *MsgTransferAdmin) XXX_Unmarshal(b []byte) error
- type MsgTransferAdminResponse
- func (*MsgTransferAdminResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferAdminResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferAdminResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferAdminResponse) ProtoMessage()
- func (m *MsgTransferAdminResponse) Reset()
- func (m *MsgTransferAdminResponse) Size() (n int)
- func (m *MsgTransferAdminResponse) String() string
- func (m *MsgTransferAdminResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferAdminResponse) XXX_DiscardUnknown()
- func (m *MsgTransferAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferAdminResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferAdminResponse) XXX_Size() int
- func (m *MsgTransferAdminResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) Validate() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMinFeeUpdateDelay() uint32
- 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 ProxyConfig
- func (*ProxyConfig) Descriptor() ([]byte, []int)
- func (m *ProxyConfig) GetAdminAddress() string
- func (m *ProxyConfig) GetFee() *types.Coin
- func (m *ProxyConfig) GetFeeUpdate() *FeeUpdate
- func (m *ProxyConfig) GetMemo() string
- func (m *ProxyConfig) GetPayoutAddress() string
- func (m *ProxyConfig) Marshal() (dAtA []byte, err error)
- func (m *ProxyConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ProxyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProxyConfig) ProtoMessage()
- func (m *ProxyConfig) Reset()
- func (m *ProxyConfig) Size() (n int)
- func (m *ProxyConfig) String() string
- func (m *ProxyConfig) Unmarshal(dAtA []byte) error
- func (p *ProxyConfig) UpdateBasic(payoutAddress string, memo string) error
- func (p *ProxyConfig) Validate() error
- func (m *ProxyConfig) XXX_DiscardUnknown()
- func (m *ProxyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProxyConfig) XXX_Merge(src proto.Message)
- func (m *ProxyConfig) XXX_Size() int
- func (m *ProxyConfig) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDataProxyConfigRequest
- func (*QueryDataProxyConfigRequest) Descriptor() ([]byte, []int)
- func (m *QueryDataProxyConfigRequest) GetPubKey() string
- func (m *QueryDataProxyConfigRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDataProxyConfigRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDataProxyConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDataProxyConfigRequest) ProtoMessage()
- func (m *QueryDataProxyConfigRequest) Reset()
- func (m *QueryDataProxyConfigRequest) Size() (n int)
- func (m *QueryDataProxyConfigRequest) String() string
- func (m *QueryDataProxyConfigRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDataProxyConfigRequest) XXX_DiscardUnknown()
- func (m *QueryDataProxyConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDataProxyConfigRequest) XXX_Merge(src proto.Message)
- func (m *QueryDataProxyConfigRequest) XXX_Size() int
- func (m *QueryDataProxyConfigRequest) XXX_Unmarshal(b []byte) error
- type QueryDataProxyConfigResponse
- func (*QueryDataProxyConfigResponse) Descriptor() ([]byte, []int)
- func (m *QueryDataProxyConfigResponse) GetConfig() *ProxyConfig
- func (m *QueryDataProxyConfigResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDataProxyConfigResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDataProxyConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDataProxyConfigResponse) ProtoMessage()
- func (m *QueryDataProxyConfigResponse) Reset()
- func (m *QueryDataProxyConfigResponse) Size() (n int)
- func (m *QueryDataProxyConfigResponse) String() string
- func (m *QueryDataProxyConfigResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDataProxyConfigResponse) XXX_DiscardUnknown()
- func (m *QueryDataProxyConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDataProxyConfigResponse) XXX_Merge(src proto.Message)
- func (m *QueryDataProxyConfigResponse) XXX_Size() int
- func (m *QueryDataProxyConfigResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) EditDataProxy(ctx context.Context, req *MsgEditDataProxy) (*MsgEditDataProxyResponse, error)
- func (*UnimplementedMsgServer) RegisterDataProxy(ctx context.Context, req *MsgRegisterDataProxy) (*MsgRegisterDataProxyResponse, error)
- func (*UnimplementedMsgServer) TransferAdmin(ctx context.Context, req *MsgTransferAdmin) (*MsgTransferAdminResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeRegisterProxy = "register_data_proxy" EventTypeEditProxy = "edit_data_proxy" EventTypeFeeUpdate = "fee_update" EventTypeTransferAdmin = "transfer_admin" AttributePubKey = "pub_key" AttributePayoutAddress = "payout_address" AttributeFee = "fee" AttributeMemo = "memo" AttributeAdminAddress = "admin_address" AttributeNewFee = "new_fee" AttributeNewFeeHeight = "new_fee_height" )
const ( ModuleName = "data-proxy" StoreKey )
const ( DefaultMinFeeUpdateDelay uint32 = 86400 // Roughly 1 week with a ~7 sec block time LowestFeeUpdateDelay uint32 = 1 )
const ( MaxMemoLength = 3000 DoNotModifyField = "[do-not-modify]" UseMinimumDelay = 0 )
Variables ¶
var ( ErrInvalidLengthDataProxy = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDataProxy = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDataProxy = fmt.Errorf("proto: unexpected end of group") )
var ( ErrAlreadyExists = errors.Register(ModuleName, 2, "data proxy already exists") ErrInvalidSignature = errors.Register(ModuleName, 3, "invalid signature") ErrInvalidDelay = errors.Register(ModuleName, 4, "invalid update delay") ErrEmptyUpdate = errors.Register(ModuleName, 5, "nothing to update") )
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 ( DataProxyConfigPrefix = collections.NewPrefix(0) ParamsPrefix = collections.NewPrefix(1) FeeUpdatesPrefix = collections.NewPrefix(2) )
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 Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func RegisterCodec ¶
func RegisterCodec(_ *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type DataProxyConfig ¶
type DataProxyConfig struct { DataProxyPubkey []byte `protobuf:"bytes,1,opt,name=data_proxy_pubkey,json=dataProxyPubkey,proto3" json:"data_proxy_pubkey,omitempty"` Config *ProxyConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` }
DataProxyConfigs define the data proxy entries in the registry.
func (*DataProxyConfig) Descriptor ¶
func (*DataProxyConfig) Descriptor() ([]byte, []int)
func (*DataProxyConfig) GetConfig ¶
func (m *DataProxyConfig) GetConfig() *ProxyConfig
func (*DataProxyConfig) GetDataProxyPubkey ¶
func (m *DataProxyConfig) GetDataProxyPubkey() []byte
func (*DataProxyConfig) Marshal ¶
func (m *DataProxyConfig) Marshal() (dAtA []byte, err error)
func (*DataProxyConfig) MarshalToSizedBuffer ¶
func (m *DataProxyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DataProxyConfig) ProtoMessage ¶
func (*DataProxyConfig) ProtoMessage()
func (*DataProxyConfig) Reset ¶
func (m *DataProxyConfig) Reset()
func (*DataProxyConfig) Size ¶
func (m *DataProxyConfig) Size() (n int)
func (*DataProxyConfig) String ¶
func (m *DataProxyConfig) String() string
func (*DataProxyConfig) Unmarshal ¶
func (m *DataProxyConfig) Unmarshal(dAtA []byte) error
func (*DataProxyConfig) XXX_DiscardUnknown ¶
func (m *DataProxyConfig) XXX_DiscardUnknown()
func (*DataProxyConfig) XXX_Marshal ¶
func (m *DataProxyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DataProxyConfig) XXX_Merge ¶
func (m *DataProxyConfig) XXX_Merge(src proto.Message)
func (*DataProxyConfig) XXX_Size ¶
func (m *DataProxyConfig) XXX_Size() int
func (*DataProxyConfig) XXX_Unmarshal ¶
func (m *DataProxyConfig) XXX_Unmarshal(b []byte) error
type FeeUpdate ¶
type FeeUpdate struct { // new_fee defines the new fee for the data proxy. NewFee *types.Coin `protobuf:"bytes,1,opt,name=new_fee,json=newFee,proto3" json:"new_fee,omitempty"` // update_height defines the height after which the new fee comes into effect. UpdateHeight int64 `protobuf:"varint,2,opt,name=update_height,json=updateHeight,proto3" json:"update_height,omitempty"` }
FeeUpdate defines a new fee amount and the height at which it will take effect.
func (*FeeUpdate) Descriptor ¶
func (*FeeUpdate) GetUpdateHeight ¶
func (*FeeUpdate) MarshalToSizedBuffer ¶
func (*FeeUpdate) ProtoMessage ¶
func (*FeeUpdate) ProtoMessage()
func (*FeeUpdate) XXX_DiscardUnknown ¶
func (m *FeeUpdate) XXX_DiscardUnknown()
func (*FeeUpdate) XXX_Marshal ¶
func (*FeeUpdate) XXX_Unmarshal ¶
type FeeUpdateQueueRecord ¶
type FeeUpdateQueueRecord struct { DataProxyPubkey []byte `protobuf:"bytes,1,opt,name=data_proxy_pubkey,json=dataProxyPubkey,proto3" json:"data_proxy_pubkey,omitempty"` UpdateHeight int64 `protobuf:"varint,2,opt,name=update_height,json=updateHeight,proto3" json:"update_height,omitempty"` }
FeeUpdateQueueRecord defines an entry in the data proxy update queue.
func (*FeeUpdateQueueRecord) Descriptor ¶
func (*FeeUpdateQueueRecord) Descriptor() ([]byte, []int)
func (*FeeUpdateQueueRecord) GetDataProxyPubkey ¶
func (m *FeeUpdateQueueRecord) GetDataProxyPubkey() []byte
func (*FeeUpdateQueueRecord) GetUpdateHeight ¶
func (m *FeeUpdateQueueRecord) GetUpdateHeight() int64
func (*FeeUpdateQueueRecord) Marshal ¶
func (m *FeeUpdateQueueRecord) Marshal() (dAtA []byte, err error)
func (*FeeUpdateQueueRecord) MarshalTo ¶
func (m *FeeUpdateQueueRecord) MarshalTo(dAtA []byte) (int, error)
func (*FeeUpdateQueueRecord) MarshalToSizedBuffer ¶
func (m *FeeUpdateQueueRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FeeUpdateQueueRecord) ProtoMessage ¶
func (*FeeUpdateQueueRecord) ProtoMessage()
func (*FeeUpdateQueueRecord) Reset ¶
func (m *FeeUpdateQueueRecord) Reset()
func (*FeeUpdateQueueRecord) Size ¶
func (m *FeeUpdateQueueRecord) Size() (n int)
func (*FeeUpdateQueueRecord) String ¶
func (m *FeeUpdateQueueRecord) String() string
func (*FeeUpdateQueueRecord) Unmarshal ¶
func (m *FeeUpdateQueueRecord) Unmarshal(dAtA []byte) error
func (*FeeUpdateQueueRecord) XXX_DiscardUnknown ¶
func (m *FeeUpdateQueueRecord) XXX_DiscardUnknown()
func (*FeeUpdateQueueRecord) XXX_Marshal ¶
func (m *FeeUpdateQueueRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FeeUpdateQueueRecord) XXX_Merge ¶
func (m *FeeUpdateQueueRecord) XXX_Merge(src proto.Message)
func (*FeeUpdateQueueRecord) XXX_Size ¶
func (m *FeeUpdateQueueRecord) XXX_Size() int
func (*FeeUpdateQueueRecord) XXX_Unmarshal ¶
func (m *FeeUpdateQueueRecord) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` DataProxyConfigs []DataProxyConfig `protobuf:"bytes,2,rep,name=data_proxy_configs,json=dataProxyConfigs,proto3" json:"data_proxy_configs"` FeeUpdateQueue []FeeUpdateQueueRecord `protobuf:"bytes,3,rep,name=fee_update_queue,json=feeUpdateQueue,proto3" json:"fee_update_queue"` }
GenesisState defines data_proxy module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(params Params, proxyConfigs []DataProxyConfig, feeUpdates []FeeUpdateQueueRecord) GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDataProxyConfigs ¶
func (m *GenesisState) GetDataProxyConfigs() []DataProxyConfig
func (*GenesisState) GetFeeUpdateQueue ¶
func (m *GenesisState) GetFeeUpdateQueue() []FeeUpdateQueueRecord
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) 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 MsgClient ¶
type MsgClient interface { // Registers a new data proxy entry in the registry. RegisterDataProxy(ctx context.Context, in *MsgRegisterDataProxy, opts ...grpc.CallOption) (*MsgRegisterDataProxyResponse, error) // Edits an existing data proxy. EditDataProxy(ctx context.Context, in *MsgEditDataProxy, opts ...grpc.CallOption) (*MsgEditDataProxyResponse, error) // Transfers the admin address of a data proxy TransferAdmin(ctx context.Context, in *MsgTransferAdmin, opts ...grpc.CallOption) (*MsgTransferAdminResponse, error) // Used to update the modules parameters through governance. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgEditDataProxy ¶
type MsgEditDataProxy struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` NewPayoutAddress string `protobuf:"bytes,2,opt,name=new_payout_address,json=newPayoutAddress,proto3" json:"new_payout_address,omitempty"` NewMemo string `protobuf:"bytes,3,opt,name=new_memo,json=newMemo,proto3" json:"new_memo,omitempty"` NewFee *types.Coin `protobuf:"bytes,4,opt,name=new_fee,json=newFee,proto3" json:"new_fee,omitempty"` // 0 will default to the minimum delay configured in the params FeeUpdateDelay uint32 `protobuf:"varint,5,opt,name=fee_update_delay,json=feeUpdateDelay,proto3" json:"fee_update_delay,omitempty"` // hex encoded bytes as the expected flow is users sending updates from the // browser PubKey string `protobuf:"bytes,6,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` }
Allow updating memo and payout address instantly and/or scheduling a fee update.
func (*MsgEditDataProxy) Descriptor ¶
func (*MsgEditDataProxy) Descriptor() ([]byte, []int)
func (*MsgEditDataProxy) GetFeeUpdateDelay ¶
func (m *MsgEditDataProxy) GetFeeUpdateDelay() uint32
func (*MsgEditDataProxy) GetNewFee ¶
func (m *MsgEditDataProxy) GetNewFee() *types.Coin
func (*MsgEditDataProxy) GetNewMemo ¶
func (m *MsgEditDataProxy) GetNewMemo() string
func (*MsgEditDataProxy) GetNewPayoutAddress ¶
func (m *MsgEditDataProxy) GetNewPayoutAddress() string
func (*MsgEditDataProxy) GetPubKey ¶
func (m *MsgEditDataProxy) GetPubKey() string
func (*MsgEditDataProxy) GetSender ¶
func (m *MsgEditDataProxy) GetSender() string
func (*MsgEditDataProxy) Marshal ¶
func (m *MsgEditDataProxy) Marshal() (dAtA []byte, err error)
func (*MsgEditDataProxy) MarshalToSizedBuffer ¶
func (m *MsgEditDataProxy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditDataProxy) ProtoMessage ¶
func (*MsgEditDataProxy) ProtoMessage()
func (*MsgEditDataProxy) Reset ¶
func (m *MsgEditDataProxy) Reset()
func (*MsgEditDataProxy) Size ¶
func (m *MsgEditDataProxy) Size() (n int)
func (*MsgEditDataProxy) String ¶
func (m *MsgEditDataProxy) String() string
func (*MsgEditDataProxy) Unmarshal ¶
func (m *MsgEditDataProxy) Unmarshal(dAtA []byte) error
func (*MsgEditDataProxy) Validate ¶
func (m *MsgEditDataProxy) Validate() error
func (*MsgEditDataProxy) XXX_DiscardUnknown ¶
func (m *MsgEditDataProxy) XXX_DiscardUnknown()
func (*MsgEditDataProxy) XXX_Marshal ¶
func (m *MsgEditDataProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditDataProxy) XXX_Merge ¶
func (m *MsgEditDataProxy) XXX_Merge(src proto.Message)
func (*MsgEditDataProxy) XXX_Size ¶
func (m *MsgEditDataProxy) XXX_Size() int
func (*MsgEditDataProxy) XXX_Unmarshal ¶
func (m *MsgEditDataProxy) XXX_Unmarshal(b []byte) error
type MsgEditDataProxyResponse ¶
type MsgEditDataProxyResponse struct {
FeeUpdateHeight int64 `protobuf:"varint,1,opt,name=fee_update_height,json=feeUpdateHeight,proto3" json:"fee_update_height,omitempty"`
}
Returns the height after which the fee update will go into effect.
func (*MsgEditDataProxyResponse) Descriptor ¶
func (*MsgEditDataProxyResponse) Descriptor() ([]byte, []int)
func (*MsgEditDataProxyResponse) GetFeeUpdateHeight ¶
func (m *MsgEditDataProxyResponse) GetFeeUpdateHeight() int64
func (*MsgEditDataProxyResponse) Marshal ¶
func (m *MsgEditDataProxyResponse) Marshal() (dAtA []byte, err error)
func (*MsgEditDataProxyResponse) MarshalTo ¶
func (m *MsgEditDataProxyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditDataProxyResponse) MarshalToSizedBuffer ¶
func (m *MsgEditDataProxyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditDataProxyResponse) ProtoMessage ¶
func (*MsgEditDataProxyResponse) ProtoMessage()
func (*MsgEditDataProxyResponse) Reset ¶
func (m *MsgEditDataProxyResponse) Reset()
func (*MsgEditDataProxyResponse) Size ¶
func (m *MsgEditDataProxyResponse) Size() (n int)
func (*MsgEditDataProxyResponse) String ¶
func (m *MsgEditDataProxyResponse) String() string
func (*MsgEditDataProxyResponse) Unmarshal ¶
func (m *MsgEditDataProxyResponse) Unmarshal(dAtA []byte) error
func (*MsgEditDataProxyResponse) XXX_DiscardUnknown ¶
func (m *MsgEditDataProxyResponse) XXX_DiscardUnknown()
func (*MsgEditDataProxyResponse) XXX_Marshal ¶
func (m *MsgEditDataProxyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditDataProxyResponse) XXX_Merge ¶
func (m *MsgEditDataProxyResponse) XXX_Merge(src proto.Message)
func (*MsgEditDataProxyResponse) XXX_Size ¶
func (m *MsgEditDataProxyResponse) XXX_Size() int
func (*MsgEditDataProxyResponse) XXX_Unmarshal ¶
func (m *MsgEditDataProxyResponse) XXX_Unmarshal(b []byte) error
type MsgRegisterDataProxy ¶
type MsgRegisterDataProxy struct { // admin_address is the address that can update the proxy config. AdminAddress string `protobuf:"bytes,1,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"` // payout_address defines the address to which the data proxy fees should be // transferred. PayoutAddress string `protobuf:"bytes,2,opt,name=payout_address,json=payoutAddress,proto3" json:"payout_address,omitempty"` // fee defines the amount in aseda this data-proxy charges when utilised. Fee *types.Coin `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"` // memo defines an optional string which is not used by the protocol. Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"` // hex encoded bytes as the expected flow already uses hex encoded bytes to go // from the CLI to the browser where the transaction is signed. PubKey string `protobuf:"bytes,5,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` // hex encoded bytes as the expected flow already uses hex encoded bytes to go // from the CLI to the browser where the transaction is signed. Signature string `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"` }
All data required for a new data proxy.
func (*MsgRegisterDataProxy) Descriptor ¶
func (*MsgRegisterDataProxy) Descriptor() ([]byte, []int)
func (*MsgRegisterDataProxy) GetAdminAddress ¶
func (m *MsgRegisterDataProxy) GetAdminAddress() string
func (*MsgRegisterDataProxy) GetFee ¶
func (m *MsgRegisterDataProxy) GetFee() *types.Coin
func (*MsgRegisterDataProxy) GetMemo ¶
func (m *MsgRegisterDataProxy) GetMemo() string
func (*MsgRegisterDataProxy) GetPayoutAddress ¶
func (m *MsgRegisterDataProxy) GetPayoutAddress() string
func (*MsgRegisterDataProxy) GetPubKey ¶
func (m *MsgRegisterDataProxy) GetPubKey() string
func (*MsgRegisterDataProxy) GetSignature ¶
func (m *MsgRegisterDataProxy) GetSignature() string
func (*MsgRegisterDataProxy) Marshal ¶
func (m *MsgRegisterDataProxy) Marshal() (dAtA []byte, err error)
func (*MsgRegisterDataProxy) MarshalTo ¶
func (m *MsgRegisterDataProxy) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterDataProxy) MarshalToSizedBuffer ¶
func (m *MsgRegisterDataProxy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterDataProxy) ProtoMessage ¶
func (*MsgRegisterDataProxy) ProtoMessage()
func (*MsgRegisterDataProxy) Reset ¶
func (m *MsgRegisterDataProxy) Reset()
func (*MsgRegisterDataProxy) Size ¶
func (m *MsgRegisterDataProxy) Size() (n int)
func (*MsgRegisterDataProxy) String ¶
func (m *MsgRegisterDataProxy) String() string
func (*MsgRegisterDataProxy) Unmarshal ¶
func (m *MsgRegisterDataProxy) Unmarshal(dAtA []byte) error
func (*MsgRegisterDataProxy) Validate ¶
func (m *MsgRegisterDataProxy) Validate() error
func (*MsgRegisterDataProxy) XXX_DiscardUnknown ¶
func (m *MsgRegisterDataProxy) XXX_DiscardUnknown()
func (*MsgRegisterDataProxy) XXX_Marshal ¶
func (m *MsgRegisterDataProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterDataProxy) XXX_Merge ¶
func (m *MsgRegisterDataProxy) XXX_Merge(src proto.Message)
func (*MsgRegisterDataProxy) XXX_Size ¶
func (m *MsgRegisterDataProxy) XXX_Size() int
func (*MsgRegisterDataProxy) XXX_Unmarshal ¶
func (m *MsgRegisterDataProxy) XXX_Unmarshal(b []byte) error
type MsgRegisterDataProxyResponse ¶
type MsgRegisterDataProxyResponse struct { }
No response required.
func (*MsgRegisterDataProxyResponse) Descriptor ¶
func (*MsgRegisterDataProxyResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterDataProxyResponse) Marshal ¶
func (m *MsgRegisterDataProxyResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterDataProxyResponse) MarshalTo ¶
func (m *MsgRegisterDataProxyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterDataProxyResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterDataProxyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterDataProxyResponse) ProtoMessage ¶
func (*MsgRegisterDataProxyResponse) ProtoMessage()
func (*MsgRegisterDataProxyResponse) Reset ¶
func (m *MsgRegisterDataProxyResponse) Reset()
func (*MsgRegisterDataProxyResponse) Size ¶
func (m *MsgRegisterDataProxyResponse) Size() (n int)
func (*MsgRegisterDataProxyResponse) String ¶
func (m *MsgRegisterDataProxyResponse) String() string
func (*MsgRegisterDataProxyResponse) Unmarshal ¶
func (m *MsgRegisterDataProxyResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterDataProxyResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterDataProxyResponse) XXX_DiscardUnknown()
func (*MsgRegisterDataProxyResponse) XXX_Marshal ¶
func (m *MsgRegisterDataProxyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterDataProxyResponse) XXX_Merge ¶
func (m *MsgRegisterDataProxyResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterDataProxyResponse) XXX_Size ¶
func (m *MsgRegisterDataProxyResponse) XXX_Size() int
func (*MsgRegisterDataProxyResponse) XXX_Unmarshal ¶
func (m *MsgRegisterDataProxyResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Registers a new data proxy entry in the registry. RegisterDataProxy(context.Context, *MsgRegisterDataProxy) (*MsgRegisterDataProxyResponse, error) // Edits an existing data proxy. EditDataProxy(context.Context, *MsgEditDataProxy) (*MsgEditDataProxyResponse, error) // Transfers the admin address of a data proxy TransferAdmin(context.Context, *MsgTransferAdmin) (*MsgTransferAdminResponse, error) // Used to update the modules parameters through governance. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgTransferAdmin ¶
type MsgTransferAdmin struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` NewAdminAddress string `protobuf:"bytes,2,opt,name=new_admin_address,json=newAdminAddress,proto3" json:"new_admin_address,omitempty"` // hex encoded bytes as the expected flow is users sending updates from the // browser PubKey string `protobuf:"bytes,3,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` }
Allow transferring the admin role to a different address.
func (*MsgTransferAdmin) Descriptor ¶
func (*MsgTransferAdmin) Descriptor() ([]byte, []int)
func (*MsgTransferAdmin) GetNewAdminAddress ¶
func (m *MsgTransferAdmin) GetNewAdminAddress() string
func (*MsgTransferAdmin) GetPubKey ¶
func (m *MsgTransferAdmin) GetPubKey() string
func (*MsgTransferAdmin) GetSender ¶
func (m *MsgTransferAdmin) GetSender() string
func (*MsgTransferAdmin) Marshal ¶
func (m *MsgTransferAdmin) Marshal() (dAtA []byte, err error)
func (*MsgTransferAdmin) MarshalToSizedBuffer ¶
func (m *MsgTransferAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferAdmin) ProtoMessage ¶
func (*MsgTransferAdmin) ProtoMessage()
func (*MsgTransferAdmin) Reset ¶
func (m *MsgTransferAdmin) Reset()
func (*MsgTransferAdmin) Size ¶
func (m *MsgTransferAdmin) Size() (n int)
func (*MsgTransferAdmin) String ¶
func (m *MsgTransferAdmin) String() string
func (*MsgTransferAdmin) Unmarshal ¶
func (m *MsgTransferAdmin) Unmarshal(dAtA []byte) error
func (*MsgTransferAdmin) Validate ¶
func (m *MsgTransferAdmin) Validate() error
func (*MsgTransferAdmin) XXX_DiscardUnknown ¶
func (m *MsgTransferAdmin) XXX_DiscardUnknown()
func (*MsgTransferAdmin) XXX_Marshal ¶
func (m *MsgTransferAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferAdmin) XXX_Merge ¶
func (m *MsgTransferAdmin) XXX_Merge(src proto.Message)
func (*MsgTransferAdmin) XXX_Size ¶
func (m *MsgTransferAdmin) XXX_Size() int
func (*MsgTransferAdmin) XXX_Unmarshal ¶
func (m *MsgTransferAdmin) XXX_Unmarshal(b []byte) error
type MsgTransferAdminResponse ¶
type MsgTransferAdminResponse struct { }
No response required.
func (*MsgTransferAdminResponse) Descriptor ¶
func (*MsgTransferAdminResponse) Descriptor() ([]byte, []int)
func (*MsgTransferAdminResponse) Marshal ¶
func (m *MsgTransferAdminResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferAdminResponse) MarshalTo ¶
func (m *MsgTransferAdminResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferAdminResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferAdminResponse) ProtoMessage ¶
func (*MsgTransferAdminResponse) ProtoMessage()
func (*MsgTransferAdminResponse) Reset ¶
func (m *MsgTransferAdminResponse) Reset()
func (*MsgTransferAdminResponse) Size ¶
func (m *MsgTransferAdminResponse) Size() (n int)
func (*MsgTransferAdminResponse) String ¶
func (m *MsgTransferAdminResponse) String() string
func (*MsgTransferAdminResponse) Unmarshal ¶
func (m *MsgTransferAdminResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferAdminResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferAdminResponse) XXX_DiscardUnknown()
func (*MsgTransferAdminResponse) XXX_Marshal ¶
func (m *MsgTransferAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferAdminResponse) XXX_Merge ¶
func (m *MsgTransferAdminResponse) XXX_Merge(src proto.Message)
func (*MsgTransferAdminResponse) XXX_Size ¶
func (m *MsgTransferAdminResponse) XXX_Size() int
func (*MsgTransferAdminResponse) XXX_Unmarshal ¶
func (m *MsgTransferAdminResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams 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"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
The request message for the UpdateParams method.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) Validate ¶
func (m *MsgUpdateParams) Validate() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
No response required.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // min_fee_update_delay is the minimum number of blocks after which a fee // update comes into effect. MinFeeUpdateDelay uint32 `protobuf:"varint,1,opt,name=min_fee_update_delay,json=minFeeUpdateDelay,proto3" json:"min_fee_update_delay,omitempty"` }
Module parameters which can be changed through governance.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default data-proxy module parameters.
func (*Params) Descriptor ¶
func (*Params) GetMinFeeUpdateDelay ¶
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 ProxyConfig ¶
type ProxyConfig struct { // payout_address defines the address to which the data proxy fees should be // transferred. PayoutAddress string `protobuf:"bytes,1,opt,name=payout_address,json=payoutAddress,proto3" json:"payout_address,omitempty"` // fee defines the amount in aseda this data-proxy charges when utilised. Fee *types.Coin `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"` // memo defines an optional string which is not used by the protocol. Memo string `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"` // only the admin address of a data proxy can submit config updates. AdminAddress string `protobuf:"bytes,4,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"` // fee_update defines an upcoming fee change which will take effect at a // future height. FeeUpdate *FeeUpdate `protobuf:"bytes,5,opt,name=fee_update,json=feeUpdate,proto3" json:"fee_update,omitempty"` }
ProxyConfig defines a data-proxy entry in the registry.
func (*ProxyConfig) Descriptor ¶
func (*ProxyConfig) Descriptor() ([]byte, []int)
func (*ProxyConfig) GetAdminAddress ¶
func (m *ProxyConfig) GetAdminAddress() string
func (*ProxyConfig) GetFee ¶
func (m *ProxyConfig) GetFee() *types.Coin
func (*ProxyConfig) GetFeeUpdate ¶
func (m *ProxyConfig) GetFeeUpdate() *FeeUpdate
func (*ProxyConfig) GetMemo ¶
func (m *ProxyConfig) GetMemo() string
func (*ProxyConfig) GetPayoutAddress ¶
func (m *ProxyConfig) GetPayoutAddress() string
func (*ProxyConfig) Marshal ¶
func (m *ProxyConfig) Marshal() (dAtA []byte, err error)
func (*ProxyConfig) MarshalToSizedBuffer ¶
func (m *ProxyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProxyConfig) ProtoMessage ¶
func (*ProxyConfig) ProtoMessage()
func (*ProxyConfig) Reset ¶
func (m *ProxyConfig) Reset()
func (*ProxyConfig) Size ¶
func (m *ProxyConfig) Size() (n int)
func (*ProxyConfig) String ¶
func (m *ProxyConfig) String() string
func (*ProxyConfig) Unmarshal ¶
func (m *ProxyConfig) Unmarshal(dAtA []byte) error
func (*ProxyConfig) UpdateBasic ¶
func (p *ProxyConfig) UpdateBasic(payoutAddress string, memo string) error
func (*ProxyConfig) Validate ¶
func (p *ProxyConfig) Validate() error
func (*ProxyConfig) XXX_DiscardUnknown ¶
func (m *ProxyConfig) XXX_DiscardUnknown()
func (*ProxyConfig) XXX_Marshal ¶
func (m *ProxyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProxyConfig) XXX_Merge ¶
func (m *ProxyConfig) XXX_Merge(src proto.Message)
func (*ProxyConfig) XXX_Size ¶
func (m *ProxyConfig) XXX_Size() int
func (*ProxyConfig) XXX_Unmarshal ¶
func (m *ProxyConfig) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // DataProxyConfig returns a data proxy config when given its public key as a // hex encoded string. DataProxyConfig(ctx context.Context, in *QueryDataProxyConfigRequest, opts ...grpc.CallOption) (*QueryDataProxyConfigResponse, 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 QueryDataProxyConfigRequest ¶
type QueryDataProxyConfigRequest struct { // A hex encoded string of the public key of the data proxy. PubKey string `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` }
The request message for QueryDataProxyConfig RPC method.
func (*QueryDataProxyConfigRequest) Descriptor ¶
func (*QueryDataProxyConfigRequest) Descriptor() ([]byte, []int)
func (*QueryDataProxyConfigRequest) GetPubKey ¶
func (m *QueryDataProxyConfigRequest) GetPubKey() string
func (*QueryDataProxyConfigRequest) Marshal ¶
func (m *QueryDataProxyConfigRequest) Marshal() (dAtA []byte, err error)
func (*QueryDataProxyConfigRequest) MarshalTo ¶
func (m *QueryDataProxyConfigRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDataProxyConfigRequest) MarshalToSizedBuffer ¶
func (m *QueryDataProxyConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDataProxyConfigRequest) ProtoMessage ¶
func (*QueryDataProxyConfigRequest) ProtoMessage()
func (*QueryDataProxyConfigRequest) Reset ¶
func (m *QueryDataProxyConfigRequest) Reset()
func (*QueryDataProxyConfigRequest) Size ¶
func (m *QueryDataProxyConfigRequest) Size() (n int)
func (*QueryDataProxyConfigRequest) String ¶
func (m *QueryDataProxyConfigRequest) String() string
func (*QueryDataProxyConfigRequest) Unmarshal ¶
func (m *QueryDataProxyConfigRequest) Unmarshal(dAtA []byte) error
func (*QueryDataProxyConfigRequest) XXX_DiscardUnknown ¶
func (m *QueryDataProxyConfigRequest) XXX_DiscardUnknown()
func (*QueryDataProxyConfigRequest) XXX_Marshal ¶
func (m *QueryDataProxyConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDataProxyConfigRequest) XXX_Merge ¶
func (m *QueryDataProxyConfigRequest) XXX_Merge(src proto.Message)
func (*QueryDataProxyConfigRequest) XXX_Size ¶
func (m *QueryDataProxyConfigRequest) XXX_Size() int
func (*QueryDataProxyConfigRequest) XXX_Unmarshal ¶
func (m *QueryDataProxyConfigRequest) XXX_Unmarshal(b []byte) error
type QueryDataProxyConfigResponse ¶
type QueryDataProxyConfigResponse struct {
Config *ProxyConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
}
The response message for QueryDataProxyConfig RPC method.
func (*QueryDataProxyConfigResponse) Descriptor ¶
func (*QueryDataProxyConfigResponse) Descriptor() ([]byte, []int)
func (*QueryDataProxyConfigResponse) GetConfig ¶
func (m *QueryDataProxyConfigResponse) GetConfig() *ProxyConfig
func (*QueryDataProxyConfigResponse) Marshal ¶
func (m *QueryDataProxyConfigResponse) Marshal() (dAtA []byte, err error)
func (*QueryDataProxyConfigResponse) MarshalTo ¶
func (m *QueryDataProxyConfigResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDataProxyConfigResponse) MarshalToSizedBuffer ¶
func (m *QueryDataProxyConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDataProxyConfigResponse) ProtoMessage ¶
func (*QueryDataProxyConfigResponse) ProtoMessage()
func (*QueryDataProxyConfigResponse) Reset ¶
func (m *QueryDataProxyConfigResponse) Reset()
func (*QueryDataProxyConfigResponse) Size ¶
func (m *QueryDataProxyConfigResponse) Size() (n int)
func (*QueryDataProxyConfigResponse) String ¶
func (m *QueryDataProxyConfigResponse) String() string
func (*QueryDataProxyConfigResponse) Unmarshal ¶
func (m *QueryDataProxyConfigResponse) Unmarshal(dAtA []byte) error
func (*QueryDataProxyConfigResponse) XXX_DiscardUnknown ¶
func (m *QueryDataProxyConfigResponse) XXX_DiscardUnknown()
func (*QueryDataProxyConfigResponse) XXX_Marshal ¶
func (m *QueryDataProxyConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDataProxyConfigResponse) XXX_Merge ¶
func (m *QueryDataProxyConfigResponse) XXX_Merge(src proto.Message)
func (*QueryDataProxyConfigResponse) XXX_Size ¶
func (m *QueryDataProxyConfigResponse) XXX_Size() int
func (*QueryDataProxyConfigResponse) XXX_Unmarshal ¶
func (m *QueryDataProxyConfigResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // DataProxyConfig returns a data proxy config when given its public key as a // hex encoded string. DataProxyConfig(context.Context, *QueryDataProxyConfigRequest) (*QueryDataProxyConfigResponse, 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) EditDataProxy ¶
func (*UnimplementedMsgServer) EditDataProxy(ctx context.Context, req *MsgEditDataProxy) (*MsgEditDataProxyResponse, error)
func (*UnimplementedMsgServer) RegisterDataProxy ¶
func (*UnimplementedMsgServer) RegisterDataProxy(ctx context.Context, req *MsgRegisterDataProxy) (*MsgRegisterDataProxyResponse, error)
func (*UnimplementedMsgServer) TransferAdmin ¶
func (*UnimplementedMsgServer) TransferAdmin(ctx context.Context, req *MsgTransferAdmin) (*MsgTransferAdminResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) DataProxyConfig ¶
func (*UnimplementedQueryServer) DataProxyConfig(ctx context.Context, req *QueryDataProxyConfigRequest) (*QueryDataProxyConfigResponse, error)