Documentation ¶
Index ¶
- func DeleteGethSwapsByToken0Id(token0ID *int) error
- func GetDistinctMakerAddressesFromToken0AssetID(token0AssetID *int) ([]*int, error)
- func GetDistinctTransactionHashesFromAssetIdAndStartingBlock(assetID *int, startingBlock *uint64) ([]string, error)
- func GetHighestBlockFromAssetId(assetID *int) (*uint64, error)
- func GetHighestSwapBlockFromAsset0Id(assetID *int) (*uint64, error)
- func GetNullAddressStrsFromSwaps() ([]string, error)
- func InsertGethSwap(gethSwap *GethSwap) (int, string, error)
- func InsertGethSwaps(gethSwaps []*GethSwap) error
- func UpdateGethSwap(gethSwap GethSwap) error
- func UpdateGethSwapAddresses() error
- type GethSwap
- func GetGethSwap(gethSwapID int) (*GethSwap, error)
- func GetGethSwapByBlockChain(txnHash string, blockNumber *uint64, indexNumber *uint, makerAddressID *int, ...) (*GethSwap, error)
- func GetGethSwapByFromMakerAddress(makerAddress string) ([]GethSwap, error)
- func GetGethSwapByFromMakerAddressId(makerAddressID *int) ([]*GethSwap, error)
- func GetGethSwapByStartAndEndDates(startDate, endDate time.Time) ([]GethSwap, error)
- func GetGethSwapByTxnHash(txnHash string) ([]GethSwap, error)
- type GethSwapAudit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDistinctTransactionHashesFromAssetIdAndStartingBlock ¶ added in v1.3.0
func GetHighestBlockFromAssetId ¶ added in v1.3.0
func GetNullAddressStrsFromSwaps ¶ added in v1.3.0
func InsertGethSwaps ¶
func UpdateGethSwap ¶
func UpdateGethSwapAddresses ¶ added in v1.3.0
func UpdateGethSwapAddresses() error
Types ¶
type GethSwap ¶
type GethSwap struct { ID *int `json:"id"` UUID string `json:"uuid"` ChainID *int `json:"chainId"` ExchangeID *int `json:"exchangeId"` BlockNumber *uint64 `json:"blockNumber"` IndexNumber *uint `json:"indexNumber"` SwapDate time.Time `json:"swapDate"` TradeTypeID *int `json:"tradeTypeId"` TxnHash string `json:"txnHash"` MakerAddress string `json:"makerAddress"` MakerAddressID *int `json:"makerAddressId"` IsBuy *bool `json:"isBuy"` Price *decimal.Decimal `json:"price"` PriceUSD *decimal.Decimal `json:"priceUsd"` Token1PriceUSD *decimal.Decimal `json:"token1PriceUsd"` TotalAmountUSD *decimal.Decimal `json:"totalAmountUsd"` PairAddress string `json:"pairAddress"` LiquidityPoolID *int `json:"liquidityPoolId"` Token0AssetId *int `json:"token0Id"` Token1AssetId *int `json:"token1Id"` Token0Amount *decimal.Decimal `json:"token0Amount"` Token1Amount *decimal.Decimal `json:"token1Amount"` Description string `json:"description"` CreatedBy string `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy string `json:"updatedBy"` UpdatedAt time.Time `json:"updatedAt"` GethProcessJobID *int `json:"gethProcessJobId"` TopicsStr []string `json:"topicsStr"` StatusID *int `json:"statusId"` }
func GetGethSwap ¶
func GetGethSwapByBlockChain ¶
func GetGethSwapByTxnHash ¶
Click to show internal directories.
Click to hide internal directories.