gethlyleminers

package
v2.0.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDistinctAddressesFromGethTransactionsByMinerIDAndBeforeDate

func GetDistinctAddressesFromGethTransactionsByMinerIDAndBeforeDate(dbConnPgx utils.PgxIface, minerID *int, beforeDate *time.Time) ([]string, error)

func GetMinAndMaxDatesFromTransactionsByMinerID

func GetMinAndMaxDatesFromTransactionsByMinerID(dbConnPgx utils.PgxIface, minerID *int) (*time.Time, *time.Time, error)

func GetTotalGethMinersCount

func GetTotalGethMinersCount(dbConnPgx utils.PgxIface) (*int, error)

func GetTotalMinerTransactionCount

func GetTotalMinerTransactionCount(dbConnPgx utils.PgxIface) (*int, error)

func GetTotalMinerTransactionInputCount

func GetTotalMinerTransactionInputCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertGethMiner

func InsertGethMiner(dbConnPgx utils.PgxIface, gethMiner *GethMiner) (int, string, error)

func InsertGethMinerTransaction

func InsertGethMinerTransaction(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransaction) (int, int, error)

func InsertGethMinerTransactionInput

func InsertGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransactionInput) (int, int, error)

func InsertGethMiners

func InsertGethMiners(dbConnPgx utils.PgxIface, gethMiners []GethMiner) error

func InsertGethMinersTransactionInputs

func InsertGethMinersTransactionInputs(dbConnPgx utils.PgxIface, gethMinersTransactionInputs []GethMinerTransactionInput) error

func InsertGethMinersTransactions

func InsertGethMinersTransactions(dbConnPgx utils.PgxIface, gethMinersTransaction []GethMinerTransaction) error

func RemoveAllTransactionsAndTransactionInputs

func RemoveAllTransactionsAndTransactionInputs(dbConnPgx utils.PgxIface) error

func RemoveGethMiner

func RemoveGethMiner(dbConnPgx utils.PgxIface, gethMinerID *int) error

func RemoveGethMinerTransaction

func RemoveGethMinerTransaction(dbConnPgx utils.PgxIface, minerID, transactionID *int) error

func RemoveGethMinerTransactionInput

func RemoveGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerID, transactionInputID *int) error

func UpdateGethMiner

func UpdateGethMiner(dbConnPgx utils.PgxIface, gethMiner *GethMiner) error

func UpdateGethMinerAddresses

func UpdateGethMinerAddresses(dbConnPgx utils.PgxIface, gethMinerID *int) error

func UpdateGethMinerTransaction

func UpdateGethMinerTransaction(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransaction) error

func UpdateGethMinerTransactionInput

func UpdateGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerTransactionInput *GethMinerTransactionInput) error

Types

type GethMiner

type GethMiner struct {
	ID                  *int      `json:"id" db:"id"`                                     //1
	UUID                string    `json:"uuid" db:"uuid"`                                 //2
	Name                string    `json:"name" db:"name"`                                 //3
	AlternateName       string    `json:"alternateName" db:"alternate_name"`              //4
	ChainID             *int      `json:"chainId" db:"chain_id"`                          //5
	ExchangeID          *int      `json:"exchangeId" db:"exchange_id"`                    //6
	StartingBlockNumber *int      `json:"startingBlockNumber" db:"starting_block_number"` //7
	CreatedTxnHash      string    `json:"createdTxnHash" db:"created_txn_hash"`           //8
	LastBlockNumber     *uint64   `json:"lastBlockNumber" db:"last_block_number"`         //9
	ContractAddress     string    `json:"contractAddress" db:"contract_address"`          //10
	ContractAddressID   *int      `json:"contractAddressId" db:"contract_address_id"`     //11
	DeveloperAddress    string    `json:"developerAddress" db:"developer_address"`        //12
	DeveloperAddressID  *int      `json:"developerAddressId" db:"developer_address_id"`   //13
	MiningAssetID       *int      `json:"miningAssetId" db:"mining_asset_id"`             //14
	Description         string    `json:"description" db:"description"`                   //15
	CreatedBy           string    `json:"createdBy" db:"created_by"`                      //16
	CreatedAt           time.Time `json:"createdAt" db:"created_at"`                      //17
	UpdatedBy           string    `json:"updatedBy" db:"updated_by"`                      //18
	UpdatedAt           time.Time `json:"updatedAt" db:"updated_at"`                      //19
}

func GetGethMiner

func GetGethMiner(dbConnPgx utils.PgxIface, gethMinerID *int) (*GethMiner, error)

func GetGethMinerList

func GetGethMinerList(dbConnPgx utils.PgxIface) ([]GethMiner, error)

func GetGethMinerListByMiningAssetId

func GetGethMinerListByMiningAssetId(dbConnPgx utils.PgxIface, miningAssetID *int) ([]GethMiner, error)

func GetGethMinerListByPagination

func GetGethMinerListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethMiner, error)

for refinedev

type GethMinerTransaction

type GethMinerTransaction struct {
	MinerID       *int      `json:"minerId" db:"miner_id"`             //1
	TransactionID *int      `json:"transactionId" db:"transaction_id"` //2
	UUID          string    `json:"uuid" db:"uuid"`                    //3
	Name          string    `json:"name" db:"name"`                    //4
	AlternateName string    `json:"alternateName" db:"alternate_name"` //5
	Description   string    `json:"description" db:"description"`      //6
	CreatedBy     string    `json:"createdBy" db:"created_by"`         //7
	CreatedAt     time.Time `json:"createdAt" db:"created_at"`         //8
	UpdatedBy     string    `json:"updatedBy" db:"updated_by"`         //9
	UpdatedAt     time.Time `json:"updatedAt" db:"updated_at"`         //10
}

func GetAllGethMinerTransactionsByMinerID

func GetAllGethMinerTransactionsByMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethMinerTransaction, error)

func GetAllGethMinerTransactionsByTransactionID

func GetAllGethMinerTransactionsByTransactionID(dbConnPgx utils.PgxIface, transactionID *int) ([]GethMinerTransaction, error)

func GetGethMinerTransaction

func GetGethMinerTransaction(dbConnPgx utils.PgxIface, minerID, transactionID *int) (*GethMinerTransaction, error)

func GetGethMinerTransactionList

func GetGethMinerTransactionList(dbConnPgx utils.PgxIface, minerIDs, transactionIDs []int) ([]GethMinerTransaction, error)

func GetMinerTransactionListByPagination

func GetMinerTransactionListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethMinerTransaction, error)

for refinedev

type GethMinerTransactionInput

type GethMinerTransactionInput struct {
	MinerID            *int      `json:"minerId" db:"miner_id"`                        //1
	TransactionInputID *int      `json:"transactionInputId" db:"transaction_input_id"` //2
	UUID               string    `json:"uuid" db:"uuid"`                               //3
	Name               string    `json:"name" db:"name"`                               //4
	AlternateName      string    `json:"alternateName" db:"alternate_name"`            //5
	Description        string    `json:"description" db:"description"`                 //6
	CreatedBy          string    `json:"createdBy" db:"created_by"`                    //7
	CreatedAt          time.Time `json:"createdAt" db:"created_at"`                    //8
	UpdatedBy          string    `json:"updatedBy" db:"updated_by"`                    //9
	UpdatedAt          time.Time `json:"updatedAt" db:"updated_at"`                    //10
}

func GetAllGethMinerTransactionInputsByMinerID

func GetAllGethMinerTransactionInputsByMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethMinerTransactionInput, error)

func GetAllGethMinerTransactionInputsByTransactionInputID

func GetAllGethMinerTransactionInputsByTransactionInputID(dbConnPgx utils.PgxIface, transactionInputID *int) ([]GethMinerTransactionInput, error)

func GetGethMinerTransactionInput

func GetGethMinerTransactionInput(dbConnPgx utils.PgxIface, minerID, transactionInputID *int) (*GethMinerTransactionInput, error)

func GetGethMinerTransactionInputList

func GetGethMinerTransactionInputList(dbConnPgx utils.PgxIface, minerIDs, transactionInputIDs []int) ([]GethMinerTransactionInput, error)

func GetMinerTransactionInputListByPagination

func GetMinerTransactionInputListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethMinerTransactionInput, error)

for refinedev

Jump to

Keyboard shortcuts

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