@agoric/cosmic-proto 0.3.1-dev-2b7c650.0 → 0.3.1-mainnet1B-dev-2d6b13f.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,41 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [0.3.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmic-proto@0.2.1...@agoric/cosmic-proto@0.3.0) (2023-05-19)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * build .d.ts instead of .ts
12
+
13
+ ### Features
14
+
15
+ * **cosmic-proto:** add state-sync artifacts proto ([4cc25f5](https://github.com/Agoric/agoric-sdk/commit/4cc25f56ba9e967039c2dff2cbb566eafb37aaea))
16
+ * build .d.ts instead of .ts ([b91d91a](https://github.com/Agoric/agoric-sdk/commit/b91d91a2651ccf5bbc4827fceca10fe04405c1b9))
17
+ * **cosmic-proto:** add query.proto ([b04636b](https://github.com/Agoric/agoric-sdk/commit/b04636b930dd633438983b4a5666307766687367))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * cosmic-proto exports ([36a1f8c](https://github.com/Agoric/agoric-sdk/commit/36a1f8ca1c52330c3065eb84dddde1550fee6b3f))
23
+ * exports map ([884a90f](https://github.com/Agoric/agoric-sdk/commit/884a90f101808f31d3f35b9d2b04fdcecfcc4bfd))
24
+ * include swingset/* file for export ([6bfb278](https://github.com/Agoric/agoric-sdk/commit/6bfb278a695963e96f0bf1d37f3181a91286b065))
25
+
26
+
27
+
28
+ ### [0.2.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmic-proto@0.2.0...@agoric/cosmic-proto@0.2.1) (2022-10-05)
29
+
30
+ **Note:** Version bump only for package @agoric/cosmic-proto
31
+
32
+
33
+
34
+
35
+
36
+ ## 0.2.0 (2022-09-20)
37
+
38
+
39
+ ### Features
40
+
41
+ * **cosmic-proto:** Implement swingset/msgs ([19c9f3f](https://github.com/Agoric/agoric-sdk/commit/19c9f3f0c933cc304d0dea6ee6d9aa28b27b008e))
@@ -47,13 +47,6 @@ export interface MsgProvisionResponse {}
47
47
  export interface MsgInstallBundle {
48
48
  bundle: string;
49
49
  submitter: Uint8Array;
50
- /**
51
- * Either bundle or compressed_bundle will be set.
52
- * Default compression algorithm is gzip.
53
- */
54
- compressedBundle: Uint8Array;
55
- /** Size in bytes of uncompression of compressed_bundle. */
56
- uncompressedSize: Long;
57
50
  }
58
51
  /**
59
52
  * MsgInstallBundleResponse is an empty acknowledgement that an install bundle
@@ -362,91 +355,10 @@ export declare const MsgInstallBundle: {
362
355
  I extends {
363
356
  bundle?: string | undefined;
364
357
  submitter?: Uint8Array | undefined;
365
- compressedBundle?: Uint8Array | undefined;
366
- uncompressedSize?: string | number | Long | undefined;
367
358
  } & {
368
359
  bundle?: string | undefined;
369
360
  submitter?: Uint8Array | undefined;
370
- compressedBundle?: Uint8Array | undefined;
371
- uncompressedSize?:
372
- | string
373
- | number
374
- | (Long & {
375
- high: number;
376
- low: number;
377
- unsigned: boolean;
378
- add: (addend: string | number | Long) => Long;
379
- and: (other: string | number | Long) => Long;
380
- compare: (other: string | number | Long) => number;
381
- comp: (other: string | number | Long) => number;
382
- divide: (divisor: string | number | Long) => Long;
383
- div: (divisor: string | number | Long) => Long;
384
- equals: (other: string | number | Long) => boolean;
385
- eq: (other: string | number | Long) => boolean;
386
- getHighBits: () => number;
387
- getHighBitsUnsigned: () => number;
388
- getLowBits: () => number;
389
- getLowBitsUnsigned: () => number;
390
- getNumBitsAbs: () => number;
391
- greaterThan: (other: string | number | Long) => boolean;
392
- gt: (other: string | number | Long) => boolean;
393
- greaterThanOrEqual: (other: string | number | Long) => boolean;
394
- gte: (other: string | number | Long) => boolean;
395
- ge: (other: string | number | Long) => boolean;
396
- isEven: () => boolean;
397
- isNegative: () => boolean;
398
- isOdd: () => boolean;
399
- isPositive: () => boolean;
400
- isZero: () => boolean;
401
- eqz: () => boolean;
402
- lessThan: (other: string | number | Long) => boolean;
403
- lt: (other: string | number | Long) => boolean;
404
- lessThanOrEqual: (other: string | number | Long) => boolean;
405
- lte: (other: string | number | Long) => boolean;
406
- le: (other: string | number | Long) => boolean;
407
- modulo: (other: string | number | Long) => Long;
408
- mod: (other: string | number | Long) => Long;
409
- rem: (other: string | number | Long) => Long;
410
- multiply: (multiplier: string | number | Long) => Long;
411
- mul: (multiplier: string | number | Long) => Long;
412
- negate: () => Long;
413
- neg: () => Long;
414
- not: () => Long;
415
- countLeadingZeros: () => number;
416
- clz: () => number;
417
- countTrailingZeros: () => number;
418
- ctz: () => number;
419
- notEquals: (other: string | number | Long) => boolean;
420
- neq: (other: string | number | Long) => boolean;
421
- ne: (other: string | number | Long) => boolean;
422
- or: (other: string | number | Long) => Long;
423
- shiftLeft: (numBits: number | Long) => Long;
424
- shl: (numBits: number | Long) => Long;
425
- shiftRight: (numBits: number | Long) => Long;
426
- shr: (numBits: number | Long) => Long;
427
- shiftRightUnsigned: (numBits: number | Long) => Long;
428
- shru: (numBits: number | Long) => Long;
429
- shr_u: (numBits: number | Long) => Long;
430
- rotateLeft: (numBits: number | Long) => Long;
431
- rotl: (numBits: number | Long) => Long;
432
- rotateRight: (numBits: number | Long) => Long;
433
- rotr: (numBits: number | Long) => Long;
434
- subtract: (subtrahend: string | number | Long) => Long;
435
- sub: (subtrahend: string | number | Long) => Long;
436
- toInt: () => number;
437
- toNumber: () => number;
438
- toBytes: (le?: boolean | undefined) => number[];
439
- toBytesLE: () => number[];
440
- toBytesBE: () => number[];
441
- toSigned: () => Long;
442
- toString: (radix?: number | undefined) => string;
443
- toUnsigned: () => Long;
444
- xor: (other: string | number | Long) => Long;
445
- } & {
446
- [K in Exclude<keyof I['uncompressedSize'], keyof Long>]: never;
447
- })
448
- | undefined;
449
- } & { [K_1 in Exclude<keyof I, keyof MsgInstallBundle>]: never },
361
+ } & { [K in Exclude<keyof I, keyof MsgInstallBundle>]: never },
450
362
  >(
451
363
  object: I,
452
364
  ): MsgInstallBundle;
@@ -506,7 +418,7 @@ interface Rpc {
506
418
  data: Uint8Array,
507
419
  ): Promise<Uint8Array>;
508
420
  }
509
- type Builtin =
421
+ declare type Builtin =
510
422
  | Date
511
423
  | Function
512
424
  | Uint8Array
@@ -514,7 +426,7 @@ type Builtin =
514
426
  | number
515
427
  | boolean
516
428
  | undefined;
517
- export type DeepPartial<T> = T extends Builtin
429
+ export declare type DeepPartial<T> = T extends Builtin
518
430
  ? T
519
431
  : T extends Long
520
432
  ? string | number | Long
@@ -527,8 +439,8 @@ export type DeepPartial<T> = T extends Builtin
527
439
  [K in keyof T]?: DeepPartial<T[K]>;
528
440
  }
529
441
  : Partial<T>;
530
- type KeysOfUnion<T> = T extends T ? keyof T : never;
531
- export type Exact<P, I extends P> = P extends Builtin
442
+ declare type KeysOfUnion<T> = T extends T ? keyof T : never;
443
+ export declare type Exact<P, I extends P> = P extends Builtin
532
444
  ? P
533
445
  : P & {
534
446
  [K in keyof P]: Exact<P[K], I[K]>;
@@ -64,10 +64,10 @@ export const MsgDeliverInbound = {
64
64
  fromJSON(object) {
65
65
  return {
66
66
  messages: Array.isArray(object?.messages)
67
- ? object.messages.map(e => String(e))
67
+ ? object.messages.map((e) => String(e))
68
68
  : [],
69
69
  nums: Array.isArray(object?.nums)
70
- ? object.nums.map(e => Long.fromValue(e))
70
+ ? object.nums.map((e) => Long.fromValue(e))
71
71
  : [],
72
72
  ack: isSet(object.ack) ? Long.fromValue(object.ack) : Long.UZERO,
73
73
  submitter: isSet(object.submitter)
@@ -78,12 +78,12 @@ export const MsgDeliverInbound = {
78
78
  toJSON(message) {
79
79
  const obj = {};
80
80
  if (message.messages) {
81
- obj.messages = message.messages.map(e => e);
81
+ obj.messages = message.messages.map((e) => e);
82
82
  } else {
83
83
  obj.messages = [];
84
84
  }
85
85
  if (message.nums) {
86
- obj.nums = message.nums.map(e => (e || Long.UZERO).toString());
86
+ obj.nums = message.nums.map((e) => (e || Long.UZERO).toString());
87
87
  } else {
88
88
  obj.nums = [];
89
89
  }
@@ -97,8 +97,8 @@ export const MsgDeliverInbound = {
97
97
  },
98
98
  fromPartial(object) {
99
99
  const message = createBaseMsgDeliverInbound();
100
- message.messages = object.messages?.map(e => e) || [];
101
- message.nums = object.nums?.map(e => Long.fromValue(e)) || [];
100
+ message.messages = object.messages?.map((e) => e) || [];
101
+ message.nums = object.nums?.map((e) => Long.fromValue(e)) || [];
102
102
  message.ack =
103
103
  object.ack !== undefined && object.ack !== null
104
104
  ? Long.fromValue(object.ack)
@@ -378,7 +378,7 @@ export const MsgProvision = {
378
378
  ? bytesFromBase64(object.address)
379
379
  : new Uint8Array(),
380
380
  powerFlags: Array.isArray(object?.powerFlags)
381
- ? object.powerFlags.map(e => String(e))
381
+ ? object.powerFlags.map((e) => String(e))
382
382
  : [],
383
383
  submitter: isSet(object.submitter)
384
384
  ? bytesFromBase64(object.submitter)
@@ -393,7 +393,7 @@ export const MsgProvision = {
393
393
  message.address !== undefined ? message.address : new Uint8Array(),
394
394
  ));
395
395
  if (message.powerFlags) {
396
- obj.powerFlags = message.powerFlags.map(e => e);
396
+ obj.powerFlags = message.powerFlags.map((e) => e);
397
397
  } else {
398
398
  obj.powerFlags = [];
399
399
  }
@@ -407,7 +407,7 @@ export const MsgProvision = {
407
407
  const message = createBaseMsgProvision();
408
408
  message.nickname = object.nickname ?? '';
409
409
  message.address = object.address ?? new Uint8Array();
410
- message.powerFlags = object.powerFlags?.map(e => e) || [];
410
+ message.powerFlags = object.powerFlags?.map((e) => e) || [];
411
411
  message.submitter = object.submitter ?? new Uint8Array();
412
412
  return message;
413
413
  },
@@ -446,12 +446,7 @@ export const MsgProvisionResponse = {
446
446
  },
447
447
  };
448
448
  function createBaseMsgInstallBundle() {
449
- return {
450
- bundle: '',
451
- submitter: new Uint8Array(),
452
- compressedBundle: new Uint8Array(),
453
- uncompressedSize: Long.ZERO,
454
- };
449
+ return { bundle: '', submitter: new Uint8Array() };
455
450
  }
456
451
  export const MsgInstallBundle = {
457
452
  encode(message, writer = _m0.Writer.create()) {
@@ -461,12 +456,6 @@ export const MsgInstallBundle = {
461
456
  if (message.submitter.length !== 0) {
462
457
  writer.uint32(18).bytes(message.submitter);
463
458
  }
464
- if (message.compressedBundle.length !== 0) {
465
- writer.uint32(26).bytes(message.compressedBundle);
466
- }
467
- if (!message.uncompressedSize.isZero()) {
468
- writer.uint32(32).int64(message.uncompressedSize);
469
- }
470
459
  return writer;
471
460
  },
472
461
  decode(input, length) {
@@ -482,12 +471,6 @@ export const MsgInstallBundle = {
482
471
  case 2:
483
472
  message.submitter = reader.bytes();
484
473
  break;
485
- case 3:
486
- message.compressedBundle = reader.bytes();
487
- break;
488
- case 4:
489
- message.uncompressedSize = reader.int64();
490
- break;
491
474
  default:
492
475
  reader.skipType(tag & 7);
493
476
  break;
@@ -501,12 +484,6 @@ export const MsgInstallBundle = {
501
484
  submitter: isSet(object.submitter)
502
485
  ? bytesFromBase64(object.submitter)
503
486
  : new Uint8Array(),
504
- compressedBundle: isSet(object.compressedBundle)
505
- ? bytesFromBase64(object.compressedBundle)
506
- : new Uint8Array(),
507
- uncompressedSize: isSet(object.uncompressedSize)
508
- ? Long.fromValue(object.uncompressedSize)
509
- : Long.ZERO,
510
487
  };
511
488
  },
512
489
  toJSON(message) {
@@ -516,27 +493,12 @@ export const MsgInstallBundle = {
516
493
  (obj.submitter = base64FromBytes(
517
494
  message.submitter !== undefined ? message.submitter : new Uint8Array(),
518
495
  ));
519
- message.compressedBundle !== undefined &&
520
- (obj.compressedBundle = base64FromBytes(
521
- message.compressedBundle !== undefined
522
- ? message.compressedBundle
523
- : new Uint8Array(),
524
- ));
525
- message.uncompressedSize !== undefined &&
526
- (obj.uncompressedSize = (
527
- message.uncompressedSize || Long.ZERO
528
- ).toString());
529
496
  return obj;
530
497
  },
531
498
  fromPartial(object) {
532
499
  const message = createBaseMsgInstallBundle();
533
500
  message.bundle = object.bundle ?? '';
534
501
  message.submitter = object.submitter ?? new Uint8Array();
535
- message.compressedBundle = object.compressedBundle ?? new Uint8Array();
536
- message.uncompressedSize =
537
- object.uncompressedSize !== undefined && object.uncompressedSize !== null
538
- ? Long.fromValue(object.uncompressedSize)
539
- : Long.ZERO;
540
502
  return message;
541
503
  },
542
504
  };
@@ -588,35 +550,35 @@ export class MsgClientImpl {
588
550
  InstallBundle(request) {
589
551
  const data = MsgInstallBundle.encode(request).finish();
590
552
  const promise = this.rpc.request(this.service, 'InstallBundle', data);
591
- return promise.then(data =>
553
+ return promise.then((data) =>
592
554
  MsgInstallBundleResponse.decode(new _m0.Reader(data)),
593
555
  );
594
556
  }
595
557
  DeliverInbound(request) {
596
558
  const data = MsgDeliverInbound.encode(request).finish();
597
559
  const promise = this.rpc.request(this.service, 'DeliverInbound', data);
598
- return promise.then(data =>
560
+ return promise.then((data) =>
599
561
  MsgDeliverInboundResponse.decode(new _m0.Reader(data)),
600
562
  );
601
563
  }
602
564
  WalletAction(request) {
603
565
  const data = MsgWalletAction.encode(request).finish();
604
566
  const promise = this.rpc.request(this.service, 'WalletAction', data);
605
- return promise.then(data =>
567
+ return promise.then((data) =>
606
568
  MsgWalletActionResponse.decode(new _m0.Reader(data)),
607
569
  );
608
570
  }
609
571
  WalletSpendAction(request) {
610
572
  const data = MsgWalletSpendAction.encode(request).finish();
611
573
  const promise = this.rpc.request(this.service, 'WalletSpendAction', data);
612
- return promise.then(data =>
574
+ return promise.then((data) =>
613
575
  MsgWalletSpendActionResponse.decode(new _m0.Reader(data)),
614
576
  );
615
577
  }
616
578
  Provision(request) {
617
579
  const data = MsgProvision.encode(request).finish();
618
580
  const promise = this.rpc.request(this.service, 'Provision', data);
619
- return promise.then(data =>
581
+ return promise.then((data) =>
620
582
  MsgProvisionResponse.decode(new _m0.Reader(data)),
621
583
  );
622
584
  }
@@ -653,7 +615,7 @@ function base64FromBytes(arr) {
653
615
  return globalThis.Buffer.from(arr).toString('base64');
654
616
  } else {
655
617
  const bin = [];
656
- arr.forEach(byte => {
618
+ arr.forEach((byte) => {
657
619
  bin.push(String.fromCharCode(byte));
658
620
  });
659
621
  return globalThis.btoa(bin.join(''));
@@ -374,7 +374,7 @@ interface Rpc {
374
374
  data: Uint8Array,
375
375
  ): Promise<Uint8Array>;
376
376
  }
377
- type Builtin =
377
+ declare type Builtin =
378
378
  | Date
379
379
  | Function
380
380
  | Uint8Array
@@ -382,7 +382,7 @@ type Builtin =
382
382
  | number
383
383
  | boolean
384
384
  | undefined;
385
- export type DeepPartial<T> = T extends Builtin
385
+ export declare type DeepPartial<T> = T extends Builtin
386
386
  ? T
387
387
  : T extends Long
388
388
  ? string | number | Long
@@ -395,8 +395,8 @@ export type DeepPartial<T> = T extends Builtin
395
395
  [K in keyof T]?: DeepPartial<T[K]>;
396
396
  }
397
397
  : Partial<T>;
398
- type KeysOfUnion<T> = T extends T ? keyof T : never;
399
- export type Exact<P, I extends P> = P extends Builtin
398
+ declare type KeysOfUnion<T> = T extends T ? keyof T : never;
399
+ export declare type Exact<P, I extends P> = P extends Builtin
400
400
  ? P
401
401
  : P & {
402
402
  [K in keyof P]: Exact<P[K], I[K]>;
@@ -280,21 +280,21 @@ export class QueryClientImpl {
280
280
  Params(request) {
281
281
  const data = QueryParamsRequest.encode(request).finish();
282
282
  const promise = this.rpc.request(this.service, 'Params', data);
283
- return promise.then(data =>
283
+ return promise.then((data) =>
284
284
  QueryParamsResponse.decode(new _m0.Reader(data)),
285
285
  );
286
286
  }
287
287
  Egress(request) {
288
288
  const data = QueryEgressRequest.encode(request).finish();
289
289
  const promise = this.rpc.request(this.service, 'Egress', data);
290
- return promise.then(data =>
290
+ return promise.then((data) =>
291
291
  QueryEgressResponse.decode(new _m0.Reader(data)),
292
292
  );
293
293
  }
294
294
  Mailbox(request) {
295
295
  const data = QueryMailboxRequest.encode(request).finish();
296
296
  const promise = this.rpc.request(this.service, 'Mailbox', data);
297
- return promise.then(data =>
297
+ return promise.then((data) =>
298
298
  QueryMailboxResponse.decode(new _m0.Reader(data)),
299
299
  );
300
300
  }
@@ -331,7 +331,7 @@ function base64FromBytes(arr) {
331
331
  return globalThis.Buffer.from(arr).toString('base64');
332
332
  } else {
333
333
  const bin = [];
334
- arr.forEach(byte => {
334
+ arr.forEach((byte) => {
335
335
  bin.push(String.fromCharCode(byte));
336
336
  });
337
337
  return globalThis.btoa(bin.join(''));
@@ -539,7 +539,7 @@ export declare const ExtensionSnapshotterArtifactPayload: {
539
539
  object: I,
540
540
  ): ExtensionSnapshotterArtifactPayload;
541
541
  };
542
- type Builtin =
542
+ declare type Builtin =
543
543
  | Date
544
544
  | Function
545
545
  | Uint8Array
@@ -547,7 +547,7 @@ type Builtin =
547
547
  | number
548
548
  | boolean
549
549
  | undefined;
550
- export type DeepPartial<T> = T extends Builtin
550
+ export declare type DeepPartial<T> = T extends Builtin
551
551
  ? T
552
552
  : T extends Long
553
553
  ? string | number | Long
@@ -560,8 +560,8 @@ export type DeepPartial<T> = T extends Builtin
560
560
  [K in keyof T]?: DeepPartial<T[K]>;
561
561
  }
562
562
  : Partial<T>;
563
- type KeysOfUnion<T> = T extends T ? keyof T : never;
564
- export type Exact<P, I extends P> = P extends Builtin
563
+ declare type KeysOfUnion<T> = T extends T ? keyof T : never;
564
+ export declare type Exact<P, I extends P> = P extends Builtin
565
565
  ? P
566
566
  : P & {
567
567
  [K in keyof P]: Exact<P[K], I[K]>;
@@ -47,7 +47,7 @@ export const CoreEvalProposal = {
47
47
  title: isSet(object.title) ? String(object.title) : '',
48
48
  description: isSet(object.description) ? String(object.description) : '',
49
49
  evals: Array.isArray(object?.evals)
50
- ? object.evals.map(e => CoreEval.fromJSON(e))
50
+ ? object.evals.map((e) => CoreEval.fromJSON(e))
51
51
  : [],
52
52
  };
53
53
  },
@@ -57,7 +57,9 @@ export const CoreEvalProposal = {
57
57
  message.description !== undefined &&
58
58
  (obj.description = message.description);
59
59
  if (message.evals) {
60
- obj.evals = message.evals.map(e => (e ? CoreEval.toJSON(e) : undefined));
60
+ obj.evals = message.evals.map((e) =>
61
+ e ? CoreEval.toJSON(e) : undefined,
62
+ );
61
63
  } else {
62
64
  obj.evals = [];
63
65
  }
@@ -67,7 +69,7 @@ export const CoreEvalProposal = {
67
69
  const message = createBaseCoreEvalProposal();
68
70
  message.title = object.title ?? '';
69
71
  message.description = object.description ?? '';
70
- message.evals = object.evals?.map(e => CoreEval.fromPartial(e)) || [];
72
+ message.evals = object.evals?.map((e) => CoreEval.fromPartial(e)) || [];
71
73
  return message;
72
74
  },
73
75
  };
@@ -188,33 +190,33 @@ export const Params = {
188
190
  fromJSON(object) {
189
191
  return {
190
192
  beansPerUnit: Array.isArray(object?.beansPerUnit)
191
- ? object.beansPerUnit.map(e => StringBeans.fromJSON(e))
193
+ ? object.beansPerUnit.map((e) => StringBeans.fromJSON(e))
192
194
  : [],
193
195
  feeUnitPrice: Array.isArray(object?.feeUnitPrice)
194
- ? object.feeUnitPrice.map(e => Coin.fromJSON(e))
196
+ ? object.feeUnitPrice.map((e) => Coin.fromJSON(e))
195
197
  : [],
196
198
  bootstrapVatConfig: isSet(object.bootstrapVatConfig)
197
199
  ? String(object.bootstrapVatConfig)
198
200
  : '',
199
201
  powerFlagFees: Array.isArray(object?.powerFlagFees)
200
- ? object.powerFlagFees.map(e => PowerFlagFee.fromJSON(e))
202
+ ? object.powerFlagFees.map((e) => PowerFlagFee.fromJSON(e))
201
203
  : [],
202
204
  queueMax: Array.isArray(object?.queueMax)
203
- ? object.queueMax.map(e => QueueSize.fromJSON(e))
205
+ ? object.queueMax.map((e) => QueueSize.fromJSON(e))
204
206
  : [],
205
207
  };
206
208
  },
207
209
  toJSON(message) {
208
210
  const obj = {};
209
211
  if (message.beansPerUnit) {
210
- obj.beansPerUnit = message.beansPerUnit.map(e =>
212
+ obj.beansPerUnit = message.beansPerUnit.map((e) =>
211
213
  e ? StringBeans.toJSON(e) : undefined,
212
214
  );
213
215
  } else {
214
216
  obj.beansPerUnit = [];
215
217
  }
216
218
  if (message.feeUnitPrice) {
217
- obj.feeUnitPrice = message.feeUnitPrice.map(e =>
219
+ obj.feeUnitPrice = message.feeUnitPrice.map((e) =>
218
220
  e ? Coin.toJSON(e) : undefined,
219
221
  );
220
222
  } else {
@@ -223,14 +225,14 @@ export const Params = {
223
225
  message.bootstrapVatConfig !== undefined &&
224
226
  (obj.bootstrapVatConfig = message.bootstrapVatConfig);
225
227
  if (message.powerFlagFees) {
226
- obj.powerFlagFees = message.powerFlagFees.map(e =>
228
+ obj.powerFlagFees = message.powerFlagFees.map((e) =>
227
229
  e ? PowerFlagFee.toJSON(e) : undefined,
228
230
  );
229
231
  } else {
230
232
  obj.powerFlagFees = [];
231
233
  }
232
234
  if (message.queueMax) {
233
- obj.queueMax = message.queueMax.map(e =>
235
+ obj.queueMax = message.queueMax.map((e) =>
234
236
  e ? QueueSize.toJSON(e) : undefined,
235
237
  );
236
238
  } else {
@@ -241,14 +243,14 @@ export const Params = {
241
243
  fromPartial(object) {
242
244
  const message = createBaseParams();
243
245
  message.beansPerUnit =
244
- object.beansPerUnit?.map(e => StringBeans.fromPartial(e)) || [];
246
+ object.beansPerUnit?.map((e) => StringBeans.fromPartial(e)) || [];
245
247
  message.feeUnitPrice =
246
- object.feeUnitPrice?.map(e => Coin.fromPartial(e)) || [];
248
+ object.feeUnitPrice?.map((e) => Coin.fromPartial(e)) || [];
247
249
  message.bootstrapVatConfig = object.bootstrapVatConfig ?? '';
248
250
  message.powerFlagFees =
249
- object.powerFlagFees?.map(e => PowerFlagFee.fromPartial(e)) || [];
251
+ object.powerFlagFees?.map((e) => PowerFlagFee.fromPartial(e)) || [];
250
252
  message.queueMax =
251
- object.queueMax?.map(e => QueueSize.fromPartial(e)) || [];
253
+ object.queueMax?.map((e) => QueueSize.fromPartial(e)) || [];
252
254
  return message;
253
255
  },
254
256
  };
@@ -282,14 +284,14 @@ export const State = {
282
284
  fromJSON(object) {
283
285
  return {
284
286
  queueAllowed: Array.isArray(object?.queueAllowed)
285
- ? object.queueAllowed.map(e => QueueSize.fromJSON(e))
287
+ ? object.queueAllowed.map((e) => QueueSize.fromJSON(e))
286
288
  : [],
287
289
  };
288
290
  },
289
291
  toJSON(message) {
290
292
  const obj = {};
291
293
  if (message.queueAllowed) {
292
- obj.queueAllowed = message.queueAllowed.map(e =>
294
+ obj.queueAllowed = message.queueAllowed.map((e) =>
293
295
  e ? QueueSize.toJSON(e) : undefined,
294
296
  );
295
297
  } else {
@@ -300,7 +302,7 @@ export const State = {
300
302
  fromPartial(object) {
301
303
  const message = createBaseState();
302
304
  message.queueAllowed =
303
- object.queueAllowed?.map(e => QueueSize.fromPartial(e)) || [];
305
+ object.queueAllowed?.map((e) => QueueSize.fromPartial(e)) || [];
304
306
  return message;
305
307
  },
306
308
  };
@@ -393,7 +395,7 @@ export const PowerFlagFee = {
393
395
  return {
394
396
  powerFlag: isSet(object.powerFlag) ? String(object.powerFlag) : '',
395
397
  fee: Array.isArray(object?.fee)
396
- ? object.fee.map(e => Coin.fromJSON(e))
398
+ ? object.fee.map((e) => Coin.fromJSON(e))
397
399
  : [],
398
400
  };
399
401
  },
@@ -401,7 +403,7 @@ export const PowerFlagFee = {
401
403
  const obj = {};
402
404
  message.powerFlag !== undefined && (obj.powerFlag = message.powerFlag);
403
405
  if (message.fee) {
404
- obj.fee = message.fee.map(e => (e ? Coin.toJSON(e) : undefined));
406
+ obj.fee = message.fee.map((e) => (e ? Coin.toJSON(e) : undefined));
405
407
  } else {
406
408
  obj.fee = [];
407
409
  }
@@ -410,7 +412,7 @@ export const PowerFlagFee = {
410
412
  fromPartial(object) {
411
413
  const message = createBasePowerFlagFee();
412
414
  message.powerFlag = object.powerFlag ?? '';
413
- message.fee = object.fee?.map(e => Coin.fromPartial(e)) || [];
415
+ message.fee = object.fee?.map((e) => Coin.fromPartial(e)) || [];
414
416
  return message;
415
417
  },
416
418
  };
@@ -512,7 +514,7 @@ export const Egress = {
512
514
  ? bytesFromBase64(object.peer)
513
515
  : new Uint8Array(),
514
516
  powerFlags: Array.isArray(object?.powerFlags)
515
- ? object.powerFlags.map(e => String(e))
517
+ ? object.powerFlags.map((e) => String(e))
516
518
  : [],
517
519
  };
518
520
  },
@@ -524,7 +526,7 @@ export const Egress = {
524
526
  message.peer !== undefined ? message.peer : new Uint8Array(),
525
527
  ));
526
528
  if (message.powerFlags) {
527
- obj.powerFlags = message.powerFlags.map(e => e);
529
+ obj.powerFlags = message.powerFlags.map((e) => e);
528
530
  } else {
529
531
  obj.powerFlags = [];
530
532
  }
@@ -534,7 +536,7 @@ export const Egress = {
534
536
  const message = createBaseEgress();
535
537
  message.nickname = object.nickname ?? '';
536
538
  message.peer = object.peer ?? new Uint8Array();
537
- message.powerFlags = object.powerFlags?.map(e => e) || [];
539
+ message.powerFlags = object.powerFlags?.map((e) => e) || [];
538
540
  return message;
539
541
  },
540
542
  };
@@ -627,7 +629,7 @@ function base64FromBytes(arr) {
627
629
  return globalThis.Buffer.from(arr).toString('base64');
628
630
  } else {
629
631
  const bin = [];
630
- arr.forEach(byte => {
632
+ arr.forEach((byte) => {
631
633
  bin.push(String.fromCharCode(byte));
632
634
  });
633
635
  return globalThis.btoa(bin.join(''));
@@ -77,12 +77,12 @@ export declare const DecProto: {
77
77
  dec?: string | undefined;
78
78
  } & { [K in Exclude<keyof I, "dec">]: never; }>(object: I): DecProto;
79
79
  };
80
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
81
- export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
80
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
81
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
82
82
  [K in keyof T]?: DeepPartial<T[K]>;
83
83
  } : Partial<T>;
84
- type KeysOfUnion<T> = T extends T ? keyof T : never;
85
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
84
+ declare type KeysOfUnion<T> = T extends T ? keyof T : never;
85
+ export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
86
86
  [K in keyof P]: Exact<P[K], I[K]>;
87
87
  } & {
88
88
  [K in Exclude<keyof I, KeysOfUnion<P>>]: never;