Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"module": "pytest",
"justMyCode": true,
"console": "integratedTerminal",
"python": "${workspaceFolder}/.xchaindata/bin/python3.11",
"python": "${workspaceFolder}/.xchaindata/bin/python",
"env": { "PYTHONPATH": "${workspaceFolder}", "DATABASE_URL": "postgresql://admin:pwd@localhost/testing" },
"args": [
"-vvv",
Expand All @@ -28,7 +28,7 @@
],
"console": "integratedTerminal",
"justMyCode": true,
"python": "${workspaceFolder}/.xchaindata/bin/python3.11",
"python": "${workspaceFolder}/.xchaindata/bin/python",
"env": { "PYTHONPATH": "${workspaceFolder}", "DATABASE_URL": "postgresql://admin:pwd@localhost/testing" }
},
{
Expand Down Expand Up @@ -190,7 +190,7 @@
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/__init__.py",
"args": ["extract", "--bridge", "debridge", "--start_ts", "1717196400", "--end_ts", "1733011200", "--blockchains", "ethereum", "arbitrum", "bnb", "base"],
"args": ["extract", "--bridge", "debridge", "--start_ts", "1751328000", "--end_ts", "1751414400", "--blockchains", "solana", "ethereum", "base", "avalanche", "optimism", "arbitrum", "bnb", "polygon", "linea", "--solana-range", "dst5MGcFPoBeREFAA5E3tU5ij8m5uVYwkzkSAbsLbNo:289c14AwMVuJtJteFhgXQdhdG7FbEMVsaFxKDCSRsRyZkyzNJPB8s6GGsvp1BqVpnVx2teHECeicVRjSEyvWTpgW:52SNSVHZQWw2C2aWALRF81jxVAApKnT67ryzmLC8j6wWhbcrziDVx4rXuhuNLZqkNFWXDWqeD6MEBbjemArGdhJP", "src5qyZHqTqecJV4aY6Cb6zDZLMDzrDKKezs22MPHr4:5vdCA5FvZmDfnLNXtg7FezMJum4AjTbSL3SFf1jDJrLE6CDLB98sYn8AJpzzB9s74gywYwMVKjiEEiu6xNr6gmPJ:4BD6XpXXydEzszppNfMTmUG5iNWuGHPorF1k6TVVp3Gpef8wqCAw4VMMVSMCDu1muoG2fpRb2ZLyo6VDLCX4P8ws"],
"console": "integratedTerminal",
"justMyCode": true,
"python": "${workspaceFolder}/.xchaindata/bin/python",
Expand Down
16 changes: 16 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"cSpell.words": [
"ccip",
"cctp",
"debridge",
"lamports",
"levelname",
"linea",
"omnibridge",
"ronin",
"solana",
"unpad",
"unvalidated",
"WXDAI"
]
}
6 changes: 3 additions & 3 deletions cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ def extract_evm_data(idx, bridge, blockchain, start_block, end_block, blockchain
)
extractor = EvmExtractor(bridge, blockchain, blockchains)

if idx == len(blockchains) - 1:
extractor.post_processing()

except Exception as e:
log_to_cli(
build_log_message_2(
Expand All @@ -102,6 +99,9 @@ def extract_evm_data(idx, bridge, blockchain, start_block, end_block, blockchain
end_block,
)

if idx == len(blockchains) - 1:
extractor.post_processing()

def extract_solana_data(idx, bridge, blockchain, signature_ranges, blockchains):
extractor = SolanaExtractor(bridge, blockchain, blockchains)

Expand Down
2 changes: 1 addition & 1 deletion config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Bridge(Enum):
Bridge.POLYGON: False,
Bridge.RONIN: False,
Bridge.OMNIBRIDGE: False,
Bridge.DEBRIDGE: False,
Bridge.DEBRIDGE: True,
Bridge.MAYAN: True,
}

Expand Down
1 change: 1 addition & 0 deletions extractor/debridge/ABIs/avalanche/dln_destination.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions extractor/debridge/ABIs/avalanche/dln_source.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions extractor/debridge/ABIs/linea/dln_destination.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions extractor/debridge/ABIs/linea/dln_source.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions extractor/debridge/ABIs/optimism/dln_destination.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions extractor/debridge/ABIs/optimism/dln_source.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions extractor/debridge/ABIs/polygon/dln_destination.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions extractor/debridge/ABIs/polygon/dln_source.json

Large diffs are not rendered by default.

133 changes: 128 additions & 5 deletions extractor/debridge/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,29 @@
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
"0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
],
"optimism": [
{
"abi": "dln_source",
"contracts": [
"0xef4fb24ad0916217251f553c0596f8edc630eb66",
],
"topics": [
"0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471", # CreatedOrder
"0x33fff3d864e92b6e1ef9e830196fc019c946104ea621b833aaebd3c3e84b2f6f", # ClaimedUnlock
],
},
{
"abi": "dln_destination",
"contracts": [
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
Expand All @@ -40,12 +62,12 @@
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
"0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
],
"bnb": [
"avalanche": [
{
"abi": "dln_source",
"contracts": [
Expand All @@ -62,7 +84,7 @@
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
"0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
Expand All @@ -84,10 +106,111 @@
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
"0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
],
"bnb": [
{
"abi": "dln_source",
"contracts": [
"0xef4fb24ad0916217251f553c0596f8edc630eb66",
],
"topics": [
"0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471", # CreatedOrder
"0x33fff3d864e92b6e1ef9e830196fc019c946104ea621b833aaebd3c3e84b2f6f", # ClaimedUnlock
],
},
{
"abi": "dln_destination",
"contracts": [
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
],
"polygon": [
{
"abi": "dln_source",
"contracts": [
"0xef4fb24ad0916217251f553c0596f8edc630eb66",
],
"topics": [
"0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471", # CreatedOrder
"0x33fff3d864e92b6e1ef9e830196fc019c946104ea621b833aaebd3c3e84b2f6f", # ClaimedUnlock
],
},
{
"abi": "dln_destination",
"contracts": [
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
],
"linea": [
{
"abi": "dln_source",
"contracts": [
"0xef4fb24ad0916217251f553c0596f8edc630eb66",
],
"topics": [
"0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471", # CreatedOrder
"0x33fff3d864e92b6e1ef9e830196fc019c946104ea621b833aaebd3c3e84b2f6f", # ClaimedUnlock
],
},
{
"abi": "dln_destination",
"contracts": [
"0xe7351fd770a37282b91d153ee690b63579d6dd7f",
],
"topics": [
# "0x37a01d7dc38e924008cf4f2fa3d2ec1f45e7ae3c8292eb3e7d9314b7ad10e2fc", # SentOrderUnlock
"0xd281ee92bab1446041582480d2c0a9dc91f855386bb27ea295faac1e992f7fe4", # FulfilledOrder
],
},
],
}
}

BLOCKCHAIN_IDS = {
"8453": {
"name": "base",
},
"10": {
"name": "optimism",
},
"42161": {
"name": "arbitrum",
},
"137": {
"name": "polygon",
},
"1": {
"name": "ethereum",
},
"59144": {
"name": "linea",
},
"56": {
"name": "bnb",
},
"43114": {
"name": "avalanche",
},
"7565164": { # genesis hash for Solana
"name": "solana",
},
}

SOLANA_PROGRAM_ADDRESSES = [
"src5qyZHqTqecJV4aY6Cb6zDZLMDzrDKKezs22MPHr4",
"dst5MGcFPoBeREFAA5E3tU5ij8m5uVYwkzkSAbsLbNo",
]
Loading
Loading