@verana-labs/verana-types 0.10.1-dev.19 → 0.10.1-dev.21

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.
@@ -271,7 +271,6 @@ exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = {
271
271
  corporation: (_a = m.corporation) !== null && _a !== void 0 ? _a : "",
272
272
  operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
273
273
  id: (0, helpers_1.u64ToStr)(m.id),
274
- amount: (0, helpers_1.u64ToStrIfNonZero)(m.amount),
275
274
  });
276
275
  },
277
276
  fromAmino: (a) => {
@@ -280,7 +279,6 @@ exports.MsgRepayParticipantSlashedTrustDepositAminoConverter = {
280
279
  corporation: (_a = a.corporation) !== null && _a !== void 0 ? _a : "",
281
280
  operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
282
281
  id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
283
- amount: (0, helpers_1.strToU64)(a.amount) != null ? Number((0, helpers_1.strToU64)(a.amount).toString()) : 0,
284
282
  });
285
283
  },
286
284
  };
@@ -1,6 +1,6 @@
1
1
  import * as _m0 from "protobufjs/minimal";
2
2
  import { Params } from "./params";
3
- import { Participant, ParticipantSession } from "./types";
3
+ import { OnboardingState, Participant, ParticipantRole, ParticipantSession } from "./types";
4
4
  export declare const protobufPackage = "verana.pp.v1";
5
5
  /** QueryParamsRequest is request type for the Query/Params RPC method. */
