intent

package
v0.1.0 Latest Latest
Warning

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

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

Index

Constants

View Source
const (
	Query_Params_FullMethodName           = "/warden.intent.Query/Params"
	Query_Actions_FullMethodName          = "/warden.intent.Query/Actions"
	Query_Intents_FullMethodName          = "/warden.intent.Query/Intents"
	Query_IntentById_FullMethodName       = "/warden.intent.Query/IntentById"
	Query_ActionsByAddress_FullMethodName = "/warden.intent.Query/ActionsByAddress"
	Query_ActionById_FullMethodName       = "/warden.intent.Query/ActionById"
)
View Source
const (
	Msg_UpdateParams_FullMethodName  = "/warden.intent.Msg/UpdateParams"
	Msg_ApproveAction_FullMethodName = "/warden.intent.Msg/ApproveAction"
	Msg_NewIntent_FullMethodName     = "/warden.intent.Msg/NewIntent"
	Msg_RevokeAction_FullMethodName  = "/warden.intent.Msg/RevokeAction"
)

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 File_warden_intent_action_proto protoreflect.FileDescriptor
View Source
var File_warden_intent_genesis_proto protoreflect.FileDescriptor
View Source
var File_warden_intent_intent_proto protoreflect.FileDescriptor
View Source
var File_warden_intent_params_proto protoreflect.FileDescriptor
View Source
var File_warden_intent_query_proto protoreflect.FileDescriptor
View Source
var File_warden_intent_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "warden.intent.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "ApproveAction",
			Handler:    _Msg_ApproveAction_Handler,
		},
		{
			MethodName: "NewIntent",
			Handler:    _Msg_NewIntent_Handler,
		},
		{
			MethodName: "RevokeAction",
			Handler:    _Msg_RevokeAction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "warden/intent/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.intent.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Actions",
			Handler:    _Query_Actions_Handler,
		},
		{
			MethodName: "Intents",
			Handler:    _Query_Intents_Handler,
		},
		{
			MethodName: "IntentById",
			Handler:    _Query_IntentById_Handler,
		},
		{
			MethodName: "ActionsByAddress",
			Handler:    _Query_ActionsByAddress_Handler,
		},
		{
			MethodName: "ActionById",
			Handler:    _Query_ActionById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "warden/intent/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"`
	Approvers []*Approver  `protobuf:"bytes,2,rep,name=approvers,proto3" json:"approvers,omitempty"`
	Status    ActionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=warden.intent.ActionStatus" json:"status,omitempty"`
	// Optional intent id that must be satisfied by the approvers.
	// If not specified, it's up to the creator of the action to decide what to
	// apply.
	IntentId uint64 `protobuf:"varint,4,opt,name=intent_id,json=intentId,proto3" json:"intent_id,omitempty"`
	// Original message that started the action, it will be executed when the
	// intent is satisfied.
	Msg *anypb.Any `protobuf:"bytes,5,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,6,opt,name=result,proto3" json:"result,omitempty"`
	Creator string     `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"`
	// BTL (blocks to live) is the block height up until this action can be
	// approved or rejected.
	Btl uint64 `protobuf:"varint,8,opt,name=btl,proto3" json:"btl,omitempty"`
	// created_at is a timestamp specifying when the action was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,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,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Action wraps a message that needs to be approved by a set of approvers.

func (*Action) Descriptor deprecated

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

Deprecated: Use Action.ProtoReflect.Descriptor instead.

func (*Action) GetApprovers

func (x *Action) GetApprovers() []*Approver

func (*Action) GetBtl

func (x *Action) GetBtl() uint64

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) GetIntentId

func (x *Action) GetIntentId() uint64

func (*Action) GetMsg

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

func (*Action) GetResult

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

func (*Action) GetStatus

func (x *Action) GetStatus() ActionStatus

func (*Action) GetUpdatedAt

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

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
	// Intent 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 Btl is expired
	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 Approver

type Approver struct {

	// address is the address of the approver
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// approved_at is a timestamp specifying when the approver approved an action
	ApprovedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=approved_at,json=approvedAt,proto3" json:"approved_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Approver) Descriptor deprecated

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

Deprecated: Use Approver.ProtoReflect.Descriptor instead.

func (*Approver) GetAddress

func (x *Approver) GetAddress() string

func (*Approver) GetApprovedAt

