v1beta3

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 41 Imported by: 43

Documentation

Overview

Package v1beta3 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "deployment"

	// StoreKey is the store key string for deployment
	StoreKey = ModuleName

	// RouterKey is the message route for deployment
	RouterKey = ModuleName
)
View Source
const (
	MsgTypeCreateDeployment  = "create-deployment"
	MsgTypeDepositDeployment = "deposit-deployment"
	MsgTypeUpdateDeployment  = "update-deployment"
	MsgTypeCloseDeployment   = "close-deployment"
	MsgTypeCloseGroup        = "close-group"
	MsgTypePauseGroup        = "pause-group"
	MsgTypeStartGroup        = "start-group"
)
View Source
const (
	// ManifestVersionLength is the length of manifest version
	ManifestVersionLength = 32

	// DefaultOrderBiddingDuration is the default time limit for an Order being active.
	// After the duration, the Order is automatically closed.
	// ( 24(hr) * 3600(seconds per hour) ) / 7s-Block
	DefaultOrderBiddingDuration = int64(12342)

	// MaxBiddingDuration is roughly 30 days of block height
	MaxBiddingDuration = DefaultOrderBiddingDuration * int64(30)
)
View Source
const (
	EscrowScope = "deployment"
)

Variables

View Source
var (
	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDeployment        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDeployment          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDeployment = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDeploymentmsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDeploymentmsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDeploymentmsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ErrNameDoesNotExist is the error when name does not exist
	ErrNameDoesNotExist = errors.New("Name does not exist")
	// ErrInvalidRequest is the error for invalid request
	ErrInvalidRequest = errors.New("Invalid request")
	// ErrDeploymentExists is the error when already deployment exists
	ErrDeploymentExists = errors.New("Deployment exists")
	// ErrDeploymentNotFound is the error when deployment not found
	ErrDeploymentNotFound = errors.New("Deployment not found")
	// ErrDeploymentClosed is the error when deployment is closed
	ErrDeploymentClosed = errors.New("Deployment closed")
	// ErrOwnerAcctMissing is the error for owner account missing
	ErrOwnerAcctMissing = errors.New("Owner account missing")
	// ErrInvalidGroups is the error when groups are empty
	ErrInvalidGroups = errors.New("Invalid groups")
	// ErrInvalidDeploymentID is the error for invalid deployment id
	ErrInvalidDeploymentID = errors.New("Invalid: deployment id")
	// ErrEmptyVersion is the error when version is empty
	ErrEmptyVersion = errors.New("Invalid: empty version")
	// ErrInvalidVersion is the error when version is invalid
	ErrInvalidVersion = errors.New("Invalid: deployment version")
	// ErrInternal is the error for internal error
	ErrInternal = errors.New("internal error")
	// ErrInvalidDeployment = is the error when deployment does not pass validation
	ErrInvalidDeployment = errors.New("Invalid deployment")
	// ErrInvalidGroupID is the error when already deployment exists
	ErrInvalidGroupID = errors.New("Deployment exists")
	// ErrGroupNotFound is the keeper's error for not finding a group
	ErrGroupNotFound = errors.New("Group not found")
	// ErrGroupClosed is the error when deployment is closed
	ErrGroupClosed = errors.New("Group already closed")
	// ErrGroupOpen is the error when deployment is closed
	ErrGroupOpen = errors.New("Group open")
	// ErrGroupPaused is the error when deployment is closed
	ErrGroupPaused = errors.New("Group paused")
	// ErrGroupNotOpen indicates the Group state has progressed beyond initial Open.
	ErrGroupNotOpen = errors.New("Group not open")
	// ErrGroupSpecInvalid indicates a GroupSpec has invalid configuration
	ErrGroupSpecInvalid = errors.New("GroupSpec invalid")

	// ErrInvalidDeposit indicates an invalid deposit
	ErrInvalidDeposit = errors.New("Deposit invalid")
	// ErrInvalidIDPath indicates an invalid ID path
	ErrInvalidIDPath = errors.New("ID path invalid")
	// ErrInvalidParam indicates an invalid chain parameter
	ErrInvalidParam = errors.New("parameter invalid")
	// ErrInvalidDeploymentDepositor indicates an invalid chain parameter
	ErrInvalidDeploymentDepositor = errors.New("invalid deployment depositor")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGroup        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGroup          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGroupid        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGroupid          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGroupid = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGroupmsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGroupmsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGroupmsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGroupspec        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGroupspec          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGroupspec = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrNoGroupsPresent = errors.New("validation: no groups present")
	ErrGroupEmptyName  = errors.New("validation: group has empty name")
)
View Source
var (
	ErrInvalidLengthResourceunit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowResourceunit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupResourceunit = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Deployment_State_name = map[int32]string{
	0: "invalid",
	1: "active",
	2: "closed",
}
View Source
var Deployment_State_value = map[string]int32{
	"invalid": 0,
	"active":  1,
	"closed":  2,
}
View Source
var Group_State_name = map[int32]string{
	0: "invalid",
	1: "open",
	2: "paused",
	3: "insufficient_funds",
	4: "closed",
}
View Source
var Group_State_value = map[string]int32{
	"invalid":            0,
	"open":               1,
	"paused":             2,
	"insufficient_funds": 3,
	"closed":             4,
}
View Source
var (

	// ModuleCdc references the global x/deployment module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/deployment and
	// defined at the application level.
	ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)

Functions

func DeploymentIDEVAttributes

func DeploymentIDEVAttributes(id DeploymentID) []sdk.Attribute

DeploymentIDEVAttributes returns event attribues for given DeploymentID

func DeploymentPrefix

func DeploymentPrefix() []byte

func EscrowAccountForDeployment

func EscrowAccountForDeployment(id DeploymentID) etypes.AccountID

func GroupIDEVAttributes

func GroupIDEVAttributes(id GroupID) []sdk.Attribute

GroupIDEVAttributes returns event attribues for given GroupID

func GroupPrefix

func GroupPrefix() []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func ParseEVDeploymentVersion

func ParseEVDeploymentVersion(attrs []sdk.Attribute) ([]byte, error)

ParseEVDeploymentVersion returns the Deployment's SDL sha256 sum

func ParseEvent

func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error)

ParseEvent parses event and returns details of event and error if occurred

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the x/deployment interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec register concrete types on codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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)

func ValidateDeploymentGroups

func ValidateDeploymentGroups(gspecs []GroupSpec) error

ValidateDeploymentGroups does validation for all deployment groups

Types

type Deployment

type Deployment struct {
	DeploymentID DeploymentID     `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"id" yaml:"id"`
	State        Deployment_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.deployment.v1beta3.Deployment_State" json:"state" yaml:"state"`
	Version      []byte           `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"`
	CreatedAt    int64            `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}

Deployment stores deploymentID, state and version details

func (*Deployment) Descriptor

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

func (*Deployment) GetCreatedAt

func (m *Deployment) GetCreatedAt() int64

func (*Deployment) GetDeploymentID

func (m *Deployment) GetDeploymentID() DeploymentID

func (*Deployment) GetState

func (m *Deployment) GetState() Deployment_State

func (*Deployment) GetVersion

func (m *Deployment) GetVersion() []byte

func (Deployment) ID

func (obj Deployment) ID() DeploymentID

ID method returns DeploymentID details of specific deployment

func (*Deployment) Marshal

func (m *Deployment) Marshal() (dAtA []byte, err error)

func (*Deployment) MarshalTo

func (m *Deployment) MarshalTo(dAtA []byte) (int, error)

func (*Deployment) MarshalToSizedBuffer

func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) Reset

func (m *Deployment) Reset()

func (*Deployment) Size

func (m *Deployment) Size() (n int)

func (*Deployment) String

func (m *Deployment) String() string

func (*Deployment) Unmarshal

func (m *Deployment) Unmarshal(dAtA []byte) error

func (*Deployment) XXX_DiscardUnknown

func (m *Deployment) XXX_DiscardUnknown()

func (*Deployment) XXX_Marshal

func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Deployment) XXX_Merge

func (m *Deployment) XXX_Merge(src proto.Message)

func (*Deployment) XXX_Size

func (m *Deployment) XXX_Size() int

func (*Deployment) XXX_Unmarshal

func (m *Deployment) XXX_Unmarshal(b []byte) error

type DeploymentFilters

type DeploymentFilters struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
	DSeq  uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"`
	State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state" yaml:"state"`
}

DeploymentFilters defines filters used to filter deployments

func (DeploymentFilters) Accept

func (filters DeploymentFilters) Accept(obj Deployment, stateVal Deployment_State) bool

Accept returns whether deployment filters valid or not

func (*DeploymentFilters) Descriptor

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

func (*DeploymentFilters) GetDSeq

func (m *DeploymentFilters) GetDSeq() uint64

func (*DeploymentFilters) GetOwner

func (m *DeploymentFilters) GetOwner() string

func (*DeploymentFilters) GetState

func (m *DeploymentFilters) GetState() string

func (*DeploymentFilters) Marshal

func (m *DeploymentFilters) Marshal() (dAtA []byte, err error)

func (*DeploymentFilters) MarshalTo

func (m *DeploymentFilters) MarshalTo(dAtA []byte) (int, error)

func (*DeploymentFilters) MarshalToSizedBuffer

func (m *DeploymentFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeploymentFilters) ProtoMessage

func (*DeploymentFilters) ProtoMessage()

func (*DeploymentFilters) Reset

func (m *DeploymentFilters) Reset()

func (*DeploymentFilters) Size

func (m *DeploymentFilters) Size() (n int)

func (*DeploymentFilters) String

func (m *DeploymentFilters) String() string

func (*DeploymentFilters) Unmarshal

func (m *DeploymentFilters) Unmarshal(dAtA []byte) error

func (*DeploymentFilters) XXX_DiscardUnknown

func (m *DeploymentFilters) XXX_DiscardUnknown()

func (*DeploymentFilters) XXX_Marshal

func (m *DeploymentFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentFilters) XXX_Merge

func (m *DeploymentFilters) XXX_Merge(src proto.Message)

func (*DeploymentFilters) XXX_Size

