Documentation ¶
Index ¶
- type BillingCollectDataPerAddress
- type BillingRecordBase
- type BillingRecordCollected
- type BillingRecordDeposited
- type BillingRecordWithdrawal
- type Checkpoint
- type CheckpointExporter
- type CheckpointImporter
- type CheckpointTransformer
- type DistributeRewardsData
- type Epoch
- type EpochItem
- type EpochTrigger
- type NodeRequestRecord
- type UsageByDate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingRecordBase ¶
type BillingRecordBase struct { CreatedAt time.Time UpdatedAt time.Time TxHash common.Hash Index uint ChainID uint64 BlockTimestamp time.Time BlockNumber *big.Int User common.Address Amount *big.Int }
func BillingRecordParseBase ¶
type BillingRecordCollected ¶
type BillingRecordCollected struct {
BillingRecordBase
}
type BillingRecordDeposited ¶
type BillingRecordDeposited struct {
BillingRecordBase
}
type BillingRecordWithdrawal ¶
type BillingRecordWithdrawal struct { BillingRecordBase Fee *big.Int }
type Checkpoint ¶
type CheckpointExporter ¶
type CheckpointExporter interface {
Export() (*Checkpoint, error)
}
type CheckpointImporter ¶
type CheckpointImporter interface {
Import(checkpoint Checkpoint) error
}
type CheckpointTransformer ¶
type CheckpointTransformer interface { CheckpointImporter CheckpointExporter }
type DistributeRewardsData ¶
type Epoch ¶
type Epoch struct { ID uint64 `json:"id"` StartTimestamp int64 `json:"startTimestamp"` EndTimestamp int64 `json:"endTimestamp"` TransactionHash common.Hash `json:"transactionHash"` TransactionIndex uint `json:"transactionIndex"` BlockHash common.Hash `json:"blockHash"` BlockNumber *big.Int `json:"blockNumber"` BlockTimestamp int64 `json:"blockTimestamp"` TotalOperationRewards string `json:"totalOperationRewards"` TotalStakingRewards string `json:"totalStakingRewards"` TotalRewardItems int `json:"totalRewardItems"` RewardItems []*EpochItem `json:"rewardItems,omitempty"` CreatedAt int64 `json:"-"` UpdatedAt int64 `json:"-"` }
type EpochItem ¶
type EpochItem struct { EpochID uint64 `json:"epochID"` Index int `json:"index"` TransactionHash common.Hash `json:"transactionHash"` NodeAddress common.Address `json:"nodeAddress"` OperationRewards string `json:"operationRewards"` StakingRewards string `json:"stakingRewards"` TaxAmounts string `json:"taxAmounts"` }
type EpochTrigger ¶
type NodeRequestRecord ¶
type UsageByDate ¶
Click to show internal directories.
Click to hide internal directories.