@dashevo/dapi-grpc 2.2.0-dev.2 → 3.0.0-dev.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.
@@ -427,6 +427,42 @@ type PlatformgetGroupActionSigners = {
427
427
  readonly responseType: typeof platform_pb.GetGroupActionSignersResponse;
428
428
  };
429
429
 
430
+ type PlatformgetAddressInfo = {
431
+ readonly methodName: string;
432
+ readonly service: typeof Platform;
433
+ readonly requestStream: false;
434
+ readonly responseStream: false;
435
+ readonly requestType: typeof platform_pb.GetAddressInfoRequest;
436
+ readonly responseType: typeof platform_pb.GetAddressInfoResponse;
437
+ };
438
+
439
+ type PlatformgetAddressesInfos = {
440
+ readonly methodName: string;
441
+ readonly service: typeof Platform;
442
+ readonly requestStream: false;
443
+ readonly responseStream: false;
444
+ readonly requestType: typeof platform_pb.GetAddressesInfosRequest;
445
+ readonly responseType: typeof platform_pb.GetAddressesInfosResponse;
446
+ };
447
+
448
+ type PlatformgetAddressesTrunkState = {
449
+ readonly methodName: string;
450
+ readonly service: typeof Platform;
451
+ readonly requestStream: false;
452
+ readonly responseStream: false;
453
+ readonly requestType: typeof platform_pb.GetAddressesTrunkStateRequest;
454
+ readonly responseType: typeof platform_pb.GetAddressesTrunkStateResponse;
455
+ };
456
+
457
+ type PlatformgetAddressesBranchState = {
458
+ readonly methodName: string;
459
+ readonly service: typeof Platform;
460
+ readonly requestStream: false;
461
+ readonly responseStream: false;
462
+ readonly requestType: typeof platform_pb.GetAddressesBranchStateRequest;
463
+ readonly responseType: typeof platform_pb.GetAddressesBranchStateResponse;
464
+ };
465
+
430
466
  export class Platform {
431
467
  static readonly serviceName: string;
432
468
  static readonly broadcastStateTransition: PlatformbroadcastStateTransition;
@@ -476,6 +512,10 @@ export class Platform {
476
512
  static readonly getGroupInfos: PlatformgetGroupInfos;
477
513
  static readonly getGroupActions: PlatformgetGroupActions;
478
514
  static readonly getGroupActionSigners: PlatformgetGroupActionSigners;
515
+ static readonly getAddressInfo: PlatformgetAddressInfo;
516
+ static readonly getAddressesInfos: PlatformgetAddressesInfos;
517
+ static readonly getAddressesTrunkState: PlatformgetAddressesTrunkState;
518
+ static readonly getAddressesBranchState: PlatformgetAddressesBranchState;
479
519
  }
480
520
 
481
521
  export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
@@ -933,5 +973,41 @@ export class PlatformClient {
933
973
  requestMessage: platform_pb.GetGroupActionSignersRequest,
934
974
  callback: (error: ServiceError|null, responseMessage: platform_pb.GetGroupActionSignersResponse|null) => void
935
975
  ): UnaryResponse;
976
+ getAddressInfo(
977
+ requestMessage: platform_pb.GetAddressInfoRequest,
978
+ metadata: grpc.Metadata,
979
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressInfoResponse|null) => void
980
+ ): UnaryResponse;
981
+ getAddressInfo(
982
+ requestMessage: platform_pb.GetAddressInfoRequest,
983
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressInfoResponse|null) => void
984
+ ): UnaryResponse;
985
+ getAddressesInfos(
986
+ requestMessage: platform_pb.GetAddressesInfosRequest,
987
+ metadata: grpc.Metadata,
988
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressesInfosResponse|null) => void
989
+ ): UnaryResponse;
990
+ getAddressesInfos(
991
+ requestMessage: platform_pb.GetAddressesInfosRequest,
992
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressesInfosResponse|null) => void
993
+ ): UnaryResponse;
994
+ getAddressesTrunkState(
995
+ requestMessage: platform_pb.GetAddressesTrunkStateRequest,
996
+ metadata: grpc.Metadata,
997
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressesTrunkStateResponse|null) => void
998
+ ): UnaryResponse;
999
+ getAddressesTrunkState(
1000
+ requestMessage: platform_pb.GetAddressesTrunkStateRequest,
1001
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressesTrunkStateResponse|null) => void
1002
+ ): UnaryResponse;
1003
+ getAddressesBranchState(
1004
+ requestMessage: platform_pb.GetAddressesBranchStateRequest,
1005
+ metadata: grpc.Metadata,
1006
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressesBranchStateResponse|null) => void
1007
+ ): UnaryResponse;
1008
+ getAddressesBranchState(
1009
+ requestMessage: platform_pb.GetAddressesBranchStateRequest,
1010
+ callback: (error: ServiceError|null, responseMessage: platform_pb.GetAddressesBranchStateResponse|null) => void
1011
+ ): UnaryResponse;
936
1012
  }
937
1013
 
@@ -433,6 +433,42 @@ Platform.getGroupActionSigners = {
433
433
  responseType: platform_pb.GetGroupActionSignersResponse
434
434
  };
435
435
 
436
+ Platform.getAddressInfo = {
437
+ methodName: "getAddressInfo",
438
+ service: Platform,
439
+ requestStream: false,
440
+ responseStream: false,
441
+ requestType: platform_pb.GetAddressInfoRequest,
442
+ responseType: platform_pb.GetAddressInfoResponse
443
+ };
444
+
445
+ Platform.getAddressesInfos = {
446
+ methodName: "getAddressesInfos",
447
+ service: Platform,
448
+ requestStream: false,
449
+ responseStream: false,
450
+ requestType: platform_pb.GetAddressesInfosRequest,
451
+ responseType: platform_pb.GetAddressesInfosResponse
452
+ };
453
+
454
+ Platform.getAddressesTrunkState = {
455
+ methodName: "getAddressesTrunkState",
456
+ service: Platform,
457
+ requestStream: false,
458
+ responseStream: false,
459
+ requestType: platform_pb.GetAddressesTrunkStateRequest,
460
+ responseType: platform_pb.GetAddressesTrunkStateResponse
461
+ };
462
+
463
+ Platform.getAddressesBranchState = {
464
+ methodName: "getAddressesBranchState",
465
+ service: Platform,
466
+ requestStream: false,
467
+ responseStream: false,
468
+ requestType: platform_pb.GetAddressesBranchStateRequest,
469
+ responseType: platform_pb.GetAddressesBranchStateResponse
470
+ };
471
+
436
472
  exports.Platform = Platform;
437
473
 
438
474
  function PlatformClient(serviceHost, options) {
@@ -1897,5 +1933,129 @@ PlatformClient.prototype.getGroupActionSigners = function getGroupActionSigners(
1897
1933
  };
1898
1934
  };
1899
1935
 
1936
+ PlatformClient.prototype.getAddressInfo = function getAddressInfo(requestMessage, metadata, callback) {
1937
+ if (arguments.length === 2) {
1938
+ callback = arguments[1];
1939
+ }
1940
+ var client = grpc.unary(Platform.getAddressInfo, {
1941
+ request: requestMessage,
1942
+ host: this.serviceHost,
1943
+ metadata: metadata,
1944
+ transport: this.options.transport,
1945
+ debug: this.options.debug,
1946
+ onEnd: function (response) {
1947
+ if (callback) {
1948
+ if (response.status !== grpc.Code.OK) {
1949
+ var err = new Error(response.statusMessage);
1950
+ err.code = response.status;
1951
+ err.metadata = response.trailers;
1952
+ callback(err, null);
1953
+ } else {
1954
+ callback(null, response.message);
1955
+ }
1956
+ }
1957
+ }
1958
+ });
1959
+ return {
1960
+ cancel: function () {
1961
+ callback = null;
1962
+ client.close();
1963
+ }
1964
+ };
1965
+ };
1966
+
1967
+ PlatformClient.prototype.getAddressesInfos = function getAddressesInfos(requestMessage, metadata, callback) {
1968
+ if (arguments.length === 2) {
1969
+ callback = arguments[1];
1970
+ }
1971
+ var client = grpc.unary(Platform.getAddressesInfos, {
1972
+ request: requestMessage,
1973
+ host: this.serviceHost,
1974
+ metadata: metadata,
1975
+ transport: this.options.transport,
1976
+ debug: this.options.debug,
1977
+ onEnd: function (response) {
1978
+ if (callback) {
1979
+ if (response.status !== grpc.Code.OK) {
1980
+ var err = new Error(response.statusMessage);
1981
+ err.code = response.status;
1982
+ err.metadata = response.trailers;
1983
+ callback(err, null);
1984
+ } else {
1985
+ callback(null, response.message);
1986
+ }
1987
+ }
1988
+ }
1989
+ });
1990
+ return {
1991
+ cancel: function () {
1992
+ callback = null;
1993
+ client.close();
1994
+ }
1995
+ };
1996
+ };
1997
+
1998
+ PlatformClient.prototype.getAddressesTrunkState = function getAddressesTrunkState(requestMessage, metadata, callback) {
1999
+ if (arguments.length === 2) {
2000
+ callback = arguments[1];
2001
+ }
2002
+ var client = grpc.unary(Platform.getAddressesTrunkState, {
2003
+ request: requestMessage,
2004
+ host: this.serviceHost,
2005
+ metadata: metadata,
2006
+ transport: this.options.transport,
2007
+ debug: this.options.debug,
2008
+ onEnd: function (response) {
2009
+ if (callback) {
2010
+ if (response.status !== grpc.Code.OK) {
2011
+ var err = new Error(response.statusMessage);
2012
+ err.code = response.status;
2013
+ err.metadata = response.trailers;
2014
+ callback(err, null);
2015
+ } else {
2016
+ callback(null, response.message);
2017
+ }
2018
+ }
2019
+ }
2020
+ });
2021
+ return {
2022
+ cancel: function () {
2023
+ callback = null;
2024
+ client.close();
2025
+ }
2026
+ };
2027
+ };
2028
+
2029
+ PlatformClient.prototype.getAddressesBranchState = function getAddressesBranchState(requestMessage, metadata, callback) {
2030
+ if (arguments.length === 2) {
2031
+ callback = arguments[1];
2032
+ }
2033
+ var client = grpc.unary(Platform.getAddressesBranchState, {
2034
+ request: requestMessage,
2035
+ host: this.serviceHost,
2036
+ metadata: metadata,
2037
+ transport: this.options.transport,
2038
+ debug: this.options.debug,
2039
+ onEnd: function (response) {
2040
+ if (callback) {
2041
+ if (response.status !== grpc.Code.OK) {
2042
+ var err = new Error(response.statusMessage);
2043
+ err.code = response.status;
2044
+ err.metadata = response.trailers;
2045
+ callback(err, null);
2046
+ } else {
2047
+ callback(null, response.message);
2048
+ }
2049
+ }
2050
+ }
2051
+ });
2052
+ return {
2053
+ cancel: function () {
2054
+ callback = null;
2055
+ client.close();
2056
+ }
2057
+ };
2058
+ };
2059
+
1900
2060
  exports.PlatformClient = PlatformClient;
1901
2061
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dapi-grpc",
3
- "version": "2.2.0-dev.2",
3
+ "version": "3.0.0-dev.5",
4
4
  "description": "DAPI GRPC definition file and generated clients",
5
5
  "browser": "browser.js",
6
6
  "main": "node.js",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "homepage": "https://github.com/dashevo/dapi-grpc#readme",
47
47
  "dependencies": {
48
- "@dashevo/grpc-common": "2.2.0-dev.2",
48
+ "@dashevo/grpc-common": "3.0.0-dev.5",
49
49
  "@dashevo/protobufjs": "6.10.5",
50
50
  "@grpc/grpc-js": "1.4.4",
51
51
  "@improbable-eng/grpc-web": "^0.15.0",
@@ -104,6 +104,14 @@ service Platform {
104
104
  rpc getGroupActions(GetGroupActionsRequest) returns (GetGroupActionsResponse);
105
105
  rpc getGroupActionSigners(GetGroupActionSignersRequest)
106
106
  returns (GetGroupActionSignersResponse);
107
+ rpc getAddressInfo(GetAddressInfoRequest)
108
+ returns (GetAddressInfoResponse);
109
+ rpc getAddressesInfos(GetAddressesInfosRequest)
110
+ returns (GetAddressesInfosResponse);
111
+ rpc getAddressesTrunkState(GetAddressesTrunkStateRequest)
112
+ returns (GetAddressesTrunkStateResponse);
113
+ rpc getAddressesBranchState(GetAddressesBranchStateRequest)
114
+ returns (GetAddressesBranchStateResponse);
107
115
  }
108
116
 
109
117
  // Proof message includes cryptographic proofs for validating responses
@@ -1940,3 +1948,87 @@ message GetGroupActionSignersResponse {
1940
1948
 
1941
1949
  oneof version { GetGroupActionSignersResponseV0 v0 = 1; }
1942
1950
  }
1951
+
1952
+
1953
+ message GetAddressInfoRequest {
1954
+ message GetAddressInfoRequestV0 {
1955
+ bytes address = 1;
1956
+ bool prove = 2;
1957
+ }
1958
+ oneof version { GetAddressInfoRequestV0 v0 = 1; }
1959
+ }
1960
+
1961
+ message AddressInfoEntry {
1962
+ bytes address = 1;
1963
+ optional BalanceAndNonce balance_and_nonce = 2;
1964
+ }
1965
+
1966
+ message BalanceAndNonce {
1967
+ uint64 balance = 1;
1968
+ uint32 nonce = 2;
1969
+ }
1970
+
1971
+ message AddressInfoEntries {
1972
+ repeated AddressInfoEntry address_info_entries = 1;
1973
+ }
1974
+
1975
+ message GetAddressInfoResponse {
1976
+ message GetAddressInfoResponseV0 {
1977
+ oneof result {
1978
+ AddressInfoEntry address_info_entry = 1;
1979
+ Proof proof = 2;
1980
+ }
1981
+ ResponseMetadata metadata = 3;
1982
+ }
1983
+ oneof version { GetAddressInfoResponseV0 v0 = 1; }
1984
+ }
1985
+
1986
+ message GetAddressesInfosRequest {
1987
+ message GetAddressesInfosRequestV0 {
1988
+ repeated bytes addresses = 1;
1989
+ bool prove = 2;
1990
+ }
1991
+ oneof version { GetAddressesInfosRequestV0 v0 = 1; }
1992
+ }
1993
+
1994
+ message GetAddressesInfosResponse {
1995
+ message GetAddressesInfosResponseV0 {
1996
+ oneof result {
1997
+ AddressInfoEntries address_info_entries = 1;
1998
+ Proof proof = 2;
1999
+ }
2000
+ ResponseMetadata metadata = 3;
2001
+ }
2002
+ oneof version { GetAddressesInfosResponseV0 v0 = 1; }
2003
+ }
2004
+
2005
+ message GetAddressesTrunkStateRequest {
2006
+ message GetAddressesTrunkStateRequestV0 {
2007
+ }
2008
+ oneof version { GetAddressesTrunkStateRequestV0 v0 = 1; }
2009
+ }
2010
+
2011
+ message GetAddressesTrunkStateResponse {
2012
+ message GetAddressesTrunkStateResponseV0 {
2013
+ Proof proof = 2;
2014
+ ResponseMetadata metadata = 3;
2015
+ }
2016
+ oneof version { GetAddressesTrunkStateResponseV0 v0 = 1; }
2017
+ }
2018
+
2019
+ message GetAddressesBranchStateRequest {
2020
+ message GetAddressesBranchStateRequestV0 {
2021
+ bytes key = 1;
2022
+ uint32 depth = 2;
2023
+ }
2024
+ oneof version { GetAddressesBranchStateRequestV0 v0 = 1; }
2025
+ }
2026
+
2027
+ message GetAddressesBranchStateResponse {
2028
+ message GetAddressesBranchStateResponseV0 {
2029
+ bytes merk_proof = 2;
2030
+ }
2031
+ oneof version { GetAddressesBranchStateResponseV0 v0 = 1; }
2032
+ }
2033
+
2034
+
@@ -1,10 +1,10 @@
1
1
  // This file is @generated by prost-build.
2
2
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
3
- #[derive(::dapi_grpc_macros::Mockable)]
3
+ #[derive(::dash_platform_macros::Mockable)]
4
4
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
5
5
  pub struct GetBlockchainStatusRequest {}
6
6
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
7
- #[derive(::dapi_grpc_macros::Mockable)]
7
+ #[derive(::dash_platform_macros::Mockable)]
8
8
  #[derive(Clone, PartialEq, ::prost::Message)]
9
9
  pub struct GetBlockchainStatusResponse {
10
10
  #[prost(message, optional, tag = "1")]
@@ -23,7 +23,7 @@ pub struct GetBlockchainStatusResponse {
23
23
  /// Nested message and enum types in `GetBlockchainStatusResponse`.
24
24
  pub mod get_blockchain_status_response {
25
25
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
26
- #[derive(::dapi_grpc_macros::Mockable)]
26
+ #[derive(::dash_platform_macros::Mockable)]
27
27
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
28
28
  pub struct Version {
29
29
  #[prost(uint32, tag = "1")]
@@ -34,7 +34,7 @@ pub mod get_blockchain_status_response {
34
34
  pub agent: ::prost::alloc::string::String,
35
35
  }
36
36
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
37
- #[derive(::dapi_grpc_macros::Mockable)]
37
+ #[derive(::dash_platform_macros::Mockable)]
38
38
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
39
39
  pub struct Time {
40
40
  #[prost(uint32, tag = "1")]
@@ -45,7 +45,7 @@ pub mod get_blockchain_status_response {
45
45
  pub median: u32,
46
46
  }
47
47
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
48
- #[derive(::dapi_grpc_macros::Mockable)]
48
+ #[derive(::dash_platform_macros::Mockable)]
49
49
  #[derive(Clone, PartialEq, ::prost::Message)]
50
50
  pub struct Chain {
51
51
  #[prost(string, tag = "1")]
@@ -66,7 +66,7 @@ pub mod get_blockchain_status_response {
66
66
  pub sync_progress: f64,
67
67
  }
68
68
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
69
- #[derive(::dapi_grpc_macros::Mockable)]
69
+ #[derive(::dash_platform_macros::Mockable)]
70
70
  #[derive(Clone, Copy, PartialEq, ::prost::Message)]
71
71
  pub struct NetworkFee {
72
72
  #[prost(double, tag = "1")]
@@ -75,7 +75,7 @@ pub mod get_blockchain_status_response {
75
75
  pub incremental: f64,
76
76
  }
77
77
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
78
- #[derive(::dapi_grpc_macros::Mockable)]
78
+ #[derive(::dash_platform_macros::Mockable)]
79
79
  #[derive(Clone, Copy, PartialEq, ::prost::Message)]
80
80
  pub struct Network {
81
81
  #[prost(uint32, tag = "1")]
@@ -128,11 +128,11 @@ pub mod get_blockchain_status_response {
128
128
  }
129
129
  }
130
130
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
131
- #[derive(::dapi_grpc_macros::Mockable)]
131
+ #[derive(::dash_platform_macros::Mockable)]
132
132
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
133
133
  pub struct GetMasternodeStatusRequest {}
134
134
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
135
- #[derive(::dapi_grpc_macros::Mockable)]
135
+ #[derive(::dash_platform_macros::Mockable)]
136
136
  #[derive(Clone, PartialEq, ::prost::Message)]
137
137
  pub struct GetMasternodeStatusResponse {
138
138
  #[prost(enumeration = "get_masternode_status_response::Status", tag = "1")]
@@ -205,7 +205,7 @@ pub mod get_masternode_status_response {
205
205
  }
206
206
  }
207
207
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
208
- #[derive(::dapi_grpc_macros::Mockable)]
208
+ #[derive(::dash_platform_macros::Mockable)]
209
209
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
210
210
  pub struct GetBlockRequest {
211
211
  #[prost(oneof = "get_block_request::Block", tags = "1, 2")]
@@ -223,25 +223,25 @@ pub mod get_block_request {
223
223
  }
224
224
  }
225
225
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
226
- #[derive(::dapi_grpc_macros::Mockable)]
226
+ #[derive(::dash_platform_macros::Mockable)]
227
227
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
228
228
  pub struct GetBlockResponse {
229
229
  #[prost(bytes = "vec", tag = "1")]
230
230
  pub block: ::prost::alloc::vec::Vec<u8>,
231
231
  }
232
232
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
233
- #[derive(::dapi_grpc_macros::Mockable)]
233
+ #[derive(::dash_platform_macros::Mockable)]
234
234
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
235
235
  pub struct GetBestBlockHeightRequest {}
236
236
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
237
- #[derive(::dapi_grpc_macros::Mockable)]
237
+ #[derive(::dash_platform_macros::Mockable)]
238
238
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
239
239
  pub struct GetBestBlockHeightResponse {
240
240
  #[prost(uint32, tag = "1")]
241
241
  pub height: u32,
242
242
  }
243
243
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
244
- #[derive(::dapi_grpc_macros::Mockable)]
244
+ #[derive(::dash_platform_macros::Mockable)]
245
245
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
246
246
  pub struct BroadcastTransactionRequest {
247
247
  #[prost(bytes = "vec", tag = "1")]
@@ -252,21 +252,21 @@ pub struct BroadcastTransactionRequest {
252
252
  pub bypass_limits: bool,
253
253
  }
254
254
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
255
- #[derive(::dapi_grpc_macros::Mockable)]
255
+ #[derive(::dash_platform_macros::Mockable)]
256
256
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
257
257
  pub struct BroadcastTransactionResponse {
258
258
  #[prost(string, tag = "1")]
259
259
  pub transaction_id: ::prost::alloc::string::String,
260
260
  }
261
261
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
262
- #[derive(::dapi_grpc_macros::Mockable)]
262
+ #[derive(::dash_platform_macros::Mockable)]
263
263
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
264
264
  pub struct GetTransactionRequest {
265
265
  #[prost(string, tag = "1")]
266
266
  pub id: ::prost::alloc::string::String,
267
267
  }
268
268
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
269
- #[derive(::dapi_grpc_macros::Mockable)]
269
+ #[derive(::dash_platform_macros::Mockable)]
270
270
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
271
271
  pub struct GetTransactionResponse {
272
272
  #[prost(bytes = "vec", tag = "1")]
@@ -283,7 +283,7 @@ pub struct GetTransactionResponse {
283
283
  pub is_chain_locked: bool,
284
284
  }
285
285
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
286
- #[derive(::dapi_grpc_macros::Mockable)]
286
+ #[derive(::dash_platform_macros::Mockable)]
287
287
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
288
288
  pub struct BlockHeadersWithChainLocksRequest {
289
289
  #[prost(uint32, tag = "3")]
@@ -305,7 +305,7 @@ pub mod block_headers_with_chain_locks_request {
305
305
  }
306
306
  }
307
307
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
308
- #[derive(::dapi_grpc_macros::Mockable)]
308
+ #[derive(::dash_platform_macros::Mockable)]
309
309
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
310
310
  pub struct BlockHeadersWithChainLocksResponse {
311
311
  #[prost(oneof = "block_headers_with_chain_locks_response::Responses", tags = "1, 2")]
@@ -325,28 +325,28 @@ pub mod block_headers_with_chain_locks_response {
325
325
  }
326
326
  }
327
327
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
328
- #[derive(::dapi_grpc_macros::Mockable)]
328
+ #[derive(::dash_platform_macros::Mockable)]
329
329
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
330
330
  pub struct BlockHeaders {
331
331
  #[prost(bytes = "vec", repeated, tag = "1")]
332
332
  pub headers: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
333
333
  }
334
334
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
335
- #[derive(::dapi_grpc_macros::Mockable)]
335
+ #[derive(::dash_platform_macros::Mockable)]
336
336
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
337
337
  pub struct GetEstimatedTransactionFeeRequest {
338
338
  #[prost(uint32, tag = "1")]
339
339
  pub blocks: u32,
340
340
  }
341
341
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
342
- #[derive(::dapi_grpc_macros::Mockable)]
342
+ #[derive(::dash_platform_macros::Mockable)]
343
343
  #[derive(Clone, Copy, PartialEq, ::prost::Message)]
344
344
  pub struct GetEstimatedTransactionFeeResponse {
345
345
  #[prost(double, tag = "1")]
346
346
  pub fee: f64,
347
347
  }
348
348
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
349
- #[derive(::dapi_grpc_macros::Mockable)]
349
+ #[derive(::dash_platform_macros::Mockable)]
350
350
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
351
351
  pub struct TransactionsWithProofsRequest {
352
352
  #[prost(message, optional, tag = "1")]
@@ -370,7 +370,7 @@ pub mod transactions_with_proofs_request {
370
370
  }
371
371
  }
372
372
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
373
- #[derive(::dapi_grpc_macros::Mockable)]
373
+ #[derive(::dash_platform_macros::Mockable)]
374
374
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
375
375
  pub struct BloomFilter {
376
376
  #[prost(bytes = "vec", tag = "1")]
@@ -383,7 +383,7 @@ pub struct BloomFilter {
383
383
  pub n_flags: u32,
384
384
  }
385
385
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
386
- #[derive(::dapi_grpc_macros::Mockable)]
386
+ #[derive(::dash_platform_macros::Mockable)]
387
387
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
388
388
  pub struct TransactionsWithProofsResponse {
389
389
  #[prost(oneof = "transactions_with_proofs_response::Responses", tags = "1, 2, 3")]
@@ -403,25 +403,25 @@ pub mod transactions_with_proofs_response {
403
403
  }
404
404
  }
405
405
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
406
- #[derive(::dapi_grpc_macros::Mockable)]
406
+ #[derive(::dash_platform_macros::Mockable)]
407
407
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
408
408
  pub struct RawTransactions {
409
409
  #[prost(bytes = "vec", repeated, tag = "1")]
410
410
  pub transactions: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
411
411
  }
412
412
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
413
- #[derive(::dapi_grpc_macros::Mockable)]
413
+ #[derive(::dash_platform_macros::Mockable)]
414
414
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
415
415
  pub struct InstantSendLockMessages {
416
416
  #[prost(bytes = "vec", repeated, tag = "1")]
417
417
  pub messages: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
418
418
  }
419
419
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
420
- #[derive(::dapi_grpc_macros::Mockable)]
420
+ #[derive(::dash_platform_macros::Mockable)]
421
421
  #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
422
422
  pub struct MasternodeListRequest {}
423
423
  #[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
424
- #[derive(::dapi_grpc_macros::Mockable)]
424
+ #[derive(::dash_platform_macros::Mockable)]
425
425
  #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
426
426
  pub struct MasternodeListResponse {
427
427
  #[prost(bytes = "vec", tag = "1")]