-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
3a5d9a3
to
76cc760
Compare
import { assert, CosmWasmClient, Uint53 } from "./deps.ts"; | ||
import { chainHash, timeOfRound } from "./drand.ts"; | ||
|
||
interface Job { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
aded6cf
to
55b702d
Compare
No description provided.