Documentation ¶
Index ¶
- func GetNullAddressStrsFromTransactions(dbConnPgx utils.PgxIface) ([]string, error)
- func GetTotalTransactionInputsCount(dbConnPgx utils.PgxIface) (*int, error)
- func GetTotalTransactionsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertGethTransaction(dbConnPgx utils.PgxIface, gethTransaction *GethTransaction) (int, string, error)
- func InsertGethTransactionInput(dbConnPgx utils.PgxIface, gethTransactionInput *GethTransactionInput) (int, string, error)
- func InsertGethTransactionInputs(dbConnPgx utils.PgxIface, gethTransactionInputs []GethTransactionInput) error
- func InsertGethTransactions(dbConnPgx utils.PgxIface, gethTransactions []GethTransaction) error
- func RemoveGethTransaction(dbConnPgx utils.PgxIface, gethTransactionID *int) error
- func RemoveGethTransactionInput(dbConnPgx utils.PgxIface, gethTransactionInputID *int) error
- func RemoveGethTransactionsFromChainID(dbConnPgx utils.PgxIface, chainID *int) error
- func RemoveGethTransactionsFromChainIDAndStartBlockNumber(dbConnPgx utils.PgxIface, chainID *int, startBlockNumber *uint64) error
- func UpdateGethTransaction(dbConnPgx utils.PgxIface, gethTransaction *GethTransaction) error
- func UpdateGethTransactionAddresses(dbConnPgx utils.PgxIface) error
- func UpdateGethTransactionInput(dbConnPgx utils.PgxIface, gethTransactionInput *GethTransactionInput) error
- type GethTransaction
- func GetAllGethTransactionsByMinerIDAndFromAddress(dbConnPgx utils.PgxIface, minerID *int, fromAddress string) ([]GethTransaction, error)
- func GetAllGethTransactionsByMinerIDAndFromAddressFromToDate(dbConnPgx utils.PgxIface, minerID *int, fromAddress string, ...) ([]GethTransaction, error)
- func GetAllGethTransactionsByMinerIDAndFromAddressToDate(dbConnPgx utils.PgxIface, minerID *int, fromAddress string, toDate *time.Time) ([]GethTransaction, error)
- func GetGethTransaction(dbConnPgx utils.PgxIface, gethTransactionID *int) (*GethTransaction, error)
- func GetGethTransactionByFromAddressAndBeforeBlockNumber(dbConnPgx utils.PgxIface, fromAddressID *int, blockNumber *uint64) ([]GethTransaction, error)
- func GetGethTransactionByFromToAddress(dbConnPgx utils.PgxIface, fromToAddressID *int) ([]GethTransaction, error)
- func GetGethTransactionList(dbConnPgx utils.PgxIface) ([]GethTransaction, error)
- func GetGethTransactionListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]GethTransaction, error)
- func GetGethTransactionsByTxnHash(dbConnPgx utils.PgxIface, txnHash string) ([]GethTransaction, error)
- func GetGethTransactionsByTxnHashes(dbConnPgx utils.PgxIface, txnHashes []string) ([]GethTransaction, error)
- func GetGethTransactionsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]GethTransaction, error)
- type GethTransactionInput
- func GetGethTransactionInput(dbConnPgx utils.PgxIface, gethTransactionInputID *int) (*GethTransactionInput, error)
- func GetGethTransactionInputByFromMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethTransactionInput, error)
- func GetGethTransactionInputByFromToAddress(dbConnPgx utils.PgxIface, fromToAddressID *int) ([]GethTransactionInput, error)
- func GetGethTransactionInputList(dbConnPgx utils.PgxIface) ([]GethTransactionInput, error)
- func GetTransactionInputListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]GethTransactionInput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertGethTransaction ¶
func InsertGethTransactionInputs ¶
func InsertGethTransactionInputs(dbConnPgx utils.PgxIface, gethTransactionInputs []GethTransactionInput) error
func InsertGethTransactions ¶
func InsertGethTransactions(dbConnPgx utils.PgxIface, gethTransactions []GethTransaction) error
func RemoveGethTransaction ¶
func UpdateGethTransaction ¶
func UpdateGethTransaction(dbConnPgx utils.PgxIface, gethTransaction *GethTransaction) error
func UpdateGethTransactionInput ¶
func UpdateGethTransactionInput(dbConnPgx utils.PgxIface, gethTransactionInput *GethTransactionInput) error
Types ¶
type GethTransaction ¶
type GethTransaction struct { ID *int `json:"id" db:"id"` //1 UUID string `json:"uuid" db:"uuid"` //2 ChainID *int `json:"chainId" db:"chain_id"` //3 ExchangeID *int `json:"exchangeId" db:"exchange_id"` //4 BlockNumber *uint64 `json:"blockNumber" db:"block_number"` //5 IndexNumber *uint `json:"indexNumber" db:"index_number"` //6 TxnDate *time.Time `json:"txnDate" db:"txn_date"` //7 TxnHash string `json:"txnHash" db:"txn_hash"` //8 FromAddress string `json:"senderAddress" db:"from_address"` //9 FromAddressID *int `json:"senderAddressID" db:"from_address_id"` //10 ToAddress string `json:"toAddress" db:"to_address"` //11 ToAddressID *int `json:"toAddressID" db:"to_address_id"` //12 InteractedContractAddress string `json:"interactedContractAddress" db:"interacted_contract_address"` //13 InteractedContractAddressID *int `json:"interactedContractAddressId" db:"interacted_contract_address_id"` //14 NativeAssetID *int `json:"nativeAssetId" db:"native_asset_id"` //15 GethProcessJobID *int `json:"gethProcessJobId" db:"geth_process_job_id"` //16 Value *decimal.Decimal `json:"value" db:"value"` //17 GethTransctionInputId *int `json:"gethTransctionInputId" db:"geth_transction_input_id"` //18 StatusID *int `json:"statusId" db:"status_id"` //19 Description string `json:"description" db:"description"` //20 CreatedBy string `json:"createdBy" db:"created_by"` //21 CreatedAt time.Time `json:"createdAt" db:"created_at"` //22 UpdatedBy string `json:"updatedBy" db:"updated_by"` //23 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //24 }
func GetAllGethTransactionsByMinerIDAndFromAddressFromToDate ¶
func GetAllGethTransactionsByMinerIDAndFromAddressFromToDate(dbConnPgx utils.PgxIface, minerID *int, fromAddress string, fromDate, toDate *time.Time) ([]GethTransaction, error)
fromDate inclusive and toDate exclusive
func GetGethTransaction ¶
func GetGethTransaction(dbConnPgx utils.PgxIface, gethTransactionID *int) (*GethTransaction, error)
func GetGethTransactionByFromToAddress ¶
func GetGethTransactionByFromToAddress(dbConnPgx utils.PgxIface, fromToAddressID *int) ([]GethTransaction, error)
func GetGethTransactionList ¶
func GetGethTransactionList(dbConnPgx utils.PgxIface) ([]GethTransaction, error)
func GetGethTransactionListByPagination ¶
func GetGethTransactionListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethTransaction, error)
for refinedev
func GetGethTransactionsByTxnHash ¶
func GetGethTransactionsByTxnHash(dbConnPgx utils.PgxIface, txnHash string) ([]GethTransaction, error)
func GetGethTransactionsByTxnHashes ¶
func GetGethTransactionsByTxnHashes(dbConnPgx utils.PgxIface, txnHashes []string) ([]GethTransaction, error)
func GetGethTransactionsByUUIDs ¶
func GetGethTransactionsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]GethTransaction, error)
type GethTransactionInput ¶
type GethTransactionInput 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 FunctionName string `json:"functionName" db:"function_name"` //5 MethodIDStr string `json:"methodIdStr" db:"method_id_str"` //6 NumOfParameters *int `json:"numOfParameters" db:"num_of_parameters"` //7 Description string `json:"description" db:"description"` //8 CreatedBy string `json:"createdBy" db:"created_by"` //9 CreatedAt time.Time `json:"createdAt" db:"created_at"` //10 UpdatedBy string `json:"updatedBy" db:"updated_by"` //11 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //12 }
func GetGethTransactionInput ¶
func GetGethTransactionInput(dbConnPgx utils.PgxIface, gethTransactionInputID *int) (*GethTransactionInput, error)
func GetGethTransactionInputByFromMinerID ¶
func GetGethTransactionInputByFromMinerID(dbConnPgx utils.PgxIface, minerID *int) ([]GethTransactionInput, error)
func GetGethTransactionInputByFromToAddress ¶
func GetGethTransactionInputByFromToAddress(dbConnPgx utils.PgxIface, fromToAddressID *int) ([]GethTransactionInput, error)
func GetGethTransactionInputList ¶
func GetGethTransactionInputList(dbConnPgx utils.PgxIface) ([]GethTransactionInput, error)
func GetTransactionInputListByPagination ¶
func GetTransactionInputListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethTransactionInput, error)
for refinedev
Click to show internal directories.
Click to hide internal directories.