escrowv1alpha1

package
v0.0.0-...-027dd3d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 24 Imported by: 1

Documentation

Overview

Package escrowv1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "escrow"
)

Variables

View Source
var (
	ErrUnimplemented  = errors.RegisterWithGRPCCode(errorCodespace, errorCodeUnimplemented, codes.Unimplemented, "unimplemented request")
	ErrInvalidAddress = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidAddress, codes.InvalidArgument, "invalid address")
	ErrInvalidMessage = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvalidMessage, codes.InvalidArgument, "invalid message")
	ErrDuplicateEntry = errors.RegisterWithGRPCCode(errorCodespace, errorCodeDuplicateEntry, codes.InvalidArgument, "duplicate entry")
)
View Source
var (
	ErrInvariantBroken  = errors.RegisterWithGRPCCode(errorCodespace, errorCodeInvariantBroken, codes.Internal, "invariant broken")
	ErrAgentNotFound    = errors.RegisterWithGRPCCode(errorCodespace, errorCodeAgentNotFound, codes.NotFound, "agent not found")
	ErrProposalNotFound = errors.RegisterWithGRPCCode(errorCodespace, errorCodeProposalNotFound, codes.NotFound, "proposal not found")
	ErrPermissionDenied = errors.RegisterWithGRPCCode(errorCodespace, errorCodePermissionDenied, codes.PermissionDenied, "permission denied")
	ErrLargeMetadata    = errors.RegisterWithGRPCCode(errorCodespace, errorCodeLargeMetadata, codes.ResourceExhausted, "large metadata")
)
View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Agent

type Agent struct {
	// the address of the creator
	Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

Agent defines an account taking charge of a proposal.

func (*Agent) Descriptor

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

func (*Agent) GetCreator

func (m *Agent) GetCreator() []byte

func (*Agent) Marshal

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

func (*Agent) MarshalTo

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

func (*Agent) MarshalToSizedBuffer

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

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) Reset

func (m *Agent) Reset()

func (*Agent) Size

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

func (*Agent) String

func (m *Agent) String() string

func (*Agent) Unmarshal

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

func (*Agent) XXX_DiscardUnknown

func (m *Agent) XXX_DiscardUnknown()

func (*Agent) XXX_Marshal

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

func (*Agent) XXX_Merge

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

func (*Agent) XXX_Size

func (m *Agent) XXX_Size() int

func (*Agent) XXX_Unmarshal

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

type EventCreateAgent

type EventCreateAgent struct {
	// the address of the created agent
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// the address of the account created the agent
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
}

EventCreateAgent is emitted on Msg/CreateAgent.

func (*EventCreateAgent) Descriptor

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

func (*EventCreateAgent) GetAgent

func (m *EventCreateAgent) GetAgent() string

func (*EventCreateAgent) GetCreator

func (m *EventCreateAgent) GetCreator() string

func (*EventCreateAgent) Marshal

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

func (*EventCreateAgent) MarshalTo

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

func (*EventCreateAgent) MarshalToSizedBuffer

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

func (*EventCreateAgent) ProtoMessage

func (*EventCreateAgent) ProtoMessage()

func (*EventCreateAgent) Reset

func (m *EventCreateAgent) Reset()

func (*EventCreateAgent) Size

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

func (*EventCreateAgent) String

func (m *EventCreateAgent) String() string

func (*EventCreateAgent) Unmarshal

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

func (*EventCreateAgent) XXX_DiscardUnknown

func (m *EventCreateAgent) XXX_DiscardUnknown()

func (*EventCreateAgent) XXX_Marshal

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

func (*EventCreateAgent) XXX_Merge

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

func (*EventCreateAgent) XXX_Size

func (m *EventCreateAgent) XXX_Size() int

func (*EventCreateAgent) XXX_Unmarshal

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

type EventExec

type EventExec struct {
	// the address of the account executed the proposal
	Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"`
	// the addresses of the agents in charge
	Agents []string `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"`
	// the messages executed on the execution
	Actions []*types.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
}

EventExec is emitted on Msg/Exec.

func (*EventExec) Descriptor

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

func (*EventExec) GetActions

func (m *EventExec) GetActions() []*types.Any

func (*EventExec) GetAgents

func (m *EventExec) GetAgents() []string

func (*EventExec) GetExecutor

func (m *EventExec) GetExecutor() string

func (*EventExec) Marshal

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

func (*EventExec) MarshalTo

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

func (*EventExec) MarshalToSizedBuffer

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

func (*EventExec) ProtoMessage

func (*EventExec) ProtoMessage()

func (*EventExec) Reset

func (m *EventExec) Reset()

func (*EventExec) Size

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

func (*EventExec) String

func (m *EventExec) String() string

func (*EventExec) Unmarshal

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

func (*EventExec) XXX_DiscardUnknown

func (m *EventExec) XXX_DiscardUnknown()

func (*EventExec) XXX_Marshal

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

func (*EventExec) XXX_Merge

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

func (*EventExec) XXX_Size

func (m *EventExec) XXX_Size() int

func (*EventExec) XXX_Unmarshal

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

type EventSubmitProposal

type EventSubmitProposal struct {
	// the address of the proposer
	Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// the address of the agent in charge
	Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"`
	// the messages which has been executed on the submission
	PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"`
	// the messages which will be executed after the actions included in Msg/Exec
	PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// any arbitrary metadata attached to the proposal
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

EventSubmitProposal is emitted on Msg/SubmitProposal.

func (*EventSubmitProposal) Descriptor

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

func (*EventSubmitProposal) GetAgent

func (m *EventSubmitProposal) GetAgent() string

func (*EventSubmitProposal) GetMetadata

func (m *EventSubmitProposal) GetMetadata() string

func (*EventSubmitProposal) GetPostActions

func (m *EventSubmitProposal) GetPostActions() []*types.Any

func (*EventSubmitProposal) GetPreActions

func (m *EventSubmitProposal) GetPreActions() []*types.Any

func (*EventSubmitProposal) GetProposer

func (m *EventSubmitProposal) GetProposer() string

func (*EventSubmitProposal) Marshal

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

func (*EventSubmitProposal) MarshalTo

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

func (*EventSubmitProposal) MarshalToSizedBuffer

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

func (*EventSubmitProposal) ProtoMessage

func (*EventSubmitProposal) ProtoMessage()

func (*EventSubmitProposal) Reset

func (m *EventSubmitProposal) Reset()

func (*EventSubmitProposal) Size

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

func (*EventSubmitProposal) String

func (m *EventSubmitProposal) String() string

func (*EventSubmitProposal) Unmarshal

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

func (*EventSubmitProposal) XXX_DiscardUnknown

func (m *EventSubmitProposal) XXX_DiscardUnknown()

func (*EventSubmitProposal) XXX_Marshal

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

func (*EventSubmitProposal) XXX_Merge

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

func (*EventSubmitProposal) XXX_Size

func (m *EventSubmitProposal) XXX_Size() int

func (*EventSubmitProposal) XXX_Unmarshal

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

type EventUpdateParams

type EventUpdateParams struct {
	// the address of the module authority
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// the maximum length allowed for metadata
	MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"`
}

EventUpdateParams is emitted on Msg/UpdateParams.

func (*EventUpdateParams) Descriptor

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

func (*EventUpdateParams) GetAuthority

func (m *EventUpdateParams) GetAuthority() string

func (*EventUpdateParams) GetMaxMetadataLength

func (m *EventUpdateParams) GetMaxMetadataLength() uint64

func (*EventUpdateParams) Marshal

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

func (*EventUpdateParams) MarshalTo

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

func (*EventUpdateParams) MarshalToSizedBuffer

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

func (*EventUpdateParams) ProtoMessage

func (*EventUpdateParams) ProtoMessage()

func (*EventUpdateParams) Reset

func (m *EventUpdateParams) Reset()

func (*EventUpdateParams) Size

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

func (*EventUpdateParams) String

func (m *EventUpdateParams) String() string

func (*EventUpdateParams) Unmarshal

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

func (*EventUpdateParams) XXX_DiscardUnknown

func (m *EventUpdateParams) XXX_DiscardUnknown()

func (*EventUpdateParams) XXX_Marshal

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

func (*EventUpdateParams) XXX_Merge

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

func (*EventUpdateParams) XXX_Size

func (m *EventUpdateParams) XXX_Size() int

func (*EventUpdateParams) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// all the paramaters of the module
	Params *GenesisState_Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// the identifier of the next agent
	NextAgent uint64 `protobuf:"varint,2,opt,name=next_agent,json=nextAgent,proto3" json:"next_agent,omitempty"`
	// all the agents
	Agents []*GenesisState_Agent `protobuf:"bytes,3,rep,name=agents,proto3" json:"agents,omitempty"`
	// all the proposals
	Proposals []*GenesisState_Proposal `protobuf:"bytes,4,rep,name=proposals,proto3" json:"proposals,omitempty"`
}

