[Blockchain Watcher] (KLAYTN) Map klaytn redeem events (#1508)

Map klaytn redeem events

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
This commit is contained in:
Julian 2024-06-26 10:30:06 -03:00 committed by GitHub
parent 7bdc71cd62
commit c234125904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 97 additions and 4 deletions

View File

@ -79,10 +79,7 @@
"klaytn": {
"network": "mainnet",
"chainId": 13,
"rpcs": [
"https://klaytn-mainnet-rpc.allthatnode.com:8551",
"https://public-en-cypress.klaytn.net"
]
"rpcs": ["https://public-en-cypress.klaytn.net"]
},
"celo": {
"network": "mainnet",

View File

@ -1793,6 +1793,36 @@
]
}
]
},
{
"chain": "klaytn",
"protocols": [
{
"addresses": [
"0x5b08ac39eaed75c0439fc750d9fe7e1f9dd0193f",
"0xC7A13BE098720840dEa132D860fDfa030884b09A"
],
"type": "Token Bridge",
"methods": [
{
"methodId": "0xc6878519",
"method": "MethodCompleteTransfer"
},
{
"methodId": "0xff200cde",
"method": "MethodCompleteAndUnwrapETH"
},
{
"methodId": "0xe8059810",
"method": "MethodCreateWrapped"
},
{
"methodId": "0xf768441f",
"method": "MethodUpdateWrapped"
}
]
}
]
}
]
}

View File

@ -197,6 +197,39 @@ data:
}
}
]
},
{
"id": "poll-redeemed-transactions-klaytn",
"chain": "klaytn",
"source": {
"action": "PollEvm",
"records": "GetEvmTransactions",
"config": {
"blockBatchSize": 100,
"commitment": "latest",
"interval": 15000,
"filters": [
{
"addresses": [],
"type": "Portal Token Bridge (Connect, Portico, Omniswap, tBTC, etc)",
"topics": ["0xcaf280c8cfeba144da67230d9b009c8f868a75bac9a528fa0474be1ba317c169"],
"strategy": "GetTransactionsByLogFiltersStrategy"
}
],
"chain": "klaytn",
"chainId": 13
}
},
"handlers": [
{
"action": "HandleEvmTransactions",
"target": "sns",
"mapper": "evmRedeemedTransactionFoundMapper",
"config": {
"metricName": "process_vaa_event"
}
}
]
}
]
mainnet-jobs.json: |-
@ -395,6 +428,39 @@ data:
}
}
]
},
{
"id": "poll-redeemed-transactions-klaytn",
"chain": "klaytn",
"source": {
"action": "PollEvm",
"records": "GetEvmTransactions",
"config": {
"blockBatchSize": 100,
"commitment": "latest",
"interval": 15000,
"filters": [
{
"addresses": [],
"type": "Portal Token Bridge (Connect, Portico, Omniswap, tBTC, etc)",
"topics": ["0xcaf280c8cfeba144da67230d9b009c8f868a75bac9a528fa0474be1ba317c169"],
"strategy": "GetTransactionsByLogFiltersStrategy"
}
],
"chain": "klaytn",
"chainId": 13
}
},
"handlers": [
{
"action": "HandleEvmTransactions",
"target": "sns",
"mapper": "evmRedeemedTransactionFoundMapper",
"config": {
"metricName": "process_vaa_event"
}
}
]
}
]
---