source

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSourceConn = errors.New("connection to servers failed")

Functions

This section is empty.

Types

type Address

type Address struct {
	Tz string `json:"tz"`
}

type Client

type Client struct {
	HttpClient *http.Client
	RpcUrl     string
}

func (*Client) GetTxsOfAddress

func (c *Client) GetTxsOfAddress(address string) ([]Transaction, error)

type Manager

type Manager struct {
	Kind       string      `json:"kind"`
	Src        Address     `json:"src"`
	Operations []Operation `json:"operations"`
}

type Operation

type Operation struct {
	Kind         string        `json:"kind"`
	Src          Address       `json:"src"`
	Dest         Address       `json:"destination"`
	Amount       models.Amount `json:"amount"`
	Failed       bool          `json:"failed"`
	Internal     bool          `json:"internal"`
	Burn         int           `json:"burn"`
	Counter      int           `json:"counter"`
	Fee          models.Amount `json:"fee"`
	GasLimit     string        `json:"gas_limit"`
	StorageLimit string        `json:"storage_limit"`
	OpLevel      uint64        `json:"op_level"`
	Timestamp    string        `json:"timestamp"`
}

type Transaction

type Transaction struct {
	Hash        string  `json:"hash"`
	BlockHash   string  `json:"block_hash"`
	NetworkHash string  `json:"network_hash"`
	Type        Manager `json:"type"`
}

Jump to

Keyboard shortcuts

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