Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Conversation

@mikeseese
Copy link
Contributor

@mikeseese mikeseese commented Jan 12, 2021

This PR is part of #694 (although most Lotus applications want to use WebSockets)

This supports the Chain Explorer feature in the https://github.com/filecoin-shipyard/filecoin-network-inspector example

image


This PR also resolves #692:

image.png

@mikeseese mikeseese force-pushed the feat/filecoin-chainnotify branch from f2cffe9 to 9f88b4e Compare January 12, 2021 23:08
@mikeseese mikeseese marked this pull request as ready for review January 14, 2021 18:30
// We have to use type any instead of ReturnType<typeof connector.parse>
// on `payload` because Typescript isn't smart enough to understand the
// ambiguity doesn't actually exist
let payload: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

Is the ambiguity caused by just having multiple chains? Or is it specific to the Filecoin API implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ambiguity caused by having multiple chains, not specific to Filecoin. It's likely that typescript is smart enough with some more convoluted types lol, but I didn't take the appropriate time to learn how to do the complex types yall have set up, because the current types do not support it. I personally don't think it's worth the time for this small functionality

@mikeseese mikeseese force-pushed the feat/add-filecoin-to-dynamic-cli branch from 8801d55 to fabba07 Compare January 16, 2021 01:18
@mikeseese mikeseese force-pushed the feat/filecoin-chainnotify branch 2 times, most recently from b8ec20f to ffcef74 Compare January 16, 2021 01:29
@mikeseese mikeseese force-pushed the feat/add-filecoin-to-dynamic-cli branch from db1c5e8 to 482c72a Compare January 19, 2021 03:43
@mikeseese mikeseese force-pushed the feat/filecoin-chainnotify branch from ffcef74 to d398425 Compare January 19, 2021 03:46
@mikeseese mikeseese force-pushed the feat/add-filecoin-to-dynamic-cli branch from acec01f to 50aa0aa Compare January 19, 2021 22:16
@mikeseese mikeseese force-pushed the feat/filecoin-chainnotify branch from d398425 to 86984ad Compare January 19, 2021 22:16
@mikeseese mikeseese force-pushed the feat/filecoin-chainnotify branch from 86984ad to e4997b1 Compare January 20, 2021 21:46
@mikeseese
Copy link
Contributor Author

We're postponing these reviews until later

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants