Skip to content

Commit

Permalink
added indexer info to getInfo (#127)
Browse files Browse the repository at this point in the history
* added indexer info to getInfo

* format
  • Loading branch information
mjadach-iv authored Aug 23, 2024
1 parent d2a4605 commit 17e6d32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hoprnet/hopr-sdk",
"version": "2.1.5-beta.1",
"version": "2.1.6",
"description": "A SDK for HOPRd's Rest API functions",
"author": "HOPR Association",
"license": "GPL-3.0",
Expand Down
4 changes: 4 additions & 0 deletions src/api/node/getInfo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ describe('test getInfo', function () {
hoprNodeSafeRegistry: '0x3E7c4720934ff6A9FE122Cb761f36a11E9b848D9',
hoprManagementModule: '0x39b0445b32f5a544eb7917912f5f837bd061be4c',
hoprNodeSafe: '0x0361a040acb376dd7e5a4643e5a4c7ae9d20c834',
indexerBlock: 35346732,
indexerChecksum:
'0xe780bd95f350e96fe30e98d17560ade3c892f0d3bd75d681f99b0d3c1690517d',
indexBlockPrevChecksum: 35611556,
isEligible: false,
connectivityStatus: 'Orange',
channelClosurePeriod: 5
Expand Down
3 changes: 3 additions & 0 deletions src/types/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export const GetInfoResponse = z.object({
hoprNodeSafeRegistry: z.string().optional(),
hoprManagementModule: z.string(),
hoprNodeSafe: z.string(),
indexerBlock: z.number().optional(), //from HORPd 2.1.3
indexerChecksum: z.string().optional(), //from HORPd 2.1.3
indexBlockPrevChecksum: z.number().optional(), //from HORPd 2.1.5
connectivityStatus: z.enum(['Unknown', 'Red', 'Orange', 'Yellow', 'Green']),
isEligible: z.boolean(),
channelClosurePeriod: z.number()
Expand Down

0 comments on commit 17e6d32

Please sign in to comment.