Documentation ¶
Index ¶
- Variables
- func CompareAccountId(first interface{}, second interface{}) int
- func CompareAccountName(first interface{}, second interface{}) int
- type AccountHistoryObject
- type AccountObject
- type AccountSequenceObject
- type ActionHistoryObject
- type BlockSummaryObject
- type DynamicGlobalPropertyObject
- type GeneratedTransaction
- type GeneratedTransactionObject
- type GlobalPropertyObject
- type Idx128Object
- type Idx256Object
- type Idx64Object
- type IdxDoubleObject
- type IdxLongDoubleObject
- type KeyValueObject
- type Object
- type PermissionLinkObject
- type PermissionObject
- type PermissionUsageObject
- type ProducerObject
- type PublicKeyHistoryObject
- type ResourceLimitsConfigObject
- type ResourceLimitsObject
- type ResourceLimitsStateObject
- type ResourceUsageObject
- type ReversibleBlockObject
- type TableIdObject
- type TransactionObject
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountObjectTypes = reflect.TypeOf(AccountObject{})
for treemap
Functions ¶
func CompareAccountId ¶
func CompareAccountId(first interface{}, second interface{}) int
func CompareAccountName ¶
func CompareAccountName(first interface{}, second interface{}) int
Types ¶
type AccountHistoryObject ¶
type AccountObject ¶
type AccountObject struct { ID common.IdType `multiIndex:"id,increment"` Name common.AccountName `multiIndex:"byName,orderedUnique"` VmType uint8 //c++ default value 0 VmVersion uint8 //c++ default value 0 Privileged bool //c++ default value false LastCodeUpdate common.TimePoint CodeVersion crypto.Sha256 CreationDate types.BlockTimeStamp Code common.HexBytes Abi common.HexBytes }
func (*AccountObject) GetAbi ¶
func (a *AccountObject) GetAbi() *abi_serializer.AbiDef
func (*AccountObject) SetAbi ¶
func (a *AccountObject) SetAbi(ad *abi_serializer.AbiDef)
type AccountSequenceObject ¶
type ActionHistoryObject ¶
type ActionHistoryObject struct { ID common.IdType `multiIndex:"id,increment"` ActionSequenceNum uint64 `multiIndex:"byActionSequenceNum,orderedUnique:byTrxId,orderedUnique"` PackedActionTrace common.HexBytes BlockNum uint32 BlockTime types.BlockTimeStamp TrxId common.TransactionIdType `multiIndex:"byTrxId,orderedUnique"` }
type BlockSummaryObject ¶
type BlockSummaryObject struct { Id common.IdType `multiIndex:"id,increment"` BlockId common.BlockIdType }
type GeneratedTransaction ¶
type GeneratedTransaction struct { TrxId common.TransactionIdType Sender common.AccountName SenderId eos_math.Uint128 Payer common.AccountName DelayUntil common.TimePoint Expiration common.TimePoint Published common.TimePoint PackedTrx []byte }
func GeneratedTransactions ¶
func GeneratedTransactions(gto *GeneratedTransactionObject) *GeneratedTransaction
type GeneratedTransactionObject ¶
type GeneratedTransactionObject struct { Id common.IdType `multiIndex:"id,increment,byExpiration,byDelay"` TrxId common.TransactionIdType `multiIndex:"byTrxId,orderedUnique"` Sender common.AccountName `multiIndex:"bySenderId,orderedUnique"` SenderId eos_math.Uint128 `multiIndex:"bySenderId,orderedUnique"` Payer common.AccountName DelayUntil common.TimePoint `multiIndex:"byDelay,orderedUnique"` Expiration common.TimePoint `multiIndex:"byExpiration,orderedUnique"` Published common.TimePoint PackedTrx common.HexBytes //c++ shared_string }
func (*GeneratedTransactionObject) Set ¶
func (g *GeneratedTransactionObject) Set(trx *types.Transaction) uint32
type GlobalPropertyObject ¶
type GlobalPropertyObject struct { ID common.IdType `multiIndex:"id,increment"` ProposedScheduleBlockNum uint32 ProposedSchedule types.SharedProducerScheduleType Configuration types.ChainConfig }
func (GlobalPropertyObject) IsEmpty ¶
func (g GlobalPropertyObject) IsEmpty() bool
type Idx128Object ¶
type Idx128Object struct { ID common.IdType `multiIndex:"id,increment"` TId common.IdType `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` SecondaryKey eos_math.Uint128 `multiIndex:"bySecondary,orderedUnique,less"` PrimaryKey uint64 `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` Payer common.AccountName }
type Idx256Object ¶
type Idx256Object struct { ID common.IdType `multiIndex:"id,increment"` TId common.IdType `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` SecondaryKey eos_math.Uint256 `multiIndex:"bySecondary,orderedUnique,less"` PrimaryKey uint64 `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` Payer common.AccountName }
type Idx64Object ¶
type Idx64Object struct { ID common.IdType `multiIndex:"id,increment"` TId common.IdType `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` SecondaryKey uint64 `multiIndex:"bySecondary,orderedUnique,less"` PrimaryKey uint64 `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` Payer common.AccountName }
type IdxDoubleObject ¶
type IdxDoubleObject struct { ID common.IdType `multiIndex:"id,increment"` TId common.IdType `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` SecondaryKey eos_math.Float64 `multiIndex:"bySecondary,orderedUnique,less"` PrimaryKey uint64 `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` Payer common.AccountName }
type IdxLongDoubleObject ¶
type IdxLongDoubleObject struct { ID common.IdType `multiIndex:"id,increment"` TId common.IdType `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` SecondaryKey eos_math.Float128 `multiIndex:"bySecondary,orderedUnique,less"` PrimaryKey uint64 `multiIndex:"byPrimary,orderedUnique,less:bySecondary,orderedUnique,less"` Payer common.AccountName }
type KeyValueObject ¶
type PermissionLinkObject ¶
type PermissionLinkObject struct { ID common.IdType `multiIndex:"id,increment"` Account common.AccountName `multiIndex:"byActionName,orderedUnique:byPermissionName,orderedUnique"` Code common.AccountName `multiIndex:"byActionName,orderedUnique:byPermissionName,orderedUnique"` MessageType common.ActionName `multiIndex:"byActionName,orderedUnique:byPermissionName,orderedUnique"` RequiredPermission common.PermissionName `multiIndex:"byPermissionName,orderedUnique"` }
func (PermissionLinkObject) IsEmpty ¶
func (p PermissionLinkObject) IsEmpty() bool
type PermissionObject ¶
type PermissionObject struct { Parent common.IdType `multiIndex:"byParent,orderedUnique"` ID common.IdType `multiIndex:"id,increment,byParent,byName"` UsageId common.IdType Owner common.AccountName `multiIndex:"byOwner,orderedUnique"` Name common.PermissionName `multiIndex:"byOwner,orderedUnique:byName,orderedUnique"` LastUpdated common.TimePoint Auth types.SharedAuthority }
func (*PermissionObject) Satisfies ¶
func (po *PermissionObject) Satisfies(other PermissionObject, PermissionIndex *database.MultiIndex) bool
type PermissionUsageObject ¶
type ProducerObject ¶
type ProducerObject struct { ID common.IdType `multiIndex:"id,increment,byKey"` Owner common.AccountName `multiIndex:"byOwner,orderedUnique"` LastAslot uint64 //c++ default value 0 SigningKey ecc.PublicKey `multiIndex:"byKey,orderedUnique"` TotalMissed int64 //c++ default value 0 LastConfirmedBlockNum uint32 }
type PublicKeyHistoryObject ¶
type PublicKeyHistoryObject struct { ID common.IdType `multiIndex:"id,increment,byPubKey,byAccountPermission"` PublicKey ecc.PublicKey `multiIndex:"byPubKey,orderedUnique"` //c++ publicKey+id unique Name common.AccountName `multiIndex:"byAccountPermission,orderedUnique"` //c++ ByAccountPermission+id unique Permission common.PermissionName `multiIndex:"byAccountPermission,orderedUnique"` //c++ ByAccountPermission+id unique }
type ResourceLimitsConfigObject ¶
type ResourceLimitsConfigObject struct { ID common.IdType `multiIndex:"id,increment"` CpuLimitParameters types.ElasticLimitParameters NetLimitParameters types.ElasticLimitParameters AccountCpuUsageAverageWindow uint32 AccountNetUsageAverageWindow uint32 }
var DefaultResourceLimitsConfigObject ResourceLimitsConfigObject
func NewResourceLimitsConfigObject ¶
func NewResourceLimitsConfigObject() ResourceLimitsConfigObject
type ResourceLimitsObject ¶
type ResourceLimitsObject struct { ID common.IdType `multiIndex:"id,increment"` Pending bool `multiIndex:"byOwner,orderedUnique"` Owner common.AccountName `multiIndex:"byOwner,orderedUnique"` NetWeight int64 CpuWeight int64 RamBytes int64 }
func NewResourceLimitsObject ¶
func NewResourceLimitsObject() ResourceLimitsObject
type ResourceLimitsStateObject ¶
type ResourceLimitsStateObject struct { ID common.IdType `multiIndex:"id,increment"` AverageBlockNetUsage types.UsageAccumulator AverageBlockCpuUsage types.UsageAccumulator PendingNetUsage uint64 PendingCpuUsage uint64 TotalNetWeight uint64 TotalCpuWeight uint64 TotalRamBytes uint64 VirtualNetLimit uint64 VirtualCpuLimit uint64 }
var DefaultResourceLimitsStateObject ResourceLimitsStateObject
func (*ResourceLimitsStateObject) UpdateVirtualCpuLimit ¶
func (state *ResourceLimitsStateObject) UpdateVirtualCpuLimit(cfg ResourceLimitsConfigObject)
func (*ResourceLimitsStateObject) UpdateVirtualNetLimit ¶
func (state *ResourceLimitsStateObject) UpdateVirtualNetLimit(cfg ResourceLimitsConfigObject)
type ResourceUsageObject ¶
type ResourceUsageObject struct { ID common.IdType `multiIndex:"id,increment"` Owner common.AccountName `multiIndex:"byOwner,orderedUnique"` NetUsage types.UsageAccumulator CpuUsage types.UsageAccumulator RamUsage uint64 }
type ReversibleBlockObject ¶
type ReversibleBlockObject struct { ID common.IdType `multiIndex:"id,increment"` BlockNum uint32 `multiIndex:"byNum,orderedUnique"` PackedBlock common.HexBytes //TODO c++ shared_string }
func (*ReversibleBlockObject) GetBlock ¶
func (rbo *ReversibleBlockObject) GetBlock() *types.SignedBlock
func (ReversibleBlockObject) IsEmpty ¶
func (rbo ReversibleBlockObject) IsEmpty() bool
func (*ReversibleBlockObject) SetBlock ¶
func (rbo *ReversibleBlockObject) SetBlock(b *types.SignedBlock)
type TableIdObject ¶
type TableIdObject struct { ID common.IdType `multiIndex:"id,increment"` Code common.AccountName `multiIndex:"byCodeScopeTable,orderedUnique,less"` Scope common.ScopeName `multiIndex:"byCodeScopeTable,orderedUnique,less"` Table common.TableName `multiIndex:"byCodeScopeTable,orderedUnique,less"` Payer common.AccountName Count uint32 }
type TransactionObject ¶
type TransactionObject struct { ID common.IdType `multiIndex:"id,increment,byExpiration"` Expiration common.TimePointSec `multiIndex:"byExpiration,orderedUnique"` TrxID common.TransactionIdType `multiIndex:"byTrxId,orderedUnique"` }
Source Files ¶
- account_history_object.go
- account_object.go
- block_summary_object.go
- contract_table_objects.go
- generated_transaction_object.go
- global_property_object.go
- permission_link_object.go
- permission_object.go
- permission_usage_object.go
- producer_object.go
- public_key_history_object.go
- resource_limits_config_object.go
- resource_limits_object.go
- resource_limits_state_object.go
- resource_usage_object.go
- reversible_block_object.go
- transaction_object.go
Click to show internal directories.
Click to hide internal directories.