跨链桥跨链过程中数据变化
发起的两笔跨链交易 (L1->L2)
https://sepolia.etherscan.io/tx/0xd2db346f588d3eb9c90b0a9da2e8382d5c3275916288131f3701ae62bae56c44
https://sepolia.etherscan.io/tx/0x13a2ac45a973524d704463fe16d4d8e3410efc09cf6d3e53b6052c8a17ece4a4
bridge_db=# select * FROM sync.block;
id | block_num | block_hash | parent_hash | network_id | received_at
----+-----------+--------------------------------------------------------------------+--------------------------------------------------------------------+------------+------------------------
0 | | \x5c7830 | | | 1970-01-01 00:00:00+00
1 | 7092388 | \xe984c5267a0e675df842c9ad91a1d0825080cfc581791250955a7a7dd41b71ab | \x5fcd8aa7d9b8650488fcfcf93db2c2dfb03100d02e2e0f927b0ee8d758dfb2b4 | 0 | 2024-11-17 01:21:24+00
2 | 7092528 | \xcd588c08198efdbe40a4bfc731f906594dd0e80f78acff528a84bf36c8341f03 | \xec136b1e2d7fe0fd4fdb4c4c11cb1b5cc578c97e26d6073652a1d31702b12999 | 0 | 2024-11-17 01:51:36+00
bridge_db=# SELECT * FROM sync.deposit;
leaf_type | network_id | orig_net | orig_addr | amount | dest_net | dest_addr | block_id | deposit_cnt | tx_hash | metadata | id | ready_for_claim
-----------+------------+----------+--------------------------------------------+------------------------+----------+--------------------------------------------+----------+-------------+--------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+-----------------
0 | 0 | 0 | \x3ec3d234625cde1e0f3267014e26e193610e50ac | 1000000000000000000000 | 1 | \xc2df13b6ad0753e0547a318f65f99ac62aec6e2b | 1 | 0 | \xd2db346f588d3eb9c90b0a9da2e8382d5c3275916288131f3701ae62bae56c44 | \x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000084d4158546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d41580000000000000000000000000000000000000000000000000000000000 | 1 | f
0 | 0 | 0 | \x3ec3d234625cde1e0f3267014e26e193610e50ac | 2000000000000000000000 | 1 | \xc2df13b6ad0753e0547a318f65f99ac62aec6e2b | 2 | 1 | \x13a2ac45a973524d704463fe16d4d8e3410efc09cf6d3e53b6052c8a17ece4a4 | \x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000084d4158546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d41580000000000000000000000000000000000000000000000000000000000 | 2 | f
等待一段时间 ready_for_claim变为true
leaf_type | network_id | orig_net | orig_addr | amount | dest_net | dest_addr | block_id | deposit_cnt | tx_hash | metadata | id | ready_for_claim
-----------+------------+----------+--------------------------------------------+------------------------+----------+--------------------------------------------+----------+-------------+--------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+-----------------
0 | 0 | 0 | \x3ec3d234625cde1e0f3267014e26e193610e50ac | 1000000000000000000000 | 1 | \xc2df13b6ad0753e0547a318f65f99ac62aec6e2b | 1 | 0 | \xd2db346f588d3eb9c90b0a9da2e8382d5c3275916288131f3701ae62bae56c44 | \x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000084d4158546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d41580000000000000000000000000000000000000000000000000000000000 | 1 | t
0 | 0 | 0 | \x3ec3d234625cde1e0f3267014e26e193610e50ac | 2000000000000000000000 | 1 | \xc2df13b6ad0753e0547a318f65f99ac62aec6e2b | 2 | 1 | \x13a2ac45a973524d704463fe16d4d8e3410efc09cf6d3e53b6052c8a17ece4a4 | \x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000084d4158546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034d41580000000000000000000000000000000000000000000000000000000000 | 2 | t
然后交易会被claimtxman模块,会调用L2桥合约进行相应资产的转出
注:首次部署时,跨链桥claim地址需要在genesis allocs中初始化一定代币,用于首次跨链的手续费
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »