Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.Codec)
- func ValidateGenesis(data GenesisState) error
- type GenesisState
- type InstanceKeeper
- type MsgCreate
- func (*MsgCreate) Descriptor() ([]byte, []int)
- func (m *MsgCreate) GetEdges() []*process.Process_Edge
- func (m *MsgCreate) GetName() string
- func (m *MsgCreate) GetNodes() []*process.Process_Node
- func (m *MsgCreate) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgCreate) GetSignBytes() []byte
- func (msg MsgCreate) GetSigners() []sdk.AccAddress
- func (*MsgCreate) ProtoMessage()
- func (m *MsgCreate) Reset()
- func (msg MsgCreate) Route() string
- func (m *MsgCreate) String() string
- func (msg MsgCreate) Type() string
- func (msg MsgCreate) ValidateBasic() error
- func (m *MsgCreate) XXX_DiscardUnknown()
- func (m *MsgCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreate) XXX_Merge(src proto.Message)
- func (m *MsgCreate) XXX_Size() int
- func (m *MsgCreate) XXX_Unmarshal(b []byte) error
- type MsgDelete
- func (*MsgDelete) Descriptor() ([]byte, []int)
- func (m *MsgDelete) GetHash() github_com_mesg_foundation_engine_hash.Hash
- func (m *MsgDelete) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgDelete) GetSignBytes() []byte
- func (msg MsgDelete) GetSigners() []sdk.AccAddress
- func (*MsgDelete) ProtoMessage()
- func (m *MsgDelete) Reset()
- func (msg MsgDelete) Route() string
- func (m *MsgDelete) String() string
- func (msg MsgDelete) Type() string
- func (msg MsgDelete) ValidateBasic() error
- func (m *MsgDelete) XXX_DiscardUnknown()
- func (m *MsgDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelete) XXX_Merge(src proto.Message)
- func (m *MsgDelete) XXX_Size() int
- func (m *MsgDelete) XXX_Unmarshal(b []byte) error
- type OwnershipKeeper
Constants ¶
const ( EventType = "process" AttributeKeyHash = "hash" AttributeKeyAddress = "address" AttributeActionCreated = "created" AttributeActionDeleted = "deleted" )
module event types and attributes
const ( // ModuleName is the name of the module ModuleName = "process" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for routing QuerierRoute = ModuleName )
const ( QueryGet = "get" QueryList = "list" QueryExist = "exist" )
Query endpoints supported by the process querier
Variables ¶
var ModuleCdc *codec.Codec
ModuleCdc defines the module codec
Functions ¶
func RegisterCodec ¶
RegisterCodec registers concrete types on codec
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the instance genesis parameters
Types ¶
type GenesisState ¶
type GenesisState struct {
Processes []*process.Process `json:"processes" yaml:"processes" validate:"dive"`
}
GenesisState - all instance state that must be provided at genesis
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState is the default GenesisState
func NewGenesisState ¶
func NewGenesisState(processes []*process.Process) GenesisState
NewGenesisState creates a new GenesisState object
type InstanceKeeper ¶
type InstanceKeeper interface {
Get(ctx sdk.Context, instanceHash hash.Hash) (*instancepb.Instance, error)
}
InstanceKeeper module interface.
type MsgCreate ¶ added in v0.21.0
type MsgCreate struct { // Process's name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" validate:"required,printascii"` // List of nodes of the process. Nodes []*process.Process_Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty" validate:"dive"` // List of edges of the process. Edges []*process.Process_Edge `protobuf:"bytes,3,rep,name=edges,proto3" json:"edges,omitempty" validate:"dive"` // The process's owner. Owner github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message to create a Process.
func (*MsgCreate) Descriptor ¶ added in v0.21.0
func (*MsgCreate) GetEdges ¶ added in v0.21.0
func (m *MsgCreate) GetEdges() []*process.Process_Edge
func (*MsgCreate) GetNodes ¶ added in v0.21.0
func (m *MsgCreate) GetNodes() []*process.Process_Node
func (*MsgCreate) GetOwner ¶ added in v0.21.0
func (m *MsgCreate) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgCreate) GetSignBytes ¶ added in v0.21.0
GetSignBytes encodes the message for signing.
func (MsgCreate) GetSigners ¶ added in v0.21.0
func (msg MsgCreate) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgCreate) ProtoMessage ¶ added in v0.21.0
func (*MsgCreate) ProtoMessage()
func (MsgCreate) ValidateBasic ¶ added in v0.21.0
ValidateBasic runs stateless checks on the message.
func (*MsgCreate) XXX_DiscardUnknown ¶ added in v0.21.0
func (m *MsgCreate) XXX_DiscardUnknown()
func (*MsgCreate) XXX_Marshal ¶ added in v0.21.0
func (*MsgCreate) XXX_Unmarshal ¶ added in v0.21.0
type MsgDelete ¶ added in v0.21.0
type MsgDelete struct { // The process's hash to delete. Hash github_com_mesg_foundation_engine_hash.Hash `` /* 139-byte string literal not displayed */ // The process's owner. Owner github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The message to delete a Process.
func (*MsgDelete) Descriptor ¶ added in v0.21.0
func (*MsgDelete) GetHash ¶ added in v0.21.0
func (m *MsgDelete) GetHash() github_com_mesg_foundation_engine_hash.Hash
func (*MsgDelete) GetOwner ¶ added in v0.21.0
func (m *MsgDelete) GetOwner() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgDelete) GetSignBytes ¶ added in v0.21.0
GetSignBytes encodes the message for signing.
func (MsgDelete) GetSigners ¶ added in v0.21.0
func (msg MsgDelete) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgDelete) ProtoMessage ¶ added in v0.21.0
func (*MsgDelete) ProtoMessage()
func (MsgDelete) ValidateBasic ¶ added in v0.21.0
ValidateBasic runs stateless checks on the message.
func (*MsgDelete) XXX_DiscardUnknown ¶ added in v0.21.0
func (m *MsgDelete) XXX_DiscardUnknown()
func (*MsgDelete) XXX_Marshal ¶ added in v0.21.0
func (*MsgDelete) XXX_Unmarshal ¶ added in v0.21.0
type OwnershipKeeper ¶
type OwnershipKeeper interface { Delete(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash) error Set(ctx sdk.Context, owner sdk.AccAddress, resourceHash hash.Hash, resource ownershippb.Ownership_Resource, resourceAddress sdk.AccAddress) (*ownershippb.Ownership, error) }
OwnershipKeeper module interface.