diff --git a/lib/db/isar/main_db.dart b/lib/db/isar/main_db.dart index ac5a544f4..7d10c8720 100644 --- a/lib/db/isar/main_db.dart +++ b/lib/db/isar/main_db.dart @@ -72,7 +72,7 @@ class MainDB { ], directory: (await StackFileSystem.applicationIsarDirectory()).path, // inspector: kDebugMode, - inspector: false, + inspector: true, name: "wallet_data", maxSizeMiB: 512, ); diff --git a/lib/wallets/crypto_currency/coins/bitcoin.dart b/lib/wallets/crypto_currency/coins/bitcoin.dart index 3da33c78f..a8a1a7aa7 100644 --- a/lib/wallets/crypto_currency/coins/bitcoin.dart +++ b/lib/wallets/crypto_currency/coins/bitcoin.dart @@ -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, diff --git a/lib/wallets/crypto_currency/coins/bitcoincash.dart b/lib/wallets/crypto_currency/coins/bitcoincash.dart index 3ae131346..7bda07ad4 100644 --- a/lib/wallets/crypto_currency/coins/bitcoincash.dart +++ b/lib/wallets/crypto_currency/coins/bitcoincash.dart @@ -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: diff --git a/lib/wallets/crypto_currency/coins/dogecoin.dart b/lib/wallets/crypto_currency/coins/dogecoin.dart index 18670cecc..f79dfc2cf 100644 --- a/lib/wallets/crypto_currency/coins/dogecoin.dart +++ b/lib/wallets/crypto_currency/coins/dogecoin.dart @@ -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: diff --git a/lib/wallets/crypto_currency/coins/ecash.dart b/lib/wallets/crypto_currency/coins/ecash.dart index 36d24ac82..35306f065 100644 --- a/lib/wallets/crypto_currency/coins/ecash.dart +++ b/lib/wallets/crypto_currency/coins/ecash.dart @@ -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: diff --git a/lib/wallets/crypto_currency/coins/firo.dart b/lib/wallets/crypto_currency/coins/firo.dart index ab008ec6e..bcc2411ee 100644 --- a/lib/wallets/crypto_currency/coins/firo.dart +++ b/lib/wallets/crypto_currency/coins/firo.dart @@ -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: diff --git a/lib/wallets/crypto_currency/coins/litecoin.dart b/lib/wallets/crypto_currency/coins/litecoin.dart index 67236104d..0088df184 100644 --- a/lib/wallets/crypto_currency/coins/litecoin.dart +++ b/lib/wallets/crypto_currency/coins/litecoin.dart @@ -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: diff --git a/lib/wallets/crypto_currency/coins/namecoin.dart b/lib/wallets/crypto_currency/coins/namecoin.dart index a15078a19..6f5de4068 100644 --- a/lib/wallets/crypto_currency/coins/namecoin.dart +++ b/lib/wallets/crypto_currency/coins/namecoin.dart @@ -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: diff --git a/lib/wallets/crypto_currency/coins/particl.dart b/lib/wallets/crypto_currency/coins/particl.dart index 57e0b97cf..d9e99988e 100644 --- a/lib/wallets/crypto_currency/coins/particl.dart +++ b/lib/wallets/crypto_currency/coins/particl.dart @@ -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: