mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
minOutput = dust limit ?
This commit is contained in:
parent
2a030bffba
commit
400f08c8bb
9 changed files with 16 additions and 15 deletions
|
@ -72,7 +72,7 @@ class MainDB {
|
|||
],
|
||||
directory: (await StackFileSystem.applicationIsarDirectory()).path,
|
||||
// inspector: kDebugMode,
|
||||
inspector: false,
|
||||
inspector: true,
|
||||
name: "wallet_data",
|
||||
maxSizeMiB: 512,
|
||||
);
|
||||
|
|
|
@ -64,7 +64,7 @@ class Bitcoin extends Bip39HDCurrency with PaynymCurrencyInterface {
|
|||
bech32Hrp: "bc",
|
||||
messagePrefix: '\x18Bitcoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(546), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
case CryptoCurrencyNetwork.test:
|
||||
|
@ -77,7 +77,7 @@ class Bitcoin extends Bip39HDCurrency with PaynymCurrencyInterface {
|
|||
bech32Hrp: "tb",
|
||||
messagePrefix: "\x18Bitcoin Signed Message:\n",
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(546), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
default:
|
||||
|
@ -140,6 +140,7 @@ class Bitcoin extends Bip39HDCurrency with PaynymCurrencyInterface {
|
|||
|
||||
return (address: addr, addressType: AddressType.p2pkh);
|
||||
|
||||
// TODO: [prio=high] verify this works similarly to bitcoindart's p2sh or something(!!)
|
||||
case DerivePathType.bip49:
|
||||
final p2wpkhScript = coinlib.P2WPKHAddress.fromPublicKey(
|
||||
publicKey,
|
||||
|
|
|
@ -71,7 +71,7 @@ class Bitcoincash extends Bip39HDCurrency {
|
|||
bech32Hrp: "bc",
|
||||
messagePrefix: '\x18Bitcoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(546), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
case CryptoCurrencyNetwork.test:
|
||||
|
@ -84,7 +84,7 @@ class Bitcoincash extends Bip39HDCurrency {
|
|||
bech32Hrp: "tb",
|
||||
messagePrefix: "\x18Bitcoin Signed Message:\n",
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(546), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
default:
|
||||
|
|
|
@ -114,7 +114,7 @@ class Dogecoin extends Bip39HDCurrency {
|
|||
bech32Hrp: "doge",
|
||||
messagePrefix: '\x18Dogecoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
case CryptoCurrencyNetwork.test:
|
||||
|
@ -127,7 +127,7 @@ class Dogecoin extends Bip39HDCurrency {
|
|||
bech32Hrp: "tdge",
|
||||
messagePrefix: "\x18Dogecoin Signed Message:\n",
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
default:
|
||||
|
|
|
@ -69,7 +69,7 @@ class Ecash extends Bip39HDCurrency {
|
|||
bech32Hrp: "bc",
|
||||
messagePrefix: '\x18Bitcoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
case CryptoCurrencyNetwork.test:
|
||||
|
@ -82,7 +82,7 @@ class Ecash extends Bip39HDCurrency {
|
|||
bech32Hrp: "tb",
|
||||
messagePrefix: "\x18Bitcoin Signed Message:\n",
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
default:
|
||||
|
|
|
@ -60,7 +60,7 @@ class Firo extends Bip39HDCurrency {
|
|||
bech32Hrp: "bc",
|
||||
messagePrefix: '\x18Zcoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
case CryptoCurrencyNetwork.test:
|
||||
|
@ -73,7 +73,7 @@ class Firo extends Bip39HDCurrency {
|
|||
bech32Hrp: "tb",
|
||||
messagePrefix: "\x18Zcoin Signed Message:\n",
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
default:
|
||||
|
|
|
@ -67,7 +67,7 @@ class Litecoin extends Bip39HDCurrency {
|
|||
bech32Hrp: "ltc",
|
||||
messagePrefix: '\x19Litecoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
case CryptoCurrencyNetwork.test:
|
||||
|
@ -80,7 +80,7 @@ class Litecoin extends Bip39HDCurrency {
|
|||
bech32Hrp: "tltc",
|
||||
messagePrefix: "\x19Litecoin Signed Message:\n",
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
default:
|
||||
|
|
|
@ -155,7 +155,7 @@ class Namecoin extends Bip39HDCurrency {
|
|||
bech32Hrp: "nc",
|
||||
messagePrefix: '\x18Namecoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
// case CryptoCurrencyNetwork.test:
|
||||
|
|
|
@ -137,7 +137,7 @@ class Particl extends Bip39HDCurrency {
|
|||
bech32Hrp: "pw",
|
||||
messagePrefix: '\x18Bitcoin Signed Message:\n',
|
||||
minFee: BigInt.from(1), // TODO [prio=high].
|
||||
minOutput: BigInt.from(1), // TODO.
|
||||
minOutput: dustLimit.raw, // TODO.
|
||||
feePerKb: BigInt.from(1), // TODO.
|
||||
);
|
||||
// case CryptoCurrencyNetwork.test:
|
||||
|
|
Loading…
Reference in a new issue