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.
  • Converts a standard GRPC query Request struct into a historical one at the given past_height by adding the “x-cosmos-block-height” gRPC metadata to the request req should be a standard GRPC request like cosmos_sdk_proto_althea::cosmos::bank::v1beta1::QueryBalancesRequest