Constructs a new PumpAmmLpTokenPriceTask.
Optionalproperties: IPumpAmmLpTokenPriceTaskProperties to set
Required. The address of the liquidity pool in the Pump AMM.
OptionalxRequired. The job to execute to fetch the price of the pool x token
OptionalyRequired. The job to execute
Converts this PumpAmmLpTokenPriceTask to JSON.
JSON object
StaticcreateCreates a new PumpAmmLpTokenPriceTask instance using the specified properties.
Optionalproperties: IPumpAmmLpTokenPriceTaskProperties to set
PumpAmmLpTokenPriceTask instance
StaticdecodeDecodes a PumpAmmLpTokenPriceTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
PumpAmmLpTokenPriceTask
StaticdecodeDecodes a PumpAmmLpTokenPriceTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
PumpAmmLpTokenPriceTask
StaticencodeEncodes the specified PumpAmmLpTokenPriceTask message. Does not implicitly {@apilink oracle_job.OracleJob.PumpAmmLpTokenPriceTask.verify|verify} messages.
PumpAmmLpTokenPriceTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified PumpAmmLpTokenPriceTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.PumpAmmLpTokenPriceTask.verify|verify} messages.
PumpAmmLpTokenPriceTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a PumpAmmLpTokenPriceTask message from a plain object. Also converts values to their respective internal types.
Plain object
PumpAmmLpTokenPriceTask
StaticgetGets the default type url for PumpAmmLpTokenPriceTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a PumpAmmLpTokenPriceTask message. Also converts values to other types if specified.
PumpAmmLpTokenPriceTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies 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.