Constructs a new PancakeswapExchangeRateTask.
Optionalproperties: IPancakeswapExchangeRateTaskProperties to set
The input token address.
The amount of tokens to swap.
The output token address.
The RPC provider to use for the swap.
The allowable slippage in percent for the swap.
Converts this PancakeswapExchangeRateTask to JSON.
JSON object
StaticcreateCreates a new PancakeswapExchangeRateTask instance using the specified properties.
Optionalproperties: IPancakeswapExchangeRateTaskProperties to set
PancakeswapExchangeRateTask instance
StaticdecodeDecodes a PancakeswapExchangeRateTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
PancakeswapExchangeRateTask
StaticdecodeDecodes a PancakeswapExchangeRateTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
PancakeswapExchangeRateTask
StaticencodeEncodes the specified PancakeswapExchangeRateTask message. Does not implicitly {@apilink oracle_job.OracleJob.PancakeswapExchangeRateTask.verify|verify} messages.
PancakeswapExchangeRateTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified PancakeswapExchangeRateTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.PancakeswapExchangeRateTask.verify|verify} messages.
PancakeswapExchangeRateTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a PancakeswapExchangeRateTask message from a plain object. Also converts values to their respective internal types.
Plain object
PancakeswapExchangeRateTask
StaticgetGets the default type url for PancakeswapExchangeRateTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a PancakeswapExchangeRateTask message. Also converts values to other types if specified.
PancakeswapExchangeRateTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a PancakeswapExchangeRateTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Fetch the swap price from PancakeSwap.