Documentation ¶
Overview ¶
Package model implements the data model for use in the internal data store.
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (b *Block) Format(f fmt.State, verb rune)
- func (x *Block) GetTimestamp() uint32
- func (x *Block) GetTransactions() []*Transaction
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type ConstructOptions
- func (*ConstructOptions) Descriptor() ([]byte, []int)deprecated
- func (c *ConstructOptions) Format(f fmt.State, verb rune)
- func (x *ConstructOptions) GetAmount() []byte
- func (x *ConstructOptions) GetContract() []byte
- func (x *ConstructOptions) GetFrom() []byte
- func (x *ConstructOptions) GetGasLimit() uint64
- func (x *ConstructOptions) GetGasPrice() uint64
- func (x *ConstructOptions) GetNonce() uint32
- func (x *ConstructOptions) GetPayer() []byte
- func (x *ConstructOptions) GetTo() []byte
- func (*ConstructOptions) ProtoMessage()
- func (x *ConstructOptions) ProtoReflect() protoreflect.Message
- func (x *ConstructOptions) Reset()
- func (x *ConstructOptions) String() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (t *Transaction) Format(f fmt.State, verb rune)
- func (x *Transaction) GetFailed() bool
- func (x *Transaction) GetHash() []byte
- func (x *Transaction) GetTransfers() []*Transfer
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (t *Transfer) Format(f fmt.State, verb rune)
- func (x *Transfer) GetAmount() []byte
- func (x *Transfer) GetContract() []byte
- func (x *Transfer) GetFrom() []byte
- func (x *Transfer) GetIsGas() bool
- func (x *Transfer) GetTo() []byte
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
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) GetTimestamp ¶
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*Transaction
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
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) 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) 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) GetContract ¶
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.