func (m *DeploymentFilters) XXX_Size() int

func (*DeploymentFilters) XXX_Unmarshal

func (m *DeploymentFilters) XXX_Unmarshal(b []byte) error

type DeploymentID

type DeploymentID struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
	DSeq  uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"`
}

DeploymentID stores owner and sequence number

func DeploymentIDFromEscrowAccount

func DeploymentIDFromEscrowAccount(id etypes.AccountID) (DeploymentID, bool)

func ParseDeploymentID

func ParseDeploymentID(val string) (DeploymentID, error)

func ParseDeploymentPath

func ParseDeploymentPath(parts []string) (DeploymentID, error)

ParseDeploymentPath returns DeploymentID details with provided queries, and return error if occurred due to wrong query

func ParseEVDeploymentID

func ParseEVDeploymentID(attrs []sdk.Attribute) (DeploymentID, error)

ParseEVDeploymentID returns deploymentID details for given event attributes

func (*DeploymentID) Descriptor

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

func (DeploymentID) Equals

func (id DeploymentID) Equals(other DeploymentID) bool

Equals method compares specific deployment with provided deployment

func (*DeploymentID) GetDSeq

func (m *DeploymentID) GetDSeq() uint64

func (*DeploymentID) GetOwner

func (m *DeploymentID) GetOwner() string

func (DeploymentID) GetOwnerAddress

func (id DeploymentID) GetOwnerAddress() (sdk.Address, error)

func (*DeploymentID) Marshal

func (m *DeploymentID) Marshal() (dAtA []byte, err error)

func (*DeploymentID) MarshalTo

func (m *DeploymentID) MarshalTo(dAtA []byte) (int, error)

func (*DeploymentID) MarshalToSizedBuffer

func (m *DeploymentID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DeploymentID) ProtoMessage

func (*DeploymentID) ProtoMessage()

func (*DeploymentID) Reset

func (m *DeploymentID) Reset()

func (*DeploymentID) Size

func (m *DeploymentID) Size() (n int)

func (DeploymentID) String

func (id DeploymentID) String() string

String method for deployment IDs

func (*DeploymentID) Unmarshal

func (m *DeploymentID) Unmarshal(dAtA []byte) error

func (DeploymentID) Validate

func (id DeploymentID) Validate() error

Validate method for DeploymentID and returns nil

func (*DeploymentID) XXX_DiscardUnknown

func (m *DeploymentID) XXX_DiscardUnknown()

func (*DeploymentID) XXX_Marshal

func (m *DeploymentID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeploymentID) XXX_Merge

func (m *DeploymentID) XXX_Merge(src proto.Message)

func (*DeploymentID) XXX_Size

func (m *DeploymentID) XXX_Size() int

func (*DeploymentID) XXX_Unmarshal

func (m *DeploymentID) XXX_Unmarshal(b []byte) error

type DeploymentResponses

type DeploymentResponses []QueryDeploymentResponse

DeploymentResponses is a collection of DeploymentResponse

func (DeploymentResponses) String

func (ds DeploymentResponses) String() string

type Deployment_State

type Deployment_State int32

State is an enum which refers to state of deployment

const (
	// Prefix should start with 0 in enum. So declaring dummy state
	DeploymentStateInvalid Deployment_State = 0
	// DeploymentActive denotes state for deployment active
	DeploymentActive Deployment_State = 1
	// DeploymentClosed denotes state for deployment closed
	DeploymentClosed Deployment_State = 2
)

func (Deployment_State) EnumDescriptor

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

func (Deployment_State) String

func (x Deployment_State) String() string

type DepositDeploymentAuthorization

type DepositDeploymentAuthorization struct {
	// SpendLimit is the amount the grantee is authorized to spend from the granter's account for
	// the purpose of deployment.
	SpendLimit types.Coin `protobuf:"bytes,1,opt,name=spend_limit,json=spendLimit,proto3" json:"spend_limit"`
}

DepositDeploymentAuthorization allows the grantee to deposit up to spend_limit coins from the granter's account for a deployment.

func NewDepositDeploymentAuthorization

func NewDepositDeploymentAuthorization(spendLimit sdk.Coin) *DepositDeploymentAuthorization

NewDepositDeploymentAuthorization creates a new DepositDeploymentAuthorization object.

func (DepositDeploymentAuthorization) Accept

Accept implements Authorization.Accept.

func (*DepositDeploymentAuthorization) Descriptor

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

func (*DepositDeploymentAuthorization) GetSpendLimit

func (m *DepositDeploymentAuthorization) GetSpendLimit() types.Coin

func (*DepositDeploymentAuthorization) Marshal

func (m *DepositDeploymentAuthorization) Marshal() (dAtA []byte, err error)

func (*DepositDeploymentAuthorization) MarshalTo

func (m *DepositDeploymentAuthorization) MarshalTo(dAtA []byte) (int, error)

func (*DepositDeploymentAuthorization) MarshalToSizedBuffer

func (m *DepositDeploymentAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (DepositDeploymentAuthorization) MsgTypeURL

func (m DepositDeploymentAuthorization) MsgTypeURL() string

MsgTypeURL implements Authorization.MsgTypeURL.

func (*DepositDeploymentAuthorization) ProtoMessage

func (*DepositDeploymentAuthorization) ProtoMessage()

func (*DepositDeploymentAuthorization) Reset

func (m *DepositDeploymentAuthorization) Reset()

func (*DepositDeploymentAuthorization) Size

func (m *DepositDeploymentAuthorization) Size() (n int)

func (*DepositDeploymentAuthorization) String

func (*DepositDeploymentAuthorization) Unmarshal

func (m *DepositDeploymentAuthorization) Unmarshal(dAtA []byte) error

func (DepositDeploymentAuthorization) ValidateBasic

func (m DepositDeploymentAuthorization) ValidateBasic() error

ValidateBasic implements Authorization.ValidateBasic.

func (*DepositDeploymentAuthorization) XXX_DiscardUnknown

func (m *DepositDeploymentAuthorization) XXX_DiscardUnknown()

func (*DepositDeploymentAuthorization) XXX_Marshal

func (m *DepositDeploymentAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DepositDeploymentAuthorization) XXX_Merge

func (m *DepositDeploymentAuthorization) XXX_Merge(src proto.Message)

func (*DepositDeploymentAuthorization) XXX_Size

func (m *DepositDeploymentAuthorization) XXX_Size() int

func (*DepositDeploymentAuthorization) XXX_Unmarshal

func (m *DepositDeploymentAuthorization) XXX_Unmarshal(b []byte) error

type EventDeploymentClosed

type EventDeploymentClosed struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	ID      DeploymentID            `json:"id"`
}

EventDeploymentClosed struct

func NewEventDeploymentClosed

func NewEventDeploymentClosed(id DeploymentID) EventDeploymentClosed

func (EventDeploymentClosed) ToSDKEvent

func (ev EventDeploymentClosed) ToSDKEvent() sdk.Event

ToSDKEvent method creates new sdk event for EventDeploymentClosed struct

type EventDeploymentCreated

type EventDeploymentCreated struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	ID      DeploymentID            `json:"id"`
	Version []byte                  `json:"version"`
}

EventDeploymentCreated struct

func NewEventDeploymentCreated

func NewEventDeploymentCreated(id DeploymentID, version []byte) EventDeploymentCreated

NewEventDeploymentCreated initializes creation event.

func (EventDeploymentCreated) ToSDKEvent

func (ev EventDeploymentCreated) ToSDKEvent() sdk.Event

ToSDKEvent method creates new sdk event for EventDeploymentCreated struct

type EventDeploymentUpdated

type EventDeploymentUpdated struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	ID      DeploymentID            `json:"id"`
	Version []byte                  `json:"version"`
}

EventDeploymentUpdated struct

func NewEventDeploymentUpdated

func NewEventDeploymentUpdated(id DeploymentID, version []byte) EventDeploymentUpdated

NewEventDeploymentUpdated initializes SDK type

func (EventDeploymentUpdated) ToSDKEvent

func (ev EventDeploymentUpdated) ToSDKEvent() sdk.Event

ToSDKEvent method creates new sdk event for EventDeploymentUpdated struct

type EventGroupClosed

type EventGroupClosed struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	ID      GroupID                 `json:"id"`
}

EventGroupClosed provides SDK event to signal group termination

func NewEventGroupClosed

func NewEventGroupClosed(id GroupID) EventGroupClosed

func (EventGroupClosed) ToSDKEvent

func (ev EventGroupClosed) ToSDKEvent() sdk.Event

ToSDKEvent produces the SDK notification for Event

type EventGroupPaused

type EventGroupPaused struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	ID      GroupID                 `json:"id"`
}

EventGroupPaused provides SDK event to signal group termination

func NewEventGroupPaused

func NewEventGroupPaused(id GroupID) EventGroupPaused

func (EventGroupPaused) ToSDKEvent

func (ev EventGroupPaused) ToSDKEvent() sdk.Event

ToSDKEvent produces the SDK notification for Event

type EventGroupStarted

type EventGroupStarted struct {
	Context sdkutil.BaseModuleEvent `json:"context"`
	ID      GroupID                 `json:"id"`
}

EventGroupStarted provides SDK event to signal group termination

func NewEventGroupStarted

func NewEventGroupStarted(id GroupID) EventGroupStarted

func (EventGroupStarted) ToSDKEvent

func (ev EventGroupStarted) ToSDKEvent() sdk.Event

ToSDKEvent produces the SDK notification for Event

type GenesisDeployment

type GenesisDeployment struct {
	Deployment Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment" yaml:"deployment"`
	Groups     []Group    `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups" yaml:"groups"`
}

GenesisDeployment defines the basic genesis state used by deployment module

func (*GenesisDeployment) Descriptor

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

func (*GenesisDeployment) GetDeployment

func (m *GenesisDeployment) GetDeployment() Deployment

func (*GenesisDeployment) GetGroups

func (m *GenesisDeployment) GetGroups() []Group

func (*GenesisDeployment) Marshal

func (m *GenesisDeployment) Marshal() (dAtA []byte, err error)

