Documentation ¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetBalance() string
- func (x *Account) GetCodeHash() []byte
- func (x *Account) GetIsCandidate() bool
- func (x *Account) GetNonce() uint64
- func (x *Account) GetRoot() []byte
- func (x *Account) GetType() AccountType
- func (x *Account) GetVotingWeight() []byte
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountType
- func (AccountType) Descriptor() protoreflect.EnumDescriptor
- func (x AccountType) Enum() *AccountType
- func (AccountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountType) Number() protoreflect.EnumNumber
- func (x AccountType) String() string
- func (AccountType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccountType_name = map[int32]string{ 0: "DEFAULT", 1: "ZERO_NONCE", } AccountType_value = map[string]int32{ "DEFAULT": 0, "ZERO_NONCE": 1, } )
Enum value maps for AccountType.
View Source
var File_account_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { // used by state-based model Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` Root []byte `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` CodeHash []byte `protobuf:"bytes,4,opt,name=codeHash,proto3" json:"codeHash,omitempty"` IsCandidate bool `protobuf:"varint,5,opt,name=isCandidate,proto3" json:"isCandidate,omitempty"` VotingWeight []byte `protobuf:"bytes,6,opt,name=votingWeight,proto3" json:"votingWeight,omitempty"` Type AccountType `protobuf:"varint,7,opt,name=type,proto3,enum=accountpb.AccountType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetBalance ¶
func (*Account) GetCodeHash ¶
func (*Account) GetIsCandidate ¶
func (*Account) GetType ¶ added in v1.9.0
func (x *Account) GetType() AccountType
func (*Account) GetVotingWeight ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶ added in v1.1.2
func (x *Account) ProtoReflect() protoreflect.Message
type AccountType ¶ added in v1.9.0
type AccountType int32
const ( AccountType_DEFAULT AccountType = 0 AccountType_ZERO_NONCE AccountType = 1 )
func (AccountType) Descriptor ¶ added in v1.9.0
func (AccountType) Descriptor() protoreflect.EnumDescriptor
func (AccountType) Enum ¶ added in v1.9.0
func (x AccountType) Enum() *AccountType
func (AccountType) EnumDescriptor
deprecated
added in
v1.9.0
func (AccountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountType.Descriptor instead.
func (AccountType) Number ¶ added in v1.9.0
func (x AccountType) Number() protoreflect.EnumNumber
func (AccountType) String ¶ added in v1.9.0
func (x AccountType) String() string
func (AccountType) Type ¶ added in v1.9.0
func (AccountType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.