Skip to content

Commit

Permalink
refactor: adjust contractAddress and microBlock hash pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrdlt committed Mar 21, 2024
1 parent 1ff80e6 commit b2e147f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dto.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { ApiProperty } from '@nestjs/swagger';

export const contractPattern = 'ct_([1-9a-zA-Z]){49,50}';
export const contractPattern =
'ct_([23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz]){49,50}';
export const bigNumberPattern = '[1-9]+';
export const microBlockTimePattern = '[1-9]{13}';
export const microBlockHashPattern = 'mh_([1-9a-zA-Z]){49,50}';
export const microBlockHashPattern =
'mh_([23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz]){49,50}';

export const pairAddressPropertyOptions = {
pattern: contractPattern,
Expand Down

0 comments on commit b2e147f

Please sign in to comment.