withdrawfailedtx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: GPL-3.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailedTxPre = "Failed_pre"

	ErrNoSignature = "not have signatures"
)

Functions

func FailedWithrawInit

func FailedWithrawInit(datadir string, evtMux *event.TypeMux)

Spv database initialization

func GetRefundEventHash

func GetRefundEventHash() common.Hash

func GetWithdrawTxValue

func GetWithdrawTxValue(txid string) (string, *big.Int, error)

func IsArbiterVerified

func IsArbiterVerified(txid, arbiter string) bool

func IsSignatureVerified

func IsSignatureVerified(txid, signature string) bool

func IsWithdawFailedTx

func IsWithdawFailedTx(input []byte, withdrawAddress string) (bool, string)

func OnProcessFaildWithdrawTx

func OnProcessFaildWithdrawTx(hash string)

func ReceivedFailedWithdrawTx

func ReceivedFailedWithdrawTx(hash string, signature string) error

func SendRefundTx

func SendRefundTx(from common.Address, txid string) error

func VerifySignatures

func VerifySignatures(input []byte) bool

Types

type FailedWithdrawEvent

type FailedWithdrawEvent struct {
	Signature string
	Txid      string
}

Jump to

Keyboard shortcuts

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