Documentation ¶
Index ¶
- func DeleteGethSwapsByBaseAssetId(baseAssetID *int) error
- func GetDistinctMakerAddressesFromBaseTokenAssetID(baseAssetID *int) ([]*int, error)
- func GetDistinctTransactionHashesFromAssetIdAndStartingBlock(assetID *int, startingBlock *uint64) ([]string, error)
- func GetHighestBlockFromBaseAssetId(assetID *int) (*uint64, error)
- func GetHighestSwapBlockFromBaseAssetId(assetID *int) (*uint64, error)
- func GetNullAddressStrsFromSwaps(assetID *int) ([]string, error)
- func InsertGethSwap(gethSwap *GethSwap) (int, string, error)
- func InsertGethSwaps(gethSwaps []*GethSwap) error
- func RemoveGethSwapsFromAssetIDAndStartBlockNumber(baseAssetID *int, startBlockNumber *int) error
- func UpdateGethSwap(gethSwap GethSwap) error
- func UpdateGethSwapAddresses(baseAssetID *int) error
- type GethSwap
- func GetGethSwap(gethSwapID int) (*GethSwap, error)
- func GetGethSwapByBlockChain(txnHash string, blockNumber *uint64, indexNumber *uint, makerAddressID *int, ...) (*GethSwap, error)
- func GetGethSwapByFromBaseAssetAndBeforeBlockNumber(baseAssetID, blockNumber *int) ([]*GethSwap, error)
- func GetGethSwapByFromMakerAddress(makerAddress string) ([]GethSwap, error)
- func GetGethSwapByFromMakerAddressId(makerAddressID *int) ([]*GethSwap, error)
- func GetGethSwapByFromMakerAddressIdAndBeforeBlockNumber(baseAssetID, makerAddressID, blockNumber *int) ([]*GethSwap, error)
- func GetGethSwapByStartAndEndDates(startDate, endDate time.Time) ([]GethSwap, error)
- func GetGethSwapByTxnHash(txnHash string, baseAssetID *int) ([]GethSwap, error)
- func GetGethSwapsByTxnHashes(txnHashes []string, baseAssetID *int) ([]GethSwap, error)
- type GethSwapAudit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGethSwapsByBaseAssetId ¶ added in v1.3.10
func GetDistinctMakerAddressesFromBaseTokenAssetID ¶ added in v1.3.11
func GetDistinctTransactionHashesFromAssetIdAndStartingBlock ¶ added in v1.3.0
func GetHighestBlockFromBaseAssetId ¶ added in v1.3.13
func GetHighestSwapBlockFromBaseAssetId ¶ added in v1.3.10
func GetNullAddressStrsFromSwaps ¶ added in v1.3.0
func InsertGethSwaps ¶
func RemoveGethSwapsFromAssetIDAndStartBlockNumber ¶ added in v1.3.9
func UpdateGethSwap ¶
func UpdateGethSwapAddresses ¶ added in v1.3.0
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"` BaseAssetID *int `json:"baseAssetId"` OraclePriceUSD *decimal.Decimal `json:"oraclePriceUsd"` OraclePriceAssetID *int `json:"oraclePriceAssetId"` }
func GetGethSwap ¶
func GetGethSwapByBlockChain ¶
func GetGethSwapByFromBaseAssetAndBeforeBlockNumber ¶ added in v1.3.25
func GetGethSwapByFromMakerAddressIdAndBeforeBlockNumber ¶ added in v1.3.14
func GetGethSwapByTxnHash ¶
Click to show internal directories.
Click to hide internal directories.