Documentation ¶
Index ¶
- func GetFeePerKB() (useFee, replayFee btcutil.Amount, err error)
- func Refund(contractHex string, contractTransaction string, wif *btcutil.WIF) (*refundCmd, error)
- type AuditContractCmd
- type AuditedContract
- type Command
- type ExtractedSecret
- type InitiatedContract
- type ParticipatedContract
- type Redemption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFeePerKB ¶
Types ¶
type AuditContractCmd ¶
type AuditContractCmd struct {
// contains filtered or unexported fields
}
type AuditedContract ¶
type AuditedContract struct { Asset string `json:"contract_asset"` Address string `json:"contract_address"` Value float64 `json:"contract_value"` ValueAsset string `json:"value_asset"` Unit string `json:"unit"` RecipientAddress string `json:"recipient_address"` AuthorRefundAddress string `json:"author_refund_address"` SecretHash string `json:"secret_hash"` LockTime int64 `json:"lock_time"` LockTimeReachedIn time.Duration `json:"lock_time_reached_in"` LockTimeExpired bool `json:"lock_time_expired"` // contains filtered or unexported fields }
func AuditContract ¶
func AuditContract(coinTicker string, contractHex string, contractTransaction string) (AuditedContract, error)
type ExtractedSecret ¶
type ExtractedSecret struct {
Secret string `json:"secret"`
}
func ExtractSecret ¶
func ExtractSecret(redemptionTransaction string, secretHash string) (extractedSecret ExtractedSecret, err error)
type InitiatedContract ¶
type InitiatedContract struct { Coin string `json:"coin"` Unit string `json:"unit"` ContractAmount float64 `json:"contract_amount"` ContractFee float64 `json:"contract_fee"` ContractRefundFee float64 `json:"contract_refund_fee"` CounterPartyAddress string `json:"counter_party_address"` ContractAddress string `json:"contract_address"` ContractHex string `json:"contract_hex"` ContractTransactionID string `json:"contract_transaction_id"` ContractTransactionHex string `json:"contract_transaction_hex"` RefundTransactionID string `json:"refund_transaction_id"` RefundTransaction string `json:"refund_transaction"` Secret string `json:"secret"` SecretHash string `json:"secret_hash"` }
type ParticipatedContract ¶
type ParticipatedContract struct { Coin string `json:"coin"` Unit string `json:"unit"` ContractAmount float64 `json:"contract_amount"` ContractFee float64 `json:"contract_fee"` ContractRefundFee float64 `json:"contract_refund_fee"` CounterPartyAddress string `json:"counter_party_address"` ContractAddress string `json:"contract_address"` ContractHex string `json:"contract_hex"` ContractTransactionID string `json:"contract_transaction_id"` ContractTransactionHex string `json:"contract_transaction_hex"` RefundTransactionID string `json:"refund_transaction_id"` RefundTransaction string `json:"refund_transaction"` }
func Participate ¶
Click to show internal directories.
Click to hide internal directories.