Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type AccountQueryRequest
- func (*AccountQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccountQueryRequest) GetRequest() []byte
- func (x *AccountQueryRequest) GetTarget() string
- func (*AccountQueryRequest) ProtoMessage()
- func (x *AccountQueryRequest) ProtoReflect() protoreflect.Message
- func (x *AccountQueryRequest) Reset()
- func (x *AccountQueryRequest) String() string
- type AccountQueryResponse
- func (*AccountQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AccountQueryResponse) GetResponse() []byte
- func (*AccountQueryResponse) ProtoMessage()
- func (x *AccountQueryResponse) ProtoReflect() protoreflect.Message
- func (x *AccountQueryResponse) Reset()
- func (x *AccountQueryResponse) String() string
- type GenesisAccount
- func (*GenesisAccount) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisAccount) GetAccountType() string
- func (x *GenesisAccount) GetAddress() string
- func (x *GenesisAccount) GetState() []*KVPair
- func (*GenesisAccount) ProtoMessage()
- func (x *GenesisAccount) ProtoReflect() protoreflect.Message
- func (x *GenesisAccount) Reset()
- func (x *GenesisAccount) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetAccountNumber() uint64
- func (x *GenesisState) GetAccounts() []*GenesisAccount
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type KVPair
- type MsgClient
- type MsgExecute
- func (*MsgExecute) Descriptor() ([]byte, []int)deprecated
- func (x *MsgExecute) GetMessage() []byte
- func (x *MsgExecute) GetSender() string
- func (x *MsgExecute) GetTarget() string
- func (*MsgExecute) ProtoMessage()
- func (x *MsgExecute) ProtoReflect() protoreflect.Message
- func (x *MsgExecute) Reset()
- func (x *MsgExecute) String() string
- type MsgExecuteResponse
- func (*MsgExecuteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgExecuteResponse) GetResponse() []byte
- func (*MsgExecuteResponse) ProtoMessage()
- func (x *MsgExecuteResponse) ProtoReflect() protoreflect.Message
- func (x *MsgExecuteResponse) Reset()
- func (x *MsgExecuteResponse) String() string
- type MsgInit
- func (*MsgInit) Descriptor() ([]byte, []int)deprecated
- func (x *MsgInit) GetAccountType() string
- func (x *MsgInit) GetMessage() []byte
- func (x *MsgInit) GetSender() string
- func (*MsgInit) ProtoMessage()
- func (x *MsgInit) ProtoReflect() protoreflect.Message
- func (x *MsgInit) Reset()
- func (x *MsgInit) String() string
- type MsgInitResponse
- func (*MsgInitResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgInitResponse) GetAccountAddress() string
- func (x *MsgInitResponse) GetResponse() []byte
- func (*MsgInitResponse) ProtoMessage()
- func (x *MsgInitResponse) ProtoReflect() protoreflect.Message
- func (x *MsgInitResponse) Reset()
- func (x *MsgInitResponse) String() string
- type MsgServer
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Msg_Init_FullMethodName = "/cosmos.accounts.v1.Msg/Init" Msg_Execute_FullMethodName = "/cosmos.accounts.v1.Msg/Execute" )
const (
Query_AccountQuery_FullMethodName = "/cosmos.accounts.v1.Query/AccountQuery"
)
Variables ¶
var File_cosmos_accounts_v1_accounts_proto protoreflect.FileDescriptor
var File_cosmos_accounts_v1_genesis_proto protoreflect.FileDescriptor
var File_cosmos_accounts_v1_query_proto protoreflect.FileDescriptor
var File_cosmos_accounts_v1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.accounts.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Init", Handler: _Msg_Init_Handler, }, { MethodName: "Execute", Handler: _Msg_Execute_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/accounts/v1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.accounts.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AccountQuery", Handler: _Query_AccountQuery_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cosmos/accounts/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type AccountQueryRequest ¶
type AccountQueryRequest struct { // target defines the account to be queried. Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // request defines the query message being sent to the account. Request []byte `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
AccountQueryRequest is the request type for the Query/AccountQuery RPC
func (*AccountQueryRequest) Descriptor
deprecated
func (*AccountQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccountQueryRequest.ProtoReflect.Descriptor instead.
func (*AccountQueryRequest) GetRequest ¶
func (x *AccountQueryRequest) GetRequest() []byte
func (*AccountQueryRequest) GetTarget ¶
func (x *AccountQueryRequest) GetTarget() string
func (*AccountQueryRequest) ProtoMessage ¶
func (*AccountQueryRequest) ProtoMessage()
func (*AccountQueryRequest) ProtoReflect ¶
func (x *AccountQueryRequest) ProtoReflect() protoreflect.Message
func (*AccountQueryRequest) Reset ¶
func (x *AccountQueryRequest) Reset()
func (*AccountQueryRequest) String ¶
func (x *AccountQueryRequest) String() string
type AccountQueryResponse ¶
type AccountQueryResponse struct { // response defines the query response of the account. Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
AccountQueryResponse is the response type for the Query/AccountQuery RPC method.
func (*AccountQueryResponse) Descriptor
deprecated
func (*AccountQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use AccountQueryResponse.ProtoReflect.Descriptor instead.
func (*AccountQueryResponse) GetResponse ¶
func (x *AccountQueryResponse) GetResponse() []byte
func (*AccountQueryResponse) ProtoMessage ¶
func (*AccountQueryResponse) ProtoMessage()
func (*AccountQueryResponse) ProtoReflect ¶
func (x *AccountQueryResponse) ProtoReflect() protoreflect.Message
func (*AccountQueryResponse) Reset ¶
func (x *AccountQueryResponse) Reset()
func (*AccountQueryResponse) String ¶
func (x *AccountQueryResponse) String() string
type GenesisAccount ¶ added in v0.7.2
type GenesisAccount struct { // address is the address of the account. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // account_type is the account type of the account. AccountType string `protobuf:"bytes,2,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"` // state is the account state represented as a slice of raw key value byte pairs. State []*KVPair `protobuf:"bytes,3,rep,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
GenesisAccount defines an account to be initialized in the genesis state.
func (*GenesisAccount) Descriptor
deprecated
added in
v0.7.2
func (*GenesisAccount) Descriptor() ([]byte, []int)
Deprecated: Use GenesisAccount.ProtoReflect.Descriptor instead.
func (*GenesisAccount) GetAccountType ¶ added in v0.7.2
func (x *GenesisAccount) GetAccountType() string
func (*GenesisAccount) GetAddress ¶ added in v0.7.2
func (x *GenesisAccount) GetAddress() string
func (*GenesisAccount) GetState ¶ added in v0.7.2
func (x *GenesisAccount) GetState() []*KVPair
func (*GenesisAccount) ProtoMessage ¶ added in v0.7.2
func (*GenesisAccount) ProtoMessage()
func (*GenesisAccount) ProtoReflect ¶ added in v0.7.2
func (x *GenesisAccount) ProtoReflect() protoreflect.Message
func (*GenesisAccount) Reset ¶ added in v0.7.2
func (x *GenesisAccount) Reset()
func (*GenesisAccount) String ¶ added in v0.7.2
func (x *GenesisAccount) String() string
type GenesisState ¶ added in v0.7.2
type GenesisState struct { // account_number is the latest account number. AccountNumber uint64 `protobuf:"varint,1,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"` // accounts are the genesis accounts. Accounts []*GenesisAccount `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
GenesisState defines the accounts' module's genesis state.
func (*GenesisState) Descriptor
deprecated
added in
v0.7.2
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetAccountNumber ¶ added in v0.7.2
func (x *GenesisState) GetAccountNumber() uint64
func (*GenesisState) GetAccounts ¶ added in v0.7.2
func (x *GenesisState) GetAccounts() []*GenesisAccount
func (*GenesisState) ProtoMessage ¶ added in v0.7.2
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶ added in v0.7.2
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶ added in v0.7.2
func (x *GenesisState) Reset()
func (*GenesisState) String ¶ added in v0.7.2
func (x *GenesisState) String() string
type KVPair ¶ added in v0.7.2
type KVPair struct { // key is the key of the pair. Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // value is the value of the pair. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
KVPair defines a key value pair.
func (*KVPair) ProtoReflect ¶ added in v0.7.2
func (x *KVPair) ProtoReflect() protoreflect.Message
type MsgClient ¶
type MsgClient interface { // Init creates a new account in the chain. Init(ctx context.Context, in *MsgInit, opts ...grpc.CallOption) (*MsgInitResponse, error) // Execute executes a message to the target account. Execute(ctx context.Context, in *MsgExecute, opts ...grpc.CallOption) (*MsgExecuteResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgExecute ¶
type MsgExecute struct { // sender is the address of the sender of this message. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // target is the address of the account to be executed. Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` // message is the message to be sent to the account, it's up to the account Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
MsgExecute defines the Execute request type for the Msg/Execute RPC method.
func (*MsgExecute) Descriptor
deprecated
func (*MsgExecute) Descriptor() ([]byte, []int)
Deprecated: Use MsgExecute.ProtoReflect.Descriptor instead.
func (*MsgExecute) GetMessage ¶
func (x *MsgExecute) GetMessage() []byte
func (*MsgExecute) GetSender ¶
func (x *MsgExecute) GetSender() string
func (*MsgExecute) GetTarget ¶
func (x *MsgExecute) GetTarget() string
func (*MsgExecute) ProtoMessage ¶
func (*MsgExecute) ProtoMessage()
func (*MsgExecute) ProtoReflect ¶
func (x *MsgExecute) ProtoReflect() protoreflect.Message
func (*MsgExecute) Reset ¶
func (x *MsgExecute) Reset()
func (*MsgExecute) String ¶
func (x *MsgExecute) String() string
type MsgExecuteResponse ¶
type MsgExecuteResponse struct { // response is the response returned by the account implementation. Response []byte `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
MsgExecuteResponse defines the Execute response type for the Msg/Execute RPC method.
func (*MsgExecuteResponse) Descriptor
deprecated
func (*MsgExecuteResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgExecuteResponse.ProtoReflect.Descriptor instead.
func (*MsgExecuteResponse) GetResponse ¶
func (x *MsgExecuteResponse) GetResponse() []byte
func (*MsgExecuteResponse) ProtoMessage ¶
func (*MsgExecuteResponse) ProtoMessage()
func (*MsgExecuteResponse) ProtoReflect ¶
func (x *MsgExecuteResponse) ProtoReflect() protoreflect.Message
func (*MsgExecuteResponse) Reset ¶
func (x *MsgExecuteResponse) Reset()
func (*MsgExecuteResponse) String ¶
func (x *MsgExecuteResponse) String() string
type MsgInit ¶
type MsgInit struct { // sender is the address of the sender of this message. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // account_type is the type of the account to be created. AccountType string `protobuf:"bytes,2,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"` // message is the message to be sent to the account, it's up to the account // implementation to decide what encoding format should be used to interpret // this message. Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
MsgInit defines the Create request type for the Msg/Create RPC method.
func (*MsgInit) ProtoReflect ¶
func (x *MsgInit) ProtoReflect() protoreflect.Message
type MsgInitResponse ¶
type MsgInitResponse struct { // account_address is the address of the newly created account. AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // response is the response returned by the account implementation. Response []byte `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
MsgInitResponse defines the Create response type for the Msg/Create RPC method.
func (*MsgInitResponse) Descriptor
deprecated
func (*MsgInitResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgInitResponse.ProtoReflect.Descriptor instead.
func (*MsgInitResponse) GetAccountAddress ¶
func (x *MsgInitResponse) GetAccountAddress() string
func (*MsgInitResponse) GetResponse ¶
func (x *MsgInitResponse) GetResponse() []byte
func (*MsgInitResponse) ProtoMessage ¶
func (*MsgInitResponse) ProtoMessage()
func (*MsgInitResponse) ProtoReflect ¶
func (x *MsgInitResponse) ProtoReflect() protoreflect.Message
func (*MsgInitResponse) Reset ¶
func (x *MsgInitResponse) Reset()
func (*MsgInitResponse) String ¶
func (x *MsgInitResponse) String() string
type MsgServer ¶
type MsgServer interface { // Init creates a new account in the chain. Init(context.Context, *MsgInit) (*MsgInitResponse, error) // Execute executes a message to the target account. Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type QueryClient ¶
type QueryClient interface { // AccountQuery runs an account query. AccountQuery(ctx context.Context, in *AccountQueryRequest, opts ...grpc.CallOption) (*AccountQueryResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryServer ¶
type QueryServer interface { // AccountQuery runs an account query. AccountQuery(context.Context, *AccountQueryRequest) (*AccountQueryResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Execute ¶
func (UnimplementedMsgServer) Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error)
func (UnimplementedMsgServer) Init ¶
func (UnimplementedMsgServer) Init(context.Context, *MsgInit) (*MsgInitResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) AccountQuery ¶
func (UnimplementedQueryServer) AccountQuery(context.Context, *AccountQueryRequest) (*AccountQueryResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.