@agoric/cosmic-proto 0.3.1-other-dev-1f26562.0 → 0.3.1-u14.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 CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [0.3.1-u14.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/cosmic-proto@0.3.0...@agoric/cosmic-proto@0.3.1-u14.0) (2024-02-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * **cosmic-proto:** add vstorage query ([584fad3](https://github.com/Agoric/agoric-sdk/commit/584fad35b201d0de7f826aa2ed4d2815db1adc82))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **cosmic-proto:** add missing `cosmos_proto` dep ([e8e5d26](https://github.com/Agoric/agoric-sdk/commit/e8e5d2640040cf3a6ccd210c67906b175599b328))
17
+ * **cosmic-proto:** do not git ignore all generated files ([58a2810](https://github.com/Agoric/agoric-sdk/commit/58a2810952125a201d3f6b0f3289854909ae3858))
18
+
19
+
20
+
6
21
  ## [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
22
 
8
23
 
@@ -47,6 +47,13 @@ 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;
50
57
  }
51
58
  /**
52
59
  * MsgInstallBundleResponse is an empty acknowledgement that an install bundle
@@ -355,10 +362,91 @@ export declare const MsgInstallBundle: {
355
362
  I extends {
356
363
  bundle?: string | undefined;
357
364
  submitter?: Uint8Array | undefined;
365
+ compressedBundle?: Uint8Array | undefined;
366
+ uncompressedSize?: string | number | Long | undefined;
358
367
  } & {
359
368
  bundle?: string | undefined;
360
369
  submitter?: Uint8Array | undefined;
361
- } & { [K in Exclude<keyof I, keyof MsgInstallBundle>]: never },
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 },
362
450
  >(
363
451
  object: I,
364
452
  ): MsgInstallBundle;
@@ -446,7 +446,12 @@ export const MsgProvisionResponse = {
446
446
  },
447
447
  };
448
448
  function createBaseMsgInstallBundle() {
449
- return { bundle: '', submitter: new Uint8Array() };
449
+ return {
450
+ bundle: '',
451
+ submitter: new Uint8Array(),
452
+ compressedBundle: new Uint8Array(),
453
+ uncompressedSize: Long.ZERO,
454
+ };
450
455
  }
451
456
  export const MsgInstallBundle = {
452
457
  encode(message, writer = _m0.Writer.create()) {
@@ -456,6 +461,12 @@ export const MsgInstallBundle = {
456
461
  if (message.submitter.length !== 0) {
457
462
  writer.uint32(18).bytes(message.submitter);
458
463
  }
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
+ }
459
470
  return writer;
460
471
  },
461
472
  decode(input, length) {
@@ -471,6 +482,12 @@ export const MsgInstallBundle = {
471
482
  case 2:
472
483
  message.submitter = reader.bytes();
473
484
  break;
485
+ case 3:
486
+ message.compressedBundle = reader.bytes();
487
+ break;
488
+ case 4:
489
+ message.uncompressedSize = reader.int64();
490
+ break;
474
491
  default:
475
492
  reader.skipType(tag & 7);
476
493
  break;
@@ -484,6 +501,12 @@ export const MsgInstallBundle = {
484
501
  submitter: isSet(object.submitter)
485
502
  ? bytesFromBase64(object.submitter)
486
503
  : 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,
487
510
  };
488
511
  },
489
512
  toJSON(message) {
@@ -493,12 +516,27 @@ export const MsgInstallBundle = {
493
516
  (obj.submitter = base64FromBytes(
494
517
  message.submitter !== undefined ? message.submitter : new Uint8Array(),
495
518
  ));
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());
496
529
  return obj;
497
530
  },
498
531
  fromPartial(object) {
499
532
  const message = createBaseMsgInstallBundle();
500
533
  message.bundle = object.bundle ?? '';
501
534
  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;
502
540
  return message;
503
541
  },
504
542
  };
@@ -111,8 +111,13 @@ export interface Egress {
111
111
  /** TODO: Remove these power flags as they are deprecated and have no effect. */
112
112
  powerFlags: string[];
113
113
  }
114
- /** The payload messages used by swingset state-sync */
115
- export interface ExtensionSnapshotterArtifactPayload {
114
+ /**
115
+ * SwingStoreArtifact encodes an artifact of a swing-store export.
116
+ * Artifacts may be stored or transmitted in any order. Most handlers do
117
+ * maintain the artifact order from their original source as an effect of how
118
+ * they handle the artifacts.
119
+ */
120
+ export interface SwingStoreArtifact {
116
121
  name: string;
117
122
  data: Uint8Array;
118
123
  }
@@ -514,17 +519,11 @@ export declare const Egress: {
514
519
  object: I,
515
520
  ): Egress;
516
521
  };
517
- export declare const ExtensionSnapshotterArtifactPayload: {
518
- encode(
519
- message: ExtensionSnapshotterArtifactPayload,
520
- writer?: _m0.Writer,
521
- ): _m0.Writer;
522
- decode(
523
- input: _m0.Reader | Uint8Array,
524
- length?: number,
525
- ): ExtensionSnapshotterArtifactPayload;
526
- fromJSON(object: any): ExtensionSnapshotterArtifactPayload;
527
- toJSON(message: ExtensionSnapshotterArtifactPayload): unknown;
522
+ export declare const SwingStoreArtifact: {
523
+ encode(message: SwingStoreArtifact, writer?: _m0.Writer): _m0.Writer;
524
+ decode(input: _m0.Reader | Uint8Array, length?: number): SwingStoreArtifact;
525
+ fromJSON(object: any): SwingStoreArtifact;
526
+ toJSON(message: SwingStoreArtifact): unknown;
528
527
  fromPartial<
529
528
  I extends {
530
529
  name?: string | undefined;
@@ -532,12 +531,10 @@ export declare const ExtensionSnapshotterArtifactPayload: {
532
531
  } & {
533
532
  name?: string | undefined;
534
533
  data?: Uint8Array | undefined;
535
- } & {
536
- [K in Exclude<keyof I, keyof ExtensionSnapshotterArtifactPayload>]: never;
537
- },
534
+ } & { [K in Exclude<keyof I, keyof SwingStoreArtifact>]: never },
538
535
  >(
539
536
  object: I,
540
- ): ExtensionSnapshotterArtifactPayload;
537
+ ): SwingStoreArtifact;
541
538
  };
542
539
  declare type Builtin =
543
540
  | Date
@@ -540,10 +540,10 @@ export const Egress = {
540
540
  return message;
541
541
  },
542
542
  };
543
- function createBaseExtensionSnapshotterArtifactPayload() {
543
+ function createBaseSwingStoreArtifact() {
544
544
  return { name: '', data: new Uint8Array() };
545
545
  }
546
- export const ExtensionSnapshotterArtifactPayload = {
546
+ export const SwingStoreArtifact = {
547
547
  encode(message, writer = _m0.Writer.create()) {
548
548
  if (message.name !== '') {
549
549
  writer.uint32(10).string(message.name);
@@ -556,7 +556,7 @@ export const ExtensionSnapshotterArtifactPayload = {
556
556
  decode(input, length) {
557
557
  const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
558
558
  let end = length === undefined ? reader.len : reader.pos + length;
559
- const message = createBaseExtensionSnapshotterArtifactPayload();
559
+ const message = createBaseSwingStoreArtifact();
560
560
  while (reader.pos < end) {
561
561
  const tag = reader.uint32();
562
562
  switch (tag >>> 3) {
@@ -591,7 +591,7 @@ export const ExtensionSnapshotterArtifactPayload = {
591
591
  return obj;
592
592
  },
593
593
  fromPartial(object) {
594
- const message = createBaseExtensionSnapshotterArtifactPayload();
594
+ const message = createBaseSwingStoreArtifact();
595
595
  message.name = object.name ?? '';
596
596
  message.data = object.data ?? new Uint8Array();
597
597
  return message;