( result: BlockGrantResult, )
| 73 | export type BlockGrantResult = BlockGrant | WeeklyLimitError | BlockExhaustedError |
| 74 | |
| 75 | export function isWeeklyLimitError( |
| 76 | result: BlockGrantResult, |
| 77 | ): result is WeeklyLimitError { |
| 78 | return 'error' in result && result.error === 'weekly_limit_reached' |
| 79 | } |
| 80 | |
| 81 | export function isBlockExhaustedError( |
| 82 | result: BlockGrantResult, |
no outgoing calls
no test coverage detected