Transaction

package
v0.0.0-...-fee3720 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TXTYPE = TxType
View Source
var TxType map[string]uint = make(map[string]uint, 0)

Functions

This section is empty.

Types

type Base

type Base struct {
	Version   uint8    `json:"version"`
	Type      string   `json:"tx_type"`
	LockTime  int64    `json:"lock_time"`
	Fee       *big.Int `json:"fee"`
	From      string
	To        string
	Amount    *big.Int
	Memo      string
	Matures   int64
	Expires   int64
	Signature []byte
}

type Coinbase

type Coinbase struct {
	ID                  *big.Int
	Currency            string
	CoinCache           map[string]string
	Address             string
	Issuer              string
	Owner               string
	Minter              string
	Burner              string
	Operator            string
	MaxIssuance         *big.Int
	PremintIssuance     *big.Int
	MinIssuance         *big.Int
	InflationPerAnnum   *big.Int
	CashbackEnable      bool
	CashbackValuePerOne *big.Int
	MaxDivider          int
	Pairing             map[string]*PairCoin
}

func CreateNewInternalCoinbase

func CreateNewInternalCoinbase() *Coinbase

type CoinbaseTx

type CoinbaseTx interface {
	IsCoinbase() bool
	GetCoinInfo() string
}

type PairCoin

type PairCoin struct {
	ID              string
	IsInternal      bool
	IsExternal      bool
	Name1           string
	Name2           string
	Value1          *big.Int
	Value2          *big.Int
	Liquidity1      *big.Int
	Liquidity2      *big.Int
	HistoricalValue map[int64]*big.Int
	TimeStamp       int64
}

type Transaction

type Transaction struct {
	Base
}

func (*Transaction) CoinbaseType

func (t *Transaction) CoinbaseType() *Transaction

Jump to

Keyboard shortcuts

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