diff --git a/.gitignore b/.gitignore index 82d28ca..9c34a1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Java compilation +*.class + # Mac OS X file .DS_Store diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Main.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Main.class deleted file mode 100644 index af1c6e2..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Main.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$1.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$1.class deleted file mode 100644 index 305df1e..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$1.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$10.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$10.class deleted file mode 100644 index fa6dad8..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$10.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$11.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$11.class deleted file mode 100644 index 2464a77..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$11.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$12.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$12.class deleted file mode 100644 index ba8aac9..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$12.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$13.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$13.class deleted file mode 100644 index e7b87b8..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$13.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$14.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$14.class deleted file mode 100644 index ced2c06..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$14.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$15.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$15.class deleted file mode 100644 index 3de8b98..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$15.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$16.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$16.class deleted file mode 100644 index 2aa3568..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$16.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$17.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$17.class deleted file mode 100644 index 482acdc..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$17.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$18.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$18.class deleted file mode 100644 index 1b621b9..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$18.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$19.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$19.class deleted file mode 100644 index 77eab30..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$19.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$2.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$2.class deleted file mode 100644 index 8f541ac..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$2.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$20.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$20.class deleted file mode 100644 index 3bee1a4..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$20.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$21.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$21.class deleted file mode 100644 index a2ae547..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$21.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$3.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$3.class deleted file mode 100644 index 6b7299e..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$3.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$4.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$4.class deleted file mode 100644 index 143179a..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$4.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$5.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$5.class deleted file mode 100644 index e9618b7..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$5.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$6.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$6.class deleted file mode 100644 index e48ba41..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$6.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$7.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$7.class deleted file mode 100644 index 603d92d..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$7.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$8.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$8.class deleted file mode 100644 index 6013844..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$8.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$9.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test$9.class deleted file mode 100644 index 8578950..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test$9.class and /dev/null differ diff --git a/app/build/classes/main/de/bitsharesmunich/graphenej/Test.class b/app/build/classes/main/de/bitsharesmunich/graphenej/Test.class deleted file mode 100644 index 49c3f2b..0000000 Binary files a/app/build/classes/main/de/bitsharesmunich/graphenej/Test.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountOptions$AccountOptionsDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountOptions$AccountOptionsDeserializer.class deleted file mode 100644 index 114f1cc..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountOptions$AccountOptionsDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountOptions.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountOptions.class deleted file mode 100644 index cd9d508..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountOptions.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountUpdateOperation.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountUpdateOperation.class deleted file mode 100644 index 4edaca7..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountUpdateOperation.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountUpdateTransactionBuilder.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountUpdateTransactionBuilder.class deleted file mode 100644 index 27e4f4b..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AccountUpdateTransactionBuilder.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Address.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Address.class deleted file mode 100644 index d92f366..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Address.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset$AssetDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset$AssetDeserializer.class deleted file mode 100644 index e1468d5..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset$AssetDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset$AssetType.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset$AssetType.class deleted file mode 100644 index 72f2697..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset$AssetType.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset.class deleted file mode 100644 index e48987e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Asset.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount$AssetAmountDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount$AssetAmountDeserializer.class deleted file mode 100644 index a3c33b7..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount$AssetAmountDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount$AssetAmountSerializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount$AssetAmountSerializer.class deleted file mode 100644 index 48587ad..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount$AssetAmountSerializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount.class deleted file mode 100644 index 18edbf0..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetAmount.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetOptions.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetOptions.class deleted file mode 100644 index d758d66..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/AssetOptions.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Authority$AuthorityDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Authority$AuthorityDeserializer.class deleted file mode 100644 index c1df239..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Authority$AuthorityDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Authority.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Authority.class deleted file mode 100644 index d31ea13..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Authority.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BIP39.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BIP39.class deleted file mode 100644 index 461a343..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BIP39.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BaseOperation.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BaseOperation.class deleted file mode 100644 index 86a0170..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BaseOperation.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BlockData.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BlockData.class deleted file mode 100644 index 73d1f31..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BlockData.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BrainKey.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BrainKey.class deleted file mode 100644 index 4cfdb75..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/BrainKey.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$BITSHARES.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$BITSHARES.class deleted file mode 100644 index 12e641b..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$BITSHARES.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$GRAPHENE.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$GRAPHENE.class deleted file mode 100644 index 776800d..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$GRAPHENE.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$TEST.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$TEST.class deleted file mode 100644 index 5c3c42a..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains$TEST.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains.class deleted file mode 100644 index df2aff2..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Chains.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Converter.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Converter.class deleted file mode 100644 index 73df061..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Converter.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Extensions.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Extensions.class deleted file mode 100644 index c602a45..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Extensions.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/FileBin.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/FileBin.class deleted file mode 100644 index cef4d9e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/FileBin.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/GrapheneObject.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/GrapheneObject.class deleted file mode 100644 index f71844a..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/GrapheneObject.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Invoice.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Invoice.class deleted file mode 100644 index 5324a3e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Invoice.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/LimitOrder.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/LimitOrder.class deleted file mode 100644 index 86be6e8..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/LimitOrder.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/LineItem.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/LineItem.class deleted file mode 100644 index f3cdb61..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/LineItem.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Main.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Main.class deleted file mode 100644 index 9029bd0..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Main.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/MarketTrade.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/MarketTrade.class deleted file mode 100644 index f83f779..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/MarketTrade.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/ObjectType.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/ObjectType.class deleted file mode 100644 index 5ab4738..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/ObjectType.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/OperationType.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/OperationType.class deleted file mode 100644 index 4c58f6d..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/OperationType.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Optional.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Optional.class deleted file mode 100644 index e8af76a..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Optional.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Price.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Price.class deleted file mode 100644 index 0930f37..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Price.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/PublicKey.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/PublicKey.class deleted file mode 100644 index a11bcab..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/PublicKey.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/RPC.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/RPC.class deleted file mode 100644 index f564bc3..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/RPC.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$1.class deleted file mode 100644 index 305df1e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$10.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$10.class deleted file mode 100644 index fa6dad8..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$10.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$11.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$11.class deleted file mode 100644 index 2464a77..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$11.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$12.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$12.class deleted file mode 100644 index ba8aac9..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$12.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$13.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$13.class deleted file mode 100644 index e7b87b8..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$13.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$14.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$14.class deleted file mode 100644 index ced2c06..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$14.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$15.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$15.class deleted file mode 100644 index 3de8b98..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$15.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$16.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$16.class deleted file mode 100644 index 2aa3568..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$16.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$17.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$17.class deleted file mode 100644 index 482acdc..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$17.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$18.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$18.class deleted file mode 100644 index 1b621b9..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$18.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$19.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$19.class deleted file mode 100644 index 77eab30..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$19.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$2.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$2.class deleted file mode 100644 index 8f541ac..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$2.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$20.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$20.class deleted file mode 100644 index 3bee1a4..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$20.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$21.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$21.class deleted file mode 100644 index a2ae547..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$21.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$3.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$3.class deleted file mode 100644 index 6b7299e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$3.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$4.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$4.class deleted file mode 100644 index 143179a..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$4.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$5.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$5.class deleted file mode 100644 index e9618b7..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$5.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$6.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$6.class deleted file mode 100644 index e48ba41..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$6.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$7.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$7.class deleted file mode 100644 index 603d92d..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$7.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$8.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$8.class deleted file mode 100644 index 6013844..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$8.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$9.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$9.class deleted file mode 100644 index 8578950..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test$9.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test.class deleted file mode 100644 index 49c3f2b..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Test.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction$TransactionDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction$TransactionDeserializer.class deleted file mode 100644 index 8817fcf..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction$TransactionDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction$TransactionSerializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction$TransactionSerializer.class deleted file mode 100644 index c987873..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction$TransactionSerializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction.class deleted file mode 100644 index e2996ac..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Transaction.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransactionBuilder.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransactionBuilder.class deleted file mode 100644 index 5273bfd..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransactionBuilder.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation$TransferDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation$TransferDeserializer.class deleted file mode 100644 index 2c253f5..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation$TransferDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation$TransferSerializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation$TransferSerializer.class deleted file mode 100644 index 93b22fe..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation$TransferSerializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation.class deleted file mode 100644 index e63b648..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferOperation.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferTransactionBuilder.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferTransactionBuilder.class deleted file mode 100644 index 4ce14e6..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/TransferTransactionBuilder.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount$UserAccountDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount$UserAccountDeserializer.class deleted file mode 100644 index ab9177b..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount$UserAccountDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount$UserAccountSimpleDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount$UserAccountSimpleDeserializer.class deleted file mode 100644 index d612b23..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount$UserAccountSimpleDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount.class deleted file mode 100644 index eba9e8a..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/UserAccount.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Util.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Util.class deleted file mode 100644 index a24968c..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Util.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Varint.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Varint.class deleted file mode 100644 index c5c99a9..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Varint.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Vote.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Vote.class deleted file mode 100644 index d21294e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/Vote.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/BaseGrapheneHandler.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/BaseGrapheneHandler.class deleted file mode 100644 index dffd204..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/BaseGrapheneHandler.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountBalances$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountBalances$1.class deleted file mode 100644 index 9d49dee..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountBalances$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountBalances.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountBalances.class deleted file mode 100644 index d52ebe6..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountBalances.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountByName$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountByName$1.class deleted file mode 100644 index 1fab0b3..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountByName$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountByName.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountByName.class deleted file mode 100644 index 116a19f..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountByName.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountHistory.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountHistory.class deleted file mode 100644 index 347ffa6..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountHistory.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccounts$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccounts$1.class deleted file mode 100644 index 109ab0a..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccounts$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccounts.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccounts.class deleted file mode 100644 index 1c5de78..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccounts.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountsByAddress$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountsByAddress$1.class deleted file mode 100644 index 38c20df..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountsByAddress$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountsByAddress.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountsByAddress.class deleted file mode 100644 index 720a23b..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAccountsByAddress.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders$1.class deleted file mode 100644 index 140e41d..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders$2.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders$2.class deleted file mode 100644 index 1a07df9..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders$2.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders.class deleted file mode 100644 index 0bdc2fd..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetAllAssetHolders.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader$1.class deleted file mode 100644 index 463ba0c..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader$2.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader$2.class deleted file mode 100644 index a76b9a6..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader$2.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader.class deleted file mode 100644 index 39a6dd4..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetBlockHeader.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetLimitOrders$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetLimitOrders$1.class deleted file mode 100644 index e64b17a..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetLimitOrders$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetLimitOrders.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetLimitOrders.class deleted file mode 100644 index c1c2550..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetLimitOrders.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory$1.class deleted file mode 100644 index 4cc9146..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory$2.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory$2.class deleted file mode 100644 index 05ac6d7..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory$2.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory.class deleted file mode 100644 index 0b8d6ff..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetMarketHistory.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetObjects$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetObjects$1.class deleted file mode 100644 index 853cfcd..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetObjects$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetObjects.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetObjects.class deleted file mode 100644 index cc0e6ca..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetObjects.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory$1.class deleted file mode 100644 index 5cdbc68..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory$2.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory$2.class deleted file mode 100644 index 9386f1e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory$2.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory.class deleted file mode 100644 index 442efd4..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRelativeAccountHistory.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRequiredFees$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRequiredFees$1.class deleted file mode 100644 index ae7cc99..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRequiredFees$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRequiredFees.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRequiredFees.class deleted file mode 100644 index 39ebac8..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetRequiredFees.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetTradeHistory$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetTradeHistory$1.class deleted file mode 100644 index 9c0e097..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetTradeHistory$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetTradeHistory.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetTradeHistory.class deleted file mode 100644 index 275ab91..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/GetTradeHistory.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/ListAssets$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/ListAssets$1.class deleted file mode 100644 index 50cd4d5..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/ListAssets$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/ListAssets.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/ListAssets.class deleted file mode 100644 index a48ce15..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/ListAssets.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAccounts$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAccounts$1.class deleted file mode 100644 index 74dcb86..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAccounts$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAccounts.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAccounts.class deleted file mode 100644 index 5ebbe06..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAccounts.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAssetSymbols$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAssetSymbols$1.class deleted file mode 100644 index 69283bd..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAssetSymbols$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAssetSymbols.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAssetSymbols.class deleted file mode 100644 index 29d9f82..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/LookupAssetSymbols.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/SubscriptionMessagesHub$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/SubscriptionMessagesHub$1.class deleted file mode 100644 index 2c4a348..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/SubscriptionMessagesHub$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/SubscriptionMessagesHub.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/SubscriptionMessagesHub.class deleted file mode 100644 index 19a8718..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/SubscriptionMessagesHub.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$1.class deleted file mode 100644 index 87f81f0..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$2.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$2.class deleted file mode 100644 index 068611b..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$2.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$3.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$3.class deleted file mode 100644 index 32dd377..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$3.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$4.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$4.class deleted file mode 100644 index 0c70581..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence$4.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence.class deleted file mode 100644 index a448a76..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/api/TransactionBroadcastSequence.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/AndroidRandomSource.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/AndroidRandomSource.class deleted file mode 100644 index d21eacf..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/AndroidRandomSource.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/EntropySource.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/EntropySource.class deleted file mode 100644 index eff8a86..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/EntropySource.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/RandomSource.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/RandomSource.class deleted file mode 100644 index 84b2d15..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/RandomSource.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomGenerator.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomGenerator.class deleted file mode 100644 index ccd0783..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomGenerator.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomStrengthener$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomStrengthener$1.class deleted file mode 100644 index bdc8f07..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomStrengthener$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomStrengthener.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomStrengthener.class deleted file mode 100644 index b14d676..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/crypto/SecureRandomStrengthener.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/ChecksumException.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/ChecksumException.class deleted file mode 100644 index 80c692e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/ChecksumException.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/IncompatibleOperation.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/IncompatibleOperation.class deleted file mode 100644 index 4228ce9..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/IncompatibleOperation.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/IncompleteAssetError.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/IncompleteAssetError.class deleted file mode 100644 index 9a0ac31..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/IncompleteAssetError.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/MalformedAddressException.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/MalformedAddressException.class deleted file mode 100644 index 8e3002e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/MalformedAddressException.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/MalformedTransactionException.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/MalformedTransactionException.class deleted file mode 100644 index ed88a5f..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/errors/MalformedTransactionException.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/ByteSerializable.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/ByteSerializable.class deleted file mode 100644 index bca8df6..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/ByteSerializable.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/GrapheneSerializable.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/GrapheneSerializable.class deleted file mode 100644 index 2676430..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/GrapheneSerializable.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/JsonSerializable.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/JsonSerializable.class deleted file mode 100644 index 0a2391d..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/JsonSerializable.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/SubscriptionHub.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/SubscriptionHub.class deleted file mode 100644 index 6cb21b1..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/SubscriptionHub.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/SubscriptionListener.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/SubscriptionListener.class deleted file mode 100644 index 44f4113..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/SubscriptionListener.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/WitnessResponseListener.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/WitnessResponseListener.class deleted file mode 100644 index 5bf0ccb..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/interfaces/WitnessResponseListener.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AccountBalanceUpdate.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AccountBalanceUpdate.class deleted file mode 100644 index 92f5218..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AccountBalanceUpdate.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AccountProperties.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AccountProperties.class deleted file mode 100644 index bc7e536..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AccountProperties.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/ApiCall$ApiCallSerializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/ApiCall$ApiCallSerializer.class deleted file mode 100644 index 1943e41..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/ApiCall$ApiCallSerializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/ApiCall.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/ApiCall.class deleted file mode 100644 index 8854a98..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/ApiCall.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetFeed.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetFeed.class deleted file mode 100644 index be93dcb..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetFeed.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetHolderCount$HoldersCountDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetHolderCount$HoldersCountDeserializer.class deleted file mode 100644 index fdae570..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetHolderCount$HoldersCountDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetHolderCount.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetHolderCount.class deleted file mode 100644 index 7f89afb..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/AssetHolderCount.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse$Error.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse$Error.class deleted file mode 100644 index bcfdb08..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse$Error.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse$ErrorData.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse$ErrorData.class deleted file mode 100644 index f227071..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse$ErrorData.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse.class deleted file mode 100644 index 8c3a09d..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BaseResponse.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BitAssetData.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BitAssetData.class deleted file mode 100644 index 7360d0f..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BitAssetData.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BlockHeader.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BlockHeader.class deleted file mode 100644 index 5ddeb80..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BlockHeader.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BroadcastedTransaction.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BroadcastedTransaction.class deleted file mode 100644 index b435b98..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BroadcastedTransaction.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject$BucketDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject$BucketDeserializer.class deleted file mode 100644 index f31fda6..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject$BucketDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject$Key.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject$Key.class deleted file mode 100644 index 3bb1b3e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject$Key.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject.class deleted file mode 100644 index 16aeac9..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/BucketObject.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/DynamicGlobalProperties.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/DynamicGlobalProperties.class deleted file mode 100644 index 5a35242..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/DynamicGlobalProperties.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/HistoricalTransfer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/HistoricalTransfer.class deleted file mode 100644 index daebc9e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/HistoricalTransfer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/SubscriptionResponse$SubscriptionResponseDeserializer.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/SubscriptionResponse$SubscriptionResponseDeserializer.class deleted file mode 100644 index 276c17e..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/SubscriptionResponse$SubscriptionResponseDeserializer.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/SubscriptionResponse.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/SubscriptionResponse.class deleted file mode 100644 index 85e164c..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/SubscriptionResponse.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/WitnessResponse.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/WitnessResponse.class deleted file mode 100644 index c0502c7..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/WitnessResponse.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/LinkedAccount.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/LinkedAccount.class deleted file mode 100644 index 5256b29..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/LinkedAccount.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/PrivateKeyBackup.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/PrivateKeyBackup.class deleted file mode 100644 index a6cf9a3..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/PrivateKeyBackup.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/Wallet.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/Wallet.class deleted file mode 100644 index 6d5bfb7..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/Wallet.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/WalletBackup.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/WalletBackup.class deleted file mode 100644 index 9ff3766..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/models/backup/WalletBackup.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/objects/Memo.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/objects/Memo.class deleted file mode 100644 index 235f6fb..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/objects/Memo.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext$1.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext$1.class deleted file mode 100644 index 98efdd7..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext$1.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext$NaiveTrustManager.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext$NaiveTrustManager.class deleted file mode 100644 index 2b58b80..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext$NaiveTrustManager.class and /dev/null differ diff --git a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext.class b/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext.class deleted file mode 100644 index e2f604d..0000000 Binary files a/graphenej/build/classes/main/de/bitsharesmunich/graphenej/test/NaiveSSLContext.class and /dev/null differ diff --git a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/AssetTest.class b/graphenej/build/classes/test/de/bitsharesmunich/graphenej/AssetTest.class deleted file mode 100644 index 37353c3..0000000 Binary files a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/AssetTest.class and /dev/null differ diff --git a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/AuthorityTest.class b/graphenej/build/classes/test/de/bitsharesmunich/graphenej/AuthorityTest.class deleted file mode 100644 index 917b4a5..0000000 Binary files a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/AuthorityTest.class and /dev/null differ diff --git a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/PublicKeyTest.class b/graphenej/build/classes/test/de/bitsharesmunich/graphenej/PublicKeyTest.class deleted file mode 100644 index b4273b3..0000000 Binary files a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/PublicKeyTest.class and /dev/null differ diff --git a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/objects/MemoTest.class b/graphenej/build/classes/test/de/bitsharesmunich/graphenej/objects/MemoTest.class deleted file mode 100644 index 018d099..0000000 Binary files a/graphenej/build/classes/test/de/bitsharesmunich/graphenej/objects/MemoTest.class and /dev/null differ diff --git a/graphenej/src/main/java/de/bitsharesmunich/graphenej/Main.java b/graphenej/src/main/java/de/bitsharesmunich/graphenej/Main.java deleted file mode 100644 index 14e0ed8..0000000 --- a/graphenej/src/main/java/de/bitsharesmunich/graphenej/Main.java +++ /dev/null @@ -1,89 +0,0 @@ -package de.bitsharesmunich.graphenej; - -public class Main { - - // Brain key from Nelson's app referencing the bilthon-83 account - public static final String BILTHON_83_BRAIN_KEY = System.getenv("BILTHON_83_BRAIN_KEY"); - - public static final String BILTHON_83_ORIGINAL_BRAIN_KEY = System.getenv("BILTHON_83_ORIGINAL_BRAIN_KEY"); - - public static final String BILTHON_1_BRAIN_KEY = System.getenv("BILTHON_1_BRAIN_KEY"); - - public static final String BILTHON_5_BRAIN_KEY = System.getenv("BILTHON_5_BRAIN_KEY"); - - public static final String BILTHON_7_BRAIN_KEY = System.getenv("BILTHON_7_BRAIN_KEY"); - - public static final String BIP39_KEY = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"; - - public static final String WIF = "5KMzB2GqGhnh7ufhgddmz1eKPHS72uTLeL9hHjSvPb1UywWknF5"; - - public static final String BILTHON_83_PASSWORD = System.getenv("BILTHON_83_PASSWORD"); - - public static final String BILTHON_25_PASSWORD = System.getenv("BILTHON_25_PASSWORD"); - - public static final String BILTHON_11_BRAIN_KEY = System.getenv("BILTHON_11_BRAIN_KEY"); - - // Static block information used for transaction serialization tests - public static int REF_BLOCK_NUM = 56204; - public static int REF_BLOCK_PREFIX = 1614747814; - public static int RELATIVE_EXPIRATION = 1478385607; - - public static void main(String[] args) { - Test test = new Test(); - -// test.testTransactionSerialization(); -// ECKey.ECDSASignature signature = test.testSigning(); - -// try { -// test.testWebSocketTransfer(); -// } catch (IOException e) { -// e.printStackTrace(); -// } -// test.testCustomSerializer(); -// test.testUserAccountSerialization(); -// test.testTransactionSerialization(); -// test.testLoginSerialization(); -// test.testNetworkBroadcastSerialization(); -// test.testNetworkBroadcastDeserialization(); -// test.testGetDynamicParams(); -// test.testGetRequiredFeesSerialization(); -// test.testRequiredFeesResponse(); -// test.testTransactionBroadcastSequence(); -// test.testAccountLookupDeserialization(); -// test.testPrivateKeyManipulations(); -// test.testPublicKeyManipulations(); -// test.testGetAccountByName(); -// test.testGetRequiredFees(); -// test.testRandomNumberGeneration(); -// test.testBrainKeyOperations(false); -// test.testBip39Opertion(); -// test.testAccountNamebyAddress(); -// test.testAccountNameById(); -// test.testRelativeAccountHistory(); -// test.testingInvoiceGeneration(); -// test.testCompression(); -// test.testAccountUpdateSerialization(); -// test.testAccountUpdateOperationBroadcast(); -// test.testCreateBinFile(); -// test.testImportBinFile(); - test.testExportBinFile(); -// test.testLzmaCompression(); -// test.testLzmaDecompression(); -// test.testSimpleDecompression(); -// test.testLookupAccounts(); -// test.testLookupAccounts(); -// test.testDecodeMemo(); -// test.testGetRelativeAccountHistory(); -// test.testLookupAssetSymbols(); -// test.testListAssets(); -// test.testGetObjects(); -// test.testGetBlockHeader(); -// test.testGetLimitOrders(); -// test.testGetTradeHistory(); -// test.testAssetSerialization(); -// test.testGetMarketHistory(); -// test.testGetAccountBalances(); -// test.testGetAssetHoldersCount(); -// test.testSubscription(null); - } -} diff --git a/graphenej/src/main/java/de/bitsharesmunich/graphenej/Test.java b/graphenej/src/main/java/de/bitsharesmunich/graphenej/Test.java deleted file mode 100644 index 8322619..0000000 --- a/graphenej/src/main/java/de/bitsharesmunich/graphenej/Test.java +++ /dev/null @@ -1,1415 +0,0 @@ -package de.bitsharesmunich.graphenej; - -import com.google.common.primitives.Bytes; -import de.bitsharesmunich.graphenej.interfaces.SubscriptionListener; -import de.bitsharesmunich.graphenej.models.*; -import de.bitsharesmunich.graphenej.models.backup.LinkedAccount; -import de.bitsharesmunich.graphenej.models.backup.PrivateKeyBackup; -import de.bitsharesmunich.graphenej.models.backup.Wallet; -import de.bitsharesmunich.graphenej.models.backup.WalletBackup; -import de.bitsharesmunich.graphenej.objects.Memo; -import com.google.common.primitives.UnsignedLong; -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.reflect.TypeToken; -import de.bitsharesmunich.graphenej.errors.MalformedAddressException; -import de.bitsharesmunich.graphenej.errors.MalformedTransactionException; -import de.bitsharesmunich.graphenej.interfaces.WitnessResponseListener; -import de.bitsharesmunich.graphenej.test.NaiveSSLContext; -import com.neovisionaries.ws.client.*; -import de.bitsharesmunich.graphenej.api.*; -import org.bitcoinj.core.*; -import org.spongycastle.crypto.digests.RIPEMD160Digest; -import org.tukaani.xz.*; - -import javax.net.ssl.SSLContext; -import java.io.*; -import java.lang.reflect.Type; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.util.*; -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * Created by nelson on 11/9/16. - */ -public class Test { - - public static final String AMAZON_WITNESS = "ws://54.91.97.99:8090"; - public static final String WITNESS_URL = "api://api.devling.xyz:8088"; - public static final String OPENLEDGER_WITNESS_URL = "wss://bitshares.openledger.info/api"; - public static final String BLOCK_PAY_DE = "wss://de.blockpay.ch:8089"; - public static final String BLOCK_PAY_FR = "wss://fr.blockpay.ch:8089"; - - private Transaction transaction; - - public Transaction GetTransaction() { - return transaction; - } - - private WitnessResponseListener mListener = new WitnessResponseListener() { - - @Override - public void onSuccess(WitnessResponse response) { - - if (response.result.getClass() == AccountProperties.class) { - AccountProperties accountProperties = (AccountProperties) response.result; - System.out.println("Got account properties"); - System.out.println("account: " + accountProperties.toString()); - System.out.println("id: " + accountProperties.id); - - } else if (response.result.getClass() == ArrayList.class) { - List list = (List) response.result; - if (list.size() > 0) { - if (list.get(0) instanceof AccountProperties) { - List accountPropertiesList = list; - for (AccountProperties accountProperties : accountPropertiesList) { - System.out.println("Account id: " + accountProperties.id); - } - } else if (list.get(0) instanceof AssetAmount) { - AssetAmount assetAmount = (AssetAmount) list.get(0); - System.out.println("Got fee"); - System.out.println("amount: " + assetAmount.getAmount() + ", asset id: " + assetAmount.getAsset().getObjectId()); - } else if (list.get(0).getClass() == ArrayList.class) { - List sl = (List) list.get(0); - if (sl.size() > 0) { - if (response.result.getClass() == AccountProperties.class) { - AccountProperties accountProperties = (AccountProperties) response.result; - System.out.println("Got account properties " + accountProperties); - } else { - String accountId = (String) sl.get(0); - System.out.println("account id : " + accountId); - try { - - // Create a custom SSL context. - SSLContext context = null; - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(OPENLEDGER_WITNESS_URL); - ArrayList userAccounts = new ArrayList(); - userAccounts.add(new UserAccount(accountId)); - mWebSocket.addListener(new GetAccounts(userAccounts, null)); - mWebSocket.connect(); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (NoSuchAlgorithmException ex) { - Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex); - } - } - } - } - } else { - System.out.println("Got empty list!"); - } - } else if (response.result.getClass() == JsonArray.class) { - System.out.println("Json array : " + ((JsonArray) response.result)); - } else { - System.out.println("Got other: " + response.result.getClass()); - } - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError. message: " + error.message); - } - }; - - public ECKey.ECDSASignature testSigning() { - byte[] serializedTransaction = this.transaction.toBytes(); - Sha256Hash hash = Sha256Hash.wrap(Sha256Hash.hash(serializedTransaction)); - byte[] bytesDigest = hash.getBytes(); - ECKey sk = transaction.getPrivateKey(); - ECKey.ECDSASignature signature = sk.sign(hash); - return signature; - } - - public String testSigningMessage() { - byte[] serializedTransaction = this.transaction.toBytes(); - Sha256Hash hash = Sha256Hash.wrap(Sha256Hash.hash(serializedTransaction)); - ECKey sk = transaction.getPrivateKey(); - return sk.signMessage(hash.toString()); - } - - public byte[] signMessage() { - byte[] serializedTransaction = this.transaction.toBytes(); - Sha256Hash hash = Sha256Hash.wrap(Sha256Hash.hash(serializedTransaction)); - System.out.println(">> digest <<"); - System.out.println(Util.bytesToHex(hash.getBytes())); - ECKey sk = transaction.getPrivateKey(); - System.out.println("Private key bytes"); - System.out.println(Util.bytesToHex(sk.getPrivKeyBytes())); - boolean isCanonical = false; - int recId = -1; - ECKey.ECDSASignature sig = null; - while (!isCanonical) { - sig = sk.sign(hash); - if (!sig.isCanonical()) { - System.out.println("Signature was not canonical, retrying"); - continue; - } else { - System.out.println("Signature is canonical"); - isCanonical = true; - } - // Now we have to work backwards to figure out the recId needed to recover the signature. - for (int i = 0; i < 4; i++) { - ECKey k = ECKey.recoverFromSignature(i, sig, hash, sk.isCompressed()); - if (k != null && k.getPubKeyPoint().equals(sk.getPubKeyPoint())) { - recId = i; - break; - } else { - if (k == null) { - System.out.println("Recovered key was null"); - } - if (k.getPubKeyPoint().equals(sk.getPubKeyPoint())) { - System.out.println("Recovered pub point is not equal to sk pub point"); - } - } - } - if (recId == -1) { - throw new RuntimeException("Could not construct a recoverable key. This should never happen."); - } - } - int headerByte = recId + 27 + (sk.isCompressed() ? 4 : 0); - byte[] sigData = new byte[65]; // 1 header + 32 bytes for R + 32 bytes for S - sigData[0] = (byte) headerByte; - System.arraycopy(Utils.bigIntegerToBytes(sig.r, 32), 0, sigData, 1, 32); - System.arraycopy(Utils.bigIntegerToBytes(sig.s, 32), 0, sigData, 33, 32); - System.out.println("recId: " + recId); - System.out.println("r: " + Util.bytesToHex(sig.r.toByteArray())); - System.out.println("s: " + Util.bytesToHex(sig.s.toByteArray())); - return sigData; -// return new String(Base64.encode(sigData), Charset.forName("UTF-8")); - } - - public void testTransactionSerialization(long head_block_number, String head_block_id, long relative_expiration) { - BlockData blockData = new BlockData(head_block_number, head_block_id, relative_expiration); - - ArrayList operations = new ArrayList(); - UserAccount from = new UserAccount("1.2.138632"); - UserAccount to = new UserAccount("1.2.129848"); - AssetAmount amount = new AssetAmount(UnsignedLong.valueOf(100), new Asset("1.3.120")); - AssetAmount fee = new AssetAmount(UnsignedLong.valueOf(264174), new Asset("1.3.0")); - operations.add(new TransferOperation(from, to, amount, fee)); - BrainKey brainKey = new BrainKey(Main.BILTHON_83_BRAIN_KEY, 0); - this.transaction = new Transaction(brainKey.getWalletImportFormat(), blockData, operations); - byte[] serializedTransaction = this.transaction.toBytes(); - System.out.println("Serialized transaction"); - System.out.println(Util.bytesToHex(serializedTransaction)); - } - - public void testCustomSerializer() { - AssetAmount amount = new AssetAmount(UnsignedLong.valueOf(100), new Asset("1.3.120")); - String jsonAmount = amount.toJsonString(); - System.out.println("JSON amount"); - System.out.println(jsonAmount); - } - - public void testUserAccountSerialization() { - UserAccount account = new UserAccount("1.2.138632"); - System.out.println(Util.bytesToHex(account.toBytes())); - } - - public void testTransactionSerialization() { - try { - Transaction transaction = new TransferTransactionBuilder() - .setSource(new UserAccount("1.2.138632")) - .setDestination(new UserAccount("1.2.129848")) - .setAmount(new AssetAmount(UnsignedLong.valueOf(100), new Asset("1.3.120"))) - .setFee(new AssetAmount(UnsignedLong.valueOf(264174), new Asset("1.3.0"))) - .setPrivateKey(DumpedPrivateKey.fromBase58(null, Main.WIF).getKey()) - .setBlockData(new BlockData(Main.REF_BLOCK_NUM, Main.REF_BLOCK_PREFIX, Main.RELATIVE_EXPIRATION)) - .build(); - - ArrayList transactionList = new ArrayList<>(); - transactionList.add(transaction); - - byte[] signature = transaction.getGrapheneSignature(); - System.out.println(Util.bytesToHex(signature)); - ApiCall call = new ApiCall(4, "call", "broadcast_transaction", transactionList, "2.0", 1); - String jsonCall = call.toJsonString(); - System.out.println("json call"); - System.out.println(jsonCall); - } catch (MalformedTransactionException e) { - System.out.println("MalformedTransactionException. Msg: " + e.getMessage()); - } - } - - public void testLoginSerialization() { - ArrayList loginParams = new ArrayList<>(); -// loginParams.add("nelson"); -// loginParams.add("supersecret"); - loginParams.add(null); - loginParams.add(null); - ApiCall loginCall = new ApiCall(1, "login", loginParams, "2.0", 1); - String jsonLoginCall = loginCall.toJsonString(); - System.out.println("login call"); - System.out.println(jsonLoginCall); - } - - public void testNetworkBroadcastSerialization() { - ArrayList params = new ArrayList<>(); - ApiCall networkParamsCall = new ApiCall(3, "network_broadcast", params, "2.0", 1); - String call = networkParamsCall.toJsonString(); - System.out.println("network broadcast"); - System.out.println(call); - } - - public void testNetworkBroadcastDeserialization() { - String response = "{\"id\":2,\"result\":2}"; - Gson gson = new Gson(); - Type ApiIdResponse = new TypeToken>() { - }.getType(); - WitnessResponse witnessResponse = gson.fromJson(response, ApiIdResponse); - } - - public void testGetDynamicParams() { - ArrayList emptyParams = new ArrayList<>(); - ApiCall getDynamicParametersCall = new ApiCall(0, "get_dynamic_global_properties", emptyParams, "2.0", 0); - System.out.println(getDynamicParametersCall.toJsonString()); - } - - public void testRequiredFeesResponse() { - String response = "{\"id\":1,\"result\":[{\"amount\":264174,\"asset_id\":\"1.3.0\"}]}"; - Type AccountLookupResponse = new TypeToken>>() { - }.getType(); - GsonBuilder gsonBuilder = new GsonBuilder(); - gsonBuilder.registerTypeAdapter(AssetAmount.class, new AssetAmount.AssetAmountDeserializer()); - WitnessResponse> witnessResponse = gsonBuilder.create().fromJson(response, AccountLookupResponse); - for (AssetAmount assetAmount : witnessResponse.result) { - System.out.println("asset : " + assetAmount.toJsonString()); - } - } - - public void testTransactionBroadcastSequence() { - String url = Test.OPENLEDGER_WITNESS_URL; - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - System.out.println(error.data.message); - } - }; - - try { - ECKey from = new BrainKey(Main.BILTHON_83_BRAIN_KEY, 0).getPrivateKey(); - PublicKey to = new PublicKey(ECKey.fromPublicOnly(new BrainKey(Main.BILTHON_5_BRAIN_KEY, 0).getPublicKey())); - - // Creating memo - long nonce = 1; - byte[] encryptedMessage = Memo.encryptMessage(from, to, nonce, "another message"); - Memo memo = new Memo(new Address(ECKey.fromPublicOnly(from.getPubKey())), new Address(to.getKey()), nonce, encryptedMessage); - - // Creating transaction - Transaction transaction = new TransferTransactionBuilder() - .setSource(new UserAccount("1.2.138632")) // bilthon-83 - .setDestination(new UserAccount("1.2.139313")) // bilthon-5 - .setAmount(new AssetAmount(UnsignedLong.valueOf(1), new Asset("1.3.0"))) - .setFee(new AssetAmount(UnsignedLong.valueOf(264174), new Asset("1.3.0"))) - .setPrivateKey(new BrainKey(Main.BILTHON_83_BRAIN_KEY, 0).getPrivateKey()) - .setMemo(memo) - .build(); - - ArrayList transactionList = new ArrayList<>(); - transactionList.add(transaction); - - SSLContext context = null; - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - mWebSocket.addListener(new TransactionBroadcastSequence(transaction, new Asset("1.3.0"), listener)); - mWebSocket.connect(); - - } catch (MalformedTransactionException e) { - System.out.println("MalformedTransactionException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgoritmException. Msg: " + e.getMessage()); - } - } - - public void testAccountLookupDeserialization() { - String response = "{\"id\":1,\"result\":[[\"ken\",\"1.2.3111\"],[\"ken-1\",\"1.2.101491\"],[\"ken-k\",\"1.2.108646\"]]}"; - Type AccountLookupResponse = new TypeToken>>>() { - }.getType(); - Gson gson = new Gson(); - WitnessResponse>> witnessResponse = gson.fromJson(response, AccountLookupResponse); - for (int i = 0; i < witnessResponse.result.size(); i++) { - System.out.println("suggested name: " + witnessResponse.result.get(i).get(0)); - } - } - - public void testPrivateKeyManipulations() { - String brainKeyWords = "PUMPER ISOTOME SERE STAINER CLINGER MOONLIT CHAETA UPBRIM AEDILIC BERTHER NIT SHAP SAID SHADING JUNCOUS CHOUGH"; - BrainKey brainKey = new BrainKey(brainKeyWords, 0); - - ECKey privateKey = DumpedPrivateKey.fromBase58(null, brainKey.getWalletImportFormat()).getKey(); - System.out.println("private key..............: " + Util.bytesToHex(privateKey.getSecretBytes())); - System.out.println("public key uncompressed..: " + Util.bytesToHex(privateKey.getPubKey())); - System.out.println("public key compressed....: " + Util.bytesToHex(privateKey.getPubKeyPoint().getEncoded(true))); - System.out.println("base58...................: " + Base58.encode(privateKey.getPubKeyPoint().getEncoded(true))); - System.out.println("base58...................: " + Base58.encode(privateKey.getPubKey())); - } - - public void testPublicKeyManipulations() { -// PublicKey publicKey = new PublicKey("BTS8RiFgs8HkcVPVobHLKEv6yL3iXcC9SWjbPVS15dDAXLG9GYhnY"); -// System.out.println("Public key bytes"); -// System.out.println(Util.bytesToHex(publicKey.toBytes())); - Address address = null; - try { - address = new Address("BTS8RiFgs8HkcVPVobHLKEv6yL3iXcC9SWjbPVS15dDAXLG9GYhnY"); - System.out.println("Public key"); - System.out.println(Util.bytesToHex(address.getPublicKey().toBytes())); - } catch (MalformedAddressException e) { - e.printStackTrace(); - } - } - - public void testGetAccountByName() { - - WitnessResponseListener accountByNameListener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - AccountProperties accountProperties = (AccountProperties) response.result; - System.out.println("Owner and active authorities are the same: "+accountProperties.active.equals(accountProperties.owner)); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError. Msg: "+error.message); - } - }; - - try { - SSLContext context = null; - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - mWebSocket.addListener(new GetAccountByName("bilthon-83", accountByNameListener)); - mWebSocket.connect(); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: "+e.getMessage()); - } - } - - public void testGetRequiredFees() { - ArrayList accountParams = new ArrayList<>(); - Asset asset = new Asset("1.3.0"); - UserAccount from = new UserAccount("1.2.138632"); - UserAccount to = new UserAccount("1.2.129848"); - AssetAmount amount = new AssetAmount(UnsignedLong.valueOf(100), new Asset("1.3.120")); - AssetAmount fee = new AssetAmount(UnsignedLong.valueOf(264174), new Asset("1.3.0")); - TransferOperation transfer = new TransferOperation(from, to, amount, fee); - ArrayList operations = new ArrayList<>(); - operations.add(transfer); - - accountParams.add(operations); - accountParams.add(asset.getObjectId()); - - try { - WebSocketFactory factory = new WebSocketFactory().setConnectionTimeout(5000); - WebSocket mWebSocket = factory.createSocket(WITNESS_URL); - mWebSocket.addListener(new GetRequiredFees(operations, asset, mListener)); - mWebSocket.connect(); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } - } - - /** - * The final purpose of this test is to convert the plain brainkey at - * Main.BILTHON_83_BRAIN_KEY into the WIF at Main.WIF - */ - public void testBrainKeyOperations(boolean random) { - try { - BrainKey brainKey; - if (random) { - String current = new java.io.File(".").getCanonicalPath(); - File file = new File(current + "/src/main/java/com/luminiasoft/bitshares/brainkeydict.txt"); - - BufferedReader bufferedReader = new BufferedReader(new FileReader(file)); - StringBuffer buffer = new StringBuffer(); - String words = bufferedReader.readLine(); - String suggestion = BrainKey.suggest(words); - brainKey = new BrainKey(suggestion, 0); - } else { - System.out.println("Using brain key: " + Main.BILTHON_5_BRAIN_KEY); - brainKey = new BrainKey(Main.BILTHON_5_BRAIN_KEY, 0); - - } - ECKey key = brainKey.getPrivateKey(); - System.out.println("Private key..................: " + Util.bytesToHex(key.getSecretBytes())); - String wif = key.getPrivateKeyAsWiF(NetworkParameters.fromID(NetworkParameters.ID_MAINNET)); - System.out.println("Wif Compressed...............: " + wif); - String wif2 = key.decompress().getPrivateKeyAsWiF(NetworkParameters.fromID(NetworkParameters.ID_MAINNET)); - System.out.println("Wif Decompressed.............: " + wif2); - System.out.println("Wif from BrainKey............: " + brainKey.getWalletImportFormat()); - - byte[] uncompressedPubKey = key.decompress().getPubKey(); - byte[] compressedPubKey = key.getPubKey(); - - System.out.println("Public Key Decompressed......: " + Util.bytesToHex(uncompressedPubKey)); - System.out.println("Public Key Compressed........: " + Util.bytesToHex(compressedPubKey)); - - // Address generation test - Address address = new Address(ECKey.fromPublicOnly(key.getPubKey())); - System.out.println("Block explorer's address.....: " + address); - } catch (FileNotFoundException e) { - System.out.println("FileNotFoundException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public byte[] calculateChecksum(byte[] input) { - byte[] answer = new byte[4]; - RIPEMD160Digest ripemd160Digest = new RIPEMD160Digest(); - ripemd160Digest.update(input, 0, input.length); - byte[] output = new byte[160 / 8]; - ripemd160Digest.doFinal(output, 0); - System.arraycopy(output, 0, answer, 0, 4); - return answer; - } - - public void testBip39Opertion() { - BIP39 bip39 = new BIP39(Main.BIP39_KEY, ""); - } - - public void testAccountNamebyAddress() { - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - BrainKey brainKey = new BrainKey(Main.BILTHON_83_ORIGINAL_BRAIN_KEY, 0); -// Address address = new Address(ECKey.fromPublicOnly(brainKey.getPrivateKey().getPubKey())); - try { - Address address = new Address("BTS5BgjNRDeawGSc1NPk91p2BYYEhJWKgsjLZGDmFgY6uwhAYLy9G"); - - // Create a custom SSL context. - SSLContext context = null; - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - mWebSocket.addListener(new GetAccountsByAddress(address, listener)); - mWebSocket.connect(); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } - catch (MalformedAddressException e) { - System.out.println("MalformedAddressException. Msg: "+e.getMessage()); - } - } - - public void testAccountNameById() { - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - try { - // Create a custom SSL context. - SSLContext context = null; - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_FR); - ArrayList userAccounts = new ArrayList<>(); - userAccounts.add(new UserAccount("1.2.138632")); - mWebSocket.addListener(new GetAccounts(userAccounts, listener)); - mWebSocket.connect(); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } - } - - public void testRelativeAccountHistory() { - GetRelativeAccountHistory relativeAccountHistory = new GetRelativeAccountHistory(new UserAccount("1.2.138632"), mListener); - try { - // Create a custom SSL context. - SSLContext context = null; - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(AMAZON_WITNESS); - mWebSocket.addListener(relativeAccountHistory); - mWebSocket.connect(); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } - } - - public void testingInvoiceGeneration() { - LineItem[] lineItem = new LineItem[]{new LineItem("Apples", 2, 2.00)}; - Invoice invoice = new Invoice("bilthon-83", "Bilthon's store", "Invoice #12", "BTS", lineItem, "Thank you", ""); - String qrCodeData = Invoice.toQrCode(invoice); - System.out.println("qrCodeData"); - System.out.println(qrCodeData); - Invoice recovered = Invoice.fromQrCode(qrCodeData); - System.out.println("recovered invoice: " + recovered.toJsonString()); - } - - public void testCompression() { - String test = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."; - System.out.println("to compress"); - System.out.println(Util.bytesToHex(test.getBytes())); - byte[] compressed = Util.compress(test.getBytes(), Util.XZ); - System.out.println("compressed"); - System.out.println(Util.bytesToHex(compressed)); - } - - public void testCreateBinFile() { - byte[] fileOutput = FileBin.getBytesFromBrainKey(Main.BILTHON_83_BRAIN_KEY, "123456", "bithon-83"); - ///String stringFile = "02f9f3eb0f61a0a96134975d86048bf92e114d6a1ce286140cad3a96c33e697282bc0a8a24d1ad0c7bc084a79816ce38e36bd2d624aa8bf686f53fb4c7e25e3974da9b40e0b17e9d0b5b82793a04b19646169c49c58cd67f4950aee7d275141dd24f52baaaee772995a9bd6a6562a7a38aae08951236d3f612aecef7aedd720a91eacbab3a792ca3ebe0105838fe11f6e9d0e83e5d77eb82f17c7ba85c670e69294a8bcf8365cfeca487a60093498496bbec394c729e3fda9f32fdccdea56288b36fb14a26aa309b548a6dd9c1d616d22167348f8d580f9dc7361b4457d2dc6d75ec985d8e2d3dcdff89cd425d9f14037ac961eb10ac5f92bab356ccecd8cf018ec05ab40d915b628a75ae32cfa4005634f08b24c0dc8c5a7636ed70cbd86a7f0c4f6236d74310470fafe3af8b5346c8cb61957f7292b468d276498f9e806399588b0afd5777e6ee5fe7cd3a6691d9b5486cb5c7adbd5ad0b17588dd32d82b01d49ecf0f2bf24ee54a490ee620e8ab049047ffa416b5efa8f1f0155d8f1be866a10d0d62ae44a3a8ecc0121c08837c2ee1a25f8b6dd7266273c41f4b9a5e3d600e3fb4de870f99ab1a7196d93f222595f92e97a2480f58b61b62639154a374b987664fd317622aaad156f831b03f2d9606537b65b3b1fcfb1fb6be39560ad2c301dd1fc25cee755e61b49ebfe42ca7e64b4b0fc4aa347b48a85c0b585a3499fe278e25cb2141f8009b9afc875fa2a2c439bf6cdec4b5190a6deb7f9390f072beb24749a8a2114cc1870c07be079abb3ee0ebc827f9b53e158a529bc6552eba280f05edf5f7ae1911de7acb4888150a509d029ec7c9da6de8adabbca6773a0a293a0a42de8278c82e88b9390b42b56f58bd8633fb97130e799a47a744e2e8958fd5"; - //fileOutput = new BigInteger(stringFile, 16).toByteArray(); - System.out.println(FileBin.getBrainkeyFromByte(fileOutput, "123456")); - } - - public void testImportBinFile() { - try { - String current = new File(".").getCanonicalPath(); - File file = new File(current + "/src/main/java/de/bitsharesmunich/graphenej/bts_bilthon-25_20170214.bin"); - Path path = Paths.get(file.getAbsolutePath()); - byte[] data = Files.readAllBytes(path); - byte[] publicKey = new byte[FileBin.PUBLIC_KEY_LENGTH]; - System.arraycopy(data, 0, publicKey, 0, FileBin.PUBLIC_KEY_LENGTH); - - MessageDigest md = MessageDigest.getInstance("SHA-256"); - ECKey randomECKey = ECKey.fromPublicOnly(publicKey); - byte[] finalKey = randomECKey.getPubKeyPoint().multiply(ECKey.fromPrivate(md.digest(Main.BILTHON_25_PASSWORD.getBytes("UTF-8"))).getPrivKey()).normalize().getXCoord().getEncoded(); - - WalletBackup walletBackup = FileBin.deserializeWalletBackup(data, Main.BILTHON_25_PASSWORD); - System.out.println("Number of wallets: "+walletBackup.getWalletCount()); - String brainKeyString = walletBackup.getWallet(0).decryptBrainKey(Main.BILTHON_25_PASSWORD); - System.out.println("Brain key: "+brainKeyString); - BrainKey brainKey = new BrainKey(brainKeyString, 1); - byte[] privateKey = brainKey.getPrivateKey().getPrivKeyBytes(); - System.out.println("Brainkey derived private....: " + Util.bytesToHex(privateKey)); - - byte[] privateKey2 = walletBackup.getPrivateKeyBackup(0).decryptPrivateKey(walletBackup.getWallet(0).getEncryptionKey(Main.BILTHON_25_PASSWORD)); - System.out.println("Encrypted private key.......: "+Util.bytesToHex(privateKey2)); - - Address addr1 = new Address(ECKey.fromPublicOnly(ECKey.fromPrivate(privateKey).getPubKey())); - Address addr2 = new Address(ECKey.fromPublicOnly(ECKey.fromPrivate(privateKey2).getPubKey())); - Address addr3 = new Address(ECKey.fromPublicOnly(publicKey)); - System.out.println("Addr1: "+addr1.toString()); - System.out.println("Addr2: "+addr2.toString()); - System.out.println("Addr3: "+addr3.toString()); - } catch (IOException e) { - System.out.println("IOException while trying to open bin file. Msg: "+e.getMessage()); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException while trying to open bin file. Msg: "+e.getMessage()); - } - } - - public void testExportBinFile(){ - String password = "123456"; - BrainKey brainKey = new BrainKey(Main.BILTHON_11_BRAIN_KEY, 0); - Wallet wallet = new Wallet("bilthon-11", brainKey.getBrainKey(), brainKey.getSequenceNumber(), Chains.BITSHARES.CHAIN_ID, password); - byte[] privateKey = brainKey.getPrivateKey().getPrivKeyBytes(); - PrivateKeyBackup privateKeyBackup = new PrivateKeyBackup(privateKey, brainKey.getSequenceNumber(), 1, wallet.getEncryptionKey(password)); - LinkedAccount linkedAccount = new LinkedAccount("bilthon-11", Chains.BITSHARES.CHAIN_ID); - - ArrayList walletList = new ArrayList<>(); - walletList.add(wallet); - ArrayList keyList = new ArrayList<>(); - keyList.add(privateKeyBackup); - ArrayList linkedAccounts = new ArrayList<>(); - linkedAccounts.add(linkedAccount); - WalletBackup backup = new WalletBackup(walletList, keyList, linkedAccounts); - byte[] serialized = FileBin.serializeWalletBackup(backup, password); - System.out.println("Serialized: "+Util.bytesToHex(serialized)); - try { - String current = new File(".").getCanonicalPath(); - String fullPath = current + "/scwall_bithon_11.bin"; - System.out.println("Full path: "+fullPath); - File file = new File(fullPath); - FileOutputStream out = new FileOutputStream(file); - out.write(serialized); - } catch (IOException e) { - e.printStackTrace(); - } - } - - public void testLzmaCompression(){ - String data = "A long time ago in a galaxy far, far away..."; - byte[] compressed = Util.compress(data.getBytes(), Util.LZMA); - - try { - String current = new File(".").getCanonicalPath(); - File file = new File(current + "/src/main/java/de/bitsharesmunich/graphenej/java_compressed_1.4.lzma"); - FileOutputStream out = new FileOutputStream(file); - System.out.println("Writing "+compressed.length+" bytes"); - out.write(compressed); - out.close(); - }catch(IOException e){ - System.out.println("IOException. Msg: "+e.getMessage()); - } - } - - public void testSimpleDecompression(){ - try{ - String current = new File(".").getCanonicalPath(); -// File file = new File(current + "/src/main/java/de/bitsharesmunich/graphenej/node_compressed_1.2.lzma"); - File file = new File(current + "/src/main/java/de/bitsharesmunich/graphenej/decrypted.bin"); - Path path = Paths.get(file.getAbsolutePath()); - byte[] data = Files.readAllBytes(path); - byte[] decompressed = Util.decompress(data, Util.LZMA); - System.out.println("Decompressed.......: "+Util.bytesToHex(decompressed)); - String message = new String(decompressed); - System.out.println("Decompressed msg...: "+message); - } catch (IOException e) { - System.out.println("IOException. Msg: "+e.getMessage()); - } - } - - public void testLzmaDecompression(){ - try { - String current = new File(".").getCanonicalPath(); - File file = new File(current + "/src/main/java/de/bitsharesmunich/graphenej/java_compressed_1.4.lzma"); - Path path = Paths.get(file.getAbsolutePath()); - byte[] data = Files.readAllBytes(path); - System.out.println("Compressed bytes...: " + Util.bytesToHex(data)); - - InputStream in = null; - byte[] decompressed; - byte[] properties = Arrays.copyOfRange(data, 0, 1); - byte[] dictSize = Arrays.copyOfRange(data, 1, 5); - byte[] uncompressedSize = Arrays.copyOfRange(data, 5, 13); - byte[] header = Bytes.concat(properties, Util.revertBytes(dictSize), Util.revertBytes(uncompressedSize)); - byte[] payload = Arrays.copyOfRange(data, 13, data.length); - System.out.println("Header.............: "+Util.bytesToHex(header)); - System.out.println("Payload............: "+Util.bytesToHex(payload)); - ByteArrayInputStream input = new ByteArrayInputStream(Bytes.concat(header, payload)); - ByteArrayOutputStream output = new ByteArrayOutputStream(2 * 2048); -// in = new LZMAInputStream(input, 44, (byte) 0x5d, 65536); - in = new LZMAInputStream(input); - int size; - try{ - while ((size = in.read()) != -1) { - output.write(size); - } - }catch(IOException e){ - System.out.println("IOException detected. End of stream reached. Msg: "+e.getMessage()); - } - in.close(); - decompressed = output.toByteArray(); - - System.out.println("Decompressed bytes.: " + Util.bytesToHex(decompressed)); - String decompressedString = new String(decompressed); - System.out.println("Decompressed: " + decompressedString); - } catch (CorruptedInputException e) { - System.out.println("CorruptedInputException. Msg: " + e.getMessage()); - } catch (UnsupportedOptionsException e){ - System.out.println("UnsupportedOptionsException. Msg: "+e.getMessage()); - } catch(IOException e){ - System.out.println("IOException. Msg: "+e.getMessage()); - } - } - - public void testAccountUpdateSerialization() { - String newAddress = "BTS8RiFgs8HkcVPVobHLKEv6yL3iXcC9SWjbPVS15dDAXLG9GYhnY"; - try { - Address address = new Address(newAddress); - HashMap authMap = new HashMap<>(); - authMap.put(address.getPublicKey(), 1); - Authority authority = new Authority(1, authMap, null); - AccountOptions options = new AccountOptions(address.getPublicKey()); - BrainKey brainKey = new BrainKey(Main.BILTHON_83_BRAIN_KEY, 0); - Transaction transaction = new AccountUpdateTransactionBuilder(brainKey.getPrivateKey()) - .setAccont(new UserAccount("1.2.140994")) -// .setOwner(authority) - .setActive(authority) - .setOptions(options) - .setBlockData(new BlockData(Main.REF_BLOCK_NUM, Main.REF_BLOCK_PREFIX, Main.RELATIVE_EXPIRATION)) - .build(); - - System.out.println("Json object"); - System.out.println(transaction.toJsonString()); - System.out.println("Serialized transaction"); - System.out.println(Util.bytesToHex(transaction.toBytes())); - } catch (MalformedAddressException e) { - System.out.println("MalformedAddressException. Msg: " + e.getMessage()); - } catch (MalformedTransactionException e) { - System.out.println("MalformedTransactionException. Msg: " + e.getMessage()); - } - } - - public void testAccountUpdateOperationBroadcast() { - - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - String newAddress = "BTS8RiFgs8HkcVPVobHLKEv6yL3iXcC9SWjbPVS15dDAXLG9GYhnY"; - try { - Address address = new Address(newAddress); - HashMap authMap = new HashMap<>(); - authMap.put(address.getPublicKey(), 1); - Authority authority = new Authority(1, authMap, null); - AccountOptions options = new AccountOptions(address.getPublicKey()); - BrainKey brainKey = new BrainKey(Main.BILTHON_83_BRAIN_KEY, 0); - Transaction transaction = new AccountUpdateTransactionBuilder(brainKey.getPrivateKey()) - .setAccont(new UserAccount("1.2.138632")) -// .setOwner(authority) - .setActive(authority) - .setOptions(options) - .build(); - - SSLContext context = null; - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - mWebSocket.addListener(new TransactionBroadcastSequence(transaction, new Asset("1.3.0"), listener)); - mWebSocket.connect(); - - } catch (MalformedAddressException e) { - System.out.println("MalformedAddressException. Msg: " + e.getMessage()); - } catch (MalformedTransactionException e) { - System.out.println("MalformedTransactionException. Msg: " + e.getMessage()); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } - } - - public void testLookupAccounts() { - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - mWebSocket.addListener(new LookupAccounts("bilthon", listener)); - mWebSocket.connect(); - - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testDecodeMemo() { - - ECKey from = new BrainKey(Main.BILTHON_83_BRAIN_KEY, 0).getPrivateKey(); - PublicKey to = new PublicKey(ECKey.fromPublicOnly(new BrainKey(Main.BILTHON_5_BRAIN_KEY, 0).getPublicKey())); - -// Memo sendMemo = new MemoBuilder().setFromKey(from).setToKey(to).setMessage("test message").build(); - -// JsonElement memoJson = sendMemo.toJsonObject(); -// System.out.println("generated Json : " + memoJson.toString()); -// System.out.println("Decode Memo : " + Memo.decryptMessage(from, to, memoJson.getAsJsonObject().get("message").getAsString(), memoJson.getAsJsonObject().get("nonce").getAsString())); - } - - public void testGetRelativeAccountHistory(){ - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - List transactionHistory = (List) response.result; - System.out.println("Number of transactions: "+transactionHistory.size()); - for(HistoricalTransfer historical : transactionHistory){ - if(historical.getOperation() != null){ - TransferOperation op = historical.getOperation(); - System.out.println("from: "+op.getFrom().getObjectId()+", to: "+op.getTo().getObjectId()+", amount: "+op.getAssetAmount().getAmount()+", block #: "+historical.getBlockNum()); - } - } - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - mWebSocket.addListener(new GetRelativeAccountHistory(new UserAccount("1.2.140994"), listener)); - mWebSocket.connect(); - - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testLookupAssetSymbols(){ - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - WitnessResponse> resp = response; - for(Asset asset : resp.result){ - System.out.println("Asset: "+asset.getObjectId()+", Symbol: "+asset.getSymbol()+", supply: "); - } - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - ArrayList assets = new ArrayList<>(); - assets.add(new Asset("1.3.0")); - assets.add(new Asset("1.3.120")); - assets.add(new Asset("1.3.121")); - mWebSocket.addListener(new LookupAssetSymbols(assets, listener)); - mWebSocket.connect(); - - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testListAssets(){ - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - List resp = (List) response.result; - System.out.println(String.format("Got %d assets", resp.size())); - int count = 0; - for(Asset asset : resp){ - if(asset.getBitassetId() != null){ - System.out.println("Asset: " + asset.getObjectId() + - ", Symbol: "+asset.getSymbol() + - ", bitasset id: "+asset.getBitassetId()); - count++; - } - } - System.out.println("Got "+count+" smartcoins"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - mWebSocket.addListener(new ListAssets("", ListAssets.LIST_ALL, listener)); - mWebSocket.connect(); - - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testGetObjects(){ - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - List bitAssetDataArray = (List) response.result; - for(BitAssetData bitAssetData : bitAssetDataArray){ -// System.out.println(String.format("is prediction market: %b", bitAssetData.is_prediction_market)); - System.out.println("base: "+bitAssetData.current_feed.core_exchange_rate.base.getAmount().longValue()); - System.out.println("quote: "+bitAssetData.current_feed.core_exchange_rate.quote.getAmount().longValue()); - } - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - ArrayList ids = new ArrayList<>(); - ids.add("2.4.54"); - mWebSocket.addListener(new GetObjects(ids, listener)); - mWebSocket.connect(); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testGetBlockHeader(){ - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - - mWebSocket.addListener(new GetBlockHeader(11989481, listener)); - mWebSocket.connect(); - - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - void testGetLimitOrders() { - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - Asset base = new Asset("1.3.120", "EUR", 4); - Asset quote = new Asset("1.3.121", "USD", 4); - - mWebSocket.addListener(new GetLimitOrders(base.getObjectId(), quote.getObjectId(), 100, new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - List orders = (List) response.result; - Converter converter = new Converter(); - System.out.println(); - for(LimitOrder order : orders){ -// System.out.println(String.format("base: %d, quote: %d", -// order.sell_price.base.getAmount().longValue(), -// order.sell_price.quote.getAmount().longValue())); - order.sell_price.base.getAsset().setPrecision(base.getPrecision()); - order.sell_price.quote.getAsset().setPrecision(quote.getPrecision()); - double baseToQuoteExchange = converter.getConversionRate(order.sell_price, Converter.BASE_TO_QUOTE); - double quoteToBaseExchange = converter.getConversionRate(order.sell_price, Converter.QUOTE_TO_BASE); - System.out.println(String.format("base to quote: %.5f, quote to base: %.5f", baseToQuoteExchange, quoteToBaseExchange)); - } - } - - @Override - public void onError(BaseResponse.Error error) { - throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. - } - })); - mWebSocket.connect(); - - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - void testGetTradeHistory() { - SSLContext context = null; - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_FR); - - Calendar from = Calendar.getInstance(); - from.roll(Calendar.DAY_OF_MONTH, false); - from.roll(Calendar.DAY_OF_MONTH, false); - Calendar to = Calendar.getInstance(); - to.roll(Calendar.DAY_OF_MONTH, false); - - mWebSocket.addListener(new GetTradeHistory("BTS", "EUR", "20161215T0130000", "20161212T233000",100, new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - List orders = (List) response.result; - for(MarketTrade markeTrade : orders){ - System.out.println("At " + markeTrade.date + " amount " + markeTrade.amount + " value " + markeTrade.value + " price " + markeTrade.price); - } - } - - @Override - public void onError(BaseResponse.Error error) { - } - })); - mWebSocket.connect(); - - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testGetMarketHistory(){ - SSLContext context = null; - - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - List bucketList = (List) response.result; - if(bucketList.size() > 0){ - BucketObject bucket = bucketList.get(0); - Asset base = bucket.key.base; - Asset quote = bucket.key.quote; - base.setPrecision(5); - quote.setPrecision(4); - System.out.println(String.format("Base. symbol: %s, precision: %d", base.getObjectId(), base.getPrecision())); - System.out.println(String.format("Quote. symbol: %s, precision: %d", quote.getObjectId(), quote.getPrecision())); - Converter converter = new Converter(base, quote, bucket); - double rate = converter.getConversionRate(Converter.CLOSE_VALUE, Converter.BASE_TO_QUOTE); - System.out.println(String.format("Conversion rate is 1 base -> %f quote", rate)); - double rate2 = converter.getConversionRate(Converter.CLOSE_VALUE, Converter.QUOTE_TO_BASE); - System.out.println(String.format("Conversion rate is 1 quote -> %f base", rate2)); - } - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_FR); - - long posixInstant = 1484089226000l; - Calendar cal = Calendar.getInstance(); - cal.setTimeInMillis(posixInstant); - cal.set(Calendar.SECOND, 0); - cal.set(Calendar.MINUTE, 0); - - Asset USD = new Asset("1.3.121", "USD", 4); - Asset BTS = new Asset("1.3.0", "BTS", 5); - long bucket = 3600; - - mWebSocket.addListener(new GetMarketHistory(BTS, USD, bucket, cal.getTime(), cal.getTime(), listener)); - mWebSocket.connect(); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testAssetSerialization(){ - ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); - DataOutput out = new DataOutputStream(byteArrayOutputStream); - try { - Varint.writeUnsignedVarLong(120, out); - } catch (IOException e) { - e.printStackTrace(); - } - byte[] bytes = byteArrayOutputStream.toByteArray(); - System.out.println("serialized: "+Util.bytesToHex(bytes)); - } - - public void testGetAccountBalances(){ - SSLContext context = null; - - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_FR); - - UserAccount account = new UserAccount("1.2.138632"); - Asset asset = new Asset("1.3.121"); //USD - ArrayList assetList = new ArrayList<>(); - assetList.add(asset); - mWebSocket.addListener(new GetAccountBalances(account, assetList, listener)); - mWebSocket.connect(); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testGetAssetHoldersCount(){ - SSLContext context = null; - - WitnessResponseListener listener = new WitnessResponseListener() { - @Override - public void onSuccess(WitnessResponse response) { - System.out.println("onSuccess"); - List holdersCountList = (List) response.result; - for(AssetHolderCount holdersCount : holdersCountList){ - System.out.println(String.format("Asset %s has %d holders", holdersCount.asset.getObjectId(), holdersCount.count)); - } - } - - @Override - public void onError(BaseResponse.Error error) { - System.out.println("onError"); - } - }; - - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(AMAZON_WITNESS); - - mWebSocket.addListener(new GetAllAssetHolders(listener)); - mWebSocket.connect(); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } - - public void testSubscription(WitnessResponseListener listener){ - SSLContext context = null; - - try { - context = NaiveSSLContext.getInstance("TLS"); - WebSocketFactory factory = new WebSocketFactory(); - - // Set the custom SSL context. - factory.setSSLContext(context); - - WebSocket mWebSocket = factory.createSocket(BLOCK_PAY_DE); - - SubscriptionMessagesHub subscriptionHub = new SubscriptionMessagesHub("", ""); - mWebSocket.addListener(subscriptionHub); - mWebSocket.connect(); - subscriptionHub.addSubscriptionListener(new SubscriptionListener() { - @Override - public ObjectType getInterestObjectType() { - return ObjectType.TRANSACTION_OBJECT; - } - - @Override - public void onSubscriptionUpdate(SubscriptionResponse response) { - try{ - List updatedObjects = (List) response.params.get(1); - if(updatedObjects.size() > 0){ - for(Serializable update : updatedObjects){ - if(update instanceof BroadcastedTransaction){ - Transaction t = ((BroadcastedTransaction) update).getTransaction(); - if(t.getOperations().size() > 0){ - for(BaseOperation op : t.getOperations()){ - if(op instanceof TransferOperation){ - System.out.println(String.format("Got transaction from: %s, to: %s", ((TransferOperation) op).getFrom().getObjectId(), ((TransferOperation) op).getTo().getObjectId())); - } - } - } - } - } - } - }catch(Exception e){ - System.out.println("Exception. Msg: "+e.getMessage()); - for(StackTraceElement el : e.getStackTrace()){ - System.out.println(el.getFileName()+"#"+el.getMethodName()+":"+el.getLineNumber()); - } - } - } - }); - } catch (NoSuchAlgorithmException e) { - System.out.println("NoSuchAlgorithmException. Msg: " + e.getMessage()); - } catch (WebSocketException e) { - System.out.println("WebSocketException. Msg: " + e.getMessage()); - } catch (IOException e) { - System.out.println("IOException. Msg: " + e.getMessage()); - } - } -}