model

package
v0.0.0-...-2d2ac8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameActor = "actors"
View Source
const TableNameActorEvent = "actor_events"
View Source
const TableNameActorState = "actor_states"
View Source
const TableNameBlockHeader = "block_headers"
View Source
const TableNameBlockMessage = "block_messages"
View Source
const TableNameBlockParent = "block_parents"
View Source
const TableNameChainConsensu = "chain_consensus"
View Source
const TableNameChainEconomic = "chain_economics"
View Source
const TableNameChainPower = "chain_powers"
View Source
const TableNameChainReward = "chain_rewards"
View Source
const TableNameDataCapBalance = "data_cap_balances"
View Source
const TableNameDerivedGasOutput = "derived_gas_outputs"
View Source
const TableNameDrandBlockEntry = "drand_block_entries"
View Source
const TableNameGopgMigration = "gopg_migrations"
View Source
const TableNameIDAddress = "id_addresses"
View Source
const TableNameInternalMessage = "internal_messages"
View Source
const TableNameInternalParsedMessage = "internal_parsed_messages"
View Source
const TableNameMarketDealProposal = "market_deal_proposals"
View Source
const TableNameMarketDealState = "market_deal_states"
View Source
const TableNameMessage = "messages"
View Source
const TableNameMessageGasEconomy = "message_gas_economy"
View Source
const TableNameMessageParam = "message_params"
View Source
const TableNameMinerBeneficiary = "miner_beneficiaries"
View Source
const TableNameMinerCurrentDeadlineInfo = "miner_current_deadline_infos"
View Source
const TableNameMinerFeeDebt = "miner_fee_debts"
View Source
const TableNameMinerInfo = "miner_infos"
View Source
const TableNameMinerLockedFund = "miner_locked_funds"
View Source
const TableNameMinerPreCommitInfo = "miner_pre_commit_infos"
View Source
const TableNameMinerPreCommitInfosV9 = "miner_pre_commit_infos_v9"
View Source
const TableNameMinerSectorDeal = "miner_sector_deals"
View Source
const TableNameMinerSectorEvent = "miner_sector_events"
View Source
const TableNameMinerSectorInfo = "miner_sector_infos"
View Source
const TableNameMinerSectorInfosV7 = "miner_sector_infos_v7"
View Source
const TableNameMinerSectorPost = "miner_sector_posts"
View Source
const TableNameMultisigApproval = "multisig_approvals"
View Source
const TableNameMultisigTransaction = "multisig_transactions"
View Source
const TableNameParsedMessage = "parsed_messages"
View Source
const TableNamePowerActorClaim = "power_actor_claims"
View Source
const TableNameReceipt = "receipts"
View Source
const TableNameReceiptReturn = "receipt_returns"
View Source
const TableNameSurveyedMinerProtocol = "surveyed_miner_protocols"
View Source
const TableNameSurveyedPeerAgent = "surveyed_peer_agents"
View Source
const TableNameVMMessage = "vm_messages"
View Source
const TableNameVerifiedRegistryVerifiedClient = "verified_registry_verified_clients"
View Source
const TableNameVerifiedRegistryVerifier = "verified_registry_verifiers"
View Source
const TableNameVisorGapReport = "visor_gap_reports"
View Source
const TableNameVisorProcessingReport = "visor_processing_reports"
View Source
const TableNameVisorVersion = "visor_version"

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	ID        string `gorm:"column:id;type:text;primaryKey" json:"id"`                 // Actor address.
	Code      string `gorm:"column:code;type:text;not null" json:"code"`               // Human readable identifier for the type of the actor.
	Head      string `gorm:"column:head;type:text;not null" json:"head"`               // CID of the root of the state tree for the actor.
	Nonce     int64  `gorm:"column:nonce;type:bigint;not null" json:"nonce"`           // The next actor nonce that is expected to appear on chain.
	Balance   string `gorm:"column:balance;type:text;not null" json:"balance,string"`  // Actor balance in attoFIL.
	StateRoot string `gorm:"column:state_root;type:text;primaryKey" json:"state_root"` // CID of the state root.
	Height    int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`       // Epoch when this actor was created or updated.
}

Actor mapped from table <actors>

func (*Actor) TableName

func (*Actor) TableName() string

TableName Actor's table name

type ActorEvent

type ActorEvent struct {
	Height     int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`
	StateRoot  string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`
	EventIndex int64   `gorm:"column:event_index;type:bigint;primaryKey" json:"event_index"`
	MessageCid string  `gorm:"column:message_cid;type:text;primaryKey" json:"message_cid"`
	Emitter    string  `gorm:"column:emitter;type:text;not null" json:"emitter"`
	Flags      []uint8 `gorm:"column:flags;type:bytea;not null" json:"flags"`
	Key        string  `gorm:"column:key;type:text;not null" json:"key"`
	Value      []uint8 `gorm:"column:value;type:bytea;not null" json:"value"`
}

ActorEvent mapped from table <actor_events>

func (*ActorEvent) TableName

func (*ActorEvent) TableName() string

TableName ActorEvent's table name

type ActorState

type ActorState struct {
	Head   string `gorm:"column:head;type:text;primaryKey" json:"head"`       // CID of the root of the state tree for the actor.
	Code   string `gorm:"column:code;type:text;primaryKey" json:"code"`       // CID identifier for the type of the actor.
	State  string `gorm:"column:state;type:jsonb;not null" json:"state"`      // Top level of state data.
	Height int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"` // Epoch when this state change happened.
}

ActorState mapped from table <actor_states>

func (*ActorState) TableName

func (*ActorState) TableName() string

TableName ActorState's table name

type BlockHeader

type BlockHeader struct {
	Cid             string `gorm:"column:cid;type:text;primaryKey" json:"cid"`                           // CID of the block.
	ParentWeight    string `gorm:"column:parent_weight;type:text;not null" json:"parent_weight"`         // Aggregate chain weight of the block's parent set.
	ParentStateRoot string `gorm:"column:parent_state_root;type:text;not null" json:"parent_state_root"` // CID of the block's parent state root.
	Height          int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`                   // Epoch when this block was mined.
	Miner           string `gorm:"column:miner;type:text;not null" json:"miner"`                         // Address of the miner who mined this block.
	Timestamp       int64  `gorm:"column:timestamp;type:bigint;not null" json:"timestamp"`               // Time the block was mined in Unix time, the number of seconds elapsed since January 1, 1970 UTC.
	WinCount        *int64 `gorm:"column:win_count;type:bigint" json:"win_count"`                        // Number of reward units won in this block.
	ParentBaseFee   string `gorm:"column:parent_base_fee;type:text;not null" json:"parent_base_fee"`     // The base fee after executing the parent tipset.
	ForkSignaling   int64  `gorm:"column:fork_signaling;type:bigint;not null" json:"fork_signaling"`     // Flag used as part of signaling forks.
}

BlockHeader mapped from table <block_headers>

func (*BlockHeader) TableName

func (*BlockHeader) TableName() string

TableName BlockHeader's table name

type BlockMessage

type BlockMessage struct {
	Block   string `gorm:"column:block;type:text;primaryKey" json:"block"`     // CID of the block that contains the message.
	Message string `gorm:"column:message;type:text;primaryKey" json:"message"` // CID of a message in the block.
	Height  int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"` // Epoch when the block was mined.
}

BlockMessage mapped from table <block_messages>

func (*BlockMessage) TableName

func (*BlockMessage) TableName() string

TableName BlockMessage's table name

type BlockParent

type BlockParent struct {
	Block  string `gorm:"column:block;type:text;primaryKey" json:"block"`     // CID of the block.
	Parent string `gorm:"column:parent;type:text;primaryKey" json:"parent"`   // CID of the parent block.
	Height int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"` // Epoch when the block was mined.
}

BlockParent mapped from table <block_parents>

func (*BlockParent) TableName

func (*BlockParent) TableName() string

TableName BlockParent's table name

type ChainConsensu

type ChainConsensu struct {
	Height          int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`
	ParentStateRoot string  `gorm:"column:parent_state_root;type:text;primaryKey" json:"parent_state_root"`
	ParentTipSet    string  `gorm:"column:parent_tip_set;type:text;primaryKey" json:"parent_tip_set"`
	TipSet          *string `gorm:"column:tip_set;type:text" json:"tip_set"`
}

ChainConsensu mapped from table <chain_consensus>

func (*ChainConsensu) TableName

func (*ChainConsensu) TableName() string

TableName ChainConsensu's table name

type ChainEconomic

type ChainEconomic struct {
	Height              int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                              // Epoch of the economic summary.
	ParentStateRoot     string  `gorm:"column:parent_state_root;type:text;primaryKey" json:"parent_state_root"`          // CID of the parent state root.
	CirculatingFil      float64 `gorm:"column:circulating_fil;type:numeric;not null" json:"circulating_fil"`             // The amount of FIL (attoFIL) circulating and tradeable in the economy. The basis for Market Cap calculations.
	VestedFil           float64 `gorm:"column:vested_fil;type:numeric;not null" json:"vested_fil"`                       // Total amount of FIL (attoFIL) that is vested from genesis allocation.
	MinedFil            float64 `gorm:"column:mined_fil;type:numeric;not null" json:"mined_fil"`                         // The amount of FIL (attoFIL) that has been mined by storage miners.
	BurntFil            float64 `gorm:"column:burnt_fil;type:numeric;not null" json:"burnt_fil"`                         // Total FIL (attoFIL) burned as part of penalties and on-chain computations.
	LockedFil           float64 `gorm:"column:locked_fil;type:numeric;not null" json:"locked_fil"`                       // The amount of FIL (attoFIL) locked as part of mining, deals, and other mechanisms.
	FilReserveDisbursed float64 `gorm:"column:fil_reserve_disbursed;type:numeric;not null" json:"fil_reserve_disbursed"` // The amount of FIL (attoFIL) that has been disbursed from the mining reserve.
}

ChainEconomic mapped from table <chain_economics>

func (*ChainEconomic) TableName

func (*ChainEconomic) TableName() string

TableName ChainEconomic's table name

type ChainPower

type ChainPower struct {
	StateRoot                  string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                                        // CID of the parent state root.
	TotalRawBytesPower         float64 `gorm:"column:total_raw_bytes_power;type:numeric;not null" json:"total_raw_bytes_power"`                 // Total storage power in bytes in the network. Raw byte power is the size of a sector in bytes.
	TotalRawBytesCommitted     float64 `gorm:"column:total_raw_bytes_committed;type:numeric;not null" json:"total_raw_bytes_committed"`         // Total provably committed storage power in bytes. Raw byte power is the size of a sector in bytes.
	TotalQaBytesPower          float64 `gorm:"column:total_qa_bytes_power;type:numeric;not null" json:"total_qa_bytes_power"`                   // Total quality adjusted storage power in bytes in the network. Quality adjusted power is a weighted average of the quality of its space and it is based on the size, duration and quality of its deals.
	TotalQaBytesCommitted      float64 `gorm:"column:total_qa_bytes_committed;type:numeric;not null" json:"total_qa_bytes_committed"`           // Total provably committed, quality adjusted storage power in bytes. Quality adjusted power is a weighted average of the quality of its space and it is based on the size, duration and quality of its deals.
	TotalPledgeCollateral      float64 `gorm:"column:total_pledge_collateral;type:numeric;not null" json:"total_pledge_collateral"`             // Total locked FIL (attoFIL) miners have pledged as collateral in order to participate in the economy.
	QaSmoothedPositionEstimate float64 `gorm:"column:qa_smoothed_position_estimate;type:numeric;not null" json:"qa_smoothed_position_estimate"` // Total power smoothed position estimate - Alpha Beta Filter "position" (value) estimate in Q.128 format.
	QaSmoothedVelocityEstimate float64 `gorm:"column:qa_smoothed_velocity_estimate;type:numeric;not null" json:"qa_smoothed_velocity_estimate"` // Total power smoothed velocity estimate - Alpha Beta Filter "velocity" (rate of change of value) estimate in Q.128 format.
	MinerCount                 *int64  `gorm:"column:miner_count;type:bigint" json:"miner_count"`                                               // Total number of miners.
	ParticipatingMinerCount    *int64  `gorm:"column:participating_miner_count;type:bigint" json:"participating_miner_count"`                   // Total number of miners with power above the minimum miner threshold.
	Height                     int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                                              // Epoch this power summary applies to.
}

ChainPower mapped from table <chain_powers>

func (*ChainPower) TableName

func (*ChainPower) TableName() string

TableName ChainPower's table name

type ChainReward

type ChainReward struct {
	StateRoot                         string `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                                                        // CID of the parent state root.
	CumSumBaseline                    string `gorm:"column:cum_sum_baseline;type:numeric;not null" json:"cum_sum_baseline"`                                           // Target that CumsumRealized needs to reach for EffectiveNetworkTime to increase. It is measured in byte-epochs (space * time) representing power committed to the network for some duration.
	CumSumRealized                    string `gorm:"column:cum_sum_realized;type:numeric;not null" json:"cum_sum_realized"`                                           // Cumulative sum of network power capped by BaselinePower(epoch). It is measured in byte-epochs (space * time) representing power committed to the network for some duration.
	EffectiveBaselinePower            string `gorm:"column:effective_baseline_power;type:numeric;not null" json:"effective_baseline_power"`                           // The baseline power (in bytes) at the EffectiveNetworkTime epoch.
	NewBaselinePower                  string `gorm:"column:new_baseline_power;type:numeric;not null" json:"new_baseline_power"`                                       // The baseline power (in bytes) the network is targeting.
	NewRewardSmoothedPositionEstimate string `gorm:"column:new_reward_smoothed_position_estimate;type:numeric;not null" json:"new_reward_smoothed_position_estimate"` // Smoothed reward position estimate - Alpha Beta Filter "position" (value) estimate in Q.128 format.
	NewRewardSmoothedVelocityEstimate string `gorm:"column:new_reward_smoothed_velocity_estimate;type:numeric;not null" json:"new_reward_smoothed_velocity_estimate"` // Smoothed reward velocity estimate - Alpha Beta Filter "velocity" (rate of change of value) estimate in Q.128 format.
	TotalMinedReward                  string `gorm:"column:total_mined_reward;type:numeric;not null" json:"total_mined_reward"`                                       // The total FIL (attoFIL) awarded to block miners.
	NewReward                         string `gorm:"column:new_reward;type:numeric" json:"new_reward"`                                                                // The reward to be paid in per WinCount to block producers. The actual reward total paid out depends on the number of winners in any round. This value is recomputed every non-null epoch and used in the next non-null epoch.
	EffectiveNetworkTime              int64  `gorm:"column:effective_network_time;type:bigint" json:"effective_network_time"`                                         // Ceiling of real effective network time "theta" based on CumsumBaselinePower(theta) == CumsumRealizedPower. Theta captures the notion of how much the network has progressed in its baseline and in advancing network time.
	Height                            int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`                                                              // Epoch this rewards summary applies to.
}

ChainReward mapped from table <chain_rewards>

func (*ChainReward) TableName

func (*ChainReward) TableName() string

TableName ChainReward's table name

type DataCapBalance

type DataCapBalance struct {
	Height    int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                  // Epoch at which DataCap balances state changed.
	StateRoot string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`            // CID of the parent state root at this epoch.
	Address   string  `gorm:"column:address;type:text;primaryKey" json:"address"`                  // Address of verified datacap client this state change applies to.
	DataCap   float64 `gorm:"column:data_cap;type:numeric;not null" json:"data_cap"`               // DataCap of verified datacap client at this state change.
	Event     string  `gorm:"column:event;type:data_cap_balance_event_type;not null" json:"event"` // Name of the event that occurred (ADDED, MODIFIED, REMOVED).
}

DataCapBalance mapped from table <data_cap_balances>

func (*DataCapBalance) TableName

func (*DataCapBalance) TableName() string

TableName DataCapBalance's table name

type DerivedGasOutput