func (*GenesisDeployment) MarshalTo

func (m *GenesisDeployment) MarshalTo(dAtA []byte) (int, error)

func (*GenesisDeployment) MarshalToSizedBuffer

func (m *GenesisDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisDeployment) ProtoMessage

func (*GenesisDeployment) ProtoMessage()

func (*GenesisDeployment) Reset

func (m *GenesisDeployment) Reset()

func (*GenesisDeployment) Size

func (m *GenesisDeployment) Size() (n int)

func (*GenesisDeployment) String

func (m *GenesisDeployment) String() string

func (*GenesisDeployment) Unmarshal

func (m *GenesisDeployment) Unmarshal(dAtA []byte) error

func (*GenesisDeployment) XXX_DiscardUnknown

func (m *GenesisDeployment) XXX_DiscardUnknown()

func (*GenesisDeployment) XXX_Marshal

func (m *GenesisDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisDeployment) XXX_Merge

func (m *GenesisDeployment) XXX_Merge(src proto.Message)

func (*GenesisDeployment) XXX_Size

func (m *GenesisDeployment) XXX_Size() int

func (*GenesisDeployment) XXX_Unmarshal

func (m *GenesisDeployment) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Deployments []GenesisDeployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments" yaml:"deployments"`
	Params      Params              `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"`
}

GenesisState stores slice of genesis deployment instance

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDeployments

func (m *GenesisState) GetDeployments() []GenesisDeployment

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) 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 Group

type Group struct {
	GroupID   GroupID     `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"id" yaml:"id"`
	State     Group_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.deployment.v1beta3.Group_State" json:"state" yaml:"state"`
	GroupSpec GroupSpec   `protobuf:"bytes,3,opt,name=group_spec,json=groupSpec,proto3" json:"spec" yaml:"spec"`
	CreatedAt int64       `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}

Group stores group id, state and specifications of group

func (*Group) Descriptor

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

func (*Group) GetCreatedAt

func (m *Group) GetCreatedAt() int64

func (*Group) GetGroupID

func (m *Group) GetGroupID() GroupID

func (*Group) GetGroupSpec

func (m *Group) GetGroupSpec() GroupSpec

func (Group) GetName

func (g Group) GetName() string

GetName method returns group name

func (Group) GetResourceUnits

func (g Group) GetResourceUnits() ResourceUnits

GetResourceUnits method returns resources list in group

func (*Group) GetState

func (m *Group) GetState() Group_State

func (Group) ID

func (g Group) ID() GroupID

ID method returns GroupID details of specific group

func (*Group) Marshal

func (m *Group) Marshal() (dAtA []byte, err error)

func (*Group) MarshalTo

func (m *Group) MarshalTo(dAtA []byte) (int, error)

func (*Group) MarshalToSizedBuffer

func (m *Group) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) Reset

func (m *Group) Reset()

func (*Group) Size

func (m *Group) Size() (n int)

func (*Group) String

func (m *Group) String() string

func (*Group) Unmarshal

func (m *Group) Unmarshal(dAtA []byte) error

func (Group) ValidateClosable

func (g Group) ValidateClosable() error

ValidateClosable provides error response if group is already closed, and thus should not be closed again, else nil.

func (Group) ValidatePausable

func (g Group) ValidatePausable() error

ValidatePausable provides error response if group is not pausable

func (Group) ValidateStartable

func (g Group) ValidateStartable() error

ValidatePausable provides error response if group is not pausable

func (*Group) XXX_DiscardUnknown

func (m *Group) XXX_DiscardUnknown()

func (*Group) XXX_Marshal

func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Group) XXX_Merge

func (m *Group) XXX_Merge(src proto.Message)

func (*Group) XXX_Size

func (m *Group) XXX_Size() int

func (*Group) XXX_Unmarshal

func (m *Group) XXX_Unmarshal(b []byte) error

type GroupID

type GroupID struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
	DSeq  uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"`
	GSeq  uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"`
}

GroupID stores owner, deployment sequence number and group sequence number

func MakeGroupID

func MakeGroupID(id DeploymentID, gseq uint32) GroupID

MakeGroupID returns GroupID instance with provided deployment details and group sequence number.

func ParseEVGroupID

func ParseEVGroupID(attrs []sdk.Attribute) (GroupID, error)

ParseEVGroupID returns GroupID details for given event attributes

func (GroupID) DeploymentID

func (id GroupID) DeploymentID() DeploymentID

DeploymentID method returns DeploymentID details with specific group details

func (*GroupID) Descriptor

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

func (GroupID) Equals

func (id GroupID) Equals(other GroupID) bool

Equals method compares specific group with provided group

func (*GroupID) GetDSeq

func (m *GroupID) GetDSeq() uint64

func (*GroupID) GetGSeq

func (m *GroupID) GetGSeq() uint32

func (*GroupID) GetOwner

func (m *GroupID) GetOwner() string

func (*GroupID) Marshal

func (m *GroupID) Marshal() (dAtA []byte, err error)

func (*GroupID) MarshalTo

func (m *GroupID) MarshalTo(dAtA []byte) (int, error)

func (*GroupID) MarshalToSizedBuffer

func (m *GroupID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupID) ProtoMessage

func (*GroupID) ProtoMessage()

func (*GroupID) Reset

func (m *GroupID) Reset()

func (*GroupID) Size

func (m *GroupID) Size() (n int)

func (GroupID) String

func (id GroupID) String() string

String method provides human readable representation of GroupID.

func (*GroupID) Unmarshal

func (m *GroupID) Unmarshal(dAtA []byte) error

func (GroupID) Validate

func (id GroupID) Validate() error

Validate method for GroupID and returns nil

func (*GroupID) XXX_DiscardUnknown

func (m *GroupID) XXX_DiscardUnknown()

func (*GroupID) XXX_Marshal

func (m *GroupID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupID) XXX_Merge

func (m *GroupID) XXX_Merge(src proto.Message)

func (*GroupID) XXX_Size

func (m *GroupID) XXX_Size() int

func (*GroupID) XXX_Unmarshal

func (m *GroupID) XXX_Unmarshal(b []byte) error

type GroupLimit

type GroupLimit struct {
	Limits
	Units uint32
}

type GroupLimits

type GroupLimits struct {
	Max GroupLimit
}

type GroupSpec

type GroupSpec struct {
	Name         string                        `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"`
	Requirements v1beta3.PlacementRequirements `protobuf:"bytes,2,opt,name=requirements,proto3" json:"requirements" yaml:"requirements"`
	Resources    ResourceUnits                 `protobuf:"bytes,3,rep,name=resources,proto3,castrepeated=ResourceUnits" json:"resources" yaml:"resources"`
}

GroupSpec stores group specifications

func (*GroupSpec) Descriptor

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

func (GroupSpec) Dup

func (g GroupSpec) Dup() GroupSpec

func (GroupSpec) GetName

func (g GroupSpec) GetName() string

GetName method returns group name

func (GroupSpec) GetResourceUnits

func (g GroupSpec) GetResourceUnits() ResourceUnits

GetResourceUnits method returns resources list in group

func (*GroupSpec) Marshal

func (m *GroupSpec) Marshal() (dAtA []byte, err error)

func (*GroupSpec) MarshalTo

func (m *GroupSpec) MarshalTo(dAtA []byte) (int, error)

func (*GroupSpec) MarshalToSizedBuffer

func (m *GroupSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GroupSpec) MatchAttributes

func (g *GroupSpec) MatchAttributes(attr types.Attributes) bool

MatchAttributes method compares provided attributes with specific group attributes

func (GroupSpec) MatchRequirements

func (g GroupSpec) MatchRequirements(provider []atypes.Provider) bool

MatchRequirements method compares provided attributes with specific group attributes. Argument provider is a bit cumbersome. First element is attributes from x/provider store in case tenant does not need signed attributes at all rest of elements (if any) are attributes signed by various auditors

func (GroupSpec) MatchResourcesRequirements

func (g GroupSpec) MatchResourcesRequirements(pattr types.Attributes) bool

MatchResourcesRequirements check if resources attributes match provider's capabilities

func (GroupSpec) Price

func (g GroupSpec) Price() sdk.DecCoin

Price method returns price of group

func (*GroupSpec) ProtoMessage

func (*GroupSpec) ProtoMessage()

func (*GroupSpec) Reset

func (m *GroupSpec) Reset()

func (*GroupSpec) Size

func (m *GroupSpec) Size() (n int)

func (*GroupSpec) String

func (m *GroupSpec) String() string

func (*GroupSpec) Unmarshal

func (m *GroupSpec) Unmarshal(dAtA []byte) error

func (GroupSpec) ValidateBasic

func (g GroupSpec) ValidateBasic() error

ValidateBasic asserts non-zero values

func (*GroupSpec) XXX_DiscardUnknown

func (m *GroupSpec) XXX_DiscardUnknown()

func (*GroupSpec) XXX_Marshal

func (m *GroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GroupSpec) XXX_Merge

func (m *GroupSpec) XXX_Merge(src proto.Message)

func (*GroupSpec) XXX_Size

func (m *GroupSpec) XXX_Size() int

func (*GroupSpec) XXX_Unmarshal

func (m *GroupSpec) XXX_Unmarshal(b []byte) error

type GroupSpecs

type GroupSpecs []*GroupSpec

func (GroupSpecs) Dup

func (gspecs GroupSpecs) Dup() GroupSpecs

type Group_State

type Group_State int32

State is an enum which refers to state of group

const (
	// Prefix should start with 0 in enum. So declaring dummy state
	GroupStateInvalid Group_State = 0
	// GroupOpen denotes state for group open
	GroupOpen Group_State = 1
	// GroupOrdered denotes state for group ordered
	GroupPaused Group_State = 2
	// GroupInsufficientFunds denotes state for group insufficient_funds
	GroupInsufficientFunds Group_State = 3
	// GroupClosed denotes state for group closed
	GroupClosed Group_State = 4
)

func (Group_State) EnumDescriptor

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

func (Group_State) String

func (x Group_State) String() string

type Limits

