[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:
parent
a6cbcc7c55
commit
10d683da64
|
@ -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": {
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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)",
|
||||
|
|
Loading…
Reference in New Issue