Closed gibbs-shih closed 6 months ago
balance_versions
儲存 transaction 及 transaction logs, 並更新 token balances
black_lists
codes
、public_tags
, 新增 created_timestamp、tag_type
刪除 target @unique
db
調整 erc20 3 events topics
burned
minted
SELECT *
FROM transaction_receipt_raw
WHERE logs @> '[{"topics": ["0x9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f0"]}]';
balance_versions
snapshot 操作邏輯, 先算出snapshot再一併更新進balance_versions
每個 block 解析完要更新 table:currencies 原生幣種的 total_amount
parsing.ts
parsers.ts
error 1
curl --location 'https://isuncoin.baifa.io/' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_call",
"params":[{
"to": "0x58DefDe789c9d6F65c207DD31c171F1de51303FD",
"data": "0x18160ddd"
}, "latest"],
"id":1
}'
發現錯誤原因是因為 NFT transfer 的 topic 跟 ERC20 的 topic 一樣, 故 NFT transfer 的 contract.call 會出現錯誤, 維持原寫法並新建 function 及加入 try catch 處理 NFT transfer
error 2 >> minted目前只解析兩種
更新文件 BFAER00002
修改 db shema :review_datas
更新資料庫
take about 40 hr
take about 40 hr
take about 41 hr