Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gateway connectivity and observe unprocessed jobs #13

Merged
merged 8 commits into from
Aug 24, 2023

Conversation

webmaster128
Copy link
Contributor

No description provided.

import { assert, CosmWasmClient, Uint53 } from "./deps.ts";
import { chainHash, timeOfRound } from "./drand.ts";

interface Job {
Copy link
Contributor

@kaisbaccour kaisbaccour Aug 23, 2023

Choose a reason for hiding this comment

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

Curious question, Is this wasmable from nois-contracts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what you means, but this is the JSON format of the jobs returned from the gateway. We want the type here, not any executable logic. There is a JSON Schema for that which the contract can create but JSON Schema -> TypeScript conversion is not that easy to set up.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay makes sense. I thought wasm (apart from porting function execution ) could also help to just export some struct or enum not only functions, such that people would prevent deduplication of interfaces and APIs between two different languages. This is irrelevant to this PR anyways.

@webmaster128 webmaster128 merged commit efd9447 into main Aug 24, 2023
2 checks passed
@webmaster128 webmaster128 deleted the add-gateway branch August 24, 2023 18:26
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