Skip to content

Commit 05f1640

Browse files
committed
Fix tx to Portal
1 parent 584d183 commit 05f1640

File tree

1 file changed

+40
-0
lines changed
  • src/app/hardware/portal

1 file changed

+40
-0
lines changed

src/app/hardware/portal/tx.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { multiply, NFC, Network, Bitcoin as BitcoinType, GetStatus as GetStatusType } from 'libportal-react-native';
2+
import { GetStatus as GetStatusType, Poll } from '../types'; // Assuming GetStatus is a type or object from the 'types' module
3+
export class Hww {
4+
static multiply(a: number, b: number): Promise<number> {
5+
return multiply(a, b);
6+
}
7+
}
8+
9+
// Shared structure for consistency, now including Poll
10+
const sharedStructure = {
11+
poll: Poll,
12+
nfc: NFC,
13+
};
14+
15+
export const poll = { poll: Poll, nfc: NFC };
16+
17+
export const newTag = { ...sharedStructure };
18+
19+
export const IncomingData = { ...sharedStructure };
20+
21+
export const GetStatus = {
22+
getStatus: GetStatusType, // Using a type-safe alias
23+
nfc: NFC,
24+
};
25+
26+
export const NetworkConfig = {
27+
Bitcoin: BitcoinType,
28+
// Signet: SignetType, // Explicitly distinguish imported Signet
29+
};
30+
31+
export const GenerateMnemonic = { ...sharedStructure };
32+
33+
export const Unlock = { ...sharedStructure };
34+
35+
export const DisplayAddress = { ...sharedStructure };
36+
37+
export const signPSBT = { ...sharedStructure };
38+
39+
export const PublicDescriptor = { ...sharedStructure };
40+

0 commit comments

Comments
 (0)