v1beta4

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

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

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

	// RouterKey is the message route for market
	RouterKey = ModuleName
)
View Source
const (
	APIVersion = "v1beta4"
)

Variables

View Source
var (
	ErrInvalidLengthBid        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBid          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBid = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ErrEmptyProvider is the error when provider is empty
	ErrEmptyProvider = errors.New("empty provider")
	// ErrSameAccount is the error when owner and provider are the same account
	ErrSameAccount = errors.New("owner and provider are the same account")
	// ErrInternal is the error for internal error
	ErrInternal = errors.New("internal error")
	// ErrBidOverOrder is the error when bid price is above max order price
	ErrBidOverOrder = errors.New("bid price above max order price")
	// ErrAttributeMismatch is the error for attribute mismatch
	ErrAttributeMismatch = errors.New("attribute mismatch")
	// ErrCapabilitiesMismatch is the error for capabilities mismatch
	ErrCapabilitiesMismatch = errors.New("capabilities mismatch")
	// ErrUnknownBid is the error for unknown bid
	ErrUnknownBid = errors.New("unknown bid")
	// ErrUnknownLease is the error for unknown bid
	ErrUnknownLease = errors.New("unknown lease")
	// ErrUnknownLeaseForBid is the error when lease is unknown for bid
	ErrUnknownLeaseForBid = errors.New("unknown lease for bid")
	// ErrUnknownOrderForBid is the error when order is unknown for bid
	ErrUnknownOrderForBid = errors.New("unknown order for bid")
	// ErrLeaseNotActive is the error when lease is not active
	ErrLeaseNotActive = errors.New("lease not active")
	// ErrBidNotActive is the error when bid is not matched
	ErrBidNotActive = errors.New("bid not active")
	// ErrBidNotOpen is the error when bid is not matched
	ErrBidNotOpen = errors.New("bid not open")
	// ErrNoLeaseForOrder is the error when there is no lease for order
	ErrNoLeaseForOrder = errors.New("no lease for order")
	// ErrOrderNotFound order not found
	ErrOrderNotFound = errors.New("invalid order: order not found")
	// ErrGroupNotFound order not found
	ErrGroupNotFound = errors.New("order not found")
	// ErrGroupNotOpen order not found
	ErrGroupNotOpen = errors.New("order not open")
	// ErrOrderNotOpen order not found
	ErrOrderNotOpen = errors.New("bid: order not open")
	// ErrBidNotFound bid not found
	ErrBidNotFound = errors.New("invalid bid: bid not found")
	// ErrBidZeroPrice zero price
	ErrBidZeroPrice = errors.New("invalid bid: zero price")
	// ErrLeaseNotFound lease not found
	ErrLeaseNotFound = errors.New("invalid lease: lease not found")
	// ErrBidExists bid exists
	ErrBidExists = errors.New("invalid bid: bid exists from provider")
	// ErrBidInvalidPrice bid invalid price
	ErrBidInvalidPrice = errors.New("bid price is invalid")
	// ErrOrderActive order active
	ErrOrderActive = errors.New("order active")
	// ErrOrderClosed order closed
	ErrOrderClosed = errors.New("order closed")
	// ErrOrderExists indicates a new order was proposed overwrite the existing store key
	ErrOrderExists = errors.New("order already exists in store")
	// ErrOrderTooEarly to match bid
	ErrOrderTooEarly = errors.New("order: chain height to low for bidding")
	// ErrOrderDurationExceeded order should be closed
	ErrOrderDurationExceeded = errors.New("order duration has exceeded the bidding duration")
	// ErrInvalidDeposit indicates an invalid deposit
	ErrInvalidDeposit = errors.New("Deposit invalid")
	// ErrInvalidParam indicates an invalid chain parameter
	ErrInvalidParam = errors.New("parameter invalid")
	// ErrUnknownProvider indicates an invalid chain parameter
	ErrUnknownProvider = errors.New("unknown provider")
	// ErrInvalidBid indicates an invalid chain parameter
	ErrInvalidBid = errors.New("unknown provider")
)
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 (
	ErrInvalidLengthLease        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLease          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLease = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthOrder        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOrder          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOrder = 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 Bid_State_name = map[int32]string{
	0: "invalid",
	1: "open",
	2: "active",
	3: "lost",
	4: "closed",
}
View Source
var Bid_State_value = map[string]int32{
	"invalid": 0,
	"open":    1,
	"active":  2,
	"lost":    3,
	"closed":  4,
}
View Source
var (
	DefaultBidMinDeposit = sdk.NewCoin("uakt", sdkmath.NewInt(500000))
)
View Source
var Lease_State_name = map[int32]string{
	0: "invalid",
	1: "active",
	2: "insufficient_funds",
	3: "closed",
}
View Source
var Lease_State_value = map[string]int32{
	"invalid":            0,
	"active":             1,
	"insufficient_funds": 2,
	"closed":             3,
}
View Source
var Order_State_name = map[int32]string{
	0: "invalid",
	1: "open",
	2: "active",
	3: "closed",
}
View Source
var Order_State_value = map[string]int32{
	"invalid": 0,
	"open":    1,
	"active":  2,
	"closed":  3,
}

Functions

func BidPrefix

func BidPrefix() []byte

func LeasePrefix

func LeasePrefix() []byte

func OrderPrefix

func OrderPrefix() []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func SecondaryLeasePrefix

func SecondaryLeasePrefix() []byte

Types

type Bid

type Bid struct {
	BidID          BidID          `protobuf:"bytes,1,opt,name=bid_id,json=bidId,proto3" json:"id" yaml:"id"`
	State          Bid_State      `protobuf:"varint,2,opt,name=state,proto3,enum=akash.market.v1beta4.Bid_State" json:"state" yaml:"state"`
	Price          types.DecCoin  `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
	CreatedAt      int64          `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ResourcesOffer ResourcesOffer `` /* 144-byte string literal not displayed */
}

Bid stores BidID, state of bid and price

func (*Bid) Descriptor

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

func (*Bid) GetBidID

func (m *Bid) GetBidID() BidID

func (*Bid) GetCreatedAt

func (m *Bid) GetCreatedAt() int64

func (*Bid) GetPrice

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

func (*Bid) GetResourcesOffer

func (m *Bid) GetResourcesOffer() ResourcesOffer

func (*Bid) GetState

func (m *Bid) GetState() Bid_State

func (Bid) ID

func (obj Bid) ID() BidID

ID method returns BidID details of specific bid

func (*Bid) Marshal

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

func (*Bid) MarshalTo

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

func (*Bid) MarshalToSizedBuffer

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

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) Reset

