v1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDeposit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDeposit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDeposit = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ErrInvalidDepositor indicates an invalid chain parameter
	ErrInvalidDepositor = cerrors.Register(attr.ModuleName, errInvalidDepositor, "invalid depositor")
	// ErrInvalidDepositSource indicates invalid deposit source for the deployment
	ErrInvalidDepositSource = cerrors.Register(attr.ModuleName, errInvalidDepositSource, "invalid deposit source")
)
View Source
var Source_name = map[int32]string{
	0: "invalid",
	1: "balance",
	2: "grant",
}
View Source
var Source_value = map[string]int32{
	"invalid": 0,
	"balance": 1,
	"grant":   2,
}

Functions

This section is empty.

Types

type Deposit

type Deposit struct {
	// Deposit specifies the amount of coins to include in the deployment's first deposit.
	Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount" yaml:"amount"`
	// Sources is the set of deposit sources, each entry must be unique.
	Sources Sources `` /* 151-byte string literal not displayed */
}

Deposit is a data type used by MsgCreateDeployment, MsgDepositDeployment and MsgCreateBid to indicate source of the deposit.

func (*Deposit) Descriptor

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

func (*Deposit) GetAmount

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

func (*Deposit) GetSources

func (m *Deposit) GetSources() Sources

func (*Deposit) Marshal

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

func (*Deposit) MarshalTo

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

func (*Deposit) MarshalToSizedBuffer

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

func (*Deposit) ProtoMessage

func (*Deposit) ProtoMessage()

func (*Deposit) Reset

func (m *Deposit) Reset()

func (*Deposit) Size

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

func (*Deposit) String

func (m *Deposit) String() string

func (*Deposit) Unmarshal

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

func (*Deposit) Validate

func (m *Deposit) Validate() error

func (*Deposit) XXX_DiscardUnknown

func (m *Deposit) XXX_DiscardUnknown()

func (*Deposit) XXX_Marshal

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

func (*Deposit) XXX_Merge

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

func (*Deposit) XXX_Size

func (m *Deposit) XXX_Size() int

func (*Deposit) XXX_Unmarshal

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

type HasDeposit

type HasDeposit interface {
	GetDeposit() Deposit
}

type Source

type Source int32

Source is an enum which lists source of funds for deployment deposit.

const (
	// Prefix should start with 0 in enum. So declaring dummy state.
	SourceInvalid Source = 0
	// DepositSourceBalance denotes account balance as source of funds
	SourceBalance Source = 1
	// DepositSourceGrant denotes authz grants as source of funds
	SourceGrant Source = 2
)

func (Source) EnumDescriptor

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

func (Source) String

func (x Source) String() string

type Sources

type Sources []Source

Jump to

Keyboard shortcuts

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