Documentation ¶
Index ¶
- Variables
- type Attribute
- type BigInt
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetHash() string
- func (x *Block) GetHeight() uint64
- func (x *Block) GetPrevHash() string
- func (x *Block) GetTimestamp() uint64
- func (x *Block) GetTransactions() []*Transaction
- func (b *Block) ID() string
- func (b *Block) Number() uint64
- func (b *Block) PreviousID() string
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- func (b *Block) Time() time.Time
- type Event
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetAmount() *BigInt
- func (x *Transaction) GetEvents() []*Event
- func (x *Transaction) GetFee() *BigInt
- func (x *Transaction) GetHash() string
- func (x *Transaction) GetReceiver() string
- func (x *Transaction) GetSender() string
- func (x *Transaction) GetSuccess() bool
- func (x *Transaction) GetType() string
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_sf_cronos_type_v1_type_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Attribute) Descriptor
deprecated
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
type BigInt ¶
type BigInt struct { Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"` // contains filtered or unexported fields }
func (*BigInt) Descriptor
deprecated
func (*BigInt) ProtoMessage ¶
func (*BigInt) ProtoMessage()
func (*BigInt) ProtoReflect ¶
func (x *BigInt) ProtoReflect() protoreflect.Message
type Block ¶
type Block struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` PrevHash string `protobuf:"bytes,3,opt,name=prevHash,proto3" json:"prevHash,omitempty"` Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Transactions []*Transaction `protobuf:"bytes,5,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
func (*Block) Descriptor
deprecated
func (*Block) GetPrevHash ¶
func (*Block) GetTimestamp ¶
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*Transaction
func (*Block) PreviousID ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type Event ¶
type Event struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Attributes []*Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetAttributes ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount *BigInt `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` Fee *BigInt `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"` Success bool `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"` Events []*Event `protobuf:"bytes,8,rep,name=events,proto3" json:"events,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetAmount ¶
func (x *Transaction) GetAmount() *BigInt
func (*Transaction) GetEvents ¶
func (x *Transaction) GetEvents() []*Event
func (*Transaction) GetFee ¶
func (x *Transaction) GetFee() *BigInt
func (*Transaction) GetHash ¶
func (x *Transaction) GetHash() string
func (*Transaction) GetReceiver ¶
func (x *Transaction) GetReceiver() string
func (*Transaction) GetSender ¶
func (x *Transaction) GetSender() string
func (*Transaction) GetSuccess ¶
func (x *Transaction) GetSuccess() bool
func (*Transaction) GetType ¶
func (x *Transaction) GetType() string
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
Click to show internal directories.
Click to hide internal directories.