Skip to content

Commit

Permalink
feat: added transactionId in FrameData
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Mar 5, 2024
1 parent 8c2dd91 commit b3cd32f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-chairs-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

- **feat**: added `transactionId` in `FrameData`.
7 changes: 4 additions & 3 deletions site/docs/pages/frame/types.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Frame Kit Types
deescription: Glossary of Types in Frame Kit.
title: Frame Types
deescription: Glossary of Types for Frame utilities and components
---

# Types [Glossary of Types in Frame Kit.]
# Types [Glossary of Types for Frame utilities and components]

## `FrameButtonMetadata`

Expand Down Expand Up @@ -36,6 +36,7 @@ interface FrameData {
network: number;
state: string;
timestamp: number;
transactionId?: string;
url: string;
}
```
Expand Down
1 change: 1 addition & 0 deletions src/frame/getFrameMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ describe('getFrameValidatedMessage', () => {
messageHash: '0xthisisnotreal',
state: '',
timestamp: 0,
transactionId: undefined,
url: 'https://localhost:3000',
},
trustedData: {
Expand Down
1 change: 1 addition & 0 deletions src/frame/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { getFrameMessage } from './getFrameMessage';
export { getMockFrameRequest } from './getMockFrameRequest';
export type {
FrameButtonMetadata,
FrameData,
FrameImageMetadata,
FrameInputMetadata,
FrameMetadataReact,
Expand Down
1 change: 1 addition & 0 deletions src/frame/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface FrameData {
network: number;
state: string;
timestamp: number;
transactionId?: string;
url: string;
}

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.9.9';
export const version = '0.9.10';

0 comments on commit b3cd32f

Please sign in to comment.