Update pubspec.yaml to use commit for Particl flag in bitcoindart

This commit is contained in:
likho 2022-12-07 17:47:55 +02:00
parent 9309a86cfd
commit 20dbb86742
4 changed files with 36 additions and 56 deletions

View file

@ -3048,9 +3048,6 @@ class ParticlWallet extends CoinServiceAPI {
// Add transaction inputs // Add transaction inputs
for (var i = 0; i < utxosToUse.length; i++) { for (var i = 0; i < utxosToUse.length; i++) {
Logging.instance.log("UTXOs TO USE IS -----${utxosToUse[i].vout}",
level: LogLevel.Info, printFullLength: true);
final txid = utxosToUse[i].txid; final txid = utxosToUse[i].txid;
txb.addInput(txid, utxosToUse[i].vout, null, txb.addInput(txid, utxosToUse[i].vout, null,
utxoSigningData[txid]["output"] as Uint8List, ''); utxoSigningData[txid]["output"] as Uint8List, '');
@ -3065,16 +3062,6 @@ class ParticlWallet extends CoinServiceAPI {
// Sign the transaction accordingly // Sign the transaction accordingly
for (var i = 0; i < utxosToUse.length; i++) { for (var i = 0; i < utxosToUse.length; i++) {
final txid = utxosToUse[i].txid; final txid = utxosToUse[i].txid;
Logging.instance.log("WITNESS VALUE IS -----${utxosToUse[i].value}",
level: LogLevel.Info, printFullLength: true);
Logging.instance.log(
"REDEEM SCRIPT IS -----${utxoSigningData[txid]["redeemScript"]}",
level: LogLevel.Info,
printFullLength: true);
Logging.instance.log("AND THIS DATA IS -----${utxoSigningData[txid]}",
level: LogLevel.Info, printFullLength: true);
txb.sign( txb.sign(
vin: i, vin: i,
keyPair: utxoSigningData[txid]["keyPair"] as ECPair, keyPair: utxoSigningData[txid]["keyPair"] as ECPair,
@ -3090,14 +3077,7 @@ class ParticlWallet extends CoinServiceAPI {
final builtTx = txb.build(); final builtTx = txb.build();
final vSize = builtTx.virtualSize(); final vSize = builtTx.virtualSize();
print("BUILT TX IS ${builtTx.toHex().toString()}"); String hexBefore = builtTx.toHex(isParticl: true).toString();
String hexBefore = builtTx.toHex().toString();
// String strippedTrailingBytes =
// hexBefore.replaceAll(RegExp(r"([.]*0+)(?!.*\d)"), "");
// return {"hex": strippedTrailingBytes, "vSize": vSize};
if (hexBefore.endsWith('000000')) { if (hexBefore.endsWith('000000')) {
String stripped = hexBefore.substring(0, hexBefore.length - 6); String stripped = hexBefore.substring(0, hexBefore.length - 6);
return {"hex": stripped, "vSize": vSize}; return {"hex": stripped, "vSize": vSize};

View file

@ -146,7 +146,7 @@ abstract class DefaultNodes {
); );
static NodeModel get particl => NodeModel( static NodeModel get particl => NodeModel(
host: "particl.stackwallet.com", host: "164.92.93.20",
port: 50002, port: 50002,
name: defaultName, name: defaultName,
id: _nodeId(Coin.particl), id: _nodeId(Coin.particl),

View file

@ -56,7 +56,7 @@ packages:
name: asn1lib name: asn1lib
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.4.0"
async: async:
dependency: transitive dependency: transitive
description: description:
@ -109,8 +109,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: particl ref: "004d6f82dff7389b561e5078b4649adcd2d9c10f"
resolved-ref: "65eb920719c8f7895c5402a07497647e7fc4b346" resolved-ref: "004d6f82dff7389b561e5078b4649adcd2d9c10f"
url: "https://github.com/cypherstack/bitcoindart.git" url: "https://github.com/cypherstack/bitcoindart.git"
source: git source: git
version: "3.0.1" version: "3.0.1"
@ -169,7 +169,7 @@ packages:
name: build_runner_core name: build_runner_core
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "7.2.6" version: "7.2.7"
built_collection: built_collection:
dependency: transitive dependency: transitive
description: description:
@ -183,7 +183,7 @@ packages:
name: built_value name: built_value
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "8.4.1" version: "8.4.2"
characters: characters:
dependency: transitive dependency: transitive
description: description:
@ -260,7 +260,7 @@ packages:
name: connectivity_plus_platform_interface name: connectivity_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.2" version: "1.2.3"
connectivity_plus_web: connectivity_plus_web:
dependency: transitive dependency: transitive
description: description:
@ -379,7 +379,7 @@ packages:
name: decimal name: decimal
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.0" version: "2.3.2"
dependency_validator: dependency_validator:
dependency: "direct dev" dependency: "direct dev"
description: description:
@ -463,7 +463,7 @@ packages:
name: file_picker name: file_picker
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.2.1" version: "5.2.3"
fixnum: fixnum:
dependency: transitive dependency: transitive
description: description:
@ -550,7 +550,7 @@ packages:
name: flutter_mobx name: flutter_mobx
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.6+4" version: "2.0.6+5"
flutter_native_splash: flutter_native_splash:
dependency: "direct main" dependency: "direct main"
description: description:
@ -592,35 +592,35 @@ packages:
name: flutter_secure_storage_linux name: flutter_secure_storage_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.1.2"
flutter_secure_storage_macos: flutter_secure_storage_macos:
dependency: transitive dependency: transitive
description: description:
name: flutter_secure_storage_macos name: flutter_secure_storage_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.1" version: "1.1.2"
flutter_secure_storage_platform_interface: flutter_secure_storage_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: flutter_secure_storage_platform_interface name: flutter_secure_storage_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "1.0.1"
flutter_secure_storage_web: flutter_secure_storage_web:
dependency: transitive dependency: transitive
description: description:
name: flutter_secure_storage_web name: flutter_secure_storage_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.1.1"
flutter_secure_storage_windows: flutter_secure_storage_windows:
dependency: transitive dependency: transitive
description: description:
name: flutter_secure_storage_windows name: flutter_secure_storage_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.2" version: "1.1.3"
flutter_spinkit: flutter_spinkit:
dependency: "direct main" dependency: "direct main"
description: description:
@ -634,7 +634,7 @@ packages:
name: flutter_svg name: flutter_svg
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.5" version: "1.1.6"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -677,7 +677,7 @@ packages:
name: graphs name: graphs
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.2.0"
hex: hex:
dependency: transitive dependency: transitive
description: description:
@ -719,7 +719,7 @@ packages:
name: html name: html
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.15.0" version: "0.15.1"
http: http:
dependency: "direct main" dependency: "direct main"
description: description:
@ -843,7 +843,7 @@ packages:
name: lints name: lints
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.0" version: "2.0.1"
local_auth: local_auth:
dependency: "direct main" dependency: "direct main"
description: description:
@ -892,14 +892,14 @@ packages:
name: mime name: mime
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.0.3"
mobx: mobx:
dependency: transitive dependency: transitive
description: description:
name: mobx name: mobx
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.1" version: "2.1.3"
mockingjay: mockingjay:
dependency: "direct dev" dependency: "direct dev"
description: description:
@ -927,7 +927,7 @@ packages:
name: mutex name: mutex
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.0" version: "3.0.1"
nm: nm:
dependency: transitive dependency: transitive
description: description:
@ -1025,7 +1025,7 @@ packages:
name: path_provider_android name: path_provider_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.20" version: "2.0.22"
path_provider_ios: path_provider_ios:
dependency: transitive dependency: transitive
description: description:
@ -1067,7 +1067,7 @@ packages:
name: permission_handler name: permission_handler
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "10.1.0" version: "10.2.0"
permission_handler_android: permission_handler_android:
dependency: transitive dependency: transitive
description: description:
@ -1151,7 +1151,7 @@ packages:
name: pub_semver name: pub_semver
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.2" version: "2.1.3"
pubspec_parse: pubspec_parse:
dependency: transitive dependency: transitive
description: description:
@ -1179,7 +1179,7 @@ packages:
name: rational name: rational
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.2.0" version: "2.2.2"
riverpod: riverpod:
dependency: transitive dependency: transitive
description: description:
@ -1207,7 +1207,7 @@ packages:
name: rxdart name: rxdart
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.27.5" version: "0.27.7"
share_plus: share_plus:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1235,7 +1235,7 @@ packages:
name: share_plus_platform_interface name: share_plus_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.1.1" version: "3.2.0"
share_plus_web: share_plus_web:
dependency: transitive dependency: transitive
description: description:
@ -1333,7 +1333,7 @@ packages:
name: shelf_web_socket name: shelf_web_socket
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.0.3"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -1410,7 +1410,7 @@ packages:
name: stream_transform name: stream_transform
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.1" version: "2.1.0"
string_scanner: string_scanner:
dependency: transitive dependency: transitive
description: description:
@ -1522,14 +1522,14 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.1.6" version: "6.1.7"
url_launcher_android: url_launcher_android:
dependency: transitive dependency: transitive
description: description:
name: url_launcher_android name: url_launcher_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.19" version: "6.0.22"
url_launcher_ios: url_launcher_ios:
dependency: transitive dependency: transitive
description: description:
@ -1578,7 +1578,7 @@ packages:
name: uuid name: uuid
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.6" version: "3.0.7"
vector_math: vector_math:
dependency: transitive dependency: transitive
description: description:
@ -1662,7 +1662,7 @@ packages:
name: win32 name: win32
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.1" version: "3.1.2"
window_size: window_size:
dependency: "direct main" dependency: "direct main"
description: description:

View file

@ -49,7 +49,7 @@ dependencies:
bitcoindart: bitcoindart:
git: git:
url: https://github.com/cypherstack/bitcoindart.git url: https://github.com/cypherstack/bitcoindart.git
ref: particl # TODO change to hash ref when merging in particl support ref: 004d6f82dff7389b561e5078b4649adcd2d9c10f # TODO change to hash ref when merging in particl support
stack_wallet_backup: stack_wallet_backup:
git: git: