-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: handle DisputeEscalated events for not first disputes #81
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
protocolProvider: | ||
rpcsConfig: | ||
l1: | ||
chainId: eip155:11155111 | ||
transactionReceiptConfirmations: 1 | ||
timeout: 10000 | ||
retryInterval: 150 | ||
l2: | ||
chainId: eip155:421614 | ||
transactionReceiptConfirmations: 1 | ||
timeout: 10000 | ||
retryInterval: 150 | ||
contracts: | ||
oracle: "0x10224eff6B1Caaf5daC49B2e7104b7161484B128" | ||
epochManager: "0x7975475801BEf845f10Ce7784DC69aB1e0344f11" | ||
eboRequestCreator: "0xa13318684281a820304C164427396385C306d870" | ||
bondEscalationModule: "0x52d7728fE87826FfF51b21b303e2FF7cB04F6Aec" | ||
horizonAccountingExtension: "0xbDAB27D1903da4e18B0D1BE873E18924514E52eC" | ||
|
||
blockNumberService: | ||
blockmetaConfig: | ||
baseUrl: "localhost:443" | ||
servicePaths: | ||
blockByTime: /sf.blockmeta.v2.BlockByTime | ||
block: /sf.blockmeta.v2.Block | ||
bearerTokenExpirationWindow: 31536000000 | ||
|
||
processor: | ||
msBetweenChecks: 7500 | ||
accountingModules: | ||
responseModule: "0xb97C59331F89a852Ae21aee215Da28820c533649" | ||
escalationModule: "0x52d7728fE87826FfF51b21b303e2FF7cB04F6Aec" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { CommandAlreadyRun, CommandNotRun } from "../../../exceptions/index.js"; | ||
import { EboRegistryCommand } from "../../../interfaces/index.js"; | ||
|
||
export class NoOp implements EboRegistryCommand { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be good to have some docs in this class as I'm curious what you mean by noop in this context---I know that it means "do nothing" usually but why it's not immediately clear to me why we need the build() command. Also, do you think we need some logging in build() would be useful for when it's invoked in ResponseDisputed so we know when a new noop instance is returned? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could technically make the constructor public and use Seems like a wise decision to log the no-op "execution", I agree! |
||
private wasRun: boolean = false; | ||
|
||
private constructor() {} | ||
|
||
public static build(): NoOp { | ||
return new NoOp(); | ||
} | ||
|
||
name(): string { | ||
return "NoOp"; | ||
} | ||
|
||
run(): void { | ||
if (this.wasRun) throw new CommandAlreadyRun(NoOp.name); | ||
|
||
this.wasRun = true; | ||
} | ||
|
||
undo(): void { | ||
if (!this.wasRun) throw new CommandNotRun(NoOp.name); | ||
} | ||
} |
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.
just a double check that it's the correct port since its HTTPS one
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.
It's kinda a placeholder for Tenderly config tbh, we are not indexing any chain that needs the blockmeta service.