• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

proximax-storage / tsjs-xpx-chain-sdk / 8778928347

22 Apr 2024 05:20AM UTC coverage: 67.306% (-3.7%) from 71.021%
8778928347

push

github

web-flow
Merge pull request #172 from proximax-storage/next

Add new transactions and new node API fetch

1207 of 2739 branches covered (44.07%)

Branch coverage included in aggregate %.

359 of 1167 new or added lines in 63 files covered. (30.76%)

2 existing lines in 1 file now uncovered.

8977 of 12392 relevant lines covered (72.44%)

140180.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/src/model/node/NodePeers.ts
1
/*
2
 * Copyright 2024 ProximaX
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
/**
17
 * The node peers of a node.
18
 */
19
export class NodePeers {
1✔
20

21
    /**
22
     * @param peersInfo
23
     */
24
    constructor(/**
25
                 * The peers info
26
                 */
NEW
27
                public readonly peersInfo: PeerInfo[]){}
×
28
}
29

30
export class PeerInfo{
1✔
31

32
    constructor(
NEW
33
        public readonly publicKey: string,
×
NEW
34
        public readonly port: number,
×
NEW
35
        public readonly networkIdentifier: number,
×
NEW
36
        public readonly version: number,
×
NEW
37
        public readonly roles: number,
×
NEW
38
        public readonly host: string, 
×
NEW
39
        public readonly friendlyName: string 
×
40
        ){
41

42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc