Skip to content

Commit

Permalink
Merge pull request #239 from xmtp/dj/tx-id
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriguespe authored May 25, 2024
2 parents 1502889 + 7db2728 commit f577b47
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-pumpkins-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@xmtp/frames-client": patch
---

adds transactionId to type
2 changes: 1 addition & 1 deletion packages/frames-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"dependencies": {
"@noble/hashes": "^1.3.3",
"@open-frames/proxy-client": "^0.3.2",
"@xmtp/proto": "3.51.1",
"@xmtp/proto": "3.61.1",
"long": "^5.2.3"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion packages/frames-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export class FramesClient {

async signFrameAction(inputs: FrameActionInputs): Promise<FramePostPayload> {
const opaqueConversationIdentifier = buildOpaqueIdentifier(inputs);
const { frameUrl, buttonIndex, inputText, state, address } = inputs;
const { frameUrl, buttonIndex, inputText, state, address, transactionId } =
inputs;
const now = Date.now();
const timestamp = Long.fromNumber(now);
const toSign: frames.FrameActionBody = {
Expand All @@ -44,6 +45,7 @@ export class FramesClient {
unixTimestamp: now,
state: state || "",
address: address || "",
transactionId: transactionId || "",
};

const signedAction = await this.buildSignedFrameAction(toSign);
Expand Down
1 change: 1 addition & 0 deletions packages/frames-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export type FrameActionInputs = {
inputText?: string;
state?: string;
address?: string;
transactionId?: string;
} & ConversationActionInputs;

type KeyType = {
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5436,7 +5436,7 @@ __metadata:
"@open-frames/types": "npm:^0.1.0"
"@rollup/plugin-terser": "npm:^0.4.4"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@xmtp/proto": "npm:3.51.1"
"@xmtp/proto": "npm:3.61.1"
"@xmtp/tsconfig": "workspace:*"
"@xmtp/xmtp-js": "npm:^11.4.1"
eslint: "npm:^8.57.0"
Expand Down Expand Up @@ -5507,27 +5507,27 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/proto@npm:3.51.1":
version: 3.51.1
resolution: "@xmtp/proto@npm:3.51.1"
"@xmtp/proto@npm:3.56.0":
version: 3.56.0
resolution: "@xmtp/proto@npm:3.56.0"
dependencies:
long: "npm:^5.2.0"
protobufjs: "npm:^7.0.0"
rxjs: "npm:^7.8.0"
undici: "npm:^5.8.1"
checksum: 10/936a6e2be4d3ddf65ba58cd46932b3006c73acd1ffd8967274d0e96612fea826de399d7f8df7e90608da68bc870c9cdc61832825cfca7124cb5bc6af22b6242b
checksum: 10/f752e6858692464319d6f22861fe8f23c46d9bb0eb390fe2220e0b4932a4de84be2e9e1cbafc0200e1bfe2a0ed3a3fb6079941630e57fb80e6325bc2a52bf10d
languageName: node
linkType: hard

"@xmtp/proto@npm:3.56.0":
version: 3.56.0
resolution: "@xmtp/proto@npm:3.56.0"
"@xmtp/proto@npm:3.61.1":
version: 3.61.1
resolution: "@xmtp/proto@npm:3.61.1"
dependencies:
long: "npm:^5.2.0"
protobufjs: "npm:^7.0.0"
rxjs: "npm:^7.8.0"
undici: "npm:^5.8.1"
checksum: 10/f752e6858692464319d6f22861fe8f23c46d9bb0eb390fe2220e0b4932a4de84be2e9e1cbafc0200e1bfe2a0ed3a3fb6079941630e57fb80e6325bc2a52bf10d
checksum: 10/c5acae46ad301a50652f30384be55a3389b4c11994652fa5386052c7ff4111fcb15c0e9d267898d6173cbcb6559b24bd7bef7470f020388f8610fecd3b8deea9
languageName: node
linkType: hard

Expand Down

0 comments on commit f577b47

Please sign in to comment.