Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit f577b47

Browse files
authored
Merge pull request #239 from xmtp/dj/tx-id
2 parents 1502889 + 7db2728 commit f577b47

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

.changeset/cold-pumpkins-divide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@xmtp/frames-client": patch
3+
---
4+
5+
adds transactionId to type

packages/frames-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"dependencies": {
6868
"@noble/hashes": "^1.3.3",
6969
"@open-frames/proxy-client": "^0.3.2",
70-
"@xmtp/proto": "3.51.1",
70+
"@xmtp/proto": "3.61.1",
7171
"long": "^5.2.3"
7272
},
7373
"devDependencies": {

packages/frames-client/src/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export class FramesClient {
3232

3333
async signFrameAction(inputs: FrameActionInputs): Promise<FramePostPayload> {
3434
const opaqueConversationIdentifier = buildOpaqueIdentifier(inputs);
35-
const { frameUrl, buttonIndex, inputText, state, address } = inputs;
35+
const { frameUrl, buttonIndex, inputText, state, address, transactionId } =
36+
inputs;
3637
const now = Date.now();
3738
const timestamp = Long.fromNumber(now);
3839
const toSign: frames.FrameActionBody = {
@@ -44,6 +45,7 @@ export class FramesClient {
4445
unixTimestamp: now,
4546
state: state || "",
4647
address: address || "",
48+
transactionId: transactionId || "",
4749
};
4850

4951
const signedAction = await this.buildSignedFrameAction(toSign);

packages/frames-client/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export type FrameActionInputs = {
4545
inputText?: string;
4646
state?: string;
4747
address?: string;
48+
transactionId?: string;
4849
} & ConversationActionInputs;
4950

5051
type KeyType = {

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5436,7 +5436,7 @@ __metadata:
54365436
"@open-frames/types": "npm:^0.1.0"
54375437
"@rollup/plugin-terser": "npm:^0.4.4"
54385438
"@rollup/plugin-typescript": "npm:^11.1.6"
5439-
"@xmtp/proto": "npm:3.51.1"
5439+
"@xmtp/proto": "npm:3.61.1"
54405440
"@xmtp/tsconfig": "workspace:*"
54415441
"@xmtp/xmtp-js": "npm:^11.4.1"
54425442
eslint: "npm:^8.57.0"
@@ -5507,27 +5507,27 @@ __metadata:
55075507
languageName: node
55085508
linkType: hard
55095509

5510-
"@xmtp/proto@npm:3.51.1":
5511-
version: 3.51.1
5512-
resolution: "@xmtp/proto@npm:3.51.1"
5510+
"@xmtp/proto@npm:3.56.0":
5511+
version: 3.56.0
5512+
resolution: "@xmtp/proto@npm:3.56.0"
55135513
dependencies:
55145514
long: "npm:^5.2.0"
55155515
protobufjs: "npm:^7.0.0"
55165516
rxjs: "npm:^7.8.0"
55175517
undici: "npm:^5.8.1"
5518-
checksum: 10/936a6e2be4d3ddf65ba58cd46932b3006c73acd1ffd8967274d0e96612fea826de399d7f8df7e90608da68bc870c9cdc61832825cfca7124cb5bc6af22b6242b
5518+
checksum: 10/f752e6858692464319d6f22861fe8f23c46d9bb0eb390fe2220e0b4932a4de84be2e9e1cbafc0200e1bfe2a0ed3a3fb6079941630e57fb80e6325bc2a52bf10d
55195519
languageName: node
55205520
linkType: hard
55215521

5522-
"@xmtp/proto@npm:3.56.0":
5523-
version: 3.56.0
5524-
resolution: "@xmtp/proto@npm:3.56.0"
5522+
"@xmtp/proto@npm:3.61.1":
5523+
version: 3.61.1
5524+
resolution: "@xmtp/proto@npm:3.61.1"
55255525
dependencies:
55265526
long: "npm:^5.2.0"
55275527
protobufjs: "npm:^7.0.0"
55285528
rxjs: "npm:^7.8.0"
55295529
undici: "npm:^5.8.1"
5530-
checksum: 10/f752e6858692464319d6f22861fe8f23c46d9bb0eb390fe2220e0b4932a4de84be2e9e1cbafc0200e1bfe2a0ed3a3fb6079941630e57fb80e6325bc2a52bf10d
5530+
checksum: 10/c5acae46ad301a50652f30384be55a3389b4c11994652fa5386052c7ff4111fcb15c0e9d267898d6173cbcb6559b24bd7bef7470f020388f8610fecd3b8deea9
55315531
languageName: node
55325532
linkType: hard
55335533

0 commit comments

Comments
 (0)