Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2020 Changes in this version + const CommitmentTransactionType_Htlc + const CommitmentTransactionType_Rsmc + var DBService = dbManager + type AddHtlcRequestInfo struct + Amount float64 + ChannelId string + CreateAt time.Time + CreateBy string + CurrHtlcTempAddressForHt1aPubKey string + CurrHtlcTempAddressPubKey string + CurrRsmcTempAddressPubKey string + CurrState NormalState + FinishAt time.Time + H string + HtlcChannelPath string + Id int + LastTempAddressPrivateKey string + Memo string + PropertyId int64 + RecipientUserPeerId string + type AtomicSwapAcceptedInfo struct + CreateAt time.Time + CreateBy string + Id int + LatestEditAt time.Time + type AtomicSwapInfo struct + CreateAt time.Time + CreateBy string + Id int + LatestEditAt time.Time + type BRType int + const BRType_HE1b + const BRType_Ht1a + const BRType_Htlc + const BRType_Rmsc + type BreachRemedyTransaction struct + Amount float64 + BrTxHex string + ChannelId string + CommitmentTxId int + CreateAt time.Time + CreateBy string + CurrState TxInfoState + Id int + InputAddress string + InputAddressScriptPubKey string + InputAmount float64 + InputTxHex string + InputTxid string + InputVout uint32 + LastEditTime time.Time + OutAddress string + Owner string + PeerIdA string + PeerIdB string + PropertyId int64 + SendAt time.Time + SignAt time.Time + TempPubKey string + Txid string + Type BRType + type ChannelInfo struct + AcceptAt time.Time + AddressA string + AddressB string + ChannelAddress string + ChannelAddressRedeemScript string + ChannelAddressScriptPubKey string + ChannelId string + CloseAt time.Time + CreateAt time.Time + CreateBy string + CurrState ChannelState + Id int + PeerIdA string + PeerIdB string + PropertyId int64 + PubKeyA string + PubKeyB string + type ChannelState int + const ChannelState_CanUse + const ChannelState_Close + const ChannelState_Create + const ChannelState_FundingDefuse + const ChannelState_HtlcTx + const ChannelState_OpenChannelDefuse + const ChannelState_WaitFundAsset + type CloseChannel struct + Approval bool + CommitmentTxId int + CreateAt time.Time + CurrState int + Id int + Owner string + RequestHex string + type CommitmentTransaction struct + AmountToCounterparty float64 + AmountToHtlc float64 + AmountToRSMC float64 + BeginBlockHeight int + ChannelId string + CreateAt time.Time + CreateBy string + CurrHash string + CurrState TxInfoState + FromCounterpartySideForMeTxHex string + HTLCMultiAddress string + HTLCMultiAddressScriptPubKey string + HTLCRedeemScript string + HTLCTempAddressPubKey string + HTLCTxid string + HtlcChannelPath string + HtlcH string + HtlcR string + HtlcSender string + HtlcTxHex string + Id int + InputAmount float64 + InputTxid string + InputVout uint32 + LastCommitmentTxId int + LastEditTime time.Time + LastHash string + Owner string + PeerIdA string + PeerIdB string + PropertyId int64 + RSMCMultiAddress string + RSMCMultiAddressScriptPubKey string + RSMCRedeemScript string + RSMCTempAddressPubKey string + RSMCTxHex string + RSMCTxid string + RsmcInputTxid string + SendAt time.Time + SignAt time.Time + ToCounterpartyTxHex string + ToCounterpartyTxid string + TxType CommitmentTransactionType + type CommitmentTransactionType int + type CommitmentTxRequestInfo struct + ChannelId string + CreateAt time.Time + Id int + IsEnable bool + LastTempAddressPubKey string + UserId string + type DemoChannelInfo struct + AmountA float64 + AmountB float64 + Id int + PeerIdA string + PeerIdB string + type FundingBtcRequest struct + Amount float64 + CreateAt time.Time + FinishAt time.Time + Id int + IsFinish bool + Owner string + RedeemHex string + SignApproval bool + SignAt time.Time + TemporaryChannelId string + TxHash string + TxId string + type FundingTransaction struct + AmountA float64 + AmountB float64 + ChannelId string + ChannelInfoId int + CreateAt time.Time + CreateBy string + CurrState FundingTransactionState + FundeeSignAt time.Time + FunderAddress string + FunderPubKey2ForCommitment string + FunderRsmcHex string + FundingOutputIndex uint32 + FundingTxHex string + FundingTxid string + Id int + Owner string + PeerIdA string + PeerIdB string + PropertyId int64 + RsmcTempAddressPubKey string + type FundingTransactionState int + const FundingTransactionState_Accept + const FundingTransactionState_Create + const FundingTransactionState_Defuse + type HTLCBreachRemedyTransaction BreachRemedyTransaction + type HTLCCommitmentTransaction CommitmentTransaction + type HTLCExecutionDeliveryOfR struct + ChannelId string + CommitmentTxId int + CreateAt time.Time + CreateBy string + CurrState TxInfoState + HLockTxId int + HtlcR string + Id int + InputAmount float64 + InputHex string + InputTxid string + IsEnable bool + OutAmount float64 + OutputAddress string + Owner string + SendAt time.Time + TxHex string + Txid string + type HTLCTimeoutBreachRemedyTransaction struct + Amount float64 + ChannelId string + CommitmentTxId int + CreateAt time.Time + CreateBy string + CurrState TxInfoState + HTLCTimeoutTxForAAndExecutionForBId int + Id int + InputHex string + LastEditTime time.Time + Owner string + PropertyId int64 + SendAt time.Time + SignAt time.Time + TxHex string + Txid string + type HTLCTimeoutDeliveryTxB struct + ChannelId string + CommitmentTxId int + CreateAt time.Time + CreateBy string + CurrState TxInfoState + Id int + InputAmount float64 + InputHex string + OutAmount float64 + OutputAddress string + Owner string + PropertyId int64 + SendAt time.Time + Timeout int + TxHex string + Txid string + type HTLCTimeoutTxForAAndExecutionForB struct + ChannelId string + CommitmentTxId int + CreateAt time.Time + CreateBy string + CurrState TxInfoState + Id int + InputAmount float64 + InputHex string + InputTxid string + Owner string + PropertyId int64 + RSMCMultiAddress string + RSMCMultiAddressScriptPubKey string + RSMCOutAmount float64 + RSMCRedeemScript string + RSMCTempAddressPubKey string + RSMCTxHex string + RSMCTxid string + SendAt time.Time + SignAt time.Time + Timeout int + type HtlcLockTxByH struct + ChannelId string + CommitmentTxId int + CreateAt time.Time + CreateBy string + CurrState TxInfoState + HtlcH string + Id int + InputAmount float64 + InputHex string + InputTxid string + InputVout uint32 + OutAmount float64 + OutputAddress string + Owner string + PayeeChannelPubKey string + PropertyId int64 + RedeemScript string + ScriptPubKey string + SendAt time.Time + Timeout int + TxHex string + Txid string + type HtlcPathInfo struct + BeginBlockHeight int + ChannelIdArr []int + CreateAt time.Time + CreateBy string + CurrHtlcTempForHe1bPubKey string + CurrHtlcTempPubKey string + CurrRsmcTempPubKey string + CurrState HtlcPathInfoState + CurrStep int + H string + HAndRInfoRequestHash string + Id int + TotalStep int + type HtlcPathInfoState int + const HtlcPathInfoState_Backward + const HtlcPathInfoState_Created + const HtlcPathInfoState_Forward + const HtlcPathInfoState_RefusedByInterNode + type HtlcRAndHInfo struct + Amount float64 + CreateAt time.Time + CreateBy string + CurrState NormalState + H string + Id int + Memo string + PropertyId int64 + R string + RecipientPeerId string + RequestHash string + SenderPeerId string + type HtlcRequestCloseCurrTxInfo struct + ChannelId string + CreateAt time.Time + CreateBy string + CurrRsmcTempAddressPubKey string + CurrState NormalState + Id int + RequestHash string + type MinerFeeRedeemTransaction struct + CreateAt time.Time + FundingTxId string + Hex string + Id int + Owner string + TemporaryChannelId string + Txid string + type NormalState int + const NS_Create + const NS_Finish + const NS_Refuse + type RDTxWaitingSend struct + CreateAt time.Time + FinishAt time.Time + HtnxIdAndHtnxRdId []int + Id int + IsEnable bool + TransactionHex string + Type int + type RevocableDeliveryTransaction struct + Amount float64 + ChannelId string + CommitmentTxId int + CreateAt time.Time + CreateBy string + CurrState TxInfoState + Id int + InputAmount float64 + InputTxHex string + InputTxid string + InputVout uint32 + LastEditTime time.Time + OutputAddress string + Owner string + PeerIdA string + PeerIdB string + PropertyId int64 + RDType int + SendAt time.Time + Sequence int + SignAt time.Time + TxHex string + Txid string + type TxInfoState int + const TxInfoState_Abord + const TxInfoState_Create + const TxInfoState_CreateAndSign + const TxInfoState_Htlc_GetH + const TxInfoState_Htlc_GetR + const TxInfoState_Htlc_WaitHTRD1aSign + const TxInfoState_SendHex + type User struct + CreateAt time.Time + CurrState int + Id int + LatestLoginTime time.Time + type UserLoginLog struct + Id int + LoginAt time.Time + LogoutAt time.Time + PeerId string