1
This commit is contained in:
parent
973617add8
commit
baebceb9b5
@ -65,13 +65,16 @@ def statData():
|
||||
for row in nftTransferTable:
|
||||
rawData = json.loads(row['raw_data'])
|
||||
if rawData['address'].lower() == '0x8444404bD78089A5a6d5Cc57f7Df8924f2DdACB4'.lower() and \
|
||||
rawData['event'] == 'Transfer' and \
|
||||
rawData['returnValues']['from'] == EMPTY_ADDRESS:
|
||||
rawData['event'] == 'Transfer':
|
||||
if rawData['returnValues']['from'] == EMPTY_ADDRESS:
|
||||
stat['nft_total'] += 1
|
||||
if rawData['returnValues']['to'] == EMPTY_ADDRESS:
|
||||
stat['bindBox']['open'] += 1
|
||||
#end for
|
||||
for row in nftTable:
|
||||
if row['owner_address'] != EMPTY_ADDRESS:
|
||||
stat['nft_total'] += 1
|
||||
stat['nft_mint'] += 1
|
||||
print(json.dumps(stat))
|
||||
|
||||
def loadData():
|
||||
|
Loading…
x
Reference in New Issue
Block a user