accountpb

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetBalance

func (x *Account) GetBalance() string

func (*Account) GetCodeHash

func (x *Account) GetCodeHash() []byte

func (*Account) GetIsCandidate

func (x *Account) GetIsCandidate() bool

func (*Account) GetNonce

func (x *Account) GetNonce() uint64

func (*Account) GetRoot

func (x *Account) GetRoot() []byte

func (*Account) GetType added in v1.9.0

func (x *Account) GetType() AccountType

func (*Account) GetVotingWeight

func (x *Account) GetVotingWeight() []byte

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect added in v1.1.2

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

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

Jump to

Keyboard shortcuts

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