GenesisState defines the module's genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAgents

func (m *GenesisState) GetAgents() []*GenesisState_Agent

func (*GenesisState) GetNextAgent

func (m *GenesisState) GetNextAgent() uint64

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() *GenesisState_Params

func (*GenesisState) GetProposals

func (m *GenesisState) GetProposals() []*GenesisState_Proposal

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) 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 GenesisState_Agent

type GenesisState_Agent struct {
	// the address of the agent
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// the address of the creator
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
}

Agent defines an account taking charge of a proposal.

func (*GenesisState_Agent) Descriptor

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

func (*GenesisState_Agent) GetAddress

func (m *GenesisState_Agent) GetAddress() string

func (*GenesisState_Agent) GetCreator

func (m *GenesisState_Agent) GetCreator() string

func (*GenesisState_Agent) Marshal

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

func (*GenesisState_Agent) MarshalTo

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

func (*GenesisState_Agent) MarshalToSizedBuffer

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

func (*GenesisState_Agent) ProtoMessage

func (*GenesisState_Agent) ProtoMessage()

func (*GenesisState_Agent) Reset

func (m *GenesisState_Agent) Reset()

func (*GenesisState_Agent) Size

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

func (*GenesisState_Agent) String

func (m *GenesisState_Agent) String() string

func (*GenesisState_Agent) Unmarshal

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

func (*GenesisState_Agent) XXX_DiscardUnknown

func (m *GenesisState_Agent) XXX_DiscardUnknown()

func (*GenesisState_Agent) XXX_Marshal

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

func (*GenesisState_Agent) XXX_Merge

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

func (*GenesisState_Agent) XXX_Size

func (m *GenesisState_Agent) XXX_Size() int

func (*GenesisState_Agent) XXX_Unmarshal

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

type GenesisState_Params

type GenesisState_Params struct {
	// the maximum length allowed for metadata
	MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"`
}

Params defines the parameters for the module.

func (*GenesisState_Params) Descriptor

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

func (*GenesisState_Params) GetMaxMetadataLength

func (m *GenesisState_Params) GetMaxMetadataLength() uint64

func (*GenesisState_Params) Marshal

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

func (*GenesisState_Params) MarshalTo

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

func (*GenesisState_Params) MarshalToSizedBuffer

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

func (*GenesisState_Params) ProtoMessage

func (*GenesisState_Params) ProtoMessage()

func (*GenesisState_Params) Reset

func (m *GenesisState_Params) Reset()

func (*GenesisState_Params) Size

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

func (*GenesisState_Params) String

func (m *GenesisState_Params) String() string

func (*GenesisState_Params) Unmarshal

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

func (*GenesisState_Params) XXX_DiscardUnknown

func (m *GenesisState_Params) XXX_DiscardUnknown()

func (*GenesisState_Params) XXX_Marshal

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

func (*GenesisState_Params) XXX_Merge

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

func (*GenesisState_Params) XXX_Size

func (m *GenesisState_Params) XXX_Size() int

func (*GenesisState_Params) XXX_Unmarshal

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

type GenesisState_Proposal

