transaction

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveTx

func SaveTx(currentTx *Tx) error

SaveTx saves the current transaction

Types

type Tx

type Tx struct {
	Hash string
	Kind TxKind
}

Tx represents a Transaction of a certain kind

func GetTx

func GetTx() (currentTx *Tx, err error)

GetTx retrieves the current transaction

type TxKind

type TxKind int

TxKind is the kind of transaction

const (
	DrawDai TxKind = iota
	ChangeDaiToEth
	LockEth

	ChangeEthToDai
	WipeDai
	FreeEth
	FreeSellWipe
	DrawSellLock
)

These are the TxKind list

Jump to

Keyboard shortcuts

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