コード例 #1
0
 def setUp(self):
     self.txdict = {
         'category': 'receive',
         'account': '',
         'blockhash':
         '000000008468ce0ec51c64aa98cf99b317274c5287e770c9eddaa83fa33222ef',
         'blockindex': 1,
         'walletconflicts': [],
         'time': 1409150845,
         'txid':
         '63fadb05b2f6b0c83925d402c6cf27bc841acaa8c89a335914f77f75b22ef5dc',
         'blocktime': 1409154118,
         'amount': Decimal('5.00000000'),
         'confirmations': 3,
         'timereceived': 1409150845,
         'address': 'mmxv3wYKozehzp3GZSUiKvRCWSJecWNSrd'
     }
     self.currency = Currency.objects.create(label='Bitcoin', ticker='btc')
     self.wallet = Wallet.objects.create(currency=self.currency,
                                         label='Test',
                                         unconfirmed=Decimal('5.0'))
     self.address = Address.objects.create(address=self.txdict['address'],
                                           wallet=self.wallet,
                                           currency=self.currency)
     self.tx = Transaction.objects.create(txid=self.txdict['txid'],
                                          address=self.txdict['address'],
                                          currency=self.currency)
     tasks.process_deposite_transaction(self.txdict, 'btc')
コード例 #2
0
ファイル: tests.py プロジェクト: Mrkebubun/django-cc
 def setUp(self):
     self.txdict = {
         'category': 'immature',
         'account': '',
         'blockhash': '000000008468ce0ec51c64aa98cf99b317274c5287e770c9eddaa83fa33222ef',
         'blockindex': 1,
         'walletconflicts': [],
         'time': 1422794361,
         'txid': '63fadb05b2f6b0c83925d402c6cf27bc841acaa8c89a335914f77f75b22ef5dc',
         'blocktime': 1409154118,
         'amount': Decimal('1.00000000'),
         'confirmations': 1,
         'timereceived': 1422794579,
         'address': '12aJBBXWcWPxfQbXL4PQ3qtx978wwLL2g9'
     }
     self.currency = Currency.objects.create(label='Bitcoin', ticker='btc')
     self.wallet = Wallet.objects.create(currency=self.currency, label='Test')
     self.address = Address.objects.create(address=self.txdict['address'], wallet=self.wallet, currency=self.currency)
     tasks.process_deposite_transaction(self.txdict, 'btc')
コード例 #3
0
ファイル: tests.py プロジェクト: Mrkebubun/django-cc
 def setUp(self):
     self.txdict = {
         'category': 'receive',
         'account': '',
         'blockhash': '000000008468ce0ec51c64aa98cf99b317274c5287e770c9eddaa83fa33222ef',
         'blockindex': 1,
         'walletconflicts': [],
         'time': 1409150845,
         'txid': '63fadb05b2f6b0c83925d402c6cf27bc841acaa8c89a335914f77f75b22ef5dc',
         'blocktime': 1409154118,
         'amount': Decimal('5.00000000'),
         'confirmations': 1,
         'timereceived': 1409150845,
         'address': 'mmxv3wYKozehzp3GZSUiKvRCWSJecWNSrd'
     }
     self.currency = Currency.objects.create(label='Bitcoin', ticker='btc')
     self.wallet = Wallet.objects.create(currency=self.currency, label='Test')
     self.address = Address.objects.create(address=self.txdict['address'], wallet=self.wallet, currency=self.currency)
     tasks.process_deposite_transaction(self.txdict, 'btc')
コード例 #4
0
 def setUp(self):
     self.txdict = {
         'category': 'immature',
         'account': '',
         'blockhash':
         '000000008468ce0ec51c64aa98cf99b317274c5287e770c9eddaa83fa33222ef',
         'blockindex': 1,
         'walletconflicts': [],
         'time': 1422794361,
         'txid':
         '63fadb05b2f6b0c83925d402c6cf27bc841acaa8c89a335914f77f75b22ef5dc',
         'blocktime': 1409154118,
         'amount': Decimal('1.00000000'),
         'confirmations': 1,
         'timereceived': 1422794579,
         'address': '12aJBBXWcWPxfQbXL4PQ3qtx978wwLL2g9'
     }
     self.currency = Currency.objects.create(label='Bitcoin', ticker='btc')
     self.wallet = Wallet.objects.create(currency=self.currency,
                                         label='Test')
     self.address = Address.objects.create(address=self.txdict['address'],
                                           wallet=self.wallet,
                                           currency=self.currency)
     tasks.process_deposite_transaction(self.txdict, 'btc')