Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit bd2f3b5

Browse files
author
Brad Hart
authored
Merge pull request #855 from EOSIO/first_block_num
Adding `first_block_num` to `GetInfoResult` type
2 parents ae8c65a + dd8f5b0 commit bd2f3b5

File tree

4 files changed

+305
-254
lines changed

4 files changed

+305
-254
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,25 @@
3535
"devDependencies": {
3636
"@blockone/eslint-config-blockone": "^4.0.0",
3737
"@types/elliptic": "^6.4.12",
38-
"@types/jest": "^26.0.21",
39-
"@types/node": "^14.14.35",
40-
"@types/node-fetch": "^2.5.8",
38+
"@types/jest": "^26.0.22",
39+
"@types/node": "^14.14.37",
40+
"@types/node-fetch": "^2.5.9",
4141
"@types/pako": "^1.0.1",
4242
"buffer": "^6.0.3",
4343
"clean-webpack-plugin": "^3.0.0",
4444
"crypto-browserify": "^3.12.0",
45-
"cypress": "^6.8.0",
45+
"cypress": "^6.9.1",
4646
"eosjs-ecc": "^4.0.7",
47-
"eslint": "^7.22.0",
47+
"eslint": "^7.23.0",
4848
"jest": "^26.6.3",
4949
"jest-extended": "^0.11.5",
5050
"jest-fetch-mock": "^3.0.3",
5151
"rimraf": "^3.0.2",
5252
"ts-jest": "^26.5.4",
53-
"ts-loader": "^8.0.18",
54-
"typescript": "^4.2.3",
55-
"webpack": "^5.27.2",
56-
"webpack-cli": "^4.5.0"
53+
"ts-loader": "^8.1.0",
54+
"typescript": "^4.2.4",
55+
"webpack": "^5.31.0",
56+
"webpack-cli": "^4.6.0"
5757
},
5858
"jest": {
5959
"automock": false,

src/eosjs-rpc-interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ export interface GetInfoResult {
369369
fork_db_head_block_num?: number;
370370
fork_db_head_block_id?: string;
371371
server_full_version_string?: string;
372+
first_block_num?: number;
372373
}
373374

374375
/** Return value of /v1/chain/get_producer_schedule */

src/tests/type-checks.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ describe('Chain API Plugin Endpoints', () => {
553553
'fork_db_head_block_num?': 'number',
554554
'fork_db_head_block_id?': 'string',
555555
'server_full_version_string?': 'string',
556+
'first_block_num?': 'number',
556557
};
557558
verifyType(result, getInfoResult);
558559
});

0 commit comments

Comments
 (0)