Documentation
¶
Index ¶
- Variables
- type Deposit
- func (*Deposit) Descriptor() ([]byte, []int)
- func (m *Deposit) GetAmount() types.Coin
- func (m *Deposit) GetSources() Sources
- func (m *Deposit) Marshal() (dAtA []byte, err error)
- func (m *Deposit) MarshalTo(dAtA []byte) (int, error)
- func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Deposit) ProtoMessage()
- func (m *Deposit) Reset()
- func (m *Deposit) Size() (n int)
- func (m *Deposit) String() string
- func (m *Deposit) Unmarshal(dAtA []byte) error
- func (m *Deposit) Validate() error
- func (m *Deposit) XXX_DiscardUnknown()
- func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Deposit) XXX_Merge(src proto.Message)
- func (m *Deposit) XXX_Size() int
- func (m *Deposit) XXX_Unmarshal(b []byte) error
- type HasDeposit
- type Source
- type Sources
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) GetSources ¶
func (*Deposit) MarshalToSizedBuffer ¶
func (*Deposit) ProtoMessage ¶
func (*Deposit) ProtoMessage()
func (*Deposit) XXX_DiscardUnknown ¶
func (m *Deposit) XXX_DiscardUnknown()
func (*Deposit) XXX_Marshal ¶
func (*Deposit) XXX_Unmarshal ¶
type HasDeposit ¶
type HasDeposit interface {
GetDeposit() Deposit
}
type Source ¶
type Source int32
Source is an enum which lists source of funds for deployment deposit.
func (Source) EnumDescriptor ¶
Click to show internal directories.
Click to hide internal directories.