@dashevo/dapi-grpc 4.1.1 → 4.2.0-beta.2
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 +20 -9
- package/build.rs +35 -4
- package/clients/drive/v0/nodejs/drive_pbjs.js +24409 -12628
- package/clients/platform/v0/nodejs/platform_pbjs.js +24409 -12628
- package/clients/platform/v0/nodejs/platform_protoc.js +22285 -10402
- package/clients/platform/v0/web/platform_pb.d.ts +1603 -61
- package/clients/platform/v0/web/platform_pb.js +22285 -10402
- package/clients/platform/v0/web/platform_pb_service.d.ts +114 -0
- package/clients/platform/v0/web/platform_pb_service.js +240 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +791 -93
|
@@ -58,6 +58,15 @@ type PlatformgetIdentityContractNonce = {
|
|
|
58
58
|
readonly responseType: typeof platform_pb.GetIdentityContractNonceResponse;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
+
type PlatformgetIdentityKeysRemainingBudgets = {
|
|
62
|
+
readonly methodName: string;
|
|
63
|
+
readonly service: typeof Platform;
|
|
64
|
+
readonly requestStream: false;
|
|
65
|
+
readonly responseStream: false;
|
|
66
|
+
readonly requestType: typeof platform_pb.GetIdentityKeysRemainingBudgetsRequest;
|
|
67
|
+
readonly responseType: typeof platform_pb.GetIdentityKeysRemainingBudgetsResponse;
|
|
68
|
+
};
|
|
69
|
+
|
|
61
70
|
type PlatformgetIdentityBalance = {
|
|
62
71
|
readonly methodName: string;
|
|
63
72
|
readonly service: typeof Platform;
|
|
@@ -121,6 +130,15 @@ type PlatformgetDataContractHistory = {
|
|
|
121
130
|
readonly responseType: typeof platform_pb.GetDataContractHistoryResponse;
|
|
122
131
|
};
|
|
123
132
|
|
|
133
|
+
type PlatformgetDataContractsLatestVersions = {
|
|
134
|
+
readonly methodName: string;
|
|
135
|
+
readonly service: typeof Platform;
|
|
136
|
+
readonly requestStream: false;
|
|
137
|
+
readonly responseStream: false;
|
|
138
|
+
readonly requestType: typeof platform_pb.GetDataContractsLatestVersionsRequest;
|
|
139
|
+
readonly responseType: typeof platform_pb.GetDataContractsLatestVersionsResponse;
|
|
140
|
+
};
|
|
141
|
+
|
|
124
142
|
type PlatformgetDataContracts = {
|
|
125
143
|
readonly methodName: string;
|
|
126
144
|
readonly service: typeof Platform;
|
|
@@ -130,6 +148,42 @@ type PlatformgetDataContracts = {
|
|
|
130
148
|
readonly responseType: typeof platform_pb.GetDataContractsResponse;
|
|
131
149
|
};
|
|
132
150
|
|
|
151
|
+
type PlatformgetDataContractsByRange = {
|
|
152
|
+
readonly methodName: string;
|
|
153
|
+
readonly service: typeof Platform;
|
|
154
|
+
readonly requestStream: false;
|
|
155
|
+
readonly responseStream: false;
|
|
156
|
+
readonly requestType: typeof platform_pb.GetDataContractsByRangeRequest;
|
|
157
|
+
readonly responseType: typeof platform_pb.GetDataContractsResponse;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
type PlatformgetContractGroupInfo = {
|
|
161
|
+
readonly methodName: string;
|
|
162
|
+
readonly service: typeof Platform;
|
|
163
|
+
readonly requestStream: false;
|
|
164
|
+
readonly responseStream: false;
|
|
165
|
+
readonly requestType: typeof platform_pb.GetContractGroupInfoRequest;
|
|
166
|
+
readonly responseType: typeof platform_pb.GetContractGroupInfoResponse;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
type PlatformgetContractGroupMembers = {
|
|
170
|
+
readonly methodName: string;
|
|
171
|
+
readonly service: typeof Platform;
|
|
172
|
+
readonly requestStream: false;
|
|
173
|
+
readonly responseStream: false;
|
|
174
|
+
readonly requestType: typeof platform_pb.GetContractGroupMembersRequest;
|
|
175
|
+
readonly responseType: typeof platform_pb.GetContractGroupMembersResponse;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
type PlatformgetContractGroupsForContract = {
|
|
179
|
+
readonly methodName: string;
|
|
180
|
+
readonly service: typeof Platform;
|
|
181
|
+
readonly requestStream: false;
|
|
182
|
+
readonly responseStream: false;
|
|
183
|
+
readonly requestType: typeof platform_pb.GetContractGroupsForContractRequest;
|
|
184
|
+
readonly responseType: typeof platform_pb.GetContractGroupsForContractResponse;
|
|
185
|
+
};
|
|
186
|
+
|
|
133
187
|
type PlatformgetDocumentHistory = {
|
|
134
188
|
readonly methodName: string;
|
|
135
189
|
readonly service: typeof Platform;
|
|
@@ -552,6 +606,7 @@ export class Platform {
|
|
|
552
606
|
static readonly getIdentitiesContractKeys: PlatformgetIdentitiesContractKeys;
|
|
553
607
|
static readonly getIdentityNonce: PlatformgetIdentityNonce;
|
|
554
608
|
static readonly getIdentityContractNonce: PlatformgetIdentityContractNonce;
|
|
609
|
+
static readonly getIdentityKeysRemainingBudgets: PlatformgetIdentityKeysRemainingBudgets;
|
|
555
610
|
static readonly getIdentityBalance: PlatformgetIdentityBalance;
|
|
556
611
|
static readonly getIdentitiesBalances: PlatformgetIdentitiesBalances;
|
|
557
612
|
static readonly getIdentityBalanceAndRevision: PlatformgetIdentityBalanceAndRevision;
|
|
@@ -559,7 +614,12 @@ export class Platform {
|
|
|
559
614
|
static readonly getEvonodesProposedEpochBlocksByRange: PlatformgetEvonodesProposedEpochBlocksByRange;
|
|
560
615
|
static readonly getDataContract: PlatformgetDataContract;
|
|
561
616
|
static readonly getDataContractHistory: PlatformgetDataContractHistory;
|
|
617
|
+
static readonly getDataContractsLatestVersions: PlatformgetDataContractsLatestVersions;
|
|
562
618
|
static readonly getDataContracts: PlatformgetDataContracts;
|
|
619
|
+
static readonly getDataContractsByRange: PlatformgetDataContractsByRange;
|
|
620
|
+
static readonly getContractGroupInfo: PlatformgetContractGroupInfo;
|
|
621
|
+
static readonly getContractGroupMembers: PlatformgetContractGroupMembers;
|
|
622
|
+
static readonly getContractGroupsForContract: PlatformgetContractGroupsForContract;
|
|
563
623
|
static readonly getDocumentHistory: PlatformgetDocumentHistory;
|
|
564
624
|
static readonly getDocuments: PlatformgetDocuments;
|
|
565
625
|
static readonly getIdentityByPublicKeyHash: PlatformgetIdentityByPublicKeyHash;
|
|
@@ -694,6 +754,15 @@ export class PlatformClient {
|
|
|
694
754
|
requestMessage: platform_pb.GetIdentityContractNonceRequest,
|
|
695
755
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityContractNonceResponse|null) => void
|
|
696
756
|
): UnaryResponse;
|
|
757
|
+
getIdentityKeysRemainingBudgets(
|
|
758
|
+
requestMessage: platform_pb.GetIdentityKeysRemainingBudgetsRequest,
|
|
759
|
+
metadata: grpc.Metadata,
|
|
760
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityKeysRemainingBudgetsResponse|null) => void
|
|
761
|
+
): UnaryResponse;
|
|
762
|
+
getIdentityKeysRemainingBudgets(
|
|
763
|
+
requestMessage: platform_pb.GetIdentityKeysRemainingBudgetsRequest,
|
|
764
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetIdentityKeysRemainingBudgetsResponse|null) => void
|
|
765
|
+
): UnaryResponse;
|
|
697
766
|
getIdentityBalance(
|
|
698
767
|
requestMessage: platform_pb.GetIdentityBalanceRequest,
|
|
699
768
|
metadata: grpc.Metadata,
|
|
@@ -757,6 +826,15 @@ export class PlatformClient {
|
|
|
757
826
|
requestMessage: platform_pb.GetDataContractHistoryRequest,
|
|
758
827
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractHistoryResponse|null) => void
|
|
759
828
|
): UnaryResponse;
|
|
829
|
+
getDataContractsLatestVersions(
|
|
830
|
+
requestMessage: platform_pb.GetDataContractsLatestVersionsRequest,
|
|
831
|
+
metadata: grpc.Metadata,
|
|
832
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsLatestVersionsResponse|null) => void
|
|
833
|
+
): UnaryResponse;
|
|
834
|
+
getDataContractsLatestVersions(
|
|
835
|
+
requestMessage: platform_pb.GetDataContractsLatestVersionsRequest,
|
|
836
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsLatestVersionsResponse|null) => void
|
|
837
|
+
): UnaryResponse;
|
|
760
838
|
getDataContracts(
|
|
761
839
|
requestMessage: platform_pb.GetDataContractsRequest,
|
|
762
840
|
metadata: grpc.Metadata,
|
|
@@ -766,6 +844,42 @@ export class PlatformClient {
|
|
|
766
844
|
requestMessage: platform_pb.GetDataContractsRequest,
|
|
767
845
|
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
768
846
|
): UnaryResponse;
|
|
847
|
+
getDataContractsByRange(
|
|
848
|
+
requestMessage: platform_pb.GetDataContractsByRangeRequest,
|
|
849
|
+
metadata: grpc.Metadata,
|
|
850
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
851
|
+
): UnaryResponse;
|
|
852
|
+
getDataContractsByRange(
|
|
853
|
+
requestMessage: platform_pb.GetDataContractsByRangeRequest,
|
|
854
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetDataContractsResponse|null) => void
|
|
855
|
+
): UnaryResponse;
|
|
856
|
+
getContractGroupInfo(
|
|
857
|
+
requestMessage: platform_pb.GetContractGroupInfoRequest,
|
|
858
|
+
metadata: grpc.Metadata,
|
|
859
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupInfoResponse|null) => void
|
|
860
|
+
): UnaryResponse;
|
|
861
|
+
getContractGroupInfo(
|
|
862
|
+
requestMessage: platform_pb.GetContractGroupInfoRequest,
|
|
863
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupInfoResponse|null) => void
|
|
864
|
+
): UnaryResponse;
|
|
865
|
+
getContractGroupMembers(
|
|
866
|
+
requestMessage: platform_pb.GetContractGroupMembersRequest,
|
|
867
|
+
metadata: grpc.Metadata,
|
|
868
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupMembersResponse|null) => void
|
|
869
|
+
): UnaryResponse;
|
|
870
|
+
getContractGroupMembers(
|
|
871
|
+
requestMessage: platform_pb.GetContractGroupMembersRequest,
|
|
872
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupMembersResponse|null) => void
|
|
873
|
+
): UnaryResponse;
|
|
874
|
+
getContractGroupsForContract(
|
|
875
|
+
requestMessage: platform_pb.GetContractGroupsForContractRequest,
|
|
876
|
+
metadata: grpc.Metadata,
|
|
877
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupsForContractResponse|null) => void
|
|
878
|
+
): UnaryResponse;
|
|
879
|
+
getContractGroupsForContract(
|
|
880
|
+
requestMessage: platform_pb.GetContractGroupsForContractRequest,
|
|
881
|
+
callback: (error: ServiceError|null, responseMessage: platform_pb.GetContractGroupsForContractResponse|null) => void
|
|
882
|
+
): UnaryResponse;
|
|
769
883
|
getDocumentHistory(
|
|
770
884
|
requestMessage: platform_pb.GetDocumentHistoryRequest,
|
|
771
885
|
metadata: grpc.Metadata,
|
|
@@ -64,6 +64,15 @@ Platform.getIdentityContractNonce = {
|
|
|
64
64
|
responseType: platform_pb.GetIdentityContractNonceResponse
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
Platform.getIdentityKeysRemainingBudgets = {
|
|
68
|
+
methodName: "getIdentityKeysRemainingBudgets",
|
|
69
|
+
service: Platform,
|
|
70
|
+
requestStream: false,
|
|
71
|
+
responseStream: false,
|
|
72
|
+
requestType: platform_pb.GetIdentityKeysRemainingBudgetsRequest,
|
|
73
|
+
responseType: platform_pb.GetIdentityKeysRemainingBudgetsResponse
|
|
74
|
+
};
|
|
75
|
+
|
|
67
76
|
Platform.getIdentityBalance = {
|
|
68
77
|
methodName: "getIdentityBalance",
|
|
69
78
|
service: Platform,
|
|
@@ -127,6 +136,15 @@ Platform.getDataContractHistory = {
|
|
|
127
136
|
responseType: platform_pb.GetDataContractHistoryResponse
|
|
128
137
|
};
|
|
129
138
|
|
|
139
|
+
Platform.getDataContractsLatestVersions = {
|
|
140
|
+
methodName: "getDataContractsLatestVersions",
|
|
141
|
+
service: Platform,
|
|
142
|
+
requestStream: false,
|
|
143
|
+
responseStream: false,
|
|
144
|
+
requestType: platform_pb.GetDataContractsLatestVersionsRequest,
|
|
145
|
+
responseType: platform_pb.GetDataContractsLatestVersionsResponse
|
|
146
|
+
};
|
|
147
|
+
|
|
130
148
|
Platform.getDataContracts = {
|
|
131
149
|
methodName: "getDataContracts",
|
|
132
150
|
service: Platform,
|
|
@@ -136,6 +154,42 @@ Platform.getDataContracts = {
|
|
|
136
154
|
responseType: platform_pb.GetDataContractsResponse
|
|
137
155
|
};
|
|
138
156
|
|
|
157
|
+
Platform.getDataContractsByRange = {
|
|
158
|
+
methodName: "getDataContractsByRange",
|
|
159
|
+
service: Platform,
|
|
160
|
+
requestStream: false,
|
|
161
|
+
responseStream: false,
|
|
162
|
+
requestType: platform_pb.GetDataContractsByRangeRequest,
|
|
163
|
+
responseType: platform_pb.GetDataContractsResponse
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
Platform.getContractGroupInfo = {
|
|
167
|
+
methodName: "getContractGroupInfo",
|
|
168
|
+
service: Platform,
|
|
169
|
+
requestStream: false,
|
|
170
|
+
responseStream: false,
|
|
171
|
+
requestType: platform_pb.GetContractGroupInfoRequest,
|
|
172
|
+
responseType: platform_pb.GetContractGroupInfoResponse
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
Platform.getContractGroupMembers = {
|
|
176
|
+
methodName: "getContractGroupMembers",
|
|
177
|
+
service: Platform,
|
|
178
|
+
requestStream: false,
|
|
179
|
+
responseStream: false,
|
|
180
|
+
requestType: platform_pb.GetContractGroupMembersRequest,
|
|
181
|
+
responseType: platform_pb.GetContractGroupMembersResponse
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
Platform.getContractGroupsForContract = {
|
|
185
|
+
methodName: "getContractGroupsForContract",
|
|
186
|
+
service: Platform,
|
|
187
|
+
requestStream: false,
|
|
188
|
+
responseStream: false,
|
|
189
|
+
requestType: platform_pb.GetContractGroupsForContractRequest,
|
|
190
|
+
responseType: platform_pb.GetContractGroupsForContractResponse
|
|
191
|
+
};
|
|
192
|
+
|
|
139
193
|
Platform.getDocumentHistory = {
|
|
140
194
|
methodName: "getDocumentHistory",
|
|
141
195
|
service: Platform,
|
|
@@ -743,6 +797,37 @@ PlatformClient.prototype.getIdentityContractNonce = function getIdentityContract
|
|
|
743
797
|
};
|
|
744
798
|
};
|
|
745
799
|
|
|
800
|
+
PlatformClient.prototype.getIdentityKeysRemainingBudgets = function getIdentityKeysRemainingBudgets(requestMessage, metadata, callback) {
|
|
801
|
+
if (arguments.length === 2) {
|
|
802
|
+
callback = arguments[1];
|
|
803
|
+
}
|
|
804
|
+
var client = grpc.unary(Platform.getIdentityKeysRemainingBudgets, {
|
|
805
|
+
request: requestMessage,
|
|
806
|
+
host: this.serviceHost,
|
|
807
|
+
metadata: metadata,
|
|
808
|
+
transport: this.options.transport,
|
|
809
|
+
debug: this.options.debug,
|
|
810
|
+
onEnd: function (response) {
|
|
811
|
+
if (callback) {
|
|
812
|
+
if (response.status !== grpc.Code.OK) {
|
|
813
|
+
var err = new Error(response.statusMessage);
|
|
814
|
+
err.code = response.status;
|
|
815
|
+
err.metadata = response.trailers;
|
|
816
|
+
callback(err, null);
|
|
817
|
+
} else {
|
|
818
|
+
callback(null, response.message);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
return {
|
|
824
|
+
cancel: function () {
|
|
825
|
+
callback = null;
|
|
826
|
+
client.close();
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
|
|
746
831
|
PlatformClient.prototype.getIdentityBalance = function getIdentityBalance(requestMessage, metadata, callback) {
|
|
747
832
|
if (arguments.length === 2) {
|
|
748
833
|
callback = arguments[1];
|
|
@@ -960,6 +1045,37 @@ PlatformClient.prototype.getDataContractHistory = function getDataContractHistor
|
|
|
960
1045
|
};
|
|
961
1046
|
};
|
|
962
1047
|
|
|
1048
|
+
PlatformClient.prototype.getDataContractsLatestVersions = function getDataContractsLatestVersions(requestMessage, metadata, callback) {
|
|
1049
|
+
if (arguments.length === 2) {
|
|
1050
|
+
callback = arguments[1];
|
|
1051
|
+
}
|
|
1052
|
+
var client = grpc.unary(Platform.getDataContractsLatestVersions, {
|
|
1053
|
+
request: requestMessage,
|
|
1054
|
+
host: this.serviceHost,
|
|
1055
|
+
metadata: metadata,
|
|
1056
|
+
transport: this.options.transport,
|
|
1057
|
+
debug: this.options.debug,
|
|
1058
|
+
onEnd: function (response) {
|
|
1059
|
+
if (callback) {
|
|
1060
|
+
if (response.status !== grpc.Code.OK) {
|
|
1061
|
+
var err = new Error(response.statusMessage);
|
|
1062
|
+
err.code = response.status;
|
|
1063
|
+
err.metadata = response.trailers;
|
|
1064
|
+
callback(err, null);
|
|
1065
|
+
} else {
|
|
1066
|
+
callback(null, response.message);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
});
|
|
1071
|
+
return {
|
|
1072
|
+
cancel: function () {
|
|
1073
|
+
callback = null;
|
|
1074
|
+
client.close();
|
|
1075
|
+
}
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
|
|
963
1079
|
PlatformClient.prototype.getDataContracts = function getDataContracts(requestMessage, metadata, callback) {
|
|
964
1080
|
if (arguments.length === 2) {
|
|
965
1081
|
callback = arguments[1];
|
|
@@ -991,6 +1107,130 @@ PlatformClient.prototype.getDataContracts = function getDataContracts(requestMes
|
|
|
991
1107
|
};
|
|
992
1108
|
};
|
|
993
1109
|
|
|
1110
|
+
PlatformClient.prototype.getDataContractsByRange = function getDataContractsByRange(requestMessage, metadata, callback) {
|
|
1111
|
+
if (arguments.length === 2) {
|
|
1112
|
+
callback = arguments[1];
|
|
1113
|
+
}
|
|
1114
|
+
var client = grpc.unary(Platform.getDataContractsByRange, {
|
|
1115
|
+
request: requestMessage,
|
|
1116
|
+
host: this.serviceHost,
|
|
1117
|
+
metadata: metadata,
|
|
1118
|
+
transport: this.options.transport,
|
|
1119
|
+
debug: this.options.debug,
|
|
1120
|
+
onEnd: function (response) {
|
|
1121
|
+
if (callback) {
|
|
1122
|
+
if (response.status !== grpc.Code.OK) {
|
|
1123
|
+
var err = new Error(response.statusMessage);
|
|
1124
|
+
err.code = response.status;
|
|
1125
|
+
err.metadata = response.trailers;
|
|
1126
|
+
callback(err, null);
|
|
1127
|
+
} else {
|
|
1128
|
+
callback(null, response.message);
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
return {
|
|
1134
|
+
cancel: function () {
|
|
1135
|
+
callback = null;
|
|
1136
|
+
client.close();
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
PlatformClient.prototype.getContractGroupInfo = function getContractGroupInfo(requestMessage, metadata, callback) {
|
|
1142
|
+
if (arguments.length === 2) {
|
|
1143
|
+
callback = arguments[1];
|
|
1144
|
+
}
|
|
1145
|
+
var client = grpc.unary(Platform.getContractGroupInfo, {
|
|
1146
|
+
request: requestMessage,
|
|
1147
|
+
host: this.serviceHost,
|
|
1148
|
+
metadata: metadata,
|
|
1149
|
+
transport: this.options.transport,
|
|
1150
|
+
debug: this.options.debug,
|
|
1151
|
+
onEnd: function (response) {
|
|
1152
|
+
if (callback) {
|
|
1153
|
+
if (response.status !== grpc.Code.OK) {
|
|
1154
|
+
var err = new Error(response.statusMessage);
|
|
1155
|
+
err.code = response.status;
|
|
1156
|
+
err.metadata = response.trailers;
|
|
1157
|
+
callback(err, null);
|
|
1158
|
+
} else {
|
|
1159
|
+
callback(null, response.message);
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
});
|
|
1164
|
+
return {
|
|
1165
|
+
cancel: function () {
|
|
1166
|
+
callback = null;
|
|
1167
|
+
client.close();
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
PlatformClient.prototype.getContractGroupMembers = function getContractGroupMembers(requestMessage, metadata, callback) {
|
|
1173
|
+
if (arguments.length === 2) {
|
|
1174
|
+
callback = arguments[1];
|
|
1175
|
+
}
|
|
1176
|
+
var client = grpc.unary(Platform.getContractGroupMembers, {
|
|
1177
|
+
request: requestMessage,
|
|
1178
|
+
host: this.serviceHost,
|
|
1179
|
+
metadata: metadata,
|
|
1180
|
+
transport: this.options.transport,
|
|
1181
|
+
debug: this.options.debug,
|
|
1182
|
+
onEnd: function (response) {
|
|
1183
|
+
if (callback) {
|
|
1184
|
+
if (response.status !== grpc.Code.OK) {
|
|
1185
|
+
var err = new Error(response.statusMessage);
|
|
1186
|
+
err.code = response.status;
|
|
1187
|
+
err.metadata = response.trailers;
|
|
1188
|
+
callback(err, null);
|
|
1189
|
+
} else {
|
|
1190
|
+
callback(null, response.message);
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
return {
|
|
1196
|
+
cancel: function () {
|
|
1197
|
+
callback = null;
|
|
1198
|
+
client.close();
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
PlatformClient.prototype.getContractGroupsForContract = function getContractGroupsForContract(requestMessage, metadata, callback) {
|
|
1204
|
+
if (arguments.length === 2) {
|
|
1205
|
+
callback = arguments[1];
|
|
1206
|
+
}
|
|
1207
|
+
var client = grpc.unary(Platform.getContractGroupsForContract, {
|
|
1208
|
+
request: requestMessage,
|
|
1209
|
+
host: this.serviceHost,
|
|
1210
|
+
metadata: metadata,
|
|
1211
|
+
transport: this.options.transport,
|
|
1212
|
+
debug: this.options.debug,
|
|
1213
|
+
onEnd: function (response) {
|
|
1214
|
+
if (callback) {
|
|
1215
|
+
if (response.status !== grpc.Code.OK) {
|
|
1216
|
+
var err = new Error(response.statusMessage);
|
|
1217
|
+
err.code = response.status;
|
|
1218
|
+
err.metadata = response.trailers;
|
|
1219
|
+
callback(err, null);
|
|
1220
|
+
} else {
|
|
1221
|
+
callback(null, response.message);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
return {
|
|
1227
|
+
cancel: function () {
|
|
1228
|
+
callback = null;
|
|
1229
|
+
client.close();
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
|
|
994
1234
|
PlatformClient.prototype.getDocumentHistory = function getDocumentHistory(requestMessage, metadata, callback) {
|
|
995
1235
|
if (arguments.length === 2) {
|
|
996
1236
|
callback = arguments[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dapi-grpc",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-beta.2",
|
|
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": "4.
|
|
48
|
+
"@dashevo/grpc-common": "4.2.0-beta.2",
|
|
49
49
|
"@dashevo/protobufjs": "6.10.5",
|
|
50
50
|
"@grpc/grpc-js": "^1.14.3",
|
|
51
51
|
"@improbable-eng/grpc-web": "^0.15.0",
|