type DerivedGasOutput struct {
	Cid                string  `gorm:"column:cid;type:text;primaryKey" json:"cid"`                                    // CID of the message.
	From               string  `gorm:"column:from;type:text;not null" json:"from"`                                    // Address of actor that sent the message.
	To                 string  `gorm:"column:to;type:text;not null" json:"to"`                                        // Address of actor that received the message.
	Value              float64 `gorm:"column:value;type:numeric;not null" json:"value"`                               // The FIL value transferred (attoFIL) to the message receiver.
	GasFeeCap          float64 `gorm:"column:gas_fee_cap;type:numeric;not null" json:"gas_fee_cap"`                   // The maximum price that the message sender is willing to pay per unit of gas.
	GasPremium         float64 `gorm:"column:gas_premium;type:numeric;not null" json:"gas_premium"`                   // The price per unit of gas (measured in attoFIL/gas) that the message sender is willing to pay (on top of the BaseFee) to "tip" the miner that will include this message in a block.
	GasLimit           *int64  `gorm:"column:gas_limit;type:bigint" json:"gas_limit"`                                 // A hard limit on the amount of gas (i.e., number of units of gas) that a message’s execution should be allowed to consume on chain. It is measured in units of gas.
	SizeBytes          *int64  `gorm:"column:size_bytes;type:bigint" json:"size_bytes"`                               // Size in bytes of the serialized message.
	Nonce              *int64  `gorm:"column:nonce;type:bigint" json:"nonce"`                                         // The message nonce, which protects against duplicate messages and multiple messages with the same values.
	Method             *int64  `gorm:"column:method;type:bigint" json:"method"`                                       // The method number to invoke. Only unique to the actor the method is being invoked on. A method number of 0 is a plain token transfer - no method exectution.
	StateRoot          string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                      // CID of the parent state root.
	ExitCode           int64   `gorm:"column:exit_code;type:bigint;not null" json:"exit_code"`                        // The exit code that was returned as a result of executing the message. Exit code 0 indicates success. Codes 0-15 are reserved for use by the runtime. Codes 16-31 are common codes shared by different actors. Codes 32+ are actor specific.
	GasUsed            int64   `gorm:"column:gas_used;type:bigint;not null" json:"gas_used"`                          // A measure of the amount of resources (or units of gas) consumed, in order to execute a message.
	ParentBaseFee      float64 `gorm:"column:parent_base_fee;type:numeric;not null" json:"parent_base_fee"`           // The set price per unit of gas (measured in attoFIL/gas unit) to be burned (sent to an unrecoverable address) for every message execution.
	BaseFeeBurn        float64 `gorm:"column:base_fee_burn;type:numeric;not null" json:"base_fee_burn"`               // The amount of FIL (in attoFIL) to burn as a result of the base fee. It is parent_base_fee (or gas_fee_cap if smaller) multiplied by gas_used. Note: successful window PoSt messages are not charged this burn.
	OverEstimationBurn float64 `gorm:"column:over_estimation_burn;type:numeric;not null" json:"over_estimation_burn"` // The fee to pay (in attoFIL) for overestimating the gas used to execute a message. The overestimated gas to burn (gas_burned) is a portion of the difference between gas_limit and gas_used. The over_estimation_burn value is gas_burned * parent_base_fee.
	MinerPenalty       float64 `gorm:"column:miner_penalty;type:numeric;not null" json:"miner_penalty"`               // Any penalty fees (in attoFIL) the miner incured while executing the message.
	MinerTip           float64 `gorm:"column:miner_tip;type:numeric;not null" json:"miner_tip"`                       // The amount of FIL (in attoFIL) the miner receives for executing the message. Typically it is gas_premium * gas_limit but may be lower if the total fees exceed the gas_fee_cap.
	Refund             float64 `gorm:"column:refund;type:numeric;not null" json:"refund"`                             // The amount of FIL (in attoFIL) to refund to the message sender after base fee, miner tip and overestimation amounts have been deducted.
	GasRefund          int64   `gorm:"column:gas_refund;type:bigint;not null" json:"gas_refund"`                      // The overestimated units of gas to refund. It is a portion of the difference between gas_limit and gas_used.
	GasBurned          int64   `gorm:"column:gas_burned;type:bigint;not null" json:"gas_burned"`                      // The overestimated units of gas to burn. It is a portion of the difference between gas_limit and gas_used.
	Height             int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                            // Epoch this message was executed at.
	ActorName          string  `gorm:"column:actor_name;type:text;not null" json:"actor_name"`                        // Human readable identifier for the type of the actor.
	ActorFamily        string  `gorm:"column:actor_family;type:text;not null" json:"actor_family"`
}

DerivedGasOutput mapped from table <derived_gas_outputs>

func (*DerivedGasOutput) TableName

func (*DerivedGasOutput) TableName() string

TableName DerivedGasOutput's table name

type DrandBlockEntry

type DrandBlockEntry struct {
	Round int64  `gorm:"column:round;type:bigint;not null" json:"round"` // The round number of the randomness used.
	Block string `gorm:"column:block;type:text;not null" json:"block"`   // CID of the block.
}

DrandBlockEntry mapped from table <drand_block_entries>

func (*DrandBlockEntry) TableName

func (*DrandBlockEntry) TableName() string

TableName DrandBlockEntry's table name

type GopgMigration

type GopgMigration struct {
	ID        int32      `gorm:"column:id;type:integer;not null" json:"id"`
	Version   *int64     `gorm:"column:version;type:bigint" json:"version"`
	CreatedAt *time.Time `gorm:"column:created_at;type:timestamp with time zone" json:"created_at"`
}

GopgMigration mapped from table <gopg_migrations>

func (*GopgMigration) TableName

func (*GopgMigration) TableName() string

TableName GopgMigration's table name

type IDAddress

type IDAddress struct {
	Height    int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`       // Epoch at which this address mapping was added.
	ID        string `gorm:"column:id;type:text;primaryKey" json:"id"`                 // ID of the actor.
	Address   string `gorm:"column:address;type:text;primaryKey" json:"address"`       // Robust address of the actor.
	StateRoot string `gorm:"column:state_root;type:text;primaryKey" json:"state_root"` // CID of the parent state root at which this address mapping was added.
}

IDAddress mapped from table <id_addresses>

func (*IDAddress) TableName

func (*IDAddress) TableName() string

TableName IDAddress's table name

type InternalMessage

type InternalMessage struct {
	Height        int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`         // Epoch this message was executed at.
	Cid           string  `gorm:"column:cid;type:text;primaryKey" json:"cid"`                 // CID of the message.
	StateRoot     string  `gorm:"column:state_root;type:text;not null" json:"state_root"`     // CID of the parent state root at which this message was executed.
	SourceMessage *string `gorm:"column:source_message;type:text" json:"source_message"`      // CID of the message that caused this message to be sent.
	From          string  `gorm:"column:from;type:text;not null" json:"from"`                 // Address of the actor that sent the message.
	To            string  `gorm:"column:to;type:text;not null" json:"to"`                     // Address of the actor that received the message.
	Value         float64 `gorm:"column:value;type:numeric;not null" json:"value"`            // Amount of FIL (in attoFIL) transferred by this message.
	Method        int64   `gorm:"column:method;type:bigint;not null" json:"method"`           // The method number invoked on the recipient actor. Only unique to the actor the method is being invoked on. A method number of 0 is a plain token transfer - no method exectution.
	ActorName     string  `gorm:"column:actor_name;type:text;not null" json:"actor_name"`     // The full versioned name of the actor that received the message (for example fil/3/storagepower).
	ActorFamily   string  `gorm:"column:actor_family;type:text;not null" json:"actor_family"` // The short unversioned name of the actor that received the message (for example storagepower).
	ExitCode      int64   `gorm:"column:exit_code;type:bigint;not null" json:"exit_code"`     // The exit code that was returned as a result of executing the message. Exit code 0 indicates success. Codes 0-15 are reserved for use by the runtime. Codes 16-31 are common codes shared by different actors. Codes 32+ are actor specific.
	GasUsed       int64   `gorm:"column:gas_used;type:bigint;not null" json:"gas_used"`       // A measure of the amount of resources (or units of gas) consumed, in order to execute a message.
}

InternalMessage mapped from table <internal_messages>

func (*InternalMessage) TableName

func (*InternalMessage) TableName() string

TableName InternalMessage's table name

type InternalParsedMessage

type InternalParsedMessage struct {
	Height int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"` // Epoch this message was executed at.
	Cid    string  `gorm:"column:cid;type:text;primaryKey" json:"cid"`         // CID of the message.
	From   string  `gorm:"column:from;type:text;not null" json:"from"`         // Address of the actor that sent the message.
	To     string  `gorm:"column:to;type:text;not null" json:"to"`             // Address of the actor that received the message.
	Value  float64 `gorm:"column:value;type:numeric;not null" json:"value"`    // Amount of FIL (in attoFIL) transferred by this message.
	Method string  `gorm:"column:method;type:text;not null" json:"method"`     // The method number invoked on the recipient actor. Only unique to the actor the method is being invoked on. A method number of 0 is a plain token transfer - no method exectution.
	Params *string `gorm:"column:params;type:jsonb" json:"params"`             // Method parameters parsed and serialized as a JSON object.
}

InternalParsedMessage mapped from table <internal_parsed_messages>

func (*InternalParsedMessage) TableName

func (*InternalParsedMessage) TableName() string

TableName InternalParsedMessage's table name

type MarketDealProposal

type MarketDealProposal struct {
	DealID               int64   `gorm:"column:deal_id;type:bigint;primaryKey" json:"deal_id"`                       // Identifier for the deal.
	StateRoot            string  `gorm:"column:state_root;type:text;not null" json:"state_root"`                     // CID of the parent state root for this deal.
	PieceCid             string  `gorm:"column:piece_cid;type:text;not null" json:"piece_cid"`                       // CID of a sector piece. A Piece is an object that represents a whole or part of a File.
	PaddedPieceSize      int64   `gorm:"column:padded_piece_size;type:bigint;not null" json:"padded_piece_size"`     // The piece size in bytes with padding.
	UnpaddedPieceSize    int64   `gorm:"column:unpadded_piece_size;type:bigint;not null" json:"unpadded_piece_size"` // The piece size in bytes without padding.
	IsVerified           bool    `gorm:"column:is_verified;type:boolean;not null" json:"is_verified"`                // Deal is with a verified provider.
	ClientID             string  `gorm:"column:client_id;type:text;not null" json:"client_id"`                       // Address of the actor proposing the deal.
	ProviderID           string  `gorm:"column:provider_id;type:text;not null" json:"provider_id"`                   // Address of the actor providing the services.
	StartEpoch           int64   `gorm:"column:start_epoch;type:bigint;not null" json:"start_epoch"`                 // The epoch at which this deal with begin. Storage deal must appear in a sealed (proven) sector no later than start_epoch, otherwise it is invalid.
	EndEpoch             int64   `gorm:"column:end_epoch;type:bigint;not null" json:"end_epoch"`                     // The epoch at which this deal with end.
	SlashedEpoch         *int64  `gorm:"column:slashed_epoch;type:bigint" json:"slashed_epoch"`
	StoragePricePerEpoch string  `gorm:"column:storage_price_per_epoch;type:text;not null" json:"storage_price_per_epoch"` // The amount of FIL (in attoFIL) that will be transferred from the client to the provider every epoch this deal is active for.
	ProviderCollateral   string  `gorm:"column:provider_collateral;type:text;not null" json:"provider_collateral"`         // The amount of FIL (in attoFIL) the provider has pledged as collateral. The Provider deal collateral is only slashed when a sector is terminated before the deal expires.
	ClientCollateral     string  `gorm:"column:client_collateral;type:text;not null" json:"client_collateral"`             // The amount of FIL (in attoFIL) the client has pledged as collateral.
	Label                *string `gorm:"column:label;type:text" json:"label"`                                              // An arbitrary client chosen label to apply to the deal.
	Height               int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                               // Epoch at which this deal proposal was added or changed.
	IsString             *bool   `gorm:"column:is_string;type:boolean" json:"is_string"`                                   // When true Label contains a valid UTF-8 string encoded in base64. When false Label contains raw bytes encoded in base64. Required by FIP: 27
}

MarketDealProposal mapped from table <market_deal_proposals>

func (*MarketDealProposal) TableName

func (*MarketDealProposal) TableName() string

TableName MarketDealProposal's table name

type MarketDealState

type MarketDealState struct {
	DealID           int64  `gorm:"column:deal_id;type:bigint;primaryKey" json:"deal_id"`                     // Identifier for the deal.
	SectorStartEpoch int64  `gorm:"column:sector_start_epoch;type:bigint;not null" json:"sector_start_epoch"` // Epoch this deal was included in a proven sector. -1 if not yet included in proven sector.
	LastUpdateEpoch  int64  `gorm:"column:last_update_epoch;type:bigint;not null" json:"last_update_epoch"`   // Epoch this deal was last updated at. -1 if deal state never updated.
	SlashEpoch       int64  `gorm:"column:slash_epoch;type:bigint;not null" json:"slash_epoch"`               // Epoch this deal was slashed at. -1 if deal was never slashed.
	StateRoot        string `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                 // CID of the parent state root for this deal.
	Height           int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`                       // Epoch at which this deal was added or changed.
}

MarketDealState mapped from table <market_deal_states>

func (*MarketDealState) TableName

func (*MarketDealState) TableName() string

TableName MarketDealState's table name

type Message

type Message struct {
	Cid        string  `gorm:"column:cid;type:text;primaryKey" json:"cid"`                  // CID of the message.
	From       string  `gorm:"column:from;type:text;not null" json:"from"`                  // Address of the actor that sent the message.
	To         string  `gorm:"column:to;type:text;not null" json:"to"`                      // Address of the actor that received the message.
	SizeBytes  int64   `gorm:"column:size_bytes;type:bigint;not null" json:"size_bytes"`    // Size of the serialized message in bytes.
	Nonce      int64   `gorm:"column:nonce;type:bigint;not null" json:"nonce"`              // The message nonce, which protects against duplicate messages and multiple messages with the same values.
	Value      float64 `gorm:"column:value;type:numeric;not null" json:"value"`             // Amount of FIL (in attoFIL) transferred by this message.
	GasFeeCap  float64 `gorm:"column:gas_fee_cap;type:numeric;not null" json:"gas_fee_cap"` // The maximum price that the message sender is willing to pay per unit of gas.
	GasPremium float64 `gorm:"column:gas_premium;type:numeric;not null" json:"gas_premium"` // The price per unit of gas (measured in attoFIL/gas) that the message sender is willing to pay (on top of the BaseFee) to "tip" the miner that will include this message in a block.
	GasLimit   int64   `gorm:"column:gas_limit;type:bigint;not null" json:"gas_limit"`
	Method     *int64  `gorm:"column:method;type:bigint" json:"method"`            // The method number invoked on the recipient actor. Only unique to the actor the method is being invoked on. A method number of 0 is a plain token transfer - no method exectution.
	Height     int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"` // Epoch this message was executed at.
}

Message mapped from table <messages>

func (*Message) TableName

func (*Message) TableName() string

TableName Message's table name

type MessageGasEconomy

