(self, transaction: dict, currency: Currency = None)
| 1487 | return transfers |
| 1488 | |
| 1489 | def parse_transaction(self, transaction: dict, currency: Currency = None) -> Transaction: |
| 1490 | # |
| 1491 | # fetchDeposits |
| 1492 | # |
| 1493 | # { |
| 1494 | # "l_1_hash": "0x10000101000203040506", |
| 1495 | # "l_2_hash": "0x10000101000203040506", |
| 1496 | # "to_account_id": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0", |
| 1497 | # "currency": "USDT", |
| 1498 | # "num_tokens": "1500.0", |
| 1499 | # "initiated_time": "1697788800000000000", |
| 1500 | # "confirmed_time": "1697788800000000000", |
| 1501 | # "from_address": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0" |
| 1502 | # } |
| 1503 | # |
| 1504 | # fetchWithdrawals |
| 1505 | # |
| 1506 | # { |
| 1507 | # "tx_id": "1028403", |
| 1508 | # "from_account_id": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0", |
| 1509 | # "to_eth_address": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0", |
| 1510 | # "currency": "USDT", |
| 1511 | # "num_tokens": "1500.0", |
| 1512 | # "signature": { |
| 1513 | # "signer": "0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0", |
| 1514 | # "r": "0xb788d96fee91c7cdc35918e0441b756d4000ec1d07d900c73347d9abbc20acc8", |
| 1515 | # "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", |
| 1516 | # "v": 28, |
| 1517 | # "expiration": "1697788800000000000", |
| 1518 | # "nonce": 1234567890, |
| 1519 | # "chain_id": "325" |
| 1520 | # }, |
| 1521 | # "event_time": "1697788800000000000", |
| 1522 | # "l_1_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", |
| 1523 | # "l_2_hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890" |
| 1524 | # } |
| 1525 | # |
| 1526 | # fetchTransfers |
| 1527 | # |
| 1528 | # { |
| 1529 | # "tx_id": "65119836", |
| 1530 | # "from_account_id": "0xc451b0191351ce308fdfd779d73814c910fc5ecb", |
| 1531 | # "from_sub_account_id": "0", |
| 1532 | # "to_account_id": "0x42c9f56f2c9da534f64b8806d64813b29c62a01d", |
| 1533 | # "to_sub_account_id": "0", |
| 1534 | # "currency": "USDT", |
| 1535 | # "num_tokens": "4.998", |
| 1536 | # "signature": { |
| 1537 | # "signer": "0xf4fdbaf9655bfd607098f4f887aaca58c9667203", |
| 1538 | # "r": "0x5f780b99e5e8516f85e66af49b469eeeeeee724290d7f49f1e84b25ad038fa81", |
| 1539 | # "s": "0x66c76fdb37a25db8c6b368625d96ee91ab1ffca1786d84dc806b08d1460e97bc", |
| 1540 | # "v": "27", |
| 1541 | # "expiration": "1767455807929000000", |
| 1542 | # "nonce": "45905", |
| 1543 | # "chain_id": "0" |
| 1544 | # }, |
| 1545 | # "event_time": "1764863808817370541", |
| 1546 | # "transfer_type": "NON_NATIVE_BRIDGE_DEPOSIT", |
no test coverage detected