Exemple #1
0
    def __init__(self, app_id, app_key, options=None):
        self.tokens = {'app_id': app_id, 'app_key': app_key}

        self.chain = bdb('https://test.bigchaindb.com', headers=self.tokens)
        self.options = options
        self.sent_tx_dict = {
            'sent_tx': {}
        }  # dictionary with sent tx's (key: TxID)
Exemple #2
0
    def __init__(self, endpoint, app_id, app_key):
        self.tokens = {'app_id': str(app_id), 'app_key': str(app_key)}

        self.chain = bdb(endpoint, headers=self.tokens)

        self.log_dict = {
            'u_ord_li': [],  # list of created orders
            's_ord_li': [],  # list of signed orders
            'b_ord_dt': {}
        }  # dictionary of broadcasted orders,
Exemple #3
0
	def __init__(self, app_id, app_key, options=None):
		self.tokens={
			'app_id' : app_id,
			'app_key' : app_key
		}

		self.chain = bdb('https://test2.bigchaindb.com', 
			headers=self.tokens)
		self.options = options

		self.log = {'u_ord_li' : [], # list of created orders
					's_ord_li' : [], # list of signed orders
					'b_ord_dt' : {}} # dictionary of broadcasted orders,