type MessageGasEconomy struct {
	StateRoot           string   `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                             // CID of the parent state root at this epoch.
	GasLimitTotal       float64  `gorm:"column:gas_limit_total;type:numeric;not null" json:"gas_limit_total"`                  // The sum of all the gas limits.
	GasLimitUniqueTotal *float64 `gorm:"column:gas_limit_unique_total;type:numeric" json:"gas_limit_unique_total"`             // The sum of all the gas limits of unique messages.
	BaseFee             float64  `gorm:"column:base_fee;type:numeric;not null" json:"base_fee"`                                // The set price per unit of gas (measured in attoFIL/gas unit) to be burned (sent to an unrecoverable address) for every message execution.
	BaseFeeChangeLog    float64  `gorm:"column:base_fee_change_log;type:double precision;not null" json:"base_fee_change_log"` // The logarithm of the change between new and old base fee.
	GasFillRatio        *float64 `gorm:"column:gas_fill_ratio;type:double precision" json:"gas_fill_ratio"`                    // The gas_limit_total / target gas limit total for all blocks.
	GasCapacityRatio    *float64 `gorm:"column:gas_capacity_ratio;type:double precision" json:"gas_capacity_ratio"`            // The gas_limit_unique_total / target gas limit total for all blocks.
	GasWasteRatio       *float64 `gorm:"column:gas_waste_ratio;type:double precision" json:"gas_waste_ratio"`                  // (gas_limit_total - gas_limit_unique_total) / target gas limit total for all blocks.
	Height              int64    `gorm:"column:height;type:bigint;primaryKey" json:"height"`                                   // Epoch these economics apply to.
}

MessageGasEconomy mapped from table <message_gas_economy>

func (*MessageGasEconomy) TableName

func (*MessageGasEconomy) TableName() string

TableName MessageGasEconomy's table name

type MessageParam

type MessageParam struct {
	Cid    string   `gorm:"column:cid;type:text;primaryKey" json:"cid"` // The CID of a message.
	Params *[]uint8 `gorm:"column:params;type:bytea" json:"params"`     // The parameters of the message as bytes.
}

MessageParam mapped from table <message_params>

func (*MessageParam) TableName

func (*MessageParam) TableName() string

TableName MessageParam's table name

type MinerBeneficiary

type MinerBeneficiary struct {
	Height                int64    `gorm:"column:height;type:bigint;primaryKey" json:"height"`
	StateRoot             string   `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`
	MinerID               string   `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`
	Beneficiary           string   `gorm:"column:beneficiary;type:text;not null" json:"beneficiary"`
	Quota                 float64  `gorm:"column:quota;type:numeric;not null" json:"quota"`
	UsedQuota             float64  `gorm:"column:used_quota;type:numeric;not null" json:"used_quota"`
	Expiration            int64    `gorm:"column:expiration;type:bigint;not null" json:"expiration"`
	NewBeneficiary        *string  `gorm:"column:new_beneficiary;type:text" json:"new_beneficiary"`
	NewQuota              *float64 `gorm:"column:new_quota;type:numeric" json:"new_quota"`
	NewExpiration         *int64   `gorm:"column:new_expiration;type:bigint" json:"new_expiration"`
	ApprovedByBeneficiary *bool    `gorm:"column:approved_by_beneficiary;type:boolean" json:"approved_by_beneficiary"`
	ApprovedByNominee     *bool    `gorm:"column:approved_by_nominee;type:boolean" json:"approved_by_nominee"`
}

MinerBeneficiary mapped from table <miner_beneficiaries>

func (*MinerBeneficiary) TableName

func (*MinerBeneficiary) TableName() string

TableName MinerBeneficiary's table name

type MinerCurrentDeadlineInfo

type MinerCurrentDeadlineInfo struct {
	Height        int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`               // Epoch at which this info was calculated.
	MinerID       string `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`             // Address of the miner this info relates to.
	StateRoot     string `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`         // CID of the parent state root at this epoch.
	DeadlineIndex int64  `gorm:"column:deadline_index;type:bigint;not null" json:"deadline_index"` // A deadline index, in [0..d.WPoStProvingPeriodDeadlines) unless period elapsed.
	PeriodStart   int64  `gorm:"column:period_start;type:bigint;not null" json:"period_start"`     // First epoch of the proving period (<= CurrentEpoch).
	Open          int64  `gorm:"column:open;type:bigint;not null" json:"open"`                     // First epoch from which a proof may be submitted (>= CurrentEpoch).
	Close         int64  `gorm:"column:close;type:bigint;not null" json:"close"`                   // First epoch from which a proof may no longer be submitted (>= Open).
	Challenge     int64  `gorm:"column:challenge;type:bigint;not null" json:"challenge"`           // Epoch at which to sample the chain for challenge (< Open).
	FaultCutoff   int64  `gorm:"column:fault_cutoff;type:bigint;not null" json:"fault_cutoff"`     // First epoch at which a fault declaration is rejected (< Open).
}

MinerCurrentDeadlineInfo mapped from table <miner_current_deadline_infos>

func (*MinerCurrentDeadlineInfo) TableName

func (*MinerCurrentDeadlineInfo) TableName() string

TableName MinerCurrentDeadlineInfo's table name

type MinerFeeDebt

type MinerFeeDebt struct {
	Height    int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`       // Epoch at which this debt applies.
	MinerID   string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`     // Address of the miner that owes fees.
	StateRoot string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"` // CID of the parent state root at this epoch.
	FeeDebt   float64 `gorm:"column:fee_debt;type:numeric;not null" json:"fee_debt"`    // Absolute value of debt this miner owes from unpaid fees in attoFIL.
}

MinerFeeDebt mapped from table <miner_fee_debts>

func (*MinerFeeDebt) TableName

func (*MinerFeeDebt) TableName() string

TableName MinerFeeDebt's table name

type MinerInfo

type MinerInfo struct {
	Height                  int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                                     // Epoch at which this miner info was added/changed.
	MinerID                 string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`                                   // Address of miner this info applies to.
	StateRoot               string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                               // CID of the parent state root at this epoch.
	OwnerID                 string  `gorm:"column:owner_id;type:text;not null" json:"owner_id"`                                     // Address of actor designated as the owner. The owner address is the address that created the miner, paid the collateral, and has block rewards paid out to it.
	WorkerID                string  `gorm:"column:worker_id;type:text;not null" json:"worker_id"`                                   // Address of actor designated as the worker. The worker is responsible for doing all of the work, submitting proofs, committing new sectors, and all other day to day activities.
	NewWorker               *string `gorm:"column:new_worker;type:text" json:"new_worker"`                                          // Address of a new worker address that will become effective at worker_change_epoch.
	WorkerChangeEpoch       int64   `gorm:"column:worker_change_epoch;type:bigint;not null" json:"worker_change_epoch"`             // Epoch at which a new_worker address will become effective.
	ConsensusFaultedElapsed int64   `gorm:"column:consensus_faulted_elapsed;type:bigint;not null" json:"consensus_faulted_elapsed"` // The next epoch this miner is eligible for certain permissioned actor methods and winning block elections as a result of being reported for a consensus fault.
	PeerID                  *string `gorm:"column:peer_id;type:text" json:"peer_id"`                                                // Current libp2p Peer ID of the miner.
	ControlAddresses        *string `gorm:"column:control_addresses;type:jsonb" json:"control_addresses"`                           // JSON array of control addresses. Control addresses are used to submit WindowPoSts proofs to the chain. WindowPoSt is the mechanism through which storage is verified in Filecoin and is required by miners to submit proofs for all sectors every 24 hours. Those proofs are submitted as messages to the blockchain and therefore need to pay the respective fees.
	MultiAddresses          *string `gorm:"column:multi_addresses;type:jsonb" json:"multi_addresses"`                               // JSON array of multiaddrs at which this miner can be reached.
	SectorSize              int64   `gorm:"column:sector_size;type:bigint;not null" json:"sector_size"`
}

MinerInfo mapped from table <miner_infos>

func (*MinerInfo) TableName

func (*MinerInfo) TableName() string

TableName MinerInfo's table name

type MinerLockedFund

type MinerLockedFund struct {
	Height            int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                          // Epoch at which these details were added/changed.
	MinerID           string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`                        // Address of the miner these details apply to.
	StateRoot         string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                    // CID of the parent state root at this epoch.
	LockedFunds       float64 `gorm:"column:locked_funds;type:numeric;not null" json:"locked_funds"`               // Amount of FIL (in attoFIL) locked due to vesting. When a Miner receives tokens from block rewards, the tokens are locked and added to the Miner's vesting table to be unlocked linearly over some future epochs.
	InitialPledge     float64 `gorm:"column:initial_pledge;type:numeric;not null" json:"initial_pledge"`           // Amount of FIL (in attoFIL) locked due to it being pledged as collateral. When a Miner ProveCommits a Sector, they must supply an "initial pledge" for the Sector, which acts as collateral. If the Sector is terminated, this deposit is removed and burned along with rewards earned by this sector up to a limit.
	PreCommitDeposits float64 `gorm:"column:pre_commit_deposits;type:numeric;not null" json:"pre_commit_deposits"` // Amount of FIL (in attoFIL) locked due to it being used as a PreCommit deposit. When a Miner PreCommits a Sector, they must supply a "precommit deposit" for the Sector, which acts as collateral. If the Sector is not ProveCommitted on time, this deposit is removed and burned.
}

MinerLockedFund mapped from table <miner_locked_funds>

func (*MinerLockedFund) TableName

func (*MinerLockedFund) TableName() string

TableName MinerLockedFund's table name

type MinerPreCommitInfo

