Skip to content

Commit

Permalink
fix: ts client missing matches_regex option for print_event (#701)
Browse files Browse the repository at this point in the history
### Description

This prs add the missing `matches_regex` option for the `print_event`
predicate that is missing in the client SDK.

#### Breaking change?

No

### Checklist

- [ ] All tests pass
- [ ] Tests added in this PR (if applicable)
  • Loading branch information
pradel authored Feb 4, 2025
1 parent 1aac0f1 commit 8247900
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/client/typescript/src/schemas/stacks/if_this.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ export const StacksIfThisPrintEventSchema = Type.Object({
});
export type StacksIfThisPrintEvent = Static<typeof StacksIfThisPrintEventSchema>;

export const StacksIfThisPrintEventRegexSchema = Type.Object({
scope: Type.Literal('print_event'),
contract_identifier: Type.String(),
matches_regex: Type.String(),
});
export type StacksIfThisPrintEventRegex = Static<typeof StacksIfThisPrintEventRegexSchema>;

export const StacksIfThisContractCallSchema = Type.Object({
scope: Type.Literal('contract_call'),
contract_identifier: Type.String(),
Expand Down Expand Up @@ -111,6 +118,7 @@ export const StacksIfThisSchema = Type.Union([
StacksIfThisNftEventSchema,
StacksIfThisStxEventSchema,
StacksIfThisPrintEventSchema,
StacksIfThisPrintEventRegexSchema,
StacksIfThisContractCallSchema,
StacksIfThisContractDeploymentSchema,
StacksIfThisContractDeploymentTraitSchema,
Expand Down

0 comments on commit 8247900

Please sign in to comment.