Module deep_space::utils

source ·

Structs§

Enums§

Functions§

  • Checks a tx response code for known issues returns true if tx is good, false if the tx has some known error
  • Returns what fee related problem is keeping your tx from running, you may need to run this more than once because the simulator only returns one error at a time. returns None if there are no fee related errors This is more brittle than it needs to be because the simulate endpoint (A) returns only one problem at a time and (B) returns insufficient fee messages as a memo, not an error type
  • Helper function for encoding the the proto any type
  • A function that takes a hexadecimal representation of bytes back into a stream of bytes.