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: 17 Imported by: 0

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.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName              = "/andromeda.escrow.v1alpha1.Query/Params"
	Query_Agent_FullMethodName               = "/andromeda.escrow.v1alpha1.Query/Agent"
	Query_AgentsByCreator_FullMethodName     = "/andromeda.escrow.v1alpha1.Query/AgentsByCreator"
	Query_Agents_FullMethodName              = "/andromeda.escrow.v1alpha1.Query/Agents"
	Query_Proposal_FullMethodName            = "/andromeda.escrow.v1alpha1.Query/Proposal"
	Query_ProposalsByProposer_FullMethodName = "/andromeda.escrow.v1alpha1.Query/ProposalsByProposer"
	Query_Proposals_FullMethodName           = "/andromeda.escrow.v1alpha1.Query/Proposals"
)
View Source
const (
	Msg_UpdateParams_FullMethodName   = "/andromeda.escrow.v1alpha1.Msg/UpdateParams"
	Msg_CreateAgent_FullMethodName    = "/andromeda.escrow.v1alpha1.Msg/CreateAgent"
	Msg_SubmitProposal_FullMethodName = "/andromeda.escrow.v1alpha1.Msg/SubmitProposal"
	Msg_Exec_FullMethodName           = "/andromeda.escrow.v1alpha1.Msg/Exec"
)

Variables

View Source
var File_andromeda_escrow_v1alpha1_event_proto protoreflect.FileDescriptor
View Source
var File_andromeda_escrow_v1alpha1_genesis_proto protoreflect.FileDescriptor
View Source
var File_andromeda_escrow_v1alpha1_query_proto protoreflect.FileDescriptor
View Source
var File_andromeda_escrow_v1alpha1_tx_proto protoreflect.FileDescriptor
View Source
var File_andromeda_escrow_v1alpha1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "andromeda.escrow.v1alpha1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "CreateAgent",
			Handler:    _Msg_CreateAgent_Handler,
		},
		{
			MethodName: "SubmitProposal",
			Handler:    _Msg_SubmitProposal_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _Msg_Exec_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "andromeda/escrow/v1alpha1/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)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "andromeda.escrow.v1alpha1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Agent",
			Handler:    _Query_Agent_Handler,
		},
		{
			MethodName: "AgentsByCreator",
			Handler:    _Query_AgentsByCreator_Handler,
		},
		{
			MethodName: "Agents",
			Handler:    _Query_Agents_Handler,
		},
		{
			MethodName: "Proposal",
			Handler:    _Query_Proposal_Handler,
		},
		{
			MethodName: "ProposalsByProposer",
			Handler:    _Query_ProposalsByProposer_Handler,
		},
		{
			MethodName: "Proposals",
			Handler:    _Query_Proposals_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "andromeda/escrow/v1alpha1/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 Agent

type Agent struct {

	// the address of the creator
	Creator []byte `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

Agent defines an account taking charge of a proposal.

func (*Agent) Descriptor deprecated

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

Deprecated: Use Agent.ProtoReflect.Descriptor instead.

func (*Agent) GetCreator

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

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) ProtoReflect

func (x *Agent) ProtoReflect() protoreflect.Message

func (*Agent) Reset

func (x *Agent) Reset()

func (*Agent) String

func (x *Agent) String() string

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"`
	// contains filtered or unexported fields
}

EventCreateAgent is emitted on Msg/CreateAgent.

func (*EventCreateAgent) Descriptor deprecated

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

Deprecated: Use EventCreateAgent.ProtoReflect.Descriptor instead.

func (*EventCreateAgent) GetAgent

func (x *EventCreateAgent) GetAgent() string

func (*EventCreateAgent) GetCreator

func (x *EventCreateAgent) GetCreator() string

func (*EventCreateAgent) ProtoMessage

func (*EventCreateAgent) ProtoMessage()

func (*EventCreateAgent) ProtoReflect

func (x *EventCreateAgent) ProtoReflect() protoreflect.Message

func (*EventCreateAgent) Reset

func (x *EventCreateAgent) Reset()

func (*EventCreateAgent) String

func (x *EventCreateAgent) String() string

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 []*anypb.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

EventExec is emitted on Msg/Exec.

func (*EventExec) Descriptor deprecated

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

Deprecated: Use EventExec.ProtoReflect.Descriptor instead.

func (*EventExec) GetActions

func (x *EventExec) GetActions() []*anypb.Any

func (*EventExec) GetAgents

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

func (*EventExec) GetExecutor

func (x *EventExec) GetExecutor() string

func (*EventExec) ProtoMessage

func (*EventExec) ProtoMessage()

func (*EventExec) ProtoReflect

func (x *EventExec) ProtoReflect() protoreflect.Message

func (*EventExec) Reset

func (x *EventExec) Reset()

func (*EventExec) String

func (x *EventExec) String() string

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 []*anypb.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 []*anypb.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"`
	// contains filtered or unexported fields
}

