diff --git a/proto/haqq/dao/module/v1/module.proto b/proto/haqq/ucdao/module/v1/module.proto similarity index 88% rename from proto/haqq/dao/module/v1/module.proto rename to proto/haqq/ucdao/module/v1/module.proto index 6fac8e5b9..fa2a56da4 100644 --- a/proto/haqq/dao/module/v1/module.proto +++ b/proto/haqq/ucdao/module/v1/module.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package haqq.dao.module.v1; +package haqq.ucdao.module.v1; import "cosmos/app/v1alpha1/module.proto"; @@ -14,6 +14,6 @@ message Module { // Defaults to 5000 if not explicitly set. uint64 max_metadata_len = 1; - // authority defines the custom module authority. If not set, defaults to the dao module. + // authority defines the custom module authority. If not set, defaults to the ucdao module. string authority = 2; } \ No newline at end of file diff --git a/proto/haqq/dao/v1/genesis.proto b/proto/haqq/ucdao/v1/genesis.proto similarity index 83% rename from proto/haqq/dao/v1/genesis.proto rename to proto/haqq/ucdao/v1/genesis.proto index e9810f116..f5976864b 100644 --- a/proto/haqq/dao/v1/genesis.proto +++ b/proto/haqq/ucdao/v1/genesis.proto @@ -1,12 +1,12 @@ syntax = "proto3"; -package haqq.dao.v1; +package haqq.ucdao.v1; import "cosmos/base/v1beta1/coin.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "amino/amino.proto"; -import "haqq/dao/v1/dao.proto"; +import "haqq/ucdao/v1/ucdao.proto"; option go_package = "github.com/haqq-network/haqq/x/ucdao/types"; @@ -15,10 +15,10 @@ message GenesisState { // params defines all the parameters of the module. Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - // balances is an array containing the balances of all the dao members' accounts. + // balances is an array containing the balances of all the ucdao members' accounts. repeated Balance balances = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - // total_balance represents the total balance of the dao module. If it is left empty, then supply will be calculated based on the provided + // total_balance represents the total balance of the ucdao module. If it is left empty, then supply will be calculated based on the provided // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. repeated cosmos.base.v1beta1.Coin total_balance = 3 [ (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", diff --git a/proto/haqq/dao/v1/query.proto b/proto/haqq/ucdao/v1/query.proto similarity index 87% rename from proto/haqq/dao/v1/query.proto rename to proto/haqq/ucdao/v1/query.proto index b03535739..fd32096c1 100644 --- a/proto/haqq/dao/v1/query.proto +++ b/proto/haqq/ucdao/v1/query.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package haqq.dao.v1; +package haqq.ucdao.v1; import "cosmos/base/query/v1beta1/pagination.proto"; import "gogoproto/gogo.proto"; @@ -9,16 +9,16 @@ import "cosmos/base/v1beta1/coin.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/query/v1/query.proto"; import "amino/amino.proto"; -import "haqq/dao/v1/dao.proto"; +import "haqq/ucdao/v1/ucdao.proto"; option go_package = "github.com/haqq-network/haqq/x/ucdao/types"; -// Query defines the gRPC querier service for dao module +// Query defines the gRPC querier service for ucdao module service Query { // Balance queries the balance of a single coin for a single account. rpc Balance(QueryBalanceRequest) returns (QueryBalanceResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/haqq/dao/v1/balances/{address}/by_denom"; + option (google.api.http).get = "/haqq/ucdao/v1/balances/{address}/by_denom"; } // AllBalances queries the balance of all coins for a single account. @@ -27,7 +27,7 @@ service Query { // gas if the pagination field is incorrectly set. rpc AllBalances(QueryAllBalancesRequest) returns (QueryAllBalancesResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/haqq/dao/v1/balances/{address}"; + option (google.api.http).get = "/haqq/ucdao/v1/balances/{address}"; } // TotalBalance queries the total balance of all coins locked in the module. @@ -36,13 +36,13 @@ service Query { // gas if the pagination field is incorrectly set. rpc TotalBalance(QueryTotalBalanceRequest) returns (QueryTotalBalanceResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/haqq/dao/v1/total_balance"; + option (google.api.http).get = "/haqq/ucdao/v1/total_balance"; } - // Params queries the parameters of x/dao module. + // Params queries the parameters of x/ucdao module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/haqq/dao/v1/params"; + option (google.api.http).get = "/haqq/ucdao/v1/params"; } } @@ -118,10 +118,10 @@ message QueryTotalBalanceResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryParamsRequest defines the request type for querying x/dao parameters. +// QueryParamsRequest defines the request type for querying x/ucdao parameters. message QueryParamsRequest {} -// QueryParamsResponse defines the response type for querying x/dao parameters. +// QueryParamsResponse defines the response type for querying x/ucdao parameters. message QueryParamsResponse { Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/proto/haqq/dao/v1/tx.proto b/proto/haqq/ucdao/v1/tx.proto similarity index 98% rename from proto/haqq/dao/v1/tx.proto rename to proto/haqq/ucdao/v1/tx.proto index ef3cab0f8..026a594dc 100644 --- a/proto/haqq/dao/v1/tx.proto +++ b/proto/haqq/ucdao/v1/tx.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package haqq.dao.v1; +package haqq.ucdao.v1; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; diff --git a/proto/haqq/dao/v1/dao.proto b/proto/haqq/ucdao/v1/ucdao.proto similarity index 98% rename from proto/haqq/dao/v1/dao.proto rename to proto/haqq/ucdao/v1/ucdao.proto index ce42f6b77..d57f25e14 100644 --- a/proto/haqq/dao/v1/dao.proto +++ b/proto/haqq/ucdao/v1/ucdao.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package haqq.dao.v1; +package haqq.ucdao.v1; import "gogoproto/gogo.proto"; import "amino/amino.proto"; diff --git a/x/ucdao/types/codec.go b/x/ucdao/types/codec.go index c89ba9c0e..b4779ce4a 100644 --- a/x/ucdao/types/codec.go +++ b/x/ucdao/types/codec.go @@ -19,6 +19,7 @@ var ( // RegisterLegacyAminoCodec registers all the necessary types and interfaces for the dao module. func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { legacy.RegisterAminoMsg(cdc, &MsgFund{}, "haqq/ucdao/MsgFund") + legacy.RegisterAminoMsg(cdc, &MsgTransferOwnership{}, "haqq/ucdao/MsgTransferOwnership") cdc.RegisterConcrete(Params{}, "haqq/x/ucdao/Params", nil) } @@ -28,6 +29,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { registry.RegisterImplementations( (*sdk.Msg)(nil), &MsgFund{}, + &MsgTransferOwnership{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/ucdao/types/genesis.pb.go b/x/ucdao/types/genesis.pb.go index 472a7be9e..3995f0b2d 100644 --- a/x/ucdao/types/genesis.pb.go +++ b/x/ucdao/types/genesis.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: haqq/dao/v1/genesis.proto +// source: haqq/ucdao/v1/genesis.proto package types @@ -31,9 +31,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - // balances is an array containing the balances of all the dao members' accounts. + // balances is an array containing the balances of all the ucdao members' accounts. Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"` - // total_balance represents the total balance of the dao module. If it is left empty, then supply will be calculated based on the provided + // total_balance represents the total balance of the ucdao module. If it is left empty, then supply will be calculated based on the provided // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. TotalBalance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=total_balance,json=totalBalance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_balance"` } @@ -42,7 +42,7 @@ func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_11e6573181b615fb, []int{0} + return fileDescriptor_ddee5aa9272480d6, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -105,7 +105,7 @@ func (m *Balance) Reset() { *m = Balance{} } func (m *Balance) String() string { return proto.CompactTextString(m) } func (*Balance) ProtoMessage() {} func (*Balance) Descriptor() ([]byte, []int) { - return fileDescriptor_11e6573181b615fb, []int{1} + return fileDescriptor_ddee5aa9272480d6, []int{1} } func (m *Balance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -135,40 +135,40 @@ func (m *Balance) XXX_DiscardUnknown() { var xxx_messageInfo_Balance proto.InternalMessageInfo func init() { - proto.RegisterType((*GenesisState)(nil), "haqq.dao.v1.GenesisState") - proto.RegisterType((*Balance)(nil), "haqq.dao.v1.Balance") + proto.RegisterType((*GenesisState)(nil), "haqq.ucdao.v1.GenesisState") + proto.RegisterType((*Balance)(nil), "haqq.ucdao.v1.Balance") } -func init() { proto.RegisterFile("haqq/dao/v1/genesis.proto", fileDescriptor_11e6573181b615fb) } +func init() { proto.RegisterFile("haqq/ucdao/v1/genesis.proto", fileDescriptor_ddee5aa9272480d6) } -var fileDescriptor_11e6573181b615fb = []byte{ - // 404 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x51, 0xbd, 0x6e, 0xdb, 0x30, - 0x10, 0x16, 0x6b, 0xd4, 0x3f, 0xb4, 0x3b, 0x54, 0x75, 0x01, 0xd9, 0x83, 0x64, 0x78, 0x32, 0x0a, - 0x98, 0x84, 0x5c, 0xb4, 0x43, 0x3b, 0x55, 0x1d, 0xba, 0x16, 0xf6, 0xd6, 0xc5, 0xa0, 0x24, 0x56, - 0x16, 0x6c, 0x89, 0xb6, 0x48, 0xbb, 0xcd, 0x1b, 0x64, 0xcc, 0x23, 0x78, 0x0c, 0xb2, 0x24, 0x43, - 0x1e, 0xc2, 0xa3, 0x91, 0x29, 0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17, 0x83, 0xf4, 0x62, 0xd0, - 0x4f, 0x16, 0xa7, 0xde, 0x97, 0x5c, 0xe6, 0xec, 0xd6, 0xe9, 0x45, 0xb1, 0x98, 0x2c, 0x7d, 0x14, - 0xb0, 0x44, 0xaf, 0x40, 0xff, 0xfa, 0x3c, 0x9c, 0x62, 0x71, 0x34, 0xa7, 0x5c, 0x12, 0xb8, 0x6a, - 0xd9, 0x90, 0x6d, 0xb4, 0x97, 0xee, 0x39, 0x80, 0x15, 0x1d, 0x9b, 0x03, 0x58, 0x21, 0x61, 0x98, - 0x51, 0xae, 0x06, 0xaf, 0x79, 0xd6, 0xd5, 0x65, 0xbf, 0xa9, 0xfb, 0xff, 0x50, 0xc8, 0x48, 0x64, - 0x71, 0x1a, 0x0d, 0x0f, 0x85, 0xe6, 0x5f, 0xf8, 0x36, 0xbf, 0xd2, 0x61, 0xe0, 0xd7, 0xb7, 0xab, - 0xe4, 0xbf, 0x55, 0x8f, 0xd7, 0x8e, 0xf1, 0xb0, 0x76, 0x0c, 0xcf, 0xdb, 0xec, 0x6c, 0xb0, 0xdd, - 0xd9, 0xe0, 0x6e, 0x67, 0x83, 0x93, 0xbd, 0x6d, 0x6c, 0xf7, 0xb6, 0x71, 0xbd, 0xb7, 0x8d, 0x3f, - 0x45, 0xe5, 0x7c, 0xef, 0xfd, 0x94, 0x8a, 0x7f, 0x2c, 0x9b, 0xca, 0x07, 0xfe, 0x2f, 0x2f, 0x2f, - 0xf5, 0xfd, 0xb2, 0xbc, 0xfc, 0xe7, 0xa7, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x1b, 0xc6, 0xbb, - 0x9e, 0x02, 0x00, 0x00, +var fileDescriptor_ddee5aa9272480d6 = []byte{ + // 406 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xce, 0x48, 0x2c, 0x2c, + 0xd4, 0x2f, 0x4d, 0x4e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0xc9, 0x2f, 0x49, 0xcc, 0x89, + 0x87, 0x8a, 0x48, 0x30, 0x83, 0xcd, 0x90, 0xd4, 0x83, 0xfa, 0x0e, 0x14, 0x40, 0x7a, 0xd0, 0x00, + 0xd2, 0x73, 0xce, 0xcf, 0xcc, 0x73, 0x32, 0x05, 0x19, 0xb3, 0xea, 0xbe, 0xbc, 0x46, 0x7a, 0x66, + 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0x2e, 0x34, 0x28, 0xa0, 0x94, 0x6e, 0x71, 0x4a, 0xb6, + 0x7e, 0x49, 0x65, 0x41, 0x6a, 0x31, 0x58, 0x43, 0x31, 0xc4, 0x4a, 0x1e, 0xb0, 0x35, 0x50, 0xb7, + 0x28, 0xad, 0x67, 0xe4, 0x62, 0x87, 0xb2, 0x85, 0x8c, 0xb8, 0xd8, 0x13, 0x53, 0x52, 0x8a, 0x52, + 0x8b, 0x21, 0x9e, 0xe7, 0x74, 0x92, 0xb8, 0xb4, 0x45, 0x57, 0x04, 0x6a, 0xbf, 0x23, 0x44, 0x26, + 0xb8, 0xa4, 0x28, 0x33, 0x2f, 0x3d, 0x08, 0xa6, 0x50, 0x28, 0x8d, 0x8b, 0x15, 0x14, 0x5b, 0x30, + 0x2f, 0x53, 0xdf, 0xb9, 0x10, 0xe3, 0xad, 0x38, 0x3a, 0x16, 0xc8, 0x33, 0xbc, 0x58, 0x20, 0xcf, + 0xe0, 0xe4, 0x72, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, + 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x5a, 0x48, 0x26, + 0x83, 0x42, 0x5e, 0x37, 0x2f, 0xb5, 0xa4, 0x3c, 0xbf, 0x28, 0x1b, 0xcc, 0xd1, 0xaf, 0x80, 0xa6, + 0x00, 0xb0, 0x0d, 0x49, 0x6c, 0xe0, 0xf8, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0xfd, 0x68, + 0x8c, 0x79, 0xac, 0x02, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/ucdao/types/query.pb.go b/x/ucdao/types/query.pb.go index c10e0ed1a..c6ce0e782 100644 --- a/x/ucdao/types/query.pb.go +++ b/x/ucdao/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: haqq/dao/v1/query.proto +// source: haqq/ucdao/v1/query.proto package types @@ -46,7 +46,7 @@ func (m *QueryBalanceRequest) Reset() { *m = QueryBalanceRequest{} } func (m *QueryBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryBalanceRequest) ProtoMessage() {} func (*QueryBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{0} + return fileDescriptor_7deb4626bdb4308f, []int{0} } func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -85,7 +85,7 @@ func (m *QueryBalanceResponse) Reset() { *m = QueryBalanceResponse{} } func (m *QueryBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryBalanceResponse) ProtoMessage() {} func (*QueryBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{1} + return fileDescriptor_7deb4626bdb4308f, []int{1} } func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -133,7 +133,7 @@ func (m *QueryAllBalancesRequest) Reset() { *m = QueryAllBalancesRequest func (m *QueryAllBalancesRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllBalancesRequest) ProtoMessage() {} func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{2} + return fileDescriptor_7deb4626bdb4308f, []int{2} } func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -175,7 +175,7 @@ func (m *QueryAllBalancesResponse) Reset() { *m = QueryAllBalancesRespon func (m *QueryAllBalancesResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllBalancesResponse) ProtoMessage() {} func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{3} + return fileDescriptor_7deb4626bdb4308f, []int{3} } func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -231,7 +231,7 @@ func (m *QueryTotalBalanceRequest) Reset() { *m = QueryTotalBalanceReque func (m *QueryTotalBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryTotalBalanceRequest) ProtoMessage() {} func (*QueryTotalBalanceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{4} + return fileDescriptor_7deb4626bdb4308f, []int{4} } func (m *QueryTotalBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -275,7 +275,7 @@ func (m *QueryTotalBalanceResponse) Reset() { *m = QueryTotalBalanceResp func (m *QueryTotalBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryTotalBalanceResponse) ProtoMessage() {} func (*QueryTotalBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{5} + return fileDescriptor_7deb4626bdb4308f, []int{5} } func (m *QueryTotalBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -318,7 +318,7 @@ func (m *QueryTotalBalanceResponse) GetPagination() *query.PageResponse { return nil } -// QueryParamsRequest defines the request type for querying x/dao parameters. +// QueryParamsRequest defines the request type for querying x/ucdao parameters. type QueryParamsRequest struct { } @@ -326,7 +326,7 @@ func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{6} + return fileDescriptor_7deb4626bdb4308f, []int{6} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -355,7 +355,7 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo -// QueryParamsResponse defines the response type for querying x/dao parameters. +// QueryParamsResponse defines the response type for querying x/ucdao parameters. type QueryParamsResponse struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` } @@ -364,7 +364,7 @@ func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3031ac23b74ba5, []int{7} + return fileDescriptor_7deb4626bdb4308f, []int{7} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -401,64 +401,64 @@ func (m *QueryParamsResponse) GetParams() Params { } func init() { - proto.RegisterType((*QueryBalanceRequest)(nil), "haqq.dao.v1.QueryBalanceRequest") - proto.RegisterType((*QueryBalanceResponse)(nil), "haqq.dao.v1.QueryBalanceResponse") - proto.RegisterType((*QueryAllBalancesRequest)(nil), "haqq.dao.v1.QueryAllBalancesRequest") - proto.RegisterType((*QueryAllBalancesResponse)(nil), "haqq.dao.v1.QueryAllBalancesResponse") - proto.RegisterType((*QueryTotalBalanceRequest)(nil), "haqq.dao.v1.QueryTotalBalanceRequest") - proto.RegisterType((*QueryTotalBalanceResponse)(nil), "haqq.dao.v1.QueryTotalBalanceResponse") - proto.RegisterType((*QueryParamsRequest)(nil), "haqq.dao.v1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "haqq.dao.v1.QueryParamsResponse") -} - -func init() { proto.RegisterFile("haqq/dao/v1/query.proto", fileDescriptor_9b3031ac23b74ba5) } - -var fileDescriptor_9b3031ac23b74ba5 = []byte{ - // 698 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4f, 0x4f, 0x13, 0x4f, - 0x18, 0xee, 0xf0, 0xfb, 0xf1, 0x6f, 0x8a, 0x07, 0x87, 0x12, 0xca, 0x4a, 0xb6, 0xa5, 0x51, 0x20, - 0x44, 0x76, 0xd2, 0x12, 0x3c, 0x78, 0xa3, 0x26, 0x7a, 0x30, 0x26, 0x58, 0x3d, 0x79, 0x21, 0xd3, - 0x76, 0xb2, 0x6c, 0xd8, 0xdd, 0xd9, 0xee, 0x4c, 0x51, 0x62, 0xbc, 0x98, 0x68, 0x38, 0x1a, 0xfd, - 0x00, 0x72, 0x34, 0x9e, 0x3c, 0xf8, 0x21, 0x38, 0xa2, 0x5e, 0x4c, 0x4c, 0xd4, 0x80, 0x89, 0x7e, - 0x0c, 0xb3, 0x33, 0xb3, 0x76, 0xd6, 0x56, 0x7a, 0x10, 0x2f, 0xb0, 0xfb, 0xce, 0xfb, 0xbe, 0xcf, - 0xf3, 0xbc, 0xfb, 0xbc, 0x53, 0x38, 0xbb, 0x4d, 0x3a, 0x1d, 0xdc, 0x26, 0x0c, 0xef, 0x56, 0x71, - 0xa7, 0x4b, 0xe3, 0x3d, 0x27, 0x8a, 0x99, 0x60, 0x28, 0x9f, 0x1c, 0x38, 0x6d, 0xc2, 0x9c, 0xdd, - 0xaa, 0xb5, 0xd2, 0x62, 0x3c, 0x60, 0x1c, 0x37, 0x09, 0xa7, 0x2a, 0x0b, 0xef, 0x56, 0x9b, 0x54, - 0x90, 0x2a, 0x8e, 0x88, 0xeb, 0x85, 0x44, 0x78, 0x2c, 0x54, 0x85, 0x56, 0xc1, 0x65, 0x2e, 0x93, - 0x8f, 0x38, 0x79, 0xd2, 0xd1, 0x79, 0x97, 0x31, 0xd7, 0xa7, 0x98, 0x44, 0x1e, 0x26, 0x61,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x91, 0x15, 0xb4, 0x8c, 0xcd, - 0xeb, 0x25, 0x35, 0x1e, 0x7e, 0xa8, 0xd7, 0xeb, 0x11, 0x6e, 0xee, 0x6d, 0xc9, 0xfb, 0x00, 0xed, - 0x03, 0x98, 0x37, 0x36, 0x02, 0x5d, 0xec, 0x47, 0xea, 0x5f, 0x69, 0xeb, 0xd2, 0x90, 0x2c, 0xcd, - 0xe9, 0x72, 0x8f, 0xd3, 0x02, 0x2a, 0x0d, 0xe1, 0x84, 0x9e, 0x02, 0x38, 0x65, 0x5a, 0x0b, 0x0d, - 0x40, 0x19, 0xe0, 0x74, 0x6b, 0x71, 0x58, 0x9a, 0x66, 0xb3, 0xd4, 0x63, 0x33, 0x8f, 0xac, 0x0c, - 0x9b, 0x8c, 0x73, 0x51, 0x00, 0xc7, 0xd4, 0x27, 0x44, 0xa5, 0xfe, 0xd6, 0x19, 0x7f, 0x58, 0xe5, - 0x3f, 0x27, 0x68, 0xd4, 0x72, 0x0f, 0x75, 0x06, 0x4d, 0x67, 0x50, 0x95, 0x29, 0xea, 0xf5, 0xc3, - 0x63, 0x1b, 0x1c, 0x1d, 0xdb, 0xe0, 0xeb, 0xb1, 0x0d, 0x9e, 0x9d, 0xd8, 0xb9, 0xa3, 0x13, 0x3b, - 0xf7, 0xf1, 0xc4, 0xce, 0xdd, 0x33, 0x37, 0x23, 0x29, 0x5c, 0x0d, 0xa9, 0xb8, 0xcf, 0xe2, 0x1d, - 0xd5, 0xe5, 0x81, 0xec, 0x23, 0xf7, 0xa3, 0x39, 0x26, 0x7f, 0x3e, 0xd6, 0x7e, 0x06, 0x00, 0x00, - 0xff, 0xff, 0x48, 0xb5, 0xa0, 0x29, 0x48, 0x07, 0x00, 0x00, + proto.RegisterType((*QueryBalanceRequest)(nil), "haqq.ucdao.v1.QueryBalanceRequest") + proto.RegisterType((*QueryBalanceResponse)(nil), "haqq.ucdao.v1.QueryBalanceResponse") + proto.RegisterType((*QueryAllBalancesRequest)(nil), "haqq.ucdao.v1.QueryAllBalancesRequest") + proto.RegisterType((*QueryAllBalancesResponse)(nil), "haqq.ucdao.v1.QueryAllBalancesResponse") + proto.RegisterType((*QueryTotalBalanceRequest)(nil), "haqq.ucdao.v1.QueryTotalBalanceRequest") + proto.RegisterType((*QueryTotalBalanceResponse)(nil), "haqq.ucdao.v1.QueryTotalBalanceResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "haqq.ucdao.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "haqq.ucdao.v1.QueryParamsResponse") +} + +func init() { proto.RegisterFile("haqq/ucdao/v1/query.proto", fileDescriptor_7deb4626bdb4308f) } + +var fileDescriptor_7deb4626bdb4308f = []byte{ + // 699 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x4f, 0x13, 0x4f, + 0x14, 0xef, 0xf0, 0xfd, 0xf2, 0x6b, 0x80, 0x83, 0x63, 0x09, 0xed, 0x4a, 0xb6, 0xb2, 0x24, 0x80, + 0x8d, 0xec, 0xa4, 0x25, 0x46, 0xe3, 0x8d, 0x6a, 0xf4, 0xe0, 0x41, 0xac, 0x9e, 0xbc, 0x90, 0x69, + 0x3b, 0x59, 0x36, 0x6c, 0x77, 0xda, 0xce, 0x14, 0x25, 0xc6, 0x8b, 0x27, 0x12, 0x8d, 0x31, 0xf1, + 0x0f, 0x90, 0xa3, 0xe1, 0xe4, 0xc1, 0x3f, 0x82, 0x23, 0xea, 0xc5, 0xc4, 0x44, 0x0d, 0x98, 0xe8, + 0x9f, 0x61, 0x76, 0x7e, 0xd8, 0xdd, 0xb2, 0x69, 0x0f, 0xe2, 0x05, 0x76, 0xe7, 0xbd, 0xf7, 0xf9, + 0xf1, 0xf6, 0xbd, 0x29, 0xcc, 0x6f, 0x91, 0x76, 0x1b, 0x77, 0xeb, 0x0d, 0xc2, 0xf0, 0x4e, 0x09, + 0xb7, 0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xd8, 0x99, 0x87, 0xc5, 0xd8, 0xce, 0x44, 0xa5, 0xab, 0x21, 0x15, 0x8f, 0x58, 0x67, + 0x5b, 0xe1, 0x3c, 0xd6, 0x48, 0x72, 0x77, 0x6a, 0x63, 0xf2, 0xa7, 0x65, 0xed, 0x77, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xd8, 0xcc, 0x9e, 0xf1, 0x6c, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -485,7 +485,7 @@ type QueryClient interface { // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. TotalBalance(ctx context.Context, in *QueryTotalBalanceRequest, opts ...grpc.CallOption) (*QueryTotalBalanceResponse, error) - // Params queries the parameters of x/dao module. + // Params queries the parameters of x/ucdao module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) } @@ -499,7 +499,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) { out := new(QueryBalanceResponse) - err := c.cc.Invoke(ctx, "/haqq.dao.v1.Query/Balance", in, out, opts...) + err := c.cc.Invoke(ctx, "/haqq.ucdao.v1.Query/Balance", in, out, opts...) if err != nil { return nil, err } @@ -508,7 +508,7 @@ func (c *queryClient) Balance(ctx context.Context, in *QueryBalanceRequest, opts func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) { out := new(QueryAllBalancesResponse) - err := c.cc.Invoke(ctx, "/haqq.dao.v1.Query/AllBalances", in, out, opts...) + err := c.cc.Invoke(ctx, "/haqq.ucdao.v1.Query/AllBalances", in, out, opts...) if err != nil { return nil, err } @@ -517,7 +517,7 @@ func (c *queryClient) AllBalances(ctx context.Context, in *QueryAllBalancesReque func (c *queryClient) TotalBalance(ctx context.Context, in *QueryTotalBalanceRequest, opts ...grpc.CallOption) (*QueryTotalBalanceResponse, error) { out := new(QueryTotalBalanceResponse) - err := c.cc.Invoke(ctx, "/haqq.dao.v1.Query/TotalBalance", in, out, opts...) + err := c.cc.Invoke(ctx, "/haqq.ucdao.v1.Query/TotalBalance", in, out, opts...) if err != nil { return nil, err } @@ -526,7 +526,7 @@ func (c *queryClient) TotalBalance(ctx context.Context, in *QueryTotalBalanceReq func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/haqq.dao.v1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/haqq.ucdao.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -547,7 +547,7 @@ type QueryServer interface { // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. TotalBalance(context.Context, *QueryTotalBalanceRequest) (*QueryTotalBalanceResponse, error) - // Params queries the parameters of x/dao module. + // Params queries the parameters of x/ucdao module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) } @@ -582,7 +582,7 @@ func _Query_Balance_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/haqq.dao.v1.Query/Balance", + FullMethod: "/haqq.ucdao.v1.Query/Balance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Balance(ctx, req.(*QueryBalanceRequest)) @@ -600,7 +600,7 @@ func _Query_AllBalances_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/haqq.dao.v1.Query/AllBalances", + FullMethod: "/haqq.ucdao.v1.Query/AllBalances", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).AllBalances(ctx, req.(*QueryAllBalancesRequest)) @@ -618,7 +618,7 @@ func _Query_TotalBalance_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/haqq.dao.v1.Query/TotalBalance", + FullMethod: "/haqq.ucdao.v1.Query/TotalBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TotalBalance(ctx, req.(*QueryTotalBalanceRequest)) @@ -636,7 +636,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/haqq.dao.v1.Query/Params", + FullMethod: "/haqq.ucdao.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -645,7 +645,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "haqq.dao.v1.Query", + ServiceName: "haqq.ucdao.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -666,7 +666,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "haqq/dao/v1/query.proto", + Metadata: "haqq/ucdao/v1/query.proto", } func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/ucdao/types/query.pb.gw.go b/x/ucdao/types/query.pb.gw.go index e3e0cfcd4..e45a53ab6 100644 --- a/x/ucdao/types/query.pb.gw.go +++ b/x/ucdao/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: haqq/dao/v1/query.proto +// source: haqq/ucdao/v1/query.proto /* Package types is a reverse proxy. @@ -454,13 +454,13 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Balance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"haqq", "dao", "v1", "balances", "address", "by_denom"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Balance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"haqq", "ucdao", "v1", "balances", "address", "by_denom"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AllBalances_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"haqq", "dao", "v1", "balances", "address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_AllBalances_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"haqq", "ucdao", "v1", "balances", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TotalBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"haqq", "dao", "v1", "total_balance"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TotalBalance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"haqq", "ucdao", "v1", "total_balance"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"haqq", "dao", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"haqq", "ucdao", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( diff --git a/x/ucdao/types/tx.pb.go b/x/ucdao/types/tx.pb.go index 6cd643445..377ab84bf 100644 --- a/x/ucdao/types/tx.pb.go +++ b/x/ucdao/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: haqq/dao/v1/tx.proto +// source: haqq/ucdao/v1/tx.proto package types @@ -43,7 +43,7 @@ func (m *MsgFund) Reset() { *m = MsgFund{} } func (m *MsgFund) String() string { return proto.CompactTextString(m) } func (*MsgFund) ProtoMessage() {} func (*MsgFund) Descriptor() ([]byte, []int) { - return fileDescriptor_32cf174189eaa32b, []int{0} + return fileDescriptor_0b4b97a33ac1ff40, []int{0} } func (m *MsgFund) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -80,7 +80,7 @@ func (m *MsgFundResponse) Reset() { *m = MsgFundResponse{} } func (m *MsgFundResponse) String() string { return proto.CompactTextString(m) } func (*MsgFundResponse) ProtoMessage() {} func (*MsgFundResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_32cf174189eaa32b, []int{1} + return fileDescriptor_0b4b97a33ac1ff40, []int{1} } func (m *MsgFundResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,7 +121,7 @@ func (m *MsgTransferOwnership) Reset() { *m = MsgTransferOwnership{} } func (m *MsgTransferOwnership) String() string { return proto.CompactTextString(m) } func (*MsgTransferOwnership) ProtoMessage() {} func (*MsgTransferOwnership) Descriptor() ([]byte, []int) { - return fileDescriptor_32cf174189eaa32b, []int{2} + return fileDescriptor_0b4b97a33ac1ff40, []int{2} } func (m *MsgTransferOwnership) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -158,7 +158,7 @@ func (m *MsgTransferOwnershipResponse) Reset() { *m = MsgTransferOwnersh func (m *MsgTransferOwnershipResponse) String() string { return proto.CompactTextString(m) } func (*MsgTransferOwnershipResponse) ProtoMessage() {} func (*MsgTransferOwnershipResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_32cf174189eaa32b, []int{3} + return fileDescriptor_0b4b97a33ac1ff40, []int{3} } func (m *MsgTransferOwnershipResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -188,47 +188,47 @@ func (m *MsgTransferOwnershipResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgTransferOwnershipResponse proto.InternalMessageInfo func init() { - proto.RegisterType((*MsgFund)(nil), "haqq.dao.v1.MsgFund") - proto.RegisterType((*MsgFundResponse)(nil), "haqq.dao.v1.MsgFundResponse") - proto.RegisterType((*MsgTransferOwnership)(nil), "haqq.dao.v1.MsgTransferOwnership") - proto.RegisterType((*MsgTransferOwnershipResponse)(nil), "haqq.dao.v1.MsgTransferOwnershipResponse") -} - -func init() { proto.RegisterFile("haqq/dao/v1/tx.proto", fileDescriptor_32cf174189eaa32b) } - -var fileDescriptor_32cf174189eaa32b = []byte{ - // 481 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xb1, 0x6e, 0x13, 0x41, - 0x10, 0xbd, 0x25, 0x24, 0xe0, 0x4d, 0x01, 0x3e, 0x59, 0xc2, 0x39, 0x85, 0x73, 0x70, 0x65, 0x8c, - 0xbc, 0x2b, 0x07, 0x42, 0xe1, 0x0e, 0x23, 0xd1, 0x59, 0x48, 0x86, 0x8a, 0x26, 0x3a, 0xfb, 0x96, - 0xf5, 0x29, 0xba, 0x9d, 0xcb, 0xcd, 0xda, 0x0e, 0x1d, 0xa2, 0x42, 0x54, 0x7c, 0x42, 0x4a, 0x04, - 0x8d, 0x25, 0xf8, 0x88, 0x94, 0x11, 0x55, 0x2a, 0x40, 0x76, 0x61, 0x3e, 0x03, 0xdd, 0xde, 0x9a, - 0x58, 0x71, 0x24, 0x37, 0xf6, 0xce, 0x9b, 0x99, 0x37, 0x6f, 0xe6, 0x1e, 0x2d, 0x0d, 0x82, 0xe3, - 0x63, 0x1e, 0x06, 0xc0, 0x47, 0x4d, 0xae, 0x4f, 0x58, 0x92, 0x82, 0x06, 0x77, 0x3b, 0x43, 0x59, - 0x18, 0x00, 0x1b, 0x35, 0xbd, 0x92, 0x04, 0x09, 0x06, 0xe7, 0xd9, 0x2b, 0x2f, 0xf1, 0xfc, 0x3e, - 0x60, 0x0c, 0xc8,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0xd5, 0xef, 0x84, 0x96, 0x3a, 0x28, 0x5f, 0xa7, 0x81, - 0xc2, 0xb7, 0x22, 0x7d, 0x39, 0x56, 0x22, 0xc5, 0x41, 0x94, 0xb8, 0x8c, 0x6e, 0x42, 0x16, 0x94, - 0xc9, 0x1a, 0x31, 0x79, 0x99, 0x7b, 0x40, 0x0b, 0x4a, 0x8c, 0x0f, 0xf3, 0x9e, 0x75, 0x0b, 0xdc, - 0x56, 0x62, 0x6c, 0x46, 0xb5, 0x9e, 0x2c, 0xeb, 0xcf, 0xa9, 0x32, 0xed, 0xf7, 0x97, 0xb5, 0xaf, - 0x88, 0xab, 0xfa, 0x74, 0xf7, 0x3a, 0x7c, 0xb1, 0xd5, 0xfe, 0x37, 0x42, 0x37, 0x3a, 0x28, 0xdd, - 0x16, 0xbd, 0x69, 0xbe, 0x63, 0x89, 0x2d, 0xd9, 0x8b, 0xd9, 0x1b, 0x78, 0xbb, 0xd7, 0xa1, 0x0b, - 0x0e, 0x37, 0xa0, 0xc5, 0xd5, 0xab, 0x3c, 0xb8, 0xda, 0xb2, 0x52, 0xe2, 0x3d, 0x5c, 0x5b, 0xb2, - 0x18, 0xe1, 0x6d, 0xbe, 0xcf, 0x3c, 0xd0, 0x6e, 0x9f, 0x4d, 0x7d, 0x72, 0x3e, 0xf5, 0xc9, 0x9f, - 0xa9, 0x4f, 0x3e, 0xcf, 0x7c, 0xe7, 0x7c, 0xe6, 0x3b, 0x17, 0x33, 0xdf, 0x79, 0xb3, 0x6c, 0xa6, - 0x8c, 0xb5, 0xa1, 0x84, 0x1e, 0x43, 0x7a, 0x64, 0x02, 0x7e, 0x62, 0x0e, 0x64, 0x2c, 0xd5, 0xdb, - 0x32, 0xe6, 0x7d, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x44, 0xa1, 0xe5, 0x5b, 0x5e, 0x03, 0x00, - 0x00, + proto.RegisterType((*MsgFund)(nil), "haqq.ucdao.v1.MsgFund") + proto.RegisterType((*MsgFundResponse)(nil), "haqq.ucdao.v1.MsgFundResponse") + proto.RegisterType((*MsgTransferOwnership)(nil), "haqq.ucdao.v1.MsgTransferOwnership") + proto.RegisterType((*MsgTransferOwnershipResponse)(nil), "haqq.ucdao.v1.MsgTransferOwnershipResponse") +} + +func init() { proto.RegisterFile("haqq/ucdao/v1/tx.proto", fileDescriptor_0b4b97a33ac1ff40) } + +var fileDescriptor_0b4b97a33ac1ff40 = []byte{ + // 489 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x31, 0x6f, 0x13, 0x31, + 0x14, 0x3e, 0x53, 0x5a, 0x88, 0x11, 0x82, 0x9c, 0xa2, 0x92, 0x9e, 0xc0, 0xa9, 0xc2, 0x12, 0xa5, + 0x8a, 0xad, 0x14, 0xca, 0xd0, 0x01, 0x89, 0x80, 0xd8, 0x22, 0xa4, 0xc0, 0xc4, 0x52, 0x5d, 0x72, + 0xc6, 0x39, 0x55, 0x67, 0x5f, 0xef, 0x39, 0x49, 0xd9, 0x10, 0x13, 0x62, 0xe2, 0x27, 0x74, 0x44, + 0x4c, 0x91, 0xca, 0x8f, 0xe8, 0x58, 0x31, 0x75, 0x02, 0x94, 0x0c, 0xe1, 0x67, 0x20, 0xfb, 0x1c, + 0x35, 0x28, 0x95, 0xc2, 0x72, 0x67, 0x7f, 0xef, 0xbd, 0xef, 0x7d, 0xef, 0xdd, 0x77, 0x78, 0xb3, + 0x1f, 0x1e, 0x1d, 0xb1, 0x41, 0x2f, 0x0a, 0x15, 0x1b, 0x36, 0x99, 0x3e, 0xa6, 0x69, 0xa6, 0xb4, + 0xf2, 0x6f, 0x1b, 0x9c, 0x5a, 0x9c, 0x0e, 0x9b, 0x41, 0x49, 0x28, 0xa1, 0x6c, 0x84, 0x99, 0x53, + 0x9e, 0x14, 0x90, 0x9e, 0x82, 0x44, 0x01, 0xeb, 0x86, 0xc0, 0xd9, 0xb0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+ 0xb8, 0xd4, 0x06, 0xf1, 0x26, 0x0b, 0x25, 0xbc, 0xe3, 0xd9, 0xab, 0x91, 0xe4, 0x19, 0xf4, 0xe3, + 0xd4, 0xa7, 0x78, 0x5d, 0x99, 0x4b, 0x19, 0xad, 0x10, 0x93, 0xa7, 0xf9, 0x7b, 0xb8, 0x20, 0xf9, + 0xe8, 0x20, 0xaf, 0x59, 0x35, 0xc0, 0x4d, 0xc9, 0x47, 0xb6, 0xd5, 0xfe, 0xe3, 0x45, 0xfd, 0x39, + 0x95, 0xd1, 0xfe, 0x60, 0x51, 0xfb, 0x92, 0xb8, 0x2a, 0xc1, 0xf7, 0xaf, 0xc2, 0xe7, 0x53, 0xed, + 0x9e, 0x22, 0xbc, 0xd6, 0x06, 0xe1, 0x3f, 0xc5, 0xd7, 0xed, 0x77, 0xdc, 0xa4, 0xff, 0x18, 0x8c, + 0xba, 0x2d, 0x04, 0xe4, 0x6a, 0x7c, 0xce, 0xe3, 0x73, 0x5c, 0x5c, 0xde, 0xcc, 0xc3, 0xe5, 0xa2, + 0xa5, 0xa4, 0x60, 0xe7, 0x3f, 0x92, 0xe6, 0x6d, 0x82, 0xf5, 0x0f, 0xc6, 0x0b, 0xad, 0x17, 0x67, + 0x13, 0x82, 0xce, 0x27, 0x04, 0xfd, 0x9e, 0x10, 0xf4, 0x65, 0x4a, 0xbc, 0xf3, 0x29, 0xf1, 0x2e, + 0xa6, 0xc4, 0x7b, 0x5b, 0x5f, 0x30, 0x95, 0xe1, 0x6d, 0x48, 0xae, 0x47, 0x2a, 0x3b, 0xb4, 0x17, + 0x76, 0xec, 0xfe, 0x28, 0x6b, 0xae, 0xee, 0x86, 0xb5, 0xf1, 0xa3, 0xbf, 0x01, 0x00, 0x00, 0xff, + 0xff, 0x94, 0x3b, 0x27, 0x8f, 0x6c, 0x03, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -259,7 +259,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) Fund(ctx context.Context, in *MsgFund, opts ...grpc.CallOption) (*MsgFundResponse, error) { out := new(MsgFundResponse) - err := c.cc.Invoke(ctx, "/haqq.dao.v1.Msg/Fund", in, out, opts...) + err := c.cc.Invoke(ctx, "/haqq.ucdao.v1.Msg/Fund", in, out, opts...) if err != nil { return nil, err } @@ -268,7 +268,7 @@ func (c *msgClient) Fund(ctx context.Context, in *MsgFund, opts ...grpc.CallOpti func (c *msgClient) TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) { out := new(MsgTransferOwnershipResponse) - err := c.cc.Invoke(ctx, "/haqq.dao.v1.Msg/TransferOwnership", in, out, opts...) + err := c.cc.Invoke(ctx, "/haqq.ucdao.v1.Msg/TransferOwnership", in, out, opts...) if err != nil { return nil, err } @@ -308,7 +308,7 @@ func _Msg_Fund_Handler(srv interface{}, ctx context.Context, dec func(interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/haqq.dao.v1.Msg/Fund", + FullMethod: "/haqq.ucdao.v1.Msg/Fund", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Fund(ctx, req.(*MsgFund)) @@ -326,7 +326,7 @@ func _Msg_TransferOwnership_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/haqq.dao.v1.Msg/TransferOwnership", + FullMethod: "/haqq.ucdao.v1.Msg/TransferOwnership", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).TransferOwnership(ctx, req.(*MsgTransferOwnership)) @@ -335,7 +335,7 @@ func _Msg_TransferOwnership_Handler(srv interface{}, ctx context.Context, dec fu } var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "haqq.dao.v1.Msg", + ServiceName: "haqq.ucdao.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { @@ -348,7 +348,7 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "haqq/dao/v1/tx.proto", + Metadata: "haqq/ucdao/v1/tx.proto", } func (m *MsgFund) Marshal() (dAtA []byte, err error) { diff --git a/x/ucdao/types/dao.pb.go b/x/ucdao/types/ucdao.pb.go similarity index 73% rename from x/ucdao/types/dao.pb.go rename to x/ucdao/types/ucdao.pb.go index 2399816b3..e393c0fce 100644 --- a/x/ucdao/types/dao.pb.go +++ b/x/ucdao/types/ucdao.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: haqq/dao/v1/dao.proto +// source: haqq/ucdao/v1/ucdao.proto package types @@ -53,7 +53,7 @@ func (x CollateralValueType) String() string { } func (CollateralValueType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c994d20d8e0ea63f, []int{0} + return fileDescriptor_d93b72bfaafec2b8, []int{0} } // Params defines the parameters for the dao module. @@ -67,7 +67,7 @@ type Params struct { func (m *Params) Reset() { *m = Params{} } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_c994d20d8e0ea63f, []int{0} + return fileDescriptor_d93b72bfaafec2b8, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -114,13 +114,13 @@ type AllowedCollateral struct { // value is the allowed collateral value. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // type is the allowed collateral value type. - Type CollateralValueType `protobuf:"varint,2,opt,name=type,proto3,enum=haqq.dao.v1.CollateralValueType" json:"type,omitempty"` + Type CollateralValueType `protobuf:"varint,2,opt,name=type,proto3,enum=haqq.ucdao.v1.CollateralValueType" json:"type,omitempty"` } func (m *AllowedCollateral) Reset() { *m = AllowedCollateral{} } func (*AllowedCollateral) ProtoMessage() {} func (*AllowedCollateral) Descriptor() ([]byte, []int) { - return fileDescriptor_c994d20d8e0ea63f, []int{1} + return fileDescriptor_d93b72bfaafec2b8, []int{1} } func (m *AllowedCollateral) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -164,39 +164,39 @@ func (m *AllowedCollateral) GetType() CollateralValueType { } func init() { - proto.RegisterEnum("haqq.dao.v1.CollateralValueType", CollateralValueType_name, CollateralValueType_value) - proto.RegisterType((*Params)(nil), "haqq.dao.v1.Params") - proto.RegisterType((*AllowedCollateral)(nil), "haqq.dao.v1.AllowedCollateral") -} - -func init() { proto.RegisterFile("haqq/dao/v1/dao.proto", fileDescriptor_c994d20d8e0ea63f) } - -var fileDescriptor_c994d20d8e0ea63f = []byte{ - // 379 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0x48, 0x2c, 0x2c, - 0xd4, 0x4f, 0x49, 0xcc, 0xd7, 0x2f, 0x33, 0x04, 0x51, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, - 0xdc, 0x20, 0x61, 0x3d, 0x10, 0xbf, 0xcc, 0x50, 0x4a, 0x24, 0x3d, 0x3f, 0x3d, 0x1f, 0x2c, 0xae, - 0x0f, 0x62, 0x41, 0x94, 0x48, 0x09, 0x26, 0xe6, 0x66, 0xe6, 0xe5, 0xeb, 0x83, 0x49, 0x88, 0x90, - 0xd2, 0x14, 0x46, 0x2e, 0xb6, 0x80, 0xc4, 0xa2, 0xc4, 0xdc, 0x62, 0x21, 0x59, 0x2e, 0xae, 0xd4, - 0xbc, 0xc4, 0xa4, 0x9c, 0xd4, 0xf8, 0x94, 0xc4, 0x7c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x8e, 0x20, - 0x4e, 0x88, 0x88, 0x4b, 0x62, 0xbe, 0x90, 0x3f, 0x97, 0x70, 0x62, 0x4e, 0x4e, 0x7e, 0x79, 0x6a, - 0x4a, 0x7c, 0x72, 0x7e, 0x4e, 0x4e, 0x62, 0x49, 0x6a, 0x51, 0x62, 0x4e, 0xb1, 0x04, 0x93, 0x02, - 0xb3, 0x06, 0xb7, 0x91, 0x9c, 0x1e, 0x92, 0xed, 0x7a, 0x8e, 0x10, 0x75, 0xce, 0x70, 0x65, 0x41, - 0x42, 0x89, 0xe8, 0x42, 0xc5, 0x56, 0x52, 0x33, 0x16, 0xc8, 0x33, 0x74, 0x3d, 0xdf, 0xa0, 0x25, - 0x08, 0xf6, 0x50, 0x05, 0xd8, 0x4b, 0x10, 0xb7, 0x28, 0xb5, 0x31, 0x72, 0x09, 0x62, 0x98, 0x22, - 0x24, 0xc2, 0xc5, 0x5a, 0x96, 0x98, 0x53, 0x9a, 0x0a, 0x76, 0x1c, 0x67, 0x10, 0x84, 0x23, 0x64, - 0xc2, 0xc5, 0x52, 0x52, 0x59, 0x90, 0x2a, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x67, 0xa4, 0x80, 0xe2, - 0x12, 0x84, 0xe6, 0x30, 0x90, 0xda, 0x90, 0xca, 0x82, 0xd4, 0x20, 0xb0, 0x6a, 0x2b, 0x55, 0x98, - 0xed, 0x32, 0x48, 0xb6, 0x63, 0x58, 0xa9, 0x55, 0xc7, 0x25, 0x8c, 0xc5, 0x0c, 0x21, 0x55, 0x2e, - 0x45, 0x67, 0x7f, 0x1f, 0x1f, 0xc7, 0x10, 0xd7, 0x20, 0x47, 0x9f, 0xf8, 0x30, 0x47, 0x9f, 0x50, - 0xd7, 0xf8, 0x90, 0xc8, 0x00, 0xd7, 0xf8, 0x50, 0xbf, 0xe0, 0x00, 0x57, 0x67, 0x4f, 0x37, 0x4f, - 0x57, 0x17, 0x01, 0x06, 0x21, 0x05, 0x2e, 0x19, 0xec, 0xca, 0x82, 0x43, 0x82, 0x3c, 0x9d, 0x43, - 0x04, 0x18, 0x85, 0xe4, 0xb8, 0xa4, 0xb0, 0xab, 0xf0, 0x75, 0x0c, 0xf6, 0x16, 0x60, 0x72, 0x72, - 0x3a, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, - 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x8d, 0xf4, 0xcc, 0x92, 0x8c, - 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x90, 0x17, 0x74, 0xf3, 0x52, 0x4b, 0xca, 0xf3, 0x8b, - 0xb2, 0xf5, 0x91, 0xfc, 0x03, 0xf2, 0x69, 0x71, 0x12, 0x1b, 0x38, 0xaa, 0x8d, 0x01, 0x01, 0x00, - 0x00, 0xff, 0xff, 0xe7, 0x56, 0xd1, 0x3e, 0x39, 0x02, 0x00, 0x00, + proto.RegisterEnum("haqq.ucdao.v1.CollateralValueType", CollateralValueType_name, CollateralValueType_value) + proto.RegisterType((*Params)(nil), "haqq.ucdao.v1.Params") + proto.RegisterType((*AllowedCollateral)(nil), "haqq.ucdao.v1.AllowedCollateral") +} + +func init() { proto.RegisterFile("haqq/ucdao/v1/ucdao.proto", fileDescriptor_d93b72bfaafec2b8) } + +var fileDescriptor_d93b72bfaafec2b8 = []byte{ + // 381 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcc, 0x48, 0x2c, 0x2c, + 0xd4, 0x2f, 0x4d, 0x4e, 0x49, 0xcc, 0xd7, 0x2f, 0x33, 0x84, 0x30, 0xf4, 0x0a, 0x8a, 0xf2, 0x4b, + 0xf2, 0x85, 0x78, 0x41, 0x52, 0x7a, 0x10, 0x91, 0x32, 0x43, 0x29, 0x91, 0xf4, 0xfc, 0xf4, 0x7c, + 0xb0, 0x8c, 0x3e, 0x88, 0x05, 0x51, 0x24, 0x25, 0x98, 0x98, 0x9b, 0x99, 0x97, 0xaf, 0x0f, 0x26, + 0x21, 0x42, 0x4a, 0x33, 0x18, 0xb9, 0xd8, 0x02, 0x12, 0x8b, 0x12, 0x73, 0x8b, 0x85, 0x64, 0xb9, + 0xb8, 0x52, 0xf3, 0x12, 0x93, 0x72, 0x52, 0xe3, 0x53, 0x12, 0xf3, 0x25, 0x18, 0x15, 0x18, 0x35, + 0x38, 0x82, 0x38, 0x21, 0x22, 0x2e, 0x89, 0xf9, 0x42, 0x81, 0x5c, 0xc2, 0x89, 0x39, 0x39, 0xf9, + 0xe5, 0xa9, 0x29, 0xf1, 0xc9, 0xf9, 0x39, 0x39, 0x89, 0x25, 0xa9, 0x45, 0x89, 0x39, 0xc5, 0x12, + 0x4c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0x0a, 0x7a, 0x28, 0xf6, 0xeb, 0x39, 0x42, 0x54, 0x3a, 0xc3, + 0x15, 0x06, 0x09, 0x25, 0xa2, 0x0b, 0x15, 0x5b, 0xc9, 0xcc, 0x58, 0x20, 0xcf, 0xd0, 0xf5, 0x7c, + 0x83, 0x96, 0x30, 0xd8, 0x63, 0x15, 0x50, 0xaf, 0x41, 0xdc, 0xa3, 0xd4, 0xc5, 0xc8, 0x25, 0x88, + 0x61, 0x8e, 0x90, 0x08, 0x17, 0x6b, 0x59, 0x62, 0x4e, 0x69, 0x2a, 0xd8, 0x81, 0x9c, 0x41, 0x10, + 0x8e, 0x90, 0x19, 0x17, 0x4b, 0x49, 0x65, 0x41, 0xaa, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x9f, 0x91, + 0x12, 0x9a, 0x6b, 0x10, 0xda, 0xc3, 0x40, 0xaa, 0x43, 0x2a, 0x0b, 0x52, 0x83, 0xc0, 0xea, 0xad, + 0xd4, 0x61, 0x2e, 0x90, 0x43, 0x71, 0x01, 0x86, 0xb5, 0x5a, 0x75, 0x5c, 0xc2, 0x58, 0x4c, 0x11, + 0x52, 0xe5, 0x52, 0x74, 0xf6, 0xf7, 0xf1, 0x71, 0x0c, 0x71, 0x0d, 0x72, 0xf4, 0x89, 0x0f, 0x73, + 0xf4, 0x09, 0x75, 0x8d, 0x0f, 0x89, 0x0c, 0x70, 0x8d, 0x0f, 0xf5, 0x0b, 0x0e, 0x70, 0x75, 0xf6, + 0x74, 0xf3, 0x74, 0x75, 0x11, 0x60, 0x10, 0x52, 0xe0, 0x92, 0xc1, 0xae, 0x2c, 0x38, 0x24, 0xc8, + 0xd3, 0x39, 0x44, 0x80, 0x51, 0x48, 0x8e, 0x4b, 0x0a, 0xbb, 0x0a, 0x5f, 0xc7, 0x60, 0x6f, 0x01, + 0x26, 0x27, 0x97, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, + 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x4a, 0xcf, + 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x07, 0x79, 0x42, 0x37, 0x2f, 0xb5, 0xa4, + 0x3c, 0xbf, 0x28, 0x5b, 0x1f, 0xc5, 0x47, 0x20, 0xdf, 0x16, 0x27, 0xb1, 0x81, 0x23, 0xdd, 0x18, + 0x10, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x4c, 0x7c, 0x85, 0x49, 0x02, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -227,7 +227,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintDao(dAtA, i, uint64(size)) + i = encodeVarintUcdao(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -267,22 +267,22 @@ func (m *AllowedCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Type != 0 { - i = encodeVarintDao(dAtA, i, uint64(m.Type)) + i = encodeVarintUcdao(dAtA, i, uint64(m.Type)) i-- dAtA[i] = 0x10 } if len(m.Value) > 0 { i -= len(m.Value) copy(dAtA[i:], m.Value) - i = encodeVarintDao(dAtA, i, uint64(len(m.Value))) + i = encodeVarintUcdao(dAtA, i, uint64(len(m.Value))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintDao(dAtA []byte, offset int, v uint64) int { - offset -= sovDao(v) +func encodeVarintUcdao(dAtA []byte, offset int, v uint64) int { + offset -= sovUcdao(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -304,7 +304,7 @@ func (m *Params) Size() (n int) { if len(m.AllowedCollaterals) > 0 { for _, e := range m.AllowedCollaterals { l = e.Size() - n += 1 + l + sovDao(uint64(l)) + n += 1 + l + sovUcdao(uint64(l)) } } return n @@ -318,19 +318,19 @@ func (m *AllowedCollateral) Size() (n int) { _ = l l = len(m.Value) if l > 0 { - n += 1 + l + sovDao(uint64(l)) + n += 1 + l + sovUcdao(uint64(l)) } if m.Type != 0 { - n += 1 + sovDao(uint64(m.Type)) + n += 1 + sovUcdao(uint64(m.Type)) } return n } -func sovDao(x uint64) (n int) { +func sovUcdao(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozDao(x uint64) (n int) { - return sovDao(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozUcdao(x uint64) (n int) { + return sovUcdao(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Params) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -340,7 +340,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowDao + return ErrIntOverflowUcdao } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -368,7 +368,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowDao + return ErrIntOverflowUcdao } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -388,7 +388,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowDao + return ErrIntOverflowUcdao } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -401,11 +401,11 @@ func (m *Params) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthDao + return ErrInvalidLengthUcdao } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthDao + return ErrInvalidLengthUcdao } if postIndex > l { return io.ErrUnexpectedEOF @@ -417,12 +417,12 @@ func (m *Params) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipDao(dAtA[iNdEx:]) + skippy, err := skipUcdao(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDao + return ErrInvalidLengthUcdao } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -444,7 +444,7 @@ func (m *AllowedCollateral) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowDao + return ErrIntOverflowUcdao } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -472,7 +472,7 @@ func (m *AllowedCollateral) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowDao + return ErrIntOverflowUcdao } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -486,11 +486,11 @@ func (m *AllowedCollateral) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthDao + return ErrInvalidLengthUcdao } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthDao + return ErrInvalidLengthUcdao } if postIndex > l { return io.ErrUnexpectedEOF @@ -504,7 +504,7 @@ func (m *AllowedCollateral) Unmarshal(dAtA []byte) error { m.Type = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowDao + return ErrIntOverflowUcdao } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -518,12 +518,12 @@ func (m *AllowedCollateral) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipDao(dAtA[iNdEx:]) + skippy, err := skipUcdao(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthDao + return ErrInvalidLengthUcdao } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -537,7 +537,7 @@ func (m *AllowedCollateral) Unmarshal(dAtA []byte) error { } return nil } -func skipDao(dAtA []byte) (n int, err error) { +func skipUcdao(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -545,7 +545,7 @@ func skipDao(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowDao + return 0, ErrIntOverflowUcdao } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -562,7 +562,7 @@ func skipDao(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowDao + return 0, ErrIntOverflowUcdao } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -578,7 +578,7 @@ func skipDao(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowDao + return 0, ErrIntOverflowUcdao } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -591,14 +591,14 @@ func skipDao(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthDao + return 0, ErrInvalidLengthUcdao } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupDao + return 0, ErrUnexpectedEndOfGroupUcdao } depth-- case 5: @@ -607,7 +607,7 @@ func skipDao(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthDao + return 0, ErrInvalidLengthUcdao } if depth == 0 { return iNdEx, nil @@ -617,7 +617,7 @@ func skipDao(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthDao = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDao = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupDao = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthUcdao = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowUcdao = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupUcdao = fmt.Errorf("proto: unexpected end of group") )