Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
Code refactoring and comments (#16)
  • Loading branch information
0237h committed Oct 17, 2023
1 parent 926e5b3 commit 43f8bcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export const BlockchainSchema = z.object({
})
});

// Represents the timestamp query parameter for `/{c}/timestamp?blocknum=` endpoint
// Supports array parsing via comma-separated values
export const BlocknumSchema = z.object({
block_number: z.union([
z_blocknum,
Expand All @@ -66,6 +68,8 @@ export const BlocknumSchema = z.object({
})
});

// Represents the timestamp query parameter for `/{c}/blocknum?timestamp=` endpoint
// Supports array parsing via comma-separated values
export const TimestampSchema = z.object({
timestamp: z.union([
z_timestamp,
Expand Down
1 change: 0 additions & 1 deletion src/tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { describe, expect, it, beforeAll } from 'bun:test';
import { ZodError } from 'zod';

import config from '../config';
import { generateApp } from '../index';
import { banner } from "../banner";
import { generateApp } from '../index';
import { supportedChainsQuery, timestampQuery } from "../queries";
Expand Down

0 comments on commit 43f8bcd

Please sign in to comment.