@dashevo/dapi-grpc 0.25.16-rc.3 → 0.25.16-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/build.rs +6 -2
- package/package.json +3 -3
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +14 -0
package/Cargo.toml
CHANGED
package/build.rs
CHANGED
|
@@ -34,7 +34,7 @@ pub fn generate() -> Result<(), std::io::Error> {
|
|
|
34
34
|
// Derive features for versioned messages
|
|
35
35
|
//
|
|
36
36
|
// "GetConsensusParamsRequest" is excluded as this message does not support proofs
|
|
37
|
-
const VERSIONED_REQUESTS: [&str;
|
|
37
|
+
const VERSIONED_REQUESTS: [&str; 15] = [
|
|
38
38
|
"GetDataContractHistoryRequest",
|
|
39
39
|
"GetDataContractRequest",
|
|
40
40
|
"GetDataContractsRequest",
|
|
@@ -48,10 +48,12 @@ pub fn generate() -> Result<(), std::io::Error> {
|
|
|
48
48
|
"GetIdentityRequest",
|
|
49
49
|
"GetProofsRequest",
|
|
50
50
|
"WaitForStateTransitionResultRequest",
|
|
51
|
+
"GetProtocolVersionUpgradeStateRequest",
|
|
52
|
+
"GetProtocolVersionUpgradeVoteStatusRequest",
|
|
51
53
|
];
|
|
52
54
|
|
|
53
55
|
// "GetConsensusParamsResponse" is excluded as this message does not support proofs
|
|
54
|
-
const VERSIONED_RESPONSES: [&str;
|
|
56
|
+
const VERSIONED_RESPONSES: [&str; 16] = [
|
|
55
57
|
"GetDataContractHistoryResponse",
|
|
56
58
|
"GetDataContractResponse",
|
|
57
59
|
"GetDataContractsResponse",
|
|
@@ -66,6 +68,8 @@ pub fn generate() -> Result<(), std::io::Error> {
|
|
|
66
68
|
"GetProofsResponse",
|
|
67
69
|
"WaitForStateTransitionResultResponse",
|
|
68
70
|
"GetEpochsInfoResponse",
|
|
71
|
+
"GetProtocolVersionUpgradeStateResponse",
|
|
72
|
+
"GetProtocolVersionUpgradeVoteStatusResponse",
|
|
69
73
|
];
|
|
70
74
|
|
|
71
75
|
// Derive VersionedGrpcMessage on requests
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-grpc",
|
|
3
|
-
"version": "0.25.16-rc.
|
|
3
|
+
"version": "0.25.16-rc.5",
|
|
4
4
|
"description": "DAPI GRPC definition file and generated clients",
|
|
5
5
|
"browser": "browser.js",
|
|
6
6
|
"main": "node.js",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/dashevo/dapi-grpc#readme",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@dashevo/grpc-common": "0.25.16-rc.
|
|
48
|
+
"@dashevo/grpc-common": "0.25.16-rc.5",
|
|
49
49
|
"@dashevo/protobufjs": "6.10.5",
|
|
50
|
-
"@grpc/grpc-js": "
|
|
50
|
+
"@grpc/grpc-js": "1.4.4",
|
|
51
51
|
"@improbable-eng/grpc-web": "^0.15.0",
|
|
52
52
|
"google-protobuf": "^3.12.2",
|
|
53
53
|
"long": "^5.2.0"
|
|
@@ -1537,6 +1537,8 @@ pub mod get_consensus_params_response {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1539
1539
|
#[serde(rename_all = "snake_case")]
|
|
1540
|
+
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1541
|
+
#[grpc_versions(0)]
|
|
1540
1542
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1541
1543
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1542
1544
|
pub struct GetProtocolVersionUpgradeStateRequest {
|
|
@@ -1566,6 +1568,11 @@ pub mod get_protocol_version_upgrade_state_request {
|
|
|
1566
1568
|
}
|
|
1567
1569
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1568
1570
|
#[serde(rename_all = "snake_case")]
|
|
1571
|
+
#[derive(
|
|
1572
|
+
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1573
|
+
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1574
|
+
)]
|
|
1575
|
+
#[grpc_versions(0)]
|
|
1569
1576
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1570
1577
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1571
1578
|
pub struct GetProtocolVersionUpgradeStateResponse {
|
|
@@ -1633,6 +1640,8 @@ pub mod get_protocol_version_upgrade_state_response {
|
|
|
1633
1640
|
}
|
|
1634
1641
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1635
1642
|
#[serde(rename_all = "snake_case")]
|
|
1643
|
+
#[derive(::dapi_grpc_macros::VersionedGrpcMessage)]
|
|
1644
|
+
#[grpc_versions(0)]
|
|
1636
1645
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1637
1646
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1638
1647
|
pub struct GetProtocolVersionUpgradeVoteStatusRequest {
|
|
@@ -1669,6 +1678,11 @@ pub mod get_protocol_version_upgrade_vote_status_request {
|
|
|
1669
1678
|
}
|
|
1670
1679
|
#[derive(::serde::Serialize, ::serde::Deserialize)]
|
|
1671
1680
|
#[serde(rename_all = "snake_case")]
|
|
1681
|
+
#[derive(
|
|
1682
|
+
::dapi_grpc_macros::VersionedGrpcMessage,
|
|
1683
|
+
::dapi_grpc_macros::VersionedGrpcResponse
|
|
1684
|
+
)]
|
|
1685
|
+
#[grpc_versions(0)]
|
|
1672
1686
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
1673
1687
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
1674
1688
|
pub struct GetProtocolVersionUpgradeVoteStatusResponse {
|