mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 12:14:21 +01:00
* [domain] add reverse boarding inputs in Payment struct * [tx-builder] support reverse boarding script * [wallet] add GetTransaction * [api-spec][application] add reverse boarding support in covenantless * [config] add reverse boarding config * [api-spec] add ReverseBoardingAddress RPC * [domain][application] support empty forfeits txs in EndFinalization events * [tx-builder] optional connector output in round tx * [btc-embedded] fix getTx and taproot finalizer * whitelist ReverseBoardingAddress RPC * [test] add reverse boarding integration test * [client] support reverse boarding * [sdk] support reverse boarding * [e2e] add sleep time after faucet * [test] run using bitcoin-core RPC * [tx-builder] fix GetSweepInput * [application][tx-builder] support reverse onboarding in covenant * [cli] support reverse onboarding in covenant CLI * [test] rework integration tests * [sdk] remove onchain wallet, replace by onboarding address * remove old onboarding protocols * [sdk] Fix RegisterPayment * [e2e] add more funds to covenant ASP * [e2e] add sleeping time * several fixes * descriptor boarding * remove boarding delay from info * [sdk] implement descriptor boarding * go mod tidy * fixes and revert error msgs * move descriptor pkg to common * add replace in go.mod * [sdk] fix unit tests * rename DescriptorInput --> BoardingInput * genrest in SDK * remove boarding input from domain * remove all "reverse boarding" * rename "onboarding" ==> "boarding" * remove outdate payment unit test * use tmpfs docker volument for compose testing files * several fixes
90 lines
2.1 KiB
Go
90 lines
2.1 KiB
Go
package flags
|
|
|
|
import (
|
|
"github.com/ark-network/ark/common"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
const DATADIR_ENVVAR = "ARK_WALLET_DATADIR"
|
|
|
|
var (
|
|
DatadirFlag = &cli.StringFlag{
|
|
Name: "datadir",
|
|
Usage: "Specify the data directory",
|
|
Required: false,
|
|
Value: common.AppDataDir("ark-cli", false),
|
|
EnvVars: []string{DATADIR_ENVVAR},
|
|
}
|
|
PasswordFlag = cli.StringFlag{
|
|
Name: "password",
|
|
Usage: "password to unlock the wallet",
|
|
Required: false,
|
|
Hidden: true,
|
|
}
|
|
ExpiryDetailsFlag = cli.BoolFlag{
|
|
Name: "compute-expiry-details",
|
|
Usage: "compute client-side the VTXOs expiry time",
|
|
Value: false,
|
|
Required: false,
|
|
}
|
|
PrivateKeyFlag = cli.StringFlag{
|
|
Name: "prvkey",
|
|
Usage: "optional, private key to encrypt",
|
|
}
|
|
NetworkFlag = cli.StringFlag{
|
|
Name: "network",
|
|
Usage: "network to use (liquid, testnet, regtest, signet)",
|
|
Value: "liquid",
|
|
}
|
|
UrlFlag = cli.StringFlag{
|
|
Name: "asp-url",
|
|
Usage: "the url of the ASP to connect to",
|
|
Required: true,
|
|
}
|
|
ExplorerFlag = cli.StringFlag{
|
|
Name: "explorer",
|
|
Usage: "the url of the explorer to use",
|
|
}
|
|
ReceiversFlag = cli.StringFlag{
|
|
Name: "receivers",
|
|
Usage: "receivers of the send transaction, JSON encoded: '[{\"to\": \"<...>\", \"amount\": <...>}, ...]'",
|
|
}
|
|
ToFlag = cli.StringFlag{
|
|
Name: "to",
|
|
Usage: "address of the recipient",
|
|
}
|
|
AmountFlag = cli.Uint64Flag{
|
|
Name: "amount",
|
|
Usage: "amount to send in sats",
|
|
}
|
|
EnableExpiryCoinselectFlag = cli.BoolFlag{
|
|
Name: "enable-expiry-coinselect",
|
|
Usage: "select vtxos that are about to expire first",
|
|
Value: false,
|
|
}
|
|
AddressFlag = cli.StringFlag{
|
|
Name: "address",
|
|
Usage: "main chain address receiving the redeeemed VTXO",
|
|
Value: "",
|
|
Required: false,
|
|
}
|
|
AmountToRedeemFlag = cli.Uint64Flag{
|
|
Name: "amount",
|
|
Usage: "amount to redeem",
|
|
Value: 0,
|
|
Required: false,
|
|
}
|
|
ForceFlag = cli.BoolFlag{
|
|
Name: "force",
|
|
Usage: "force redemption without collaborate with the Ark service provider",
|
|
Value: false,
|
|
Required: false,
|
|
}
|
|
AsyncPaymentFlag = cli.BoolFlag{
|
|
Name: "async",
|
|
Usage: "use async payment protocol",
|
|
Value: false,
|
|
Required: false,
|
|
}
|
|
)
|