type MinerPreCommitInfo struct {
	MinerID                string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`                          // Address of the miner who owns the sector.
	SectorID               int64   `gorm:"column:sector_id;type:bigint;primaryKey" json:"sector_id"`                      // Numeric identifier for the sector.
	StateRoot              string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                      // CID of the parent state root at this epoch.
	SealedCid              string  `gorm:"column:sealed_cid;type:text;not null" json:"sealed_cid"`                        // CID of the sealed sector.
	SealRandEpoch          *int64  `gorm:"column:seal_rand_epoch;type:bigint" json:"seal_rand_epoch"`                     // Seal challenge epoch. Epoch at which randomness should be drawn to tie Proof-of-Replication to a chain.
	ExpirationEpoch        *int64  `gorm:"column:expiration_epoch;type:bigint" json:"expiration_epoch"`                   // Epoch this sector expires.
	PreCommitDeposit       float64 `gorm:"column:pre_commit_deposit;type:numeric;not null" json:"pre_commit_deposit"`     // Amount of FIL (in attoFIL) used as a PreCommit deposit. If the Sector is not ProveCommitted on time, this deposit is removed and burned.
	PreCommitEpoch         *int64  `gorm:"column:pre_commit_epoch;type:bigint" json:"pre_commit_epoch"`                   // Epoch this PreCommit was created.
	DealWeight             float64 `gorm:"column:deal_weight;type:numeric;not null" json:"deal_weight"`                   // Total space*time of submitted deals.
	VerifiedDealWeight     float64 `gorm:"column:verified_deal_weight;type:numeric;not null" json:"verified_deal_weight"` // Total space*time of submitted verified deals.
	IsReplaceCapacity      *bool   `gorm:"column:is_replace_capacity;type:boolean" json:"is_replace_capacity"`            // Whether to replace a "committed capacity" no-deal sector (requires non-empty DealIDs).
	ReplaceSectorDeadline  *int64  `gorm:"column:replace_sector_deadline;type:bigint" json:"replace_sector_deadline"`     // The deadline location of the sector to replace.
	ReplaceSectorPartition *int64  `gorm:"column:replace_sector_partition;type:bigint" json:"replace_sector_partition"`   // The partition location of the sector to replace.
	ReplaceSectorNumber    *int64  `gorm:"column:replace_sector_number;type:bigint" json:"replace_sector_number"`         // ID of the committed capacity sector to replace.
	Height                 int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                            // Epoch this PreCommit information was added/changed.
}

MinerPreCommitInfo mapped from table <miner_pre_commit_infos>

func (*MinerPreCommitInfo) TableName

func (*MinerPreCommitInfo) TableName() string

TableName MinerPreCommitInfo's table name

type MinerPreCommitInfosV9

type MinerPreCommitInfosV9 struct {
	Height           int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`
	StateRoot        string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`
	MinerID          string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`
	SectorID         int64   `gorm:"column:sector_id;type:bigint;primaryKey" json:"sector_id"`
	PreCommitDeposit float64 `gorm:"column:pre_commit_deposit;type:numeric;not null" json:"pre_commit_deposit"`
	PreCommitEpoch   int64   `gorm:"column:pre_commit_epoch;type:bigint;not null" json:"pre_commit_epoch"`
	SealedCid        string  `gorm:"column:sealed_cid;type:text;not null" json:"sealed_cid"`
	SealRandEpoch    int64   `gorm:"column:seal_rand_epoch;type:bigint;not null" json:"seal_rand_epoch"`
	ExpirationEpoch  int64   `gorm:"column:expiration_epoch;type:bigint;not null" json:"expiration_epoch"`
	DealIds          *string `gorm:"column:deal_ids;type:bigint[]" json:"deal_ids"`
	UnsealedCid      *string `gorm:"column:unsealed_cid;type:text" json:"unsealed_cid"`
}

MinerPreCommitInfosV9 mapped from table <miner_pre_commit_infos_v9>

func (*MinerPreCommitInfosV9) TableName

func (*MinerPreCommitInfosV9) TableName() string

TableName MinerPreCommitInfosV9's table name

type MinerSectorDeal

type MinerSectorDeal struct {
	MinerID  string `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`     // Address of the miner the deal is with.
	SectorID int64  `gorm:"column:sector_id;type:bigint;primaryKey" json:"sector_id"` // Numeric identifier of the sector the deal is for.
	DealID   int64  `gorm:"column:deal_id;type:bigint;primaryKey" json:"deal_id"`     // Numeric identifier for the deal.
	Height   int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`       // Epoch at which this deal was added/updated.
}

MinerSectorDeal mapped from table <miner_sector_deals>

func (*MinerSectorDeal) TableName

func (*MinerSectorDeal) TableName() string

TableName MinerSectorDeal's table name

type MinerSectorEvent

type MinerSectorEvent struct {
	MinerID   string `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`              // Address of the miner who owns the sector.
	SectorID  int64  `gorm:"column:sector_id;type:bigint;primaryKey" json:"sector_id"`          // Numeric identifier of the sector.
	StateRoot string `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`          // CID of the parent state root at this epoch.
	Event     string `gorm:"column:event;type:miner_sector_event_type;primaryKey" json:"event"` // Name of the event that occurred.
	Height    int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`                // Epoch at which this event occurred.
}

MinerSectorEvent mapped from table <miner_sector_events>

func (*MinerSectorEvent) TableName

func (*MinerSectorEvent) TableName() string

TableName MinerSectorEvent's table name

type MinerSectorInfo

type MinerSectorInfo struct {
	MinerID               string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`                                // Address of the miner who owns the sector.
	SectorID              int64   `gorm:"column:sector_id;type:bigint;primaryKey" json:"sector_id"`                            // Numeric identifier of the sector.
	StateRoot             string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                            // CID of the parent state root at this epoch.
	SealedCid             string  `gorm:"column:sealed_cid;type:text;not null" json:"sealed_cid"`                              // The root CID of the Sealed Sector’s merkle tree. Also called CommR, or "replica commitment".
	ActivationEpoch       *int64  `gorm:"column:activation_epoch;type:bigint" json:"activation_epoch"`                         // Epoch during which the sector proof was accepted.
	ExpirationEpoch       *int64  `gorm:"column:expiration_epoch;type:bigint" json:"expiration_epoch"`                         // Epoch during which the sector expires.
	DealWeight            float64 `gorm:"column:deal_weight;type:numeric;not null" json:"deal_weight"`                         // Integral of active deals over sector lifetime.
	VerifiedDealWeight    float64 `gorm:"column:verified_deal_weight;type:numeric;not null" json:"verified_deal_weight"`       // Integral of active verified deals over sector lifetime.
	InitialPledge         float64 `gorm:"column:initial_pledge;type:numeric;not null" json:"initial_pledge"`                   // Pledge collected to commit this sector (in attoFIL).
	ExpectedDayReward     float64 `gorm:"column:expected_day_reward;type:numeric;not null" json:"expected_day_reward"`         // Expected one day projection of reward for sector computed at activation time (in attoFIL).
	ExpectedStoragePledge float64 `gorm:"column:expected_storage_pledge;type:numeric;not null" json:"expected_storage_pledge"` // Expected twenty day projection of reward for sector computed at activation time (in attoFIL).
	Height                int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                                  // Epoch at which this sector info was added/updated.
}

MinerSectorInfo mapped from table <miner_sector_infos>

func (*MinerSectorInfo) TableName

func (*MinerSectorInfo) TableName() string

TableName MinerSectorInfo's table name

type MinerSectorInfosV7

type MinerSectorInfosV7 struct {
	MinerID               string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`                                // Address of the miner who owns the sector.
	SectorID              int64   `gorm:"column:sector_id;type:bigint;primaryKey" json:"sector_id"`                            // Numeric identifier of the sector.
	StateRoot             string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                            // CID of the parent state root at this epoch.
	SealedCid             string  `gorm:"column:sealed_cid;type:text;not null" json:"sealed_cid"`                              // The root CID of the Sealed Sector’s merkle tree. Also called CommR, or "replica commitment".
	ActivationEpoch       *int64  `gorm:"column:activation_epoch;type:bigint" json:"activation_epoch"`                         // Epoch during which the sector proof was accepted.
	ExpirationEpoch       *int64  `gorm:"column:expiration_epoch;type:bigint" json:"expiration_epoch"`                         // Epoch during which the sector expires.
	DealWeight            float64 `gorm:"column:deal_weight;type:numeric;not null" json:"deal_weight"`                         // Integral of active deals over sector lifetime.
	VerifiedDealWeight    float64 `gorm:"column:verified_deal_weight;type:numeric;not null" json:"verified_deal_weight"`       // Integral of active verified deals over sector lifetime.
	InitialPledge         float64 `gorm:"column:initial_pledge;type:numeric;not null" json:"initial_pledge"`                   // Pledge collected to commit this sector (in attoFIL).
	ExpectedDayReward     float64 `gorm:"column:expected_day_reward;type:numeric;not null" json:"expected_day_reward"`         // Expected one day projection of reward for sector computed at activation time (in attoFIL).
	ExpectedStoragePledge float64 `gorm:"column:expected_storage_pledge;type:numeric;not null" json:"expected_storage_pledge"` // Expected twenty day projection of reward for sector computed at activation time (in attoFIL).
	Height                int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                                  // Epoch at which this sector info was added/updated.
	SectorKeyCid          *string `gorm:"column:sector_key_cid;type:text" json:"sector_key_cid"`                               // SealedSectorCID is set when CC sector is snapped.
}

