actv1beta1

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 22 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.

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           = "/warden.act.v1beta1.Query/Params"
	Query_Actions_FullMethodName          = "/warden.act.v1beta1.Query/Actions"
	Query_Templates_FullMethodName        = "/warden.act.v1beta1.Query/Templates"
	Query_SimulateTemplate_FullMethodName = "/warden.act.v1beta1.Query/SimulateTemplate"
	Query_TemplateById_FullMethodName     = "/warden.act.v1beta1.Query/TemplateById"
	Query_ActionsByAddress_FullMethodName = "/warden.act.v1beta1.Query/ActionsByAddress"
	Query_ActionById_FullMethodName       = "/warden.act.v1beta1.Query/ActionById"
)
View Source
const (
	Msg_UpdateParams_FullMethodName   = "/warden.act.v1beta1.Msg/UpdateParams"
	Msg_NewAction_FullMethodName      = "/warden.act.v1beta1.Msg/NewAction"
	Msg_CheckAction_FullMethodName    = "/warden.act.v1beta1.Msg/CheckAction"
	Msg_NewTemplate_FullMethodName    = "/warden.act.v1beta1.Msg/NewTemplate"
	Msg_UpdateTemplate_FullMethodName = "/warden.act.v1beta1.Msg/UpdateTemplate"
	Msg_RevokeAction_FullMethodName   = "/warden.act.v1beta1.Msg/RevokeAction"
	Msg_VoteForAction_FullMethodName  = "/warden.act.v1beta1.Msg/VoteForAction"
)

Variables

View Source
var (
	ActionStatus_name = map[int32]string{
		0: "ACTION_STATUS_UNSPECIFIED",
		1: "ACTION_STATUS_PENDING",
		2: "ACTION_STATUS_COMPLETED",
		3: "ACTION_STATUS_REVOKED",
		4: "ACTION_STATUS_TIMEOUT",
	}
	ActionStatus_value = map[string]int32{
		"ACTION_STATUS_UNSPECIFIED": 0,
		"ACTION_STATUS_PENDING":     1,
		"ACTION_STATUS_COMPLETED":   2,
		"ACTION_STATUS_REVOKED":     3,
		"ACTION_STATUS_TIMEOUT":     4,
	}
)

Enum value maps for ActionStatus.

View Source
var (
	ActionVoteType_name = map[int32]string{
		0: "VOTE_TYPE_UNSPECIFIED",
		1: "VOTE_TYPE_APPROVED",
		2: "VOTE_TYPE_REJECTED",
	}
	ActionVoteType_value = map[string]int32{
		"VOTE_TYPE_UNSPECIFIED": 0,
		"VOTE_TYPE_APPROVED":    1,
		"VOTE_TYPE_REJECTED":    2,
	}
)

Enum value maps for ActionVoteType.

View Source
var File_warden_act_v1beta1_action_proto protoreflect.FileDescriptor
View Source
var File_warden_act_v1beta1_action_vote_proto protoreflect.FileDescriptor
View Source
var File_warden_act_v1beta1_events_proto protoreflect.FileDescriptor
View Source
var File_warden_act_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_warden_act_v1beta1_params_proto protoreflect.FileDescriptor
View Source
var File_warden_act_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_warden_act_v1beta1_template_proto protoreflect.FileDescriptor
View Source
var File_warden_act_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "warden.act.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "NewAction",
			Handler:    _Msg_NewAction_Handler,
		},
		{
			MethodName: "CheckAction",
			Handler:    _Msg_CheckAction_Handler,
		},
		{
			MethodName: "NewTemplate",
			Handler:    _Msg_NewTemplate_Handler,
		},
		{
			MethodName: "UpdateTemplate",
			Handler:    _Msg_UpdateTemplate_Handler,
		},
		{
			MethodName: "RevokeAction",
			Handler:    _Msg_RevokeAction_Handler,
		},
		{
			MethodName: "VoteForAction",
			Handler:    _Msg_VoteForAction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "warden/act/v1beta1/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: "warden.act.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Actions",
			Handler:    _Query_Actions_Handler,
		},
		{
			MethodName: "Templates",
			Handler:    _Query_Templates_Handler,
		},
		{
			MethodName: "SimulateTemplate",
			Handler:    _Query_SimulateTemplate_Handler,
		},
		{
			MethodName: "TemplateById",
			Handler:    _Query_TemplateById_Handler,
		},
		{
			MethodName: "ActionsByAddress",
			Handler:    _Query_ActionsByAddress_Handler,
		},
		{
			MethodName: "ActionById",
			Handler:    _Query_ActionById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "warden/act/v1beta1/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 Action

type Action struct {
	Id     uint64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Status ActionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"`
	// Original message that started the action, it will be executed when the
	// template is satisfied.
	Msg *anypb.Any `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// Result of the action, it will be set when the action is completed.
	Result  *anypb.Any `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
	Creator string     `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"`
	// TimeoutHeight is the block height up until this action can be executed.
	TimeoutHeight uint64 `protobuf:"varint,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
	// created_at is a timestamp specifying when the action was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// updated_at is a timestamp specifying when the action's status was updated
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// mentions is a list of addresses that are mentioned in the template.
	Mentions []string `protobuf:"bytes,9,rep,name=mentions,proto3" json:"mentions,omitempty"`
	// The expression to be evaluated for approval.
	ApproveExpression *ast.Expression `protobuf:"bytes,10,opt,name=approve_expression,json=approveExpression,proto3" json:"approve_expression,omitempty"`
	// The expression to be evaluated for rejection.
	RejectExpression *ast.Expression `protobuf:"bytes,11,opt,name=reject_expression,json=rejectExpression,proto3" json:"reject_expression,omitempty"`
	// The votes accepted from the voting participants.
	Votes []*ActionVote `protobuf:"bytes,12,rep,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

Action wraps a message that will be executed when its associated template is satisfied.

func (*Action) Descriptor deprecated

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetApproveExpression added in v0.5.0

func (x *Action) GetApproveExpression() *ast.Expression

func (*Action) GetCreatedAt

func (x *Action) GetCreatedAt() *timestamppb.Timestamp

func (*Action) GetCreator

func (x *Action) GetCreator() string

func (*Action) GetId

func (x *Action) GetId() uint64

func (*Action) GetMentions

func (x *Action) GetMentions() []string

func (*Action) GetMsg

func (x *Action) GetMsg() *anypb.Any

func (*Action) GetRejectExpression added in v0.5.0

func (x *Action) GetRejectExpression() *ast.Expression

func (*Action) GetResult

func (x *Action) GetResult() *anypb.Any

func (*Action) GetStatus

func (x *Action) GetStatus() ActionStatus

func (*Action) GetTimeoutHeight

func (x *Action) GetTimeoutHeight() uint64

func (*Action) GetUpdatedAt

func (x *Action) GetUpdatedAt() *timestamppb.Timestamp

func (*Action) GetVotes added in v0.5.0

func (x *Action) GetVotes() []*ActionVote

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) ProtoReflect

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

func (*Action) Reset

func (x *Action) Reset()

func (*Action) String

func (x *Action) String() string

type ActionStatus

type ActionStatus int32

Current status of an action.

const (
	// Unspecified status.
	ActionStatus_ACTION_STATUS_UNSPECIFIED ActionStatus = 0
	// Action is pending approval. This is the initial status.
	ActionStatus_ACTION_STATUS_PENDING ActionStatus = 1
	// Template has been satified, action has been executed.
	ActionStatus_ACTION_STATUS_COMPLETED ActionStatus = 2
	// Action has been revoked by its creator.
	ActionStatus_ACTION_STATUS_REVOKED ActionStatus = 3
	// Action has been rejected since TimeoutHeight has been reached.
	ActionStatus_ACTION_STATUS_TIMEOUT ActionStatus = 4
)

func (ActionStatus) Descriptor

func (ActionStatus) Enum

func (x ActionStatus) Enum() *ActionStatus

func (ActionStatus) EnumDescriptor deprecated

func (ActionStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActionStatus.Descriptor instead.

func (ActionStatus) Number

func (ActionStatus) String

func (x ActionStatus) String() string

func (ActionStatus) Type

type ActionVote added in v0.5.0

type ActionVote struct {

	// participant is the address of the voter.
	Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	// voted_at is a timestamp specifying when the voter voted on the action.
	VotedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=voted_at,json=votedAt,proto3" json:"voted_at,omitempty"`
	// vote is the type of the vote.
	VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"`
	// contains filtered or unexported fields
}

func (*ActionVote) Descriptor deprecated added in v0.5.0

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

Deprecated: Use ActionVote.ProtoReflect.Descriptor instead.

func (*ActionVote) GetParticipant added in v0.5.0

func (x *ActionVote) GetParticipant() string

func (*ActionVote) GetVoteType added in v0.5.0

func (x *ActionVote) GetVoteType() ActionVoteType

func (*ActionVote) GetVotedAt added in v0.5.0

func (x *ActionVote) GetVotedAt() *timestamppb.Timestamp

func (*ActionVote) ProtoMessage added in v0.5.0

func (*ActionVote) ProtoMessage()

func (*ActionVote) ProtoReflect added in v0.5.0

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

func (*ActionVote) Reset added in v0.5.0

func (x *ActionVote) Reset()

func (*ActionVote) String added in v0.5.0

func (x *ActionVote) String() string

type ActionVoteType added in v0.5.0

type ActionVoteType int32

Type of a vote.

const (
	// Unspecified vote type.
	ActionVoteType_VOTE_TYPE_UNSPECIFIED ActionVoteType = 0
	// Positive vote for an action.
	ActionVoteType_VOTE_TYPE_APPROVED ActionVoteType = 1
	// Negative vote for an action.
	ActionVoteType_VOTE_TYPE_REJECTED ActionVoteType = 2
)

func (ActionVoteType) Descriptor added in v0.5.0

func (ActionVoteType) Enum added in v0.5.0

func (x ActionVoteType) Enum() *ActionVoteType

func (ActionVoteType) EnumDescriptor deprecated added in v0.5.0

func (ActionVoteType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ActionVoteType.Descriptor instead.

func (ActionVoteType) Number added in v0.5.0

func (ActionVoteType) String added in v0.5.0

func (x ActionVoteType) String() string

func (ActionVoteType) Type added in v0.5.0

type EventActionPruned added in v0.5.0

type EventActionPruned struct {

	// id of action
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

EventActionPruned is emitted when an Action is pruned in `Completed`, `Revoked`, `Pending` or `Timeout` states and won't be processed further

func (*EventActionPruned) Descriptor deprecated added in v0.5.0

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

Deprecated: Use EventActionPruned.ProtoReflect.Descriptor instead.

func (*EventActionPruned) GetId added in v0.5.0

func (x *EventActionPruned) GetId() uint64

func (*EventActionPruned) ProtoMessage added in v0.5.0

func (*EventActionPruned) ProtoMessage()

func (*EventActionPruned) ProtoReflect added in v0.5.0

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

func (*EventActionPruned) Reset added in v0.5.0

func (x *EventActionPruned) Reset()

func (*EventActionPruned) String added in v0.5.0

func (x *EventActionPruned) String() string

type EventActionStateChange

type EventActionStateChange struct {

	// id of action
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// previous_status is the previous status of the action
	PreviousStatus ActionStatus `` /* 141-byte string literal not displayed */
	// new_status is the new status of the action
	NewStatus ActionStatus `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

EventActionStateChange is emitted when an Action is in a new state

func (*EventActionStateChange) Descriptor deprecated

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

Deprecated: Use EventActionStateChange.ProtoReflect.Descriptor instead.

func (*EventActionStateChange) GetId

func (x *EventActionStateChange) GetId() uint64

func (*EventActionStateChange) GetNewStatus

func (x *EventActionStateChange) GetNewStatus() ActionStatus

func (*EventActionStateChange) GetPreviousStatus

func (x *EventActionStateChange) GetPreviousStatus() ActionStatus

func (*EventActionStateChange) ProtoMessage

func (*EventActionStateChange) ProtoMessage()

func (*EventActionStateChange) ProtoReflect

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

func (*EventActionStateChange) Reset

func (x *EventActionStateChange) Reset()

func (*EventActionStateChange) String

func (x *EventActionStateChange) String() string

type EventActionVoted added in v0.5.0

type EventActionVoted struct {

	// id of action
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// address of the account that participated in voting
	Participant string `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"`
	// type of the vote
	VoteType ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"`
	// contains filtered or unexported fields
}

EventActionVoted is emitted when an Action is voted on

func (*EventActionVoted) Descriptor deprecated added in v0.5.0

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

Deprecated: Use EventActionVoted.ProtoReflect.Descriptor instead.

func (*EventActionVoted) GetId added in v0.5.0

func (x *EventActionVoted) GetId() uint64

func (*EventActionVoted) GetParticipant added in v0.5.0

func (x *EventActionVoted) GetParticipant() string

func (*EventActionVoted) GetVoteType added in v0.5.0

func (x *EventActionVoted) GetVoteType() ActionVoteType

func (*EventActionVoted) ProtoMessage added in v0.5.0

func (*EventActionVoted) ProtoMessage()

func (*EventActionVoted) ProtoReflect added in v0.5.0

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

func (*EventActionVoted) Reset added in v0.5.0

func (x *EventActionVoted) Reset()

func (*EventActionVoted) String added in v0.5.0

func (x *EventActionVoted) String() string

type EventCreateAction

type EventCreateAction struct {

	// id of the new action
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// creator is the address that created the action
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

EventCreateAction is emitted when an Action is created

func (*EventCreateAction) Descriptor deprecated

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

Deprecated: Use EventCreateAction.ProtoReflect.Descriptor instead.

func (*EventCreateAction) GetCreator

func (x *EventCreateAction) GetCreator() string

func (*EventCreateAction) GetId

func (x *EventCreateAction) GetId() uint64

func (*EventCreateAction) ProtoMessage

func (*EventCreateAction) ProtoMessage()

func (*EventCreateAction) ProtoReflect

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

func (*EventCreateAction) Reset

func (x *EventCreateAction) Reset()

func (*EventCreateAction) String

func (x *EventCreateAction) String() string

type EventCreateTemplate added in v0.5.0

type EventCreateTemplate struct {

	// id of the new intent
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// creator is the address that created the intent
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

EventCreateTemplate is emitted on Template creation

func (*EventCreateTemplate) Descriptor deprecated added in v0.5.0

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

Deprecated: Use EventCreateTemplate.ProtoReflect.Descriptor instead.

func (*EventCreateTemplate) GetCreator added in v0.5.0

func (x *EventCreateTemplate) GetCreator() string

func (*EventCreateTemplate) GetId added in v0.5.0

func (x *EventCreateTemplate) GetId() uint64

func (*EventCreateTemplate) ProtoMessage added in v0.5.0

func (*EventCreateTemplate) ProtoMessage()

func (*EventCreateTemplate) ProtoReflect added in v0.5.0

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

func (*EventCreateTemplate) Reset added in v0.5.0

func (x *EventCreateTemplate) Reset()

func (*EventCreateTemplate) String added in v0.5.0

func (x *EventCreateTemplate) String() string

type EventUpdateTemplate added in v0.5.0

type EventUpdateTemplate struct {

	// id of updated intent
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateTemplate is emitted when Template is updated

func (*EventUpdateTemplate) Descriptor deprecated added in v0.5.0

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

Deprecated: Use EventUpdateTemplate.ProtoReflect.Descriptor instead.

func (*EventUpdateTemplate) GetId added in v0.5.0

func (x *EventUpdateTemplate) GetId() uint64

func (*EventUpdateTemplate) ProtoMessage added in v0.5.0

func (*EventUpdateTemplate) ProtoMessage()

func (*EventUpdateTemplate) ProtoReflect added in v0.5.0

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

func (*EventUpdateTemplate) Reset added in v0.5.0

func (x *EventUpdateTemplate) Reset()

func (*EventUpdateTemplate) String added in v0.5.0

func (x *EventUpdateTemplate) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of the module.
	Params    *Params     `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Actions   []*Action   `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	Templates []*Template `protobuf:"bytes,3,rep,name=templates,proto3" json:"templates,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the act module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetActions added in v0.4.1

func (x *GenesisState) GetActions() []*Action

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetTemplates added in v0.5.0

func (x *GenesisState) GetTemplates() []*Template

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 MsgCheckAction

type MsgCheckAction struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ActionId uint64 `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCheckAction) Descriptor deprecated

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

Deprecated: Use MsgCheckAction.ProtoReflect.Descriptor instead.

func (*MsgCheckAction) GetActionId

func (x *MsgCheckAction) GetActionId() uint64

func (*MsgCheckAction) GetCreator

func (x *MsgCheckAction) GetCreator() string

func (*MsgCheckAction) ProtoMessage

func (*MsgCheckAction) ProtoMessage()

func (*MsgCheckAction) ProtoReflect

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

func (*MsgCheckAction) Reset

func (x *MsgCheckAction) Reset()

func (*MsgCheckAction) String

func (x *MsgCheckAction) String() string

type MsgCheckActionResponse

type MsgCheckActionResponse struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgCheckActionResponse) Descriptor deprecated

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

Deprecated: Use MsgCheckActionResponse.ProtoReflect.Descriptor instead.

func (*MsgCheckActionResponse) GetStatus

func (x *MsgCheckActionResponse) GetStatus() string

func (*MsgCheckActionResponse) ProtoMessage

func (*MsgCheckActionResponse) ProtoMessage()

func (*MsgCheckActionResponse) ProtoReflect

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

func (*MsgCheckActionResponse) Reset

func (x *MsgCheckActionResponse) Reset()

func (*MsgCheckActionResponse) String

func (x *MsgCheckActionResponse) String() string

type MsgClient

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// NewAction creates a new Action.
	NewAction(ctx context.Context, in *MsgNewAction, opts ...grpc.CallOption) (*MsgNewActionResponse, error)
	// Checks a pending action and executes it if its in a valid state.
	CheckAction(ctx context.Context, in *MsgCheckAction, opts ...grpc.CallOption) (*MsgCheckActionResponse, error)
	// Create a new Template.
	NewTemplate(ctx context.Context, in *MsgNewTemplate, opts ...grpc.CallOption) (*MsgNewTemplateResponse, error)
	// Update an existing act name and definition.
	UpdateTemplate(ctx context.Context, in *MsgUpdateTemplate, opts ...grpc.CallOption) (*MsgUpdateTemplateResponse, error)
	// Revoke an existing Action while in pending state.
	RevokeAction(ctx context.Context, in *MsgRevokeAction, opts ...grpc.CallOption) (*MsgRevokeActionResponse, error)
	// Vote for or against a particular Action.
	VoteForAction(ctx context.Context, in *MsgVoteForAction, opts ...grpc.CallOption) (*MsgVoteForActionResponse, 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 MsgNewAction

type MsgNewAction struct {

	// creator is the address of the requester of this action.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// message is the arbitrary message to be executed when the action is ready.
	Message *anypb.Any `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// action_timeout_height is the block height up until this action can be executed.
	ActionTimeoutHeight uint64 `protobuf:"varint,3,opt,name=action_timeout_height,json=actionTimeoutHeight,proto3" json:"action_timeout_height,omitempty"`
	// expected_approve_expression is the definition of expected approval expression the action is created with
	ExpectedApproveExpression string `` /* 138-byte string literal not displayed */
	// expected_reject_expression is the definition of expected reject expression the action is created with
	ExpectedRejectExpression string `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MsgNewAction) Descriptor deprecated

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

Deprecated: Use MsgNewAction.ProtoReflect.Descriptor instead.

func (*MsgNewAction) GetActionTimeoutHeight

func (x *MsgNewAction) GetActionTimeoutHeight() uint64

func (*MsgNewAction) GetCreator

func (x *MsgNewAction) GetCreator() string

func (*MsgNewAction) GetExpectedApproveExpression added in v0.5.0

func (x *MsgNewAction) GetExpectedApproveExpression() string

func (*MsgNewAction) GetExpectedRejectExpression added in v0.5.0

func (x *MsgNewAction) GetExpectedRejectExpression() string

func (*MsgNewAction) GetMessage

func (x *MsgNewAction) GetMessage() *anypb.Any

func (*MsgNewAction) ProtoMessage

func (*MsgNewAction) ProtoMessage()

func (*MsgNewAction) ProtoReflect

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

func (*MsgNewAction) Reset

func (x *MsgNewAction) Reset()

func (*MsgNewAction) String

func (x *MsgNewAction) String() string

type MsgNewActionResponse

type MsgNewActionResponse struct {

	// id is the unique id of the action.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgNewActionResponse) Descriptor deprecated

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

Deprecated: Use MsgNewActionResponse.ProtoReflect.Descriptor instead.

func (*MsgNewActionResponse) GetId

func (x *MsgNewActionResponse) GetId() uint64

func (*MsgNewActionResponse) ProtoMessage

func (*MsgNewActionResponse) ProtoMessage()

func (*MsgNewActionResponse) ProtoReflect

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

func (*MsgNewActionResponse) Reset

func (x *MsgNewActionResponse) Reset()

func (*MsgNewActionResponse) String

func (x *MsgNewActionResponse) String() string

type MsgNewTemplate added in v0.5.0

type MsgNewTemplate struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Definition string `protobuf:"bytes,3,opt,name=definition,proto3" json:"definition,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgNewTemplate) Descriptor deprecated added in v0.5.0

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

Deprecated: Use MsgNewTemplate.ProtoReflect.Descriptor instead.

func (*MsgNewTemplate) GetCreator added in v0.5.0

func (x *MsgNewTemplate) GetCreator() string

func (*MsgNewTemplate) GetDefinition added in v0.5.0

func (x *MsgNewTemplate) GetDefinition() string

func (*MsgNewTemplate) GetName added in v0.5.0

func (x *MsgNewTemplate) GetName() string

func (*MsgNewTemplate) ProtoMessage added in v0.5.0

func (*MsgNewTemplate) ProtoMessage()

func (*MsgNewTemplate) ProtoReflect added in v0.5.0

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

func (*MsgNewTemplate) Reset added in v0.5.0

func (x *MsgNewTemplate) Reset()

func (*MsgNewTemplate) String added in v0.5.0

func (x *MsgNewTemplate) String() string

type MsgNewTemplateResponse added in v0.5.0

type MsgNewTemplateResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgNewTemplateResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use MsgNewTemplateResponse.ProtoReflect.Descriptor instead.

func (*MsgNewTemplateResponse) GetId added in v0.5.0

func (x *MsgNewTemplateResponse) GetId() uint64

func (*MsgNewTemplateResponse) ProtoMessage added in v0.5.0

func (*MsgNewTemplateResponse) ProtoMessage()

func (*MsgNewTemplateResponse) ProtoReflect added in v0.5.0

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

func (*MsgNewTemplateResponse) Reset added in v0.5.0

func (x *MsgNewTemplateResponse) Reset()

func (*MsgNewTemplateResponse) String added in v0.5.0

func (x *MsgNewTemplateResponse) String() string

type MsgRevokeAction

type MsgRevokeAction struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ActionId uint64 `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgRevokeAction) Descriptor deprecated

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

Deprecated: Use MsgRevokeAction.ProtoReflect.Descriptor instead.

func (*MsgRevokeAction) GetActionId

func (x *MsgRevokeAction) GetActionId() uint64

func (*MsgRevokeAction) GetCreator

func (x *MsgRevokeAction) GetCreator() string

func (*MsgRevokeAction) ProtoMessage

func (*MsgRevokeAction) ProtoMessage()

func (*MsgRevokeAction) ProtoReflect

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

func (*MsgRevokeAction) Reset

func (x *MsgRevokeAction) Reset()

func (*MsgRevokeAction) String

func (x *MsgRevokeAction) String() string

type MsgRevokeActionResponse

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

func (*MsgRevokeActionResponse) Descriptor deprecated

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

Deprecated: Use MsgRevokeActionResponse.ProtoReflect.Descriptor instead.

func (*MsgRevokeActionResponse) ProtoMessage

func (*MsgRevokeActionResponse) ProtoMessage()

func (*MsgRevokeActionResponse) ProtoReflect

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

func (*MsgRevokeActionResponse) Reset

func (x *MsgRevokeActionResponse) Reset()

func (*MsgRevokeActionResponse) String

func (x *MsgRevokeActionResponse) String() string

type MsgServer

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// NewAction creates a new Action.
	NewAction(context.Context, *MsgNewAction) (*MsgNewActionResponse, error)
	// Checks a pending action and executes it if its in a valid state.
	CheckAction(context.Context, *MsgCheckAction) (*MsgCheckActionResponse, error)
	// Create a new Template.
	NewTemplate(context.Context, *MsgNewTemplate) (*MsgNewTemplateResponse, error)
	// Update an existing act name and definition.
	UpdateTemplate(context.Context, *MsgUpdateTemplate) (*MsgUpdateTemplateResponse, error)
	// Revoke an existing Action while in pending state.
	RevokeAction(context.Context, *MsgRevokeAction) (*MsgRevokeActionResponse, error)
	// Vote for or against a particular Action.
	VoteForAction(context.Context, *MsgVoteForAction) (*MsgVoteForActionResponse, error)
	// contains filtered or unexported methods
}

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

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,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) GetParams

func (x *MsgUpdateParams) GetParams() *Params

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 defines the response structure for executing a MsgUpdateParams message.

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 MsgUpdateTemplate added in v0.5.0

type MsgUpdateTemplate struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id         uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Name       string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Definition string `protobuf:"bytes,4,opt,name=definition,proto3" json:"definition,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUpdateTemplate) Descriptor deprecated added in v0.5.0

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

Deprecated: Use MsgUpdateTemplate.ProtoReflect.Descriptor instead.

func (*MsgUpdateTemplate) GetCreator added in v0.5.0

func (x *MsgUpdateTemplate) GetCreator() string

func (*MsgUpdateTemplate) GetDefinition added in v0.5.0

func (x *MsgUpdateTemplate) GetDefinition() string

func (*MsgUpdateTemplate) GetId added in v0.5.0

func (x *MsgUpdateTemplate) GetId() uint64

func (*MsgUpdateTemplate) GetName added in v0.5.0

func (x *MsgUpdateTemplate) GetName() string

func (*MsgUpdateTemplate) ProtoMessage added in v0.5.0

func (*MsgUpdateTemplate) ProtoMessage()

func (*MsgUpdateTemplate) ProtoReflect added in v0.5.0

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

func (*MsgUpdateTemplate) Reset added in v0.5.0

func (x *MsgUpdateTemplate) Reset()

func (*MsgUpdateTemplate) String added in v0.5.0

func (x *MsgUpdateTemplate) String() string

type MsgUpdateTemplateResponse added in v0.5.0

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

func (*MsgUpdateTemplateResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use MsgUpdateTemplateResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateTemplateResponse) ProtoMessage added in v0.5.0

func (*MsgUpdateTemplateResponse) ProtoMessage()

func (*MsgUpdateTemplateResponse) ProtoReflect added in v0.5.0

func (*MsgUpdateTemplateResponse) Reset added in v0.5.0

func (x *MsgUpdateTemplateResponse) Reset()

func (*MsgUpdateTemplateResponse) String added in v0.5.0

func (x *MsgUpdateTemplateResponse) String() string

type MsgVoteForAction added in v0.5.0

type MsgVoteForAction struct {
	Participant string         `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	ActionId    uint64         `protobuf:"varint,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	VoteType    ActionVoteType `protobuf:"varint,3,opt,name=vote_type,json=voteType,proto3,enum=warden.act.v1beta1.ActionVoteType" json:"vote_type,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgVoteForAction) Descriptor deprecated added in v0.5.0

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

Deprecated: Use MsgVoteForAction.ProtoReflect.Descriptor instead.

func (*MsgVoteForAction) GetActionId added in v0.5.0

func (x *MsgVoteForAction) GetActionId() uint64

func (*MsgVoteForAction) GetParticipant added in v0.5.0

func (x *MsgVoteForAction) GetParticipant() string

func (*MsgVoteForAction) GetVoteType added in v0.5.0

func (x *MsgVoteForAction) GetVoteType() ActionVoteType

func (*MsgVoteForAction) ProtoMessage added in v0.5.0

func (*MsgVoteForAction) ProtoMessage()

func (*MsgVoteForAction) ProtoReflect added in v0.5.0

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

func (*MsgVoteForAction) Reset added in v0.5.0

func (x *MsgVoteForAction) Reset()

func (*MsgVoteForAction) String added in v0.5.0

func (x *MsgVoteForAction) String() string

type MsgVoteForActionResponse added in v0.5.0

type MsgVoteForActionResponse struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgVoteForActionResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use MsgVoteForActionResponse.ProtoReflect.Descriptor instead.

func (*MsgVoteForActionResponse) GetStatus added in v0.5.0

func (x *MsgVoteForActionResponse) GetStatus() string

func (*MsgVoteForActionResponse) ProtoMessage added in v0.5.0

func (*MsgVoteForActionResponse) ProtoMessage()

func (*MsgVoteForActionResponse) ProtoReflect added in v0.5.0

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

func (*MsgVoteForActionResponse) Reset added in v0.5.0

func (x *MsgVoteForActionResponse) Reset()

func (*MsgVoteForActionResponse) String added in v0.5.0

func (x *MsgVoteForActionResponse) String() string

type Params

type Params struct {
	MaxPendingTime           *durationpb.Duration `protobuf:"bytes,1,opt,name=max_pending_time,json=maxPendingTime,proto3" json:"max_pending_time,omitempty"`
	MaxCompletedTime         *durationpb.Duration `protobuf:"bytes,2,opt,name=max_completed_time,json=maxCompletedTime,proto3" json:"max_completed_time,omitempty"`
	PruneCheckBlockFrequency int64                `` /* 138-byte string literal not displayed */
	// 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) GetMaxCompletedTime added in v0.5.0

func (x *Params) GetMaxCompletedTime() *durationpb.Duration

func (*Params) GetMaxPendingTime added in v0.5.0

func (x *Params) GetMaxPendingTime() *durationpb.Duration

func (*Params) GetPruneCheckBlockFrequency added in v0.5.0

func (x *Params) GetPruneCheckBlockFrequency() int64

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 QueryActionByIdRequest

type QueryActionByIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryActionByIdRequest) Descriptor deprecated

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

Deprecated: Use QueryActionByIdRequest.ProtoReflect.Descriptor instead.

func (*QueryActionByIdRequest) GetId

func (x *QueryActionByIdRequest) GetId() uint64

func (*QueryActionByIdRequest) ProtoMessage

func (*QueryActionByIdRequest) ProtoMessage()

func (*QueryActionByIdRequest) ProtoReflect

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

func (*QueryActionByIdRequest) Reset

func (x *QueryActionByIdRequest) Reset()

func (*QueryActionByIdRequest) String

func (x *QueryActionByIdRequest) String() string

type QueryActionByIdResponse

type QueryActionByIdResponse struct {
	Action *Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryActionByIdResponse) Descriptor deprecated

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

Deprecated: Use QueryActionByIdResponse.ProtoReflect.Descriptor instead.

func (*QueryActionByIdResponse) GetAction

func (x *QueryActionByIdResponse) GetAction() *Action

func (*QueryActionByIdResponse) ProtoMessage

func (*QueryActionByIdResponse) ProtoMessage()

func (*QueryActionByIdResponse) ProtoReflect

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

func (*QueryActionByIdResponse) Reset

func (x *QueryActionByIdResponse) Reset()

func (*QueryActionByIdResponse) String

func (x *QueryActionByIdResponse) String() string

type QueryActionsByAddressRequest

type QueryActionsByAddressRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Address    string               `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Status     ActionStatus         `protobuf:"varint,3,opt,name=status,proto3,enum=warden.act.v1beta1.ActionStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryActionsByAddressRequest) Descriptor deprecated

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

Deprecated: Use QueryActionsByAddressRequest.ProtoReflect.Descriptor instead.

func (*QueryActionsByAddressRequest) GetAddress

func (x *QueryActionsByAddressRequest) GetAddress() string

func (*QueryActionsByAddressRequest) GetPagination

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

func (*QueryActionsByAddressRequest) GetStatus

func (*QueryActionsByAddressRequest) ProtoMessage

func (*QueryActionsByAddressRequest) ProtoMessage()

func (*QueryActionsByAddressRequest) ProtoReflect

func (*QueryActionsByAddressRequest) Reset

func (x *QueryActionsByAddressRequest) Reset()

func (*QueryActionsByAddressRequest) String

type QueryActionsByAddressResponse

type QueryActionsByAddressResponse struct {
	Pagination *v1beta1.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Actions    []*Action             `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryActionsByAddressResponse) Descriptor deprecated

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

Deprecated: Use QueryActionsByAddressResponse.ProtoReflect.Descriptor instead.

func (*QueryActionsByAddressResponse) GetActions

func (x *QueryActionsByAddressResponse) GetActions() []*Action

func (*QueryActionsByAddressResponse) GetPagination

func (*QueryActionsByAddressResponse) ProtoMessage

func (*QueryActionsByAddressResponse) ProtoMessage()

func (*QueryActionsByAddressResponse) ProtoReflect

func (*QueryActionsByAddressResponse) Reset

func (x *QueryActionsByAddressResponse) Reset()

func (*QueryActionsByAddressResponse) String

type QueryActionsRequest

type QueryActionsRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryActionsRequest) Descriptor deprecated

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

Deprecated: Use QueryActionsRequest.ProtoReflect.Descriptor instead.

func (*QueryActionsRequest) GetPagination

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

func (*QueryActionsRequest) ProtoMessage

func (*QueryActionsRequest) ProtoMessage()

func (*QueryActionsRequest) ProtoReflect

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

func (*QueryActionsRequest) Reset

func (x *QueryActionsRequest) Reset()

func (*QueryActionsRequest) String

func (x *QueryActionsRequest) String() string

type QueryActionsResponse

type QueryActionsResponse struct {
	Pagination *v1beta1.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Actions    []*Action             `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryActionsResponse) Descriptor deprecated

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

Deprecated: Use QueryActionsResponse.ProtoReflect.Descriptor instead.

func (*QueryActionsResponse) GetActions

func (x *QueryActionsResponse) GetActions() []*Action

func (*QueryActionsResponse) GetPagination

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

func (*QueryActionsResponse) ProtoMessage

func (*QueryActionsResponse) ProtoMessage()

func (*QueryActionsResponse) ProtoReflect

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

func (*QueryActionsResponse) Reset

func (x *QueryActionsResponse) Reset()

func (*QueryActionsResponse) String

func (x *QueryActionsResponse) String() string

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Actions items.
	Actions(ctx context.Context, in *QueryActionsRequest, opts ...grpc.CallOption) (*QueryActionsResponse, error)
	// Queries a list of Templates items.
	Templates(ctx context.Context, in *QueryTemplatesRequest, opts ...grpc.CallOption) (*QueryTemplatesResponse, error)
	// Queries to simulate a Template
	SimulateTemplate(ctx context.Context, in *QuerySimulateTemplateRequest, opts ...grpc.CallOption) (*QuerySimulateTemplateResponse, error)
	// Queries a list of TemplateById items.
	TemplateById(ctx context.Context, in *QueryTemplateByIdRequest, opts ...grpc.CallOption) (*QueryTemplateByIdResponse, error)
	// Queries a list of Actions items by one participant address.
	ActionsByAddress(ctx context.Context, in *QueryActionsByAddressRequest, opts ...grpc.CallOption) (*QueryActionsByAddressResponse, error)
	ActionById(ctx context.Context, in *QueryActionByIdRequest, opts ...grpc.CallOption) (*QueryActionByIdResponse, 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 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 {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is 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) GetParams

func (x *QueryParamsResponse) GetParams() *Params

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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Actions items.
	Actions(context.Context, *QueryActionsRequest) (*QueryActionsResponse, error)
	// Queries a list of Templates items.
	Templates(context.Context, *QueryTemplatesRequest) (*QueryTemplatesResponse, error)
	// Queries to simulate a Template
	SimulateTemplate(context.Context, *QuerySimulateTemplateRequest) (*QuerySimulateTemplateResponse, error)
	// Queries a list of TemplateById items.
	TemplateById(context.Context, *QueryTemplateByIdRequest) (*QueryTemplateByIdResponse, error)
	// Queries a list of Actions items by one participant address.
	ActionsByAddress(context.Context, *QueryActionsByAddressRequest) (*QueryActionsByAddressResponse, error)
	ActionById(context.Context, *QueryActionByIdRequest) (*QueryActionByIdResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QuerySimulateTemplateRequest added in v0.5.0

type QuerySimulateTemplateRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Definition string               `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
	// contains filtered or unexported fields
}

func (*QuerySimulateTemplateRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use QuerySimulateTemplateRequest.ProtoReflect.Descriptor instead.

func (*QuerySimulateTemplateRequest) GetDefinition added in v0.5.0

func (x *QuerySimulateTemplateRequest) GetDefinition() string

func (*QuerySimulateTemplateRequest) GetPagination added in v0.5.0

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

func (*QuerySimulateTemplateRequest) ProtoMessage added in v0.5.0

func (*QuerySimulateTemplateRequest) ProtoMessage()

func (*QuerySimulateTemplateRequest) ProtoReflect added in v0.5.0

func (*QuerySimulateTemplateRequest) Reset added in v0.5.0

func (x *QuerySimulateTemplateRequest) Reset()

func (*QuerySimulateTemplateRequest) String added in v0.5.0

type QuerySimulateTemplateResponse added in v0.5.0

type QuerySimulateTemplateResponse struct {
	Evaluation string `protobuf:"bytes,1,opt,name=evaluation,proto3" json:"evaluation,omitempty"`
	// contains filtered or unexported fields
}

func (*QuerySimulateTemplateResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use QuerySimulateTemplateResponse.ProtoReflect.Descriptor instead.

func (*QuerySimulateTemplateResponse) GetEvaluation added in v0.5.0

func (x *QuerySimulateTemplateResponse) GetEvaluation() string

func (*QuerySimulateTemplateResponse) ProtoMessage added in v0.5.0

func (*QuerySimulateTemplateResponse) ProtoMessage()

func (*QuerySimulateTemplateResponse) ProtoReflect added in v0.5.0

func (*QuerySimulateTemplateResponse) Reset added in v0.5.0

func (x *QuerySimulateTemplateResponse) Reset()

func (*QuerySimulateTemplateResponse) String added in v0.5.0

type QueryTemplateByIdRequest added in v0.5.0

type QueryTemplateByIdRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTemplateByIdRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use QueryTemplateByIdRequest.ProtoReflect.Descriptor instead.

func (*QueryTemplateByIdRequest) GetId added in v0.5.0

func (x *QueryTemplateByIdRequest) GetId() uint64

func (*QueryTemplateByIdRequest) ProtoMessage added in v0.5.0

func (*QueryTemplateByIdRequest) ProtoMessage()

func (*QueryTemplateByIdRequest) ProtoReflect added in v0.5.0

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

func (*QueryTemplateByIdRequest) Reset added in v0.5.0

func (x *QueryTemplateByIdRequest) Reset()

func (*QueryTemplateByIdRequest) String added in v0.5.0

func (x *QueryTemplateByIdRequest) String() string

type QueryTemplateByIdResponse added in v0.5.0

type QueryTemplateByIdResponse struct {
	Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTemplateByIdResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use QueryTemplateByIdResponse.ProtoReflect.Descriptor instead.

func (*QueryTemplateByIdResponse) GetTemplate added in v0.5.0

func (x *QueryTemplateByIdResponse) GetTemplate() *Template

func (*QueryTemplateByIdResponse) ProtoMessage added in v0.5.0

func (*QueryTemplateByIdResponse) ProtoMessage()

func (*QueryTemplateByIdResponse) ProtoReflect added in v0.5.0

func (*QueryTemplateByIdResponse) Reset added in v0.5.0

func (x *QueryTemplateByIdResponse) Reset()

func (*QueryTemplateByIdResponse) String added in v0.5.0

func (x *QueryTemplateByIdResponse) String() string

type QueryTemplatesRequest added in v0.5.0

type QueryTemplatesRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Creator    string               `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTemplatesRequest) Descriptor deprecated added in v0.5.0

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

Deprecated: Use QueryTemplatesRequest.ProtoReflect.Descriptor instead.

func (*QueryTemplatesRequest) GetCreator added in v0.5.0

func (x *QueryTemplatesRequest) GetCreator() string

func (*QueryTemplatesRequest) GetPagination added in v0.5.0

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

func (*QueryTemplatesRequest) ProtoMessage added in v0.5.0

func (*QueryTemplatesRequest) ProtoMessage()

func (*QueryTemplatesRequest) ProtoReflect added in v0.5.0

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

func (*QueryTemplatesRequest) Reset added in v0.5.0

func (x *QueryTemplatesRequest) Reset()

func (*QueryTemplatesRequest) String added in v0.5.0

func (x *QueryTemplatesRequest) String() string

type QueryTemplatesResponse added in v0.5.0

type QueryTemplatesResponse struct {
	Pagination *v1beta1.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Templates  []*Template           `protobuf:"bytes,2,rep,name=templates,proto3" json:"templates,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTemplatesResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use QueryTemplatesResponse.ProtoReflect.Descriptor instead.

func (*QueryTemplatesResponse) GetPagination added in v0.5.0

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

func (*QueryTemplatesResponse) GetTemplates added in v0.5.0

func (x *QueryTemplatesResponse) GetTemplates() []*Template

func (*QueryTemplatesResponse) ProtoMessage added in v0.5.0

func (*QueryTemplatesResponse) ProtoMessage()

func (*QueryTemplatesResponse) ProtoReflect added in v0.5.0

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

func (*QueryTemplatesResponse) Reset added in v0.5.0

func (x *QueryTemplatesResponse) Reset()

func (*QueryTemplatesResponse) String added in v0.5.0

func (x *QueryTemplatesResponse) String() string

type Template added in v0.5.0

type Template struct {
	Id      uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Name    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The expression to be evaluated for this template.
	Expression *ast.Expression `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

func (*Template) Descriptor deprecated added in v0.5.0

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

Deprecated: Use Template.ProtoReflect.Descriptor instead.

func (*Template) GetCreator added in v0.5.0

func (x *Template) GetCreator() string

func (*Template) GetExpression added in v0.5.0

func (x *Template) GetExpression() *ast.Expression

func (*Template) GetId added in v0.5.0

func (x *Template) GetId() uint64

func (*Template) GetName added in v0.5.0

func (x *Template) GetName() string

func (*Template) ProtoMessage added in v0.5.0

func (*Template) ProtoMessage()

func (*Template) ProtoReflect added in v0.5.0

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

func (*Template) Reset added in v0.5.0

func (x *Template) Reset()

func (*Template) String added in v0.5.0

func (x *Template) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) CheckAction

func (UnimplementedMsgServer) NewAction

func (UnimplementedMsgServer) NewTemplate added in v0.5.0

func (UnimplementedMsgServer) RevokeAction

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) UpdateTemplate added in v0.5.0

func (UnimplementedMsgServer) VoteForAction added in v0.5.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Actions

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) SimulateTemplate added in v0.5.0

func (UnimplementedQueryServer) TemplateById added in v0.5.0

func (UnimplementedQueryServer) Templates added in v0.5.0

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