Deploy randomness service#416
Conversation
Deploying happychain with
|
| Latest commit: |
7b83dfb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://df3110da.happychain.pages.dev |
| Branch Preview URL: | https://gabriel-deploy-randomness.happychain.pages.dev |
packages/txm/lib/TxMonitor.ts
Outdated
| const inAirAttempts = transaction.getInAirAttempts() | ||
|
|
||
| console.log("In air attempts", inAirAttempts.map((a) => a.nonce)) | ||
|
|
There was a problem hiding this comment.
Are those log statements left here on purpose?
There was a problem hiding this comment.
I removed them. I was adding those logs to debug in production. I left one for now in BlockMonitor because I'm trying to understand a behavior in production
There was a problem hiding this comment.
Finally, I removed that comment from this branch, and I'm trying to debug the deployed randomness by deploying from a more specific branch
packages/txm/lib/BlockMonitor.ts
Outdated
| } | ||
|
|
||
| private onNewBlock(block: LatestBlock) { | ||
| console.log("onNewBlock", JSON.stringify(block, bigIntReplacer, 2)) |
There was a problem hiding this comment.
Left on purpose? What's the plan?
There was a problem hiding this comment.
I removed them. I was adding those logs to debug in production. I left one for now in BlockMonitor because I'm trying to understand a behavior in production
There was a problem hiding this comment.
Finally, I removed that comment from this branch, and I'm trying to debug the deployed randomness by deploying from a more specific branch
There was a problem hiding this comment.
Can add the logger in now.
There was a problem hiding this comment.
Finally, we don't have a console log here
8af1689 to
2d694da
Compare
dfdae27 to
d25fb79
Compare
4f3b431 to
dabb31d
Compare

Links
The randomness service is already deployed and functioning with this contract: https://happy-testnet-sepolia.explorer.caldera.xyz/address/0xf4822fC7CB2ec69A5f9D4b5d4a59B949eFfa8311?tab=txs
Description
This PR adds the necessary changes to deploy the randomness service:
The changes include:
Added a GitHub Action to deploy the randomness service
Compiled migrations to be included in the bundler
Increased the tip so that the block is regenerated even if the sequencer already has a generated block (reference)
Increased the polling interval so that the reveal transaction lands exactly in the next block
Toggle Checklist
Checklist
Basics
norswap/build-system-caching).Reminder: PR review guidelines
Correctness
C1. Builds and passes tests.
C2. The code is properly parameterized & compatible with different environments (e.g. local, testnet, mainnet, standalone wallet, ...).
C3. I have manually tested my changes & connected features.
C4. I have performed a thorough self-review of my code after submitting the PR, and have updated the code & comments accordingly.
Architecture & Documentation