From b3cd32f788cc299abe88a53bd977d7f2146c7a0a Mon Sep 17 00:00:00 2001 From: Leonardo Zizzamia Date: Tue, 5 Mar 2024 13:16:09 -0800 Subject: [PATCH] feat: added `transactionId` in `FrameData` --- .changeset/wise-chairs-leave.md | 5 +++++ site/docs/pages/frame/types.mdx | 7 ++++--- src/frame/getFrameMessage.test.ts | 1 + src/frame/index.ts | 1 + src/frame/types.ts | 1 + src/version.ts | 2 +- 6 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 .changeset/wise-chairs-leave.md diff --git a/.changeset/wise-chairs-leave.md b/.changeset/wise-chairs-leave.md new file mode 100644 index 0000000000..c6afcd4d98 --- /dev/null +++ b/.changeset/wise-chairs-leave.md @@ -0,0 +1,5 @@ +--- +"@coinbase/onchainkit": patch +--- + +- **feat**: added `transactionId` in `FrameData`. diff --git a/site/docs/pages/frame/types.mdx b/site/docs/pages/frame/types.mdx index f6b0110175..470b5285c3 100644 --- a/site/docs/pages/frame/types.mdx +++ b/site/docs/pages/frame/types.mdx @@ -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` @@ -36,6 +36,7 @@ interface FrameData { network: number; state: string; timestamp: number; + transactionId?: string; url: string; } ``` diff --git a/src/frame/getFrameMessage.test.ts b/src/frame/getFrameMessage.test.ts index a8167ff0c1..cacbfe6af3 100644 --- a/src/frame/getFrameMessage.test.ts +++ b/src/frame/getFrameMessage.test.ts @@ -78,6 +78,7 @@ describe('getFrameValidatedMessage', () => { messageHash: '0xthisisnotreal', state: '', timestamp: 0, + transactionId: undefined, url: 'https://localhost:3000', }, trustedData: { diff --git a/src/frame/index.ts b/src/frame/index.ts index 958ec40290..eb11e604f7 100644 --- a/src/frame/index.ts +++ b/src/frame/index.ts @@ -7,6 +7,7 @@ export { getFrameMessage } from './getFrameMessage'; export { getMockFrameRequest } from './getMockFrameRequest'; export type { FrameButtonMetadata, + FrameData, FrameImageMetadata, FrameInputMetadata, FrameMetadataReact, diff --git a/src/frame/types.ts b/src/frame/types.ts index 95f08182b0..05c4d7cc52 100644 --- a/src/frame/types.ts +++ b/src/frame/types.ts @@ -18,6 +18,7 @@ export interface FrameData { network: number; state: string; timestamp: number; + transactionId?: string; url: string; } diff --git a/src/version.ts b/src/version.ts index b0fcada683..edb1e4dec6 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = '0.9.9'; +export const version = '0.9.10';