models

package
v0.0.0-...-9588916 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsAccount

type EsAccount struct {
	Id              int64     `json:"id" xorm:"autoincr"`
	BlockChainId    int64     `json:"blockChainId"`
	NickName        string    `json:"nickName"`
	Address         string    `json:"address"`
	PubKey          string    `json:"pubKey"`
	Balance         int       `json:"balance"`
	SpentTxCount    int       `json:"spentTxCount"`
	ReceivedTxCount int       `json:"receivedTxCount"`
	GmtCreated      time.Time `json:"gmtCreated"`
	GmtModified     time.Time `json:"gmtModified"`
}

type EsBlock

type EsBlock struct {
	Id           int64     `json:"id" xorm:"autoincr"`
	BlockChainId int64     `json:"blockChainId"`
	BlockHash    string    `json:"blockHash"`
	BlockHeight  int       `json:"blockHeight"`
	BlockHeader  string    `json:"blockHeader"`
	TxCount      int       `json:"txCount"`
	TxFee        int       `json:"txFee"`
	GmtGenerated time.Time `json:"gmtGenerated"`
	GmtCreated   time.Time `json:"gmtCreated"`
	GmtModified  time.Time `json:"gmtModified"`
}

type EsBlockChain

type EsBlockChain struct {
	Id           int64     `json:"id" xorm:"autoincr"`
	Name         string    `json:"name"`
	NetType      string    `json:"netType"`
	GenesisHash  string    `json:"genesisHash"`
	BestHeight   int       `json:"bestHeight"`
	Tip          string    `json:"tip"`
	TxCount      int       `json:"txCount"`
	SyncCount    int       `json:"syncCount"`
	AccountCount int       `json:"accountCount"`
	PeersInfo    string    `json:"peersInfo"`
	DaemonAddr   string    `json:"daemonAddr"`
	GmtCreated   time.Time `json:"gmtCreated"`
	GmtModified  time.Time `json:"gmtModified"`
}

type EsTransAccountRel

type EsTransAccountRel struct {
	Id              int64  `json:"id" xorm:"autoincr"`
	BlockChainId    int64  `json:"blockChainId"`
	BlockId         int64  `json:"blockId"`
	TxId            int64  `json:"txId"`
	BlockHash       string `json:"blockHash"`
	TxHash          string `json:"txHash"`
	SenderId        int64  `json:"senderid"`
	SenderAddress   string `json:"senderAddress"`
	ReceiverId      int64  `json:"receiverId"`
	ReceiverAddress string `json:"receiverAddress"`
	// relate TransType
	Type        int       `json:"type"`
	Value       int       `json:"value"`
	GmtCreated  time.Time `json:"gmtCreated"`
	GmtModified time.Time `json:"gmtModified"`
}

type EsTransaction

type EsTransaction struct {
	Id           int64  `json:"id" xorm:"autoincr"`
	BlockChainId int64  `json:"blockChainId"`
	BlockId      int64  `json:"blockId"`
	BlockHash    string `json:"blockHash"`
	TxHash       string `json:"txHash"`
	BlockHeight  int    `json:"blockHeight"`
	// show a list, sender->receiver with value coin
	// ["sender": "a", "receiver": "b", "value": 100000, "type": "BITCOIN_P2PK", "memo": ""]
	Summarize string `json:"summarize"`
	// the Deserialize json data
	DeserializeData string    `json:"deserializedata"`
	GmtCreated      time.Time `json:"gmtCreated"`
	GmtModified     time.Time `json:"gmtModified"`
}

type TransType

type TransType int
const (
	BITCOIN_P2PK TransType = iota
	BITCOIN_P2PKH
	BITCOIN_P2SH
	BITCOIN_P2WPKH
	BITCOIN_P2WSH
)

Jump to

Keyboard shortcuts

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