nodiesorg / nodies_monitoring

6 stars 3 forks source link

Add Near blockchain connector #41

Closed fortsoftware closed 1 year ago

fortsoftware commented 1 year ago

Issue ticket number and link

N/A

Description

I recently added Near to my chain list so I implemented a functional connector. I just copied the AvaxConnector and then modified based on the slight differences that they had. I think in the future this could be abstracted away a bit to reuse code but I didn't feel that it was the time to do it.

Sadly I did not found a way to get the "latest height" so I just used the current height as the latest height. I inspected the API docs and tried here and there and asked on the Near discord and haven't gotten a response, but if I do find a way then I will put up another PR or update this one

No need to be merged since I did this quickly. Just making the code available so that you can decide what to do with the code :)

Type of change

Please delete option that is not relevant.