Documentation ¶
Index ¶
Constants ¶
View Source
const ( DisputeGameStatusInProgress = 0 DisputeGameStatusChallengerWin = 1 DisputeGameStatusDefenderWin = 2 DisputeGameOnChainStatusValid = "valid" DisputeGameOnChainStatusRollBack = "rollback" )
View Source
const ( GameClaimDataOnChainStatusValid = "valid" GameClaimDataOnChainStatusRollBack = "rollback" )
View Source
const ( BlockPending = "pending" BlockValid = "valid" BlockRollback = "rollback" BlockInvalid = "invalid" )
View Source
const ( EventPending = "pending" EventValid = "valid" EventRollback = "rollback" EventInvalid = "invalid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type DisputeGame ¶
type DisputeGame struct { Base SyncBlockID int64 `json:"sync_block_id"` Blockchain string `json:"blockchain"` BlockTime int64 `json:"block_time"` BlockNumber int64 `json:"block_number"` BlockHash string `json:"block_hash"` BlockLogIndexed int64 `json:"block_log_indexed"` TxIndex int64 `json:"tx_index"` TxHash string `json:"tx_hash"` EventName string `json:"event_name"` EventHash string `json:"event_hash"` ContractAddress string `json:"contract_address"` GameContract string `json:"game_contract"` GameType uint32 `json:"game_type"` L2BlockNumber int64 `json:"l_2_block_number"` Status uint8 `json:"status"` Computed bool `json:"computed"` CalculateLost bool `json:"calculate_lost"` OnChainStatus string `json:"on_chain_status"` ClaimDataLen int64 `json:"claim_data_len"` GetLenStatus bool `json:"get_len_status"` }
func (DisputeGame) TableName ¶
func (DisputeGame) TableName() string
type GameClaimData ¶
type GameClaimData struct { Base GameContract string `json:"game_contract"` DataIndex int64 `json:"data_index"` ParentIndex uint32 `json:"parent_index"` CounteredBy string `json:"countered_by"` Claimant string `json:"claimant"` Bond string `json:"bond"` Claim string `json:"claim"` Position string `json:"position"` Clock string `json:"clock"` OutputBlock uint64 `json:"output_block"` EventID int64 `json:"event_id"` OnChainStatus string `json:"on_chain_status"` }
func (GameClaimData) TableName ¶
func (GameClaimData) TableName() string
type GameCredit ¶
type GameCredit struct { Base GameContract string `json:"game_contract"` Address string `json:"address"` Credit string `json:"credit"` }
func (GameCredit) TableName ¶
func (GameCredit) TableName() string
type GameLostBond ¶
type GameLostBond struct { Base GameContract string `json:"game_contract"` Address string `json:"address"` Bond string `json:"bond"` }
func (GameLostBond) TableName ¶
func (GameLostBond) TableName() string
type SyncBlock ¶
type SyncBlock struct { Base Blockchain string `json:"blockchain"` Miner string `json:"miner"` BlockTime int64 `json:"block_time"` BlockNumber int64 `json:"block_number"` BlockHash string `json:"block_hash"` TxCount int64 `json:"tx_count"` EventCount int64 `json:"event_count"` ParentHash string `json:"parent_hash"` Status string `json:"status"` CheckCount int64 `json:"check_count"` }
type SyncEvent ¶
type SyncEvent struct { Base SyncBlockID int64 `json:"sync_block_id"` Blockchain string `json:"blockchain"` BlockTime int64 `json:"block_time"` BlockNumber int64 `json:"block_number"` BlockHash string `json:"block_hash"` BlockLogIndexed int64 `json:"block_log_indexed"` TxIndex int64 `json:"tx_index"` TxHash string `json:"tx_hash"` EventName string `json:"event_name"` EventHash string `json:"event_hash"` ContractAddress string `json:"contract_address"` Data string `json:"data"` Status string `json:"status"` RetryCount int64 `json:"retry_count"` }
Click to show internal directories.
Click to hide internal directories.