Documentation ¶
Index ¶
Constants ¶
View Source
const ( FullPrivacy privacyPolicy = "FullPrivacy" AllowRevealedRecipients privacyPolicy = "AllowRevealedRecipients" AllowRevealedAmounts privacyPolicy = "AllowRevealedAmounts" AllowRevealedSenders privacyPolicy = "AllowRevealedSenders" AllowLinkingAccountAddresses privacyPolicy = "AllowLinkingAccountAddresses" NoPrivacy privacyPolicy = "NoPrivacy" )
View Source
const (
BipID = 133
)
View Source
const ErrEmptyOpResults = dex.ErrorKind("no z_getoperationstatus results")
ErrEmptyOpResults is returned when z_getoperationresult returns an empty array for the specified operation ID. This appears to be normal in some or all cases when the result is not yet ready.
Variables ¶
View Source
var ( // WalletInfo defines some general information about a Zcash wallet. WalletInfo = &asset.WalletInfo{ Name: "Zcash", SupportedVersions: []uint32{version}, UnitInfo: dexzec.UnitInfo, AvailableWallets: []*asset.WalletDefinition{{ Type: walletTypeRPC, Tab: "External", Description: "Connect to zcashd", DefaultConfigPath: dexbtc.SystemConfigPath("zcash"), ConfigOpts: configOpts, NoAuth: true, }}, } )
Functions ¶
Types ¶
type Driver ¶
type Driver struct{}
Driver implements asset.Driver.
func (*Driver) DecodeCoinID ¶
DecodeCoinID creates a human-readable representation of a coin ID for Zcash.
func (*Driver) Info ¶
func (d *Driver) Info() *asset.WalletInfo
Info returns basic information about the wallet and asset.
func (*Driver) MinLotSize ¶ added in v1.0.0
MinLotSize calculates the minimum bond size for a given fee rate that avoids dust outputs on the swap and refund txs, assuming the maxFeeRate doesn't change.
type Error ¶ added in v1.0.0
type Error struct {
// contains filtered or unexported fields
}
Error is an error code and a wrapped error.
type GetTransactionResult ¶ added in v1.0.0
type GetTransactionResult struct { Confirmations int64 `json:"confirmations"` BlockHash string `json:"blockhash"` // BlockIndex int64 `json:"blockindex"` // unused, consider commenting BlockTime uint64 `json:"blocktime"` TxID string `json:"txid"` Time uint64 `json:"time"` TimeReceived uint64 `json:"timereceived"` Bytes dex.Bytes `json:"hex"` }
type WalletConfig ¶ added in v1.0.0
type WalletConfig struct { UseSplitTx bool `ini:"txsplit"` RedeemConfTarget uint64 `ini:"redeemconftarget"` ActivelyUsed bool `ini:"special_activelyUsed"` // injected by core }
WalletConfig are wallet-level configuration settings.
Click to show internal directories.
Click to hide internal directories.