Skip to content

Commit

Permalink
feat: added textInput to FrameData (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia authored Feb 3, 2024
1 parent 1180210 commit 4bd8ec8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-bottles-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@coinbase/onchainkit': patch
---

- **feat**: added `textInput` to `FrameData`.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const frameMetadata = getFrameMetadata({
```ts
type Button = {
label: string;
action?: "post" | "post_redirect";
action?: 'post' | 'post_redirect';
};

type FrameMetadata = {
Expand Down
1 change: 1 addition & 0 deletions src/core/farcaster.integ.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ describe('getFrameValidatedMessage integration tests', () => {
url: 'https://frame-demo.vercel.app/2',
messageHash: '0x7099de8afb08984d53f56a02b28d0f96097bfd82',
timestamp: 1706559790000,
inputText: '',
network: 1,
buttonIndex: 1,
castId: { fid: 194519, hash: '0x3d7c0dac1dd0ee588eb58d07105b14786cfca976' },
Expand Down
11 changes: 6 additions & 5 deletions src/core/types.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { NeynarFrameValidationInternalModel } from '../utils/neynar/frame/types';

export interface FrameData {
fid: number;
url: string;
messageHash: string;
timestamp: number;
network: number;
buttonIndex: number;
castId: {
fid: number;
hash: string;
};
inputText: string;
fid: number;
messageHash: string;
network: number;
timestamp: number;
url: string;
}

export interface FrameRequest {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '0.4.2';
export const version = '0.4.3';

0 comments on commit 4bd8ec8

Please sign in to comment.