mostro icon indicating copy to clipboard operation
mostro copied to clipboard

New nip33 event to publish mostro stats

Open grunch opened this issue 1 year ago • 2 comments

We need to publish a scheduled event that gives Mostro's stats, I'm thinking something like this:

Overall Stats

[
  "EVENT",
  "RAND",
  {
    "id": "84fad0d29cb3529d789faeff2033e88fe157a48e071c6a5d1619928289420e31",
    "pubkey": "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a",
    "created_at": 1702548701,
    "kind": 38383,
    "tags": [
      ["d", "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a"],
      ["new_orders", "10"],
      ["new_disputes", "1"],
      ["completed_orders", "50"],
      ["avg_time_attending_disputes", "65"],
      ["y", "mostrop2p"],
      ["z", "overall-stats"]
    ],
    "content": "",
    "sig": "7e8fe1eb644f33ff51d8805c02a0e1a6d034e6234eac50ef7a7e0dac68a0414f7910366204fa8217086f90eddaa37ded71e61f736d1838e37c0b73f6a16c4af2"
  }
]

Monthly Stats

[
  "EVENT",
  "RAND",
  {
    "id": "84fad0d29cb3529d789faeff2033e88fe157a48e071c6a5d1619928289420e31",
    "pubkey": "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a",
    "created_at": 1702548701,
    "kind": 38383,
    "tags": [
      ["d", "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a"],
      ["new_orders", "10"],
      ["new_disputes", "1"],
      ["completed_orders", "50"],
      ["avg_time_attending_disputes", "65"],
      ["y", "mostrop2p"],
      ["z", "monthly-stats"]
    ],
    "content": "",
    "sig": "7e8fe1eb644f33ff51d8805c02a0e1a6d034e6234eac50ef7a7e0dac68a0414f7910366204fa8217086f90eddaa37ded71e61f736d1838e37c0b73f6a16c4af2"
  }
]

grunch avatar Apr 16 '24 18:04 grunch

A question about the different kind of stats, if they are ex NIP33 event ( now NIP01 ) the same d tag in the events will overwrite the latest, so let me say that if we publish monthly events once a month ( just speakin loud ) and every 24 h global stats, latest global stats will overwrite monthly stats... Maybe we need to use different d tags?

Let me know your ideas @bilthon @grunch ....

arkanoider avatar Apr 25 '24 07:04 arkanoider

A question about the different kind of stats, if they are ex NIP33 event ( now NIP01 ) the same d tag in the events will overwrite the latest, so let me say that if we publish monthly events once a month ( just speakin loud ) and every 24 h global stats, latest global stats will overwrite monthly stats... Maybe we need to use different d tags?

Let me know your ideas @bilthon @grunch ....

you are right, we should use a different d tag for any stats we are publishing

grunch avatar Apr 25 '24 13:04 grunch

Closing this one in favor of privacy

grunch avatar Aug 29 '24 19:08 grunch