github.com/InjectiveLabs/sdk-go@v1.53.0/chain/wasmx/types/proposal.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: injective/wasmx/v1/proposal.proto
     3  
     4  package types
     5  
     6  import (
     7  	fmt "fmt"
     8  	types "github.com/CosmWasm/wasmd/x/wasm/types"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    11  	_ "github.com/cosmos/gogoproto/gogoproto"
    12  	proto "github.com/cosmos/gogoproto/proto"
    13  	io "io"
    14  	math "math"
    15  	math_bits "math/bits"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  type FundingMode int32
    30  
    31  const (
    32  	FundingMode_Unspecified FundingMode = 0
    33  	FundingMode_SelfFunded  FundingMode = 1
    34  	FundingMode_GrantOnly   FundingMode = 2
    35  	FundingMode_Dual        FundingMode = 3
    36  )
    37  
    38  var FundingMode_name = map[int32]string{
    39  	0: "Unspecified",
    40  	1: "SelfFunded",
    41  	2: "GrantOnly",
    42  	3: "Dual",
    43  }
    44  
    45  var FundingMode_value = map[string]int32{
    46  	"Unspecified": 0,
    47  	"SelfFunded":  1,
    48  	"GrantOnly":   2,
    49  	"Dual":        3,
    50  }
    51  
    52  func (x FundingMode) String() string {
    53  	return proto.EnumName(FundingMode_name, int32(x))
    54  }
    55  
    56  func (FundingMode) EnumDescriptor() ([]byte, []int) {
    57  	return fileDescriptor_ba51f3e994cc61a5, []int{0}
    58  }
    59  
    60  type ContractRegistrationRequestProposal struct {
    61  	Title                       string                      `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
    62  	Description                 string                      `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    63  	ContractRegistrationRequest ContractRegistrationRequest `protobuf:"bytes,3,opt,name=contract_registration_request,json=contractRegistrationRequest,proto3" json:"contract_registration_request"`
    64  }
    65  
    66  func (m *ContractRegistrationRequestProposal) Reset()         { *m = ContractRegistrationRequestProposal{} }
    67  func (m *ContractRegistrationRequestProposal) String() string { return proto.CompactTextString(m) }
    68  func (*ContractRegistrationRequestProposal) ProtoMessage()    {}
    69  func (*ContractRegistrationRequestProposal) Descriptor() ([]byte, []int) {
    70  	return fileDescriptor_ba51f3e994cc61a5, []int{0}
    71  }
    72  func (m *ContractRegistrationRequestProposal) XXX_Unmarshal(b []byte) error {
    73  	return m.Unmarshal(b)
    74  }
    75  func (m *ContractRegistrationRequestProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    76  	if deterministic {
    77  		return xxx_messageInfo_ContractRegistrationRequestProposal.Marshal(b, m, deterministic)
    78  	} else {
    79  		b = b[:cap(b)]
    80  		n, err := m.MarshalToSizedBuffer(b)
    81  		if err != nil {
    82  			return nil, err
    83  		}
    84  		return b[:n], nil
    85  	}
    86  }
    87  func (m *ContractRegistrationRequestProposal) XXX_Merge(src proto.Message) {
    88  	xxx_messageInfo_ContractRegistrationRequestProposal.Merge(m, src)
    89  }
    90  func (m *ContractRegistrationRequestProposal) XXX_Size() int {
    91  	return m.Size()
    92  }
    93  func (m *ContractRegistrationRequestProposal) XXX_DiscardUnknown() {
    94  	xxx_messageInfo_ContractRegistrationRequestProposal.DiscardUnknown(m)
    95  }
    96  
    97  var xxx_messageInfo_ContractRegistrationRequestProposal proto.InternalMessageInfo
    98  
    99  type BatchContractRegistrationRequestProposal struct {
   100  	Title                        string                        `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
   101  	Description                  string                        `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
   102  	ContractRegistrationRequests []ContractRegistrationRequest `protobuf:"bytes,3,rep,name=contract_registration_requests,json=contractRegistrationRequests,proto3" json:"contract_registration_requests"`
   103  }
   104  
   105  func (m *BatchContractRegistrationRequestProposal) Reset() {
   106  	*m = BatchContractRegistrationRequestProposal{}
   107  }
   108  func (m *BatchContractRegistrationRequestProposal) String() string { return proto.CompactTextString(m) }
   109  func (*BatchContractRegistrationRequestProposal) ProtoMessage()    {}
   110  func (*BatchContractRegistrationRequestProposal) Descriptor() ([]byte, []int) {
   111  	return fileDescriptor_ba51f3e994cc61a5, []int{1}
   112  }
   113  func (m *BatchContractRegistrationRequestProposal) XXX_Unmarshal(b []byte) error {
   114  	return m.Unmarshal(b)
   115  }
   116  func (m *BatchContractRegistrationRequestProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   117  	if deterministic {
   118  		return xxx_messageInfo_BatchContractRegistrationRequestProposal.Marshal(b, m, deterministic)
   119  	} else {
   120  		b = b[:cap(b)]
   121  		n, err := m.MarshalToSizedBuffer(b)
   122  		if err != nil {
   123  			return nil, err
   124  		}
   125  		return b[:n], nil
   126  	}
   127  }
   128  func (m *BatchContractRegistrationRequestProposal) XXX_Merge(src proto.Message) {
   129  	xxx_messageInfo_BatchContractRegistrationRequestProposal.Merge(m, src)
   130  }
   131  func (m *BatchContractRegistrationRequestProposal) XXX_Size() int {
   132  	return m.Size()
   133  }
   134  func (m *BatchContractRegistrationRequestProposal) XXX_DiscardUnknown() {
   135  	xxx_messageInfo_BatchContractRegistrationRequestProposal.DiscardUnknown(m)
   136  }
   137  
   138  var xxx_messageInfo_BatchContractRegistrationRequestProposal proto.InternalMessageInfo
   139  
   140  type BatchContractDeregistrationProposal struct {
   141  	Title       string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
   142  	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
   143  	Contracts   []string `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty"`
   144  }
   145  
   146  func (m *BatchContractDeregistrationProposal) Reset()         { *m = BatchContractDeregistrationProposal{} }
   147  func (m *BatchContractDeregistrationProposal) String() string { return proto.CompactTextString(m) }
   148  func (*BatchContractDeregistrationProposal) ProtoMessage()    {}
   149  func (*BatchContractDeregistrationProposal) Descriptor() ([]byte, []int) {
   150  	return fileDescriptor_ba51f3e994cc61a5, []int{2}
   151  }
   152  func (m *BatchContractDeregistrationProposal) XXX_Unmarshal(b []byte) error {
   153  	return m.Unmarshal(b)
   154  }
   155  func (m *BatchContractDeregistrationProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   156  	if deterministic {
   157  		return xxx_messageInfo_BatchContractDeregistrationProposal.Marshal(b, m, deterministic)
   158  	} else {
   159  		b = b[:cap(b)]
   160  		n, err := m.MarshalToSizedBuffer(b)
   161  		if err != nil {
   162  			return nil, err
   163  		}
   164  		return b[:n], nil
   165  	}
   166  }
   167  func (m *BatchContractDeregistrationProposal) XXX_Merge(src proto.Message) {
   168  	xxx_messageInfo_BatchContractDeregistrationProposal.Merge(m, src)
   169  }
   170  func (m *BatchContractDeregistrationProposal) XXX_Size() int {
   171  	return m.Size()
   172  }
   173  func (m *BatchContractDeregistrationProposal) XXX_DiscardUnknown() {
   174  	xxx_messageInfo_BatchContractDeregistrationProposal.DiscardUnknown(m)
   175  }
   176  
   177  var xxx_messageInfo_BatchContractDeregistrationProposal proto.InternalMessageInfo
   178  
   179  type ContractRegistrationRequest struct {
   180  	// Unique Identifier for contract instance to be registered.
   181  	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
   182  	// Maximum gas to be used for the smart contract execution.
   183  	GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
   184  	// gas price to be used for the smart contract execution.
   185  	GasPrice          uint64 `protobuf:"varint,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
   186  	ShouldPinContract bool   `protobuf:"varint,4,opt,name=should_pin_contract,json=shouldPinContract,proto3" json:"should_pin_contract,omitempty"`
   187  	// if true contract owner can update it, if false only current code_id will be
   188  	// allowed to be executed
   189  	IsMigrationAllowed bool `protobuf:"varint,5,opt,name=is_migration_allowed,json=isMigrationAllowed,proto3" json:"is_migration_allowed,omitempty"`
   190  	// code_id of the contract being registered - will be verified upon every
   191  	// execution but only if is_migration_allowed is false
   192  	CodeId uint64 `protobuf:"varint,6,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
   193  	// Optional address of admin account (that will be allowed to pause or update
   194  	// contract params)
   195  	AdminAddress string `protobuf:"bytes,7,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
   196  	// Optional address of the contract that grants fees. Must be set if
   197  	// funding_mode is other than SelfFunded
   198  	GranterAddress string `protobuf:"bytes,8,opt,name=granter_address,json=granterAddress,proto3" json:"granter_address,omitempty"`
   199  	// Specifies how the contract will fund its execution
   200  	FundingMode FundingMode `protobuf:"varint,9,opt,name=funding_mode,json=fundingMode,proto3,enum=injective.wasmx.v1.FundingMode" json:"funding_mode,omitempty"`
   201  }
   202  
   203  func (m *ContractRegistrationRequest) Reset()         { *m = ContractRegistrationRequest{} }
   204  func (m *ContractRegistrationRequest) String() string { return proto.CompactTextString(m) }
   205  func (*ContractRegistrationRequest) ProtoMessage()    {}
   206  func (*ContractRegistrationRequest) Descriptor() ([]byte, []int) {
   207  	return fileDescriptor_ba51f3e994cc61a5, []int{3}
   208  }
   209  func (m *ContractRegistrationRequest) XXX_Unmarshal(b []byte) error {
   210  	return m.Unmarshal(b)
   211  }
   212  func (m *ContractRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   213  	if deterministic {
   214  		return xxx_messageInfo_ContractRegistrationRequest.Marshal(b, m, deterministic)
   215  	} else {
   216  		b = b[:cap(b)]
   217  		n, err := m.MarshalToSizedBuffer(b)
   218  		if err != nil {
   219  			return nil, err
   220  		}
   221  		return b[:n], nil
   222  	}
   223  }
   224  func (m *ContractRegistrationRequest) XXX_Merge(src proto.Message) {
   225  	xxx_messageInfo_ContractRegistrationRequest.Merge(m, src)
   226  }
   227  func (m *ContractRegistrationRequest) XXX_Size() int {
   228  	return m.Size()
   229  }
   230  func (m *ContractRegistrationRequest) XXX_DiscardUnknown() {
   231  	xxx_messageInfo_ContractRegistrationRequest.DiscardUnknown(m)
   232  }
   233  
   234  var xxx_messageInfo_ContractRegistrationRequest proto.InternalMessageInfo
   235  
   236  func (m *ContractRegistrationRequest) GetContractAddress() string {
   237  	if m != nil {
   238  		return m.ContractAddress
   239  	}
   240  	return ""
   241  }
   242  
   243  func (m *ContractRegistrationRequest) GetGasLimit() uint64 {
   244  	if m != nil {
   245  		return m.GasLimit
   246  	}
   247  	return 0
   248  }
   249  
   250  func (m *ContractRegistrationRequest) GetGasPrice() uint64 {
   251  	if m != nil {
   252  		return m.GasPrice
   253  	}
   254  	return 0
   255  }
   256  
   257  func (m *ContractRegistrationRequest) GetShouldPinContract() bool {
   258  	if m != nil {
   259  		return m.ShouldPinContract
   260  	}
   261  	return false
   262  }
   263  
   264  func (m *ContractRegistrationRequest) GetIsMigrationAllowed() bool {
   265  	if m != nil {
   266  		return m.IsMigrationAllowed
   267  	}
   268  	return false
   269  }
   270  
   271  func (m *ContractRegistrationRequest) GetCodeId() uint64 {
   272  	if m != nil {
   273  		return m.CodeId
   274  	}
   275  	return 0
   276  }
   277  
   278  func (m *ContractRegistrationRequest) GetAdminAddress() string {
   279  	if m != nil {
   280  		return m.AdminAddress
   281  	}
   282  	return ""
   283  }
   284  
   285  func (m *ContractRegistrationRequest) GetGranterAddress() string {
   286  	if m != nil {
   287  		return m.GranterAddress
   288  	}
   289  	return ""
   290  }
   291  
   292  func (m *ContractRegistrationRequest) GetFundingMode() FundingMode {
   293  	if m != nil {
   294  		return m.FundingMode
   295  	}
   296  	return FundingMode_Unspecified
   297  }
   298  
   299  type BatchStoreCodeProposal struct {
   300  	Title       string                    `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
   301  	Description string                    `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
   302  	Proposals   []types.StoreCodeProposal `protobuf:"bytes,3,rep,name=proposals,proto3" json:"proposals"`
   303  }
   304  
   305  func (m *BatchStoreCodeProposal) Reset()         { *m = BatchStoreCodeProposal{} }
   306  func (m *BatchStoreCodeProposal) String() string { return proto.CompactTextString(m) }
   307  func (*BatchStoreCodeProposal) ProtoMessage()    {}
   308  func (*BatchStoreCodeProposal) Descriptor() ([]byte, []int) {
   309  	return fileDescriptor_ba51f3e994cc61a5, []int{4}
   310  }
   311  func (m *BatchStoreCodeProposal) XXX_Unmarshal(b []byte) error {
   312  	return m.Unmarshal(b)
   313  }
   314  func (m *BatchStoreCodeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   315  	if deterministic {
   316  		return xxx_messageInfo_BatchStoreCodeProposal.Marshal(b, m, deterministic)
   317  	} else {
   318  		b = b[:cap(b)]
   319  		n, err := m.MarshalToSizedBuffer(b)
   320  		if err != nil {
   321  			return nil, err
   322  		}
   323  		return b[:n], nil
   324  	}
   325  }
   326  func (m *BatchStoreCodeProposal) XXX_Merge(src proto.Message) {
   327  	xxx_messageInfo_BatchStoreCodeProposal.Merge(m, src)
   328  }
   329  func (m *BatchStoreCodeProposal) XXX_Size() int {
   330  	return m.Size()
   331  }
   332  func (m *BatchStoreCodeProposal) XXX_DiscardUnknown() {
   333  	xxx_messageInfo_BatchStoreCodeProposal.DiscardUnknown(m)
   334  }
   335  
   336  var xxx_messageInfo_BatchStoreCodeProposal proto.InternalMessageInfo
   337  
   338  func init() {
   339  	proto.RegisterEnum("injective.wasmx.v1.FundingMode", FundingMode_name, FundingMode_value)
   340  	proto.RegisterType((*ContractRegistrationRequestProposal)(nil), "injective.wasmx.v1.ContractRegistrationRequestProposal")
   341  	proto.RegisterType((*BatchContractRegistrationRequestProposal)(nil), "injective.wasmx.v1.BatchContractRegistrationRequestProposal")
   342  	proto.RegisterType((*BatchContractDeregistrationProposal)(nil), "injective.wasmx.v1.BatchContractDeregistrationProposal")
   343  	proto.RegisterType((*ContractRegistrationRequest)(nil), "injective.wasmx.v1.ContractRegistrationRequest")
   344  	proto.RegisterType((*BatchStoreCodeProposal)(nil), "injective.wasmx.v1.BatchStoreCodeProposal")
   345  }
   346  
   347  func init() { proto.RegisterFile("injective/wasmx/v1/proposal.proto", fileDescriptor_ba51f3e994cc61a5) }
   348  
   349  var fileDescriptor_ba51f3e994cc61a5 = []byte{
   350  	// 738 bytes of a gzipped FileDescriptorProto
   351  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6e, 0xd3, 0x4e,
   352  	0x10, 0x8e, 0x93, 0xb4, 0x4d, 0x36, 0xfd, 0x93, 0xee, 0xaf, 0xfa, 0x61, 0xda, 0xe2, 0x84, 0x44,
   353  	0x82, 0xb4, 0x52, 0x6d, 0x5a, 0x6e, 0xb9, 0x35, 0xad, 0x88, 0x2a, 0x5a, 0x51, 0xb9, 0x70, 0x80,
   354  	0x8b, 0xb5, 0xf1, 0x6e, 0x9c, 0x45, 0xb6, 0xd7, 0x78, 0x37, 0x29, 0x11, 0x2f, 0x80, 0x38, 0xf1,
   355  	0x08, 0x7d, 0x02, 0xe0, 0xc0, 0x89, 0x27, 0xa8, 0x38, 0x95, 0x1b, 0x27, 0x84, 0xd2, 0x03, 0x3c,
   356  	0x06, 0xf2, 0xbf, 0x34, 0xa8, 0x10, 0x45, 0xad, 0xb8, 0x44, 0x99, 0x99, 0x6f, 0x67, 0xe6, 0xfb,
   357  	0x66, 0xd6, 0x0b, 0x6e, 0x53, 0xf7, 0x39, 0x31, 0x05, 0xed, 0x11, 0xed, 0x18, 0x71, 0xe7, 0xa5,
   358  	0xd6, 0xdb, 0xd4, 0x3c, 0x9f, 0x79, 0x8c, 0x23, 0x5b, 0xf5, 0x7c, 0x26, 0x18, 0x84, 0x43, 0x88,
   359  	0x1a, 0x42, 0xd4, 0xde, 0xe6, 0xf2, 0x4d, 0x93, 0x71, 0x87, 0x71, 0x23, 0x44, 0x68, 0x91, 0x11,
   360  	0xc1, 0x97, 0xef, 0x04, 0x56, 0x00, 0x0c, 0x13, 0x8e, 0xe6, 0x33, 0x6c, 0x62, 0x21, 0xb3, 0x1f,
   361  	0xe3, 0x96, 0x2c, 0x66, 0xb1, 0xe8, 0x7c, 0xf0, 0x2f, 0xf6, 0x2e, 0x22, 0x87, 0xba, 0x4c, 0x0b,
   362  	0x7f, 0x23, 0x57, 0xe5, 0x5d, 0x1a, 0x54, 0x77, 0x98, 0x2b, 0x7c, 0x64, 0x0a, 0x9d, 0x58, 0x94,
   363  	0x0b, 0x1f, 0x09, 0xca, 0x5c, 0x9d, 0xbc, 0xe8, 0x12, 0x2e, 0x0e, 0xe3, 0xec, 0x70, 0x09, 0x4c,
   364  	0x09, 0x2a, 0x6c, 0x22, 0x4b, 0x65, 0xa9, 0x96, 0xd7, 0x23, 0x03, 0x96, 0x41, 0x01, 0x13, 0x6e,
   365  	0xfa, 0xd4, 0x0b, 0xce, 0xc8, 0xe9, 0x30, 0x36, 0xea, 0x82, 0x7d, 0x70, 0xcb, 0x8c, 0xd3, 0x1b,
   366  	0xfe, 0x48, 0x7e, 0xc3, 0x8f, 0x0a, 0xc8, 0x99, 0xb2, 0x54, 0x2b, 0x6c, 0x69, 0xea, 0x65, 0x1d,
   367  	0xd4, 0x31, 0x7d, 0x35, 0xb2, 0xa7, 0xdf, 0x4a, 0x29, 0x7d, 0xc5, 0xfc, 0x3b, 0xa4, 0xfe, 0xf8,
   368  	0xf5, 0x49, 0x29, 0xf5, 0xf3, 0xa4, 0x94, 0xfa, 0xfc, 0x71, 0x63, 0x39, 0x56, 0xd1, 0x62, 0x3d,
   369  	0xb5, 0xb7, 0xd9, 0x22, 0x02, 0x45, 0xe9, 0x89, 0x2b, 0xde, 0xfc, 0xf8, 0xb0, 0xbe, 0x16, 0x8d,
   370  	0x67, 0x02, 0x21, 0x2a, 0x9f, 0xd2, 0xa0, 0xd6, 0x40, 0xc2, 0xec, 0xfc, 0x4b, 0xd5, 0x5e, 0x01,
   371  	0x65, 0xac, 0x6a, 0x5c, 0xce, 0x94, 0x33, 0x57, 0x97, 0x6d, 0x75, 0x8c, 0x6c, 0xbc, 0xfe, 0x74,
   372  	0x72, 0xdd, 0xa2, 0xa2, 0xda, 0xa4, 0x7a, 0x54, 0xbe, 0x48, 0xa0, 0xfa, 0x1b, 0x78, 0x97, 0x8c,
   373  	0xd2, 0xbb, 0xb6, 0x6e, 0xab, 0x20, 0x9f, 0x50, 0x8b, 0x24, 0xca, 0xeb, 0x17, 0x8e, 0x2b, 0x2c,
   374  	0xc4, 0x04, 0xbd, 0x56, 0xde, 0x67, 0xc0, 0xca, 0x18, 0xee, 0x70, 0x0d, 0x14, 0x87, 0xb3, 0x44,
   375  	0x18, 0xfb, 0x84, 0xf3, 0x98, 0xd6, 0x42, 0xe2, 0xdf, 0x8e, 0xdc, 0x70, 0x05, 0xe4, 0x2d, 0xc4,
   376  	0x0d, 0x9b, 0x3a, 0x54, 0x84, 0xf4, 0xb2, 0x7a, 0xce, 0x42, 0x7c, 0x3f, 0xb0, 0x93, 0xa0, 0xe7,
   377  	0x53, 0x93, 0x84, 0xb7, 0x26, 0x0a, 0x1e, 0x06, 0x36, 0x54, 0xc1, 0x7f, 0xbc, 0xc3, 0xba, 0x36,
   378  	0x36, 0x3c, 0xea, 0x1a, 0x49, 0x5e, 0x39, 0x5b, 0x96, 0x6a, 0x39, 0x7d, 0x31, 0x0a, 0x1d, 0x52,
   379  	0x37, 0xe9, 0x13, 0xde, 0x03, 0x4b, 0x94, 0x1b, 0x0e, 0xb5, 0xe2, 0xbd, 0x42, 0xb6, 0xcd, 0x8e,
   380  	0x09, 0x96, 0xa7, 0xc2, 0x03, 0x90, 0xf2, 0x83, 0x24, 0xb4, 0x1d, 0x45, 0xe0, 0x0d, 0x30, 0x63,
   381  	0x32, 0x4c, 0x0c, 0x8a, 0xe5, 0xe9, 0xb0, 0xf8, 0x74, 0x60, 0xee, 0x61, 0x58, 0x05, 0x73, 0x08,
   382  	0x3b, 0xd4, 0x1d, 0x92, 0x9b, 0x09, 0xc9, 0xcd, 0x86, 0xce, 0x84, 0xd9, 0x5d, 0xb0, 0x60, 0xf9,
   383  	0xc8, 0x15, 0xc4, 0x1f, 0xc2, 0x72, 0x21, 0x6c, 0x3e, 0x76, 0x27, 0xc0, 0x06, 0x98, 0x6d, 0x77,
   384  	0x5d, 0x4c, 0x5d, 0xcb, 0x70, 0x18, 0x26, 0x72, 0xbe, 0x2c, 0xd5, 0xe6, 0xb7, 0x4a, 0x7f, 0xda,
   385  	0xf3, 0x07, 0x11, 0xee, 0x80, 0x61, 0xa2, 0x17, 0xda, 0x17, 0x46, 0x5d, 0x19, 0x3f, 0xdf, 0xca,
   386  	0x40, 0x02, 0xff, 0x87, 0x93, 0x3d, 0x12, 0xcc, 0x27, 0x3b, 0x0c, 0x93, 0x6b, 0x2f, 0x5e, 0x13,
   387  	0xe4, 0x93, 0x0f, 0x71, 0x72, 0x37, 0xab, 0x6a, 0xf2, 0xad, 0x0e, 0x5b, 0x0e, 0x3a, 0xbe, 0x54,
   388  	0x2f, 0xbe, 0x8f, 0x17, 0x67, 0xeb, 0xcd, 0xc9, 0x77, 0x74, 0x75, 0x64, 0x47, 0x2f, 0x65, 0x5e,
   389  	0x6f, 0x82, 0xc2, 0x88, 0x40, 0x70, 0x01, 0x14, 0x9e, 0xb8, 0xdc, 0x23, 0x26, 0x6d, 0x53, 0x82,
   390  	0x8b, 0x29, 0x38, 0x0f, 0xc0, 0x11, 0xb1, 0xdb, 0x01, 0x86, 0xe0, 0xa2, 0x04, 0xe7, 0x40, 0xbe,
   391  	0x19, 0x8c, 0xe2, 0x91, 0x6b, 0xf7, 0x8b, 0x69, 0x98, 0x03, 0xd9, 0xdd, 0x2e, 0xb2, 0x8b, 0x99,
   392  	0x06, 0x39, 0x1d, 0x28, 0xd2, 0xd9, 0x40, 0x91, 0xbe, 0x0f, 0x14, 0xe9, 0xed, 0xb9, 0x92, 0x3a,
   393  	0x3b, 0x57, 0x52, 0x5f, 0xcf, 0x95, 0xd4, 0xb3, 0x87, 0x16, 0x15, 0x9d, 0x6e, 0x4b, 0x35, 0x99,
   394  	0xa3, 0xed, 0x25, 0xf3, 0xd9, 0x47, 0x2d, 0xae, 0x0d, 0xa7, 0xb5, 0x61, 0x32, 0x9f, 0x8c, 0x9a,
   395  	0x1d, 0x44, 0x5d, 0xcd, 0x61, 0xb8, 0x6b, 0x13, 0x1e, 0x3f, 0x8a, 0xa2, 0xef, 0x11, 0xde, 0x9a,
   396  	0x0e, 0xdf, 0xa3, 0xfb, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x0d, 0xee, 0xb6, 0x0c, 0x34, 0x07,
   397  	0x00, 0x00,
   398  }
   399  
   400  func (m *ContractRegistrationRequestProposal) Marshal() (dAtA []byte, err error) {
   401  	size := m.Size()
   402  	dAtA = make([]byte, size)
   403  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   404  	if err != nil {
   405  		return nil, err
   406  	}
   407  	return dAtA[:n], nil
   408  }
   409  
   410  func (m *ContractRegistrationRequestProposal) MarshalTo(dAtA []byte) (int, error) {
   411  	size := m.Size()
   412  	return m.MarshalToSizedBuffer(dAtA[:size])
   413  }
   414  
   415  func (m *ContractRegistrationRequestProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   416  	i := len(dAtA)
   417  	_ = i
   418  	var l int
   419  	_ = l
   420  	{
   421  		size, err := m.ContractRegistrationRequest.MarshalToSizedBuffer(dAtA[:i])
   422  		if err != nil {
   423  			return 0, err
   424  		}
   425  		i -= size
   426  		i = encodeVarintProposal(dAtA, i, uint64(size))
   427  	}
   428  	i--
   429  	dAtA[i] = 0x1a
   430  	if len(m.Description) > 0 {
   431  		i -= len(m.Description)
   432  		copy(dAtA[i:], m.Description)
   433  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Description)))
   434  		i--
   435  		dAtA[i] = 0x12
   436  	}
   437  	if len(m.Title) > 0 {
   438  		i -= len(m.Title)
   439  		copy(dAtA[i:], m.Title)
   440  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Title)))
   441  		i--
   442  		dAtA[i] = 0xa
   443  	}
   444  	return len(dAtA) - i, nil
   445  }
   446  
   447  func (m *BatchContractRegistrationRequestProposal) Marshal() (dAtA []byte, err error) {
   448  	size := m.Size()
   449  	dAtA = make([]byte, size)
   450  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   451  	if err != nil {
   452  		return nil, err
   453  	}
   454  	return dAtA[:n], nil
   455  }
   456  
   457  func (m *BatchContractRegistrationRequestProposal) MarshalTo(dAtA []byte) (int, error) {
   458  	size := m.Size()
   459  	return m.MarshalToSizedBuffer(dAtA[:size])
   460  }
   461  
   462  func (m *BatchContractRegistrationRequestProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   463  	i := len(dAtA)
   464  	_ = i
   465  	var l int
   466  	_ = l
   467  	if len(m.ContractRegistrationRequests) > 0 {
   468  		for iNdEx := len(m.ContractRegistrationRequests) - 1; iNdEx >= 0; iNdEx-- {
   469  			{
   470  				size, err := m.ContractRegistrationRequests[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   471  				if err != nil {
   472  					return 0, err
   473  				}
   474  				i -= size
   475  				i = encodeVarintProposal(dAtA, i, uint64(size))
   476  			}
   477  			i--
   478  			dAtA[i] = 0x1a
   479  		}
   480  	}
   481  	if len(m.Description) > 0 {
   482  		i -= len(m.Description)
   483  		copy(dAtA[i:], m.Description)
   484  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Description)))
   485  		i--
   486  		dAtA[i] = 0x12
   487  	}
   488  	if len(m.Title) > 0 {
   489  		i -= len(m.Title)
   490  		copy(dAtA[i:], m.Title)
   491  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Title)))
   492  		i--
   493  		dAtA[i] = 0xa
   494  	}
   495  	return len(dAtA) - i, nil
   496  }
   497  
   498  func (m *BatchContractDeregistrationProposal) Marshal() (dAtA []byte, err error) {
   499  	size := m.Size()
   500  	dAtA = make([]byte, size)
   501  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   502  	if err != nil {
   503  		return nil, err
   504  	}
   505  	return dAtA[:n], nil
   506  }
   507  
   508  func (m *BatchContractDeregistrationProposal) MarshalTo(dAtA []byte) (int, error) {
   509  	size := m.Size()
   510  	return m.MarshalToSizedBuffer(dAtA[:size])
   511  }
   512  
   513  func (m *BatchContractDeregistrationProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   514  	i := len(dAtA)
   515  	_ = i
   516  	var l int
   517  	_ = l
   518  	if len(m.Contracts) > 0 {
   519  		for iNdEx := len(m.Contracts) - 1; iNdEx >= 0; iNdEx-- {
   520  			i -= len(m.Contracts[iNdEx])
   521  			copy(dAtA[i:], m.Contracts[iNdEx])
   522  			i = encodeVarintProposal(dAtA, i, uint64(len(m.Contracts[iNdEx])))
   523  			i--
   524  			dAtA[i] = 0x1a
   525  		}
   526  	}
   527  	if len(m.Description) > 0 {
   528  		i -= len(m.Description)
   529  		copy(dAtA[i:], m.Description)
   530  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Description)))
   531  		i--
   532  		dAtA[i] = 0x12
   533  	}
   534  	if len(m.Title) > 0 {
   535  		i -= len(m.Title)
   536  		copy(dAtA[i:], m.Title)
   537  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Title)))
   538  		i--
   539  		dAtA[i] = 0xa
   540  	}
   541  	return len(dAtA) - i, nil
   542  }
   543  
   544  func (m *ContractRegistrationRequest) Marshal() (dAtA []byte, err error) {
   545  	size := m.Size()
   546  	dAtA = make([]byte, size)
   547  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   548  	if err != nil {
   549  		return nil, err
   550  	}
   551  	return dAtA[:n], nil
   552  }
   553  
   554  func (m *ContractRegistrationRequest) MarshalTo(dAtA []byte) (int, error) {
   555  	size := m.Size()
   556  	return m.MarshalToSizedBuffer(dAtA[:size])
   557  }
   558  
   559  func (m *ContractRegistrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   560  	i := len(dAtA)
   561  	_ = i
   562  	var l int
   563  	_ = l
   564  	if m.FundingMode != 0 {
   565  		i = encodeVarintProposal(dAtA, i, uint64(m.FundingMode))
   566  		i--
   567  		dAtA[i] = 0x48
   568  	}
   569  	if len(m.GranterAddress) > 0 {
   570  		i -= len(m.GranterAddress)
   571  		copy(dAtA[i:], m.GranterAddress)
   572  		i = encodeVarintProposal(dAtA, i, uint64(len(m.GranterAddress)))
   573  		i--
   574  		dAtA[i] = 0x42
   575  	}
   576  	if len(m.AdminAddress) > 0 {
   577  		i -= len(m.AdminAddress)
   578  		copy(dAtA[i:], m.AdminAddress)
   579  		i = encodeVarintProposal(dAtA, i, uint64(len(m.AdminAddress)))
   580  		i--
   581  		dAtA[i] = 0x3a
   582  	}
   583  	if m.CodeId != 0 {
   584  		i = encodeVarintProposal(dAtA, i, uint64(m.CodeId))
   585  		i--
   586  		dAtA[i] = 0x30
   587  	}
   588  	if m.IsMigrationAllowed {
   589  		i--
   590  		if m.IsMigrationAllowed {
   591  			dAtA[i] = 1
   592  		} else {
   593  			dAtA[i] = 0
   594  		}
   595  		i--
   596  		dAtA[i] = 0x28
   597  	}
   598  	if m.ShouldPinContract {
   599  		i--
   600  		if m.ShouldPinContract {
   601  			dAtA[i] = 1
   602  		} else {
   603  			dAtA[i] = 0
   604  		}
   605  		i--
   606  		dAtA[i] = 0x20
   607  	}
   608  	if m.GasPrice != 0 {
   609  		i = encodeVarintProposal(dAtA, i, uint64(m.GasPrice))
   610  		i--
   611  		dAtA[i] = 0x18
   612  	}
   613  	if m.GasLimit != 0 {
   614  		i = encodeVarintProposal(dAtA, i, uint64(m.GasLimit))
   615  		i--
   616  		dAtA[i] = 0x10
   617  	}
   618  	if len(m.ContractAddress) > 0 {
   619  		i -= len(m.ContractAddress)
   620  		copy(dAtA[i:], m.ContractAddress)
   621  		i = encodeVarintProposal(dAtA, i, uint64(len(m.ContractAddress)))
   622  		i--
   623  		dAtA[i] = 0xa
   624  	}
   625  	return len(dAtA) - i, nil
   626  }
   627  
   628  func (m *BatchStoreCodeProposal) Marshal() (dAtA []byte, err error) {
   629  	size := m.Size()
   630  	dAtA = make([]byte, size)
   631  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   632  	if err != nil {
   633  		return nil, err
   634  	}
   635  	return dAtA[:n], nil
   636  }
   637  
   638  func (m *BatchStoreCodeProposal) MarshalTo(dAtA []byte) (int, error) {
   639  	size := m.Size()
   640  	return m.MarshalToSizedBuffer(dAtA[:size])
   641  }
   642  
   643  func (m *BatchStoreCodeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   644  	i := len(dAtA)
   645  	_ = i
   646  	var l int
   647  	_ = l
   648  	if len(m.Proposals) > 0 {
   649  		for iNdEx := len(m.Proposals) - 1; iNdEx >= 0; iNdEx-- {
   650  			{
   651  				size, err := m.Proposals[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   652  				if err != nil {
   653  					return 0, err
   654  				}
   655  				i -= size
   656  				i = encodeVarintProposal(dAtA, i, uint64(size))
   657  			}
   658  			i--
   659  			dAtA[i] = 0x1a
   660  		}
   661  	}
   662  	if len(m.Description) > 0 {
   663  		i -= len(m.Description)
   664  		copy(dAtA[i:], m.Description)
   665  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Description)))
   666  		i--
   667  		dAtA[i] = 0x12
   668  	}
   669  	if len(m.Title) > 0 {
   670  		i -= len(m.Title)
   671  		copy(dAtA[i:], m.Title)
   672  		i = encodeVarintProposal(dAtA, i, uint64(len(m.Title)))
   673  		i--
   674  		dAtA[i] = 0xa
   675  	}
   676  	return len(dAtA) - i, nil
   677  }
   678  
   679  func encodeVarintProposal(dAtA []byte, offset int, v uint64) int {
   680  	offset -= sovProposal(v)
   681  	base := offset
   682  	for v >= 1<<7 {
   683  		dAtA[offset] = uint8(v&0x7f | 0x80)
   684  		v >>= 7
   685  		offset++
   686  	}
   687  	dAtA[offset] = uint8(v)
   688  	return base
   689  }
   690  func (m *ContractRegistrationRequestProposal) Size() (n int) {
   691  	if m == nil {
   692  		return 0
   693  	}
   694  	var l int
   695  	_ = l
   696  	l = len(m.Title)
   697  	if l > 0 {
   698  		n += 1 + l + sovProposal(uint64(l))
   699  	}
   700  	l = len(m.Description)
   701  	if l > 0 {
   702  		n += 1 + l + sovProposal(uint64(l))
   703  	}
   704  	l = m.ContractRegistrationRequest.Size()
   705  	n += 1 + l + sovProposal(uint64(l))
   706  	return n
   707  }
   708  
   709  func (m *BatchContractRegistrationRequestProposal) Size() (n int) {
   710  	if m == nil {
   711  		return 0
   712  	}
   713  	var l int
   714  	_ = l
   715  	l = len(m.Title)
   716  	if l > 0 {
   717  		n += 1 + l + sovProposal(uint64(l))
   718  	}
   719  	l = len(m.Description)
   720  	if l > 0 {
   721  		n += 1 + l + sovProposal(uint64(l))
   722  	}
   723  	if len(m.ContractRegistrationRequests) > 0 {
   724  		for _, e := range m.ContractRegistrationRequests {
   725  			l = e.Size()
   726  			n += 1 + l + sovProposal(uint64(l))
   727  		}
   728  	}
   729  	return n
   730  }
   731  
   732  func (m *BatchContractDeregistrationProposal) Size() (n int) {
   733  	if m == nil {
   734  		return 0
   735  	}
   736  	var l int
   737  	_ = l
   738  	l = len(m.Title)
   739  	if l > 0 {
   740  		n += 1 + l + sovProposal(uint64(l))
   741  	}
   742  	l = len(m.Description)
   743  	if l > 0 {
   744  		n += 1 + l + sovProposal(uint64(l))
   745  	}
   746  	if len(m.Contracts) > 0 {
   747  		for _, s := range m.Contracts {
   748  			l = len(s)
   749  			n += 1 + l + sovProposal(uint64(l))
   750  		}
   751  	}
   752  	return n
   753  }
   754  
   755  func (m *ContractRegistrationRequest) Size() (n int) {
   756  	if m == nil {
   757  		return 0
   758  	}
   759  	var l int
   760  	_ = l
   761  	l = len(m.ContractAddress)
   762  	if l > 0 {
   763  		n += 1 + l + sovProposal(uint64(l))
   764  	}
   765  	if m.GasLimit != 0 {
   766  		n += 1 + sovProposal(uint64(m.GasLimit))
   767  	}
   768  	if m.GasPrice != 0 {
   769  		n += 1 + sovProposal(uint64(m.GasPrice))
   770  	}
   771  	if m.ShouldPinContract {
   772  		n += 2
   773  	}
   774  	if m.IsMigrationAllowed {
   775  		n += 2
   776  	}
   777  	if m.CodeId != 0 {
   778  		n += 1 + sovProposal(uint64(m.CodeId))
   779  	}
   780  	l = len(m.AdminAddress)
   781  	if l > 0 {
   782  		n += 1 + l + sovProposal(uint64(l))
   783  	}
   784  	l = len(m.GranterAddress)
   785  	if l > 0 {
   786  		n += 1 + l + sovProposal(uint64(l))
   787  	}
   788  	if m.FundingMode != 0 {
   789  		n += 1 + sovProposal(uint64(m.FundingMode))
   790  	}
   791  	return n
   792  }
   793  
   794  func (m *BatchStoreCodeProposal) Size() (n int) {
   795  	if m == nil {
   796  		return 0
   797  	}
   798  	var l int
   799  	_ = l
   800  	l = len(m.Title)
   801  	if l > 0 {
   802  		n += 1 + l + sovProposal(uint64(l))
   803  	}
   804  	l = len(m.Description)
   805  	if l > 0 {
   806  		n += 1 + l + sovProposal(uint64(l))
   807  	}
   808  	if len(m.Proposals) > 0 {
   809  		for _, e := range m.Proposals {
   810  			l = e.Size()
   811  			n += 1 + l + sovProposal(uint64(l))
   812  		}
   813  	}
   814  	return n
   815  }
   816  
   817  func sovProposal(x uint64) (n int) {
   818  	return (math_bits.Len64(x|1) + 6) / 7
   819  }
   820  func sozProposal(x uint64) (n int) {
   821  	return sovProposal(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   822  }
   823  func (m *ContractRegistrationRequestProposal) Unmarshal(dAtA []byte) error {
   824  	l := len(dAtA)
   825  	iNdEx := 0
   826  	for iNdEx < l {
   827  		preIndex := iNdEx
   828  		var wire uint64
   829  		for shift := uint(0); ; shift += 7 {
   830  			if shift >= 64 {
   831  				return ErrIntOverflowProposal
   832  			}
   833  			if iNdEx >= l {
   834  				return io.ErrUnexpectedEOF
   835  			}
   836  			b := dAtA[iNdEx]
   837  			iNdEx++
   838  			wire |= uint64(b&0x7F) << shift
   839  			if b < 0x80 {
   840  				break
   841  			}
   842  		}
   843  		fieldNum := int32(wire >> 3)
   844  		wireType := int(wire & 0x7)
   845  		if wireType == 4 {
   846  			return fmt.Errorf("proto: ContractRegistrationRequestProposal: wiretype end group for non-group")
   847  		}
   848  		if fieldNum <= 0 {
   849  			return fmt.Errorf("proto: ContractRegistrationRequestProposal: illegal tag %d (wire type %d)", fieldNum, wire)
   850  		}
   851  		switch fieldNum {
   852  		case 1:
   853  			if wireType != 2 {
   854  				return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
   855  			}
   856  			var stringLen uint64
   857  			for shift := uint(0); ; shift += 7 {
   858  				if shift >= 64 {
   859  					return ErrIntOverflowProposal
   860  				}
   861  				if iNdEx >= l {
   862  					return io.ErrUnexpectedEOF
   863  				}
   864  				b := dAtA[iNdEx]
   865  				iNdEx++
   866  				stringLen |= uint64(b&0x7F) << shift
   867  				if b < 0x80 {
   868  					break
   869  				}
   870  			}
   871  			intStringLen := int(stringLen)
   872  			if intStringLen < 0 {
   873  				return ErrInvalidLengthProposal
   874  			}
   875  			postIndex := iNdEx + intStringLen
   876  			if postIndex < 0 {
   877  				return ErrInvalidLengthProposal
   878  			}
   879  			if postIndex > l {
   880  				return io.ErrUnexpectedEOF
   881  			}
   882  			m.Title = string(dAtA[iNdEx:postIndex])
   883  			iNdEx = postIndex
   884  		case 2:
   885  			if wireType != 2 {
   886  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
   887  			}
   888  			var stringLen uint64
   889  			for shift := uint(0); ; shift += 7 {
   890  				if shift >= 64 {
   891  					return ErrIntOverflowProposal
   892  				}
   893  				if iNdEx >= l {
   894  					return io.ErrUnexpectedEOF
   895  				}
   896  				b := dAtA[iNdEx]
   897  				iNdEx++
   898  				stringLen |= uint64(b&0x7F) << shift
   899  				if b < 0x80 {
   900  					break
   901  				}
   902  			}
   903  			intStringLen := int(stringLen)
   904  			if intStringLen < 0 {
   905  				return ErrInvalidLengthProposal
   906  			}
   907  			postIndex := iNdEx + intStringLen
   908  			if postIndex < 0 {
   909  				return ErrInvalidLengthProposal
   910  			}
   911  			if postIndex > l {
   912  				return io.ErrUnexpectedEOF
   913  			}
   914  			m.Description = string(dAtA[iNdEx:postIndex])
   915  			iNdEx = postIndex
   916  		case 3:
   917  			if wireType != 2 {
   918  				return fmt.Errorf("proto: wrong wireType = %d for field ContractRegistrationRequest", wireType)
   919  			}
   920  			var msglen int
   921  			for shift := uint(0); ; shift += 7 {
   922  				if shift >= 64 {
   923  					return ErrIntOverflowProposal
   924  				}
   925  				if iNdEx >= l {
   926  					return io.ErrUnexpectedEOF
   927  				}
   928  				b := dAtA[iNdEx]
   929  				iNdEx++
   930  				msglen |= int(b&0x7F) << shift
   931  				if b < 0x80 {
   932  					break
   933  				}
   934  			}
   935  			if msglen < 0 {
   936  				return ErrInvalidLengthProposal
   937  			}
   938  			postIndex := iNdEx + msglen
   939  			if postIndex < 0 {
   940  				return ErrInvalidLengthProposal
   941  			}
   942  			if postIndex > l {
   943  				return io.ErrUnexpectedEOF
   944  			}
   945  			if err := m.ContractRegistrationRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   946  				return err
   947  			}
   948  			iNdEx = postIndex
   949  		default:
   950  			iNdEx = preIndex
   951  			skippy, err := skipProposal(dAtA[iNdEx:])
   952  			if err != nil {
   953  				return err
   954  			}
   955  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   956  				return ErrInvalidLengthProposal
   957  			}
   958  			if (iNdEx + skippy) > l {
   959  				return io.ErrUnexpectedEOF
   960  			}
   961  			iNdEx += skippy
   962  		}
   963  	}
   964  
   965  	if iNdEx > l {
   966  		return io.ErrUnexpectedEOF
   967  	}
   968  	return nil
   969  }
   970  func (m *BatchContractRegistrationRequestProposal) Unmarshal(dAtA []byte) error {
   971  	l := len(dAtA)
   972  	iNdEx := 0
   973  	for iNdEx < l {
   974  		preIndex := iNdEx
   975  		var wire uint64
   976  		for shift := uint(0); ; shift += 7 {
   977  			if shift >= 64 {
   978  				return ErrIntOverflowProposal
   979  			}
   980  			if iNdEx >= l {
   981  				return io.ErrUnexpectedEOF
   982  			}
   983  			b := dAtA[iNdEx]
   984  			iNdEx++
   985  			wire |= uint64(b&0x7F) << shift
   986  			if b < 0x80 {
   987  				break
   988  			}
   989  		}
   990  		fieldNum := int32(wire >> 3)
   991  		wireType := int(wire & 0x7)
   992  		if wireType == 4 {
   993  			return fmt.Errorf("proto: BatchContractRegistrationRequestProposal: wiretype end group for non-group")
   994  		}
   995  		if fieldNum <= 0 {
   996  			return fmt.Errorf("proto: BatchContractRegistrationRequestProposal: illegal tag %d (wire type %d)", fieldNum, wire)
   997  		}
   998  		switch fieldNum {
   999  		case 1:
  1000  			if wireType != 2 {
  1001  				return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  1002  			}
  1003  			var stringLen uint64
  1004  			for shift := uint(0); ; shift += 7 {
  1005  				if shift >= 64 {
  1006  					return ErrIntOverflowProposal
  1007  				}
  1008  				if iNdEx >= l {
  1009  					return io.ErrUnexpectedEOF
  1010  				}
  1011  				b := dAtA[iNdEx]
  1012  				iNdEx++
  1013  				stringLen |= uint64(b&0x7F) << shift
  1014  				if b < 0x80 {
  1015  					break
  1016  				}
  1017  			}
  1018  			intStringLen := int(stringLen)
  1019  			if intStringLen < 0 {
  1020  				return ErrInvalidLengthProposal
  1021  			}
  1022  			postIndex := iNdEx + intStringLen
  1023  			if postIndex < 0 {
  1024  				return ErrInvalidLengthProposal
  1025  			}
  1026  			if postIndex > l {
  1027  				return io.ErrUnexpectedEOF
  1028  			}
  1029  			m.Title = string(dAtA[iNdEx:postIndex])
  1030  			iNdEx = postIndex
  1031  		case 2:
  1032  			if wireType != 2 {
  1033  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  1034  			}
  1035  			var stringLen uint64
  1036  			for shift := uint(0); ; shift += 7 {
  1037  				if shift >= 64 {
  1038  					return ErrIntOverflowProposal
  1039  				}
  1040  				if iNdEx >= l {
  1041  					return io.ErrUnexpectedEOF
  1042  				}
  1043  				b := dAtA[iNdEx]
  1044  				iNdEx++
  1045  				stringLen |= uint64(b&0x7F) << shift
  1046  				if b < 0x80 {
  1047  					break
  1048  				}
  1049  			}
  1050  			intStringLen := int(stringLen)
  1051  			if intStringLen < 0 {
  1052  				return ErrInvalidLengthProposal
  1053  			}
  1054  			postIndex := iNdEx + intStringLen
  1055  			if postIndex < 0 {
  1056  				return ErrInvalidLengthProposal
  1057  			}
  1058  			if postIndex > l {
  1059  				return io.ErrUnexpectedEOF
  1060  			}
  1061  			m.Description = string(dAtA[iNdEx:postIndex])
  1062  			iNdEx = postIndex
  1063  		case 3:
  1064  			if wireType != 2 {
  1065  				return fmt.Errorf("proto: wrong wireType = %d for field ContractRegistrationRequests", wireType)
  1066  			}
  1067  			var msglen int
  1068  			for shift := uint(0); ; shift += 7 {
  1069  				if shift >= 64 {
  1070  					return ErrIntOverflowProposal
  1071  				}
  1072  				if iNdEx >= l {
  1073  					return io.ErrUnexpectedEOF
  1074  				}
  1075  				b := dAtA[iNdEx]
  1076  				iNdEx++
  1077  				msglen |= int(b&0x7F) << shift
  1078  				if b < 0x80 {
  1079  					break
  1080  				}
  1081  			}
  1082  			if msglen < 0 {
  1083  				return ErrInvalidLengthProposal
  1084  			}
  1085  			postIndex := iNdEx + msglen
  1086  			if postIndex < 0 {
  1087  				return ErrInvalidLengthProposal
  1088  			}
  1089  			if postIndex > l {
  1090  				return io.ErrUnexpectedEOF
  1091  			}
  1092  			m.ContractRegistrationRequests = append(m.ContractRegistrationRequests, ContractRegistrationRequest{})
  1093  			if err := m.ContractRegistrationRequests[len(m.ContractRegistrationRequests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1094  				return err
  1095  			}
  1096  			iNdEx = postIndex
  1097  		default:
  1098  			iNdEx = preIndex
  1099  			skippy, err := skipProposal(dAtA[iNdEx:])
  1100  			if err != nil {
  1101  				return err
  1102  			}
  1103  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1104  				return ErrInvalidLengthProposal
  1105  			}
  1106  			if (iNdEx + skippy) > l {
  1107  				return io.ErrUnexpectedEOF
  1108  			}
  1109  			iNdEx += skippy
  1110  		}
  1111  	}
  1112  
  1113  	if iNdEx > l {
  1114  		return io.ErrUnexpectedEOF
  1115  	}
  1116  	return nil
  1117  }
  1118  func (m *BatchContractDeregistrationProposal) Unmarshal(dAtA []byte) error {
  1119  	l := len(dAtA)
  1120  	iNdEx := 0
  1121  	for iNdEx < l {
  1122  		preIndex := iNdEx
  1123  		var wire uint64
  1124  		for shift := uint(0); ; shift += 7 {
  1125  			if shift >= 64 {
  1126  				return ErrIntOverflowProposal
  1127  			}
  1128  			if iNdEx >= l {
  1129  				return io.ErrUnexpectedEOF
  1130  			}
  1131  			b := dAtA[iNdEx]
  1132  			iNdEx++
  1133  			wire |= uint64(b&0x7F) << shift
  1134  			if b < 0x80 {
  1135  				break
  1136  			}
  1137  		}
  1138  		fieldNum := int32(wire >> 3)
  1139  		wireType := int(wire & 0x7)
  1140  		if wireType == 4 {
  1141  			return fmt.Errorf("proto: BatchContractDeregistrationProposal: wiretype end group for non-group")
  1142  		}
  1143  		if fieldNum <= 0 {
  1144  			return fmt.Errorf("proto: BatchContractDeregistrationProposal: illegal tag %d (wire type %d)", fieldNum, wire)
  1145  		}
  1146  		switch fieldNum {
  1147  		case 1:
  1148  			if wireType != 2 {
  1149  				return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  1150  			}
  1151  			var stringLen uint64
  1152  			for shift := uint(0); ; shift += 7 {
  1153  				if shift >= 64 {
  1154  					return ErrIntOverflowProposal
  1155  				}
  1156  				if iNdEx >= l {
  1157  					return io.ErrUnexpectedEOF
  1158  				}
  1159  				b := dAtA[iNdEx]
  1160  				iNdEx++
  1161  				stringLen |= uint64(b&0x7F) << shift
  1162  				if b < 0x80 {
  1163  					break
  1164  				}
  1165  			}
  1166  			intStringLen := int(stringLen)
  1167  			if intStringLen < 0 {
  1168  				return ErrInvalidLengthProposal
  1169  			}
  1170  			postIndex := iNdEx + intStringLen
  1171  			if postIndex < 0 {
  1172  				return ErrInvalidLengthProposal
  1173  			}
  1174  			if postIndex > l {
  1175  				return io.ErrUnexpectedEOF
  1176  			}
  1177  			m.Title = string(dAtA[iNdEx:postIndex])
  1178  			iNdEx = postIndex
  1179  		case 2:
  1180  			if wireType != 2 {
  1181  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  1182  			}
  1183  			var stringLen uint64
  1184  			for shift := uint(0); ; shift += 7 {
  1185  				if shift >= 64 {
  1186  					return ErrIntOverflowProposal
  1187  				}
  1188  				if iNdEx >= l {
  1189  					return io.ErrUnexpectedEOF
  1190  				}
  1191  				b := dAtA[iNdEx]
  1192  				iNdEx++
  1193  				stringLen |= uint64(b&0x7F) << shift
  1194  				if b < 0x80 {
  1195  					break
  1196  				}
  1197  			}
  1198  			intStringLen := int(stringLen)
  1199  			if intStringLen < 0 {
  1200  				return ErrInvalidLengthProposal
  1201  			}
  1202  			postIndex := iNdEx + intStringLen
  1203  			if postIndex < 0 {
  1204  				return ErrInvalidLengthProposal
  1205  			}
  1206  			if postIndex > l {
  1207  				return io.ErrUnexpectedEOF
  1208  			}
  1209  			m.Description = string(dAtA[iNdEx:postIndex])
  1210  			iNdEx = postIndex
  1211  		case 3:
  1212  			if wireType != 2 {
  1213  				return fmt.Errorf("proto: wrong wireType = %d for field Contracts", wireType)
  1214  			}
  1215  			var stringLen uint64
  1216  			for shift := uint(0); ; shift += 7 {
  1217  				if shift >= 64 {
  1218  					return ErrIntOverflowProposal
  1219  				}
  1220  				if iNdEx >= l {
  1221  					return io.ErrUnexpectedEOF
  1222  				}
  1223  				b := dAtA[iNdEx]
  1224  				iNdEx++
  1225  				stringLen |= uint64(b&0x7F) << shift
  1226  				if b < 0x80 {
  1227  					break
  1228  				}
  1229  			}
  1230  			intStringLen := int(stringLen)
  1231  			if intStringLen < 0 {
  1232  				return ErrInvalidLengthProposal
  1233  			}
  1234  			postIndex := iNdEx + intStringLen
  1235  			if postIndex < 0 {
  1236  				return ErrInvalidLengthProposal
  1237  			}
  1238  			if postIndex > l {
  1239  				return io.ErrUnexpectedEOF
  1240  			}
  1241  			m.Contracts = append(m.Contracts, string(dAtA[iNdEx:postIndex]))
  1242  			iNdEx = postIndex
  1243  		default:
  1244  			iNdEx = preIndex
  1245  			skippy, err := skipProposal(dAtA[iNdEx:])
  1246  			if err != nil {
  1247  				return err
  1248  			}
  1249  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1250  				return ErrInvalidLengthProposal
  1251  			}
  1252  			if (iNdEx + skippy) > l {
  1253  				return io.ErrUnexpectedEOF
  1254  			}
  1255  			iNdEx += skippy
  1256  		}
  1257  	}
  1258  
  1259  	if iNdEx > l {
  1260  		return io.ErrUnexpectedEOF
  1261  	}
  1262  	return nil
  1263  }
  1264  func (m *ContractRegistrationRequest) Unmarshal(dAtA []byte) error {
  1265  	l := len(dAtA)
  1266  	iNdEx := 0
  1267  	for iNdEx < l {
  1268  		preIndex := iNdEx
  1269  		var wire uint64
  1270  		for shift := uint(0); ; shift += 7 {
  1271  			if shift >= 64 {
  1272  				return ErrIntOverflowProposal
  1273  			}
  1274  			if iNdEx >= l {
  1275  				return io.ErrUnexpectedEOF
  1276  			}
  1277  			b := dAtA[iNdEx]
  1278  			iNdEx++
  1279  			wire |= uint64(b&0x7F) << shift
  1280  			if b < 0x80 {
  1281  				break
  1282  			}
  1283  		}
  1284  		fieldNum := int32(wire >> 3)
  1285  		wireType := int(wire & 0x7)
  1286  		if wireType == 4 {
  1287  			return fmt.Errorf("proto: ContractRegistrationRequest: wiretype end group for non-group")
  1288  		}
  1289  		if fieldNum <= 0 {
  1290  			return fmt.Errorf("proto: ContractRegistrationRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1291  		}
  1292  		switch fieldNum {
  1293  		case 1:
  1294  			if wireType != 2 {
  1295  				return fmt.Errorf("proto: wrong wireType = %d for field ContractAddress", wireType)
  1296  			}
  1297  			var stringLen uint64
  1298  			for shift := uint(0); ; shift += 7 {
  1299  				if shift >= 64 {
  1300  					return ErrIntOverflowProposal
  1301  				}
  1302  				if iNdEx >= l {
  1303  					return io.ErrUnexpectedEOF
  1304  				}
  1305  				b := dAtA[iNdEx]
  1306  				iNdEx++
  1307  				stringLen |= uint64(b&0x7F) << shift
  1308  				if b < 0x80 {
  1309  					break
  1310  				}
  1311  			}
  1312  			intStringLen := int(stringLen)
  1313  			if intStringLen < 0 {
  1314  				return ErrInvalidLengthProposal
  1315  			}
  1316  			postIndex := iNdEx + intStringLen
  1317  			if postIndex < 0 {
  1318  				return ErrInvalidLengthProposal
  1319  			}
  1320  			if postIndex > l {
  1321  				return io.ErrUnexpectedEOF
  1322  			}
  1323  			m.ContractAddress = string(dAtA[iNdEx:postIndex])
  1324  			iNdEx = postIndex
  1325  		case 2:
  1326  			if wireType != 0 {
  1327  				return fmt.Errorf("proto: wrong wireType = %d for field GasLimit", wireType)
  1328  			}
  1329  			m.GasLimit = 0
  1330  			for shift := uint(0); ; shift += 7 {
  1331  				if shift >= 64 {
  1332  					return ErrIntOverflowProposal
  1333  				}
  1334  				if iNdEx >= l {
  1335  					return io.ErrUnexpectedEOF
  1336  				}
  1337  				b := dAtA[iNdEx]
  1338  				iNdEx++
  1339  				m.GasLimit |= uint64(b&0x7F) << shift
  1340  				if b < 0x80 {
  1341  					break
  1342  				}
  1343  			}
  1344  		case 3:
  1345  			if wireType != 0 {
  1346  				return fmt.Errorf("proto: wrong wireType = %d for field GasPrice", wireType)
  1347  			}
  1348  			m.GasPrice = 0
  1349  			for shift := uint(0); ; shift += 7 {
  1350  				if shift >= 64 {
  1351  					return ErrIntOverflowProposal
  1352  				}
  1353  				if iNdEx >= l {
  1354  					return io.ErrUnexpectedEOF
  1355  				}
  1356  				b := dAtA[iNdEx]
  1357  				iNdEx++
  1358  				m.GasPrice |= uint64(b&0x7F) << shift
  1359  				if b < 0x80 {
  1360  					break
  1361  				}
  1362  			}
  1363  		case 4:
  1364  			if wireType != 0 {
  1365  				return fmt.Errorf("proto: wrong wireType = %d for field ShouldPinContract", wireType)
  1366  			}
  1367  			var v int
  1368  			for shift := uint(0); ; shift += 7 {
  1369  				if shift >= 64 {
  1370  					return ErrIntOverflowProposal
  1371  				}
  1372  				if iNdEx >= l {
  1373  					return io.ErrUnexpectedEOF
  1374  				}
  1375  				b := dAtA[iNdEx]
  1376  				iNdEx++
  1377  				v |= int(b&0x7F) << shift
  1378  				if b < 0x80 {
  1379  					break
  1380  				}
  1381  			}
  1382  			m.ShouldPinContract = bool(v != 0)
  1383  		case 5:
  1384  			if wireType != 0 {
  1385  				return fmt.Errorf("proto: wrong wireType = %d for field IsMigrationAllowed", wireType)
  1386  			}
  1387  			var v int
  1388  			for shift := uint(0); ; shift += 7 {
  1389  				if shift >= 64 {
  1390  					return ErrIntOverflowProposal
  1391  				}
  1392  				if iNdEx >= l {
  1393  					return io.ErrUnexpectedEOF
  1394  				}
  1395  				b := dAtA[iNdEx]
  1396  				iNdEx++
  1397  				v |= int(b&0x7F) << shift
  1398  				if b < 0x80 {
  1399  					break
  1400  				}
  1401  			}
  1402  			m.IsMigrationAllowed = bool(v != 0)
  1403  		case 6:
  1404  			if wireType != 0 {
  1405  				return fmt.Errorf("proto: wrong wireType = %d for field CodeId", wireType)
  1406  			}
  1407  			m.CodeId = 0
  1408  			for shift := uint(0); ; shift += 7 {
  1409  				if shift >= 64 {
  1410  					return ErrIntOverflowProposal
  1411  				}
  1412  				if iNdEx >= l {
  1413  					return io.ErrUnexpectedEOF
  1414  				}
  1415  				b := dAtA[iNdEx]
  1416  				iNdEx++
  1417  				m.CodeId |= uint64(b&0x7F) << shift
  1418  				if b < 0x80 {
  1419  					break
  1420  				}
  1421  			}
  1422  		case 7:
  1423  			if wireType != 2 {
  1424  				return fmt.Errorf("proto: wrong wireType = %d for field AdminAddress", wireType)
  1425  			}
  1426  			var stringLen uint64
  1427  			for shift := uint(0); ; shift += 7 {
  1428  				if shift >= 64 {
  1429  					return ErrIntOverflowProposal
  1430  				}
  1431  				if iNdEx >= l {
  1432  					return io.ErrUnexpectedEOF
  1433  				}
  1434  				b := dAtA[iNdEx]
  1435  				iNdEx++
  1436  				stringLen |= uint64(b&0x7F) << shift
  1437  				if b < 0x80 {
  1438  					break
  1439  				}
  1440  			}
  1441  			intStringLen := int(stringLen)
  1442  			if intStringLen < 0 {
  1443  				return ErrInvalidLengthProposal
  1444  			}
  1445  			postIndex := iNdEx + intStringLen
  1446  			if postIndex < 0 {
  1447  				return ErrInvalidLengthProposal
  1448  			}
  1449  			if postIndex > l {
  1450  				return io.ErrUnexpectedEOF
  1451  			}
  1452  			m.AdminAddress = string(dAtA[iNdEx:postIndex])
  1453  			iNdEx = postIndex
  1454  		case 8:
  1455  			if wireType != 2 {
  1456  				return fmt.Errorf("proto: wrong wireType = %d for field GranterAddress", wireType)
  1457  			}
  1458  			var stringLen uint64
  1459  			for shift := uint(0); ; shift += 7 {
  1460  				if shift >= 64 {
  1461  					return ErrIntOverflowProposal
  1462  				}
  1463  				if iNdEx >= l {
  1464  					return io.ErrUnexpectedEOF
  1465  				}
  1466  				b := dAtA[iNdEx]
  1467  				iNdEx++
  1468  				stringLen |= uint64(b&0x7F) << shift
  1469  				if b < 0x80 {
  1470  					break
  1471  				}
  1472  			}
  1473  			intStringLen := int(stringLen)
  1474  			if intStringLen < 0 {
  1475  				return ErrInvalidLengthProposal
  1476  			}
  1477  			postIndex := iNdEx + intStringLen
  1478  			if postIndex < 0 {
  1479  				return ErrInvalidLengthProposal
  1480  			}
  1481  			if postIndex > l {
  1482  				return io.ErrUnexpectedEOF
  1483  			}
  1484  			m.GranterAddress = string(dAtA[iNdEx:postIndex])
  1485  			iNdEx = postIndex
  1486  		case 9:
  1487  			if wireType != 0 {
  1488  				return fmt.Errorf("proto: wrong wireType = %d for field FundingMode", wireType)
  1489  			}
  1490  			m.FundingMode = 0
  1491  			for shift := uint(0); ; shift += 7 {
  1492  				if shift >= 64 {
  1493  					return ErrIntOverflowProposal
  1494  				}
  1495  				if iNdEx >= l {
  1496  					return io.ErrUnexpectedEOF
  1497  				}
  1498  				b := dAtA[iNdEx]
  1499  				iNdEx++
  1500  				m.FundingMode |= FundingMode(b&0x7F) << shift
  1501  				if b < 0x80 {
  1502  					break
  1503  				}
  1504  			}
  1505  		default:
  1506  			iNdEx = preIndex
  1507  			skippy, err := skipProposal(dAtA[iNdEx:])
  1508  			if err != nil {
  1509  				return err
  1510  			}
  1511  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1512  				return ErrInvalidLengthProposal
  1513  			}
  1514  			if (iNdEx + skippy) > l {
  1515  				return io.ErrUnexpectedEOF
  1516  			}
  1517  			iNdEx += skippy
  1518  		}
  1519  	}
  1520  
  1521  	if iNdEx > l {
  1522  		return io.ErrUnexpectedEOF
  1523  	}
  1524  	return nil
  1525  }
  1526  func (m *BatchStoreCodeProposal) Unmarshal(dAtA []byte) error {
  1527  	l := len(dAtA)
  1528  	iNdEx := 0
  1529  	for iNdEx < l {
  1530  		preIndex := iNdEx
  1531  		var wire uint64
  1532  		for shift := uint(0); ; shift += 7 {
  1533  			if shift >= 64 {
  1534  				return ErrIntOverflowProposal
  1535  			}
  1536  			if iNdEx >= l {
  1537  				return io.ErrUnexpectedEOF
  1538  			}
  1539  			b := dAtA[iNdEx]
  1540  			iNdEx++
  1541  			wire |= uint64(b&0x7F) << shift
  1542  			if b < 0x80 {
  1543  				break
  1544  			}
  1545  		}
  1546  		fieldNum := int32(wire >> 3)
  1547  		wireType := int(wire & 0x7)
  1548  		if wireType == 4 {
  1549  			return fmt.Errorf("proto: BatchStoreCodeProposal: wiretype end group for non-group")
  1550  		}
  1551  		if fieldNum <= 0 {
  1552  			return fmt.Errorf("proto: BatchStoreCodeProposal: illegal tag %d (wire type %d)", fieldNum, wire)
  1553  		}
  1554  		switch fieldNum {
  1555  		case 1:
  1556  			if wireType != 2 {
  1557  				return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  1558  			}
  1559  			var stringLen uint64
  1560  			for shift := uint(0); ; shift += 7 {
  1561  				if shift >= 64 {
  1562  					return ErrIntOverflowProposal
  1563  				}
  1564  				if iNdEx >= l {
  1565  					return io.ErrUnexpectedEOF
  1566  				}
  1567  				b := dAtA[iNdEx]
  1568  				iNdEx++
  1569  				stringLen |= uint64(b&0x7F) << shift
  1570  				if b < 0x80 {
  1571  					break
  1572  				}
  1573  			}
  1574  			intStringLen := int(stringLen)
  1575  			if intStringLen < 0 {
  1576  				return ErrInvalidLengthProposal
  1577  			}
  1578  			postIndex := iNdEx + intStringLen
  1579  			if postIndex < 0 {
  1580  				return ErrInvalidLengthProposal
  1581  			}
  1582  			if postIndex > l {
  1583  				return io.ErrUnexpectedEOF
  1584  			}
  1585  			m.Title = string(dAtA[iNdEx:postIndex])
  1586  			iNdEx = postIndex
  1587  		case 2:
  1588  			if wireType != 2 {
  1589  				return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  1590  			}
  1591  			var stringLen uint64
  1592  			for shift := uint(0); ; shift += 7 {
  1593  				if shift >= 64 {
  1594  					return ErrIntOverflowProposal
  1595  				}
  1596  				if iNdEx >= l {
  1597  					return io.ErrUnexpectedEOF
  1598  				}
  1599  				b := dAtA[iNdEx]
  1600  				iNdEx++
  1601  				stringLen |= uint64(b&0x7F) << shift
  1602  				if b < 0x80 {
  1603  					break
  1604  				}
  1605  			}
  1606  			intStringLen := int(stringLen)
  1607  			if intStringLen < 0 {
  1608  				return ErrInvalidLengthProposal
  1609  			}
  1610  			postIndex := iNdEx + intStringLen
  1611  			if postIndex < 0 {
  1612  				return ErrInvalidLengthProposal
  1613  			}
  1614  			if postIndex > l {
  1615  				return io.ErrUnexpectedEOF
  1616  			}
  1617  			m.Description = string(dAtA[iNdEx:postIndex])
  1618  			iNdEx = postIndex
  1619  		case 3:
  1620  			if wireType != 2 {
  1621  				return fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType)
  1622  			}
  1623  			var msglen int
  1624  			for shift := uint(0); ; shift += 7 {
  1625  				if shift >= 64 {
  1626  					return ErrIntOverflowProposal
  1627  				}
  1628  				if iNdEx >= l {
  1629  					return io.ErrUnexpectedEOF
  1630  				}
  1631  				b := dAtA[iNdEx]
  1632  				iNdEx++
  1633  				msglen |= int(b&0x7F) << shift
  1634  				if b < 0x80 {
  1635  					break
  1636  				}
  1637  			}
  1638  			if msglen < 0 {
  1639  				return ErrInvalidLengthProposal
  1640  			}
  1641  			postIndex := iNdEx + msglen
  1642  			if postIndex < 0 {
  1643  				return ErrInvalidLengthProposal
  1644  			}
  1645  			if postIndex > l {
  1646  				return io.ErrUnexpectedEOF
  1647  			}
  1648  			m.Proposals = append(m.Proposals, types.StoreCodeProposal{})
  1649  			if err := m.Proposals[len(m.Proposals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1650  				return err
  1651  			}
  1652  			iNdEx = postIndex
  1653  		default:
  1654  			iNdEx = preIndex
  1655  			skippy, err := skipProposal(dAtA[iNdEx:])
  1656  			if err != nil {
  1657  				return err
  1658  			}
  1659  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1660  				return ErrInvalidLengthProposal
  1661  			}
  1662  			if (iNdEx + skippy) > l {
  1663  				return io.ErrUnexpectedEOF
  1664  			}
  1665  			iNdEx += skippy
  1666  		}
  1667  	}
  1668  
  1669  	if iNdEx > l {
  1670  		return io.ErrUnexpectedEOF
  1671  	}
  1672  	return nil
  1673  }
  1674  func skipProposal(dAtA []byte) (n int, err error) {
  1675  	l := len(dAtA)
  1676  	iNdEx := 0
  1677  	depth := 0
  1678  	for iNdEx < l {
  1679  		var wire uint64
  1680  		for shift := uint(0); ; shift += 7 {
  1681  			if shift >= 64 {
  1682  				return 0, ErrIntOverflowProposal
  1683  			}
  1684  			if iNdEx >= l {
  1685  				return 0, io.ErrUnexpectedEOF
  1686  			}
  1687  			b := dAtA[iNdEx]
  1688  			iNdEx++
  1689  			wire |= (uint64(b) & 0x7F) << shift
  1690  			if b < 0x80 {
  1691  				break
  1692  			}
  1693  		}
  1694  		wireType := int(wire & 0x7)
  1695  		switch wireType {
  1696  		case 0:
  1697  			for shift := uint(0); ; shift += 7 {
  1698  				if shift >= 64 {
  1699  					return 0, ErrIntOverflowProposal
  1700  				}
  1701  				if iNdEx >= l {
  1702  					return 0, io.ErrUnexpectedEOF
  1703  				}
  1704  				iNdEx++
  1705  				if dAtA[iNdEx-1] < 0x80 {
  1706  					break
  1707  				}
  1708  			}
  1709  		case 1:
  1710  			iNdEx += 8
  1711  		case 2:
  1712  			var length int
  1713  			for shift := uint(0); ; shift += 7 {
  1714  				if shift >= 64 {
  1715  					return 0, ErrIntOverflowProposal
  1716  				}
  1717  				if iNdEx >= l {
  1718  					return 0, io.ErrUnexpectedEOF
  1719  				}
  1720  				b := dAtA[iNdEx]
  1721  				iNdEx++
  1722  				length |= (int(b) & 0x7F) << shift
  1723  				if b < 0x80 {
  1724  					break
  1725  				}
  1726  			}
  1727  			if length < 0 {
  1728  				return 0, ErrInvalidLengthProposal
  1729  			}
  1730  			iNdEx += length
  1731  		case 3:
  1732  			depth++
  1733  		case 4:
  1734  			if depth == 0 {
  1735  				return 0, ErrUnexpectedEndOfGroupProposal
  1736  			}
  1737  			depth--
  1738  		case 5:
  1739  			iNdEx += 4
  1740  		default:
  1741  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1742  		}
  1743  		if iNdEx < 0 {
  1744  			return 0, ErrInvalidLengthProposal
  1745  		}
  1746  		if depth == 0 {
  1747  			return iNdEx, nil
  1748  		}
  1749  	}
  1750  	return 0, io.ErrUnexpectedEOF
  1751  }
  1752  
  1753  var (
  1754  	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
  1755  	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
  1756  	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
  1757  )