Documentation ¶
Index ¶
- Variables
- func Execute(deps *std.Deps, env types.Env, info types.MessageInfo, data []byte) (*types.Response, error)
- func Instantiate(deps *std.Deps, env types.Env, info types.MessageInfo, msg []byte) (*types.Response, error)
- func Migrate(deps *std.Deps, env types.Env, msg []byte) (*types.Response, error)
- func Query(deps *std.Deps, env types.Env, data []byte) ([]byte, error)
- func SaveState(storage std.Storage, state *State) error
- type HandleMsg
- type InitMsg
- type MigrateMsg
- type OtherBalance
- type QueryMsg
- type Recurse
- type RecurseResponse
- type State
- type VerifierResponse
Constants ¶
This section is empty.
Variables ¶
var StateKey = []byte("config")
Functions ¶
func Instantiate ¶
Types ¶
type HandleMsg ¶
type HandleMsg struct { Release *struct{} `json:"release,omitempty"` CpuLoop *struct{} `json:"cpu_loop,omitempty"` StorageLoop *struct{} `json:"storage_loop,omitempty"` MemoryLoop *struct{} `json:"memory_loop,omitempty"` AllocateLargeMemory *struct{} `json:"allocate_large_memory,omitempty"` Panic *struct{} `json:"panic,omitempty"` UserErrorsInApiCalls *struct{} `json:"user_errors_in_api_calls,omitempty"` }
func (HandleMsg) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (HandleMsg) MarshalTinyJSON ¶
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*HandleMsg) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
func (*HandleMsg) UnmarshalTinyJSON ¶
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type InitMsg ¶
func (InitMsg) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (InitMsg) MarshalTinyJSON ¶
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*InitMsg) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
func (*InitMsg) UnmarshalTinyJSON ¶
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type MigrateMsg ¶
type MigrateMsg struct {
Verifier string `json:"verifier"`
}
func (MigrateMsg) MarshalJSON ¶
func (v MigrateMsg) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (MigrateMsg) MarshalTinyJSON ¶
func (v MigrateMsg) MarshalTinyJSON(w *jwriter.Writer)
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*MigrateMsg) UnmarshalJSON ¶
func (v *MigrateMsg) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (*MigrateMsg) UnmarshalTinyJSON ¶
func (v *MigrateMsg) UnmarshalTinyJSON(l *jlexer.Lexer)
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type OtherBalance ¶
type OtherBalance struct {
Address string `json:"address,omitempty"`
}
func (OtherBalance) MarshalJSON ¶
func (v OtherBalance) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (OtherBalance) MarshalTinyJSON ¶
func (v OtherBalance) MarshalTinyJSON(w *jwriter.Writer)
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*OtherBalance) UnmarshalJSON ¶
func (v *OtherBalance) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (*OtherBalance) UnmarshalTinyJSON ¶
func (v *OtherBalance) UnmarshalTinyJSON(l *jlexer.Lexer)
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type QueryMsg ¶
type QueryMsg struct { Verifier *struct{} `json:"verifier,omitempty"` OtherBalance *OtherBalance `json:"other_balance,omitempty"` Recurse *Recurse `json:"recurse,omitempty"` // TODO: remove this when we have queue... this was for a quick and dirty test TestRange *struct{} `json:"test_range,omitempty"` }
func (QueryMsg) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (QueryMsg) MarshalTinyJSON ¶
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*QueryMsg) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
func (*QueryMsg) UnmarshalTinyJSON ¶
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type Recurse ¶
func (Recurse) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (Recurse) MarshalTinyJSON ¶
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*Recurse) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
func (*Recurse) UnmarshalTinyJSON ¶
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type RecurseResponse ¶
type RecurseResponse struct { // this should be base64 binary - we just encode it manually outside of ezjson Hashed string `json:"hashed"` }
func (RecurseResponse) MarshalJSON ¶
func (v RecurseResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (RecurseResponse) MarshalTinyJSON ¶
func (v RecurseResponse) MarshalTinyJSON(w *jwriter.Writer)
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*RecurseResponse) UnmarshalJSON ¶
func (v *RecurseResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (*RecurseResponse) UnmarshalTinyJSON ¶
func (v *RecurseResponse) UnmarshalTinyJSON(l *jlexer.Lexer)
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type State ¶
type State struct { // TODO: convert to canonical addresses when that is supported by ezjson Verifier string `json:"VERIFIER"` Beneficiary string `json:"BENEFICIARY"` Funder string `json:"FUNDER"` }
this is what we store
func (State) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (State) MarshalTinyJSON ¶
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*State) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
func (*State) UnmarshalTinyJSON ¶
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface
type VerifierResponse ¶
type VerifierResponse struct {
Verifier string `json:"verifier"`
}
func (VerifierResponse) MarshalJSON ¶
func (v VerifierResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (VerifierResponse) MarshalTinyJSON ¶
func (v VerifierResponse) MarshalTinyJSON(w *jwriter.Writer)
MarshalTinyJSON supports tinyjson.Marshaler interface
func (*VerifierResponse) UnmarshalJSON ¶
func (v *VerifierResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (*VerifierResponse) UnmarshalTinyJSON ¶
func (v *VerifierResponse) UnmarshalTinyJSON(l *jlexer.Lexer)
UnmarshalTinyJSON supports tinyjson.Unmarshaler interface