Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address struct { *gorm.Model FetchedCoinBalance string `json:"fetched_coin_balance,omitempty" gorm:"fetched_coin_balance;comment:获取币种的金额;"` FetchedCoinBalanceBlockNumber int32 `` /* 135-byte string literal not displayed */ Hash string `json:"hash,omitempty" gorm:"hash; comment:地址HEX;"` ContractCode string `json:"contract_code,omitempty" gorm:"contract_code; comment:地址是合约时的合约代码;"` Nonce int32 `json:"nonce,omitempty" gorm:"nonce; comment:地址Nonce;"` Decompiled bool `json:"decompiled,omitempty" gorm:"decompiled; comment:合约是否已经反编译;"` Verified bool `json:"verified,omitempty" gorm:"verified; comment:合约是否已经验证;"` GasUsed int32 `json:"gas_used,omitempty" gorm:"gas_used; comment:GAS使用量;"` TransactionsCount int32 `json:"transactions_count,omitempty" gorm:"transactions_count; comment:总交易数量;"` TokenTransfersCount int32 `json:"token_transfers_count,omitempty" gorm:"token_transfers_count; comment:总TOKEN转移数量;"` }
type Block ¶
type Block struct { *gorm.Model Consensus bool `json:"consensus" gorm:"column:consensus; default:0; comment:区块共识;"` Difficulty *big.Int `json:"difficulty" gorm:"column:difficulty; default:0; comment:难度;"` BlockHeight uint64 `json:"block_height" gorm:"column:block_height; default:0; comment:区块高度;"` BlockHash string `json:"block_hash" gorm:"column:block_hash;default:''; comment:区块hash;"` ParentHash string `json:"parent_hash" gorm:"column:parent_hash;default:''; comment:父hash;"` GasLimit uint64 `json:"gas_limit" gorm:"column:gas_limit;default:''; comment:区块Gas上限;"` GasUsed uint64 `json:"gas_used" gorm:"column:gas_used;default:''; comment:区块Gas使用量;"` MinerHash string `json:"miner_hash" gorm:"column:miner_hash;default:''; comment:区块矿工地址;"` Nonce string `json:"nonce" gorm:"column:nonce;default:''; comment:区块Nonce;"` Size int32 `json:"size" gorm:"column:size;default:''; comment:区块大小;"` Timestamp time.Time `json:"timestamp" gorm:"column:timestamp;default:''; comment:区块时间;"` RefetchNeeded bool `json:"refetch_needed" gorm:"column:refetch_needed; default:0; comment:;"` BaseFeePerGas *big.Int `json:"base_fee_per_gas" gorm:"column:base_fee_per_gas; default:0; comment:基础费用;"` LatestBlockHeight uint64 `json:"latest_block_height" gorm:"column:latest_block_height;default: 0; comment:最后区块高度;"` }
type Event ¶
type Event struct { *gorm.Model Address string `json:"address" gorm:"type:char(42)" ` FirstTopic string `json:"first_topic" gorm:"type:longtext; comment:方法签名;" ` SecondTopic string `json:"second_topic" gorm:"type:longtext; comment:第一个Indexed 参数;" ` ThirdTopic string `json:"third_topic" gorm:"type:longtext; comment:第二个Indexed 参数;" ` FourthTopic string `json:"fourth_topic" gorm:"type:longtext; comment:第三个Indexed 参数;" ` Data string `json:"data" gorm:"type:longtext" ` BlockNumber uint64 `json:"block_number"` TxHash string `json:"tx_hash" gorm:"type:char(66)" ` TxIndex uint `json:"tx_index" ` BlockHash string `json:"block_hash" gorm:"type:varchar(256)" ` LogIndex uint `json:"log_index"` Removed bool `json:"removed"` }
type Token ¶
type Token struct { *gorm.Model Name string `json:"name,omitempty" gorm:"name; comment:Token名称;"` Symbol string `json:"symbol,omitempty" gorm:"symbol; comment:Token 缩写;"` TotalSupply *big.Int `json:"total_supply,omitempty" gorm:"total_supply; comment:总供应量;"` Decimals uint8 `json:"decimals,omitempty" gorm:"decimals; comment:精度;"` Type string `json:"type,omitempty" gorm:"type; comment:类型 ERC20, ERC721, ERC1155;"` Cataloged bool `json:"cataloged,omitempty" gorm:"cataloged; comment:归类;"` ContractAddress string `json:"contract_address,omitempty" gorm:"contract_address; comment:合约地址;"` HolderCount int32 `json:"holder_count,omitempty" gorm:"holder_count; comment:持有用户量;"` SkipMetadata bool `json:"skip_metadata,omitempty" gorm:"skip_metadata; comment:跳过元信息;"` FiatValue string `json:"fiat_value,omitempty" gorm:"fiat_value; comment:假值?;"` CirculatingMarketCap string `json:"circulating_market_cap,omitempty" gorm:"circulating_market_cap; comment:市场流通量;"` TotalSupplyUpdatedAtBlock int32 `` /* 127-byte string literal not displayed */ IconUrl string `json:"icon_url,omitempty" gorm:"icon_url; comment:图标URL;"` IsVerifiedViaAdminPanel bool `json:"is_verified_via_admin_panel,omitempty" gorm:"is_verified_via_admin_panel; comment:是否已经验证;"` }
type TokenTransfer ¶
type TokenTransfer struct { *gorm.Model TransactionHash string `json:"transaction_hash,omitempty" gorm:"transaction_hash; comment:交易哈希;"` // Transaction foreign key LogIndex uint `json:"log_index,omitempty" gorm:"log_index; comment:日志索引;"` // Index of the corresponding `Event` in the transaction. FromAddress string `json:"from_address,omitempty" gorm:"from_address; comment:From;"` // sender ToAddress string `json:"to_address,omitempty" gorm:"to_address; comment:To;"` // receiver Amount *big.Int `json:"amount,omitempty" gorm:"amount; comment:Token 数量;"` // amount TokenId *big.Int `json:"token_id,omitempty" gorm:"token_id; comment:Token ID 编号;"` // ID of the token (applicable to ERC-721 tokens) TokenContractAddress string `json:"token_contract_address,omitempty" gorm:"token_contract_address; comment:Token合约地址;"` // token contract address BlockNumber uint64 `json:"block_number,omitempty" gorm:"block_number; comment:区块高度;"` // block number BlockHash string `json:"block_hash,omitempty" gorm:"block_hash; comment:区块哈希;"` // block hash Amounts []*big.Int `json:"amounts,omitempty" gorm:"amounts; comment:批量操作金额;"` // Tokens transferred amounts in case of batched transfer in ERC-1155 TokenIds []*big.Int `json:"token_ids,omitempty" gorm:"token_ids; comment:批量操作Token ID;"` // IDs of the tokens (applicable to ERC-1155 tokens) }
func (*TokenTransfer) TableName ¶
func (b *TokenTransfer) TableName() string
type Transaction ¶
type Transaction struct { *gorm.Model BlockNumber uint64 `json:"block_number"` TxHash string `json:"tx_hash" gorm:"type:char(66)" ` From string `json:"from" gorm:"type:char(42)" ` To string `json:"to" gorm:"type:char(42)" ` Value string `json:"value" gorm:"type:varchar(256)" ` Contract string `json:"contract" gorm:"type:char(42)" ` Status uint64 `json:"status"` InputData string `json:"input_data" gorm:"type:varchar(4096)"` }
func (*Transaction) TableName ¶
func (tx *Transaction) TableName() string
Click to show internal directories.
Click to hide internal directories.