type Limits struct {
	Memory  uint64
	Storage uint64
	Price   uint64
	CPU     uint
	GPU     uint
	Count   uint
}

type MsgClient

type MsgClient interface {
	// CreateDeployment defines a method to create new deployment given proper inputs.
	CreateDeployment(ctx context.Context, in *MsgCreateDeployment, opts ...grpc.CallOption) (*MsgCreateDeploymentResponse, error)
	// DepositDeployment deposits more funds into the deployment account
	DepositDeployment(ctx context.Context, in *MsgDepositDeployment, opts ...grpc.CallOption) (*MsgDepositDeploymentResponse, error)
	// UpdateDeployment defines a method to update a deployment given proper inputs.
	UpdateDeployment(ctx context.Context, in *MsgUpdateDeployment, opts ...grpc.CallOption) (*MsgUpdateDeploymentResponse, error)
	// CloseDeployment defines a method to close a deployment given proper inputs.
	CloseDeployment(ctx context.Context, in *MsgCloseDeployment, opts ...grpc.CallOption) (*MsgCloseDeploymentResponse, error)
	// CloseGroup defines a method to close a group of a deployment given proper inputs.
	CloseGroup(ctx context.Context, in *MsgCloseGroup, opts ...grpc.CallOption) (*MsgCloseGroupResponse, error)
	// PauseGroup defines a method to close a group of a deployment given proper inputs.
	PauseGroup(ctx context.Context, in *MsgPauseGroup, opts ...grpc.CallOption) (*MsgPauseGroupResponse, error)
	// StartGroup defines a method to close a group of a deployment given proper inputs.
	StartGroup(ctx context.Context, in *MsgStartGroup, opts ...grpc.CallOption) (*MsgStartGroupResponse, 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 MsgCloseDeployment

type MsgCloseDeployment struct {
	ID DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}

MsgCloseDeployment defines an SDK message for closing deployment

func NewMsgCloseDeployment

func NewMsgCloseDeployment(id DeploymentID) *MsgCloseDeployment

NewMsgCloseDeployment creates a new MsgCloseDeployment instance

func (*MsgCloseDeployment) Descriptor

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

func (*MsgCloseDeployment) GetID

func (m *MsgCloseDeployment) GetID() DeploymentID

func (MsgCloseDeployment) GetSignBytes

func (msg MsgCloseDeployment) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgCloseDeployment) GetSigners

func (msg MsgCloseDeployment) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgCloseDeployment) Marshal

func (m *MsgCloseDeployment) Marshal() (dAtA []byte, err error)

func (*MsgCloseDeployment) MarshalTo

func (m *MsgCloseDeployment) MarshalTo(dAtA []byte) (int, error)

func (*MsgCloseDeployment) MarshalToSizedBuffer

func (m *MsgCloseDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCloseDeployment) ProtoMessage

func (*MsgCloseDeployment) ProtoMessage()

func (*MsgCloseDeployment) Reset

func (m *MsgCloseDeployment) Reset()

func (MsgCloseDeployment) Route

func (msg MsgCloseDeployment) Route() string

Route implements the sdk.Msg interface

func (*MsgCloseDeployment) Size

func (m *MsgCloseDeployment) Size() (n int)

func (*MsgCloseDeployment) String

func (m *MsgCloseDeployment) String() string

func (MsgCloseDeployment) Type

func (msg MsgCloseDeployment) Type() string

Type implements the sdk.Msg interface

func (*MsgCloseDeployment) Unmarshal

func (m *MsgCloseDeployment) Unmarshal(dAtA []byte) error

func (MsgCloseDeployment) ValidateBasic

func (msg MsgCloseDeployment) ValidateBasic() error

ValidateBasic does basic validation with deployment details

func (*MsgCloseDeployment) XXX_DiscardUnknown

func (m *MsgCloseDeployment) XXX_DiscardUnknown()

func (*MsgCloseDeployment) XXX_Marshal

func (m *MsgCloseDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCloseDeployment) XXX_Merge

func (m *MsgCloseDeployment) XXX_Merge(src proto.Message)

func (*MsgCloseDeployment) XXX_Size

func (m *MsgCloseDeployment) XXX_Size() int

func (*MsgCloseDeployment) XXX_Unmarshal

func (m *MsgCloseDeployment) XXX_Unmarshal(b []byte) error

type MsgCloseDeploymentResponse

type MsgCloseDeploymentResponse struct {
}

MsgCloseDeploymentResponse defines the Msg/CloseDeployment response type.

func (*MsgCloseDeploymentResponse) Descriptor

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

func (*MsgCloseDeploymentResponse) Marshal

func (m *MsgCloseDeploymentResponse) Marshal() (dAtA []byte, err error)

func (*MsgCloseDeploymentResponse) MarshalTo

func (m *MsgCloseDeploymentResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCloseDeploymentResponse) MarshalToSizedBuffer

func (m *MsgCloseDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCloseDeploymentResponse) ProtoMessage

func (*MsgCloseDeploymentResponse) ProtoMessage()

func (*MsgCloseDeploymentResponse) Reset

func (m *MsgCloseDeploymentResponse) Reset()

func (*MsgCloseDeploymentResponse) Size

func (m *MsgCloseDeploymentResponse) Size() (n int)

func (*MsgCloseDeploymentResponse) String

func (m *MsgCloseDeploymentResponse) String() string

func (*MsgCloseDeploymentResponse) Unmarshal

func (m *MsgCloseDeploymentResponse) Unmarshal(dAtA []byte) error

func (*MsgCloseDeploymentResponse) XXX_DiscardUnknown

func (m *MsgCloseDeploymentResponse) XXX_DiscardUnknown()

func (*MsgCloseDeploymentResponse) XXX_Marshal

func (m *MsgCloseDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCloseDeploymentResponse) XXX_Merge

func (m *MsgCloseDeploymentResponse) XXX_Merge(src proto.Message)

func (*MsgCloseDeploymentResponse) XXX_Size

func (m *MsgCloseDeploymentResponse) XXX_Size() int

func (*MsgCloseDeploymentResponse) XXX_Unmarshal

func (m *MsgCloseDeploymentResponse) XXX_Unmarshal(b []byte) error

type MsgCloseGroup

type MsgCloseGroup struct {
	ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}

MsgCloseGroup defines SDK message to close a single Group within a Deployment.

func NewMsgCloseGroup

func NewMsgCloseGroup(id GroupID) *MsgCloseGroup

NewMsgCloseGroup creates a new MsgCloseGroup instance

func (*MsgCloseGroup) Descriptor

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

func (*MsgCloseGroup) GetID

func (m *MsgCloseGroup) GetID() GroupID

func (MsgCloseGroup) GetSignBytes

func (msg MsgCloseGroup) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgCloseGroup) GetSigners

func (msg MsgCloseGroup) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgCloseGroup) Marshal

func (m *MsgCloseGroup) Marshal() (dAtA []byte, err error)

func (*MsgCloseGroup) MarshalTo

func (m *MsgCloseGroup) MarshalTo(dAtA []byte) (int, error)

func (*MsgCloseGroup) MarshalToSizedBuffer

func (m *MsgCloseGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCloseGroup) ProtoMessage

func (*MsgCloseGroup) ProtoMessage()

func (*MsgCloseGroup) Reset

func (m *MsgCloseGroup) Reset()

func (MsgCloseGroup) Route

func (msg MsgCloseGroup) Route() string

Route implements the sdk.Msg interface for routing

func (*MsgCloseGroup) Size

func (m *MsgCloseGroup) Size() (n int)

func (*MsgCloseGroup) String

func (m *MsgCloseGroup) String() string

func (MsgCloseGroup) Type

func (msg MsgCloseGroup) Type() string

Type implements the sdk.Msg interface exposing message type

func (*MsgCloseGroup) Unmarshal

func (m *MsgCloseGroup) Unmarshal(dAtA []byte) error

func (MsgCloseGroup) ValidateBasic

func (msg MsgCloseGroup) ValidateBasic() error

ValidateBasic calls underlying GroupID.Validate() check and returns result

func (*MsgCloseGroup) XXX_DiscardUnknown

func (m *MsgCloseGroup) XXX_DiscardUnknown()

func (*MsgCloseGroup) XXX_Marshal

func (m *MsgCloseGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCloseGroup) XXX_Merge

func (m *MsgCloseGroup) XXX_Merge(src proto.Message)

func (*MsgCloseGroup) XXX_Size

func (m *MsgCloseGroup) XXX_Size() int

func (*MsgCloseGroup) XXX_Unmarshal

func (m *MsgCloseGroup) XXX_Unmarshal(b []byte) error

type MsgCloseGroupResponse

type MsgCloseGroupResponse struct {
}

MsgCloseGroupResponse defines the Msg/CloseGroup response type.

func (*MsgCloseGroupResponse) Descriptor

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

func (*MsgCloseGroupResponse) Marshal

func (m *MsgCloseGroupResponse) Marshal() (dAtA []byte, err error)

func (*MsgCloseGroupResponse) MarshalTo

func (m *MsgCloseGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCloseGroupResponse) MarshalToSizedBuffer

func (m *MsgCloseGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCloseGroupResponse) ProtoMessage

func (*MsgCloseGroupResponse) ProtoMessage()

func (*MsgCloseGroupResponse) Reset

func (m *MsgCloseGroupResponse) Reset()

func (*MsgCloseGroupResponse) Size

func (m *MsgCloseGroupResponse) Size() (n int)

func (*MsgCloseGroupResponse) String

func (m *MsgCloseGroupResponse) String() string

func (*MsgCloseGroupResponse) Unmarshal

func (m *MsgCloseGroupResponse) Unmarshal(dAtA []byte) error

func (*MsgCloseGroupResponse) XXX_DiscardUnknown

func (m *MsgCloseGroupResponse) XXX_DiscardUnknown()

func (*MsgCloseGroupResponse) XXX_Marshal

func (m *MsgCloseGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCloseGroupResponse) XXX_Merge

func (m *MsgCloseGroupResponse) XXX_Merge(src proto.Message)

func (*MsgCloseGroupResponse) XXX_Size

func (m *MsgCloseGroupResponse) XXX_Size() int

func (*MsgCloseGroupResponse) XXX_Unmarshal

func (m *MsgCloseGroupResponse) XXX_Unmarshal(b []byte) error

type MsgCreateDeployment

type MsgCreateDeployment struct {
	ID      DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
	Groups  []GroupSpec  `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups" yaml:"groups"`
	Version []byte       `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"`
	Deposit types.Coin   `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit" yaml:"deposit"`
	// Depositor pays for the deposit
	Depositor string `protobuf:"bytes,5,opt,name=depositor,proto3" json:"depositor" yaml:"depositor"`
}

MsgCreateDeployment defines an SDK message for creating deployment

func NewMsgCreateDeployment

func NewMsgCreateDeployment(id DeploymentID, groups []GroupSpec, version []byte,
	deposit sdk.Coin, depositor sdk.AccAddress) *MsgCreateDeployment

NewMsgCreateDeployment creates a new MsgCreateDeployment instance

func (*MsgCreateDeployment) Descriptor

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

func (*MsgCreateDeployment) GetDeposit

func (m *MsgCreateDeployment) GetDeposit() types.Coin

func (*MsgCreateDeployment) GetDepositor

func (m *MsgCreateDeployment) GetDepositor() string

func (*MsgCreateDeployment) GetGroups

func (m *MsgCreateDeployment) GetGroups() []GroupSpec

func (*MsgCreateDeployment) GetID

func (m *MsgCreateDeployment) GetID() DeploymentID

func (MsgCreateDeployment) GetSignBytes

func (msg MsgCreateDeployment) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgCreateDeployment) GetSigners

func (msg MsgCreateDeployment) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgCreateDeployment) GetVersion

func (m *MsgCreateDeployment) GetVersion() []byte

func (*MsgCreateDeployment) Marshal

func (m *MsgCreateDeployment) Marshal() (dAtA []byte, err error)

func (*MsgCreateDeployment) MarshalTo

func (m *MsgCreateDeployment) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateDeployment) MarshalToSizedBuffer

func (m *MsgCreateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateDeployment) ProtoMessage

func (*MsgCreateDeployment) ProtoMessage()

func (*MsgCreateDeployment) Reset

func (m *MsgCreateDeployment) Reset()

func (MsgCreateDeployment) Route

func (msg MsgCreateDeployment) Route() string

Route implements the sdk.Msg interface

func (*MsgCreateDeployment) Size

func (m *MsgCreateDeployment) Size() (n int)

func (*MsgCreateDeployment) String

func (m *MsgCreateDeployment) String() string

func (MsgCreateDeployment) Type

func (msg MsgCreateDeployment) Type() string

Type implements the sdk.Msg interface

func (*MsgCreateDeployment) Unmarshal

func (m *MsgCreateDeployment) Unmarshal(dAtA []byte) error

func (MsgCreateDeployment) ValidateBasic

func (msg MsgCreateDeployment) ValidateBasic() error

ValidateBasic does basic validation like check owner and groups length

func (*MsgCreateDeployment) XXX_DiscardUnknown

func (m *MsgCreateDeployment) XXX_DiscardUnknown()

func (*MsgCreateDeployment) XXX_Marshal

func (m *MsgCreateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateDeployment) XXX_Merge

func (m *MsgCreateDeployment) XXX_Merge(src proto.Message)

func (*MsgCreateDeployment) XXX_Size

func (m *MsgCreateDeployment) XXX_Size() int

func (*MsgCreateDeployment) XXX_Unmarshal

func (m *MsgCreateDeployment) XXX_Unmarshal(b []byte) error

type MsgCreateDeploymentResponse

type MsgCreateDeploymentResponse struct {
}

MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type.

func (*MsgCreateDeploymentResponse) Descriptor

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

func (*MsgCreateDeploymentResponse) Marshal

func (m *MsgCreateDeploymentResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateDeploymentResponse) MarshalTo

func (m *MsgCreateDeploymentResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateDeploymentResponse) MarshalToSizedBuffer

func (m *MsgCreateDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateDeploymentResponse) ProtoMessage

func (*MsgCreateDeploymentResponse) ProtoMessage()

func (*MsgCreateDeploymentResponse) Reset

func (m *MsgCreateDeploymentResponse) Reset()

func (*MsgCreateDeploymentResponse) Size

func (m *MsgCreateDeploymentResponse) Size() (n int)

func (*MsgCreateDeploymentResponse) String

func (m *MsgCreateDeploymentResponse) String() string

func (*MsgCreateDeploymentResponse) Unmarshal

func (m *MsgCreateDeploymentResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateDeploymentResponse) XXX_DiscardUnknown

func (m *MsgCreateDeploymentResponse) XXX_DiscardUnknown()

func (*MsgCreateDeploymentResponse) XXX_Marshal

func (m *MsgCreateDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateDeploymentResponse) XXX_Merge

func (m *MsgCreateDeploymentResponse) XXX_Merge(src proto.Message)

func (*MsgCreateDeploymentResponse) XXX_Size

func (m *MsgCreateDeploymentResponse) XXX_Size() int

func (*MsgCreateDeploymentResponse) XXX_Unmarshal

func (m *MsgCreateDeploymentResponse) XXX_Unmarshal(b []byte) error

type MsgDepositDeployment

type MsgDepositDeployment struct {
	ID     DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
	Amount types.Coin   `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount" yaml:"amount"`
	// Depositor pays for the deposit
	Depositor string `protobuf:"bytes,3,opt,name=depositor,proto3" json:"depositor" yaml:"depositor"`
}

MsgDepositDeployment deposits more funds into the deposit account

func NewMsgDepositDeployment

func NewMsgDepositDeployment(id DeploymentID, amount sdk.Coin, depositor string) *MsgDepositDeployment

NewMsgDepositDeployment creates a new MsgDepositDeployment instance

func (*MsgDepositDeployment) Descriptor

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

func (*MsgDepositDeployment) GetAmount

func (m *MsgDepositDeployment) GetAmount() types.Coin

func (*MsgDepositDeployment) GetDepositor

func (m *MsgDepositDeployment) GetDepositor() string

func (*MsgDepositDeployment) GetID

func (MsgDepositDeployment) GetSignBytes

func (msg MsgDepositDeployment) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgDepositDeployment) GetSigners

func (msg MsgDepositDeployment) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgDepositDeployment) Marshal

func (m *MsgDepositDeployment) Marshal() (dAtA []byte, err error)

func (*MsgDepositDeployment) MarshalTo

func (m *MsgDepositDeployment) MarshalTo(dAtA []byte) (int, error)

func (*MsgDepositDeployment) MarshalToSizedBuffer

func (m *MsgDepositDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDepositDeployment) ProtoMessage

func (*MsgDepositDeployment) ProtoMessage()

func (*MsgDepositDeployment) Reset

func (m *MsgDepositDeployment) Reset()

func (MsgDepositDeployment) Route

func (msg MsgDepositDeployment) Route() string

Route implements the sdk.Msg interface

func (*MsgDepositDeployment) Size

func (m *MsgDepositDeployment) Size() (n int)

func (*MsgDepositDeployment) String

func (m *MsgDepositDeployment) String() string

func (MsgDepositDeployment) Type

func (msg MsgDepositDeployment) Type() string

Type implements the sdk.Msg interface

func (*MsgDepositDeployment) Unmarshal

func (m *MsgDepositDeployment) Unmarshal(dAtA []byte) error

func (MsgDepositDeployment) ValidateBasic

func (msg MsgDepositDeployment) ValidateBasic() error

ValidateBasic does basic validation like check owner and groups length

func (*MsgDepositDeployment) XXX_DiscardUnknown

func (m *MsgDepositDeployment) XXX_DiscardUnknown()

func (*MsgDepositDeployment) XXX_Marshal

func (m *MsgDepositDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDepositDeployment) XXX_Merge

func (m *MsgDepositDeployment) XXX_Merge(src proto.Message)

func (*MsgDepositDeployment) XXX_Size

func (m *MsgDepositDeployment) XXX_Size() int

func (*MsgDepositDeployment) XXX_Unmarshal

func (m *MsgDepositDeployment) XXX_Unmarshal(b []byte) error

type MsgDepositDeploymentResponse

type MsgDepositDeploymentResponse struct {
}

MsgCreateDeploymentResponse defines the Msg/CreateDeployment response type.

func (*MsgDepositDeploymentResponse) Descriptor

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

func (*MsgDepositDeploymentResponse) Marshal

func (m *MsgDepositDeploymentResponse) Marshal() (dAtA []byte, err error)

func (*MsgDepositDeploymentResponse) MarshalTo

func (m *MsgDepositDeploymentResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDepositDeploymentResponse) MarshalToSizedBuffer

func (m *MsgDepositDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDepositDeploymentResponse) ProtoMessage

func (*MsgDepositDeploymentResponse) ProtoMessage()

func (*MsgDepositDeploymentResponse) Reset

func (m *MsgDepositDeploymentResponse) Reset()

func (*MsgDepositDeploymentResponse) Size

func (m *MsgDepositDeploymentResponse) Size() (n int)

func (*MsgDepositDeploymentResponse) String

func (*MsgDepositDeploymentResponse) Unmarshal

func (m *MsgDepositDeploymentResponse) Unmarshal(dAtA []byte) error

func (*MsgDepositDeploymentResponse) XXX_DiscardUnknown

func (m *MsgDepositDeploymentResponse) XXX_DiscardUnknown()

func (*MsgDepositDeploymentResponse) XXX_Marshal

func (m *MsgDepositDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDepositDeploymentResponse) XXX_Merge

func (m *MsgDepositDeploymentResponse) XXX_Merge(src proto.Message)

func (*MsgDepositDeploymentResponse) XXX_Size

func (m *MsgDepositDeploymentResponse) XXX_Size() int

func (*MsgDepositDeploymentResponse) XXX_Unmarshal

func (m *MsgDepositDeploymentResponse) XXX_Unmarshal(b []byte) error

type MsgPauseGroup

type MsgPauseGroup struct {
	ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}

MsgPauseGroup defines SDK message to close a single Group within a Deployment.

func NewMsgPauseGroup

func NewMsgPauseGroup(id GroupID) *MsgPauseGroup

NewMsgPauseGroup creates a new MsgPauseGroup instance

func (*MsgPauseGroup) Descriptor

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

func (*MsgPauseGroup) GetID

func (m *MsgPauseGroup) GetID() GroupID

func (MsgPauseGroup) GetSignBytes

func (msg MsgPauseGroup) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgPauseGroup) GetSigners

func (msg MsgPauseGroup) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgPauseGroup) Marshal

func (m *MsgPauseGroup) Marshal() (dAtA []byte, err error)

func (*MsgPauseGroup) MarshalTo

func (m *MsgPauseGroup) MarshalTo(dAtA []byte) (int, error)

func (*MsgPauseGroup) MarshalToSizedBuffer

func (m *MsgPauseGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgPauseGroup) ProtoMessage

func (*MsgPauseGroup) ProtoMessage()

func (*MsgPauseGroup) Reset

func (m *MsgPauseGroup) Reset()

func (MsgPauseGroup) Route

func (msg MsgPauseGroup) Route() string

Route implements the sdk.Msg interface for routing

func (*MsgPauseGroup) Size

func (m *MsgPauseGroup) Size() (n int)

func (*MsgPauseGroup) String

func (m *MsgPauseGroup) String() string

func (MsgPauseGroup) Type

func (msg MsgPauseGroup) Type() string

Type implements the sdk.Msg interface exposing message type

func (*MsgPauseGroup) Unmarshal

func (m *MsgPauseGroup) Unmarshal(dAtA []byte) error

func (MsgPauseGroup) ValidateBasic

func (msg MsgPauseGroup) ValidateBasic() error

ValidateBasic calls underlying GroupID.Validate() check and returns result

func (*MsgPauseGroup) XXX_DiscardUnknown

func (m *MsgPauseGroup) XXX_DiscardUnknown()

func (*MsgPauseGroup) XXX_Marshal

func (m *MsgPauseGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgPauseGroup) XXX_Merge

func (m *MsgPauseGroup) XXX_Merge(src proto.Message)

func (*MsgPauseGroup) XXX_Size

func (m *MsgPauseGroup) XXX_Size() int

func (*MsgPauseGroup) XXX_Unmarshal

func (m *MsgPauseGroup) XXX_Unmarshal(b []byte) error

type MsgPauseGroupResponse

type MsgPauseGroupResponse struct {
}

MsgPauseGroupResponse defines the Msg/PauseGroup response type.

func (*MsgPauseGroupResponse) Descriptor

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

func (*MsgPauseGroupResponse) Marshal

func (m *MsgPauseGroupResponse) Marshal() (dAtA []byte, err error)

func (*MsgPauseGroupResponse) MarshalTo

func (m *MsgPauseGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgPauseGroupResponse) MarshalToSizedBuffer

func (m *MsgPauseGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgPauseGroupResponse) ProtoMessage

func (*MsgPauseGroupResponse) ProtoMessage()

func (*MsgPauseGroupResponse) Reset

func (m *MsgPauseGroupResponse) Reset()

func (*MsgPauseGroupResponse) Size

func (m *MsgPauseGroupResponse) Size() (n int)

func (*MsgPauseGroupResponse) String

func (m *MsgPauseGroupResponse) String() string

func (*MsgPauseGroupResponse) Unmarshal

func (m *MsgPauseGroupResponse) Unmarshal(dAtA []byte) error

func (*MsgPauseGroupResponse) XXX_DiscardUnknown

func (m *MsgPauseGroupResponse) XXX_DiscardUnknown()

func (*MsgPauseGroupResponse) XXX_Marshal

func (m *MsgPauseGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgPauseGroupResponse) XXX_Merge

func (m *MsgPauseGroupResponse) XXX_Merge(src proto.Message)

func (*MsgPauseGroupResponse) XXX_Size

func (m *MsgPauseGroupResponse) XXX_Size() int

func (*MsgPauseGroupResponse) XXX_Unmarshal

func (m *MsgPauseGroupResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// CreateDeployment defines a method to create new deployment given proper inputs.
	CreateDeployment(context.Context, *MsgCreateDeployment) (*MsgCreateDeploymentResponse, error)
	// DepositDeployment deposits more funds into the deployment account
	DepositDeployment(context.Context, *MsgDepositDeployment) (*MsgDepositDeploymentResponse, error)
	// UpdateDeployment defines a method to update a deployment given proper inputs.
	UpdateDeployment(context.Context, *MsgUpdateDeployment) (*MsgUpdateDeploymentResponse, error)
	// CloseDeployment defines a method to close a deployment given proper inputs.
	CloseDeployment(context.Context, *MsgCloseDeployment) (*MsgCloseDeploymentResponse, error)
	// CloseGroup defines a method to close a group of a deployment given proper inputs.
	CloseGroup(context.Context, *MsgCloseGroup) (*MsgCloseGroupResponse, error)
	// PauseGroup defines a method to close a group of a deployment given proper inputs.
	PauseGroup(context.Context, *MsgPauseGroup) (*MsgPauseGroupResponse, error)
	// StartGroup defines a method to close a group of a deployment given proper inputs.
	StartGroup(context.Context, *MsgStartGroup) (*MsgStartGroupResponse, error)
}

MsgServer is the server API for Msg service.

type MsgStartGroup

type MsgStartGroup struct {
	ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
}

MsgStartGroup defines SDK message to close a single Group within a Deployment.

func NewMsgStartGroup

func NewMsgStartGroup(id GroupID) *MsgStartGroup

NewMsgStartGroup creates a new MsgStartGroup instance

func (*MsgStartGroup) Descriptor

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

func (*MsgStartGroup) GetID

func (m *MsgStartGroup) GetID() GroupID

func (MsgStartGroup) GetSignBytes

func (msg MsgStartGroup) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgStartGroup) GetSigners

func (msg MsgStartGroup) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgStartGroup) Marshal

func (m *MsgStartGroup) Marshal() (dAtA []byte, err error)

func (*MsgStartGroup) MarshalTo

func (m *MsgStartGroup) MarshalTo(dAtA []byte) (int, error)

func (*MsgStartGroup) MarshalToSizedBuffer

func (m *MsgStartGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgStartGroup) ProtoMessage

func (*MsgStartGroup) ProtoMessage()

func (*MsgStartGroup) Reset

func (m *MsgStartGroup) Reset()

func (MsgStartGroup) Route

func (msg MsgStartGroup) Route() string

Route implements the sdk.Msg interface for routing

func (*MsgStartGroup) Size

func (m *MsgStartGroup) Size() (n int)

func (*MsgStartGroup) String

func (m *MsgStartGroup) String() string

func (MsgStartGroup) Type

func (msg MsgStartGroup) Type() string

Type implements the sdk.Msg interface exposing message type

func (*MsgStartGroup) Unmarshal

func (m *MsgStartGroup) Unmarshal(dAtA []byte) error

func (MsgStartGroup) ValidateBasic

func (msg MsgStartGroup) ValidateBasic() error

ValidateBasic calls underlying GroupID.Validate() check and returns result

func (*MsgStartGroup) XXX_DiscardUnknown

func (m *MsgStartGroup) XXX_DiscardUnknown()

func (*MsgStartGroup) XXX_Marshal

func (m *MsgStartGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgStartGroup) XXX_Merge

func (m *MsgStartGroup) XXX_Merge(src proto.Message)

func (*MsgStartGroup) XXX_Size

func (m *MsgStartGroup) XXX_Size() int

func (*MsgStartGroup) XXX_Unmarshal

func (m *MsgStartGroup) XXX_Unmarshal(b []byte) error

type MsgStartGroupResponse

type MsgStartGroupResponse struct {
}

MsgStartGroupResponse defines the Msg/StartGroup response type.

func (*MsgStartGroupResponse) Descriptor

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

func (*MsgStartGroupResponse) Marshal

func (m *MsgStartGroupResponse) Marshal() (dAtA []byte, err error)

func (*MsgStartGroupResponse) MarshalTo

func (m *MsgStartGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgStartGroupResponse) MarshalToSizedBuffer

func (m *MsgStartGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgStartGroupResponse) ProtoMessage

func (*MsgStartGroupResponse) ProtoMessage()

func (*MsgStartGroupResponse) Reset

func (m *MsgStartGroupResponse) Reset()

func (*MsgStartGroupResponse) Size

func (m *MsgStartGroupResponse) Size() (n int)

func (*MsgStartGroupResponse) String

func (m *MsgStartGroupResponse) String() string

func (*MsgStartGroupResponse) Unmarshal

func (m *MsgStartGroupResponse) Unmarshal(dAtA []byte) error

func (*MsgStartGroupResponse) XXX_DiscardUnknown

func (m *MsgStartGroupResponse) XXX_DiscardUnknown()

func (*MsgStartGroupResponse) XXX_Marshal

func (m *MsgStartGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgStartGroupResponse) XXX_Merge

func (m *MsgStartGroupResponse) XXX_Merge(src proto.Message)

func (*MsgStartGroupResponse) XXX_Size

func (m *MsgStartGroupResponse) XXX_Size() int

func (*MsgStartGroupResponse) XXX_Unmarshal

func (m *MsgStartGroupResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateDeployment

type MsgUpdateDeployment struct {
	ID      DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
	Version []byte       `protobuf:"bytes,3,opt,name=version,proto3" json:"version" yaml:"version"`
}

MsgUpdateDeployment defines an SDK message for updating deployment

func NewMsgUpdateDeployment

func NewMsgUpdateDeployment(id DeploymentID, version []byte) *MsgUpdateDeployment

NewMsgUpdateDeployment creates a new MsgUpdateDeployment instance

func (*MsgUpdateDeployment) Descriptor

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

func (*MsgUpdateDeployment) GetID

func (m *MsgUpdateDeployment) GetID() DeploymentID

func (MsgUpdateDeployment) GetSignBytes

func (msg MsgUpdateDeployment) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgUpdateDeployment) GetSigners

func (msg MsgUpdateDeployment) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgUpdateDeployment) GetVersion

func (m *MsgUpdateDeployment) GetVersion() []byte

func (*MsgUpdateDeployment) Marshal

func (m *MsgUpdateDeployment) Marshal() (dAtA []byte, err error)

func (*MsgUpdateDeployment) MarshalTo

func (m *MsgUpdateDeployment) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateDeployment) MarshalToSizedBuffer

func (m *MsgUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateDeployment) ProtoMessage

func (*MsgUpdateDeployment) ProtoMessage()

func (*MsgUpdateDeployment) Reset

func (m *MsgUpdateDeployment) Reset()

func (MsgUpdateDeployment) Route

func (msg MsgUpdateDeployment) Route() string

Route implements the sdk.Msg interface

func (*MsgUpdateDeployment) Size

func (m *MsgUpdateDeployment) Size() (n int)

func (*MsgUpdateDeployment) String

func (m *MsgUpdateDeployment) String() string

func (MsgUpdateDeployment) Type

func (msg MsgUpdateDeployment) Type() string

Type implements the sdk.Msg interface

func (*MsgUpdateDeployment) Unmarshal

func (m *MsgUpdateDeployment) Unmarshal(dAtA []byte) error

func (MsgUpdateDeployment) ValidateBasic

func (msg MsgUpdateDeployment) ValidateBasic() error

ValidateBasic does basic validation

func (*MsgUpdateDeployment) XXX_DiscardUnknown

func (m *MsgUpdateDeployment) XXX_DiscardUnknown()

func (*MsgUpdateDeployment) XXX_Marshal

func (m *MsgUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateDeployment) XXX_Merge

func (m *MsgUpdateDeployment) XXX_Merge(src proto.Message)

func (*MsgUpdateDeployment) XXX_Size

func (m *MsgUpdateDeployment) XXX_Size() int

func (*MsgUpdateDeployment) XXX_Unmarshal

func (m *MsgUpdateDeployment) XXX_Unmarshal(b []byte) error

type MsgUpdateDeploymentResponse

type MsgUpdateDeploymentResponse struct {
}

MsgUpdateDeploymentResponse defines the Msg/UpdateDeployment response type.

func (*MsgUpdateDeploymentResponse) Descriptor

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

func (*MsgUpdateDeploymentResponse) Marshal

func (m *MsgUpdateDeploymentResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateDeploymentResponse) MarshalTo

func (m *MsgUpdateDeploymentResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateDeploymentResponse) MarshalToSizedBuffer

func (m *MsgUpdateDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateDeploymentResponse) ProtoMessage

func (*MsgUpdateDeploymentResponse) ProtoMessage()

func (*MsgUpdateDeploymentResponse) Reset

func (m *MsgUpdateDeploymentResponse) Reset()

func (*MsgUpdateDeploymentResponse) Size

func (m *MsgUpdateDeploymentResponse) Size() (n int)

func (*MsgUpdateDeploymentResponse) String

func (m *MsgUpdateDeploymentResponse) String() string

func (*MsgUpdateDeploymentResponse) Unmarshal

func (m *MsgUpdateDeploymentResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateDeploymentResponse) XXX_DiscardUnknown

func (m *MsgUpdateDeploymentResponse) XXX_DiscardUnknown()

func (*MsgUpdateDeploymentResponse) XXX_Marshal

func (m *MsgUpdateDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateDeploymentResponse) XXX_Merge

func (m *MsgUpdateDeploymentResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateDeploymentResponse) XXX_Size

func (m *MsgUpdateDeploymentResponse) XXX_Size() int

func (*MsgUpdateDeploymentResponse) XXX_Unmarshal

func (m *MsgUpdateDeploymentResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	MinDeposits github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */
}

Params defines the parameters for the x/deployment package

func DefaultParams

func DefaultParams() Params

func (*Params) Descriptor

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

func (*Params) GetMinDeposits

func (m *Params) GetMinDeposits() github_com_cosmos_cosmos_sdk_types.Coins

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (Params) MinDepositFor

func (p Params) MinDepositFor(denom string) (sdk.Coin, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

func (Params) ValidateDeposit

func (p Params) ValidateDeposit(amt sdk.Coin) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Deployments queries deployments
	Deployments(ctx context.Context, in *QueryDeploymentsRequest, opts ...grpc.CallOption) (*QueryDeploymentsResponse, error)
	// Deployment queries deployment details
	Deployment(ctx context.Context, in *QueryDeploymentRequest, opts ...grpc.CallOption) (*QueryDeploymentResponse, error)
	// Group queries group details
	Group(ctx context.Context, in *QueryGroupRequest, opts ...grpc.CallOption) (*QueryGroupResponse, 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 QueryDeploymentRequest

type QueryDeploymentRequest struct {
	ID DeploymentID `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
}

QueryDeploymentRequest is request type for the Query/Deployment RPC method

func (*QueryDeploymentRequest) Descriptor

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

func (*QueryDeploymentRequest) GetID

func (*QueryDeploymentRequest) Marshal

func (m *QueryDeploymentRequest) Marshal() (dAtA []byte, err error)

func (*QueryDeploymentRequest) MarshalTo

func (m *QueryDeploymentRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDeploymentRequest) MarshalToSizedBuffer

func (m *QueryDeploymentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDeploymentRequest) ProtoMessage

func (*QueryDeploymentRequest) ProtoMessage()

func (*QueryDeploymentRequest) Reset

func (m *QueryDeploymentRequest) Reset()

func (*QueryDeploymentRequest) Size

func (m *QueryDeploymentRequest) Size() (n int)

func (*QueryDeploymentRequest) String

func (m *QueryDeploymentRequest) String() string

func (*QueryDeploymentRequest) Unmarshal

func (m *QueryDeploymentRequest) Unmarshal(dAtA []byte) error

func (*QueryDeploymentRequest) XXX_DiscardUnknown

func (m *QueryDeploymentRequest) XXX_DiscardUnknown()

func (*QueryDeploymentRequest) XXX_Marshal

func (m *QueryDeploymentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDeploymentRequest) XXX_Merge

func (m *QueryDeploymentRequest) XXX_Merge(src proto.Message)

func (*QueryDeploymentRequest) XXX_Size

func (m *QueryDeploymentRequest) XXX_Size() int

func (*QueryDeploymentRequest) XXX_Unmarshal

func (m *QueryDeploymentRequest) XXX_Unmarshal(b []byte) error

type QueryDeploymentResponse

type QueryDeploymentResponse struct {
	Deployment    Deployment      `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment" yaml:"deployment"`
	Groups        []Group         `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups" yaml:"groups"`
	EscrowAccount v1beta3.Account `protobuf:"bytes,3,opt,name=escrow_account,json=escrowAccount,proto3" json:"escrow_account"`
}

QueryDeploymentResponse is response type for the Query/Deployment RPC method

func (*QueryDeploymentResponse) Descriptor

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

func (*QueryDeploymentResponse) GetDeployment

func (m *QueryDeploymentResponse) GetDeployment() Deployment

func (*QueryDeploymentResponse) GetEscrowAccount

func (m *QueryDeploymentResponse) GetEscrowAccount() v1beta3.Account

func (*QueryDeploymentResponse) GetGroups

func (m *QueryDeploymentResponse) GetGroups() []Group

func (*QueryDeploymentResponse) Marshal

func (m *QueryDeploymentResponse) Marshal() (dAtA []byte, err error)

func (*QueryDeploymentResponse) MarshalTo

func (m *QueryDeploymentResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDeploymentResponse) MarshalToSizedBuffer

func (m *QueryDeploymentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDeploymentResponse) ProtoMessage

func (*QueryDeploymentResponse) ProtoMessage()

func (*QueryDeploymentResponse) Reset

func (m *QueryDeploymentResponse) Reset()

func (*QueryDeploymentResponse) Size

func (m *QueryDeploymentResponse) Size() (n int)

func (*QueryDeploymentResponse) String

func (m *QueryDeploymentResponse) String() string

func (*QueryDeploymentResponse) Unmarshal

func (m *QueryDeploymentResponse) Unmarshal(dAtA []byte) error

func (*QueryDeploymentResponse) XXX_DiscardUnknown

func (m *QueryDeploymentResponse) XXX_DiscardUnknown()

func (*QueryDeploymentResponse) XXX_Marshal

func (m *QueryDeploymentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDeploymentResponse) XXX_Merge

func (m *QueryDeploymentResponse) XXX_Merge(src proto.Message)

func (*QueryDeploymentResponse) XXX_Size

func (m *QueryDeploymentResponse) XXX_Size() int

func (*QueryDeploymentResponse) XXX_Unmarshal

func (m *QueryDeploymentResponse) XXX_Unmarshal(b []byte) error

type QueryDeploymentsRequest

type QueryDeploymentsRequest struct {
	Filters    DeploymentFilters  `protobuf:"bytes,1,opt,name=filters,proto3" json:"filters"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDeploymentsRequest is request type for the Query/Deployments RPC method

func (*QueryDeploymentsRequest) Descriptor

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

func (*QueryDeploymentsRequest) GetFilters

func (*QueryDeploymentsRequest) GetPagination

func (m *QueryDeploymentsRequest) GetPagination() *query.PageRequest

func (*QueryDeploymentsRequest) Marshal

func (m *QueryDeploymentsRequest) Marshal() (dAtA []byte, err error)

func (*QueryDeploymentsRequest) MarshalTo

func (m *QueryDeploymentsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDeploymentsRequest) MarshalToSizedBuffer

func (m *QueryDeploymentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDeploymentsRequest) ProtoMessage

func (*QueryDeploymentsRequest) ProtoMessage()

func (*QueryDeploymentsRequest) Reset

func (m *QueryDeploymentsRequest) Reset()

func (*QueryDeploymentsRequest) Size

func (m *QueryDeploymentsRequest) Size() (n int)

func (*QueryDeploymentsRequest) String

func (m *QueryDeploymentsRequest) String() string

func (*QueryDeploymentsRequest) Unmarshal

func (m *QueryDeploymentsRequest) Unmarshal(dAtA []byte) error

func (*QueryDeploymentsRequest) XXX_DiscardUnknown

func (m *QueryDeploymentsRequest) XXX_DiscardUnknown()

func (*QueryDeploymentsRequest) XXX_Marshal

func (m *QueryDeploymentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDeploymentsRequest) XXX_Merge

func (m *QueryDeploymentsRequest) XXX_Merge(src proto.Message)

func (*QueryDeploymentsRequest) XXX_Size

func (m *QueryDeploymentsRequest) XXX_Size() int

func (*QueryDeploymentsRequest) XXX_Unmarshal

func (m *QueryDeploymentsRequest) XXX_Unmarshal(b []byte) error

type QueryDeploymentsResponse

type QueryDeploymentsResponse struct {
	Deployments DeploymentResponses `protobuf:"bytes,1,rep,name=deployments,proto3,castrepeated=DeploymentResponses" json:"deployments"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDeploymentsResponse is response type for the Query/Deployments RPC method

func (*QueryDeploymentsResponse) Descriptor

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

func (*QueryDeploymentsResponse) GetDeployments

func (m *QueryDeploymentsResponse) GetDeployments() DeploymentResponses

func (*QueryDeploymentsResponse) GetPagination

func (m *QueryDeploymentsResponse) GetPagination() *query.PageResponse

func (*QueryDeploymentsResponse) Marshal

func (m *QueryDeploymentsResponse) Marshal() (dAtA []byte, err error)

func (*QueryDeploymentsResponse) MarshalTo

func (m *QueryDeploymentsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDeploymentsResponse) MarshalToSizedBuffer

func (m *QueryDeploymentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDeploymentsResponse) ProtoMessage

func (*QueryDeploymentsResponse) ProtoMessage()

func (*QueryDeploymentsResponse) Reset

func (m *QueryDeploymentsResponse) Reset()

func (*QueryDeploymentsResponse) Size

func (m *QueryDeploymentsResponse) Size() (n int)

func (*QueryDeploymentsResponse) String

func (m *QueryDeploymentsResponse) String() string

func (*QueryDeploymentsResponse) Unmarshal

func (m *QueryDeploymentsResponse) Unmarshal(dAtA []byte) error

func (*QueryDeploymentsResponse) XXX_DiscardUnknown

func (m *QueryDeploymentsResponse) XXX_DiscardUnknown()

func (*QueryDeploymentsResponse) XXX_Marshal

func (m *QueryDeploymentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDeploymentsResponse) XXX_Merge

func (m *QueryDeploymentsResponse) XXX_Merge(src proto.Message)

func (*QueryDeploymentsResponse) XXX_Size

func (m *QueryDeploymentsResponse) XXX_Size() int

func (*QueryDeploymentsResponse) XXX_Unmarshal

func (m *QueryDeploymentsResponse) XXX_Unmarshal(b []byte) error

type QueryGroupRequest

type QueryGroupRequest struct {
	ID GroupID `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
}

QueryGroupRequest is request type for the Query/Group RPC method

func (*QueryGroupRequest) Descriptor

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

func (*QueryGroupRequest) GetID

func (m *QueryGroupRequest) GetID() GroupID

func (*QueryGroupRequest) Marshal

func (m *QueryGroupRequest) Marshal() (dAtA []byte, err error)

func (*QueryGroupRequest) MarshalTo

func (m *QueryGroupRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupRequest) MarshalToSizedBuffer

func (m *QueryGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupRequest) ProtoMessage

func (*QueryGroupRequest) ProtoMessage()

func (*QueryGroupRequest) Reset

func (m *QueryGroupRequest) Reset()

func (*QueryGroupRequest) Size

func (m *QueryGroupRequest) Size() (n int)

func (*QueryGroupRequest) String

func (m *QueryGroupRequest) String() string

func (*QueryGroupRequest) Unmarshal

func (m *QueryGroupRequest) Unmarshal(dAtA []byte) error

func (*QueryGroupRequest) XXX_DiscardUnknown

func (m *QueryGroupRequest) XXX_DiscardUnknown()

func (*QueryGroupRequest) XXX_Marshal

func (m *QueryGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupRequest) XXX_Merge

func (m *QueryGroupRequest) XXX_Merge(src proto.Message)

func (*QueryGroupRequest) XXX_Size

func (m *QueryGroupRequest) XXX_Size() int

func (*QueryGroupRequest) XXX_Unmarshal

func (m *QueryGroupRequest) XXX_Unmarshal(b []byte) error

type QueryGroupResponse

type QueryGroupResponse struct {
	Group Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
}

QueryGroupResponse is response type for the Query/Group RPC method

func (*QueryGroupResponse) Descriptor

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

func (*QueryGroupResponse) GetGroup

func (m *QueryGroupResponse) GetGroup() Group

func (*QueryGroupResponse) Marshal

func (m *QueryGroupResponse) Marshal() (dAtA []byte, err error)

func (*QueryGroupResponse) MarshalTo

func (m *QueryGroupResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGroupResponse) MarshalToSizedBuffer

func (m *QueryGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGroupResponse) ProtoMessage

func (*QueryGroupResponse) ProtoMessage()

func (*QueryGroupResponse) Reset

func (m *QueryGroupResponse) Reset()

func (*QueryGroupResponse) Size

func (m *QueryGroupResponse) Size() (n int)

func (*QueryGroupResponse) String

func (m *QueryGroupResponse) String() string

func (*QueryGroupResponse) Unmarshal

func (m *QueryGroupResponse) Unmarshal(dAtA []byte) error

func (*QueryGroupResponse) XXX_DiscardUnknown

func (m *QueryGroupResponse) XXX_DiscardUnknown()

func (*QueryGroupResponse) XXX_Marshal

func (m *QueryGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGroupResponse) XXX_Merge

func (m *QueryGroupResponse) XXX_Merge(src proto.Message)

func (*QueryGroupResponse) XXX_Size

func (m *QueryGroupResponse) XXX_Size() int

func (*QueryGroupResponse) XXX_Unmarshal

func (m *QueryGroupResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Deployments queries deployments
	Deployments(context.Context, *QueryDeploymentsRequest) (*QueryDeploymentsResponse, error)
	// Deployment queries deployment details
	Deployment(context.Context, *QueryDeploymentRequest) (*QueryDeploymentResponse, error)
	// Group queries group details
	Group(context.Context, *QueryGroupRequest) (*QueryGroupResponse, error)
}

QueryServer is the server API for Query service.

type ResourceGroup

type ResourceGroup interface {
	GetName() string
	GetResourceUnits() ResourceUnits
}

type ResourceUnit

type ResourceUnit struct {
	v1beta3.Resources `protobuf:"bytes,1,opt,name=resource,proto3,embedded=resource" json:"resource" yaml:"resource"`
	Count             uint32        `protobuf:"varint,2,opt,name=count,proto3" json:"count" yaml:"count"`
	Price             types.DecCoin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
}

ResourceUnit extends Resources and adds Count along with the Price

func (*ResourceUnit) Descriptor

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

func (*ResourceUnit) Dup

func (r *ResourceUnit) Dup() ResourceUnit

func (*ResourceUnit) Equal

func (this *ResourceUnit) Equal(that interface{}) bool

func (*ResourceUnit) FullPrice

func (r *ResourceUnit) FullPrice() sdk.DecCoin

FullPrice method returns full price of resource

func (*ResourceUnit) GetCount

func (m *ResourceUnit) GetCount() uint32

func (*ResourceUnit) GetPrice

func (m *ResourceUnit) GetPrice() types.DecCoin

func (*ResourceUnit) Marshal

func (m *ResourceUnit) Marshal() (dAtA []byte, err error)

func (*ResourceUnit) MarshalTo

func (m *ResourceUnit) MarshalTo(dAtA []byte) (int, error)

func (*ResourceUnit) MarshalToSizedBuffer

func (m *ResourceUnit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourceUnit) ProtoMessage

func (*ResourceUnit) ProtoMessage()

func (*ResourceUnit) Reset

func (m *ResourceUnit) Reset()

func (*ResourceUnit) Size

func (m *ResourceUnit) Size() (n int)

func (*ResourceUnit) String

func (m *ResourceUnit) String() string

func (*ResourceUnit) Unmarshal

func (m *ResourceUnit) Unmarshal(dAtA []byte) error

func (*ResourceUnit) XXX_DiscardUnknown

func (m *ResourceUnit) XXX_DiscardUnknown()

func (*ResourceUnit) XXX_Marshal

func (m *ResourceUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceUnit) XXX_Merge

func (m *ResourceUnit) XXX_Merge(src proto.Message)

func (*ResourceUnit) XXX_Size

func (m *ResourceUnit) XXX_Size() int

func (*ResourceUnit) XXX_Unmarshal

func (m *ResourceUnit) XXX_Unmarshal(b []byte) error

type ResourceUnits

type ResourceUnits []ResourceUnit

func (ResourceUnits) Dup

func (s ResourceUnits) Dup() ResourceUnits

func (ResourceUnits) Len

func (s ResourceUnits) Len() int

func (ResourceUnits) Less

func (s ResourceUnits) Less(i, j int) bool

func (ResourceUnits) Swap

func (s ResourceUnits) Swap(i, j int)

func (ResourceUnits) Validate

func (s ResourceUnits) Validate() error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CloseDeployment

func (*UnimplementedMsgServer) CloseGroup

func (*UnimplementedMsgServer) CreateDeployment

func (*UnimplementedMsgServer) DepositDeployment

func (*UnimplementedMsgServer) PauseGroup

func (*UnimplementedMsgServer) StartGroup

func (*UnimplementedMsgServer) UpdateDeployment

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Deployment

func (*UnimplementedQueryServer) Deployments

func (*UnimplementedQueryServer) Group

type UnitLimits

type UnitLimits struct {
	Max Limits
	Min Limits
}

type ValidationConfig

type ValidationConfig struct {
	Unit  UnitLimits
	Group GroupLimits
}

func GetValidationConfig

func GetValidationConfig() ValidationConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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