minOutput = dust limit ?

This commit is contained in:
julian 2024-04-15 13:22:30 -06:00
parent 2a030bffba
commit 400f08c8bb
9 changed files with 16 additions and 15 deletions

View file

@ -72,7 +72,7 @@ class MainDB {
],
directory: (await StackFileSystem.applicationIsarDirectory()).path,
// inspector: kDebugMode,
inspector: false,
inspector: true,
name: "wallet_data",
maxSizeMiB: 512,
);

View file

@ -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,

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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: