smartAssetsSQLTables

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Types

type AddressListRow

type AddressListRow struct {
	ID           string
	Address      string
	Balance      string
	UpdateHeight string
	UpdateTime   string
}

type AddressListRows

type AddressListRows struct {
	simpleSQLDatabase.BasicRows
}

func (*AddressListRows) Insert

func (a *AddressListRows) Insert(addr []byte, balance *big.Int, blk block.Entity)

func (*AddressListRows) InsertSystemIssueBalance

func (a *AddressListRows) InsertSystemIssueBalance(balance *big.Int, address string)

func (*AddressListRows) Table

type AddressListTable

type AddressListTable struct {
	ID           enum.Element `col:"c_id" ignoreInsert:"true"`
	Address      enum.Element `col:"c_address"`
	Balance      enum.Element `col:"c_balance"`
	UpdateHeight enum.Element `col:"c_update_height"`
	UpdateTime   enum.Element `col:"c_update_time"`

	simpleSQLDatabase.BasicTable
}
var AddressList AddressListTable

func (AddressListTable) Name

func (a AddressListTable) Name() (name string)

func (AddressListTable) NewRows

func (a AddressListTable) NewRows() interface{}

type ContractCallRow

type ContractCallRow struct {
	ID              string
	Height          string
	TxHash          string
	SequenceNumber  string
	Caller          string
	ContractAddress string
	Data            string
	Result          string
	Value           string
	Time            string
}

type ContractCallRows

type ContractCallRows struct {
	simpleSQLDatabase.BasicRows
}

func (*ContractCallRows) Insert

func (*ContractCallRows) Table

type ContractCallTable

type ContractCallTable struct {
	ID              enum.Element `col:"c_id" ignoreInsert:"true"`
	Height          enum.Element `col:"c_height"`
	TxHash          enum.Element `col:"c_tx_hash"`
	SequenceNumber  enum.Element `col:"c_sequence_number"`
	Caller          enum.Element `col:"c_caller"`
	ContractAddress enum.Element `col:"c_contract_address"`
	Data            enum.Element `col:"c_data"`
	Result          enum.Element `col:"c_result"`
	Value           enum.Element `col:"c_value"`
	Time            enum.Element `col:"c_time"`

	simpleSQLDatabase.BasicTable
}
var ContractCall ContractCallTable

func (ContractCallTable) Name

func (t ContractCallTable) Name() (name string)

func (ContractCallTable) NewRows

func (t ContractCallTable) NewRows() interface{}

type ContractRow

type ContractRow struct {
	ID              string
	Height          string
	TxHash          string
	SequenceNumber  string
	Creator         string
	CreationData    string
	ContractAddress string
	ContractData    string
	Memo            string
	Time            string
}

type ContractRows

type ContractRows struct {
	simpleSQLDatabase.BasicRows
}

func (*ContractRows) Insert

func (*ContractRows) Table

type ContractTable

type ContractTable struct {
	ID              enum.Element `col:"c_id" ignoreInsert:"true"`
	Height          enum.Element `col:"c_height"`
	TxHash          enum.Element `col:"c_tx_hash"`
	SequenceNumber  enum.Element `col:"c_sequence_number"`
	Creator         enum.Element `col:"c_creator"`
	CreationData    enum.Element `col:"c_creation_data"`
	ContractAddress enum.Element `col:"c_contract_address"`
	ContractData    enum.Element `col:"c_contract_data"`
	Memo            enum.Element `col:"c_memo"`
	Time            enum.Element `col:"c_time"`

	simpleSQLDatabase.BasicTable
}
var Contract ContractTable

func (ContractTable) Name

func (t ContractTable) Name() (name string)

func (ContractTable) NewRows

func (t ContractTable) NewRows() interface{}

type ISQLRows

type ISQLRows interface {
	simpleSQLDatabase.IRows
	Insert(tx smartAssetsLedger.Transaction, blk block.Entity)
}

type TransactionRow

type TransactionRow struct {
	ID             string
	Height         string
	TxHash         string
	Type           string
	From           string
	To             string
	Value          string
	Data           string
	Memo           string
	SerialNumber   string
	SequenceNumber string
	TxDataSeal     string
	Result         string
	Time           string
}

type TransactionRows

type TransactionRows struct {
	simpleSQLDatabase.BasicRows
}

func (*TransactionRows) Insert

func (*TransactionRows) Table

type TransactionTable

type TransactionTable struct {
	ID             enum.Element `col:"c_id" ignoreInsert:"true"`
	Height         enum.Element `col:"c_height"`
	TxHash         enum.Element `col:"c_hash"`
	Type           enum.Element `col:"c_type"`
	From           enum.Element `col:"c_from"`
	To             enum.Element `col:"c_to"`
	Value          enum.Element `col:"c_value"`
	Data           enum.Element `col:"c_data"`
	Memo           enum.Element `col:"c_memo"`
	SerialNumber   enum.Element `col:"c_serial_number"`
	SequenceNumber enum.Element `col:"c_sequence_number"`
	TxDataSeal     enum.Element `col:"c_tx_data_seal"`
	Result         enum.Element `col:"c_result"`
	Time           enum.Element `col:"c_time"`

	simpleSQLDatabase.BasicTable
}
var Transaction TransactionTable

func (TransactionTable) Name

func (t TransactionTable) Name() (name string)

func (TransactionTable) NewRows

func (t TransactionTable) NewRows() interface{}

type TransferRow

type TransferRow struct {
	ID             string
	Height         string
	TxHash         string
	SequenceNumber string
	From           string
	To             string
	Value          string
	Memo           string
	Time           string
}

type TransferRows

type TransferRows struct {
	simpleSQLDatabase.BasicRows
}

func (*TransferRows) Insert

func (*TransferRows) Table

type TransferTable

type TransferTable struct {
	ID             enum.Element `col:"c_id" ignoreInsert:"true"`
	Height         enum.Element `col:"c_height"`
	TxHash         enum.Element `col:"c_tx_hash"`
	SequenceNumber enum.Element `col:"c_sequence_number"`
	From           enum.Element `col:"c_from"`
	To             enum.Element `col:"c_to"`
	Value          enum.Element `col:"c_value"`
	Memo           enum.Element `col:"c_memo"`
	Time           enum.Element `col:"c_time"`

	simpleSQLDatabase.BasicTable
}
var Transfer TransferTable

func (TransferTable) Name

func (t TransferTable) Name() (name string)

func (TransferTable) NewRows

func (t TransferTable) NewRows() interface{}

Jump to

Keyboard shortcuts

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