Skip to content

Datastore Context adds crawl, run, fetch and query; Miner startup fix; Autorun multiple functions#167

Merged
calebjclark merged 4 commits intomainfrom
context
Jan 25, 2023
Merged

Datastore Context adds crawl, run, fetch and query; Miner startup fix; Autorun multiple functions#167
calebjclark merged 4 commits intomainfrom
context

Conversation

@blakebyrnes
Copy link
Contributor

This PR adds a few items:

  1. Makes the default functions on Datastore marked as internal (internalQuery, internalRun, etc). Then it adds crawl/run/fetch/query to the run context. This allows us to pass through the authentication, payment, etc from the caller.
  2. HeroReplay adds a static fromCrawler when passed into a context. This allows you to request a crawler instance by using HeroReplay.fromCrawler(crawlerInstance)
  3. Autorun now allows a function name/export to be specified and will run a function if it matches, or is the only option in the entry point
  4. Fixes an issue starting the miner that was waiting for the wrong variable to be initialized. Also fixes a timing issue starting.

Allow a user to specify a function to run when multiple functions are in the entrypoint file.
Also simplified the code since plugins no longer provide a new entrypoint.
@calebjclark calebjclark merged commit 0947862 into main Jan 25, 2023
@calebjclark calebjclark deleted the context branch January 25, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments