|
1 |
| -import * as $protobuf from "protobufjs"; |
| 1 | +import * as $protobuf from 'protobufjs' |
2 | 2 | /** Properties of an IpnsEntry. */
|
3 | 3 | export interface IIpnsEntry {
|
4 | 4 |
|
5 |
| - /** IpnsEntry value */ |
6 |
| - value?: (Uint8Array|null); |
| 5 | + /** IpnsEntry value */ |
| 6 | + value?: (Uint8Array|null) |
7 | 7 |
|
8 |
| - /** IpnsEntry signature */ |
9 |
| - signature?: (Uint8Array|null); |
| 8 | + /** IpnsEntry signature */ |
| 9 | + signature?: (Uint8Array|null) |
10 | 10 |
|
11 |
| - /** IpnsEntry validityType */ |
12 |
| - validityType?: (IpnsEntry.ValidityType|null); |
| 11 | + /** IpnsEntry validityType */ |
| 12 | + validityType?: (IpnsEntry.ValidityType|null) |
13 | 13 |
|
14 |
| - /** IpnsEntry validity */ |
15 |
| - validity?: (Uint8Array|null); |
| 14 | + /** IpnsEntry validity */ |
| 15 | + validity?: (Uint8Array|null) |
16 | 16 |
|
17 |
| - /** IpnsEntry sequence */ |
18 |
| - sequence?: (number|Long|null); |
| 17 | + /** IpnsEntry sequence */ |
| 18 | + sequence?: (number|Long|null) |
19 | 19 |
|
20 |
| - /** IpnsEntry ttl */ |
21 |
| - ttl?: (number|Long|null); |
| 20 | + /** IpnsEntry ttl */ |
| 21 | + ttl?: (number|Long|null) |
22 | 22 |
|
23 |
| - /** IpnsEntry pubKey */ |
24 |
| - pubKey?: (Uint8Array|null); |
| 23 | + /** IpnsEntry pubKey */ |
| 24 | + pubKey?: (Uint8Array|null) |
25 | 25 |
|
26 |
| - /** IpnsEntry signatureV2 */ |
27 |
| - signatureV2?: (Uint8Array|null); |
| 26 | + /** IpnsEntry signatureV2 */ |
| 27 | + signatureV2?: (Uint8Array|null) |
28 | 28 |
|
29 |
| - /** IpnsEntry data */ |
30 |
| - data?: (Uint8Array|null); |
| 29 | + /** IpnsEntry data */ |
| 30 | + data?: (Uint8Array|null) |
31 | 31 | }
|
32 | 32 |
|
33 | 33 | /** Represents an IpnsEntry. */
|
34 | 34 | export class IpnsEntry implements IIpnsEntry {
|
35 |
| - |
36 |
| - /** |
37 |
| - * Constructs a new IpnsEntry. |
38 |
| - * @param [p] Properties to set |
39 |
| - */ |
40 |
| - constructor(p?: IIpnsEntry); |
41 |
| - |
42 |
| - /** IpnsEntry value. */ |
43 |
| - public value: Uint8Array; |
44 |
| - |
45 |
| - /** IpnsEntry signature. */ |
46 |
| - public signature: Uint8Array; |
47 |
| - |
48 |
| - /** IpnsEntry validityType. */ |
49 |
| - public validityType: IpnsEntry.ValidityType; |
50 |
| - |
51 |
| - /** IpnsEntry validity. */ |
52 |
| - public validity: Uint8Array; |
53 |
| - |
54 |
| - /** IpnsEntry sequence. */ |
55 |
| - public sequence: (number|Long); |
56 |
| - |
57 |
| - /** IpnsEntry ttl. */ |
58 |
| - public ttl: (number|Long); |
59 |
| - |
60 |
| - /** IpnsEntry pubKey. */ |
61 |
| - public pubKey: Uint8Array; |
62 |
| - |
63 |
| - /** IpnsEntry signatureV2. */ |
64 |
| - public signatureV2: Uint8Array; |
65 |
| - |
66 |
| - /** IpnsEntry data. */ |
67 |
| - public data: Uint8Array; |
68 |
| - |
69 |
| - /** |
70 |
| - * Encodes the specified IpnsEntry message. Does not implicitly {@link IpnsEntry.verify|verify} messages. |
71 |
| - * @param m IpnsEntry message or plain object to encode |
72 |
| - * @param [w] Writer to encode to |
73 |
| - * @returns Writer |
74 |
| - */ |
75 |
| - public static encode(m: IIpnsEntry, w?: $protobuf.Writer): $protobuf.Writer; |
76 |
| - |
77 |
| - /** |
78 |
| - * Decodes an IpnsEntry message from the specified reader or buffer. |
79 |
| - * @param r Reader or buffer to decode from |
80 |
| - * @param [l] Message length if known beforehand |
81 |
| - * @returns IpnsEntry |
82 |
| - * @throws {Error} If the payload is not a reader or valid buffer |
83 |
| - * @throws {$protobuf.util.ProtocolError} If required fields are missing |
84 |
| - */ |
85 |
| - public static decode(r: ($protobuf.Reader|Uint8Array), l?: number): IpnsEntry; |
86 |
| - |
87 |
| - /** |
88 |
| - * Creates an IpnsEntry message from a plain object. Also converts values to their respective internal types. |
89 |
| - * @param d Plain object |
90 |
| - * @returns IpnsEntry |
91 |
| - */ |
92 |
| - public static fromObject(d: { [k: string]: any }): IpnsEntry; |
93 |
| - |
94 |
| - /** |
95 |
| - * Creates a plain object from an IpnsEntry message. Also converts values to other types if specified. |
96 |
| - * @param m IpnsEntry |
97 |
| - * @param [o] Conversion options |
98 |
| - * @returns Plain object |
99 |
| - */ |
100 |
| - public static toObject(m: IpnsEntry, o?: $protobuf.IConversionOptions): { [k: string]: any }; |
101 |
| - |
102 |
| - /** |
103 |
| - * Converts this IpnsEntry to JSON. |
104 |
| - * @returns JSON object |
105 |
| - */ |
106 |
| - public toJSON(): { [k: string]: any }; |
| 35 | + /** |
| 36 | + * Constructs a new IpnsEntry. |
| 37 | + * |
| 38 | + * @param [p] - Properties to set |
| 39 | + */ |
| 40 | + constructor (p?: IIpnsEntry); |
| 41 | + |
| 42 | + /** IpnsEntry value. */ |
| 43 | + public value: Uint8Array |
| 44 | + |
| 45 | + /** IpnsEntry signature. */ |
| 46 | + public signature: Uint8Array |
| 47 | + |
| 48 | + /** IpnsEntry validityType. */ |
| 49 | + public validityType: IpnsEntry.ValidityType |
| 50 | + |
| 51 | + /** IpnsEntry validity. */ |
| 52 | + public validity: Uint8Array |
| 53 | + |
| 54 | + /** IpnsEntry sequence. */ |
| 55 | + public sequence: (number|Long) |
| 56 | + |
| 57 | + /** IpnsEntry ttl. */ |
| 58 | + public ttl: (number|Long) |
| 59 | + |
| 60 | + /** IpnsEntry pubKey. */ |
| 61 | + public pubKey: Uint8Array |
| 62 | + |
| 63 | + /** IpnsEntry signatureV2. */ |
| 64 | + public signatureV2: Uint8Array |
| 65 | + |
| 66 | + /** IpnsEntry data. */ |
| 67 | + public data: Uint8Array |
| 68 | + |
| 69 | + /** |
| 70 | + * Encodes the specified IpnsEntry message. Does not implicitly {@link IpnsEntry.verify|verify} messages. |
| 71 | + * |
| 72 | + * @param m - IpnsEntry message or plain object to encode |
| 73 | + * @param [w] - Writer to encode to |
| 74 | + * @returns Writer |
| 75 | + */ |
| 76 | + public static encode (m: IIpnsEntry, w?: $protobuf.Writer): $protobuf.Writer; |
| 77 | + |
| 78 | + /** |
| 79 | + * Decodes an IpnsEntry message from the specified reader or buffer. |
| 80 | + * |
| 81 | + * @param r - Reader or buffer to decode from |
| 82 | + * @param [l] - Message length if known beforehand |
| 83 | + * @returns IpnsEntry |
| 84 | + * @throws {Error} If the payload is not a reader or valid buffer |
| 85 | + * @throws {$protobuf.util.ProtocolError} If required fields are missing |
| 86 | + */ |
| 87 | + public static decode (r: ($protobuf.Reader|Uint8Array), l?: number): IpnsEntry; |
| 88 | + |
| 89 | + /** |
| 90 | + * Creates an IpnsEntry message from a plain object. Also converts values to their respective internal types. |
| 91 | + * |
| 92 | + * @param d - Plain object |
| 93 | + * @returns IpnsEntry |
| 94 | + */ |
| 95 | + public static fromObject (d: { [k: string]: any }): IpnsEntry; |
| 96 | + |
| 97 | + /** |
| 98 | + * Creates a plain object from an IpnsEntry message. Also converts values to other types if specified. |
| 99 | + * |
| 100 | + * @param m - IpnsEntry |
| 101 | + * @param [o] - Conversion options |
| 102 | + * @returns Plain object |
| 103 | + */ |
| 104 | + public static toObject (m: IpnsEntry, o?: $protobuf.IConversionOptions): { [k: string]: any }; |
| 105 | + |
| 106 | + /** |
| 107 | + * Converts this IpnsEntry to JSON. |
| 108 | + * |
| 109 | + * @returns JSON object |
| 110 | + */ |
| 111 | + public toJSON (): { [k: string]: any }; |
107 | 112 | }
|
108 | 113 |
|
109 | 114 | export namespace IpnsEntry {
|
110 | 115 |
|
111 |
| - /** ValidityType enum. */ |
112 |
| - enum ValidityType { |
113 |
| - EOL = 0 |
114 |
| - } |
| 116 | + /** ValidityType enum. */ |
| 117 | + enum ValidityType { |
| 118 | + EOL = 0 |
| 119 | + } |
115 | 120 | }
|
0 commit comments