Skip to content

Commit

Permalink
feat(protobuf): add contact list related messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Dec 10, 2024
1 parent afd17a3 commit 4a25886
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/protobuf/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@
"mac": {
"type": "bytes",
"id": 2
},
"signature": {
"type": "bytes",
"id": 3
}
}
},
Expand Down Expand Up @@ -1121,6 +1125,18 @@
"payment_req_index": {
"type": "uint32",
"id": 12
},
"label": {
"type": "string",
"id": 13
},
"label_sig": {
"type": "bytes",
"id": 14
},
"label_pk": {
"type": "bytes",
"id": 15
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions packages/protobuf/scripts/protobuf-patches/TxOutputType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export type TxOutputType =
orig_hash?: string;
orig_index?: number;
payment_req_index?: number;
label?: string;
label_sig?: string;
label_pk?: string;
}
| {
address?: typeof undefined;
Expand Down
4 changes: 4 additions & 0 deletions packages/protobuf/src/messages-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export const Address = Type.Object(
{
address: Type.String(),
mac: Type.Optional(Type.String()),
signature: Type.Optional(Type.String()),
},
{ $id: 'Address' },
);
Expand Down Expand Up @@ -511,6 +512,9 @@ export const TxOutputType = Type.Union(
orig_hash: Type.Optional(Type.String()),
orig_index: Type.Optional(Type.Number()),
payment_req_index: Type.Optional(Type.Number()),
label: Type.Optional(Type.String()),
label_sig: Type.Optional(Type.String()),
label_pk: Type.Optional(Type.String()),
}),
Type.Object({
address: Type.Optional(Type.Undefined()),
Expand Down
4 changes: 4 additions & 0 deletions packages/protobuf/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export type GetAddress = {
export type Address = {
address: string;
mac?: string;
signature?: string;
};

export type GetOwnershipId = {
Expand Down Expand Up @@ -351,6 +352,9 @@ export type TxOutputType =
orig_hash?: string;
orig_index?: number;
payment_req_index?: number;
label?: string;
label_sig?: string;
label_pk?: string;
}
| {
address?: typeof undefined;
Expand Down

0 comments on commit 4a25886

Please sign in to comment.