gethlyletransfers

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDistinctAddressesFromAssetId

func GetDistinctAddressesFromAssetId(dbConnPgx utils.PgxIface, assetID *int) ([]gethlyleaddresses.GethAddress, error)

func GetDistinctTransactionHashesFromAssetIdAndStartingBlock

func GetDistinctTransactionHashesFromAssetIdAndStartingBlock(dbConnPgx utils.PgxIface, assetID *int, startingBlock *uint64) ([]string, error)

func GetHighestBlockFromBaseAssetId

func GetHighestBlockFromBaseAssetId(dbConnPgx utils.PgxIface, baseAssetID *int) (*uint64, error)

func GetNullAddressStrsFromTransfers

func GetNullAddressStrsFromTransfers(dbConnPgx utils.PgxIface, baseAssetID *int) ([]string, error)

func GetTotalTransfersCount

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

func GetTransfersTransactionHashByUserAddress

func GetTransfersTransactionHashByUserAddress(dbConnPgx utils.PgxIface, userAddressID, assetID *int, blockNumber *uint64) ([]string, error)

func InsertGethTransfer

func InsertGethTransfer(dbConnPgx utils.PgxIface, gethTransfer *GethTransfer) (int, string, error)

func InsertGethTransfers

func InsertGethTransfers(dbConnPgx utils.PgxIface, gethTransfers []GethTransfer) error

func RemoveGethTransfer

func RemoveGethTransfer(dbConnPgx utils.PgxIface, gethTransferID *int) error

func RemoveGethTransfersFromBaseAssetID

func RemoveGethTransfersFromBaseAssetID(dbConnPgx utils.PgxIface, baseAssetID *int) error

func RemoveGethTransfersFromBaseAssetIDAndStartBlockNumber

func RemoveGethTransfersFromBaseAssetIDAndStartBlockNumber(dbConnPgx utils.PgxIface, baseAssetID *int, startBlockNumber *uint64) error

func UpdateGethTransfer

func UpdateGethTransfer(dbConnPgx utils.PgxIface, gethTransfer *GethTransfer) error

func UpdateGethTransferAddresses

func UpdateGethTransferAddresses(dbConnPgx utils.PgxIface, baseAssetID *int) error

func UpdateGethTransfersAssetIDs

func UpdateGethTransfersAssetIDs(dbConnPgx utils.PgxIface) error

Types

type Attrs

type Attrs map[string]interface{}

func (*Attrs) Scan

func (a *Attrs) Scan(value interface{}) error

func (Attrs) Value

func (a Attrs) Value() (driver.Value, error)

type GethTransfer

type GethTransfer struct {
	ID               *int             `json:"id" db:"id"`                                //1
	UUID             string           `json:"uuid" db:"uuid"`                            //2
	ChainID          *int             `json:"chainId" db:"chain_id"`                     //3
	TokenAddress     string           `json:"tokenAddress" db:"token_address"`           //4
	TokenAddressID   *int             `json:"tokenAddressId" db:"token_address_id"`      //5
	AssetID          *int             `json:"assetId" db:"asset_id"`                     //6
	BlockNumber      *uint64          `json:"blockNumber" db:"block_number"`             //7
	IndexNumber      *uint            `json:"indexNumber" db:"index_number"`             //8
	TransferDate     *time.Time       `json:"transferDate" db:"transfer_date"`           //9
	TxnHash          string           `json:"txnHash" db:"txn_hash"`                     //10
	SenderAddress    string           `json:"senderAddress" db:"sender_address"`         //11
	SenderAddressID  *int             `json:"senderAddressID" db:"sender_address_id"`    //12
	ToAddress        string           `json:"toAddress" db:"to_address"`                 //13
	ToAddressID      *int             `json:"toAddressID" db:"to_address_id"`            //14
	Amount           *decimal.Decimal `json:"amount" db:"amount"`                        //15
	Description      string           `json:"description" db:"description"`              //16
	CreatedBy        string           `json:"createdBy" db:"created_by"`                 //17
	CreatedAt        time.Time        `json:"createdAt" db:"created_at"`                 //18
	UpdatedBy        string           `json:"updatedBy" db:"updated_by"`                 //19
	UpdatedAt        time.Time        `json:"updatedAt" db:"updated_at"`                 //20
	GethProcessJobID *int             `json:"gethProcessJobId" db:"geth_process_job_id"` //21
	TopicsStr        []string         `json:"topicsStr" db:"topics_str"`                 //22
	StatusID         *int             `json:"statusId" db:"status_id"`                   //23
	BaseAssetID      *int             `json:"baseAssetId" db:"base_asset_id"`            //24
	TransferTypeID   *int             `json:"transferTypeId" db:"transfer_type_id"`      //25
}

func GetGethTransfer

func GetGethTransfer(dbConnPgx utils.PgxIface, gethTransferID *int) (*GethTransfer, error)

func GetGethTransferByBlockChain

func GetGethTransferByBlockChain(dbConnPgx utils.PgxIface, txnHash string, blockNumber *uint64, indexNumber *uint) (*GethTransfer, error)

func GetGethTransferByFromBaseAssetIDAndBeforeBlockNumber

func GetGethTransferByFromBaseAssetIDAndBeforeBlockNumber(dbConnPgx utils.PgxIface, baseAssetID *int, blockNumber *uint64) ([]GethTransfer, error)

func GetGethTransferByFromMakerAddressAndTokenAddressID

func GetGethTransferByFromMakerAddressAndTokenAddressID(dbConnPgx utils.PgxIface, makerAddressID, tokenAddressID *int) ([]GethTransfer, error)

func GetGethTransferByFromMakerAddressAndTokenAddressIDAndBeforeBlockNumber

func GetGethTransferByFromMakerAddressAndTokenAddressIDAndBeforeBlockNumber(dbConnPgx utils.PgxIface, makerAddressID, baseAssetID *int, blockNumber *uint64) ([]GethTransfer, error)

func GetGethTransferByFromTokenAddress

func GetGethTransferByFromTokenAddress(dbConnPgx utils.PgxIface, tokenAddressID *int) ([]GethTransfer, error)

func GetGethTransferList

func GetGethTransferList(dbConnPgx utils.PgxIface) ([]GethTransfer, error)

func GetGethTransferListByPagination

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

for refinedev

func GetGethTransfersByTxnHash

func GetGethTransfersByTxnHash(dbConnPgx utils.PgxIface, txnHash string, baseAssetID *int) ([]GethTransfer, error)

func GetGethTransfersByTxnHashes

func GetGethTransfersByTxnHashes(dbConnPgx utils.PgxIface, txnHashes []string, baseAssetID *int) ([]GethTransfer, error)

Jump to

Keyboard shortcuts

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