[Blockchain Watcher] (FIX - APTOS) Fix aptos job (#1222)

* Fix job

* Improve solana log

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
This commit is contained in:
Julian 2024-03-15 17:52:55 -03:00 committed by GitHub
parent a6cbcc7c55
commit 10d683da64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View File

@ -135,7 +135,7 @@
"name": "aptos",
"network": "testnet",
"chainId": 22,
"rpcs": ["https://fullnode.devnet.aptoslabs.com/v1"],
"rpcs": ["https://fullnode.testnet.aptoslabs.com/v1"],
"timeout": 10000
},
"arbitrum": {

View File

@ -79,11 +79,12 @@ const processProgram = async (
const { sequence, emitterAddress, emitterChain } = message || {};
const txHash = transaction.transaction.signatures[0];
const protocol = findProtocol(SOLANA_CHAIN, programId, hexData, txHash);
const protocolType = protocol?.type ?? "unknown";
logger.debug(
`[${chain}}] Redeemed transaction info: [hash: ${txHash}][VAA: ${emitterChain}/${emitterAddress.toString(
"hex"
)}/${sequence}]`
)}/${sequence}][protocol: ${protocolType}]`
);
results.push({
@ -99,7 +100,7 @@ const processProgram = async (
emitterChain: emitterChain,
emitterAddress: emitterAddress.toString("hex"),
sequence: Number(sequence),
protocol: protocol?.type ?? "unknown",
protocol: protocolType,
},
});
}

View File

@ -340,7 +340,7 @@ data:
"config": {
"limitBatchSize": 100,
"commitment": "finalized",
"interval": 15000,
"interval": 25000,
"addresses": ["0x5bc11445584a763c1fa7ed39081f1b920954da14e04b32440cba863d03e19625"],
"chain": "aptos",
"chainId": 22,
@ -355,7 +355,7 @@ data:
"handlers": [
{
"action": "HandleAptosTransactions",
"target": "dummy",
"target": "sns",
"mapper": "aptosLogMessagePublishedMapper",
"config": {
"abi": "event LogMessagePublished(address indexed sender, uint64 sequence, uint32 nonce, bytes payload, uint8 consistencyLevel)",