feed

package
v0.0.0-...-6ef9485 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const ENDPOINT string = "http://www.9gum3.com/feed"

Variables

This section is empty.

Functions

func StringToByte32

func StringToByte32(str string) ([32]byte, error)

Types

type FeedCorpus

type FeedCorpus struct {
	// contains filtered or unexported fields
}

func NewFeedCorpus

func NewFeedCorpus() *FeedCorpus

func (*FeedCorpus) GetFeed

func (self *FeedCorpus) GetFeed() (blockNumber *big.Int, nonce *big.Int, ask1KDigix *big.Int, bid1KDigix *big.Int, v uint8, r [32]byte, s [32]byte, err error)

func (*FeedCorpus) GetFeedFromEndpoint

func (self *FeedCorpus) GetFeedFromEndpoint() (*Price, error)

type Price

type Price struct {
	Block   *big.Int         `json:"block_number"`
	Ask     *big.Int         `json:"ask_for_1000"`
	Bid     *big.Int         `json:"bid_for_1000"`
	Hash    ethereum.Hash    `json:"hash"`
	Nonce   *big.Int         `json:"nonce"`
	R       [32]byte         `json:"r"`
	S       [32]byte         `json:"s"`
	V       uint8            `json:"v"`
	Signer  ethereum.Address `json:"signer"`
	Message string           `json:"message"`
}

type PriceFeed

type PriceFeed struct {
	Data   pricejson `json:"data"`
	Status string    `json:"status"`
}

func (*PriceFeed) Feed

func (self *PriceFeed) Feed() (*Price, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL