dash-platform-sdk 1.5.3 → 1.6.0-dev.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.
Files changed (60) hide show
  1. package/README.md +15 -15
  2. package/bundle.min.js +1 -1
  3. package/package.json +3 -4
  4. package/proto/generated/platform.client.d.ts +20 -60
  5. package/proto/generated/platform.client.js +41 -69
  6. package/proto/generated/platform.d.ts +2330 -1650
  7. package/proto/generated/platform.js +4992 -3467
  8. package/src/constants.d.ts +1 -1
  9. package/src/constants.js +1 -1
  10. package/src/documents/create.d.ts +1 -1
  11. package/src/documents/create.js +2 -2
  12. package/src/documents/createStateTransition.d.ts +2 -2
  13. package/src/documents/createStateTransition.js +6 -6
  14. package/src/documents/getActionFeeAgreement.d.ts +4 -0
  15. package/src/documents/getActionFeeAgreement.js +21 -0
  16. package/src/documents/index.d.ts +99 -4
  17. package/src/documents/index.js +117 -3
  18. package/src/documents/query.js +13 -52
  19. package/src/documents/queryAggregate.d.ts +4 -0
  20. package/src/documents/queryAggregate.js +32 -0
  21. package/src/documents/queryJoined.d.ts +16 -0
  22. package/src/documents/queryJoined.js +44 -0
  23. package/src/documents/queryRanked.d.ts +12 -0
  24. package/src/documents/queryRanked.js +37 -0
  25. package/src/documents/v1.d.ts +33 -0
  26. package/src/documents/v1.js +233 -0
  27. package/src/identities/getIdentityByNonUniquePublicKeyHash.js +6 -10
  28. package/src/names/index.d.ts +4 -1
  29. package/src/names/index.js +5 -2
  30. package/src/names/registerName.d.ts +1 -1
  31. package/src/names/registerName.js +55 -35
  32. package/src/shielded/getMostRecentShieldedAnchor.d.ts +2 -1
  33. package/src/shielded/getMostRecentShieldedAnchor.js +6 -4
  34. package/src/shielded/getShieldedAnchors.d.ts +2 -1
  35. package/src/shielded/getShieldedAnchors.js +6 -4
  36. package/src/shielded/getShieldedEncryptedNotes.d.ts +2 -1
  37. package/src/shielded/getShieldedEncryptedNotes.js +6 -4
  38. package/src/shielded/getShieldedNotesCount.d.ts +2 -1
  39. package/src/shielded/getShieldedNotesCount.js +6 -4
  40. package/src/shielded/getShieldedNullifiers.d.ts +2 -1
  41. package/src/shielded/getShieldedNullifiers.js +6 -4
  42. package/src/shielded/getShieldedPoolState.d.ts +2 -1
  43. package/src/shielded/getShieldedPoolState.js +6 -4
  44. package/src/shielded/index.d.ts +17 -7
  45. package/src/shielded/index.js +22 -12
  46. package/src/stateTransitions/index.d.ts +6 -2
  47. package/src/stateTransitions/index.js +5 -1
  48. package/src/stateTransitions/waitForStateTransitionResult.d.ts +1 -1
  49. package/src/stateTransitions/waitForStateTransitionResult.js +4 -2
  50. package/test/unit/DataContract.spec.js +2 -1
  51. package/test/unit/Document.spec.js +9 -9
  52. package/test/unit/DocumentActionFees.spec.d.ts +1 -0
  53. package/test/unit/DocumentActionFees.spec.js +99 -0
  54. package/test/unit/DocumentQueries.spec.d.ts +1 -0
  55. package/test/unit/DocumentQueries.spec.js +178 -0
  56. package/test/unit/DocumentsV1.spec.d.ts +1 -0
  57. package/test/unit/DocumentsV1.spec.js +75 -0
  58. package/test/unit/Names.spec.js +30 -0
  59. package/test/unit/Node.spec.js +11 -8
  60. package/types.d.ts +20 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dash-platform-sdk",
3
- "version": "1.5.3",
3
+ "version": "1.6.0-dev.2",
4
4
  "main": "index.js",
5
5
  "description": "Lightweight SDK for accessing Dash Platform blockchain",
6
6
  "repository": {
@@ -27,7 +27,7 @@
27
27
  "@protobuf-ts/plugin": "^2.11.1",
28
28
  "@rollup/plugin-alias": "^6.0.0",
29
29
  "@rollup/plugin-commonjs": "^29.0.3",
30
- "@rollup/plugin-node-resolve": "^16.0.1",
30
+ "@rollup/plugin-node-resolve": "^16.0.1",
31
31
  "@rollup/plugin-terser": "^0.4.4",
32
32
  "@rollup/plugin-typescript": "^12.1.4",
33
33
  "@types/jest": "^29.5.14",
@@ -59,7 +59,6 @@
59
59
  "@scure/bip32": "^2.0.0",
60
60
  "@scure/bip39": "^2.0.0",
61
61
  "@scure/btc-signer": "^2.0.1",
62
- "cbor2": "^2.3.0",
63
- "pshenmic-dpp": "2.0.0-dev.29"
62
+ "pshenmic-dpp": "2.0.1-dev.3"
64
63
  }
65
64
  }
@@ -24,14 +24,12 @@ import type { GetAddressesInfosResponse } from "./platform.js";
24
24
  import type { GetAddressesInfosRequest } from "./platform.js";
25
25
  import type { GetAddressInfoResponse } from "./platform.js";
26
26
  import type { GetAddressInfoRequest } from "./platform.js";
27
- import type { WaitForStateTransitionResultResponse } from "./platform.js";
28
- import type { WaitForStateTransitionResultRequest } from "./platform.js";
29
27
  import type { GetTokenTotalSupplyResponse } from "./platform.js";
30
28
  import type { GetTokenTotalSupplyRequest } from "./platform.js";
31
- import type { GetTokenDirectPurchasePricesResponse } from "./platform.js";
32
- import type { GetTokenDirectPurchasePricesRequest } from "./platform.js";
33
29
  import type { GetTokenContractInfoResponse } from "./platform.js";
34
30
  import type { GetTokenContractInfoRequest } from "./platform.js";
31
+ import type { GetTokenDirectPurchasePricesResponse } from "./platform.js";
32
+ import type { GetTokenDirectPurchasePricesRequest } from "./platform.js";
35
33
  import type { GetIdentitiesTokenBalancesResponse } from "./platform.js";
36
34
  import type { GetIdentitiesTokenBalancesRequest } from "./platform.js";
37
35
  import type { GetIdentityTokenBalancesResponse } from "./platform.js";
@@ -44,12 +42,12 @@ import type { GetTotalCreditsInPlatformResponse } from "./platform.js";
44
42
  import type { GetTotalCreditsInPlatformRequest } from "./platform.js";
45
43
  import type { GetContestedResourceVoteStateResponse } from "./platform.js";
46
44
  import type { GetContestedResourceVoteStateRequest } from "./platform.js";
47
- import type { GetContestedResourcesResponse } from "./platform.js";
48
- import type { GetContestedResourcesRequest } from "./platform.js";
49
45
  import type { GetFinalizedEpochInfosResponse } from "./platform.js";
50
46
  import type { GetFinalizedEpochInfosRequest } from "./platform.js";
51
47
  import type { GetEpochsInfoResponse } from "./platform.js";
52
48
  import type { GetEpochsInfoRequest } from "./platform.js";
49
+ import type { WaitForStateTransitionResultResponse } from "./platform.js";
50
+ import type { WaitForStateTransitionResultRequest } from "./platform.js";
53
51
  import type { GetIdentityByNonUniquePublicKeyHashResponse } from "./platform.js";
54
52
  import type { GetIdentityByNonUniquePublicKeyHashRequest } from "./platform.js";
55
53
  import type { GetIdentityByPublicKeyHashResponse } from "./platform.js";
@@ -58,18 +56,12 @@ import type { GetDocumentsResponse } from "./platform.js";
58
56
  import type { GetDocumentsRequest } from "./platform.js";
59
57
  import type { GetDataContractResponse } from "./platform.js";
60
58
  import type { GetDataContractRequest } from "./platform.js";
61
- import type { GetIdentityBalanceAndRevisionResponse } from "./platform.js";
62
- import type { GetIdentityBalanceAndRevisionRequest } from "./platform.js";
63
- import type { GetIdentitiesBalancesResponse } from "./platform.js";
64
- import type { GetIdentitiesBalancesRequest } from "./platform.js";
65
59
  import type { GetIdentityBalanceResponse } from "./platform.js";
66
60
  import type { GetIdentityBalanceRequest } from "./platform.js";
