This commit is contained in:
aozhiwei 2023-02-22 14:00:52 +08:00
parent 708dfa5c3e
commit 31ff7b19f2

View File

@ -64,13 +64,58 @@ def loadData():
for row in reader:
data.append(rowToObj(row, fields))
loadCsv(mintTable, 't_mint.txt', [
''
'idx',
'unikey',
'account',
'game_id',
'ignore',
'bc_minted',
'bc_mint_txhash',
'bc_mint_itemid',
'bc_mint_tokenid',
'bc_mint_token_type',
'bc_mint_tags',
'bc_mint_count',
'bc_mint_time',
'bc_mint_prepare_block_number',
'bc_mint_success_block_number',
'bc_mint_confirm_time',
'suspend',
'suspend_reason',
'done',
'createtime',
'modifytime'
])
loadCsv(nftTable, 't_nft.txt', [
''
'idx',
'owner_address',
'creator_address',
'token_id',
'token_type',
'token_state',
'game_id',
'item_id',
'deleted',
'opened',
'confirm_count',
'confirm_block_number',
'rand_attr',
'tags',
'createtime',
'modifytime'
])
loadCsv(nftTable, 't_nft_transfer.txt', [
''
'idx',
'token_id',
'txhash',
'block_number',
'log_index',
'_from',
'_to',
'raw_data',
'owner_confirmed',
'createtime',
'modifytime'
])
print('hello')