Documentation ¶
Index ¶
- type Amm
- type CreateAmmParams
- type CreatePoolParams
- type CreateTokenParams
- type DBTX
- type GetPoolByAddressExtraParams
- type GetPoolsByPairParams
- type Indexer
- type InitIndexerParams
- type Pool
- type Querier
- type Queries
- func (q *Queries) CreateAmm(ctx context.Context, arg CreateAmmParams) (Amm, error)
- func (q *Queries) CreatePool(ctx context.Context, arg CreatePoolParams) (Pool, error)
- func (q *Queries) CreateToken(ctx context.Context, arg CreateTokenParams) (Token, error)
- func (q *Queries) DeleteAmm(ctx context.Context, ammID int64) error
- func (q *Queries) DeletePool(ctx context.Context, poolID int64) error
- func (q *Queries) DeleteToken(ctx context.Context, address string) error
- func (q *Queries) GetAllAmms(ctx context.Context) ([]Amm, error)
- func (q *Queries) GetAllPools(ctx context.Context) ([]Pool, error)
- func (q *Queries) GetAllPoolsWithoutKeys(ctx context.Context) ([]Pool, error)
- func (q *Queries) GetAllTokens(ctx context.Context) ([]Token, error)
- func (q *Queries) GetAllTokensWithTickers(ctx context.Context) ([]Token, error)
- func (q *Queries) GetAmmByDEX(ctx context.Context, dexName string) ([]Amm, error)
- func (q *Queries) GetAmmById(ctx context.Context, ammID int64) (Amm, error)
- func (q *Queries) GetAmmKeys(ctx context.Context) ([]string, error)
- func (q *Queries) GetBaseTokens(ctx context.Context) ([]Token, error)
- func (q *Queries) GetHashedIndexerPwd(ctx context.Context) (string, error)
- func (q *Queries) GetIndexerStatus(ctx context.Context) (Indexer, error)
- func (q *Queries) GetKeys(ctx context.Context) ([]string, error)
- func (q *Queries) GetNativeTokens(ctx context.Context) ([]Token, error)
- func (q *Queries) GetPoolByAddress(ctx context.Context, address string) (Pool, error)
- func (q *Queries) GetPoolByAddressExtra(ctx context.Context, arg GetPoolByAddressExtraParams) (Pool, error)
- func (q *Queries) GetPoolsByAmm(ctx context.Context, ammID int64) ([]Pool, error)
- func (q *Queries) GetPoolsByPair(ctx context.Context, arg GetPoolsByPairParams) ([]Pool, error)
- func (q *Queries) GetPoolsByToken(ctx context.Context, tokenA string) ([]Pool, error)
- func (q *Queries) GetTokenAPriceByPool(ctx context.Context, poolID int64) (string, error)
- func (q *Queries) GetTokenBPriceByPool(ctx context.Context, poolID int64) (string, error)
- func (q *Queries) GetTokenByAddress(ctx context.Context, address string) (Token, error)
- func (q *Queries) GetTokenBySymbol(ctx context.Context, symbol string) (Token, error)
- func (q *Queries) InitIndexer(ctx context.Context, arg InitIndexerParams) (Indexer, error)
- func (q *Queries) UpdateBaseNativeStatus(ctx context.Context, arg UpdateBaseNativeStatusParams) (Token, error)
- func (q *Queries) UpdateIndexerStatus(ctx context.Context, arg UpdateIndexerStatusParams) (Indexer, error)
- func (q *Queries) UpdatePoolExtraData(ctx context.Context, arg UpdatePoolExtraDataParams) (Pool, error)
- func (q *Queries) UpdatePoolFee(ctx context.Context, arg UpdatePoolFeeParams) (Pool, error)
- func (q *Queries) UpdatePoolGeneralExtraData(ctx context.Context, arg UpdatePoolGeneralExtraDataParams) (Pool, error)
- func (q *Queries) UpdatePoolReserves(ctx context.Context, arg UpdatePoolReservesParams) (Pool, error)
- func (q *Queries) UpdatePoolReservesWithExtraData(ctx context.Context, arg UpdatePoolReservesWithExtraDataParams) (Pool, error)
- func (q *Queries) UpdatePoolTV(ctx context.Context, arg UpdatePoolTVParams) (Pool, error)
- func (q *Queries) UpdatePrice(ctx context.Context, arg UpdatePriceParams) (Token, error)
- func (q *Queries) UpdateTicker(ctx context.Context, arg UpdateTickerParams) (Token, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SQLStore
- type Store
- type Token
- type UpdateBaseNativeStatusParams
- type UpdateIndexerStatusParams
- type UpdatePoolExtraDataParams
- type UpdatePoolFeeParams
- type UpdatePoolGeneralExtraDataParams
- type UpdatePoolReservesParams
- type UpdatePoolReservesWithExtraDataParams
- type UpdatePoolTVParams
- type UpdatePriceParams
- type UpdateTickerParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAmmParams ¶
type CreatePoolParams ¶
type CreateTokenParams ¶
type GetPoolByAddressExtraParams ¶
type GetPoolByAddressExtraParams struct { Address string `json:"address"` ExtraData sql.NullString `json:"extra_data"` }
type GetPoolsByPairParams ¶
type InitIndexerParams ¶
type InitIndexerParams struct { HashedPassword string `json:"hashed_password"` LastQueriedBlock sql.NullInt64 `json:"last_queried_block"` LastQueriedHash sql.NullString `json:"last_queried_hash"` }
type Pool ¶
type Pool struct { PoolID int64 `json:"pool_id"` Address string `json:"address"` AmmID int64 `json:"amm_id"` TokenA string `json:"token_a"` TokenB string `json:"token_b"` ReserveA string `json:"reserve_a"` ReserveB string `json:"reserve_b"` Fee string `json:"fee"` TotalValue string `json:"total_value"` ExtraData sql.NullString `json:"extra_data"` GeneralExtraData sql.NullString `json:"general_extra_data"` LastUpdated time.Time `json:"last_updated"` LastBlock int64 `json:"last_block"` }
type Querier ¶
type Querier interface { CreateAmm(ctx context.Context, arg CreateAmmParams) (Amm, error) CreatePool(ctx context.Context, arg CreatePoolParams) (Pool, error) CreateToken(ctx context.Context, arg CreateTokenParams) (Token, error) DeleteAmm(ctx context.Context, ammID int64) error DeletePool(ctx context.Context, poolID int64) error DeleteToken(ctx context.Context, address string) error GetAllAmms(ctx context.Context) ([]Amm, error) GetAllPools(ctx context.Context) ([]Pool, error) GetAllPoolsWithoutKeys(ctx context.Context) ([]Pool, error) GetAllTokens(ctx context.Context) ([]Token, error) GetAllTokensWithTickers(ctx context.Context) ([]Token, error) GetAmmByDEX(ctx context.Context, dexName string) ([]Amm, error) GetAmmById(ctx context.Context, ammID int64) (Amm, error) GetAmmKeys(ctx context.Context) ([]string, error) GetBaseTokens(ctx context.Context) ([]Token, error) GetHashedIndexerPwd(ctx context.Context) (string, error) GetIndexerStatus(ctx context.Context) (Indexer, error) GetKeys(ctx context.Context) ([]string, error) GetNativeTokens(ctx context.Context) ([]Token, error) GetPoolByAddress(ctx context.Context, address string) (Pool, error) GetPoolByAddressExtra(ctx context.Context, arg GetPoolByAddressExtraParams) (Pool, error) GetPoolsByAmm(ctx context.Context, ammID int64) ([]Pool, error) GetPoolsByPair(ctx context.Context, arg GetPoolsByPairParams) ([]Pool, error) GetPoolsByToken(ctx context.Context, tokenA string) ([]Pool, error) GetTokenAPriceByPool(ctx context.Context, poolID int64) (string, error) GetTokenBPriceByPool(ctx context.Context, poolID int64) (string, error) GetTokenByAddress(ctx context.Context, address string) (Token, error) GetTokenBySymbol(ctx context.Context, symbol string) (Token, error) InitIndexer(ctx context.Context, arg InitIndexerParams) (Indexer, error) UpdateBaseNativeStatus(ctx context.Context, arg UpdateBaseNativeStatusParams) (Token, error) UpdateIndexerStatus(ctx context.Context, arg UpdateIndexerStatusParams) (Indexer, error) UpdatePoolExtraData(ctx context.Context, arg UpdatePoolExtraDataParams) (Pool, error) UpdatePoolFee(ctx context.Context, arg UpdatePoolFeeParams) (Pool, error) UpdatePoolGeneralExtraData(ctx context.Context, arg UpdatePoolGeneralExtraDataParams) (Pool, error) UpdatePoolReserves(ctx context.Context, arg UpdatePoolReservesParams) (Pool, error) UpdatePoolReservesWithExtraData(ctx context.Context, arg UpdatePoolReservesWithExtraDataParams) (Pool, error) UpdatePoolTV(ctx context.Context, arg UpdatePoolTVParams) (Pool, error) UpdatePrice(ctx context.Context, arg UpdatePriceParams) (Token, error) UpdateTicker(ctx context.Context, arg UpdateTickerParams) (Token, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreatePool ¶
func (*Queries) CreateToken ¶
func (*Queries) DeleteToken ¶
func (*Queries) GetAllPoolsWithoutKeys ¶
func (*Queries) GetAllTokensWithTickers ¶
func (*Queries) GetAmmByDEX ¶
func (*Queries) GetAmmById ¶
func (*Queries) GetBaseTokens ¶
func (*Queries) GetHashedIndexerPwd ¶
func (*Queries) GetIndexerStatus ¶
func (*Queries) GetNativeTokens ¶
func (*Queries) GetPoolByAddress ¶
func (*Queries) GetPoolByAddressExtra ¶
func (*Queries) GetPoolsByAmm ¶
func (*Queries) GetPoolsByPair ¶
func (*Queries) GetPoolsByToken ¶
func (*Queries) GetTokenAPriceByPool ¶
func (*Queries) GetTokenBPriceByPool ¶
func (*Queries) GetTokenByAddress ¶
func (*Queries) GetTokenBySymbol ¶
func (*Queries) InitIndexer ¶
func (*Queries) UpdateBaseNativeStatus ¶
func (*Queries) UpdateIndexerStatus ¶
func (*Queries) UpdatePoolExtraData ¶
func (*Queries) UpdatePoolFee ¶
func (*Queries) UpdatePoolGeneralExtraData ¶
func (*Queries) UpdatePoolReserves ¶
func (*Queries) UpdatePoolReservesWithExtraData ¶
func (*Queries) UpdatePoolTV ¶
func (*Queries) UpdatePrice ¶
func (*Queries) UpdateTicker ¶
type UpdateIndexerStatusParams ¶
type UpdateIndexerStatusParams struct { LastQueriedBlock sql.NullInt64 `json:"last_queried_block"` LastQueriedHash sql.NullString `json:"last_queried_hash"` }
type UpdatePoolExtraDataParams ¶
type UpdatePoolExtraDataParams struct { PoolID int64 `json:"pool_id"` ExtraData sql.NullString `json:"extra_data"` }
type UpdatePoolFeeParams ¶
type UpdatePoolGeneralExtraDataParams ¶
type UpdatePoolGeneralExtraDataParams struct { PoolID int64 `json:"pool_id"` GeneralExtraData sql.NullString `json:"general_extra_data"` LastBlock int64 `json:"last_block"` }
type UpdatePoolReservesWithExtraDataParams ¶
type UpdatePoolReservesWithExtraDataParams struct { PoolID int64 `json:"pool_id"` ExtraData sql.NullString `json:"extra_data"` LastBlock int64 `json:"last_block"` }
type UpdatePoolTVParams ¶
type UpdatePriceParams ¶
type UpdateTickerParams ¶
Click to show internal directories.
Click to hide internal directories.