mirror of
https://github.com/muun/recovery.git
synced 2025-11-13 23:31:38 -05:00
Release v0.3.0
This commit is contained in:
35
vendor/github.com/btcsuite/btcd/btcjson/walletsvrcmds.go
generated
vendored
35
vendor/github.com/btcsuite/btcd/btcjson/walletsvrcmds.go
generated
vendored
@@ -81,6 +81,30 @@ func NewEncryptWalletCmd(passphrase string) *EncryptWalletCmd {
|
||||
}
|
||||
}
|
||||
|
||||
// EstimateSmartFeeMode defines the different fee estimation modes available
|
||||
// for the estimatesmartfee JSON-RPC command.
|
||||
type EstimateSmartFeeMode string
|
||||
|
||||
var (
|
||||
EstimateModeUnset EstimateSmartFeeMode = "UNSET"
|
||||
EstimateModeEconomical EstimateSmartFeeMode = "ECONOMICAL"
|
||||
EstimateModeConservative EstimateSmartFeeMode = "CONSERVATIVE"
|
||||
)
|
||||
|
||||
// EstimateSmartFeeCmd defines the estimatesmartfee JSON-RPC command.
|
||||
type EstimateSmartFeeCmd struct {
|
||||
ConfTarget int64
|
||||
EstimateMode *EstimateSmartFeeMode `jsonrpcdefault:"\"CONSERVATIVE\""`
|
||||
}
|
||||
|
||||
// NewEstimateSmartFeeCmd returns a new instance which can be used to issue a
|
||||
// estimatesmartfee JSON-RPC command.
|
||||
func NewEstimateSmartFeeCmd(confTarget int64, mode *EstimateSmartFeeMode) *EstimateSmartFeeCmd {
|
||||
return &EstimateSmartFeeCmd{
|
||||
ConfTarget: confTarget, EstimateMode: mode,
|
||||
}
|
||||
}
|
||||
|
||||
// EstimateFeeCmd defines the estimatefee JSON-RPC command.
|
||||
type EstimateFeeCmd struct {
|
||||
NumBlocks int64
|
||||
@@ -164,6 +188,15 @@ func NewGetBalanceCmd(account *string, minConf *int) *GetBalanceCmd {
|
||||
}
|
||||
}
|
||||
|
||||
// GetBalancesCmd defines the getbalances JSON-RPC command.
|
||||
type GetBalancesCmd struct{}
|
||||
|
||||
// NewGetBalancesCmd returns a new instance which can be used to issue a
|
||||
// getbalances JSON-RPC command.
|
||||
func NewGetBalancesCmd() *GetBalancesCmd {
|
||||
return &GetBalancesCmd{}
|
||||
}
|
||||
|
||||
// GetNewAddressCmd defines the getnewaddress JSON-RPC command.
|
||||
type GetNewAddressCmd struct {
|
||||
Account *string
|
||||
@@ -662,12 +695,14 @@ func init() {
|
||||
MustRegisterCmd("createmultisig", (*CreateMultisigCmd)(nil), flags)
|
||||
MustRegisterCmd("dumpprivkey", (*DumpPrivKeyCmd)(nil), flags)
|
||||
MustRegisterCmd("encryptwallet", (*EncryptWalletCmd)(nil), flags)
|
||||
MustRegisterCmd("estimatesmartfee", (*EstimateSmartFeeCmd)(nil), flags)
|
||||
MustRegisterCmd("estimatefee", (*EstimateFeeCmd)(nil), flags)
|
||||
MustRegisterCmd("estimatepriority", (*EstimatePriorityCmd)(nil), flags)
|
||||
MustRegisterCmd("getaccount", (*GetAccountCmd)(nil), flags)
|
||||
MustRegisterCmd("getaccountaddress", (*GetAccountAddressCmd)(nil), flags)
|
||||
MustRegisterCmd("getaddressesbyaccount", (*GetAddressesByAccountCmd)(nil), flags)
|
||||
MustRegisterCmd("getbalance", (*GetBalanceCmd)(nil), flags)
|
||||
MustRegisterCmd("getbalances", (*GetBalancesCmd)(nil), flags)
|
||||
MustRegisterCmd("getnewaddress", (*GetNewAddressCmd)(nil), flags)
|
||||
MustRegisterCmd("getrawchangeaddress", (*GetRawChangeAddressCmd)(nil), flags)
|
||||
MustRegisterCmd("getreceivedbyaccount", (*GetReceivedByAccountCmd)(nil), flags)
|
||||
|
||||
Reference in New Issue
Block a user