Documentation ¶
Index ¶
- func GetDistinctAddressesFromAssetId(dbConnPgx utils.PgxIface, assetID *int) ([]gethlyleaddresses.GethAddress, error)
- func GetDistinctTransactionHashesFromAssetIdAndStartingBlock(dbConnPgx utils.PgxIface, assetID *int, startingBlock *uint64) ([]string, error)
- func GetHighestBlockFromBaseAssetId(dbConnPgx utils.PgxIface, baseAssetID *int) (*uint64, error)
- func GetNullAddressStrsFromTransfers(dbConnPgx utils.PgxIface, baseAssetID *int) ([]string, error)
- func GetTotalTransfersCount(dbConnPgx utils.PgxIface) (*int, error)
- func GetTransfersTransactionHashByUserAddress(dbConnPgx utils.PgxIface, userAddressID, assetID *int, blockNumber *uint64) ([]string, error)
- func InsertGethTransfer(dbConnPgx utils.PgxIface, gethTransfer *GethTransfer) (int, string, error)
- func InsertGethTransfers(dbConnPgx utils.PgxIface, gethTransfers []GethTransfer) error
- func RemoveGethTransfer(dbConnPgx utils.PgxIface, gethTransferID *int) error
- func RemoveGethTransfersFromBaseAssetID(dbConnPgx utils.PgxIface, baseAssetID *int) error
- func RemoveGethTransfersFromBaseAssetIDAndStartBlockNumber(dbConnPgx utils.PgxIface, baseAssetID *int, startBlockNumber *uint64) error
- func UpdateGethTransfer(dbConnPgx utils.PgxIface, gethTransfer *GethTransfer) error
- func UpdateGethTransferAddresses(dbConnPgx utils.PgxIface, baseAssetID *int) error
- func UpdateGethTransfersAssetIDs(dbConnPgx utils.PgxIface) error
- type Attrs
- type GethTransfer
- func GetGethTransfer(dbConnPgx utils.PgxIface, gethTransferID *int) (*GethTransfer, error)
- func GetGethTransferByBlockChain(dbConnPgx utils.PgxIface, txnHash string, blockNumber *uint64, ...) (*GethTransfer, error)
- func GetGethTransferByFromBaseAssetIDAndBeforeBlockNumber(dbConnPgx utils.PgxIface, baseAssetID *int, blockNumber *uint64) ([]GethTransfer, error)
- func GetGethTransferByFromMakerAddressAndTokenAddressID(dbConnPgx utils.PgxIface, makerAddressID, tokenAddressID *int) ([]GethTransfer, error)
- func GetGethTransferByFromMakerAddressAndTokenAddressIDAndBeforeBlockNumber(dbConnPgx utils.PgxIface, makerAddressID, baseAssetID *int, ...) ([]GethTransfer, error)
- func GetGethTransferByFromTokenAddress(dbConnPgx utils.PgxIface, tokenAddressID *int) ([]GethTransfer, error)
- func GetGethTransferList(dbConnPgx utils.PgxIface) ([]GethTransfer, error)
- func GetGethTransferListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]GethTransfer, error)
- func GetGethTransfersByTxnHash(dbConnPgx utils.PgxIface, txnHash string, baseAssetID *int) ([]GethTransfer, error)
- func GetGethTransfersByTxnHashes(dbConnPgx utils.PgxIface, txnHashes []string, baseAssetID *int) ([]GethTransfer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDistinctAddressesFromAssetId ¶
func GetDistinctAddressesFromAssetId(dbConnPgx utils.PgxIface, assetID *int) ([]gethlyleaddresses.GethAddress, error)
func InsertGethTransfer ¶
func InsertGethTransfers ¶
func InsertGethTransfers(dbConnPgx utils.PgxIface, gethTransfers []GethTransfer) error
func RemoveGethTransfer ¶
func UpdateGethTransfer ¶
func UpdateGethTransfer(dbConnPgx utils.PgxIface, gethTransfer *GethTransfer) error
Types ¶
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 GetGethTransferByFromMakerAddressAndTokenAddressID ¶
func GetGethTransferByFromMakerAddressAndTokenAddressID(dbConnPgx utils.PgxIface, makerAddressID, tokenAddressID *int) ([]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
Click to show internal directories.
Click to hide internal directories.