Documentation ¶
Index ¶
- Constants
- Variables
- func GetAccAddress(attrs []sdk.Attribute, key string) (sdk.AccAddress, error)
- func GetString(attrs []sdk.Attribute, key string) (string, error)
- func GetUint64(attrs []sdk.Attribute, key string) (uint64, error)
- func RenderQueryResponse(cdc *codec.Codec, obj interface{}) ([]byte, error)
- type Event
Constants ¶
View Source
const (
// EventTypeMessage defines the Akash message string
EventTypeMessage = akashEventMessageV1
)
Variables ¶
View Source
var ( // ErrNotFound is the error with message "Not found" ErrNotFound = errors.New("Not found") // ErrUnknownType is the error with message "Unknown type" ErrUnknownType = errors.New("Unknown type") // ErrUnknownModule is the error with message "Unknown module" ErrUnknownModule = errors.New("Unknown module") // ErrUnknownAction is the error with message "Unknown action" ErrUnknownAction = errors.New("Unknown action") )
View Source
var (
ErrCouldNotRenderObject = sdkerrors.New("sdkutil", 1, "could not render object")
)
Functions ¶
func GetAccAddress ¶
GetAccAddress take sdk attributes, key and returns account address. Returns error incase of failure.
func GetString ¶
GetString take sdk attributes, key and returns key value. Returns error incase of failure.
Types ¶
Click to show internal directories.
Click to hide internal directories.