Documentation ¶
Overview ¶
Package v1beta1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func Register[T sdk.Msg](reg registry, fn ProviderFnG[T])
- func RegisterCtx[T sdk.Msg](reg registryWithCtx, fn ProviderFnWithCtxG[T])
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type ActExpression
- type Action
- func (a *Action) AddOrUpdateVote(ctx sdk.Context, participant string, voteType ActionVoteType) error
- func (*Action) Descriptor() ([]byte, []int)
- func (m *Action) GetApproveExpression() ast.Expression
- func (m *Action) GetCreatedAt() time.Time
- func (m *Action) GetCreator() string
- func (m *Action) GetId() uint64
- func (m *Action) GetMentions() []string
- func (m *Action) GetMsg() *types.Any
- func (m *Action) GetRejectExpression() ast.Expression
- func (m *Action) GetResult() *types.Any
- func (m *Action) GetStatus() ActionStatus
- func (m *Action) GetTimeoutHeight() uint64
- func (m *Action) GetUpdatedAt() time.Time
- func (m *Action) GetVotes() []*ActionVote
- func (m *Action) Marshal() (dAtA []byte, err error)
- func (m *Action) MarshalTo(dAtA []byte) (int, error)
- func (m *Action) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Action) ProtoMessage()
- func (m *Action) Reset()
- func (a *Action) SetId(id uint64)
- func (a *Action) SetResult(ctx sdk.Context, result *codectypes.Any) error
- func (a *Action) SetStatus(ctx sdk.Context, status ActionStatus) error
- func (m *Action) Size() (n int)
- func (m *Action) String() string
- func (m *Action) Unmarshal(dAtA []byte) error
- func (m *Action) XXX_DiscardUnknown()
- func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Action) XXX_Merge(src proto.Message)
- func (m *Action) XXX_Size() int
- func (m *Action) XXX_Unmarshal(b []byte) error
- type ActionStatus
- type ActionVote
- func (*ActionVote) Descriptor() ([]byte, []int)
- func (m *ActionVote) GetParticipant() string
- func (m *ActionVote) GetVoteType() ActionVoteType
- func (m *ActionVote) GetVotedAt() time.Time
- func (m *ActionVote) Marshal() (dAtA []byte, err error)
- func (m *ActionVote) MarshalTo(dAtA []byte) (int, error)
- func (m *ActionVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ActionVote) ProtoMessage()
- func (m *ActionVote) Reset()
- func (m *ActionVote) Size() (n int)
- func (m *ActionVote) String() string
- func (m *ActionVote) Unmarshal(dAtA []byte) error
- func (m *ActionVote) XXX_DiscardUnknown()
- func (m *ActionVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ActionVote) XXX_Merge(src proto.Message)
- func (m *ActionVote) XXX_Size() int
- func (m *ActionVote) XXX_Unmarshal(b []byte) error
- type ActionVoteType
- type BankKeeper
- type EventActionPruned
- func (*EventActionPruned) Descriptor() ([]byte, []int)
- func (m *EventActionPruned) GetId() uint64
- func (m *EventActionPruned) Marshal() (dAtA []byte, err error)
- func (m *EventActionPruned) MarshalTo(dAtA []byte) (int, error)
- func (m *EventActionPruned) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventActionPruned) ProtoMessage()
- func (m *EventActionPruned) Reset()
- func (m *EventActionPruned) Size() (n int)
- func (m *EventActionPruned) String() string
- func (m *EventActionPruned) Unmarshal(dAtA []byte) error
- func (m *EventActionPruned) XXX_DiscardUnknown()
- func (m *EventActionPruned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventActionPruned) XXX_Merge(src proto.Message)
- func (m *EventActionPruned) XXX_Size() int
- func (m *EventActionPruned) XXX_Unmarshal(b []byte) error
- type EventActionStateChange
- func (*EventActionStateChange) Descriptor() ([]byte, []int)
- func (m *EventActionStateChange) GetId() uint64
- func (m *EventActionStateChange) GetNewStatus() ActionStatus
- func (m *EventActionStateChange) GetPreviousStatus() ActionStatus
- func (m *EventActionStateChange) Marshal() (dAtA []byte, err error)
- func (m *EventActionStateChange) MarshalTo(dAtA []byte) (int, error)
- func (m *EventActionStateChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventActionStateChange) ProtoMessage()
- func (m *EventActionStateChange) Reset()
- func (m *EventActionStateChange) Size() (n int)
- func (m *EventActionStateChange) String() string
- func (m *EventActionStateChange) Unmarshal(dAtA []byte) error
- func (m *EventActionStateChange) XXX_DiscardUnknown()
- func (m *EventActionStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventActionStateChange) XXX_Merge(src proto.Message)
- func (m *EventActionStateChange) XXX_Size() int
- func (m *EventActionStateChange) XXX_Unmarshal(b []byte) error
- type EventActionVoted
- func (*EventActionVoted) Descriptor() ([]byte, []int)
- func (m *EventActionVoted) GetId() uint64
- func (m *EventActionVoted) GetParticipant() string
- func (m *EventActionVoted) GetVoteType() ActionVoteType
- func (m *EventActionVoted) Marshal() (dAtA []byte, err error)
- func (m *EventActionVoted) MarshalTo(dAtA []byte) (int, error)
- func (m *EventActionVoted) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventActionVoted) ProtoMessage()
- func (m *EventActionVoted) Reset()
- func (m *EventActionVoted) Size() (n int)
- func (m *EventActionVoted) String() string
- func (m *EventActionVoted) Unmarshal(dAtA []byte) error
- func (m *EventActionVoted) XXX_DiscardUnknown()
- func (m *EventActionVoted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventActionVoted) XXX_Merge(src proto.Message)
- func (m *EventActionVoted) XXX_Size() int
- func (m *EventActionVoted) XXX_Unmarshal(b []byte) error
- type EventCreateAction
- func (*EventCreateAction) Descriptor() ([]byte, []int)
- func (m *EventCreateAction) GetCreator() string
- func (m *EventCreateAction) GetId() uint64
- func (m *EventCreateAction) Marshal() (dAtA []byte, err error)
- func (m *EventCreateAction) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateAction) ProtoMessage()
- func (m *EventCreateAction) Reset()
- func (m *EventCreateAction) Size() (n int)
- func (m *EventCreateAction) String() string
- func (m *EventCreateAction) Unmarshal(dAtA []byte) error
- func (m *EventCreateAction) XXX_DiscardUnknown()
- func (m *EventCreateAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateAction) XXX_Merge(src proto.Message)
- func (m *EventCreateAction) XXX_Size() int
- func (m *EventCreateAction) XXX_Unmarshal(b []byte) error
- type EventCreateTemplate
- func (*EventCreateTemplate) Descriptor() ([]byte, []int)
- func (m *EventCreateTemplate) GetCreator() string
- func (m *EventCreateTemplate) GetId() uint64
- func (m *EventCreateTemplate) Marshal() (dAtA []byte, err error)
- func (m *EventCreateTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateTemplate) ProtoMessage()
- func (m *EventCreateTemplate) Reset()
- func (m *EventCreateTemplate) Size() (n int)
- func (m *EventCreateTemplate) String() string
- func (m *EventCreateTemplate) Unmarshal(dAtA []byte) error
- func (m *EventCreateTemplate) XXX_DiscardUnknown()
- func (m *EventCreateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateTemplate) XXX_Merge(src proto.Message)
- func (m *EventCreateTemplate) XXX_Size() int
- func (m *EventCreateTemplate) XXX_Unmarshal(b []byte) error
- type EventUpdateTemplate
- func (*EventUpdateTemplate) Descriptor() ([]byte, []int)
- func (m *EventUpdateTemplate) GetId() uint64
- func (m *EventUpdateTemplate) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateTemplate) ProtoMessage()
- func (m *EventUpdateTemplate) Reset()
- func (m *EventUpdateTemplate) Size() (n int)
- func (m *EventUpdateTemplate) String() string
- func (m *EventUpdateTemplate) Unmarshal(dAtA []byte) error
- func (m *EventUpdateTemplate) XXX_DiscardUnknown()
- func (m *EventUpdateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateTemplate) XXX_Merge(src proto.Message)
- func (m *EventUpdateTemplate) XXX_Size() int
- func (m *EventUpdateTemplate) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetActions() []Action
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetTemplates() []Template
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgCheckAction
- func (*MsgCheckAction) Descriptor() ([]byte, []int)
- func (m *MsgCheckAction) GetActionId() uint64
- func (m *MsgCheckAction) GetCreator() string
- func (m *MsgCheckAction) Marshal() (dAtA []byte, err error)
- func (m *MsgCheckAction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCheckAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCheckAction) ProtoMessage()
- func (m *MsgCheckAction) Reset()
- func (m *MsgCheckAction) Size() (n int)
- func (m *MsgCheckAction) String() string
- func (m *MsgCheckAction) Unmarshal(dAtA []byte) error
- func (m *MsgCheckAction) XXX_DiscardUnknown()
- func (m *MsgCheckAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCheckAction) XXX_Merge(src proto.Message)
- func (m *MsgCheckAction) XXX_Size() int
- func (m *MsgCheckAction) XXX_Unmarshal(b []byte) error
- type MsgCheckActionResponse
- func (*MsgCheckActionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCheckActionResponse) GetStatus() string
- func (m *MsgCheckActionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCheckActionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCheckActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCheckActionResponse) ProtoMessage()
- func (m *MsgCheckActionResponse) Reset()
- func (m *MsgCheckActionResponse) Size() (n int)
- func (m *MsgCheckActionResponse) String() string
- func (m *MsgCheckActionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCheckActionResponse) XXX_DiscardUnknown()
- func (m *MsgCheckActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCheckActionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCheckActionResponse) XXX_Size() int
- func (m *MsgCheckActionResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgNewAction
- func (*MsgNewAction) Descriptor() ([]byte, []int)
- func (m *MsgNewAction) GetActionTimeoutHeight() uint64
- func (m *MsgNewAction) GetCreator() string
- func (m *MsgNewAction) GetExpectedApproveExpression() string
- func (m *MsgNewAction) GetExpectedRejectExpression() string
- func (m *MsgNewAction) GetMessage() *types.Any
- func (m *MsgNewAction) Marshal() (dAtA []byte, err error)
- func (m *MsgNewAction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewAction) ProtoMessage()
- func (m *MsgNewAction) Reset()
- func (m *MsgNewAction) Size() (n int)
- func (m *MsgNewAction) String() string
- func (m *MsgNewAction) Unmarshal(dAtA []byte) error
- func (m *MsgNewAction) XXX_DiscardUnknown()
- func (m *MsgNewAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewAction) XXX_Merge(src proto.Message)
- func (m *MsgNewAction) XXX_Size() int
- func (m *MsgNewAction) XXX_Unmarshal(b []byte) error
- type MsgNewActionResponse
- func (*MsgNewActionResponse) Descriptor() ([]byte, []int)
- func (m *MsgNewActionResponse) GetId() uint64
- func (m *MsgNewActionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgNewActionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewActionResponse) ProtoMessage()
- func (m *MsgNewActionResponse) Reset()
- func (m *MsgNewActionResponse) Size() (n int)
- func (m *MsgNewActionResponse) String() string
- func (m *MsgNewActionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgNewActionResponse) XXX_DiscardUnknown()
- func (m *MsgNewActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewActionResponse) XXX_Merge(src proto.Message)
- func (m *MsgNewActionResponse) XXX_Size() int
- func (m *MsgNewActionResponse) XXX_Unmarshal(b []byte) error
- type MsgNewTemplate
- func (*MsgNewTemplate) Descriptor() ([]byte, []int)
- func (m *MsgNewTemplate) GetCreator() string
- func (m *MsgNewTemplate) GetDefinition() string
- func (m *MsgNewTemplate) GetName() string
- func (m *MsgNewTemplate) Marshal() (dAtA []byte, err error)
- func (m *MsgNewTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewTemplate) ProtoMessage()
- func (m *MsgNewTemplate) Reset()
- func (m *MsgNewTemplate) Size() (n int)
- func (m *MsgNewTemplate) String() string
- func (m *MsgNewTemplate) Unmarshal(dAtA []byte) error
- func (m *MsgNewTemplate) XXX_DiscardUnknown()
- func (m *MsgNewTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewTemplate) XXX_Merge(src proto.Message)
- func (m *MsgNewTemplate) XXX_Size() int
- func (m *MsgNewTemplate) XXX_Unmarshal(b []byte) error
- type MsgNewTemplateResponse
- func (*MsgNewTemplateResponse) Descriptor() ([]byte, []int)
- func (m *MsgNewTemplateResponse) GetId() uint64
- func (m *MsgNewTemplateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgNewTemplateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewTemplateResponse) ProtoMessage()
- func (m *MsgNewTemplateResponse) Reset()
- func (m *MsgNewTemplateResponse) Size() (n int)
- func (m *MsgNewTemplateResponse) String() string
- func (m *MsgNewTemplateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgNewTemplateResponse) XXX_DiscardUnknown()
- func (m *MsgNewTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewTemplateResponse) XXX_Merge(src proto.Message)
- func (m *MsgNewTemplateResponse) XXX_Size() int
- func (m *MsgNewTemplateResponse) XXX_Unmarshal(b []byte) error
- type MsgRevokeAction
- func (*MsgRevokeAction) Descriptor() ([]byte, []int)
- func (m *MsgRevokeAction) GetActionId() uint64
- func (m *MsgRevokeAction) GetCreator() string
- func (m *MsgRevokeAction) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeAction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeAction) ProtoMessage()
- func (m *MsgRevokeAction) Reset()
- func (m *MsgRevokeAction) Size() (n int)
- func (m *MsgRevokeAction) String() string
- func (m *MsgRevokeAction) Unmarshal(dAtA []byte) error
- func (m *MsgRevokeAction) XXX_DiscardUnknown()
- func (m *MsgRevokeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeAction) XXX_Merge(src proto.Message)
- func (m *MsgRevokeAction) XXX_Size() int
- func (m *MsgRevokeAction) XXX_Unmarshal(b []byte) error
- type MsgRevokeActionResponse
- func (*MsgRevokeActionResponse) Descriptor() ([]byte, []int)
- func (m *MsgRevokeActionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRevokeActionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRevokeActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRevokeActionResponse) ProtoMessage()
- func (m *MsgRevokeActionResponse) Reset()
- func (m *MsgRevokeActionResponse) Size() (n int)
- func (m *MsgRevokeActionResponse) String() string
- func (m *MsgRevokeActionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRevokeActionResponse) XXX_DiscardUnknown()
- func (m *MsgRevokeActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRevokeActionResponse) XXX_Merge(src proto.Message)
- func (m *MsgRevokeActionResponse) XXX_Size() int
- func (m *MsgRevokeActionResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateTemplate
- func (*MsgUpdateTemplate) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTemplate) GetCreator() string
- func (m *MsgUpdateTemplate) GetDefinition() string
- func (m *MsgUpdateTemplate) GetId() uint64
- func (m *MsgUpdateTemplate) GetName() string
- func (m *MsgUpdateTemplate) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTemplate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTemplate) ProtoMessage()
- func (m *MsgUpdateTemplate) Reset()
- func (m *MsgUpdateTemplate) Size() (n int)
- func (m *MsgUpdateTemplate) String() string
- func (m *MsgUpdateTemplate) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTemplate) XXX_DiscardUnknown()
- func (m *MsgUpdateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTemplate) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTemplate) XXX_Size() int
- func (m *MsgUpdateTemplate) XXX_Unmarshal(b []byte) error
- type MsgUpdateTemplateResponse
- func (*MsgUpdateTemplateResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTemplateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTemplateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTemplateResponse) ProtoMessage()
- func (m *MsgUpdateTemplateResponse) Reset()
- func (m *MsgUpdateTemplateResponse) Size() (n int)
- func (m *MsgUpdateTemplateResponse) String() string
- func (m *MsgUpdateTemplateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTemplateResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTemplateResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTemplateResponse) XXX_Size() int
- func (m *MsgUpdateTemplateResponse) XXX_Unmarshal(b []byte) error
- type MsgVoteForAction
- func (*MsgVoteForAction) Descriptor() ([]byte, []int)
- func (m *MsgVoteForAction) GetActionId() uint64
- func (m *MsgVoteForAction) GetParticipant() string
- func (m *MsgVoteForAction) GetVoteType() ActionVoteType
- func (m *MsgVoteForAction) Marshal() (dAtA []byte, err error)
- func (m *MsgVoteForAction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVoteForAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVoteForAction) ProtoMessage()
- func (m *MsgVoteForAction) Reset()
- func (m *MsgVoteForAction) Size() (n int)
- func (m *MsgVoteForAction) String() string
- func (m *MsgVoteForAction) Unmarshal(dAtA []byte) error
- func (m *MsgVoteForAction) XXX_DiscardUnknown()
- func (m *MsgVoteForAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVoteForAction) XXX_Merge(src proto.Message)
- func (m *MsgVoteForAction) XXX_Size() int
- func (m *MsgVoteForAction) XXX_Unmarshal(b []byte) error
- type MsgVoteForActionResponse
- func (*MsgVoteForActionResponse) Descriptor() ([]byte, []int)
- func (m *MsgVoteForActionResponse) GetStatus() string
- func (m *MsgVoteForActionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVoteForActionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVoteForActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVoteForActionResponse) ProtoMessage()
- func (m *MsgVoteForActionResponse) Reset()
- func (m *MsgVoteForActionResponse) Size() (n int)
- func (m *MsgVoteForActionResponse) String() string
- func (m *MsgVoteForActionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVoteForActionResponse) XXX_DiscardUnknown()
- func (m *MsgVoteForActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVoteForActionResponse) XXX_Merge(src proto.Message)
- func (m *MsgVoteForActionResponse) XXX_Size() int
- func (m *MsgVoteForActionResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMaxCompletedTime() time.Duration
- func (m *Params) GetMaxPendingTime() time.Duration
- func (m *Params) GetPruneCheckBlockFrequency() int64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type ProviderFn
- type ProviderFnG
- type ProviderFnWithCtx
- type ProviderFnWithCtxG
- type QueryActionByIdRequest
- func (*QueryActionByIdRequest) Descriptor() ([]byte, []int)
- func (m *QueryActionByIdRequest) GetId() uint64
- func (m *QueryActionByIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActionByIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActionByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActionByIdRequest) ProtoMessage()
- func (m *QueryActionByIdRequest) Reset()
- func (m *QueryActionByIdRequest) Size() (n int)
- func (m *QueryActionByIdRequest) String() string
- func (m *QueryActionByIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActionByIdRequest) XXX_DiscardUnknown()
- func (m *QueryActionByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActionByIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryActionByIdRequest) XXX_Size() int
- func (m *QueryActionByIdRequest) XXX_Unmarshal(b []byte) error
- type QueryActionByIdResponse
- func (*QueryActionByIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryActionByIdResponse) GetAction() *Action
- func (m *QueryActionByIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActionByIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActionByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActionByIdResponse) ProtoMessage()
- func (m *QueryActionByIdResponse) Reset()
- func (m *QueryActionByIdResponse) Size() (n int)
- func (m *QueryActionByIdResponse) String() string
- func (m *QueryActionByIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActionByIdResponse) XXX_DiscardUnknown()
- func (m *QueryActionByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActionByIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryActionByIdResponse) XXX_Size() int
- func (m *QueryActionByIdResponse) XXX_Unmarshal(b []byte) error
- type QueryActionsByAddressRequest
- func (*QueryActionsByAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryActionsByAddressRequest) GetAddress() string
- func (m *QueryActionsByAddressRequest) GetPagination() *query.PageRequest
- func (m *QueryActionsByAddressRequest) GetStatus() ActionStatus
- func (m *QueryActionsByAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActionsByAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActionsByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActionsByAddressRequest) ProtoMessage()
- func (m *QueryActionsByAddressRequest) Reset()
- func (m *QueryActionsByAddressRequest) Size() (n int)
- func (m *QueryActionsByAddressRequest) String() string
- func (m *QueryActionsByAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActionsByAddressRequest) XXX_DiscardUnknown()
- func (m *QueryActionsByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActionsByAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryActionsByAddressRequest) XXX_Size() int
- func (m *QueryActionsByAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryActionsByAddressResponse
- func (*QueryActionsByAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryActionsByAddressResponse) GetActions() []Action
- func (m *QueryActionsByAddressResponse) GetPagination() *query.PageResponse
- func (m *QueryActionsByAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActionsByAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActionsByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActionsByAddressResponse) ProtoMessage()
- func (m *QueryActionsByAddressResponse) Reset()
- func (m *QueryActionsByAddressResponse) Size() (n int)
- func (m *QueryActionsByAddressResponse) String() string
- func (m *QueryActionsByAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActionsByAddressResponse) XXX_DiscardUnknown()
- func (m *QueryActionsByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActionsByAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryActionsByAddressResponse) XXX_Size() int
- func (m *QueryActionsByAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryActionsRequest
- func (*QueryActionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryActionsRequest) GetPagination() *query.PageRequest
- func (m *QueryActionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActionsRequest) ProtoMessage()
- func (m *QueryActionsRequest) Reset()
- func (m *QueryActionsRequest) Size() (n int)
- func (m *QueryActionsRequest) String() string
- func (m *QueryActionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActionsRequest) XXX_DiscardUnknown()
- func (m *QueryActionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryActionsRequest) XXX_Size() int
- func (m *QueryActionsRequest) XXX_Unmarshal(b []byte) error
- type QueryActionsResponse
- func (*QueryActionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryActionsResponse) GetActions() []Action
- func (m *QueryActionsResponse) GetPagination() *query.PageResponse
- func (m *QueryActionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActionsResponse) ProtoMessage()
- func (m *QueryActionsResponse) Reset()
- func (m *QueryActionsResponse) Size() (n int)
- func (m *QueryActionsResponse) String() string
- func (m *QueryActionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActionsResponse) XXX_DiscardUnknown()
- func (m *QueryActionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryActionsResponse) XXX_Size() int
- func (m *QueryActionsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySimulateTemplateRequest
- func (*QuerySimulateTemplateRequest) Descriptor() ([]byte, []int)
- func (m *QuerySimulateTemplateRequest) GetDefinition() string
- func (m *QuerySimulateTemplateRequest) GetPagination() *query.PageRequest
- func (m *QuerySimulateTemplateRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySimulateTemplateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySimulateTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySimulateTemplateRequest) ProtoMessage()
- func (m *QuerySimulateTemplateRequest) Reset()
- func (m *QuerySimulateTemplateRequest) Size() (n int)
- func (m *QuerySimulateTemplateRequest) String() string
- func (m *QuerySimulateTemplateRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySimulateTemplateRequest) XXX_DiscardUnknown()
- func (m *QuerySimulateTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySimulateTemplateRequest) XXX_Merge(src proto.Message)
- func (m *QuerySimulateTemplateRequest) XXX_Size() int
- func (m *QuerySimulateTemplateRequest) XXX_Unmarshal(b []byte) error
- type QuerySimulateTemplateResponse
- func (*QuerySimulateTemplateResponse) Descriptor() ([]byte, []int)
- func (m *QuerySimulateTemplateResponse) GetEvaluation() string
- func (m *QuerySimulateTemplateResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySimulateTemplateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySimulateTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySimulateTemplateResponse) ProtoMessage()
- func (m *QuerySimulateTemplateResponse) Reset()
- func (m *QuerySimulateTemplateResponse) Size() (n int)
- func (m *QuerySimulateTemplateResponse) String() string
- func (m *QuerySimulateTemplateResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySimulateTemplateResponse) XXX_DiscardUnknown()
- func (m *QuerySimulateTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySimulateTemplateResponse) XXX_Merge(src proto.Message)
- func (m *QuerySimulateTemplateResponse) XXX_Size() int
- func (m *QuerySimulateTemplateResponse) XXX_Unmarshal(b []byte) error
- type QueryTemplateByIdRequest
- func (*QueryTemplateByIdRequest) Descriptor() ([]byte, []int)
- func (m *QueryTemplateByIdRequest) GetId() uint64
- func (m *QueryTemplateByIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTemplateByIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTemplateByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTemplateByIdRequest) ProtoMessage()
- func (m *QueryTemplateByIdRequest) Reset()
- func (m *QueryTemplateByIdRequest) Size() (n int)
- func (m *QueryTemplateByIdRequest) String() string
- func (m *QueryTemplateByIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTemplateByIdRequest) XXX_DiscardUnknown()
- func (m *QueryTemplateByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTemplateByIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryTemplateByIdRequest) XXX_Size() int
- func (m *QueryTemplateByIdRequest) XXX_Unmarshal(b []byte) error
- type QueryTemplateByIdResponse
- func (*QueryTemplateByIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryTemplateByIdResponse) GetTemplate() *Template
- func (m *QueryTemplateByIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTemplateByIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTemplateByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTemplateByIdResponse) ProtoMessage()
- func (m *QueryTemplateByIdResponse) Reset()
- func (m *QueryTemplateByIdResponse) Size() (n int)
- func (m *QueryTemplateByIdResponse) String() string
- func (m *QueryTemplateByIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTemplateByIdResponse) XXX_DiscardUnknown()
- func (m *QueryTemplateByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTemplateByIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryTemplateByIdResponse) XXX_Size() int
- func (m *QueryTemplateByIdResponse) XXX_Unmarshal(b []byte) error
- type QueryTemplatesRequest
- func (*QueryTemplatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryTemplatesRequest) GetCreator() string
- func (m *QueryTemplatesRequest) GetPagination() *query.PageRequest
- func (m *QueryTemplatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTemplatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTemplatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTemplatesRequest) ProtoMessage()
- func (m *QueryTemplatesRequest) Reset()
- func (m *QueryTemplatesRequest) Size() (n int)
- func (m *QueryTemplatesRequest) String() string
- func (m *QueryTemplatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTemplatesRequest) XXX_DiscardUnknown()
- func (m *QueryTemplatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTemplatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryTemplatesRequest) XXX_Size() int
- func (m *QueryTemplatesRequest) XXX_Unmarshal(b []byte) error
- type QueryTemplatesResponse
- func (*QueryTemplatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryTemplatesResponse) GetPagination() *query.PageResponse
- func (m *QueryTemplatesResponse) GetTemplates() []Template
- func (m *QueryTemplatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTemplatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTemplatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTemplatesResponse) ProtoMessage()
- func (m *QueryTemplatesResponse) Reset()
- func (m *QueryTemplatesResponse) Size() (n int)
- func (m *QueryTemplatesResponse) String() string
- func (m *QueryTemplatesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTemplatesResponse) XXX_DiscardUnknown()
- func (m *QueryTemplatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTemplatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryTemplatesResponse) XXX_Size() int
- func (m *QueryTemplatesResponse) XXX_Unmarshal(b []byte) error
- type Template
- func (*Template) Descriptor() ([]byte, []int)
- func (r *Template) Eval(ctx context.Context, env shield.Environment) (bool, error)
- func (m *Template) GetCreator() string
- func (m *Template) GetExpression() *ast.Expression
- func (m *Template) GetId() uint64
- func (m *Template) GetName() string
- func (m *Template) Marshal() (dAtA []byte, err error)
- func (m *Template) MarshalTo(dAtA []byte) (int, error)
- func (m *Template) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Template) ProtoMessage()
- func (m *Template) Reset()
- func (m *Template) Size() (n int)
- func (m *Template) String() string
- func (m *Template) Unmarshal(dAtA []byte) error
- func (r *Template) Validate() error
- func (m *Template) XXX_DiscardUnknown()
- func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Template) XXX_Merge(src proto.Message)
- func (m *Template) XXX_Size() int
- func (m *Template) XXX_Unmarshal(b []byte) error
- type TemplatesRegistry
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CheckAction(ctx context.Context, req *MsgCheckAction) (*MsgCheckActionResponse, error)
- func (*UnimplementedMsgServer) NewAction(ctx context.Context, req *MsgNewAction) (*MsgNewActionResponse, error)
- func (*UnimplementedMsgServer) NewTemplate(ctx context.Context, req *MsgNewTemplate) (*MsgNewTemplateResponse, error)
- func (*UnimplementedMsgServer) RevokeAction(ctx context.Context, req *MsgRevokeAction) (*MsgRevokeActionResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpdateTemplate(ctx context.Context, req *MsgUpdateTemplate) (*MsgUpdateTemplateResponse, error)
- func (*UnimplementedMsgServer) VoteForAction(ctx context.Context, req *MsgVoteForAction) (*MsgVoteForActionResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ActionById(ctx context.Context, req *QueryActionByIdRequest) (*QueryActionByIdResponse, error)
- func (*UnimplementedQueryServer) Actions(ctx context.Context, req *QueryActionsRequest) (*QueryActionsResponse, error)
- func (*UnimplementedQueryServer) ActionsByAddress(ctx context.Context, req *QueryActionsByAddressRequest) (*QueryActionsByAddressResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) SimulateTemplate(ctx context.Context, req *QuerySimulateTemplateRequest) (*QuerySimulateTemplateResponse, error)
- func (*UnimplementedQueryServer) TemplateById(ctx context.Context, req *QueryTemplateByIdRequest) (*QueryTemplateByIdResponse, error)
- func (*UnimplementedQueryServer) Templates(ctx context.Context, req *QueryTemplatesRequest) (*QueryTemplatesResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "act" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_act" ActionCountKey = "action/count" ActionKey = "action/value/" TemplateCountKey = "template/count" TemplateKey = "template/value/" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
var ( ErrInvalidLengthAction = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAction = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAction = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthActionVote = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowActionVote = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupActionVote = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrInvalidActionMsgSigner = sdkerrors.Register(ModuleName, 1102, "expected x/act account as only signer for action message") ErrInvalidActionStatus = sdkerrors.Register(ModuleName, 1103, "invalid action status") ErrInvalidActionStatusChange = sdkerrors.Register(ModuleName, 1104, "invalid status change") ErrTemplateEvaluationFailed = sdkerrors.Register(ModuleName, 1106, "template evaluation failed") ErrTemplateNotBoolean = sdkerrors.Register(ModuleName, 1107, "template must evaluate to a boolean") ErrInvalidTemplate = sdkerrors.Register(ModuleName, 1108, "template is invalid") ErrInvalidActionMsg = sdkerrors.Register(ModuleName, 1109, "invalid action message") ErrNoActionMsgHandler = sdkerrors.Register(ModuleName, 1110, "no action message handler registered for message type") ErrNoTemplateRegistryHandler = sdkerrors.Register(ModuleName, 1111, "no template registry handler registered for message type") ErrInvalidExpressionDefinition = sdkerrors.Register(ModuleName, 1112, "invalid template definition") ErrInvalidRevoker = sdkerrors.Register(ModuleName, 1113, "this account can't revoke this action") ErrInvalidUpdateTemplateAccount = sdkerrors.Register(ModuleName, 1114, "this account can't update this template") ErrApproveExpressionNotMatched = sdkerrors.Register(ModuleName, 1115, "approve expression not matched with expected") ErrRejectExpressionNotMatched = sdkerrors.Register(ModuleName, 1116, "reject expression not matched with expected") )
x/act module sentinel errors
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTemplate = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTemplate = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTemplate = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
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",
}
var 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,
}
var ActionVoteType_name = map[int32]string{
0: "VOTE_TYPE_UNSPECIFIED",
1: "VOTE_TYPE_APPROVED",
2: "VOTE_TYPE_REJECTED",
}
var ActionVoteType_value = map[string]int32{
"VOTE_TYPE_UNSPECIFIED": 0,
"VOTE_TYPE_APPROVED": 1,
"VOTE_TYPE_REJECTED": 2,
}
var DefaultMaxCompletedTime time.Duration = time.Hour * 168 // week
var DefaultMaxPendingTime time.Duration = time.Hour * 24 // day
var Msg_serviceDesc = _Msg_serviceDesc
var (
ParamsKey = []byte("p_act")
)
var PruneCheckBlockFrequency int64 = 10000 // ~17 hours
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func Register ¶
func Register[T sdk.Msg](reg registry, fn ProviderFnG[T])
Register is a type-safe version of TemplatesRegistry.Register that uses generics to ensure that the callback function accepts a sdk.Msg of the correct type.
func RegisterCtx ¶
func RegisterCtx[T sdk.Msg](reg registryWithCtx, fn ProviderFnWithCtxG[T])
RegisterCtx is a type-safe version of TemplatesRegistry.RegisterCtx that uses generics to ensure that the callback function accepts a sdk.Msg of the correct type.
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type ActExpression ¶ added in v0.5.0
type ActExpression ast.Expression
func (*ActExpression) EvalExpression ¶ added in v0.5.0
func (r *ActExpression) EvalExpression(ctx context.Context, env shield.Environment) (bool, error)
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 *types.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 *types.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 time.Time `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` // updated_at is a timestamp specifying when the action's status was updated UpdatedAt time.Time `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"` // 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"` // The expression to be evaluated for rejection. RejectExpression ast.Expression `protobuf:"bytes,11,opt,name=reject_expression,json=rejectExpression,proto3" json:"reject_expression"` // The votes accepted from the voting participants. Votes []*ActionVote `protobuf:"bytes,12,rep,name=votes,proto3" json:"votes,omitempty"` }
Action wraps a message that will be executed when its associated template is satisfied.
func (*Action) AddOrUpdateVote ¶ added in v0.5.0
func (*Action) Descriptor ¶
func (*Action) GetApproveExpression ¶ added in v0.5.0
func (m *Action) GetApproveExpression() ast.Expression
func (*Action) GetCreatedAt ¶
func (*Action) GetCreator ¶
func (*Action) GetMentions ¶
func (*Action) GetRejectExpression ¶ added in v0.5.0
func (m *Action) GetRejectExpression() ast.Expression
func (*Action) GetStatus ¶
func (m *Action) GetStatus() ActionStatus
func (*Action) GetTimeoutHeight ¶
func (*Action) GetUpdatedAt ¶
func (*Action) GetVotes ¶ added in v0.5.0
func (m *Action) GetVotes() []*ActionVote
func (*Action) MarshalToSizedBuffer ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) XXX_DiscardUnknown ¶
func (m *Action) XXX_DiscardUnknown()
func (*Action) XXX_Marshal ¶
func (*Action) XXX_Unmarshal ¶
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) EnumDescriptor ¶
func (ActionStatus) EnumDescriptor() ([]byte, []int)
func (ActionStatus) String ¶
func (x ActionStatus) String() string
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 time.Time `protobuf:"bytes,2,opt,name=voted_at,json=votedAt,proto3,stdtime" json:"voted_at"` // 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"` }
func NewVote ¶ added in v0.5.0
func NewVote(participant string, voteType ActionVoteType, timestamp time.Time) *ActionVote
func (*ActionVote) Descriptor ¶ added in v0.5.0
func (*ActionVote) Descriptor() ([]byte, []int)
func (*ActionVote) GetParticipant ¶ added in v0.5.0
func (m *ActionVote) GetParticipant() string
func (*ActionVote) GetVoteType ¶ added in v0.5.0
func (m *ActionVote) GetVoteType() ActionVoteType
func (*ActionVote) GetVotedAt ¶ added in v0.5.0
func (m *ActionVote) GetVotedAt() time.Time
func (*ActionVote) Marshal ¶ added in v0.5.0
func (m *ActionVote) Marshal() (dAtA []byte, err error)
func (*ActionVote) MarshalTo ¶ added in v0.5.0
func (m *ActionVote) MarshalTo(dAtA []byte) (int, error)
func (*ActionVote) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *ActionVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ActionVote) ProtoMessage ¶ added in v0.5.0
func (*ActionVote) ProtoMessage()
func (*ActionVote) Reset ¶ added in v0.5.0
func (m *ActionVote) Reset()
func (*ActionVote) Size ¶ added in v0.5.0
func (m *ActionVote) Size() (n int)
func (*ActionVote) String ¶ added in v0.5.0
func (m *ActionVote) String() string
func (*ActionVote) Unmarshal ¶ added in v0.5.0
func (m *ActionVote) Unmarshal(dAtA []byte) error
func (*ActionVote) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *ActionVote) XXX_DiscardUnknown()
func (*ActionVote) XXX_Marshal ¶ added in v0.5.0
func (m *ActionVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ActionVote) XXX_Merge ¶ added in v0.5.0
func (m *ActionVote) XXX_Merge(src proto.Message)
func (*ActionVote) XXX_Size ¶ added in v0.5.0
func (m *ActionVote) XXX_Size() int
func (*ActionVote) XXX_Unmarshal ¶ added in v0.5.0
func (m *ActionVote) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶ added in v0.5.0
func (ActionVoteType) EnumDescriptor() ([]byte, []int)
func (ActionVoteType) String ¶ added in v0.5.0
func (x ActionVoteType) String() string
type BankKeeper ¶
BankKeeper defines the expected interface for the Bank module.
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"` }
EventActionPruned is emitted when an Action is pruned in `Completed`, `Revoked`, `Pending` or `Timeout` states and won't be processed further
func (*EventActionPruned) Descriptor ¶ added in v0.5.0
func (*EventActionPruned) Descriptor() ([]byte, []int)
func (*EventActionPruned) GetId ¶ added in v0.5.0
func (m *EventActionPruned) GetId() uint64
func (*EventActionPruned) Marshal ¶ added in v0.5.0
func (m *EventActionPruned) Marshal() (dAtA []byte, err error)
func (*EventActionPruned) MarshalTo ¶ added in v0.5.0
func (m *EventActionPruned) MarshalTo(dAtA []byte) (int, error)
func (*EventActionPruned) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *EventActionPruned) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventActionPruned) ProtoMessage ¶ added in v0.5.0
func (*EventActionPruned) ProtoMessage()
func (*EventActionPruned) Reset ¶ added in v0.5.0
func (m *EventActionPruned) Reset()
func (*EventActionPruned) Size ¶ added in v0.5.0
func (m *EventActionPruned) Size() (n int)
func (*EventActionPruned) String ¶ added in v0.5.0
func (m *EventActionPruned) String() string
func (*EventActionPruned) Unmarshal ¶ added in v0.5.0
func (m *EventActionPruned) Unmarshal(dAtA []byte) error
func (*EventActionPruned) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *EventActionPruned) XXX_DiscardUnknown()
func (*EventActionPruned) XXX_Marshal ¶ added in v0.5.0
func (m *EventActionPruned) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventActionPruned) XXX_Merge ¶ added in v0.5.0
func (m *EventActionPruned) XXX_Merge(src proto.Message)
func (*EventActionPruned) XXX_Size ¶ added in v0.5.0
func (m *EventActionPruned) XXX_Size() int
func (*EventActionPruned) XXX_Unmarshal ¶ added in v0.5.0
func (m *EventActionPruned) XXX_Unmarshal(b []byte) error
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 */ }
EventActionStateChange is emitted when an Action is in a new state
func (*EventActionStateChange) Descriptor ¶
func (*EventActionStateChange) Descriptor() ([]byte, []int)
func (*EventActionStateChange) GetId ¶
func (m *EventActionStateChange) GetId() uint64
func (*EventActionStateChange) GetNewStatus ¶
func (m *EventActionStateChange) GetNewStatus() ActionStatus
func (*EventActionStateChange) GetPreviousStatus ¶
func (m *EventActionStateChange) GetPreviousStatus() ActionStatus
func (*EventActionStateChange) Marshal ¶
func (m *EventActionStateChange) Marshal() (dAtA []byte, err error)
func (*EventActionStateChange) MarshalTo ¶
func (m *EventActionStateChange) MarshalTo(dAtA []byte) (int, error)
func (*EventActionStateChange) MarshalToSizedBuffer ¶
func (m *EventActionStateChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventActionStateChange) ProtoMessage ¶
func (*EventActionStateChange) ProtoMessage()
func (*EventActionStateChange) Reset ¶
func (m *EventActionStateChange) Reset()
func (*EventActionStateChange) Size ¶
func (m *EventActionStateChange) Size() (n int)
func (*EventActionStateChange) String ¶
func (m *EventActionStateChange) String() string
func (*EventActionStateChange) Unmarshal ¶
func (m *EventActionStateChange) Unmarshal(dAtA []byte) error
func (*EventActionStateChange) XXX_DiscardUnknown ¶
func (m *EventActionStateChange) XXX_DiscardUnknown()
func (*EventActionStateChange) XXX_Marshal ¶
func (m *EventActionStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventActionStateChange) XXX_Merge ¶
func (m *EventActionStateChange) XXX_Merge(src proto.Message)
func (*EventActionStateChange) XXX_Size ¶
func (m *EventActionStateChange) XXX_Size() int
func (*EventActionStateChange) XXX_Unmarshal ¶
func (m *EventActionStateChange) XXX_Unmarshal(b []byte) error
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"` }
EventActionVoted is emitted when an Action is voted on
func (*EventActionVoted) Descriptor ¶ added in v0.5.0
func (*EventActionVoted) Descriptor() ([]byte, []int)
func (*EventActionVoted) GetId ¶ added in v0.5.0
func (m *EventActionVoted) GetId() uint64
func (*EventActionVoted) GetParticipant ¶ added in v0.5.0
func (m *EventActionVoted) GetParticipant() string
func (*EventActionVoted) GetVoteType ¶ added in v0.5.0
func (m *EventActionVoted) GetVoteType() ActionVoteType
func (*EventActionVoted) Marshal ¶ added in v0.5.0
func (m *EventActionVoted) Marshal() (dAtA []byte, err error)
func (*EventActionVoted) MarshalTo ¶ added in v0.5.0
func (m *EventActionVoted) MarshalTo(dAtA []byte) (int, error)
func (*EventActionVoted) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *EventActionVoted) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventActionVoted) ProtoMessage ¶ added in v0.5.0
func (*EventActionVoted) ProtoMessage()
func (*EventActionVoted) Reset ¶ added in v0.5.0
func (m *EventActionVoted) Reset()
func (*EventActionVoted) Size ¶ added in v0.5.0
func (m *EventActionVoted) Size() (n int)
func (*EventActionVoted) String ¶ added in v0.5.0
func (m *EventActionVoted) String() string
func (*EventActionVoted) Unmarshal ¶ added in v0.5.0
func (m *EventActionVoted) Unmarshal(dAtA []byte) error
func (*EventActionVoted) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *EventActionVoted) XXX_DiscardUnknown()
func (*EventActionVoted) XXX_Marshal ¶ added in v0.5.0
func (m *EventActionVoted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventActionVoted) XXX_Merge ¶ added in v0.5.0
func (m *EventActionVoted) XXX_Merge(src proto.Message)
func (*EventActionVoted) XXX_Size ¶ added in v0.5.0
func (m *EventActionVoted) XXX_Size() int
func (*EventActionVoted) XXX_Unmarshal ¶ added in v0.5.0
func (m *EventActionVoted) XXX_Unmarshal(b []byte) error
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"` }
EventCreateAction is emitted when an Action is created
func (*EventCreateAction) Descriptor ¶
func (*EventCreateAction) Descriptor() ([]byte, []int)
func (*EventCreateAction) GetCreator ¶
func (m *EventCreateAction) GetCreator() string
func (*EventCreateAction) GetId ¶
func (m *EventCreateAction) GetId() uint64
func (*EventCreateAction) Marshal ¶
func (m *EventCreateAction) Marshal() (dAtA []byte, err error)
func (*EventCreateAction) MarshalTo ¶
func (m *EventCreateAction) MarshalTo(dAtA []byte) (int, error)
func (*EventCreateAction) MarshalToSizedBuffer ¶
func (m *EventCreateAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateAction) ProtoMessage ¶
func (*EventCreateAction) ProtoMessage()
func (*EventCreateAction) Reset ¶
func (m *EventCreateAction) Reset()
func (*EventCreateAction) Size ¶
func (m *EventCreateAction) Size() (n int)
func (*EventCreateAction) String ¶
func (m *EventCreateAction) String() string
func (*EventCreateAction) Unmarshal ¶
func (m *EventCreateAction) Unmarshal(dAtA []byte) error
func (*EventCreateAction) XXX_DiscardUnknown ¶
func (m *EventCreateAction) XXX_DiscardUnknown()
func (*EventCreateAction) XXX_Marshal ¶
func (m *EventCreateAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateAction) XXX_Merge ¶
func (m *EventCreateAction) XXX_Merge(src proto.Message)
func (*EventCreateAction) XXX_Size ¶
func (m *EventCreateAction) XXX_Size() int
func (*EventCreateAction) XXX_Unmarshal ¶
func (m *EventCreateAction) XXX_Unmarshal(b []byte) error
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"` }
EventCreateTemplate is emitted on Template creation
func (*EventCreateTemplate) Descriptor ¶ added in v0.5.0
func (*EventCreateTemplate) Descriptor() ([]byte, []int)
func (*EventCreateTemplate) GetCreator ¶ added in v0.5.0
func (m *EventCreateTemplate) GetCreator() string
func (*EventCreateTemplate) GetId ¶ added in v0.5.0
func (m *EventCreateTemplate) GetId() uint64
func (*EventCreateTemplate) Marshal ¶ added in v0.5.0
func (m *EventCreateTemplate) Marshal() (dAtA []byte, err error)
func (*EventCreateTemplate) MarshalTo ¶ added in v0.5.0
func (m *EventCreateTemplate) MarshalTo(dAtA []byte) (int, error)
func (*EventCreateTemplate) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *EventCreateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateTemplate) ProtoMessage ¶ added in v0.5.0
func (*EventCreateTemplate) ProtoMessage()
func (*EventCreateTemplate) Reset ¶ added in v0.5.0
func (m *EventCreateTemplate) Reset()
func (*EventCreateTemplate) Size ¶ added in v0.5.0
func (m *EventCreateTemplate) Size() (n int)
func (*EventCreateTemplate) String ¶ added in v0.5.0
func (m *EventCreateTemplate) String() string
func (*EventCreateTemplate) Unmarshal ¶ added in v0.5.0
func (m *EventCreateTemplate) Unmarshal(dAtA []byte) error
func (*EventCreateTemplate) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *EventCreateTemplate) XXX_DiscardUnknown()
func (*EventCreateTemplate) XXX_Marshal ¶ added in v0.5.0
func (m *EventCreateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateTemplate) XXX_Merge ¶ added in v0.5.0
func (m *EventCreateTemplate) XXX_Merge(src proto.Message)
func (*EventCreateTemplate) XXX_Size ¶ added in v0.5.0
func (m *EventCreateTemplate) XXX_Size() int
func (*EventCreateTemplate) XXX_Unmarshal ¶ added in v0.5.0
func (m *EventCreateTemplate) XXX_Unmarshal(b []byte) error
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"` }
EventUpdateTemplate is emitted when Template is updated
func (*EventUpdateTemplate) Descriptor ¶ added in v0.5.0
func (*EventUpdateTemplate) Descriptor() ([]byte, []int)
func (*EventUpdateTemplate) GetId ¶ added in v0.5.0
func (m *EventUpdateTemplate) GetId() uint64
func (*EventUpdateTemplate) Marshal ¶ added in v0.5.0
func (m *EventUpdateTemplate) Marshal() (dAtA []byte, err error)
func (*EventUpdateTemplate) MarshalTo ¶ added in v0.5.0
func (m *EventUpdateTemplate) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateTemplate) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *EventUpdateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateTemplate) ProtoMessage ¶ added in v0.5.0
func (*EventUpdateTemplate) ProtoMessage()
func (*EventUpdateTemplate) Reset ¶ added in v0.5.0
func (m *EventUpdateTemplate) Reset()
func (*EventUpdateTemplate) Size ¶ added in v0.5.0
func (m *EventUpdateTemplate) Size() (n int)
func (*EventUpdateTemplate) String ¶ added in v0.5.0
func (m *EventUpdateTemplate) String() string
func (*EventUpdateTemplate) Unmarshal ¶ added in v0.5.0
func (m *EventUpdateTemplate) Unmarshal(dAtA []byte) error
func (*EventUpdateTemplate) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *EventUpdateTemplate) XXX_DiscardUnknown()
func (*EventUpdateTemplate) XXX_Marshal ¶ added in v0.5.0
func (m *EventUpdateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateTemplate) XXX_Merge ¶ added in v0.5.0
func (m *EventUpdateTemplate) XXX_Merge(src proto.Message)
func (*EventUpdateTemplate) XXX_Size ¶ added in v0.5.0
func (m *EventUpdateTemplate) XXX_Size() int
func (*EventUpdateTemplate) XXX_Unmarshal ¶ added in v0.5.0
func (m *EventUpdateTemplate) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Actions []Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions"` Templates []Template `protobuf:"bytes,3,rep,name=templates,proto3" json:"templates"` }
GenesisState defines the act module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetActions ¶ added in v0.4.1
func (m *GenesisState) GetActions() []Action
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetTemplates ¶ added in v0.5.0
func (m *GenesisState) GetTemplates() []Template
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type 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"` }
func (*MsgCheckAction) Descriptor ¶
func (*MsgCheckAction) Descriptor() ([]byte, []int)
func (*MsgCheckAction) GetActionId ¶
func (m *MsgCheckAction) GetActionId() uint64
func (*MsgCheckAction) GetCreator ¶
func (m *MsgCheckAction) GetCreator() string
func (*MsgCheckAction) Marshal ¶
func (m *MsgCheckAction) Marshal() (dAtA []byte, err error)
func (*MsgCheckAction) MarshalToSizedBuffer ¶
func (m *MsgCheckAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCheckAction) ProtoMessage ¶
func (*MsgCheckAction) ProtoMessage()
func (*MsgCheckAction) Reset ¶
func (m *MsgCheckAction) Reset()
func (*MsgCheckAction) Size ¶
func (m *MsgCheckAction) Size() (n int)
func (*MsgCheckAction) String ¶
func (m *MsgCheckAction) String() string
func (*MsgCheckAction) Unmarshal ¶
func (m *MsgCheckAction) Unmarshal(dAtA []byte) error
func (*MsgCheckAction) XXX_DiscardUnknown ¶
func (m *MsgCheckAction) XXX_DiscardUnknown()
func (*MsgCheckAction) XXX_Marshal ¶
func (m *MsgCheckAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCheckAction) XXX_Merge ¶
func (m *MsgCheckAction) XXX_Merge(src proto.Message)
func (*MsgCheckAction) XXX_Size ¶
func (m *MsgCheckAction) XXX_Size() int
func (*MsgCheckAction) XXX_Unmarshal ¶
func (m *MsgCheckAction) XXX_Unmarshal(b []byte) error
type MsgCheckActionResponse ¶
type MsgCheckActionResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (*MsgCheckActionResponse) Descriptor ¶
func (*MsgCheckActionResponse) Descriptor() ([]byte, []int)
func (*MsgCheckActionResponse) GetStatus ¶
func (m *MsgCheckActionResponse) GetStatus() string
func (*MsgCheckActionResponse) Marshal ¶
func (m *MsgCheckActionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCheckActionResponse) MarshalTo ¶
func (m *MsgCheckActionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCheckActionResponse) MarshalToSizedBuffer ¶
func (m *MsgCheckActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCheckActionResponse) ProtoMessage ¶
func (*MsgCheckActionResponse) ProtoMessage()
func (*MsgCheckActionResponse) Reset ¶
func (m *MsgCheckActionResponse) Reset()
func (*MsgCheckActionResponse) Size ¶
func (m *MsgCheckActionResponse) Size() (n int)
func (*MsgCheckActionResponse) String ¶
func (m *MsgCheckActionResponse) String() string
func (*MsgCheckActionResponse) Unmarshal ¶
func (m *MsgCheckActionResponse) Unmarshal(dAtA []byte) error
func (*MsgCheckActionResponse) XXX_DiscardUnknown ¶
func (m *MsgCheckActionResponse) XXX_DiscardUnknown()
func (*MsgCheckActionResponse) XXX_Marshal ¶
func (m *MsgCheckActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCheckActionResponse) XXX_Merge ¶
func (m *MsgCheckActionResponse) XXX_Merge(src proto.Message)
func (*MsgCheckActionResponse) XXX_Size ¶
func (m *MsgCheckActionResponse) XXX_Size() int
func (*MsgCheckActionResponse) XXX_Unmarshal ¶
func (m *MsgCheckActionResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) 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 *types.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 */ }
func (*MsgNewAction) Descriptor ¶
func (*MsgNewAction) Descriptor() ([]byte, []int)
func (*MsgNewAction) GetActionTimeoutHeight ¶
func (m *MsgNewAction) GetActionTimeoutHeight() uint64
func (*MsgNewAction) GetCreator ¶
func (m *MsgNewAction) GetCreator() string
func (*MsgNewAction) GetExpectedApproveExpression ¶ added in v0.5.0
func (m *MsgNewAction) GetExpectedApproveExpression() string
func (*MsgNewAction) GetExpectedRejectExpression ¶ added in v0.5.0
func (m *MsgNewAction) GetExpectedRejectExpression() string
func (*MsgNewAction) GetMessage ¶
func (m *MsgNewAction) GetMessage() *types.Any
func (*MsgNewAction) Marshal ¶
func (m *MsgNewAction) Marshal() (dAtA []byte, err error)
func (*MsgNewAction) MarshalToSizedBuffer ¶
func (m *MsgNewAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewAction) ProtoMessage ¶
func (*MsgNewAction) ProtoMessage()
func (*MsgNewAction) Reset ¶
func (m *MsgNewAction) Reset()
func (*MsgNewAction) Size ¶
func (m *MsgNewAction) Size() (n int)
func (*MsgNewAction) String ¶
func (m *MsgNewAction) String() string
func (*MsgNewAction) Unmarshal ¶
func (m *MsgNewAction) Unmarshal(dAtA []byte) error
func (*MsgNewAction) XXX_DiscardUnknown ¶
func (m *MsgNewAction) XXX_DiscardUnknown()
func (*MsgNewAction) XXX_Marshal ¶
func (m *MsgNewAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewAction) XXX_Merge ¶
func (m *MsgNewAction) XXX_Merge(src proto.Message)
func (*MsgNewAction) XXX_Size ¶
func (m *MsgNewAction) XXX_Size() int
func (*MsgNewAction) XXX_Unmarshal ¶
func (m *MsgNewAction) XXX_Unmarshal(b []byte) error
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"` }
func (*MsgNewActionResponse) Descriptor ¶
func (*MsgNewActionResponse) Descriptor() ([]byte, []int)
func (*MsgNewActionResponse) GetId ¶
func (m *MsgNewActionResponse) GetId() uint64
func (*MsgNewActionResponse) Marshal ¶
func (m *MsgNewActionResponse) Marshal() (dAtA []byte, err error)
func (*MsgNewActionResponse) MarshalTo ¶
func (m *MsgNewActionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewActionResponse) MarshalToSizedBuffer ¶
func (m *MsgNewActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewActionResponse) ProtoMessage ¶
func (*MsgNewActionResponse) ProtoMessage()
func (*MsgNewActionResponse) Reset ¶
func (m *MsgNewActionResponse) Reset()
func (*MsgNewActionResponse) Size ¶
func (m *MsgNewActionResponse) Size() (n int)
func (*MsgNewActionResponse) String ¶
func (m *MsgNewActionResponse) String() string
func (*MsgNewActionResponse) Unmarshal ¶
func (m *MsgNewActionResponse) Unmarshal(dAtA []byte) error
func (*MsgNewActionResponse) XXX_DiscardUnknown ¶
func (m *MsgNewActionResponse) XXX_DiscardUnknown()
func (*MsgNewActionResponse) XXX_Marshal ¶
func (m *MsgNewActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewActionResponse) XXX_Merge ¶
func (m *MsgNewActionResponse) XXX_Merge(src proto.Message)
func (*MsgNewActionResponse) XXX_Size ¶
func (m *MsgNewActionResponse) XXX_Size() int
func (*MsgNewActionResponse) XXX_Unmarshal ¶
func (m *MsgNewActionResponse) XXX_Unmarshal(b []byte) error
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"` }
func (*MsgNewTemplate) Descriptor ¶ added in v0.5.0
func (*MsgNewTemplate) Descriptor() ([]byte, []int)
func (*MsgNewTemplate) GetCreator ¶ added in v0.5.0
func (m *MsgNewTemplate) GetCreator() string
func (*MsgNewTemplate) GetDefinition ¶ added in v0.5.0
func (m *MsgNewTemplate) GetDefinition() string
func (*MsgNewTemplate) GetName ¶ added in v0.5.0
func (m *MsgNewTemplate) GetName() string
func (*MsgNewTemplate) Marshal ¶ added in v0.5.0
func (m *MsgNewTemplate) Marshal() (dAtA []byte, err error)
func (*MsgNewTemplate) MarshalTo ¶ added in v0.5.0
func (m *MsgNewTemplate) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewTemplate) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *MsgNewTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewTemplate) ProtoMessage ¶ added in v0.5.0
func (*MsgNewTemplate) ProtoMessage()
func (*MsgNewTemplate) Reset ¶ added in v0.5.0
func (m *MsgNewTemplate) Reset()
func (*MsgNewTemplate) Size ¶ added in v0.5.0
func (m *MsgNewTemplate) Size() (n int)
func (*MsgNewTemplate) String ¶ added in v0.5.0
func (m *MsgNewTemplate) String() string
func (*MsgNewTemplate) Unmarshal ¶ added in v0.5.0
func (m *MsgNewTemplate) Unmarshal(dAtA []byte) error
func (*MsgNewTemplate) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *MsgNewTemplate) XXX_DiscardUnknown()
func (*MsgNewTemplate) XXX_Marshal ¶ added in v0.5.0
func (m *MsgNewTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewTemplate) XXX_Merge ¶ added in v0.5.0
func (m *MsgNewTemplate) XXX_Merge(src proto.Message)
func (*MsgNewTemplate) XXX_Size ¶ added in v0.5.0
func (m *MsgNewTemplate) XXX_Size() int
func (*MsgNewTemplate) XXX_Unmarshal ¶ added in v0.5.0
func (m *MsgNewTemplate) XXX_Unmarshal(b []byte) error
type MsgNewTemplateResponse ¶ added in v0.5.0
type MsgNewTemplateResponse struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*MsgNewTemplateResponse) Descriptor ¶ added in v0.5.0
func (*MsgNewTemplateResponse) Descriptor() ([]byte, []int)
func (*MsgNewTemplateResponse) GetId ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) GetId() uint64
func (*MsgNewTemplateResponse) Marshal ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) Marshal() (dAtA []byte, err error)
func (*MsgNewTemplateResponse) MarshalTo ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewTemplateResponse) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewTemplateResponse) ProtoMessage ¶ added in v0.5.0
func (*MsgNewTemplateResponse) ProtoMessage()
func (*MsgNewTemplateResponse) Reset ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) Reset()
func (*MsgNewTemplateResponse) Size ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) Size() (n int)
func (*MsgNewTemplateResponse) String ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) String() string
func (*MsgNewTemplateResponse) Unmarshal ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) Unmarshal(dAtA []byte) error
func (*MsgNewTemplateResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) XXX_DiscardUnknown()
func (*MsgNewTemplateResponse) XXX_Marshal ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewTemplateResponse) XXX_Merge ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) XXX_Merge(src proto.Message)
func (*MsgNewTemplateResponse) XXX_Size ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) XXX_Size() int
func (*MsgNewTemplateResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *MsgNewTemplateResponse) XXX_Unmarshal(b []byte) error
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"` }
func (*MsgRevokeAction) Descriptor ¶
func (*MsgRevokeAction) Descriptor() ([]byte, []int)
func (*MsgRevokeAction) GetActionId ¶
func (m *MsgRevokeAction) GetActionId() uint64
func (*MsgRevokeAction) GetCreator ¶
func (m *MsgRevokeAction) GetCreator() string
func (*MsgRevokeAction) Marshal ¶
func (m *MsgRevokeAction) Marshal() (dAtA []byte, err error)
func (*MsgRevokeAction) MarshalToSizedBuffer ¶
func (m *MsgRevokeAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeAction) ProtoMessage ¶
func (*MsgRevokeAction) ProtoMessage()
func (*MsgRevokeAction) Reset ¶
func (m *MsgRevokeAction) Reset()
func (*MsgRevokeAction) Size ¶
func (m *MsgRevokeAction) Size() (n int)
func (*MsgRevokeAction) String ¶
func (m *MsgRevokeAction) String() string
func (*MsgRevokeAction) Unmarshal ¶
func (m *MsgRevokeAction) Unmarshal(dAtA []byte) error
func (*MsgRevokeAction) XXX_DiscardUnknown ¶
func (m *MsgRevokeAction) XXX_DiscardUnknown()
func (*MsgRevokeAction) XXX_Marshal ¶
func (m *MsgRevokeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeAction) XXX_Merge ¶
func (m *MsgRevokeAction) XXX_Merge(src proto.Message)
func (*MsgRevokeAction) XXX_Size ¶
func (m *MsgRevokeAction) XXX_Size() int
func (*MsgRevokeAction) XXX_Unmarshal ¶
func (m *MsgRevokeAction) XXX_Unmarshal(b []byte) error
type MsgRevokeActionResponse ¶
type MsgRevokeActionResponse struct { }
func (*MsgRevokeActionResponse) Descriptor ¶
func (*MsgRevokeActionResponse) Descriptor() ([]byte, []int)
func (*MsgRevokeActionResponse) Marshal ¶
func (m *MsgRevokeActionResponse) Marshal() (dAtA []byte, err error)
func (*MsgRevokeActionResponse) MarshalTo ¶
func (m *MsgRevokeActionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRevokeActionResponse) MarshalToSizedBuffer ¶
func (m *MsgRevokeActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRevokeActionResponse) ProtoMessage ¶
func (*MsgRevokeActionResponse) ProtoMessage()
func (*MsgRevokeActionResponse) Reset ¶
func (m *MsgRevokeActionResponse) Reset()
func (*MsgRevokeActionResponse) Size ¶
func (m *MsgRevokeActionResponse) Size() (n int)
func (*MsgRevokeActionResponse) String ¶
func (m *MsgRevokeActionResponse) String() string
func (*MsgRevokeActionResponse) Unmarshal ¶
func (m *MsgRevokeActionResponse) Unmarshal(dAtA []byte) error
func (*MsgRevokeActionResponse) XXX_DiscardUnknown ¶
func (m *MsgRevokeActionResponse) XXX_DiscardUnknown()
func (*MsgRevokeActionResponse) XXX_Marshal ¶
func (m *MsgRevokeActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRevokeActionResponse) XXX_Merge ¶
func (m *MsgRevokeActionResponse) XXX_Merge(src proto.Message)
func (*MsgRevokeActionResponse) XXX_Size ¶
func (m *MsgRevokeActionResponse) XXX_Size() int
func (*MsgRevokeActionResponse) XXX_Unmarshal ¶
func (m *MsgRevokeActionResponse) XXX_Unmarshal(b []byte) error
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) }
MsgServer is the server API for Msg service.
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"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type 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"` }
func (*MsgUpdateTemplate) Descriptor ¶ added in v0.5.0
func (*MsgUpdateTemplate) Descriptor() ([]byte, []int)
func (*MsgUpdateTemplate) GetCreator ¶ added in v0.5.0
func (m *MsgUpdateTemplate) GetCreator() string
func (*MsgUpdateTemplate) GetDefinition ¶ added in v0.5.0
func (m *MsgUpdateTemplate) GetDefinition() string
func (*MsgUpdateTemplate) GetId ¶ added in v0.5.0
func (m *MsgUpdateTemplate) GetId() uint64
func (*MsgUpdateTemplate) GetName ¶ added in v0.5.0
func (m *MsgUpdateTemplate) GetName() string
func (*MsgUpdateTemplate) Marshal ¶ added in v0.5.0
func (m *MsgUpdateTemplate) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTemplate) MarshalTo ¶ added in v0.5.0
func (m *MsgUpdateTemplate) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTemplate) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *MsgUpdateTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTemplate) ProtoMessage ¶ added in v0.5.0
func (*MsgUpdateTemplate) ProtoMessage()
func (*MsgUpdateTemplate) Reset ¶ added in v0.5.0
func (m *MsgUpdateTemplate) Reset()
func (*MsgUpdateTemplate) Size ¶ added in v0.5.0
func (m *MsgUpdateTemplate) Size() (n int)
func (*MsgUpdateTemplate) String ¶ added in v0.5.0
func (m *MsgUpdateTemplate) String() string
func (*MsgUpdateTemplate) Unmarshal ¶ added in v0.5.0
func (m *MsgUpdateTemplate) Unmarshal(dAtA []byte) error
func (*MsgUpdateTemplate) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *MsgUpdateTemplate) XXX_DiscardUnknown()
func (*MsgUpdateTemplate) XXX_Marshal ¶ added in v0.5.0
func (m *MsgUpdateTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTemplate) XXX_Merge ¶ added in v0.5.0
func (m *MsgUpdateTemplate) XXX_Merge(src proto.Message)
func (*MsgUpdateTemplate) XXX_Size ¶ added in v0.5.0
func (m *MsgUpdateTemplate) XXX_Size() int
func (*MsgUpdateTemplate) XXX_Unmarshal ¶ added in v0.5.0
func (m *MsgUpdateTemplate) XXX_Unmarshal(b []byte) error
type MsgUpdateTemplateResponse ¶ added in v0.5.0
type MsgUpdateTemplateResponse struct { }
func (*MsgUpdateTemplateResponse) Descriptor ¶ added in v0.5.0
func (*MsgUpdateTemplateResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateTemplateResponse) Marshal ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTemplateResponse) MarshalTo ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTemplateResponse) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTemplateResponse) ProtoMessage ¶ added in v0.5.0
func (*MsgUpdateTemplateResponse) ProtoMessage()
func (*MsgUpdateTemplateResponse) Reset ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) Reset()
func (*MsgUpdateTemplateResponse) Size ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) Size() (n int)
func (*MsgUpdateTemplateResponse) String ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) String() string
func (*MsgUpdateTemplateResponse) Unmarshal ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateTemplateResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) XXX_DiscardUnknown()
func (*MsgUpdateTemplateResponse) XXX_Marshal ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTemplateResponse) XXX_Merge ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateTemplateResponse) XXX_Size ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) XXX_Size() int
func (*MsgUpdateTemplateResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *MsgUpdateTemplateResponse) XXX_Unmarshal(b []byte) error
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"` }
func (*MsgVoteForAction) Descriptor ¶ added in v0.5.0
func (*MsgVoteForAction) Descriptor() ([]byte, []int)
func (*MsgVoteForAction) GetActionId ¶ added in v0.5.0
func (m *MsgVoteForAction) GetActionId() uint64
func (*MsgVoteForAction) GetParticipant ¶ added in v0.5.0
func (m *MsgVoteForAction) GetParticipant() string
func (*MsgVoteForAction) GetVoteType ¶ added in v0.5.0
func (m *MsgVoteForAction) GetVoteType() ActionVoteType
func (*MsgVoteForAction) Marshal ¶ added in v0.5.0
func (m *MsgVoteForAction) Marshal() (dAtA []byte, err error)
func (*MsgVoteForAction) MarshalTo ¶ added in v0.5.0
func (m *MsgVoteForAction) MarshalTo(dAtA []byte) (int, error)
func (*MsgVoteForAction) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *MsgVoteForAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVoteForAction) ProtoMessage ¶ added in v0.5.0
func (*MsgVoteForAction) ProtoMessage()
func (*MsgVoteForAction) Reset ¶ added in v0.5.0
func (m *MsgVoteForAction) Reset()
func (*MsgVoteForAction) Size ¶ added in v0.5.0
func (m *MsgVoteForAction) Size() (n int)
func (*MsgVoteForAction) String ¶ added in v0.5.0
func (m *MsgVoteForAction) String() string
func (*MsgVoteForAction) Unmarshal ¶ added in v0.5.0
func (m *MsgVoteForAction) Unmarshal(dAtA []byte) error
func (*MsgVoteForAction) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *MsgVoteForAction) XXX_DiscardUnknown()
func (*MsgVoteForAction) XXX_Marshal ¶ added in v0.5.0
func (m *MsgVoteForAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVoteForAction) XXX_Merge ¶ added in v0.5.0
func (m *MsgVoteForAction) XXX_Merge(src proto.Message)
func (*MsgVoteForAction) XXX_Size ¶ added in v0.5.0
func (m *MsgVoteForAction) XXX_Size() int
func (*MsgVoteForAction) XXX_Unmarshal ¶ added in v0.5.0
func (m *MsgVoteForAction) XXX_Unmarshal(b []byte) error
type MsgVoteForActionResponse ¶ added in v0.5.0
type MsgVoteForActionResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (*MsgVoteForActionResponse) Descriptor ¶ added in v0.5.0
func (*MsgVoteForActionResponse) Descriptor() ([]byte, []int)
func (*MsgVoteForActionResponse) GetStatus ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) GetStatus() string
func (*MsgVoteForActionResponse) Marshal ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) Marshal() (dAtA []byte, err error)
func (*MsgVoteForActionResponse) MarshalTo ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgVoteForActionResponse) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVoteForActionResponse) ProtoMessage ¶ added in v0.5.0
func (*MsgVoteForActionResponse) ProtoMessage()
func (*MsgVoteForActionResponse) Reset ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) Reset()
func (*MsgVoteForActionResponse) Size ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) Size() (n int)
func (*MsgVoteForActionResponse) String ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) String() string
func (*MsgVoteForActionResponse) Unmarshal ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) Unmarshal(dAtA []byte) error
func (*MsgVoteForActionResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) XXX_DiscardUnknown()
func (*MsgVoteForActionResponse) XXX_Marshal ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVoteForActionResponse) XXX_Merge ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) XXX_Merge(src proto.Message)
func (*MsgVoteForActionResponse) XXX_Size ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) XXX_Size() int
func (*MsgVoteForActionResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *MsgVoteForActionResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(context.Context, []byte, interface{}) Set(context.Context, []byte, interface{}) }
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct { MaxPendingTime time.Duration `protobuf:"bytes,1,opt,name=max_pending_time,json=maxPendingTime,proto3,stdduration" json:"max_pending_time"` MaxCompletedTime time.Duration `protobuf:"bytes,2,opt,name=max_completed_time,json=maxCompletedTime,proto3,stdduration" json:"max_completed_time"` PruneCheckBlockFrequency int64 `` /* 138-byte string literal not displayed */ }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetMaxCompletedTime ¶ added in v0.5.0
func (*Params) GetMaxPendingTime ¶ added in v0.5.0
func (*Params) GetPruneCheckBlockFrequency ¶ added in v0.5.0
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ProviderFnWithCtx ¶
type ProviderFnWithCtxG ¶
type QueryActionByIdRequest ¶
type QueryActionByIdRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryActionByIdRequest) Descriptor ¶
func (*QueryActionByIdRequest) Descriptor() ([]byte, []int)
func (*QueryActionByIdRequest) GetId ¶
func (m *QueryActionByIdRequest) GetId() uint64
func (*QueryActionByIdRequest) Marshal ¶
func (m *QueryActionByIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryActionByIdRequest) MarshalTo ¶
func (m *QueryActionByIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryActionByIdRequest) MarshalToSizedBuffer ¶
func (m *QueryActionByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActionByIdRequest) ProtoMessage ¶
func (*QueryActionByIdRequest) ProtoMessage()
func (*QueryActionByIdRequest) Reset ¶
func (m *QueryActionByIdRequest) Reset()
func (*QueryActionByIdRequest) Size ¶
func (m *QueryActionByIdRequest) Size() (n int)
func (*QueryActionByIdRequest) String ¶
func (m *QueryActionByIdRequest) String() string
func (*QueryActionByIdRequest) Unmarshal ¶
func (m *QueryActionByIdRequest) Unmarshal(dAtA []byte) error
func (*QueryActionByIdRequest) XXX_DiscardUnknown ¶
func (m *QueryActionByIdRequest) XXX_DiscardUnknown()
func (*QueryActionByIdRequest) XXX_Marshal ¶
func (m *QueryActionByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActionByIdRequest) XXX_Merge ¶
func (m *QueryActionByIdRequest) XXX_Merge(src proto.Message)
func (*QueryActionByIdRequest) XXX_Size ¶
func (m *QueryActionByIdRequest) XXX_Size() int
func (*QueryActionByIdRequest) XXX_Unmarshal ¶
func (m *QueryActionByIdRequest) XXX_Unmarshal(b []byte) error
type QueryActionByIdResponse ¶
type QueryActionByIdResponse struct {
Action *Action `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
}
func (*QueryActionByIdResponse) Descriptor ¶
func (*QueryActionByIdResponse) Descriptor() ([]byte, []int)
func (*QueryActionByIdResponse) GetAction ¶
func (m *QueryActionByIdResponse) GetAction() *Action
func (*QueryActionByIdResponse) Marshal ¶
func (m *QueryActionByIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryActionByIdResponse) MarshalTo ¶
func (m *QueryActionByIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryActionByIdResponse) MarshalToSizedBuffer ¶
func (m *QueryActionByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActionByIdResponse) ProtoMessage ¶
func (*QueryActionByIdResponse) ProtoMessage()
func (*QueryActionByIdResponse) Reset ¶
func (m *QueryActionByIdResponse) Reset()
func (*QueryActionByIdResponse) Size ¶
func (m *QueryActionByIdResponse) Size() (n int)
func (*QueryActionByIdResponse) String ¶
func (m *QueryActionByIdResponse) String() string
func (*QueryActionByIdResponse) Unmarshal ¶
func (m *QueryActionByIdResponse) Unmarshal(dAtA []byte) error
func (*QueryActionByIdResponse) XXX_DiscardUnknown ¶
func (m *QueryActionByIdResponse) XXX_DiscardUnknown()
func (*QueryActionByIdResponse) XXX_Marshal ¶
func (m *QueryActionByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActionByIdResponse) XXX_Merge ¶
func (m *QueryActionByIdResponse) XXX_Merge(src proto.Message)
func (*QueryActionByIdResponse) XXX_Size ¶
func (m *QueryActionByIdResponse) XXX_Size() int
func (*QueryActionByIdResponse) XXX_Unmarshal ¶
func (m *QueryActionByIdResponse) XXX_Unmarshal(b []byte) error
type QueryActionsByAddressRequest ¶
type QueryActionsByAddressRequest struct { Pagination *query.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"` }
func (*QueryActionsByAddressRequest) Descriptor ¶
func (*QueryActionsByAddressRequest) Descriptor() ([]byte, []int)
func (*QueryActionsByAddressRequest) GetAddress ¶
func (m *QueryActionsByAddressRequest) GetAddress() string
func (*QueryActionsByAddressRequest) GetPagination ¶
func (m *QueryActionsByAddressRequest) GetPagination() *query.PageRequest
func (*QueryActionsByAddressRequest) GetStatus ¶
func (m *QueryActionsByAddressRequest) GetStatus() ActionStatus
func (*QueryActionsByAddressRequest) Marshal ¶
func (m *QueryActionsByAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryActionsByAddressRequest) MarshalTo ¶
func (m *QueryActionsByAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryActionsByAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryActionsByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActionsByAddressRequest) ProtoMessage ¶
func (*QueryActionsByAddressRequest) ProtoMessage()
func (*QueryActionsByAddressRequest) Reset ¶
func (m *QueryActionsByAddressRequest) Reset()
func (*QueryActionsByAddressRequest) Size ¶
func (m *QueryActionsByAddressRequest) Size() (n int)
func (*QueryActionsByAddressRequest) String ¶
func (m *QueryActionsByAddressRequest) String() string
func (*QueryActionsByAddressRequest) Unmarshal ¶
func (m *QueryActionsByAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryActionsByAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryActionsByAddressRequest) XXX_DiscardUnknown()
func (*QueryActionsByAddressRequest) XXX_Marshal ¶
func (m *QueryActionsByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActionsByAddressRequest) XXX_Merge ¶
func (m *QueryActionsByAddressRequest) XXX_Merge(src proto.Message)
func (*QueryActionsByAddressRequest) XXX_Size ¶
func (m *QueryActionsByAddressRequest) XXX_Size() int
func (*QueryActionsByAddressRequest) XXX_Unmarshal ¶
func (m *QueryActionsByAddressRequest) XXX_Unmarshal(b []byte) error
type QueryActionsByAddressResponse ¶
type QueryActionsByAddressResponse struct { Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Actions []Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions"` }
func (*QueryActionsByAddressResponse) Descriptor ¶
func (*QueryActionsByAddressResponse) Descriptor() ([]byte, []int)
func (*QueryActionsByAddressResponse) GetActions ¶
func (m *QueryActionsByAddressResponse) GetActions() []Action
func (*QueryActionsByAddressResponse) GetPagination ¶
func (m *QueryActionsByAddressResponse) GetPagination() *query.PageResponse
func (*QueryActionsByAddressResponse) Marshal ¶
func (m *QueryActionsByAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryActionsByAddressResponse) MarshalTo ¶
func (m *QueryActionsByAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryActionsByAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryActionsByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActionsByAddressResponse) ProtoMessage ¶
func (*QueryActionsByAddressResponse) ProtoMessage()
func (*QueryActionsByAddressResponse) Reset ¶
func (m *QueryActionsByAddressResponse) Reset()
func (*QueryActionsByAddressResponse) Size ¶
func (m *QueryActionsByAddressResponse) Size() (n int)
func (*QueryActionsByAddressResponse) String ¶
func (m *QueryActionsByAddressResponse) String() string
func (*QueryActionsByAddressResponse) Unmarshal ¶
func (m *QueryActionsByAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryActionsByAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryActionsByAddressResponse) XXX_DiscardUnknown()
func (*QueryActionsByAddressResponse) XXX_Marshal ¶
func (m *QueryActionsByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActionsByAddressResponse) XXX_Merge ¶
func (m *QueryActionsByAddressResponse) XXX_Merge(src proto.Message)
func (*QueryActionsByAddressResponse) XXX_Size ¶
func (m *QueryActionsByAddressResponse) XXX_Size() int
func (*QueryActionsByAddressResponse) XXX_Unmarshal ¶
func (m *QueryActionsByAddressResponse) XXX_Unmarshal(b []byte) error
type QueryActionsRequest ¶
type QueryActionsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryActionsRequest) Descriptor ¶
func (*QueryActionsRequest) Descriptor() ([]byte, []int)
func (*QueryActionsRequest) GetPagination ¶
func (m *QueryActionsRequest) GetPagination() *query.PageRequest
func (*QueryActionsRequest) Marshal ¶
func (m *QueryActionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryActionsRequest) MarshalTo ¶
func (m *QueryActionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryActionsRequest) MarshalToSizedBuffer ¶
func (m *QueryActionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActionsRequest) ProtoMessage ¶
func (*QueryActionsRequest) ProtoMessage()
func (*QueryActionsRequest) Reset ¶
func (m *QueryActionsRequest) Reset()
func (*QueryActionsRequest) Size ¶
func (m *QueryActionsRequest) Size() (n int)
func (*QueryActionsRequest) String ¶
func (m *QueryActionsRequest) String() string
func (*QueryActionsRequest) Unmarshal ¶
func (m *QueryActionsRequest) Unmarshal(dAtA []byte) error
func (*QueryActionsRequest) XXX_DiscardUnknown ¶
func (m *QueryActionsRequest) XXX_DiscardUnknown()
func (*QueryActionsRequest) XXX_Marshal ¶
func (m *QueryActionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActionsRequest) XXX_Merge ¶
func (m *QueryActionsRequest) XXX_Merge(src proto.Message)
func (*QueryActionsRequest) XXX_Size ¶
func (m *QueryActionsRequest) XXX_Size() int
func (*QueryActionsRequest) XXX_Unmarshal ¶
func (m *QueryActionsRequest) XXX_Unmarshal(b []byte) error
type QueryActionsResponse ¶
type QueryActionsResponse struct { Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Actions []Action `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions"` }
func (*QueryActionsResponse) Descriptor ¶
func (*QueryActionsResponse) Descriptor() ([]byte, []int)
func (*QueryActionsResponse) GetActions ¶
func (m *QueryActionsResponse) GetActions() []Action
func (*QueryActionsResponse) GetPagination ¶
func (m *QueryActionsResponse) GetPagination() *query.PageResponse
func (*QueryActionsResponse) Marshal ¶
func (m *QueryActionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryActionsResponse) MarshalTo ¶
func (m *QueryActionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryActionsResponse) MarshalToSizedBuffer ¶
func (m *QueryActionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActionsResponse) ProtoMessage ¶
func (*QueryActionsResponse) ProtoMessage()
func (*QueryActionsResponse) Reset ¶
func (m *QueryActionsResponse) Reset()
func (*QueryActionsResponse) Size ¶
func (m *QueryActionsResponse) Size() (n int)
func (*QueryActionsResponse) String ¶
func (m *QueryActionsResponse) String() string
func (*QueryActionsResponse) Unmarshal ¶
func (m *QueryActionsResponse) Unmarshal(dAtA []byte) error
func (*QueryActionsResponse) XXX_DiscardUnknown ¶
func (m *QueryActionsResponse) XXX_DiscardUnknown()
func (*QueryActionsResponse) XXX_Marshal ¶
func (m *QueryActionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActionsResponse) XXX_Merge ¶
func (m *QueryActionsResponse) XXX_Merge(src proto.Message)
func (*QueryActionsResponse) XXX_Size ¶
func (m *QueryActionsResponse) XXX_Size() int
func (*QueryActionsResponse) XXX_Unmarshal ¶
func (m *QueryActionsResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type 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) }
QueryServer is the server API for Query service.
type QuerySimulateTemplateRequest ¶ added in v0.5.0
type QuerySimulateTemplateRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Definition string `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"` }
func (*QuerySimulateTemplateRequest) Descriptor ¶ added in v0.5.0
func (*QuerySimulateTemplateRequest) Descriptor() ([]byte, []int)
func (*QuerySimulateTemplateRequest) GetDefinition ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) GetDefinition() string
func (*QuerySimulateTemplateRequest) GetPagination ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) GetPagination() *query.PageRequest
func (*QuerySimulateTemplateRequest) Marshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) Marshal() (dAtA []byte, err error)
func (*QuerySimulateTemplateRequest) MarshalTo ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySimulateTemplateRequest) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySimulateTemplateRequest) ProtoMessage ¶ added in v0.5.0
func (*QuerySimulateTemplateRequest) ProtoMessage()
func (*QuerySimulateTemplateRequest) Reset ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) Reset()
func (*QuerySimulateTemplateRequest) Size ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) Size() (n int)
func (*QuerySimulateTemplateRequest) String ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) String() string
func (*QuerySimulateTemplateRequest) Unmarshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) Unmarshal(dAtA []byte) error
func (*QuerySimulateTemplateRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) XXX_DiscardUnknown()
func (*QuerySimulateTemplateRequest) XXX_Marshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySimulateTemplateRequest) XXX_Merge ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) XXX_Merge(src proto.Message)
func (*QuerySimulateTemplateRequest) XXX_Size ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) XXX_Size() int
func (*QuerySimulateTemplateRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateRequest) XXX_Unmarshal(b []byte) error
type QuerySimulateTemplateResponse ¶ added in v0.5.0
type QuerySimulateTemplateResponse struct {
Evaluation string `protobuf:"bytes,1,opt,name=evaluation,proto3" json:"evaluation,omitempty"`
}
func (*QuerySimulateTemplateResponse) Descriptor ¶ added in v0.5.0
func (*QuerySimulateTemplateResponse) Descriptor() ([]byte, []int)
func (*QuerySimulateTemplateResponse) GetEvaluation ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) GetEvaluation() string
func (*QuerySimulateTemplateResponse) Marshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) Marshal() (dAtA []byte, err error)
func (*QuerySimulateTemplateResponse) MarshalTo ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySimulateTemplateResponse) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySimulateTemplateResponse) ProtoMessage ¶ added in v0.5.0
func (*QuerySimulateTemplateResponse) ProtoMessage()
func (*QuerySimulateTemplateResponse) Reset ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) Reset()
func (*QuerySimulateTemplateResponse) Size ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) Size() (n int)
func (*QuerySimulateTemplateResponse) String ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) String() string
func (*QuerySimulateTemplateResponse) Unmarshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) Unmarshal(dAtA []byte) error
func (*QuerySimulateTemplateResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) XXX_DiscardUnknown()
func (*QuerySimulateTemplateResponse) XXX_Marshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySimulateTemplateResponse) XXX_Merge ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) XXX_Merge(src proto.Message)
func (*QuerySimulateTemplateResponse) XXX_Size ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) XXX_Size() int
func (*QuerySimulateTemplateResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *QuerySimulateTemplateResponse) XXX_Unmarshal(b []byte) error
type QueryTemplateByIdRequest ¶ added in v0.5.0
type QueryTemplateByIdRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryTemplateByIdRequest) Descriptor ¶ added in v0.5.0
func (*QueryTemplateByIdRequest) Descriptor() ([]byte, []int)
func (*QueryTemplateByIdRequest) GetId ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) GetId() uint64
func (*QueryTemplateByIdRequest) Marshal ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryTemplateByIdRequest) MarshalTo ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTemplateByIdRequest) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTemplateByIdRequest) ProtoMessage ¶ added in v0.5.0
func (*QueryTemplateByIdRequest) ProtoMessage()
func (*QueryTemplateByIdRequest) Reset ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) Reset()
func (*QueryTemplateByIdRequest) Size ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) Size() (n int)
func (*QueryTemplateByIdRequest) String ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) String() string
func (*QueryTemplateByIdRequest) Unmarshal ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) Unmarshal(dAtA []byte) error
func (*QueryTemplateByIdRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) XXX_DiscardUnknown()
func (*QueryTemplateByIdRequest) XXX_Marshal ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTemplateByIdRequest) XXX_Merge ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) XXX_Merge(src proto.Message)
func (*QueryTemplateByIdRequest) XXX_Size ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) XXX_Size() int
func (*QueryTemplateByIdRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *QueryTemplateByIdRequest) XXX_Unmarshal(b []byte) error
type QueryTemplateByIdResponse ¶ added in v0.5.0
type QueryTemplateByIdResponse struct {
Template *Template `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
}
func (*QueryTemplateByIdResponse) Descriptor ¶ added in v0.5.0
func (*QueryTemplateByIdResponse) Descriptor() ([]byte, []int)
func (*QueryTemplateByIdResponse) GetTemplate ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) GetTemplate() *Template
func (*QueryTemplateByIdResponse) Marshal ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryTemplateByIdResponse) MarshalTo ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTemplateByIdResponse) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTemplateByIdResponse) ProtoMessage ¶ added in v0.5.0
func (*QueryTemplateByIdResponse) ProtoMessage()
func (*QueryTemplateByIdResponse) Reset ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) Reset()
func (*QueryTemplateByIdResponse) Size ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) Size() (n int)
func (*QueryTemplateByIdResponse) String ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) String() string
func (*QueryTemplateByIdResponse) Unmarshal ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) Unmarshal(dAtA []byte) error
func (*QueryTemplateByIdResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) XXX_DiscardUnknown()
func (*QueryTemplateByIdResponse) XXX_Marshal ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTemplateByIdResponse) XXX_Merge ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) XXX_Merge(src proto.Message)
func (*QueryTemplateByIdResponse) XXX_Size ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) XXX_Size() int
func (*QueryTemplateByIdResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *QueryTemplateByIdResponse) XXX_Unmarshal(b []byte) error
type QueryTemplatesRequest ¶ added in v0.5.0
type QueryTemplatesRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` }
func (*QueryTemplatesRequest) Descriptor ¶ added in v0.5.0
func (*QueryTemplatesRequest) Descriptor() ([]byte, []int)
func (*QueryTemplatesRequest) GetCreator ¶ added in v0.5.0
func (m *QueryTemplatesRequest) GetCreator() string
func (*QueryTemplatesRequest) GetPagination ¶ added in v0.5.0
func (m *QueryTemplatesRequest) GetPagination() *query.PageRequest
func (*QueryTemplatesRequest) Marshal ¶ added in v0.5.0
func (m *QueryTemplatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryTemplatesRequest) MarshalTo ¶ added in v0.5.0
func (m *QueryTemplatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTemplatesRequest) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *QueryTemplatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTemplatesRequest) ProtoMessage ¶ added in v0.5.0
func (*QueryTemplatesRequest) ProtoMessage()
func (*QueryTemplatesRequest) Reset ¶ added in v0.5.0
func (m *QueryTemplatesRequest) Reset()
func (*QueryTemplatesRequest) Size ¶ added in v0.5.0
func (m *QueryTemplatesRequest) Size() (n int)
func (*QueryTemplatesRequest) String ¶ added in v0.5.0
func (m *QueryTemplatesRequest) String() string
func (*QueryTemplatesRequest) Unmarshal ¶ added in v0.5.0
func (m *QueryTemplatesRequest) Unmarshal(dAtA []byte) error
func (*QueryTemplatesRequest) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *QueryTemplatesRequest) XXX_DiscardUnknown()
func (*QueryTemplatesRequest) XXX_Marshal ¶ added in v0.5.0
func (m *QueryTemplatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTemplatesRequest) XXX_Merge ¶ added in v0.5.0
func (m *QueryTemplatesRequest) XXX_Merge(src proto.Message)
func (*QueryTemplatesRequest) XXX_Size ¶ added in v0.5.0
func (m *QueryTemplatesRequest) XXX_Size() int
func (*QueryTemplatesRequest) XXX_Unmarshal ¶ added in v0.5.0
func (m *QueryTemplatesRequest) XXX_Unmarshal(b []byte) error
type QueryTemplatesResponse ¶ added in v0.5.0
type QueryTemplatesResponse struct { Pagination *query.PageResponse `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Templates []Template `protobuf:"bytes,2,rep,name=templates,proto3" json:"templates"` }
func (*QueryTemplatesResponse) Descriptor ¶ added in v0.5.0
func (*QueryTemplatesResponse) Descriptor() ([]byte, []int)
func (*QueryTemplatesResponse) GetPagination ¶ added in v0.5.0
func (m *QueryTemplatesResponse) GetPagination() *query.PageResponse
func (*QueryTemplatesResponse) GetTemplates ¶ added in v0.5.0
func (m *QueryTemplatesResponse) GetTemplates() []Template
func (*QueryTemplatesResponse) Marshal ¶ added in v0.5.0
func (m *QueryTemplatesResponse) Marshal() (dAtA []byte, err error)
func (*QueryTemplatesResponse) MarshalTo ¶ added in v0.5.0
func (m *QueryTemplatesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTemplatesResponse) MarshalToSizedBuffer ¶ added in v0.5.0
func (m *QueryTemplatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTemplatesResponse) ProtoMessage ¶ added in v0.5.0
func (*QueryTemplatesResponse) ProtoMessage()
func (*QueryTemplatesResponse) Reset ¶ added in v0.5.0
func (m *QueryTemplatesResponse) Reset()
func (*QueryTemplatesResponse) Size ¶ added in v0.5.0
func (m *QueryTemplatesResponse) Size() (n int)
func (*QueryTemplatesResponse) String ¶ added in v0.5.0
func (m *QueryTemplatesResponse) String() string
func (*QueryTemplatesResponse) Unmarshal ¶ added in v0.5.0
func (m *QueryTemplatesResponse) Unmarshal(dAtA []byte) error
func (*QueryTemplatesResponse) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *QueryTemplatesResponse) XXX_DiscardUnknown()
func (*QueryTemplatesResponse) XXX_Marshal ¶ added in v0.5.0
func (m *QueryTemplatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTemplatesResponse) XXX_Merge ¶ added in v0.5.0
func (m *QueryTemplatesResponse) XXX_Merge(src proto.Message)
func (*QueryTemplatesResponse) XXX_Size ¶ added in v0.5.0
func (m *QueryTemplatesResponse) XXX_Size() int
func (*QueryTemplatesResponse) XXX_Unmarshal ¶ added in v0.5.0
func (m *QueryTemplatesResponse) XXX_Unmarshal(b []byte) error
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"` }
func (*Template) Descriptor ¶ added in v0.5.0
func (*Template) GetCreator ¶ added in v0.5.0
func (*Template) GetExpression ¶ added in v0.5.0
func (m *Template) GetExpression() *ast.Expression
func (*Template) MarshalToSizedBuffer ¶ added in v0.5.0
func (*Template) ProtoMessage ¶ added in v0.5.0
func (*Template) ProtoMessage()
func (*Template) XXX_DiscardUnknown ¶ added in v0.5.0
func (m *Template) XXX_DiscardUnknown()
func (*Template) XXX_Marshal ¶ added in v0.5.0
func (*Template) XXX_Unmarshal ¶ added in v0.5.0
type TemplatesRegistry ¶ added in v0.5.0
type TemplatesRegistry struct {
// contains filtered or unexported fields
}
TemplatesRegistry stores the mapping between Msg types and the function the provides the approve and reject Templates for them.
The registered Templates is fetched only once during Action creation. (The provider function is not called every time a new vote is added to an Action).
The provider function receives the context.Context of the current execution. Optionally, it can return a new context.Context that will be used further during the Expression evaluation. This is especially useful for modules that want to enrich the context for their Expanders.
func NewTemplatesRegistry ¶ added in v0.5.0
func NewTemplatesRegistry() *TemplatesRegistry
NewTemplatesRegistry returns an empty initialized *TemplatesRegistry.
func (*TemplatesRegistry) Get ¶ added in v0.5.0
func (p *TemplatesRegistry) Get(ctx context.Context, msg sdk.Msg) (context.Context, Template, Template, error)
Get finds and calls the registered provider function for the sdk.Msg.
An error is returned if there are no provider functions registered for the sdk.Msg type.
func (*TemplatesRegistry) Register ¶ added in v0.5.0
func (p *TemplatesRegistry) Register(typeUrl string, fn ProviderFn)
Register registers the ProviderFn for the typeUrl. Only one ProviderMsg can be registered for each typeUrl, attempting to register a provider for the same typeUrl twice will panic.
func (*TemplatesRegistry) RegisterCtx ¶ added in v0.5.0
func (p *TemplatesRegistry) RegisterCtx(typeUrl string, fn ProviderFnWithCtx)
RegisterCtx registers the ProviderFnWithCtx for the typeUrl. Only one ProviderMsg can be registered for each typeUrl, attempting to register a provider for the same typeUrl twice will panic.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CheckAction ¶
func (*UnimplementedMsgServer) CheckAction(ctx context.Context, req *MsgCheckAction) (*MsgCheckActionResponse, error)
func (*UnimplementedMsgServer) NewAction ¶
func (*UnimplementedMsgServer) NewAction(ctx context.Context, req *MsgNewAction) (*MsgNewActionResponse, error)
func (*UnimplementedMsgServer) NewTemplate ¶ added in v0.5.0
func (*UnimplementedMsgServer) NewTemplate(ctx context.Context, req *MsgNewTemplate) (*MsgNewTemplateResponse, error)
func (*UnimplementedMsgServer) RevokeAction ¶
func (*UnimplementedMsgServer) RevokeAction(ctx context.Context, req *MsgRevokeAction) (*MsgRevokeActionResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) UpdateTemplate ¶ added in v0.5.0
func (*UnimplementedMsgServer) UpdateTemplate(ctx context.Context, req *MsgUpdateTemplate) (*MsgUpdateTemplateResponse, error)
func (*UnimplementedMsgServer) VoteForAction ¶ added in v0.5.0
func (*UnimplementedMsgServer) VoteForAction(ctx context.Context, req *MsgVoteForAction) (*MsgVoteForActionResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ActionById ¶
func (*UnimplementedQueryServer) ActionById(ctx context.Context, req *QueryActionByIdRequest) (*QueryActionByIdResponse, error)
func (*UnimplementedQueryServer) Actions ¶
func (*UnimplementedQueryServer) Actions(ctx context.Context, req *QueryActionsRequest) (*QueryActionsResponse, error)
func (*UnimplementedQueryServer) ActionsByAddress ¶
func (*UnimplementedQueryServer) ActionsByAddress(ctx context.Context, req *QueryActionsByAddressRequest) (*QueryActionsByAddressResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) SimulateTemplate ¶ added in v0.5.0
func (*UnimplementedQueryServer) SimulateTemplate(ctx context.Context, req *QuerySimulateTemplateRequest) (*QuerySimulateTemplateResponse, error)
func (*UnimplementedQueryServer) TemplateById ¶ added in v0.5.0
func (*UnimplementedQueryServer) TemplateById(ctx context.Context, req *QueryTemplateByIdRequest) (*QueryTemplateByIdResponse, error)
func (*UnimplementedQueryServer) Templates ¶ added in v0.5.0
func (*UnimplementedQueryServer) Templates(ctx context.Context, req *QueryTemplatesRequest) (*QueryTemplatesResponse, error)