Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OracleResponse ¶
type OracleResponse struct { Timestamp string `json:"timestamp"` Messages []string `json:"messages"` Signatures []string `json:"signatures"` Prices map[string]string `json:"prices"` }
func Unmarshal ¶
func Unmarshal(payload []byte) (*OracleResponse, error)
func UnmarshalVerify ¶
func UnmarshalVerify(payload []byte, address string) (*OracleResponse, error)
UnmarshalVerify will unmarshal a json raw payload into and OracleResponse if the unmarshal is successful then the content is verified.
Click to show internal directories.
Click to hide internal directories.