Documentation ¶
Index ¶
- Constants
- func EncodeEntityId(shardNum int64, realmNum int64, entityNum int64) (int64, error)
- type AccountBalance
- type AddressBook
- type AddressBookEntry
- type AddressBookServiceEndpoint
- type CryptoTransfer
- type Entity
- type EntityId
- type ItemizedTransfer
- type ItemizedTransferSlice
- type RecordFile
- type StakingRewardTransfer
- type Transaction
Constants ¶
View Source
const ( ErrataTypeDelete = "DELETE" ErrataTypeInsert = "INSERT" )
View Source
const ( EntityTypeAccount = "ACCOUNT" EntityTypeFile = "FILE" EntityTypeSchedule = "SCHEDULE" EntityTypeToken = "TOKEN" EntityTypeTopic = "TOPIC" )
View Source
const ( TransactionTypeCryptoCreateAccount int16 = 11 TransactionTypeCryptoTransfer int16 = 14 TransactionTypeTokenCreation int16 = 29 TransactionTypeTokenDeletion int16 = 35 TransactionTypeTokenUpdate int16 = 36 TransactionTypeTokenMint int16 = 37 TransactionTypeTokenDissociate int16 = 41 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountBalance ¶
type AccountBalance struct { AccountId EntityId `gorm:"primaryKey"` Balance int64 ConsensusTimestamp int64 `gorm:"primaryKey"` }
func (AccountBalance) TableName ¶
func (AccountBalance) TableName() string
type AddressBook ¶
type AddressBook struct { StartConsensusTimestamp int64 `gorm:"primaryKey"` EndConsensusTimestamp *int64 FileId EntityId NodeCount int FileData []byte }
func (AddressBook) TableName ¶
func (AddressBook) TableName() string
type AddressBookEntry ¶
type AddressBookEntry struct { ConsensusTimestamp int64 `gorm:"primaryKey"` Memo string PublicKey string NodeId int64 `gorm:"primaryKey"` NodeAccountId EntityId NodeCertHash []byte Description string Stake int64 }
func (AddressBookEntry) TableName ¶
func (AddressBookEntry) TableName() string
type AddressBookServiceEndpoint ¶
type AddressBookServiceEndpoint struct { ConsensusTimestamp int64 `gorm:"primaryKey"` IpAddressV4 string `gorm:"primaryKey"` NodeId int64 `gorm:"primaryKey"` Port int32 `gorm:"primaryKey"` }
func (AddressBookServiceEndpoint) TableName ¶
func (AddressBookServiceEndpoint) TableName() string
type CryptoTransfer ¶
type CryptoTransfer struct { Amount int64 ConsensusTimestamp int64 EntityId EntityId Errata *string PayerAccountId EntityId }
func (CryptoTransfer) TableName ¶
func (CryptoTransfer) TableName() string
type Entity ¶
type Entity struct { Alias []byte AutoRenewAccountId *EntityId AutoRenewPeriod *int64 CreatedTimestamp *int64 Deleted *bool ExpirationTimestamp *int64 Id EntityId Key []byte MaxAutomaticTokenAssociations *int32 Memo string Num int64 PublicKey *string ProxyAccountId *EntityId Realm int64 ReceiverSigRequired *bool Shard int64 SubmitKey []byte TimestampRange pgtype.Int8range Type string }
func (Entity) GetModifiedTimestamp ¶
func (Entity) HistoryTableName ¶
type EntityId ¶
EntityId returns the decoded data from the DB ID
func DecodeEntityId ¶
DecodeEntityId - decodes the Entity DB id into EntityId struct
func EntityIdFromString ¶
func EntityIdOf ¶
func MustDecodeEntityId ¶
func (EntityId) MarshalJSON ¶
func (*EntityId) UnmarshalJSON ¶
type ItemizedTransfer ¶
type ItemizedTransferSlice ¶
type ItemizedTransferSlice []ItemizedTransfer
func (*ItemizedTransferSlice) Scan ¶
func (i *ItemizedTransferSlice) Scan(value interface{}) error
type RecordFile ¶
type RecordFile struct { ConsensusStart int64 ConsensusEnd int64 `gorm:"primaryKey"` Count int64 DigestAlgorithm int FileHash string HapiVersionMajor int HapiVersionMinor int HapiVersionPatch int Hash string Index int64 LoadEnd int64 LoadStart int64 Name string NodeId int64 PrevHash string Version int }
func (RecordFile) TableName ¶
func (RecordFile) TableName() string
TableName returns record file table name
type StakingRewardTransfer ¶
type StakingRewardTransfer struct { AccountId EntityId `json:"account_id"` Amount int64 ConsensusTimestamp int64 `json:"consensus_timestamp"` PayerAccountId EntityId `json:"payer_account_id"` }
func (StakingRewardTransfer) TableName ¶
func (StakingRewardTransfer) TableName() string
type Transaction ¶
type Transaction struct { ConsensusTimestamp int64 `gorm:"primaryKey"` ChargedTxFee int64 EntityId *EntityId Errata *string InitialBalance int64 ItemizedTransfer ItemizedTransferSlice `gorm:"type:jsonb"` MaxFee int64 Memo []byte NodeAccountId *EntityId Nonce int32 ParentConsensusTimestamp int64 PayerAccountId EntityId Result int16 Scheduled bool TransactionBytes []byte TransactionHash []byte Type int16 ValidDurationSeconds int64 ValidStartNs int64 }
func (Transaction) TableName ¶
func (Transaction) TableName() string
Click to show internal directories.
Click to hide internal directories.