Constructs a new SushiswapExchangeRateTask.
Optionalproperties: ISushiswapExchangeRateTaskProperties 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 SushiswapExchangeRateTask to JSON.
JSON object
StaticcreateCreates a new SushiswapExchangeRateTask instance using the specified properties.
Optionalproperties: ISushiswapExchangeRateTaskProperties to set
SushiswapExchangeRateTask instance
StaticdecodeDecodes a SushiswapExchangeRateTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
SushiswapExchangeRateTask
StaticdecodeDecodes a SushiswapExchangeRateTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
SushiswapExchangeRateTask
StaticencodeEncodes the specified SushiswapExchangeRateTask message. Does not implicitly {@apilink oracle_job.OracleJob.SushiswapExchangeRateTask.verify|verify} messages.
SushiswapExchangeRateTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified SushiswapExchangeRateTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.SushiswapExchangeRateTask.verify|verify} messages.
SushiswapExchangeRateTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a SushiswapExchangeRateTask message from a plain object. Also converts values to their respective internal types.
Plain object
SushiswapExchangeRateTask
StaticgetGets the default type url for SushiswapExchangeRateTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a SushiswapExchangeRateTask message. Also converts values to other types if specified.
SushiswapExchangeRateTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a SushiswapExchangeRateTask message.
Plain object to verify
null if valid, otherwise the reason why it is not
Fetch the swap price from SushiSwap.