1
This commit is contained in:
parent
973617add8
commit
baebceb9b5
@ -3,7 +3,7 @@ import json
|
|||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
# 1.NFT总量 (宝箱+赠送)
|
# 1.NFT总量 (宝箱+赠送)
|
||||||
# 2.NFTmint数量 (卖出的宝箱+赠送)
|
# 2.NFT mint数量 (卖出的宝箱+赠送)
|
||||||
# 3.NFT宝箱已开和未开数量(总数即可)
|
# 3.NFT宝箱已开和未开数量(总数即可)
|
||||||
# 4.NFT持有人数量排序 (已购的宝箱+赠送)
|
# 4.NFT持有人数量排序 (已购的宝箱+赠送)
|
||||||
|
|
||||||
@ -65,13 +65,16 @@ def statData():
|
|||||||
for row in nftTransferTable:
|
for row in nftTransferTable:
|
||||||
rawData = json.loads(row['raw_data'])
|
rawData = json.loads(row['raw_data'])
|
||||||
if rawData['address'].lower() == '0x8444404bD78089A5a6d5Cc57f7Df8924f2DdACB4'.lower() and \
|
if rawData['address'].lower() == '0x8444404bD78089A5a6d5Cc57f7Df8924f2DdACB4'.lower() and \
|
||||||
rawData['event'] == 'Transfer' and \
|
rawData['event'] == 'Transfer':
|
||||||
rawData['returnValues']['from'] == EMPTY_ADDRESS:
|
if rawData['returnValues']['from'] == EMPTY_ADDRESS:
|
||||||
stat['nft_total'] += 1
|
stat['nft_total'] += 1
|
||||||
|
if rawData['returnValues']['to'] == EMPTY_ADDRESS:
|
||||||
|
stat['bindBox']['open'] += 1
|
||||||
#end for
|
#end for
|
||||||
for row in nftTable:
|
for row in nftTable:
|
||||||
if row['owner_address'] != EMPTY_ADDRESS:
|
if row['owner_address'] != EMPTY_ADDRESS:
|
||||||
stat['nft_total'] += 1
|
stat['nft_total'] += 1
|
||||||
|
stat['nft_mint'] += 1
|
||||||
print(json.dumps(stat))
|
print(json.dumps(stat))
|
||||||
|
|
||||||
def loadData():
|
def loadData():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user