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