From 8d72776c5e21c769bd998ffbc0b2ec4b7133c88c Mon Sep 17 00:00:00 2001 From: Fabian Schuh Date: Wed, 9 Sep 2015 10:19:16 +0200 Subject: [PATCH] purged non-maintained modules --- graphenebase/__init__.py | 2 +- graphenebase/transactions.py | 295 - grapheneextra/__init__.py | 0 grapheneextra/paperwallet.py | 148 - .../bitBTC-accepted-flat-square-2.svg | 49 - .../bitCNY-accepted-flat-square-2.svg | 42 - .../bitEUR-accepted-flat-square-2.svg | 42 - .../bitGOLD-accepted-flat-square-2.svg | 42 - .../bitSILVER-accepted-flat-square-2.svg | 49 - .../bitUSD-accepted-flat-square-2.svg | 49 - .../designs/cass-adaptive-back.svg | 5763 ---------- .../paperwallet/designs/cass-back.svg | 731 -- .../paperwallet/designs/cass-es-back.svg | 732 -- .../paperwallet/designs/cass-es-front.svg | 4573 -------- .../paperwallet/designs/cass-front.svg | 4712 -------- .../designs/xeroc-businesscard-back.svg | 58 - .../designs/xeroc-businesscard-front.svg | 9795 ----------------- .../designs/xeroc-sharedrop-dina5-back.svg | 58 - .../designs/xeroc-sharedrop-dina5-front.svg | 6609 ----------- graphenemarket/__init__.py | 0 graphenemarket/graphenemarket.py | 248 - setup.py | 5 +- 22 files changed, 4 insertions(+), 33998 deletions(-) delete mode 100644 graphenebase/transactions.py delete mode 100644 grapheneextra/__init__.py delete mode 100644 grapheneextra/paperwallet.py delete mode 100644 grapheneextra/paperwallet/BitAssets/bitBTC-accepted-flat-square-2.svg delete mode 100644 grapheneextra/paperwallet/BitAssets/bitCNY-accepted-flat-square-2.svg delete mode 100644 grapheneextra/paperwallet/BitAssets/bitEUR-accepted-flat-square-2.svg delete mode 100644 grapheneextra/paperwallet/BitAssets/bitGOLD-accepted-flat-square-2.svg delete mode 100644 grapheneextra/paperwallet/BitAssets/bitSILVER-accepted-flat-square-2.svg delete mode 100644 grapheneextra/paperwallet/BitAssets/bitUSD-accepted-flat-square-2.svg delete mode 100644 grapheneextra/paperwallet/designs/cass-adaptive-back.svg delete mode 100644 grapheneextra/paperwallet/designs/cass-back.svg delete mode 100644 grapheneextra/paperwallet/designs/cass-es-back.svg delete mode 100644 grapheneextra/paperwallet/designs/cass-es-front.svg delete mode 100644 grapheneextra/paperwallet/designs/cass-front.svg delete mode 100644 grapheneextra/paperwallet/designs/xeroc-businesscard-back.svg delete mode 100644 grapheneextra/paperwallet/designs/xeroc-businesscard-front.svg delete mode 100644 grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-back.svg delete mode 100644 grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-front.svg delete mode 100644 graphenemarket/__init__.py delete mode 100644 graphenemarket/graphenemarket.py diff --git a/graphenebase/__init__.py b/graphenebase/__init__.py index 8c520a23..82717f10 100644 --- a/graphenebase/__init__.py +++ b/graphenebase/__init__.py @@ -2,4 +2,4 @@ import graphenebase.address as Address import graphenebase.base58 as Bip58 import graphenebase.bip38 as Bip38 -import graphenebase.transactions as Transactions +#import graphenebase.transactions as Transactions diff --git a/graphenebase/transactions.py b/graphenebase/transactions.py deleted file mode 100644 index befa20ce..00000000 --- a/graphenebase/transactions.py +++ /dev/null @@ -1,295 +0,0 @@ -from binascii import hexlify, unhexlify -from calendar import timegm -from datetime import datetime -import ecdsa -import hashlib -import json -import math -import struct -import sys -import time -from .address import PublicKey, Address - -#import graphenelib.address as address -#from graphenelib.base58 import base58decode,base58encode,base58CheckEncode,base58CheckDecode,btsBase58CheckEncode,btsBase58CheckDecode - -reserved_spaces = {} -reserved_spaces["relative_protocol_ids"] = 0 -reserved_spaces["protocol_ids"] = 1 -reserved_spaces["implementation_ids"] = 2 - -object_type = {} -object_type["null"] = 0 -object_type["base"] = 1 -object_type["account"] = 2 -object_type["asset"] = 3 -object_type["force_settlement"] = 4 -object_type["committee_member"] = 5 -object_type["witness"] = 6 -object_type["limit_order"] = 7 -object_type["call_order"] = 8 -object_type["custom"] = 9 -object_type["proposal"] = 10 -object_type["operation_history"] = 11 -object_type["withdraw_permission"] = 12 -object_type["vesting_balance"] = 13 -object_type["worker"] = 14 -object_type["balance"] = 15 -object_type["OBJECT_TYPE_COUNT"] = 16 - -vote_type = {} -vote_type["committee"] = 0 -vote_type["witness"] = 1 -vote_type["worker"] = 2 - -operations = {} -operations["transfer"] = 0 -operations["limit_order_create"] = 1 -operations["short_order_create"] = 2 -operations["call_order_update"] = 3 -operations["fill_order"] = 4 -operations["account_create"] = 5 -operations["account_update"] = 6 -operations["account_whitelist"] = 7 -operations["account_upgrade"] = 8 -operations["account_transfer"] = 9 -operations["asset_create"] = 10 -operations["asset_update"] = 11 -operations["asset_update_bitasset"] = 12 -operations["asset_update_feed_producers"] = 13 -operations["asset_issue"] = 14 -operations["asset_reserve"] = 15 -operations["asset_fund_fee_pool"] = 16 -operations["asset_settle"] = 17 -operations["asset_global_settle"] = 18 -operations["asset_publish_feed"] = 19 -operations["witness_create"] = 20 -operations["proposal_create"] = 21 -operations["proposal_update"] = 22 -operations["proposal_delete"] = 23 -operations["withdraw_permission_create"] = 24 -operations["withdraw_permission_update"] = 25 -operations["withdraw_permission_claim"] = 26 -operations["withdraw_permission_delete"] = 27 -operations["committee_member_create"] = 28 -operations["committee_member_update_global_parameters"] = 29 -operations["vesting_balance_create"] = 30 -operations["vesting_balance_withdraw"] = 31 -operations["worker_create"] = 32 -operations["custom"] = 33 -operations["assert"] = 34 -operations["balance_claim"] = 35 -operations["override_transfer"] = 36 - -chainid = "" -PREFIX = "BTS" - -## Variable encodings -def varint(n): - data = b'' - while n >= 0x80: - data += bytes([ (n & 0x7f) | 0x80 ]) - n >>= 7 - data += bytes([n]) - return data - -def varintdecode(data): - shift = 0 - result = 0 - for c in data: - b = ord(c) - result |= ((b & 0x7f) << shift) - if not (b & 0x80): - break - shift += 7 - return result - -def varintlength(n): - length = 1 - while n >= 0x80: - length += 1 - n >>= 7 - return length - -def variable_buffer( s ) : - return varint(len(s)) + s - -# Variable types -class Uint8() : - def __init__(self,d) : self.data = d - def __bytes__(self) : return struct.pack(" - - - bitBTC-accepted-flat-square-2 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/grapheneextra/paperwallet/BitAssets/bitCNY-accepted-flat-square-2.svg b/grapheneextra/paperwallet/BitAssets/bitCNY-accepted-flat-square-2.svg deleted file mode 100644 index 8d9e2615..00000000 --- a/grapheneextra/paperwallet/BitAssets/bitCNY-accepted-flat-square-2.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - bitCNY-accepted-flat-square-2 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/grapheneextra/paperwallet/BitAssets/bitEUR-accepted-flat-square-2.svg b/grapheneextra/paperwallet/BitAssets/bitEUR-accepted-flat-square-2.svg deleted file mode 100644 index 2eb9137d..00000000 --- a/grapheneextra/paperwallet/BitAssets/bitEUR-accepted-flat-square-2.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - bitEUR-accepted-flat-square-2 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/grapheneextra/paperwallet/BitAssets/bitGOLD-accepted-flat-square-2.svg b/grapheneextra/paperwallet/BitAssets/bitGOLD-accepted-flat-square-2.svg deleted file mode 100644 index 21c46b6a..00000000 --- a/grapheneextra/paperwallet/BitAssets/bitGOLD-accepted-flat-square-2.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - bitGOLD-accepted-flat-square-2 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/grapheneextra/paperwallet/BitAssets/bitSILVER-accepted-flat-square-2.svg b/grapheneextra/paperwallet/BitAssets/bitSILVER-accepted-flat-square-2.svg deleted file mode 100644 index d0ebb1e9..00000000 --- a/grapheneextra/paperwallet/BitAssets/bitSILVER-accepted-flat-square-2.svg +++ /dev/null @@ -1,49 +0,0 @@ - - - - bitSILVER-accepted-flat-square-2 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/grapheneextra/paperwallet/BitAssets/bitUSD-accepted-flat-square-2.svg b/grapheneextra/paperwallet/BitAssets/bitUSD-accepted-flat-square-2.svg deleted file mode 100644 index 5a9b8d94..00000000 --- a/grapheneextra/paperwallet/BitAssets/bitUSD-accepted-flat-square-2.svg +++ /dev/null @@ -1,49 +0,0 @@ - - - - bitUSD-accepted-flat-square-2 - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/grapheneextra/paperwallet/designs/cass-adaptive-back.svg b/grapheneextra/paperwallet/designs/cass-adaptive-back.svg deleted file mode 100644 index 7b851a3c..00000000 --- a/grapheneextra/paperwallet/designs/cass-adaptive-back.svg +++ /dev/null @@ -1,5763 +0,0 @@ - - - - - - image/svg+xml - - - - - - - Paperwallet back - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Android - - - IOS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed - - - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed - - - Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed - - - - - - 1 - - - 2 - - - 3 - - diff --git a/grapheneextra/paperwallet/designs/cass-back.svg b/grapheneextra/paperwallet/designs/cass-back.svg deleted file mode 100644 index b9fb1a26..00000000 --- a/grapheneextra/paperwallet/designs/cass-back.svg +++ /dev/null @@ -1,731 +0,0 @@ - - - - Paperwallet back - Created with Sketch. - - - - - - - - - - - - - 1 - - - 2 - - - 3 - - - Escanee con su celular el codigo QR correspondiente a su sistema - operativo para instalar la BitWallet. - - Abra la aplicacion BitWallet. Vaya al home y despues de hacer click en - el icono de arriba a la derecha escanee la clave privada con su celular. - - BitWallet le mostrara el saldo de la misma y debera confirmar que la - clave sea barrida a su billetera, una transferencia interna, para tener - acceso a los fondos desde su telefono. - - - - - Android - - - IOS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - USD - - - bit - - - - - - - - - - - - - - - - 1 - - - 2 - - - 3 - - - - - - \ No newline at end of file diff --git a/grapheneextra/paperwallet/designs/cass-es-back.svg b/grapheneextra/paperwallet/designs/cass-es-back.svg deleted file mode 100644 index adc07d21..00000000 --- a/grapheneextra/paperwallet/designs/cass-es-back.svg +++ /dev/null @@ -1,732 +0,0 @@ - - - - Paperwallet back - Created with Sketch. - - - - - - - - - - - - - 1 - - - 2 - - - 3 - - - Escanee con su celular el codigo QR correspondiente a su sistema - operativo para instalar la BitWallet. - - Abra la aplicacion BitWallet. Vaya al home y despues de hacer click en - el icono de arriba a la derecha escanee la clave privada con su celular. - - BitWallet le mostrara el saldo de la misma y debera confirmar que la - clave sea barrida a su billetera, una transferencia interna, para tener - acceso a los fondos desde su telefono. - - - - - Android - - - IOS - - - - - 1 - - - 2 - - - 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - USD - - - bit - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/grapheneextra/paperwallet/designs/cass-es-front.svg b/grapheneextra/paperwallet/designs/cass-es-front.svg deleted file mode 100644 index 82eb889a..00000000 --- a/grapheneextra/paperwallet/designs/cass-es-front.svg +++ /dev/null @@ -1,4573 +0,0 @@ - - - - - - image/svg+xml - - - - - - - Paperwallet front - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/grapheneextra/paperwallet/designs/cass-front.svg b/grapheneextra/paperwallet/designs/cass-front.svg deleted file mode 100644 index 307d1ec1..00000000 --- a/grapheneextra/paperwallet/designs/cass-front.svg +++ /dev/null @@ -1,4712 +0,0 @@ - - - - - - image/svg+xml - - - - - - - Paperwallet front - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PUBLIC KEY - LOAD&VERIFY - - - SPEND&WITHDRAW - PRIVATE KEY - - - - - - - - - - - - - - - - - diff --git a/grapheneextra/paperwallet/designs/xeroc-businesscard-back.svg b/grapheneextra/paperwallet/designs/xeroc-businesscard-back.svg deleted file mode 100644 index b8499630..00000000 --- a/grapheneextra/paperwallet/designs/xeroc-businesscard-back.svg +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - image/svg+xml - - Paperwallet front - - - - - Paperwallet back - Created with Sketch. - diff --git a/grapheneextra/paperwallet/designs/xeroc-businesscard-front.svg b/grapheneextra/paperwallet/designs/xeroc-businesscard-front.svg deleted file mode 100644 index 64b4b6d8..00000000 --- a/grapheneextra/paperwallet/designs/xeroc-businesscard-front.svg +++ /dev/null @@ -1,9795 +0,0 @@ - - - - - - - image/svg+xml - - Paperwallet front - - - - - Paperwallet front - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BTSNc9xDSwXT4dtG2ype5DrJqnRfswe8xm4A - - diff --git a/grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-back.svg b/grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-back.svg deleted file mode 100644 index b8499630..00000000 --- a/grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-back.svg +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - image/svg+xml - - Paperwallet front - - - - - Paperwallet back - Created with Sketch. - diff --git a/grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-front.svg b/grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-front.svg deleted file mode 100644 index 1e4f6aea..00000000 --- a/grapheneextra/paperwallet/designs/xeroc-sharedrop-dina5-front.svg +++ /dev/null @@ -1,6609 +0,0 @@ - - - - - - image/svg+xml - - Paperwallet front - - - - - - Paperwallet front - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PUBLIC KEY - LOAD&VERIFY - - - - - - - - - - - - - - - - - Introcuction - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BitShares 101 - - r/BitShares - - f/BitShares - - Twitter - - Google+ - - Whitepaper - - BitSharesTalk - - Github - - Web Wallet - - Wiki - - Block Explorer - - Free Samples - - Meetup - - BitShares.tv - - Youtube - MetaExchange - - Blocktraders - - Cryptofresh - - Cryptosmith - - - PRIVATE KEY - SPEND - - BeyondBitcoin - - - Mobile Wallet - - Triberr - - AboutBTS - General - TechnicalInformation - Community - Services - SocialNetworks - - and more ... - - Sharedrop - Wallet - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/graphenemarket/__init__.py b/graphenemarket/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/graphenemarket/graphenemarket.py b/graphenemarket/graphenemarket.py deleted file mode 100644 index 8f838963..00000000 --- a/graphenemarket/graphenemarket.py +++ /dev/null @@ -1,248 +0,0 @@ -from math import log10 - -class market : - def __init__(self, client) : - raise Exception("This code is not tested. Don't use it!") - self.client = client ## pass rpc commands to the client - - def get_asset_id(self, asset): - return self.client.blockchain_get_asset(asset)["result"]["id"] - - def get_precision(self, asset): - return float(self.client.blockchain_get_asset(asset)["result"]["precision"]) - - def get_centerprice(self, quote, base): - return float(self.client.blockchain_market_status(quote, base)["result"]["center_price"]["ratio"]) - - def get_lowest_ask(self, asset1, asset2): - return float(self.client.blockchain_market_order_book(asset1, asset2)["result"][1][0]["market_index"]["order_price"]["ratio"]) - - def get_lowest_bid(self, asset1, asset2): - return float(self.client.blockchain_market_order_book(asset1, asset2)["result"][0][0]["market_index"]["order_price"]["ratio"]) - - def cancel_bids_less_than(self, account, quote, base, price): - cancel_args = self.get_bids_less_than(account, quote, base, price)[0] - response = self.client.batch("wallet_market_cancel_order", cancel_args) - return cancel_args - - def get_median(self, asset): - response = self.client.blockchain_get_feeds_for_asset(asset) - feeds = response["result"] - return feeds[len(feeds)-1]["median_price"] - - def cancel_bids_out_of_range(self, account, quote, base, price, tolerance): - cancel_args = self.get_bids_out_of_range(account, quote, base, price, tolerance)[0] - response = self.client.request("batch", ["wallet_market_cancel_order", cancel_args]) - return cancel_args - - def cancel_asks_out_of_range(self, account, quote, base, price, tolerance): - cancel_args = self.get_asks_out_of_range(account, quote, base, price, tolerance)[0] - response = self.client.request("batch", ["wallet_market_cancel_order", cancel_args]) - return cancel_args - - def get_balance(self, account, asset): - asset_id = self.get_asset_id(asset) - response = self.client.wallet_account_balance(account, asset) - if not response: - return 0 - if "result" not in response or response["result"] == None or not len(response["result"]): - return 0 - asset_array = response["result"][0][1] - amount = 0 - for item in asset_array: - if item[0] == asset_id: - amount = float(item[1]) - return amount / self.get_precision(asset) - return 0 - - def cancel_all_orders(self, account, quote, base): - cancel_args = self.get_all_orders(account, quote, base) - for i in cancel_args[0] : - response = self.client.wallet_market_cancel_order(i) - return cancel_args[1] - - def ask_at_market_price(self, name, amount, base, quote, confirm=False) : - response = self.client.blockchain_market_order_book(quote, base) - quotePrecision = self.get_precision(quote) - basePrecision = self.get_precision(base) - orders = [] - for order in response["result"][0]: # bid orders - order_price = float(order["market_index"]["order_price"]["ratio"])*(basePrecision / quotePrecision) - order_amount = float(order["state"]["balance"]/quotePrecision) / order_price # denoted in BASE - if amount >= order_amount : # buy full amount - orders.append([name, order_amount, base, order_price, quote]) - amount -= order_amount - elif amount < order_amount: # partial - orders.append([name, amount, base, order_price, quote]) - break - for o in orders : - print( "Selling %15.8f %s for %12.8f %s @ %12.8f" %(o[1], o[2], o[1]*o[3], o[4], o[3]) ) - if not confirm or self.client.query_yes_no( "I dare you confirm the orders above: ") : - for o in orders : - self.submit_ask(o[0], o[1], o[2], o[3], o[4]) - - def bid_at_market_price(self, name, amount, base, quote, confirm=False) : - response = self.client.blockchain_market_order_book(quote, base) - quotePrecision = self.get_precision(quote) - basePrecision = self.get_precision(base) - orders = [] - for order in response["result"][1]: # ask orders - order_price = float(order["market_index"]["order_price"]["ratio"])*(basePrecision / quotePrecision) - order_amount = float(order["state"]["balance"]/quotePrecision) / order_price # denoted in BASE - if amount >= order_amount : # buy full amount - orders.append([name, order_amount, base, order_price, quote]) - amount -= order_amount - elif amount < order_amount: # partial - orders.append([name, amount, base, order_price, quote]) - break - for o in orders : - print( "Selling %15.8f %s for %12.8f %s @ %12.8f" %(o[1], o[2], o[1]*o[3], o[4], o[3]) ) - if not confirm or self.client.query_yes_no( "I dare you confirm the orders above: ") : - for o in orders : - self.submit_bid(o[0], o[1], o[2], o[3], o[4]) - - def ask_limit(self, name, amount, base, quote, price_limit, confirm=False) : - print("Buying orders with price limit: %f %s/%s" % (price_limit, base, quote)) - response = self.client.blockchain_market_list_bids(quote, base) - quotePrecision = self.get_precision(quote) - basePrecision = self.get_precision(base) - orders = [] - for order in response["result"] : - order_price = float(order["market_index"]["order_price"]["ratio"])*(basePrecision / quotePrecision) - order_amount = float(order["state"]["balance"]/quotePrecision) / order_price # denoted in BASE - if order_price < price_limit : - orders.append([name, amount, base, price_limit, quote]) - break - else: - if amount >= order_amount : # buy full amount - orders.append([name, order_amount, base, order_price, quote]) - amount -= order_amount - elif amount < order_amount: # partial - orders.append([name, amount, base, order_price, quote]) - break - for o in orders : - print( "Buying %15.8f %s for %12.8f %s @ %12.8f" %(o[1], o[2], o[1]*o[3], o[4], o[3]) ) - if not confirm or self.client.query_yes_no( "I dare you confirm the orders above: ") : - for o in orders : - amount = str('%.*f' %(int(log10(quotePrecision)), o[1])) - self.submit_ask(o[0], amount, o[2], o[3], o[4]) - - def bid_limit(self, name, amount, base, quote, price_limit, confirm=False) : - print("Sell orders with price limit: %f %s/%s" % (price_limit, base, quote)) - response = self.client.blockchain_market_list_asks(quote, base) - quotePrecision = self.get_precision(quote) - basePrecision = self.get_precision(base) - orders = [] - for order in response["result"] : - order_price = float(order["market_index"]["order_price"]["ratio"])*(basePrecision / quotePrecision) - order_amount = float(order["state"]["balance"])/order_price/quotePrecision # denoted in BASE - if order_price > price_limit : - orders.append([name, amount, base, price_limit, quote]) - break - else: - if amount >= order_amount : # buy full amount - orders.append([name, order_amount, base, order_price, quote]) - amount -= order_amount - elif amount < order_amount: # partial - orders.append([name, amount, base, order_price, quote]) - break - for o in orders : - print( "Buying %15.8f %s for %12.8f %s @ %12.8f" %(o[1], o[2], o[1]*o[3], o[4], o[3]) ) - if not confirm or self.client.query_yes_no( "I dare you confirm the orders above: ") : - for o in orders : - amount = str('%.*f' %(int(log10(quotePrecision)), o[1])) - self.submit_bid(o[0], amount, o[2], o[3], o[4]) - - - def submit_bid(self, account, amount, quote, price, base): - print("%s submitted a bid" % account) - self.client.bid(account, amount, quote, price, base) - - def submit_ask(self, account, amount, quote, price, base): - print("%s submitted an ask" % account) - self.client.ask(account, amount, quote, price, base) - - def get_bids_less_than(self, account, quote, base, price): - quotePrecision = self.get_precision( quote ) - basePrecision = self.get_precision( base ) - response = self.client.wallet_market_order_list(quote, base, -1, account) - order_ids = [] - quote_shares = 0 - if "result" not in response or response["result"] == None: - return [[], 0] - for pair in response["result"]: - order_id = pair[0] - item = pair[1] - if item["type"] == "bid_order": - if float(item["market_index"]["order_price"]["ratio"])* (basePrecision / quotePrecision) < price: - order_ids.append(order_id) - quote_shares += int(item["state"]["balance"]) - print("%s canceled an order: %s" % (account, str(item))) - cancel_args = [item for item in order_ids] - return [cancel_args, float(quote_shares) / quotePrecision] - - def get_bids_out_of_range(self, account, quote, base, price, tolerance): - quotePrecision = self.get_precision( quote ) - basePrecision = self.get_precision( base ) - response = self.client.wallet_market_order_list(quote, base, -1, account) - order_ids = [] - quote_shares = 0 - if "result" not in response or response["result"] == None: - return [[], 0] - for pair in response["result"]: - order_id = pair[0] - item = pair[1] - if item["type"] == "bid_order": - if abs(price - float(item["market_index"]["order_price"]["ratio"]) * (basePrecision / quotePrecision)) > tolerance: - order_ids.append(order_id) - quote_shares += int(item["state"]["balance"]) - print("%s canceled an order: %s" % (account, str(item))) - cancel_args = [item for item in order_ids] - return [cancel_args, float(quote_shares) / quotePrecision] - - def get_asks_out_of_range(self, account, quote, base, price, tolerance): - quotePrecision = self.get_precision( quote ) - basePrecision = self.get_precision( base ) - response = self.client.wallet_market_order_list(quote, base, -1, account) - order_ids = [] - base_shares = 0 - if "result" not in response or response["result"] == None: - return [[], 0] - for pair in response["result"]: - order_id = pair[0] - item = pair[1] - if item["type"] == "ask_order": - if abs(price - float(item["market_index"]["order_price"]["ratio"]) * (basePrecision / quotePrecision)) > tolerance: - order_ids.append(order_id) - base_shares += int(item["state"]["balance"]) - cancel_args = [item for item in order_ids] - return [cancel_args, base_shares / basePrecision] - - def get_all_orders(self, account, quote, base): - response = self.client.wallet_market_order_list(quote, base, -1, account) - order_ids = [] - orders = [] - if "result" in response : - for item in response["result"]: - order_ids.append(item[0]) - orders.append(item[1]) - orderids = [item for item in order_ids] - return [ orderids, orders ] - return - - def get_last_fill (self, quote, base): - last_fill = -1 - response = self.client.blockchain_market_order_history(quote, base, 0, 1) - for order in response["result"]: - last_fill = float(order["ask_price"]["ratio"]) - return last_fill - - def get_price(self, quote, base): - response = self.client.blockchain_market_order_book(quote, base, 1) - order = response["result"] - quotePrecision = self.get_precision(quote) - basePrecision = self.get_precision(base) - lowest_bid = float(order[0][0]["market_index"]["order_price"]["ratio"])*(basePrecision / quotePrecision) - highest_ask = float(order[1][0]["market_index"]["order_price"]["ratio"])*(basePrecision / quotePrecision) - return (lowest_bid+highest_ask)/2 - diff --git a/setup.py b/setup.py index fdfbc7e6..7b7f6cab 100644 --- a/setup.py +++ b/setup.py @@ -16,8 +16,9 @@ packages=["grapheneapi", "graphenebase", - "grapheneextra", - "graphenemarket"], + #"grapheneextra", + #"graphenemarket" + ], package_data={ 'extra' : [ 'paperwallet/BitAssets/*', 'paperwallet/designs/*',