model

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package model implements the data model for use in the internal data store.

Index

Constants

This section is empty.

Variables

View Source
var File_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Block

type Block struct {
	Timestamp    uint32         `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) Format

func (b *Block) Format(f fmt.State, verb rune)

func (*Block) GetTimestamp

func (x *Block) GetTimestamp() uint32

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*Transaction

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

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

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type ConstructOptions

type ConstructOptions struct {
	Amount   []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Contract []byte `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	From     []byte `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	GasLimit uint64 `protobuf:"varint,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	GasPrice uint64 `protobuf:"varint,5,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	Nonce    uint32 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Payer    []byte `protobuf:"bytes,7,opt,name=payer,proto3" json:"payer,omitempty"`
	To       []byte `protobuf:"bytes,8,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*ConstructOptions) Descriptor deprecated

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

Deprecated: Use ConstructOptions.ProtoReflect.Descriptor instead.

func (*ConstructOptions) Format

func (c *ConstructOptions) Format(f fmt.State, verb rune)

func (*ConstructOptions) GetAmount

func (x *ConstructOptions) GetAmount() []byte

func (*ConstructOptions) GetContract

func (x *ConstructOptions) GetContract() []byte

func (*ConstructOptions) GetFrom

func (x *ConstructOptions) GetFrom() []byte

func (*ConstructOptions) GetGasLimit

func (x *ConstructOptions) GetGasLimit() uint64

func (*ConstructOptions) GetGasPrice

func (x *ConstructOptions) GetGasPrice() uint64

func (*ConstructOptions) GetNonce

func (x *ConstructOptions) GetNonce() uint32

func (*ConstructOptions) GetPayer

func (x *ConstructOptions) GetPayer() []byte

func (*ConstructOptions) GetTo

func (x *ConstructOptions) GetTo() []byte

func (*ConstructOptions) ProtoMessage

func (*ConstructOptions) ProtoMessage()

func (*ConstructOptions) ProtoReflect

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

func (*ConstructOptions) Reset

func (x *ConstructOptions) Reset()

func (*ConstructOptions) String

func (x *ConstructOptions) String() string

type Transaction

type Transaction struct {
	Failed    bool        `protobuf:"varint,1,opt,name=failed,proto3" json:"failed,omitempty"`
	Hash      []byte      `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Transfers []*Transfer `protobuf:"bytes,3,rep,name=transfers,proto3" json:"transfers,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) Format

func (t *Transaction) Format(f fmt.State, verb rune)

func (*Transaction) GetFailed

func (x *Transaction) GetFailed() bool

func (*Transaction) GetHash

func (x *Transaction) GetHash() []byte

func (*Transaction) GetTransfers

func (x *Transaction) GetTransfers() []*Transfer

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type Transfer

type Transfer struct {
	Amount   []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Contract []byte `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	From     []byte `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	IsGas    bool   `protobuf:"varint,4,opt,name=is_gas,json=isGas,proto3" json:"is_gas,omitempty"`
	To       []byte `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Transfer) Descriptor deprecated

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) Format

func (t *Transfer) Format(f fmt.State, verb rune)

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() []byte

func (*Transfer) GetContract

func (x *Transfer) GetContract() []byte

func (*Transfer) GetFrom

func (x *Transfer) GetFrom() []byte

func (*Transfer) GetIsGas

func (x *Transfer) GetIsGas() bool

func (*Transfer) GetTo

func (x *Transfer) GetTo() []byte

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

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

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

Jump to

Keyboard shortcuts

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