transfer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountTxsGinRegister

func AccountTxsGinRegister(r *gin.Engine)

AccountTxsGinRegister 注册accountTxs

func DbClear

func DbClear(driveName string, db *sql.DB) error

DbClear 数据库清除

func DbInit

func DbInit(driveName string, db *sql.DB) error

DbInit 数据库结构初始化

func TransferGin

func TransferGin() gin.HandlerFunc

Types

type SearchOpt

type SearchOpt struct {
	Coin string
}

type TransferType

type TransferType int
const (
	Sender TransferType = iota
	Reciever
)

func (TransferType) String

func (ut TransferType) String() string

type TxTransfer

type TxTransfer struct {
	ID      int64        `json:"id"`       // id
	ChainID string       `json:"chain_id"` // chain_id
	Height  int64        `json:"height"`   // height
	Hash    string       `json:"hash"`     // hash
	Address string       `json:"address"`  // address
	Coin    string       `json:"coin"`     // coin
	Amount  string       `json:"amount"`   // amount
	Type    TransferType `json:"type"`     // type
	Time    time.Time    `json:"time"`     // time
}

func ListByAddress

func ListByAddress(address string, offset, limint int64, opt *SearchOpt) ([]TxTransfer, error)

type TxTransferPlugin

type TxTransferPlugin struct{}

func (TxTransferPlugin) DbClear

func (ttp TxTransferPlugin) DbClear(driveName string, db *sql.DB) error

func (TxTransferPlugin) DbInit

func (ttp TxTransferPlugin) DbInit(driveName string, db *sql.DB) error

func (TxTransferPlugin) Parse

func (ttp TxTransferPlugin) Parse(blockHeader tmtypes.Header, itx qbasetxs.ITx) (typeName string, hit bool, err error)

func (TxTransferPlugin) RegisterGin

func (ttp TxTransferPlugin) RegisterGin(r *gin.Engine)

func (TxTransferPlugin) Type

func (ttp TxTransferPlugin) Type() string

Directories

Path Synopsis
Package model contains the types for schema 'public'.
Package model contains the types for schema 'public'.

Jump to

Keyboard shortcuts

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