Documentation ¶
Index ¶
- Constants
- Variables
- func AcceptSwapProposal(ctx context.Context, swapID uint64, address common.ConfidentialAddress, ...) (common.SwapProposal, error)
- func CreateSwapProposal(ctx context.Context, swapID uint64, address common.ConfidentialAddress, ...) (common.SwapProposal, error)
- func FinalizeSwapProposal(ctx context.Context, swapID uint64, payload common.Payload) (common.SwapProposal, error)
- func InfoSwapProposal(ctx context.Context, swapID uint64, payload common.Payload) (common.SwapProposal, error)
- func LiquidSwapAccept(address common.ConfidentialAddress, payload common.Payload, feeRate float64) shellexec.Options
- func LiquidSwapFinalize(payload common.Payload) shellexec.Options
- func LiquidSwapInfo(payload common.Payload) shellexec.Options
- func LiquidSwapPropose(address common.ConfidentialAddress, proposal common.ProposalInfo, ...) shellexec.Options
- func OnAcceptSwapProposal(ctx context.Context, subject string, message *bank.Message) (*bank.Message, error)
- func OnCreateSwapProposal(ctx context.Context, subject string, message *bank.Message) (*bank.Message, error)
- func OnFinalizeSwapProposal(ctx context.Context, subject string, message *bank.Message) (*bank.Message, error)
- func OnInfoSwapProposal(ctx context.Context, subject string, message *bank.Message) (*bank.Message, error)
- func SetElementsConf(elementsConf string)
- type SwapCommand
Constants ¶
View Source
const ( LiquidSwapCli = "liquidswap-cli" SwapCommandInfo = SwapCommand("info") SwapCommandPropose = SwapCommand("propose") SwapCommandFinalize = SwapCommand("finalize") SwapCommandAccept = SwapCommand("accept") FeeRatePrecision = 9 // BTC/Kb = 1000 / 100000000 sat/B FeeRatePrecisionFormat = "%.9f" )
Variables ¶
View Source
var ShellExecLock sync.Mutex
Functions ¶
func AcceptSwapProposal ¶
func CreateSwapProposal ¶
func CreateSwapProposal(ctx context.Context, swapID uint64, address common.ConfidentialAddress, proposal common.ProposalInfo, feeRate float64) (common.SwapProposal, error)
func FinalizeSwapProposal ¶
func InfoSwapProposal ¶
func LiquidSwapAccept ¶
func LiquidSwapPropose ¶
func LiquidSwapPropose(address common.ConfidentialAddress, proposal common.ProposalInfo, feeRate float64) shellexec.Options
func OnAcceptSwapProposal ¶
func OnCreateSwapProposal ¶
func OnFinalizeSwapProposal ¶
func OnInfoSwapProposal ¶
func SetElementsConf ¶
func SetElementsConf(elementsConf string)
Types ¶
type SwapCommand ¶
type SwapCommand string
Click to show internal directories.
Click to hide internal directories.