RSS3-Network / Node

In the vast RSS3 Network, the RSS3 Node delivers Open Information with efficiency, it is a steadfast cruiser in the byte-filled sea.
MIT License
22 stars 3 forks source link

feat(source/arweave): add irys graphql query support #373

Closed kallydev closed 4 months ago

kallydev commented 4 months ago

Summary

Resolved #350, added a BundlrOnly flag for forcing Arweave source to use Irys' gateway and GraphQL endpoints.

https://github.com/RSS3-Network/Node/blob/e39f2b8b5a7a2f180f36b1299161715255089930/internal/engine/worker/contract/momoka/worker.go#L77-L83

id: arweave-momoka
network: arweave
endpoint: polygon
worker: momoka
ipfs_gateways:
    - https://ipfs.io
    - https://cloudflare-ipfs.com
parameters:
        concurrent_block_requests: 100

Activities

+-------------------------------------------+-------+--------+-----+-------------------------------------------+-------------------------------------------+------+----+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+------------------------------+---------------------------------+---------------------------------+---------------------------------+--------+
|id                                         |network|platform|index|from                                       |to                                         |tag   |type|status|actions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |total_actions|fee                           |timestamp                        |created_at                       |updated_at                       |calldata|
+-------------------------------------------+-------+--------+-----+-------------------------------------------+-------------------------------------------+------+----+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+------------------------------+---------------------------------+---------------------------------+---------------------------------+--------+
|2S9mCWU0guqOf2EjIybmssJH_CYHLmeF5Ka_cXFU7aI|arweave|Lens    |0    |llq4QhHA7fQWBKd6V8vzAhK-qy_JulpzlYUEgxAgJ4E|llq4QhHA7fQWBKd6V8vzAhK-qy_JulpzlYUEgxAgJ4E|social|post|true  |[{"from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045", "metadata": {"body": "How do layer 2s really differ from execution sharding?\n\nhttps://vitalik.eth.limo/general/2024/05/23/l2exec.html", "content_uri": "ar://KNayh00NBwqFaFUOJ4Ll2rXQe6VaC60IuYBDtPC9Cv8", "handle": "vitalik.lens", "profile_id": "0x0187b3", "publication_id": "0x0187b3-0x0e-DA-c120772a", "timestamp": 1716439918, "title": "Post by #vitalik"}, "platform": "Lens", "tag": "social", "to": "llq4QhHA7fQWBKd6V8vzAhK-qy_JulpzlYUEgxAgJ4E", "type": "post"}]|1            |{"amount": "0", "decimal": 12}|2024-05-23 04:51:59.000000 +00:00|2024-06-05 01:15:31.470952 +00:00|2024-06-05 01:15:31.470952 +00:00|null    |
+-------------------------------------------+-------+--------+-----+-------------------------------------------+-------------------------------------------+------+----+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+------------------------------+---------------------------------+---------------------------------+---------------------------------+--------+

Indexes

+-------------------------------------------+-------------------------------------------+-------+-----+--------+------+----+------+---------+---------------------------------+---------------------------------+---------------------------------+
|id                                         |owner                                      |network|index|platform|tag   |type|status|direction|timestamp                        |created_at                       |updated_at                       |
+-------------------------------------------+-------------------------------------------+-------+-----+--------+------+----+------+---------+---------------------------------+---------------------------------+---------------------------------+
|2S9mCWU0guqOf2EjIybmssJH_CYHLmeF5Ka_cXFU7aI|0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |arweave|0    |Lens    |social|post|true  |2        |2024-05-23 04:51:59.000000 +00:00|2024-06-05 01:15:31.494161 +00:00|2024-06-05 01:15:31.494161 +00:00|
|2S9mCWU0guqOf2EjIybmssJH_CYHLmeF5Ka_cXFU7aI|llq4QhHA7fQWBKd6V8vzAhK-qy_JulpzlYUEgxAgJ4E|arweave|0    |Lens    |social|post|true  |3        |2024-05-23 04:51:59.000000 +00:00|2024-06-05 01:15:31.494161 +00:00|2024-06-05 01:15:31.494161 +00:00|
+-------------------------------------------+-------------------------------------------+-------+-----+--------+------+----+------+---------+---------------------------------+---------------------------------+---------------------------------+

Checklist

Does this PR introduce a breaking change?

Other information