EventSubmitProposal is emitted on Msg/SubmitProposal.

func (*EventSubmitProposal) Descriptor deprecated

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

Deprecated: Use EventSubmitProposal.ProtoReflect.Descriptor instead.

func (*EventSubmitProposal) GetAgent

func (x *EventSubmitProposal) GetAgent() string

func (*EventSubmitProposal) GetMetadata

func (x *EventSubmitProposal) GetMetadata() string

func (*EventSubmitProposal) GetPostActions

func (x *EventSubmitProposal) GetPostActions() []*anypb.Any

func (*EventSubmitProposal) GetPreActions

func (x *EventSubmitProposal) GetPreActions() []*anypb.Any

func (*EventSubmitProposal) GetProposer

func (x *EventSubmitProposal) GetProposer() string

func (*EventSubmitProposal) ProtoMessage

func (*EventSubmitProposal) ProtoMessage()

func (*EventSubmitProposal) ProtoReflect

func (x *EventSubmitProposal) ProtoReflect() protoreflect.Message

func (*EventSubmitProposal) Reset

func (x *EventSubmitProposal) Reset()

func (*EventSubmitProposal) String

func (x *EventSubmitProposal) String() string

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"`
	// contains filtered or unexported fields
}

EventUpdateParams is emitted on Msg/UpdateParams.

func (*EventUpdateParams) Descriptor deprecated

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

Deprecated: Use EventUpdateParams.ProtoReflect.Descriptor instead.

func (*EventUpdateParams) GetAuthority

func (x *EventUpdateParams) GetAuthority() string

func (*EventUpdateParams) GetMaxMetadataLength

func (x *EventUpdateParams) GetMaxMetadataLength() uint64

func (*EventUpdateParams) ProtoMessage

func (*EventUpdateParams) ProtoMessage()

func (*EventUpdateParams) ProtoReflect

func (x *EventUpdateParams) ProtoReflect() protoreflect.Message

func (*EventUpdateParams) Reset

func (x *EventUpdateParams) Reset()

func (*EventUpdateParams) String

func (x *EventUpdateParams) String() string

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"`
	// contains filtered or unexported fields
}

GenesisState defines the module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAgents

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

func (*GenesisState) GetNextAgent

func (x *GenesisState) GetNextAgent() uint64

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *GenesisState_Params

func (*GenesisState) GetProposals

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

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"`
	// contains filtered or unexported fields
}

Agent defines an account taking charge of a proposal.

func (*GenesisState_Agent) Descriptor deprecated

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

Deprecated: Use GenesisState_Agent.ProtoReflect.Descriptor instead.

func (*GenesisState_Agent) GetAddress

func (x *GenesisState_Agent) GetAddress() string

func (*GenesisState_Agent) GetCreator

func (x *GenesisState_Agent) GetCreator() string

func (*GenesisState_Agent) ProtoMessage

func (*GenesisState_Agent) ProtoMessage()

func (*GenesisState_Agent) ProtoReflect

func (x *GenesisState_Agent) ProtoReflect() protoreflect.Message

func (*GenesisState_Agent) Reset

func (x *GenesisState_Agent) Reset()

func (*GenesisState_Agent) String

func (x *GenesisState_Agent) String() string

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"`
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*GenesisState_Params) Descriptor deprecated

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

Deprecated: Use GenesisState_Params.ProtoReflect.Descriptor instead.

func (*GenesisState_Params) GetMaxMetadataLength

func (x *GenesisState_Params) GetMaxMetadataLength() uint64

func (*GenesisState_Params) ProtoMessage

func (*GenesisState_Params) ProtoMessage()

func (*GenesisState_Params) ProtoReflect

func (x *GenesisState_Params) ProtoReflect() protoreflect.Message

func (*GenesisState_Params) Reset

func (x *GenesisState_Params) Reset()

func (*GenesisState_Params) String

func (x *GenesisState_Params) String() string

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 []*anypb.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 []*anypb.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"`
	// contains filtered or unexported fields
}

Proposal defines a proposal.

func (*GenesisState_Proposal) Descriptor deprecated

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

Deprecated: Use GenesisState_Proposal.ProtoReflect.Descriptor instead.

func (*GenesisState_Proposal) GetAgent

func (x *GenesisState_Proposal) GetAgent() string

func (*GenesisState_Proposal) GetMetadata

func (x *GenesisState_Proposal) GetMetadata() string

func (*GenesisState_Proposal) GetPostActions

func (x *GenesisState_Proposal) GetPostActions() []*anypb.Any

func (*GenesisState_Proposal) GetPreActions

func (x *GenesisState_Proposal) GetPreActions() []*anypb.Any

func (*GenesisState_Proposal) GetProposer

func (x *GenesisState_Proposal) GetProposer() string

func (*GenesisState_Proposal) ProtoMessage

func (*GenesisState_Proposal) ProtoMessage()

func (*GenesisState_Proposal) ProtoReflect

func (x *GenesisState_Proposal) ProtoReflect() protoreflect.Message

func (*GenesisState_Proposal) Reset

func (x *GenesisState_Proposal) Reset()

func (*GenesisState_Proposal) String

func (x *GenesisState_Proposal) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) 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"`
	// contains filtered or unexported fields
}

MsgCreateAgent is the Msg/CreateAgent request type.

func (*MsgCreateAgent) Descriptor deprecated

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

Deprecated: Use MsgCreateAgent.ProtoReflect.Descriptor instead.

func (*MsgCreateAgent) GetCreator

func (x *MsgCreateAgent) GetCreator() string

func (*MsgCreateAgent) ProtoMessage

func (*MsgCreateAgent) ProtoMessage()

func (*MsgCreateAgent) ProtoReflect

func (x *MsgCreateAgent) ProtoReflect() protoreflect.Message

func (*MsgCreateAgent) Reset

func (x *MsgCreateAgent) Reset()

func (*MsgCreateAgent) String

func (x *MsgCreateAgent) String() string

type MsgCreateAgentResponse

type MsgCreateAgentResponse struct {

	// the address of the created agent
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateAgentResponse is the Msg/CreateAgent response type.

func (*MsgCreateAgentResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateAgentResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateAgentResponse) GetAgent

func (x *MsgCreateAgentResponse) GetAgent() string

func (*MsgCreateAgentResponse) ProtoMessage

func (*MsgCreateAgentResponse) ProtoMessage()

func (*MsgCreateAgentResponse) ProtoReflect

func (x *MsgCreateAgentResponse) ProtoReflect() protoreflect.Message

func (*MsgCreateAgentResponse) Reset

func (x *MsgCreateAgentResponse) Reset()

func (*MsgCreateAgentResponse) String

func (x *MsgCreateAgentResponse) String() string

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 []*anypb.Any `protobuf:"bytes,3,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

MsgExec is the Msg/Exec request type.

func (*MsgExec) Descriptor deprecated

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

Deprecated: Use MsgExec.ProtoReflect.Descriptor instead.

func (*MsgExec) GetActions

func (x *MsgExec) GetActions() []*anypb.Any

func (*MsgExec) GetAgents

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

func (*MsgExec) GetExecutor

func (x *MsgExec) GetExecutor() string

func (*MsgExec) ProtoMessage

func (*MsgExec) ProtoMessage()

func (*MsgExec) ProtoReflect

func (x *MsgExec) ProtoReflect() protoreflect.Message

func (*MsgExec) Reset

func (x *MsgExec) Reset()

func (*MsgExec) String

func (x *MsgExec) String() string

type MsgExecResponse

type MsgExecResponse struct {
	// contains filtered or unexported fields
}

MsgExecResponse is the Msg/Exec response type.

func (*MsgExecResponse) Descriptor deprecated

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

Deprecated: Use MsgExecResponse.ProtoReflect.Descriptor instead.

func (*MsgExecResponse) ProtoMessage

func (*MsgExecResponse) ProtoMessage()

func (*MsgExecResponse) ProtoReflect

func (x *MsgExecResponse) ProtoReflect() protoreflect.Message

func (*MsgExecResponse) Reset

func (x *MsgExecResponse) Reset()

func (*MsgExecResponse) String

func (x *MsgExecResponse) String() string

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)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

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 []*anypb.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 []*anypb.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"`
	// contains filtered or unexported fields
}