MinerSectorInfosV7 mapped from table <miner_sector_infos_v7>

func (*MinerSectorInfosV7) TableName

func (*MinerSectorInfosV7) TableName() string

TableName MinerSectorInfosV7's table name

type MinerSectorPost

type MinerSectorPost struct {
	MinerID        string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`      // Address of the miner who owns the sector.
	SectorID       int64   `gorm:"column:sector_id;type:bigint;primaryKey" json:"sector_id"`  // Numeric identifier of the sector.
	Height         int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`        // Epoch at which this PoSt message was executed.
	PostMessageCid *string `gorm:"column:post_message_cid;type:text" json:"post_message_cid"` // CID of the PoSt message.
}

MinerSectorPost mapped from table <miner_sector_posts>

func (*MinerSectorPost) TableName

func (*MinerSectorPost) TableName() string

TableName MinerSectorPost's table name

type MultisigApproval

type MultisigApproval struct {
	Height         int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`
	StateRoot      string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`
	MultisigID     string  `gorm:"column:multisig_id;type:text;primaryKey" json:"multisig_id"`
	Message        string  `gorm:"column:message;type:text;primaryKey" json:"message"`
	Method         int64   `gorm:"column:method;type:bigint;not null" json:"method"`
	Approver       string  `gorm:"column:approver;type:text;primaryKey" json:"approver"`
	Threshold      int64   `gorm:"column:threshold;type:bigint;not null" json:"threshold"`
	InitialBalance float64 `gorm:"column:initial_balance;type:numeric;not null" json:"initial_balance"`
	GasUsed        int64   `gorm:"column:gas_used;type:bigint;not null" json:"gas_used"`
	TransactionID  int64   `gorm:"column:transaction_id;type:bigint;not null" json:"transaction_id"`
	To             string  `gorm:"column:to;type:text;not null" json:"to"`
	Value          float64 `gorm:"column:value;type:numeric;not null" json:"value"`
	Signers        string  `gorm:"column:signers;type:jsonb;not null" json:"signers"`
}

MultisigApproval mapped from table <multisig_approvals>

func (*MultisigApproval) TableName

func (*MultisigApproval) TableName() string

TableName MultisigApproval's table name

type MultisigTransaction

type MultisigTransaction struct {
	Height        int64    `gorm:"column:height;type:bigint;primaryKey" json:"height"`                 // Epoch at which this transaction was executed.
	MultisigID    string   `gorm:"column:multisig_id;type:text;primaryKey" json:"multisig_id"`         // Address of the multisig actor involved in the transaction.
	StateRoot     string   `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`           // CID of the parent state root at this epoch.
	TransactionID int64    `gorm:"column:transaction_id;type:bigint;primaryKey" json:"transaction_id"` // Number identifier for the transaction - unique per multisig.
	To            string   `gorm:"column:to;type:text;not null" json:"to"`                             // Address of the recipient who will be sent a message if the proposal is approved.
	Value         string   `gorm:"column:value;type:text;not null" json:"value"`                       // Amount of FIL (in attoFIL) that will be transferred if the proposal is approved.
	Method        int64    `gorm:"column:method;type:bigint;not null" json:"method"`                   // The method number to invoke on the recipient if the proposal is approved. Only unique to the actor the method is being invoked on. A method number of 0 is a plain token transfer - no method exectution.
	Params        *[]uint8 `gorm:"column:params;type:bytea" json:"params"`                             // CBOR encoded bytes of parameters to send to the method that will be invoked if the proposal is approved.
	Approved      string   `gorm:"column:approved;type:jsonb;not null" json:"approved"`                // Addresses of signers who have approved the transaction. 0th entry is the proposer.
}

MultisigTransaction mapped from table <multisig_transactions>

func (*MultisigTransaction) TableName

func (*MultisigTransaction) TableName() string

TableName MultisigTransaction's table name

type ParsedMessage

type ParsedMessage struct {
	Cid    string  `gorm:"column:cid;type:text;primaryKey" json:"cid"`         // CID of the message.
	Height int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"` // Epoch this message was executed at.
	From   string  `gorm:"column:from;type:text;not null" json:"from"`         // Address of the actor that sent the message.
	To     string  `gorm:"column:to;type:text;not null" json:"to"`             // Address of the actor that received the message.
	Value  float64 `gorm:"column:value;type:numeric;not null" json:"value"`    // Amount of FIL (in attoFIL) transferred by this message.
	Method string  `gorm:"column:method;type:text;not null" json:"method"`     // The name of the method that was invoked on the recipient actor.
	Params *string `gorm:"column:params;type:jsonb" json:"params"`             // Method parameters parsed and serialized as a JSON object.
}

ParsedMessage mapped from table <parsed_messages>

func (*ParsedMessage) TableName

func (*ParsedMessage) TableName() string

TableName ParsedMessage's table name

type PowerActorClaim

type PowerActorClaim struct {
	Height          int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                      // Epoch this claim was made.
	MinerID         string  `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`                    // Address of miner making the claim.
	StateRoot       string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`                // CID of the parent state root at this epoch.
	RawBytePower    float64 `gorm:"column:raw_byte_power;type:numeric;not null" json:"raw_byte_power"`       // Sum of raw byte storage power for a miner's sectors. Raw byte power is the size of a sector in bytes.
	QualityAdjPower float64 `gorm:"column:quality_adj_power;type:numeric;not null" json:"quality_adj_power"` // Sum of quality adjusted storage power for a miner's sectors. Quality adjusted power is a weighted average of the quality of its space and it is based on the size, duration and quality of its deals.
}

PowerActorClaim mapped from table <power_actor_claims>

func (*PowerActorClaim) TableName

func (*PowerActorClaim) TableName() string

TableName PowerActorClaim's table name

type Receipt

type Receipt struct {
	Message   string `gorm:"column:message;type:text;primaryKey" json:"message"`       // CID of the message this receipt belongs to.
	StateRoot string `gorm:"column:state_root;type:text;primaryKey" json:"state_root"` // CID of the parent state root that this epoch.
	Idx       int64  `gorm:"column:idx;type:bigint;not null" json:"idx"`               // Index of message indicating execution order.
	ExitCode  int64  `gorm:"column:exit_code;type:bigint;not null" json:"exit_code"`   // The exit code that was returned as a result of executing the message. Exit code 0 indicates success. Codes 0-15 are reserved for use by the runtime. Codes 16-31 are common codes shared by different actors. Codes 32+ are actor specific.
	GasUsed   int64  `gorm:"column:gas_used;type:bigint;not null" json:"gas_used"`     // A measure of the amount of resources (or units of gas) consumed, in order to execute a message.
	Height    int64  `gorm:"column:height;type:bigint;primaryKey" json:"height"`       // Epoch the message was executed and receipt generated.
}

Receipt mapped from table <receipts>

func (*Receipt) TableName

func (*Receipt) TableName() string

TableName Receipt's table name

type ReceiptReturn

type ReceiptReturn struct {
	Message string   `gorm:"column:message;type:text;primaryKey" json:"message"` // The CID of the message that produced in this receipt.
	Return  *[]uint8 `gorm:"column:return;type:bytea" json:"return"`             // The return of the receipt as bytes.
}

ReceiptReturn mapped from table <receipt_returns>

func (*ReceiptReturn) TableName

func (*ReceiptReturn) TableName() string

TableName ReceiptReturn's table name

type SurveyedMinerProtocol

type SurveyedMinerProtocol struct {
	ObservedAt time.Time `gorm:"column:observed_at;type:timestamp with time zone;primaryKey" json:"observed_at"` // Timestamp of the observation.
	MinerID    string    `gorm:"column:miner_id;type:text;primaryKey" json:"miner_id"`                           // Address (ActorID) of the miner.
	PeerID     *string   `gorm:"column:peer_id;type:text" json:"peer_id"`                                        // PeerID of the miner advertised in on-chain MinerInfo structure.
	Agent      *string   `gorm:"column:agent;type:text" json:"agent"`                                            // Agent string as reported by the peer.
	Protocols  *string   `gorm:"column:protocols;type:jsonb" json:"protocols"`                                   // List of supported protocol strings supported by the peer.
}

SurveyedMinerProtocol mapped from table <surveyed_miner_protocols>

func (*SurveyedMinerProtocol) TableName

func (*SurveyedMinerProtocol) TableName() string

TableName SurveyedMinerProtocol's table name

type SurveyedPeerAgent

type SurveyedPeerAgent struct {
	SurveyerPeerID  string    `gorm:"column:surveyer_peer_id;type:text;primaryKey" json:"surveyer_peer_id"`           // Peer ID of the node performing the survey.
	ObservedAt      time.Time `gorm:"column:observed_at;type:timestamp with time zone;primaryKey" json:"observed_at"` // Timestamp of the observation.
	RawAgent        string    `gorm:"column:raw_agent;type:text;primaryKey" json:"raw_agent"`                         // Unprocessed agent string as reported by a peer.
	NormalizedAgent string    `gorm:"column:normalized_agent;type:text;not null" json:"normalized_agent"`             // Agent string normalized to a software name with major and minor version.
	Count           int64     `gorm:"column:count;type:bigint;not null" json:"count"`                                 // Number of peers that reported the same raw agent.
}

SurveyedPeerAgent mapped from table <surveyed_peer_agents>

func (*SurveyedPeerAgent) TableName

func (*SurveyedPeerAgent) TableName() string

TableName SurveyedPeerAgent's table name

type VMMessage

type VMMessage struct {
	Height    int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`       // Height message was executed at.
	StateRoot string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"` // CID of the parent state root at which this message was executed.
	Cid       string  `gorm:"column:cid;type:text;primaryKey" json:"cid"`               // CID of the message (note this CID does not appear on chain).
	Source    string  `gorm:"column:source;type:text;primaryKey" json:"source"`         // CID of the on-chain message or implicit (internal) message that caused this message to be sent.
	From      string  `gorm:"column:from;type:text;not null" json:"from"`               // Address of the actor that sent the message.
	To        string  `gorm:"column:to;type:text;not null" json:"to"`                   // Address of the actor that received the message.
	Value     float64 `gorm:"column:value;type:numeric;not null" json:"value"`          // Amount of FIL (in attoFIL) transferred by this message.
	Method    int64   `gorm:"column:method;type:bigint;not null" json:"method"`         // The method number invoked on the recipient actor. Only unique to the actor the method is being invoked on. A method number of 0 is a plain token transfer - no method execution
	ActorCode string  `gorm:"column:actor_code;type:text;not null" json:"actor_code"`   // The CID of the actor that received the message.
	ExitCode  int64   `gorm:"column:exit_code;type:bigint;not null" json:"exit_code"`   // The exit code that was returned as a result of executing the message.
	GasUsed   int64   `gorm:"column:gas_used;type:bigint;not null" json:"gas_used"`     // A measure of the amount of resources (or units of gas) consumed, in order to execute a message.
	Params    *string `gorm:"column:params;type:jsonb" json:"params"`                   // Message parameters parsed and serialized as a JSON object.
	Returns   *string `gorm:"column:returns;type:jsonb" json:"returns"`                 // Result returned from executing a message parsed and serialized as a JSON object.
	Index     int64   `gorm:"column:index;type:bigint;not null" json:"index"`           // Order in which the message was applied.
}

VMMessage mapped from table <vm_messages>

func (*VMMessage) TableName

func (*VMMessage) TableName() string

TableName VMMessage's table name

type VerifiedRegistryVerifiedClient

type VerifiedRegistryVerifiedClient struct {
	Height    int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                   // Epoch at which this verified client state changed.
	StateRoot string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`             // CID of the parent state root at this epoch.
	Address   string  `gorm:"column:address;type:text;primaryKey" json:"address"`                   // Address of verified client this state change applies to.
	DataCap   float64 `gorm:"column:data_cap;type:numeric;not null" json:"data_cap"`                // DataCap of verified client at this state change.
	Event     string  `gorm:"column:event;type:verified_registry_event_type;not null" json:"event"` // Name of the event that occurred.
}

VerifiedRegistryVerifiedClient mapped from table <verified_registry_verified_clients>

func (*VerifiedRegistryVerifiedClient) TableName

TableName VerifiedRegistryVerifiedClient's table name

type VerifiedRegistryVerifier

type VerifiedRegistryVerifier struct {
	Height    int64   `gorm:"column:height;type:bigint;primaryKey" json:"height"`                   // Epoch at which this verifiers state changed.
	StateRoot string  `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`             // CID of the parent state root at this epoch.
	Address   string  `gorm:"column:address;type:text;primaryKey" json:"address"`                   // Address of verifier this state change applies to.
	DataCap   float64 `gorm:"column:data_cap;type:numeric;not null" json:"data_cap"`                // DataCap of verifier at this state change.
	Event     string  `gorm:"column:event;type:verified_registry_event_type;not null" json:"event"` // Name of the event that occurred.
}

VerifiedRegistryVerifier mapped from table <verified_registry_verifiers>

func (*VerifiedRegistryVerifier) TableName

func (*VerifiedRegistryVerifier) TableName() string

TableName VerifiedRegistryVerifier's table name

type VisorGapReport

type VisorGapReport struct {
	Height     int64     `gorm:"column:height;type:bigint;primaryKey" json:"height"`
	Task       string    `gorm:"column:task;type:text;primaryKey" json:"task"`
	Status     string    `gorm:"column:status;type:text;primaryKey" json:"status"`
	Reporter   string    `gorm:"column:reporter;type:text;not null" json:"reporter"`
	ReportedAt time.Time `gorm:"column:reported_at;type:timestamp with time zone;not null" json:"reported_at"`
}

VisorGapReport mapped from table <visor_gap_reports>

func (*VisorGapReport) TableName

func (*VisorGapReport) TableName() string

TableName VisorGapReport's table name

type VisorProcessingReport

type VisorProcessingReport struct {
	Height            int64     `gorm:"column:height;type:bigint;primaryKey" json:"height"`
	StateRoot         string    `gorm:"column:state_root;type:text;primaryKey" json:"state_root"`
	Reporter          string    `gorm:"column:reporter;type:text;primaryKey" json:"reporter"`
	Task              string    `gorm:"column:task;type:text;primaryKey" json:"task"`
	StartedAt         time.Time `gorm:"column:started_at;type:timestamp with time zone;primaryKey" json:"started_at"`
	CompletedAt       time.Time `gorm:"column:completed_at;type:timestamp with time zone;not null" json:"completed_at"`
	Status            *string   `gorm:"column:status;type:text" json:"status"`
	StatusInformation *string   `gorm:"column:status_information;type:text" json:"status_information"`
	ErrorsDetected    *string   `gorm:"column:errors_detected;type:jsonb" json:"errors_detected"`
}

VisorProcessingReport mapped from table <visor_processing_reports>

func (*VisorProcessingReport) TableName

func (*VisorProcessingReport) TableName() string

TableName VisorProcessingReport's table name

type VisorVersion

type VisorVersion struct {
	Major int32 `gorm:"column:major;type:integer;primaryKey" json:"major"`
}

VisorVersion mapped from table <visor_version>

func (*VisorVersion) TableName

func (*VisorVersion) TableName() string

TableName VisorVersion's table name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL