Constructs a new PumpAmmLpTokenPriceTask.
Optional
properties: IPumpAmmLpTokenPriceTaskProperties to set
Required. The address of the liquidity pool in the Pump AMM.
Optional
xRequired. The job to execute to fetch the price of the pool x token
Optional
yRequired. The job to execute
Converts this PumpAmmLpTokenPriceTask to JSON.
JSON object
Static
createCreates a new PumpAmmLpTokenPriceTask instance using the specified properties.
Optional
properties: IPumpAmmLpTokenPriceTaskProperties to set
PumpAmmLpTokenPriceTask instance
Static
decodeDecodes a PumpAmmLpTokenPriceTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
PumpAmmLpTokenPriceTask
Static
decodeDecodes a PumpAmmLpTokenPriceTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
PumpAmmLpTokenPriceTask
Static
encodeEncodes the specified PumpAmmLpTokenPriceTask message. Does not implicitly {@apilink oracle_job.OracleJob.PumpAmmLpTokenPriceTask.verify|verify} messages.
PumpAmmLpTokenPriceTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified PumpAmmLpTokenPriceTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.PumpAmmLpTokenPriceTask.verify|verify} messages.
PumpAmmLpTokenPriceTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a PumpAmmLpTokenPriceTask message from a plain object. Also converts values to their respective internal types.
Plain object
PumpAmmLpTokenPriceTask
Static
getGets the default type url for PumpAmmLpTokenPriceTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toCreates a plain object from a PumpAmmLpTokenPriceTask message. Also converts values to other types if specified.
PumpAmmLpTokenPriceTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyVerifies a PumpAmmLpTokenPriceTask message.
Plain object to verify
null
if valid, otherwise the reason why it is not
Derive the fair LP token price for a given Pump AMM liquidity pool.
Input: Pool address, X token price job, Y token price job. Returns: The fair LP token price for the given Pump AMM liquidity pool. Example: Derive the fair LP token price for a given Pump AMM liquidity pool.