You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
742 B
25 lines
742 B
import { BaseError } from '../../errors/base.js'
|
|
import type { Hex } from '../../types/misc.js'
|
|
|
|
export type GameNotFoundErrorType = GameNotFoundError & {
|
|
name: 'GameNotFoundError'
|
|
}
|
|
export class GameNotFoundError extends BaseError {
|
|
constructor() {
|
|
super('Dispute game not found.', { name: 'GameNotFoundError' })
|
|
}
|
|
}
|
|
|
|
export type ReceiptContainsNoWithdrawalsErrorType =
|
|
ReceiptContainsNoWithdrawalsError & {
|
|
name: 'ReceiptContainsNoWithdrawalsError'
|
|
}
|
|
export class ReceiptContainsNoWithdrawalsError extends BaseError {
|
|
constructor({ hash }: { hash: Hex }) {
|
|
super(
|
|
`The provided transaction receipt with hash "${hash}" contains no withdrawals.`,
|
|
{ name: 'ReceiptContainsNoWithdrawalsError' },
|
|
)
|
|
}
|
|
}
|