tezos

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const Handle = "tezos"

Variables

This section is empty.

Functions

func Normalize added in v1.0.0

func Normalize(srcTx *Tx) (tx blockatlas.Tx, ok bool)

Normalize converts a Tezos transaction into the generic model

Types

type Address added in v1.0.0

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

Address is a Tezos address object

type Client added in v1.0.0

type Client struct {
	HTTPClient *http.Client
	BaseURL    string
}

Client is used to request data from the Tezos blockchain over the TzScan API.

func (*Client) GetTxsOfAddress added in v1.0.0

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

type Manager added in v1.0.0

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

Manager contains transfer operations

type Operation added in v1.0.0

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

Operation is a Tezos transfer operation

type Platform added in v1.0.0

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

func (*Platform) Coin added in v1.0.0

func (p *Platform) Coin() coin.Coin

func (*Platform) GetTxsByAddress added in v1.0.0

func (p *Platform) GetTxsByAddress(address string) (blockatlas.TxPage, error)

func (*Platform) Handle added in v1.0.0

func (p *Platform) Handle() string

func (*Platform) Init added in v1.0.0

func (p *Platform) Init() error

type Tx added in v1.0.0

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

Tx is a Tezos blockchain transaction

Jump to

Keyboard shortcuts

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