func (m *Bid) Reset()

func (*Bid) Size

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

func (Bid) String

func (obj Bid) String() string

String implements the Stringer interface for a Bid object.

func (*Bid) Unmarshal

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

func (*Bid) XXX_DiscardUnknown

func (m *Bid) XXX_DiscardUnknown()

func (*Bid) XXX_Marshal

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

func (*Bid) XXX_Merge

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

func (*Bid) XXX_Size

func (m *Bid) XXX_Size() int

func (*Bid) XXX_Unmarshal

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

type BidFilters

type BidFilters 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"`
	OSeq     uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
	Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"`
	State    string `protobuf:"bytes,6,opt,name=state,proto3" json:"state" yaml:"state"`
}

BidFilters defines flags for bid list filter

func (BidFilters) Accept

func (filters BidFilters) Accept(obj Bid, stateVal Bid_State) bool

Accept returns whether bid filters valid or not

func (*BidFilters) Descriptor

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

func (*BidFilters) GetDSeq

func (m *BidFilters) GetDSeq() uint64

func (*BidFilters) GetGSeq

func (m *BidFilters) GetGSeq() uint32

func (*BidFilters) GetOSeq

func (m *BidFilters) GetOSeq() uint32

func (*BidFilters) GetOwner

func (m *BidFilters) GetOwner() string

func (*BidFilters) GetProvider

func (m *BidFilters) GetProvider() string

func (*BidFilters) GetState

func (m *BidFilters) GetState() string

func (*BidFilters) Marshal

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

func (*BidFilters) MarshalTo

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

func (*BidFilters) MarshalToSizedBuffer

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

func (*BidFilters) ProtoMessage

func (*BidFilters) ProtoMessage()

func (*BidFilters) Reset

func (m *BidFilters) Reset()

func (*BidFilters) Size

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

func (*BidFilters) String

func (m *BidFilters) String() string

func (*BidFilters) Unmarshal

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

func (*BidFilters) XXX_DiscardUnknown

func (m *BidFilters) XXX_DiscardUnknown()

func (*BidFilters) XXX_Marshal

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

func (*BidFilters) XXX_Merge

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

func (*BidFilters) XXX_Size

func (m *BidFilters) XXX_Size() int

func (*BidFilters) XXX_Unmarshal

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

type BidID

type BidID 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"`
	OSeq     uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
	Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"`
}

BidID stores owner and all other seq numbers A successful bid becomes a Lease(ID).

func MakeBidID

func MakeBidID(id OrderID, provider sdk.AccAddress) BidID

MakeBidID returns BidID instance with provided order details and provider

func (BidID) DeploymentID

func (id BidID) DeploymentID() dtypes.DeploymentID

DeploymentID method returns deployment details with specific bid details

func (*BidID) Descriptor

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

func (BidID) Equals

func (id BidID) Equals(other BidID) bool

Equals method compares specific bid with provided bid

func (*BidID) GetDSeq

func (m *BidID) GetDSeq() uint64

func (*BidID) GetGSeq

func (m *BidID) GetGSeq() uint32

func (*BidID) GetOSeq

func (m *BidID) GetOSeq() uint32

func (*BidID) GetOwner

func (m *BidID) GetOwner() string

func (*BidID) GetProvider

func (m *BidID) GetProvider() string

func (BidID) GroupID

func (id BidID) GroupID() dtypes.GroupID

GroupID method returns GroupID details with specific bid details

func (BidID) LeaseID

func (id BidID) LeaseID() LeaseID

LeaseID method returns lease details of bid

func (*BidID) Marshal

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

func (*BidID) MarshalTo

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

func (*BidID) MarshalToSizedBuffer

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

func (BidID) OrderID

func (id BidID) OrderID() OrderID

OrderID method returns OrderID details with specific bid details

func (*BidID) ProtoMessage

func (*BidID) ProtoMessage()

func (*BidID) Reset

func (m *BidID) Reset()

func (*BidID) Size

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

func (BidID) String

func (id BidID) String() string

String method for consistent output.

func (*BidID) Unmarshal

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

func (BidID) Validate

func (id BidID) Validate() error

Validate validates bid instance and returns nil

func (*BidID) XXX_DiscardUnknown

func (m *BidID) XXX_DiscardUnknown()

func (*BidID) XXX_Marshal

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

func (*BidID) XXX_Merge

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

func (*BidID) XXX_Size

func (m *BidID) XXX_Size() int

func (*BidID) XXX_Unmarshal

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

type Bid_State

type Bid_State int32

State is an enum which refers to state of bid

const (
	// Prefix should start with 0 in enum. So declaring dummy state
	BidStateInvalid Bid_State = 0
	// BidOpen denotes state for bid open
	BidOpen Bid_State = 1
	// BidMatched denotes state for bid open
	BidActive Bid_State = 2
	// BidLost denotes state for bid lost
	BidLost Bid_State = 3
	// BidClosed denotes state for bid closed
	BidClosed Bid_State = 4
)

func (Bid_State) EnumDescriptor

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

func (Bid_State) String

func (x Bid_State) String() string

type Bids

type Bids []Bid

Bids is a collection of Bid

func (Bids) String

func (b Bids) String() string

String implements the Stringer interface for a Bids object.

type GenesisState

type GenesisState struct {
	Params Params  `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
	Orders []Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders" yaml:"orders"`
	Leases []Lease `protobuf:"bytes,3,rep,name=leases,proto3" json:"leases" yaml:"leases"`
	Bids   []Bid   `protobuf:"bytes,4,rep,name=bids,proto3" json:"bids" yaml:"bids"`
}

GenesisState defines the basic genesis state used by market module

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBids

func (m *GenesisState) GetBids() []Bid

func (*GenesisState) GetLeases

func (m *GenesisState) GetLeases() []Lease

func (*GenesisState) GetOrders

func (m *GenesisState) GetOrders() []Order

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 Lease

type Lease struct {
	LeaseID   LeaseID       `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"id" yaml:"id"`
	State     Lease_State   `protobuf:"varint,2,opt,name=state,proto3,enum=akash.market.v1beta4.Lease_State" json:"state" yaml:"state"`
	Price     types.DecCoin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
	CreatedAt int64         `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ClosedOn  int64         `protobuf:"varint,5,opt,name=closed_on,json=closedOn,proto3" json:"closed_on,omitempty"`
}

Lease stores LeaseID, state of lease and price

func (*Lease) Descriptor

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

func (*Lease) GetClosedOn

func (m *Lease) GetClosedOn() int64

func (*Lease) GetCreatedAt

func (m *Lease) GetCreatedAt() int64

func (*Lease) GetLeaseID

func (m *Lease) GetLeaseID() LeaseID

func (*Lease) GetPrice

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

func (*Lease) GetState

func (m *Lease) GetState() Lease_State

func (Lease) ID

func (obj Lease) ID() LeaseID

ID method returns LeaseID details of specific lease

func (*Lease) Marshal

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

func (*Lease) MarshalTo

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

func (*Lease) MarshalToSizedBuffer

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

func (*Lease) ProtoMessage

func (*Lease) ProtoMessage()

func (*Lease) Reset

func (m *Lease) Reset()

func (*Lease) Size

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

func (Lease) String

func (obj Lease) String() string

String implements the Stringer interface for a Lease object.

func (*Lease) Unmarshal

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

func (*Lease) XXX_DiscardUnknown

func (m *Lease) XXX_DiscardUnknown()

func (*Lease) XXX_Marshal

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

func (*Lease) XXX_Merge

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

func (*Lease) XXX_Size

func (m *Lease) XXX_Size() int

func (*Lease) XXX_Unmarshal

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

type LeaseFilters

type LeaseFilters 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"`
	OSeq     uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
	Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"`
	State    string `protobuf:"bytes,6,opt,name=state,proto3" json:"state" yaml:"state"`
}

LeaseFilters defines flags for lease list filter

func (LeaseFilters) Accept

func (filters LeaseFilters) Accept(obj Lease, stateVal Lease_State) bool

Accept returns whether lease filters valid or not

func (*LeaseFilters) Descriptor

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

func (*LeaseFilters) GetDSeq

func (m *LeaseFilters) GetDSeq() uint64

func (*LeaseFilters) GetGSeq

func (m *LeaseFilters) GetGSeq() uint32

func (*LeaseFilters) GetOSeq

func (m *LeaseFilters) GetOSeq() uint32

func (*LeaseFilters) GetOwner

func (m *LeaseFilters) GetOwner() string

func (*LeaseFilters) GetProvider

func (m *LeaseFilters) GetProvider() string

func (*LeaseFilters) GetState

func (m *LeaseFilters) GetState() string

func (*LeaseFilters) Marshal

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

func (*LeaseFilters) MarshalTo

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

func (*LeaseFilters) MarshalToSizedBuffer

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

func (*LeaseFilters) ProtoMessage

func (*LeaseFilters) ProtoMessage()

func (*LeaseFilters) Reset

func (m *LeaseFilters) Reset()

func (*LeaseFilters) Size

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

func (*LeaseFilters) String

func (m *LeaseFilters) String() string

func (*LeaseFilters) Unmarshal

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

func (*LeaseFilters) XXX_DiscardUnknown

func (m *LeaseFilters) XXX_DiscardUnknown()

func (*LeaseFilters) XXX_Marshal

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

func (*LeaseFilters) XXX_Merge

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

func (*LeaseFilters) XXX_Size

func (m *LeaseFilters) XXX_Size() int

func (*LeaseFilters) XXX_Unmarshal

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

type LeaseID

type LeaseID 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"`
	OSeq     uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
	Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"`
}

LeaseID stores bid details of lease

func MakeLeaseID

func MakeLeaseID(id BidID) LeaseID

MakeLeaseID returns LeaseID instance with provided bid details

func (LeaseID) BidID

func (id LeaseID) BidID() BidID

BidID method returns BidID details with specific LeaseID

func (LeaseID) DeploymentID

func (id LeaseID) DeploymentID() dtypes.DeploymentID

DeploymentID method returns deployment details with specific lease details

func (*LeaseID) Descriptor

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

func (LeaseID) Equals

func (id LeaseID) Equals(other LeaseID) bool

Equals method compares specific lease with provided lease

func (*LeaseID) GetDSeq

func (m *LeaseID) GetDSeq() uint64

func (*LeaseID) GetGSeq

func (m *LeaseID) GetGSeq() uint32

func (*LeaseID) GetOSeq

func (m *LeaseID) GetOSeq() uint32

func (*LeaseID) GetOwner

func (m *LeaseID) GetOwner() string

func (*LeaseID) GetProvider

func (m *LeaseID) GetProvider() string

func (LeaseID) GroupID

func (id LeaseID) GroupID() dtypes.GroupID

GroupID method returns GroupID details with specific lease details

func (*LeaseID) Marshal

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

func (*LeaseID) MarshalTo

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

func (*LeaseID) MarshalToSizedBuffer

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

func (LeaseID) OrderID

func (id LeaseID) OrderID() OrderID

OrderID method returns OrderID details with specific lease details

func (*LeaseID) ProtoMessage

func (*LeaseID) ProtoMessage()

func (*LeaseID) Reset

func (m *LeaseID) Reset()

func (*LeaseID) Size

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

func (LeaseID) String

func (id LeaseID) String() string

String method provides human readable representation of LeaseID.

func (*LeaseID) Unmarshal

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

func (LeaseID) Validate

func (id LeaseID) Validate() error

Validate calls the BidID's validator and returns any error.

func (*LeaseID) XXX_DiscardUnknown

func (m *LeaseID) XXX_DiscardUnknown()

func (*LeaseID) XXX_Marshal

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

func (*LeaseID) XXX_Merge

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

func (*LeaseID) XXX_Size

func (m *LeaseID) XXX_Size() int

func (*LeaseID) XXX_Unmarshal

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

type Lease_State

type Lease_State int32

State is an enum which refers to state of lease

const (
	// Prefix should start with 0 in enum. So declaring dummy state
	LeaseStateInvalid Lease_State = 0
	// LeaseActive denotes state for lease active
	LeaseActive Lease_State = 1
	// LeaseInsufficientFunds denotes state for lease insufficient_funds
	LeaseInsufficientFunds Lease_State = 2
	// LeaseClosed denotes state for lease closed
	LeaseClosed Lease_State = 3
)

func (Lease_State) EnumDescriptor

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

func (Lease_State) String

func (x Lease_State) String() string

type Leases

type Leases []Lease

Leases is a collection of Lease

func (Leases) String

func (l Leases) String() string

String implements the Stringer interface for a Leases object.

type MsgCloseBid

type MsgCloseBid struct {
	BidID BidID `protobuf:"bytes,1,opt,name=bid_id,json=bidId,proto3" json:"id" yaml:"id"`
}

MsgCloseBid defines an SDK message for closing bid

func (*MsgCloseBid) Descriptor

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

func (*MsgCloseBid) GetBidID

func (m *MsgCloseBid) GetBidID() BidID

func (*MsgCloseBid) Marshal

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

func (*MsgCloseBid) MarshalTo

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

func (*MsgCloseBid) MarshalToSizedBuffer

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

func (*MsgCloseBid) ProtoMessage

func (*MsgCloseBid) ProtoMessage()

func (*MsgCloseBid) Reset

func (m *MsgCloseBid) Reset()

func (*MsgCloseBid) Size

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

func (*MsgCloseBid) String

func (m *MsgCloseBid) String() string

func (*MsgCloseBid) Unmarshal

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

func (*MsgCloseBid) XXX_DiscardUnknown

func (m *MsgCloseBid) XXX_DiscardUnknown()

func (*MsgCloseBid) XXX_Marshal

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

func (*MsgCloseBid) XXX_Merge

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

func (*MsgCloseBid) XXX_Size

func (m *MsgCloseBid) XXX_Size() int

func (*MsgCloseBid) XXX_Unmarshal

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

type MsgCloseBidResponse

type MsgCloseBidResponse struct {
}

MsgCloseBidResponse defines the Msg/CloseBid response type.

func (*MsgCloseBidResponse) Descriptor

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

func (*MsgCloseBidResponse) Marshal

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

func (*MsgCloseBidResponse) MarshalTo

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

func (*MsgCloseBidResponse) MarshalToSizedBuffer

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

func (*MsgCloseBidResponse) ProtoMessage

func (*MsgCloseBidResponse) ProtoMessage()

func (*MsgCloseBidResponse) Reset

func (m *MsgCloseBidResponse) Reset()

func (*MsgCloseBidResponse) Size

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

func (*MsgCloseBidResponse) String

func (m *MsgCloseBidResponse) String() string

func (*MsgCloseBidResponse) Unmarshal

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

func (*MsgCloseBidResponse) XXX_DiscardUnknown

func (m *MsgCloseBidResponse) XXX_DiscardUnknown()

func (*MsgCloseBidResponse) XXX_Marshal

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

func (*MsgCloseBidResponse) XXX_Merge

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

func (*MsgCloseBidResponse) XXX_Size

func (m *MsgCloseBidResponse) XXX_Size() int

func (*MsgCloseBidResponse) XXX_Unmarshal

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

type MsgCloseLease

type MsgCloseLease struct {
	LeaseID LeaseID `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"id" yaml:"id"`
}

MsgCloseLease defines an SDK message for closing order

func (*MsgCloseLease) Descriptor

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

func (*MsgCloseLease) GetLeaseID

func (m *MsgCloseLease) GetLeaseID() LeaseID

func (*MsgCloseLease) Marshal

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

func (*MsgCloseLease) MarshalTo

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

func (*MsgCloseLease) MarshalToSizedBuffer

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

func (*MsgCloseLease) ProtoMessage

func (*MsgCloseLease) ProtoMessage()

func (*MsgCloseLease) Reset

func (m *MsgCloseLease) Reset()

func (*MsgCloseLease) Size

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

func (*MsgCloseLease) String

func (m *MsgCloseLease) String() string

func (*MsgCloseLease) Unmarshal

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

func (*MsgCloseLease) XXX_DiscardUnknown

func (m *MsgCloseLease) XXX_DiscardUnknown()

func (*MsgCloseLease) XXX_Marshal

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

func (*MsgCloseLease) XXX_Merge

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

func (*MsgCloseLease) XXX_Size

func (m *MsgCloseLease) XXX_Size() int

func (*MsgCloseLease) XXX_Unmarshal

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

type MsgCloseLeaseResponse

type MsgCloseLeaseResponse struct {
}

MsgCloseLeaseResponse defines the Msg/CloseLease response type.

func (*MsgCloseLeaseResponse) Descriptor

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

func (*MsgCloseLeaseResponse) Marshal

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

func (*MsgCloseLeaseResponse) MarshalTo

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

func (*MsgCloseLeaseResponse) MarshalToSizedBuffer

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

func (*MsgCloseLeaseResponse) ProtoMessage

func (*MsgCloseLeaseResponse) ProtoMessage()

func (*MsgCloseLeaseResponse) Reset

func (m *MsgCloseLeaseResponse) Reset()

func (*MsgCloseLeaseResponse) Size

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

func (*MsgCloseLeaseResponse) String

func (m *MsgCloseLeaseResponse) String() string

func (*MsgCloseLeaseResponse) Unmarshal

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

func (*MsgCloseLeaseResponse) XXX_DiscardUnknown

func (m *MsgCloseLeaseResponse) XXX_DiscardUnknown()

func (*MsgCloseLeaseResponse) XXX_Marshal

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

func (*MsgCloseLeaseResponse) XXX_Merge

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

func (*MsgCloseLeaseResponse) XXX_Size

func (m *MsgCloseLeaseResponse) XXX_Size() int

func (*MsgCloseLeaseResponse) XXX_Unmarshal

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

type MsgCreateBid

type MsgCreateBid struct {
	Order          OrderID        `protobuf:"bytes,1,opt,name=order,proto3" json:"order" yaml:"order"`
	Provider       string         `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider" yaml:"provider"`
	Price          types.DecCoin  `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
	Deposit        types.Coin     `protobuf:"bytes,4,opt,name=deposit,proto3" json:"deposit" yaml:"deposit"`
	ResourcesOffer ResourcesOffer `` /* 144-byte string literal not displayed */
}

MsgCreateBid defines an SDK message for creating Bid

func (*MsgCreateBid) Descriptor

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

func (*MsgCreateBid) GetDeposit

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

func (*MsgCreateBid) GetOrder

func (m *MsgCreateBid) GetOrder() OrderID

func (*MsgCreateBid) GetPrice

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

func (*MsgCreateBid) GetProvider

func (m *MsgCreateBid) GetProvider() string

func (*MsgCreateBid) GetResourcesOffer

func (m *MsgCreateBid) GetResourcesOffer() ResourcesOffer

func (*MsgCreateBid) Marshal

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

func (*MsgCreateBid) MarshalTo

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

func (*MsgCreateBid) MarshalToSizedBuffer

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

func (*MsgCreateBid) ProtoMessage

func (*MsgCreateBid) ProtoMessage()

func (*MsgCreateBid) Reset

func (m *MsgCreateBid) Reset()

func (*MsgCreateBid) Size

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

func (*MsgCreateBid) String

func (m *MsgCreateBid) String() string

func (*MsgCreateBid) Unmarshal

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

func (*MsgCreateBid) XXX_DiscardUnknown

func (m *MsgCreateBid) XXX_DiscardUnknown()

func (*MsgCreateBid) XXX_Marshal

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

func (*MsgCreateBid) XXX_Merge

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

func (*MsgCreateBid) XXX_Size

func (m *MsgCreateBid) XXX_Size() int

func (*MsgCreateBid) XXX_Unmarshal

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

type MsgCreateBidResponse

type MsgCreateBidResponse struct {
}

MsgCreateBidResponse defines the Msg/CreateBid response type.

func (*MsgCreateBidResponse) Descriptor

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

func (*MsgCreateBidResponse) Marshal

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

func (*MsgCreateBidResponse) MarshalTo

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

func (*MsgCreateBidResponse) MarshalToSizedBuffer

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

func (*MsgCreateBidResponse) ProtoMessage

func (*MsgCreateBidResponse) ProtoMessage()

func (*MsgCreateBidResponse) Reset

func (m *MsgCreateBidResponse) Reset()

func (*MsgCreateBidResponse) Size

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

func (*MsgCreateBidResponse) String

func (m *MsgCreateBidResponse) String() string

func (*MsgCreateBidResponse) Unmarshal

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

func (*MsgCreateBidResponse) XXX_DiscardUnknown

func (m *MsgCreateBidResponse) XXX_DiscardUnknown()

func (*MsgCreateBidResponse) XXX_Marshal

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

func (*MsgCreateBidResponse) XXX_Merge

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

func (*MsgCreateBidResponse) XXX_Size

func (m *MsgCreateBidResponse) XXX_Size() int

func (*MsgCreateBidResponse) XXX_Unmarshal

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

type MsgCreateLease

type MsgCreateLease struct {
	BidID BidID `protobuf:"bytes,1,opt,name=bid_id,json=bidId,proto3" json:"id" yaml:"id"`
}

MsgCreateLease is sent to create a lease

func (*MsgCreateLease) Descriptor

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

func (*MsgCreateLease) GetBidID

func (m *MsgCreateLease) GetBidID() BidID

func (*MsgCreateLease) Marshal

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

func (*MsgCreateLease) MarshalTo

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

func (*MsgCreateLease) MarshalToSizedBuffer

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

func (*MsgCreateLease) ProtoMessage

func (*MsgCreateLease) ProtoMessage()

func (*MsgCreateLease) Reset

func (m *MsgCreateLease) Reset()

func (*MsgCreateLease) Size

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

func (*MsgCreateLease) String

func (m *MsgCreateLease) String() string

func (*MsgCreateLease) Unmarshal

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

func (*MsgCreateLease) XXX_DiscardUnknown

func (m *MsgCreateLease) XXX_DiscardUnknown()

func (*MsgCreateLease) XXX_Marshal

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

func (*MsgCreateLease) XXX_Merge

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

func (*MsgCreateLease) XXX_Size

func (m *MsgCreateLease) XXX_Size() int

func (*MsgCreateLease) XXX_Unmarshal

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

type MsgCreateLeaseResponse

type MsgCreateLeaseResponse struct {
}

MsgCreateLeaseResponse is the response from creating a lease

func (*MsgCreateLeaseResponse) Descriptor

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

func (*MsgCreateLeaseResponse) Marshal

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

func (*MsgCreateLeaseResponse) MarshalTo

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

func (*MsgCreateLeaseResponse) MarshalToSizedBuffer

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

func (*MsgCreateLeaseResponse) ProtoMessage

func (*MsgCreateLeaseResponse) ProtoMessage()

func (*MsgCreateLeaseResponse) Reset

func (m *MsgCreateLeaseResponse) Reset()

func (*MsgCreateLeaseResponse) Size

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

func (*MsgCreateLeaseResponse) String

func (m *MsgCreateLeaseResponse) String() string

func (*MsgCreateLeaseResponse) Unmarshal

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

func (*MsgCreateLeaseResponse) XXX_DiscardUnknown

func (m *MsgCreateLeaseResponse) XXX_DiscardUnknown()

func (*MsgCreateLeaseResponse) XXX_Marshal

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

func (*MsgCreateLeaseResponse) XXX_Merge

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

func (*MsgCreateLeaseResponse) XXX_Size

func (m *MsgCreateLeaseResponse) XXX_Size() int

func (*MsgCreateLeaseResponse) XXX_Unmarshal

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

type MsgWithdrawLease

type MsgWithdrawLease struct {
	LeaseID LeaseID `protobuf:"bytes,1,opt,name=bid_id,json=bidId,proto3" json:"id" yaml:"id"`
}

MsgWithdrawLease defines an SDK message for closing bid

func (*MsgWithdrawLease) Descriptor

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

func (*MsgWithdrawLease) GetLeaseID

func (m *MsgWithdrawLease) GetLeaseID() LeaseID

func (*MsgWithdrawLease) Marshal

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

func (*MsgWithdrawLease) MarshalTo

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

func (*MsgWithdrawLease) MarshalToSizedBuffer

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

func (*MsgWithdrawLease) ProtoMessage

func (*MsgWithdrawLease) ProtoMessage()

func (*MsgWithdrawLease) Reset

func (m *MsgWithdrawLease) Reset()

func (*MsgWithdrawLease) Size

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

func (*MsgWithdrawLease) String

func (m *MsgWithdrawLease) String() string

func (*MsgWithdrawLease) Unmarshal

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

func (*MsgWithdrawLease) XXX_DiscardUnknown

func (m *MsgWithdrawLease) XXX_DiscardUnknown()

func (*MsgWithdrawLease) XXX_Marshal

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

func (*MsgWithdrawLease) XXX_Merge

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

func (*MsgWithdrawLease) XXX_Size

func (m *MsgWithdrawLease) XXX_Size() int

func (*MsgWithdrawLease) XXX_Unmarshal

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

type MsgWithdrawLeaseResponse

type MsgWithdrawLeaseResponse struct {
}

MsgWithdrawLeaseResponse defines the Msg/WithdrawLease response type.

func (*MsgWithdrawLeaseResponse) Descriptor

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

func (*MsgWithdrawLeaseResponse) Marshal

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

func (*MsgWithdrawLeaseResponse) MarshalTo

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

func (*MsgWithdrawLeaseResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawLeaseResponse) ProtoMessage

func (*MsgWithdrawLeaseResponse) ProtoMessage()

func (*MsgWithdrawLeaseResponse) Reset

func (m *MsgWithdrawLeaseResponse) Reset()

func (*MsgWithdrawLeaseResponse) Size

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

func (*MsgWithdrawLeaseResponse) String

func (m *MsgWithdrawLeaseResponse) String() string

func (*MsgWithdrawLeaseResponse) Unmarshal

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

func (*MsgWithdrawLeaseResponse) XXX_DiscardUnknown

func (m *MsgWithdrawLeaseResponse) XXX_DiscardUnknown()

func (*MsgWithdrawLeaseResponse) XXX_Marshal

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

func (*MsgWithdrawLeaseResponse) XXX_Merge

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

func (*MsgWithdrawLeaseResponse) XXX_Size

func (m *MsgWithdrawLeaseResponse) XXX_Size() int

func (*MsgWithdrawLeaseResponse) XXX_Unmarshal

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

type Order

type Order struct {
	OrderID   OrderID           `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"id" yaml:"id"`
	State     Order_State       `protobuf:"varint,2,opt,name=state,proto3,enum=akash.market.v1beta4.Order_State" json:"state" yaml:"state"`
	Spec      v1beta3.GroupSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec" yaml:"spec"`
	CreatedAt int64             `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}

Order stores orderID, state of order and other details

func (*Order) Descriptor

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

func (*Order) GetCreatedAt

func (m *Order) GetCreatedAt() int64

func (*Order) GetOrderID

func (m *Order) GetOrderID() OrderID

func (*Order) GetSpec

func (m *Order) GetSpec() v1beta3.GroupSpec

func (*Order) GetState

func (m *Order) GetState() Order_State

func (Order) ID

func (o Order) ID() OrderID

ID method returns OrderID details of specific order

func (*Order) Marshal

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

func (*Order) MarshalTo

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

func (*Order) MarshalToSizedBuffer

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

func (Order) MatchAttributes

func (o Order) MatchAttributes(attrs []types.Attribute) bool

MatchAttributes method compares provided attributes with specific order attributes

func (Order) MatchRequirements

func (o Order) MatchRequirements(prov []atypes.Provider) bool

MatchRequirements method compares provided attributes with specific order attributes

func (Order) MatchResourcesRequirements

func (o Order) MatchResourcesRequirements(attr types.Attributes) bool

MatchResourcesRequirements method compares provider capabilities with specific order resources attributes

func (Order) Price

func (o Order) Price() sdk.DecCoin

Price method returns price of specific order

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) Reset

func (m *Order) Reset()

func (*Order) Size

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

func (Order) String

func (o Order) String() string

String implements the Stringer interface for a Order object.

func (*Order) Unmarshal

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

func (Order) ValidateCanBid

func (o Order) ValidateCanBid() error

ValidateCanBid method validates whether order is open or not and returns error if not

func (Order) ValidateInactive

func (o Order) ValidateInactive() error

ValidateInactive method validates whether order is open or not and returns error if not

func (*Order) XXX_DiscardUnknown

func (m *Order) XXX_DiscardUnknown()

func (*Order) XXX_Marshal

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

func (*Order) XXX_Merge

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

func (*Order) XXX_Size

func (m *Order) XXX_Size() int

func (*Order) XXX_Unmarshal

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

type OrderFilters

type OrderFilters 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"`
	OSeq  uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
	State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state" yaml:"state"`
}

OrderFilters defines flags for order list filter

func (OrderFilters) Accept

func (filters OrderFilters) Accept(obj Order, stateVal Order_State) bool

Accept returns whether order filters valid or not

func (*OrderFilters) Descriptor

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

func (*OrderFilters) GetDSeq

func (m *OrderFilters) GetDSeq() uint64

func (*OrderFilters) GetGSeq

func (m *OrderFilters) GetGSeq() uint32

func (*OrderFilters) GetOSeq

func (m *OrderFilters) GetOSeq() uint32

func (*OrderFilters) GetOwner

func (m *OrderFilters) GetOwner() string

func (*OrderFilters) GetState

func (m *OrderFilters) GetState() string

func (*OrderFilters) Marshal

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

func (*OrderFilters) MarshalTo

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

func (*OrderFilters) MarshalToSizedBuffer

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

func (*OrderFilters) ProtoMessage

func (*OrderFilters) ProtoMessage()

func (*OrderFilters) Reset

func (m *OrderFilters) Reset()

func (*OrderFilters) Size

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

func (*OrderFilters) String

func (m *OrderFilters) String() string

func (*OrderFilters) Unmarshal

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

func (*OrderFilters) XXX_DiscardUnknown

func (m *OrderFilters) XXX_DiscardUnknown()

func (*OrderFilters) XXX_Marshal

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

func (*OrderFilters) XXX_Merge

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

func (*OrderFilters) XXX_Size

func (m *OrderFilters) XXX_Size() int

func (*OrderFilters) XXX_Unmarshal

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

type OrderID

type OrderID 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"`
	OSeq  uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"`
}

OrderID stores owner and all other seq numbers

func MakeOrderID

func MakeOrderID(id dtypes.GroupID, oseq uint32) OrderID

MakeOrderID returns OrderID instance with provided groupID details and oseq

func (*OrderID) Descriptor

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

func (OrderID) Equals

func (id OrderID) Equals(other OrderID) bool

Equals method compares specific order with provided order

func (*OrderID) GetDSeq

func (m *OrderID) GetDSeq() uint64

func (*OrderID) GetGSeq

func (m *OrderID) GetGSeq() uint32

func (*OrderID) GetOSeq

func (m *OrderID) GetOSeq() uint32

func (*OrderID) GetOwner

func (m *OrderID) GetOwner() string

func (OrderID) GroupID

func (id OrderID) GroupID() dtypes.GroupID

GroupID method returns groupID details for specific order

func (*OrderID) Marshal

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

func (*OrderID) MarshalTo

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

func (*OrderID) MarshalToSizedBuffer

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

func (*OrderID) ProtoMessage

func (*OrderID) ProtoMessage()

func (*OrderID) Reset

func (m *OrderID) Reset()

func (*OrderID) Size

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

func (OrderID) String

func (id OrderID) String() string

String provides stringer interface to save reflected formatting.

func (*OrderID) Unmarshal

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

func (OrderID) Validate

func (id OrderID) Validate() error

Validate method for OrderID and returns nil

func (*OrderID) XXX_DiscardUnknown

func (m *OrderID) XXX_DiscardUnknown()

func (*OrderID) XXX_Marshal

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

func (*OrderID) XXX_Merge

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

func (*OrderID) XXX_Size

func (m *OrderID) XXX_Size() int

func (*OrderID) XXX_Unmarshal

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

type Order_State

type Order_State int32

State is an enum which refers to state of order

const (
	// Prefix should start with 0 in enum. So declaring dummy state
	OrderStateInvalid Order_State = 0
	// OrderOpen denotes state for order open
	OrderOpen Order_State = 1
	// OrderMatched denotes state for order matched
	OrderActive Order_State = 2
	// OrderClosed denotes state for order lost
	OrderClosed Order_State = 3
)

func (Order_State) EnumDescriptor

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

func (Order_State) String

func (x Order_State) String() string

type Orders

type Orders []Order

Orders is a collection of Order

func (Orders) String

func (o Orders) String() string

String implements the Stringer interface for a Orders object.

type Params

type Params struct {
	BidMinDeposit types.Coin `protobuf:"bytes,1,opt,name=bid_min_deposit,json=bidMinDeposit,proto3" json:"bid_min_deposit" yaml:"bid_min_deposit"`
	OrderMaxBids  uint32     `protobuf:"varint,2,opt,name=order_max_bids,json=orderMaxBids,proto3" json:"order_max_bids" yaml:"order_max_bids"`
}

Params is the params for the x/market module

func DefaultParams

func DefaultParams() Params

func (*Params) Descriptor

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

func (*Params) GetBidMinDeposit

func (m *Params) GetBidMinDeposit() types.Coin

func (*Params) GetOrderMaxBids

func (m *Params) GetOrderMaxBids() uint32

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

type ResourceOffer struct {
	Resources v1beta3.Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources" yaml:"resources"`
	Count     uint32            `protobuf:"varint,2,opt,name=count,proto3" json:"count" yaml:"count"`
}

ResourceOffer describes resources that provider is offering for deployment

func (*ResourceOffer) Descriptor

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

func (*ResourceOffer) Dup

func (r *ResourceOffer) Dup() ResourceOffer

func (*ResourceOffer) Equal

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

func (*ResourceOffer) GetCount

func (m *ResourceOffer) GetCount() uint32

func (*ResourceOffer) GetResources

func (m *ResourceOffer) GetResources() v1beta3.Resources

func (*ResourceOffer) Marshal

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

func (*ResourceOffer) MarshalTo

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

func (*ResourceOffer) MarshalToSizedBuffer

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

func (*ResourceOffer) ProtoMessage

func (*ResourceOffer) ProtoMessage()

func (*ResourceOffer) Reset

func (m *ResourceOffer) Reset()

func (*ResourceOffer) Size

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

func (*ResourceOffer) String

func (m *ResourceOffer) String() string

func (*ResourceOffer) Unmarshal

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

func (*ResourceOffer) XXX_DiscardUnknown

func (m *ResourceOffer) XXX_DiscardUnknown()

func (*ResourceOffer) XXX_Marshal

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

func (*ResourceOffer) XXX_Merge

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

func (*ResourceOffer) XXX_Size

func (m *ResourceOffer) XXX_Size() int

func (*ResourceOffer) XXX_Unmarshal

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

type ResourcesOffer

type ResourcesOffer []ResourceOffer

func ResourceOfferFromRU

func ResourceOfferFromRU(ru dtypes.ResourceUnits) ResourcesOffer

func (ResourcesOffer) Dup

func (ResourcesOffer) Len

func (s ResourcesOffer) Len() int

func (ResourcesOffer) Less

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

func (ResourcesOffer) MatchGSpec

func (s ResourcesOffer) MatchGSpec(gspec dtypes.GroupSpec) bool

func (ResourcesOffer) Swap

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

Jump to

Keyboard shortcuts

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