rahataid / rahat-platform

Rahat-Platform is a backend for Rahat, also known as Rahat core
https://docs.rahat.io
GNU Lesser General Public License v3.0
3 stars 13 forks source link

Update the meta transaction queue process #152

Open anupama-rumsan opened 2 weeks ago

anupama-rumsan commented 2 weeks ago

-handle the microservice calls after completion of meta transactions

myanzik commented 1 week ago

We need to update the database after a meta-transaction is successfully completed on-chain. To achieve this, the server will listen for specific events emitted once the meta-transaction is confirmed. Upon receiving the event, the listener should take the event payload and process the necessary database updates.

Tasks:

myanzik commented 1 week ago
Screenshot 2024-10-18 at 3 06 54 PM
myanzik commented 1 week ago

Data type could be something like:

interface MetaTransactionEventPayload {
<current-meta-transaction-data>
  metadata?: object;     // Optional metadata for further processing
}

@sushant-rumsan I want you to make a suggestion on this. @anupama-rumsan please review, if i miss anything