@verana-labs/verana-types 0.10.1-dev.12 → 0.10.1-dev.14

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 (61) hide show
  1. package/dist/amino-converter/co.d.ts +3 -0
  2. package/dist/amino-converter/co.js +164 -0
  3. package/dist/amino-converter/cs.js +2 -2
  4. package/dist/amino-converter/ec.d.ts +4 -0
  5. package/dist/amino-converter/ec.js +63 -0
  6. package/dist/amino-converter/{tr.d.ts → gf.d.ts} +0 -3
  7. package/dist/amino-converter/gf.js +48 -0
  8. package/dist/amino-converter/group.d.ts +3 -0
  9. package/dist/amino-converter/group.js +91 -0
  10. package/dist/amino-converter/pp.d.ts +12 -0
  11. package/dist/amino-converter/{perm.js → pp.js} +95 -79
  12. package/dist/codec/verana/cs/v1/query.d.ts +2 -2
  13. package/dist/codec/verana/cs/v1/query.js +21 -21
  14. package/dist/codec/verana/cs/v1/tx.d.ts +1 -1
  15. package/dist/codec/verana/cs/v1/tx.js +22 -22
  16. package/dist/codec/verana/cs/v1/types.d.ts +6 -2
  17. package/dist/codec/verana/cs/v1/types.js +30 -30
  18. package/dist/codec/verana/de/v1/query.d.ts +72 -4
  19. package/dist/codec/verana/de/v1/query.js +261 -19
  20. package/dist/codec/verana/de/v1/types.d.ts +124 -34
  21. package/dist/codec/verana/de/v1/types.js +361 -109
  22. package/dist/codec/verana/{tr → ec}/module/module.d.ts +1 -1
  23. package/dist/codec/verana/{tr → ec}/module/module.js +2 -2
  24. package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
  25. package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
  26. package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
  27. package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
  28. package/dist/codec/verana/ec/v1/query.d.ts +109 -0
  29. package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
  30. package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
  31. package/dist/codec/verana/{tr → ec}/v1/tx.js +85 -403
  32. package/dist/codec/verana/ec/v1/types.d.ts +67 -0
  33. package/dist/codec/verana/ec/v1/types.js +422 -0
  34. package/dist/codec/verana/{perm → pp}/module/module.d.ts +1 -1
  35. package/dist/codec/verana/{perm → pp}/module/module.js +2 -2
  36. package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
  37. package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
  38. package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
  39. package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
  40. package/dist/codec/verana/pp/v1/query.d.ts +208 -0
  41. package/dist/codec/verana/{perm → pp}/v1/query.js +148 -148
  42. package/dist/codec/verana/pp/v1/tx.d.ts +447 -0
  43. package/dist/codec/verana/{perm → pp}/v1/tx.js +412 -302
  44. package/dist/codec/verana/pp/v1/types.d.ts +137 -0
  45. package/dist/codec/verana/{perm → pp}/v1/types.js +270 -345
  46. package/dist/helpers/aminoConverters.d.ts +6 -4
  47. package/dist/helpers/aminoConverters.js +6 -4
  48. package/dist/index.d.ts +4 -2
  49. package/dist/index.js +4 -2
  50. package/dist/signing.d.ts +36 -32
  51. package/dist/signing.js +85 -68
  52. package/package.json +1 -1
  53. package/dist/amino-converter/perm.d.ts +0 -12
  54. package/dist/amino-converter/tr.js +0 -107
  55. package/dist/codec/verana/perm/v1/query.d.ts +0 -208
  56. package/dist/codec/verana/perm/v1/tx.d.ts +0 -441
  57. package/dist/codec/verana/perm/v1/types.d.ts +0 -134
  58. package/dist/codec/verana/tr/v1/query.d.ts +0 -117
  59. package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
  60. package/dist/codec/verana/tr/v1/types.d.ts +0 -105
  61. package/dist/codec/verana/tr/v1/types.js +0 -809
@@ -3,7 +3,7 @@
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.2
5
5
  // protoc unknown
6
- // source: verana/tr/v1/query.proto
6
+ // source: verana/ec/v1/query.proto
7
7
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
8
  if (k2 === undefined) k2 = k;
9
9
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -38,14 +38,14 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  };
39
39
  })();
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.QueryClientImpl = exports.QueryServiceName = exports.QueryListTrustRegistriesResponse = exports.QueryListTrustRegistriesRequest = exports.QueryGetTrustRegistryResponse = exports.QueryGetTrustRegistryRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
41
+ exports.QueryClientImpl = exports.QueryServiceName = exports.QueryListEcosystemsResponse = exports.QueryListEcosystemsRequest = exports.QueryGetEcosystemResponse = exports.QueryGetEcosystemRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
42
42
  /* eslint-disable */
43
43
  const _m0 = __importStar(require("protobufjs/minimal"));
44
44
  const timestamp_1 = require("../../../google/protobuf/timestamp");
45
45
  const params_1 = require("./params");
46
46
  const types_1 = require("./types");
47
47
  const Long = require("long");
48
- exports.protobufPackage = "verana.tr.v1";
48
+ exports.protobufPackage = "verana.ec.v1";
49
49
  function createBaseQueryParamsRequest() {
50
50
  return {};
51
51
  }
@@ -135,13 +135,13 @@ exports.QueryParamsResponse = {
135
135
  return message;
136
136
  },
137
137
  };
138
- function createBaseQueryGetTrustRegistryRequest() {
139
- return { trId: 0, activeGfOnly: false, preferredLanguage: "" };
138
+ function createBaseQueryGetEcosystemRequest() {
139
+ return { id: 0, activeGfOnly: false, preferredLanguage: "" };
140
140
  }
141
- exports.QueryGetTrustRegistryRequest = {
141
+ exports.QueryGetEcosystemRequest = {
142
142
  encode(message, writer = _m0.Writer.create()) {
143
- if (message.trId !== 0) {
144
- writer.uint32(8).uint64(message.trId);
143
+ if (message.id !== 0) {
144
+ writer.uint32(8).uint64(message.id);
145
145
  }
146
146
  if (message.activeGfOnly !== false) {
147
147
  writer.uint32(16).bool(message.activeGfOnly);
@@ -154,7 +154,7 @@ exports.QueryGetTrustRegistryRequest = {
154
154
  decode(input, length) {
155
155
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
156
156
  let end = length === undefined ? reader.len : reader.pos + length;
157
- const message = createBaseQueryGetTrustRegistryRequest();
157
+ const message = createBaseQueryGetEcosystemRequest();
158
158
  while (reader.pos < end) {
159
159
  const tag = reader.uint32();
160
160
  switch (tag >>> 3) {
@@ -162,7 +162,7 @@ exports.QueryGetTrustRegistryRequest = {
162
162
  if (tag !== 8) {
163
163
  break;
164
164
  }
165
- message.trId = longToNumber(reader.uint64());
165
+ message.id = longToNumber(reader.uint64());
166
166
  continue;
167
167
  case 2:
168
168
  if (tag !== 16) {
@@ -186,15 +186,15 @@ exports.QueryGetTrustRegistryRequest = {
186
186
  },
187
187
  fromJSON(object) {
188
188
  return {
189
- trId: isSet(object.trId) ? globalThis.Number(object.trId) : 0,
189
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
190
190
  activeGfOnly: isSet(object.activeGfOnly) ? globalThis.Boolean(object.activeGfOnly) : false,
191
191
  preferredLanguage: isSet(object.preferredLanguage) ? globalThis.String(object.preferredLanguage) : "",
192
192
  };
193
193
  },
194
194
  toJSON(message) {
195
195
  const obj = {};
196
- if (message.trId !== 0) {
197
- obj.trId = Math.round(message.trId);
196
+ if (message.id !== 0) {
197
+ obj.id = Math.round(message.id);
198
198
  }
199
199
  if (message.activeGfOnly !== false) {
200
200
  obj.activeGfOnly = message.activeGfOnly;
@@ -205,31 +205,31 @@ exports.QueryGetTrustRegistryRequest = {
205
205
  return obj;
206
206
  },
207
207
  create(base) {
208
- return exports.QueryGetTrustRegistryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
208
+ return exports.QueryGetEcosystemRequest.fromPartial(base !== null && base !== void 0 ? base : {});
209
209
  },
210
210
  fromPartial(object) {
211
211
  var _a, _b, _c;
212
- const message = createBaseQueryGetTrustRegistryRequest();
213
- message.trId = (_a = object.trId) !== null && _a !== void 0 ? _a : 0;
212
+ const message = createBaseQueryGetEcosystemRequest();
213
+ message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
214
214
  message.activeGfOnly = (_b = object.activeGfOnly) !== null && _b !== void 0 ? _b : false;
215
215
  message.preferredLanguage = (_c = object.preferredLanguage) !== null && _c !== void 0 ? _c : "";
216
216
  return message;
217
217
  },
218
218
  };
219
- function createBaseQueryGetTrustRegistryResponse() {
220
- return { trustRegistry: undefined };
219
+ function createBaseQueryGetEcosystemResponse() {
220
+ return { ecosystem: undefined };
221
221
  }
222
- exports.QueryGetTrustRegistryResponse = {
222
+ exports.QueryGetEcosystemResponse = {
223
223
  encode(message, writer = _m0.Writer.create()) {
224
- if (message.trustRegistry !== undefined) {
225
- types_1.TrustRegistryWithVersions.encode(message.trustRegistry, writer.uint32(10).fork()).ldelim();
224
+ if (message.ecosystem !== undefined) {
225
+ types_1.EcosystemWithVersions.encode(message.ecosystem, writer.uint32(10).fork()).ldelim();
226
226
  }
227
227
  return writer;
228
228
  },
229
229
  decode(input, length) {
230
230
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
231
231
  let end = length === undefined ? reader.len : reader.pos + length;
232
- const message = createBaseQueryGetTrustRegistryResponse();
232
+ const message = createBaseQueryGetEcosystemResponse();
233
233
  while (reader.pos < end) {
234
234
  const tag = reader.uint32();
235
235
  switch (tag >>> 3) {
@@ -237,7 +237,7 @@ exports.QueryGetTrustRegistryResponse = {
237
237
  if (tag !== 10) {
238
238
  break;
239
239
  }
240
- message.trustRegistry = types_1.TrustRegistryWithVersions.decode(reader, reader.uint32());
240
+ message.ecosystem = types_1.EcosystemWithVersions.decode(reader, reader.uint32());
241
241
  continue;
242
242
  }
243
243
  if ((tag & 7) === 4 || tag === 0) {
@@ -248,35 +248,33 @@ exports.QueryGetTrustRegistryResponse = {
248
248
  return message;
249
249
  },
250
250
  fromJSON(object) {
251
- return {
252
- trustRegistry: isSet(object.trustRegistry) ? types_1.TrustRegistryWithVersions.fromJSON(object.trustRegistry) : undefined,
253
- };
251
+ return { ecosystem: isSet(object.ecosystem) ? types_1.EcosystemWithVersions.fromJSON(object.ecosystem) : undefined };
254
252
  },
255
253
  toJSON(message) {
256
254
  const obj = {};
257
- if (message.trustRegistry !== undefined) {
258
- obj.trustRegistry = types_1.TrustRegistryWithVersions.toJSON(message.trustRegistry);
255
+ if (message.ecosystem !== undefined) {
256
+ obj.ecosystem = types_1.EcosystemWithVersions.toJSON(message.ecosystem);
259
257
  }
260
258
  return obj;
261
259
  },
262
260
  create(base) {
263
- return exports.QueryGetTrustRegistryResponse.fromPartial(base !== null && base !== void 0 ? base : {});
261
+ return exports.QueryGetEcosystemResponse.fromPartial(base !== null && base !== void 0 ? base : {});
264
262
  },
265
263
  fromPartial(object) {
266
- const message = createBaseQueryGetTrustRegistryResponse();
267
- message.trustRegistry = (object.trustRegistry !== undefined && object.trustRegistry !== null)
268
- ? types_1.TrustRegistryWithVersions.fromPartial(object.trustRegistry)
264
+ const message = createBaseQueryGetEcosystemResponse();
265
+ message.ecosystem = (object.ecosystem !== undefined && object.ecosystem !== null)
266
+ ? types_1.EcosystemWithVersions.fromPartial(object.ecosystem)
269
267
  : undefined;
270
268
  return message;
271
269
  },
272
270
  };
273
- function createBaseQueryListTrustRegistriesRequest() {
274
- return { corporation: "", modifiedAfter: undefined, activeGfOnly: false, preferredLanguage: "", responseMaxSize: 0 };
271
+ function createBaseQueryListEcosystemsRequest() {
272
+ return { corporationId: 0, modifiedAfter: undefined, activeGfOnly: false, preferredLanguage: "", responseMaxSize: 0 };
275
273
  }
276
- exports.QueryListTrustRegistriesRequest = {
274
+ exports.QueryListEcosystemsRequest = {
277
275
  encode(message, writer = _m0.Writer.create()) {
278
- if (message.corporation !== "") {
279
- writer.uint32(10).string(message.corporation);
276
+ if (message.corporationId !== 0) {
277
+ writer.uint32(8).uint64(message.corporationId);
280
278
  }
281
279
  if (message.modifiedAfter !== undefined) {
282
280
  timestamp_1.Timestamp.encode(toTimestamp(message.modifiedAfter), writer.uint32(18).fork()).ldelim();
@@ -295,15 +293,15 @@ exports.QueryListTrustRegistriesRequest = {
295
293
  decode(input, length) {
296
294
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
297
295
  let end = length === undefined ? reader.len : reader.pos + length;
298
- const message = createBaseQueryListTrustRegistriesRequest();
296
+ const message = createBaseQueryListEcosystemsRequest();
299
297
  while (reader.pos < end) {
300
298
  const tag = reader.uint32();
301
299
  switch (tag >>> 3) {
302
300
  case 1:
303
- if (tag !== 10) {
301
+ if (tag !== 8) {
304
302
  break;
305
303
  }
306
- message.corporation = reader.string();
304
+ message.corporationId = longToNumber(reader.uint64());
307
305
  continue;
308
306
  case 2:
309
307
  if (tag !== 18) {
@@ -339,7 +337,7 @@ exports.QueryListTrustRegistriesRequest = {
339
337
  },
340
338
  fromJSON(object) {
341
339
  return {
342
- corporation: isSet(object.corporation) ? globalThis.String(object.corporation) : "",
340
+ corporationId: isSet(object.corporationId) ? globalThis.Number(object.corporationId) : 0,
343
341
  modifiedAfter: isSet(object.modifiedAfter) ? fromJsonTimestamp(object.modifiedAfter) : undefined,
344
342
  activeGfOnly: isSet(object.activeGfOnly) ? globalThis.Boolean(object.activeGfOnly) : false,
345
343
  preferredLanguage: isSet(object.preferredLanguage) ? globalThis.String(object.preferredLanguage) : "",
@@ -348,8 +346,8 @@ exports.QueryListTrustRegistriesRequest = {
348
346
  },
349
347
  toJSON(message) {
350
348
  const obj = {};
351
- if (message.corporation !== "") {
352
- obj.corporation = message.corporation;
349
+ if (message.corporationId !== 0) {
350
+ obj.corporationId = Math.round(message.corporationId);
353
351
  }
354
352
  if (message.modifiedAfter !== undefined) {
355
353
  obj.modifiedAfter = message.modifiedAfter.toISOString();
@@ -366,12 +364,12 @@ exports.QueryListTrustRegistriesRequest = {
366
364
  return obj;
367
365
  },
368
366
  create(base) {
369
- return exports.QueryListTrustRegistriesRequest.fromPartial(base !== null && base !== void 0 ? base : {});
367
+ return exports.QueryListEcosystemsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
370
368
  },
371
369
  fromPartial(object) {
372
370
  var _a, _b, _c, _d, _e;
373
- const message = createBaseQueryListTrustRegistriesRequest();
374
- message.corporation = (_a = object.corporation) !== null && _a !== void 0 ? _a : "";
371
+ const message = createBaseQueryListEcosystemsRequest();
372
+ message.corporationId = (_a = object.corporationId) !== null && _a !== void 0 ? _a : 0;
375
373
  message.modifiedAfter = (_b = object.modifiedAfter) !== null && _b !== void 0 ? _b : undefined;
376
374
  message.activeGfOnly = (_c = object.activeGfOnly) !== null && _c !== void 0 ? _c : false;
377
375
  message.preferredLanguage = (_d = object.preferredLanguage) !== null && _d !== void 0 ? _d : "";
@@ -379,20 +377,20 @@ exports.QueryListTrustRegistriesRequest = {
379
377
  return message;
380
378
  },
381
379
  };
382
- function createBaseQueryListTrustRegistriesResponse() {
383
- return { trustRegistries: [] };
380
+ function createBaseQueryListEcosystemsResponse() {
381
+ return { ecosystems: [] };
384
382
  }
385
- exports.QueryListTrustRegistriesResponse = {
383
+ exports.QueryListEcosystemsResponse = {
386
384
  encode(message, writer = _m0.Writer.create()) {
387
- for (const v of message.trustRegistries) {
388
- types_1.TrustRegistryWithVersions.encode(v, writer.uint32(10).fork()).ldelim();
385
+ for (const v of message.ecosystems) {
386
+ types_1.EcosystemWithVersions.encode(v, writer.uint32(10).fork()).ldelim();
389
387
  }
390
388
  return writer;
391
389
  },
392
390
  decode(input, length) {
393
391
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
394
392
  let end = length === undefined ? reader.len : reader.pos + length;
395
- const message = createBaseQueryListTrustRegistriesResponse();
393
+ const message = createBaseQueryListEcosystemsResponse();
396
394
  while (reader.pos < end) {
397
395
  const tag = reader.uint32();
398
396
  switch (tag >>> 3) {
@@ -400,7 +398,7 @@ exports.QueryListTrustRegistriesResponse = {
400
398
  if (tag !== 10) {
401
399
  break;
402
400
  }
403
- message.trustRegistries.push(types_1.TrustRegistryWithVersions.decode(reader, reader.uint32()));
401
+ message.ecosystems.push(types_1.EcosystemWithVersions.decode(reader, reader.uint32()));
404
402
  continue;
405
403
  }
406
404
  if ((tag & 7) === 4 || tag === 0) {
@@ -412,52 +410,52 @@ exports.QueryListTrustRegistriesResponse = {
412
410
  },
413
411
  fromJSON(object) {
414
412
  return {
415
- trustRegistries: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.trustRegistries)
416
- ? object.trustRegistries.map((e) => types_1.TrustRegistryWithVersions.fromJSON(e))
413
+ ecosystems: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.ecosystems)
414
+ ? object.ecosystems.map((e) => types_1.EcosystemWithVersions.fromJSON(e))
417
415
  : [],
418
416
  };
419
417
  },
420
418
  toJSON(message) {
421
419
  var _a;
422
420
  const obj = {};
423
- if ((_a = message.trustRegistries) === null || _a === void 0 ? void 0 : _a.length) {
424
- obj.trustRegistries = message.trustRegistries.map((e) => types_1.TrustRegistryWithVersions.toJSON(e));
421
+ if ((_a = message.ecosystems) === null || _a === void 0 ? void 0 : _a.length) {
422
+ obj.ecosystems = message.ecosystems.map((e) => types_1.EcosystemWithVersions.toJSON(e));
425
423
  }
426
424
  return obj;
427
425
  },
428
426
  create(base) {
429
- return exports.QueryListTrustRegistriesResponse.fromPartial(base !== null && base !== void 0 ? base : {});
427
+ return exports.QueryListEcosystemsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
430
428
  },
431
429
  fromPartial(object) {
432
430
  var _a;
433
- const message = createBaseQueryListTrustRegistriesResponse();
434
- message.trustRegistries = ((_a = object.trustRegistries) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.TrustRegistryWithVersions.fromPartial(e))) || [];
431
+ const message = createBaseQueryListEcosystemsResponse();
432
+ message.ecosystems = ((_a = object.ecosystems) === null || _a === void 0 ? void 0 : _a.map((e) => types_1.EcosystemWithVersions.fromPartial(e))) || [];
435
433
  return message;
436
434
  },
437
435
  };
438
- exports.QueryServiceName = "verana.tr.v1.Query";
436
+ exports.QueryServiceName = "verana.ec.v1.Query";
439
437
  class QueryClientImpl {
440
438
  constructor(rpc, opts) {
441
439
  this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.QueryServiceName;
442
440
  this.rpc = rpc;
443
441
  this.Params = this.Params.bind(this);
444
- this.GetTrustRegistry = this.GetTrustRegistry.bind(this);
445
- this.ListTrustRegistries = this.ListTrustRegistries.bind(this);
442
+ this.GetEcosystem = this.GetEcosystem.bind(this);
443
+ this.ListEcosystems = this.ListEcosystems.bind(this);
446
444
  }
447
445
  Params(request) {
448
446
  const data = exports.QueryParamsRequest.encode(request).finish();
449
447
  const promise = this.rpc.request(this.service, "Params", data);
450
448
  return promise.then((data) => exports.QueryParamsResponse.decode(_m0.Reader.create(data)));
451
449
  }
452
- GetTrustRegistry(request) {
453
- const data = exports.QueryGetTrustRegistryRequest.encode(request).finish();
454
- const promise = this.rpc.request(this.service, "GetTrustRegistry", data);
455
- return promise.then((data) => exports.QueryGetTrustRegistryResponse.decode(_m0.Reader.create(data)));
450
+ GetEcosystem(request) {
451
+ const data = exports.QueryGetEcosystemRequest.encode(request).finish();
452
+ const promise = this.rpc.request(this.service, "GetEcosystem", data);
453
+ return promise.then((data) => exports.QueryGetEcosystemResponse.decode(_m0.Reader.create(data)));
456
454
  }
457
- ListTrustRegistries(request) {
458
- const data = exports.QueryListTrustRegistriesRequest.encode(request).finish();
459
- const promise = this.rpc.request(this.service, "ListTrustRegistries", data);
460
- return promise.then((data) => exports.QueryListTrustRegistriesResponse.decode(_m0.Reader.create(data)));
455
+ ListEcosystems(request) {
456
+ const data = exports.QueryListEcosystemsRequest.encode(request).finish();
457
+ const promise = this.rpc.request(this.service, "ListEcosystems", data);
458
+ return promise.then((data) => exports.QueryListEcosystemsResponse.decode(_m0.Reader.create(data)));
461
459
  }
462
460
  }
463
461
  exports.QueryClientImpl = QueryClientImpl;
@@ -0,0 +1,152 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ import { Params } from "./params";
3
+ export declare const protobufPackage = "verana.ec.v1";
4
+ /** MsgUpdateParams is the Msg/UpdateParams request type. */
5
+ export interface MsgUpdateParams {
6
+ authority: string;
7
+ params: Params | undefined;
8
+ }
9
+ export interface MsgUpdateParamsResponse {
10
+ }
11
+ /**
12
+ * MsgCreateEcosystem implements MOD-ES-MSG-1. Signed by `operator`;
13
+ * AUTHZ-CHECK-5 resolves the signing `corporation` policy_address to the
14
+ * controlling Corporation entry. Seeds v1 of the Ecosystem's Governance
15
+ * Framework via MOD-GF.
16
+ */
17
+ export interface MsgCreateEcosystem {
18
+ corporation: string;
19
+ operator: string;
20
+ did: string;
21
+ language: string;
22
+ docUrl: string;
23
+ docDigestSri: string;
24
+ }
25
+ export interface MsgCreateEcosystemResponse {
26
+ ecosystemId: number;
27
+ }
28
+ /** MsgUpdateEcosystem implements MOD-ES-MSG-2. Only `did` is mutable. */
29
+ export interface MsgUpdateEcosystem {
30
+ corporation: string;
31
+ operator: string;
32
+ id: number;
33
+ did: string;
34
+ }
35
+ export interface MsgUpdateEcosystemResponse {
36
+ }
37
+ /**
38
+ * MsgArchiveEcosystem implements MOD-ES-MSG-3. `archive` is a boolean toggle;
39
+ * submitting the current state is an idempotency abort.
40
+ */
41
+ export interface MsgArchiveEcosystem {
42
+ corporation: string;
43
+ operator: string;
44
+ id: number;
45
+ archive: boolean;
46
+ }
47
+ export interface MsgArchiveEcosystemResponse {
48
+ }
49
+ export declare const MsgUpdateParams: {
50
+ encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
51
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams;
52
+ fromJSON(object: any): MsgUpdateParams;
53
+ toJSON(message: MsgUpdateParams): unknown;
54
+ create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams;
55
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams;
56
+ };
57
+ export declare const MsgUpdateParamsResponse: {
58
+ encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
59
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse;
60
+ fromJSON(_: any): MsgUpdateParamsResponse;
61
+ toJSON(_: MsgUpdateParamsResponse): unknown;
62
+ create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse;
63
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse;
64
+ };
65
+ export declare const MsgCreateEcosystem: {
66
+ encode(message: MsgCreateEcosystem, writer?: _m0.Writer): _m0.Writer;
67
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateEcosystem;
68
+ fromJSON(object: any): MsgCreateEcosystem;
69
+ toJSON(message: MsgCreateEcosystem): unknown;
70
+ create<I extends Exact<DeepPartial<MsgCreateEcosystem>, I>>(base?: I): MsgCreateEcosystem;
71
+ fromPartial<I extends Exact<DeepPartial<MsgCreateEcosystem>, I>>(object: I): MsgCreateEcosystem;
72
+ };
73
+ export declare const MsgCreateEcosystemResponse: {
74
+ encode(message: MsgCreateEcosystemResponse, writer?: _m0.Writer): _m0.Writer;
75
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateEcosystemResponse;
76
+ fromJSON(object: any): MsgCreateEcosystemResponse;
77
+ toJSON(message: MsgCreateEcosystemResponse): unknown;
78
+ create<I extends Exact<DeepPartial<MsgCreateEcosystemResponse>, I>>(base?: I): MsgCreateEcosystemResponse;
79
+ fromPartial<I extends Exact<DeepPartial<MsgCreateEcosystemResponse>, I>>(object: I): MsgCreateEcosystemResponse;
80
+ };
81
+ export declare const MsgUpdateEcosystem: {
82
+ encode(message: MsgUpdateEcosystem, writer?: _m0.Writer): _m0.Writer;
83
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateEcosystem;
84
+ fromJSON(object: any): MsgUpdateEcosystem;
85
+ toJSON(message: MsgUpdateEcosystem): unknown;
86
+ create<I extends Exact<DeepPartial<MsgUpdateEcosystem>, I>>(base?: I): MsgUpdateEcosystem;
87
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateEcosystem>, I>>(object: I): MsgUpdateEcosystem;
88
+ };
89
+ export declare const MsgUpdateEcosystemResponse: {
90
+ encode(_: MsgUpdateEcosystemResponse, writer?: _m0.Writer): _m0.Writer;
91
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateEcosystemResponse;
92
+ fromJSON(_: any): MsgUpdateEcosystemResponse;
93
+ toJSON(_: MsgUpdateEcosystemResponse): unknown;
94
+ create<I extends Exact<DeepPartial<MsgUpdateEcosystemResponse>, I>>(base?: I): MsgUpdateEcosystemResponse;
95
+ fromPartial<I extends Exact<DeepPartial<MsgUpdateEcosystemResponse>, I>>(_: I): MsgUpdateEcosystemResponse;
96
+ };
97
+ export declare const MsgArchiveEcosystem: {
98
+ encode(message: MsgArchiveEcosystem, writer?: _m0.Writer): _m0.Writer;
99
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgArchiveEcosystem;
100
+ fromJSON(object: any): MsgArchiveEcosystem;
101
+ toJSON(message: MsgArchiveEcosystem): unknown;
102
+ create<I extends Exact<DeepPartial<MsgArchiveEcosystem>, I>>(base?: I): MsgArchiveEcosystem;
103
+ fromPartial<I extends Exact<DeepPartial<MsgArchiveEcosystem>, I>>(object: I): MsgArchiveEcosystem;
104
+ };
105
+ export declare const MsgArchiveEcosystemResponse: {
106
+ encode(_: MsgArchiveEcosystemResponse, writer?: _m0.Writer): _m0.Writer;
107
+ decode(input: _m0.Reader | Uint8Array, length?: number): MsgArchiveEcosystemResponse;
108
+ fromJSON(_: any): MsgArchiveEcosystemResponse;
109
+ toJSON(_: MsgArchiveEcosystemResponse): unknown;
110
+ create<I extends Exact<DeepPartial<MsgArchiveEcosystemResponse>, I>>(base?: I): MsgArchiveEcosystemResponse;
111
+ fromPartial<I extends Exact<DeepPartial<MsgArchiveEcosystemResponse>, I>>(_: I): MsgArchiveEcosystemResponse;
112
+ };
113
+ /** Msg defines the Msg service. */
114
+ export interface Msg {
115
+ /**
116
+ * UpdateParams defines a (governance) operation for updating the module
117
+ * parameters. The authority defaults to the x/gov module account.
118
+ */
119
+ UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
120
+ /** [MOD-ES-MSG-1] Create New Ecosystem. */
121
+ CreateEcosystem(request: MsgCreateEcosystem): Promise<MsgCreateEcosystemResponse>;
122
+ /** [MOD-ES-MSG-2] Update Ecosystem (rotate did). */
123
+ UpdateEcosystem(request: MsgUpdateEcosystem): Promise<MsgUpdateEcosystemResponse>;
124
+ /** [MOD-ES-MSG-3] Archive/unarchive Ecosystem. */
125
+ ArchiveEcosystem(request: MsgArchiveEcosystem): Promise<MsgArchiveEcosystemResponse>;
126
+ }
127
+ export declare const MsgServiceName = "verana.ec.v1.Msg";
128
+ export declare class MsgClientImpl implements Msg {
129
+ private readonly rpc;
130
+ private readonly service;
131
+ constructor(rpc: Rpc, opts?: {
132
+ service?: string;
133
+ });
134
+ UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
135
+ CreateEcosystem(request: MsgCreateEcosystem): Promise<MsgCreateEcosystemResponse>;
136
+ UpdateEcosystem(request: MsgUpdateEcosystem): Promise<MsgUpdateEcosystemResponse>;
137
+ ArchiveEcosystem(request: MsgArchiveEcosystem): Promise<MsgArchiveEcosystemResponse>;
138
+ }
139
+ interface Rpc {
140
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
141
+ }
142
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
143
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
144
+ [K in keyof T]?: DeepPartial<T[K]>;
145
+ } : Partial<T>;
146
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
147
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
148
+ [K in keyof P]: Exact<P[K], I[K]>;
149
+ } & {
150
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
151
+ };
152
+ export {};