@dashevo/dapi-grpc 3.0.0-dev.7 → 3.0.0-dev.9
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/build.rs +6 -2
- package/clients/drive/v0/nodejs/drive_pbjs.js +3132 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +3132 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +3025 -144
- package/clients/platform/v0/web/platform_pb.d.ts +383 -0
- package/clients/platform/v0/web/platform_pb.js +3025 -144
- package/clients/platform/v0/web/platform_pb_service.d.ts +38 -0
- package/clients/platform/v0/web/platform_pb_service.js +80 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +67 -0
- package/src/drive/client/org.dash.platform.dapi.v0.rs +286 -0
- package/src/drive/wasm/org.dash.platform.dapi.v0.rs +286 -0
- package/src/platform/client/org.dash.platform.dapi.v0.rs +300 -0
- package/src/platform/wasm/org.dash.platform.dapi.v0.rs +300 -0
|
@@ -5587,6 +5587,46 @@ pub struct AddressInfoEntries {
|
|
|
5587
5587
|
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5588
5588
|
#[derive(::dash_platform_macros::Mockable)]
|
|
5589
5589
|
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
|
5590
|
+
pub struct AddressBalanceChange {
|
|
5591
|
+
#[prost(bytes = "vec", tag = "1")]
|
|
5592
|
+
pub address: ::prost::alloc::vec::Vec<u8>,
|
|
5593
|
+
#[prost(oneof = "address_balance_change::Operation", tags = "2, 3")]
|
|
5594
|
+
pub operation: ::core::option::Option<address_balance_change::Operation>,
|
|
5595
|
+
}
|
|
5596
|
+
/// Nested message and enum types in `AddressBalanceChange`.
|
|
5597
|
+
pub mod address_balance_change {
|
|
5598
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5599
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5600
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
|
|
5601
|
+
pub enum Operation {
|
|
5602
|
+
#[prost(uint64, tag = "2")]
|
|
5603
|
+
SetBalance(u64),
|
|
5604
|
+
#[prost(uint64, tag = "3")]
|
|
5605
|
+
AddToBalance(u64),
|
|
5606
|
+
}
|
|
5607
|
+
}
|
|
5608
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5609
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5610
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5611
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5612
|
+
pub struct BlockAddressBalanceChanges {
|
|
5613
|
+
#[prost(uint64, tag = "1")]
|
|
5614
|
+
pub block_height: u64,
|
|
5615
|
+
#[prost(message, repeated, tag = "2")]
|
|
5616
|
+
pub changes: ::prost::alloc::vec::Vec<AddressBalanceChange>,
|
|
5617
|
+
}
|
|
5618
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5619
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5620
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5621
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5622
|
+
pub struct AddressBalanceUpdateEntries {
|
|
5623
|
+
#[prost(message, repeated, tag = "1")]
|
|
5624
|
+
pub block_changes: ::prost::alloc::vec::Vec<BlockAddressBalanceChanges>,
|
|
5625
|
+
}
|
|
5626
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5627
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5628
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5629
|
+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
|
5590
5630
|
pub struct GetAddressInfoResponse {
|
|
5591
5631
|
#[prost(oneof = "get_address_info_response::Version", tags = "1")]
|
|
5592
5632
|
pub version: ::core::option::Option<get_address_info_response::Version>,
|
|
@@ -5801,6 +5841,190 @@ pub mod get_addresses_branch_state_response {
|
|
|
5801
5841
|
}
|
|
5802
5842
|
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5803
5843
|
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5844
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5845
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
5846
|
+
pub struct GetRecentAddressBalanceChangesRequest {
|
|
5847
|
+
#[prost(oneof = "get_recent_address_balance_changes_request::Version", tags = "1")]
|
|
5848
|
+
pub version: ::core::option::Option<
|
|
5849
|
+
get_recent_address_balance_changes_request::Version,
|
|
5850
|
+
>,
|
|
5851
|
+
}
|
|
5852
|
+
/// Nested message and enum types in `GetRecentAddressBalanceChangesRequest`.
|
|
5853
|
+
pub mod get_recent_address_balance_changes_request {
|
|
5854
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5855
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5856
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5857
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
5858
|
+
pub struct GetRecentAddressBalanceChangesRequestV0 {
|
|
5859
|
+
#[prost(uint64, tag = "1")]
|
|
5860
|
+
pub start_height: u64,
|
|
5861
|
+
#[prost(bool, tag = "2")]
|
|
5862
|
+
pub prove: bool,
|
|
5863
|
+
}
|
|
5864
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5865
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5866
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
|
|
5867
|
+
pub enum Version {
|
|
5868
|
+
#[prost(message, tag = "1")]
|
|
5869
|
+
V0(GetRecentAddressBalanceChangesRequestV0),
|
|
5870
|
+
}
|
|
5871
|
+
}
|
|
5872
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5873
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5874
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5875
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5876
|
+
pub struct GetRecentAddressBalanceChangesResponse {
|
|
5877
|
+
#[prost(oneof = "get_recent_address_balance_changes_response::Version", tags = "1")]
|
|
5878
|
+
pub version: ::core::option::Option<
|
|
5879
|
+
get_recent_address_balance_changes_response::Version,
|
|
5880
|
+
>,
|
|
5881
|
+
}
|
|
5882
|
+
/// Nested message and enum types in `GetRecentAddressBalanceChangesResponse`.
|
|
5883
|
+
pub mod get_recent_address_balance_changes_response {
|
|
5884
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5885
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5886
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5887
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5888
|
+
pub struct GetRecentAddressBalanceChangesResponseV0 {
|
|
5889
|
+
#[prost(message, optional, tag = "3")]
|
|
5890
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
5891
|
+
#[prost(
|
|
5892
|
+
oneof = "get_recent_address_balance_changes_response_v0::Result",
|
|
5893
|
+
tags = "1, 2"
|
|
5894
|
+
)]
|
|
5895
|
+
pub result: ::core::option::Option<
|
|
5896
|
+
get_recent_address_balance_changes_response_v0::Result,
|
|
5897
|
+
>,
|
|
5898
|
+
}
|
|
5899
|
+
/// Nested message and enum types in `GetRecentAddressBalanceChangesResponseV0`.
|
|
5900
|
+
pub mod get_recent_address_balance_changes_response_v0 {
|
|
5901
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5902
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5903
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
5904
|
+
pub enum Result {
|
|
5905
|
+
#[prost(message, tag = "1")]
|
|
5906
|
+
AddressBalanceUpdateEntries(super::super::AddressBalanceUpdateEntries),
|
|
5907
|
+
#[prost(message, tag = "2")]
|
|
5908
|
+
Proof(super::super::Proof),
|
|
5909
|
+
}
|
|
5910
|
+
}
|
|
5911
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5912
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5913
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
5914
|
+
pub enum Version {
|
|
5915
|
+
#[prost(message, tag = "1")]
|
|
5916
|
+
V0(GetRecentAddressBalanceChangesResponseV0),
|
|
5917
|
+
}
|
|
5918
|
+
}
|
|
5919
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5920
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5921
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5922
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5923
|
+
pub struct CompactedBlockAddressBalanceChanges {
|
|
5924
|
+
#[prost(uint64, tag = "1")]
|
|
5925
|
+
pub start_block_height: u64,
|
|
5926
|
+
#[prost(uint64, tag = "2")]
|
|
5927
|
+
pub end_block_height: u64,
|
|
5928
|
+
#[prost(message, repeated, tag = "3")]
|
|
5929
|
+
pub changes: ::prost::alloc::vec::Vec<AddressBalanceChange>,
|
|
5930
|
+
}
|
|
5931
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5932
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5933
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5934
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5935
|
+
pub struct CompactedAddressBalanceUpdateEntries {
|
|
5936
|
+
#[prost(message, repeated, tag = "1")]
|
|
5937
|
+
pub compacted_block_changes: ::prost::alloc::vec::Vec<
|
|
5938
|
+
CompactedBlockAddressBalanceChanges,
|
|
5939
|
+
>,
|
|
5940
|
+
}
|
|
5941
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5942
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5943
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5944
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
5945
|
+
pub struct GetRecentCompactedAddressBalanceChangesRequest {
|
|
5946
|
+
#[prost(
|
|
5947
|
+
oneof = "get_recent_compacted_address_balance_changes_request::Version",
|
|
5948
|
+
tags = "1"
|
|
5949
|
+
)]
|
|
5950
|
+
pub version: ::core::option::Option<
|
|
5951
|
+
get_recent_compacted_address_balance_changes_request::Version,
|
|
5952
|
+
>,
|
|
5953
|
+
}
|
|
5954
|
+
/// Nested message and enum types in `GetRecentCompactedAddressBalanceChangesRequest`.
|
|
5955
|
+
pub mod get_recent_compacted_address_balance_changes_request {
|
|
5956
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5957
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5958
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5959
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
5960
|
+
pub struct GetRecentCompactedAddressBalanceChangesRequestV0 {
|
|
5961
|
+
#[prost(uint64, tag = "1")]
|
|
5962
|
+
pub start_block_height: u64,
|
|
5963
|
+
#[prost(bool, tag = "2")]
|
|
5964
|
+
pub prove: bool,
|
|
5965
|
+
}
|
|
5966
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5967
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5968
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
|
|
5969
|
+
pub enum Version {
|
|
5970
|
+
#[prost(message, tag = "1")]
|
|
5971
|
+
V0(GetRecentCompactedAddressBalanceChangesRequestV0),
|
|
5972
|
+
}
|
|
5973
|
+
}
|
|
5974
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5975
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5976
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5977
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5978
|
+
pub struct GetRecentCompactedAddressBalanceChangesResponse {
|
|
5979
|
+
#[prost(
|
|
5980
|
+
oneof = "get_recent_compacted_address_balance_changes_response::Version",
|
|
5981
|
+
tags = "1"
|
|
5982
|
+
)]
|
|
5983
|
+
pub version: ::core::option::Option<
|
|
5984
|
+
get_recent_compacted_address_balance_changes_response::Version,
|
|
5985
|
+
>,
|
|
5986
|
+
}
|
|
5987
|
+
/// Nested message and enum types in `GetRecentCompactedAddressBalanceChangesResponse`.
|
|
5988
|
+
pub mod get_recent_compacted_address_balance_changes_response {
|
|
5989
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5990
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5991
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5992
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5993
|
+
pub struct GetRecentCompactedAddressBalanceChangesResponseV0 {
|
|
5994
|
+
#[prost(message, optional, tag = "3")]
|
|
5995
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
5996
|
+
#[prost(
|
|
5997
|
+
oneof = "get_recent_compacted_address_balance_changes_response_v0::Result",
|
|
5998
|
+
tags = "1, 2"
|
|
5999
|
+
)]
|
|
6000
|
+
pub result: ::core::option::Option<
|
|
6001
|
+
get_recent_compacted_address_balance_changes_response_v0::Result,
|
|
6002
|
+
>,
|
|
6003
|
+
}
|
|
6004
|
+
/// Nested message and enum types in `GetRecentCompactedAddressBalanceChangesResponseV0`.
|
|
6005
|
+
pub mod get_recent_compacted_address_balance_changes_response_v0 {
|
|
6006
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6007
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6008
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
6009
|
+
pub enum Result {
|
|
6010
|
+
#[prost(message, tag = "1")]
|
|
6011
|
+
CompactedAddressBalanceUpdateEntries(
|
|
6012
|
+
super::super::CompactedAddressBalanceUpdateEntries,
|
|
6013
|
+
),
|
|
6014
|
+
#[prost(message, tag = "2")]
|
|
6015
|
+
Proof(super::super::Proof),
|
|
6016
|
+
}
|
|
6017
|
+
}
|
|
6018
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6019
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6020
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
6021
|
+
pub enum Version {
|
|
6022
|
+
#[prost(message, tag = "1")]
|
|
6023
|
+
V0(GetRecentCompactedAddressBalanceChangesResponseV0),
|
|
6024
|
+
}
|
|
6025
|
+
}
|
|
6026
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6027
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5804
6028
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
5805
6029
|
#[repr(i32)]
|
|
5806
6030
|
pub enum KeyPurpose {
|
|
@@ -7408,5 +7632,67 @@ pub mod platform_client {
|
|
|
7408
7632
|
);
|
|
7409
7633
|
self.inner.unary(req, path, codec).await
|
|
7410
7634
|
}
|
|
7635
|
+
pub async fn get_recent_address_balance_changes(
|
|
7636
|
+
&mut self,
|
|
7637
|
+
request: impl tonic::IntoRequest<
|
|
7638
|
+
super::GetRecentAddressBalanceChangesRequest,
|
|
7639
|
+
>,
|
|
7640
|
+
) -> std::result::Result<
|
|
7641
|
+
tonic::Response<super::GetRecentAddressBalanceChangesResponse>,
|
|
7642
|
+
tonic::Status,
|
|
7643
|
+
> {
|
|
7644
|
+
self.inner
|
|
7645
|
+
.ready()
|
|
7646
|
+
.await
|
|
7647
|
+
.map_err(|e| {
|
|
7648
|
+
tonic::Status::unknown(
|
|
7649
|
+
format!("Service was not ready: {}", e.into()),
|
|
7650
|
+
)
|
|
7651
|
+
})?;
|
|
7652
|
+
let codec = tonic_prost::ProstCodec::default();
|
|
7653
|
+
let path = http::uri::PathAndQuery::from_static(
|
|
7654
|
+
"/org.dash.platform.dapi.v0.Platform/getRecentAddressBalanceChanges",
|
|
7655
|
+
);
|
|
7656
|
+
let mut req = request.into_request();
|
|
7657
|
+
req.extensions_mut()
|
|
7658
|
+
.insert(
|
|
7659
|
+
GrpcMethod::new(
|
|
7660
|
+
"org.dash.platform.dapi.v0.Platform",
|
|
7661
|
+
"getRecentAddressBalanceChanges",
|
|
7662
|
+
),
|
|
7663
|
+
);
|
|
7664
|
+
self.inner.unary(req, path, codec).await
|
|
7665
|
+
}
|
|
7666
|
+
pub async fn get_recent_compacted_address_balance_changes(
|
|
7667
|
+
&mut self,
|
|
7668
|
+
request: impl tonic::IntoRequest<
|
|
7669
|
+
super::GetRecentCompactedAddressBalanceChangesRequest,
|
|
7670
|
+
>,
|
|
7671
|
+
) -> std::result::Result<
|
|
7672
|
+
tonic::Response<super::GetRecentCompactedAddressBalanceChangesResponse>,
|
|
7673
|
+
tonic::Status,
|
|
7674
|
+
> {
|
|
7675
|
+
self.inner
|
|
7676
|
+
.ready()
|
|
7677
|
+
.await
|
|
7678
|
+
.map_err(|e| {
|
|
7679
|
+
tonic::Status::unknown(
|
|
7680
|
+
format!("Service was not ready: {}", e.into()),
|
|
7681
|
+
)
|
|
7682
|
+
})?;
|
|
7683
|
+
let codec = tonic_prost::ProstCodec::default();
|
|
7684
|
+
let path = http::uri::PathAndQuery::from_static(
|
|
7685
|
+
"/org.dash.platform.dapi.v0.Platform/getRecentCompactedAddressBalanceChanges",
|
|
7686
|
+
);
|
|
7687
|
+
let mut req = request.into_request();
|
|
7688
|
+
req.extensions_mut()
|
|
7689
|
+
.insert(
|
|
7690
|
+
GrpcMethod::new(
|
|
7691
|
+
"org.dash.platform.dapi.v0.Platform",
|
|
7692
|
+
"getRecentCompactedAddressBalanceChanges",
|
|
7693
|
+
),
|
|
7694
|
+
);
|
|
7695
|
+
self.inner.unary(req, path, codec).await
|
|
7696
|
+
}
|
|
7411
7697
|
}
|
|
7412
7698
|
}
|
|
@@ -5923,6 +5923,46 @@ pub struct AddressInfoEntries {
|
|
|
5923
5923
|
}
|
|
5924
5924
|
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5925
5925
|
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5926
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5927
|
+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
|
|
5928
|
+
pub struct AddressBalanceChange {
|
|
5929
|
+
#[prost(bytes = "vec", tag = "1")]
|
|
5930
|
+
pub address: ::prost::alloc::vec::Vec<u8>,
|
|
5931
|
+
#[prost(oneof = "address_balance_change::Operation", tags = "2, 3")]
|
|
5932
|
+
pub operation: ::core::option::Option<address_balance_change::Operation>,
|
|
5933
|
+
}
|
|
5934
|
+
/// Nested message and enum types in `AddressBalanceChange`.
|
|
5935
|
+
pub mod address_balance_change {
|
|
5936
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5937
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5938
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
|
|
5939
|
+
pub enum Operation {
|
|
5940
|
+
#[prost(uint64, tag = "2")]
|
|
5941
|
+
SetBalance(u64),
|
|
5942
|
+
#[prost(uint64, tag = "3")]
|
|
5943
|
+
AddToBalance(u64),
|
|
5944
|
+
}
|
|
5945
|
+
}
|
|
5946
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5947
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5948
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5949
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5950
|
+
pub struct BlockAddressBalanceChanges {
|
|
5951
|
+
#[prost(uint64, tag = "1")]
|
|
5952
|
+
pub block_height: u64,
|
|
5953
|
+
#[prost(message, repeated, tag = "2")]
|
|
5954
|
+
pub changes: ::prost::alloc::vec::Vec<AddressBalanceChange>,
|
|
5955
|
+
}
|
|
5956
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5957
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5958
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
5959
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
5960
|
+
pub struct AddressBalanceUpdateEntries {
|
|
5961
|
+
#[prost(message, repeated, tag = "1")]
|
|
5962
|
+
pub block_changes: ::prost::alloc::vec::Vec<BlockAddressBalanceChanges>,
|
|
5963
|
+
}
|
|
5964
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
5965
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
5926
5966
|
#[derive(
|
|
5927
5967
|
::dash_platform_macros::VersionedGrpcMessage,
|
|
5928
5968
|
::dash_platform_macros::VersionedGrpcResponse
|
|
@@ -6165,6 +6205,204 @@ pub mod get_addresses_branch_state_response {
|
|
|
6165
6205
|
}
|
|
6166
6206
|
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6167
6207
|
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6208
|
+
#[derive(::dash_platform_macros::VersionedGrpcMessage)]
|
|
6209
|
+
#[grpc_versions(0)]
|
|
6210
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6211
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
6212
|
+
pub struct GetRecentAddressBalanceChangesRequest {
|
|
6213
|
+
#[prost(oneof = "get_recent_address_balance_changes_request::Version", tags = "1")]
|
|
6214
|
+
pub version: ::core::option::Option<
|
|
6215
|
+
get_recent_address_balance_changes_request::Version,
|
|
6216
|
+
>,
|
|
6217
|
+
}
|
|
6218
|
+
/// Nested message and enum types in `GetRecentAddressBalanceChangesRequest`.
|
|
6219
|
+
pub mod get_recent_address_balance_changes_request {
|
|
6220
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6221
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6222
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6223
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
6224
|
+
pub struct GetRecentAddressBalanceChangesRequestV0 {
|
|
6225
|
+
#[prost(uint64, tag = "1")]
|
|
6226
|
+
pub start_height: u64,
|
|
6227
|
+
#[prost(bool, tag = "2")]
|
|
6228
|
+
pub prove: bool,
|
|
6229
|
+
}
|
|
6230
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6231
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6232
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
|
|
6233
|
+
pub enum Version {
|
|
6234
|
+
#[prost(message, tag = "1")]
|
|
6235
|
+
V0(GetRecentAddressBalanceChangesRequestV0),
|
|
6236
|
+
}
|
|
6237
|
+
}
|
|
6238
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6239
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6240
|
+
#[derive(
|
|
6241
|
+
::dash_platform_macros::VersionedGrpcMessage,
|
|
6242
|
+
::dash_platform_macros::VersionedGrpcResponse
|
|
6243
|
+
)]
|
|
6244
|
+
#[grpc_versions(0)]
|
|
6245
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6246
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
6247
|
+
pub struct GetRecentAddressBalanceChangesResponse {
|
|
6248
|
+
#[prost(oneof = "get_recent_address_balance_changes_response::Version", tags = "1")]
|
|
6249
|
+
pub version: ::core::option::Option<
|
|
6250
|
+
get_recent_address_balance_changes_response::Version,
|
|
6251
|
+
>,
|
|
6252
|
+
}
|
|
6253
|
+
/// Nested message and enum types in `GetRecentAddressBalanceChangesResponse`.
|
|
6254
|
+
pub mod get_recent_address_balance_changes_response {
|
|
6255
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6256
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6257
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6258
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
6259
|
+
pub struct GetRecentAddressBalanceChangesResponseV0 {
|
|
6260
|
+
#[prost(message, optional, tag = "3")]
|
|
6261
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
6262
|
+
#[prost(
|
|
6263
|
+
oneof = "get_recent_address_balance_changes_response_v0::Result",
|
|
6264
|
+
tags = "1, 2"
|
|
6265
|
+
)]
|
|
6266
|
+
pub result: ::core::option::Option<
|
|
6267
|
+
get_recent_address_balance_changes_response_v0::Result,
|
|
6268
|
+
>,
|
|
6269
|
+
}
|
|
6270
|
+
/// Nested message and enum types in `GetRecentAddressBalanceChangesResponseV0`.
|
|
6271
|
+
pub mod get_recent_address_balance_changes_response_v0 {
|
|
6272
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6273
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6274
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
6275
|
+
pub enum Result {
|
|
6276
|
+
#[prost(message, tag = "1")]
|
|
6277
|
+
AddressBalanceUpdateEntries(super::super::AddressBalanceUpdateEntries),
|
|
6278
|
+
#[prost(message, tag = "2")]
|
|
6279
|
+
Proof(super::super::Proof),
|
|
6280
|
+
}
|
|
6281
|
+
}
|
|
6282
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6283
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6284
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
6285
|
+
pub enum Version {
|
|
6286
|
+
#[prost(message, tag = "1")]
|
|
6287
|
+
V0(GetRecentAddressBalanceChangesResponseV0),
|
|
6288
|
+
}
|
|
6289
|
+
}
|
|
6290
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6291
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6292
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6293
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
6294
|
+
pub struct CompactedBlockAddressBalanceChanges {
|
|
6295
|
+
#[prost(uint64, tag = "1")]
|
|
6296
|
+
pub start_block_height: u64,
|
|
6297
|
+
#[prost(uint64, tag = "2")]
|
|
6298
|
+
pub end_block_height: u64,
|
|
6299
|
+
#[prost(message, repeated, tag = "3")]
|
|
6300
|
+
pub changes: ::prost::alloc::vec::Vec<AddressBalanceChange>,
|
|
6301
|
+
}
|
|
6302
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6303
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6304
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6305
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
6306
|
+
pub struct CompactedAddressBalanceUpdateEntries {
|
|
6307
|
+
#[prost(message, repeated, tag = "1")]
|
|
6308
|
+
pub compacted_block_changes: ::prost::alloc::vec::Vec<
|
|
6309
|
+
CompactedBlockAddressBalanceChanges,
|
|
6310
|
+
>,
|
|
6311
|
+
}
|
|
6312
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6313
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6314
|
+
#[derive(::dash_platform_macros::VersionedGrpcMessage)]
|
|
6315
|
+
#[grpc_versions(0)]
|
|
6316
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6317
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
6318
|
+
pub struct GetRecentCompactedAddressBalanceChangesRequest {
|
|
6319
|
+
#[prost(
|
|
6320
|
+
oneof = "get_recent_compacted_address_balance_changes_request::Version",
|
|
6321
|
+
tags = "1"
|
|
6322
|
+
)]
|
|
6323
|
+
pub version: ::core::option::Option<
|
|
6324
|
+
get_recent_compacted_address_balance_changes_request::Version,
|
|
6325
|
+
>,
|
|
6326
|
+
}
|
|
6327
|
+
/// Nested message and enum types in `GetRecentCompactedAddressBalanceChangesRequest`.
|
|
6328
|
+
pub mod get_recent_compacted_address_balance_changes_request {
|
|
6329
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6330
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6331
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6332
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
|
6333
|
+
pub struct GetRecentCompactedAddressBalanceChangesRequestV0 {
|
|
6334
|
+
#[prost(uint64, tag = "1")]
|
|
6335
|
+
pub start_block_height: u64,
|
|
6336
|
+
#[prost(bool, tag = "2")]
|
|
6337
|
+
pub prove: bool,
|
|
6338
|
+
}
|
|
6339
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6340
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6341
|
+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
|
|
6342
|
+
pub enum Version {
|
|
6343
|
+
#[prost(message, tag = "1")]
|
|
6344
|
+
V0(GetRecentCompactedAddressBalanceChangesRequestV0),
|
|
6345
|
+
}
|
|
6346
|
+
}
|
|
6347
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6348
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6349
|
+
#[derive(
|
|
6350
|
+
::dash_platform_macros::VersionedGrpcMessage,
|
|
6351
|
+
::dash_platform_macros::VersionedGrpcResponse
|
|
6352
|
+
)]
|
|
6353
|
+
#[grpc_versions(0)]
|
|
6354
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6355
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
6356
|
+
pub struct GetRecentCompactedAddressBalanceChangesResponse {
|
|
6357
|
+
#[prost(
|
|
6358
|
+
oneof = "get_recent_compacted_address_balance_changes_response::Version",
|
|
6359
|
+
tags = "1"
|
|
6360
|
+
)]
|
|
6361
|
+
pub version: ::core::option::Option<
|
|
6362
|
+
get_recent_compacted_address_balance_changes_response::Version,
|
|
6363
|
+
>,
|
|
6364
|
+
}
|
|
6365
|
+
/// Nested message and enum types in `GetRecentCompactedAddressBalanceChangesResponse`.
|
|
6366
|
+
pub mod get_recent_compacted_address_balance_changes_response {
|
|
6367
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6368
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6369
|
+
#[derive(::dash_platform_macros::Mockable)]
|
|
6370
|
+
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
6371
|
+
pub struct GetRecentCompactedAddressBalanceChangesResponseV0 {
|
|
6372
|
+
#[prost(message, optional, tag = "3")]
|
|
6373
|
+
pub metadata: ::core::option::Option<super::ResponseMetadata>,
|
|
6374
|
+
#[prost(
|
|
6375
|
+
oneof = "get_recent_compacted_address_balance_changes_response_v0::Result",
|
|
6376
|
+
tags = "1, 2"
|
|
6377
|
+
)]
|
|
6378
|
+
pub result: ::core::option::Option<
|
|
6379
|
+
get_recent_compacted_address_balance_changes_response_v0::Result,
|
|
6380
|
+
>,
|
|
6381
|
+
}
|
|
6382
|
+
/// Nested message and enum types in `GetRecentCompactedAddressBalanceChangesResponseV0`.
|
|
6383
|
+
pub mod get_recent_compacted_address_balance_changes_response_v0 {
|
|
6384
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6385
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6386
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
6387
|
+
pub enum Result {
|
|
6388
|
+
#[prost(message, tag = "1")]
|
|
6389
|
+
CompactedAddressBalanceUpdateEntries(
|
|
6390
|
+
super::super::CompactedAddressBalanceUpdateEntries,
|
|
6391
|
+
),
|
|
6392
|
+
#[prost(message, tag = "2")]
|
|
6393
|
+
Proof(super::super::Proof),
|
|
6394
|
+
}
|
|
6395
|
+
}
|
|
6396
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6397
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6398
|
+
#[derive(Clone, PartialEq, ::prost::Oneof)]
|
|
6399
|
+
pub enum Version {
|
|
6400
|
+
#[prost(message, tag = "1")]
|
|
6401
|
+
V0(GetRecentCompactedAddressBalanceChangesResponseV0),
|
|
6402
|
+
}
|
|
6403
|
+
}
|
|
6404
|
+
#[cfg_attr(feature = "serde", derive(::serde::Serialize, ::serde::Deserialize))]
|
|
6405
|
+
#[cfg_attr(feature = "serde", serde(rename_all = "snake_case"))]
|
|
6168
6406
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
6169
6407
|
#[repr(i32)]
|
|
6170
6408
|
pub enum KeyPurpose {
|
|
@@ -7783,5 +8021,67 @@ pub mod platform_client {
|
|
|
7783
8021
|
);
|
|
7784
8022
|
self.inner.unary(req, path, codec).await
|
|
7785
8023
|
}
|
|
8024
|
+
pub async fn get_recent_address_balance_changes(
|
|
8025
|
+
&mut self,
|
|
8026
|
+
request: impl tonic::IntoRequest<
|
|
8027
|
+
super::GetRecentAddressBalanceChangesRequest,
|
|
8028
|
+
>,
|
|
8029
|
+
) -> std::result::Result<
|
|
8030
|
+
tonic::Response<super::GetRecentAddressBalanceChangesResponse>,
|
|
8031
|
+
tonic::Status,
|
|
8032
|
+
> {
|
|
8033
|
+
self.inner
|
|
8034
|
+
.ready()
|
|
8035
|
+
.await
|
|
8036
|
+
.map_err(|e| {
|
|
8037
|
+
tonic::Status::unknown(
|
|
8038
|
+
format!("Service was not ready: {}", e.into()),
|
|
8039
|
+
)
|
|
8040
|
+
})?;
|
|
8041
|
+
let codec = tonic_prost::ProstCodec::default();
|
|
8042
|
+
let path = http::uri::PathAndQuery::from_static(
|
|
8043
|
+
"/org.dash.platform.dapi.v0.Platform/getRecentAddressBalanceChanges",
|
|
8044
|
+
);
|
|
8045
|
+
let mut req = request.into_request();
|
|
8046
|
+
req.extensions_mut()
|
|
8047
|
+
.insert(
|
|
8048
|
+
GrpcMethod::new(
|
|
8049
|
+
"org.dash.platform.dapi.v0.Platform",
|
|
8050
|
+
"getRecentAddressBalanceChanges",
|
|
8051
|
+
),
|
|
8052
|
+
);
|
|
8053
|
+
self.inner.unary(req, path, codec).await
|
|
8054
|
+
}
|
|
8055
|
+
pub async fn get_recent_compacted_address_balance_changes(
|
|
8056
|
+
&mut self,
|
|
8057
|
+
request: impl tonic::IntoRequest<
|
|
8058
|
+
super::GetRecentCompactedAddressBalanceChangesRequest,
|
|
8059
|
+
>,
|
|
8060
|
+
) -> std::result::Result<
|
|
8061
|
+
tonic::Response<super::GetRecentCompactedAddressBalanceChangesResponse>,
|
|
8062
|
+
tonic::Status,
|
|
8063
|
+
> {
|
|
8064
|
+
self.inner
|
|
8065
|
+
.ready()
|
|
8066
|
+
.await
|
|
8067
|
+
.map_err(|e| {
|
|
8068
|
+
tonic::Status::unknown(
|
|
8069
|
+
format!("Service was not ready: {}", e.into()),
|
|
8070
|
+
)
|
|
8071
|
+
})?;
|
|
8072
|
+
let codec = tonic_prost::ProstCodec::default();
|
|
8073
|
+
let path = http::uri::PathAndQuery::from_static(
|
|
8074
|
+
"/org.dash.platform.dapi.v0.Platform/getRecentCompactedAddressBalanceChanges",
|
|
8075
|
+
);
|
|
8076
|
+
let mut req = request.into_request();
|
|
8077
|
+
req.extensions_mut()
|
|
8078
|
+
.insert(
|
|
8079
|
+
GrpcMethod::new(
|
|
8080
|
+
"org.dash.platform.dapi.v0.Platform",
|
|
8081
|
+
"getRecentCompactedAddressBalanceChanges",
|
|
8082
|
+
),
|
|
8083
|
+
);
|
|
8084
|
+
self.inner.unary(req, path, codec).await
|
|
8085
|
+
}
|
|
7786
8086
|
}
|
|
7787
8087
|
}
|