Constructs a new LendingRateTask.
Optional
properties: ILendingRateTaskProperties to set
A token mint address supported by the chosen protocol
LendingRateTask field.
01, apricot, francium, jet, larix, mango, port, solend, tulip
Converts this LendingRateTask to JSON.
JSON object
Static
createCreates a new LendingRateTask instance using the specified properties.
Optional
properties: ILendingRateTaskProperties to set
LendingRateTask instance
Static
decodeDecodes a LendingRateTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
LendingRateTask
Static
decodeDecodes a LendingRateTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
LendingRateTask
Static
encodeEncodes the specified LendingRateTask message. Does not implicitly {@apilink oracle_job.OracleJob.LendingRateTask.verify|verify} messages.
LendingRateTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified LendingRateTask message, length delimited. Does not implicitly {@apilink oracle_job.OracleJob.LendingRateTask.verify|verify} messages.
LendingRateTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a LendingRateTask message from a plain object. Also converts values to their respective internal types.
Plain object
LendingRateTask
Static
getGets the default type url for LendingRateTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toCreates a plain object from a LendingRateTask message. Also converts values to other types if specified.
LendingRateTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyVerifies a LendingRateTask message.
Plain object to verify
null
if valid, otherwise the reason why it is not
Fetch the lending rates for various Solana protocols