Documentation ¶
Overview ¶
Package uniq faciliates the extraction of unique addresses from blocks or transactions.
Index ¶
- Variables
- func AddMiner(chain string, miner base.Address, bn base.Blknum, addrMap AddressBooleanMap) (err error)
- func GetUniqAddressesInBlock(chain, flow string, conn *rpc.Connection, procFunc UniqProcFunc, bn uint64) error
- func GetUniqAddressesInTransaction(chain string, procFunc UniqProcFunc, flow string, ...) error
- func IsImplicitAddress(addr string) bool
- func UniqFromReceipts(chain string, receipts []types.SimpleReceipt, addrMap AddressBooleanMap) (err error)
- func UniqFromTraces(chain string, traces []types.SimpleTrace, addrMap AddressBooleanMap) (err error)
- func UniqFromWithdrawals(chain string, withdrawals []types.SimpleWithdrawal, bn base.Blknum, ...) (err error)
- type AddressBooleanMap
- type UniqProcFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var AppearanceFmt = "%s\t%09d\t%05d"
Functions ¶
func AddMiner ¶
func AddMiner(chain string, miner base.Address, bn base.Blknum, addrMap AddressBooleanMap) (err error)
AddMiner adds the miner address (for use with post-merge)
func GetUniqAddressesInBlock ¶
func GetUniqAddressesInBlock(chain, flow string, conn *rpc.Connection, procFunc UniqProcFunc, bn uint64) error
func GetUniqAddressesInTransaction ¶
func GetUniqAddressesInTransaction(chain string, procFunc UniqProcFunc, flow string, trans *types.SimpleTransaction, ts int64, addrMap AddressBooleanMap, conn *rpc.Connection) error
func IsImplicitAddress ¶
IsImplicitAddress processes a transaction's 'input' data and 'output' data or an event's data field. Anything with 12 bytes of leading zeros but not more than 19 leading zeros (24 and 38 characters respectively).
func UniqFromReceipts ¶
func UniqFromReceipts(chain string, receipts []types.SimpleReceipt, addrMap AddressBooleanMap) (err error)
UniqFromReceipts extracts addresses from an array of receipts
func UniqFromTraces ¶
func UniqFromTraces(chain string, traces []types.SimpleTrace, addrMap AddressBooleanMap) (err error)
UniqFromTraces extracts addresses from traces
func UniqFromWithdrawals ¶
func UniqFromWithdrawals(chain string, withdrawals []types.SimpleWithdrawal, bn base.Blknum, addrMap AddressBooleanMap) (err error)
UniqFromWithdrawals extracts addresses from an array of receipts
Types ¶
type AddressBooleanMap ¶
type UniqProcFunc ¶
type UniqProcFunc func(s *types.SimpleAppearance) error
Click to show internal directories.
Click to hide internal directories.