@agoric/cosmos 0.34.2-dev-a29afed.0.a29afed → 0.34.2-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.
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/proto/agoric/swingset/msgs.proto +75 -6
- package/proto/agoric/swingset/query.proto +26 -0
- package/proto/agoric/swingset/swingset.proto +95 -0
- package/x/swingset/abci.go +5 -0
- package/x/swingset/keeper/chunked_artifact_id_test.go +168 -0
- package/x/swingset/keeper/grpc_query.go +24 -0
- package/x/swingset/keeper/keeper.go +210 -2
- package/x/swingset/keeper/msg_server.go +204 -1
- package/x/swingset/keeper/msg_server_test.go +297 -1
- package/x/swingset/types/default-params.go +9 -0
- package/x/swingset/types/list_tools.go +103 -0
- package/x/swingset/types/msgs.go +131 -21
- package/x/swingset/types/msgs.pb.go +876 -198
- package/x/swingset/types/msgs_test.go +11 -21
- package/x/swingset/types/params.go +63 -13
- package/x/swingset/types/params_test.go +56 -26
- package/x/swingset/types/query.pb.go +526 -32
- package/x/swingset/types/query.pb.gw.go +101 -0
- package/x/swingset/types/swingset.pb.go +1288 -123
|
@@ -431,14 +431,22 @@ func (m *MsgProvisionResponse) XXX_DiscardUnknown() {
|
|
|
431
431
|
var xxx_messageInfo_MsgProvisionResponse proto.InternalMessageInfo
|
|
432
432
|
|
|
433
433
|
// MsgInstallBundle carries a signed bundle to SwingSet.
|
|
434
|
+
// The fields `bundle`, `compressed_bundle`, and `chunked_artifact` are mutually
|
|
435
|
+
// exclusive, and exactly one must be present based on what is being submitted:
|
|
436
|
+
// - `bundle` for a complete and uncompressed bundle
|
|
437
|
+
// - `compressed_bundle` for a complete and compressed bundle
|
|
438
|
+
// - `chunked_artifact` for a manifest of chunks to be submitted in subsequent
|
|
439
|
+
// messages.
|
|
434
440
|
type MsgInstallBundle struct {
|
|
435
441
|
Bundle string `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle" yaml:"bundle"`
|
|
436
442
|
Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=submitter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"submitter" yaml:"submitter"`
|
|
437
|
-
// Either bundle or compressed_bundle will be set.
|
|
438
443
|
// Default compression algorithm is gzip.
|
|
439
444
|
CompressedBundle []byte `protobuf:"bytes,3,opt,name=compressed_bundle,json=compressedBundle,proto3" json:"compressedBundle" yaml:"compressedBundle"`
|
|
440
|
-
//
|
|
445
|
+
// Total size in bytes of the bundle artifact, before compression and after
|
|
446
|
+
// decompression.
|
|
441
447
|
UncompressedSize int64 `protobuf:"varint,4,opt,name=uncompressed_size,json=uncompressedSize,proto3" json:"uncompressedSize"`
|
|
448
|
+
// Declaration of a chunked bundle.
|
|
449
|
+
ChunkedArtifact *ChunkedArtifact `protobuf:"bytes,5,opt,name=chunked_artifact,json=chunkedArtifact,proto3" json:"chunkedArtifact,omitempty" yaml:"chunkedArtifact"`
|
|
442
450
|
}
|
|
443
451
|
|
|
444
452
|
func (m *MsgInstallBundle) Reset() { *m = MsgInstallBundle{} }
|
|
@@ -502,43 +510,12 @@ func (m *MsgInstallBundle) GetUncompressedSize() int64 {
|
|
|
502
510
|
return 0
|
|
503
511
|
}
|
|
504
512
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
func (m *MsgInstallBundleResponse) Reset() { *m = MsgInstallBundleResponse{} }
|
|
511
|
-
func (m *MsgInstallBundleResponse) String() string { return proto.CompactTextString(m) }
|
|
512
|
-
func (*MsgInstallBundleResponse) ProtoMessage() {}
|
|
513
|
-
func (*MsgInstallBundleResponse) Descriptor() ([]byte, []int) {
|
|
514
|
-
return fileDescriptor_788baa062b181a57, []int{9}
|
|
515
|
-
}
|
|
516
|
-
func (m *MsgInstallBundleResponse) XXX_Unmarshal(b []byte) error {
|
|
517
|
-
return m.Unmarshal(b)
|
|
518
|
-
}
|
|
519
|
-
func (m *MsgInstallBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
520
|
-
if deterministic {
|
|
521
|
-
return xxx_messageInfo_MsgInstallBundleResponse.Marshal(b, m, deterministic)
|
|
522
|
-
} else {
|
|
523
|
-
b = b[:cap(b)]
|
|
524
|
-
n, err := m.MarshalToSizedBuffer(b)
|
|
525
|
-
if err != nil {
|
|
526
|
-
return nil, err
|
|
527
|
-
}
|
|
528
|
-
return b[:n], nil
|
|
513
|
+
func (m *MsgInstallBundle) GetChunkedArtifact() *ChunkedArtifact {
|
|
514
|
+
if m != nil {
|
|
515
|
+
return m.ChunkedArtifact
|
|
529
516
|
}
|
|
517
|
+
return nil
|
|
530
518
|
}
|
|
531
|
-
func (m *MsgInstallBundleResponse) XXX_Merge(src proto.Message) {
|
|
532
|
-
xxx_messageInfo_MsgInstallBundleResponse.Merge(m, src)
|
|
533
|
-
}
|
|
534
|
-
func (m *MsgInstallBundleResponse) XXX_Size() int {
|
|
535
|
-
return m.Size()
|
|
536
|
-
}
|
|
537
|
-
func (m *MsgInstallBundleResponse) XXX_DiscardUnknown() {
|
|
538
|
-
xxx_messageInfo_MsgInstallBundleResponse.DiscardUnknown(m)
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
var xxx_messageInfo_MsgInstallBundleResponse proto.InternalMessageInfo
|
|
542
519
|
|
|
543
520
|
// MsgCoreEval defines an SDK message for a core eval.
|
|
544
521
|
type MsgCoreEval struct {
|
|
@@ -556,7 +533,7 @@ func (m *MsgCoreEval) Reset() { *m = MsgCoreEval{} }
|
|
|
556
533
|
func (m *MsgCoreEval) String() string { return proto.CompactTextString(m) }
|
|
557
534
|
func (*MsgCoreEval) ProtoMessage() {}
|
|
558
535
|
func (*MsgCoreEval) Descriptor() ([]byte, []int) {
|
|
559
|
-
return fileDescriptor_788baa062b181a57, []int{
|
|
536
|
+
return fileDescriptor_788baa062b181a57, []int{9}
|
|
560
537
|
}
|
|
561
538
|
func (m *MsgCoreEval) XXX_Unmarshal(b []byte) error {
|
|
562
539
|
return m.Unmarshal(b)
|
|
@@ -616,7 +593,7 @@ func (m *MsgCoreEvalResponse) Reset() { *m = MsgCoreEvalResponse{} }
|
|
|
616
593
|
func (m *MsgCoreEvalResponse) String() string { return proto.CompactTextString(m) }
|
|
617
594
|
func (*MsgCoreEvalResponse) ProtoMessage() {}
|
|
618
595
|
func (*MsgCoreEvalResponse) Descriptor() ([]byte, []int) {
|
|
619
|
-
return fileDescriptor_788baa062b181a57, []int{
|
|
596
|
+
return fileDescriptor_788baa062b181a57, []int{10}
|
|
620
597
|
}
|
|
621
598
|
func (m *MsgCoreEvalResponse) XXX_Unmarshal(b []byte) error {
|
|
622
599
|
return m.Unmarshal(b)
|
|
@@ -652,6 +629,185 @@ func (m *MsgCoreEvalResponse) GetResult() string {
|
|
|
652
629
|
return ""
|
|
653
630
|
}
|
|
654
631
|
|
|
632
|
+
// MsgInstallBundleResponse is either an empty acknowledgement that a bundle
|
|
633
|
+
// installation message has been queued for the SwingSet kernel's
|
|
634
|
+
// consideration, or (for MsgInstallBundle requests that have a chunked artifact
|
|
635
|
+
// manifest instead of a compressed or uncompressed bundle) a container for the
|
|
636
|
+
// chunked artifact identifier to be included in subsequent MsgSendChunk
|
|
637
|
+
// messages.
|
|
638
|
+
type MsgInstallBundleResponse struct {
|
|
639
|
+
// The assigned identifier for a chunked artifact, if the caller is expected
|
|
640
|
+
// to call back with MsgSendChunk messages.
|
|
641
|
+
ChunkedArtifactId uint64 `protobuf:"varint,1,opt,name=chunked_artifact_id,json=chunkedArtifactId,proto3" json:"chunkedArtifactId" yaml:"chunkedArtifactId"`
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
func (m *MsgInstallBundleResponse) Reset() { *m = MsgInstallBundleResponse{} }
|
|
645
|
+
func (m *MsgInstallBundleResponse) String() string { return proto.CompactTextString(m) }
|
|
646
|
+
func (*MsgInstallBundleResponse) ProtoMessage() {}
|
|
647
|
+
func (*MsgInstallBundleResponse) Descriptor() ([]byte, []int) {
|
|
648
|
+
return fileDescriptor_788baa062b181a57, []int{11}
|
|
649
|
+
}
|
|
650
|
+
func (m *MsgInstallBundleResponse) XXX_Unmarshal(b []byte) error {
|
|
651
|
+
return m.Unmarshal(b)
|
|
652
|
+
}
|
|
653
|
+
func (m *MsgInstallBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
654
|
+
if deterministic {
|
|
655
|
+
return xxx_messageInfo_MsgInstallBundleResponse.Marshal(b, m, deterministic)
|
|
656
|
+
} else {
|
|
657
|
+
b = b[:cap(b)]
|
|
658
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
659
|
+
if err != nil {
|
|
660
|
+
return nil, err
|
|
661
|
+
}
|
|
662
|
+
return b[:n], nil
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
func (m *MsgInstallBundleResponse) XXX_Merge(src proto.Message) {
|
|
666
|
+
xxx_messageInfo_MsgInstallBundleResponse.Merge(m, src)
|
|
667
|
+
}
|
|
668
|
+
func (m *MsgInstallBundleResponse) XXX_Size() int {
|
|
669
|
+
return m.Size()
|
|
670
|
+
}
|
|
671
|
+
func (m *MsgInstallBundleResponse) XXX_DiscardUnknown() {
|
|
672
|
+
xxx_messageInfo_MsgInstallBundleResponse.DiscardUnknown(m)
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
var xxx_messageInfo_MsgInstallBundleResponse proto.InternalMessageInfo
|
|
676
|
+
|
|
677
|
+
func (m *MsgInstallBundleResponse) GetChunkedArtifactId() uint64 {
|
|
678
|
+
if m != nil {
|
|
679
|
+
return m.ChunkedArtifactId
|
|
680
|
+
}
|
|
681
|
+
return 0
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
// MsgSendChunk carries a chunk of an artifact through RPC to the chain.
|
|
685
|
+
// Individual chunks are addressed by the chunked artifact identifier and
|
|
686
|
+
// the zero-based index of the chunk among all chunks as mentioned in the
|
|
687
|
+
// manifest provided to MsgInstallBundle.
|
|
688
|
+
type MsgSendChunk struct {
|
|
689
|
+
ChunkedArtifactId uint64 `protobuf:"varint,1,opt,name=chunked_artifact_id,json=chunkedArtifactId,proto3" json:"chunkedArtifactId" yaml:"chunkedArtifactId"`
|
|
690
|
+
Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=submitter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"submitter" yaml:"submitter"`
|
|
691
|
+
ChunkIndex uint64 `protobuf:"varint,3,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunkIndex" yaml:"chunkIndex"`
|
|
692
|
+
ChunkData []byte `protobuf:"bytes,4,opt,name=chunk_data,json=chunkData,proto3" json:"chunkData" yaml:"chunkData"`
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
func (m *MsgSendChunk) Reset() { *m = MsgSendChunk{} }
|
|
696
|
+
func (m *MsgSendChunk) String() string { return proto.CompactTextString(m) }
|
|
697
|
+
func (*MsgSendChunk) ProtoMessage() {}
|
|
698
|
+
func (*MsgSendChunk) Descriptor() ([]byte, []int) {
|
|
699
|
+
return fileDescriptor_788baa062b181a57, []int{12}
|
|
700
|
+
}
|
|
701
|
+
func (m *MsgSendChunk) XXX_Unmarshal(b []byte) error {
|
|
702
|
+
return m.Unmarshal(b)
|
|
703
|
+
}
|
|
704
|
+
func (m *MsgSendChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
705
|
+
if deterministic {
|
|
706
|
+
return xxx_messageInfo_MsgSendChunk.Marshal(b, m, deterministic)
|
|
707
|
+
} else {
|
|
708
|
+
b = b[:cap(b)]
|
|
709
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
710
|
+
if err != nil {
|
|
711
|
+
return nil, err
|
|
712
|
+
}
|
|
713
|
+
return b[:n], nil
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
func (m *MsgSendChunk) XXX_Merge(src proto.Message) {
|
|
717
|
+
xxx_messageInfo_MsgSendChunk.Merge(m, src)
|
|
718
|
+
}
|
|
719
|
+
func (m *MsgSendChunk) XXX_Size() int {
|
|
720
|
+
return m.Size()
|
|
721
|
+
}
|
|
722
|
+
func (m *MsgSendChunk) XXX_DiscardUnknown() {
|
|
723
|
+
xxx_messageInfo_MsgSendChunk.DiscardUnknown(m)
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
var xxx_messageInfo_MsgSendChunk proto.InternalMessageInfo
|
|
727
|
+
|
|
728
|
+
func (m *MsgSendChunk) GetChunkedArtifactId() uint64 {
|
|
729
|
+
if m != nil {
|
|
730
|
+
return m.ChunkedArtifactId
|
|
731
|
+
}
|
|
732
|
+
return 0
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
func (m *MsgSendChunk) GetSubmitter() github_com_cosmos_cosmos_sdk_types.AccAddress {
|
|
736
|
+
if m != nil {
|
|
737
|
+
return m.Submitter
|
|
738
|
+
}
|
|
739
|
+
return nil
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
func (m *MsgSendChunk) GetChunkIndex() uint64 {
|
|
743
|
+
if m != nil {
|
|
744
|
+
return m.ChunkIndex
|
|
745
|
+
}
|
|
746
|
+
return 0
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
func (m *MsgSendChunk) GetChunkData() []byte {
|
|
750
|
+
if m != nil {
|
|
751
|
+
return m.ChunkData
|
|
752
|
+
}
|
|
753
|
+
return nil
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// MsgSendChunkResponse is an acknowledgement that a chunk has been received by
|
|
757
|
+
// the chain.
|
|
758
|
+
type MsgSendChunkResponse struct {
|
|
759
|
+
ChunkedArtifactId uint64 `protobuf:"varint,1,opt,name=chunked_artifact_id,json=chunkedArtifactId,proto3" json:"chunkedArtifactId" yaml:"chunkedArtifactId"`
|
|
760
|
+
// The current state of the chunk.
|
|
761
|
+
Chunk *ChunkInfo `protobuf:"bytes,2,opt,name=chunk,proto3" json:"chunk" yaml:"chunk"`
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
func (m *MsgSendChunkResponse) Reset() { *m = MsgSendChunkResponse{} }
|
|
765
|
+
func (m *MsgSendChunkResponse) String() string { return proto.CompactTextString(m) }
|
|
766
|
+
func (*MsgSendChunkResponse) ProtoMessage() {}
|
|
767
|
+
func (*MsgSendChunkResponse) Descriptor() ([]byte, []int) {
|
|
768
|
+
return fileDescriptor_788baa062b181a57, []int{13}
|
|
769
|
+
}
|
|
770
|
+
func (m *MsgSendChunkResponse) XXX_Unmarshal(b []byte) error {
|
|
771
|
+
return m.Unmarshal(b)
|
|
772
|
+
}
|
|
773
|
+
func (m *MsgSendChunkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
774
|
+
if deterministic {
|
|
775
|
+
return xxx_messageInfo_MsgSendChunkResponse.Marshal(b, m, deterministic)
|
|
776
|
+
} else {
|
|
777
|
+
b = b[:cap(b)]
|
|
778
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
779
|
+
if err != nil {
|
|
780
|
+
return nil, err
|
|
781
|
+
}
|
|
782
|
+
return b[:n], nil
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
func (m *MsgSendChunkResponse) XXX_Merge(src proto.Message) {
|
|
786
|
+
xxx_messageInfo_MsgSendChunkResponse.Merge(m, src)
|
|
787
|
+
}
|
|
788
|
+
func (m *MsgSendChunkResponse) XXX_Size() int {
|
|
789
|
+
return m.Size()
|
|
790
|
+
}
|
|
791
|
+
func (m *MsgSendChunkResponse) XXX_DiscardUnknown() {
|
|
792
|
+
xxx_messageInfo_MsgSendChunkResponse.DiscardUnknown(m)
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
var xxx_messageInfo_MsgSendChunkResponse proto.InternalMessageInfo
|
|
796
|
+
|
|
797
|
+
func (m *MsgSendChunkResponse) GetChunkedArtifactId() uint64 {
|
|
798
|
+
if m != nil {
|
|
799
|
+
return m.ChunkedArtifactId
|
|
800
|
+
}
|
|
801
|
+
return 0
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
func (m *MsgSendChunkResponse) GetChunk() *ChunkInfo {
|
|
805
|
+
if m != nil {
|
|
806
|
+
return m.Chunk
|
|
807
|
+
}
|
|
808
|
+
return nil
|
|
809
|
+
}
|
|
810
|
+
|
|
655
811
|
func init() {
|
|
656
812
|
proto.RegisterType((*MsgDeliverInbound)(nil), "agoric.swingset.MsgDeliverInbound")
|
|
657
813
|
proto.RegisterType((*MsgDeliverInboundResponse)(nil), "agoric.swingset.MsgDeliverInboundResponse")
|
|
@@ -662,84 +818,102 @@ func init() {
|
|
|
662
818
|
proto.RegisterType((*MsgProvision)(nil), "agoric.swingset.MsgProvision")
|
|
663
819
|
proto.RegisterType((*MsgProvisionResponse)(nil), "agoric.swingset.MsgProvisionResponse")
|
|
664
820
|
proto.RegisterType((*MsgInstallBundle)(nil), "agoric.swingset.MsgInstallBundle")
|
|
665
|
-
proto.RegisterType((*MsgInstallBundleResponse)(nil), "agoric.swingset.MsgInstallBundleResponse")
|
|
666
821
|
proto.RegisterType((*MsgCoreEval)(nil), "agoric.swingset.MsgCoreEval")
|
|
667
822
|
proto.RegisterType((*MsgCoreEvalResponse)(nil), "agoric.swingset.MsgCoreEvalResponse")
|
|
823
|
+
proto.RegisterType((*MsgInstallBundleResponse)(nil), "agoric.swingset.MsgInstallBundleResponse")
|
|
824
|
+
proto.RegisterType((*MsgSendChunk)(nil), "agoric.swingset.MsgSendChunk")
|
|
825
|
+
proto.RegisterType((*MsgSendChunkResponse)(nil), "agoric.swingset.MsgSendChunkResponse")
|
|
668
826
|
}
|
|
669
827
|
|
|
670
828
|
func init() { proto.RegisterFile("agoric/swingset/msgs.proto", fileDescriptor_788baa062b181a57) }
|
|
671
829
|
|
|
672
830
|
var fileDescriptor_788baa062b181a57 = []byte{
|
|
673
|
-
//
|
|
674
|
-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc,
|
|
675
|
-
0x17,
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
0xa7,
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
831
|
+
// 1346 bytes of a gzipped FileDescriptorProto
|
|
832
|
+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6c, 0x1b, 0xc5,
|
|
833
|
+
0x17, 0xcf, 0xd6, 0x49, 0x5a, 0x8f, 0xdd, 0x26, 0xde, 0xf4, 0x9f, 0x38, 0xdb, 0xfe, 0x3d, 0xee,
|
|
834
|
+
0x96, 0x4a, 0x6e, 0x68, 0x6c, 0x11, 0x2a, 0x84, 0x5c, 0x0e, 0x64, 0x5b, 0x3e, 0x2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0x77, 0xc1, 0x09, 0x17, 0x61, 0xac, 0x5b, 0x08, 0x57, 0x85, 0x7a, 0xa1, 0x51, 0x54, 0x5e, 0x19,
|
|
846
|
+
0x44, 0x90, 0x63, 0xc3, 0x08, 0xce, 0xed, 0xea, 0xae, 0xd3, 0x96, 0x13, 0x44, 0xfe, 0xf2, 0x60,
|
|
847
|
+
0x6f, 0x65, 0xc1, 0xeb, 0x3b, 0x8e, 0x86, 0x1d, 0xdb, 0x40, 0x9a, 0x8e, 0x35, 0xe4, 0xf6, 0xc2,
|
|
848
|
+
0xdd, 0x6f, 0x0e, 0xf6, 0x56, 0x04, 0x95, 0xcf, 0x14, 0xdf, 0x04, 0xd3, 0x5e, 0xdf, 0xc5, 0xd5,
|
|
849
|
+
0x63, 0xf5, 0x42, 0x63, 0x5a, 0xb9, 0x3c, 0x88, 0x20, 0x91, 0x87, 0x11, 0x2c, 0x51, 0x8f, 0xb1,
|
|
850
|
+
0x74, 0x88, 0x37, 0x32, 0x43, 0xbc, 0x04, 0x0a, 0xba, 0xb1, 0x55, 0x2d, 0xd4, 0x85, 0xc6, 0xb4,
|
|
851
|
+
0x22, 0x0d, 0x22, 0x18, 0x8b, 0xc3, 0x08, 0x02, 0xea, 0x47, 0x37, 0xb6, 0x64, 0x6a, 0x1e, 0xe3,
|
|
852
|
+
0xe2, 0x43, 0x01, 0x14, 0x71, 0x7f, 0xd3, 0xb5, 0xc3, 0x10, 0x05, 0xd5, 0xe9, 0xba, 0xd0, 0x28,
|
|
853
|
+
0x2b, 0x68, 0x10, 0xc1, 0x14, 0x1c, 0x46, 0x70, 0x9e, 0x4e, 0xe5, 0x90, 0xfc, 0x57, 0x04, 0x57,
|
|
854
|
+
0x2d, 0x3b, 0xbc, 0xdb, 0xdf, 0x6c, 0x1a, 0xbe, 0xcb, 0xf6, 0x9b, 0xfd, 0xad, 0x62, 0x73, 0xab,
|
|
855
|
+
0x15, 0xee, 0xf6, 0x10, 0x6e, 0xae, 0x1b, 0xc6, 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x90, 0x3c, 0x69, 0xe2, 0xa8, 0x8d, 0xb4, 0x72, 0xb8, 0x0d, 0x5f, 0xe1, 0x16, 0x28, 0x8f,
|
|
908
|
+
0x3c, 0xde, 0xeb, 0x93, 0xe6, 0x66, 0x2d, 0xa4, 0xc6, 0x61, 0x16, 0xdc, 0xb7, 0x0d, 0x2a, 0xe3,
|
|
909
|
+
0x8f, 0xe7, 0x0b, 0x4f, 0x9e, 0x9e, 0x31, 0x93, 0x56, 0xff, 0x91, 0x59, 0x76, 0xef, 0xd3, 0x17,
|
|
910
|
+
0xeb, 0xc4, 0xbd, 0xe7, 0xea, 0xc9, 0x7b, 0x3f, 0xf6, 0x04, 0x12, 0xaf, 0x83, 0x13, 0xfc, 0x72,
|
|
911
|
+
0x3a, 0x3b, 0x69, 0x4a, 0xa2, 0x95, 0x9e, 0x7b, 0x9a, 0x36, 0xf1, 0xa7, 0xdc, 0xfc, 0x61, 0xbf,
|
|
912
|
+
0x26, 0x3c, 0xda, 0xaf, 0x09, 0xbf, 0xee, 0xd7, 0x84, 0x4f, 0x1f, 0xd7, 0xa6, 0x1e, 0x3d, 0xae,
|
|
913
|
+
0x4d, 0xfd, 0xfc, 0xb8, 0x36, 0x75, 0xeb, 0x4a, 0xa6, 0x11, 0xad, 0xd3, 0x8f, 0x63, 0xea, 0x90,
|
|
914
|
+
0x34, 0x22, 0xcb, 0x77, 0x74, 0xcf, 0x4a, 0x3a, 0x54, 0xe6, 0x9a, 0x21, 0x1d, 0x6a, 0x73, 0x96,
|
|
915
|
+
0x7c, 0x35, 0xbf, 0xf8, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x25, 0xac, 0x25, 0xe1, 0x0f,
|
|
916
|
+
0x00, 0x00,
|
|
743
917
|
}
|
|
744
918
|
|
|
745
919
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
@@ -756,6 +930,8 @@ const _ = grpc.SupportPackageIsVersion4
|
|
|
756
930
|
type MsgClient interface {
|
|
757
931
|
// Install a JavaScript sources bundle on the chain's SwingSet controller.
|
|
758
932
|
InstallBundle(ctx context.Context, in *MsgInstallBundle, opts ...grpc.CallOption) (*MsgInstallBundleResponse, error)
|
|
933
|
+
// Send a chunk of a bundle (or other artifact) to tolerate RPC message size limits.
|
|
934
|
+
SendChunk(ctx context.Context, in *MsgSendChunk, opts ...grpc.CallOption) (*MsgSendChunkResponse, error)
|
|
759
935
|
// Send inbound messages.
|
|
760
936
|
DeliverInbound(ctx context.Context, in *MsgDeliverInbound, opts ...grpc.CallOption) (*MsgDeliverInboundResponse, error)
|
|
761
937
|
// Perform a low-privilege wallet action.
|
|
@@ -785,6 +961,15 @@ func (c *msgClient) InstallBundle(ctx context.Context, in *MsgInstallBundle, opt
|
|
|
785
961
|
return out, nil
|
|
786
962
|
}
|
|
787
963
|
|
|
964
|
+
func (c *msgClient) SendChunk(ctx context.Context, in *MsgSendChunk, opts ...grpc.CallOption) (*MsgSendChunkResponse, error) {
|
|
965
|
+
out := new(MsgSendChunkResponse)
|
|
966
|
+
err := c.cc.Invoke(ctx, "/agoric.swingset.Msg/SendChunk", in, out, opts...)
|
|
967
|
+
if err != nil {
|
|
968
|
+
return nil, err
|
|
969
|
+
}
|
|
970
|
+
return out, nil
|
|
971
|
+
}
|
|
972
|
+
|
|
788
973
|
func (c *msgClient) DeliverInbound(ctx context.Context, in *MsgDeliverInbound, opts ...grpc.CallOption) (*MsgDeliverInboundResponse, error) {
|
|
789
974
|
out := new(MsgDeliverInboundResponse)
|
|
790
975
|
err := c.cc.Invoke(ctx, "/agoric.swingset.Msg/DeliverInbound", in, out, opts...)
|
|
@@ -834,6 +1019,8 @@ func (c *msgClient) CoreEval(ctx context.Context, in *MsgCoreEval, opts ...grpc.
|
|
|
834
1019
|
type MsgServer interface {
|
|
835
1020
|
// Install a JavaScript sources bundle on the chain's SwingSet controller.
|
|
836
1021
|
InstallBundle(context.Context, *MsgInstallBundle) (*MsgInstallBundleResponse, error)
|
|
1022
|
+
// Send a chunk of a bundle (or other artifact) to tolerate RPC message size limits.
|
|
1023
|
+
SendChunk(context.Context, *MsgSendChunk) (*MsgSendChunkResponse, error)
|
|
837
1024
|
// Send inbound messages.
|
|
838
1025
|
DeliverInbound(context.Context, *MsgDeliverInbound) (*MsgDeliverInboundResponse, error)
|
|
839
1026
|
// Perform a low-privilege wallet action.
|
|
@@ -853,6 +1040,9 @@ type UnimplementedMsgServer struct {
|
|
|
853
1040
|
func (*UnimplementedMsgServer) InstallBundle(ctx context.Context, req *MsgInstallBundle) (*MsgInstallBundleResponse, error) {
|
|
854
1041
|
return nil, status.Errorf(codes.Unimplemented, "method InstallBundle not implemented")
|
|
855
1042
|
}
|
|
1043
|
+
func (*UnimplementedMsgServer) SendChunk(ctx context.Context, req *MsgSendChunk) (*MsgSendChunkResponse, error) {
|
|
1044
|
+
return nil, status.Errorf(codes.Unimplemented, "method SendChunk not implemented")
|
|
1045
|
+
}
|
|
856
1046
|
func (*UnimplementedMsgServer) DeliverInbound(ctx context.Context, req *MsgDeliverInbound) (*MsgDeliverInboundResponse, error) {
|
|
857
1047
|
return nil, status.Errorf(codes.Unimplemented, "method DeliverInbound not implemented")
|
|
858
1048
|
}
|
|
@@ -891,6 +1081,24 @@ func _Msg_InstallBundle_Handler(srv interface{}, ctx context.Context, dec func(i
|
|
|
891
1081
|
return interceptor(ctx, in, info, handler)
|
|
892
1082
|
}
|
|
893
1083
|
|
|
1084
|
+
func _Msg_SendChunk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
1085
|
+
in := new(MsgSendChunk)
|
|
1086
|
+
if err := dec(in); err != nil {
|
|
1087
|
+
return nil, err
|
|
1088
|
+
}
|
|
1089
|
+
if interceptor == nil {
|
|
1090
|
+
return srv.(MsgServer).SendChunk(ctx, in)
|
|
1091
|
+
}
|
|
1092
|
+
info := &grpc.UnaryServerInfo{
|
|
1093
|
+
Server: srv,
|
|
1094
|
+
FullMethod: "/agoric.swingset.Msg/SendChunk",
|
|
1095
|
+
}
|
|
1096
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
1097
|
+
return srv.(MsgServer).SendChunk(ctx, req.(*MsgSendChunk))
|
|
1098
|
+
}
|
|
1099
|
+
return interceptor(ctx, in, info, handler)
|
|
1100
|
+
}
|
|
1101
|
+
|
|
894
1102
|
func _Msg_DeliverInbound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
895
1103
|
in := new(MsgDeliverInbound)
|
|
896
1104
|
if err := dec(in); err != nil {
|
|
@@ -990,6 +1198,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
|
|
990
1198
|
MethodName: "InstallBundle",
|
|
991
1199
|
Handler: _Msg_InstallBundle_Handler,
|
|
992
1200
|
},
|
|
1201
|
+
{
|
|
1202
|
+
MethodName: "SendChunk",
|
|
1203
|
+
Handler: _Msg_SendChunk_Handler,
|
|
1204
|
+
},
|
|
993
1205
|
{
|
|
994
1206
|
MethodName: "DeliverInbound",
|
|
995
1207
|
Handler: _Msg_DeliverInbound_Handler,
|
|
@@ -1316,6 +1528,18 @@ func (m *MsgInstallBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
1316
1528
|
_ = i
|
|
1317
1529
|
var l int
|
|
1318
1530
|
_ = l
|
|
1531
|
+
if m.ChunkedArtifact != nil {
|
|
1532
|
+
{
|
|
1533
|
+
size, err := m.ChunkedArtifact.MarshalToSizedBuffer(dAtA[:i])
|
|
1534
|
+
if err != nil {
|
|
1535
|
+
return 0, err
|
|
1536
|
+
}
|
|
1537
|
+
i -= size
|
|
1538
|
+
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
1539
|
+
}
|
|
1540
|
+
i--
|
|
1541
|
+
dAtA[i] = 0x2a
|
|
1542
|
+
}
|
|
1319
1543
|
if m.UncompressedSize != 0 {
|
|
1320
1544
|
i = encodeVarintMsgs(dAtA, i, uint64(m.UncompressedSize))
|
|
1321
1545
|
i--
|
|
@@ -1345,29 +1569,6 @@ func (m *MsgInstallBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
1345
1569
|
return len(dAtA) - i, nil
|
|
1346
1570
|
}
|
|
1347
1571
|
|
|
1348
|
-
func (m *MsgInstallBundleResponse) Marshal() (dAtA []byte, err error) {
|
|
1349
|
-
size := m.Size()
|
|
1350
|
-
dAtA = make([]byte, size)
|
|
1351
|
-
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
1352
|
-
if err != nil {
|
|
1353
|
-
return nil, err
|
|
1354
|
-
}
|
|
1355
|
-
return dAtA[:n], nil
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
func (m *MsgInstallBundleResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
1359
|
-
size := m.Size()
|
|
1360
|
-
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
func (m *MsgInstallBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1364
|
-
i := len(dAtA)
|
|
1365
|
-
_ = i
|
|
1366
|
-
var l int
|
|
1367
|
-
_ = l
|
|
1368
|
-
return len(dAtA) - i, nil
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
1572
|
func (m *MsgCoreEval) Marshal() (dAtA []byte, err error) {
|
|
1372
1573
|
size := m.Size()
|
|
1373
1574
|
dAtA = make([]byte, size)
|
|
@@ -1442,37 +1643,152 @@ func (m *MsgCoreEvalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
1442
1643
|
return len(dAtA) - i, nil
|
|
1443
1644
|
}
|
|
1444
1645
|
|
|
1445
|
-
func
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
offset++
|
|
1646
|
+
func (m *MsgInstallBundleResponse) Marshal() (dAtA []byte, err error) {
|
|
1647
|
+
size := m.Size()
|
|
1648
|
+
dAtA = make([]byte, size)
|
|
1649
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
1650
|
+
if err != nil {
|
|
1651
|
+
return nil, err
|
|
1452
1652
|
}
|
|
1453
|
-
dAtA[
|
|
1454
|
-
return base
|
|
1653
|
+
return dAtA[:n], nil
|
|
1455
1654
|
}
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1655
|
+
|
|
1656
|
+
func (m *MsgInstallBundleResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
1657
|
+
size := m.Size()
|
|
1658
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
func (m *MsgInstallBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1662
|
+
i := len(dAtA)
|
|
1663
|
+
_ = i
|
|
1460
1664
|
var l int
|
|
1461
1665
|
_ = l
|
|
1462
|
-
if
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
}
|
|
1666
|
+
if m.ChunkedArtifactId != 0 {
|
|
1667
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.ChunkedArtifactId))
|
|
1668
|
+
i--
|
|
1669
|
+
dAtA[i] = 0x8
|
|
1467
1670
|
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1671
|
+
return len(dAtA) - i, nil
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
func (m *MsgSendChunk) Marshal() (dAtA []byte, err error) {
|
|
1675
|
+
size := m.Size()
|
|
1676
|
+
dAtA = make([]byte, size)
|
|
1677
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
1678
|
+
if err != nil {
|
|
1679
|
+
return nil, err
|
|
1474
1680
|
}
|
|
1475
|
-
|
|
1681
|
+
return dAtA[:n], nil
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
func (m *MsgSendChunk) MarshalTo(dAtA []byte) (int, error) {
|
|
1685
|
+
size := m.Size()
|
|
1686
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
func (m *MsgSendChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1690
|
+
i := len(dAtA)
|
|
1691
|
+
_ = i
|
|
1692
|
+
var l int
|
|
1693
|
+
_ = l
|
|
1694
|
+
if len(m.ChunkData) > 0 {
|
|
1695
|
+
i -= len(m.ChunkData)
|
|
1696
|
+
copy(dAtA[i:], m.ChunkData)
|
|
1697
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.ChunkData)))
|
|
1698
|
+
i--
|
|
1699
|
+
dAtA[i] = 0x22
|
|
1700
|
+
}
|
|
1701
|
+
if m.ChunkIndex != 0 {
|
|
1702
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.ChunkIndex))
|
|
1703
|
+
i--
|
|
1704
|
+
dAtA[i] = 0x18
|
|
1705
|
+
}
|
|
1706
|
+
if len(m.Submitter) > 0 {
|
|
1707
|
+
i -= len(m.Submitter)
|
|
1708
|
+
copy(dAtA[i:], m.Submitter)
|
|
1709
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.Submitter)))
|
|
1710
|
+
i--
|
|
1711
|
+
dAtA[i] = 0x12
|
|
1712
|
+
}
|
|
1713
|
+
if m.ChunkedArtifactId != 0 {
|
|
1714
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.ChunkedArtifactId))
|
|
1715
|
+
i--
|
|
1716
|
+
dAtA[i] = 0x8
|
|
1717
|
+
}
|
|
1718
|
+
return len(dAtA) - i, nil
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
func (m *MsgSendChunkResponse) Marshal() (dAtA []byte, err error) {
|
|
1722
|
+
size := m.Size()
|
|
1723
|
+
dAtA = make([]byte, size)
|
|
1724
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
1725
|
+
if err != nil {
|
|
1726
|
+
return nil, err
|
|
1727
|
+
}
|
|
1728
|
+
return dAtA[:n], nil
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
func (m *MsgSendChunkResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
1732
|
+
size := m.Size()
|
|
1733
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
func (m *MsgSendChunkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1737
|
+
i := len(dAtA)
|
|
1738
|
+
_ = i
|
|
1739
|
+
var l int
|
|
1740
|
+
_ = l
|
|
1741
|
+
if m.Chunk != nil {
|
|
1742
|
+
{
|
|
1743
|
+
size, err := m.Chunk.MarshalToSizedBuffer(dAtA[:i])
|
|
1744
|
+
if err != nil {
|
|
1745
|
+
return 0, err
|
|
1746
|
+
}
|
|
1747
|
+
i -= size
|
|
1748
|
+
i = encodeVarintMsgs(dAtA, i, uint64(size))
|
|
1749
|
+
}
|
|
1750
|
+
i--
|
|
1751
|
+
dAtA[i] = 0x12
|
|
1752
|
+
}
|
|
1753
|
+
if m.ChunkedArtifactId != 0 {
|
|
1754
|
+
i = encodeVarintMsgs(dAtA, i, uint64(m.ChunkedArtifactId))
|
|
1755
|
+
i--
|
|
1756
|
+
dAtA[i] = 0x8
|
|
1757
|
+
}
|
|
1758
|
+
return len(dAtA) - i, nil
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
func encodeVarintMsgs(dAtA []byte, offset int, v uint64) int {
|
|
1762
|
+
offset -= sovMsgs(v)
|
|
1763
|
+
base := offset
|
|
1764
|
+
for v >= 1<<7 {
|
|
1765
|
+
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
1766
|
+
v >>= 7
|
|
1767
|
+
offset++
|
|
1768
|
+
}
|
|
1769
|
+
dAtA[offset] = uint8(v)
|
|
1770
|
+
return base
|
|
1771
|
+
}
|
|
1772
|
+
func (m *MsgDeliverInbound) Size() (n int) {
|
|
1773
|
+
if m == nil {
|
|
1774
|
+
return 0
|
|
1775
|
+
}
|
|
1776
|
+
var l int
|
|
1777
|
+
_ = l
|
|
1778
|
+
if len(m.Messages) > 0 {
|
|
1779
|
+
for _, s := range m.Messages {
|
|
1780
|
+
l = len(s)
|
|
1781
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
if len(m.Nums) > 0 {
|
|
1785
|
+
l = 0
|
|
1786
|
+
for _, e := range m.Nums {
|
|
1787
|
+
l += sovMsgs(uint64(e))
|
|
1788
|
+
}
|
|
1789
|
+
n += 1 + sovMsgs(uint64(l)) + l
|
|
1790
|
+
}
|
|
1791
|
+
if m.Ack != 0 {
|
|
1476
1792
|
n += 1 + sovMsgs(uint64(m.Ack))
|
|
1477
1793
|
}
|
|
1478
1794
|
l = len(m.Submitter)
|
|
@@ -1600,15 +1916,10 @@ func (m *MsgInstallBundle) Size() (n int) {
|
|
|
1600
1916
|
if m.UncompressedSize != 0 {
|
|
1601
1917
|
n += 1 + sovMsgs(uint64(m.UncompressedSize))
|
|
1602
1918
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
func (m *MsgInstallBundleResponse) Size() (n int) {
|
|
1607
|
-
if m == nil {
|
|
1608
|
-
return 0
|
|
1919
|
+
if m.ChunkedArtifact != nil {
|
|
1920
|
+
l = m.ChunkedArtifact.Size()
|
|
1921
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1609
1922
|
}
|
|
1610
|
-
var l int
|
|
1611
|
-
_ = l
|
|
1612
1923
|
return n
|
|
1613
1924
|
}
|
|
1614
1925
|
|
|
@@ -1646,6 +1957,57 @@ func (m *MsgCoreEvalResponse) Size() (n int) {
|
|
|
1646
1957
|
return n
|
|
1647
1958
|
}
|
|
1648
1959
|
|
|
1960
|
+
func (m *MsgInstallBundleResponse) Size() (n int) {
|
|
1961
|
+
if m == nil {
|
|
1962
|
+
return 0
|
|
1963
|
+
}
|
|
1964
|
+
var l int
|
|
1965
|
+
_ = l
|
|
1966
|
+
if m.ChunkedArtifactId != 0 {
|
|
1967
|
+
n += 1 + sovMsgs(uint64(m.ChunkedArtifactId))
|
|
1968
|
+
}
|
|
1969
|
+
return n
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
func (m *MsgSendChunk) Size() (n int) {
|
|
1973
|
+
if m == nil {
|
|
1974
|
+
return 0
|
|
1975
|
+
}
|
|
1976
|
+
var l int
|
|
1977
|
+
_ = l
|
|
1978
|
+
if m.ChunkedArtifactId != 0 {
|
|
1979
|
+
n += 1 + sovMsgs(uint64(m.ChunkedArtifactId))
|
|
1980
|
+
}
|
|
1981
|
+
l = len(m.Submitter)
|
|
1982
|
+
if l > 0 {
|
|
1983
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1984
|
+
}
|
|
1985
|
+
if m.ChunkIndex != 0 {
|
|
1986
|
+
n += 1 + sovMsgs(uint64(m.ChunkIndex))
|
|
1987
|
+
}
|
|
1988
|
+
l = len(m.ChunkData)
|
|
1989
|
+
if l > 0 {
|
|
1990
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1991
|
+
}
|
|
1992
|
+
return n
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
func (m *MsgSendChunkResponse) Size() (n int) {
|
|
1996
|
+
if m == nil {
|
|
1997
|
+
return 0
|
|
1998
|
+
}
|
|
1999
|
+
var l int
|
|
2000
|
+
_ = l
|
|
2001
|
+
if m.ChunkedArtifactId != 0 {
|
|
2002
|
+
n += 1 + sovMsgs(uint64(m.ChunkedArtifactId))
|
|
2003
|
+
}
|
|
2004
|
+
if m.Chunk != nil {
|
|
2005
|
+
l = m.Chunk.Size()
|
|
2006
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
2007
|
+
}
|
|
2008
|
+
return n
|
|
2009
|
+
}
|
|
2010
|
+
|
|
1649
2011
|
func sovMsgs(x uint64) (n int) {
|
|
1650
2012
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
1651
2013
|
}
|
|
@@ -2625,6 +2987,42 @@ func (m *MsgInstallBundle) Unmarshal(dAtA []byte) error {
|
|
|
2625
2987
|
break
|
|
2626
2988
|
}
|
|
2627
2989
|
}
|
|
2990
|
+
case 5:
|
|
2991
|
+
if wireType != 2 {
|
|
2992
|
+
return fmt.Errorf("proto: wrong wireType = %d for field ChunkedArtifact", wireType)
|
|
2993
|
+
}
|
|
2994
|
+
var msglen int
|
|
2995
|
+
for shift := uint(0); ; shift += 7 {
|
|
2996
|
+
if shift >= 64 {
|
|
2997
|
+
return ErrIntOverflowMsgs
|
|
2998
|
+
}
|
|
2999
|
+
if iNdEx >= l {
|
|
3000
|
+
return io.ErrUnexpectedEOF
|
|
3001
|
+
}
|
|
3002
|
+
b := dAtA[iNdEx]
|
|
3003
|
+
iNdEx++
|
|
3004
|
+
msglen |= int(b&0x7F) << shift
|
|
3005
|
+
if b < 0x80 {
|
|
3006
|
+
break
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
if msglen < 0 {
|
|
3010
|
+
return ErrInvalidLengthMsgs
|
|
3011
|
+
}
|
|
3012
|
+
postIndex := iNdEx + msglen
|
|
3013
|
+
if postIndex < 0 {
|
|
3014
|
+
return ErrInvalidLengthMsgs
|
|
3015
|
+
}
|
|
3016
|
+
if postIndex > l {
|
|
3017
|
+
return io.ErrUnexpectedEOF
|
|
3018
|
+
}
|
|
3019
|
+
if m.ChunkedArtifact == nil {
|
|
3020
|
+
m.ChunkedArtifact = &ChunkedArtifact{}
|
|
3021
|
+
}
|
|
3022
|
+
if err := m.ChunkedArtifact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
3023
|
+
return err
|
|
3024
|
+
}
|
|
3025
|
+
iNdEx = postIndex
|
|
2628
3026
|
default:
|
|
2629
3027
|
iNdEx = preIndex
|
|
2630
3028
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
@@ -2646,7 +3044,7 @@ func (m *MsgInstallBundle) Unmarshal(dAtA []byte) error {
|
|
|
2646
3044
|
}
|
|
2647
3045
|
return nil
|
|
2648
3046
|
}
|
|
2649
|
-
func (m *
|
|
3047
|
+
func (m *MsgCoreEval) Unmarshal(dAtA []byte) error {
|
|
2650
3048
|
l := len(dAtA)
|
|
2651
3049
|
iNdEx := 0
|
|
2652
3050
|
for iNdEx < l {
|
|
@@ -2669,12 +3067,108 @@ func (m *MsgInstallBundleResponse) Unmarshal(dAtA []byte) error {
|
|
|
2669
3067
|
fieldNum := int32(wire >> 3)
|
|
2670
3068
|
wireType := int(wire & 0x7)
|
|
2671
3069
|
if wireType == 4 {
|
|
2672
|
-
return fmt.Errorf("proto:
|
|
3070
|
+
return fmt.Errorf("proto: MsgCoreEval: wiretype end group for non-group")
|
|
2673
3071
|
}
|
|
2674
3072
|
if fieldNum <= 0 {
|
|
2675
|
-
return fmt.Errorf("proto:
|
|
3073
|
+
return fmt.Errorf("proto: MsgCoreEval: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
2676
3074
|
}
|
|
2677
3075
|
switch fieldNum {
|
|
3076
|
+
case 1:
|
|
3077
|
+
if wireType != 2 {
|
|
3078
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
|
|
3079
|
+
}
|
|
3080
|
+
var stringLen uint64
|
|
3081
|
+
for shift := uint(0); ; shift += 7 {
|
|
3082
|
+
if shift >= 64 {
|
|
3083
|
+
return ErrIntOverflowMsgs
|
|
3084
|
+
}
|
|
3085
|
+
if iNdEx >= l {
|
|
3086
|
+
return io.ErrUnexpectedEOF
|
|
3087
|
+
}
|
|
3088
|
+
b := dAtA[iNdEx]
|
|
3089
|
+
iNdEx++
|
|
3090
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
3091
|
+
if b < 0x80 {
|
|
3092
|
+
break
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
intStringLen := int(stringLen)
|
|
3096
|
+
if intStringLen < 0 {
|
|
3097
|
+
return ErrInvalidLengthMsgs
|
|
3098
|
+
}
|
|
3099
|
+
postIndex := iNdEx + intStringLen
|
|
3100
|
+
if postIndex < 0 {
|
|
3101
|
+
return ErrInvalidLengthMsgs
|
|
3102
|
+
}
|
|
3103
|
+
if postIndex > l {
|
|
3104
|
+
return io.ErrUnexpectedEOF
|
|
3105
|
+
}
|
|
3106
|
+
m.Authority = string(dAtA[iNdEx:postIndex])
|
|
3107
|
+
iNdEx = postIndex
|
|
3108
|
+
case 2:
|
|
3109
|
+
if wireType != 2 {
|
|
3110
|
+
return fmt.Errorf("proto: wrong wireType = %d for field JsonPermits", wireType)
|
|
3111
|
+
}
|
|
3112
|
+
var stringLen uint64
|
|
3113
|
+
for shift := uint(0); ; shift += 7 {
|
|
3114
|
+
if shift >= 64 {
|
|
3115
|
+
return ErrIntOverflowMsgs
|
|
3116
|
+
}
|
|
3117
|
+
if iNdEx >= l {
|
|
3118
|
+
return io.ErrUnexpectedEOF
|
|
3119
|
+
}
|
|
3120
|
+
b := dAtA[iNdEx]
|
|
3121
|
+
iNdEx++
|
|
3122
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
3123
|
+
if b < 0x80 {
|
|
3124
|
+
break
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
intStringLen := int(stringLen)
|
|
3128
|
+
if intStringLen < 0 {
|
|
3129
|
+
return ErrInvalidLengthMsgs
|
|
3130
|
+
}
|
|
3131
|
+
postIndex := iNdEx + intStringLen
|
|
3132
|
+
if postIndex < 0 {
|
|
3133
|
+
return ErrInvalidLengthMsgs
|
|
3134
|
+
}
|
|
3135
|
+
if postIndex > l {
|
|
3136
|
+
return io.ErrUnexpectedEOF
|
|
3137
|
+
}
|
|
3138
|
+
m.JsonPermits = string(dAtA[iNdEx:postIndex])
|
|
3139
|
+
iNdEx = postIndex
|
|
3140
|
+
case 3:
|
|
3141
|
+
if wireType != 2 {
|
|
3142
|
+
return fmt.Errorf("proto: wrong wireType = %d for field JsCode", wireType)
|
|
3143
|
+
}
|
|
3144
|
+
var stringLen uint64
|
|
3145
|
+
for shift := uint(0); ; shift += 7 {
|
|
3146
|
+
if shift >= 64 {
|
|
3147
|
+
return ErrIntOverflowMsgs
|
|
3148
|
+
}
|
|
3149
|
+
if iNdEx >= l {
|
|
3150
|
+
return io.ErrUnexpectedEOF
|
|
3151
|
+
}
|
|
3152
|
+
b := dAtA[iNdEx]
|
|
3153
|
+
iNdEx++
|
|
3154
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
3155
|
+
if b < 0x80 {
|
|
3156
|
+
break
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
intStringLen := int(stringLen)
|
|
3160
|
+
if intStringLen < 0 {
|
|
3161
|
+
return ErrInvalidLengthMsgs
|
|
3162
|
+
}
|
|
3163
|
+
postIndex := iNdEx + intStringLen
|
|
3164
|
+
if postIndex < 0 {
|
|
3165
|
+
return ErrInvalidLengthMsgs
|
|
3166
|
+
}
|
|
3167
|
+
if postIndex > l {
|
|
3168
|
+
return io.ErrUnexpectedEOF
|
|
3169
|
+
}
|
|
3170
|
+
m.JsCode = string(dAtA[iNdEx:postIndex])
|
|
3171
|
+
iNdEx = postIndex
|
|
2678
3172
|
default:
|
|
2679
3173
|
iNdEx = preIndex
|
|
2680
3174
|
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
@@ -2696,7 +3190,7 @@ func (m *MsgInstallBundleResponse) Unmarshal(dAtA []byte) error {
|
|
|
2696
3190
|
}
|
|
2697
3191
|
return nil
|
|
2698
3192
|
}
|
|
2699
|
-
func (m *
|
|
3193
|
+
func (m *MsgCoreEvalResponse) Unmarshal(dAtA []byte) error {
|
|
2700
3194
|
l := len(dAtA)
|
|
2701
3195
|
iNdEx := 0
|
|
2702
3196
|
for iNdEx < l {
|
|
@@ -2719,15 +3213,15 @@ func (m *MsgCoreEval) Unmarshal(dAtA []byte) error {
|
|
|
2719
3213
|
fieldNum := int32(wire >> 3)
|
|
2720
3214
|
wireType := int(wire & 0x7)
|
|
2721
3215
|
if wireType == 4 {
|
|
2722
|
-
return fmt.Errorf("proto:
|
|
3216
|
+
return fmt.Errorf("proto: MsgCoreEvalResponse: wiretype end group for non-group")
|
|
2723
3217
|
}
|
|
2724
3218
|
if fieldNum <= 0 {
|
|
2725
|
-
return fmt.Errorf("proto:
|
|
3219
|
+
return fmt.Errorf("proto: MsgCoreEvalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
2726
3220
|
}
|
|
2727
3221
|
switch fieldNum {
|
|
2728
3222
|
case 1:
|
|
2729
3223
|
if wireType != 2 {
|
|
2730
|
-
return fmt.Errorf("proto: wrong wireType = %d for field
|
|
3224
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
|
|
2731
3225
|
}
|
|
2732
3226
|
var stringLen uint64
|
|
2733
3227
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -2755,13 +3249,151 @@ func (m *MsgCoreEval) Unmarshal(dAtA []byte) error {
|
|
|
2755
3249
|
if postIndex > l {
|
|
2756
3250
|
return io.ErrUnexpectedEOF
|
|
2757
3251
|
}
|
|
2758
|
-
m.
|
|
3252
|
+
m.Result = string(dAtA[iNdEx:postIndex])
|
|
2759
3253
|
iNdEx = postIndex
|
|
3254
|
+
default:
|
|
3255
|
+
iNdEx = preIndex
|
|
3256
|
+
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
3257
|
+
if err != nil {
|
|
3258
|
+
return err
|
|
3259
|
+
}
|
|
3260
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
3261
|
+
return ErrInvalidLengthMsgs
|
|
3262
|
+
}
|
|
3263
|
+
if (iNdEx + skippy) > l {
|
|
3264
|
+
return io.ErrUnexpectedEOF
|
|
3265
|
+
}
|
|
3266
|
+
iNdEx += skippy
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
if iNdEx > l {
|
|
3271
|
+
return io.ErrUnexpectedEOF
|
|
3272
|
+
}
|
|
3273
|
+
return nil
|
|
3274
|
+
}
|
|
3275
|
+
func (m *MsgInstallBundleResponse) Unmarshal(dAtA []byte) error {
|
|
3276
|
+
l := len(dAtA)
|
|
3277
|
+
iNdEx := 0
|
|
3278
|
+
for iNdEx < l {
|
|
3279
|
+
preIndex := iNdEx
|
|
3280
|
+
var wire uint64
|
|
3281
|
+
for shift := uint(0); ; shift += 7 {
|
|
3282
|
+
if shift >= 64 {
|
|
3283
|
+
return ErrIntOverflowMsgs
|
|
3284
|
+
}
|
|
3285
|
+
if iNdEx >= l {
|
|
3286
|
+
return io.ErrUnexpectedEOF
|
|
3287
|
+
}
|
|
3288
|
+
b := dAtA[iNdEx]
|
|
3289
|
+
iNdEx++
|
|
3290
|
+
wire |= uint64(b&0x7F) << shift
|
|
3291
|
+
if b < 0x80 {
|
|
3292
|
+
break
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
fieldNum := int32(wire >> 3)
|
|
3296
|
+
wireType := int(wire & 0x7)
|
|
3297
|
+
if wireType == 4 {
|
|
3298
|
+
return fmt.Errorf("proto: MsgInstallBundleResponse: wiretype end group for non-group")
|
|
3299
|
+
}
|
|
3300
|
+
if fieldNum <= 0 {
|
|
3301
|
+
return fmt.Errorf("proto: MsgInstallBundleResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
3302
|
+
}
|
|
3303
|
+
switch fieldNum {
|
|
3304
|
+
case 1:
|
|
3305
|
+
if wireType != 0 {
|
|
3306
|
+
return fmt.Errorf("proto: wrong wireType = %d for field ChunkedArtifactId", wireType)
|
|
3307
|
+
}
|
|
3308
|
+
m.ChunkedArtifactId = 0
|
|
3309
|
+
for shift := uint(0); ; shift += 7 {
|
|
3310
|
+
if shift >= 64 {
|
|
3311
|
+
return ErrIntOverflowMsgs
|
|
3312
|
+
}
|
|
3313
|
+
if iNdEx >= l {
|
|
3314
|
+
return io.ErrUnexpectedEOF
|
|
3315
|
+
}
|
|
3316
|
+
b := dAtA[iNdEx]
|
|
3317
|
+
iNdEx++
|
|
3318
|
+
m.ChunkedArtifactId |= uint64(b&0x7F) << shift
|
|
3319
|
+
if b < 0x80 {
|
|
3320
|
+
break
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
default:
|
|
3324
|
+
iNdEx = preIndex
|
|
3325
|
+
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
3326
|
+
if err != nil {
|
|
3327
|
+
return err
|
|
3328
|
+
}
|
|
3329
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
3330
|
+
return ErrInvalidLengthMsgs
|
|
3331
|
+
}
|
|
3332
|
+
if (iNdEx + skippy) > l {
|
|
3333
|
+
return io.ErrUnexpectedEOF
|
|
3334
|
+
}
|
|
3335
|
+
iNdEx += skippy
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
if iNdEx > l {
|
|
3340
|
+
return io.ErrUnexpectedEOF
|
|
3341
|
+
}
|
|
3342
|
+
return nil
|
|
3343
|
+
}
|
|
3344
|
+
func (m *MsgSendChunk) Unmarshal(dAtA []byte) error {
|
|
3345
|
+
l := len(dAtA)
|
|
3346
|
+
iNdEx := 0
|
|
3347
|
+
for iNdEx < l {
|
|
3348
|
+
preIndex := iNdEx
|
|
3349
|
+
var wire uint64
|
|
3350
|
+
for shift := uint(0); ; shift += 7 {
|
|
3351
|
+
if shift >= 64 {
|
|
3352
|
+
return ErrIntOverflowMsgs
|
|
3353
|
+
}
|
|
3354
|
+
if iNdEx >= l {
|
|
3355
|
+
return io.ErrUnexpectedEOF
|
|
3356
|
+
}
|
|
3357
|
+
b := dAtA[iNdEx]
|
|
3358
|
+
iNdEx++
|
|
3359
|
+
wire |= uint64(b&0x7F) << shift
|
|
3360
|
+
if b < 0x80 {
|
|
3361
|
+
break
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
fieldNum := int32(wire >> 3)
|
|
3365
|
+
wireType := int(wire & 0x7)
|
|
3366
|
+
if wireType == 4 {
|
|
3367
|
+
return fmt.Errorf("proto: MsgSendChunk: wiretype end group for non-group")
|
|
3368
|
+
}
|
|
3369
|
+
if fieldNum <= 0 {
|
|
3370
|
+
return fmt.Errorf("proto: MsgSendChunk: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
3371
|
+
}
|
|
3372
|
+
switch fieldNum {
|
|
3373
|
+
case 1:
|
|
3374
|
+
if wireType != 0 {
|
|
3375
|
+
return fmt.Errorf("proto: wrong wireType = %d for field ChunkedArtifactId", wireType)
|
|
3376
|
+
}
|
|
3377
|
+
m.ChunkedArtifactId = 0
|
|
3378
|
+
for shift := uint(0); ; shift += 7 {
|
|
3379
|
+
if shift >= 64 {
|
|
3380
|
+
return ErrIntOverflowMsgs
|
|
3381
|
+
}
|
|
3382
|
+
if iNdEx >= l {
|
|
3383
|
+
return io.ErrUnexpectedEOF
|
|
3384
|
+
}
|
|
3385
|
+
b := dAtA[iNdEx]
|
|
3386
|
+
iNdEx++
|
|
3387
|
+
m.ChunkedArtifactId |= uint64(b&0x7F) << shift
|
|
3388
|
+
if b < 0x80 {
|
|
3389
|
+
break
|
|
3390
|
+
}
|
|
3391
|
+
}
|
|
2760
3392
|
case 2:
|
|
2761
3393
|
if wireType != 2 {
|
|
2762
|
-
return fmt.Errorf("proto: wrong wireType = %d for field
|
|
3394
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType)
|
|
2763
3395
|
}
|
|
2764
|
-
var
|
|
3396
|
+
var byteLen int
|
|
2765
3397
|
for shift := uint(0); ; shift += 7 {
|
|
2766
3398
|
if shift >= 64 {
|
|
2767
3399
|
return ErrIntOverflowMsgs
|
|
@@ -2771,29 +3403,50 @@ func (m *MsgCoreEval) Unmarshal(dAtA []byte) error {
|
|
|
2771
3403
|
}
|
|
2772
3404
|
b := dAtA[iNdEx]
|
|
2773
3405
|
iNdEx++
|
|
2774
|
-
|
|
3406
|
+
byteLen |= int(b&0x7F) << shift
|
|
2775
3407
|
if b < 0x80 {
|
|
2776
3408
|
break
|
|
2777
3409
|
}
|
|
2778
3410
|
}
|
|
2779
|
-
|
|
2780
|
-
if intStringLen < 0 {
|
|
3411
|
+
if byteLen < 0 {
|
|
2781
3412
|
return ErrInvalidLengthMsgs
|
|
2782
3413
|
}
|
|
2783
|
-
postIndex := iNdEx +
|
|
3414
|
+
postIndex := iNdEx + byteLen
|
|
2784
3415
|
if postIndex < 0 {
|
|
2785
3416
|
return ErrInvalidLengthMsgs
|
|
2786
3417
|
}
|
|
2787
3418
|
if postIndex > l {
|
|
2788
3419
|
return io.ErrUnexpectedEOF
|
|
2789
3420
|
}
|
|
2790
|
-
m.
|
|
3421
|
+
m.Submitter = append(m.Submitter[:0], dAtA[iNdEx:postIndex]...)
|
|
3422
|
+
if m.Submitter == nil {
|
|
3423
|
+
m.Submitter = []byte{}
|
|
3424
|
+
}
|
|
2791
3425
|
iNdEx = postIndex
|
|
2792
3426
|
case 3:
|
|
3427
|
+
if wireType != 0 {
|
|
3428
|
+
return fmt.Errorf("proto: wrong wireType = %d for field ChunkIndex", wireType)
|
|
3429
|
+
}
|
|
3430
|
+
m.ChunkIndex = 0
|
|
3431
|
+
for shift := uint(0); ; shift += 7 {
|
|
3432
|
+
if shift >= 64 {
|
|
3433
|
+
return ErrIntOverflowMsgs
|
|
3434
|
+
}
|
|
3435
|
+
if iNdEx >= l {
|
|
3436
|
+
return io.ErrUnexpectedEOF
|
|
3437
|
+
}
|
|
3438
|
+
b := dAtA[iNdEx]
|
|
3439
|
+
iNdEx++
|
|
3440
|
+
m.ChunkIndex |= uint64(b&0x7F) << shift
|
|
3441
|
+
if b < 0x80 {
|
|
3442
|
+
break
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
case 4:
|
|
2793
3446
|
if wireType != 2 {
|
|
2794
|
-
return fmt.Errorf("proto: wrong wireType = %d for field
|
|
3447
|
+
return fmt.Errorf("proto: wrong wireType = %d for field ChunkData", wireType)
|
|
2795
3448
|
}
|
|
2796
|
-
var
|
|
3449
|
+
var byteLen int
|
|
2797
3450
|
for shift := uint(0); ; shift += 7 {
|
|
2798
3451
|
if shift >= 64 {
|
|
2799
3452
|
return ErrIntOverflowMsgs
|
|
@@ -2803,23 +3456,25 @@ func (m *MsgCoreEval) Unmarshal(dAtA []byte) error {
|
|
|
2803
3456
|
}
|
|
2804
3457
|
b := dAtA[iNdEx]
|
|
2805
3458
|
iNdEx++
|
|
2806
|
-
|
|
3459
|
+
byteLen |= int(b&0x7F) << shift
|
|
2807
3460
|
if b < 0x80 {
|
|
2808
3461
|
break
|
|
2809
3462
|
}
|
|
2810
3463
|
}
|
|
2811
|
-
|
|
2812
|
-
if intStringLen < 0 {
|
|
3464
|
+
if byteLen < 0 {
|
|
2813
3465
|
return ErrInvalidLengthMsgs
|
|
2814
3466
|
}
|
|
2815
|
-
postIndex := iNdEx +
|
|
3467
|
+
postIndex := iNdEx + byteLen
|
|
2816
3468
|
if postIndex < 0 {
|
|
2817
3469
|
return ErrInvalidLengthMsgs
|
|
2818
3470
|
}
|
|
2819
3471
|
if postIndex > l {
|
|
2820
3472
|
return io.ErrUnexpectedEOF
|
|
2821
3473
|
}
|
|
2822
|
-
m.
|
|
3474
|
+
m.ChunkData = append(m.ChunkData[:0], dAtA[iNdEx:postIndex]...)
|
|
3475
|
+
if m.ChunkData == nil {
|
|
3476
|
+
m.ChunkData = []byte{}
|
|
3477
|
+
}
|
|
2823
3478
|
iNdEx = postIndex
|
|
2824
3479
|
default:
|
|
2825
3480
|
iNdEx = preIndex
|
|
@@ -2842,7 +3497,7 @@ func (m *MsgCoreEval) Unmarshal(dAtA []byte) error {
|
|
|
2842
3497
|
}
|
|
2843
3498
|
return nil
|
|
2844
3499
|
}
|
|
2845
|
-
func (m *
|
|
3500
|
+
func (m *MsgSendChunkResponse) Unmarshal(dAtA []byte) error {
|
|
2846
3501
|
l := len(dAtA)
|
|
2847
3502
|
iNdEx := 0
|
|
2848
3503
|
for iNdEx < l {
|
|
@@ -2865,17 +3520,36 @@ func (m *MsgCoreEvalResponse) Unmarshal(dAtA []byte) error {
|
|
|
2865
3520
|
fieldNum := int32(wire >> 3)
|
|
2866
3521
|
wireType := int(wire & 0x7)
|
|
2867
3522
|
if wireType == 4 {
|
|
2868
|
-
return fmt.Errorf("proto:
|
|
3523
|
+
return fmt.Errorf("proto: MsgSendChunkResponse: wiretype end group for non-group")
|
|
2869
3524
|
}
|
|
2870
3525
|
if fieldNum <= 0 {
|
|
2871
|
-
return fmt.Errorf("proto:
|
|
3526
|
+
return fmt.Errorf("proto: MsgSendChunkResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
2872
3527
|
}
|
|
2873
3528
|
switch fieldNum {
|
|
2874
3529
|
case 1:
|
|
3530
|
+
if wireType != 0 {
|
|
3531
|
+
return fmt.Errorf("proto: wrong wireType = %d for field ChunkedArtifactId", wireType)
|
|
3532
|
+
}
|
|
3533
|
+
m.ChunkedArtifactId = 0
|
|
3534
|
+
for shift := uint(0); ; shift += 7 {
|
|
3535
|
+
if shift >= 64 {
|
|
3536
|
+
return ErrIntOverflowMsgs
|
|
3537
|
+
}
|
|
3538
|
+
if iNdEx >= l {
|
|
3539
|
+
return io.ErrUnexpectedEOF
|
|
3540
|
+
}
|
|
3541
|
+
b := dAtA[iNdEx]
|
|
3542
|
+
iNdEx++
|
|
3543
|
+
m.ChunkedArtifactId |= uint64(b&0x7F) << shift
|
|
3544
|
+
if b < 0x80 {
|
|
3545
|
+
break
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
case 2:
|
|
2875
3549
|
if wireType != 2 {
|
|
2876
|
-
return fmt.Errorf("proto: wrong wireType = %d for field
|
|
3550
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Chunk", wireType)
|
|
2877
3551
|
}
|
|
2878
|
-
var
|
|
3552
|
+
var msglen int
|
|
2879
3553
|
for shift := uint(0); ; shift += 7 {
|
|
2880
3554
|
if shift >= 64 {
|
|
2881
3555
|
return ErrIntOverflowMsgs
|
|
@@ -2885,23 +3559,27 @@ func (m *MsgCoreEvalResponse) Unmarshal(dAtA []byte) error {
|
|
|
2885
3559
|
}
|
|
2886
3560
|
b := dAtA[iNdEx]
|
|
2887
3561
|
iNdEx++
|
|
2888
|
-
|
|
3562
|
+
msglen |= int(b&0x7F) << shift
|
|
2889
3563
|
if b < 0x80 {
|
|
2890
3564
|
break
|
|
2891
3565
|
}
|
|
2892
3566
|
}
|
|
2893
|
-
|
|
2894
|
-
if intStringLen < 0 {
|
|
3567
|
+
if msglen < 0 {
|
|
2895
3568
|
return ErrInvalidLengthMsgs
|
|
2896
3569
|
}
|
|
2897
|
-
postIndex := iNdEx +
|
|
3570
|
+
postIndex := iNdEx + msglen
|
|
2898
3571
|
if postIndex < 0 {
|
|
2899
3572
|
return ErrInvalidLengthMsgs
|
|
2900
3573
|
}
|
|
2901
3574
|
if postIndex > l {
|
|
2902
3575
|
return io.ErrUnexpectedEOF
|
|
2903
3576
|
}
|
|
2904
|
-
m.
|
|
3577
|
+
if m.Chunk == nil {
|
|
3578
|
+
m.Chunk = &ChunkInfo{}
|
|
3579
|
+
}
|
|
3580
|
+
if err := m.Chunk.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
3581
|
+
return err
|
|
3582
|
+
}
|
|
2905
3583
|
iNdEx = postIndex
|
|
2906
3584
|
default:
|
|
2907
3585
|
iNdEx = preIndex
|