Versions in this module Expand all Collapse all v0 v0.3.1 Dec 22, 2021 Changes in this version + var ErrPersonAlreadyExists = errors.New("src: Person already exists") + var ErrPersonNotFound = errors.New("src: Person not found") + var ErrUnknownRequest = errors.New("unknown request") + var PersonState = PersonStateHandler + func Execute(deps *std.Deps, _ types.Env, messageInfo types.MessageInfo, ...) (*types.Response, error) + func Instantiate(_ *std.Deps, _ types.Env, _ types.MessageInfo, _ []byte) (*types.Response, error) + func Migrate(_ *std.Deps, _ types.Env, _ []byte) (*types.Response, error) + func Query(deps *std.Deps, env types.Env, messageBytes []byte) ([]byte, error) + type ExecuteMsg struct + CreateIdentity *MsgCreateIdentity + DeleteIdentity *MsgDelete + UpdateCity *MsgUpdateCity + func (v *ExecuteMsg) UnmarshalJSON(data []byte) error + func (v *ExecuteMsg) UnmarshalTinyJSON(l *jlexer.Lexer) + func (v ExecuteMsg) MarshalJSON() ([]byte, error) + func (v ExecuteMsg) MarshalTinyJSON(w *jwriter.Writer) + type MsgCreateIdentity struct + City string + Name string + PostalCode int32 + Surname string + func (v *MsgCreateIdentity) UnmarshalJSON(data []byte) error + func (v *MsgCreateIdentity) UnmarshalTinyJSON(l *jlexer.Lexer) + func (v MsgCreateIdentity) MarshalJSON() ([]byte, error) + func (v MsgCreateIdentity) MarshalTinyJSON(w *jwriter.Writer) + type MsgDelete struct + func (v *MsgDelete) UnmarshalJSON(data []byte) error + func (v *MsgDelete) UnmarshalTinyJSON(l *jlexer.Lexer) + func (v MsgDelete) MarshalJSON() ([]byte, error) + func (v MsgDelete) MarshalTinyJSON(w *jwriter.Writer) + type MsgUpdateCity struct + City string + PostalCode int32 + func (v *MsgUpdateCity) UnmarshalJSON(data []byte) error + func (v *MsgUpdateCity) UnmarshalTinyJSON(l *jlexer.Lexer) + func (v MsgUpdateCity) MarshalJSON() ([]byte, error) + func (v MsgUpdateCity) MarshalTinyJSON(w *jwriter.Writer) + type Person struct + Address string + City string + Name string + PostalCode int32 + Surname string + func (v *Person) UnmarshalJSON(data []byte) error + func (v *Person) UnmarshalTinyJSON(l *jlexer.Lexer) + func (v Person) MarshalJSON() ([]byte, error) + func (v Person) MarshalTinyJSON(w *jwriter.Writer) + type PersonStateHandler struct + func (x PersonStateHandler) Create(storage std.Storage, o Person) error + func (x PersonStateHandler) Delete(storage std.Storage, o Person) error + func (x PersonStateHandler) Read(storage std.Storage, address string) (Person, error) + func (x PersonStateHandler) Update(storage std.Storage, address string, f func(old *Person) (*Person, error)) (err error) + type QueryIdentity struct + ID string + func (v *QueryIdentity) UnmarshalJSON(data []byte) error + func (v *QueryIdentity) UnmarshalTinyJSON(l *jlexer.Lexer) + func (v QueryIdentity) MarshalJSON() ([]byte, error) + func (v QueryIdentity) MarshalTinyJSON(w *jwriter.Writer) + type QueryMsg struct + Identity *QueryIdentity + func (v *QueryMsg) UnmarshalJSON(data []byte) error + func (v *QueryMsg) UnmarshalTinyJSON(l *jlexer.Lexer) + func (v QueryMsg) MarshalJSON() ([]byte, error) + func (v QueryMsg) MarshalTinyJSON(w *jwriter.Writer)