@agoric/cosmos 0.34.2-dev-3c8aafe.0 → 0.34.2-dev-74fbe43.0.74fbe43
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/Makefile +6 -2
- package/ante/ante.go +2 -2
- package/ante/inbound.go +1 -2
- package/ante/inbound_test.go +3 -1
- package/ante/vm_admission.go +1 -2
- package/app/app.go +256 -174
- package/app/encoding.go +6 -3
- package/app/export.go +50 -21
- package/app/genesis.go +7 -5
- package/app/params/encoding.go +1 -1
- package/app/params/proto.go +6 -4
- package/app/sim_test.go +11 -13
- package/app/txconfig/tx_config.go +169 -0
- package/app/upgrade.go +40 -90
- package/cmd/agd/agvm.go +1 -1
- package/cmd/agd/main.go +1 -1
- package/cmd/libdaemon/main.go +2 -2
- package/daemon/cmd/root.go +99 -30
- package/daemon/cmd/root_test.go +12 -27
- package/daemon/main.go +2 -9
- package/git-revision.txt +1 -1
- package/go.mod +130 -109
- package/go.sum +228 -469
- package/package.json +2 -2
- package/proto/agoric/swingset/msgs.proto +72 -9
- package/proto/agoric/swingset/swingset.proto +7 -2
- package/proto/agoric/vbank/vbank.proto +1 -1
- package/proto/agoric/vibc/msgs.proto +4 -0
- package/scripts/mockgen.sh +4 -0
- package/tests/e2e/vbank/vbank_test.go +172 -0
- package/tests/integrations/types/aminojson_test.go +214 -0
- package/tests/integrations/vbank/vbank_test.go +349 -0
- package/third_party/proto/amino/amino.proto +6 -1
- package/third_party/proto/cosmos/base/v1beta1/coin.proto +18 -5
- package/third_party/proto/cosmos/upgrade/v1beta1/upgrade.proto +4 -8
- package/third_party/proto/ibc/core/channel/v1/channel.proto +42 -17
- package/third_party/proto/ibc/core/client/v1/client.proto +48 -40
- package/types/address_hooks.go +2 -2
- package/types/address_hooks_test.go +3 -3
- package/types/ibc_packet.go +3 -3
- package/types/ibc_packet_test.go +3 -3
- package/types/kv_entry_helpers.go +3 -27
- package/types/kv_entry_helpers_test.go +2 -2
- package/types/legacy_address_encoder.go +58 -0
- package/vm/proto_json_test.go +1 -1
- package/vm/server.go +2 -1
- package/x/swingset/abci.go +2 -2
- package/x/swingset/client/cli/tx.go +16 -14
- package/x/swingset/config.go +1 -1
- package/x/swingset/genesis.go +2 -1
- package/x/swingset/handler.go +2 -1
- package/x/swingset/keeper/extension_snapshotter.go +14 -5
- package/x/swingset/keeper/extension_snapshotter_test.go +1 -1
- package/x/swingset/keeper/keeper.go +28 -23
- package/x/swingset/keeper/keeper_test.go +10 -7
- package/x/swingset/keeper/msg_server.go +52 -5
- package/x/swingset/keeper/msg_server_test.go +121 -0
- package/x/swingset/keeper/proposal.go +4 -0
- package/x/swingset/keeper/querier.go +1 -1
- package/x/swingset/keeper/swing_store_exports_handler.go +1 -1
- package/x/swingset/keeper/swing_store_exports_handler_test.go +1 -1
- package/x/swingset/keeper/test_utils.go +2 -2
- package/x/swingset/module.go +20 -22
- package/x/swingset/testing/queue.go +5 -2
- package/x/swingset/testutil/mocks.go +379 -0
- package/x/swingset/types/codec.go +10 -5
- package/x/swingset/types/default-params.go +13 -12
- package/x/swingset/types/expected_keepers.go +29 -4
- package/x/swingset/types/msgs.go +51 -36
- package/x/swingset/types/msgs.pb.go +561 -51
- package/x/swingset/types/params_test.go +21 -20
- package/x/swingset/types/swingset.pb.go +67 -61
- package/x/vbank/genesis.go +13 -9
- package/x/vbank/handler.go +2 -1
- package/x/vbank/keeper/grpc_query.go +4 -1
- package/x/vbank/keeper/keeper.go +108 -23
- package/x/vbank/keeper/querier.go +4 -1
- package/x/vbank/keeper/rewards.go +10 -5
- package/x/vbank/module.go +47 -75
- package/x/vbank/types/expected_keepers.go +15 -10
- package/x/vbank/types/key.go +3 -0
- package/x/vbank/types/params.go +4 -3
- package/x/vbank/types/vbank.pb.go +41 -40
- package/x/vbank/vbank.go +29 -11
- package/x/vbank/vbank_test.go +213 -154
- package/x/vibc/handler.go +2 -1
- package/x/vibc/keeper/keeper.go +10 -10
- package/x/vibc/keeper/migrations.go +1 -1
- package/x/vibc/keeper/triggers.go +1 -1
- package/x/vibc/module.go +5 -22
- package/x/vibc/types/codec.go +2 -1
- package/x/vibc/types/expected_keepers.go +7 -5
- package/x/vibc/types/ibc_module.go +5 -5
- package/x/vibc/types/msgs.go +30 -7
- package/x/vibc/types/msgs.pb.go +29 -25
- package/x/vibc/types/receiver.go +2 -2
- package/x/vlocalchain/handler.go +2 -1
- package/x/vlocalchain/keeper/keeper.go +17 -5
- package/x/vlocalchain/keeper/keeper_test.go +3 -2
- package/x/vlocalchain/types/expected_keepers.go +7 -4
- package/x/vlocalchain/vlocalchain_test.go +38 -26
- package/x/vstorage/genesis.go +10 -10
- package/x/vstorage/handler.go +2 -1
- package/x/vstorage/keeper/grpc_query.go +1 -1
- package/x/vstorage/keeper/keeper.go +72 -50
- package/x/vstorage/keeper/keeper_test.go +74 -54
- package/x/vstorage/keeper/querier.go +1 -1
- package/x/vstorage/module.go +27 -13
- package/x/vstorage/testing/queue.go +5 -3
- package/x/vstorage/vstorage.go +10 -9
- package/x/vstorage/vstorage_test.go +24 -18
- package/x/vtransfer/genesis.go +1 -3
- package/x/vtransfer/handler.go +3 -2
- package/x/vtransfer/ibc_middleware.go +5 -5
- package/x/vtransfer/ibc_middleware_test.go +43 -29
- package/x/vtransfer/keeper/keeper.go +35 -33
- package/x/vtransfer/module.go +8 -11
- package/x/vtransfer/types/expected_keepers.go +3 -3
- package/x/vtransfer/utils_test.go +26 -11
- package/daemon/cmd/testnet.go +0 -539
|
@@ -6,7 +6,10 @@ package types
|
|
|
6
6
|
import (
|
|
7
7
|
context "context"
|
|
8
8
|
fmt "fmt"
|
|
9
|
+
_ "github.com/cosmos/cosmos-proto"
|
|
9
10
|
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
|
11
|
+
_ "github.com/cosmos/cosmos-sdk/types/msgservice"
|
|
12
|
+
_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
|
|
10
13
|
_ "github.com/cosmos/gogoproto/gogoproto"
|
|
11
14
|
grpc1 "github.com/cosmos/gogoproto/grpc"
|
|
12
15
|
proto "github.com/cosmos/gogoproto/proto"
|
|
@@ -537,6 +540,118 @@ func (m *MsgInstallBundleResponse) XXX_DiscardUnknown() {
|
|
|
537
540
|
|
|
538
541
|
var xxx_messageInfo_MsgInstallBundleResponse proto.InternalMessageInfo
|
|
539
542
|
|
|
543
|
+
// MsgCoreEval defines an SDK message for a core eval.
|
|
544
|
+
type MsgCoreEval struct {
|
|
545
|
+
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
546
|
+
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
|
|
547
|
+
// The JSON-stringified core bootstrap permits to grant to the jsCode, as the
|
|
548
|
+
// `powers` endowment.
|
|
549
|
+
JsonPermits string `protobuf:"bytes,2,opt,name=json_permits,json=jsonPermits,proto3" json:"json_permits,omitempty" yaml:"json_permits"`
|
|
550
|
+
// Evaluate this JavaScript code in a Compartment endowed with `powers` as
|
|
551
|
+
// well as some powerless helpers.
|
|
552
|
+
JsCode string `protobuf:"bytes,3,opt,name=js_code,json=jsCode,proto3" json:"js_code,omitempty" yaml:"js_code"`
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
func (m *MsgCoreEval) Reset() { *m = MsgCoreEval{} }
|
|
556
|
+
func (m *MsgCoreEval) String() string { return proto.CompactTextString(m) }
|
|
557
|
+
func (*MsgCoreEval) ProtoMessage() {}
|
|
558
|
+
func (*MsgCoreEval) Descriptor() ([]byte, []int) {
|
|
559
|
+
return fileDescriptor_788baa062b181a57, []int{10}
|
|
560
|
+
}
|
|
561
|
+
func (m *MsgCoreEval) XXX_Unmarshal(b []byte) error {
|
|
562
|
+
return m.Unmarshal(b)
|
|
563
|
+
}
|
|
564
|
+
func (m *MsgCoreEval) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
565
|
+
if deterministic {
|
|
566
|
+
return xxx_messageInfo_MsgCoreEval.Marshal(b, m, deterministic)
|
|
567
|
+
} else {
|
|
568
|
+
b = b[:cap(b)]
|
|
569
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
570
|
+
if err != nil {
|
|
571
|
+
return nil, err
|
|
572
|
+
}
|
|
573
|
+
return b[:n], nil
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
func (m *MsgCoreEval) XXX_Merge(src proto.Message) {
|
|
577
|
+
xxx_messageInfo_MsgCoreEval.Merge(m, src)
|
|
578
|
+
}
|
|
579
|
+
func (m *MsgCoreEval) XXX_Size() int {
|
|
580
|
+
return m.Size()
|
|
581
|
+
}
|
|
582
|
+
func (m *MsgCoreEval) XXX_DiscardUnknown() {
|
|
583
|
+
xxx_messageInfo_MsgCoreEval.DiscardUnknown(m)
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
var xxx_messageInfo_MsgCoreEval proto.InternalMessageInfo
|
|
587
|
+
|
|
588
|
+
func (m *MsgCoreEval) GetAuthority() string {
|
|
589
|
+
if m != nil {
|
|
590
|
+
return m.Authority
|
|
591
|
+
}
|
|
592
|
+
return ""
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
func (m *MsgCoreEval) GetJsonPermits() string {
|
|
596
|
+
if m != nil {
|
|
597
|
+
return m.JsonPermits
|
|
598
|
+
}
|
|
599
|
+
return ""
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
func (m *MsgCoreEval) GetJsCode() string {
|
|
603
|
+
if m != nil {
|
|
604
|
+
return m.JsCode
|
|
605
|
+
}
|
|
606
|
+
return ""
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
// MsgCoreEvalResponse is an empty reply.
|
|
610
|
+
type MsgCoreEvalResponse struct {
|
|
611
|
+
// The result of the core eval.
|
|
612
|
+
Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty" yaml:"result"`
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
func (m *MsgCoreEvalResponse) Reset() { *m = MsgCoreEvalResponse{} }
|
|
616
|
+
func (m *MsgCoreEvalResponse) String() string { return proto.CompactTextString(m) }
|
|
617
|
+
func (*MsgCoreEvalResponse) ProtoMessage() {}
|
|
618
|
+
func (*MsgCoreEvalResponse) Descriptor() ([]byte, []int) {
|
|
619
|
+
return fileDescriptor_788baa062b181a57, []int{11}
|
|
620
|
+
}
|
|
621
|
+
func (m *MsgCoreEvalResponse) XXX_Unmarshal(b []byte) error {
|
|
622
|
+
return m.Unmarshal(b)
|
|
623
|
+
}
|
|
624
|
+
func (m *MsgCoreEvalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
625
|
+
if deterministic {
|
|
626
|
+
return xxx_messageInfo_MsgCoreEvalResponse.Marshal(b, m, deterministic)
|
|
627
|
+
} else {
|
|
628
|
+
b = b[:cap(b)]
|
|
629
|
+
n, err := m.MarshalToSizedBuffer(b)
|
|
630
|
+
if err != nil {
|
|
631
|
+
return nil, err
|
|
632
|
+
}
|
|
633
|
+
return b[:n], nil
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
func (m *MsgCoreEvalResponse) XXX_Merge(src proto.Message) {
|
|
637
|
+
xxx_messageInfo_MsgCoreEvalResponse.Merge(m, src)
|
|
638
|
+
}
|
|
639
|
+
func (m *MsgCoreEvalResponse) XXX_Size() int {
|
|
640
|
+
return m.Size()
|
|
641
|
+
}
|
|
642
|
+
func (m *MsgCoreEvalResponse) XXX_DiscardUnknown() {
|
|
643
|
+
xxx_messageInfo_MsgCoreEvalResponse.DiscardUnknown(m)
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
var xxx_messageInfo_MsgCoreEvalResponse proto.InternalMessageInfo
|
|
647
|
+
|
|
648
|
+
func (m *MsgCoreEvalResponse) GetResult() string {
|
|
649
|
+
if m != nil {
|
|
650
|
+
return m.Result
|
|
651
|
+
}
|
|
652
|
+
return ""
|
|
653
|
+
}
|
|
654
|
+
|
|
540
655
|
func init() {
|
|
541
656
|
proto.RegisterType((*MsgDeliverInbound)(nil), "agoric.swingset.MsgDeliverInbound")
|
|
542
657
|
proto.RegisterType((*MsgDeliverInboundResponse)(nil), "agoric.swingset.MsgDeliverInboundResponse")
|
|
@@ -548,62 +663,83 @@ func init() {
|
|
|
548
663
|
proto.RegisterType((*MsgProvisionResponse)(nil), "agoric.swingset.MsgProvisionResponse")
|
|
549
664
|
proto.RegisterType((*MsgInstallBundle)(nil), "agoric.swingset.MsgInstallBundle")
|
|
550
665
|
proto.RegisterType((*MsgInstallBundleResponse)(nil), "agoric.swingset.MsgInstallBundleResponse")
|
|
666
|
+
proto.RegisterType((*MsgCoreEval)(nil), "agoric.swingset.MsgCoreEval")
|
|
667
|
+
proto.RegisterType((*MsgCoreEvalResponse)(nil), "agoric.swingset.MsgCoreEvalResponse")
|
|
551
668
|
}
|
|
552
669
|
|
|
553
670
|
func init() { proto.RegisterFile("agoric/swingset/msgs.proto", fileDescriptor_788baa062b181a57) }
|
|
554
671
|
|
|
555
672
|
var fileDescriptor_788baa062b181a57 = []byte{
|
|
556
|
-
//
|
|
557
|
-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff,
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
0x4b,
|
|
673
|
+
// 1095 bytes of a gzipped FileDescriptorProto
|
|
674
|
+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x6c, 0xe3, 0x44,
|
|
675
|
+
0x17, 0xaf, 0xeb, 0x7e, 0xdd, 0x66, 0x9a, 0x6d, 0x1b, 0xb7, 0x5f, 0x9b, 0xba, 0x4b, 0x26, 0x35,
|
|
676
|
+
0xac, 0x94, 0x0d, 0x34, 0x11, 0xb0, 0x42, 0x28, 0xcb, 0x81, 0x7a, 0x01, 0xd1, 0x43, 0x50, 0x49,
|
|
677
|
+
0x85, 0x40, 0x8b, 0x2a, 0xe3, 0x38, 0x83, 0xd7, 0xad, 0xed, 0x89, 0x3c, 0x4e, 0x4a, 0x16, 0x89,
|
|
678
|
+
0x03, 0xdc, 0x90, 0x90, 0x38, 0x73, 0x42, 0x9c, 0x38, 0xe6, 0xc0, 0x99, 0x13, 0x07, 0x8e, 0x2b,
|
|
679
|
+
0xb8, 0x70, 0x1a, 0xa1, 0x16, 0x29, 0x28, 0xdc, 0x72, 0xe4, 0x84, 0xec, 0xb1, 0xc7, 0x8e, 0x9b,
|
|
680
|
+
0xdd, 0x72, 0x58, 0x69, 0xb9, 0x24, 0x7e, 0xbf, 0xf7, 0x67, 0xde, 0x6f, 0xde, 0x7b, 0x33, 0x03,
|
|
681
|
+
0x64, 0xdd, 0xc4, 0x9e, 0x65, 0xd4, 0xc9, 0x99, 0xe5, 0x9a, 0x04, 0xf9, 0x75, 0x87, 0x98, 0xa4,
|
|
682
|
+
0xd6, 0xf5, 0xb0, 0x8f, 0xa5, 0x55, 0xa6, 0xab, 0xc5, 0x3a, 0xb9, 0xa0, 0x3b, 0x96, 0x8b, 0xeb,
|
|
683
|
+
0xe1, 0x2f, 0xb3, 0x91, 0xb7, 0x0c, 0x4c, 0x1c, 0x4c, 0x02, 0xb7, 0x7a, 0xff, 0xc5, 0xe0, 0x2f,
|
|
684
|
+
0x52, 0x6c, 0x33, 0x85, 0x16, 0x4a, 0x75, 0x26, 0x44, 0xaa, 0x0d, 0x13, 0x9b, 0x98, 0xe1, 0xc1,
|
|
685
|
+
0x17, 0x43, 0x95, 0xaf, 0x44, 0x50, 0x68, 0x12, 0xf3, 0x0d, 0x64, 0x5b, 0x7d, 0xe4, 0x1d, 0xb8,
|
|
686
|
+
0x6d, 0xdc, 0x73, 0x3b, 0xd2, 0x07, 0x60, 0xc9, 0x41, 0x84, 0xe8, 0x26, 0x22, 0x45, 0xa1, 0x2c,
|
|
687
|
+
0x56, 0x72, 0xea, 0x6b, 0x63, 0x0a, 0x39, 0x36, 0xa1, 0x70, 0x75, 0xa0, 0x3b, 0x76, 0x43, 0x89,
|
|
688
|
+
0x11, 0xe5, 0x9b, 0xd1, 0xb0, 0xba, 0xee, 0xf6, 0x6c, 0x5b, 0x23, 0xb6, 0x65, 0x20, 0x4d, 0x27,
|
|
689
|
+
0x1a, 0x72, 0xba, 0xfe, 0xe0, 0xfb, 0xd1, 0xb0, 0x2a, 0xb4, 0xb8, 0xa7, 0xf4, 0x36, 0x58, 0x70,
|
|
690
|
+
0x7b, 0x0e, 0x29, 0xce, 0x97, 0xc5, 0xca, 0x82, 0x7a, 0x7b, 0x4c, 0x61, 0x28, 0x4f, 0x28, 0x5c,
|
|
691
|
+
0x66, 0x11, 0x03, 0xe9, 0x8a, 0x68, 0xa1, 0x87, 0xf4, 0x02, 0x10, 0x75, 0xe3, 0xb4, 0x28, 0x96,
|
|
692
|
+
0x85, 0xca, 0x82, 0x2a, 0x8f, 0x29, 0x0c, 0xc4, 0x09, 0x85, 0x80, 0xc5, 0xd1, 0x8d, 0x53, 0x85,
|
|
693
|
+
0x99, 0x07, 0xb8, 0xf4, 0x85, 0x00, 0x72, 0xa4, 0xd7, 0x76, 0x2c, 0xdf, 0x47,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0x80, 0x0d, 0xae, 0x3b, 0xea, 0x22, 0xb7, 0xf3, 0x34, 0x09, 0xee, 0x82, 0x3c, 0x09, 0x72,
|
|
705
|
+
0xd0, 0xa6, 0x68, 0x2e, 0x93, 0x24, 0xaf, 0xc6, 0xb3, 0x31, 0x57, 0x39, 0xc3, 0x35, 0x95, 0xbc,
|
|
706
|
+
0x52, 0x02, 0x37, 0x66, 0x91, 0xe2, 0xac, 0xff, 0x12, 0x41, 0xbe, 0x49, 0xcc, 0x43, 0x0f, 0xf7,
|
|
707
|
+
0x2d, 0x12, 0xb0, 0xbd, 0x03, 0x96, 0x5c, 0xcb, 0x38, 0x75, 0x75, 0x07, 0x85, 0x84, 0x73, 0x2a,
|
|
708
|
+
0x0c, 0x26, 0x2f, 0xc6, 0x92, 0xc9, 0x8b, 0x11, 0xa5, 0xc5, 0x95, 0xd2, 0xa7, 0xe0, 0x5a, 0xc4,
|
|
709
|
+
0x23, 0x4c, 0x38, 0xaf, 0xea, 0x63, 0x0a, 0x63, 0x68, 0x42, 0xe1, 0x4a, 0x34, 0x1a, 0x0c, 0x78,
|
|
710
|
+
0x32, 0x1b, 0x16, 0x87, 0x97, 0x3e, 0x03, 0xcb, 0x5d, 0x7c, 0x86, 0x3c, 0xed, 0x63, 0x5b, 0x37,
|
|
711
|
+
0x49, 0x51, 0x0c, 0x8f, 0x8d, 0xe3, 0x73, 0x0a, 0xc1, 0x61, 0x00, 0xbf, 0x15, 0xa0, 0x63, 0x0a,
|
|
712
|
+
0x41, 0x97, 0x4b, 0x13, 0x0a, 0x0b, 0x2c, 0xa3, 0x04, 0x7b, 0xe4, 0xe8, 0x7f, 0x37, 0x1a, 0x56,
|
|
713
|
+
0x53, 0xbe, 0x6c, 0xb4, 0x53, 0xc0, 0x7f, 0x64, 0xc2, 0x77, 0xe2, 0xae, 0x90, 0x78, 0x57, 0xf0,
|
|
714
|
+
0xe2, 0x2a, 0x9b, 0x61, 0x8b, 0x73, 0x99, 0x77, 0xc1, 0x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, 0xde, 0x7c, 0xb4, 0x7b, 0xca, 0x4c, 0xde, 0xfb, 0x57, 0x66, 0x7c,
|
|
736
|
+
0xa9, 0x77, 0x41, 0x2e, 0xb9, 0x9d, 0x9e, 0x99, 0xe5, 0xcb, 0xd5, 0xf2, 0xcd, 0xc7, 0xaa, 0x79,
|
|
737
|
+
0xc8, 0x77, 0xc0, 0x12, 0x9f, 0x83, 0x1b, 0xb3, 0x5c, 0x62, 0xad, 0xfc, 0xdc, 0xe3, 0xb4, 0x71,
|
|
738
|
+
0x3c, 0xf5, 0xbd, 0x9f, 0xcf, 0x4b, 0xc2, 0xc3, 0xf3, 0x92, 0xf0, 0xfb, 0x79, 0x49, 0xf8, 0xfa,
|
|
739
|
+
0xa2, 0x34, 0xf7, 0xf0, 0xa2, 0x34, 0xf7, 0xdb, 0x45, 0x69, 0xee, 0xde, 0x9d, 0xd4, 0x81, 0xb6,
|
|
740
|
+
0xcf, 0x9e, 0xdc, 0x2c, 0x60, 0xd8, 0xc3, 0x26, 0xb6, 0x75, 0xd7, 0x8c, 0x4f, 0xba, 0x54, 0x47,
|
|
741
|
+
0x87, 0x27, 0x5d, 0x7b, 0x31, 0x7c, 0x21, 0xbf, 0xfc, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3b,
|
|
742
|
+
0xad, 0x89, 0x60, 0xad, 0x0b, 0x00, 0x00,
|
|
607
743
|
}
|
|
608
744
|
|
|
609
745
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
@@ -628,6 +764,8 @@ type MsgClient interface {
|
|
|
628
764
|
WalletSpendAction(ctx context.Context, in *MsgWalletSpendAction, opts ...grpc.CallOption) (*MsgWalletSpendActionResponse, error)
|
|
629
765
|
// Provision a new endpoint.
|
|
630
766
|
Provision(ctx context.Context, in *MsgProvision, opts ...grpc.CallOption) (*MsgProvisionResponse, error)
|
|
767
|
+
// Execute a core evaluation.
|
|
768
|
+
CoreEval(ctx context.Context, in *MsgCoreEval, opts ...grpc.CallOption) (*MsgCoreEvalResponse, error)
|
|
631
769
|
}
|
|
632
770
|
|
|
633
771
|
type msgClient struct {
|
|
@@ -683,6 +821,15 @@ func (c *msgClient) Provision(ctx context.Context, in *MsgProvision, opts ...grp
|
|
|
683
821
|
return out, nil
|
|
684
822
|
}
|
|
685
823
|
|
|
824
|
+
func (c *msgClient) CoreEval(ctx context.Context, in *MsgCoreEval, opts ...grpc.CallOption) (*MsgCoreEvalResponse, error) {
|
|
825
|
+
out := new(MsgCoreEvalResponse)
|
|
826
|
+
err := c.cc.Invoke(ctx, "/agoric.swingset.Msg/CoreEval", in, out, opts...)
|
|
827
|
+
if err != nil {
|
|
828
|
+
return nil, err
|
|
829
|
+
}
|
|
830
|
+
return out, nil
|
|
831
|
+
}
|
|
832
|
+
|
|
686
833
|
// MsgServer is the server API for Msg service.
|
|
687
834
|
type MsgServer interface {
|
|
688
835
|
// Install a JavaScript sources bundle on the chain's SwingSet controller.
|
|
@@ -695,6 +842,8 @@ type MsgServer interface {
|
|
|
695
842
|
WalletSpendAction(context.Context, *MsgWalletSpendAction) (*MsgWalletSpendActionResponse, error)
|
|
696
843
|
// Provision a new endpoint.
|
|
697
844
|
Provision(context.Context, *MsgProvision) (*MsgProvisionResponse, error)
|
|
845
|
+
// Execute a core evaluation.
|
|
846
|
+
CoreEval(context.Context, *MsgCoreEval) (*MsgCoreEvalResponse, error)
|
|
698
847
|
}
|
|
699
848
|
|
|
700
849
|
// UnimplementedMsgServer can be embedded to have forward compatible implementations.
|
|
@@ -716,6 +865,9 @@ func (*UnimplementedMsgServer) WalletSpendAction(ctx context.Context, req *MsgWa
|
|
|
716
865
|
func (*UnimplementedMsgServer) Provision(ctx context.Context, req *MsgProvision) (*MsgProvisionResponse, error) {
|
|
717
866
|
return nil, status.Errorf(codes.Unimplemented, "method Provision not implemented")
|
|
718
867
|
}
|
|
868
|
+
func (*UnimplementedMsgServer) CoreEval(ctx context.Context, req *MsgCoreEval) (*MsgCoreEvalResponse, error) {
|
|
869
|
+
return nil, status.Errorf(codes.Unimplemented, "method CoreEval not implemented")
|
|
870
|
+
}
|
|
719
871
|
|
|
720
872
|
func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
|
|
721
873
|
s.RegisterService(&_Msg_serviceDesc, srv)
|
|
@@ -811,6 +963,24 @@ func _Msg_Provision_Handler(srv interface{}, ctx context.Context, dec func(inter
|
|
|
811
963
|
return interceptor(ctx, in, info, handler)
|
|
812
964
|
}
|
|
813
965
|
|
|
966
|
+
func _Msg_CoreEval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
967
|
+
in := new(MsgCoreEval)
|
|
968
|
+
if err := dec(in); err != nil {
|
|
969
|
+
return nil, err
|
|
970
|
+
}
|
|
971
|
+
if interceptor == nil {
|
|
972
|
+
return srv.(MsgServer).CoreEval(ctx, in)
|
|
973
|
+
}
|
|
974
|
+
info := &grpc.UnaryServerInfo{
|
|
975
|
+
Server: srv,
|
|
976
|
+
FullMethod: "/agoric.swingset.Msg/CoreEval",
|
|
977
|
+
}
|
|
978
|
+
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
979
|
+
return srv.(MsgServer).CoreEval(ctx, req.(*MsgCoreEval))
|
|
980
|
+
}
|
|
981
|
+
return interceptor(ctx, in, info, handler)
|
|
982
|
+
}
|
|
983
|
+
|
|
814
984
|
var Msg_serviceDesc = _Msg_serviceDesc
|
|
815
985
|
var _Msg_serviceDesc = grpc.ServiceDesc{
|
|
816
986
|
ServiceName: "agoric.swingset.Msg",
|
|
@@ -836,6 +1006,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
|
|
|
836
1006
|
MethodName: "Provision",
|
|
837
1007
|
Handler: _Msg_Provision_Handler,
|
|
838
1008
|
},
|
|
1009
|
+
{
|
|
1010
|
+
MethodName: "CoreEval",
|
|
1011
|
+
Handler: _Msg_CoreEval_Handler,
|
|
1012
|
+
},
|
|
839
1013
|
},
|
|
840
1014
|
Streams: []grpc.StreamDesc{},
|
|
841
1015
|
Metadata: "agoric/swingset/msgs.proto",
|
|
@@ -1194,6 +1368,80 @@ func (m *MsgInstallBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error
|
|
|
1194
1368
|
return len(dAtA) - i, nil
|
|
1195
1369
|
}
|
|
1196
1370
|
|
|
1371
|
+
func (m *MsgCoreEval) Marshal() (dAtA []byte, err error) {
|
|
1372
|
+
size := m.Size()
|
|
1373
|
+
dAtA = make([]byte, size)
|
|
1374
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
1375
|
+
if err != nil {
|
|
1376
|
+
return nil, err
|
|
1377
|
+
}
|
|
1378
|
+
return dAtA[:n], nil
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
func (m *MsgCoreEval) MarshalTo(dAtA []byte) (int, error) {
|
|
1382
|
+
size := m.Size()
|
|
1383
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
func (m *MsgCoreEval) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1387
|
+
i := len(dAtA)
|
|
1388
|
+
_ = i
|
|
1389
|
+
var l int
|
|
1390
|
+
_ = l
|
|
1391
|
+
if len(m.JsCode) > 0 {
|
|
1392
|
+
i -= len(m.JsCode)
|
|
1393
|
+
copy(dAtA[i:], m.JsCode)
|
|
1394
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.JsCode)))
|
|
1395
|
+
i--
|
|
1396
|
+
dAtA[i] = 0x1a
|
|
1397
|
+
}
|
|
1398
|
+
if len(m.JsonPermits) > 0 {
|
|
1399
|
+
i -= len(m.JsonPermits)
|
|
1400
|
+
copy(dAtA[i:], m.JsonPermits)
|
|
1401
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.JsonPermits)))
|
|
1402
|
+
i--
|
|
1403
|
+
dAtA[i] = 0x12
|
|
1404
|
+
}
|
|
1405
|
+
if len(m.Authority) > 0 {
|
|
1406
|
+
i -= len(m.Authority)
|
|
1407
|
+
copy(dAtA[i:], m.Authority)
|
|
1408
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.Authority)))
|
|
1409
|
+
i--
|
|
1410
|
+
dAtA[i] = 0xa
|
|
1411
|
+
}
|
|
1412
|
+
return len(dAtA) - i, nil
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
func (m *MsgCoreEvalResponse) Marshal() (dAtA []byte, err error) {
|
|
1416
|
+
size := m.Size()
|
|
1417
|
+
dAtA = make([]byte, size)
|
|
1418
|
+
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
1419
|
+
if err != nil {
|
|
1420
|
+
return nil, err
|
|
1421
|
+
}
|
|
1422
|
+
return dAtA[:n], nil
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
func (m *MsgCoreEvalResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
1426
|
+
size := m.Size()
|
|
1427
|
+
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
func (m *MsgCoreEvalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1431
|
+
i := len(dAtA)
|
|
1432
|
+
_ = i
|
|
1433
|
+
var l int
|
|
1434
|
+
_ = l
|
|
1435
|
+
if len(m.Result) > 0 {
|
|
1436
|
+
i -= len(m.Result)
|
|
1437
|
+
copy(dAtA[i:], m.Result)
|
|
1438
|
+
i = encodeVarintMsgs(dAtA, i, uint64(len(m.Result)))
|
|
1439
|
+
i--
|
|
1440
|
+
dAtA[i] = 0xa
|
|
1441
|
+
}
|
|
1442
|
+
return len(dAtA) - i, nil
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1197
1445
|
func encodeVarintMsgs(dAtA []byte, offset int, v uint64) int {
|
|
1198
1446
|
offset -= sovMsgs(v)
|
|
1199
1447
|
base := offset
|
|
@@ -1364,6 +1612,40 @@ func (m *MsgInstallBundleResponse) Size() (n int) {
|
|
|
1364
1612
|
return n
|
|
1365
1613
|
}
|
|
1366
1614
|
|
|
1615
|
+
func (m *MsgCoreEval) Size() (n int) {
|
|
1616
|
+
if m == nil {
|
|
1617
|
+
return 0
|
|
1618
|
+
}
|
|
1619
|
+
var l int
|
|
1620
|
+
_ = l
|
|
1621
|
+
l = len(m.Authority)
|
|
1622
|
+
if l > 0 {
|
|
1623
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1624
|
+
}
|
|
1625
|
+
l = len(m.JsonPermits)
|
|
1626
|
+
if l > 0 {
|
|
1627
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1628
|
+
}
|
|
1629
|
+
l = len(m.JsCode)
|
|
1630
|
+
if l > 0 {
|
|
1631
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1632
|
+
}
|
|
1633
|
+
return n
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
func (m *MsgCoreEvalResponse) Size() (n int) {
|
|
1637
|
+
if m == nil {
|
|
1638
|
+
return 0
|
|
1639
|
+
}
|
|
1640
|
+
var l int
|
|
1641
|
+
_ = l
|
|
1642
|
+
l = len(m.Result)
|
|
1643
|
+
if l > 0 {
|
|
1644
|
+
n += 1 + l + sovMsgs(uint64(l))
|
|
1645
|
+
}
|
|
1646
|
+
return n
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1367
1649
|
func sovMsgs(x uint64) (n int) {
|
|
1368
1650
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
1369
1651
|
}
|
|
@@ -2414,6 +2696,234 @@ func (m *MsgInstallBundleResponse) Unmarshal(dAtA []byte) error {
|
|
|
2414
2696
|
}
|
|
2415
2697
|
return nil
|
|
2416
2698
|
}
|
|
2699
|
+
func (m *MsgCoreEval) Unmarshal(dAtA []byte) error {
|
|
2700
|
+
l := len(dAtA)
|
|
2701
|
+
iNdEx := 0
|
|
2702
|
+
for iNdEx < l {
|
|
2703
|
+
preIndex := iNdEx
|
|
2704
|
+
var wire uint64
|
|
2705
|
+
for shift := uint(0); ; shift += 7 {
|
|
2706
|
+
if shift >= 64 {
|
|
2707
|
+
return ErrIntOverflowMsgs
|
|
2708
|
+
}
|
|
2709
|
+
if iNdEx >= l {
|
|
2710
|
+
return io.ErrUnexpectedEOF
|
|
2711
|
+
}
|
|
2712
|
+
b := dAtA[iNdEx]
|
|
2713
|
+
iNdEx++
|
|
2714
|
+
wire |= uint64(b&0x7F) << shift
|
|
2715
|
+
if b < 0x80 {
|
|
2716
|
+
break
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
fieldNum := int32(wire >> 3)
|
|
2720
|
+
wireType := int(wire & 0x7)
|
|
2721
|
+
if wireType == 4 {
|
|
2722
|
+
return fmt.Errorf("proto: MsgCoreEval: wiretype end group for non-group")
|
|
2723
|
+
}
|
|
2724
|
+
if fieldNum <= 0 {
|
|
2725
|
+
return fmt.Errorf("proto: MsgCoreEval: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
2726
|
+
}
|
|
2727
|
+
switch fieldNum {
|
|
2728
|
+
case 1:
|
|
2729
|
+
if wireType != 2 {
|
|
2730
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType)
|
|
2731
|
+
}
|
|
2732
|
+
var stringLen uint64
|
|
2733
|
+
for shift := uint(0); ; shift += 7 {
|
|
2734
|
+
if shift >= 64 {
|
|
2735
|
+
return ErrIntOverflowMsgs
|
|
2736
|
+
}
|
|
2737
|
+
if iNdEx >= l {
|
|
2738
|
+
return io.ErrUnexpectedEOF
|
|
2739
|
+
}
|
|
2740
|
+
b := dAtA[iNdEx]
|
|
2741
|
+
iNdEx++
|
|
2742
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
2743
|
+
if b < 0x80 {
|
|
2744
|
+
break
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
intStringLen := int(stringLen)
|
|
2748
|
+
if intStringLen < 0 {
|
|
2749
|
+
return ErrInvalidLengthMsgs
|
|
2750
|
+
}
|
|
2751
|
+
postIndex := iNdEx + intStringLen
|
|
2752
|
+
if postIndex < 0 {
|
|
2753
|
+
return ErrInvalidLengthMsgs
|
|
2754
|
+
}
|
|
2755
|
+
if postIndex > l {
|
|
2756
|
+
return io.ErrUnexpectedEOF
|
|
2757
|
+
}
|
|
2758
|
+
m.Authority = string(dAtA[iNdEx:postIndex])
|
|
2759
|
+
iNdEx = postIndex
|
|
2760
|
+
case 2:
|
|
2761
|
+
if wireType != 2 {
|
|
2762
|
+
return fmt.Errorf("proto: wrong wireType = %d for field JsonPermits", wireType)
|
|
2763
|
+
}
|
|
2764
|
+
var stringLen uint64
|
|
2765
|
+
for shift := uint(0); ; shift += 7 {
|
|
2766
|
+
if shift >= 64 {
|
|
2767
|
+
return ErrIntOverflowMsgs
|
|
2768
|
+
}
|
|
2769
|
+
if iNdEx >= l {
|
|
2770
|
+
return io.ErrUnexpectedEOF
|
|
2771
|
+
}
|
|
2772
|
+
b := dAtA[iNdEx]
|
|
2773
|
+
iNdEx++
|
|
2774
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
2775
|
+
if b < 0x80 {
|
|
2776
|
+
break
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
intStringLen := int(stringLen)
|
|
2780
|
+
if intStringLen < 0 {
|
|
2781
|
+
return ErrInvalidLengthMsgs
|
|
2782
|
+
}
|
|
2783
|
+
postIndex := iNdEx + intStringLen
|
|
2784
|
+
if postIndex < 0 {
|
|
2785
|
+
return ErrInvalidLengthMsgs
|
|
2786
|
+
}
|
|
2787
|
+
if postIndex > l {
|
|
2788
|
+
return io.ErrUnexpectedEOF
|
|
2789
|
+
}
|
|
2790
|
+
m.JsonPermits = string(dAtA[iNdEx:postIndex])
|
|
2791
|
+
iNdEx = postIndex
|
|
2792
|
+
case 3:
|
|
2793
|
+
if wireType != 2 {
|
|
2794
|
+
return fmt.Errorf("proto: wrong wireType = %d for field JsCode", wireType)
|
|
2795
|
+
}
|
|
2796
|
+
var stringLen uint64
|
|
2797
|
+
for shift := uint(0); ; shift += 7 {
|
|
2798
|
+
if shift >= 64 {
|
|
2799
|
+
return ErrIntOverflowMsgs
|
|
2800
|
+
}
|
|
2801
|
+
if iNdEx >= l {
|
|
2802
|
+
return io.ErrUnexpectedEOF
|
|
2803
|
+
}
|
|
2804
|
+
b := dAtA[iNdEx]
|
|
2805
|
+
iNdEx++
|
|
2806
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
2807
|
+
if b < 0x80 {
|
|
2808
|
+
break
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
intStringLen := int(stringLen)
|
|
2812
|
+
if intStringLen < 0 {
|
|
2813
|
+
return ErrInvalidLengthMsgs
|
|
2814
|
+
}
|
|
2815
|
+
postIndex := iNdEx + intStringLen
|
|
2816
|
+
if postIndex < 0 {
|
|
2817
|
+
return ErrInvalidLengthMsgs
|
|
2818
|
+
}
|
|
2819
|
+
if postIndex > l {
|
|
2820
|
+
return io.ErrUnexpectedEOF
|
|
2821
|
+
}
|
|
2822
|
+
m.JsCode = string(dAtA[iNdEx:postIndex])
|
|
2823
|
+
iNdEx = postIndex
|
|
2824
|
+
default:
|
|
2825
|
+
iNdEx = preIndex
|
|
2826
|
+
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
2827
|
+
if err != nil {
|
|
2828
|
+
return err
|
|
2829
|
+
}
|
|
2830
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
2831
|
+
return ErrInvalidLengthMsgs
|
|
2832
|
+
}
|
|
2833
|
+
if (iNdEx + skippy) > l {
|
|
2834
|
+
return io.ErrUnexpectedEOF
|
|
2835
|
+
}
|
|
2836
|
+
iNdEx += skippy
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
if iNdEx > l {
|
|
2841
|
+
return io.ErrUnexpectedEOF
|
|
2842
|
+
}
|
|
2843
|
+
return nil
|
|
2844
|
+
}
|
|
2845
|
+
func (m *MsgCoreEvalResponse) Unmarshal(dAtA []byte) error {
|
|
2846
|
+
l := len(dAtA)
|
|
2847
|
+
iNdEx := 0
|
|
2848
|
+
for iNdEx < l {
|
|
2849
|
+
preIndex := iNdEx
|
|
2850
|
+
var wire uint64
|
|
2851
|
+
for shift := uint(0); ; shift += 7 {
|
|
2852
|
+
if shift >= 64 {
|
|
2853
|
+
return ErrIntOverflowMsgs
|
|
2854
|
+
}
|
|
2855
|
+
if iNdEx >= l {
|
|
2856
|
+
return io.ErrUnexpectedEOF
|
|
2857
|
+
}
|
|
2858
|
+
b := dAtA[iNdEx]
|
|
2859
|
+
iNdEx++
|
|
2860
|
+
wire |= uint64(b&0x7F) << shift
|
|
2861
|
+
if b < 0x80 {
|
|
2862
|
+
break
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
fieldNum := int32(wire >> 3)
|
|
2866
|
+
wireType := int(wire & 0x7)
|
|
2867
|
+
if wireType == 4 {
|
|
2868
|
+
return fmt.Errorf("proto: MsgCoreEvalResponse: wiretype end group for non-group")
|
|
2869
|
+
}
|
|
2870
|
+
if fieldNum <= 0 {
|
|
2871
|
+
return fmt.Errorf("proto: MsgCoreEvalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
2872
|
+
}
|
|
2873
|
+
switch fieldNum {
|
|
2874
|
+
case 1:
|
|
2875
|
+
if wireType != 2 {
|
|
2876
|
+
return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
|
|
2877
|
+
}
|
|
2878
|
+
var stringLen uint64
|
|
2879
|
+
for shift := uint(0); ; shift += 7 {
|
|
2880
|
+
if shift >= 64 {
|
|
2881
|
+
return ErrIntOverflowMsgs
|
|
2882
|
+
}
|
|
2883
|
+
if iNdEx >= l {
|
|
2884
|
+
return io.ErrUnexpectedEOF
|
|
2885
|
+
}
|
|
2886
|
+
b := dAtA[iNdEx]
|
|
2887
|
+
iNdEx++
|
|
2888
|
+
stringLen |= uint64(b&0x7F) << shift
|
|
2889
|
+
if b < 0x80 {
|
|
2890
|
+
break
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
intStringLen := int(stringLen)
|
|
2894
|
+
if intStringLen < 0 {
|
|
2895
|
+
return ErrInvalidLengthMsgs
|
|
2896
|
+
}
|
|
2897
|
+
postIndex := iNdEx + intStringLen
|
|
2898
|
+
if postIndex < 0 {
|
|
2899
|
+
return ErrInvalidLengthMsgs
|
|
2900
|
+
}
|
|
2901
|
+
if postIndex > l {
|
|
2902
|
+
return io.ErrUnexpectedEOF
|
|
2903
|
+
}
|
|
2904
|
+
m.Result = string(dAtA[iNdEx:postIndex])
|
|
2905
|
+
iNdEx = postIndex
|
|
2906
|
+
default:
|
|
2907
|
+
iNdEx = preIndex
|
|
2908
|
+
skippy, err := skipMsgs(dAtA[iNdEx:])
|
|
2909
|
+
if err != nil {
|
|
2910
|
+
return err
|
|
2911
|
+
}
|
|
2912
|
+
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
2913
|
+
return ErrInvalidLengthMsgs
|
|
2914
|
+
}
|
|
2915
|
+
if (iNdEx + skippy) > l {
|
|
2916
|
+
return io.ErrUnexpectedEOF
|
|
2917
|
+
}
|
|
2918
|
+
iNdEx += skippy
|
|
2919
|
+
}
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
if iNdEx > l {
|
|
2923
|
+
return io.ErrUnexpectedEOF
|
|
2924
|
+
}
|
|
2925
|
+
return nil
|
|
2926
|
+
}
|
|
2417
2927
|
func skipMsgs(dAtA []byte) (n int, err error) {
|
|
2418
2928
|
l := len(dAtA)
|
|
2419
2929
|
iNdEx := 0
|