Documentation ¶
Index ¶
- Variables
- func FromBigEndianBytes(s []byte) (uint64, error)
- func FromBigEndianHex(s string) (uint64, error)
- func FromLittleEndianBytes(s []byte) (uint64, error)
- func FromLittleEndianHex(s string) (uint64, error)
- func GetBalance(c *ethclient.Client, addr string) (*big.Int, error)
- func PollingTransaction(ethc *ethclient.Client, txid string, threshold int64, timeout time.Duration) error
- func SendEthTransaction(obj *DbWithdrawalObj, ethc *ethclient.Client, fromAddr common.Address, ...) (string, error)
- func ToBigEndianBytes(source uint64) []byte
- func ToBigEndianHex(source uint64) string
- func ToLittleEndianBytes(source uint64) []byte
- func ToLittleEndianHex(source uint64) string
- type DbWithdrawalObj
- type WdDB
- func (w *WdDB) BatchInsert(objs []*DbWithdrawalObj) error
- func (w *WdDB) CompareAndSwapStatus(key []byte, from, to uint64) error
- func (w *WdDB) GetAndIncreasePrimaryKey(tx *leveldb.Transaction) (uint64, error)
- func (w *WdDB) GetOrSet(key []byte, initValue []byte) error
- func (w *WdDB) GetRawDB() *leveldb.DB
- func (w *WdDB) GetUnhandledRecordsId() ([]uint64, error)
- func (w *WdDB) GetWdObjById(id uint64) (*DbWithdrawalObj, error)
- func (w *WdDB) Insert(address string, amount *big.Int, nonce uint64, status uint64, hash string, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FromBigEndianBytes ¶
func FromBigEndianHex ¶
func FromLittleEndianBytes ¶
func FromLittleEndianHex ¶
func PollingTransaction ¶
func SendEthTransaction ¶
func ToBigEndianBytes ¶
func ToBigEndianHex ¶
func ToLittleEndianBytes ¶
func ToLittleEndianHex ¶
Types ¶
type DbWithdrawalObj ¶
type WdDB ¶
type WdDB struct {
// contains filtered or unexported fields
}
func NewWithdrawalDB ¶
func (*WdDB) BatchInsert ¶
func (w *WdDB) BatchInsert(objs []*DbWithdrawalObj) error
func (*WdDB) CompareAndSwapStatus ¶
func (*WdDB) GetAndIncreasePrimaryKey ¶
func (w *WdDB) GetAndIncreasePrimaryKey(tx *leveldb.Transaction) (uint64, error)
func (*WdDB) GetUnhandledRecordsId ¶
func (*WdDB) GetWdObjById ¶
func (w *WdDB) GetWdObjById(id uint64) (*DbWithdrawalObj, error)
Click to show internal directories.
Click to hide internal directories.