types

package
v0.0.0-...-23cc077 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bech32PrefixOfChainInfo

type Bech32PrefixOfChainInfo struct {
	Bech32PrefixAccAddr  string `json:"addr"`
	Bech32PrefixCons     string `json:"cons"`
	Bech32PrefixOperator string `json:"val"`
}

func (Bech32PrefixOfChainInfo) ValidateBasic

func (b Bech32PrefixOfChainInfo) ValidateBasic() error

type RecordAccount

type RecordAccount struct {
	ChainId                                  string
	Bech32Address                            string
	ContinousInsertReferenceCurrentTxCounter int16
	BalanceOnErc20Contracts                  []string
	BalanceOnNftContracts                    []string
}

func NewRecordAccountForInsert

func NewRecordAccountForInsert(
	chainId string,
	bech32Address string,
) RecordAccount

NewRecordAccountForInsert procedures a new RecordAccount for insertion into database

func (RecordAccount) ValidateBasic

func (a RecordAccount) ValidateBasic() error

type RecordChainInfo

type RecordChainInfo struct {
	ChainId            string
	Name               string
	ChainType          string
	Bech32             string
	Denoms             string
	BeJsonRpcUrls      []string
	LatestIndexedBlock int64
}

RecordChainInfo represents a record of table `chain_info` in the database.

func NewRecordChainInfoForInsert

func NewRecordChainInfoForInsert(
	chainId string,
	name string,
	chainType string,
	bech32 map[string]string,
	denoms map[string]string,
	activeBeJsonRpcUrl string,
) (res RecordChainInfo, err error)

NewRecordChainInfoForInsert procedures a new RecordChainInfo for insertion into database

func (RecordChainInfo) ValidateBasic

func (r RecordChainInfo) ValidateBasic() error

ValidateBasic validates the basic fields of RecordChainInfo

type RecordRecentAccountTransaction

type RecordRecentAccountTransaction struct {
	ChainId  string
	Height   int64
	Hash     string
	RefCount int16

	Epoch        int64
	MessageTypes []string
	Action       string
	Value        []string
}

RecordRecentAccountTransaction represents a record of table `recent_account_transaction` in the database.

func NewRecordRecentAccountTransactionForInsert

func NewRecordRecentAccountTransactionForInsert(
	chainId string,
	height int64,
	hash string,

	epoch int64,
	messageTypes []string,
) RecordRecentAccountTransaction

NewRecordRecentAccountTransactionForInsert procedures a new RecordRecentAccountTransaction for insertion into database

func (RecordRecentAccountTransaction) ValidateBasic

func (t RecordRecentAccountTransaction) ValidateBasic() error

type RecordRefAccountToRecentTx

type RecordRefAccountToRecentTx struct {
	ChainId       string
	Bech32Address string
	Height        int64
	Hash          string

	Signer bool
	Erc20  bool
	NFT    bool
}

RecordRefAccountToRecentTx represents a record of table `ref_account_to_recent_tx` in the database.

func NewRecordRefAccountToRecentTxForInsert

func NewRecordRefAccountToRecentTxForInsert(
	chainId string,
	bech32Address string,
	height int64,
	hash string,
) RecordRefAccountToRecentTx

NewRecordRefAccountToRecentTxForInsert procedures a new RecordRefAccountToRecentTx for insertion into database

func (RecordRefAccountToRecentTx) ValidateBasic

func (t RecordRefAccountToRecentTx) ValidateBasic() error

type RecordTransaction

type RecordTransaction struct {
	ChainId     string
	Height      int64
	Hash        string
	PartitionId string

	Epoch        int64
	MessageTypes []string
	TxType       string
	Action       string
	Value        []string
}

func NewRecordTransactionForInsert

func NewRecordTransactionForInsert(
	chainId string,
	height int64,
	hash string,

	epoch int64,
	messageTypes []string,
	txType string,
) RecordTransaction

NewRecordTransactionForInsert procedures a new RecordTransaction for insertion into database

func (RecordTransaction) ValidateBasic

func (t RecordTransaction) ValidateBasic() error

type RecordsAccount

type RecordsAccount []RecordAccount

func (RecordsAccount) ValidateBasic

func (a RecordsAccount) ValidateBasic() error

type RecordsRecentAccountTransaction

type RecordsRecentAccountTransaction []RecordRecentAccountTransaction

func (RecordsRecentAccountTransaction) ValidateBasic

func (t RecordsRecentAccountTransaction) ValidateBasic() error

type RecordsRefAccountToRecentTx

type RecordsRefAccountToRecentTx []RecordRefAccountToRecentTx

func (RecordsRefAccountToRecentTx) ValidateBasic

func (t RecordsRefAccountToRecentTx) ValidateBasic() error

type RecordsTransaction

type RecordsTransaction []RecordTransaction

func (RecordsTransaction) ValidateBasic

func (t RecordsTransaction) ValidateBasic() error

Jump to

Keyboard shortcuts

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