MsgSubmitProposal is the Msg/SubmitProposal request type.

func (*MsgSubmitProposal) Descriptor deprecated

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

Deprecated: Use MsgSubmitProposal.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposal) GetAgent

func (x *MsgSubmitProposal) GetAgent() string

func (*MsgSubmitProposal) GetMetadata

func (x *MsgSubmitProposal) GetMetadata() string

func (*MsgSubmitProposal) GetPostActions

func (x *MsgSubmitProposal) GetPostActions() []*anypb.Any

func (*MsgSubmitProposal) GetPreActions

func (x *MsgSubmitProposal) GetPreActions() []*anypb.Any

func (*MsgSubmitProposal) GetProposer

func (x *MsgSubmitProposal) GetProposer() string

func (*MsgSubmitProposal) ProtoMessage

func (*MsgSubmitProposal) ProtoMessage()

func (*MsgSubmitProposal) ProtoReflect

func (x *MsgSubmitProposal) ProtoReflect() protoreflect.Message

func (*MsgSubmitProposal) Reset

func (x *MsgSubmitProposal) Reset()

func (*MsgSubmitProposal) String

func (x *MsgSubmitProposal) String() string

type MsgSubmitProposalResponse

type MsgSubmitProposalResponse struct {
	// contains filtered or unexported fields
}

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

func (*MsgSubmitProposalResponse) Descriptor deprecated

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

Deprecated: Use MsgSubmitProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposalResponse) ProtoMessage

func (*MsgSubmitProposalResponse) ProtoMessage()

func (*MsgSubmitProposalResponse) ProtoReflect

func (*MsgSubmitProposalResponse) Reset

func (x *MsgSubmitProposalResponse) Reset()

func (*MsgSubmitProposalResponse) String

func (x *MsgSubmitProposalResponse) String() string

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"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetMaxMetadataLength

func (x *MsgUpdateParams) GetMaxMetadataLength() uint64

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse is the Msg/UpdateParams response type.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

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"`
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetMaxMetadataLength

func (x *Params) GetMaxMetadataLength() uint64

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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 []*anypb.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 []*anypb.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"`
	// contains filtered or unexported fields
}

Proposal defines a proposal.

func (*Proposal) Descriptor deprecated

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetMetadata

func (x *Proposal) GetMetadata() string

func (*Proposal) GetPostActions

func (x *Proposal) GetPostActions() []*anypb.Any

func (*Proposal) GetPreActions

func (x *Proposal) GetPreActions() []*anypb.Any

func (*Proposal) GetProposer

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

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

func (x *Proposal) ProtoReflect() protoreflect.Message

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

type QueryAgentRequest

type QueryAgentRequest struct {

	// the address of an agent
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryAgentRequest) Descriptor deprecated

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

Deprecated: Use QueryAgentRequest.ProtoReflect.Descriptor instead.

func (*QueryAgentRequest) GetAgent

func (x *QueryAgentRequest) GetAgent() string

func (*QueryAgentRequest) ProtoMessage

func (*QueryAgentRequest) ProtoMessage()

func (*QueryAgentRequest) ProtoReflect

func (x *QueryAgentRequest) ProtoReflect() protoreflect.Message

func (*QueryAgentRequest) Reset

func (x *QueryAgentRequest) Reset()

func (*QueryAgentRequest) String

func (x *QueryAgentRequest) String() string

type QueryAgentResponse

type QueryAgentResponse struct {

	// the corresponding agent
	Agent *QueryAgentResponse_Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryAgentResponse) Descriptor deprecated

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

Deprecated: Use QueryAgentResponse.ProtoReflect.Descriptor instead.

func (*QueryAgentResponse) GetAgent

func (*QueryAgentResponse) ProtoMessage

func (*QueryAgentResponse) ProtoMessage()

func (*QueryAgentResponse) ProtoReflect

func (x *QueryAgentResponse) ProtoReflect() protoreflect.Message

func (*QueryAgentResponse) Reset

func (x *QueryAgentResponse) Reset()

func (*QueryAgentResponse) String

func (x *QueryAgentResponse) String() string

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"`
	// contains filtered or unexported fields
}

Agent defines an account taking charge of a proposal.

func (*QueryAgentResponse_Agent) Descriptor deprecated

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

Deprecated: Use QueryAgentResponse_Agent.ProtoReflect.Descriptor instead.

func (*QueryAgentResponse_Agent) GetAddress

func (x *QueryAgentResponse_Agent) GetAddress() string

func (*QueryAgentResponse_Agent) GetCreator

func (x *QueryAgentResponse_Agent) GetCreator() string

func (*QueryAgentResponse_Agent) ProtoMessage

func (*QueryAgentResponse_Agent) ProtoMessage()

func (*QueryAgentResponse_Agent) ProtoReflect

func (x *QueryAgentResponse_Agent) ProtoReflect() protoreflect.Message

func (*QueryAgentResponse_Agent) Reset

func (x *QueryAgentResponse_Agent) Reset()

func (*QueryAgentResponse_Agent) String

func (x *QueryAgentResponse_Agent) String() string

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 *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryAgentsByCreatorRequest) Descriptor deprecated

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

Deprecated: Use QueryAgentsByCreatorRequest.ProtoReflect.Descriptor instead.

func (*QueryAgentsByCreatorRequest) GetCreator

func (x *QueryAgentsByCreatorRequest) GetCreator() string

func (*QueryAgentsByCreatorRequest) GetPagination

func (x *QueryAgentsByCreatorRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAgentsByCreatorRequest) ProtoMessage

func (*QueryAgentsByCreatorRequest) ProtoMessage()

func (*QueryAgentsByCreatorRequest) ProtoReflect

func (*QueryAgentsByCreatorRequest) Reset

func (x *QueryAgentsByCreatorRequest) Reset()

func (*QueryAgentsByCreatorRequest) String

func (x *QueryAgentsByCreatorRequest) String() string

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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryAgentsByCreatorResponse) Descriptor deprecated

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

Deprecated: Use QueryAgentsByCreatorResponse.ProtoReflect.Descriptor instead.

func (*QueryAgentsByCreatorResponse) GetAgents

func (*QueryAgentsByCreatorResponse) GetPagination

func (*QueryAgentsByCreatorResponse) ProtoMessage

func (*QueryAgentsByCreatorResponse) ProtoMessage()

func (*QueryAgentsByCreatorResponse) ProtoReflect

func (*QueryAgentsByCreatorResponse) Reset

func (x *QueryAgentsByCreatorResponse) Reset()

func (*QueryAgentsByCreatorResponse) String

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"`
	// contains filtered or unexported fields
}

Agent defines an account taking charge of a proposal.

func (*QueryAgentsByCreatorResponse_Agent) Descriptor deprecated

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

Deprecated: Use QueryAgentsByCreatorResponse_Agent.ProtoReflect.Descriptor instead.

func (*QueryAgentsByCreatorResponse_Agent) GetAddress

func (*QueryAgentsByCreatorResponse_Agent) GetCreator

func (*QueryAgentsByCreatorResponse_Agent) ProtoMessage

func (*QueryAgentsByCreatorResponse_Agent) ProtoMessage()

func (*QueryAgentsByCreatorResponse_Agent) ProtoReflect

func (*QueryAgentsByCreatorResponse_Agent) Reset

func (*QueryAgentsByCreatorResponse_Agent) String

type QueryAgentsRequest

type QueryAgentsRequest struct {

	// optional pagination for the request
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryAgentsRequest) Descriptor deprecated

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

Deprecated: Use QueryAgentsRequest.ProtoReflect.Descriptor instead.

func (*QueryAgentsRequest) GetPagination

func (x *QueryAgentsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAgentsRequest) ProtoMessage

func (*QueryAgentsRequest) ProtoMessage()

func (*QueryAgentsRequest) ProtoReflect

func (x *QueryAgentsRequest) ProtoReflect() protoreflect.Message

func (*QueryAgentsRequest) Reset

func (x *QueryAgentsRequest) Reset()

func (*QueryAgentsRequest) String

func (x *QueryAgentsRequest) String() string

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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryAgentsResponse) Descriptor deprecated

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

Deprecated: Use QueryAgentsResponse.ProtoReflect.Descriptor instead.

func (*QueryAgentsResponse) GetAgents

func (*QueryAgentsResponse) GetPagination

func (x *QueryAgentsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAgentsResponse) ProtoMessage

func (*QueryAgentsResponse) ProtoMessage()

func (*QueryAgentsResponse) ProtoReflect

func (x *QueryAgentsResponse) ProtoReflect() protoreflect.Message

func (*QueryAgentsResponse) Reset

func (x *QueryAgentsResponse) Reset()

func (*QueryAgentsResponse) String

func (x *QueryAgentsResponse) String() string

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"`
	// contains filtered or unexported fields
}

Agent defines an account taking charge of a proposal.

func (*QueryAgentsResponse_Agent) Descriptor deprecated

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

Deprecated: Use QueryAgentsResponse_Agent.ProtoReflect.Descriptor instead.

func (*QueryAgentsResponse_Agent) GetAddress

func (x *QueryAgentsResponse_Agent) GetAddress() string

func (*QueryAgentsResponse_Agent) GetCreator

func (x *QueryAgentsResponse_Agent) GetCreator() string

func (*QueryAgentsResponse_Agent) ProtoMessage

func (*QueryAgentsResponse_Agent) ProtoMessage()

func (*QueryAgentsResponse_Agent) ProtoReflect

func (*QueryAgentsResponse_Agent) Reset

func (x *QueryAgentsResponse_Agent) Reset()

func (*QueryAgentsResponse_Agent) String

func (x *QueryAgentsResponse_Agent) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

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

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetMaxMetadataLength

func (x *QueryParamsResponse) GetMaxMetadataLength() uint64

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryProposalRequest

type QueryProposalRequest struct {

	// the address of an agent in charge
	Agent string `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryProposalRequest) Descriptor deprecated

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

Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalRequest) GetAgent

func (x *QueryProposalRequest) GetAgent() string

func (*QueryProposalRequest) ProtoMessage

func (*QueryProposalRequest) ProtoMessage()

func (*QueryProposalRequest) ProtoReflect

func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message

func (*QueryProposalRequest) Reset

func (x *QueryProposalRequest) Reset()

func (*QueryProposalRequest) String

func (x *QueryProposalRequest) String() string

type QueryProposalResponse

type QueryProposalResponse struct {

	// the corresponding proposal
	Proposal *QueryProposalResponse_Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryProposalResponse) Descriptor deprecated

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

Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalResponse) GetProposal

func (*QueryProposalResponse) ProtoMessage

func (*QueryProposalResponse) ProtoMessage()

func (*QueryProposalResponse) ProtoReflect

func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message

func (*QueryProposalResponse) Reset

func (x *QueryProposalResponse) Reset()

func (*QueryProposalResponse) String

func (x *QueryProposalResponse) String() string

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 []*anypb.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 []*anypb.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"`
	// contains filtered or unexported fields
}

Proposal defines a proposal.

func (*QueryProposalResponse_Proposal) Descriptor deprecated

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

Deprecated: Use QueryProposalResponse_Proposal.ProtoReflect.Descriptor instead.

func (*QueryProposalResponse_Proposal) GetAgent

func (x *QueryProposalResponse_Proposal) GetAgent() string

func (*QueryProposalResponse_Proposal) GetMetadata

func (x *QueryProposalResponse_Proposal) GetMetadata() string

func (*QueryProposalResponse_Proposal) GetPostActions

func (x *QueryProposalResponse_Proposal) GetPostActions() []*anypb.Any

func (*QueryProposalResponse_Proposal) GetPreActions

func (x *QueryProposalResponse_Proposal) GetPreActions() []*anypb.Any

func (*QueryProposalResponse_Proposal) GetProposer

func (x *QueryProposalResponse_Proposal) GetProposer() string

func (*QueryProposalResponse_Proposal) ProtoMessage

func (*QueryProposalResponse_Proposal) ProtoMessage()

func (*QueryProposalResponse_Proposal) ProtoReflect

func (*QueryProposalResponse_Proposal) Reset

func (x *QueryProposalResponse_Proposal) Reset()

func (*QueryProposalResponse_Proposal) String

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 *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryProposalsByProposerRequest) Descriptor deprecated

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

Deprecated: Use QueryProposalsByProposerRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalsByProposerRequest) GetPagination

func (*QueryProposalsByProposerRequest) GetProposer

func (x *QueryProposalsByProposerRequest) GetProposer() string

func (*QueryProposalsByProposerRequest) ProtoMessage

func (*QueryProposalsByProposerRequest) ProtoMessage()

func (*QueryProposalsByProposerRequest) ProtoReflect

func (*QueryProposalsByProposerRequest) Reset

func (*QueryProposalsByProposerRequest) String

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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryProposalsByProposerResponse) Descriptor deprecated

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

Deprecated: Use QueryProposalsByProposerResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalsByProposerResponse) GetPagination

func (*QueryProposalsByProposerResponse) GetProposals

func (*QueryProposalsByProposerResponse) ProtoMessage

func (*QueryProposalsByProposerResponse) ProtoMessage()

func (*QueryProposalsByProposerResponse) ProtoReflect

func (*QueryProposalsByProposerResponse) Reset

func (*QueryProposalsByProposerResponse) String

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 []*anypb.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 []*anypb.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"`
	// contains filtered or unexported fields
}

Proposal defines a proposal.

func (*QueryProposalsByProposerResponse_Proposal) Descriptor deprecated

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

Deprecated: Use QueryProposalsByProposerResponse_Proposal.ProtoReflect.Descriptor instead.

func (*QueryProposalsByProposerResponse_Proposal) GetAgent

func (*QueryProposalsByProposerResponse_Proposal) GetMetadata

func (*QueryProposalsByProposerResponse_Proposal) GetPostActions

func (x *QueryProposalsByProposerResponse_Proposal) GetPostActions() []*anypb.Any

func (*QueryProposalsByProposerResponse_Proposal) GetPreActions

func (x *QueryProposalsByProposerResponse_Proposal) GetPreActions() []*anypb.Any

func (*QueryProposalsByProposerResponse_Proposal) GetProposer

func (*QueryProposalsByProposerResponse_Proposal) ProtoMessage

func (*QueryProposalsByProposerResponse_Proposal) ProtoReflect

func (*QueryProposalsByProposerResponse_Proposal) Reset

func (*QueryProposalsByProposerResponse_Proposal) String

type QueryProposalsRequest

type QueryProposalsRequest struct {

	// optional pagination for the request
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryProposalsRequest) Descriptor deprecated

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

Deprecated: Use QueryProposalsRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalsRequest) GetPagination

func (x *QueryProposalsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryProposalsRequest) ProtoMessage

func (*QueryProposalsRequest) ProtoMessage()

func (*QueryProposalsRequest) ProtoReflect

func (x *QueryProposalsRequest) ProtoReflect() protoreflect.Message

func (*QueryProposalsRequest) Reset

func (x *QueryProposalsRequest) Reset()

func (*QueryProposalsRequest) String

func (x *QueryProposalsRequest) String() string

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 *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryProposalsResponse) Descriptor deprecated

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

Deprecated: Use QueryProposalsResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalsResponse) GetPagination

func (x *QueryProposalsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryProposalsResponse) GetProposals

func (*QueryProposalsResponse) ProtoMessage

func (*QueryProposalsResponse) ProtoMessage()

func (*QueryProposalsResponse) ProtoReflect

func (x *QueryProposalsResponse) ProtoReflect() protoreflect.Message

func (*QueryProposalsResponse) Reset

func (x *QueryProposalsResponse) Reset()

func (*QueryProposalsResponse) String

func (x *QueryProposalsResponse) String() string

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 []*anypb.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 []*anypb.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"`
	// contains filtered or unexported fields
}

Proposal defines a proposal.

func (*QueryProposalsResponse_Proposal) Descriptor deprecated

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

Deprecated: Use QueryProposalsResponse_Proposal.ProtoReflect.Descriptor instead.

func (*QueryProposalsResponse_Proposal) GetAgent

func (*QueryProposalsResponse_Proposal) GetMetadata

func (x *QueryProposalsResponse_Proposal) GetMetadata() string

func (*QueryProposalsResponse_Proposal) GetPostActions

func (x *QueryProposalsResponse_Proposal) GetPostActions() []*anypb.Any

func (*QueryProposalsResponse_Proposal) GetPreActions

func (x *QueryProposalsResponse_Proposal) GetPreActions() []*anypb.Any

func (*QueryProposalsResponse_Proposal) GetProposer

func (x *QueryProposalsResponse_Proposal) GetProposer() string

func (*QueryProposalsResponse_Proposal) ProtoMessage

func (*QueryProposalsResponse_Proposal) ProtoMessage()

func (*QueryProposalsResponse_Proposal) ProtoReflect

func (*QueryProposalsResponse_Proposal) Reset

func (*QueryProposalsResponse_Proposal) String

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)
	// 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) CreateAgent

func (UnimplementedMsgServer) Exec

func (UnimplementedMsgServer) SubmitProposal

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Agent

func (UnimplementedQueryServer) Agents

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Proposal

func (UnimplementedQueryServer) Proposals

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.

Jump to

Keyboard shortcuts

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