1 |
|
2 | import { BigNumber } from "bignumber.js";
|
3 | import { LedgerEthTransactionResolution } from "./services/types";
|
4 | export declare function splitPath(path: string): number[];
|
5 | export declare function hexBuffer(str: string): Buffer;
|
6 | export declare function maybeHexBuffer(str: string | null | undefined): Buffer | null | undefined;
|
7 | export declare const decodeTxInfo: (rawTx: Buffer) => {
|
8 | decodedTx: any;
|
9 | txType: number | null;
|
10 | chainId: BigNumber;
|
11 | chainIdTruncated: number;
|
12 | vrsOffset: number;
|
13 | };
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | export declare const intAsHexBytes: (int: number, bytes: number) => string;
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare enum ERC20_CLEAR_SIGNED_SELECTORS {
|
33 | APPROVE = "0x095ea7b3",
|
34 | TRANSFER = "0xa9059cbb"
|
35 | }
|
36 | export declare enum ERC721_CLEAR_SIGNED_SELECTORS {
|
37 | APPROVE = "0x095ea7b3",
|
38 | SET_APPROVAL_FOR_ALL = "0xa22cb465",
|
39 | TRANSFER_FROM = "0x23b872dd",
|
40 | SAFE_TRANSFER_FROM = "0x42842e0e",
|
41 | SAFE_TRANSFER_FROM_WITH_DATA = "0xb88d4fde"
|
42 | }
|
43 | export declare enum ERC1155_CLEAR_SIGNED_SELECTORS {
|
44 | SET_APPROVAL_FOR_ALL = "0xa22cb465",
|
45 | SAFE_TRANSFER_FROM = "0xf242432a",
|
46 | SAFE_BATCH_TRANSFER_FROM = "0x2eb2c2d6"
|
47 | }
|
48 | export declare const tokenSelectors: ERC20_CLEAR_SIGNED_SELECTORS[];
|
49 | export declare const nftSelectors: (ERC721_CLEAR_SIGNED_SELECTORS | ERC1155_CLEAR_SIGNED_SELECTORS)[];
|
50 | export declare const mergeResolutions: (resolutionsArray: Partial<LedgerEthTransactionResolution>[]) => LedgerEthTransactionResolution;
|
51 |
|
\ | No newline at end of file |