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