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.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
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.