func (x *Approver) GetApprovedAt() *timestamppb.Timestamp

func (*Approver) ProtoMessage

func (*Approver) ProtoMessage()

func (*Approver) ProtoReflect

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

func (*Approver) Reset

func (x *Approver) Reset()

func (*Approver) String

func (x *Approver) String() string

type BoolparserIntent

type BoolparserIntent struct {

	// Definition of the intent, eg.
	// "t1 + t2 + t3 > 1"
	Definition   string               `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
	Participants []*IntentParticipant `protobuf:"bytes,2,rep,name=participants,proto3" json:"participants,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolparserIntent) Descriptor deprecated

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

Deprecated: Use BoolparserIntent.ProtoReflect.Descriptor instead.

func (*BoolparserIntent) GetDefinition

func (x *BoolparserIntent) GetDefinition() string

func (*BoolparserIntent) GetParticipants

func (x *BoolparserIntent) GetParticipants() []*IntentParticipant

func (*BoolparserIntent) ProtoMessage

func (*BoolparserIntent) ProtoMessage()

func (*BoolparserIntent) ProtoReflect

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

func (*BoolparserIntent) Reset

func (x *BoolparserIntent) Reset()

func (*BoolparserIntent) String

func (x *BoolparserIntent) 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"`
	// contains filtered or unexported fields
}

GenesisState defines the intent module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

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 Intent

type Intent struct {
	Id   uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The actual intent informations. It must be one the supported intent types:
	// - BoolparserIntent
	Intent *anypb.Any `protobuf:"bytes,3,opt,name=intent,proto3" json:"intent,omitempty"`
	// contains filtered or unexported fields
}

func (*Intent) Descriptor deprecated

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

Deprecated: Use Intent.ProtoReflect.Descriptor instead.

func (*Intent) GetId

func (x *Intent) GetId() uint64

func (*Intent) GetIntent

func (x *Intent) GetIntent() *anypb.Any

func (*Intent) GetName

func (x *Intent) GetName() string

func (*Intent) ProtoMessage

func (*Intent) ProtoMessage()

func (*Intent) ProtoReflect

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

func (*Intent) Reset

func (x *Intent) Reset()

func (*Intent) String

func (x *Intent) String() string

type IntentParticipant

type IntentParticipant struct {
	Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"`
	Address      string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*IntentParticipant) Descriptor deprecated

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

Deprecated: Use IntentParticipant.ProtoReflect.Descriptor instead.

func (*IntentParticipant) GetAbbreviation

func (x *IntentParticipant) GetAbbreviation() string

func (*IntentParticipant) GetAddress

func (x *IntentParticipant) GetAddress() string

func (*IntentParticipant) ProtoMessage

func (*IntentParticipant) ProtoMessage()

func (*IntentParticipant) ProtoReflect

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

func (*IntentParticipant) Reset

func (x *IntentParticipant) Reset()

func (*IntentParticipant) String

func (x *IntentParticipant) String() string

type IntentResponse

type IntentResponse struct {
	Intent   *Intent    `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"`
	Metadata *anypb.Any `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*IntentResponse) Descriptor deprecated

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

Deprecated: Use IntentResponse.ProtoReflect.Descriptor instead.

func (*IntentResponse) GetIntent

func (x *IntentResponse) GetIntent() *Intent

func (*IntentResponse) GetMetadata

func (x *IntentResponse) GetMetadata() *anypb.Any

func (*IntentResponse) ProtoMessage

func (*IntentResponse) ProtoMessage()

func (*IntentResponse) ProtoReflect

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

func (*IntentResponse) Reset

func (x *IntentResponse) Reset()

func (*IntentResponse) String

func (x *IntentResponse) String() string

type MsgActionCreated

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

MsgActionCreated is returned by rpc that creates an action.

func (*MsgActionCreated) Descriptor deprecated

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

Deprecated: Use MsgActionCreated.ProtoReflect.Descriptor instead.

func (*MsgActionCreated) GetAction

func (x *MsgActionCreated) GetAction() *Action

func (*MsgActionCreated) ProtoMessage

func (*MsgActionCreated) ProtoMessage()

func (*MsgActionCreated) ProtoReflect

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

func (*MsgActionCreated) Reset

func (x *MsgActionCreated) Reset()

func (*MsgActionCreated) String

func (x *MsgActionCreated) String() string

type MsgApproveAction

type MsgApproveAction struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ActionType string `protobuf:"bytes,2,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"`
	ActionId   uint64 `protobuf:"varint,3,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
	// Optional payload input for the intent. This is "any" as it depends on the
	// type of the intent linked to the action being approved.
	IntentPayload *anypb.Any `protobuf:"bytes,4,opt,name=intent_payload,json=intentPayload,proto3" json:"intent_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgApproveAction) Descriptor deprecated

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

Deprecated: Use MsgApproveAction.ProtoReflect.Descriptor instead.

func (*MsgApproveAction) GetActionId

func (x *MsgApproveAction) GetActionId() uint64

func (*MsgApproveAction) GetActionType

func (x *MsgApproveAction) GetActionType() string

func (*MsgApproveAction) GetCreator

func (x *MsgApproveAction) GetCreator() string

func (*MsgApproveAction) GetIntentPayload

func (x *MsgApproveAction) GetIntentPayload() *anypb.Any

func (*MsgApproveAction) ProtoMessage

func (*MsgApproveAction) ProtoMessage()

func (*MsgApproveAction) ProtoReflect

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

func (*MsgApproveAction) Reset

func (x *MsgApproveAction) Reset()

func (*MsgApproveAction) String

func (x *MsgApproveAction) String() string

type MsgApproveActionResponse

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

func (*MsgApproveActionResponse) Descriptor deprecated

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

Deprecated: Use MsgApproveActionResponse.ProtoReflect.Descriptor instead.

func (*MsgApproveActionResponse) GetStatus

func (x *MsgApproveActionResponse) GetStatus() string

func (*MsgApproveActionResponse) ProtoMessage

func (*MsgApproveActionResponse) ProtoMessage()

func (*MsgApproveActionResponse) ProtoReflect

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

func (*MsgApproveActionResponse) Reset

func (x *MsgApproveActionResponse) Reset()

func (*MsgApproveActionResponse) String

func (x *MsgApproveActionResponse) 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)
	// Add an approval to an existing Action.
	ApproveAction(ctx context.Context, in *MsgApproveAction, opts ...grpc.CallOption) (*MsgApproveActionResponse, error)
	// Create a new intent.
	NewIntent(ctx context.Context, in *MsgNewIntent, opts ...grpc.CallOption) (*MsgNewIntentResponse, error)
	// Revoke an existing Action while in pending state.
	RevokeAction(ctx context.Context, in *MsgRevokeAction, opts ...grpc.CallOption) (*MsgRevokeActionResponse, 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 MsgNewIntent

type MsgNewIntent 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"`
	Intent  *anypb.Any `protobuf:"bytes,3,opt,name=intent,proto3" json:"intent,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgNewIntent) Descriptor deprecated

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

Deprecated: Use MsgNewIntent.ProtoReflect.Descriptor instead.

func (*MsgNewIntent) GetCreator

func (x *MsgNewIntent) GetCreator() string

func (*MsgNewIntent) GetIntent

func (x *MsgNewIntent) GetIntent() *anypb.Any

func (*MsgNewIntent) GetName

func (x *MsgNewIntent) GetName() string

func (*MsgNewIntent) ProtoMessage

func (*MsgNewIntent) ProtoMessage()

func (*MsgNewIntent) ProtoReflect

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

func (*MsgNewIntent) Reset

func (x *MsgNewIntent) Reset()

func (*MsgNewIntent) String

func (x *MsgNewIntent) String() string

type MsgNewIntentResponse

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

func (*MsgNewIntentResponse) Descriptor deprecated

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

Deprecated: Use MsgNewIntentResponse.ProtoReflect.Descriptor instead.

func (*MsgNewIntentResponse) GetId

func (x *MsgNewIntentResponse) GetId() uint64

func (*MsgNewIntentResponse) ProtoMessage

func (*MsgNewIntentResponse) ProtoMessage()

func (*MsgNewIntentResponse) ProtoReflect

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

func (*MsgNewIntentResponse) Reset

func (x *MsgNewIntentResponse) Reset()

func (*MsgNewIntentResponse) String

func (x *MsgNewIntentResponse) String() string

type MsgRevokeAction

type MsgRevokeAction struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ActionType string `protobuf:"bytes,2,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"`
	ActionId   uint64 `protobuf:"varint,3,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) GetActionType

func (x *MsgRevokeAction) GetActionType() string

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)
	// Add an approval to an existing Action.
	ApproveAction(context.Context, *MsgApproveAction) (*MsgApproveActionResponse, error)
	// Create a new intent.
	NewIntent(context.Context, *MsgNewIntent) (*MsgNewIntentResponse, error)
	// Revoke an existing Action while in pending state.
	RevokeAction(context.Context, *MsgRevokeAction) (*MsgRevokeActionResponse, 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 Params

type Params struct {
	// 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) 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.intent.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 Intents items.
	Intents(ctx context.Context, in *QueryIntentsRequest, opts ...grpc.CallOption) (*QueryIntentsResponse, error)
	// Queries a list of IntentById items.
	IntentById(ctx context.Context, in *QueryIntentByIdRequest, opts ...grpc.CallOption) (*QueryIntentByIdResponse, 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 QueryIntentByIdRequest

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

func (*QueryIntentByIdRequest) Descriptor deprecated

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

Deprecated: Use QueryIntentByIdRequest.ProtoReflect.Descriptor instead.

func (*QueryIntentByIdRequest) GetId

func (x *QueryIntentByIdRequest) GetId() uint64

func (*QueryIntentByIdRequest) ProtoMessage

func (*QueryIntentByIdRequest) ProtoMessage()

func (*QueryIntentByIdRequest) ProtoReflect

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

func (*QueryIntentByIdRequest) Reset

func (x *QueryIntentByIdRequest) Reset()

func (*QueryIntentByIdRequest) String

func (x *QueryIntentByIdRequest) String() string

type QueryIntentByIdResponse

type QueryIntentByIdResponse struct {
	Intent *IntentResponse `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIntentByIdResponse) Descriptor deprecated

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

Deprecated: Use QueryIntentByIdResponse.ProtoReflect.Descriptor instead.

func (*QueryIntentByIdResponse) GetIntent

func (x *QueryIntentByIdResponse) GetIntent() *IntentResponse

func (*QueryIntentByIdResponse) ProtoMessage

func (*QueryIntentByIdResponse) ProtoMessage()

func (*QueryIntentByIdResponse) ProtoReflect

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

func (*QueryIntentByIdResponse) Reset

func (x *QueryIntentByIdResponse) Reset()

func (*QueryIntentByIdResponse) String

func (x *QueryIntentByIdResponse) String() string

type QueryIntentsRequest

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

func (*QueryIntentsRequest) Descriptor deprecated

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

Deprecated: Use QueryIntentsRequest.ProtoReflect.Descriptor instead.

func (*QueryIntentsRequest) GetPagination

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

func (*QueryIntentsRequest) ProtoMessage

func (*QueryIntentsRequest) ProtoMessage()

func (*QueryIntentsRequest) ProtoReflect

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

func (*QueryIntentsRequest) Reset

func (x *QueryIntentsRequest) Reset()

func (*QueryIntentsRequest) String

func (x *QueryIntentsRequest) String() string

type QueryIntentsResponse

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

func (*QueryIntentsResponse) Descriptor deprecated

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

Deprecated: Use QueryIntentsResponse.ProtoReflect.Descriptor instead.

func (*QueryIntentsResponse) GetIntents

func (x *QueryIntentsResponse) GetIntents() []*IntentResponse

func (*QueryIntentsResponse) GetPagination

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

func (*QueryIntentsResponse) ProtoMessage

func (*QueryIntentsResponse) ProtoMessage()

func (*QueryIntentsResponse) ProtoReflect

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

func (*QueryIntentsResponse) Reset

func (x *QueryIntentsResponse) Reset()

func (*QueryIntentsResponse) String

func (x *QueryIntentsResponse) String() string

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 Intents items.
	Intents(context.Context, *QueryIntentsRequest) (*QueryIntentsResponse, error)
	// Queries a list of IntentById items.
	IntentById(context.Context, *QueryIntentByIdRequest) (*QueryIntentByIdResponse, 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 UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) ApproveAction

func (UnimplementedMsgServer) NewIntent

func (UnimplementedMsgServer) RevokeAction

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Actions

func (UnimplementedQueryServer) Intents

func (UnimplementedQueryServer) Params

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.

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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