model

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package model defines models returned by the graphql server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockTime added in v0.0.27

type BlockTime struct {
	ChainID     int `json:"chain_id"`
	BlockNumber int `json:"block_number"`
	Timestamp   int `json:"timestamp"`
}

type Log

type Log struct {
	ContractAddress string       `json:"contract_address"`
	ChainID         int          `json:"chain_id"`
	Topics          []string     `json:"topics"`
	Data            string       `json:"data"`
	BlockNumber     int          `json:"block_number"`
	TxHash          string       `json:"tx_hash"`
	TxIndex         int          `json:"tx_index"`
	BlockHash       string       `json:"block_hash"`
	Index           int          `json:"index"`
	Removed         bool         `json:"removed"`
	Page            int          `json:"page"`
	Transaction     *Transaction `json:"transaction"`
	Receipt         *Receipt     `json:"receipt"`
	JSON            types.JSON   `json:"json"`
}

type Receipt

type Receipt struct {
	ChainID           int          `json:"chain_id"`
	Type              int          `json:"type"`
	PostState         string       `json:"post_state"`
	Status            int          `json:"status"`
	CumulativeGasUsed int          `json:"cumulative_gas_used"`
	Bloom             string       `json:"bloom"`
	TxHash            string       `json:"tx_hash"`
	ContractAddress   string       `json:"contract_address"`
	GasUsed           int          `json:"gas_used"`
	BlockNumber       int          `json:"block_number"`
	TransactionIndex  int          `json:"transaction_index"`
	Page              int          `json:"page"`
	Logs              []*Log       `json:"logs,omitempty"`
	Transaction       *Transaction `json:"transaction"`
	JSON              types.JSON   `json:"json"`
}

type Transaction

type Transaction struct {
	ChainID   int        `json:"chain_id"`
	TxHash    string     `json:"tx_hash"`
	Protected bool       `json:"protected"`
	Type      int        `json:"type"`
	Data      string     `json:"data"`
	Gas       int        `json:"gas"`
	GasPrice  int        `json:"gas_price"`
	GasTipCap string     `json:"gas_tip_cap"`
	GasFeeCap string     `json:"gas_fee_cap"`
	Value     string     `json:"value"`
	Nonce     int        `json:"nonce"`
	To        string     `json:"to"`
	Page      int        `json:"page"`
	Sender    string     `json:"sender"`
	Timestamp int        `json:"timestamp"`
	Logs      []*Log     `json:"logs,omitempty"`
	Receipt   *Receipt   `json:"receipt"`
	JSON      types.JSON `json:"json"`
}

Jump to

Keyboard shortcuts

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