Event Listener Upgrade + Wrapper Types + sdk::main macro#333
Conversation
Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com>
Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com>
Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com>
|
Points of feedback from meeting:
|
shekohex
left a comment
There was a problem hiding this comment.
There is still more work to be done here for sure, but I believe we are deviating from the original goal of this PR which is to support other even watchers other than the default ones (Substrate, EVM), and other types of Event Handlers, so why not adopting what we currently have and add more events watcher, like the common ones we see would be good for other blueprints?
My latest commit after your comment addresses this concern. |
evm event_watcher notation needs to be moved into the event_listener block
* chore: merge main and clean up merge conflicts * fix: resolve more merge conflicts * fix: comments * feat: fix more merge conflicts relating to changes on main * fix: lib * fix: attempt to resolve build
It was (mistakenly?) removed in #333. Went ahead and added a default path for blueprint manager as well.
* chore: bump rustdoc-types (#348) Also pin to the latest nightly * fix: load substrate signer from env correctly (#349) * fix: add `data_dir` back to `GadgetConfiguration` (#350) It was (mistakenly?) removed in #333. Went ahead and added a default path for blueprint manager as well. * Multi job runner + SDK main macro (#346) * feat: use aggregator and separate out from the blueprint job * fix: uncomment generate_json (#358) * fix: updates using aggregator * fix: solve registry error in aggregator * fix: prevent duplicates * fix: got test working * fix: fmt and clippy cleanup * feat(cli): support custom repo and path sources (#360) * feat: added test in eigen IS blueprint, cleaned up testing code for it * Event Workflows (phase 1: Custom listeners) (#359) * Add wrapper types + trait structure to enforce structure for event flows * Decoupling/refactor and ensure integration test passes * periodic web poller working and further refactor of macro code * Everything compiling, integration test passes * fix(sdk)!: downgrade substrate dependencies for now It's currently impossible to use some APIs downstream, since they expose `sp_core` (v0.34.0) types instead of the `sdk::keystore::sp_core_subxt` (v0.31.0) types. Cargo will refuse to build blueprints using them. I just got rid of the `sdk::keystore::sp_core_subxt` hack and downgraded all of the dependencies necessary (I think). This won't be an issue once #318 is taken care of. * feat(sdk): re-export `libp2p` --------- Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com> Co-authored-by: Thomas Braun <38082993+tbraun96@users.noreply.github.com> Co-authored-by: Tjemmmic <mdtjemmes@proton.me>
* feat: add eigenlayer context * merge: combine context and proc macro tests * fix: removing unused code and fixing test * fix: move static vars to the lib * fix: move static vars to the lib * chore: debug * fix: lint and fmt to keep things clean * chore: add logging for debugging * fix: identified issue * fix: start on proc macro for abi grabbing * fix: compiles and deploys tasks, event listener not firing * chore: separate event listener files out * fix: spelling and blocks to mine * fix: more logging * chore: remove logs, evm event listener is broke * fix: remove one loop from event listening flow, polling seems to work, event catching not * Fix: Got back to original signing bug * Fix: Fixed address change - back to signature invalid revert * Fix: Correctly pulls task index from events * fix: use EL convert to g1/g2 point * Use incredible squaring aggregator (#364) * chore: bump rustdoc-types (#348) Also pin to the latest nightly * fix: load substrate signer from env correctly (#349) * fix: add `data_dir` back to `GadgetConfiguration` (#350) It was (mistakenly?) removed in #333. Went ahead and added a default path for blueprint manager as well. * Multi job runner + SDK main macro (#346) * feat: use aggregator and separate out from the blueprint job * fix: uncomment generate_json (#358) * fix: updates using aggregator * fix: solve registry error in aggregator * fix: prevent duplicates * fix: got test working * fix: fmt and clippy cleanup * feat(cli): support custom repo and path sources (#360) * feat: added test in eigen IS blueprint, cleaned up testing code for it * Event Workflows (phase 1: Custom listeners) (#359) * Add wrapper types + trait structure to enforce structure for event flows * Decoupling/refactor and ensure integration test passes * periodic web poller working and further refactor of macro code * Everything compiling, integration test passes * fix(sdk)!: downgrade substrate dependencies for now It's currently impossible to use some APIs downstream, since they expose `sp_core` (v0.34.0) types instead of the `sdk::keystore::sp_core_subxt` (v0.31.0) types. Cargo will refuse to build blueprints using them. I just got rid of the `sdk::keystore::sp_core_subxt` hack and downgraded all of the dependencies necessary (I think). This won't be an issue once #318 is taken care of. * feat(sdk): re-export `libp2p` --------- Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com> Co-authored-by: Thomas Braun <38082993+tbraun96@users.noreply.github.com> Co-authored-by: Tjemmmic <mdtjemmes@proton.me> * fix: remappings out of date * fix: remove eigenlayer-middleware from tangle blueprint git modules * chore: close handles once test completes, rpc server still not shutting down * fix: remove broken invalid test cases * fix: proc macro doc fixes to avoid more maintenance --------- Co-authored-by: Tjemmmic <mdtjemmes@proton.me> Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com> Co-authored-by: Thomas Braun <38082993+tbraun96@users.noreply.github.com>
* feat: add eigenlayer context * merge: combine context and proc macro tests * fix: removing unused code and fixing test * fix: move static vars to the lib * fix: move static vars to the lib * chore: debug * fix: lint and fmt to keep things clean * chore: add logging for debugging * fix: identified issue * fix: start on proc macro for abi grabbing * fix: compiles and deploys tasks, event listener not firing * chore: separate event listener files out * fix: spelling and blocks to mine * fix: more logging * chore: remove logs, evm event listener is broke * fix: remove one loop from event listening flow, polling seems to work, event catching not * Fix: Got back to original signing bug * Fix: Fixed address change - back to signature invalid revert * Fix: Correctly pulls task index from events * fix: use EL convert to g1/g2 point * feat: use aggregator and separate out from the blueprint job * fix: updates using aggregator * fix: solve registry error in aggregator * fix: prevent duplicates * fix: got test working * fix: fmt and clippy cleanup * feat: added test in eigen IS blueprint, cleaned up testing code for it * feat: convert aggregator process_new_jobs to blueprint * Use incredible squaring aggregator (#364) * chore: bump rustdoc-types (#348) Also pin to the latest nightly * fix: load substrate signer from env correctly (#349) * fix: add `data_dir` back to `GadgetConfiguration` (#350) It was (mistakenly?) removed in #333. Went ahead and added a default path for blueprint manager as well. * Multi job runner + SDK main macro (#346) * feat: use aggregator and separate out from the blueprint job * fix: uncomment generate_json (#358) * fix: updates using aggregator * fix: solve registry error in aggregator * fix: prevent duplicates * fix: got test working * fix: fmt and clippy cleanup * feat(cli): support custom repo and path sources (#360) * feat: added test in eigen IS blueprint, cleaned up testing code for it * Event Workflows (phase 1: Custom listeners) (#359) * Add wrapper types + trait structure to enforce structure for event flows * Decoupling/refactor and ensure integration test passes * periodic web poller working and further refactor of macro code * Everything compiling, integration test passes * fix(sdk)!: downgrade substrate dependencies for now It's currently impossible to use some APIs downstream, since they expose `sp_core` (v0.34.0) types instead of the `sdk::keystore::sp_core_subxt` (v0.31.0) types. Cargo will refuse to build blueprints using them. I just got rid of the `sdk::keystore::sp_core_subxt` hack and downgraded all of the dependencies necessary (I think). This won't be an issue once #318 is taken care of. * feat(sdk): re-export `libp2p` --------- Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com> Co-authored-by: Thomas Braun <38082993+tbraun96@users.noreply.github.com> Co-authored-by: Tjemmmic <mdtjemmes@proton.me> * fix: merge fix-el branch * feat: use aggregator blueprint * fix: remappings out of date * fix: remove eigenlayer-middleware from tangle blueprint git modules * chore: close handles once test completes, rpc server still not shutting down * fix: remove broken invalid test cases * fix: proc macro doc fixes to avoid more maintenance * chore: merge main * fix: move helpers to separate file * fix: moving helpers along w/ eigenlayer context * fix: get both blueprints running * fix: expose addresses better * feat: test exits successfully and all pieces work seamlessly * fix: add helper * fix: clippy and fmt * fix: context derive test * fix: context derive test --------- Co-authored-by: Tjemmmic <mdtjemmes@proton.me> Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com> Co-authored-by: Thomas Braun <38082993+tbraun96@users.noreply.github.com>
No description provided.