6
6
  export interface QueryParamsRequest {
@@ -14,6 +14,18 @@ export interface QueryListParticipantsRequest {
14
14
  modifiedAfter: Date | undefined;
15
15
  /** Default 64, min 1, max 1024 */
16
16
  responseMaxSize: number;
17
+ schemaId: number;
18
+ /** filters on Participant.vs_operator (the VS grantee service account) */
19
+ grantee: string;
20
+ did: string;
21
+ /** matches Participant.validator_participant_id */
22
+ participantId: number;
23
+ role: ParticipantRole;
24
+ onlyValid: boolean;
25
+ onlySlashed: boolean;
26
+ onlyRepaid: boolean;
27
+ opState: OnboardingState;
28
+ when: Date | undefined;
17
29
  }
18
30
  export interface QueryListParticipantsResponse {
19
31
  participants: Participant[];
@@ -136,7 +136,20 @@ exports.QueryParamsResponse = {
136
136
  },
137
137
  };
138
138
  function createBaseQueryListParticipantsRequest() {
139
- return { modifiedAfter: undefined, responseMaxSize: 0 };
139
+ return {
140
+ modifiedAfter: undefined,
141
+ responseMaxSize: 0,
142
+ schemaId: 0,
143
+ grantee: "",
144
+ did: "",
145
+ participantId: 0,
146
+ role: 0,
147
+ onlyValid: false,
148
+ onlySlashed: false,
149
+ onlyRepaid: false,
150
+ opState: 0,
151
+ when: undefined,
152
+ };
140
153
  }
141
154
  exports.QueryListParticipantsRequest = {
142
155
  encode(message, writer = _m0.Writer.create()) {
@@ -146,6 +159,36 @@ exports.QueryListParticipantsRequest = {
146
159
  if (message.responseMaxSize !== 0) {
147
160
  writer.uint32(16).uint32(message.responseMaxSize);
148
161
  }
162
+ if (message.schemaId !== 0) {
163
+ writer.uint32(24).uint64(message.schemaId);
164
+ }
165
+ if (message.grantee !== "") {
166
+ writer.uint32(34).string(message.grantee);
167
+ }
168
+ if (message.did !== "") {
169
+ writer.uint32(42).string(message.did);
170
+ }
171
+ if (message.participantId !== 0) {
172
+ writer.uint32(48).uint64(message.participantId);
173
+ }
174
+ if (message.role !== 0) {
175
+ writer.uint32(56).int32(message.role);
176
+ }
177
+ if (message.onlyValid !== false) {
178
+ writer.uint32(64).bool(message.onlyValid);
179
+ }
180
+ if (message.onlySlashed !== false) {
181
+ writer.uint32(72).bool(message.onlySlashed);
182
+ }
183
+ if (message.onlyRepaid !== false) {
184
+ writer.uint32(80).bool(message.onlyRepaid);
185
+ }
186
+ if (message.opState !== 0) {
187
+ writer.uint32(88).int32(message.opState);
188
+ }
189
+ if (message.when !== undefined) {
190
+ timestamp_1.Timestamp.encode(toTimestamp(message.when), writer.uint32(98).fork()).ldelim();
191
+ }
149
192
  return writer;
150
193
  },
151
194
  decode(input, length) {
@@ -167,6 +210,66 @@ exports.QueryListParticipantsRequest = {
167
210
  }
168
211
  message.responseMaxSize = reader.uint32();
169
212
  continue;
213
+ case 3:
214
+ if (tag !== 24) {
215
+ break;
216
+ }
217
+ message.schemaId = longToNumber(reader.uint64());
218
+ continue;
219
+ case 4:
220
+ if (tag !== 34) {
221
+ break;
222
+ }
223
+ message.grantee = reader.string();
224
+ continue;
225
+ case 5:
226
+ if (tag !== 42) {
227
+ break;
228
+ }
229
+ message.did = reader.string();
230
+ continue;
231
+ case 6:
232
+ if (tag !== 48) {
233
+ break;
234
+ }
235
+ message.participantId = longToNumber(reader.uint64());
236
+ continue;
237
+ case 7:
238
+ if (tag !== 56) {
239
+ break;
240
+ }
241
+ message.role = reader.int32();
242
+ continue;
243
+ case 8:
244
+ if (tag !== 64) {
245
+ break;
246
+ }
247
+ message.onlyValid = reader.bool();
248
+ continue;
249
+ case 9:
250
+ if (tag !== 72) {
251
+ break;
252
+ }
253
+ message.onlySlashed = reader.bool();
254
+ continue;
255
+ case 10:
256
+ if (tag !== 80) {
257
+ break;
258
+ }
259
+ message.onlyRepaid = reader.bool();
260
+ continue;
261
+ case 11:
262
+ if (tag !== 88) {
263
+ break;
264
+ }
265
+ message.opState = reader.int32();
266
+ continue;
267
+ case 12:
268
+ if (tag !== 98) {
269
+ break;
270
+ }
271
+ message.when = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
272
+ continue;
170
273
  }
171
274
  if ((tag & 7) === 4 || tag === 0) {
172
275
  break;
@@ -179,6 +282,16 @@ exports.QueryListParticipantsRequest = {
179
282
  return {
180
283
  modifiedAfter: isSet(object.modifiedAfter) ? fromJsonTimestamp(object.modifiedAfter) : undefined,
181
284
  responseMaxSize: isSet(object.responseMaxSize) ? globalThis.Number(object.responseMaxSize) : 0,
285
+ schemaId: isSet(object.schemaId) ? globalThis.Number(object.schemaId) : 0,
286
+ grantee: isSet(object.grantee) ? globalThis.String(object.grantee) : "",
287
+ did: isSet(object.did) ? globalThis.String(object.did) : "",
288
+ participantId: isSet(object.participantId) ? globalThis.Number(object.participantId) : 0,
289
+ role: isSet(object.role) ? (0, types_1.participantRoleFromJSON)(object.role) : 0,
290
+ onlyValid: isSet(object.onlyValid) ? globalThis.Boolean(object.onlyValid) : false,
291
+ onlySlashed: isSet(object.onlySlashed) ? globalThis.Boolean(object.onlySlashed) : false,
292
+ onlyRepaid: isSet(object.onlyRepaid) ? globalThis.Boolean(object.onlyRepaid) : false,
293
+ opState: isSet(object.opState) ? (0, types_1.onboardingStateFromJSON)(object.opState) : 0,
294
+ when: isSet(object.when) ? fromJsonTimestamp(object.when) : undefined,
182
295
  };
183
296
  },
184
297
  toJSON(message) {
@@ -189,16 +302,56 @@ exports.QueryListParticipantsRequest = {
189
302
  if (message.responseMaxSize !== 0) {
190
303
  obj.responseMaxSize = Math.round(message.responseMaxSize);
191
304
  }
305
+ if (message.schemaId !== 0) {
306
+ obj.schemaId = Math.round(message.schemaId);
307
+ }
308
+ if (message.grantee !== "") {
309
+ obj.grantee = message.grantee;
310
+ }
311
+ if (message.did !== "") {
312
+ obj.did = message.did;
313
+ }
314
+ if (message.participantId !== 0) {
315
+ obj.participantId = Math.round(message.participantId);
316
+ }
317
+ if (message.role !== 0) {
318
+ obj.role = (0, types_1.participantRoleToJSON)(message.role);
319
+ }
320
+ if (message.onlyValid !== false) {
321
+ obj.onlyValid = message.onlyValid;
322
+ }
323
+ if (message.onlySlashed !== false) {
324
+ obj.onlySlashed = message.onlySlashed;
325
+ }
326
+ if (message.onlyRepaid !== false) {
327
+ obj.onlyRepaid = message.onlyRepaid;
328
+ }
329
+ if (message.opState !== 0) {
330
+ obj.opState = (0, types_1.onboardingStateToJSON)(message.opState);
331
+ }
332
+ if (message.when !== undefined) {
333
+ obj.when = message.when.toISOString();
334
+ }
192
335
  return obj;
193
336
  },
194
337
  create(base) {
195
338
  return exports.QueryListParticipantsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
196
339
  },
197
340
  fromPartial(object) {
198
- var _a, _b;
341
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
199
342
  const message = createBaseQueryListParticipantsRequest();
200
343
  message.modifiedAfter = (_a = object.modifiedAfter) !== null && _a !== void 0 ? _a : undefined;
201
344
  message.responseMaxSize = (_b = object.responseMaxSize) !== null && _b !== void 0 ? _b : 0;
345
+ message.schemaId = (_c = object.schemaId) !== null && _c !== void 0 ? _c : 0;
346
+ message.grantee = (_d = object.grantee) !== null && _d !== void 0 ? _d : "";
347
+ message.did = (_e = object.did) !== null && _e !== void 0 ? _e : "";
348
+ message.participantId = (_f = object.participantId) !== null && _f !== void 0 ? _f : 0;
349
+ message.role = (_g = object.role) !== null && _g !== void 0 ? _g : 0;
350
+ message.onlyValid = (_h = object.onlyValid) !== null && _h !== void 0 ? _h : false;
351
+ message.onlySlashed = (_j = object.onlySlashed) !== null && _j !== void 0 ? _j : false;
352
+ message.onlyRepaid = (_k = object.onlyRepaid) !== null && _k !== void 0 ? _k : false;
353
+ message.opState = (_l = object.opState) !== null && _l !== void 0 ? _l : 0;
354
+ message.when = (_m = object.when) !== null && _m !== void 0 ? _m : undefined;
202
355
  return message;
203
356
  },
204
357
  };
@@ -174,7 +174,6 @@ export interface MsgRepayParticipantSlashedTrustDeposit {
174
174
  corporation: string;
175
175
  operator: string;
176
176
  id: number;
177
- amount: number;
178
177
  }
179
178
  export interface MsgRepayParticipantSlashedTrustDepositResponse {
180
179
  }
@@ -1882,7 +1882,7 @@ exports.MsgSlashParticipantTrustDepositResponse = {
1882
1882
  },
1883
1883
  };
1884
1884
  function createBaseMsgRepayParticipantSlashedTrustDeposit() {
1885
- return { corporation: "", operator: "", id: 0, amount: 0 };
1885
+ return { corporation: "", operator: "", id: 0 };
1886
1886
  }
1887
1887
  exports.MsgRepayParticipantSlashedTrustDeposit = {
1888
1888
  encode(message, writer = _m0.Writer.create()) {
@@ -1895,9 +1895,6 @@ exports.MsgRepayParticipantSlashedTrustDeposit = {
1895
1895
  if (message.id !== 0) {
1896
1896
  writer.uint32(24).uint64(message.id);
1897
1897
  }
1898
- if (message.amount !== 0) {
1899
- writer.uint32(32).uint64(message.amount);
1900
- }
1901
1898
  return writer;
1902
1899
  },
1903
1900
  decode(input, length) {
@@ -1925,12 +1922,6 @@ exports.MsgRepayParticipantSlashedTrustDeposit = {
1925
1922
  }
1926
1923
  message.id = longToNumber(reader.uint64());
1927
1924
  continue;
1928
- case 4:
1929
- if (tag !== 32) {
1930
- break;
1931
- }
1932
- message.amount = longToNumber(reader.uint64());
1933
- continue;
1934
1925
  }
1935
1926
  if ((tag & 7) === 4 || tag === 0) {
1936
1927
  break;
@@ -1944,7 +1935,6 @@ exports.MsgRepayParticipantSlashedTrustDeposit = {
1944
1935
  corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
1945
1936
  operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
1946
1937
  id: isSet(object.id) ? globalThis.Number(object.id) : 0,
1947
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
1948
1938
  };
1949
1939
  },
1950
1940
  toJSON(message) {
@@ -1958,21 +1948,17 @@ exports.MsgRepayParticipantSlashedTrustDeposit = {
1958
1948
  if (message.id !== 0) {
1959
1949
  obj.id = Math.round(message.id);
1960
1950
  }
1961
- if (message.amount !== 0) {
1962
- obj.amount = Math.round(message.amount);
1963
- }
1964
1951
  return obj;
1965
1952
  },
1966
1953
  create(base) {
1967
1954
  return exports.MsgRepayParticipantSlashedTrustDeposit.fromPartial(base !== null && base !== void 0 ? base : {});
1968
1955
  },
1969
1956
  fromPartial(object) {
1970
- var _a, _b, _c, _d;
1957
+ var _a, _b, _c;
1971
1958
  const message = createBaseMsgRepayParticipantSlashedTrustDeposit();
1972
1959
  message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
1973
1960
  message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
1974
1961
  message.id = (_c = object.id) !== null && _c !== void 0 ? _c : 0;
1975
- message.amount = (_d = object.amount) !== null && _d !== void 0 ? _d : 0;
1976
1962
  return message;
1977
1963
  },
1978
1964
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verana-labs/verana-types",
3
- "version": "0.10.1-dev.19",
3
+ "version": "0.10.1-dev.21",
4
4
  "description": "Generated TypeScript protobuf codecs for the Verana blockchain.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "dist/index.js",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "repository": {
59
59
  "type": "git",
60
- "url": "git+https://github.com/verana-labs/verana.git"
60
+ "url": "git+https://github.com/verana-labs/verana-node.git"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"