dao

package
v0.0.0-...-872243e Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: GPL-3.0, LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Delete

func Delete(key string)

func Deposit

func Deposit(userKey string, amount *big.Int) error

func Get

func Get(key string) string

func GetBalance

func GetBalance(userKey string) string

func GetSeq

func GetSeq(seq float64) string

func Open

func Open()

func Put

func Put(key string, value string)

func PutSeq

func PutSeq(seq float64)

func PutTx

func PutTx(tx *Transaction)

func UpdateBalance

func UpdateBalance(userKey string, balanceChange string) error

func Withdraw

func Withdraw(userKey string, amount *big.Int) error

Types

type Transaction

type Transaction struct {
	TxHash      string
	FromAddress string
	TxOutputs   []TxOutput
	Fee         uint32
	Confirmed   bool
}

一个EOS transaction可以包含多个transfer, 对应TxOutputs

func GetTx

func GetTx(txhash string) *Transaction

func (*Transaction) String

func (tx *Transaction) String() string

type TxOutput

type TxOutput struct {
	Seq       float64
	ToAddress string
	Amount    string
}

Jump to

Keyboard shortcuts

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