67
61
  import type { GetIdentityContractNonceResponse } from "./platform.js";
68
62
  import type { GetIdentityContractNonceRequest } from "./platform.js";
69
63
  import type { GetIdentityNonceResponse } from "./platform.js";
70
64
  import type { GetIdentityNonceRequest } from "./platform.js";
71
- import type { GetIdentitiesContractKeysResponse } from "./platform.js";
72
- import type { GetIdentitiesContractKeysRequest } from "./platform.js";
73
65
  import type { GetIdentityKeysResponse } from "./platform.js";
74
66
  import type { GetIdentityKeysRequest } from "./platform.js";
75
67
  import type { GetIdentityResponse } from "./platform.js";
@@ -94,10 +86,6 @@ export interface IPlatformClient {
94
86
  * @generated from protobuf rpc: getIdentityKeys
95
87
  */
96
88
  getIdentityKeys(input: GetIdentityKeysRequest, options?: RpcOptions): UnaryCall<GetIdentityKeysRequest, GetIdentityKeysResponse>;
97
- /**
98
- * @generated from protobuf rpc: getIdentitiesContractKeys
99
- */
100
- getIdentitiesContractKeys(input: GetIdentitiesContractKeysRequest, options?: RpcOptions): UnaryCall<GetIdentitiesContractKeysRequest, GetIdentitiesContractKeysResponse>;
101
89
  /**
102
90
  * @generated from protobuf rpc: getIdentityNonce
103
91
  */
@@ -110,14 +98,6 @@ export interface IPlatformClient {
110
98
  * @generated from protobuf rpc: getIdentityBalance
111
99
  */
112
100
  getIdentityBalance(input: GetIdentityBalanceRequest, options?: RpcOptions): UnaryCall<GetIdentityBalanceRequest, GetIdentityBalanceResponse>;
113
- /**
114
- * @generated from protobuf rpc: getIdentitiesBalances
115
- */
116
- getIdentitiesBalances(input: GetIdentitiesBalancesRequest, options?: RpcOptions): UnaryCall<GetIdentitiesBalancesRequest, GetIdentitiesBalancesResponse>;
117
- /**
118
- * @generated from protobuf rpc: getIdentityBalanceAndRevision
119
- */
120
- getIdentityBalanceAndRevision(input: GetIdentityBalanceAndRevisionRequest, options?: RpcOptions): UnaryCall<GetIdentityBalanceAndRevisionRequest, GetIdentityBalanceAndRevisionResponse>;
121
101
  /**
122
102
  * @generated from protobuf rpc: getDataContract
123
103
  */
@@ -134,6 +114,10 @@ export interface IPlatformClient {
134
114
  * @generated from protobuf rpc: getIdentityByNonUniquePublicKeyHash
135
115
  */
136
116
  getIdentityByNonUniquePublicKeyHash(input: GetIdentityByNonUniquePublicKeyHashRequest, options?: RpcOptions): UnaryCall<GetIdentityByNonUniquePublicKeyHashRequest, GetIdentityByNonUniquePublicKeyHashResponse>;
117
+ /**
118
+ * @generated from protobuf rpc: waitForStateTransitionResult
119
+ */
120
+ waitForStateTransitionResult(input: WaitForStateTransitionResultRequest, options?: RpcOptions): UnaryCall<WaitForStateTransitionResultRequest, WaitForStateTransitionResultResponse>;
137
121
  /**
138
122
  * @generated from protobuf rpc: getEpochsInfo
139
123
  */
@@ -142,10 +126,6 @@ export interface IPlatformClient {
142
126
  * @generated from protobuf rpc: getFinalizedEpochInfos
143
127
  */
144
128
  getFinalizedEpochInfos(input: GetFinalizedEpochInfosRequest, options?: RpcOptions): UnaryCall<GetFinalizedEpochInfosRequest, GetFinalizedEpochInfosResponse>;
145
- /**
146
- * @generated from protobuf rpc: getContestedResources
147
- */
148
- getContestedResources(input: GetContestedResourcesRequest, options?: RpcOptions): UnaryCall<GetContestedResourcesRequest, GetContestedResourcesResponse>;
149
129
  /**
150
130
  * @generated from protobuf rpc: getContestedResourceVoteState
151
131
  */
@@ -170,22 +150,18 @@ export interface IPlatformClient {
170
150
  * @generated from protobuf rpc: getIdentitiesTokenBalances
171
151
  */
172
152
  getIdentitiesTokenBalances(input: GetIdentitiesTokenBalancesRequest, options?: RpcOptions): UnaryCall<GetIdentitiesTokenBalancesRequest, GetIdentitiesTokenBalancesResponse>;
173
- /**
174
- * @generated from protobuf rpc: getTokenContractInfo
175
- */
176
- getTokenContractInfo(input: GetTokenContractInfoRequest, options?: RpcOptions): UnaryCall<GetTokenContractInfoRequest, GetTokenContractInfoResponse>;
177
153
  /**
178
154
  * @generated from protobuf rpc: getTokenDirectPurchasePrices
179
155
  */
180
156
  getTokenDirectPurchasePrices(input: GetTokenDirectPurchasePricesRequest, options?: RpcOptions): UnaryCall<GetTokenDirectPurchasePricesRequest, GetTokenDirectPurchasePricesResponse>;
181
157
  /**
182
- * @generated from protobuf rpc: getTokenTotalSupply
158
+ * @generated from protobuf rpc: getTokenContractInfo
183
159
  */
184
- getTokenTotalSupply(input: GetTokenTotalSupplyRequest, options?: RpcOptions): UnaryCall<GetTokenTotalSupplyRequest, GetTokenTotalSupplyResponse>;
160
+ getTokenContractInfo(input: GetTokenContractInfoRequest, options?: RpcOptions): UnaryCall<GetTokenContractInfoRequest, GetTokenContractInfoResponse>;
185
161
  /**
186
- * @generated from protobuf rpc: waitForStateTransitionResult
162
+ * @generated from protobuf rpc: getTokenTotalSupply
187
163
  */
188
- waitForStateTransitionResult(input: WaitForStateTransitionResultRequest, options?: RpcOptions): UnaryCall<WaitForStateTransitionResultRequest, WaitForStateTransitionResultResponse>;
164
+ getTokenTotalSupply(input: GetTokenTotalSupplyRequest, options?: RpcOptions): UnaryCall<GetTokenTotalSupplyRequest, GetTokenTotalSupplyResponse>;
189
165
  /**
190
166
  * @generated from protobuf rpc: getAddressInfo
191
167
  */
@@ -258,10 +234,6 @@ export declare class PlatformClient implements IPlatformClient, ServiceInfo {
258
234
  * @generated from protobuf rpc: getIdentityKeys
259
235
  */
260
236
  getIdentityKeys(input: GetIdentityKeysRequest, options?: RpcOptions): UnaryCall<GetIdentityKeysRequest, GetIdentityKeysResponse>;
261
- /**
262
- * @generated from protobuf rpc: getIdentitiesContractKeys
263
- */
264
- getIdentitiesContractKeys(input: GetIdentitiesContractKeysRequest, options?: RpcOptions): UnaryCall<GetIdentitiesContractKeysRequest, GetIdentitiesContractKeysResponse>;
265
237
  /**
266
238
  * @generated from protobuf rpc: getIdentityNonce
267
239
  */
@@ -274,14 +246,6 @@ export declare class PlatformClient implements IPlatformClient, ServiceInfo {
274
246
  * @generated from protobuf rpc: getIdentityBalance
275
247
  */
276
248
  getIdentityBalance(input: GetIdentityBalanceRequest, options?: RpcOptions): UnaryCall<GetIdentityBalanceRequest, GetIdentityBalanceResponse>;
277
- /**
278
- * @generated from protobuf rpc: getIdentitiesBalances
279
- */
280
- getIdentitiesBalances(input: GetIdentitiesBalancesRequest, options?: RpcOptions): UnaryCall<GetIdentitiesBalancesRequest, GetIdentitiesBalancesResponse>;
281
- /**
282
- * @generated from protobuf rpc: getIdentityBalanceAndRevision
283
- */
284
- getIdentityBalanceAndRevision(input: GetIdentityBalanceAndRevisionRequest, options?: RpcOptions): UnaryCall<GetIdentityBalanceAndRevisionRequest, GetIdentityBalanceAndRevisionResponse>;
285
249
  /**
286
250
  * @generated from protobuf rpc: getDataContract
287
251
  */
@@ -298,6 +262,10 @@ export declare class PlatformClient implements IPlatformClient, ServiceInfo {
298
262
  * @generated from protobuf rpc: getIdentityByNonUniquePublicKeyHash
299
263
  */
300
264
  getIdentityByNonUniquePublicKeyHash(input: GetIdentityByNonUniquePublicKeyHashRequest, options?: RpcOptions): UnaryCall<GetIdentityByNonUniquePublicKeyHashRequest, GetIdentityByNonUniquePublicKeyHashResponse>;
265
+ /**
266
+ * @generated from protobuf rpc: waitForStateTransitionResult
267
+ */
268
+ waitForStateTransitionResult(input: WaitForStateTransitionResultRequest, options?: RpcOptions): UnaryCall<WaitForStateTransitionResultRequest, WaitForStateTransitionResultResponse>;
301
269
  /**
302
270
  * @generated from protobuf rpc: getEpochsInfo
303
271
  */
@@ -306,10 +274,6 @@ export declare class PlatformClient implements IPlatformClient, ServiceInfo {
306
274
  * @generated from protobuf rpc: getFinalizedEpochInfos
307
275
  */
308
276
  getFinalizedEpochInfos(input: GetFinalizedEpochInfosRequest, options?: RpcOptions): UnaryCall<GetFinalizedEpochInfosRequest, GetFinalizedEpochInfosResponse>;
309
- /**
310
- * @generated from protobuf rpc: getContestedResources
311
- */
312
- getContestedResources(input: GetContestedResourcesRequest, options?: RpcOptions): UnaryCall<GetContestedResourcesRequest, GetContestedResourcesResponse>;
313
277
  /**
314
278
  * @generated from protobuf rpc: getContestedResourceVoteState
315
279
  */
@@ -334,22 +298,18 @@ export declare class PlatformClient implements IPlatformClient, ServiceInfo {
334
298
  * @generated from protobuf rpc: getIdentitiesTokenBalances
335
299
  */
336
300
  getIdentitiesTokenBalances(input: GetIdentitiesTokenBalancesRequest, options?: RpcOptions): UnaryCall<GetIdentitiesTokenBalancesRequest, GetIdentitiesTokenBalancesResponse>;
337
- /**
338
- * @generated from protobuf rpc: getTokenContractInfo
339
- */
340
- getTokenContractInfo(input: GetTokenContractInfoRequest, options?: RpcOptions): UnaryCall<GetTokenContractInfoRequest, GetTokenContractInfoResponse>;
341
301
  /**
342
302
  * @generated from protobuf rpc: getTokenDirectPurchasePrices
343
303
  */
344
304
  getTokenDirectPurchasePrices(input: GetTokenDirectPurchasePricesRequest, options?: RpcOptions): UnaryCall<GetTokenDirectPurchasePricesRequest, GetTokenDirectPurchasePricesResponse>;
345
305
  /**
346
- * @generated from protobuf rpc: getTokenTotalSupply
306
+ * @generated from protobuf rpc: getTokenContractInfo
347
307
  */
348
- getTokenTotalSupply(input: GetTokenTotalSupplyRequest, options?: RpcOptions): UnaryCall<GetTokenTotalSupplyRequest, GetTokenTotalSupplyResponse>;
308
+ getTokenContractInfo(input: GetTokenContractInfoRequest, options?: RpcOptions): UnaryCall<GetTokenContractInfoRequest, GetTokenContractInfoResponse>;
349
309
  /**
350
- * @generated from protobuf rpc: waitForStateTransitionResult
310
+ * @generated from protobuf rpc: getTokenTotalSupply
351
311
  */
352
- waitForStateTransitionResult(input: WaitForStateTransitionResultRequest, options?: RpcOptions): UnaryCall<WaitForStateTransitionResultRequest, WaitForStateTransitionResultResponse>;
312
+ getTokenTotalSupply(input: GetTokenTotalSupplyRequest, options?: RpcOptions): UnaryCall<GetTokenTotalSupplyRequest, GetTokenTotalSupplyResponse>;
353
313
  /**
354
314
  * @generated from protobuf rpc: getAddressInfo
355
315
  */
@@ -32,249 +32,221 @@ export class PlatformClient {
32
32
  const method = this.methods[2], opt = this._transport.mergeOptions(options);
33
33
  return stackIntercept("unary", this._transport, method, opt, input);
34
34
  }
35
- /**
36
- * @generated from protobuf rpc: getIdentitiesContractKeys
37
- */
38
- getIdentitiesContractKeys(input, options) {
39
- const method = this.methods[3], opt = this._transport.mergeOptions(options);
40
- return stackIntercept("unary", this._transport, method, opt, input);
41
- }
42
35
  /**
43
36
  * @generated from protobuf rpc: getIdentityNonce
44
37
  */
45
38
  getIdentityNonce(input, options) {
46
- const method = this.methods[4], opt = this._transport.mergeOptions(options);
39
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
47
40
  return stackIntercept("unary", this._transport, method, opt, input);
48
41
  }
49
42
  /**
50
43
  * @generated from protobuf rpc: getIdentityContractNonce
51
44
  */
52
45
  getIdentityContractNonce(input, options) {
53
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
46
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
54
47
  return stackIntercept("unary", this._transport, method, opt, input);
55
48
  }
56
49
  /**
57
50
  * @generated from protobuf rpc: getIdentityBalance
58
51
  */
59
52
  getIdentityBalance(input, options) {
60
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
61
- return stackIntercept("unary", this._transport, method, opt, input);
62
- }
63
- /**
64
- * @generated from protobuf rpc: getIdentitiesBalances
65
- */
66
- getIdentitiesBalances(input, options) {
67
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
68
- return stackIntercept("unary", this._transport, method, opt, input);
69
- }
70
- /**
71
- * @generated from protobuf rpc: getIdentityBalanceAndRevision
72
- */
73
- getIdentityBalanceAndRevision(input, options) {
74
- const method = this.methods[8], opt = this._transport.mergeOptions(options);
53
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
75
54
  return stackIntercept("unary", this._transport, method, opt, input);
76
55
  }
77
56
  /**
78
57
  * @generated from protobuf rpc: getDataContract
79
58
  */
80
59
  getDataContract(input, options) {
81
- const method = this.methods[9], opt = this._transport.mergeOptions(options);
60
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
82
61
  return stackIntercept("unary", this._transport, method, opt, input);
83
62
  }
84
63
  /**
85
64
  * @generated from protobuf rpc: getDocuments
86
65
  */
87
66
  getDocuments(input, options) {
88
- const method = this.methods[10], opt = this._transport.mergeOptions(options);
67
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
89
68
  return stackIntercept("unary", this._transport, method, opt, input);
90
69
  }
91
70
  /**
92
71
  * @generated from protobuf rpc: getIdentityByPublicKeyHash
93
72
  */
94
73
  getIdentityByPublicKeyHash(input, options) {
95
- const method = this.methods[11], opt = this._transport.mergeOptions(options);
74
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
96
75
  return stackIntercept("unary", this._transport, method, opt, input);
97
76
  }
98
77
  /**
99
78
  * @generated from protobuf rpc: getIdentityByNonUniquePublicKeyHash
100
79
  */
101
80
  getIdentityByNonUniquePublicKeyHash(input, options) {
102
- const method = this.methods[12], opt = this._transport.mergeOptions(options);
81
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
103
82
  return stackIntercept("unary", this._transport, method, opt, input);
104
83
  }
105
84
  /**
106
- * @generated from protobuf rpc: getEpochsInfo
85
+ * @generated from protobuf rpc: waitForStateTransitionResult
107
86
  */
108
- getEpochsInfo(input, options) {
109
- const method = this.methods[13], opt = this._transport.mergeOptions(options);
87
+ waitForStateTransitionResult(input, options) {
88
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
110
89
  return stackIntercept("unary", this._transport, method, opt, input);
111
90
  }
112
91
  /**
113
- * @generated from protobuf rpc: getFinalizedEpochInfos
92
+ * @generated from protobuf rpc: getEpochsInfo
114
93
  */
115
- getFinalizedEpochInfos(input, options) {
116
- const method = this.methods[14], opt = this._transport.mergeOptions(options);
94
+ getEpochsInfo(input, options) {
95
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
117
96
  return stackIntercept("unary", this._transport, method, opt, input);
118
97
  }
119
98
  /**
120
- * @generated from protobuf rpc: getContestedResources
99
+ * @generated from protobuf rpc: getFinalizedEpochInfos
121
100
  */
122
- getContestedResources(input, options) {
123
- const method = this.methods[15], opt = this._transport.mergeOptions(options);
101
+ getFinalizedEpochInfos(input, options) {
102
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
124
103
  return stackIntercept("unary", this._transport, method, opt, input);
125
104
  }
126
105
  /**
127
106
  * @generated from protobuf rpc: getContestedResourceVoteState
128
107
  */
129
108
  getContestedResourceVoteState(input, options) {
130
- const method = this.methods[16], opt = this._transport.mergeOptions(options);
109
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
131
110
  return stackIntercept("unary", this._transport, method, opt, input);
132
111
  }
133
112
  /**
134
113
  * @generated from protobuf rpc: getTotalCreditsInPlatform
135
114
  */
136
115
  getTotalCreditsInPlatform(input, options) {
137
- const method = this.methods[17], opt = this._transport.mergeOptions(options);
116
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
138
117
  return stackIntercept("unary", this._transport, method, opt, input);
139
118
  }
140
119
  /**
141
120
  * @generated from protobuf rpc: getStatus
142
121
  */
143
122
  getStatus(input, options) {
144
- const method = this.methods[18], opt = this._transport.mergeOptions(options);
123
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
145
124
  return stackIntercept("unary", this._transport, method, opt, input);
146
125
  }
147
126
  /**
148
127
  * @generated from protobuf rpc: getCurrentQuorumsInfo
149
128
  */
150
129
  getCurrentQuorumsInfo(input, options) {
151
- const method = this.methods[19], opt = this._transport.mergeOptions(options);
130
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
152
131
  return stackIntercept("unary", this._transport, method, opt, input);
153
132
  }
154
133
  /**
155
134
  * @generated from protobuf rpc: getIdentityTokenBalances
156
135
  */
157
136
  getIdentityTokenBalances(input, options) {
158
- const method = this.methods[20], opt = this._transport.mergeOptions(options);
137
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
159
138
  return stackIntercept("unary", this._transport, method, opt, input);
160
139
  }
161
140
  /**
162
141
  * @generated from protobuf rpc: getIdentitiesTokenBalances
163
142
  */
164
143
  getIdentitiesTokenBalances(input, options) {
165
- const method = this.methods[21], opt = this._transport.mergeOptions(options);
166
- return stackIntercept("unary", this._transport, method, opt, input);
167
- }
168
- /**
169
- * @generated from protobuf rpc: getTokenContractInfo
170
- */
171
- getTokenContractInfo(input, options) {
172
- const method = this.methods[22], opt = this._transport.mergeOptions(options);
144
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
173
145
  return stackIntercept("unary", this._transport, method, opt, input);
174
146
  }
175
147
  /**
176
148
  * @generated from protobuf rpc: getTokenDirectPurchasePrices
177
149
  */
178
150
  getTokenDirectPurchasePrices(input, options) {
179
- const method = this.methods[23], opt = this._transport.mergeOptions(options);
151
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
180
152
  return stackIntercept("unary", this._transport, method, opt, input);
181
153
  }
182
154
  /**
183
- * @generated from protobuf rpc: getTokenTotalSupply
155
+ * @generated from protobuf rpc: getTokenContractInfo
184
156
  */
185
- getTokenTotalSupply(input, options) {
186
- const method = this.methods[24], opt = this._transport.mergeOptions(options);
157
+ getTokenContractInfo(input, options) {
158
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
187
159
  return stackIntercept("unary", this._transport, method, opt, input);
188
160
  }
189
161
  /**
190
- * @generated from protobuf rpc: waitForStateTransitionResult
162
+ * @generated from protobuf rpc: getTokenTotalSupply
191
163
  */
192
- waitForStateTransitionResult(input, options) {
193
- const method = this.methods[25], opt = this._transport.mergeOptions(options);
164
+ getTokenTotalSupply(input, options) {
165
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
194
166
  return stackIntercept("unary", this._transport, method, opt, input);
195
167
  }
196
168
  /**
197
169
  * @generated from protobuf rpc: getAddressInfo
198
170
  */
199
171
  getAddressInfo(input, options) {
200
- const method = this.methods[26], opt = this._transport.mergeOptions(options);
172
+ const method = this.methods[22], opt = this._transport.mergeOptions(options);
201
173
  return stackIntercept("unary", this._transport, method, opt, input);
202
174
  }
203
175
  /**
204
176
  * @generated from protobuf rpc: getAddressesInfos
205
177
  */
206
178
  getAddressesInfos(input, options) {
207
- const method = this.methods[27], opt = this._transport.mergeOptions(options);
179
+ const method = this.methods[23], opt = this._transport.mergeOptions(options);
208
180
  return stackIntercept("unary", this._transport, method, opt, input);
209
181
  }
210
182
  /**
211
183
  * @generated from protobuf rpc: getAddressesTrunkState
212
184
  */
213
185
  getAddressesTrunkState(input, options) {
214
- const method = this.methods[28], opt = this._transport.mergeOptions(options);
186
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
215
187
  return stackIntercept("unary", this._transport, method, opt, input);
216
188
  }
217
189
  /**
218
190
  * @generated from protobuf rpc: getAddressesBranchState
219
191
  */
220
192
  getAddressesBranchState(input, options) {
221
- const method = this.methods[29], opt = this._transport.mergeOptions(options);
193
+ const method = this.methods[25], opt = this._transport.mergeOptions(options);
222
194
  return stackIntercept("unary", this._transport, method, opt, input);
223
195
  }
224
196
  /**
225
197
  * @generated from protobuf rpc: getRecentAddressBalanceChanges
226
198
  */
227
199
  getRecentAddressBalanceChanges(input, options) {
228
- const method = this.methods[30], opt = this._transport.mergeOptions(options);
200
+ const method = this.methods[26], opt = this._transport.mergeOptions(options);
229
201
  return stackIntercept("unary", this._transport, method, opt, input);
230
202
  }
231
203
  /**
232
204
  * @generated from protobuf rpc: getRecentCompactedAddressBalanceChanges
233
205
  */
234
206
  getRecentCompactedAddressBalanceChanges(input, options) {
235
- const method = this.methods[31], opt = this._transport.mergeOptions(options);
207
+ const method = this.methods[27], opt = this._transport.mergeOptions(options);
236
208
  return stackIntercept("unary", this._transport, method, opt, input);
237
209
  }
238
210
  /**
239
211
  * @generated from protobuf rpc: getShieldedEncryptedNotes
240
212
  */
241
213
  getShieldedEncryptedNotes(input, options) {
242
- const method = this.methods[32], opt = this._transport.mergeOptions(options);
214
+ const method = this.methods[28], opt = this._transport.mergeOptions(options);
243
215
  return stackIntercept("unary", this._transport, method, opt, input);
244
216
  }
245
217
  /**
246
218
  * @generated from protobuf rpc: getShieldedAnchors
247
219
  */
248
220
  getShieldedAnchors(input, options) {
249
- const method = this.methods[33], opt = this._transport.mergeOptions(options);
221
+ const method = this.methods[29], opt = this._transport.mergeOptions(options);
250
222
  return stackIntercept("unary", this._transport, method, opt, input);
251
223
  }
252
224
  /**
253
225
  * @generated from protobuf rpc: getMostRecentShieldedAnchor
254
226
  */
255
227
  getMostRecentShieldedAnchor(input, options) {
256
- const method = this.methods[34], opt = this._transport.mergeOptions(options);
228
+ const method = this.methods[30], opt = this._transport.mergeOptions(options);
257
229
  return stackIntercept("unary", this._transport, method, opt, input);
258
230
  }
259
231
  /**
260
232
  * @generated from protobuf rpc: getShieldedPoolState
261
233
  */
262
234
  getShieldedPoolState(input, options) {
263
- const method = this.methods[35], opt = this._transport.mergeOptions(options);
235
+ const method = this.methods[31], opt = this._transport.mergeOptions(options);
264
236
  return stackIntercept("unary", this._transport, method, opt, input);
265
237
  }
266
238
  /**
267
239
  * @generated from protobuf rpc: getShieldedNotesCount
268
240
  */
269
241
  getShieldedNotesCount(input, options) {
270
- const method = this.methods[36], opt = this._transport.mergeOptions(options);
242
+ const method = this.methods[32], opt = this._transport.mergeOptions(options);
271
243
  return stackIntercept("unary", this._transport, method, opt, input);
272
244
  }
273
245
  /**
274
246
  * @generated from protobuf rpc: getShieldedNullifiers
275
247
  */
276
248
  getShieldedNullifiers(input, options) {
277
- const method = this.methods[37], opt = this._transport.mergeOptions(options);
249
+ const method = this.methods[33], opt = this._transport.mergeOptions(options);
278
250
  return stackIntercept("unary", this._transport, method, opt, input);
279
251
  }
280
252
  }