MostroP2P / mobile

Mobile client for Mostro p2p
6 stars 4 forks source link

Displays order list #2

Open Catrya opened 5 months ago

Catrya commented 5 months ago

Display Orders list

Any user who opens the app should be able to see all pending Mostro orders. They don't need to log in to see them.

Users should be able to filter by order kind (sell/buy) and fiat currency

Must adhere to this design.

hamed9980 commented 2 months ago

hello how i can assist you

Catrya commented 2 months ago

hello how i can assist you

Hello, if you want to resolve the issue you can ask for it to be assigned to you.

hamed9980 commented 2 months ago

Well I have experience in react js if you need a bug fix in react js so I may help you, just need to google a little nostr concept to be clear from beginning because it is new concept for me if you accept me

grunch commented 2 months ago

We accept any contribution, if you want to start working on this issue we can assign it to you

hamed9980 commented 2 months ago

Ok let's start work

hamed9980 commented 2 months ago

Is there api from where you get order list because in mostro (other site) it is pure html page?

grunch commented 2 months ago

Is there api from where you get order list because in mostro (other site) it is pure html page?

not an API, you should get it from Nostr, here an example:

$ nostreq --kinds 38383 --limit 1 | nostcat wss://relay.mostro.network | jq
[
  "EVENT",
  "bca3b3c9-6f49-48d1-b4d5-962218f32aba",
  {
    "tags": [
      [
        "d",
        "66ad4c5f1fbb9e597036e47f"
      ],
      [
        "k",
        "sell"
      ],
      [
        "f",
        "VES"
      ],
      [
        "s",
        "pending"
      ],
      [
        "amt",
        "0"
      ],
      [
        "fa",
        "10",
        "200"
      ],
      [
        "pm",
        "Pago móvil"
      ],
      [
        "premium",
        "2"
      ],
      [
        "community_id",
        "6403a3f54d51edde04476845"
      ],
      [
        "source",
        "https://t.me/satsP2PvesC/5992"
      ],
      [
        "network",
        "mainnet"
      ],
      [
        "layer",
        "lightning"
      ],
      [
        "expiration",
        "1722716112"
      ],
      [
        "y",
        "lnp2pbot"
      ],
      [
        "z",
        "order"
      ]
    ],
    "content": "",
    "sig": "1a806110a1bee7a2873f3394ac52dfd3c66ca7189300997a843745ab73f662e0ee0110f2ca5e6866c6ea5d06eefa9190215e684bd40979d28609ac9926cf2246",
    "id": "fcc3b84883a83ac99b7e0893f59468ec0af831199e832397b6ca000083614558",
    "pubkey": "fcc2a0bd8f5803f6dd8b201a1ddb67a4b6e268371fe7353d41d2b6684af7a61e",
    "created_at": 1722633312,
    "kind": 38383
  }
]