-
Notifications
You must be signed in to change notification settings - Fork 1
/
version.d.ts
33 lines (33 loc) · 1.17 KB
/
version.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
/// <reference types="node" />
/**
* Version
* =======
*
* This data structure is used to specify details about what version of the
* p2p network is supported by this or other nodes.
*/
import { Bn } from './bn';
import { Br } from './br';
import { Bw } from './bw';
import { Struct } from './struct';
import { VarInt } from './var-int';
export declare class Version extends Struct {
versionBytesNum: number;
servicesBuf: Buffer;
timeBn: Bn;
addrRecvServicesBuf: Buffer;
addrRecvIpAddrBuf: Buffer;
addrRecvPort: number;
addrTransServicesBuf: Buffer;
addrTransIpAddrBuf: Buffer;
addrTransPort: number;
nonceBuf: Buffer;
userAgentVi: VarInt;
userAgentBuf: Buffer;
startHeightNum: number;
relay: boolean;
constructor(versionBytesNum?: number, servicesBuf?: Buffer, timeBn?: Bn, addrRecvServicesBuf?: Buffer, addrRecvIpAddrBuf?: Buffer, addrRecvPort?: number, addrTransServicesBuf?: Buffer, addrTransIpAddrBuf?: Buffer, addrTransPort?: number, nonceBuf?: Buffer, userAgentVi?: VarInt, userAgentBuf?: Buffer, startHeightNum?: number, relay?: boolean);
toBw(bw?: Bw): Bw;
fromBr(br: Br): this;
}
//# sourceMappingURL=version.d.ts.map