Documentation ¶
Index ¶
- Variables
- func PackGetMarketMaker(addr common.Address) ([]byte, error)
- func PackGetSwapState(hashLock common.Hash) ([]byte, error)
- func PackOpen(recipient common.Address, hashLock common.Hash, timeLock uint32, ...) ([]byte, error)
- func PackRefund(hashLock common.Hash) ([]byte, error)
- func PackUnlock(hashLock, secret common.Hash) ([]byte, error)
- func UnpackGetSwapState(data []byte) (uint8, error)
- type LockLog
- type MarketMakerInfo
- type RefundLog
- type UnlockLog
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func PackGetMarketMaker ¶ added in v0.1.0
func UnpackGetSwapState ¶ added in v0.1.0
Types ¶
type LockLog ¶ added in v0.1.0
type LockLog struct { LockerAddr common.Address UnlockerAddr common.Address HashLock common.Hash UnlockTime uint64 Value *big.Int BchRecipientPkh common.Address CreatedTime uint64 PenaltyBPS uint16 }
func ParseHtlcLockLog ¶ added in v0.1.0
type MarketMakerInfo ¶ added in v0.1.0
type MarketMakerInfo struct { Addr common.Address RetiredAt uint64 Intro [32]byte BchPkh [20]byte BchLockTime uint16 SbchLockTime uint32 PenaltyBPS uint16 FeeBPS uint16 MinSwapAmt *big.Int MaxSwapAmt *big.Int StakedValue *big.Int Checker common.Address }
func UnpackGetMarketMaker ¶ added in v0.1.0
func UnpackGetMarketMaker(data []byte) (*MarketMakerInfo, error)
type RefundLog ¶ added in v0.1.0
func ParseHtlcRefundLog ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.