Skip to content

Commit

Permalink
deps(p2p): update protobufjs (#4782)
Browse files Browse the repository at this point in the history
* Update protobufjs

* Add protobufjs-cli

* Generate protos
  • Loading branch information
sebastijankuzner committed Jul 10, 2023
1 parent 9180271 commit 0fd1dd2
Show file tree
Hide file tree
Showing 4 changed files with 1,019 additions and 269 deletions.
5 changes: 3 additions & 2 deletions packages/core-p2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"joi": "17.4.2",
"pluralize": "8.0.0",
"pretty-ms": "7.0.1",
"protobufjs": "6.11.3",
"protobufjs": "7.2.4",
"rate-limiter-flexible": "1.3.2",
"semver": "6.3.0",
"ws": "7.5.5"
Expand All @@ -54,7 +54,8 @@
"@types/fs-extra": "8.1.2",
"@types/hapi__sntp": "3.1.2",
"@types/ip": "1.1.0",
"@types/semver": "6.2.3"
"@types/semver": "6.2.3",
"protobufjs-cli": "1.1.1"
},
"engines": {
"node": ">=10.x"
Expand Down
155 changes: 155 additions & 0 deletions packages/core-p2p/src/socket-server/codecs/proto/protos.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace blocks. */
export namespace blocks {

Expand Down Expand Up @@ -96,6 +97,13 @@ export namespace blocks {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for PostBlockRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a PostBlockResponse. */
Expand Down Expand Up @@ -192,6 +200,13 @@ export namespace blocks {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for PostBlockResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a GetBlocksRequest. */
Expand Down Expand Up @@ -306,6 +321,13 @@ export namespace blocks {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetBlocksRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a GetBlocksResponse. */
Expand Down Expand Up @@ -396,6 +418,13 @@ export namespace blocks {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetBlocksResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace GetBlocksResponse {
Expand Down Expand Up @@ -578,6 +607,13 @@ export namespace blocks {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for BlockHeader
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
}
Expand Down Expand Up @@ -673,6 +709,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetPeersRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a GetPeersResponse. */
Expand Down Expand Up @@ -763,6 +806,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetPeersResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace GetPeersResponse {
Expand Down Expand Up @@ -861,6 +911,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Peer
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}

Expand Down Expand Up @@ -958,6 +1015,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetCommonBlocksRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a GetCommonBlocksResponse. */
Expand Down Expand Up @@ -1048,6 +1112,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetCommonBlocksResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace GetCommonBlocksResponse {
Expand Down Expand Up @@ -1146,6 +1217,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Common
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}

Expand Down Expand Up @@ -1237,6 +1315,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetStatusRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a GetStatusResponse. */
Expand Down Expand Up @@ -1333,6 +1418,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for GetStatusResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace GetStatusResponse {
Expand Down Expand Up @@ -1443,6 +1535,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for State
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace State {
Expand Down Expand Up @@ -1619,6 +1718,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for BlockHeader
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}

Expand Down Expand Up @@ -1722,6 +1828,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Config
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace Config {
Expand Down Expand Up @@ -1838,6 +1951,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Network
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

namespace Network {
Expand Down Expand Up @@ -1936,6 +2056,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Token
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}

Expand Down Expand Up @@ -2039,6 +2166,13 @@ export namespace peer {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Plugin
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
}
Expand Down Expand Up @@ -2135,6 +2269,13 @@ export namespace shared {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for Headers
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}

Expand Down Expand Up @@ -2235,6 +2376,13 @@ export namespace transactions {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for PostTransactionsRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a PostTransactionsResponse. */
Expand Down Expand Up @@ -2325,5 +2473,12 @@ export namespace transactions {
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for PostTransactionsResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
Loading

0 comments on commit 0fd1dd2

Please sign in to comment.