type GenesisState_Proposal struct {
	// the address of the agent in charge
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// the address of the proposer
	Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// the messages which has been executed on the submission
	PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"`
	// the messages which will be executed after the actions included in Msg/Exec
	PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// any arbitrary metadata attached to the proposal
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Proposal defines a proposal.

func (*GenesisState_Proposal) Descriptor

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

func (*GenesisState_Proposal) GetAgent

func (m *GenesisState_Proposal) GetAgent() string

func (*GenesisState_Proposal) GetMetadata

func (m *GenesisState_Proposal) GetMetadata() string

func (*GenesisState_Proposal) GetPostActions

func (m *GenesisState_Proposal) GetPostActions() []*types.Any

func (*GenesisState_Proposal) GetPreActions

func (m *GenesisState_Proposal) GetPreActions() []*types.Any

func (*GenesisState_Proposal) GetProposer

func (m *GenesisState_Proposal) GetProposer() string

func (*GenesisState_Proposal) Marshal

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

func (*GenesisState_Proposal) MarshalTo

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

func (*GenesisState_Proposal) MarshalToSizedBuffer

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

func (*GenesisState_Proposal) ProtoMessage

func (*GenesisState_Proposal) ProtoMessage()

func (*GenesisState_Proposal) Reset

func (m *GenesisState_Proposal) Reset()

func (*GenesisState_Proposal) Size

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

func (*GenesisState_Proposal) String

func (m *GenesisState_Proposal) String() string

func (*GenesisState_Proposal) Unmarshal

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

func (*GenesisState_Proposal) XXX_DiscardUnknown

func (m *GenesisState_Proposal) XXX_DiscardUnknown()

func (*GenesisState_Proposal) XXX_Marshal

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

func (*GenesisState_Proposal) XXX_Merge

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

func (*GenesisState_Proposal) XXX_Size

func (m *GenesisState_Proposal) XXX_Size() int

func (*GenesisState_Proposal) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateParams updates the module parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// CreateAgent creates an escrow agent for a proposal.
	CreateAgent(ctx context.Context, in *MsgCreateAgent, opts ...grpc.CallOption) (*MsgCreateAgentResponse, error)
	// SubmitProposal submits a proposal.
	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
	// Exec executes a proposal.
	Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, 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 MsgCreateAgent

type MsgCreateAgent struct {
	// the address of the account creating the agent
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

MsgCreateAgent is the Msg/CreateAgent request type.

func (*MsgCreateAgent) Descriptor

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

func (*MsgCreateAgent) GetCreator

func (m *MsgCreateAgent) GetCreator() string

func (*MsgCreateAgent) Marshal

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

func (*MsgCreateAgent) MarshalTo

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

func (*MsgCreateAgent) MarshalToSizedBuffer

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

func (*MsgCreateAgent) ProtoMessage

func (*MsgCreateAgent) ProtoMessage()

func (*MsgCreateAgent) Reset

func (m *MsgCreateAgent) Reset()

func (*MsgCreateAgent) Size

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

func (*MsgCreateAgent) String

func (m *MsgCreateAgent) String() string

func (*MsgCreateAgent) Unmarshal

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

func (*MsgCreateAgent) XXX_DiscardUnknown

func (m *MsgCreateAgent) XXX_DiscardUnknown()

func (*MsgCreateAgent) XXX_Marshal

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

func (*MsgCreateAgent) XXX_Merge

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

func (*MsgCreateAgent) XXX_Size

func (m *MsgCreateAgent) XXX_Size() int

func (*MsgCreateAgent) XXX_Unmarshal

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

type MsgCreateAgentResponse

type MsgCreateAgentResponse struct {
	// the address of the created agent
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
}

MsgCreateAgentResponse is the Msg/CreateAgent response type.

func (*MsgCreateAgentResponse) Descriptor

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

func (*MsgCreateAgentResponse) GetAgent

func (m *MsgCreateAgentResponse) GetAgent() string

func (*MsgCreateAgentResponse) Marshal

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

func (*MsgCreateAgentResponse) MarshalTo

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

func (*MsgCreateAgentResponse) MarshalToSizedBuffer

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

func (*MsgCreateAgentResponse) ProtoMessage

func (*MsgCreateAgentResponse) ProtoMessage()

func (*MsgCreateAgentResponse) Reset

func (m *MsgCreateAgentResponse) Reset()

func (*MsgCreateAgentResponse) Size

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

func (*MsgCreateAgentResponse) String

func (m *MsgCreateAgentResponse) String() string

func (*MsgCreateAgentResponse) Unmarshal

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

func (*MsgCreateAgentResponse) XXX_DiscardUnknown

func (m *MsgCreateAgentResponse) XXX_DiscardUnknown()

func (*MsgCreateAgentResponse) XXX_Marshal

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

func (*MsgCreateAgentResponse) XXX_Merge

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

func (*MsgCreateAgentResponse) XXX_Size

func (m *MsgCreateAgentResponse) XXX_Size() int

func (*MsgCreateAgentResponse) XXX_Unmarshal

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

type MsgExec

type MsgExec struct {
	// the address of the account executing the proposal
	Executor string `protobuf:"bytes,1,opt,name=executor,proto3" json:"executor,omitempty"`
	// the addresses of the agents in charge
	Agents []string `protobuf:"bytes,2,rep,name=agents,proto3" json:"agents,omitempty"`
	// the messages which will be executed on the execution
	// Note: the signer of each message must be either the executor or one of the
	// agents.
	Actions []*types.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
}

MsgExec is the Msg/Exec request type.

func (*MsgExec) Descriptor

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

func (*MsgExec) GetActions

func (m *MsgExec) GetActions() []*types.Any

func (*MsgExec) GetAgents

func (m *MsgExec) GetAgents() []string

func (*MsgExec) GetExecutor

func (m *MsgExec) GetExecutor() string

func (*MsgExec) Marshal

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

func (*MsgExec) MarshalTo

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

func (*MsgExec) MarshalToSizedBuffer

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

func (*MsgExec) ProtoMessage

func (*MsgExec) ProtoMessage()

func (*MsgExec) Reset

func (m *MsgExec) Reset()

func (*MsgExec) Size

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

func (*MsgExec) String

func (m *MsgExec) String() string

func (*MsgExec) Unmarshal

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

func (*MsgExec) XXX_DiscardUnknown

func (m *MsgExec) XXX_DiscardUnknown()

func (*MsgExec) XXX_Marshal

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

func (*MsgExec) XXX_Merge

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

func (*MsgExec) XXX_Size

func (m *MsgExec) XXX_Size() int

func (*MsgExec) XXX_Unmarshal

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

type MsgExecResponse

type MsgExecResponse struct {
}

MsgExecResponse is the Msg/Exec response type.

func (*MsgExecResponse) Descriptor

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

func (*MsgExecResponse) Marshal

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

func (*MsgExecResponse) MarshalTo

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

func (*MsgExecResponse) MarshalToSizedBuffer

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

func (*MsgExecResponse) ProtoMessage

func (*MsgExecResponse) ProtoMessage()

func (*MsgExecResponse) Reset

func (m *MsgExecResponse) Reset()

func (*MsgExecResponse) Size

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

func (*MsgExecResponse) String

func (m *MsgExecResponse) String() string

func (*MsgExecResponse) Unmarshal

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

func (*MsgExecResponse) XXX_DiscardUnknown

func (m *MsgExecResponse) XXX_DiscardUnknown()

func (*MsgExecResponse) XXX_Marshal

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

func (*MsgExecResponse) XXX_Merge

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

func (*MsgExecResponse) XXX_Size

func (m *MsgExecResponse) XXX_Size() int

func (*MsgExecResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams updates the module parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// CreateAgent creates an escrow agent for a proposal.
	CreateAgent(context.Context, *MsgCreateAgent) (*MsgCreateAgentResponse, error)
	// SubmitProposal submits a proposal.
	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
	// Exec executes a proposal.
	Exec(context.Context, *MsgExec) (*MsgExecResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubmitProposal

type MsgSubmitProposal struct {
	// the address of the proposer
	Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// the address of the agent in charge
	// Note: it must be created by the proposer.
	Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"`
	// the messages which will be executed on the submission
	// Note: the signer of each message must be either the proposer or the agent.
	PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"`
	// the messages which will be executed after the actions included in Msg/Exec
	// Note: the signer of each message must be either the proposer or the agent.
	PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// any arbitrary metadata attached to the proposal
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

MsgSubmitProposal is the Msg/SubmitProposal request type.

func (*MsgSubmitProposal) Descriptor

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

func (*MsgSubmitProposal) GetAgent

func (m *MsgSubmitProposal) GetAgent() string

func (*MsgSubmitProposal) GetMetadata

func (m *MsgSubmitProposal) GetMetadata() string

func (*MsgSubmitProposal) GetPostActions

func (m *MsgSubmitProposal) GetPostActions() []*types.Any

func (*MsgSubmitProposal) GetPreActions

func (m *MsgSubmitProposal) GetPreActions() []*types.Any

func (*MsgSubmitProposal) GetProposer

func (m *MsgSubmitProposal) GetProposer() string

func (*MsgSubmitProposal) Marshal

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

func (*MsgSubmitProposal) MarshalTo

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

func (*MsgSubmitProposal) MarshalToSizedBuffer

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

func (*MsgSubmitProposal) ProtoMessage

func (*MsgSubmitProposal) ProtoMessage()

func (*MsgSubmitProposal) Reset

func (m *MsgSubmitProposal) Reset()

func (*MsgSubmitProposal) Size

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

func (*MsgSubmitProposal) String

func (m *MsgSubmitProposal) String() string

func (*MsgSubmitProposal) Unmarshal

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

func (*MsgSubmitProposal) XXX_DiscardUnknown

func (m *MsgSubmitProposal) XXX_DiscardUnknown()

func (*MsgSubmitProposal) XXX_Marshal

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

func (*MsgSubmitProposal) XXX_Merge

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

func (*MsgSubmitProposal) XXX_Size

func (m *MsgSubmitProposal) XXX_Size() int

func (*MsgSubmitProposal) XXX_Unmarshal

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

type MsgSubmitProposalResponse

type MsgSubmitProposalResponse struct {
}

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

func (*MsgSubmitProposalResponse) Descriptor

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

func (*MsgSubmitProposalResponse) Marshal

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

func (*MsgSubmitProposalResponse) MarshalTo

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

func (*MsgSubmitProposalResponse) MarshalToSizedBuffer

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

func (*MsgSubmitProposalResponse) ProtoMessage

func (*MsgSubmitProposalResponse) ProtoMessage()

func (*MsgSubmitProposalResponse) Reset

func (m *MsgSubmitProposalResponse) Reset()

func (*MsgSubmitProposalResponse) Size

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

func (*MsgSubmitProposalResponse) String

func (m *MsgSubmitProposalResponse) String() string

func (*MsgSubmitProposalResponse) Unmarshal

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

func (*MsgSubmitProposalResponse) XXX_DiscardUnknown

func (m *MsgSubmitProposalResponse) XXX_DiscardUnknown()

func (*MsgSubmitProposalResponse) XXX_Marshal

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

func (*MsgSubmitProposalResponse) XXX_Merge

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

func (*MsgSubmitProposalResponse) XXX_Size

func (m *MsgSubmitProposalResponse) XXX_Size() int

func (*MsgSubmitProposalResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// the address of the module authority
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// the maximum length allowed for metadata
	MaxMetadataLength uint64 `protobuf:"varint,2,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetMaxMetadataLength

func (m *MsgUpdateParams) GetMaxMetadataLength() uint64

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, 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) 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 {
}

MsgUpdateParamsResponse is the Msg/UpdateParams response type.

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 {
	// the maximum length allowed for metadata
	MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"`
}

Params defines the parameters for the module.

func (*Params) Descriptor

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

func (*Params) GetMaxMetadataLength

func (m *Params) GetMaxMetadataLength() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type Proposal

type Proposal struct {
	// the address of the proposer
	Proposer []byte `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// the messages which has been executed on the submission
	PreActions []*types.Any `protobuf:"bytes,2,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"`
	// the messages which will be executed after the actions included in Msg/Exec
	PostActions []*types.Any `protobuf:"bytes,3,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// any arbitrary metadata attached to the proposal
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Proposal defines a proposal.

func (*Proposal) Descriptor

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

func (*Proposal) GetMetadata

func (m *Proposal) GetMetadata() string

func (*Proposal) GetPostActions

func (m *Proposal) GetPostActions() []*types.Any

func (*Proposal) GetPreActions

func (m *Proposal) GetPreActions() []*types.Any

func (*Proposal) GetProposer

func (m *Proposal) GetProposer() []byte

func (*Proposal) Marshal

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

func (*Proposal) MarshalTo

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

func (*Proposal) MarshalToSizedBuffer

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

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

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

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

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

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

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

func (*Proposal) XXX_Merge

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

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

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

type QueryAgentRequest

type QueryAgentRequest struct {
	// the address of an agent
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
}

QueryAgentRequest is the request type for the Query/Agent RPC method.

func (*QueryAgentRequest) Descriptor

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

func (*QueryAgentRequest) GetAgent

func (m *QueryAgentRequest) GetAgent() string

func (*QueryAgentRequest) Marshal

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

func (*QueryAgentRequest) MarshalTo

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

func (*QueryAgentRequest) MarshalToSizedBuffer

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

func (*QueryAgentRequest) ProtoMessage

func (*QueryAgentRequest) ProtoMessage()

func (*QueryAgentRequest) Reset

func (m *QueryAgentRequest) Reset()

func (*QueryAgentRequest) Size

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

func (*QueryAgentRequest) String

func (m *QueryAgentRequest) String() string

func (*QueryAgentRequest) Unmarshal

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

func (*QueryAgentRequest) XXX_DiscardUnknown

func (m *QueryAgentRequest) XXX_DiscardUnknown()

func (*QueryAgentRequest) XXX_Marshal

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

func (*QueryAgentRequest) XXX_Merge

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

func (*QueryAgentRequest) XXX_Size

func (m *QueryAgentRequest) XXX_Size() int

func (*QueryAgentRequest) XXX_Unmarshal

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

type QueryAgentResponse

type QueryAgentResponse struct {
	// the corresponding agent
	Agent *QueryAgentResponse_Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
}

QueryAgentResponse is the response type for the Query/Agent RPC method.

func (*QueryAgentResponse) Descriptor

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

func (*QueryAgentResponse) GetAgent

func (*QueryAgentResponse) Marshal

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

func (*QueryAgentResponse) MarshalTo

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

func (*QueryAgentResponse) MarshalToSizedBuffer

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

func (*QueryAgentResponse) ProtoMessage

func (*QueryAgentResponse) ProtoMessage()

func (*QueryAgentResponse) Reset

func (m *QueryAgentResponse) Reset()

func (*QueryAgentResponse) Size

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

func (*QueryAgentResponse) String

func (m *QueryAgentResponse) String() string

func (*QueryAgentResponse) Unmarshal

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

func (*QueryAgentResponse) XXX_DiscardUnknown

func (m *QueryAgentResponse) XXX_DiscardUnknown()

func (*QueryAgentResponse) XXX_Marshal

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

func (*QueryAgentResponse) XXX_Merge

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

func (*QueryAgentResponse) XXX_Size

func (m *QueryAgentResponse) XXX_Size() int

func (*QueryAgentResponse) XXX_Unmarshal

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

type QueryAgentResponse_Agent

type QueryAgentResponse_Agent struct {
	// the address of the agent
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// the address of the creator
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
}

Agent defines an account taking charge of a proposal.

func (*QueryAgentResponse_Agent) Descriptor

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

func (*QueryAgentResponse_Agent) GetAddress

func (m *QueryAgentResponse_Agent) GetAddress() string

func (*QueryAgentResponse_Agent) GetCreator

func (m *QueryAgentResponse_Agent) GetCreator() string

func (*QueryAgentResponse_Agent) Marshal

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

func (*QueryAgentResponse_Agent) MarshalTo

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

func (*QueryAgentResponse_Agent) MarshalToSizedBuffer

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

func (*QueryAgentResponse_Agent) ProtoMessage

func (*QueryAgentResponse_Agent) ProtoMessage()

func (*QueryAgentResponse_Agent) Reset

func (m *QueryAgentResponse_Agent) Reset()

func (*QueryAgentResponse_Agent) Size

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

func (*QueryAgentResponse_Agent) String

func (m *QueryAgentResponse_Agent) String() string

func (*QueryAgentResponse_Agent) Unmarshal

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

func (*QueryAgentResponse_Agent) XXX_DiscardUnknown

func (m *QueryAgentResponse_Agent) XXX_DiscardUnknown()

func (*QueryAgentResponse_Agent) XXX_Marshal

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

func (*QueryAgentResponse_Agent) XXX_Merge

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

func (*QueryAgentResponse_Agent) XXX_Size

func (m *QueryAgentResponse_Agent) XXX_Size() int

func (*QueryAgentResponse_Agent) XXX_Unmarshal

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

type QueryAgentsByCreatorRequest

type QueryAgentsByCreatorRequest struct {
	// the address of a creator
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAgentsByCreatorRequest is the request type for the Query/AgentsByCreator RPC method.

func (*QueryAgentsByCreatorRequest) Descriptor

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

func (*QueryAgentsByCreatorRequest) GetCreator

func (m *QueryAgentsByCreatorRequest) GetCreator() string

func (*QueryAgentsByCreatorRequest) GetPagination

func (m *QueryAgentsByCreatorRequest) GetPagination() *query.PageRequest

func (*QueryAgentsByCreatorRequest) Marshal

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

func (*QueryAgentsByCreatorRequest) MarshalTo

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

func (*QueryAgentsByCreatorRequest) MarshalToSizedBuffer

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

func (*QueryAgentsByCreatorRequest) ProtoMessage

func (*QueryAgentsByCreatorRequest) ProtoMessage()

func (*QueryAgentsByCreatorRequest) Reset

func (m *QueryAgentsByCreatorRequest) Reset()

func (*QueryAgentsByCreatorRequest) Size

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

func (*QueryAgentsByCreatorRequest) String

func (m *QueryAgentsByCreatorRequest) String() string

func (*QueryAgentsByCreatorRequest) Unmarshal

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

func (*QueryAgentsByCreatorRequest) XXX_DiscardUnknown

func (m *QueryAgentsByCreatorRequest) XXX_DiscardUnknown()

func (*QueryAgentsByCreatorRequest) XXX_Marshal

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

func (*QueryAgentsByCreatorRequest) XXX_Merge

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

func (*QueryAgentsByCreatorRequest) XXX_Size

func (m *QueryAgentsByCreatorRequest) XXX_Size() int

func (*QueryAgentsByCreatorRequest) XXX_Unmarshal

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

type QueryAgentsByCreatorResponse

type QueryAgentsByCreatorResponse struct {
	// all the agents created by the creator
	Agents []*QueryAgentsByCreatorResponse_Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"`
	// pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAgentsByCreatorResponse is the response type for the Query/AgentsByCreator RPC method.

func (*QueryAgentsByCreatorResponse) Descriptor

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

func (*QueryAgentsByCreatorResponse) GetAgents

func (*QueryAgentsByCreatorResponse) GetPagination

func (m *QueryAgentsByCreatorResponse) GetPagination() *query.PageResponse

func (*QueryAgentsByCreatorResponse) Marshal

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

func (*QueryAgentsByCreatorResponse) MarshalTo

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

func (*QueryAgentsByCreatorResponse) MarshalToSizedBuffer

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

func (*QueryAgentsByCreatorResponse) ProtoMessage

func (*QueryAgentsByCreatorResponse) ProtoMessage()

func (*QueryAgentsByCreatorResponse) Reset

func (m *QueryAgentsByCreatorResponse) Reset()

func (*QueryAgentsByCreatorResponse) Size

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

func (*QueryAgentsByCreatorResponse) String

func (*QueryAgentsByCreatorResponse) Unmarshal

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

func (*QueryAgentsByCreatorResponse) XXX_DiscardUnknown

func (m *QueryAgentsByCreatorResponse) XXX_DiscardUnknown()

func (*QueryAgentsByCreatorResponse) XXX_Marshal

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

func (*QueryAgentsByCreatorResponse) XXX_Merge

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

func (*QueryAgentsByCreatorResponse) XXX_Size

func (m *QueryAgentsByCreatorResponse) XXX_Size() int

func (*QueryAgentsByCreatorResponse) XXX_Unmarshal

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

type QueryAgentsByCreatorResponse_Agent

type QueryAgentsByCreatorResponse_Agent struct {
	// the address of the agent
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// the address of the creator
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
}

Agent defines an account taking charge of a proposal.

func (*QueryAgentsByCreatorResponse_Agent) Descriptor

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

func (*QueryAgentsByCreatorResponse_Agent) GetAddress

func (*QueryAgentsByCreatorResponse_Agent) GetCreator

func (*QueryAgentsByCreatorResponse_Agent) Marshal

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

func (*QueryAgentsByCreatorResponse_Agent) MarshalTo

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

func (*QueryAgentsByCreatorResponse_Agent) MarshalToSizedBuffer

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

func (*QueryAgentsByCreatorResponse_Agent) ProtoMessage

func (*QueryAgentsByCreatorResponse_Agent) ProtoMessage()

func (*QueryAgentsByCreatorResponse_Agent) Reset

func (*QueryAgentsByCreatorResponse_Agent) Size

func (*QueryAgentsByCreatorResponse_Agent) String

func (*QueryAgentsByCreatorResponse_Agent) Unmarshal

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

func (*QueryAgentsByCreatorResponse_Agent) XXX_DiscardUnknown

func (m *QueryAgentsByCreatorResponse_Agent) XXX_DiscardUnknown()

func (*QueryAgentsByCreatorResponse_Agent) XXX_Marshal

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

func (*QueryAgentsByCreatorResponse_Agent) XXX_Merge

func (*QueryAgentsByCreatorResponse_Agent) XXX_Size

func (*QueryAgentsByCreatorResponse_Agent) XXX_Unmarshal

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

type QueryAgentsRequest

type QueryAgentsRequest struct {
	// optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAgentsRequest is the request type for the Query/Agents RPC method.

func (*QueryAgentsRequest) Descriptor

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

func (*QueryAgentsRequest) GetPagination

func (m *QueryAgentsRequest) GetPagination() *query.PageRequest

func (*QueryAgentsRequest) Marshal

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

func (*QueryAgentsRequest) MarshalTo

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

func (*QueryAgentsRequest) MarshalToSizedBuffer

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

func (*QueryAgentsRequest) ProtoMessage

func (*QueryAgentsRequest) ProtoMessage()

func (*QueryAgentsRequest) Reset

func (m *QueryAgentsRequest) Reset()

func (*QueryAgentsRequest) Size

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

func (*QueryAgentsRequest) String

func (m *QueryAgentsRequest) String() string

func (*QueryAgentsRequest) Unmarshal

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

func (*QueryAgentsRequest) XXX_DiscardUnknown

func (m *QueryAgentsRequest) XXX_DiscardUnknown()

func (*QueryAgentsRequest) XXX_Marshal

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

func (*QueryAgentsRequest) XXX_Merge

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

func (*QueryAgentsRequest) XXX_Size

func (m *QueryAgentsRequest) XXX_Size() int

func (*QueryAgentsRequest) XXX_Unmarshal

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

type QueryAgentsResponse

type QueryAgentsResponse struct {
	// all the agents
	Agents []*QueryAgentsResponse_Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"`
	// pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAgentsResponse is the response type for the Query/Agents RPC method.

func (*QueryAgentsResponse) Descriptor

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

func (*QueryAgentsResponse) GetAgents

func (*QueryAgentsResponse) GetPagination

func (m *QueryAgentsResponse) GetPagination() *query.PageResponse

func (*QueryAgentsResponse) Marshal

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

func (*QueryAgentsResponse) MarshalTo

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

func (*QueryAgentsResponse) MarshalToSizedBuffer

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

func (*QueryAgentsResponse) ProtoMessage

func (*QueryAgentsResponse) ProtoMessage()

func (*QueryAgentsResponse) Reset

func (m *QueryAgentsResponse) Reset()

func (*QueryAgentsResponse) Size

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

func (*QueryAgentsResponse) String

func (m *QueryAgentsResponse) String() string

func (*QueryAgentsResponse) Unmarshal

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

func (*QueryAgentsResponse) XXX_DiscardUnknown

func (m *QueryAgentsResponse) XXX_DiscardUnknown()

func (*QueryAgentsResponse) XXX_Marshal

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

func (*QueryAgentsResponse) XXX_Merge

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

func (*QueryAgentsResponse) XXX_Size

func (m *QueryAgentsResponse) XXX_Size() int

func (*QueryAgentsResponse) XXX_Unmarshal

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

type QueryAgentsResponse_Agent

type QueryAgentsResponse_Agent struct {
	// the address of the agent
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// the address of the creator
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
}

Agent defines an account taking charge of a proposal.

func (*QueryAgentsResponse_Agent) Descriptor

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

func (*QueryAgentsResponse_Agent) GetAddress

func (m *QueryAgentsResponse_Agent) GetAddress() string

func (*QueryAgentsResponse_Agent) GetCreator

func (m *QueryAgentsResponse_Agent) GetCreator() string

func (*QueryAgentsResponse_Agent) Marshal

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

func (*QueryAgentsResponse_Agent) MarshalTo

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

func (*QueryAgentsResponse_Agent) MarshalToSizedBuffer

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

func (*QueryAgentsResponse_Agent) ProtoMessage

func (*QueryAgentsResponse_Agent) ProtoMessage()

func (*QueryAgentsResponse_Agent) Reset

func (m *QueryAgentsResponse_Agent) Reset()

func (*QueryAgentsResponse_Agent) Size

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

func (*QueryAgentsResponse_Agent) String

func (m *QueryAgentsResponse_Agent) String() string

func (*QueryAgentsResponse_Agent) Unmarshal

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

func (*QueryAgentsResponse_Agent) XXX_DiscardUnknown

func (m *QueryAgentsResponse_Agent) XXX_DiscardUnknown()

func (*QueryAgentsResponse_Agent) XXX_Marshal

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

func (*QueryAgentsResponse_Agent) XXX_Merge

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

func (*QueryAgentsResponse_Agent) XXX_Size

func (m *QueryAgentsResponse_Agent) XXX_Size() int

func (*QueryAgentsResponse_Agent) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries the module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Agent queries an agent.
	Agent(ctx context.Context, in *QueryAgentRequest, opts ...grpc.CallOption) (*QueryAgentResponse, error)
	// AgentsByCreator queries all the agents by its creator.
	AgentsByCreator(ctx context.Context, in *QueryAgentsByCreatorRequest, opts ...grpc.CallOption) (*QueryAgentsByCreatorResponse, error)
	// Agents queries all the agents.
	Agents(ctx context.Context, in *QueryAgentsRequest, opts ...grpc.CallOption) (*QueryAgentsResponse, error)
	// Proposal queries a proposal.
	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
	// ProposalsByProposer queries all the proposals by its proposer.
	ProposalsByProposer(ctx context.Context, in *QueryProposalsByProposerRequest, opts ...grpc.CallOption) (*QueryProposalsByProposerResponse, error)
	// Proposals queries all the proposals.
	Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// the maximum length allowed for metadata
	MaxMetadataLength uint64 `protobuf:"varint,1,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"`
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetMaxMetadataLength

func (m *QueryParamsResponse) GetMaxMetadataLength() uint64

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 QueryProposalRequest

type QueryProposalRequest struct {
	// the address of an agent in charge
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
}

QueryProposalRequest is the request type for the Query/Proposal RPC method.

func (*QueryProposalRequest) Descriptor

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

func (*QueryProposalRequest) GetAgent

func (m *QueryProposalRequest) GetAgent() string

func (*QueryProposalRequest) Marshal

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

func (*QueryProposalRequest) MarshalTo

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

func (*QueryProposalRequest) MarshalToSizedBuffer

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

func (*QueryProposalRequest) ProtoMessage

func (*QueryProposalRequest) ProtoMessage()

func (*QueryProposalRequest) Reset

func (m *QueryProposalRequest) Reset()

func (*QueryProposalRequest) Size

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

func (*QueryProposalRequest) String

func (m *QueryProposalRequest) String() string

func (*QueryProposalRequest) Unmarshal

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

func (*QueryProposalRequest) XXX_DiscardUnknown

func (m *QueryProposalRequest) XXX_DiscardUnknown()

func (*QueryProposalRequest) XXX_Marshal

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

func (*QueryProposalRequest) XXX_Merge

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

func (*QueryProposalRequest) XXX_Size

func (m *QueryProposalRequest) XXX_Size() int

func (*QueryProposalRequest) XXX_Unmarshal

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

type QueryProposalResponse

type QueryProposalResponse struct {
	// the corresponding proposal
	Proposal *QueryProposalResponse_Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
}

QueryProposalResponse is the response type for the Query/Proposal RPC method.

func (*QueryProposalResponse) Descriptor

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

func (*QueryProposalResponse) GetProposal

func (*QueryProposalResponse) Marshal

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

func (*QueryProposalResponse) MarshalTo

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

func (*QueryProposalResponse) MarshalToSizedBuffer

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

func (*QueryProposalResponse) ProtoMessage

func (*QueryProposalResponse) ProtoMessage()

func (*QueryProposalResponse) Reset

func (m *QueryProposalResponse) Reset()

func (*QueryProposalResponse) Size

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

func (*QueryProposalResponse) String

func (m *QueryProposalResponse) String() string

func (*QueryProposalResponse) Unmarshal

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

func (*QueryProposalResponse) XXX_DiscardUnknown

func (m *QueryProposalResponse) XXX_DiscardUnknown()

func (*QueryProposalResponse) XXX_Marshal

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

func (*QueryProposalResponse) XXX_Merge

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

func (*QueryProposalResponse) XXX_Size

func (m *QueryProposalResponse) XXX_Size() int

func (*QueryProposalResponse) XXX_Unmarshal

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

type QueryProposalResponse_Proposal

type QueryProposalResponse_Proposal struct {
	// the address of the agent in charge
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// the address of the proposer
	Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// the messages which has been executed on the submission
	PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"`
	// the messages which will be executed after the actions included in Msg/Exec
	PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// any arbitrary metadata attached to the proposal
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Proposal defines a proposal.

func (*QueryProposalResponse_Proposal) Descriptor

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

func (*QueryProposalResponse_Proposal) GetAgent

func (m *QueryProposalResponse_Proposal) GetAgent() string

func (*QueryProposalResponse_Proposal) GetMetadata

func (m *QueryProposalResponse_Proposal) GetMetadata() string

func (*QueryProposalResponse_Proposal) GetPostActions

func (m *QueryProposalResponse_Proposal) GetPostActions() []*types.Any

func (*QueryProposalResponse_Proposal) GetPreActions

func (m *QueryProposalResponse_Proposal) GetPreActions() []*types.Any

func (*QueryProposalResponse_Proposal) GetProposer

func (m *QueryProposalResponse_Proposal) GetProposer() string

func (*QueryProposalResponse_Proposal) Marshal

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

func (*QueryProposalResponse_Proposal) MarshalTo

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

func (*QueryProposalResponse_Proposal) MarshalToSizedBuffer

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

func (*QueryProposalResponse_Proposal) ProtoMessage

func (*QueryProposalResponse_Proposal) ProtoMessage()

func (*QueryProposalResponse_Proposal) Reset

func (m *QueryProposalResponse_Proposal) Reset()

func (*QueryProposalResponse_Proposal) Size

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

func (*QueryProposalResponse_Proposal) String

func (*QueryProposalResponse_Proposal) Unmarshal

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

func (*QueryProposalResponse_Proposal) XXX_DiscardUnknown

func (m *QueryProposalResponse_Proposal) XXX_DiscardUnknown()

func (*QueryProposalResponse_Proposal) XXX_Marshal

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

func (*QueryProposalResponse_Proposal) XXX_Merge

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

func (*QueryProposalResponse_Proposal) XXX_Size

func (m *QueryProposalResponse_Proposal) XXX_Size() int

func (*QueryProposalResponse_Proposal) XXX_Unmarshal

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

type QueryProposalsByProposerRequest

type QueryProposalsByProposerRequest struct {
	// the address of a proposer
	Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposalsByProposerRequest is the request type for the Query/ProposalsByProposer RPC method.

func (*QueryProposalsByProposerRequest) Descriptor

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

func (*QueryProposalsByProposerRequest) GetPagination

func (*QueryProposalsByProposerRequest) GetProposer

func (m *QueryProposalsByProposerRequest) GetProposer() string

func (*QueryProposalsByProposerRequest) Marshal

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

func (*QueryProposalsByProposerRequest) MarshalTo

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

func (*QueryProposalsByProposerRequest) MarshalToSizedBuffer

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

func (*QueryProposalsByProposerRequest) ProtoMessage

func (*QueryProposalsByProposerRequest) ProtoMessage()

func (*QueryProposalsByProposerRequest) Reset

func (*QueryProposalsByProposerRequest) Size

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

func (*QueryProposalsByProposerRequest) String

func (*QueryProposalsByProposerRequest) Unmarshal

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

func (*QueryProposalsByProposerRequest) XXX_DiscardUnknown

func (m *QueryProposalsByProposerRequest) XXX_DiscardUnknown()

func (*QueryProposalsByProposerRequest) XXX_Marshal

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

func (*QueryProposalsByProposerRequest) XXX_Merge

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

func (*QueryProposalsByProposerRequest) XXX_Size

func (m *QueryProposalsByProposerRequest) XXX_Size() int

func (*QueryProposalsByProposerRequest) XXX_Unmarshal

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

type QueryProposalsByProposerResponse

type QueryProposalsByProposerResponse struct {
	// all the proposals proposed by the proposer
	Proposals []*QueryProposalsByProposerResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposalsByProposerResponse is the response type for the Query/ProposalsByProposer RPC method.

func (*QueryProposalsByProposerResponse) Descriptor

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

func (*QueryProposalsByProposerResponse) GetPagination

func (*QueryProposalsByProposerResponse) GetProposals

func (*QueryProposalsByProposerResponse) Marshal

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

func (*QueryProposalsByProposerResponse) MarshalTo

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

func (*QueryProposalsByProposerResponse) MarshalToSizedBuffer

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

func (*QueryProposalsByProposerResponse) ProtoMessage

func (*QueryProposalsByProposerResponse) ProtoMessage()

func (*QueryProposalsByProposerResponse) Reset

func (*QueryProposalsByProposerResponse) Size

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

func (*QueryProposalsByProposerResponse) String

func (*QueryProposalsByProposerResponse) Unmarshal

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

func (*QueryProposalsByProposerResponse) XXX_DiscardUnknown

func (m *QueryProposalsByProposerResponse) XXX_DiscardUnknown()

func (*QueryProposalsByProposerResponse) XXX_Marshal

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

func (*QueryProposalsByProposerResponse) XXX_Merge

func (*QueryProposalsByProposerResponse) XXX_Size

func (m *QueryProposalsByProposerResponse) XXX_Size() int

func (*QueryProposalsByProposerResponse) XXX_Unmarshal

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

type QueryProposalsByProposerResponse_Proposal

type QueryProposalsByProposerResponse_Proposal struct {
	// the address of the agent in charge
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// the address of the proposer
	Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// the messages which has been executed on the submission
	PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"`
	// the messages which will be executed after the actions included in Msg/Exec
	PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// any arbitrary metadata attached to the proposal
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Proposal defines a proposal.

func (*QueryProposalsByProposerResponse_Proposal) Descriptor

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

func (*QueryProposalsByProposerResponse_Proposal) GetAgent

func (*QueryProposalsByProposerResponse_Proposal) GetMetadata

func (*QueryProposalsByProposerResponse_Proposal) GetPostActions

func (m *QueryProposalsByProposerResponse_Proposal) GetPostActions() []*types.Any

func (*QueryProposalsByProposerResponse_Proposal) GetPreActions

func (m *QueryProposalsByProposerResponse_Proposal) GetPreActions() []*types.Any

func (*QueryProposalsByProposerResponse_Proposal) GetProposer

func (*QueryProposalsByProposerResponse_Proposal) Marshal

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

func (*QueryProposalsByProposerResponse_Proposal) MarshalTo

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

func (*QueryProposalsByProposerResponse_Proposal) MarshalToSizedBuffer

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

func (*QueryProposalsByProposerResponse_Proposal) ProtoMessage

func (*QueryProposalsByProposerResponse_Proposal) Reset

func (*QueryProposalsByProposerResponse_Proposal) Size

func (*QueryProposalsByProposerResponse_Proposal) String

func (*QueryProposalsByProposerResponse_Proposal) Unmarshal

func (*QueryProposalsByProposerResponse_Proposal) XXX_DiscardUnknown

func (m *QueryProposalsByProposerResponse_Proposal) XXX_DiscardUnknown()

func (*QueryProposalsByProposerResponse_Proposal) XXX_Marshal

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

func (*QueryProposalsByProposerResponse_Proposal) XXX_Merge

func (*QueryProposalsByProposerResponse_Proposal) XXX_Size

func (*QueryProposalsByProposerResponse_Proposal) XXX_Unmarshal

type QueryProposalsRequest

type QueryProposalsRequest struct {
	// optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposalsRequest is the request type for the Query/Proposals RPC method.

func (*QueryProposalsRequest) Descriptor

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

func (*QueryProposalsRequest) GetPagination

func (m *QueryProposalsRequest) GetPagination() *query.PageRequest

func (*QueryProposalsRequest) Marshal

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

func (*QueryProposalsRequest) MarshalTo

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

func (*QueryProposalsRequest) MarshalToSizedBuffer

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

func (*QueryProposalsRequest) ProtoMessage

func (*QueryProposalsRequest) ProtoMessage()

func (*QueryProposalsRequest) Reset

func (m *QueryProposalsRequest) Reset()

func (*QueryProposalsRequest) Size

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

func (*QueryProposalsRequest) String

func (m *QueryProposalsRequest) String() string

func (*QueryProposalsRequest) Unmarshal

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

func (*QueryProposalsRequest) XXX_DiscardUnknown

func (m *QueryProposalsRequest) XXX_DiscardUnknown()

func (*QueryProposalsRequest) XXX_Marshal

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

func (*QueryProposalsRequest) XXX_Merge

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

func (*QueryProposalsRequest) XXX_Size

func (m *QueryProposalsRequest) XXX_Size() int

func (*QueryProposalsRequest) XXX_Unmarshal

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

type QueryProposalsResponse

type QueryProposalsResponse struct {
	// all the proposals
	Proposals []*QueryProposalsResponse_Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProposalsResponse is the response type for the Query/Proposals RPC method.

func (*QueryProposalsResponse) Descriptor

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

func (*QueryProposalsResponse) GetPagination

func (m *QueryProposalsResponse) GetPagination() *query.PageResponse

func (*QueryProposalsResponse) GetProposals

func (*QueryProposalsResponse) Marshal

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

func (*QueryProposalsResponse) MarshalTo

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

func (*QueryProposalsResponse) MarshalToSizedBuffer

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

func (*QueryProposalsResponse) ProtoMessage

func (*QueryProposalsResponse) ProtoMessage()

func (*QueryProposalsResponse) Reset

func (m *QueryProposalsResponse) Reset()

func (*QueryProposalsResponse) Size

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

func (*QueryProposalsResponse) String

func (m *QueryProposalsResponse) String() string

func (*QueryProposalsResponse) Unmarshal

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

func (*QueryProposalsResponse) XXX_DiscardUnknown

func (m *QueryProposalsResponse) XXX_DiscardUnknown()

func (*QueryProposalsResponse) XXX_Marshal

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

func (*QueryProposalsResponse) XXX_Merge

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

func (*QueryProposalsResponse) XXX_Size

func (m *QueryProposalsResponse) XXX_Size() int

func (*QueryProposalsResponse) XXX_Unmarshal

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

type QueryProposalsResponse_Proposal

type QueryProposalsResponse_Proposal struct {
	// the address of the agent in charge
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// the address of the proposer
	Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// the messages which has been executed on the submission
	PreActions []*types.Any `protobuf:"bytes,3,rep,name=pre_actions,json=preActions,proto3" json:"pre_actions,omitempty"`
	// the messages which will be executed after the actions included in Msg/Exec
	PostActions []*types.Any `protobuf:"bytes,4,rep,name=post_actions,json=postActions,proto3" json:"post_actions,omitempty"`
	// any arbitrary metadata attached to the proposal
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Proposal defines a proposal.

func (*QueryProposalsResponse_Proposal) Descriptor

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

func (*QueryProposalsResponse_Proposal) GetAgent

func (*QueryProposalsResponse_Proposal) GetMetadata

func (m *QueryProposalsResponse_Proposal) GetMetadata() string

func (*QueryProposalsResponse_Proposal) GetPostActions

func (m *QueryProposalsResponse_Proposal) GetPostActions() []*types.Any

func (*QueryProposalsResponse_Proposal) GetPreActions

func (m *QueryProposalsResponse_Proposal) GetPreActions() []*types.Any

func (*QueryProposalsResponse_Proposal) GetProposer

func (m *QueryProposalsResponse_Proposal) GetProposer() string

func (*QueryProposalsResponse_Proposal) Marshal

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

func (*QueryProposalsResponse_Proposal) MarshalTo

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

func (*QueryProposalsResponse_Proposal) MarshalToSizedBuffer

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

func (*QueryProposalsResponse_Proposal) ProtoMessage

func (*QueryProposalsResponse_Proposal) ProtoMessage()

func (*QueryProposalsResponse_Proposal) Reset

func (*QueryProposalsResponse_Proposal) Size

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

func (*QueryProposalsResponse_Proposal) String

func (*QueryProposalsResponse_Proposal) Unmarshal

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

func (*QueryProposalsResponse_Proposal) XXX_DiscardUnknown

func (m *QueryProposalsResponse_Proposal) XXX_DiscardUnknown()

func (*QueryProposalsResponse_Proposal) XXX_Marshal

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

func (*QueryProposalsResponse_Proposal) XXX_Merge

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

func (*QueryProposalsResponse_Proposal) XXX_Size

func (m *QueryProposalsResponse_Proposal) XXX_Size() int

func (*QueryProposalsResponse_Proposal) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries the module parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Agent queries an agent.
	Agent(context.Context, *QueryAgentRequest) (*QueryAgentResponse, error)
	// AgentsByCreator queries all the agents by its creator.
	AgentsByCreator(context.Context, *QueryAgentsByCreatorRequest) (*QueryAgentsByCreatorResponse, error)
	// Agents queries all the agents.
	Agents(context.Context, *QueryAgentsRequest) (*QueryAgentsResponse, error)
	// Proposal queries a proposal.
	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
	// ProposalsByProposer queries all the proposals by its proposer.
	ProposalsByProposer(context.Context, *QueryProposalsByProposerRequest) (*QueryProposalsByProposerResponse, error)
	// Proposals queries all the proposals.
	Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, 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) CreateAgent

func (*UnimplementedMsgServer) Exec

func (*UnimplementedMsgServer) SubmitProposal

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Agent

func (*UnimplementedQueryServer) Agents

func (*UnimplementedQueryServer) AgentsByCreator

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Proposal

func (*UnimplementedQueryServer) Proposals

func (*UnimplementedQueryServer) ProposalsByProposer

Jump to

Keyboard shortcuts

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