Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/publish events to rmq #2

Open
wants to merge 119 commits into
base: master
Choose a base branch
from

Conversation

rob-looksrare
Copy link

@rob-looksrare rob-looksrare commented Apr 25, 2024

Run command

run --package ord --bin ord -- --bitcoin-rpc-url "http://localhost:18332" --bitcoin-rpc-username user --bitcoin-rpc-password password --rabbitmq-url localhost --rabbitmq-password s3cr3t --rabbitmq-username indexer --rabbitmq-exchange ord-tx --chain testnet --data-dir ./index-data event-server --http-port 8080

rmq config

{
  "queues": [
    {
      "name": "ord-q",
      "vhost": "/",
      "durable": true,
      "auto_delete": false,
      "arguments": {}
    }
  ],
  "exchanges": [
    {
      "name": "ord-tx",
      "vhost": "/",
      "type": "topic",
      "durable": true,
      "auto_delete": false,
      "internal": false,
      "arguments": {}
    }
  ],
  "bindings": [
    {
      "source": "ord-tx",
      "vhost": "/",
      "destination": "ord-q",
      "destination_type": "queue",
      "routing_key": "",
      "arguments": {}
    }
  ]
}

example payload in rmq

{"InscriptionCreated":{"block_height":2530024,"charms":0,"inscription_id":"efb59cadd9cf201577cb797004d1a6bd0b2d60f5f513791c43925bb236fc64fei0","location":"efb59cadd9cf201577cb797004d1a6bd0b2d60f5f513791c43925bb236fc64fe:0:0","parent_inscription_ids":[],"sequence_number":314886}}

src/event_publisher.rs Outdated Show resolved Hide resolved
src/event_publisher.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants