@agoric/cosmic-proto 0.4.1-dev-a29afed.0.a29afed → 0.4.1-dev-cb1866d.0.cb1866d

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.
@@ -13,6 +13,10 @@ import * as _12 from './vstorage/vstorage.js';
13
13
  import * as _13 from './vtransfer/genesis.js';
14
14
  export declare namespace agoric {
15
15
  const swingset: {
16
+ chunkStateFromJSON(object: any): _3.ChunkState;
17
+ chunkStateToJSON(object: _3.ChunkState): string;
18
+ ChunkState: typeof _3.ChunkState;
19
+ ChunkStateSDKType: typeof _3.ChunkState;
16
20
  CoreEvalProposal: {
17
21
  typeUrl: "/agoric.swingset.CoreEvalProposal";
18
22
  encode(message: _3.CoreEvalProposal, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
@@ -123,6 +127,39 @@ export declare namespace agoric {
123
127
  toProto(message: _3.SwingStoreArtifact): Uint8Array;
124
128
  toProtoMsg(message: _3.SwingStoreArtifact): _3.SwingStoreArtifactProtoMsg;
125
129
  };
130
+ ChunkedArtifact: {
131
+ typeUrl: "/agoric.swingset.ChunkedArtifact";
132
+ encode(message: _3.ChunkedArtifact, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
133
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _3.ChunkedArtifact;
134
+ fromJSON(object: any): _3.ChunkedArtifact;
135
+ toJSON(message: _3.ChunkedArtifact): import("../json-safe.ts").JsonSafe<_3.ChunkedArtifact>;
136
+ fromPartial(object: Partial<_3.ChunkedArtifact>): _3.ChunkedArtifact;
137
+ fromProtoMsg(message: _3.ChunkedArtifactProtoMsg): _3.ChunkedArtifact;
138
+ toProto(message: _3.ChunkedArtifact): Uint8Array;
139
+ toProtoMsg(message: _3.ChunkedArtifact): _3.ChunkedArtifactProtoMsg;
140
+ };
141
+ ChunkInfo: {
142
+ typeUrl: "/agoric.swingset.ChunkInfo";
143
+ encode(message: _3.ChunkInfo, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
144
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _3.ChunkInfo;
145
+ fromJSON(object: any): _3.ChunkInfo;
146
+ toJSON(message: _3.ChunkInfo): import("../json-safe.ts").JsonSafe<_3.ChunkInfo>;
147
+ fromPartial(object: Partial<_3.ChunkInfo>): _3.ChunkInfo;
148
+ fromProtoMsg(message: _3.ChunkInfoProtoMsg): _3.ChunkInfo;
149
+ toProto(message: _3.ChunkInfo): Uint8Array;
150
+ toProtoMsg(message: _3.ChunkInfo): _3.ChunkInfoProtoMsg;
151
+ };
152
+ ChunkedArtifactNode: {
153
+ typeUrl: "/agoric.swingset.ChunkedArtifactNode";
154
+ encode(message: _3.ChunkedArtifactNode, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
155
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _3.ChunkedArtifactNode;
156
+ fromJSON(object: any): _3.ChunkedArtifactNode;
157
+ toJSON(message: _3.ChunkedArtifactNode): import("../json-safe.ts").JsonSafe<_3.ChunkedArtifactNode>;
158
+ fromPartial(object: Partial<_3.ChunkedArtifactNode>): _3.ChunkedArtifactNode;
159
+ fromProtoMsg(message: _3.ChunkedArtifactNodeProtoMsg): _3.ChunkedArtifactNode;
160
+ toProto(message: _3.ChunkedArtifactNode): Uint8Array;
161
+ toProtoMsg(message: _3.ChunkedArtifactNode): _3.ChunkedArtifactNodeProtoMsg;
162
+ };
126
163
  QueryParamsRequest: {
127
164
  typeUrl: "/agoric.swingset.QueryParamsRequest";
128
165
  encode(_: _2.QueryParamsRequest, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
@@ -189,6 +226,28 @@ export declare namespace agoric {
189
226
  toProto(message: _2.QueryMailboxResponse): Uint8Array;
190
227
  toProtoMsg(message: _2.QueryMailboxResponse): _2.QueryMailboxResponseProtoMsg;
191
228
  };
229
+ QueryChunkedArtifactStatusRequest: {
230
+ typeUrl: "/agoric.swingset.QueryChunkedArtifactStatusRequest";
231
+ encode(message: _2.QueryChunkedArtifactStatusRequest, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
232
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _2.QueryChunkedArtifactStatusRequest;
233
+ fromJSON(object: any): _2.QueryChunkedArtifactStatusRequest;
234
+ toJSON(message: _2.QueryChunkedArtifactStatusRequest): import("../json-safe.ts").JsonSafe<_2.QueryChunkedArtifactStatusRequest>;
235
+ fromPartial(object: Partial<_2.QueryChunkedArtifactStatusRequest>): _2.QueryChunkedArtifactStatusRequest;
236
+ fromProtoMsg(message: _2.QueryChunkedArtifactStatusRequestProtoMsg): _2.QueryChunkedArtifactStatusRequest;
237
+ toProto(message: _2.QueryChunkedArtifactStatusRequest): Uint8Array;
238
+ toProtoMsg(message: _2.QueryChunkedArtifactStatusRequest): _2.QueryChunkedArtifactStatusRequestProtoMsg;
239
+ };
240
+ QueryChunkedArtifactStatusResponse: {
241
+ typeUrl: "/agoric.swingset.QueryChunkedArtifactStatusResponse";
242
+ encode(message: _2.QueryChunkedArtifactStatusResponse, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
243
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _2.QueryChunkedArtifactStatusResponse;
244
+ fromJSON(object: any): _2.QueryChunkedArtifactStatusResponse;
245
+ toJSON(message: _2.QueryChunkedArtifactStatusResponse): import("../json-safe.ts").JsonSafe<_2.QueryChunkedArtifactStatusResponse>;
246
+ fromPartial(object: Partial<_2.QueryChunkedArtifactStatusResponse>): _2.QueryChunkedArtifactStatusResponse;
247
+ fromProtoMsg(message: _2.QueryChunkedArtifactStatusResponseProtoMsg): _2.QueryChunkedArtifactStatusResponse;
248
+ toProto(message: _2.QueryChunkedArtifactStatusResponse): Uint8Array;
249
+ toProtoMsg(message: _2.QueryChunkedArtifactStatusResponse): _2.QueryChunkedArtifactStatusResponseProtoMsg;
250
+ };
192
251
  MsgDeliverInbound: {
193
252
  typeUrl: "/agoric.swingset.MsgDeliverInbound";
194
253
  encode(message: _1.MsgDeliverInbound, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
@@ -288,17 +347,6 @@ export declare namespace agoric {
288
347
  toProto(message: _1.MsgInstallBundle): Uint8Array;
289
348
  toProtoMsg(message: _1.MsgInstallBundle): _1.MsgInstallBundleProtoMsg;
290
349
  };
291
- MsgInstallBundleResponse: {
292
- typeUrl: "/agoric.swingset.MsgInstallBundleResponse";
293
- encode(_: _1.MsgInstallBundleResponse, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
294
- decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _1.MsgInstallBundleResponse;
295
- fromJSON(_: any): _1.MsgInstallBundleResponse;
296
- toJSON(_: _1.MsgInstallBundleResponse): import("../json-safe.ts").JsonSafe<_1.MsgInstallBundleResponse>;
297
- fromPartial(_: Partial<_1.MsgInstallBundleResponse>): _1.MsgInstallBundleResponse;
298
- fromProtoMsg(message: _1.MsgInstallBundleResponseProtoMsg): _1.MsgInstallBundleResponse;
299
- toProto(message: _1.MsgInstallBundleResponse): Uint8Array;
300
- toProtoMsg(message: _1.MsgInstallBundleResponse): _1.MsgInstallBundleResponseProtoMsg;
301
- };
302
350
  MsgCoreEval: {
303
351
  typeUrl: "/agoric.swingset.MsgCoreEval";
304
352
  encode(message: _1.MsgCoreEval, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
@@ -321,6 +369,39 @@ export declare namespace agoric {
321
369
  toProto(message: _1.MsgCoreEvalResponse): Uint8Array;
322
370
  toProtoMsg(message: _1.MsgCoreEvalResponse): _1.MsgCoreEvalResponseProtoMsg;
323
371
  };
372
+ MsgInstallBundleResponse: {
373
+ typeUrl: "/agoric.swingset.MsgInstallBundleResponse";
374
+ encode(message: _1.MsgInstallBundleResponse, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
375
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _1.MsgInstallBundleResponse;
376
+ fromJSON(object: any): _1.MsgInstallBundleResponse;
377
+ toJSON(message: _1.MsgInstallBundleResponse): import("../json-safe.ts").JsonSafe<_1.MsgInstallBundleResponse>;
378
+ fromPartial(object: Partial<_1.MsgInstallBundleResponse>): _1.MsgInstallBundleResponse;
379
+ fromProtoMsg(message: _1.MsgInstallBundleResponseProtoMsg): _1.MsgInstallBundleResponse;
380
+ toProto(message: _1.MsgInstallBundleResponse): Uint8Array;
381
+ toProtoMsg(message: _1.MsgInstallBundleResponse): _1.MsgInstallBundleResponseProtoMsg;
382
+ };
383
+ MsgSendChunk: {
384
+ typeUrl: "/agoric.swingset.MsgSendChunk";
385
+ encode(message: _1.MsgSendChunk, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
386
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _1.MsgSendChunk;
387
+ fromJSON(object: any): _1.MsgSendChunk;
388
+ toJSON(message: _1.MsgSendChunk): import("../json-safe.ts").JsonSafe<_1.MsgSendChunk>;
389
+ fromPartial(object: Partial<_1.MsgSendChunk>): _1.MsgSendChunk;
390
+ fromProtoMsg(message: _1.MsgSendChunkProtoMsg): _1.MsgSendChunk;
391
+ toProto(message: _1.MsgSendChunk): Uint8Array;
392
+ toProtoMsg(message: _1.MsgSendChunk): _1.MsgSendChunkProtoMsg;
393
+ };
394
+ MsgSendChunkResponse: {
395
+ typeUrl: "/agoric.swingset.MsgSendChunkResponse";
396
+ encode(message: _1.MsgSendChunkResponse, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
397
+ decode(input: import("../binary.ts").BinaryReader | Uint8Array, length?: number): _1.MsgSendChunkResponse;
398
+ fromJSON(object: any): _1.MsgSendChunkResponse;
399
+ toJSON(message: _1.MsgSendChunkResponse): import("../json-safe.ts").JsonSafe<_1.MsgSendChunkResponse>;
400
+ fromPartial(object: Partial<_1.MsgSendChunkResponse>): _1.MsgSendChunkResponse;
401
+ fromProtoMsg(message: _1.MsgSendChunkResponseProtoMsg): _1.MsgSendChunkResponse;
402
+ toProto(message: _1.MsgSendChunkResponse): Uint8Array;
403
+ toProtoMsg(message: _1.MsgSendChunkResponse): _1.MsgSendChunkResponseProtoMsg;
404
+ };
324
405
  GenesisState: {
325
406
  typeUrl: "/agoric.swingset.GenesisState";
326
407
  encode(message: _0.GenesisState, writer?: import("../binary.ts").BinaryWriter): import("../binary.ts").BinaryWriter;
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../src/codegen/agoric/bundle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEzC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAC7C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAC;AAC9C,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAC;AAC9C,yBAAiB,MAAM,CAAC;IACf,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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1,4 @@
1
+ import { ChunkedArtifact, type ChunkedArtifactSDKType, ChunkInfo, type ChunkInfoSDKType } from './swingset.js';
1
2
  import { BinaryReader, BinaryWriter } from '../../binary.js';
2
3
  import { type JsonSafe } from '../../json-safe.js';
3
4
  /** MsgDeliverInbound defines an SDK message for delivering an eventual send */
@@ -122,44 +123,47 @@ export interface MsgProvisionResponseProtoMsg {
122
123
  /** MsgProvisionResponse is an empty reply. */
123
124
  export interface MsgProvisionResponseSDKType {
124
125
  }
125
- /** MsgInstallBundle carries a signed bundle to SwingSet. */
126
+ /**
127
+ * MsgInstallBundle carries a signed bundle to SwingSet.
128
+ * The fields `bundle`, `compressed_bundle`, and `chunked_artifact` are mutually
129
+ * exclusive, and exactly one must be present based on what is being submitted:
130
+ * * `bundle` for a complete and uncompressed bundle
131
+ * * `compressed_bundle` for a complete and compressed bundle
132
+ * * `chunked_artifact` for a manifest of chunks to be submitted in subsequent
133
+ * messages.
134
+ */
126
135
  export interface MsgInstallBundle {
127
136
  bundle: string;
128
137
  submitter: Uint8Array;
138
+ /** Default compression algorithm is gzip. */
139
+ compressedBundle: Uint8Array;
129
140
  /**
130
- * Either bundle or compressed_bundle will be set.
131
- * Default compression algorithm is gzip.
141
+ * Total size in bytes of the bundle artifact, before compression and after
142
+ * decompression.
132
143
  */
133
- compressedBundle: Uint8Array;
134
- /** Size in bytes of uncompression of compressed_bundle. */
135
144
  uncompressedSize: bigint;
145
+ /** Declaration of a chunked bundle. */
146
+ chunkedArtifact?: ChunkedArtifact;
136
147
  }
137
148
  export interface MsgInstallBundleProtoMsg {
138
149
  typeUrl: '/agoric.swingset.MsgInstallBundle';
139
150
  value: Uint8Array;
140
151
  }
141
- /** MsgInstallBundle carries a signed bundle to SwingSet. */
152
+ /**
153
+ * MsgInstallBundle carries a signed bundle to SwingSet.
154
+ * The fields `bundle`, `compressed_bundle`, and `chunked_artifact` are mutually
155
+ * exclusive, and exactly one must be present based on what is being submitted:
156
+ * * `bundle` for a complete and uncompressed bundle
157
+ * * `compressed_bundle` for a complete and compressed bundle
158
+ * * `chunked_artifact` for a manifest of chunks to be submitted in subsequent
159
+ * messages.
160
+ */
142
161
  export interface MsgInstallBundleSDKType {
143
162
  bundle: string;
144
163
  submitter: Uint8Array;
145
164
  compressed_bundle: Uint8Array;
146
165
  uncompressed_size: bigint;
147
- }
148
- /**
149
- * MsgInstallBundleResponse is an empty acknowledgement that an install bundle
150
- * message has been queued for the SwingSet kernel's consideration.
151
- */
152
- export interface MsgInstallBundleResponse {
153
- }
154
- export interface MsgInstallBundleResponseProtoMsg {
155
- typeUrl: '/agoric.swingset.MsgInstallBundleResponse';
156
- value: Uint8Array;
157
- }
158
- /**
159
- * MsgInstallBundleResponse is an empty acknowledgement that an install bundle
160
- * message has been queued for the SwingSet kernel's consideration.
161
- */
162
- export interface MsgInstallBundleResponseSDKType {
166
+ chunked_artifact?: ChunkedArtifactSDKType;
163
167
  }
164
168
  /** MsgCoreEval defines an SDK message for a core eval. */
165
169
  export interface MsgCoreEval {
@@ -199,6 +203,85 @@ export interface MsgCoreEvalResponseProtoMsg {
199
203
  export interface MsgCoreEvalResponseSDKType {
200
204
  result: string;
201
205
  }
206
+ /**
207
+ * MsgInstallBundleResponse is either an empty acknowledgement that a bundle
208
+ * installation message has been queued for the SwingSet kernel's
209
+ * consideration, or (for MsgInstallBundle requests that have a chunked artifact
210
+ * manifest instead of a compressed or uncompressed bundle) a container for the
211
+ * chunked artifact identifier to be included in subsequent MsgSendChunk
212
+ * messages.
213
+ */
214
+ export interface MsgInstallBundleResponse {
215
+ /**
216
+ * The assigned identifier for a chunked artifact, if the caller is expected
217
+ * to call back with MsgSendChunk messages.
218
+ */
219
+ chunkedArtifactId: bigint;
220
+ }
221
+ export interface MsgInstallBundleResponseProtoMsg {
222
+ typeUrl: '/agoric.swingset.MsgInstallBundleResponse';
223
+ value: Uint8Array;
224
+ }
225
+ /**
226
+ * MsgInstallBundleResponse is either an empty acknowledgement that a bundle
227
+ * installation message has been queued for the SwingSet kernel's
228
+ * consideration, or (for MsgInstallBundle requests that have a chunked artifact
229
+ * manifest instead of a compressed or uncompressed bundle) a container for the
230
+ * chunked artifact identifier to be included in subsequent MsgSendChunk
231
+ * messages.
232
+ */
233
+ export interface MsgInstallBundleResponseSDKType {
234
+ chunked_artifact_id: bigint;
235
+ }
236
+ /**
237
+ * MsgSendChunk carries a chunk of an artifact through RPC to the chain.
238
+ * Individual chunks are addressed by the chunked artifact identifier and
239
+ * the zero-based index of the chunk among all chunks as mentioned in the
240
+ * manifest provided to MsgInstallBundle.
241
+ */
242
+ export interface MsgSendChunk {
243
+ chunkedArtifactId: bigint;
244
+ submitter: Uint8Array;
245
+ chunkIndex: bigint;
246
+ chunkData: Uint8Array;
247
+ }
248
+ export interface MsgSendChunkProtoMsg {
249
+ typeUrl: '/agoric.swingset.MsgSendChunk';
250
+ value: Uint8Array;
251
+ }
252
+ /**
253
+ * MsgSendChunk carries a chunk of an artifact through RPC to the chain.
254
+ * Individual chunks are addressed by the chunked artifact identifier and
255
+ * the zero-based index of the chunk among all chunks as mentioned in the
256
+ * manifest provided to MsgInstallBundle.
257
+ */
258
+ export interface MsgSendChunkSDKType {
259
+ chunked_artifact_id: bigint;
260
+ submitter: Uint8Array;
261
+ chunk_index: bigint;
262
+ chunk_data: Uint8Array;
263
+ }
264
+ /**
265
+ * MsgSendChunkResponse is an acknowledgement that a chunk has been received by
266
+ * the chain.
267
+ */
268
+ export interface MsgSendChunkResponse {
269
+ chunkedArtifactId: bigint;
270
+ /** The current state of the chunk. */
271
+ chunk?: ChunkInfo;
272
+ }
273
+ export interface MsgSendChunkResponseProtoMsg {
274
+ typeUrl: '/agoric.swingset.MsgSendChunkResponse';
275
+ value: Uint8Array;
276
+ }
277
+ /**
278
+ * MsgSendChunkResponse is an acknowledgement that a chunk has been received by
279
+ * the chain.
280
+ */
281
+ export interface MsgSendChunkResponseSDKType {
282
+ chunked_artifact_id: bigint;
283
+ chunk?: ChunkInfoSDKType;
284
+ }
202
285
  export declare const MsgDeliverInbound: {
203
286
  typeUrl: "/agoric.swingset.MsgDeliverInbound";
204
287
  encode(message: MsgDeliverInbound, writer?: BinaryWriter): BinaryWriter;
@@ -298,17 +381,6 @@ export declare const MsgInstallBundle: {
298
381
  toProto(message: MsgInstallBundle): Uint8Array;
299
382
  toProtoMsg(message: MsgInstallBundle): MsgInstallBundleProtoMsg;
300
383
  };
301
- export declare const MsgInstallBundleResponse: {
302
- typeUrl: "/agoric.swingset.MsgInstallBundleResponse";
303
- encode(_: MsgInstallBundleResponse, writer?: BinaryWriter): BinaryWriter;
304
- decode(input: BinaryReader | Uint8Array, length?: number): MsgInstallBundleResponse;
305
- fromJSON(_: any): MsgInstallBundleResponse;
306
- toJSON(_: MsgInstallBundleResponse): JsonSafe<MsgInstallBundleResponse>;
307
- fromPartial(_: Partial<MsgInstallBundleResponse>): MsgInstallBundleResponse;
308
- fromProtoMsg(message: MsgInstallBundleResponseProtoMsg): MsgInstallBundleResponse;
309
- toProto(message: MsgInstallBundleResponse): Uint8Array;
310
- toProtoMsg(message: MsgInstallBundleResponse): MsgInstallBundleResponseProtoMsg;
311
- };
312
384
  export declare const MsgCoreEval: {
313
385
  typeUrl: "/agoric.swingset.MsgCoreEval";
314
386
  encode(message: MsgCoreEval, writer?: BinaryWriter): BinaryWriter;
@@ -331,4 +403,37 @@ export declare const MsgCoreEvalResponse: {
331
403
  toProto(message: MsgCoreEvalResponse): Uint8Array;
332
404
  toProtoMsg(message: MsgCoreEvalResponse): MsgCoreEvalResponseProtoMsg;
333
405
  };
406
+ export declare const MsgInstallBundleResponse: {
407
+ typeUrl: "/agoric.swingset.MsgInstallBundleResponse";
408
+ encode(message: MsgInstallBundleResponse, writer?: BinaryWriter): BinaryWriter;
409
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgInstallBundleResponse;
410
+ fromJSON(object: any): MsgInstallBundleResponse;
411
+ toJSON(message: MsgInstallBundleResponse): JsonSafe<MsgInstallBundleResponse>;
412
+ fromPartial(object: Partial<MsgInstallBundleResponse>): MsgInstallBundleResponse;
413
+ fromProtoMsg(message: MsgInstallBundleResponseProtoMsg): MsgInstallBundleResponse;
414
+ toProto(message: MsgInstallBundleResponse): Uint8Array;
415
+ toProtoMsg(message: MsgInstallBundleResponse): MsgInstallBundleResponseProtoMsg;
416
+ };
417
+ export declare const MsgSendChunk: {
418
+ typeUrl: "/agoric.swingset.MsgSendChunk";
419
+ encode(message: MsgSendChunk, writer?: BinaryWriter): BinaryWriter;
420
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSendChunk;
421
+ fromJSON(object: any): MsgSendChunk;
422
+ toJSON(message: MsgSendChunk): JsonSafe<MsgSendChunk>;
423
+ fromPartial(object: Partial<MsgSendChunk>): MsgSendChunk;
424
+ fromProtoMsg(message: MsgSendChunkProtoMsg): MsgSendChunk;
425
+ toProto(message: MsgSendChunk): Uint8Array;
426
+ toProtoMsg(message: MsgSendChunk): MsgSendChunkProtoMsg;
427
+ };
428
+ export declare const MsgSendChunkResponse: {
429
+ typeUrl: "/agoric.swingset.MsgSendChunkResponse";
430
+ encode(message: MsgSendChunkResponse, writer?: BinaryWriter): BinaryWriter;
431
+ decode(input: BinaryReader | Uint8Array, length?: number): MsgSendChunkResponse;
432
+ fromJSON(object: any): MsgSendChunkResponse;
433
+ toJSON(message: MsgSendChunkResponse): JsonSafe<MsgSendChunkResponse>;
434
+ fromPartial(object: Partial<MsgSendChunkResponse>): MsgSendChunkResponse;
435
+ fromProtoMsg(message: MsgSendChunkResponseProtoMsg): MsgSendChunkResponse;
436
+ toProto(message: MsgSendChunkResponse): Uint8Array;
437
+ toProtoMsg(message: MsgSendChunkResponse): MsgSendChunkResponseProtoMsg;
438
+ };
334
439
  //# sourceMappingURL=msgs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"msgs.d.ts","sourceRoot":"","sources":["../../../../src/codegen/agoric/swingset/msgs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,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pB,oBAAoB,WACrB,YAAY,GACnB,YAAY;kBAUN,YAAY,GAAG,UAAU,WACvB,MAAM,GACd,oBAAoB;qBAqBN,GAAG,GAAG,oBAAoB;oBAQ3B,oBAAoB,GAAG,QAAQ,CAAC,oBAAoB,CAAC;wBAUjD,OAAO,CAAC,oBAAoB,CAAC,GAAG,oBAAoB;0BAalD,4BAA4B,GAAG,oBAAoB;qBAGxD,oBAAoB,GAAG,UAAU;wBAG9B,oBAAoB,GAAG,4BAA4B;CAMxE,CAAC"}
@@ -1 +1 @@
1
- import{BinaryReader as e,BinaryWriter as s}from"../../binary.js";import{isSet as n}from"../../helpers.js";import{decodeBase64 as t}from"@endo/base64";import{encodeBase64 as o}from"@endo/base64";import{}from"../../json-safe.js";function r(){return{messages:[],nums:[],ack:BigInt(0),submitter:new Uint8Array}}export const MsgDeliverInbound={typeUrl:"/agoric.swingset.MsgDeliverInbound",encode(e,n=s.create()){for(const s of e.messages)n.uint32(10).string(s);n.uint32(18).fork();for(const s of e.nums)n.uint64(s);return n.ldelim(),e.ack!==BigInt(0)&&n.uint32(24).uint64(e.ack),0!==e.submitter.length&&n.uint32(34).bytes(e.submitter),n},decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const i=r();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:i.messages.push(t.string());break;case 2:if(2==(7&e)){const e=t.uint32()+t.pos;for(;t.pos<e;)i.nums.push(t.uint64())}else i.nums.push(t.uint64());break;case 3:i.ack=t.uint64();break;case 4:i.submitter=t.bytes();break;default:t.skipType(7&e)}}return i},fromJSON:e=>({messages:Array.isArray(e?.messages)?e.messages.map((e=>String(e))):[],nums:Array.isArray(e?.nums)?e.nums.map((e=>BigInt(e.toString()))):[],ack:n(e.ack)?BigInt(e.ack.toString()):BigInt(0),submitter:n(e.submitter)?t(e.submitter):new Uint8Array}),toJSON(e){const s={};return e.messages?s.messages=e.messages.map((e=>e)):s.messages=[],e.nums?s.nums=e.nums.map((e=>(e||BigInt(0)).toString())):s.nums=[],void 0!==e.ack&&(s.ack=(e.ack||BigInt(0)).toString()),void 0!==e.submitter&&(s.submitter=o(void 0!==e.submitter?e.submitter:new Uint8Array)),s},fromPartial(e){const s=r();return s.messages=e.messages?.map((e=>e))||[],s.nums=e.nums?.map((e=>BigInt(e.toString())))||[],s.ack=void 0!==e.ack&&null!==e.ack?BigInt(e.ack.toString()):BigInt(0),s.submitter=e.submitter??new Uint8Array,s},fromProtoMsg:e=>MsgDeliverInbound.decode(e.value),toProto:e=>MsgDeliverInbound.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgDeliverInbound",value:MsgDeliverInbound.encode(e).finish()})};export const MsgDeliverInboundResponse={typeUrl:"/agoric.swingset.MsgDeliverInboundResponse",encode:(e,n=s.create())=>n,decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r={};for(;t.pos<o;){const e=t.uint32();t.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgDeliverInboundResponse.decode(e.value),toProto:e=>MsgDeliverInboundResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgDeliverInboundResponse",value:MsgDeliverInboundResponse.encode(e).finish()})};function i(){return{owner:new Uint8Array,action:""}}export const MsgWalletAction={typeUrl:"/agoric.swingset.MsgWalletAction",encode:(e,n=s.create())=>(0!==e.owner.length&&n.uint32(10).bytes(e.owner),""!==e.action&&n.uint32(18).string(e.action),n),decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r=i();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.owner=t.bytes();break;case 2:r.action=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({owner:n(e.owner)?t(e.owner):new Uint8Array,action:n(e.action)?String(e.action):""}),toJSON(e){const s={};return void 0!==e.owner&&(s.owner=o(void 0!==e.owner?e.owner:new Uint8Array)),void 0!==e.action&&(s.action=e.action),s},fromPartial(e){const s=i();return s.owner=e.owner??new Uint8Array,s.action=e.action??"",s},fromProtoMsg:e=>MsgWalletAction.decode(e.value),toProto:e=>MsgWalletAction.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletAction",value:MsgWalletAction.encode(e).finish()})};export const MsgWalletActionResponse={typeUrl:"/agoric.swingset.MsgWalletActionResponse",encode:(e,n=s.create())=>n,decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r={};for(;t.pos<o;){const e=t.uint32();t.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgWalletActionResponse.decode(e.value),toProto:e=>MsgWalletActionResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletActionResponse",value:MsgWalletActionResponse.encode(e).finish()})};function a(){return{owner:new Uint8Array,spendAction:""}}export const MsgWalletSpendAction={typeUrl:"/agoric.swingset.MsgWalletSpendAction",encode:(e,n=s.create())=>(0!==e.owner.length&&n.uint32(10).bytes(e.owner),""!==e.spendAction&&n.uint32(18).string(e.spendAction),n),decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r=a();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.owner=t.bytes();break;case 2:r.spendAction=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({owner:n(e.owner)?t(e.owner):new Uint8Array,spendAction:n(e.spendAction)?String(e.spendAction):""}),toJSON(e){const s={};return void 0!==e.owner&&(s.owner=o(void 0!==e.owner?e.owner:new Uint8Array)),void 0!==e.spendAction&&(s.spendAction=e.spendAction),s},fromPartial(e){const s=a();return s.owner=e.owner??new Uint8Array,s.spendAction=e.spendAction??"",s},fromProtoMsg:e=>MsgWalletSpendAction.decode(e.value),toProto:e=>MsgWalletSpendAction.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletSpendAction",value:MsgWalletSpendAction.encode(e).finish()})};export const MsgWalletSpendActionResponse={typeUrl:"/agoric.swingset.MsgWalletSpendActionResponse",encode:(e,n=s.create())=>n,decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r={};for(;t.pos<o;){const e=t.uint32();t.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgWalletSpendActionResponse.decode(e.value),toProto:e=>MsgWalletSpendActionResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletSpendActionResponse",value:MsgWalletSpendActionResponse.encode(e).finish()})};function c(){return{nickname:"",address:new Uint8Array,powerFlags:[],submitter:new Uint8Array}}export const MsgProvision={typeUrl:"/agoric.swingset.MsgProvision",encode(e,n=s.create()){""!==e.nickname&&n.uint32(10).string(e.nickname),0!==e.address.length&&n.uint32(18).bytes(e.address);for(const s of e.powerFlags)n.uint32(26).string(s);return 0!==e.submitter.length&&n.uint32(34).bytes(e.submitter),n},decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r=c();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.nickname=t.string();break;case 2:r.address=t.bytes();break;case 3:r.powerFlags.push(t.string());break;case 4:r.submitter=t.bytes();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({nickname:n(e.nickname)?String(e.nickname):"",address:n(e.address)?t(e.address):new Uint8Array,powerFlags:Array.isArray(e?.powerFlags)?e.powerFlags.map((e=>String(e))):[],submitter:n(e.submitter)?t(e.submitter):new Uint8Array}),toJSON(e){const s={};return void 0!==e.nickname&&(s.nickname=e.nickname),void 0!==e.address&&(s.address=o(void 0!==e.address?e.address:new Uint8Array)),e.powerFlags?s.powerFlags=e.powerFlags.map((e=>e)):s.powerFlags=[],void 0!==e.submitter&&(s.submitter=o(void 0!==e.submitter?e.submitter:new Uint8Array)),s},fromPartial(e){const s=c();return s.nickname=e.nickname??"",s.address=e.address??new Uint8Array,s.powerFlags=e.powerFlags?.map((e=>e))||[],s.submitter=e.submitter??new Uint8Array,s},fromProtoMsg:e=>MsgProvision.decode(e.value),toProto:e=>MsgProvision.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgProvision",value:MsgProvision.encode(e).finish()})};export const MsgProvisionResponse={typeUrl:"/agoric.swingset.MsgProvisionResponse",encode:(e,n=s.create())=>n,decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r={};for(;t.pos<o;){const e=t.uint32();t.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgProvisionResponse.decode(e.value),toProto:e=>MsgProvisionResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgProvisionResponse",value:MsgProvisionResponse.encode(e).finish()})};function d(){return{bundle:"",submitter:new Uint8Array,compressedBundle:new Uint8Array,uncompressedSize:BigInt(0)}}export const MsgInstallBundle={typeUrl:"/agoric.swingset.MsgInstallBundle",encode:(e,n=s.create())=>(""!==e.bundle&&n.uint32(10).string(e.bundle),0!==e.submitter.length&&n.uint32(18).bytes(e.submitter),0!==e.compressedBundle.length&&n.uint32(26).bytes(e.compressedBundle),e.uncompressedSize!==BigInt(0)&&n.uint32(32).int64(e.uncompressedSize),n),decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r=d();for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.bundle=t.string();break;case 2:r.submitter=t.bytes();break;case 3:r.compressedBundle=t.bytes();break;case 4:r.uncompressedSize=t.int64();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({bundle:n(e.bundle)?String(e.bundle):"",submitter:n(e.submitter)?t(e.submitter):new Uint8Array,compressedBundle:n(e.compressedBundle)?t(e.compressedBundle):new Uint8Array,uncompressedSize:n(e.uncompressedSize)?BigInt(e.uncompressedSize.toString()):BigInt(0)}),toJSON(e){const s={};return void 0!==e.bundle&&(s.bundle=e.bundle),void 0!==e.submitter&&(s.submitter=o(void 0!==e.submitter?e.submitter:new Uint8Array)),void 0!==e.compressedBundle&&(s.compressedBundle=o(void 0!==e.compressedBundle?e.compressedBundle:new Uint8Array)),void 0!==e.uncompressedSize&&(s.uncompressedSize=(e.uncompressedSize||BigInt(0)).toString()),s},fromPartial(e){const s=d();return s.bundle=e.bundle??"",s.submitter=e.submitter??new Uint8Array,s.compressedBundle=e.compressedBundle??new Uint8Array,s.uncompressedSize=void 0!==e.uncompressedSize&&null!==e.uncompressedSize?BigInt(e.uncompressedSize.toString()):BigInt(0),s},fromProtoMsg:e=>MsgInstallBundle.decode(e.value),toProto:e=>MsgInstallBundle.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgInstallBundle",value:MsgInstallBundle.encode(e).finish()})};export const MsgInstallBundleResponse={typeUrl:"/agoric.swingset.MsgInstallBundleResponse",encode:(e,n=s.create())=>n,decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r={};for(;t.pos<o;){const e=t.uint32();t.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgInstallBundleResponse.decode(e.value),toProto:e=>MsgInstallBundleResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgInstallBundleResponse",value:MsgInstallBundleResponse.encode(e).finish()})};export const MsgCoreEval={typeUrl:"/agoric.swingset.MsgCoreEval",encode:(e,n=s.create())=>(""!==e.authority&&n.uint32(10).string(e.authority),""!==e.jsonPermits&&n.uint32(18).string(e.jsonPermits),""!==e.jsCode&&n.uint32(26).string(e.jsCode),n),decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r={authority:"",jsonPermits:"",jsCode:""};for(;t.pos<o;){const e=t.uint32();switch(e>>>3){case 1:r.authority=t.string();break;case 2:r.jsonPermits=t.string();break;case 3:r.jsCode=t.string();break;default:t.skipType(7&e)}}return r},fromJSON:e=>({authority:n(e.authority)?String(e.authority):"",jsonPermits:n(e.jsonPermits)?String(e.jsonPermits):"",jsCode:n(e.jsCode)?String(e.jsCode):""}),toJSON(e){const s={};return void 0!==e.authority&&(s.authority=e.authority),void 0!==e.jsonPermits&&(s.jsonPermits=e.jsonPermits),void 0!==e.jsCode&&(s.jsCode=e.jsCode),s},fromPartial(e){const s={authority:"",jsonPermits:"",jsCode:""};return s.authority=e.authority??"",s.jsonPermits=e.jsonPermits??"",s.jsCode=e.jsCode??"",s},fromProtoMsg:e=>MsgCoreEval.decode(e.value),toProto:e=>MsgCoreEval.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgCoreEval",value:MsgCoreEval.encode(e).finish()})};export const MsgCoreEvalResponse={typeUrl:"/agoric.swingset.MsgCoreEvalResponse",encode:(e,n=s.create())=>(""!==e.result&&n.uint32(10).string(e.result),n),decode(s,n){const t=s instanceof e?s:new e(s);let o=void 0===n?t.len:t.pos+n;const r={result:""};for(;t.pos<o;){const e=t.uint32();if(e>>>3==1)r.result=t.string();else t.skipType(7&e)}return r},fromJSON:e=>({result:n(e.result)?String(e.result):""}),toJSON(e){const s={};return void 0!==e.result&&(s.result=e.result),s},fromPartial(e){const s={result:""};return s.result=e.result??"",s},fromProtoMsg:e=>MsgCoreEvalResponse.decode(e.value),toProto:e=>MsgCoreEvalResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgCoreEvalResponse",value:MsgCoreEvalResponse.encode(e).finish()})};
1
+ import{ChunkedArtifact as e,ChunkInfo as t}from"./swingset.js";import{BinaryReader as n,BinaryWriter as s}from"../../binary.js";import{isSet as o}from"../../helpers.js";import{decodeBase64 as r}from"@endo/base64";import{encodeBase64 as i}from"@endo/base64";import{}from"../../json-safe.js";function c(){return{messages:[],nums:[],ack:BigInt(0),submitter:new Uint8Array}}export const MsgDeliverInbound={typeUrl:"/agoric.swingset.MsgDeliverInbound",encode(e,t=s.create()){for(const n of e.messages)t.uint32(10).string(n);t.uint32(18).fork();for(const n of e.nums)t.uint64(n);return t.ldelim(),e.ack!==BigInt(0)&&t.uint32(24).uint64(e.ack),0!==e.submitter.length&&t.uint32(34).bytes(e.submitter),t},decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r=c();for(;s.pos<o;){const e=s.uint32();switch(e>>>3){case 1:r.messages.push(s.string());break;case 2:if(2==(7&e)){const e=s.uint32()+s.pos;for(;s.pos<e;)r.nums.push(s.uint64())}else r.nums.push(s.uint64());break;case 3:r.ack=s.uint64();break;case 4:r.submitter=s.bytes();break;default:s.skipType(7&e)}}return r},fromJSON:e=>({messages:Array.isArray(e?.messages)?e.messages.map((e=>String(e))):[],nums:Array.isArray(e?.nums)?e.nums.map((e=>BigInt(e.toString()))):[],ack:o(e.ack)?BigInt(e.ack.toString()):BigInt(0),submitter:o(e.submitter)?r(e.submitter):new Uint8Array}),toJSON(e){const t={};return e.messages?t.messages=e.messages.map((e=>e)):t.messages=[],e.nums?t.nums=e.nums.map((e=>(e||BigInt(0)).toString())):t.nums=[],void 0!==e.ack&&(t.ack=(e.ack||BigInt(0)).toString()),void 0!==e.submitter&&(t.submitter=i(void 0!==e.submitter?e.submitter:new Uint8Array)),t},fromPartial(e){const t=c();return t.messages=e.messages?.map((e=>e))||[],t.nums=e.nums?.map((e=>BigInt(e.toString())))||[],t.ack=void 0!==e.ack&&null!==e.ack?BigInt(e.ack.toString()):BigInt(0),t.submitter=e.submitter??new Uint8Array,t},fromProtoMsg:e=>MsgDeliverInbound.decode(e.value),toProto:e=>MsgDeliverInbound.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgDeliverInbound",value:MsgDeliverInbound.encode(e).finish()})};export const MsgDeliverInboundResponse={typeUrl:"/agoric.swingset.MsgDeliverInboundResponse",encode:(e,t=s.create())=>t,decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r={};for(;s.pos<o;){const e=s.uint32();s.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgDeliverInboundResponse.decode(e.value),toProto:e=>MsgDeliverInboundResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgDeliverInboundResponse",value:MsgDeliverInboundResponse.encode(e).finish()})};function a(){return{owner:new Uint8Array,action:""}}export const MsgWalletAction={typeUrl:"/agoric.swingset.MsgWalletAction",encode:(e,t=s.create())=>(0!==e.owner.length&&t.uint32(10).bytes(e.owner),""!==e.action&&t.uint32(18).string(e.action),t),decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r=a();for(;s.pos<o;){const e=s.uint32();switch(e>>>3){case 1:r.owner=s.bytes();break;case 2:r.action=s.string();break;default:s.skipType(7&e)}}return r},fromJSON:e=>({owner:o(e.owner)?r(e.owner):new Uint8Array,action:o(e.action)?String(e.action):""}),toJSON(e){const t={};return void 0!==e.owner&&(t.owner=i(void 0!==e.owner?e.owner:new Uint8Array)),void 0!==e.action&&(t.action=e.action),t},fromPartial(e){const t=a();return t.owner=e.owner??new Uint8Array,t.action=e.action??"",t},fromProtoMsg:e=>MsgWalletAction.decode(e.value),toProto:e=>MsgWalletAction.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletAction",value:MsgWalletAction.encode(e).finish()})};export const MsgWalletActionResponse={typeUrl:"/agoric.swingset.MsgWalletActionResponse",encode:(e,t=s.create())=>t,decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r={};for(;s.pos<o;){const e=s.uint32();s.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgWalletActionResponse.decode(e.value),toProto:e=>MsgWalletActionResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletActionResponse",value:MsgWalletActionResponse.encode(e).finish()})};function d(){return{owner:new Uint8Array,spendAction:""}}export const MsgWalletSpendAction={typeUrl:"/agoric.swingset.MsgWalletSpendAction",encode:(e,t=s.create())=>(0!==e.owner.length&&t.uint32(10).bytes(e.owner),""!==e.spendAction&&t.uint32(18).string(e.spendAction),t),decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r=d();for(;s.pos<o;){const e=s.uint32();switch(e>>>3){case 1:r.owner=s.bytes();break;case 2:r.spendAction=s.string();break;default:s.skipType(7&e)}}return r},fromJSON:e=>({owner:o(e.owner)?r(e.owner):new Uint8Array,spendAction:o(e.spendAction)?String(e.spendAction):""}),toJSON(e){const t={};return void 0!==e.owner&&(t.owner=i(void 0!==e.owner?e.owner:new Uint8Array)),void 0!==e.spendAction&&(t.spendAction=e.spendAction),t},fromPartial(e){const t=d();return t.owner=e.owner??new Uint8Array,t.spendAction=e.spendAction??"",t},fromProtoMsg:e=>MsgWalletSpendAction.decode(e.value),toProto:e=>MsgWalletSpendAction.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletSpendAction",value:MsgWalletSpendAction.encode(e).finish()})};export const MsgWalletSpendActionResponse={typeUrl:"/agoric.swingset.MsgWalletSpendActionResponse",encode:(e,t=s.create())=>t,decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r={};for(;s.pos<o;){const e=s.uint32();s.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgWalletSpendActionResponse.decode(e.value),toProto:e=>MsgWalletSpendActionResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgWalletSpendActionResponse",value:MsgWalletSpendActionResponse.encode(e).finish()})};function u(){return{nickname:"",address:new Uint8Array,powerFlags:[],submitter:new Uint8Array}}export const MsgProvision={typeUrl:"/agoric.swingset.MsgProvision",encode(e,t=s.create()){""!==e.nickname&&t.uint32(10).string(e.nickname),0!==e.address.length&&t.uint32(18).bytes(e.address);for(const n of e.powerFlags)t.uint32(26).string(n);return 0!==e.submitter.length&&t.uint32(34).bytes(e.submitter),t},decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r=u();for(;s.pos<o;){const e=s.uint32();switch(e>>>3){case 1:r.nickname=s.string();break;case 2:r.address=s.bytes();break;case 3:r.powerFlags.push(s.string());break;case 4:r.submitter=s.bytes();break;default:s.skipType(7&e)}}return r},fromJSON:e=>({nickname:o(e.nickname)?String(e.nickname):"",address:o(e.address)?r(e.address):new Uint8Array,powerFlags:Array.isArray(e?.powerFlags)?e.powerFlags.map((e=>String(e))):[],submitter:o(e.submitter)?r(e.submitter):new Uint8Array}),toJSON(e){const t={};return void 0!==e.nickname&&(t.nickname=e.nickname),void 0!==e.address&&(t.address=i(void 0!==e.address?e.address:new Uint8Array)),e.powerFlags?t.powerFlags=e.powerFlags.map((e=>e)):t.powerFlags=[],void 0!==e.submitter&&(t.submitter=i(void 0!==e.submitter?e.submitter:new Uint8Array)),t},fromPartial(e){const t=u();return t.nickname=e.nickname??"",t.address=e.address??new Uint8Array,t.powerFlags=e.powerFlags?.map((e=>e))||[],t.submitter=e.submitter??new Uint8Array,t},fromProtoMsg:e=>MsgProvision.decode(e.value),toProto:e=>MsgProvision.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgProvision",value:MsgProvision.encode(e).finish()})};export const MsgProvisionResponse={typeUrl:"/agoric.swingset.MsgProvisionResponse",encode:(e,t=s.create())=>t,decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r={};for(;s.pos<o;){const e=s.uint32();s.skipType(7&e)}return r},fromJSON:e=>({}),toJSON:e=>({}),fromPartial:e=>({}),fromProtoMsg:e=>MsgProvisionResponse.decode(e.value),toProto:e=>MsgProvisionResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgProvisionResponse",value:MsgProvisionResponse.encode(e).finish()})};function l(){return{bundle:"",submitter:new Uint8Array,compressedBundle:new Uint8Array,uncompressedSize:BigInt(0),chunkedArtifact:void 0}}export const MsgInstallBundle={typeUrl:"/agoric.swingset.MsgInstallBundle",encode:(t,n=s.create())=>(""!==t.bundle&&n.uint32(10).string(t.bundle),0!==t.submitter.length&&n.uint32(18).bytes(t.submitter),0!==t.compressedBundle.length&&n.uint32(26).bytes(t.compressedBundle),t.uncompressedSize!==BigInt(0)&&n.uint32(32).int64(t.uncompressedSize),void 0!==t.chunkedArtifact&&e.encode(t.chunkedArtifact,n.uint32(42).fork()).ldelim(),n),decode(t,s){const o=t instanceof n?t:new n(t);let r=void 0===s?o.len:o.pos+s;const i=l();for(;o.pos<r;){const t=o.uint32();switch(t>>>3){case 1:i.bundle=o.string();break;case 2:i.submitter=o.bytes();break;case 3:i.compressedBundle=o.bytes();break;case 4:i.uncompressedSize=o.int64();break;case 5:i.chunkedArtifact=e.decode(o,o.uint32());break;default:o.skipType(7&t)}}return i},fromJSON:t=>({bundle:o(t.bundle)?String(t.bundle):"",submitter:o(t.submitter)?r(t.submitter):new Uint8Array,compressedBundle:o(t.compressedBundle)?r(t.compressedBundle):new Uint8Array,uncompressedSize:o(t.uncompressedSize)?BigInt(t.uncompressedSize.toString()):BigInt(0),chunkedArtifact:o(t.chunkedArtifact)?e.fromJSON(t.chunkedArtifact):void 0}),toJSON(t){const n={};return void 0!==t.bundle&&(n.bundle=t.bundle),void 0!==t.submitter&&(n.submitter=i(void 0!==t.submitter?t.submitter:new Uint8Array)),void 0!==t.compressedBundle&&(n.compressedBundle=i(void 0!==t.compressedBundle?t.compressedBundle:new Uint8Array)),void 0!==t.uncompressedSize&&(n.uncompressedSize=(t.uncompressedSize||BigInt(0)).toString()),void 0!==t.chunkedArtifact&&(n.chunkedArtifact=t.chunkedArtifact?e.toJSON(t.chunkedArtifact):void 0),n},fromPartial(t){const n=l();return n.bundle=t.bundle??"",n.submitter=t.submitter??new Uint8Array,n.compressedBundle=t.compressedBundle??new Uint8Array,n.uncompressedSize=void 0!==t.uncompressedSize&&null!==t.uncompressedSize?BigInt(t.uncompressedSize.toString()):BigInt(0),n.chunkedArtifact=void 0!==t.chunkedArtifact&&null!==t.chunkedArtifact?e.fromPartial(t.chunkedArtifact):void 0,n},fromProtoMsg:e=>MsgInstallBundle.decode(e.value),toProto:e=>MsgInstallBundle.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgInstallBundle",value:MsgInstallBundle.encode(e).finish()})};export const MsgCoreEval={typeUrl:"/agoric.swingset.MsgCoreEval",encode:(e,t=s.create())=>(""!==e.authority&&t.uint32(10).string(e.authority),""!==e.jsonPermits&&t.uint32(18).string(e.jsonPermits),""!==e.jsCode&&t.uint32(26).string(e.jsCode),t),decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r={authority:"",jsonPermits:"",jsCode:""};for(;s.pos<o;){const e=s.uint32();switch(e>>>3){case 1:r.authority=s.string();break;case 2:r.jsonPermits=s.string();break;case 3:r.jsCode=s.string();break;default:s.skipType(7&e)}}return r},fromJSON:e=>({authority:o(e.authority)?String(e.authority):"",jsonPermits:o(e.jsonPermits)?String(e.jsonPermits):"",jsCode:o(e.jsCode)?String(e.jsCode):""}),toJSON(e){const t={};return void 0!==e.authority&&(t.authority=e.authority),void 0!==e.jsonPermits&&(t.jsonPermits=e.jsonPermits),void 0!==e.jsCode&&(t.jsCode=e.jsCode),t},fromPartial(e){const t={authority:"",jsonPermits:"",jsCode:""};return t.authority=e.authority??"",t.jsonPermits=e.jsonPermits??"",t.jsCode=e.jsCode??"",t},fromProtoMsg:e=>MsgCoreEval.decode(e.value),toProto:e=>MsgCoreEval.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgCoreEval",value:MsgCoreEval.encode(e).finish()})};export const MsgCoreEvalResponse={typeUrl:"/agoric.swingset.MsgCoreEvalResponse",encode:(e,t=s.create())=>(""!==e.result&&t.uint32(10).string(e.result),t),decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r={result:""};for(;s.pos<o;){const e=s.uint32();if(e>>>3==1)r.result=s.string();else s.skipType(7&e)}return r},fromJSON:e=>({result:o(e.result)?String(e.result):""}),toJSON(e){const t={};return void 0!==e.result&&(t.result=e.result),t},fromPartial(e){const t={result:""};return t.result=e.result??"",t},fromProtoMsg:e=>MsgCoreEvalResponse.decode(e.value),toProto:e=>MsgCoreEvalResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgCoreEvalResponse",value:MsgCoreEvalResponse.encode(e).finish()})};function g(){return{chunkedArtifactId:BigInt(0)}}export const MsgInstallBundleResponse={typeUrl:"/agoric.swingset.MsgInstallBundleResponse",encode:(e,t=s.create())=>(e.chunkedArtifactId!==BigInt(0)&&t.uint32(8).uint64(e.chunkedArtifactId),t),decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r=g();for(;s.pos<o;){const e=s.uint32();if(e>>>3==1)r.chunkedArtifactId=s.uint64();else s.skipType(7&e)}return r},fromJSON:e=>({chunkedArtifactId:o(e.chunkedArtifactId)?BigInt(e.chunkedArtifactId.toString()):BigInt(0)}),toJSON(e){const t={};return void 0!==e.chunkedArtifactId&&(t.chunkedArtifactId=(e.chunkedArtifactId||BigInt(0)).toString()),t},fromPartial(e){const t=g();return t.chunkedArtifactId=void 0!==e.chunkedArtifactId&&null!==e.chunkedArtifactId?BigInt(e.chunkedArtifactId.toString()):BigInt(0),t},fromProtoMsg:e=>MsgInstallBundleResponse.decode(e.value),toProto:e=>MsgInstallBundleResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgInstallBundleResponse",value:MsgInstallBundleResponse.encode(e).finish()})};function p(){return{chunkedArtifactId:BigInt(0),submitter:new Uint8Array,chunkIndex:BigInt(0),chunkData:new Uint8Array}}export const MsgSendChunk={typeUrl:"/agoric.swingset.MsgSendChunk",encode:(e,t=s.create())=>(e.chunkedArtifactId!==BigInt(0)&&t.uint32(8).uint64(e.chunkedArtifactId),0!==e.submitter.length&&t.uint32(18).bytes(e.submitter),e.chunkIndex!==BigInt(0)&&t.uint32(24).uint64(e.chunkIndex),0!==e.chunkData.length&&t.uint32(34).bytes(e.chunkData),t),decode(e,t){const s=e instanceof n?e:new n(e);let o=void 0===t?s.len:s.pos+t;const r=p();for(;s.pos<o;){const e=s.uint32();switch(e>>>3){case 1:r.chunkedArtifactId=s.uint64();break;case 2:r.submitter=s.bytes();break;case 3:r.chunkIndex=s.uint64();break;case 4:r.chunkData=s.bytes();break;default:s.skipType(7&e)}}return r},fromJSON:e=>({chunkedArtifactId:o(e.chunkedArtifactId)?BigInt(e.chunkedArtifactId.toString()):BigInt(0),submitter:o(e.submitter)?r(e.submitter):new Uint8Array,chunkIndex:o(e.chunkIndex)?BigInt(e.chunkIndex.toString()):BigInt(0),chunkData:o(e.chunkData)?r(e.chunkData):new Uint8Array}),toJSON(e){const t={};return void 0!==e.chunkedArtifactId&&(t.chunkedArtifactId=(e.chunkedArtifactId||BigInt(0)).toString()),void 0!==e.submitter&&(t.submitter=i(void 0!==e.submitter?e.submitter:new Uint8Array)),void 0!==e.chunkIndex&&(t.chunkIndex=(e.chunkIndex||BigInt(0)).toString()),void 0!==e.chunkData&&(t.chunkData=i(void 0!==e.chunkData?e.chunkData:new Uint8Array)),t},fromPartial(e){const t=p();return t.chunkedArtifactId=void 0!==e.chunkedArtifactId&&null!==e.chunkedArtifactId?BigInt(e.chunkedArtifactId.toString()):BigInt(0),t.submitter=e.submitter??new Uint8Array,t.chunkIndex=void 0!==e.chunkIndex&&null!==e.chunkIndex?BigInt(e.chunkIndex.toString()):BigInt(0),t.chunkData=e.chunkData??new Uint8Array,t},fromProtoMsg:e=>MsgSendChunk.decode(e.value),toProto:e=>MsgSendChunk.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgSendChunk",value:MsgSendChunk.encode(e).finish()})};function m(){return{chunkedArtifactId:BigInt(0),chunk:void 0}}export const MsgSendChunkResponse={typeUrl:"/agoric.swingset.MsgSendChunkResponse",encode:(e,n=s.create())=>(e.chunkedArtifactId!==BigInt(0)&&n.uint32(8).uint64(e.chunkedArtifactId),void 0!==e.chunk&&t.encode(e.chunk,n.uint32(18).fork()).ldelim(),n),decode(e,s){const o=e instanceof n?e:new n(e);let r=void 0===s?o.len:o.pos+s;const i=m();for(;o.pos<r;){const e=o.uint32();switch(e>>>3){case 1:i.chunkedArtifactId=o.uint64();break;case 2:i.chunk=t.decode(o,o.uint32());break;default:o.skipType(7&e)}}return i},fromJSON:e=>({chunkedArtifactId:o(e.chunkedArtifactId)?BigInt(e.chunkedArtifactId.toString()):BigInt(0),chunk:o(e.chunk)?t.fromJSON(e.chunk):void 0}),toJSON(e){const n={};return void 0!==e.chunkedArtifactId&&(n.chunkedArtifactId=(e.chunkedArtifactId||BigInt(0)).toString()),void 0!==e.chunk&&(n.chunk=e.chunk?t.toJSON(e.chunk):void 0),n},fromPartial(e){const n=m();return n.chunkedArtifactId=void 0!==e.chunkedArtifactId&&null!==e.chunkedArtifactId?BigInt(e.chunkedArtifactId.toString()):BigInt(0),n.chunk=void 0!==e.chunk&&null!==e.chunk?t.fromPartial(e.chunk):void 0,n},fromProtoMsg:e=>MsgSendChunkResponse.decode(e.value),toProto:e=>MsgSendChunkResponse.encode(e).finish(),toProtoMsg:e=>({typeUrl:"/agoric.swingset.MsgSendChunkResponse",value:MsgSendChunkResponse.encode(e).finish()})};